From 1c5ebecbca09e95d678a666ad5238f073d85d878 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 27 Feb 2026 17:39:26 +0000 Subject: [PATCH] chore: sync HyperDX 2.20.0 Built from hyperdxio/hyperdx@2.20.0 --- HYPERDX_VERSION | 2 +- out/404.html | 2 +- out/__ENV.js | 2 +- .../3856zSw2tBHhqNrROivoT/_buildManifest.js | 1 - .../static/chunks/1021-4de35bc2b4f591c6.js | 239 ------------------ .../static/chunks/1021-c6bacb966b958ce2.js | 239 ++++++++++++++++++ .../static/chunks/1274-aef343c4656bbdfc.js | 1 - .../static/chunks/1926-613ed7f780169841.js | 1 - ...0d6ac78e10.js => 3062-27c104855df7fb76.js} | 2 +- .../static/chunks/3172-1a9549c57c0fdbee.js | 1 + .../static/chunks/3172-b6490fb55ce08c1c.js | 1 - .../static/chunks/3234-91be2b1b16b8a12e.js | 5 - .../static/chunks/3234-d8981055fd9e22cb.js | 5 + .../static/chunks/35-38880205eb57367e.js | 1 + .../static/chunks/35-9a2c3aba3b13971b.js | 1 - .../static/chunks/3943-0b032b204fb92637.js | 1 - .../chunks/4e973673-734c42c7ea430577.js | 1 + .../chunks/4e973673-b7b5da192a879342.js | 1 - .../static/chunks/5165-cc0faaa4c0c1e192.js | 1 + .../static/chunks/522-db7920b51550c9e2.js | 1 - .../static/chunks/5948-68ff120004c4d125.js | 1 + .../static/chunks/6514-9ab29f6b02cd025a.js | 1 - .../static/chunks/6514-b68c4b7e0ada11d1.js | 1 + ...292f0acaac.js => 6747-5f252862c306208a.js} | 4 +- .../static/chunks/7386-8fea3f6843338cab.js | 1 - ...f981fa00e5.js => 7493-2f5bf2042441f1d8.js} | 2 +- .../static/chunks/7524-43d966707e8a68be.js | 1 + ...7d5340be2d.js => 8462-b2415a0cc89e2373.js} | 2 +- .../static/chunks/8718-9a62d679fdd1c210.js | 1 + .../static/chunks/8855-cf42fdc8b18f6cf0.js | 1 + ...609a7051b9.js => 9207-cbd99653afd270a3.js} | 2 +- .../static/chunks/9979-14e2287668283e43.js | 4 + .../static/chunks/9979-25cce956b8228ba9.js | 4 - .../chunks/pages/_app-8462689fae175bdd.js | 25 ++ .../chunks/pages/_app-a9c96a2801f1013b.js | 31 --- .../chunks/pages/alerts-7a8f2f45c5dbc634.js | 1 + .../chunks/pages/alerts-bd7f41cff62f8d10.js | 1 - ...8fa71.js => benchmark-c327c802cb73c769.js} | 2 +- .../chunks/pages/chart-35295dad1f8a0721.js | 104 -------- .../chunks/pages/chart-a2076215ba8a1189.js | 104 ++++++++ .../pages/clickhouse-6683816e115349a8.js | 64 ----- .../pages/clickhouse-945c180d82a1d96f.js | 64 +++++ .../pages/dashboards-a34795e6fc1ce453.js | 104 ++++++++ .../pages/dashboards-dc7f01f16edc5bbb.js | 104 -------- .../[dashboardId]-83bf90b056623488.js | 104 -------- .../[dashboardId]-fefea32a3e4713bf.js | 104 ++++++++ .../dashboards/import-814aff4bf2a0b7c5.js | 1 - .../dashboards/import-ce562698fc34fb13.js | 1 + ...8b8d7131b.js => index-127844045860c39b.js} | 2 +- .../pages/join-team-74e007c50e7bc44c.js | 1 - .../pages/join-team-fa75e338137d5218.js | 1 + .../pages/kubernetes-456377648cf36bba.js | 64 ----- .../pages/kubernetes-695d926dbe06e45c.js | 64 +++++ .../chunks/pages/search-e8635ca94b248c5f.js | 81 ++++++ .../chunks/pages/search-ffeb30ea5a7baf27.js | 81 ------ .../[savedSearchId]-4dce447b07f4ab76.js | 81 ++++++ .../[savedSearchId]-555abbf86f300d96.js | 81 ------ ...3ce.js => service-map-34a4282cc103fccc.js} | 2 +- .../chunks/pages/services-56c542cb661daed6.js | 98 ------- .../chunks/pages/services-f542242633480055.js | 98 +++++++ .../chunks/pages/sessions-27e2c89722b007ed.js | 64 +++++ .../chunks/pages/sessions-acea943c26d1ae60.js | 64 ----- .../chunks/pages/team-2720ea0afbc2aca5.js | 18 -- .../chunks/pages/team-c27f532a82ef81d1.js | 18 ++ out/_next/static/css/1737eeb4e09f4758.css | 1 + out/_next/static/css/271360d5ec0aafbb.css | 1 + out/_next/static/css/3a10c0156cafdc35.css | 1 + ...b40337a01a8f7.css => 3f739562e6b98d9f.css} | 2 +- out/_next/static/css/46c151d8e65d7e23.css | 1 + out/_next/static/css/4b74ca114288ffb0.css | 1 + out/_next/static/css/60eef3d5b82c01fe.css | 1 - out/_next/static/css/6ab0378bf306f4d6.css | 1 + out/_next/static/css/aa458d09e4c5d9b3.css | 1 - out/_next/static/css/c7f9e6fa0e94fe8f.css | 1 - out/_next/static/css/c9e47d6ecd091b56.css | 1 - out/_next/static/css/d3924edf7ab0899a.css | 1 + out/_next/static/css/d9659d9e1a57bc7e.css | 1 - out/_next/static/css/da709c0151f8e860.css | 1 - ...20d9971b4c4aa.css => dda12d8468e44d63.css} | 2 +- out/_next/static/css/e7c8a91bdaa17057.css | 1 - .../n9KkIPhIFQGmSFDJ9v8O_/_buildManifest.js | 1 + .../_ssgManifest.js | 0 out/alerts.html | 2 +- out/benchmark.html | 2 +- out/chart.html | 2 +- out/clickhouse.html | 2 +- out/dashboards.html | 2 +- out/dashboards/[dashboardId].html | 2 +- out/dashboards/import.html | 2 +- out/favicons/clickstack/favicon.svg | 32 ++- out/index.html | 2 +- out/join-team.html | 2 +- out/kubernetes.html | 2 +- out/login.html | 2 +- out/register.html | 2 +- out/search.html | 2 +- out/search/[savedSearchId].html | 2 +- out/service-map.html | 2 +- out/services.html | 2 +- out/sessions.html | 2 +- out/team.html | 2 +- 101 files changed, 1122 insertions(+), 1130 deletions(-) delete mode 100644 out/_next/static/3856zSw2tBHhqNrROivoT/_buildManifest.js delete mode 100644 out/_next/static/chunks/1021-4de35bc2b4f591c6.js create mode 100644 out/_next/static/chunks/1021-c6bacb966b958ce2.js delete mode 100644 out/_next/static/chunks/1274-aef343c4656bbdfc.js delete mode 100644 out/_next/static/chunks/1926-613ed7f780169841.js rename out/_next/static/chunks/{1626-de51610d6ac78e10.js => 3062-27c104855df7fb76.js} (59%) create mode 100644 out/_next/static/chunks/3172-1a9549c57c0fdbee.js delete mode 100644 out/_next/static/chunks/3172-b6490fb55ce08c1c.js delete mode 100644 out/_next/static/chunks/3234-91be2b1b16b8a12e.js create mode 100644 out/_next/static/chunks/3234-d8981055fd9e22cb.js create mode 100644 out/_next/static/chunks/35-38880205eb57367e.js delete mode 100644 out/_next/static/chunks/35-9a2c3aba3b13971b.js delete mode 100644 out/_next/static/chunks/3943-0b032b204fb92637.js create mode 100644 out/_next/static/chunks/4e973673-734c42c7ea430577.js delete mode 100644 out/_next/static/chunks/4e973673-b7b5da192a879342.js create mode 100644 out/_next/static/chunks/5165-cc0faaa4c0c1e192.js delete mode 100644 out/_next/static/chunks/522-db7920b51550c9e2.js create mode 100644 out/_next/static/chunks/5948-68ff120004c4d125.js delete mode 100644 out/_next/static/chunks/6514-9ab29f6b02cd025a.js create mode 100644 out/_next/static/chunks/6514-b68c4b7e0ada11d1.js rename out/_next/static/chunks/{3999-487ca1292f0acaac.js => 6747-5f252862c306208a.js} (51%) delete mode 100644 out/_next/static/chunks/7386-8fea3f6843338cab.js rename out/_next/static/chunks/{9967-169389f981fa00e5.js => 7493-2f5bf2042441f1d8.js} (91%) create mode 100644 out/_next/static/chunks/7524-43d966707e8a68be.js rename out/_next/static/chunks/{4913-75c3c17d5340be2d.js => 8462-b2415a0cc89e2373.js} (70%) create mode 100644 out/_next/static/chunks/8718-9a62d679fdd1c210.js create mode 100644 out/_next/static/chunks/8855-cf42fdc8b18f6cf0.js rename out/_next/static/chunks/{1470-84964c609a7051b9.js => 9207-cbd99653afd270a3.js} (77%) create mode 100644 out/_next/static/chunks/9979-14e2287668283e43.js delete mode 100644 out/_next/static/chunks/9979-25cce956b8228ba9.js create mode 100644 out/_next/static/chunks/pages/_app-8462689fae175bdd.js delete mode 100644 out/_next/static/chunks/pages/_app-a9c96a2801f1013b.js create mode 100644 out/_next/static/chunks/pages/alerts-7a8f2f45c5dbc634.js delete mode 100644 out/_next/static/chunks/pages/alerts-bd7f41cff62f8d10.js rename out/_next/static/chunks/pages/{benchmark-73496ad610b8fa71.js => benchmark-c327c802cb73c769.js} (64%) delete mode 100644 out/_next/static/chunks/pages/chart-35295dad1f8a0721.js create mode 100644 out/_next/static/chunks/pages/chart-a2076215ba8a1189.js delete mode 100644 out/_next/static/chunks/pages/clickhouse-6683816e115349a8.js create mode 100644 out/_next/static/chunks/pages/clickhouse-945c180d82a1d96f.js create mode 100644 out/_next/static/chunks/pages/dashboards-a34795e6fc1ce453.js delete mode 100644 out/_next/static/chunks/pages/dashboards-dc7f01f16edc5bbb.js delete mode 100644 out/_next/static/chunks/pages/dashboards/[dashboardId]-83bf90b056623488.js create mode 100644 out/_next/static/chunks/pages/dashboards/[dashboardId]-fefea32a3e4713bf.js delete mode 100644 out/_next/static/chunks/pages/dashboards/import-814aff4bf2a0b7c5.js create mode 100644 out/_next/static/chunks/pages/dashboards/import-ce562698fc34fb13.js rename out/_next/static/chunks/pages/{index-a65a2b78b8d7131b.js => index-127844045860c39b.js} (77%) delete mode 100644 out/_next/static/chunks/pages/join-team-74e007c50e7bc44c.js create mode 100644 out/_next/static/chunks/pages/join-team-fa75e338137d5218.js delete mode 100644 out/_next/static/chunks/pages/kubernetes-456377648cf36bba.js create mode 100644 out/_next/static/chunks/pages/kubernetes-695d926dbe06e45c.js create mode 100644 out/_next/static/chunks/pages/search-e8635ca94b248c5f.js delete mode 100644 out/_next/static/chunks/pages/search-ffeb30ea5a7baf27.js create mode 100644 out/_next/static/chunks/pages/search/[savedSearchId]-4dce447b07f4ab76.js delete mode 100644 out/_next/static/chunks/pages/search/[savedSearchId]-555abbf86f300d96.js rename out/_next/static/chunks/pages/{service-map-bcb8910dc98b83ce.js => service-map-34a4282cc103fccc.js} (99%) delete mode 100644 out/_next/static/chunks/pages/services-56c542cb661daed6.js create mode 100644 out/_next/static/chunks/pages/services-f542242633480055.js create mode 100644 out/_next/static/chunks/pages/sessions-27e2c89722b007ed.js delete mode 100644 out/_next/static/chunks/pages/sessions-acea943c26d1ae60.js delete mode 100644 out/_next/static/chunks/pages/team-2720ea0afbc2aca5.js create mode 100644 out/_next/static/chunks/pages/team-c27f532a82ef81d1.js create mode 100644 out/_next/static/css/1737eeb4e09f4758.css create mode 100644 out/_next/static/css/271360d5ec0aafbb.css create mode 100644 out/_next/static/css/3a10c0156cafdc35.css rename out/_next/static/css/{57ab40337a01a8f7.css => 3f739562e6b98d9f.css} (53%) create mode 100644 out/_next/static/css/46c151d8e65d7e23.css create mode 100644 out/_next/static/css/4b74ca114288ffb0.css delete mode 100644 out/_next/static/css/60eef3d5b82c01fe.css create mode 100644 out/_next/static/css/6ab0378bf306f4d6.css delete mode 100644 out/_next/static/css/aa458d09e4c5d9b3.css delete mode 100644 out/_next/static/css/c7f9e6fa0e94fe8f.css delete mode 100644 out/_next/static/css/c9e47d6ecd091b56.css create mode 100644 out/_next/static/css/d3924edf7ab0899a.css delete mode 100644 out/_next/static/css/d9659d9e1a57bc7e.css delete mode 100644 out/_next/static/css/da709c0151f8e860.css rename out/_next/static/css/{f8920d9971b4c4aa.css => dda12d8468e44d63.css} (84%) delete mode 100644 out/_next/static/css/e7c8a91bdaa17057.css create mode 100644 out/_next/static/n9KkIPhIFQGmSFDJ9v8O_/_buildManifest.js rename out/_next/static/{3856zSw2tBHhqNrROivoT => n9KkIPhIFQGmSFDJ9v8O_}/_ssgManifest.js (100%) diff --git a/HYPERDX_VERSION b/HYPERDX_VERSION index d76bd2b..7329e21 100644 --- a/HYPERDX_VERSION +++ b/HYPERDX_VERSION @@ -1 +1 @@ -2.17.0 +2.20.0 diff --git a/out/404.html b/out/404.html index 6091972..4f4763b 100644 --- a/out/404.html +++ b/out/404.html @@ -1 +1 @@ -404: This page could not be found

404

This page could not be found.

\ No newline at end of file +404: This page could not be found

404

This page could not be found.

\ No newline at end of file diff --git a/out/__ENV.js b/out/__ENV.js index ed6978a..1605e2d 100644 --- a/out/__ENV.js +++ b/out/__ENV.js @@ -1 +1 @@ -window.__ENV = {"NEXT_PUBLIC_IS_LOCAL_MODE":"true","NEXT_PUBLIC_CLICKHOUSE_BUILD":"true","NEXT_PUBLIC_THEME":"clickstack","NEXT_PUBLIC_APP_VERSION":"2.17.0"}; \ No newline at end of file +window.__ENV = {"NEXT_PUBLIC_THEME":"clickstack","NEXT_PUBLIC_IS_LOCAL_MODE":"true","NEXT_PUBLIC_CLICKHOUSE_BUILD":"true","NEXT_PUBLIC_APP_VERSION":"2.20.0"}; \ No newline at end of file diff --git a/out/_next/static/3856zSw2tBHhqNrROivoT/_buildManifest.js b/out/_next/static/3856zSw2tBHhqNrROivoT/_buildManifest.js deleted file mode 100644 index 4172a35..0000000 --- a/out/_next/static/3856zSw2tBHhqNrROivoT/_buildManifest.js +++ /dev/null @@ -1 +0,0 @@ -self.__BUILD_MANIFEST=function(s,c,a,e,t,d,i,f,b,h,r,n,u,k,j,o,p,g,m,_,l,I,v,B,F,S,A,N,D,y,E,L,M,T,U,C){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},__routerFilterStatic:{numItems:0,errorRate:1e-4,numBits:0,numHashes:E,bitArray:[]},__routerFilterDynamic:{numItems:0,errorRate:1e-4,numBits:0,numHashes:E,bitArray:[]},"/":[s,"static/chunks/pages/index-a65a2b78b8d7131b.js"],"/404":["static/chunks/pages/404-87418c6575573d12.js"],"/_error":["static/chunks/pages/_error-39388d370ed64907.js"],"/alerts":[e,t,d,s,c,i,b,f,h,"static/css/ee8688206e298d66.css","static/chunks/pages/alerts-bd7f41cff62f8d10.js"],"/benchmark":[e,t,d,r,s,c,a,i,n,u,j,f,o,"static/css/5397465024004a31.css","static/chunks/pages/benchmark-73496ad610b8fa71.js"],"/chart":[e,t,d,r,p,s,c,a,i,b,n,k,u,j,g,m,l,I,F,A,f,h,o,_,"static/css/60eef3d5b82c01fe.css","static/chunks/pages/chart-35295dad1f8a0721.js"],"/clickhouse":[e,t,d,r,p,s,c,a,i,b,n,k,u,j,g,m,l,I,B,N,f,h,o,_,v,"static/css/57ab40337a01a8f7.css","static/chunks/pages/clickhouse-6683816e115349a8.js"],"/dashboards":[e,t,d,r,p,s,c,a,i,b,n,k,u,j,g,m,l,I,B,F,A,L,f,h,o,_,v,M,"static/chunks/pages/dashboards-dc7f01f16edc5bbb.js"],"/dashboards/import":[e,t,d,s,c,a,i,b,"static/chunks/9967-169389f981fa00e5.js",f,h,"static/css/c2ef5da228e74437.css","static/chunks/pages/dashboards/import-814aff4bf2a0b7c5.js"],"/dashboards/[dashboardId]":[e,t,d,r,p,s,c,a,i,b,n,k,u,j,g,m,l,I,B,F,A,L,f,h,o,_,v,M,"static/chunks/pages/dashboards/[dashboardId]-83bf90b056623488.js"],"/join-team":[D,"static/chunks/pages/join-team-74e007c50e7bc44c.js"],"/kubernetes":[e,t,d,r,p,s,c,a,i,b,n,k,u,j,g,m,l,I,B,f,h,o,_,v,"static/css/d9659d9e1a57bc7e.css","static/chunks/pages/kubernetes-456377648cf36bba.js"],"/login":[s,c,a,D,T,"static/chunks/pages/login-f046da5509306fd8.js"],"/register":[s,c,a,D,T,"static/chunks/pages/register-86a04d6ba7a76f1a.js"],"/search":[e,t,d,r,p,s,c,a,i,b,n,k,u,j,g,m,l,I,B,F,N,U,f,h,o,_,v,C,"static/chunks/pages/search-ffeb30ea5a7baf27.js"],"/search/[savedSearchId]":[e,t,d,r,p,s,c,a,i,b,n,k,u,j,g,m,l,I,B,F,N,U,f,h,o,_,v,C,"static/chunks/pages/search/[savedSearchId]-555abbf86f300d96.js"],"/service-map":[e,t,d,r,p,s,c,a,i,b,n,k,g,f,h,_,"static/css/5e608e56fd4adb29.css","static/chunks/pages/service-map-bcb8910dc98b83ce.js"],"/services":[e,t,d,r,p,s,c,a,i,b,n,k,u,j,g,m,l,I,B,f,h,o,_,v,"static/css/c7f9e6fa0e94fe8f.css","static/chunks/pages/services-56c542cb661daed6.js"],"/sessions":[e,t,d,r,p,s,c,a,i,b,n,k,u,j,g,m,l,"static/chunks/6787-a27c5954b2697712.js",f,h,o,_,"static/css/c9e47d6ecd091b56.css","static/chunks/pages/sessions-acea943c26d1ae60.js"],"/team":[e,t,d,r,s,c,a,i,b,n,k,u,m,I,f,h,v,"static/css/aa458d09e4c5d9b3.css","static/chunks/pages/team-2720ea0afbc2aca5.js"],sortedPages:["/","/404","/_app","/_error","/alerts","/benchmark","/chart","/clickhouse","/dashboards","/dashboards/import","/dashboards/[dashboardId]","/join-team","/kubernetes","/login","/register","/search","/search/[savedSearchId]","/service-map","/services","/sessions","/team"]}}("static/chunks/910-f70c830849b8cf81.js","static/chunks/1606-5a30b62cb4feaa4a.js","static/chunks/1909-f4f65d5367297444.js","static/chunks/367e882f-7fb3ac49d51ad63a.js","static/chunks/4e973673-b7b5da192a879342.js","static/chunks/88e08fcc-4ec2fa1a379b744c.js","static/chunks/3999-487ca1292f0acaac.js","static/chunks/1021-4de35bc2b4f591c6.js","static/chunks/1626-de51610d6ac78e10.js","static/chunks/6514-9ab29f6b02cd025a.js","static/chunks/187e7e72-adec6481ecde3f61.js","static/chunks/1445-bacd907489fa7f07.js","static/chunks/4607-c12c74ba5c07f89c.js","static/chunks/2990-4ceeb762cdb09ceb.js","static/chunks/9979-25cce956b8228ba9.js","static/chunks/3234-91be2b1b16b8a12e.js","static/chunks/f92fad27-d0cff4750eeb2536.js","static/chunks/522-db7920b51550c9e2.js","static/chunks/3943-0b032b204fb92637.js","static/chunks/8374-cb38bfbe77b4240b.js","static/chunks/1926-613ed7f780169841.js","static/chunks/9353-f86472fc41edc301.js","static/chunks/3172-b6490fb55ce08c1c.js","static/chunks/4528-13c92570a143bd81.js","static/chunks/1470-84964c609a7051b9.js",0,"static/chunks/1274-aef343c4656bbdfc.js","static/chunks/8224-2d708009ee8fef6a.js","static/chunks/7074-b8101e6fbb15b996.js",0,NaN,"static/chunks/7386-8fea3f6843338cab.js","static/css/e7c8a91bdaa17057.css","static/chunks/35-9a2c3aba3b13971b.js","static/chunks/4913-75c3c17d5340be2d.js","static/css/da709c0151f8e860.css"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/out/_next/static/chunks/1021-4de35bc2b4f591c6.js b/out/_next/static/chunks/1021-4de35bc2b4f591c6.js deleted file mode 100644 index af44239..0000000 --- a/out/_next/static/chunks/1021-4de35bc2b4f591c6.js +++ /dev/null @@ -1,239 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1021],{2615:(e,t,a)=>{var n=a(30404);a(31356),a(20470),n.a,t.YR=n.e,n.b,n.d,t.bn=n.c},3145:(e,t,a)=>{var n=a(9641);a(30404),a(31356),a(20470),t.qs=n.F,n.H,n.G,t.yb=n.K,n.I,t.VO=n.J},6876:(e,t,a)=>{a.d(t,{Ay:()=>m,Q5:()=>c});var n=a(81278),r=a.n(n),i=a(62910),s=a(16932),o=a(12482),l=a(98142);let u=i.Ay.create({prefixUrl:"/api",credentials:"include",hooks:{afterResponse:[function(e,t,a){if(!["/","/forgot","/join-team","/login","/register","/reset-password"].includes(r().pathname)&&401===a.status){try{window.sessionStorage.setItem("hdx-login-redirect-url",r().asPath)}catch(e){console.error(e)}r().push("/login")}}]},timeout:!1}),c=(e,t)=>u(e,{...t}),m={useCreateAlert:()=>(0,s.n)({mutationFn:async e=>u("alerts",{method:"POST",json:e}).json()}),useUpdateAlert:()=>(0,s.n)({mutationFn:async e=>u(`alerts/${e.id}`,{method:"PUT",json:e}).json()}),useDeleteAlert:()=>(0,s.n)({mutationFn:async e=>u(`alerts/${e}`,{method:"DELETE"})}),useSilenceAlert:()=>(0,s.n)({mutationFn:async({alertId:e,mutedUntil:t})=>u(`alerts/${e}/silenced`,{method:"POST",json:{mutedUntil:t}})}),useUnsilenceAlert:()=>(0,s.n)({mutationFn:async e=>u(`alerts/${e}/silenced`,{method:"DELETE"})}),useDashboards:e=>(0,o.I)({queryKey:["dashboards"],queryFn:()=>l.VO?null:c("dashboards",{method:"GET"}).json(),...e}),useCreateDashboard:()=>(0,s.n)({mutationFn:async({name:e,charts:t,query:a,tags:n})=>c("dashboards",{method:"POST",json:{name:e,charts:t,query:a,tags:n}}).json()}),useUpdateDashboard:()=>(0,s.n)({mutationFn:async({id:e,name:t,charts:a,query:n,tags:r})=>c(`dashboards/${e}`,{method:"PUT",json:{name:t,charts:a,query:n,tags:r}}).json()}),useDeleteDashboard:()=>(0,s.n)({mutationFn:async({id:e})=>c(`dashboards/${e}`,{method:"DELETE"}).json()}),usePresetDashboardFilters:(e,t,a=!0)=>(0,o.I)({queryKey:["dashboards","preset",e,"filters",t],queryFn:()=>c(`dashboards/preset/${e}/filters/`,{method:"GET",searchParams:{sourceId:t}}).json(),enabled:!!t&&a}),useCreatePresetDashboardFilter:()=>(0,s.n)({mutationFn:async e=>c(`dashboards/preset/${e.presetDashboard}/filter`,{method:"POST",json:{filter:e}}).json()}),useUpdatePresetDashboardFilter:()=>(0,s.n)({mutationFn:async e=>c(`dashboards/preset/${e.presetDashboard}/filter`,{method:"PUT",json:{filter:e}}).json()}),useDeletePresetDashboardFilter:()=>(0,s.n)({mutationFn:async({id:e,presetDashboard:t})=>c(`dashboards/preset/${t}/filter/${e}`,{method:"DELETE"}).json()}),useAlerts:()=>(0,o.I)({queryKey:["alerts"],queryFn:()=>c("alerts").json()}),useServices:()=>(0,o.I)({queryKey:["services"],queryFn:()=>c("chart/services",{method:"GET"}).json()}),useRotateTeamApiKey:()=>(0,s.n)({mutationFn:async()=>c("team/apiKey",{method:"PATCH"}).json()}),useDeleteTeamMember:()=>(0,s.n)({mutationFn:async({userId:e})=>c(`team/member/${e}`,{method:"DELETE"}).json()}),useTeamInvitations:()=>(0,o.I)({queryKey:["team/invitations"],queryFn:()=>c("team/invitations").json()}),useSaveTeamInvitation:()=>(0,s.n)({mutationFn:async({name:e,email:t})=>c("team/invitation",{method:"POST",json:{name:e,email:t}}).json()}),useDeleteTeamInvitation:()=>(0,s.n)({mutationFn:async({id:e})=>c(`team/invitation/${e}`,{method:"DELETE"}).json()}),useInstallation:()=>(0,o.I)({queryKey:["installation"],queryFn:()=>{if(!l.VO)return c("installation").json()}}),useMe:()=>(0,o.I)({queryKey:["me"],queryFn:()=>l.VO?null:c("me").json()}),useTeam:()=>(0,o.I)({queryKey:["team"],queryFn:()=>l.VO?null:c("team").json(),retry:1}),useTeamMembers:()=>(0,o.I)({queryKey:["team/members"],queryFn:()=>c("team/members").json()}),useSetTeamName:()=>(0,s.n)({mutationFn:async({name:e})=>c("team/name",{method:"PATCH",json:{name:e}}).json()}),useUpdateClickhouseSettings:()=>(0,s.n)({mutationFn:async e=>c("team/clickhouse-settings",{method:"PATCH",json:e}).json()}),useTags:()=>(0,o.I)({queryKey:["team/tags"],queryFn:()=>c("team/tags").json()}),useSaveWebhook:()=>(0,s.n)({mutationFn:async({service:e,url:t,name:a,description:n,queryParams:r,headers:i,body:s})=>c("webhooks",{method:"POST",json:{name:a,service:e,url:t,description:n,queryParams:r||{},headers:i||{},body:s}}).json()}),useUpdateWebhook:()=>(0,s.n)({mutationFn:async({id:e,service:t,url:a,name:n,description:r,queryParams:i,headers:s,body:o})=>c(`webhooks/${e}`,{method:"PUT",json:{name:n,service:t,url:a,description:r,queryParams:i||{},headers:s||{},body:o}}).json()}),useWebhooks:e=>(0,o.I)({queryKey:[...e],queryFn:()=>c("webhooks",{method:"GET",searchParams:[...e.map(e=>["service",e])]}).json()}),useDeleteWebhook:()=>(0,s.n)({mutationFn:async({id:e})=>c(`webhooks/${e}`,{method:"DELETE"}).json()}),useTestWebhook:()=>(0,s.n)({mutationFn:async({service:e,url:t,queryParams:a,headers:n,body:r})=>c("webhooks/test",{method:"POST",json:{service:e,url:t,queryParams:a||{},headers:n||{},body:r}}).json()}),useRegisterPassword:()=>(0,s.n)({mutationFn:async({email:e,password:t,confirmPassword:a})=>c("register/password",{method:"POST",json:{email:e,password:t,confirmPassword:a}}).json()}),useTestConnection:()=>(0,s.n)({mutationFn:async({host:e,username:t,password:a})=>c("clickhouse-proxy/test",{method:"POST",json:{host:e,username:t,password:a}}).json()})}},7565:(e,t,a)=>{a.d(t,{H:()=>l,a:()=>o});var n=a(6029),r=a(75155);a(55729);var i=a(76089),s=a(57820);let o=()=>{let e,t=(0,r.c)(3),{userPreferences:a}=(0,s.HW)(),{isUTC:n,timeFormat:o}=a;return t[0]!==n||t[1]!==o?(e=(e,t)=>{let{format:a}=void 0===t?{}:t;try{let t=e instanceof Date?e:new Date(e);return(0,i.Yq)(t,{clock:o,isUTC:n,format:a})}catch(t){return console.error(t,e),"Unknown date"}},t[0]=n,t[1]=o,t[2]=e):e=t[2],e},l=e=>{let t,a,i=(0,r.c)(6),{value:s,format:l}=e,u=o();return s?(i[0]!==l||i[1]!==u||i[2]!==s?(t=u(s,{format:l}),i[0]=l,i[1]=u,i[2]=s,i[3]=t):t=i[3],i[4]!==t?(a=(0,n.jsx)(n.Fragment,{children:t}),i[4]=t,i[5]=a):a=i[5],a):null}},9641:(e,t,a)=>{let n;function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t}function i(e){return e&&e.__esModule?e:{default:e}}function s(e,t){return null!=e?e:t()}function o(e){let t,a=e[0],n=1;for(;na.call(t,...e)),t=void 0)}return a}Object.defineProperty(t,"__esModule",{value:!0});var l,u,c,m=a(30404),d=a(31356),p=a(20470),g=a(64497),h=r(g),f=r(g),y=i(a(79339)),E=i(a(64022)),A=i(a(80519)),N=i(a(55235)),T=a(71434),S=t.G=l=class{constructor(){l.prototype.__init.call(this),l.prototype.__init2.call(this)}__init(){this.cache=new Map}__init2(){this.pendingQueries=new Map}get(e){return this.cache.get(e)}async getOrFetch(e,t){let a=this.cache.get(e);if(null!=a)return a;if(this.pendingQueries.has(e))return this.pendingQueries.get(e);let n=t();this.pendingQueries.set(e,n);try{let t=await n;return this.cache.set(e,t),t}finally{this.pendingQueries.delete(e)}}set(e,t){return this.cache.set(e,t)}},_=t.H=class{constructor(e,t,a){this.clickhouseClient=e,this.cache=t,a&&this.cache.set("clickhouse-settings",a)}getClickHouseSettings(){return s(this.cache.get("clickhouse-settings"),()=>({}))}setClickHouseSettings(e){let t={...this.getClickHouseSettings(),...e};this.cache.set("clickhouse-settings",t)}async queryTableMetadata({database:e,table:t,cache:a,connectionId:n}){return a.getOrFetch(`${n}.${e}.${t}.metadata`,async()=>{let a=eT`SELECT * FROM system.tables where database = ${{String:e}} AND name = ${{String:t}}`;return(await this.clickhouseClient.query({connectionId:n,query:a.sql,query_params:a.params,clickhouse_settings:this.getClickHouseSettings()}).then(e=>e.json())).data[0]})}async queryMaterializedViewsByTarget({databaseName:e,tableName:t,connectionId:a}){return this.cache.getOrFetch(`${a}.${e}.${t}.sourceMaterializedViews`,async()=>{let n=`%TO ${e}.${t}%`,r=eT` - SELECT database as databaseName, name as tableName - FROM system.tables - WHERE engine = 'MaterializedView' - AND create_table_query LIKE ${{String:n}}`;return(await this.clickhouseClient.query({connectionId:a,query:r.sql,query_params:r.params,clickhouse_settings:this.getClickHouseSettings()}).then(e=>e.json())).data})}async getColumns({databaseName:e,tableName:t,connectionId:a}){return this.cache.getOrFetch(`${a}.${e}.${t}.columns`,async()=>{let n=eT`DESCRIBE ${ex({database:e,table:t})}`;return await this.clickhouseClient.query({query:n.sql,query_params:n.params,connectionId:a,clickhouse_settings:this.getClickHouseSettings()}).then(e=>e.json()).then(e=>e.data)})}async getMaterializedColumnsLookupTable({databaseName:e,tableName:t,connectionId:a}){return new Map((await this.getColumns({databaseName:e,tableName:t,connectionId:a})).filter(e=>"MATERIALIZED"===e.default_type||"DEFAULT"===e.default_type).map(e=>[e.default_expression,e.name]))}async getColumn({databaseName:e,tableName:t,column:a,matchLowercase:n=!1,connectionId:r}){return(await this.getColumns({databaseName:e,tableName:t,connectionId:r})).filter(e=>n?e.name.toLowerCase()===a.toLowerCase():e.name===a)[0]}async getMapKeys({databaseName:e,tableName:t,column:a,maxKeys:n=1e3,connectionId:r,metricName:i}){let o=i?`${r}.${e}.${t}.${a}.${i}.keys`:`${r}.${e}.${t}.${a}.keys`,l=this.cache.get(o);if(null!=l)return l;let u=await this.getColumn({databaseName:e,tableName:t,column:a,connectionId:r});if(null==u)throw Error(`Column ${a} not found in ${e}.${t}`);let c="groupUniqArrayArray";u.type.startsWith("Map(LowCardinality(String)")&&(c="lowCardinalityKeys");let m=i?eT`WHERE MetricName=${{String:i}}`:"",d;return d="groupUniqArrayArray"===c?eT` - WITH sampledKeys as ( - SELECT ${{Identifier:a}}.keys AS keys - FROM ${ex({database:e,table:t})} ${m} - LIMIT ${{Int32:this.getClickHouseSettings().max_rows_to_read?Number(this.getClickHouseSettings().max_rows_to_read):3e6}} - ) - SELECT groupUniqArrayArray(${{Int32:n}})(keys) as keysArr - FROM sampledKeys`:eT` - WITH sampledKeys as ( - SELECT ${{Identifier:a}}.keys AS keysArr - FROM ${ex({database:e,table:t})} ${m} - LIMIT ${{Int32:this.getClickHouseSettings().max_rows_to_read?Number(this.getClickHouseSettings().max_rows_to_read):3e6}} - ) - SELECT DISTINCT lowCardinalityKeys(arrayJoin(keysArr)) as key - FROM sampledKeys - LIMIT ${{Int32:n}} - `,this.cache.getOrFetch(o,async()=>await this.clickhouseClient.query({query:d.sql,query_params:d.params,connectionId:r,clickhouse_settings:{...this.getClickHouseSettings(),timeout_overflow_mode:"break",max_execution_time:15,max_rows_to_read:"0"}}).then(e=>e.json()).then(e=>("groupUniqArrayArray"===c?s(e.data[0].keysArr,()=>[]):e.data.map(e=>e.key).filter(e=>!!e)).filter(e=>e)))}async getJSONKeys({column:e,maxKeys:t=1e3,databaseName:a,tableName:n,connectionId:r,metricName:i}){return[]}async getMapValues({databaseName:e,tableName:t,column:a,key:n,maxValues:r=20,connectionId:i}){let o=`${i}.${e}.${t}.${a}.${n}.values`,l=this.cache.get(o);if(null!=l)return l;let u=n?eT` - SELECT DISTINCT ${{Identifier:a}}[${{String:n}}] as value - FROM ${ex({database:e,table:t})} - WHERE value != '' - LIMIT ${{Int32:r}} - `:eT` - SELECT DISTINCT ${{Identifier:a}} as value - FROM ${ex({database:e,table:t})} - WHERE value != '' - LIMIT ${{Int32:r}} - `;return this.cache.getOrFetch(o,async()=>await this.clickhouseClient.query({query:u.sql,query_params:u.params,connectionId:i,clickhouse_settings:{max_rows_to_read:String(s(this.getClickHouseSettings().max_rows_to_read,()=>3e6)),read_overflow_mode:"break",...this.getClickHouseSettings()}}).then(e=>e.json()).then(e=>e.data.map(e=>e.value)))}async getAllFields({databaseName:e,tableName:t,connectionId:a,metricName:n}){let r=[],i=await this.getColumns({databaseName:e,tableName:t,connectionId:a});for(let e of i)"JSON"!==e.type&&r.push({path:[e.name],type:e.type,jsType:ef(e.type)});let l=s(ev(i,["map","json"]),()=>[]);return await Promise.all(l.map(async i=>{if("json"===ef(i.type)){for(let s of(await this.getJSONKeys({databaseName:e,tableName:t,column:i.name,connectionId:a,metricName:n})))r.push({path:[i.name,s.key],type:s.chType,jsType:ef(s.chType)});return}let l=await this.getMapKeys({databaseName:e,tableName:t,column:i.name,connectionId:a,metricName:n}),u=s(o([i,"access",e=>e.type,"access",e=>e.match,"call",e=>e(/Map\(.+,\s*(.+)\)/),"optionalAccess",e=>e[1]]),()=>"String");for(let e of l)r.push({path:[i.name,e],type:u,jsType:ef(u)})})),r}async getTableMetadata({databaseName:e,tableName:t,connectionId:a}){let n=await this.queryTableMetadata({cache:this.cache,database:e,table:t,connectionId:a});return n.partition_key.startsWith("(")&&n.partition_key.endsWith(")")&&(n.partition_key=n.partition_key.slice(1,-1)),n}async getSetting({settingName:e,connectionId:t}){return this.cache.getOrFetch(`${t}.${e}`,async()=>{let a=eT` - SELECT name, value - FROM system.settings - WHERE name = ${{String:e}} - `;try{let e=await this.clickhouseClient.query({connectionId:t,query:a.sql,query_params:a.params,clickhouse_settings:this.getClickHouseSettings()}).then(e=>e.json());return e.data.length>0?e.data[0].value:void 0}catch(e){if(e instanceof Error&&e.message.includes("Not enough privileges"))return void console.warn("Not enough privileges to fetch settings:",e);throw e}})}async getSkipIndices({databaseName:e,tableName:t,connectionId:a}){return this.cache.getOrFetch(`${a}.${e}.${t}.skipIndices`,async()=>{let n=eT` - SELECT - name, - type, - type_full as typeFull, - expr as expression, - granularity - FROM system.data_skipping_indices - WHERE database = ${{String:e}} - AND table = ${{String:t}} - `;try{return(await this.clickhouseClient.query({connectionId:a,query:n.sql,query_params:n.params,clickhouse_settings:this.getClickHouseSettings()}).then(e=>e.json())).data}catch(e){if(e instanceof Error&&e.message.includes("Not enough privileges"))return console.warn("Not enough privileges to fetch skip indices:",e),[];throw e}})}async getOtelTables({connectionId:e}){return this.cache.getOrFetch(`${e}.otelTables`,async()=>{let t=["otel_logs","otel_traces","hyperdx_sessions","otel_metrics_gauge","otel_metrics_sum","otel_metrics_summary","otel_metrics_histogram","otel_metrics_exp_histogram"].map(e=>eT`${{String:e}}`),a=eT` - SELECT - database, - name - FROM system.tables - WHERE (database != 'system') - AND (name IN (${eS(",",t)})) - ORDER BY database, name - `;try{let t=await this.clickhouseClient.query({connectionId:e,query:a.sql,query_params:a.params,clickhouse_settings:this.getClickHouseSettings()}).then(e=>e.json());if(0===t.data.length)return null;let n=new Map;for(let e of t.data)n.has(e.database)||n.set(e.database,new Set),n.get(e.database).add(e.name);let r="",i=0;for(let[e,t]of n.entries()){let a=0;t.has("otel_logs")&&(a+=10),t.has("otel_traces")&&(a+=10),t.has("hyperdx_sessions")&&(a+=5),t.has("otel_metrics_gauge")&&(a+=2),t.has("otel_metrics_sum")&&(a+=2),t.has("otel_metrics_histogram")&&(a+=2),t.has("otel_metrics_summary")&&(a+=1),t.has("otel_metrics_exp_histogram")&&(a+=1),a>i&&(i=a,r=e)}if(!r)return null;let s=n.get(r);return{database:r,tables:{logs:s.has("otel_logs")?"otel_logs":void 0,traces:s.has("otel_traces")?"otel_traces":void 0,sessions:s.has("hyperdx_sessions")?"hyperdx_sessions":void 0,metrics:{gauge:s.has("otel_metrics_gauge")?"otel_metrics_gauge":void 0,sum:s.has("otel_metrics_sum")?"otel_metrics_sum":void 0,summary:s.has("otel_metrics_summary")?"otel_metrics_summary":void 0,histogram:s.has("otel_metrics_histogram")?"otel_metrics_histogram":void 0,expHistogram:s.has("otel_metrics_exp_histogram")?"otel_metrics_exp_histogram":void 0}}}}catch(e){if(e instanceof Error&&e.message.includes("Not enough privileges"))return console.warn("Not enough privileges to fetch tables:",e),null;throw e}})}static parseTokensExpression(e){let t=e.trim().match(/^tokens\s*\((.*)\)$/i);return t?{hasTokens:!0,innerExpression:t[1].trim()}:{hasTokens:!1}}async getValuesDistribution({chartConfig:e,key:t,samples:a=1e5,limit:n=100,source:r}){let i=T.pick.call(void 0,e,["connection","from","dateRange","filters","where","with"]);return this.cache.getOrFetch(`${d.G.call(void 0,i)}.${t}.valuesDistribution`,async()=>{let i={...e,with:[...e.with||[],{name:"tableStats",chartConfig:{...T.omit.call(void 0,e,["with","groupBy","orderBy","limit"]),select:`count() as total, greatest(CAST(total / ${a} AS UInt32), 1) as sample_factor`}}],filters:[...e.filters||[],{type:"sql",condition:`cityHash64(${e.timestampValueExpression}, rand()) % (SELECT sample_factor FROM tableStats) = 0`}],select:`${t} AS __hdx_value, count() as __hdx_count, __hdx_count / (sum(__hdx_count) OVER ()) * 100 AS __hdx_percentage`,orderBy:"__hdx_percentage DESC",groupBy:"__hdx_value",limit:{limit:n}},s=await ep(i,this,o([r,"optionalAccess",e=>e.querySettings]));return new Map((await this.clickhouseClient.query({query:s.sql,query_params:s.params,connectionId:e.connection,clickhouse_settings:{...this.getClickHouseSettings(),max_rows_to_group_by:`${10*n}`,group_by_overflow_mode:"any",max_rows_to_read:"0"}}).then(e=>e.json())).data.map(({__hdx_value:e,__hdx_percentage:t})=>[e,Number(t)]))})}async getKeyValues({chartConfig:e,keys:t,limit:a=20,disableRowLimit:n=!1,signal:r,source:i}){let s={...T.pick.call(void 0,e,["connection","from","dateRange","where","with","filters"]),keys:t,disableRowLimit:n};return this.cache.getOrFetch(`${d.G.call(void 0,s)}.getKeyValues`,async()=>{if(0===t.length)return[];let s=n?{...e,select:t.map((e,t)=>`groupUniqArray(${a})(${e}) AS param${t}`).join(", ")}:await (async()=>{let n=t.map((e,t)=>`${e} as param${t}`).join(", ")||"*";return{with:[{name:"sampledData",chartConfig:{...e,select:n,limit:{limit:this.getClickHouseSettings().max_rows_to_read?Number(this.getClickHouseSettings().max_rows_to_read):3e6}},isSubquery:!0}],select:t.map((e,t)=>`groupUniqArray(${a})(param${t}) AS param${t}`).join(", "),connection:e.connection,from:{databaseName:"",tableName:"sampledData"},where:""}})(),l=await ep(s,this,o([i,"optionalAccess",e=>e.querySettings]));return Object.entries(o([await this.clickhouseClient.query({query:l.sql,query_params:l.params,connectionId:e.connection,clickhouse_settings:n?void 0:{...this.getClickHouseSettings(),timeout_overflow_mode:"break",max_execution_time:15,max_rows_to_read:"0"},abort_signal:r}).then(e=>e.json()),"optionalAccess",e=>e.data,"optionalAccess",e=>e[0]])).map(([e,a])=>({key:t[parseInt(e.replace("param",""))],value:o([a,"optionalAccess",e=>e.filter,"call",e=>e(e=>null!=e&&""!==e)])}))})}async getKeyValuesWithMVs({chartConfig:e,keys:t,source:a,limit:n=20,disableRowLimit:r,signal:i}){let s={...T.pick.call(void 0,e,["connection","from","dateRange","where","with","filters"]),keys:t,disableRowLimit:r};return this.cache.getOrFetch(`${d.G.call(void 0,s)}.getKeyValuesWithMVs`,async()=>{if(0===t.length)return[];let s=a?await m.e.call(void 0,{chartConfig:e,keys:t,source:a,clickhouseClient:this.clickhouseClient,metadata:this,signal:i}):[{chartConfig:e,keys:t}];return(await Promise.all(s.map(async({chartConfig:e,keys:t})=>this.getKeyValues({chartConfig:e,keys:t,limit:n,disableRowLimit:r,signal:i,source:a})))).flat()})}},R=new S,b=t.K=e=>new _(e,R);function C(e){return e.replace(/\\"/g,'"').replace(/HDX_BACKSLASH_LITERAL/g,"\\").replace("http_COLON_//","http://").replace("https_COLON_//","https://").replace(/localhost_COLON_(\d{1,5})/,"localhost:$1").replace(/HDX_COLON/g,":")}function w(e){return N.default.parse(e.replace(/\\\\/g,"HDX_BACKSLASH_LITERAL").replace("http://","http_COLON_//").replace("https://","https_COLON_//").replace(/localhost:(\d{1,5})/,"localhost_COLON_$1").replace(/\\:/g,"HDX_COLON"))}function I(e){let t=(e=>{let t=e.indexOf("['");if(-1!==t)return{map:e.slice(0,t),key:e.slice(t+2,-2)}})(e);if(t)return A.default.format("mapContains(??, ?)",[t.map,t.key])}var $="";function x(e){return"term"in e&&null!=e.term}function O(e){return"inclusive"in e&&null!=e.inclusive}var v=["Int8","Int16","Int32","Int64","Int128","Int256","UInt8","UInt16","UInt32","UInt64","UInt128","UInt256","Float32","Float64"];async function L({field:e,metadata:t,databaseName:a,tableName:n,connectionId:r}){let i=e.split("."),s="";for(let e of i){s=s?`${s}.${e}`:e;let i=await t.getColumn({databaseName:a,tableName:n,column:s,connectionId:r});if(i)return i}}var F=class{constructor({metadata:e,databaseName:t,tableName:a,connectionId:n}){this.metadata=e,this.databaseName=t,this.tableName=a,this.connectionId=n}translateField(e,t){return e===$?s(t.implicitColumnExpression,()=>"event"):`'${e}'`}async getFieldType(e){let t=await L({field:e,metadata:this.metadata,databaseName:this.databaseName,tableName:this.tableName,connectionId:this.connectionId}),a=e.split(".").slice(t?t.name.split(".").length:0).join(".");if(!t)return{isArray:!1,type:null};let n=ef(t.type),r="array"===n;return r&&eE(t.type)&&(n=eE(t.type)),{isArray:r,type:n,fieldPostfix:a,column:t.name}}operator(e){switch(e){case"NOT":case"AND NOT":return"AND NOT";case"OR NOT":return"OR NOT";case"&&":case"":case"AND":return"AND";case"||":case"OR":return"OR";default:throw Error(`Unexpected operator. ${e}`)}}async eq(e,t,a,n){let{isArray:r}=await this.getFieldType(e);return`${this.translateField(e,n)} ${r?a?"does not contain":"contains":a?"is not":"is"} ${t}`}async isNotNull(e,t,a){let{isArray:n,type:r,fieldPostfix:i,column:s}=await this.getFieldType(e);return s&&n&&("map"===r||"json"===r)&&i?`${this.translateField(s,a)} ${t?`does not contain an element with non-null ${i}`:`contains an element with non-null ${i}`}`:`${this.translateField(e,a)} ${t?"is null":"is not null"}`}async gte(e,t,a){return`${this.translateField(e,a)} is greater than or equal to ${t}`}async lte(e,t,a){return`${this.translateField(e,a)} is less than or equal to ${t}`}async lt(e,t,a){return`${this.translateField(e,a)} is less than ${t}`}async gt(e,t,a){return`${this.translateField(e,a)} is greater than ${t}`}async fieldSearch(e,t,a,n,r,i){let s=t.trim().match(/\s/)?`"${t}"`:t;if(e===$){let t=!i.implicitColumnExpression;return`${this.translateField(e,i)} ${n&&r?a?"does not contain":"contains":n?a?"does not end with":"ends with":r?a?"does not start with":"starts with":t?a?"does not have whole word":"has whole word":a?"does not contain":"contains"} ${s}`}{let{isArray:t,type:n,column:r,fieldPostfix:o}=await this.getFieldType(e),l=t&&("map"===n||"json"===n),u=l&&r?r:e;return`${this.translateField(u,i)} ${l?a?`does not contain an element with key ${o} and value`:`contains an element with key ${o} and value`:t&&"bool"!==n&&"number"!==n?a?"does not contain an element containing":"contains an element containing":a?"does not contain":"contains"} ${s}`}}async range(e,t,a,n){return`${e} ${n?"is not":"is"} between ${t} and ${a}`}},q=t.M=u=class{constructor(){u.prototype.__init3.call(this)}__init3(){this.NOT_FOUND_QUERY="(1 = 0)"}operator(e){switch(e){case"NOT":case"AND NOT":return"AND NOT";case"OR NOT":return"OR NOT";case"&&":case"":case"AND":return"AND";case"||":case"OR":return"OR";default:throw Error(`Unexpected operator. ${e}`)}}async eq(e,t,a,n){let{column:r,columnJSON:i,found:s,propertyType:l,isArray:u,mapKeyIndexExpression:c,arrayMapKeyExpression:m}=await this.getColumnForField(e,n);if(!s)return this.NOT_FOUND_QUERY;if(r&&u)return D({column:r,mapKey:m,term:t,propertyType:l,isNegatedField:a,exactMatch:!0});let d=c&&!a?` AND ${c}`:"";if("bool"===l){let e=`${t}`.trim().toLowerCase();return A.default.format(`(?? ${a?"!":""}= ?${d})`,[r,"true"===e?1:"false"===e?0:parseInt(e)])}return"number"===l?A.default.format(`(${r} ${a?"!":""}= CAST(?, 'Float64')${d})`,[t]):"json"===l?A.default.format(`(${o([i,"optionalAccess",e=>e.string])} ${a?"!":""}= ?${d})`,[t]):A.default.format(`(${r} ${a?"!":""}= ?${d})`,[t])}async isNotNull(e,t,a){let{column:n,columnJSON:r,found:i,propertyType:s,mapKeyIndexExpression:l,isArray:u,arrayMapKeyExpression:c}=await this.getColumnForField(e,a);if(!i)return this.NOT_FOUND_QUERY;let m=l&&!t?` AND ${l}`:"";if(n&&u&&("map"===s||"json"===s)&&c){let e="map"===s?A.default.format("el[?]",[c]):A.default.format("el.??",[c]);return A.default.format(`${t?"NOT ":""}arrayExists(el -> notEmpty(toString(${e})) = 1, ?)`,[A.default.raw(n)])}return"json"!==s||u?`notEmpty(${n}) ${t?"!":""}= 1${m}`:`notEmpty(${o([r,"optionalAccess",e=>e.string])}) ${t?"!":""}= 1${m}`}async gte(e,t,a){let{column:n,columnJSON:r,found:i,propertyType:s,isArray:l,mapKeyIndexExpression:u}=await this.getColumnForField(e,a);if(!i)return this.NOT_FOUND_QUERY;if(l)throw Error(">= comparison is not supported for Array-type fields");let c=u?` AND ${u}`:"";return"json"===s?A.default.format(`(${o([r,"optionalAccess",e=>e.number])} >= ?${c})`,[t]):A.default.format(`(${n} >= ?${c})`,[t])}async lte(e,t,a){let{column:n,columnJSON:r,found:i,propertyType:s,isArray:l,mapKeyIndexExpression:u}=await this.getColumnForField(e,a);if(!i)return this.NOT_FOUND_QUERY;if(l)throw Error("<= comparison is not supported for Array-type fields");let c=u?` AND ${u}`:"";return"json"===s?A.default.format(`(${o([r,"optionalAccess",e=>e.number])} <= ?${c})`,[t]):A.default.format(`(${n} <= ?${c})`,[t])}async lt(e,t,a){let{column:n,columnJSON:r,found:i,propertyType:s,isArray:l,mapKeyIndexExpression:u}=await this.getColumnForField(e,a);if(!i)return this.NOT_FOUND_QUERY;if(l)throw Error("< comparison is not supported for Array-type fields");let c=u?` AND ${u}`:"";return"json"===s?A.default.format(`(${o([r,"optionalAccess",e=>e.number])} < ?${c})`,[t]):A.default.format(`(${n} < ?${c})`,[t])}async gt(e,t,a){let{column:n,columnJSON:r,found:i,propertyType:s,isArray:l,mapKeyIndexExpression:u}=await this.getColumnForField(e,a);if(!i)return this.NOT_FOUND_QUERY;if(l)throw Error("> comparison is not supported for Array-type fields");let c=u?` AND ${u}`:"";return"json"===s?A.default.format(`(${o([r,"optionalAccess",e=>e.number])} > ?${c})`,[t]):A.default.format(`(${n} > ?${c})`,[t])}attemptToParseNumber(e){let t=Number.parseFloat(e);return Number.isNaN(t)?e:t}tokenizeTerm(e){return e.split(/[ -/:-@[-`{-~\t\n\r]+/).filter(e=>e.length>0)}termHasSeparators(e){return null!=e.match(/[ -/:-@[-`{-~\t\n\r]+/)}async range(e,t,a,n,r){let{column:i,found:s,mapKeyIndexExpression:o,isArray:l}=await this.getColumnForField(e,r);if(!s)return this.NOT_FOUND_QUERY;if(l)throw Error("range comparison is not supported for Array-type fields");let u=o&&!n?` AND ${o}`:"";return A.default.format(`(${i} ${n?"NOT ":""}BETWEEN ? AND ?${u})`,[this.attemptToParseNumber(t),this.attemptToParseNumber(a)])}};function D({column:e,mapKey:t,term:a,isNegatedField:n,propertyType:r,exactMatch:i}){let s=n?"NOT ":"";if("number"===r)return A.default.format(`${s}has(?, CAST(?, 'Float64'))`,[A.default.raw(e),a]);if("bool"===r){let t=`${a}`.trim().toLowerCase(),n="true"===t?1:"false"===t?0:a;return A.default.format(`${s}has(?, ?)`,[A.default.raw(e),n])}if("map"===r){if(!t)throw Error(`Map key expression is required for searching column ${e}. Try '${e}.key:value'`);return i?A.default.format(`${s}arrayExists(el -> el[?] = ?, ?)`,[t,a,A.default.raw(e)]):A.default.format(`${s}arrayExists(el -> el[?] ILIKE ?, ?)`,[t,`%${a}%`,A.default.raw(e)])}if("json"===r){if(!t)throw Error(`Map key expression is required for searching column ${e}. Try '${e}.key:value'`);return i?A.default.format(`${s}arrayExists(el -> toString(el.??) = ?, ?)`,[t,a,A.default.raw(e)]):A.default.format(`${s}arrayExists(el -> toString(el.??) ILIKE ?, ?)`,[t,`%${a}%`,A.default.raw(e)])}let o="string"===r?"el":A.default.format("toString(el)",[A.default.raw(e)]);return i&&"string"===r?A.default.format(`${s}has(?, ?)`,[A.default.raw(e),a]):i?A.default.format(`${s}arrayExists(el -> ${o} = ?, ?)`,[a,A.default.raw(e)]):A.default.format(`${s}arrayExists(el -> ${o} ILIKE ?, ?)`,[`%${a}%`,A.default.raw(e)])}var U=class extends q{constructor({metadata:e,databaseName:t,tableName:a,connectionId:n,implicitColumnExpression:r}){super(),this.metadata=e,this.databaseName=t,this.tableName=a,this.implicitColumnExpression=r,this.connectionId=n,this.skipIndicesPromise=this.metadata.getSkipIndices({databaseName:t,tableName:a,connectionId:n}).catch(e=>(console.error("Error fetching skip indices:",e),[])),this.enableTextIndexPromise=this.metadata.getSetting({settingName:"enable_full_text_index",connectionId:n}).then(e=>"1"===e).catch(e=>(console.error("Error fetching enable_full_text_index setting:",e),!1))}async fieldSearch(e,t,a,n,r,i){let s=e===$,{column:l,columnJSON:u,found:c,propertyType:m,isArray:p,mapKeyIndexExpression:g,arrayMapKeyExpression:h}=await this.getColumnForField(e,i);if(!c)return this.NOT_FOUND_QUERY;let f=!g||a||s&&i.isNegatedAndParenthesized?"":` AND ${g}`;if(p)return D({column:l,mapKey:h,term:t,propertyType:m,isNegatedField:a,exactMatch:!1});if("bool"===m){let e=`${t}`.trim().toLowerCase();return A.default.format(`(?? ${a?"!":""}= ?${f})`,[l,"true"===e?1:"false"===e?0:parseInt(e)])}if("number"===m)return A.default.format(`(?? ${a?"!":""}= CAST(?, 'Float64')${f})`,[l,t]);if("json"===m)return A.default.format(`(${o([u,"optionalAccess",e=>e.string])} ${a?"NOT ":""}ILIKE ?${f})`,[`%${t}%`]);if(0===t.length)return"(1=1)";if(s){let e=!i.implicitColumnExpression;if(n||r)return A.default.format(`(lower(?) ${a?"NOT ":""}LIKE lower(?))`,[A.default.raw(l),`${n?"%":""}${t}${r?"%":""}`]);if(e){let e=await this.enableTextIndexPromise?await this.findTextIndex(l):void 0;if(e&&"splitByNonAlpha"===o([d.F.call(void 0,e),"optionalAccess",e=>e.type])){let e=this.tokenizeTerm(t),n=this.termHasSeparators(t),r=T.chunk.call(void 0,e,50),i=r.map(e=>A.default.format("hasAllTokens(?, ?)",[A.default.raw(l),e.join(" ")]));return n||r.length>1?`(${a?"NOT (":""}${[...i,A.default.format("(lower(?) LIKE lower(?))",[A.default.raw(l),`%${t}%`])].join(" AND ")}${a?")":""})`:`(${a?"NOT ":""}${i.join(" AND ")})`}let n=this.termHasSeparators(t),r=await this.findBloomFilterTokensIndex(l);if(r.found){let e=/\blower\s*\(/.test(r.indexExpression)?A.default.format("tokens(lower(?))",[t]):A.default.format("tokens(?)",[t]);return n?`(${a?"NOT (":""}${[`hasAll(${r.indexExpression}, ${e})`,A.default.format("(lower(?) LIKE lower(?))",[A.default.raw(l),`%${t}%`])].join(" AND ")}${a?")":""})`:`(${a?"NOT ":""}hasAll(${r.indexExpression}, ${e}))`}if(!n)return A.default.format(`(${a?"NOT ":""}hasToken(lower(?), lower(?)))`,[A.default.raw(l),t]);{let e=this.tokenizeTerm(t);return`(${a?"NOT (":""}${[...e.map(e=>A.default.format("hasToken(lower(?), lower(?))",[A.default.raw(l),e])),A.default.format("(lower(?) LIKE lower(?))",[A.default.raw(l),`%${t}%`])].join(" AND ")}${a?")":""})`}}}return A.default.format(`(${l} ${a?"NOT ":""}? ?${f})`,[A.default.raw("ILIKE"),`%${t}%`])}async buildColumnExpressionFromField(e){let t=await this.metadata.getColumn({databaseName:this.databaseName,tableName:this.tableName,column:e,connectionId:this.connectionId});if(t){let a={found:!0,columnType:t.type,columnExpression:t.name},n;try{n=await this.metadata.getMaterializedColumnsLookupTable({databaseName:this.databaseName,tableName:this.tableName,connectionId:this.connectionId})}catch(e){console.debug("Error in getMaterializedColumnsLookupTable",e),n=new Map}let r=(()=>{for(let[t,a]of n.entries())if(a===e)return{materializedTarget:t,materializedName:a}})();if(r){let e=I(r.materializedTarget);e&&(a.mapKeyIndexExpression=`indexHint(${e})`)}return a}let a=await L({field:e,metadata:this.metadata,databaseName:this.databaseName,tableName:this.tableName,connectionId:this.connectionId});if(a){let t=a.name.split("."),n=e.split(".").slice(t.length).join(".");if(a.type.startsWith("Map")){let e=o([a,"access",e=>e.type,"access",e=>e.match,"call",e=>e(/,\s+(\w+)\)$/),"optionalAccess",e=>e[1]]);return{found:!0,columnExpression:A.default.format("??[?]",[a.name,n]),mapKeyIndexExpression:`indexHint(${I(`${a.name}['${n}']`)})`,columnType:s(e,()=>"Unknown")}}if(a.type.startsWith("JSON"))return{found:!0,columnExpression:"",columnExpressionJSON:{string:A.default.format("toString(??)",[e]),number:A.default.format("dynamicType(??) in (?) and ??",[e,v,e])},columnType:"JSON"};if("String"===a.type){let e=n.split(".");return{found:!0,columnExpression:A.default.format(`JSONExtractString(??, ${Array(e.length).fill("?").join(",")})`,[a.name,...e]),columnType:"String"}}if(a.type.startsWith("Array"))return{found:!0,columnType:a.type,columnExpression:a.name,arrayMapKeyExpression:n};throw Error("Unsupported column type for prefix match")}return{found:!0,columnExpression:e,columnType:"Unknown"}}async findTextIndex(e){let t=await this.skipIndicesPromise;if(!(!t||0===t.length))return t.find(t=>"text"===t.type&&this.indexCoversColumn(t.expression,e))}async findBloomFilterTokensIndex(e){try{let t=await this.skipIndicesPromise;if(!t||0===t.length)return{found:!1};for(let a of t.filter(e=>"bloom_filter"===e.type)){let t=_.parseTokensExpression(a.expression);if(t.hasTokens&&this.indexCoversColumn(t.innerExpression,e))return{found:!0,indexExpression:a.expression}}return{found:!1}}catch(e){return console.warn("Failed to fetch skip indices:",e),{found:!1}}}indexCoversColumn(e,t){let a=e=>e.replace(/\s+/g,"").replace(/`/g,""),n=a(e),r=a(t);if(n===r)return!0;let i=n.match(/\w+/g),s=o([r,"access",e=>e.match,"call",e=>e(/\w+/),"optionalAccess",e=>e[0]]);return!!(s&&i&&i.includes(s))}async getColumnForField(e,t){let a=s(t.implicitColumnExpression,()=>this.implicitColumnExpression);if(e===$&&!a)throw Error("Can not search bare text without an implicit column set.");let n=e===$?a:e;if(e===$&&a===this.implicitColumnExpression){let e=d.e.call(void 0,n);return{column:e.length>1?`concatWithSeparator(';',${e.join(",")})`:n,columnJSON:void 0,propertyType:"string",found:!0}}let r=await this.buildColumnExpressionFromField(n),{type:i,isArray:l}=eA(r.columnType);return{column:r.columnExpression,columnJSON:o([r,"optionalAccess",e=>e.columnExpressionJSON]),propertyType:s(i,()=>void 0),isArray:l,found:r.found,mapKeyIndexExpression:r.mapKeyIndexExpression,arrayMapKeyExpression:l?r.arrayMapKeyExpression:void 0}}};async function M(e,t,a){let n="-"===e.field[0]?e.field.slice(1):e.field,r="-"===e.field[0],i=e.field===$;if(x(e)){let s=C(e.term);if(i&&"-"===e.prefix&&(r=!0),i||"-"!==e.prefix||(s=e.prefix+C(e.term)),e.quoted&&!i)return t.eq(n,s,r,a);if(!e.quoted&&"*"===s)return t.isNotNull(n,r,a);if(!e.quoted&&">="===s.substring(0,2))return r?t.lt(n,s.slice(2),a):t.gte(n,s.slice(2),a);if(!e.quoted&&"<="===s.substring(0,2))return r?t.gt(n,s.slice(2),a):t.lte(n,s.slice(2),a);if(!e.quoted&&">"===s[0])return r?t.lte(n,s.slice(1),a):t.gt(n,s.slice(1),a);if(!e.quoted&&"<"===s[0])return r?t.gte(n,s.slice(1),a):t.lt(n,s.slice(1),a);let o=!1,l=!1;return e.quoted||"*"!==s[0]||(o=!0,s=s.slice(1)),e.quoted||"*"!==s[s.length-1]||(l=!0,s=s.slice(0,-1)),t.fieldSearch(n,s,r,o,l,a)}if(O(e))return t.range(n,e.term_min,e.term_max,r,a);throw Error(`Unexpected Node type. ${e}`)}function k(e,t){if(!t.field||!t.parenthesized||t.field===$)return e;{let a=o([t,"access",e=>e.field,"optionalAccess",e=>e.startsWith,"call",e=>e("-")])?t.field.slice(1):t.field;return{...e,implicitColumnExpression:a,...P(t)?{isNegatedAndParenthesized:!0}:{}}}}function P(e){return e.parenthesized&&o([e,"access",e=>e.field,"optionalAccess",e=>e.startsWith,"call",e=>e("-")])}async function V(e,t,a){if(x(e)||O(e))return await M(e,t,a);if("right"in e&&null!=e.right){let n=t.operator(e.operator,a),r=e.parenthesized,i=k(a,e);return`${P(e)?"NOT ":""}${r?"(":""}${"start"in e&&e.start?`${e.start} `:""}${await V(e.left,t,i)} ${n} ${await V(e.right,t,i)}${r?")":""}`}if("left"in e&&null!=e.left&&!("right"in e&&null!=e.right)){let n=e.parenthesized,r=k(a,e);return`${P(e)?"NOT ":""}${n?"(":""}${null!=e.start?`${e.start} `:""}${await V(e.left,t,r)}${n?")":""}`}return""}async function H(e,t){return await V(e,t,{})}var W=class{constructor(e,t){this.conditions=[],this.searchQ=e,this.serializer=t}setSerializer(e){return this.serializer=e,this}getSerializer(){return this.serializer}async genSearchQuery(){if(!this.searchQ)return"";let e=w(this.searchQ);return await H(e,this.serializer)}and(e){return e&&e.trim()&&this.conditions.push(`(${e})`),this}async build(){let e=await this.genSearchQuery();return this.searchQ&&this.and(e),this.conditions.join(" AND ")}};async function B({query:e,metadata:t,tableConnection:a}){try{let{tableName:n,databaseName:r,connectionId:i}=a,s=w(e);if(s){let e=new F({metadata:t,tableName:n,databaseName:r,connectionId:i});return await V(s,e,{})}}catch(t){console.warn("Parse failure",e,t)}return`Message containing ${e}`}function j(e,t){return t||A.default.format("MetricName = ?",[e])}var K=t.b="__hdx_time_bucket";function G(e){return null!=e.groupBy&&e.groupBy.length>0}function Q(e){return null!=e.timestampValueExpression&&null!=e.granularity}var z=e=>null!=e.metricTables,Y=t.f=e=>Array.isArray(e.select)&&z(e)?{...e,select:e.select.map(e=>({...e,alias:e.alias||(e.isDelta?`${e.aggFn}(delta(${e.metricName}))`:`${e.aggFn}(${e.metricName})`)}))}:e,J=t.g=e=>{if(z(e)&&Array.isArray(e.select)){let t=[];for(let a of e.select)t.push({...e,select:[a]});return t}return[e]},X={"=":"!=",">":"<=","<":">=","!=":"=","<=":">",">=":"<"};function Z(e){return null!=e&&""!=e.trim()}var ee=({materializedFields:e,rawSQL:t})=>{try{let[a]=d.C.call(void 0,t),n=new f.Parser,r=n.astify(a,{database:"Postgresql"}),i=t=>{let a;if(null!=t){switch(t.type){case"column_ref":"string"!=typeof t.column&&(a=`${o([t,"access",e=>e.column,"optionalAccess",e=>e.expr,"access",e=>e.value])}['${o([t,"access",e=>e.array_index,"optionalAccess",e=>e[0],"optionalAccess",e=>e.index,"access",e=>e.value])}']`);break;case"binary_expr":if(Array.isArray(t.left))for(let e of t.left)i(e);else i(t.left);if(Array.isArray(t.right))for(let e of t.right)i(e);else i(t.right);break;case"function":if("expr_list"===o([t,"access",e=>e.args,"optionalAccess",e=>e.type]))if(Array.isArray(o([t,"access",e=>e.args,"optionalAccess",e=>e.value]))){for(let e of t.args.value)i(e);"column_ref"===o([t,"access",e=>e.args,"optionalAccess",e=>e.value,"optionalAccess",e=>e[0],"optionalAccess",e=>e.type])&&"single_quote_string"===o([t,"access",e=>e.args,"optionalAccess",e=>e.value,"optionalAccess",e=>e[1],"optionalAccess",e=>e.type])&&(a=`${o([t,"access",e=>e.name,"optionalAccess",e=>e.name,"optionalAccess",e=>e[0],"optionalAccess",e=>e.value])}(${o([t,"access",e=>e.args,"optionalAccess",e=>e.value,"optionalAccess",e=>e[0],"optionalAccess",e=>e.column,"access",e=>e.expr,"access",e=>e.value])}, '${o([t,"access",e=>e.args,"optionalAccess",e=>e.value,"optionalAccess",e=>e[1],"optionalAccess",e=>e.value])}')`)}else E.default.call(void 0,o([t,"access",e=>e.args,"optionalAccess",e=>e.value]))&&i(t.args.value)}if(a){let n=e.get(a);if(n){for(let e in t)t.hasOwnProperty(e)&&delete t[e];t.type="column_ref",t.table=null,t.column={expr:{type:"default",value:n}}}}}};if(Array.isArray(r.columns))for(let e of r.columns)i(e.expr);return i(r.where),n.sqlify(r)}catch(e){return t}},et=({fn:e,expr:t,level:a,where:n})=>{let r="any"===e,i="none"===e,o=e.startsWith("count"),l=Z(n),u={UNSAFE_RAW_SQL:r||i?`${t}`:`toFloat64OrDefault(toString(${t}))`},c=`${n} AND ${u.UNSAFE_RAW_SQL} IS NOT NULL`;if(e.endsWith("Merge")){let n=eT`${{UNSAFE_RAW_SQL:s(t,()=>"")}}`,r=a&&(e.startsWith("quantile")||e.startsWith("histogram"))?eT`(${{UNSAFE_RAW_SQL:Number.isFinite(a)?`${a}`:"0"}})`:[];return l?eT`${e}If${r}(${n}, ${{UNSAFE_RAW_SQL:c}})`:eT`${e}${r}(${n})`}if(e.endsWith("State"))return null==t||o?l?eT`${e}(${{UNSAFE_RAW_SQL:n}})`:eT`${e}()`:eT`${e}(${u}${l?eT`, ${{UNSAFE_RAW_SQL:c}}`:""})`;if("count"===e)return l?eT`${e}If(${{UNSAFE_RAW_SQL:n}})`:{sql:`${e}()`,params:{}};if("none"===e)return eT`${{UNSAFE_RAW_SQL:s(t,()=>"")}}`;if(null!=t)return"count_distinct"===e?eT`count${l?"If":""}(DISTINCT ${{UNSAFE_RAW_SQL:t}}${l?eT`, ${{UNSAFE_RAW_SQL:n}}`:""})`:null!=a?eT`${e}${l?"If":""}(${{UNSAFE_RAW_SQL:Number.isFinite(a)?`${a}`:"0"}})(${u}${l?eT`, ${{UNSAFE_RAW_SQL:c}}`:""})`:eT`${{UNSAFE_RAW_SQL:e}}${l?"If":""}( - ${u}${l?eT`, ${{UNSAFE_RAW_SQL:c}}`:""} - )`;throw Error("Column is required for all non-count aggregation functions")};async function ea(e,t,a){let n;if("string"==typeof e)return eT`${{UNSAFE_RAW_SQL:e}}`;try{n=o([t,"access",e=>e.with,"optionalAccess",e=>e.length])||!t.from.databaseName?void 0:await a.getMaterializedColumnsLookupTable({connectionId:t.connection,databaseName:t.from.databaseName,tableName:t.from.tableName})}catch(e){}let r="ratio"===t.seriesReturnType&&2===e.length,i=await Promise.all(e.map(async e=>{let r=await eo({condition:s(e.aggCondition,()=>""),from:t.from,language:s(e.aggConditionLanguage,()=>"lucene"),implicitColumnExpression:t.implicitColumnExpression,metadata:a,connectionId:t.connection,with:t.with}),i;i=null==e.aggFn?"lucene"===e.valueExpressionLanguage?await eo({condition:e.valueExpression,from:t.from,language:"lucene",implicitColumnExpression:t.implicitColumnExpression,metadata:a,connectionId:t.connection,with:t.with}):eT`${{UNSAFE_RAW_SQL:e.valueExpression}}`:e.aggFn.startsWith("quantile")||e.aggFn.startsWith("histogram")?et({fn:e.aggFn,expr:e.valueExpression,level:e.level,where:r.sql}):et({fn:e.aggFn,expr:e.valueExpression,where:r.sql});let o=`SELECT ${i.sql} FROM \`t\``;return n&&(i.sql=ee({materializedFields:n,rawSQL:o}).replace(/^SELECT\s+/i,"").replace(/\s+FROM `t`$/i,"")),eT`${i}${null!=e.alias&&""!==e.alias.trim()?eT` AS "${{UNSAFE_RAW_SQL:e.alias}}"`:[]}`}));return r?[eT`divide(${i[0]}, ${i[1]})`]:i}function en({interval:e,timestampValueExpression:t,dateRange:a,alias:n=K}){let r={UNSAFE_RAW_SQL:d.f.call(void 0,t)},i={UNSAFE_RAW_SQL:"auto"===e&&Array.isArray(a)?d.l.call(void 0,a):e};return eT`toStartOfInterval(toDateTime(${r}), INTERVAL ${i}) AS \`${{UNSAFE_RAW_SQL:n}}\``}async function er({connectionId:e,databaseName:t,dateRange:a,dateRangeEndInclusive:n,dateRangeStartInclusive:r,includedDataInterval:i,metadata:s,tableName:l,timestampValueExpression:u,with:c}){let m=a[0].getTime(),p=a[1].getTime(),g=u;try{if(t&&l&&e){let{primary_key:a}=await s.getTableMetadata({databaseName:t,tableName:l,connectionId:e});g=d.z.call(void 0,u,a)}}catch(e){console.warn("Failed to optimize timestampValueExpression",e)}let h=d.e.call(void 0,g);return eS("AND",...await Promise.all(h.map(async a=>{let u=a.trim(),g=d.y.call(void 0,u),h=o([c,"optionalAccess",e=>e.length])||g?null:await s.getColumn({databaseName:t,tableName:l,column:u,connectionId:e}),f={UNSAFE_RAW_SQL:u};null!=h||o([c,"optionalAccess",e=>e.length])||g||console.warn(`Column ${u} not found in ${t}.${l} while inferring type for time filter`);let y=i?eT`toStartOfInterval(fromUnixTimestamp64Milli(${{Int64:m}}), INTERVAL ${i}) - INTERVAL ${i}`:g?eT`${g.function}(fromUnixTimestamp64Milli(${{Int64:m}})${g.formattedRemainingArgs})`:eT`fromUnixTimestamp64Milli(${{Int64:m}})`,E=i?eT`toStartOfInterval(fromUnixTimestamp64Milli(${{Int64:p}}), INTERVAL ${i}) + INTERVAL ${i}`:g?eT`${g.function}(fromUnixTimestamp64Milli(${{Int64:p}})${g.formattedRemainingArgs})`:eT`fromUnixTimestamp64Milli(${{Int64:p}})`;return"Date"===o([h,"optionalAccess",e=>e.type])?eT`(${f} ${r?">=":">"} toDate(${y}) AND ${f} ${n?"<=":"<"} toDate(${E}))`:eT`(${f} ${r?">=":">"} ${y} AND ${f} ${n?"<=":"<"} ${E})`})))}async function ei(e,t){let a=Q(e),n=G(e);return eS(",",await ea(e.select,e,t),n&&!1!==e.selectGroupBy?await ea(e.groupBy,e,t):[],a?en({interval:e.granularity,timestampValueExpression:e.timestampValueExpression,dateRange:e.dateRange}):[])}function es({from:e}){return eS(".",eT`${""===e.databaseName?"":{Identifier:e.databaseName}}`,eT`${{Identifier:e.tableName}}`)}async function eo({condition:e,language:t,metadata:a,from:n,implicitColumnExpression:r,connectionId:i,with:s}){let l,u=e;if("lucene"===t){let t=new U({metadata:a,databaseName:n.databaseName,tableName:n.tableName,implicitColumnExpression:r,connectionId:i});u=await new W(e,t).build()}try{l=o([s,"optionalAccess",e=>e.length])||!n.databaseName?void 0:await a.getMaterializedColumnsLookupTable({connectionId:i,databaseName:n.databaseName,tableName:n.tableName})}catch(e){}let c="SELECT * FROM `t` WHERE ",m=`${c}${u}`;return l&&(u=ee({materializedFields:l,rawSQL:m}).replace(c,"")),eT`${{UNSAFE_RAW_SQL:u}}`}async function el(e,t){let a=[];Z(e.where)&&(a=e_(await eo({condition:e.where,from:e.from,language:s(e.whereLanguage,()=>"sql"),implicitColumnExpression:e.implicitColumnExpression,metadata:t,connectionId:e.connection,with:e.with}),"(",")"));let n=[];"string"!=typeof e.select&&e.select.every(e=>Z(e.aggCondition))&&(n=(await Promise.all(e.select.map(async a=>Z(a.aggCondition)?await eo({condition:a.aggCondition,from:e.from,language:s(a.aggConditionLanguage,()=>"sql"),implicitColumnExpression:e.implicitColumnExpression,metadata:t,connectionId:e.connection,with:e.with}):null))).filter(e=>null!==e));let r=await Promise.all(s(e.filters,()=>[]).map(async a=>{if("sql_ast"===a.type)return e_(eT`${{UNSAFE_RAW_SQL:a.left}} ${a.operator} ${{UNSAFE_RAW_SQL:a.right}}`,"(",")");if("lucene"===a.type||"sql"===a.type)return e_(await eo({condition:a.condition,from:e.from,language:a.type,implicitColumnExpression:e.implicitColumnExpression,metadata:t,connectionId:e.connection,with:e.with}),"(",")");throw Error(`Unknown filter type: ${a.type}`)}));return eS(" AND ",null!=e.dateRange&&null!=e.timestampValueExpression?await er({timestampValueExpression:e.timestampValueExpression,dateRange:e.dateRange,dateRangeStartInclusive:s(e.dateRangeStartInclusive,()=>!0),dateRangeEndInclusive:s(e.dateRangeEndInclusive,()=>!0),metadata:t,connectionId:e.connection,databaseName:e.from.databaseName,tableName:e.from.tableName,with:e.with,includedDataInterval:e.includedDataInterval}):[],a,e_(eS(" OR ",n),"(",")"),e_(eS("OR"===e.filtersLogicalOperator?" OR ":" AND ",...r),"(",")"))}async function eu(e,t){return eS(",",G(e)?await ea(e.groupBy,e,t):[],Q(e)?en({interval:e.granularity,timestampValueExpression:e.timestampValueExpression,dateRange:e.dateRange}):[])}async function ec(e,t){if(Z(e.having))return await eo({condition:e.having,from:e.from,language:s(e.havingLanguage,()=>"sql"),implicitColumnExpression:e.implicitColumnExpression,metadata:t,connectionId:e.connection,with:e.with})}async function em(e,t,a){let{with:n}=e;if(n)return eS(",",await Promise.all(n.map(async e=>{let{sql:n,chartConfig:r}=e;if(n&&r)throw Error("cannot specify both 'sql' and 'chartConfig' in with clause");if(!(n||r))throw Error("must specify either 'sql' or 'chartConfig' in with clause");if(n&&!p.p.safeParse(n).success)throw Error("non-conforming sql object in CTE");if(r&&!p.J.safeParse(r).success)throw Error(`non-conforming chartConfig object in CTE: ${p.J.safeParse(r).error}`);let i=n||await ep(r,t,a);return!1===e.isSubquery?eT`(${i}) AS ${{Identifier:e.name}}`:eT`${e.name} AS (${i})`})))}async function ed(e,t){let a=e.metricTables;if(!a)return e;let{select:n,from:r,filters:i,where:o,...l}=e;if(!n||!Array.isArray(n))throw Error("multi select or string select on metrics not supported");let{metricType:u,metricName:c,metricNameSql:m,...p}=n[0];if("gauge"===u&&c){var g;let n,o,u,h,f="__hdx_time_bucket2",y=en({interval:e.granularity||"auto",timestampValueExpression:e.timestampValueExpression||"TimeUnix",dateRange:e.dateRange,alias:f}),E=await el({...e,from:{...r,tableName:a.gauge},filters:[...s(i,()=>[]),{type:"sql",condition:j(c,m)}]},t),A=p.isDelta?(g="Value",n="auto"===e.granularity&&Array.isArray(e.dateRange)?d.l.call(void 0,e.dateRange):e.granularity,o=d.m.call(void 0,s(n,()=>"")),u=`(argMax(${g}, ${e.timestampValueExpression}) - argMin(${g}, ${e.timestampValueExpression}))`,h=`date_diff('second', min(toDateTime(${e.timestampValueExpression})), max(toDateTime(${e.timestampValueExpression})))`,`IF(${h} > 0, ${u} * ${o} / ${h}, 0)`):"last_value(Value)";return{...l,with:[{name:"Source",sql:eT` - SELECT - *, - cityHash64(mapConcat(ScopeAttributes, ResourceAttributes, Attributes)) AS AttributesHash - FROM ${es({from:{...r,tableName:a.gauge}})} - WHERE ${E} - `},{name:"Bucketed",sql:eT` - SELECT - ${y}, - AttributesHash, - ${A} AS LastValue, - any(ScopeAttributes) AS ScopeAttributes, - any(ResourceAttributes) AS ResourceAttributes, - any(Attributes) AS Attributes, - any(ResourceSchemaUrl) AS ResourceSchemaUrl, - any(ScopeName) AS ScopeName, - any(ScopeVersion) AS ScopeVersion, - any(ScopeDroppedAttrCount) AS ScopeDroppedAttrCount, - any(ScopeSchemaUrl) AS ScopeSchemaUrl, - any(ServiceName) AS ServiceName, - any(MetricDescription) AS MetricDescription, - any(MetricUnit) AS MetricUnit, - any(StartTimeUnix) AS StartTimeUnix, - any(Flags) AS Flags - FROM Source - GROUP BY AttributesHash, ${f} - ORDER BY AttributesHash, ${f} - `}],select:[{...p,valueExpression:"LastValue",aggCondition:""}],from:{databaseName:"",tableName:"Bucketed"},where:"",timestampValueExpression:f,settings:eT`short_circuit_function_evaluation = 'force_enable'`}}if("sum"===u&&c){let n="__hdx_time_bucket2",o="`__hdx_value_high`",u="`__hdx_value_high_prev`",g=en({interval:e.granularity||"auto",timestampValueExpression:e.timestampValueExpression||"TimeUnix",dateRange:e.dateRange,alias:n}),h=await el({...e,from:{...r,tableName:a.sum},filters:[...s(i,()=>[]),{type:"sql",condition:j(c,m)}],includedDataInterval:"auto"===e.granularity&&Array.isArray(e.dateRange)?d.l.call(void 0,e.dateRange):e.granularity},t);return{...l,with:[{name:"Source",sql:eT` - SELECT - *, - cityHash64(mapConcat(ScopeAttributes, ResourceAttributes, Attributes)) AS AttributesHash, - IF(AggregationTemporality = 1, - SUM(Value) OVER (PARTITION BY AttributesHash ORDER BY AttributesHash, TimeUnix ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), - IF(IsMonotonic = 0, - Value, - deltaSum(Value) OVER (PARTITION BY AttributesHash ORDER BY AttributesHash, TimeUnix ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) - ) - ) AS Rate, - IF(AggregationTemporality = 1, Rate, Value) AS Sum - FROM ${es({from:{...r,tableName:a.sum}})} - WHERE ${h}`},{name:"Bucketed",sql:eT` - SELECT - ${g}, - AttributesHash, - last_value(Source.Rate) AS ${o}, - any(${o}) OVER(PARTITION BY AttributesHash ORDER BY \`${n}\` ROWS BETWEEN 1 PRECEDING AND 1 PRECEDING) AS ${u}, - IF(IsMonotonic = 1, ${o} - ${u}, ${o}) AS Rate, - last_value(Source.Sum) AS Sum, - any(ResourceAttributes) AS ResourceAttributes, - any(ResourceSchemaUrl) AS ResourceSchemaUrl, - any(ScopeName) AS ScopeName, - any(ScopeVersion) AS ScopeVersion, - any(ScopeAttributes) AS ScopeAttributes, - any(ScopeDroppedAttrCount) AS ScopeDroppedAttrCount, - any(ScopeSchemaUrl) AS ScopeSchemaUrl, - any(ServiceName) AS ServiceName, - any(MetricName) AS MetricName, - any(MetricDescription) AS MetricDescription, - any(MetricUnit) AS MetricUnit, - any(Attributes) AS Attributes, - any(StartTimeUnix) AS StartTimeUnix, - any(Flags) AS Flags, - any(AggregationTemporality) AS AggregationTemporality, - any(IsMonotonic) AS IsMonotonic - FROM Source - GROUP BY AttributesHash, \`${n}\` - ORDER BY AttributesHash, \`${n}\` - `}],select:[p.aggFn?{alias:"Value",...p,valueExpression:"Rate",aggCondition:""}:{alias:"Value",...p,valueExpression:"last_value(Sum)",aggCondition:""}],from:{databaseName:"",tableName:"Bucketed"},where:"",timestampValueExpression:`\`${n}\``}}if("histogram"===u&&c){let{alias:n}=p,o=n||"Value",u={...e,from:{...r,tableName:a.histogram},filters:[...s(i,()=>[]),{type:"sql",condition:j(c,m)}],includedDataInterval:"auto"===e.granularity&&Array.isArray(e.dateRange)?d.l.call(void 0,e.dateRange):e.granularity},g=Q(u)?en({interval:u.granularity,timestampValueExpression:u.timestampValueExpression,dateRange:u.dateRange}):eT``,h=await el(u,t),f;return G(e)&&(f=eS(",",await ea(e.groupBy,e,t))),{...l,with:eq({select:p,timeBucketSelect:g.sql?eT`${g}`:"TimeUnix AS `__hdx_time_bucket`",groupBy:f,from:es({from:{...r,tableName:a.histogram}}),where:h,valueAlias:o}),select:`\`__hdx_time_bucket\`${f?", group":""}, "${o}"`,from:{databaseName:"",tableName:"metrics"},where:"",groupBy:void 0,granularity:void 0,timestampValueExpression:"`__hdx_time_bucket`",settings:eT`short_circuit_function_evaluation = 'force_enable'`}}throw Error(`no query support for metric type=${u}`)}async function ep(e,t,a){let n,r=z(e)?await ed(e,t):e,i=await em(r,t,a),l=await ei(r,t),u=es(r),c=await el(r,t),m=await eu(r,t),p=await ec(r,t),g=function(e){let t=Q(e);if(!(null==e.orderBy&&!t)){var a;return eS(",",t?en({interval:e.granularity,timestampValueExpression:e.timestampValueExpression,dateRange:e.dateRange}):[],null!=e.orderBy?"string"==typeof(a=e.orderBy)?eT`${{UNSAFE_RAW_SQL:a}}`:a.map(e=>eT`${{UNSAFE_RAW_SQL:e.valueExpression}} ${"DESC"===e.ordering?"DESC":"ASC"}`):[])}}(r),h=function(e){if(null==e.limit||null==e.limit.limit)return;let t=null!=e.limit.offset?eT` OFFSET ${{Int32:e.limit.offset}}`:[];return eT`${{Int32:e.limit.limit}}${t}`}(r),f=(n=d.E.call(void 0,a),eS(", ",[eT`${s(r.settings,()=>"")}`,eT`${s(n,()=>"")}`]));return eS(" ",[eT`${o([i,"optionalAccess",e=>e.sql])?eT`WITH ${i}`:""}`,eT`SELECT ${l}`,eT`FROM ${u}`,eT`${c.sql?eT`WHERE ${c}`:""}`,eT`${o([m,"optionalAccess",e=>e.sql])?eT`GROUP BY ${m}`:""}`,eT`${o([p,"optionalAccess",e=>e.sql])?eT`HAVING ${p}`:""}`,eT`${o([g,"optionalAccess",e=>e.sql])?eT`ORDER BY ${g}`:""}`,eT`${o([h,"optionalAccess",e=>e.sql])?eT`LIMIT ${h}`:""}`,eT`${f.sql?eT`SETTINGS ${f}`:[]}`])}var eg=((n=eg||{}).Array="array",n.Date="date",n.Map="map",n.Number="number",n.String="string",n.Tuple="tuple",n.Bool="bool",n.JSON="json",n.Dynamic="dynamic",n),eh=t.m=e=>{let t={};return e.headers.forEach((e,a)=>{t[a]=e}),t},ef=t.n=e=>e.startsWith("Date")?"date":e.startsWith("Tuple")?"tuple":e.startsWith("Map")?"map":e.startsWith("Array")?"array":e.startsWith("Int")||e.startsWith("UInt")||e.startsWith("Float")||e.startsWith("Nullable(Int")||e.startsWith("Nullable(UInt")||e.startsWith("Nullable(Float")?"number":e.startsWith("String")||e.startsWith("Nullable(String)")||e.startsWith("FixedString")||e.startsWith("Enum")||e.startsWith("UUID")||e.startsWith("IPv4")||e.startsWith("IPv6")?"string":"Bool"===e?"bool":e.startsWith("JSON")?"json":e.startsWith("Dynamic")?"dynamic":e.startsWith("LowCardinality")?ef(e.slice(15,-1)):null,ey=t.o=e=>"map"===e||"array"===e||"json"===e||"tuple"===e||"dynamic"===e,eE=t.p=e=>e.trim().startsWith("Array(")&&e.trim().endsWith(")")?ef(e.trim().slice(6,-1)):null,eA=t.q=e=>{let t=ef(e),a="array"===t;if("map"===t||"tuple"===t)throw Error("Map or Tuple types cannot be searched with Lucene.");return"date"===t?t="number":"array"===t&&eE(e)&&(t=eE(e)),{type:t,isArray:a}},eN=e=>`HYPERDX_PARAM_${Math.abs(d.k.call(void 0,`${e}`))}`,eT=t.r=(e,...t)=>({sql:e.map((e,a)=>{let n=t[a];return e+(null==n?"":"string"==typeof n?n:"UNSAFE_RAW_SQL"in n?n.UNSAFE_RAW_SQL:Array.isArray(n)?n.map(e=>e.sql).join(""):"sql"in n?n.sql:"Identifier"in n?`{${eN(n.Identifier)}:Identifier}`:"String"in n?`{${eN(n.String)}:String}`:"Float32"in n?`{${eN(n.Float32)}:Float32}`:"Float64"in n?`{${eN(n.Float64)}:Float64}`:"Int32"in n?`{${eN(n.Int32)}:Int32}`:"Int64"in n?`{${eN(n.Int64)}:Int64}`:"")}).join(""),params:t.reduce((e,t)=>({...e,...null==t||"string"==typeof t||"UNSAFE_RAW_SQL"in t?{}:Array.isArray(t)?t.reduce((e,t)=>(Object.assign(e,t.params),e),{}):"params"in t?t.params:"Identifier"in t?{[eN(t.Identifier)]:t.Identifier}:"String"in t?{[eN(t.String)]:t.String}:"Float32"in t?{[eN(t.Float32)]:t.Float32}:"Float64"in t?{[eN(t.Float64)]:t.Float64}:"Int32"in t?{[eN(t.Int32)]:t.Int32}:"Int64"in t?{[eN(t.Int64)]:t.Int64}:{}}),{})}),eS=t.s=(e,...t)=>t.reduce((t,a)=>{if(Array.isArray(a)){if(0===a.length)return t;t.sql+=(t.sql.length>0?e:"")+a.map(e=>e.sql).filter(Boolean).join(e),t.params=a.reduce((e,t)=>(Object.assign(e,t.params),e),t.params)}else a.sql.length>0&&(t.sql+=`${t.sql.length>0?e:""}${a.sql}`,Object.assign(t.params,a.params));return t},{sql:"",params:{}}),e_=t.t=(e,t,a)=>(Array.isArray(e)?e.every(e=>0===e.sql.length):0===e.sql.length)?[]:eT`${t}${e}${a}`,eR=t.u=class extends Error{constructor(e,t){super(e),this.query=t,this.name="ClickHouseQueryError"}},eb=t.v=e=>{let t=new h.Parser,a=d.e.call(void 0,e);return o([a,"optionalAccess",e=>e.length])?a.flatMap(e=>{try{let a=/\b[a-zA-Z0-9_]+\[([0-9]+|'[^']*')\]/g,n=e.match(a)||[],r=e.replace(a,"''").replace(/\.:[a-zA-Z0-9]+/g,""),i=/\b[a-zA-Z0-9_]+\.[a-zA-Z0-9_.]+/g,s=r.match(i)||[],o=r.replace(i,"''"),l=t.columnList(`select ${o}`).map(e=>e.split("::")[2]);return[...new Set([...l,...s,...n])]}catch(t){return console.error("Error parsing column references from key",t,e),[]}}):[]},eC=e=>"string"==typeof e?""===e.trim()?NaN:Number(e):e,ew=t.w=(e,t)=>{let a=eC(e),n=eC(t);return isNaN(a)||isNaN(n)||0===n?NaN:a/n},eI=t.x=e=>{let t=e.meta,a=e.data,n=eL(s(t,()=>[])),r=o([t,"optionalAccess",e=>e.filter,"call",e=>e(e=>e.name!==o([n,"optionalAccess",e=>e.name]))]),i=o([r,"optionalAccess",e=>e[0]]),l=o([r,"optionalAccess",e=>e[1]]);if(!i||!l)throw Error(`Unable to compute ratio - meta information: ${JSON.stringify(t)}.`);let u=`${i.name}/${l.name}`;return{...e,data:a.map(e=>({[u]:ew(e[i.name],e[l.name]),...n?{[n.name]:e[n.name]}:{}})),meta:[{name:u,type:"Float64"},...n?[{name:n.name,type:n.type}]:[]]}},e$=t.y=c=class{__init4(){this.requestTimeout=36e5}constructor({host:e,username:t,password:a,queryTimeout:n,application:r,requestTimeout:i}){c.prototype.__init4.call(this),this.host=e,this.username=t,this.password=a,this.queryTimeout=n,this.maxRowReadOnly=!1,this.application=r,null!=i&&i>=0&&(this.requestTimeout=i)}getClient(){if(!this.client)throw Error("ClickHouse client not initialized. Child classes must initialize the client.");return this.client}logDebugQuery(e,t={}){let a="";try{a=eO({sql:e,params:t})}catch(t){a=e}console.debug("--------------------------------------------------------"),console.debug("Sending Query:",a),console.debug("--------------------------------------------------------")}processClickhouseSettings(e){let t=structuredClone(e||{});return o([t,"optionalAccess",e=>e.max_rows_to_read])&&this.maxRowReadOnly&&delete t.max_rows_to_read,void 0===o([t,"optionalAccess",e=>e.max_execution_time])&&(this.queryTimeout||0)>0&&(t.max_execution_time=this.queryTimeout),{allow_experimental_analyzer:1,date_time_output_format:"iso",wait_end_of_query:0,cancel_http_readonly_queries_on_client_close:1,...t}}async query(e){let t=0;for(;t<2;){try{return await this.__query(e)}catch(t){if(!this.maxRowReadOnly&&"READONLY"===t.type&&t.message.includes("max_rows_to_read"))this.maxRowReadOnly=!0;else{let a=t;try{let n="";try{n=eO({sql:e.query,params:s(e.query_params,()=>({}))})}catch(t){n=e.query}(a=new eR(t.message,n)).cause=t}catch(e){}throw a}}t++}throw Error("ClickHouseClient query impossible codepath")}async queryChartConfig({config:e,metadata:t,opts:a,querySettings:n}){e=Y(e);let r=await Promise.all(J(e).map(e=>ep(e,t,n))),i="line"===e.displayType,l=await Promise.all(r.map(async t=>(await this.query({query:t.sql,query_params:t.params,format:"JSON",abort_signal:o([a,"optionalAccess",e=>e.abort_signal]),connectionId:e.connection,clickhouse_settings:o([a,"optionalAccess",e=>e.clickhouse_settings])})).json()));if(1===l.length)return l[0];if(l.length>1){let t=new Map,a=new Map;for(let e of l){if(Array.isArray(e.meta))for(let a of e.meta){let e=a.name;t.has(e)||t.set(e,a)}let n=eL(s(e.meta,()=>[])),r=o([eF,"call",t=>t(s(e.meta,()=>[])),"optionalAccess",e=>e[0],"optionalAccess",e=>e.name]);for(let t of e.data){let e=r?Object.fromEntries(Object.entries(t).filter(([e])=>e!==r)):{...t},s=null!=n?t[n.name]:i?y.default.call(void 0,e):"__FIXED_TIMESTAMP__";if(a.has(s)){let e=a.get(s);a.set(s,{...e,...t})}else a.set(s,t)}}let n="ratio"===e.seriesReturnType&&2===l.length,r={meta:Array.from(t.values()),data:Array.from(a.values())};return n?eI(r):r}throw Error("No result sets")}async testChartConfigValidity({config:e,metadata:t,opts:a,querySettings:n}){try{let r=await ep(e,t,n),i=eT`EXPLAIN ESTIMATE ${r}`,s=await (await this.query({query:i.sql,query_params:i.params,format:"JSON",abort_signal:o([a,"optionalAccess",e=>e.abort_signal]),connectionId:e.connection,clickhouse_settings:o([a,"optionalAccess",e=>e.clickhouse_settings])})).json(),l=Number(o([s,"access",e=>e.data,"access",e=>e[0],"optionalAccess",e=>e.rows]));return{isValid:!0,rowEstimate:Number.isNaN(l)?void 0:l}}catch(e){return{isValid:!1,error:e instanceof eR?e.message:"Error while constructing materialized view query"}}}},ex=t.z=({database:e,table:t})=>eT`${{Identifier:e}}.${{Identifier:t}}`;function eO({sql:e,params:t}){return Object.entries(t).reduce((e,[t,a])=>e.replace(RegExp(`{${t}:\\w+}`,"g"),a),e)}function ev(e,t){return e.filter(e=>{let a=ef(e.type);return null!=a&&t.includes(a)})}function eL(e){return o([ev,"call",t=>t(e,["date"]),"optionalAccess",e=>e[0]])}function eF(e){return ev(e,["number"])}var eq=({select:e,...t})=>{if("quantile"===e.aggFn){if(!("level"in e)||null===e.level)throw Error("quantile must have a level");return eU({...t,level:e.level})}if("count"===e.aggFn)return eD(t);throw Error(`${e.aggFn} is not supported for histograms currently`)},eD=({timeBucketSelect:e,groupBy:t,from:a,where:n,valueAlias:r})=>[{name:"source",sql:eT` - SELECT - TimeUnix, - AggregationTemporality, - ${e}, - ${t?eT`[${t}] AS group,`:""} - cityHash64(mapConcat(ScopeAttributes, ResourceAttributes, Attributes)) AS attr_hash, - cityHash64(ExplicitBounds) AS bounds_hash, - toInt64(Count) AS current_count, - lagInFrame(toNullable(current_count), 1, NULL) OVER ( - PARTITION BY ${t?"group, ":""} attr_hash, bounds_hash, AggregationTemporality - ORDER BY TimeUnix - ) AS prev_count, - CASE - WHEN AggregationTemporality = 1 THEN current_count - WHEN AggregationTemporality = 2 THEN greatest(0, current_count - coalesce(prev_count, 0)) - ELSE 0 - END AS delta - FROM ${a} - WHERE ${n} - `},{name:"metrics",sql:eT` - SELECT - \`__hdx_time_bucket\`, - ${t?"group,":""} - sum(delta) AS "${r}" - FROM source - GROUP BY ${t?"group, ":""}\`__hdx_time_bucket\` - `}],eU=({timeBucketSelect:e,groupBy:t,from:a,where:n,valueAlias:r,level:i})=>[{name:"source",sql:eT` - SELECT - MetricName, - ExplicitBounds, - ${e}, - ${t?eT`[${t}] as group,`:""} - sumForEach(deltas) as rates - FROM ( - SELECT - TimeUnix, - MetricName, - ResourceAttributes, - Attributes, - ExplicitBounds, - attr_hash, - any(attr_hash) OVER (ROWS BETWEEN 1 preceding AND 1 preceding) AS prev_attr_hash, - any(bounds_hash) OVER (ROWS BETWEEN 1 preceding AND 1 preceding) AS prev_bounds_hash, - any(counts) OVER (ROWS BETWEEN 1 preceding AND 1 preceding) AS prev_counts, - counts, - IF( - AggregationTemporality = 1 ${""} - OR prev_attr_hash != attr_hash ${""} - OR bounds_hash != prev_bounds_hash ${""} - OR arrayExists((x) -> x.2 < x.1, arrayZip(prev_counts, counts)), ${""} - counts, - counts - prev_counts - ) AS deltas - FROM ( - SELECT - TimeUnix, - MetricName, - AggregationTemporality, - ExplicitBounds, - ResourceAttributes, - Attributes, - cityHash64(mapConcat(ScopeAttributes, ResourceAttributes, Attributes)) AS attr_hash, - cityHash64(ExplicitBounds) AS bounds_hash, - CAST(BucketCounts AS Array(Int64)) counts - FROM ${a} - WHERE ${n} - ORDER BY attr_hash, TimeUnix ASC - ) - ) - GROUP BY \`__hdx_time_bucket\`, MetricName, ${t?"group, ":""}ExplicitBounds - ORDER BY \`__hdx_time_bucket\` - `},{name:"points",sql:eT` - SELECT - \`__hdx_time_bucket\`, - MetricName, - ${t?"group,":""} - arrayZipUnaligned(arrayCumSum(rates), ExplicitBounds) as point, - length(point) as n - FROM source - `},{name:"metrics",sql:eT` - SELECT - \`__hdx_time_bucket\`, - MetricName, - ${t?"group,":""} - point[n].1 AS total, - ${{Float64:i}} * total AS rank, - arrayFirstIndex(x -> if(x.1 > rank, 1, 0), point) AS upper_idx, - point[upper_idx].1 AS upper_count, - ifNull(point[upper_idx].2, inf) AS upper_bound, - CASE - WHEN upper_idx > 1 THEN point[upper_idx - 1].2 - WHEN point[upper_idx].2 > 0 THEN 0 - ELSE inf - END AS lower_bound, - if ( - lower_bound = 0, - 0, - point[upper_idx - 1].1 - ) AS lower_count, - CASE - WHEN upper_bound = inf THEN point[upper_idx - 1].2 - WHEN lower_bound = inf THEN point[1].2 - ELSE lower_bound + (upper_bound - lower_bound) * ((rank - lower_count) / (upper_count - lower_count)) - END AS "${r}" - FROM points - WHERE length(point) > 1 AND total > 0 - `}];t.a=eq,t.b=K,t.c=G,t.d=Q,t.e=z,t.f=Y,t.g=J,t.h=function(e){return{...e,operator:X[e.operator]}},t.i=Z,t.j=er,t.k=ep,t.l=eg,t.m=eh,t.n=ef,t.o=ey,t.p=eE,t.q=eA,t.r=eT,t.s=eS,t.t=e_,t.u=eR,t.v=eb,t.w=ew,t.x=eI,t.y=e$,t.z=ex,t.A=eO,t.B=function(e){let t={};if(null==e)return t;try{let a=eO(e),[n]=d.C.call(void 0,a),{sqlWithReplacements:r,replacements:i}=d.i.call(void 0,n),s=new h.Parser().astify(r,{database:"Postgresql",parseOptions:{includeLocations:!0}});for(let[e,a]of(null!=s.columns&&s.columns.forEach(e=>{null!=e.as&&("expr"===e.type&&"column_ref"===e.expr.type?t[e.as]=e.expr.array_index&&o([e,"access",e=>e.expr,"access",e=>e.array_index,"access",e=>e[0],"optionalAccess",e=>e.brackets])?`${e.expr.column.expr.value}['${e.expr.array_index[0].index.value}']`:e.expr.column.expr.value:null!=e.expr.loc?t[e.as]=r.slice(e.expr.loc.start.offset,e.expr.loc.end.offset):console.error("Unknown alias column type",e))}),Object.entries(t)))for(let[n,r]of i)a.includes(n)&&(t[e]=a.replaceAll(n,r))}catch(t){console.error("Error parsing alias map with JSON removed",t,"for query",e)}return t},t.C=ev,t.D=eL,t.E=eF,t.F=3e6,t.G=S,t.H=_,t.I=function(e){return{databaseName:s(o([e,"optionalAccess",e=>e.from,"optionalAccess",e=>e.databaseName]),()=>""),tableName:s(o([e,"optionalAccess",e=>e.from,"optionalAccess",e=>e.tableName]),()=>""),connectionId:s(o([e,"optionalAccess",e=>e.connection]),()=>"")}},t.J=function(e){return{databaseName:s(o([e,"optionalAccess",e=>e.from,"optionalAccess",e=>e.databaseName]),()=>""),tableName:s(o([e,"optionalAccess",e=>e.from,"optionalAccess",e=>e.tableName]),()=>""),connectionId:s(o([e,"optionalAccess",e=>e.connection]),()=>"")}},t.K=b,t.L=w,t.M=q,t.N=U,t.O=H,t.P=W,t.Q=B},9897:(e,t,a)=>{a.d(t,{h:()=>r});var n,r=((n={})[n.Pending=1]="Pending",n[n.Running=2]="Running",n[n.Succeeded=3]="Succeeded",n[n.Failed=4]="Failed",n[n.Unknown=5]="Unknown",n)},30404:(e,t,a)=>{function n(e,t){return null!=e?e:t()}function r(e){let t,a=e[0],n=1;for(;na.call(t,...e)),t=void 0)}return a}async function i(e){let t,a=e[0],n=1;for(;na.call(t,...e)),t=void 0)}return a}Object.defineProperty(t,"__esModule",{value:!0});var s=a(31356),o=a(20470),l=a(35362);async function u(e,t,a){try{return!!await i([await a.getColumn({...e,column:t}),"optionalAccess",async e=>e.type,"access",async e=>e.startsWith,"call",async e=>e("SimpleAggregateFunction(")])}catch(e){return!1}}async function c(e,t,a){try{let n=await i([await a.getColumn({...e,column:t}),"optionalAccess",async e=>e.type]);return n?r([n,"access",e=>e.match,"call",e=>e(/^AggregateFunction\(\s*([^(, ]+)\s*\(/),"optionalAccess",e=>e[1]]):void 0}catch(e){return}}async function m(e,t,a,n){return"count"===a?"sum":await u(e,t,n)?a:`${a}Merge`}function d(e,t,a){return e.aggregatedColumns.find(e=>e.aggFn===a&&("count"===e.aggFn||e.sourceColumn===t))}function p(e,t){if(e.minDate&&!t.dateRange)return!1;if(!e.minDate||!t.dateRange)return!0;let[a]=t.dateRange;return a>=new Date(e.minDate)}var g=/\bcount(If)?\s*\(/i;function h(e){return g.test(e.valueExpression)}async function f(e,t,a,n){var r;let{valueExpression:i,aggFn:s}=t,l=s;if(h(t))throw Error("Custom count() expressions are not supported with materialized views.");if(!l)return t;if(!((r=l)&&o.h.safeParse(r).success))throw Error(`Aggregate function ${l} is not valid.`);let u=d(e,"",l);if(u){let e=u.mvColumn,r=await m(a,e,l,n);return{...t,valueExpression:e,aggFn:r}}let p=d(e,i,l);if(!p)throw Error(`The aggregate function ${function(e,t){if("quantile"!==e)return e;switch(t){case .5:return"median";case .9:return"p90";case .95:return"p95";case .99:return"p99";default:return"quantile"}}(l,t.level)} is not available for column '${i}'.`);if("quantile"===t.aggFn&&"level"in t&&"number"==typeof t.level){let e=await c(a,p.mvColumn,n);e&&(l=e)}let g=await m(a,p.mvColumn,l,n);return{...t,valueExpression:p.mvColumn,aggFn:g}}async function y(e,t,a){if(!Array.isArray(e.select))return{errors:["Only array-based select statements are supported."]};if(t.minDate&&!p(t,e))return{errors:["The selected date range includes dates for which this view does not contain data."]};if(!function(e,t){if(!t.granularity&&!t.dateRange)return!0;let a=t.granularity||"auto";if("auto"===a&&!t.dateRange)return!1;let n="auto"===a&&t.dateRange?s.l.call(void 0,t.dateRange):a,r=s.m.call(void 0,n),i=s.m.call(void 0,e.minGranularity);return r>=i&&r%i==0}(t,e))return{errors:[e.granularity?`Granularity must be a multiple of the view's granularity (${t.minGranularity}).`:"The selected date range is too short for the granularity of this materialized view."]};let n={databaseName:t.databaseName,tableName:t.tableName,connectionId:e.connection},r=await Promise.allSettled(e.select.map(e=>f(t,e,n,a))),i=[],o=[];for(let e of r)"rejected"===e.status?o.push(e.reason.message):i.push(e.value);return o.length>0?{errors:o}:{optimizedConfig:{...structuredClone(e),select:i,timestampValueExpression:t.timestampColumn,from:{databaseName:t.databaseName,tableName:t.tableName},..."dateRange"in e&&e.dateRange?{dateRangeEndInclusive:!1,dateRange:s.A.call(void 0,e.dateRange,t.minGranularity)}:{}}}}async function E(e,t,a,r,i,s){let o=[],l;if(e.with){let a=await Promise.all(e.with.map(async e=>e.chartConfig&&e.chartConfig.from.databaseName===s.from.databaseName&&e.chartConfig.from.tableName===s.from.tableName?y(e.chartConfig,i,t):{optimizedConfig:void 0,errors:[]}));a.some(e=>!!e.optimizedConfig)&&(l={...structuredClone(e),with:e.with.map((e,t)=>({...e,chartConfig:n(a[t].optimizedConfig,()=>e.chartConfig)}))}),o.push(...a.flatMap(e=>n(e.errors,()=>[])))}if(e.from.databaseName===s.from.databaseName&&e.from.tableName===s.from.tableName){let a=await y(n(l,()=>e),i,t);a.optimizedConfig&&(l=a.optimizedConfig),o.push(...n(a.errors,()=>[]))}if(l){let{isValid:e,rowEstimate:n=1/0,error:i}=await a.testChartConfigValidity({config:l,metadata:t,opts:{abort_signal:r},querySettings:s.querySettings});if(i&&o.push(i),e)return{optimizedConfig:l,rowEstimate:n,errors:[]}}return{errors:o}}async function A(e,t,a,r,i){let s=n(i.materializedViews,()=>[]),o=await Promise.all(s.map(n=>E(e,t,a,r,n,i).then(e=>({...e,mvConfig:n})))),l,u=1/0;for(let e of o)e.optimizedConfig&&n(e.rowEstimate,()=>1/0)1/0));let c=o.map(({optimizedConfig:e,errors:t,rowEstimate:a,mvConfig:n})=>({success:!!e&&e===l,errors:t,rowEstimate:a,mvConfig:n}));return{optimizedConfig:l,explanations:c}}async function N(e,t,a,r,i){let{optimizedConfig:s}=await A(e,t,a,r,i);return n(s,()=>e)}function T(e){return`${e.databaseName}.${e.tableName}`}async function S({chartConfig:e,keys:t,source:a,clickhouseClient:i,metadata:o,signal:u}){let c=new Map((r([a,"optionalAccess",e=>e.materializedViews])||[]).map(e=>[T(e),e])),m=new Map;for(let[a,n]of c.entries()){let r=e.dateRange?function(e,t){let[a,n]=e,r=s.m.call(void 0,t);return Math.floor(l.differenceInSeconds.call(void 0,n,a)/r)}(e.dateRange,n.minGranularity):1/0;if(p(n,e)&&r>=3){let e=s.e.call(void 0,n.dimensionColumns),r=t.filter(t=>e.includes(t));r.length>0&&m.set(a,r)}}let d=[...m.entries()].map(([t,a])=>{let{databaseName:n,tableName:r,timestampColumn:i}=c.get(t);return{...structuredClone(e),timestampValueExpression:i,from:{databaseName:n,tableName:r},select:a.map((e,t)=>`groupUniqArray(1)(${e}) AS param${t}`).join(", ")}}),g=await Promise.all(d.map(async e=>{let{isValid:t,rowEstimate:n=1/0}=await i.testChartConfigValidity({config:e,metadata:o,opts:{abort_signal:u},querySettings:r([a,"optionalAccess",e=>e.querySettings])});return{id:T({databaseName:e.from.databaseName,tableName:e.from.tableName}),isValid:t,rowEstimate:n}})),h=new Map,f=new Set(t);for(let e of g.filter(e=>e.isValid).sort((e,t)=>e.rowEstimate-t.rowEstimate)){let t=n(m.get(e.id),()=>[]).filter(e=>f.has(e));if(t.length)for(let a of(h.set(e.id,t),t))f.delete(a)}let y=[...h.entries()].map(([t,a])=>{let{databaseName:n,tableName:r,timestampColumn:i}=c.get(t);return{chartConfig:{...structuredClone(e),timestampValueExpression:i,from:{databaseName:n,tableName:r}},keys:a}});return f.size&&y.push({chartConfig:structuredClone(e),keys:[...f]}),y}t.a=h,t.b=y,t.c=A,t.d=N,t.e=S},35467:(e,t,a)=>{var n=a(9641);a(30404),a(31356),a(20470),n.y,t.p1=n.u,t.A2=n.l,t.kg=n.r,t.D7=n.B,n.w,n.x,n.s,t.rj=n.n,n.q,t.bZ=n.v,n.p,t.P1=n.C,n.m,n.E,t.zo=n.D,t.Zo=n.o,t.l6=n.A,t.k$=n.z,n.t},35871:(e,t,a)=>{a.d(t,{A:()=>u});var n=a(6029),r=a(75155),i=a(76089),s=a(63085),o=a(45749),l=a(7565);function u(e){let t,a,u,c,m,d=(0,r.c)(12),{originalDateRange:p,effectiveDateRange:g,mvGranularity:h}=e,f=(0,l.a)();if(!g||(0,i._p)(g,p))return null;d[0]!==g[0]||d[1]!==f?(t=f(g[0]),d[0]=g[0],d[1]=f,d[2]=t):t=d[2],d[3]!==g[1]||d[4]!==f?(a=f(g[1]),d[3]=g[1],d[4]=f,d[5]=a):a=d[5],d[6]!==t||d[7]!==a?(u=[t,a],d[6]=t,d[7]=a,d[8]=u):u=d[8];let[y,E]=u,A=h?`Querying ${y} - ${E} due to ${h} rollups in query acceleration.`:`Querying ${y} - ${E} to show complete intervals.`;return d[9]===Symbol.for("react.memo_cache_sentinel")?(c=(0,n.jsx)(o.A,{size:16,color:"var(--color-text)"}),d[9]=c):c=d[9],d[10]!==A?(m=(0,n.jsx)(s.m,{multiline:!0,maw:500,label:A,children:c}),d[10]=A,d[11]=m):m=d[11],m}},43152:(e,t,a)=>{a.d(t,{gT:()=>N,Hx:()=>R,WG:()=>T,zE:()=>v,x5:()=>x,p2:()=>L,nH:()=>F,JD:()=>q,xh:()=>O,wt:()=>b,VH:()=>W,m9:()=>Q,A7:()=>j,qL:()=>C,_t:()=>K,Z7:()=>G,O7:()=>S,ik:()=>H,zg:()=>P,r4:()=>M,eY:()=>$,xu:()=>z,Ht:()=>I,W6:()=>w,GJ:()=>_});var n=a(6029),r=a(75155),i=a(86508),s=a(11370),o=a(76694),l=a.n(o),u=a(80519),c=a.n(u),m=a(6663),d=a(35467),p=a(67270),g=a(76089),h=a(82641),f=a(60665),y=a(35871);let E={"k8s.pod.cpu.utilization":{newName:"k8s.pod.cpu.usage",versionThreshold:"0.125.0"},"k8s.node.cpu.utilization":{newName:"k8s.node.cpu.usage",versionThreshold:"0.125.0"},"container.cpu.utilization":{newName:"container.cpu.usage",versionThreshold:"0.125.0"}};a(9897);var A=a(92917);let N=[{value:"count",label:"Count of Events",isAttributable:!1},{value:"sum",label:"Sum",isAttributable:!1},{value:"p99",label:"99th Percentile"},{value:"p95",label:"95th Percentile"},{value:"p90",label:"90th Percentile"},{value:"p50",label:"Median"},{value:"avg",label:"Average"},{value:"max",label:"Maximum"},{value:"min",label:"Minimum"},{value:"count_distinct",label:"Count Distinct",isAttributable:!1},{value:"any",label:"Any"},{value:"none",label:"Custom"}],T={name:"",select:[{aggFn:"count",aggCondition:"",aggConditionLanguage:"lucene",valueExpression:""}],where:"",whereLanguage:"lucene",displayType:h.t2.Line,granularity:"auto",alignDateRangeToGranularity:!0};function S(e){let t="auto"===e.granularity||null==e.granularity?(0,g.tA)(e.dateRange,80):e.granularity,a=!1===e.alignDateRangeToGranularity?e.dateRange:(0,g.Ol)(e.dateRange,t);return{...e,dateRange:a,dateRangeEndInclusive:!1,granularity:t,limit:{limit:1e5}}}function _(e){let t,a,n=(0,r.c)(7);n[0]!==e?(t=S(e),n[0]=e,n[1]=t):t=n[1];let i=t;return n[2]!==i.dateRange||n[3]!==i.displayType||n[4]!==i.fillNulls||n[5]!==i.granularity?(a={displayType:i.displayType,dateRange:i.dateRange,fillNulls:i.fillNulls,granularity:i.granularity},n[2]=i.dateRange,n[3]=i.displayType,n[4]=i.fillNulls,n[5]=i.granularity,n[6]=a):a=n[6],a}let R=" \xb7 ",b=" (previous)";function C(e){let[t,a]=e.split(" "),n=Number.parseInt(t);switch(a){case"second":return n;case"minute":return 60*n;case"hour":return 60*n*60;case"day":return 60*n*1440;default:return 0}}function w(e,t){let[a,n]=t.split(" "),r=Number.parseInt(a),i=Math.floor;switch(n){case"second":return new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),i(e.getUTCSeconds()/r)*r));case"minute":return new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),i(e.getUTCMinutes()/r)*r));case"hour":return new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),i(e.getUTCHours()/r)*r));case"day":return new Date(1e3*(i(e.getTime()/1e3/60/60/24/r)*r)*86400);default:return e}}function I(e,t,a){let n=[],r=w(e,a),s=C(a);for(;r{let t=e.toLowerCase();return["count","countIf","countDistinct","sum","sumIf","avg","avgIf","min","max","any","anyLast","groupArray","groupArrayInsertAt","groupArrayMovingAvg","groupArraySample","groupUniqArray","groupUniqArrayIf","groupArrayIntersect","groupArrayIntersectIf","groupArrayReduce","groupBitmap","groupBitmapIf","groupBitmapOr","groupBitmapXor","quantile","quantileIf","quantileExact","quantileExactWeighted","quantileTiming","quantileTimingWeighted","quantileTDigest","quantileTDigestWeighted","quantileBFloat16","quantileBFloat16Weighted","quantiles","median","medianExact","medianTDigest","medianBFloat16","stddevPop","stddevPopIf","stddevSamp","stddevSampIf","varPop","varPopIf","varSamp","varSampIf","covarPop","covarSamp","corr","uniq","uniqExact","uniqCombined","uniqCombined64","uniqHLL12","uniqTheta","groupBitAnd","groupBitOr","groupBitXor","groupArrayMap","groupArrayTuple","groupArraySorted","topK","topKIf","topKWeighted","argMin","argMax","minMap","maxMap","runningDifference","retention","sequenceCount","sequenceMatch","histogram","simpleLinearRegression","stochasticLinearRegression","categoricalInformationValue","sumMap","sumMapFiltered","sumWithOverflow","entropy","skewPop","skewSamp","kurtPop","kurtSamp"].some(e=>t.includes(e.toLowerCase()+"("))},x={factor:1,output:"number",mantissa:0,thousandSeparated:!0},O={factor:1,output:"number",mantissa:2,thousandSeparated:!0,unit:"ms"},v={output:"percent",mantissa:0},L={output:"percent",mantissa:0},F={output:"byte"},q={output:"byte"};function D(e,t){return(0,d.P1)(e,[d.A2.Number])?.filter(e=>!t.has(e.name))}function U(e){return(0,d.P1)(e,[d.A2.String,d.A2.Map,d.A2.Array])}function M(e){let[t,a]=e,n=(0,s.A)(a,t);return[new Date(t.getTime()-1e3*n),new Date(a.getTime()-1e3*n)]}function k({response:e,lineDataMap:t,tsBucketMap:a,source:n,previousPeriodOffsetSeconds:r,isPreviousPeriod:i,hiddenSeries:s=[]}){let{meta:o,data:l}=e;if(null==o)throw Error("No meta data found in response");let u=(0,d.zo)(o);if(null==u)throw Error(`No timestamp column found with meta: ${JSON.stringify(o)}`);let c=D(o,new Set(s))??[],m=U(o)??[],p=1===c.length,g=m.length>0;for(let e of l){let s=new Date(e[u.name]),o=i?r:0,l=Math.round(s.getTime()/1e3+o);for(let r of c){let s,o=a.get(l);null==o&&(o={[u.name]:l},a.set(l,o));let c=[...p&&g?[]:[r.name],...m.map(t=>e[t.name])].join(R),d=`${c}${b}`,f=i?d:c,y=e[r.name],E="number"==typeof y?y:Number.parseFloat(y);o[f]=E,n&&1===m.length&&m[0].name===(n.kind===h.GL.Log?n.severityTextExpression:n.statusCodeExpression)&&(s=(0,A.aw)(e[m[0].name])),t[f]={dataKey:f,currentPeriodKey:c,previousPeriodKey:d,displayName:f,color:s,isDashed:i}}}}function P({currentPeriodResponse:e,previousPeriodResponse:t,dateRange:a,granularity:n,generateEmptyBuckets:r=!0,source:i,hiddenSeries:s=[],previousPeriodOffsetSeconds:o=0}){let l,u,c=e.meta;if(null==c)throw Error("No meta data found in response");let m=(0,d.zo)(c),p=D(c,new Set(s))??[],g=U(c)??[],h=1===p.length;if(null==m)throw Error(`No timestamp column found with meta: ${JSON.stringify(c)}`);let f=new Map,y={};k({response:e,lineDataMap:y,tsBucketMap:f,source:i,isPreviousPeriod:!1,previousPeriodOffsetSeconds:o,hiddenSeries:s}),null!=t&&k({response:t,lineDataMap:y,tsBucketMap:f,source:i,isPreviousPeriod:!0,previousPeriodOffsetSeconds:o,hiddenSeries:s});let E=(0,A.EA)(),N=Object.values(y).sort((e,t)=>E.findIndex(t=>t===e.color)-E.findIndex(e=>e===t.color));return r&&null!=n&&I(a[0],a[1],n).forEach(e=>{let t=e.getTime()/1e3,a=f.get(t);if(null==a){let e={[m.name]:t};for(let t of N)e[t.dataKey]=0;f.set(t,e)}else{for(let e of N)null==a[e.dataKey]&&(a[e.dataKey]=0);f.set(t,a)}}),{graphResults:Array.from(f.values()).sort((e,t)=>e[m.name]-t[m.name]),timestampColumn:m,lineData:(l=new Map,u=0,N.map(e=>{let t=e.currentPeriodKey;return l.has(t)?e.color=l.get(t):(e.color||(e.color=(0,A.ob)(u++,e.displayName??e.dataKey)),l.set(t,e.color)),e})),groupColumns:g.map(e=>e.name),valueColumns:p.map(e=>e.name),isSingleValueColumn:h}}let V=e=>{if(null==e)return e;if(e.endsWith("_rate"))return V(e.replace("_rate",""));if("p50"===e||"p90"===e||"p95"===e||"p99"===e)return"quantile";if("count_per_sec"===e||"count_per_min"===e||"count_per_hour"===e)return"count";if(["avg","count","count_distinct","last_value","max","min","sum"].includes(e))return e;throw Error(`Unsupported aggregation function in v2: ${e}`)},H=(e,t)=>{let{series:a,granularity:n,dateRange:r,displayType:i="line",fillNulls:s}=e;if(a.length<1)throw Error("series is required");let o=a[0],l="stacked_bar"===i?h.t2.StackedBar:h.t2.Line;if("logs"===o.table)throw Error("IMPLEMENT ME (logs)");if("metrics"===o.table){let e;if(null==t.metric)throw Error("source.metric is required for metrics");return{select:a.map(e=>{let t=e.field??"",[a,n]=t.split(" - ").map(e=>e.trim()),r=function(e){let t=E[e];if(t)return c().format("MetricName IN (?)",[[e,t.newName]])}(a),i=m.fc(h.SX).parse(n?.toLowerCase());return{aggFn:V(e.aggFn),metricType:i,valueExpression:t,metricName:a,metricNameSql:r,aggConditionLanguage:"lucene",aggCondition:e.where}}),from:t.metric?.from,numberFormat:o.numberFormat,groupBy:(e=t.metric,o.groupBy.map(t=>t.startsWith("k8s")?`${e.resourceAttributesExpression}['${t}']`:t).join(",")),dateRange:r,connection:t.metric?.connection,metricTables:t.metric?.metricTables,timestampValueExpression:t.metric?.timestampValueExpression,granularity:n,where:"",fillNulls:s,displayType:l}}throw Error(`unsupported table in v2: ${o.table}`)};function W({source:e,config:t,dateRange:a,groupFilters:n,valueRangeFilter:r}){if(!e?.id)return null;let i=(0,p.bv)(t);if(i&&e?.logSourceId==null)return f.$e.show({color:"yellow",message:"No log source is associated with the selected metric source."}),null;let s=t.where,o=t.whereLanguage||"lucene";0===s.length&&Array.isArray(t.select)&&1===t.select.length&&(s=t.select[0].aggCondition??"",o=t.select[0].aggConditionLanguage??"lucene");let l=[];if(n&&n.length>0&&n.forEach(({column:e,value:t})=>{if(e&&null!=t){let a=`${e} IN (${c().escape(t)})`;l.push({type:"sql",condition:a})}}),r){let{expression:e,value:t,threshold:a=.05}=r;if(!$(e)){let n=`${e} BETWEEN ${c().escape(t*(1-a))} AND ${c().escape(t*(1+a))}`;l.push({type:"sql",condition:n})}}let u=a[0].getTime(),m=a[1].getTime(),d={source:e?.id??"",where:s,whereLanguage:o,filters:JSON.stringify([...t.filters??[],...l]),isLive:"false",from:u.toString(),to:m.toString()};return i&&(d.where="",d.whereLanguage="lucene",d.filters=JSON.stringify([]),d.source=e?.logSourceId??""),t.eventTableSelect&&(d.select=t.eventTableSelect),`/search?${new URLSearchParams(d).toString()}`}function B(e){return e?"string"==typeof e?e.split(",").map(e=>e.trim()):e.map(e=>"string"==typeof e?e:e.valueExpression):[]}function j({row:e,source:t,config:a,dateRange:n}){let r;if(!t?.id)return null;let i=[];B(a.groupBy).forEach(t=>{null!=e[t]&&i.push({column:t,value:e[t]})});let s=a.select?.[0];if(s){let t="string"==typeof s?void 0:s.aggFn;if(N.find(e=>e.value===t)?.isAttributable!==!1){let t="string"==typeof s?s:s.valueExpression,n=new Set(B(a.groupBy)),i=Object.keys(e).find(e=>!n.has(e)),o=i?e[i]:void 0;null!=o&&"number"==typeof o&&(r={expression:t,value:o})}}return W({source:t,config:a,dateRange:n,groupFilters:i,valueRangeFilter:r})}function K(e){return l()(e,["granularity","groupBy"])}function G(e){let t=structuredClone(l()(e,["granularity"]));return t.limit||(t.limit={limit:200}),t.groupBy&&"string"==typeof t.groupBy&&!t.orderBy&&(t.orderBy=t.groupBy),t}function Q({mvOptimizationData:e,originalDateRange:t}){let a=e?.optimizedConfig?.dateRange;if(!a)return null;let r=e?.explanations.find(e=>e.success)?.mvConfig.minGranularity;return(0,n.jsx)(y.A,{originalDateRange:t,effectiveDateRange:a,mvGranularity:r},"date-range-indicator")}function z(e){return!1!==e}},49672:(e,t,a)=>{a.d(t,{VH:()=>p,W:()=>m,fu:()=>d,uI:()=>h});var n=a(75155),r=a(35467),i=a(88459),s=a(12482),o=a(98142),l=a(93108),u=a(6876),c=a(61410);let m=(e={})=>{if(o.VO){let t=(0,l.xZ)();return 0===t.length?(console.warn("No local connection found"),new i.aP({host:"",...e})):new i.aP({host:t[0].host,username:t[0].username,password:t[0].password,...e})}return new i.aP({host:"/api/clickhouse-proxy",...e})},d=(e={})=>{let{data:t}=u.Ay.useMe(),a=t?.team?.queryTimeout;return void 0!==a?e.queryTimeout=a:e.queryTimeout=c.rb,m(e)};function p(e,t){let a,r,i,o,l=(0,n.c)(8),{connectionId:u}=e;l[0]===Symbol.for("react.memo_cache_sentinel")?(a=m(),l[0]=a):a=l[0];let c=a;return l[1]!==u?(r=["direct_datasources/databases",u],i=async()=>await c.query({query:"SHOW DATABASES",connectionId:u}).then(g),l[1]=u,l[2]=r,l[3]=i):(r=l[2],i=l[3]),l[4]!==t||l[5]!==r||l[6]!==i?(o={queryKey:r,queryFn:i,staleTime:3e5,...t},l[4]=t,l[5]=r,l[6]=i,l[7]=o):o=l[7],(0,s.I)(o)}function g(e){return e.json()}function h({database:e,connectionId:t},a){let n=m();return(0,s.I)({queryKey:[`direct_datasources/databases/${e}/tables`,t],queryFn:async()=>{let a=(0,r.kg)`SHOW TABLES FROM ${{Identifier:e}}`;return await n.query({query:a.sql,query_params:a.params,connectionId:t}).then(e=>e.json())},staleTime:3e5,...a})}},57389:(e,t,a)=>{a.d(t,{d:()=>c});var n=a(75155),r=a(2615),i=a(4308),s=a(12482),o=a(49672),l=a(81973),u=a(78550);function c(e,t){let a,c,m,d,p,g=(0,n.c)(16);g[0]!==t?(a=t||{},g[0]=t,g[1]=a):a=g[1];let{enabled:h}=a,f=(0,u.Ge)(),y=(0,o.fu)(),E=e?.source;g[2]!==E?(c={id:E},g[2]=E,g[3]=c):c=g[3];let{data:A,isLoading:N}=(0,l.Fo)(c);g[4]!==e?(m=["optimizationExplanation",e],g[4]=e,g[5]=m):m=g[5],g[6]!==y||g[7]!==e||g[8]!==f||g[9]!==A?(d=async t=>{let{signal:a}=t;return e&&A?await (0,r.bn)(e,f,y,a,A):{explanations:[]}},g[6]=y,g[7]=e,g[8]=f,g[9]=A,g[10]=d):d=g[10];let T=(void 0===h||h)&&!N&&!!e&&!!A;return g[11]!==t||g[12]!==m||g[13]!==d||g[14]!==T?(p={queryKey:m,queryFn:d,placeholderData:i.rX,staleTime:5e3,...t,enabled:T},g[11]=t,g[12]=m,g[13]=d,g[14]=T,g[15]=p):p=g[15],(0,s.I)(p)}},61410:(e,t,a)=>{a.d(t,{Km:()=>n,Nz:()=>i,rb:()=>r});let n=200,r=60;function i(e){return{limit:{limit:e?.searchRowLimit??n}}}},67270:(e,t,a)=>{var n=a(9641);a(30404),a(31356),a(20470),t.n_=n.b,n.h,t.bv=n.e,t.v4=n.i,t.lE=n.d,t.x1=n.c,t.PV=n.k,n.f,n.g,n.j},69519:(e,t,a)=>{a.d(t,{Me:()=>i,so:()=>r});let n=[21600,21600,43200,86400];function r(e,t,a=n){if(e.getTime()===t.getTime())return[{startTime:e,endTime:t,windowIndex:0,direction:"DESC"}];let i=[],s=new Date(t),o=0;for(;s>e;){let t=1e3*(a[o]||a[a.length-1]),n=new Date(Math.max(s.getTime()-t,e.getTime()));i.push({endTime:new Date(s),startTime:n,windowIndex:o,direction:"DESC"}),s=n,o++}return i}function i(e,t,a=n){if(e.getTime()===t.getTime())return[{startTime:e,endTime:t,windowIndex:0,direction:"ASC"}];let r=[],s=new Date(e),o=0;for(;s{var n=a(67599),r=n.expandPhrases.call(void 0,["SELECT [ALL | DISTINCT]"]),i=n.expandPhrases.call(void 0,["WITH [RECURSIVE]","FROM","WHERE","GROUP BY [ALL | DISTINCT]","HAVING","WINDOW","PARTITION BY","ORDER BY","LIMIT","OFFSET","FETCH {FIRST | NEXT}","INSERT INTO","VALUES","SET"]),s=n.expandPhrases.call(void 0,["CREATE [GLOBAL TEMPORARY | LOCAL TEMPORARY] TABLE"]),o=n.expandPhrases.call(void 0,["CREATE [RECURSIVE] VIEW","UPDATE","WHERE CURRENT OF","DELETE FROM","DROP TABLE","ALTER TABLE","ADD COLUMN","DROP [COLUMN]","RENAME COLUMN","RENAME TO","ALTER [COLUMN]","{SET | DROP} DEFAULT","ADD SCOPE","DROP SCOPE {CASCADE | RESTRICT}","RESTART WITH","TRUNCATE TABLE","SET SCHEMA"]),l={name:"clickhouse",tokenizerOptions:{reservedSelect:r,reservedClauses:[...i,...s,...o],reservedSetOperations:n.expandPhrases.call(void 0,["UNION [ALL | DISTINCT]","EXCEPT [ALL | DISTINCT]","INTERSECT [ALL | DISTINCT]"]),reservedJoins:n.expandPhrases.call(void 0,["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN"]),reservedPhrases:n.expandPhrases.call(void 0,["ON {UPDATE | DELETE} [SET NULL | SET DEFAULT]","{ROWS | RANGE} BETWEEN"]),reservedKeywords:["ALL","ALLOCATE","ALTER","ANY","ARE","AS","ASC","ASENSITIVE","ASYMMETRIC","AT","ATOMIC","AUTHORIZATION","BEGIN","BETWEEN","BOTH","BY","CALL","CALLED","CASCADED","CAST","CHECK","CLOSE","COALESCE","COLLATE","COLUMN","COMMIT","CONDITION","CONNECT","CONSTRAINT","CORRESPONDING","CREATE","CROSS","CUBE","CURRENT","CURRENT_CATALOG","CURRENT_DEFAULT_TRANSFORM_GROUP","CURRENT_PATH","CURRENT_ROLE","CURRENT_SCHEMA","CURRENT_TRANSFORM_GROUP_FOR_TYPE","CURRENT_USER","CURSOR","CYCLE","DEALLOCATE","DAY","DECLARE","DEFAULT","DELETE","DEREF","DESC","DESCRIBE","DETERMINISTIC","DISCONNECT","DISTINCT","DROP","DYNAMIC","EACH","ELEMENT","END-EXEC","ESCAPE","EVERY","EXCEPT","EXEC","EXECUTE","EXISTS","EXTERNAL","FALSE","FETCH","FILTER","FOR","FOREIGN","FREE","FROM","FULL","FUNCTION","GET","GLOBAL","GRANT","GROUP","HAVING","HOLD","HOUR","IDENTITY","IN","INDICATOR","INNER","INOUT","INSENSITIVE","INSERT","INTERSECT","INTO","IS","LANGUAGE","LARGE","LATERAL","LEADING","LEFT","LIKE","LIKE_REGEX","LOCAL","MATCH","MEMBER","MERGE","METHOD","MINUTE","MODIFIES","MODULE","MONTH","NATURAL","NEW","NO","NONE","NOT","NULL","NULLIF","OF","OLD","ON","ONLY","OPEN","ORDER","OUT","OUTER","OVER","OVERLAPS","PARAMETER","PARTITION","PRECISION","PREPARE","PRIMARY","PROCEDURE","RANGE","READS","REAL","RECURSIVE","REF","REFERENCES","REFERENCING","RELEASE","RESULT","RETURN","RETURNS","REVOKE","RIGHT","ROLLBACK","ROLLUP","ROW","ROWS","SAVEPOINT","SCOPE","SCROLL","SEARCH","SECOND","SELECT","SENSITIVE","SESSION_USER","SET","SIMILAR","SOME","SPECIFIC","SQL","SQLEXCEPTION","SQLSTATE","SQLWARNING","START","STATIC","SUBMULTISET","SYMMETRIC","SYSTEM","SYSTEM_USER","TABLE","TABLESAMPLE","THEN","TIMEZONE_HOUR","TIMEZONE_MINUTE","TO","TRAILING","TRANSLATION","TREAT","TRIGGER","TRUE","UESCAPE","UNION","UNIQUE","UNKNOWN","UNNEST","UPDATE","USER","USING","VALUE","VALUES","WHENEVER","WINDOW","WITHIN","WITHOUT","YEAR"],reservedDataTypes:["ARRAY","BIGINT","BINARY LARGE OBJECT","BINARY VARYING","BINARY","BLOB","BOOLEAN","CHAR LARGE OBJECT","CHAR VARYING","CHAR","CHARACTER LARGE OBJECT","CHARACTER VARYING","CHARACTER","CLOB","DATE","DEC","DECIMAL","DOUBLE","FLOAT","INT","INTEGER","INTERVAL","MULTISET","NATIONAL CHAR VARYING","NATIONAL CHAR","NATIONAL CHARACTER LARGE OBJECT","NATIONAL CHARACTER VARYING","NATIONAL CHARACTER","NCHAR LARGE OBJECT","NCHAR VARYING","NCHAR","NCLOB","NUMERIC","SMALLINT","TIME","TIMESTAMP","VARBINARY","VARCHAR"],reservedFunctionNames:["GROUPING","RANK","DENSE_RANK","PERCENT_RANK","CUME_DIST","ROW_NUMBER","POSITION","OCCURRENCES_REGEX","POSITION_REGEX","EXTRACT","CHAR_LENGTH","CHARACTER_LENGTH","OCTET_LENGTH","CARDINALITY","ABS","MOD","LN","EXP","POWER","SQRT","FLOOR","CEIL","CEILING","WIDTH_BUCKET","SUBSTRING","SUBSTRING_REGEX","UPPER","LOWER","CONVERT","TRANSLATE","TRANSLATE_REGEX","TRIM","OVERLAY","NORMALIZE","SPECIFICTYPE","CURRENT_DATE","CURRENT_TIME","LOCALTIME","CURRENT_TIMESTAMP","LOCALTIMESTAMP","COUNT","AVG","MAX","MIN","SUM","STDDEV_POP","STDDEV_SAMP","VAR_SAMP","VAR_POP","COLLECT","FUSION","INTERSECTION","COVAR_POP","COVAR_SAMP","CORR","REGR_SLOPE","REGR_INTERCEPT","REGR_COUNT","REGR_R2","REGR_AVGX","REGR_AVGY","REGR_SXX","REGR_SYY","REGR_SXY","PERCENTILE_CONT","PERCENTILE_DISC","CAST","COALESCE","NULLIF","ROUND","SIN","COS","TAN","ASIN","ACOS","ATAN"],stringTypes:[{quote:"''-qq-bs",prefixes:["N","U&"]},{quote:"''-raw",prefixes:["X"],requirePrefix:!0}],identTypes:['""-qq',"``"],extraParens:["[]"],paramTypes:{positional:!0},operators:["||","%"]},formatOptions:{onelineClauses:[...s,...o],tabularOnelineClauses:o}};t.GP=function(e){return n.formatDialect.call(void 0,e,{dialect:l})}},78550:(e,t,a)=>{a.d(t,{Ii:()=>F,ws:()=>w,Zh:()=>T,lo:()=>L,kN:()=>v,n$:()=>S,Ge:()=>N,Sh:()=>R,nT:()=>$,Z2:()=>I});var n=a(75155),r=a(55729),i=a(79339),s=a.n(i),o=a(35467),l=a(93251),u=a(12482),c=a(4308),m=a(6876),d=a(98142),p=a(93108),g=a(3145),h=a(49672),f=a(61410);let y=()=>(0,g.yb)((0,h.W)({queryTimeout:f.rb}));var E=a(81973),A=a(92917);function N(){let e,t,a,i,s,o=(0,n.c)(10);o[0]===Symbol.for("react.memo_cache_sentinel")?(e=y(),o[0]=e):e=o[0];let[u,c]=(0,r.useState)(e),{data:g}=m.Ay.useMe(),h=(0,r.useRef)(!1),f=(0,l.jE)();o[1]!==f?(t=()=>{if(void 0===window.document||!d.VO)return;let e=e=>{e.key===p.Gs&&e.newValue&&(c(y()),h.current=!1,f.resetQueries())};return window.addEventListener("storage",e),()=>{window.removeEventListener("storage",e)}},a=[f],o[1]=f,o[2]=t,o[3]=a):(t=o[2],a=o[3]),(0,r.useEffect)(t,a),o[4]!==g||o[5]!==u?(i=()=>{g?.team?.metadataMaxRowsToRead&&!h.current&&(u.setClickHouseSettings({max_rows_to_read:g.team.metadataMaxRowsToRead}),h.current=!0)},o[4]=g,o[5]=u,o[6]=i):i=o[6];let E=g?.team?.metadataMaxRowsToRead;return o[7]!==u||o[8]!==E?(s=[E,u],o[7]=u,o[8]=E,o[9]=s):s=o[9],(0,r.useEffect)(i,s),u}function T(e,t){let a,r,i,s=(0,n.c)(13),{databaseName:o,tableName:l,connectionId:c}=e,m=N();s[0]!==o||s[1]!==l?(a=["useMetadata.useColumns",{databaseName:o,tableName:l}],s[0]=o,s[1]=l,s[2]=a):a=s[2],s[3]!==c||s[4]!==o||s[5]!==m||s[6]!==l?(r=async()=>m.getColumns({databaseName:o,tableName:l,connectionId:c}),s[3]=c,s[4]=o,s[5]=m,s[6]=l,s[7]=r):r=s[7];let d=!!o&&!!l&&!!c;return s[8]!==t||s[9]!==a||s[10]!==r||s[11]!==d?(i={queryKey:a,queryFn:r,enabled:d,...t},s[8]=t,s[9]=a,s[10]=r,s[11]=d,s[12]=i):i=s[12],(0,u.I)(i)}function S(e,t){let a,r,i,s=(0,n.c)(10),l=N();s[0]!==e?(a=["useMetadata.useJsonColumns",e],s[0]=e,s[1]=a):a=s[1],s[2]!==l||s[3]!==e?(r=async()=>{if(!e)return[];let t=await l.getColumns(e);return(0,o.P1)(t,[o.A2.JSON])?.map(_)??[]},s[2]=l,s[3]=e,s[4]=r):r=s[4];let c=e&&!!e.databaseName&&!!e.tableName&&!!e.connectionId;return s[5]!==t||s[6]!==a||s[7]!==r||s[8]!==c?(i={queryKey:a,queryFn:r,enabled:c,...t},s[5]=t,s[6]=a,s[7]=r,s[8]=c,s[9]=i):i=s[9],(0,u.I)(i)}function _(e){return e.name}function R(e,t){let a,r,i,s,o=(0,n.c)(14),l=N(),{data:c,isFetched:d}=m.Ay.useMe();return o[0]!==e?(a=["useMetadata.useMultipleAllFields",...e.map(C)],o[0]=e,o[1]=a):a=o[1],o[2]!==c?.team||o[3]!==l||o[4]!==e?(r=async()=>{let t=c?.team;if(t?.fieldMetadataDisabled)return[];let a=await Promise.all(e.map(e=>l.getAllFields(e)));return 1===a.length?a[0]:F(a)},o[2]=c?.team,o[3]=l,o[4]=e,o[5]=r):r=o[5],o[6]!==d||o[7]!==e?(i=e.length>0&&e.every(b)&&d,o[6]=d,o[7]=e,o[8]=i):i=o[8],o[9]!==t||o[10]!==a||o[11]!==r||o[12]!==i?(s={queryKey:a,queryFn:r,enabled:i,...t},o[9]=t,o[10]=a,o[11]=r,o[12]=i,o[13]=s):s=o[13],(0,u.I)(s)}function b(e){return!!e.databaseName&&!!e.tableName&&!!e.connectionId}function C(e){return{...e}}function w(e,t){let a,r=(0,n.c)(2);return r[0]!==e?(a=e?[e]:[],r[0]=e,r[1]=a):a=r[1],R(a,t)}function I(e,t){let a,r,i,s=(0,n.c)(13),{databaseName:o,tableName:l,connectionId:c}=e,m=N();s[0]!==o||s[1]!==l?(a=["useMetadata.useTableMetadata",{databaseName:o,tableName:l}],s[0]=o,s[1]=l,s[2]=a):a=s[2],s[3]!==c||s[4]!==o||s[5]!==m||s[6]!==l?(r=async()=>await m.getTableMetadata({databaseName:o,tableName:l,connectionId:c}),s[3]=c,s[4]=o,s[5]=m,s[6]=l,s[7]=r):r=s[7];let d=!!o&&!!l&&!!c;return s[8]!==t||s[9]!==a||s[10]!==r||s[11]!==d?(i={queryKey:a,queryFn:r,staleTime:3e5,enabled:d,...t},s[8]=t,s[9]=a,s[10]=r,s[11]=d,s[12]=i):i=s[12],(0,u.I)(i)}function $(e,t){let a,r,i,s=(0,n.c)(12),{chartConfigs:o,keys:l,limit:m,disableRowLimit:d}=e,p=N(),g=(0,A.$r)(o);s[0]!==t?(a=t||{},s[0]=t,s[1]=a):a=s[1];let{enabled:h}=a,{data:f,isLoading:y}=(0,E.oE)();s[2]!==g||s[3]!==d||s[4]!==l||s[5]!==m||s[6]!==p||s[7]!==f?(r=async e=>{let{signal:t}=e;return(await Promise.all(g.map(e=>{let a=e.source?f?.find(t=>t.id===e.source):void 0;return p.getKeyValuesWithMVs({chartConfig:e,keys:l.slice(0,20),limit:m,disableRowLimit:d,source:a,signal:t})}))).flatMap(x)},s[2]=g,s[3]=d,s[4]=l,s[5]=m,s[6]=p,s[7]=f,s[8]=r):r=s[8];let T=(0,u.I)({queryKey:["useMetadata.useGetKeyValues",...g.map(O),...l,d],queryFn:r,staleTime:3e5,placeholderData:c.rX,...t,enabled:!!(void 0===h||h)&&!!l.length&&!y}),S=T.isLoading||y;return s[9]!==T||s[10]!==S?(i={...T,isLoading:S},s[9]=T,s[10]=S,s[11]=i):i=s[11],i}function x(e){return e}function O(e){return{...e}}function v(e,t){let a,r,i,s,o=(0,n.c)(16),{chartConfig:l,key:m,limit:d}=e,p=N();o[0]!==l.source?(a={id:l.source},o[0]=l.source,o[1]=a):a=o[1];let{data:g,isLoading:h}=(0,E.Fo)(a);o[2]!==l||o[3]!==m?(r=["useMetadata.useGetValuesDistribution",l,m],o[2]=l,o[3]=m,o[4]=r):r=o[4],o[5]!==l||o[6]!==m||o[7]!==d||o[8]!==p||o[9]!==g?(i=async()=>await p.getValuesDistribution({chartConfig:l,key:m,limit:d,source:g}),o[5]=l,o[6]=m,o[7]=d,o[8]=p,o[9]=g,o[10]=i):i=o[10];let f=!!m&&!h;return o[11]!==t||o[12]!==r||o[13]!==i||o[14]!==f?(s={queryKey:r,queryFn:i,staleTime:1/0,enabled:f,placeholderData:c.rX,retry:!1,...t},o[11]=t,o[12]=r,o[13]=i,o[14]=f,o[15]=s):s=o[15],(0,u.I)(s)}function L(e,t){let a,r,i=(0,n.c)(7),{chartConfig:s,keys:o,limit:l,disableRowLimit:u}=e;return i[0]!==s?(a=s?[s]:[],i[0]=s,i[1]=a):a=i[1],i[2]!==u||i[3]!==o||i[4]!==l||i[5]!==a?(r={chartConfigs:a,keys:o,limit:l,disableRowLimit:u},i[2]=u,i[3]=o,i[4]=l,i[5]=a,i[6]=r):r=i[6],$(r,t)}function F(e){let t=[],a=new Set;for(let n of e)for(let e of n){let n=s().sha1(e);a.has(n)||(a.add(n),t.push(e))}return t}},81973:(e,t,a)=>{a.d(t,{AF:()=>R,Al:()=>j,Dp:()=>V,Fo:()=>O,N8:()=>w,YI:()=>U,Ys:()=>P,fS:()=>B,kJ:()=>A,kg:()=>H,nd:()=>q,oE:()=>$,pM:()=>b,sr:()=>L,xg:()=>C});var n=a(75155),r=a(29594),i=a.n(r),s=a(79339),o=a.n(s),l=a(91985),u=a.n(l),c=a(35467),m=a(76089),d=a(82641),p=a(12482),g=a(93251),h=a(16932),f=a(6876),y=a(98142),E=a(92917);let A={resourceAttributesExpression:"ResourceAttributes",eventAttributesExpression:"LogAttributes",timestampValueExpression:"TimestampTime",implicitColumnExpression:"Body"},N={...A,timestampValueExpression:"Timestamp"},T="hdx-local-source";function S(e){u().transact(T,e,[])}function _(){if(u().has(T))return u().get(T,[])??[];try{let e=(0,E.Ol)(y.m6??"");if(null!=e)return e}catch(e){console.error("Error fetching default sources",e)}return[]}function R(e){return(0,m.AB)(e)[0]}function b(e){return e.spanNameExpression}function C(e){return e.displayedTimestampValueExpression??R(e.timestampValueExpression)}function w(e){let t=e.kind===d.GL.Trace?e.spanNameExpression??void 0:e.bodyExpression??e.implicitColumnExpression,a=(0,m.AB)(t??"");return 1===a.length?t:a[0]}function I(e){return{...e,timestampValueExpression:e.kind===d.GL.Session?e.timestampValueExpression||A.timestampValueExpression:e.timestampValueExpression}}function $(){let e,t=(0,n.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={queryKey:["sources"],queryFn:x},t[0]=e):e=t[0],(0,p.I)(e)}async function x(){return y.VO?_():(await (0,f.Q5)("sources").json()).map(I)}function O(e){let t,a,r,i=(0,n.c)(6),{id:s}=e;i[0]===Symbol.for("react.memo_cache_sentinel")?(t=["sources"],i[0]=t):t=i[0],i[1]!==s?(a=e=>e.filter(e=>e.id===s)[0],i[1]=s,i[2]=a):a=i[2];let o=null!=s;return i[3]!==a||i[4]!==o?(r={queryKey:t,queryFn:v,select:a,enabled:o},i[3]=a,i[4]=o,i[5]=r):r=i[5],(0,p.I)(r)}async function v(){return y.VO?_():(await (0,f.Q5)("sources").json()).map(I)}function L(){let e,t=(0,n.c)(2),a=(0,g.jE)();return t[0]!==a?(e={mutationFn:F,onSuccess:()=>{a.invalidateQueries({queryKey:["sources"]})}},t[0]=a,t[1]=e):e=t[1],(0,h.n)(e)}async function F(e){let{source:t}=e;if(!y.VO)return await (0,f.Q5)(`sources/${t.id}`,{method:"PUT",json:t});S(e=>e.map(e=>e.id===t.id?t:e))}function q(){let e,t=(0,n.c)(2),a=(0,g.jE)();return t[0]!==a?(e={mutationFn:D,onSuccess:()=>{a.invalidateQueries({queryKey:["sources"]})}},t[0]=a,t[1]=e):e=t[1],(0,h.n)(e)}async function D(e){let{source:t}=e;if(y.VO){let e=_().find(e=>o()(i()(e,["kind","name","connection"]))===o()(i()(t,["kind","name","connection"])));if(e)return{...t,id:e.id};let a={...t,id:`l${(0,m.s5)(Math.random().toString())}`};return S(e=>[...e,a]),a}return(0,f.Q5)("sources",{method:"POST",json:t}).json()}function U(){let e,t=(0,n.c)(2),a=(0,g.jE)();return t[0]!==a?(e={mutationFn:M,onSuccess:()=>{a.invalidateQueries({queryKey:["sources"]})}},t[0]=a,t[1]=e):e=t[1],(0,h.n)(e)}async function M(e){let{id:t}=e;return y.VO?void S(e=>e.filter(e=>e.id!==t)):(0,f.Q5)(`sources/${t}`,{method:"DELETE"})}function k(e,t){let a=new Map(e.map(e=>[e.name,e]));return 0===Array.from(t).filter(e=>!a.has(e)).length}async function P({databaseName:e,tableName:t,connectionId:a,metadata:n}){let r=await n.getColumns({databaseName:e,tableName:t,connectionId:a}),i=(await n.getTableMetadata({databaseName:e,tableName:t,connectionId:a})).primary_key,s=new Set((0,c.bZ)(i)),o=k(r,["Timestamp","Body","SeverityText","TraceId","SpanId","ServiceName","LogAttributes","ResourceAttributes"]),l=k(r,["Timestamp","SpanName","Duration","SpanKind","TraceId","SpanId","ParentSpanId","ServiceName","SpanAttributes","ResourceAttributes","StatusCode","StatusMessage"]),u=r.some(e=>"Events.Timestamp"===e.name),m=(0,c.P1)(r,[c.A2.Date]),d=m?.find(e=>s.has(e.name));return{...null!=d?{timestampValueExpression:d.name}:{},...o?{defaultTableSelectExpression:"Timestamp, ServiceName as service, SeverityText as level, Body",serviceNameExpression:"ServiceName",bodyExpression:"Body",displayedTimestampValueExpression:"Timestamp",eventAttributesExpression:"LogAttributes",implicitColumnExpression:"Body",resourceAttributesExpression:"ResourceAttributes",spanIdExpression:"SpanId",traceIdExpression:"TraceId",severityTextExpression:"SeverityText"}:{},...l?{displayedTimestampValueExpression:"Timestamp",implicitColumnExpression:"SpanName",defaultTableSelectExpression:"Timestamp, ServiceName as service, StatusCode as level, round(Duration / 1e6) as duration, SpanName",eventAttributesExpression:"SpanAttributes",serviceNameExpression:"ServiceName",resourceAttributesExpression:"ResourceAttributes",durationExpression:"Duration",durationPrecision:9,parentSpanIdExpression:"ParentSpanId",spanIdExpression:"SpanId",spanKindExpression:"SpanKind",spanNameExpression:"SpanName",traceIdExpression:"TraceId",statusCodeExpression:"StatusCode",statusMessageExpression:"StatusMessage",...u?{spanEventsValueExpression:"Events"}:{}}:{}}}function V(e){return`(${e.durationExpression})/1e${(e.durationPrecision??9)-3}`}function H(e){return`(${e.durationExpression})/1e${e.durationPrecision??9}`}let W={[d.SX.Gauge]:["TimeUnix","ServiceName","MetricName","Value","Attributes","ResourceAttributes"],[d.SX.Histogram]:["TimeUnix","ServiceName","MetricName","Attributes","ResourceAttributes","Count","Sum","BucketCounts","ExplicitBounds"],[d.SX.Sum]:["TimeUnix","ServiceName","MetricName","Value","Attributes","ResourceAttributes"],[d.SX.Summary]:["Attributes","TimeUnix","Count","Sum","ValueAtQuantiles.Quantile","ValueAtQuantiles.Value","Flags","ServiceName","MetricName","ResourceAttributes"],[d.SX.ExponentialHistogram]:["Attributes","TimeUnix","Count","Sum","Scale","ZeroCount","PositiveOffset","PositiveBucketCounts","NegativeOffset","NegativeBucketCounts","Flags","ServiceName","MetricName","ResourceAttributes"]};async function B({databaseName:e,tableName:t,connectionId:a,metricType:n,metadata:r}){return!!t&&k(await r.getColumns({databaseName:e,tableName:t,connectionId:a}),W[n])}async function j({databaseName:e,tableName:t,connectionId:a,metadata:n}){if(!t)return!1;let r=await n.getColumns({databaseName:e,tableName:t,connectionId:a});return k(r,Object.values(A))||k(r,Object.values(N))}},82641:(e,t,a)=>{var n=a(20470);n.g,n.i,n.A,t.lZ=n.v,n.C,t.w5=n.u,t.Or=n.t,t.qQ=n.s,n.$,n.aa,n.p,t.fB=n.B,n.J,n.U,n.I,n.O,n.N,n.R,t.mJ=n.T,n.S,n.k,t.t2=n.b,n.E,n.h,n.o,n.Y,n.c,t.SX=n.a,n.G,t.K5=n.P,n.Q,n.j,n.d,n.K,n.F,n.f,n.e,n.l,n.q,n.n,n.m,t.GL=n.X,n.Z,n.D,n.V,n.W,n.L,n.M,t.x=n.r,n.H,t.z1=n._,t.Oq=n.x,n.w,n.y,n.z},88459:(e,t,a)=>{function n(e){let t,a=e[0],n=1;for(;na.call(t,...e)),t=void 0)}return a}function r(e){let t=n(e);return null==t||t}var i=a(9641);a(30404),a(31356),a(20470);var s=a(5216),o=(e,t)=>{t||(t={});let a=new URL(e instanceof URL?e:e instanceof Request?e.url:e),i=n([t,"access",e=>e.headers,"optionalAccess",e=>e.Authorization]),[s,o]=window.atob(i.substring(6)).split(":");return r([t,"access",e=>e.headers,"optionalAccess",e=>delete e.Authorization]),r([t,"access",e=>e.headers,"optionalAccess",e=>delete e.authorization]),s&&a.searchParams.set("user",s),o&&a.searchParams.set("password",o),t.credentials="omit",fetch(`${a.toString()}`,t)},l=(e,t)=>(t||(t={}),r([t,"access",e=>e.headers,"optionalAccess",e=>delete e.Authorization]),r([t,"access",e=>e.headers,"optionalAccess",e=>delete e.authorization]),fetch(e,t)),u=t.Kc=async({host:e,username:t,password:a})=>{try{return(await new c({host:e,username:t,password:a}).query({query:"SELECT 1",format:"TabSeparatedRaw"})).text().then(e=>"1"===e.trim())}catch(e){return console.warn("Failed to test local connection",e),!1}},c=t.aP=class extends i.y{constructor(e){super(e)}buildClient(){var e,t,a,n;let r=this.host,i,u=null!=this.username&&null!=this.password,c={};u?(i=o,c.add_http_cors_header=1):(r=`${window.origin}${this.host}`,i=l);let m=new URL(r);return s.createClient.call(void 0,{url:m.origin,pathname:m.pathname,clickhouse_settings:c,username:(e=this.username,t=()=>"",null!=e?e:t()),password:(a=this.password,n=()=>"",null!=a?a:n()),keep_alive:{enabled:!1},fetch:i,request_timeout:this.requestTimeout,application:this.application})}async __query({query:e,format:t="JSON",query_params:a={},abort_signal:n,clickhouse_settings:r,connectionId:i,queryId:s}){null==this.client&&(this.client=this.buildClient()),this.logDebugQuery(e,a);let o=this.processClickhouseSettings(r),l={...i&&"local"!==i?{"x-hyperdx-connection-id":i}:{}};return this.getClient().query({query:e,query_params:a,format:t,abort_signal:n,http_headers:l,clickhouse_settings:o,query_id:s})}};t.aP=c,t.Kc=u},91021:(e,t,a)=>{a.d(t,{Kc:()=>b,HD:()=>_,zu:()=>R});var n=a(75155),r=a(35467),i=a(67270),s=a(76089),o=a(73854),l=a(93251),u=a(12482),c=a(43152),m=a(49672),d=a(98142),p=a(79339),g=a.n(p);let h="hyperdx",f=e=>{let t=g().sha1(e),a=(0,i.v4)(e.aggCondition);switch(e.aggFn){case"min":case"max":case"sum":case"avg":return{fieldName:t,fn:`${e.aggFn}${a?"If":""}`,args:["Nullable(Float64)",...a?["UInt8"]:[]]};case"count":return{fieldName:t,fn:`${e.aggFn}${a?"If":""}`,args:a?["UInt8"]:[]};default:throw Error(`Unsupported aggregation function: ${e.aggFn}`)}},y=async(e,t,a,n)=>{let s,o={...e,...Array.isArray(e.select)&&{select:e.select.map(e=>{let{fieldName:t,fn:a}=f(e);return{...e,aggFn:`${a}State`,alias:t}})},granularity:n??e.granularity,dateRange:void 0,orderBy:void 0,limit:void 0},l=await (0,i.PV)(o,t,a),u=g().sha1(l),c=`${e.from.tableName}_mv_${u}`,m={...e,...Array.isArray(e.select)&&{select:e.select.map(e=>{let{fieldName:t,fn:a}=f(e);return{aggFn:`${a}Merge`,valueExpression:t,alias:`${e.aggFn}(${e.valueExpression})`}})},timestampValueExpression:i.n_,from:{databaseName:h,tableName:c}};return{mtViewName:c,dataTableDDL:(0,r.l6)(((e,t)=>{if(!Array.isArray(t.select))throw Error("Only array select is supported");if((0,i.x1)(t))throw Error("Group by is not supported");return(0,r.kg)`CREATE TABLE IF NOT EXISTS ${h}.${{Identifier:e}} - ( - ${{Identifier:i.n_}} DateTime, - ${t.select.map(e=>{let{args:t,fieldName:a,fn:n}=f(e),r=[n,...t].join(",");return`${a} AggregateFunction(${r})`}).join(",\n")} - ) - ENGINE = AggregatingMergeTree - ORDER BY ${{Identifier:i.n_}} - SETTINGS index_granularity = 8192 - `})(`${c}_data`,e)),mtViewDDL:(0,r.l6)((s=`${c}_data`,(0,r.kg)`CREATE MATERIALIZED VIEW IF NOT EXISTS ${h}.${{Identifier:c}} TO ${h}.${{Identifier:s}} AS - ${l} - `)),renderMTViewConfig:async()=>{try{return await (0,i.PV)(m,t,a)}catch(e){return console.error("Failed to render MTView config",e),null}}}};var E=a(78550),A=a(81973),N=a(69519),T=a(57389);async function*S({config:e,clickhouseClient:t,signal:a,enableQueryChunking:n=!1,enableParallelQueries:r=!1,metadata:o,querySettings:l}){let u=n&&!(!(0,i.lE)(e)||!e.dateRange||(0,i.bv)(e))&&1?((e,t)=>{let[a,n]=e.dateRange,r=(0,N.so)(a,n,void 0),i="auto"===e.granularity?(0,s.tA)(e.dateRange):e.granularity,o=[];for(let[t,a]of r.entries()){let s=t===r.length-1?a.startTime:(0,c.W6)(a.startTime,i),l=0===t?n:(0,c.W6)(a.endTime,i);(!o.length||s{let i={...e,...n??{}};return{index:r,queryResult:await t.queryChartConfig({config:i,metadata:o,opts:{abort_signal:a},querySettings:l})}}),r=[...n],i=Array(u.length),s=0;for(let e=0;e0&&void 0!==i[0];){let e=i.shift();yield{chunk:e,isComplete:0===i.length},s+=1}}return}for(let n=0;n{let o=s?.optimizedConfig??e,l=r.getQueryCache().find({queryKey:a.queryKey,exact:!0}),u=!!l&&void 0!==l.state.data,m=S({config:o,clickhouseClient:n,signal:a.signal,enableQueryChunking:t?.enableQueryChunking,enableParallelQueries:t?.enableParallelQueries,metadata:i,querySettings:c?.querySettings}),d={data:[],meta:[],rows:0,isComplete:!1};for await(let e of m){if(a.signal.aborted)break;d=function(e,{chunk:t,isComplete:a}){return{data:[...t.data||[],...e?.data||[]],meta:t.meta,rows:(e?.rows||0)+(t.rows||0),isComplete:a}}(d,e),u||r.setQueryData(a.queryKey,d)}return u&&!a.signal.aborted&&r.setQueryData(a.queryKey,d),r.getQueryData(a.queryKey)},retry:1,refetchOnWindowFocus:!1,...t,enabled:a&&!o&&!d});return p.isError&&t?.onError&&t.onError(p.error),{...p,isLoading:p.isLoading||o}}function R(e,t){let a,s,l,c,m,d,p,g=(0,n.c)(21);g[0]!==t?(a=t??{},g[0]=t,g[1]=a):a=g[1];let{enabled:h}=a,f=void 0===h||h,y=(0,E.Ge)(),N=!!f;g[2]!==N?(s={enabled:N,placeholderData:void 0},g[2]=N,g[3]=s):s=g[3];let{data:S,isLoading:_}=(0,T.d)(e,s);g[4]!==e.source?(l={id:e.source},g[4]=e.source,g[5]=l):l=g[5];let{data:R,isLoading:b}=(0,A.Fo)(l);g[6]!==e?(c=["renderedSql",e],g[6]=e,g[7]=c):c=g[7],g[8]!==e||g[9]!==y||g[10]!==S?.optimizedConfig||g[11]!==R?.querySettings?(m=async()=>{let t=S?.optimizedConfig??e,a=await (0,i.PV)(t,y,R?.querySettings);return(0,o.GP)((0,r.l6)(a))},g[8]=e,g[9]=y,g[10]=S?.optimizedConfig,g[11]=R?.querySettings,g[12]=m):m=g[12];let C=f&&!_&&!b;g[13]!==t||g[14]!==c||g[15]!==m||g[16]!==C?(d={queryKey:c,queryFn:m,...t,enabled:C},g[13]=t,g[14]=c,g[15]=m,g[16]=C,g[17]=d):d=g[17];let w=(0,u.I)(d),I=w.isLoading||_;return g[18]!==w||g[19]!==I?(p={...w,isLoading:I},g[18]=w,g[19]=I,g[20]=p):p=g[20],p}function b(e,t){let a,s,o,l,c=(0,n.c)(20);c[0]!==e?(a=e?.dateRange&&(0,i.lE)(e)?e.dateRange[1].getTime()-e.dateRange[0].getTime():void 0,c[0]=e,c[1]=a):a=c[1];let m=a,d=(0,E.Ge)(),p=e?.select,g=e?.from,h=e?.connection,f=e?.with,y=e?.groupBy,A=e?.selectGroupBy,N=e?.granularity,T=e?.seriesReturnType;c[2]!==m||c[3]!==p||c[4]!==g||c[5]!==h||c[6]!==f||c[7]!==y||c[8]!==A||c[9]!==N||c[10]!==T?(s=["aliasMap",p,g,h,f,y,A,N,T,m],c[2]=m,c[3]=p,c[4]=g,c[5]=h,c[6]=f,c[7]=y,c[8]=A,c[9]=N,c[10]=T,c[11]=s):s=c[11],c[12]!==e||c[13]!==d?(o=async()=>{if(null==e)return{};let t=await (0,i.PV)(e,d,void 0);return(0,r.D7)(t)},c[12]=e,c[13]=d,c[14]=o):o=c[14];let S=null!=e;return c[15]!==t||c[16]!==o||c[17]!==S||c[18]!==s?(l={queryKey:s,queryFn:o,enabled:S,...t},c[15]=t,c[16]=o,c[17]=S,c[18]=s,c[19]=l):l=c[19],(0,u.I)(l)}},93108:(e,t,a)=>{a.d(t,{Gs:()=>p,Ir:()=>E,PQ:()=>S,ZY:()=>f,Zm:()=>N,xZ:()=>h});var n=a(75155),r=a(91985),i=a.n(r),s=a(88459),o=a(12482),l=a(93251),u=a(16932),c=a(6876),m=a(98142),d=a(92917);let p="connections";function g(e){let t=new StorageEvent("storage",{key:p,oldValue:i().session.get(p),newValue:JSON.stringify(e),storageArea:window.sessionStorage,url:window.location.href});i().session.set(p,e),window.dispatchEvent(t)}function h(){if(i().session.has(p))return i().session.get(p)??[];try{let e=(0,d.Ol)(m.$E??"");if(null!=e)return e}catch(e){console.error("Error fetching default connections",e)}return[]}function f(){let e,t=(0,n.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={queryKey:["connections"],queryFn:y},t[0]=e):e=t[0],(0,o.I)(e)}function y(){return m.VO?h():(0,c.Q5)("connections").json()}function E(){let e,t=(0,n.c)(2),a=(0,l.jE)();return t[0]!==a?(e={mutationFn:A,onSuccess:()=>{a.invalidateQueries({queryKey:["connections"]})}},t[0]=a,t[1]=e):e=t[1],(0,u.n)(e)}async function A(e){let{connection:t}=e;if(m.VO){if(!await (0,s.Kc)({host:t.host,username:t.username,password:t.password??""}))throw Error("Could not connect to Clickhouse with connection details");let e={id:"local"};return g([{...t,...e}]),e}return await (0,c.Q5)("connections",{method:"POST",json:t}).json()}function N(){let e,t=(0,n.c)(2),a=(0,l.jE)();return t[0]!==a?(e={mutationFn:T,onSuccess:()=>{a.invalidateQueries({queryKey:["connections"]})}},t[0]=a,t[1]=e):e=t[1],(0,u.n)(e)}async function T(e){let{connection:t,id:a}=e;m.VO?g([{...t,id:"local"}]):await (0,c.Q5)(`connections/${a}`,{method:"PUT",json:t})}function S(){let e,t=(0,n.c)(2),a=(0,l.jE)();return t[0]!==a?(e={mutationFn:_,onSuccess:()=>{a.invalidateQueries({queryKey:["connections"]})}},t[0]=a,t[1]=e):e=t[1],(0,u.n)(e)}async function _(e){let{id:t}=e;m.VO?g(h().filter(e=>e.id!==t)):await (0,c.Q5)(`connections/${t}`,{method:"DELETE"})}}}]); \ No newline at end of file diff --git a/out/_next/static/chunks/1021-c6bacb966b958ce2.js b/out/_next/static/chunks/1021-c6bacb966b958ce2.js new file mode 100644 index 0000000..448432e --- /dev/null +++ b/out/_next/static/chunks/1021-c6bacb966b958ce2.js @@ -0,0 +1,239 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1021],{2615:(e,t,a)=>{var n=a(5062);a(75131),a(17769),n.a,t.YR=n.e,n.b,n.d,t.bn=n.c},3145:(e,t,a)=>{var n=a(31832);a(5062),a(75131),a(17769),t.qs=n.l,n.n,n.m,t.yb=n.q,n.o,t.VO=n.p},5062:(e,t,a)=>{function n(e,t){return null!=e?e:t()}function r(e){let t,a=e[0],n=1;for(;na.call(t,...e)),t=void 0)}return a}async function i(e){let t,a=e[0],n=1;for(;na.call(t,...e)),t=void 0)}return a}Object.defineProperty(t,"__esModule",{value:!0});var s=a(75131),o=a(17769),l=a(35362);async function u(e,t,a){try{return!!await i([await a.getColumn({...e,column:t}),"optionalAccess",async e=>e.type,"access",async e=>e.startsWith,"call",async e=>e("SimpleAggregateFunction(")])}catch(e){return!1}}async function c(e,t,a){try{let n=await i([await a.getColumn({...e,column:t}),"optionalAccess",async e=>e.type]);return n?r([n,"access",e=>e.match,"call",e=>e(/^AggregateFunction\(\s*([^(, ]+)\s*\(/),"optionalAccess",e=>e[1]]):void 0}catch(e){return}}async function m(e,t,a,n){return"count"===a?"sum":await u(e,t,n)?a:`${a}Merge`}function d(e,t,a){return e.aggregatedColumns.find(e=>e.aggFn===a&&("count"===e.aggFn||e.sourceColumn===t))}function p(e,t){if(e.minDate&&!t.dateRange)return!1;if(!e.minDate||!t.dateRange)return!0;let[a]=t.dateRange;return a>=new Date(e.minDate)}var g=/\bcount(If)?\s*\(/i;function h(e){return g.test(e.valueExpression)}async function f(e,t,a,n){var r;let{valueExpression:i,aggFn:s}=t,l=s;if(h(t))throw Error("Custom count() expressions are not supported with materialized views.");if(!l)return t;if(!((r=l)&&o.h.safeParse(r).success))throw Error(`Aggregate function ${l} is not valid.`);let u=d(e,"",l);if(u){let e=u.mvColumn,r=await m(a,e,l,n);return{...t,valueExpression:e,aggFn:r}}let p=d(e,i,l);if(!p)throw Error(`The aggregate function ${function(e,t){if("quantile"!==e)return e;switch(t){case .5:return"median";case .9:return"p90";case .95:return"p95";case .99:return"p99";default:return"quantile"}}(l,t.level)} is not available for column '${i}'.`);if("quantile"===t.aggFn&&"level"in t&&"number"==typeof t.level){let e=await c(a,p.mvColumn,n);e&&(l=e)}let g=await m(a,p.mvColumn,l,n);return{...t,valueExpression:p.mvColumn,aggFn:g}}async function y(e,t,a){if(!Array.isArray(e.select))return{errors:["Only array-based select statements are supported."]};if(t.minDate&&!p(t,e))return{errors:["The selected date range includes dates for which this view does not contain data."]};if(!function(e,t){if(!t.granularity&&!t.dateRange)return!0;let a=t.granularity||"auto";if("auto"===a&&!t.dateRange)return!1;let n="auto"===a&&t.dateRange?s.l.call(void 0,t.dateRange):a,r=s.m.call(void 0,n),i=s.m.call(void 0,e.minGranularity);return r>=i&&r%i==0}(t,e))return{errors:[e.granularity?`Granularity must be a multiple of the view's granularity (${t.minGranularity}).`:"The selected date range is too short for the granularity of this materialized view."]};let n={databaseName:t.databaseName,tableName:t.tableName,connectionId:e.connection},r=await Promise.allSettled(e.select.map(e=>f(t,e,n,a))),i=[],o=[];for(let e of r)"rejected"===e.status?o.push(e.reason.message):i.push(e.value);return o.length>0?{errors:o}:{optimizedConfig:{...structuredClone(e),select:i,timestampValueExpression:t.timestampColumn,from:{databaseName:t.databaseName,tableName:t.tableName},..."dateRange"in e&&e.dateRange?{dateRangeEndInclusive:!1,dateRange:s.A.call(void 0,e.dateRange,t.minGranularity)}:{}}}}async function E(e,t,a,r,i,s){let o=[],l;if(e.with){let a=await Promise.all(e.with.map(async e=>e.chartConfig&&e.chartConfig.from.databaseName===s.from.databaseName&&e.chartConfig.from.tableName===s.from.tableName?y(e.chartConfig,i,t):{optimizedConfig:void 0,errors:[]}));a.some(e=>!!e.optimizedConfig)&&(l={...structuredClone(e),with:e.with.map((e,t)=>({...e,chartConfig:n(a[t].optimizedConfig,()=>e.chartConfig)}))}),o.push(...a.flatMap(e=>n(e.errors,()=>[])))}if(e.from.databaseName===s.from.databaseName&&e.from.tableName===s.from.tableName){let a=await y(n(l,()=>e),i,t);a.optimizedConfig&&(l=a.optimizedConfig),o.push(...n(a.errors,()=>[]))}if(l){let{isValid:e,rowEstimate:n=1/0,error:i}=await a.testChartConfigValidity({config:l,metadata:t,opts:{abort_signal:r},querySettings:s.querySettings});if(i&&o.push(i),e)return{optimizedConfig:l,rowEstimate:n,errors:[]}}return{errors:o}}async function A(e,t,a,r,i){let s=n(i.materializedViews,()=>[]),o=await Promise.all(s.map(n=>E(e,t,a,r,n,i).then(e=>({...e,mvConfig:n})))),l,u=1/0;for(let e of o)e.optimizedConfig&&n(e.rowEstimate,()=>1/0)1/0));let c=o.map(({optimizedConfig:e,errors:t,rowEstimate:a,mvConfig:n})=>({success:!!e&&e===l,errors:t,rowEstimate:a,mvConfig:n}));return{optimizedConfig:l,explanations:c}}async function N(e,t,a,r,i){let{optimizedConfig:s}=await A(e,t,a,r,i);return n(s,()=>e)}function T(e){return`${e.databaseName}.${e.tableName}`}async function S({chartConfig:e,keys:t,source:a,clickhouseClient:i,metadata:o,signal:u}){let c=new Map((r([a,"optionalAccess",e=>e.materializedViews])||[]).map(e=>[T(e),e])),m=new Map;for(let[a,n]of c.entries()){let r=e.dateRange?function(e,t){let[a,n]=e,r=s.m.call(void 0,t);return Math.floor(l.differenceInSeconds.call(void 0,n,a)/r)}(e.dateRange,n.minGranularity):1/0;if(p(n,e)&&r>=3){let e=s.e.call(void 0,n.dimensionColumns),r=t.filter(t=>e.includes(t));r.length>0&&m.set(a,r)}}let d=[...m.entries()].map(([t,a])=>{let{databaseName:n,tableName:r,timestampColumn:i}=c.get(t);return{...structuredClone(e),timestampValueExpression:i,from:{databaseName:n,tableName:r},select:a.map((e,t)=>`groupUniqArray(1)(${e}) AS param${t}`).join(", ")}}),g=await Promise.all(d.map(async e=>{let{isValid:t,rowEstimate:n=1/0}=await i.testChartConfigValidity({config:e,metadata:o,opts:{abort_signal:u},querySettings:r([a,"optionalAccess",e=>e.querySettings])});return{id:T({databaseName:e.from.databaseName,tableName:e.from.tableName}),isValid:t,rowEstimate:n}})),h=new Map,f=new Set(t);for(let e of g.filter(e=>e.isValid).sort((e,t)=>e.rowEstimate-t.rowEstimate)){let t=n(m.get(e.id),()=>[]).filter(e=>f.has(e));if(t.length)for(let a of(h.set(e.id,t),t))f.delete(a)}let y=[...h.entries()].map(([t,a])=>{let{databaseName:n,tableName:r,timestampColumn:i}=c.get(t);return{chartConfig:{...structuredClone(e),timestampValueExpression:i,from:{databaseName:n,tableName:r}},keys:a}});return f.size&&y.push({chartConfig:structuredClone(e),keys:[...f]}),y}t.a=h,t.b=y,t.c=A,t.d=N,t.e=S},6876:(e,t,a)=>{a.d(t,{Ay:()=>m,Q5:()=>c});var n=a(81278),r=a.n(n),i=a(62910),s=a(16932),o=a(12482),l=a(98142);let u=i.Ay.create({prefixUrl:"/api",credentials:"include",hooks:{afterResponse:[function(e,t,a){if(!["/","/forgot","/join-team","/login","/register","/reset-password"].includes(r().pathname)&&401===a.status){try{window.sessionStorage.setItem("hdx-login-redirect-url",r().asPath)}catch(e){console.error(e)}r().push("/login")}}]},timeout:!1}),c=(e,t)=>u(e,{...t}),m={useCreateAlert:()=>(0,s.n)({mutationFn:async e=>u("alerts",{method:"POST",json:e}).json()}),useUpdateAlert:()=>(0,s.n)({mutationFn:async e=>u(`alerts/${e.id}`,{method:"PUT",json:e}).json()}),useDeleteAlert:()=>(0,s.n)({mutationFn:async e=>u(`alerts/${e}`,{method:"DELETE"})}),useSilenceAlert:()=>(0,s.n)({mutationFn:async({alertId:e,mutedUntil:t})=>u(`alerts/${e}/silenced`,{method:"POST",json:{mutedUntil:t}})}),useUnsilenceAlert:()=>(0,s.n)({mutationFn:async e=>u(`alerts/${e}/silenced`,{method:"DELETE"})}),useDashboards:e=>(0,o.I)({queryKey:["dashboards"],queryFn:()=>l.VO?null:c("dashboards",{method:"GET"}).json(),...e}),useCreateDashboard:()=>(0,s.n)({mutationFn:async({name:e,charts:t,query:a,tags:n})=>c("dashboards",{method:"POST",json:{name:e,charts:t,query:a,tags:n}}).json()}),useUpdateDashboard:()=>(0,s.n)({mutationFn:async({id:e,name:t,charts:a,query:n,tags:r})=>c(`dashboards/${e}`,{method:"PUT",json:{name:t,charts:a,query:n,tags:r}}).json()}),useDeleteDashboard:()=>(0,s.n)({mutationFn:async({id:e})=>c(`dashboards/${e}`,{method:"DELETE"}).json()}),usePresetDashboardFilters:(e,t,a=!0)=>(0,o.I)({queryKey:["dashboards","preset",e,"filters",t],queryFn:()=>c(`dashboards/preset/${e}/filters/`,{method:"GET",searchParams:{sourceId:t}}).json(),enabled:!!t&&a}),useCreatePresetDashboardFilter:()=>(0,s.n)({mutationFn:async e=>c(`dashboards/preset/${e.presetDashboard}/filter`,{method:"POST",json:{filter:e}}).json()}),useUpdatePresetDashboardFilter:()=>(0,s.n)({mutationFn:async e=>c(`dashboards/preset/${e.presetDashboard}/filter`,{method:"PUT",json:{filter:e}}).json()}),useDeletePresetDashboardFilter:()=>(0,s.n)({mutationFn:async({id:e,presetDashboard:t})=>c(`dashboards/preset/${t}/filter/${e}`,{method:"DELETE"}).json()}),useAlerts:()=>(0,o.I)({queryKey:["alerts"],queryFn:()=>c("alerts").json()}),useServices:()=>(0,o.I)({queryKey:["services"],queryFn:()=>c("chart/services",{method:"GET"}).json()}),useRotateTeamApiKey:()=>(0,s.n)({mutationFn:async()=>c("team/apiKey",{method:"PATCH"}).json()}),useDeleteTeamMember:()=>(0,s.n)({mutationFn:async({userId:e})=>c(`team/member/${e}`,{method:"DELETE"}).json()}),useTeamInvitations:()=>(0,o.I)({queryKey:["team/invitations"],queryFn:()=>c("team/invitations").json()}),useSaveTeamInvitation:()=>(0,s.n)({mutationFn:async({name:e,email:t})=>c("team/invitation",{method:"POST",json:{name:e,email:t}}).json()}),useDeleteTeamInvitation:()=>(0,s.n)({mutationFn:async({id:e})=>c(`team/invitation/${e}`,{method:"DELETE"}).json()}),useInstallation:()=>(0,o.I)({queryKey:["installation"],queryFn:()=>{if(!l.VO)return c("installation").json()}}),useMe:()=>(0,o.I)({queryKey:["me"],queryFn:()=>l.VO?null:c("me").json()}),useTeam:()=>(0,o.I)({queryKey:["team"],queryFn:()=>l.VO?null:c("team").json(),retry:1}),useTeamMembers:()=>(0,o.I)({queryKey:["team/members"],queryFn:()=>c("team/members").json()}),useSetTeamName:()=>(0,s.n)({mutationFn:async({name:e})=>c("team/name",{method:"PATCH",json:{name:e}}).json()}),useUpdateClickhouseSettings:()=>(0,s.n)({mutationFn:async e=>c("team/clickhouse-settings",{method:"PATCH",json:e}).json()}),useTags:()=>(0,o.I)({queryKey:["team/tags"],queryFn:()=>c("team/tags").json()}),useSaveWebhook:()=>(0,s.n)({mutationFn:async({service:e,url:t,name:a,description:n,queryParams:r,headers:i,body:s})=>c("webhooks",{method:"POST",json:{name:a,service:e,url:t,description:n,queryParams:r||{},headers:i||{},body:s}}).json()}),useUpdateWebhook:()=>(0,s.n)({mutationFn:async({id:e,service:t,url:a,name:n,description:r,queryParams:i,headers:s,body:o})=>c(`webhooks/${e}`,{method:"PUT",json:{name:n,service:t,url:a,description:r,queryParams:i||{},headers:s||{},body:o}}).json()}),useWebhooks:e=>(0,o.I)({queryKey:[...e],queryFn:()=>c("webhooks",{method:"GET",searchParams:[...e.map(e=>["service",e])]}).json()}),useDeleteWebhook:()=>(0,s.n)({mutationFn:async({id:e})=>c(`webhooks/${e}`,{method:"DELETE"}).json()}),useTestWebhook:()=>(0,s.n)({mutationFn:async({service:e,url:t,queryParams:a,headers:n,body:r})=>c("webhooks/test",{method:"POST",json:{service:e,url:t,queryParams:a||{},headers:n||{},body:r}}).json()}),useRegisterPassword:()=>(0,s.n)({mutationFn:async({email:e,password:t,confirmPassword:a})=>c("register/password",{method:"POST",json:{email:e,password:t,confirmPassword:a}}).json()}),useTestConnection:()=>(0,s.n)({mutationFn:async({host:e,username:t,password:a})=>c("clickhouse-proxy/test",{method:"POST",json:{host:e,username:t,password:a}}).json()})}},7565:(e,t,a)=>{a.d(t,{H:()=>l,a:()=>o});var n=a(6029),r=a(75155);a(55729);var i=a(76089),s=a(57820);let o=()=>{let e,t=(0,r.c)(3),{userPreferences:a}=(0,s.HW)(),{isUTC:n,timeFormat:o}=a;return t[0]!==n||t[1]!==o?(e=(e,t)=>{let{format:a}=void 0===t?{}:t;try{let t=e instanceof Date?e:new Date(e);return(0,i.Yq)(t,{clock:o,isUTC:n,format:a})}catch(t){return console.error(t,e),"Unknown date"}},t[0]=n,t[1]=o,t[2]=e):e=t[2],e},l=e=>{let t,a,i=(0,r.c)(6),{value:s,format:l}=e,u=o();return s?(i[0]!==l||i[1]!==u||i[2]!==s?(t=u(s,{format:l}),i[0]=l,i[1]=u,i[2]=s,i[3]=t):t=i[3],i[4]!==t?(a=(0,n.jsx)(n.Fragment,{children:t}),i[4]=t,i[5]=a):a=i[5],a):null}},9897:(e,t,a)=>{a.d(t,{h:()=>r});var n,r=((n={})[n.Pending=1]="Pending",n[n.Running=2]="Running",n[n.Succeeded=3]="Succeeded",n[n.Failed=4]="Failed",n[n.Unknown=5]="Unknown",n)},31832:(e,t,a)=>{let n;function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t}function i(e){return e&&e.__esModule?e:{default:e}}function s(e,t){return null!=e?e:t()}function o(e){let t,a=e[0],n=1;for(;na.call(t,...e)),t=void 0)}return a}Object.defineProperty(t,"__esModule",{value:!0});var l,u,c,m=a(5062),d=a(75131),p=a(17769),g=a(64497),h=r(g),f=r(g),y=i(a(79339)),E=a(71434),A=i(a(64022)),N=i(a(80519)),T=i(a(55235));function S(e){return e.replace(/\\"/g,'"').replace(/HDX_BACKSLASH_LITERAL/g,"\\").replace("http_COLON_//","http://").replace("https_COLON_//","https://").replace(/localhost_COLON_(\d{1,5})/,"localhost:$1").replace(/HDX_COLON/g,":")}function _(e){return T.default.parse(e.replace(/\\\\/g,"HDX_BACKSLASH_LITERAL").replace("http://","http_COLON_//").replace("https://","https_COLON_//").replace(/localhost:(\d{1,5})/,"localhost_COLON_$1").replace(/\\:/g,"HDX_COLON"))}function R(e){let t=(e=>{let t=e.indexOf("['");if(-1!==t)return{map:e.slice(0,t),key:e.slice(t+2,-2)}})(e);if(t)return N.default.format("mapContains(??, ?)",[t.map,t.key])}var b="";function w(e){return"term"in e&&null!=e.term}function C(e){return"inclusive"in e&&null!=e.inclusive}var I=["Int8","Int16","Int32","Int64","Int128","Int256","UInt8","UInt16","UInt32","UInt64","UInt128","UInt256","Float32","Float64"];async function $({field:e,metadata:t,databaseName:a,tableName:n,connectionId:r}){let i=e.split("."),s="";for(let e of i){s=s?`${s}.${e}`:e;let i=await t.getColumn({databaseName:a,tableName:n,column:s,connectionId:r});if(i)return i}}var x=class{constructor({metadata:e,databaseName:t,tableName:a,connectionId:n}){this.metadata=e,this.databaseName=t,this.tableName=a,this.connectionId=n}translateField(e,t){return e===b?s(t.implicitColumnExpression,()=>"event"):`'${e}'`}async getFieldType(e){let t=await $({field:e,metadata:this.metadata,databaseName:this.databaseName,tableName:this.tableName,connectionId:this.connectionId}),a=e.split(".").slice(t?t.name.split(".").length:0).join(".");if(!t)return{isArray:!1,type:null};let n=ef(t.type),r="array"===n;return r&&eE(t.type)&&(n=eE(t.type)),{isArray:r,type:n,fieldPostfix:a,column:t.name}}operator(e){switch(e){case"NOT":case"AND NOT":return"AND NOT";case"OR NOT":return"OR NOT";case"&&":case"":case"AND":return"AND";case"||":case"OR":return"OR";default:throw Error(`Unexpected operator. ${e}`)}}async eq(e,t,a,n){let{isArray:r}=await this.getFieldType(e);return`${this.translateField(e,n)} ${r?a?"does not contain":"contains":a?"is not":"is"} ${t}`}async isNotNull(e,t,a){let{isArray:n,type:r,fieldPostfix:i,column:s}=await this.getFieldType(e);return s&&n&&("map"===r||"json"===r)&&i?`${this.translateField(s,a)} ${t?`does not contain an element with non-null ${i}`:`contains an element with non-null ${i}`}`:`${this.translateField(e,a)} ${t?"is null":"is not null"}`}async gte(e,t,a){return`${this.translateField(e,a)} is greater than or equal to ${t}`}async lte(e,t,a){return`${this.translateField(e,a)} is less than or equal to ${t}`}async lt(e,t,a){return`${this.translateField(e,a)} is less than ${t}`}async gt(e,t,a){return`${this.translateField(e,a)} is greater than ${t}`}async fieldSearch(e,t,a,n,r,i){let s=t.trim().match(/\s/)?`"${t}"`:t;if(e===b){let t=!i.implicitColumnExpression;return`${this.translateField(e,i)} ${n&&r?a?"does not contain":"contains":n?a?"does not end with":"ends with":r?a?"does not start with":"starts with":t?a?"does not have whole word":"has whole word":a?"does not contain":"contains"} ${s}`}{let{isArray:t,type:n,column:r,fieldPostfix:o}=await this.getFieldType(e),l=t&&("map"===n||"json"===n),u=l&&r?r:e;return`${this.translateField(u,i)} ${l?a?`does not contain an element with key ${o} and value`:`contains an element with key ${o} and value`:t&&"bool"!==n&&"number"!==n?a?"does not contain an element containing":"contains an element containing":a?"does not contain":"contains"} ${s}`}}async range(e,t,a,n){return`${e} ${n?"is not":"is"} between ${t} and ${a}`}},v=t.M=l=class{constructor(){l.prototype.__init.call(this)}__init(){this.NOT_FOUND_QUERY="(1 = 0)"}operator(e){switch(e){case"NOT":case"AND NOT":return"AND NOT";case"OR NOT":return"OR NOT";case"&&":case"":case"AND":return"AND";case"||":case"OR":return"OR";default:throw Error(`Unexpected operator. ${e}`)}}async eq(e,t,a,n){let{column:r,columnJSON:i,found:s,propertyType:l,isArray:u,mapKeyIndexExpression:c,arrayMapKeyExpression:m}=await this.getColumnForField(e,n);if(!s)return this.NOT_FOUND_QUERY;if(r&&u)return O({column:r,mapKey:m,term:t,propertyType:l,isNegatedField:a,exactMatch:!0});let d=c&&!a?` AND ${c}`:"";if("bool"===l){let e=`${t}`.trim().toLowerCase();return N.default.format(`(?? ${a?"!":""}= ?${d})`,[r,"true"===e?1:"false"===e?0:parseInt(e)])}return"number"===l?N.default.format(`(${r} ${a?"!":""}= CAST(?, 'Float64')${d})`,[t]):"json"===l?N.default.format(`(${o([i,"optionalAccess",e=>e.string])} ${a?"!":""}= ?${d})`,[t]):N.default.format(`(${r} ${a?"!":""}= ?${d})`,[t])}async isNotNull(e,t,a){let{column:n,columnJSON:r,found:i,propertyType:s,mapKeyIndexExpression:l,isArray:u,arrayMapKeyExpression:c}=await this.getColumnForField(e,a);if(!i)return this.NOT_FOUND_QUERY;let m=l&&!t?` AND ${l}`:"";if(n&&u&&("map"===s||"json"===s)&&c){let e="map"===s?N.default.format("el[?]",[c]):N.default.format("el.??",[c]);return N.default.format(`${t?"NOT ":""}arrayExists(el -> notEmpty(toString(${e})) = 1, ?)`,[N.default.raw(n)])}return"json"!==s||u?`notEmpty(${n}) ${t?"!":""}= 1${m}`:`notEmpty(${o([r,"optionalAccess",e=>e.string])}) ${t?"!":""}= 1${m}`}async gte(e,t,a){let{column:n,columnJSON:r,found:i,propertyType:s,isArray:l,mapKeyIndexExpression:u}=await this.getColumnForField(e,a);if(!i)return this.NOT_FOUND_QUERY;if(l)throw Error(">= comparison is not supported for Array-type fields");let c=u?` AND ${u}`:"";return"json"===s?N.default.format(`(${o([r,"optionalAccess",e=>e.number])} >= ?${c})`,[t]):N.default.format(`(${n} >= ?${c})`,[t])}async lte(e,t,a){let{column:n,columnJSON:r,found:i,propertyType:s,isArray:l,mapKeyIndexExpression:u}=await this.getColumnForField(e,a);if(!i)return this.NOT_FOUND_QUERY;if(l)throw Error("<= comparison is not supported for Array-type fields");let c=u?` AND ${u}`:"";return"json"===s?N.default.format(`(${o([r,"optionalAccess",e=>e.number])} <= ?${c})`,[t]):N.default.format(`(${n} <= ?${c})`,[t])}async lt(e,t,a){let{column:n,columnJSON:r,found:i,propertyType:s,isArray:l,mapKeyIndexExpression:u}=await this.getColumnForField(e,a);if(!i)return this.NOT_FOUND_QUERY;if(l)throw Error("< comparison is not supported for Array-type fields");let c=u?` AND ${u}`:"";return"json"===s?N.default.format(`(${o([r,"optionalAccess",e=>e.number])} < ?${c})`,[t]):N.default.format(`(${n} < ?${c})`,[t])}async gt(e,t,a){let{column:n,columnJSON:r,found:i,propertyType:s,isArray:l,mapKeyIndexExpression:u}=await this.getColumnForField(e,a);if(!i)return this.NOT_FOUND_QUERY;if(l)throw Error("> comparison is not supported for Array-type fields");let c=u?` AND ${u}`:"";return"json"===s?N.default.format(`(${o([r,"optionalAccess",e=>e.number])} > ?${c})`,[t]):N.default.format(`(${n} > ?${c})`,[t])}attemptToParseNumber(e){let t=Number.parseFloat(e);return Number.isNaN(t)?e:t}tokenizeTerm(e){return e.split(/[ -/:-@[-`{-~\t\n\r]+/).filter(e=>e.length>0)}termHasSeparators(e){return null!=e.match(/[ -/:-@[-`{-~\t\n\r]+/)}async range(e,t,a,n,r){let{column:i,found:s,mapKeyIndexExpression:o,isArray:l}=await this.getColumnForField(e,r);if(!s)return this.NOT_FOUND_QUERY;if(l)throw Error("range comparison is not supported for Array-type fields");let u=o&&!n?` AND ${o}`:"";return N.default.format(`(${i} ${n?"NOT ":""}BETWEEN ? AND ?${u})`,[this.attemptToParseNumber(t),this.attemptToParseNumber(a)])}};function O({column:e,mapKey:t,term:a,isNegatedField:n,propertyType:r,exactMatch:i}){let s=n?"NOT ":"";if("number"===r)return N.default.format(`${s}has(?, CAST(?, 'Float64'))`,[N.default.raw(e),a]);if("bool"===r){let t=`${a}`.trim().toLowerCase(),n="true"===t?1:"false"===t?0:a;return N.default.format(`${s}has(?, ?)`,[N.default.raw(e),n])}if("map"===r){if(!t)throw Error(`Map key expression is required for searching column ${e}. Try '${e}.key:value'`);return i?N.default.format(`${s}arrayExists(el -> el[?] = ?, ?)`,[t,a,N.default.raw(e)]):N.default.format(`${s}arrayExists(el -> el[?] ILIKE ?, ?)`,[t,`%${a}%`,N.default.raw(e)])}if("json"===r){if(!t)throw Error(`Map key expression is required for searching column ${e}. Try '${e}.key:value'`);return i?N.default.format(`${s}arrayExists(el -> toString(el.??) = ?, ?)`,[t,a,N.default.raw(e)]):N.default.format(`${s}arrayExists(el -> toString(el.??) ILIKE ?, ?)`,[t,`%${a}%`,N.default.raw(e)])}let o="string"===r?"el":N.default.format("toString(el)",[N.default.raw(e)]);return i&&"string"===r?N.default.format(`${s}has(?, ?)`,[N.default.raw(e),a]):i?N.default.format(`${s}arrayExists(el -> ${o} = ?, ?)`,[a,N.default.raw(e)]):N.default.format(`${s}arrayExists(el -> ${o} ILIKE ?, ?)`,[`%${a}%`,N.default.raw(e)])}var L=class extends v{constructor({metadata:e,databaseName:t,tableName:a,connectionId:n,implicitColumnExpression:r}){super(),this.metadata=e,this.databaseName=t,this.tableName=a,this.implicitColumnExpression=r,this.connectionId=n,this.skipIndicesPromise=this.metadata.getSkipIndices({databaseName:t,tableName:a,connectionId:n}).catch(e=>(console.error("Error fetching skip indices:",e),[])),this.enableTextIndexPromise=this.metadata.getSetting({settingName:"enable_full_text_index",connectionId:n}).then(e=>"1"===e).catch(e=>(console.error("Error fetching enable_full_text_index setting:",e),!1))}async fieldSearch(e,t,a,n,r,i){let s=e===b,{column:l,columnJSON:u,found:c,propertyType:m,isArray:p,mapKeyIndexExpression:g,arrayMapKeyExpression:h}=await this.getColumnForField(e,i);if(!c)return this.NOT_FOUND_QUERY;let f=!g||a||s&&i.isNegatedAndParenthesized?"":` AND ${g}`;if(p)return O({column:l,mapKey:h,term:t,propertyType:m,isNegatedField:a,exactMatch:!1});if("bool"===m){let e=`${t}`.trim().toLowerCase();return N.default.format(`(?? ${a?"!":""}= ?${f})`,[l,"true"===e?1:"false"===e?0:parseInt(e)])}if("number"===m)return N.default.format(`(?? ${a?"!":""}= CAST(?, 'Float64')${f})`,[l,t]);if("json"===m)return N.default.format(`(${o([u,"optionalAccess",e=>e.string])} ${a?"NOT ":""}ILIKE ?${f})`,[`%${t}%`]);if(0===t.length)return"(1=1)";if(s){let e=!i.implicitColumnExpression;if(n||r)return N.default.format(`(lower(?) ${a?"NOT ":""}LIKE lower(?))`,[N.default.raw(l),`${n?"%":""}${t}${r?"%":""}`]);if(e){let e=await this.enableTextIndexPromise?await this.findTextIndex(l):void 0;if(e&&"splitByNonAlpha"===o([d.F.call(void 0,e),"optionalAccess",e=>e.type])){let e=this.tokenizeTerm(t),n=this.termHasSeparators(t),r=E.chunk.call(void 0,e,50),i=r.map(e=>N.default.format("hasAllTokens(?, ?)",[N.default.raw(l),e.join(" ")]));return n||r.length>1?`(${a?"NOT (":""}${[...i,N.default.format("(lower(?) LIKE lower(?))",[N.default.raw(l),`%${t}%`])].join(" AND ")}${a?")":""})`:`(${a?"NOT ":""}${i.join(" AND ")})`}let n=this.termHasSeparators(t),r=await this.findBloomFilterTokensIndex(l);if(r.found){let e=/\blower\s*\(/.test(r.indexExpression)?N.default.format("tokens(lower(?))",[t]):N.default.format("tokens(?)",[t]);return n?`(${a?"NOT (":""}${[`hasAll(${r.indexExpression}, ${e})`,N.default.format("(lower(?) LIKE lower(?))",[N.default.raw(l),`%${t}%`])].join(" AND ")}${a?")":""})`:`(${a?"NOT ":""}hasAll(${r.indexExpression}, ${e}))`}if(!n)return N.default.format(`(${a?"NOT ":""}hasToken(lower(?), lower(?)))`,[N.default.raw(l),t]);{let e=this.tokenizeTerm(t);return`(${a?"NOT (":""}${[...e.map(e=>N.default.format("hasToken(lower(?), lower(?))",[N.default.raw(l),e])),N.default.format("(lower(?) LIKE lower(?))",[N.default.raw(l),`%${t}%`])].join(" AND ")}${a?")":""})`}}}return N.default.format(`(${l} ${a?"NOT ":""}? ?${f})`,[N.default.raw("ILIKE"),`%${t}%`])}async buildColumnExpressionFromField(e){let t=await this.metadata.getColumn({databaseName:this.databaseName,tableName:this.tableName,column:e,connectionId:this.connectionId});if(t){let a={found:!0,columnType:t.type,columnExpression:t.name},n;try{n=await this.metadata.getMaterializedColumnsLookupTable({databaseName:this.databaseName,tableName:this.tableName,connectionId:this.connectionId})}catch(e){console.debug("Error in getMaterializedColumnsLookupTable",e),n=new Map}let r=(()=>{for(let[t,a]of n.entries())if(a===e)return{materializedTarget:t,materializedName:a}})();if(r){let e=R(r.materializedTarget);e&&(a.mapKeyIndexExpression=`indexHint(${e})`)}return a}let a=await $({field:e,metadata:this.metadata,databaseName:this.databaseName,tableName:this.tableName,connectionId:this.connectionId});if(a){let t=a.name.split("."),n=e.split(".").slice(t.length).join(".");if(a.type.startsWith("Map")){let e=o([a,"access",e=>e.type,"access",e=>e.match,"call",e=>e(/,\s+(\w+)\)$/),"optionalAccess",e=>e[1]]);return{found:!0,columnExpression:N.default.format("??[?]",[a.name,n]),mapKeyIndexExpression:`indexHint(${R(`${a.name}['${n}']`)})`,columnType:s(e,()=>"Unknown")}}if(a.type.startsWith("JSON"))return{found:!0,columnExpression:"",columnExpressionJSON:{string:N.default.format("toString(??)",[e]),number:N.default.format("dynamicType(??) in (?) and ??",[e,I,e])},columnType:"JSON"};if("String"===a.type){let e=n.split(".");return{found:!0,columnExpression:N.default.format(`JSONExtractString(??, ${Array(e.length).fill("?").join(",")})`,[a.name,...e]),columnType:"String"}}if(a.type.startsWith("Array"))return{found:!0,columnType:a.type,columnExpression:a.name,arrayMapKeyExpression:n};throw Error("Unsupported column type for prefix match")}return{found:!0,columnExpression:e,columnType:"Unknown"}}async findTextIndex(e){let t=await this.skipIndicesPromise;if(!(!t||0===t.length))return t.find(t=>"text"===t.type&&this.indexCoversColumn(t.expression,e))}async findBloomFilterTokensIndex(e){try{let t=await this.skipIndicesPromise;if(!t||0===t.length)return{found:!1};for(let a of t.filter(e=>"bloom_filter"===e.type)){let t=em.parseTokensExpression(a.expression);if(t.hasTokens&&this.indexCoversColumn(t.innerExpression,e))return{found:!0,indexExpression:a.expression}}return{found:!1}}catch(e){return console.warn("Failed to fetch skip indices:",e),{found:!1}}}indexCoversColumn(e,t){let a=e=>e.replace(/\s+/g,"").replace(/`/g,""),n=a(e),r=a(t);if(n===r)return!0;let i=n.match(/\w+/g),s=o([r,"access",e=>e.match,"call",e=>e(/\w+/),"optionalAccess",e=>e[0]]);return!!(s&&i&&i.includes(s))}async getColumnForField(e,t){let a=s(t.implicitColumnExpression,()=>this.implicitColumnExpression);if(e===b&&!a)throw Error("Can not search bare text without an implicit column set.");let n=e===b?a:e;if(e===b&&a===this.implicitColumnExpression){let e=d.e.call(void 0,n);return{column:e.length>1?`concatWithSeparator(';',${e.join(",")})`:n,columnJSON:void 0,propertyType:"string",found:!0}}let r=await this.buildColumnExpressionFromField(n),{type:i,isArray:l}=eA(r.columnType);return{column:r.columnExpression,columnJSON:o([r,"optionalAccess",e=>e.columnExpressionJSON]),propertyType:s(i,()=>void 0),isArray:l,found:r.found,mapKeyIndexExpression:r.mapKeyIndexExpression,arrayMapKeyExpression:l?r.arrayMapKeyExpression:void 0}}};async function F(e,t,a){let n="-"===e.field[0]?e.field.slice(1):e.field,r="-"===e.field[0],i=e.field===b;if(w(e)){let s=S(e.term);if(i&&"-"===e.prefix&&(r=!0),i||"-"!==e.prefix||(s=e.prefix+S(e.term)),e.quoted&&!i)return t.eq(n,s,r,a);if(!e.quoted&&"*"===s)return t.isNotNull(n,r,a);if(!e.quoted&&">="===s.substring(0,2))return r?t.lt(n,s.slice(2),a):t.gte(n,s.slice(2),a);if(!e.quoted&&"<="===s.substring(0,2))return r?t.gt(n,s.slice(2),a):t.lte(n,s.slice(2),a);if(!e.quoted&&">"===s[0])return r?t.lte(n,s.slice(1),a):t.gt(n,s.slice(1),a);if(!e.quoted&&"<"===s[0])return r?t.gte(n,s.slice(1),a):t.lt(n,s.slice(1),a);let o=!1,l=!1;return e.quoted||"*"!==s[0]||(o=!0,s=s.slice(1)),e.quoted||"*"!==s[s.length-1]||(l=!0,s=s.slice(0,-1)),t.fieldSearch(n,s,r,o,l,a)}if(C(e))return t.range(n,e.term_min,e.term_max,r,a);throw Error(`Unexpected Node type. ${e}`)}function q(e,t){if(!t.field||!t.parenthesized||t.field===b)return e;{let a=o([t,"access",e=>e.field,"optionalAccess",e=>e.startsWith,"call",e=>e("-")])?t.field.slice(1):t.field;return{...e,implicitColumnExpression:a,...D(t)?{isNegatedAndParenthesized:!0}:{}}}}function D(e){return e.parenthesized&&o([e,"access",e=>e.field,"optionalAccess",e=>e.startsWith,"call",e=>e("-")])}async function M(e,t,a){if(w(e)||C(e))return await F(e,t,a);if("right"in e&&null!=e.right){let n=t.operator(e.operator,a),r=e.parenthesized,i=q(a,e);return`${D(e)?"NOT ":""}${r?"(":""}${"start"in e&&e.start?`${e.start} `:""}${await M(e.left,t,i)} ${n} ${await M(e.right,t,i)}${r?")":""}`}if("left"in e&&null!=e.left&&!("right"in e&&null!=e.right)){let n=e.parenthesized,r=q(a,e);return`${D(e)?"NOT ":""}${n?"(":""}${null!=e.start?`${e.start} `:""}${await M(e.left,t,r)}${n?")":""}`}return""}async function U(e,t){return await M(e,t,{})}var k=class{constructor(e,t){this.conditions=[],this.searchQ=e,this.serializer=t}setSerializer(e){return this.serializer=e,this}getSerializer(){return this.serializer}async genSearchQuery(){if(!this.searchQ)return"";let e=_(this.searchQ);return await U(e,this.serializer)}and(e){return e&&e.trim()&&this.conditions.push(`(${e})`),this}async build(){let e=await this.genSearchQuery();return this.searchQ&&this.and(e),this.conditions.join(" AND ")}};async function P({query:e,metadata:t,tableConnection:a}){try{let{tableName:n,databaseName:r,connectionId:i}=a,s=_(e);if(s){let e=new x({metadata:t,tableName:n,databaseName:r,connectionId:i});return await M(s,e,{})}}catch(t){console.warn("Parse failure",e,t)}return`Message containing ${e}`}function V(e,t){return t||N.default.format("MetricName = ?",[e])}var H=t.b="__hdx_time_bucket";function W(e){return null!=e.groupBy&&e.groupBy.length>0}function B(e){return null!=e.timestampValueExpression&&null!=e.granularity}var j=e=>null!=e.metricTables,K=t.f=e=>Array.isArray(e.select)&&j(e)?{...e,select:e.select.map(e=>({...e,alias:e.alias||(e.isDelta?`${e.aggFn}(delta(${e.metricName}))`:`${e.aggFn}(${e.metricName})`)}))}:e,G=t.g=e=>{if(j(e)&&Array.isArray(e.select)){let t=[];for(let a of e.select)t.push({...e,select:[a]});return t}return[e]},Q={"=":"!=",">":"<=","<":">=","!=":"=","<=":">",">=":"<"};function z(e){return null!=e&&""!=e.trim()}var Y=({materializedFields:e,rawSQL:t})=>{try{let[a]=d.C.call(void 0,t),n=new f.Parser,r=n.astify(a,{database:"Postgresql"}),i=t=>{let a;if(null!=t){switch(t.type){case"column_ref":"string"!=typeof t.column&&(a=`${o([t,"access",e=>e.column,"optionalAccess",e=>e.expr,"access",e=>e.value])}['${o([t,"access",e=>e.array_index,"optionalAccess",e=>e[0],"optionalAccess",e=>e.index,"access",e=>e.value])}']`);break;case"binary_expr":if(Array.isArray(t.left))for(let e of t.left)i(e);else i(t.left);if(Array.isArray(t.right))for(let e of t.right)i(e);else i(t.right);break;case"function":if("expr_list"===o([t,"access",e=>e.args,"optionalAccess",e=>e.type]))if(Array.isArray(o([t,"access",e=>e.args,"optionalAccess",e=>e.value]))){for(let e of t.args.value)i(e);"column_ref"===o([t,"access",e=>e.args,"optionalAccess",e=>e.value,"optionalAccess",e=>e[0],"optionalAccess",e=>e.type])&&"single_quote_string"===o([t,"access",e=>e.args,"optionalAccess",e=>e.value,"optionalAccess",e=>e[1],"optionalAccess",e=>e.type])&&(a=`${o([t,"access",e=>e.name,"optionalAccess",e=>e.name,"optionalAccess",e=>e[0],"optionalAccess",e=>e.value])}(${o([t,"access",e=>e.args,"optionalAccess",e=>e.value,"optionalAccess",e=>e[0],"optionalAccess",e=>e.column,"access",e=>e.expr,"access",e=>e.value])}, '${o([t,"access",e=>e.args,"optionalAccess",e=>e.value,"optionalAccess",e=>e[1],"optionalAccess",e=>e.value])}')`)}else A.default.call(void 0,o([t,"access",e=>e.args,"optionalAccess",e=>e.value]))&&i(t.args.value)}if(a){let n=e.get(a);if(n){for(let e in t)t.hasOwnProperty(e)&&delete t[e];t.type="column_ref",t.table=null,t.column={expr:{type:"default",value:n}}}}}};if(Array.isArray(r.columns))for(let e of r.columns)i(e.expr);return i(r.where),n.sqlify(r)}catch(e){return t}},J=({fn:e,expr:t,level:a,where:n})=>{let r="any"===e,i="none"===e,o=e.startsWith("count"),l=z(n),u={UNSAFE_RAW_SQL:r||i?`${t}`:`toFloat64OrDefault(toString(${t}))`},c=`${n} AND ${u.UNSAFE_RAW_SQL} IS NOT NULL`;if(e.endsWith("Merge")){let n=eT`${{UNSAFE_RAW_SQL:s(t,()=>"")}}`,r=a&&(e.startsWith("quantile")||e.startsWith("histogram"))?eT`(${{UNSAFE_RAW_SQL:Number.isFinite(a)?`${a}`:"0"}})`:[];return l?eT`${e}If${r}(${n}, ${{UNSAFE_RAW_SQL:c}})`:eT`${e}${r}(${n})`}if(e.endsWith("State"))return null==t||o?l?eT`${e}(${{UNSAFE_RAW_SQL:n}})`:eT`${e}()`:eT`${e}(${u}${l?eT`, ${{UNSAFE_RAW_SQL:c}}`:""})`;if("count"===e)return l?eT`${e}If(${{UNSAFE_RAW_SQL:n}})`:{sql:`${e}()`,params:{}};if("none"===e)return eT`${{UNSAFE_RAW_SQL:s(t,()=>"")}}`;if(null!=t)return"count_distinct"===e?eT`count${l?"If":""}(DISTINCT ${{UNSAFE_RAW_SQL:t}}${l?eT`, ${{UNSAFE_RAW_SQL:n}}`:""})`:null!=a?eT`${e}${l?"If":""}(${{UNSAFE_RAW_SQL:Number.isFinite(a)?`${a}`:"0"}})(${u}${l?eT`, ${{UNSAFE_RAW_SQL:c}}`:""})`:eT`${{UNSAFE_RAW_SQL:e}}${l?"If":""}( + ${u}${l?eT`, ${{UNSAFE_RAW_SQL:c}}`:""} + )`;throw Error("Column is required for all non-count aggregation functions")};async function X(e,t,a){let n;if("string"==typeof e)return eT`${{UNSAFE_RAW_SQL:e}}`;try{n=o([t,"access",e=>e.with,"optionalAccess",e=>e.length])||!t.from.databaseName?void 0:await a.getMaterializedColumnsLookupTable({connectionId:t.connection,databaseName:t.from.databaseName,tableName:t.from.tableName})}catch(e){}let r="ratio"===t.seriesReturnType&&2===e.length,i=await Promise.all(e.map(async e=>{let r=await en({condition:s(e.aggCondition,()=>""),from:t.from,language:s(e.aggConditionLanguage,()=>"lucene"),implicitColumnExpression:t.implicitColumnExpression,metadata:a,connectionId:t.connection,with:t.with}),i;i=null==e.aggFn?"lucene"===e.valueExpressionLanguage?await en({condition:e.valueExpression,from:t.from,language:"lucene",implicitColumnExpression:t.implicitColumnExpression,metadata:a,connectionId:t.connection,with:t.with}):eT`${{UNSAFE_RAW_SQL:e.valueExpression}}`:e.aggFn.startsWith("quantile")||e.aggFn.startsWith("histogram")?J({fn:e.aggFn,expr:e.valueExpression,level:e.level,where:r.sql}):J({fn:e.aggFn,expr:e.valueExpression,where:r.sql});let o=`SELECT ${i.sql} FROM \`t\``;return n&&(i.sql=Y({materializedFields:n,rawSQL:o}).replace(/^SELECT\s+/i,"").replace(/\s+FROM `t`$/i,"")),eT`${i}${null!=e.alias&&""!==e.alias.trim()?eT` AS "${{UNSAFE_RAW_SQL:e.alias}}"`:[]}`}));return r?[eT`divide(${i[0]}, ${i[1]})`]:i}function Z({interval:e,timestampValueExpression:t,dateRange:a,alias:n=H}){let r={UNSAFE_RAW_SQL:d.f.call(void 0,t)},i={UNSAFE_RAW_SQL:"auto"===e&&Array.isArray(a)?d.l.call(void 0,a):e};return eT`toStartOfInterval(toDateTime(${r}), INTERVAL ${i}) AS \`${{UNSAFE_RAW_SQL:n}}\``}async function ee({connectionId:e,databaseName:t,dateRange:a,dateRangeEndInclusive:n,dateRangeStartInclusive:r,includedDataInterval:i,metadata:s,tableName:l,timestampValueExpression:u,with:c}){let m=a[0].getTime(),p=a[1].getTime(),g=u;try{if(t&&l&&e){let{primary_key:a}=await s.getTableMetadata({databaseName:t,tableName:l,connectionId:e});g=d.z.call(void 0,u,a)}}catch(e){console.warn("Failed to optimize timestampValueExpression",e)}let h=d.e.call(void 0,g);return eS("AND",...await Promise.all(h.map(async a=>{let u=a.trim(),g=d.y.call(void 0,u),h=o([c,"optionalAccess",e=>e.length])||g?null:await s.getColumn({databaseName:t,tableName:l,column:u,connectionId:e}),f={UNSAFE_RAW_SQL:u};null!=h||o([c,"optionalAccess",e=>e.length])||g||console.warn(`Column ${u} not found in ${t}.${l} while inferring type for time filter`);let y=i?eT`toStartOfInterval(fromUnixTimestamp64Milli(${{Int64:m}}), INTERVAL ${i}) - INTERVAL ${i}`:g?eT`${g.function}(fromUnixTimestamp64Milli(${{Int64:m}})${g.formattedRemainingArgs})`:eT`fromUnixTimestamp64Milli(${{Int64:m}})`,E=i?eT`toStartOfInterval(fromUnixTimestamp64Milli(${{Int64:p}}), INTERVAL ${i}) + INTERVAL ${i}`:g?eT`${g.function}(fromUnixTimestamp64Milli(${{Int64:p}})${g.formattedRemainingArgs})`:eT`fromUnixTimestamp64Milli(${{Int64:p}})`;return"Date"===o([h,"optionalAccess",e=>e.type])?eT`(${f} ${r?">=":">"} toDate(${y}) AND ${f} ${n?"<=":"<"} toDate(${E}))`:eT`(${f} ${r?">=":">"} ${y} AND ${f} ${n?"<=":"<"} ${E})`})))}async function et(e,t){let a=B(e),n=W(e);return eS(",",await X(e.select,e,t),n&&!1!==e.selectGroupBy?await X(e.groupBy,e,t):[],a?Z({interval:e.granularity,timestampValueExpression:e.timestampValueExpression,dateRange:e.dateRange}):[])}function ea({from:e}){return eS(".",eT`${""===e.databaseName?"":{Identifier:e.databaseName}}`,eT`${{Identifier:e.tableName}}`)}async function en({condition:e,language:t,metadata:a,from:n,implicitColumnExpression:r,connectionId:i,with:s}){let l,u=e;if("lucene"===t){let t=new L({metadata:a,databaseName:n.databaseName,tableName:n.tableName,implicitColumnExpression:r,connectionId:i});u=await new k(e,t).build()}try{l=o([s,"optionalAccess",e=>e.length])||!n.databaseName?void 0:await a.getMaterializedColumnsLookupTable({connectionId:i,databaseName:n.databaseName,tableName:n.tableName})}catch(e){}let c="SELECT * FROM `t` WHERE ",m=`${c}${u}`;return l&&(u=Y({materializedFields:l,rawSQL:m}).replace(c,"")),eT`${{UNSAFE_RAW_SQL:u}}`}async function er(e,t){let a=[];z(e.where)&&(a=e_(await en({condition:e.where,from:e.from,language:s(e.whereLanguage,()=>"sql"),implicitColumnExpression:e.implicitColumnExpression,metadata:t,connectionId:e.connection,with:e.with}),"(",")"));let n=[];"string"!=typeof e.select&&e.select.every(e=>z(e.aggCondition))&&(n=(await Promise.all(e.select.map(async a=>z(a.aggCondition)?await en({condition:a.aggCondition,from:e.from,language:s(a.aggConditionLanguage,()=>"sql"),implicitColumnExpression:e.implicitColumnExpression,metadata:t,connectionId:e.connection,with:e.with}):null))).filter(e=>null!==e));let r=await Promise.all(s(e.filters,()=>[]).map(async a=>{if("sql_ast"===a.type)return e_(eT`${{UNSAFE_RAW_SQL:a.left}} ${a.operator} ${{UNSAFE_RAW_SQL:a.right}}`,"(",")");if("lucene"===a.type||"sql"===a.type)return e_(await en({condition:a.condition,from:e.from,language:a.type,implicitColumnExpression:e.implicitColumnExpression,metadata:t,connectionId:e.connection,with:e.with}),"(",")");throw Error(`Unknown filter type: ${a.type}`)}));return eS(" AND ",null!=e.dateRange&&null!=e.timestampValueExpression?await ee({timestampValueExpression:e.timestampValueExpression,dateRange:e.dateRange,dateRangeStartInclusive:s(e.dateRangeStartInclusive,()=>!0),dateRangeEndInclusive:s(e.dateRangeEndInclusive,()=>!0),metadata:t,connectionId:e.connection,databaseName:e.from.databaseName,tableName:e.from.tableName,with:e.with,includedDataInterval:e.includedDataInterval}):[],a,e_(eS(" OR ",n),"(",")"),e_(eS("OR"===e.filtersLogicalOperator?" OR ":" AND ",...r),"(",")"))}async function ei(e,t){return eS(",",W(e)?await X(e.groupBy,e,t):[],B(e)?Z({interval:e.granularity,timestampValueExpression:e.timestampValueExpression,dateRange:e.dateRange}):[])}async function es(e,t){if(z(e.having))return await en({condition:e.having,from:e.from,language:s(e.havingLanguage,()=>"sql"),implicitColumnExpression:e.implicitColumnExpression,metadata:t,connectionId:e.connection,with:e.with})}async function eo(e,t,a){let{with:n}=e;if(n)return eS(",",await Promise.all(n.map(async e=>{let{sql:n,chartConfig:r}=e;if(n&&r)throw Error("cannot specify both 'sql' and 'chartConfig' in with clause");if(!(n||r))throw Error("must specify either 'sql' or 'chartConfig' in with clause");if(n&&!p.p.safeParse(n).success)throw Error("non-conforming sql object in CTE");if(r&&!p.J.safeParse(r).success)throw Error(`non-conforming chartConfig object in CTE: ${p.J.safeParse(r).error}`);let i=n||await eu(r,t,a);return!1===e.isSubquery?eT`(${i}) AS ${{Identifier:e.name}}`:eT`${e.name} AS (${i})`})))}async function el(e,t){let a=e.metricTables;if(!a)return e;let{select:n,from:r,filters:i,where:o,...l}=e;if(!n||!Array.isArray(n))throw Error("multi select or string select on metrics not supported");let{metricType:u,metricName:c,metricNameSql:m,...p}=n[0];if("gauge"===u&&c){var g;let n,o,u,h,f="__hdx_time_bucket2",y=Z({interval:e.granularity||"auto",timestampValueExpression:e.timestampValueExpression||"TimeUnix",dateRange:e.dateRange,alias:f}),E=await er({...e,from:{...r,tableName:a.gauge},filters:[...s(i,()=>[]),{type:"sql",condition:V(c,m)}]},t),A=p.isDelta?(g="Value",n="auto"===e.granularity&&Array.isArray(e.dateRange)?d.l.call(void 0,e.dateRange):e.granularity,o=d.m.call(void 0,s(n,()=>"")),u=`(argMax(${g}, ${e.timestampValueExpression}) - argMin(${g}, ${e.timestampValueExpression}))`,h=`date_diff('second', min(toDateTime(${e.timestampValueExpression})), max(toDateTime(${e.timestampValueExpression})))`,`IF(${h} > 0, ${u} * ${o} / ${h}, 0)`):"last_value(Value)";return{...l,with:[{name:"Source",sql:eT` + SELECT + *, + cityHash64(mapConcat(ScopeAttributes, ResourceAttributes, Attributes)) AS AttributesHash + FROM ${ea({from:{...r,tableName:a.gauge}})} + WHERE ${E} + `},{name:"Bucketed",sql:eT` + SELECT + ${y}, + AttributesHash, + ${A} AS LastValue, + any(ScopeAttributes) AS ScopeAttributes, + any(ResourceAttributes) AS ResourceAttributes, + any(Attributes) AS Attributes, + any(ResourceSchemaUrl) AS ResourceSchemaUrl, + any(ScopeName) AS ScopeName, + any(ScopeVersion) AS ScopeVersion, + any(ScopeDroppedAttrCount) AS ScopeDroppedAttrCount, + any(ScopeSchemaUrl) AS ScopeSchemaUrl, + any(ServiceName) AS ServiceName, + any(MetricDescription) AS MetricDescription, + any(MetricUnit) AS MetricUnit, + any(StartTimeUnix) AS StartTimeUnix, + any(Flags) AS Flags + FROM Source + GROUP BY AttributesHash, ${f} + ORDER BY AttributesHash, ${f} + `}],select:[{...p,valueExpression:"LastValue",aggCondition:""}],from:{databaseName:"",tableName:"Bucketed"},where:"",timestampValueExpression:f,settings:eT`short_circuit_function_evaluation = 'force_enable'`}}if("sum"===u&&c){let n="__hdx_time_bucket2",o="`__hdx_value_high`",u="`__hdx_value_high_prev`",g=Z({interval:e.granularity||"auto",timestampValueExpression:e.timestampValueExpression||"TimeUnix",dateRange:e.dateRange,alias:n}),h=await er({...e,from:{...r,tableName:a.sum},filters:[...s(i,()=>[]),{type:"sql",condition:V(c,m)}],includedDataInterval:"auto"===e.granularity&&Array.isArray(e.dateRange)?d.l.call(void 0,e.dateRange):e.granularity},t);return{...l,with:[{name:"Source",sql:eT` + SELECT + *, + cityHash64(mapConcat(ScopeAttributes, ResourceAttributes, Attributes)) AS AttributesHash, + IF(AggregationTemporality = 1, + SUM(Value) OVER (PARTITION BY AttributesHash ORDER BY AttributesHash, TimeUnix ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), + IF(IsMonotonic = 0, + Value, + deltaSum(Value) OVER (PARTITION BY AttributesHash ORDER BY AttributesHash, TimeUnix ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) + ) + ) AS Rate, + IF(AggregationTemporality = 1, Rate, Value) AS Sum + FROM ${ea({from:{...r,tableName:a.sum}})} + WHERE ${h}`},{name:"Bucketed",sql:eT` + SELECT + ${g}, + AttributesHash, + last_value(Source.Rate) AS ${o}, + any(${o}) OVER(PARTITION BY AttributesHash ORDER BY \`${n}\` ROWS BETWEEN 1 PRECEDING AND 1 PRECEDING) AS ${u}, + IF(IsMonotonic = 1, ${o} - ${u}, ${o}) AS Rate, + last_value(Source.Sum) AS Sum, + any(ResourceAttributes) AS ResourceAttributes, + any(ResourceSchemaUrl) AS ResourceSchemaUrl, + any(ScopeName) AS ScopeName, + any(ScopeVersion) AS ScopeVersion, + any(ScopeAttributes) AS ScopeAttributes, + any(ScopeDroppedAttrCount) AS ScopeDroppedAttrCount, + any(ScopeSchemaUrl) AS ScopeSchemaUrl, + any(ServiceName) AS ServiceName, + any(MetricName) AS MetricName, + any(MetricDescription) AS MetricDescription, + any(MetricUnit) AS MetricUnit, + any(Attributes) AS Attributes, + any(StartTimeUnix) AS StartTimeUnix, + any(Flags) AS Flags, + any(AggregationTemporality) AS AggregationTemporality, + any(IsMonotonic) AS IsMonotonic + FROM Source + GROUP BY AttributesHash, \`${n}\` + ORDER BY AttributesHash, \`${n}\` + `}],select:[p.aggFn?{alias:"Value",...p,valueExpression:"Rate",aggCondition:""}:{alias:"Value",...p,valueExpression:"last_value(Sum)",aggCondition:""}],from:{databaseName:"",tableName:"Bucketed"},where:"",timestampValueExpression:`\`${n}\``}}if("histogram"===u&&c){let{alias:n}=p,o=n||"Value",u={...e,from:{...r,tableName:a.histogram},filters:[...s(i,()=>[]),{type:"sql",condition:V(c,m)}],includedDataInterval:"auto"===e.granularity&&Array.isArray(e.dateRange)?d.l.call(void 0,e.dateRange):e.granularity},g=B(u)?Z({interval:u.granularity,timestampValueExpression:u.timestampValueExpression,dateRange:u.dateRange}):eT``,h=await er(u,t),f;return W(e)&&(f=eS(",",await X(e.groupBy,e,t))),{...l,with:eq({select:p,timeBucketSelect:g.sql?eT`${g}`:"TimeUnix AS `__hdx_time_bucket`",groupBy:f,from:ea({from:{...r,tableName:a.histogram}}),where:h,valueAlias:o}),select:`\`__hdx_time_bucket\`${f?", group":""}, "${o}"`,from:{databaseName:"",tableName:"metrics"},where:"",groupBy:void 0,granularity:void 0,timestampValueExpression:"`__hdx_time_bucket`",settings:eT`short_circuit_function_evaluation = 'force_enable'`}}throw Error(`no query support for metric type=${u}`)}async function eu(e,t,a){let n,r=j(e)?await el(e,t):e,i=await eo(r,t,a),l=await et(r,t),u=ea(r),c=await er(r,t),m=await ei(r,t),p=await es(r,t),g=function(e){let t=B(e);if(!(null==e.orderBy&&!t)){var a;return eS(",",t?Z({interval:e.granularity,timestampValueExpression:e.timestampValueExpression,dateRange:e.dateRange}):[],null!=e.orderBy?"string"==typeof(a=e.orderBy)?eT`${{UNSAFE_RAW_SQL:a}}`:a.map(e=>eT`${{UNSAFE_RAW_SQL:e.valueExpression}} ${"DESC"===e.ordering?"DESC":"ASC"}`):[])}}(r),h=function(e){if(null==e.limit||null==e.limit.limit)return;let t=null!=e.limit.offset?eT` OFFSET ${{Int32:e.limit.offset}}`:[];return eT`${{Int32:e.limit.limit}}${t}`}(r),f=(n=d.E.call(void 0,a),eS(", ",[eT`${s(r.settings,()=>"")}`,eT`${s(n,()=>"")}`]));return eS(" ",[eT`${o([i,"optionalAccess",e=>e.sql])?eT`WITH ${i}`:""}`,eT`SELECT ${l}`,eT`FROM ${u}`,eT`${c.sql?eT`WHERE ${c}`:""}`,eT`${o([m,"optionalAccess",e=>e.sql])?eT`GROUP BY ${m}`:""}`,eT`${o([p,"optionalAccess",e=>e.sql])?eT`HAVING ${p}`:""}`,eT`${o([g,"optionalAccess",e=>e.sql])?eT`ORDER BY ${g}`:""}`,eT`${o([h,"optionalAccess",e=>e.sql])?eT`LIMIT ${h}`:""}`,eT`${f.sql?eT`SETTINGS ${f}`:[]}`])}var ec=t.m=u=class{constructor(){u.prototype.__init2.call(this),u.prototype.__init3.call(this)}__init2(){this.cache=new Map}__init3(){this.pendingQueries=new Map}get(e){return this.cache.get(e)}async getOrFetch(e,t){let a=this.cache.get(e);if(null!=a)return a;if(this.pendingQueries.has(e))return this.pendingQueries.get(e);let n=t();this.pendingQueries.set(e,n);try{let t=await n;return this.cache.set(e,t),t}finally{this.pendingQueries.delete(e)}}set(e,t){return this.cache.set(e,t)}},em=t.n=class{constructor(e,t,a){this.clickhouseClient=e,this.cache=t,a&&this.cache.set("clickhouse-settings",a)}getClickHouseSettings(){return s(this.cache.get("clickhouse-settings"),()=>({}))}setClickHouseSettings(e){let t={...this.getClickHouseSettings(),...e};this.cache.set("clickhouse-settings",t)}async queryTableMetadata({database:e,table:t,cache:a,connectionId:n}){return a.getOrFetch(`${n}.${e}.${t}.metadata`,async()=>{let a=eT`SELECT * FROM system.tables where database = ${{String:e}} AND name = ${{String:t}}`;return(await this.clickhouseClient.query({connectionId:n,query:a.sql,query_params:a.params,clickhouse_settings:this.getClickHouseSettings()}).then(e=>e.json())).data[0]})}async queryMaterializedViewsByTarget({databaseName:e,tableName:t,connectionId:a}){return this.cache.getOrFetch(`${a}.${e}.${t}.sourceMaterializedViews`,async()=>{let n=`%TO ${e}.${t}%`,r=eT` + SELECT database as databaseName, name as tableName + FROM system.tables + WHERE engine = 'MaterializedView' + AND create_table_query LIKE ${{String:n}}`;return(await this.clickhouseClient.query({connectionId:a,query:r.sql,query_params:r.params,clickhouse_settings:this.getClickHouseSettings()}).then(e=>e.json())).data})}async getColumns({databaseName:e,tableName:t,connectionId:a}){return this.cache.getOrFetch(`${a}.${e}.${t}.columns`,async()=>{let n=eT`DESCRIBE ${ex({database:e,table:t})}`;return await this.clickhouseClient.query({query:n.sql,query_params:n.params,connectionId:a,clickhouse_settings:this.getClickHouseSettings()}).then(e=>e.json()).then(e=>e.data)})}async getMaterializedColumnsLookupTable({databaseName:e,tableName:t,connectionId:a}){return new Map((await this.getColumns({databaseName:e,tableName:t,connectionId:a})).filter(e=>"MATERIALIZED"===e.default_type||"DEFAULT"===e.default_type).map(e=>[e.default_expression,e.name]))}async getColumn({databaseName:e,tableName:t,column:a,matchLowercase:n=!1,connectionId:r}){return(await this.getColumns({databaseName:e,tableName:t,connectionId:r})).filter(e=>n?e.name.toLowerCase()===a.toLowerCase():e.name===a)[0]}async getMapKeys({databaseName:e,tableName:t,column:a,maxKeys:n=1e3,connectionId:r,metricName:i}){let o=i?`${r}.${e}.${t}.${a}.${i}.keys`:`${r}.${e}.${t}.${a}.keys`,l=this.cache.get(o);if(null!=l)return l;let u=await this.getColumn({databaseName:e,tableName:t,column:a,connectionId:r});if(null==u)throw Error(`Column ${a} not found in ${e}.${t}`);let c="groupUniqArrayArray";u.type.startsWith("Map(LowCardinality(String)")&&(c="lowCardinalityKeys");let m=i?eT`WHERE MetricName=${{String:i}}`:"",d;return d="groupUniqArrayArray"===c?eT` + WITH sampledKeys as ( + SELECT ${{Identifier:a}}.keys AS keys + FROM ${ex({database:e,table:t})} ${m} + LIMIT ${{Int32:this.getClickHouseSettings().max_rows_to_read?Number(this.getClickHouseSettings().max_rows_to_read):3e6}} + ) + SELECT groupUniqArrayArray(${{Int32:n}})(keys) as keysArr + FROM sampledKeys`:eT` + WITH sampledKeys as ( + SELECT ${{Identifier:a}}.keys AS keysArr + FROM ${ex({database:e,table:t})} ${m} + LIMIT ${{Int32:this.getClickHouseSettings().max_rows_to_read?Number(this.getClickHouseSettings().max_rows_to_read):3e6}} + ) + SELECT DISTINCT lowCardinalityKeys(arrayJoin(keysArr)) as key + FROM sampledKeys + LIMIT ${{Int32:n}} + `,this.cache.getOrFetch(o,async()=>await this.clickhouseClient.query({query:d.sql,query_params:d.params,connectionId:r,clickhouse_settings:{...this.getClickHouseSettings(),timeout_overflow_mode:"break",max_execution_time:15,max_rows_to_read:"0"}}).then(e=>e.json()).then(e=>("groupUniqArrayArray"===c?s(e.data[0].keysArr,()=>[]):e.data.map(e=>e.key).filter(e=>!!e)).filter(e=>e)))}async getJSONKeys({column:e,maxKeys:t=1e3,databaseName:a,tableName:n,connectionId:r,metricName:i}){return[]}async getMapValues({databaseName:e,tableName:t,column:a,key:n,maxValues:r=20,connectionId:i}){let o=`${i}.${e}.${t}.${a}.${n}.values`,l=this.cache.get(o);if(null!=l)return l;let u=n?eT` + SELECT DISTINCT ${{Identifier:a}}[${{String:n}}] as value + FROM ${ex({database:e,table:t})} + WHERE value != '' + LIMIT ${{Int32:r}} + `:eT` + SELECT DISTINCT ${{Identifier:a}} as value + FROM ${ex({database:e,table:t})} + WHERE value != '' + LIMIT ${{Int32:r}} + `;return this.cache.getOrFetch(o,async()=>await this.clickhouseClient.query({query:u.sql,query_params:u.params,connectionId:i,clickhouse_settings:{max_rows_to_read:String(s(this.getClickHouseSettings().max_rows_to_read,()=>3e6)),read_overflow_mode:"break",...this.getClickHouseSettings()}}).then(e=>e.json()).then(e=>e.data.map(e=>e.value)))}async getAllFields({databaseName:e,tableName:t,connectionId:a,metricName:n}){let r=[],i=await this.getColumns({databaseName:e,tableName:t,connectionId:a});for(let e of i)"JSON"!==e.type&&r.push({path:[e.name],type:e.type,jsType:ef(e.type)});let l=s(eO(i,["map","json"]),()=>[]);return await Promise.all(l.map(async i=>{if("json"===ef(i.type)){for(let s of(await this.getJSONKeys({databaseName:e,tableName:t,column:i.name,connectionId:a,metricName:n})))r.push({path:[i.name,s.key],type:s.chType,jsType:ef(s.chType)});return}let l=await this.getMapKeys({databaseName:e,tableName:t,column:i.name,connectionId:a,metricName:n}),u=s(o([i,"access",e=>e.type,"access",e=>e.match,"call",e=>e(/Map\(.+,\s*(.+)\)/),"optionalAccess",e=>e[1]]),()=>"String");for(let e of l)r.push({path:[i.name,e],type:u,jsType:ef(u)})})),r}async getTableMetadata({databaseName:e,tableName:t,connectionId:a}){let n=await this.queryTableMetadata({cache:this.cache,database:e,table:t,connectionId:a});return n.partition_key.startsWith("(")&&n.partition_key.endsWith(")")&&(n.partition_key=n.partition_key.slice(1,-1)),n}async getSetting({settingName:e,connectionId:t}){return this.cache.getOrFetch(`${t}.${e}`,async()=>{let a=eT` + SELECT name, value + FROM system.settings + WHERE name = ${{String:e}} + `;try{let e=await this.clickhouseClient.query({connectionId:t,query:a.sql,query_params:a.params,clickhouse_settings:this.getClickHouseSettings()}).then(e=>e.json());return e.data.length>0?e.data[0].value:void 0}catch(e){if(e instanceof Error&&e.message.includes("Not enough privileges"))return void console.warn("Not enough privileges to fetch settings:",e);throw e}})}async getSettings({connectionId:e}){return this.cache.getOrFetch(`${e}.availableSettings`,async()=>{try{let t=await this.clickhouseClient.query({connectionId:e,query:"SELECT name, value FROM system.settings",query_params:void 0,clickhouse_settings:this.getClickHouseSettings(),shouldSkipApplySettings:!0}).then(e=>e.json());return new Map(t.data.map(e=>[e.name,e.value]))}catch(e){if(e instanceof Error&&e.message.includes("Not enough privileges"))return console.warn("Not enough privileges to fetch settings, may result in unoptimized queries:",e),new Map;throw e}})}async getSkipIndices({databaseName:e,tableName:t,connectionId:a}){return this.cache.getOrFetch(`${a}.${e}.${t}.skipIndices`,async()=>{let n=eT` + SELECT + name, + type, + type_full as typeFull, + expr as expression, + granularity + FROM system.data_skipping_indices + WHERE database = ${{String:e}} + AND table = ${{String:t}} + `;try{return(await this.clickhouseClient.query({connectionId:a,query:n.sql,query_params:n.params,clickhouse_settings:this.getClickHouseSettings()}).then(e=>e.json())).data}catch(e){if(e instanceof Error&&e.message.includes("Not enough privileges"))return console.warn("Not enough privileges to fetch skip indices:",e),[];throw e}})}async getOtelTables({connectionId:e}){return this.cache.getOrFetch(`${e}.otelTables`,async()=>{let t=["otel_logs","otel_traces","hyperdx_sessions","otel_metrics_gauge","otel_metrics_sum","otel_metrics_summary","otel_metrics_histogram","otel_metrics_exp_histogram"].map(e=>eT`${{String:e}}`),a=eT` + SELECT + database, + name + FROM system.tables + WHERE (database != 'system') + AND (name IN (${eS(",",t)})) + ORDER BY database, name + `;try{let t=await this.clickhouseClient.query({connectionId:e,query:a.sql,query_params:a.params,clickhouse_settings:this.getClickHouseSettings()}).then(e=>e.json());if(0===t.data.length)return null;let n=new Map;for(let e of t.data)n.has(e.database)||n.set(e.database,new Set),n.get(e.database).add(e.name);let r="",i=0;for(let[e,t]of n.entries()){let a=0;t.has("otel_logs")&&(a+=10),t.has("otel_traces")&&(a+=10),t.has("hyperdx_sessions")&&(a+=5),t.has("otel_metrics_gauge")&&(a+=2),t.has("otel_metrics_sum")&&(a+=2),t.has("otel_metrics_histogram")&&(a+=2),t.has("otel_metrics_summary")&&(a+=1),t.has("otel_metrics_exp_histogram")&&(a+=1),a>i&&(i=a,r=e)}if(!r)return null;let s=n.get(r);return{database:r,tables:{logs:s.has("otel_logs")?"otel_logs":void 0,traces:s.has("otel_traces")?"otel_traces":void 0,sessions:s.has("hyperdx_sessions")?"hyperdx_sessions":void 0,metrics:{gauge:s.has("otel_metrics_gauge")?"otel_metrics_gauge":void 0,sum:s.has("otel_metrics_sum")?"otel_metrics_sum":void 0,summary:s.has("otel_metrics_summary")?"otel_metrics_summary":void 0,histogram:s.has("otel_metrics_histogram")?"otel_metrics_histogram":void 0,expHistogram:s.has("otel_metrics_exp_histogram")?"otel_metrics_exp_histogram":void 0}}}}catch(e){if(e instanceof Error&&e.message.includes("Not enough privileges"))return console.warn("Not enough privileges to fetch tables:",e),null;throw e}})}static parseTokensExpression(e){let t=e.trim().match(/^tokens\s*\((.*)\)$/i);return t?{hasTokens:!0,innerExpression:t[1].trim()}:{hasTokens:!1}}async getValuesDistribution({chartConfig:e,key:t,samples:a=1e5,limit:n=100,source:r}){let i=E.pick.call(void 0,e,["connection","from","dateRange","filters","where","with"]);return this.cache.getOrFetch(`${d.G.call(void 0,i)}.${t}.valuesDistribution`,async()=>{let i={...e,with:[...e.with||[],{name:"tableStats",chartConfig:{...E.omit.call(void 0,e,["with","groupBy","orderBy","limit"]),select:`count() as total, greatest(CAST(total / ${a} AS UInt32), 1) as sample_factor`}}],filters:[...e.filters||[],{type:"sql",condition:`cityHash64(${e.timestampValueExpression}, rand()) % (SELECT sample_factor FROM tableStats) = 0`}],select:`${t} AS __hdx_value, count() as __hdx_count, __hdx_count / (sum(__hdx_count) OVER ()) * 100 AS __hdx_percentage`,orderBy:"__hdx_percentage DESC",groupBy:"__hdx_value",limit:{limit:n}},s=await eu(i,this,o([r,"optionalAccess",e=>e.querySettings]));return new Map((await this.clickhouseClient.query({query:s.sql,query_params:s.params,connectionId:e.connection,clickhouse_settings:{...this.getClickHouseSettings(),max_rows_to_group_by:`${10*n}`,group_by_overflow_mode:"any",max_rows_to_read:"0"}}).then(e=>e.json())).data.map(({__hdx_value:e,__hdx_percentage:t})=>[e,Number(t)]))})}async getKeyValues({chartConfig:e,keys:t,limit:a=20,disableRowLimit:n=!1,signal:r,source:i}){let s={...E.pick.call(void 0,e,["connection","from","dateRange","where","with","filters"]),keys:t,disableRowLimit:n};return this.cache.getOrFetch(`${d.G.call(void 0,s)}.getKeyValues`,async()=>{if(0===t.length)return[];let s=n?{...e,select:t.map((e,t)=>`groupUniqArray(${a})(${e}) AS param${t}`).join(", ")}:await (async()=>{let n=t.map((e,t)=>`${e} as param${t}`).join(", ")||"*";return{with:[{name:"sampledData",chartConfig:{...e,select:n,limit:{limit:this.getClickHouseSettings().max_rows_to_read?Number(this.getClickHouseSettings().max_rows_to_read):3e6}},isSubquery:!0}],select:t.map((e,t)=>`groupUniqArray(${a})(param${t}) AS param${t}`).join(", "),connection:e.connection,from:{databaseName:"",tableName:"sampledData"},where:""}})(),l=await eu(s,this,o([i,"optionalAccess",e=>e.querySettings]));return Object.entries(o([await this.clickhouseClient.query({query:l.sql,query_params:l.params,connectionId:e.connection,clickhouse_settings:n?void 0:{...this.getClickHouseSettings(),timeout_overflow_mode:"break",max_execution_time:15,max_rows_to_read:"0"},abort_signal:r}).then(e=>e.json()),"optionalAccess",e=>e.data,"optionalAccess",e=>e[0]])).map(([e,a])=>({key:t[parseInt(e.replace("param",""))],value:o([a,"optionalAccess",e=>e.filter,"call",e=>e(e=>null!=e&&""!==e)])}))})}async getKeyValuesWithMVs({chartConfig:e,keys:t,source:a,limit:n=20,disableRowLimit:r,signal:i}){let s={...E.pick.call(void 0,e,["connection","from","dateRange","where","with","filters"]),keys:t,disableRowLimit:r};return this.cache.getOrFetch(`${d.G.call(void 0,s)}.getKeyValuesWithMVs`,async()=>{if(0===t.length)return[];let s=a?await m.e.call(void 0,{chartConfig:e,keys:t,source:a,clickhouseClient:this.clickhouseClient,metadata:this,signal:i}):[{chartConfig:e,keys:t}];return(await Promise.all(s.map(async({chartConfig:e,keys:t})=>this.getKeyValues({chartConfig:e,keys:t,limit:n,disableRowLimit:r,signal:i,source:a})))).flat()})}},ed=new ec,ep=t.q=e=>new em(e,ed),eg=((n=eg||{}).Array="array",n.Date="date",n.Map="map",n.Number="number",n.String="string",n.Tuple="tuple",n.Bool="bool",n.JSON="json",n.Dynamic="dynamic",n),eh=t.s=e=>{let t={};return e.headers.forEach((e,a)=>{t[a]=e}),t},ef=t.t=e=>e.startsWith("Date")?"date":e.startsWith("Tuple")?"tuple":e.startsWith("Map")?"map":e.startsWith("Array")?"array":e.startsWith("Int")||e.startsWith("UInt")||e.startsWith("Float")||e.startsWith("Nullable(Int")||e.startsWith("Nullable(UInt")||e.startsWith("Nullable(Float")?"number":e.startsWith("String")||e.startsWith("Nullable(String)")||e.startsWith("FixedString")||e.startsWith("Enum")||e.startsWith("UUID")||e.startsWith("IPv4")||e.startsWith("IPv6")?"string":"Bool"===e?"bool":e.startsWith("JSON")?"json":e.startsWith("Dynamic")?"dynamic":e.startsWith("LowCardinality")?ef(e.slice(15,-1)):null,ey=t.u=e=>"map"===e||"array"===e||"json"===e||"tuple"===e||"dynamic"===e,eE=t.v=e=>e.trim().startsWith("Array(")&&e.trim().endsWith(")")?ef(e.trim().slice(6,-1)):null,eA=t.w=e=>{let t=ef(e),a="array"===t;if("map"===t||"tuple"===t)throw Error("Map or Tuple types cannot be searched with Lucene.");return"date"===t?t="number":"array"===t&&eE(e)&&(t=eE(e)),{type:t,isArray:a}},eN=e=>`HYPERDX_PARAM_${Math.abs(d.k.call(void 0,`${e}`))}`,eT=t.x=(e,...t)=>({sql:e.map((e,a)=>{let n=t[a];return e+(null==n?"":"string"==typeof n?n:"UNSAFE_RAW_SQL"in n?n.UNSAFE_RAW_SQL:Array.isArray(n)?n.map(e=>e.sql).join(""):"sql"in n?n.sql:"Identifier"in n?`{${eN(n.Identifier)}:Identifier}`:"String"in n?`{${eN(n.String)}:String}`:"Float32"in n?`{${eN(n.Float32)}:Float32}`:"Float64"in n?`{${eN(n.Float64)}:Float64}`:"Int32"in n?`{${eN(n.Int32)}:Int32}`:"Int64"in n?`{${eN(n.Int64)}:Int64}`:"")}).join(""),params:t.reduce((e,t)=>({...e,...null==t||"string"==typeof t||"UNSAFE_RAW_SQL"in t?{}:Array.isArray(t)?t.reduce((e,t)=>(Object.assign(e,t.params),e),{}):"params"in t?t.params:"Identifier"in t?{[eN(t.Identifier)]:t.Identifier}:"String"in t?{[eN(t.String)]:t.String}:"Float32"in t?{[eN(t.Float32)]:t.Float32}:"Float64"in t?{[eN(t.Float64)]:t.Float64}:"Int32"in t?{[eN(t.Int32)]:t.Int32}:"Int64"in t?{[eN(t.Int64)]:t.Int64}:{}}),{})}),eS=t.y=(e,...t)=>t.reduce((t,a)=>{if(Array.isArray(a)){if(0===a.length)return t;t.sql+=(t.sql.length>0?e:"")+a.map(e=>e.sql).filter(Boolean).join(e),t.params=a.reduce((e,t)=>(Object.assign(e,t.params),e),t.params)}else a.sql.length>0&&(t.sql+=`${t.sql.length>0?e:""}${a.sql}`,Object.assign(t.params,a.params));return t},{sql:"",params:{}}),e_=t.z=(e,t,a)=>(Array.isArray(e)?e.every(e=>0===e.sql.length):0===e.sql.length)?[]:eT`${t}${e}${a}`,eR=t.A=class extends Error{constructor(e,t){super(e),this.query=t,this.name="ClickHouseQueryError"}},eb=t.B=e=>{let t=new h.Parser,a=d.e.call(void 0,e);return o([a,"optionalAccess",e=>e.length])?a.flatMap(e=>{try{let a=/\b[a-zA-Z0-9_]+\[([0-9]+|'[^']*')\]/g,n=e.match(a)||[],r=e.replace(a,"''").replace(/\.:[a-zA-Z0-9]+/g,""),i=/\b[a-zA-Z0-9_]+\.[a-zA-Z0-9_.]+/g,s=r.match(i)||[],o=r.replace(i,"''"),l=t.columnList(`select ${o}`).map(e=>e.split("::")[2]);return[...new Set([...l,...s,...n])]}catch(t){return console.error("Error parsing column references from key",t,e),[]}}):[]},ew=e=>"string"==typeof e?""===e.trim()?NaN:Number(e):e,eC=t.C=(e,t)=>{let a=ew(e),n=ew(t);return isNaN(a)||isNaN(n)||0===n?NaN:a/n},eI=t.D=e=>{let t=e.meta,a=e.data,n=eL(s(t,()=>[])),r=o([t,"optionalAccess",e=>e.filter,"call",e=>e(e=>e.name!==o([n,"optionalAccess",e=>e.name]))]),i=o([r,"optionalAccess",e=>e[0]]),l=o([r,"optionalAccess",e=>e[1]]);if(!i||!l)throw Error(`Unable to compute ratio - meta information: ${JSON.stringify(t)}.`);let u=`${i.name}/${l.name}`;return{...e,data:a.map(e=>({[u]:eC(e[i.name],e[l.name]),...n?{[n.name]:e[n.name]}:{}})),meta:[{name:u,type:"Float64"},...n?[{name:n.name,type:n.type}]:[]]}},e$=t.E=c=class{__init4(){this.requestTimeout=36e5}constructor({host:e,username:t,password:a,queryTimeout:n,application:r,requestTimeout:i}){c.prototype.__init4.call(this),this.host=e,this.username=t,this.password=a,this.queryTimeout=n,this.maxRowReadOnly=!1,this.application=r,null!=i&&i>=0&&(this.requestTimeout=i)}getClient(){if(!this.client)throw Error("ClickHouse client not initialized. Child classes must initialize the client.");return this.client}logDebugQuery(e,t={}){let a="";try{a=ev({sql:e,params:t})}catch(t){a=e}console.debug("--------------------------------------------------------"),console.debug("Sending Query:",a),console.debug("--------------------------------------------------------")}async processClickhouseSettings({connectionId:e,externalClickhouseSettings:t}){let a=structuredClone(t||{});o([a,"optionalAccess",e=>e.max_rows_to_read])&&this.maxRowReadOnly&&delete a.max_rows_to_read,void 0===o([a,"optionalAccess",e=>e.max_execution_time])&&(this.queryTimeout||0)>0&&(a.max_execution_time=this.queryTimeout);let n={allow_experimental_analyzer:1,date_time_output_format:"iso",wait_end_of_query:0,cancel_http_readonly_queries_on_client_close:1,output_format_json_quote_64bit_integers:1},r=await ep(this).getSettings({connectionId:e}),i=(e,t)=>{r&&r.has(e)&&(n[e]=t)};return i("query_plan_optimize_lazy_materialization","1"),i("query_plan_max_limit_for_lazy_materialization","100000"),i("use_skip_indexes_for_top_k","1"),i("query_plan_max_limit_for_top_k_optimization","100000"),i("use_skip_indexes_on_data_read","1"),i("use_skip_indexes_for_disjunctions","1"),{...n,...a}}async query(e){let t=0;for(;t<2;){try{return await this.__query(e)}catch(t){if(!this.maxRowReadOnly&&"READONLY"===t.type&&t.message.includes("max_rows_to_read"))this.maxRowReadOnly=!0;else{let a=t;try{let n="";try{n=ev({sql:e.query,params:s(e.query_params,()=>({}))})}catch(t){n=e.query}(a=new eR(t.message,n)).cause=t}catch(e){}throw a}}t++}throw Error("ClickHouseClient query impossible codepath")}async queryChartConfig({config:e,metadata:t,opts:a,querySettings:n}){e=K(e);let r=await Promise.all(G(e).map(e=>eu(e,t,n))),i="line"===e.displayType,l=await Promise.all(r.map(async t=>(await this.query({query:t.sql,query_params:t.params,format:"JSON",abort_signal:o([a,"optionalAccess",e=>e.abort_signal]),connectionId:e.connection,clickhouse_settings:o([a,"optionalAccess",e=>e.clickhouse_settings])})).json()));if(1===l.length)return l[0];if(l.length>1){let t=new Map,a=new Map;for(let e of l){if(Array.isArray(e.meta))for(let a of e.meta){let e=a.name;t.has(e)||t.set(e,a)}let n=eL(s(e.meta,()=>[])),r=o([eF,"call",t=>t(s(e.meta,()=>[])),"optionalAccess",e=>e[0],"optionalAccess",e=>e.name]);for(let t of e.data){let e=r?Object.fromEntries(Object.entries(t).filter(([e])=>e!==r)):{...t},s=null!=n?t[n.name]:i?y.default.call(void 0,e):"__FIXED_TIMESTAMP__";if(a.has(s)){let e=a.get(s);a.set(s,{...e,...t})}else a.set(s,t)}}let n="ratio"===e.seriesReturnType&&2===l.length,r={meta:Array.from(t.values()),data:Array.from(a.values())};return n?eI(r):r}throw Error("No result sets")}async testChartConfigValidity({config:e,metadata:t,opts:a,querySettings:n}){try{let r=await eu(e,t,n),i=eT`EXPLAIN ESTIMATE ${r}`,s=await (await this.query({query:i.sql,query_params:i.params,format:"JSON",abort_signal:o([a,"optionalAccess",e=>e.abort_signal]),connectionId:e.connection,clickhouse_settings:o([a,"optionalAccess",e=>e.clickhouse_settings])})).json(),l=Number(o([s,"access",e=>e.data,"access",e=>e[0],"optionalAccess",e=>e.rows]));return{isValid:!0,rowEstimate:Number.isNaN(l)?void 0:l}}catch(e){return{isValid:!1,error:e instanceof eR?e.message:"Error while constructing materialized view query"}}}},ex=t.F=({database:e,table:t})=>eT`${{Identifier:e}}.${{Identifier:t}}`;function ev({sql:e,params:t}){return Object.entries(t).reduce((e,[t,a])=>e.replace(RegExp(`{${t}:\\w+}`,"g"),a),e)}function eO(e,t){return e.filter(e=>{let a=ef(e.type);return null!=a&&t.includes(a)})}function eL(e){return o([eO,"call",t=>t(e,["date"]),"optionalAccess",e=>e[0]])}function eF(e){return eO(e,["number"])}var eq=({select:e,...t})=>{if("quantile"===e.aggFn){if(!("level"in e)||null===e.level)throw Error("quantile must have a level");return eM({...t,level:e.level})}if("count"===e.aggFn)return eD(t);throw Error(`${e.aggFn} is not supported for histograms currently`)},eD=({timeBucketSelect:e,groupBy:t,from:a,where:n,valueAlias:r})=>[{name:"source",sql:eT` + SELECT + TimeUnix, + AggregationTemporality, + ${e}, + ${t?eT`[${t}] AS group,`:""} + cityHash64(mapConcat(ScopeAttributes, ResourceAttributes, Attributes)) AS attr_hash, + cityHash64(ExplicitBounds) AS bounds_hash, + toInt64(Count) AS current_count, + lagInFrame(toNullable(current_count), 1, NULL) OVER ( + PARTITION BY ${t?"group, ":""} attr_hash, bounds_hash, AggregationTemporality + ORDER BY TimeUnix + ) AS prev_count, + CASE + WHEN AggregationTemporality = 1 THEN current_count + WHEN AggregationTemporality = 2 THEN greatest(0, current_count - coalesce(prev_count, 0)) + ELSE 0 + END AS delta + FROM ${a} + WHERE ${n} + `},{name:"metrics",sql:eT` + SELECT + \`__hdx_time_bucket\`, + ${t?"group,":""} + sum(delta) AS "${r}" + FROM source + GROUP BY ${t?"group, ":""}\`__hdx_time_bucket\` + `}],eM=({timeBucketSelect:e,groupBy:t,from:a,where:n,valueAlias:r,level:i})=>[{name:"source",sql:eT` + SELECT + MetricName, + ExplicitBounds, + ${e}, + ${t?eT`[${t}] as group,`:""} + sumForEach(deltas) as rates + FROM ( + SELECT + TimeUnix, + MetricName, + ResourceAttributes, + Attributes, + ExplicitBounds, + attr_hash, + any(attr_hash) OVER (ROWS BETWEEN 1 preceding AND 1 preceding) AS prev_attr_hash, + any(bounds_hash) OVER (ROWS BETWEEN 1 preceding AND 1 preceding) AS prev_bounds_hash, + any(counts) OVER (ROWS BETWEEN 1 preceding AND 1 preceding) AS prev_counts, + counts, + IF( + AggregationTemporality = 1 ${""} + OR prev_attr_hash != attr_hash ${""} + OR bounds_hash != prev_bounds_hash ${""} + OR arrayExists((x) -> x.2 < x.1, arrayZip(prev_counts, counts)), ${""} + counts, + counts - prev_counts + ) AS deltas + FROM ( + SELECT + TimeUnix, + MetricName, + AggregationTemporality, + ExplicitBounds, + ResourceAttributes, + Attributes, + cityHash64(mapConcat(ScopeAttributes, ResourceAttributes, Attributes)) AS attr_hash, + cityHash64(ExplicitBounds) AS bounds_hash, + CAST(BucketCounts AS Array(Int64)) counts + FROM ${a} + WHERE ${n} + ORDER BY attr_hash, TimeUnix ASC + ) + ) + GROUP BY \`__hdx_time_bucket\`, MetricName, ${t?"group, ":""}ExplicitBounds + ORDER BY \`__hdx_time_bucket\` + `},{name:"points",sql:eT` + SELECT + \`__hdx_time_bucket\`, + MetricName, + ${t?"group,":""} + arrayZipUnaligned(arrayCumSum(rates), ExplicitBounds) as point, + length(point) as n + FROM source + `},{name:"metrics",sql:eT` + SELECT + \`__hdx_time_bucket\`, + MetricName, + ${t?"group,":""} + point[n].1 AS total, + ${{Float64:i}} * total AS rank, + arrayFirstIndex(x -> if(x.1 > rank, 1, 0), point) AS upper_idx, + point[upper_idx].1 AS upper_count, + ifNull(point[upper_idx].2, inf) AS upper_bound, + CASE + WHEN upper_idx > 1 THEN point[upper_idx - 1].2 + WHEN point[upper_idx].2 > 0 THEN 0 + ELSE inf + END AS lower_bound, + if ( + lower_bound = 0, + 0, + point[upper_idx - 1].1 + ) AS lower_count, + CASE + WHEN upper_bound = inf THEN point[upper_idx - 1].2 + WHEN lower_bound = inf THEN point[1].2 + ELSE lower_bound + (upper_bound - lower_bound) * ((rank - lower_count) / (upper_count - lower_count)) + END AS "${r}" + FROM points + WHERE length(point) > 1 AND total > 0 + `}];t.a=eq,t.b=H,t.c=W,t.d=B,t.e=j,t.f=K,t.g=G,t.h=function(e){return{...e,operator:Q[e.operator]}},t.i=z,t.j=ee,t.k=eu,t.l=3e6,t.m=ec,t.n=em,t.o=function(e){return{databaseName:s(o([e,"optionalAccess",e=>e.from,"optionalAccess",e=>e.databaseName]),()=>""),tableName:s(o([e,"optionalAccess",e=>e.from,"optionalAccess",e=>e.tableName]),()=>""),connectionId:s(o([e,"optionalAccess",e=>e.connection]),()=>"")}},t.p=function(e){return{databaseName:s(o([e,"optionalAccess",e=>e.from,"optionalAccess",e=>e.databaseName]),()=>""),tableName:s(o([e,"optionalAccess",e=>e.from,"optionalAccess",e=>e.tableName]),()=>""),connectionId:s(o([e,"optionalAccess",e=>e.connection]),()=>"")}},t.q=ep,t.r=eg,t.s=eh,t.t=ef,t.u=ey,t.v=eE,t.w=eA,t.x=eT,t.y=eS,t.z=e_,t.A=eR,t.B=eb,t.C=eC,t.D=eI,t.E=e$,t.F=ex,t.G=ev,t.H=function(e){let t={};if(null==e)return t;try{let a=ev(e),[n]=d.C.call(void 0,a),{sqlWithReplacements:r,replacements:i}=d.i.call(void 0,n),s=new h.Parser().astify(r,{database:"Postgresql",parseOptions:{includeLocations:!0}});for(let[e,a]of(null!=s.columns&&s.columns.forEach(e=>{null!=e.as&&("expr"===e.type&&"column_ref"===e.expr.type?t[e.as]=e.expr.array_index&&o([e,"access",e=>e.expr,"access",e=>e.array_index,"access",e=>e[0],"optionalAccess",e=>e.brackets])?`${e.expr.column.expr.value}['${e.expr.array_index[0].index.value}']`:e.expr.column.expr.value:null!=e.expr.loc?t[e.as]=r.slice(e.expr.loc.start.offset,e.expr.loc.end.offset):console.error("Unknown alias column type",e))}),Object.entries(t)))for(let[n,r]of i)a.includes(n)&&(t[e]=a.replaceAll(n,r))}catch(t){console.error("Error parsing alias map with JSON removed",t,"for query",e)}return t},t.I=eO,t.J=eL,t.K=eF,t.L=_,t.M=v,t.N=L,t.O=U,t.P=k,t.Q=P},35467:(e,t,a)=>{var n=a(31832);a(5062),a(75131),a(17769),n.E,t.p1=n.A,t.A2=n.r,t.kg=n.x,t.D7=n.H,n.C,n.D,n.y,t.rj=n.t,n.w,t.bZ=n.B,n.v,t.P1=n.I,n.s,n.K,t.zo=n.J,t.Zo=n.u,t.l6=n.G,t.k$=n.F,n.z},35871:(e,t,a)=>{a.d(t,{A:()=>u});var n=a(6029),r=a(75155),i=a(76089),s=a(63085),o=a(45749),l=a(7565);function u(e){let t,a,u,c,m,d=(0,r.c)(12),{originalDateRange:p,effectiveDateRange:g,mvGranularity:h}=e,f=(0,l.a)();if(!g||(0,i._p)(g,p))return null;d[0]!==g[0]||d[1]!==f?(t=f(g[0]),d[0]=g[0],d[1]=f,d[2]=t):t=d[2],d[3]!==g[1]||d[4]!==f?(a=f(g[1]),d[3]=g[1],d[4]=f,d[5]=a):a=d[5],d[6]!==t||d[7]!==a?(u=[t,a],d[6]=t,d[7]=a,d[8]=u):u=d[8];let[y,E]=u,A=h?`Querying ${y} - ${E} due to ${h} rollups in query acceleration.`:`Querying ${y} - ${E} to show complete intervals.`;return d[9]===Symbol.for("react.memo_cache_sentinel")?(c=(0,n.jsx)(o.A,{size:16,color:"var(--color-text)"}),d[9]=c):c=d[9],d[10]!==A?(m=(0,n.jsx)(s.m,{multiline:!0,maw:500,label:A,children:c}),d[10]=A,d[11]=m):m=d[11],m}},43152:(e,t,a)=>{a.d(t,{gT:()=>N,Hx:()=>R,WG:()=>T,zE:()=>O,x5:()=>x,p2:()=>L,nH:()=>F,JD:()=>q,xh:()=>v,wt:()=>b,VH:()=>B,m9:()=>Y,A7:()=>K,qL:()=>w,_t:()=>G,dY:()=>Q,Z7:()=>z,O7:()=>S,ik:()=>W,ME:()=>U,zg:()=>V,r4:()=>k,eY:()=>$,xu:()=>J,Ht:()=>I,W6:()=>C,GJ:()=>_});var n=a(6029),r=a(75155),i=a(86508),s=a(11370),o=a(76694),l=a.n(o),u=a(80519),c=a.n(u),m=a(6663),d=a(35467),p=a(67270),g=a(76089),h=a(82641),f=a(60665),y=a(35871);let E={"k8s.pod.cpu.utilization":{newName:"k8s.pod.cpu.usage",versionThreshold:"0.125.0"},"k8s.node.cpu.utilization":{newName:"k8s.node.cpu.usage",versionThreshold:"0.125.0"},"container.cpu.utilization":{newName:"container.cpu.usage",versionThreshold:"0.125.0"}};a(9897);var A=a(92917);let N=[{value:"count",label:"Count of Events",isAttributable:!1},{value:"sum",label:"Sum",isAttributable:!1},{value:"p99",label:"99th Percentile"},{value:"p95",label:"95th Percentile"},{value:"p90",label:"90th Percentile"},{value:"p50",label:"Median"},{value:"avg",label:"Average"},{value:"max",label:"Maximum"},{value:"min",label:"Minimum"},{value:"count_distinct",label:"Count Distinct",isAttributable:!1},{value:"any",label:"Any"},{value:"none",label:"Custom"}],T={name:"",select:[{aggFn:"count",aggCondition:"",aggConditionLanguage:"lucene",valueExpression:""}],where:"",whereLanguage:"lucene",displayType:h.t2.Line,granularity:"auto",alignDateRangeToGranularity:!0};function S(e){let t="auto"===e.granularity||null==e.granularity?(0,g.tA)(e.dateRange,80):e.granularity,a=!1===e.alignDateRangeToGranularity?e.dateRange:(0,g.Ol)(e.dateRange,t);return{...e,dateRange:a,dateRangeEndInclusive:!1,granularity:t,limit:{limit:1e5}}}function _(e){let t,a,n=(0,r.c)(7);n[0]!==e?(t=S(e),n[0]=e,n[1]=t):t=n[1];let i=t;return n[2]!==i.dateRange||n[3]!==i.displayType||n[4]!==i.fillNulls||n[5]!==i.granularity?(a={displayType:i.displayType,dateRange:i.dateRange,fillNulls:i.fillNulls,granularity:i.granularity},n[2]=i.dateRange,n[3]=i.displayType,n[4]=i.fillNulls,n[5]=i.granularity,n[6]=a):a=n[6],a}let R=" \xb7 ",b=" (previous)";function w(e){let[t,a]=e.split(" "),n=Number.parseInt(t);switch(a){case"second":return n;case"minute":return 60*n;case"hour":return 60*n*60;case"day":return 60*n*1440;default:return 0}}function C(e,t){let[a,n]=t.split(" "),r=Number.parseInt(a),i=Math.floor;switch(n){case"second":return new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),i(e.getUTCSeconds()/r)*r));case"minute":return new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),i(e.getUTCMinutes()/r)*r));case"hour":return new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),i(e.getUTCHours()/r)*r));case"day":return new Date(1e3*(i(e.getTime()/1e3/60/60/24/r)*r)*86400);default:return e}}function I(e,t,a){let n=[],r=C(e,a),s=w(a);for(;r{let t=e.toLowerCase();return["count","countIf","countDistinct","sum","sumIf","avg","avgIf","min","max","any","anyLast","groupArray","groupArrayInsertAt","groupArrayMovingAvg","groupArraySample","groupUniqArray","groupUniqArrayIf","groupArrayIntersect","groupArrayIntersectIf","groupArrayReduce","groupBitmap","groupBitmapIf","groupBitmapOr","groupBitmapXor","quantile","quantileIf","quantileExact","quantileExactWeighted","quantileTiming","quantileTimingWeighted","quantileTDigest","quantileTDigestWeighted","quantileBFloat16","quantileBFloat16Weighted","quantiles","median","medianExact","medianTDigest","medianBFloat16","stddevPop","stddevPopIf","stddevSamp","stddevSampIf","varPop","varPopIf","varSamp","varSampIf","covarPop","covarSamp","corr","uniq","uniqExact","uniqCombined","uniqCombined64","uniqHLL12","uniqTheta","groupBitAnd","groupBitOr","groupBitXor","groupArrayMap","groupArrayTuple","groupArraySorted","topK","topKIf","topKWeighted","argMin","argMax","minMap","maxMap","runningDifference","retention","sequenceCount","sequenceMatch","histogram","simpleLinearRegression","stochasticLinearRegression","categoricalInformationValue","sumMap","sumMapFiltered","sumWithOverflow","entropy","skewPop","skewSamp","kurtPop","kurtSamp"].some(e=>t.includes(e.toLowerCase()+"("))},x={factor:1,output:"number",mantissa:0,thousandSeparated:!0},v={factor:1,output:"number",mantissa:2,thousandSeparated:!0,unit:"ms"},O={output:"percent",mantissa:0},L={output:"percent",mantissa:0},F={output:"byte"},q={output:"byte"};function D(e,t){return(0,d.P1)(e,[d.A2.Number])?.filter(e=>!t.has(e.name))}function M(e){return(0,d.P1)(e,[d.A2.String,d.A2.Map,d.A2.Array])}function U(e,t){if(!e.meta||0===e.data.length)return[];let a=D(e.meta,new Set),n=M(e.meta);if(!a?.length)return[];let r=a[0].name;return e.data.map(e=>{let t=n?.length?n.map(({name:t})=>e[t]).join(" - "):r,a=e[r];return{label:t,value:"number"==typeof a?a:Number.parseFloat(`${a}`)}}).filter(e=>!isNaN(e.value)&&isFinite(e.value)).sort((e,t)=>t.value-e.value).map((e,a)=>({...e,color:t(a,e.label)}))}function k(e){let[t,a]=e,n=(0,s.A)(a,t);return[new Date(t.getTime()-1e3*n),new Date(a.getTime()-1e3*n)]}function P({response:e,lineDataMap:t,tsBucketMap:a,source:n,previousPeriodOffsetSeconds:r,isPreviousPeriod:i,hiddenSeries:s=[]}){let{meta:o,data:l}=e;if(null==o)throw Error("No meta data found in response");let u=(0,d.zo)(o);if(null==u)throw Error(`No timestamp column found with meta: ${JSON.stringify(o)}`);let c=D(o,new Set(s))??[],m=M(o)??[],p=1===c.length,g=m.length>0;for(let e of l){let s=new Date(e[u.name]),o=i?r:0,l=Math.round(s.getTime()/1e3+o);for(let r of c){let s,o=a.get(l);null==o&&(o={[u.name]:l},a.set(l,o));let c=[...p&&g?[]:[r.name],...m.map(t=>e[t.name])].join(R),d=`${c}${b}`,f=i?d:c,y=e[r.name],E="number"==typeof y?y:Number.parseFloat(y);o[f]=E,n&&1===m.length&&m[0].name===(n.kind===h.GL.Log?n.severityTextExpression:n.statusCodeExpression)&&(s=(0,A.aw)(e[m[0].name])),t[f]={dataKey:f,currentPeriodKey:c,previousPeriodKey:d,displayName:f,color:s,isDashed:i}}}}function V({currentPeriodResponse:e,previousPeriodResponse:t,dateRange:a,granularity:n,generateEmptyBuckets:r=!0,source:i,hiddenSeries:s=[],previousPeriodOffsetSeconds:o=0}){let l,u,c=e.meta;if(null==c)throw Error("No meta data found in response");let m=(0,d.zo)(c),p=D(c,new Set(s))??[],g=M(c)??[],h=1===p.length;if(null==m)throw Error(`No timestamp column found with meta: ${JSON.stringify(c)}`);let f=new Map,y={};P({response:e,lineDataMap:y,tsBucketMap:f,source:i,isPreviousPeriod:!1,previousPeriodOffsetSeconds:o,hiddenSeries:s}),null!=t&&P({response:t,lineDataMap:y,tsBucketMap:f,source:i,isPreviousPeriod:!0,previousPeriodOffsetSeconds:o,hiddenSeries:s});let E=(0,A.EA)(),N=Object.values(y).sort((e,t)=>E.findIndex(t=>t===e.color)-E.findIndex(e=>e===t.color));return r&&null!=n&&I(a[0],a[1],n).forEach(e=>{let t=e.getTime()/1e3,a=f.get(t);if(null==a){let e={[m.name]:t};for(let t of N)e[t.dataKey]=0;f.set(t,e)}else{for(let e of N)null==a[e.dataKey]&&(a[e.dataKey]=0);f.set(t,a)}}),{graphResults:Array.from(f.values()).sort((e,t)=>e[m.name]-t[m.name]),timestampColumn:m,lineData:(l=new Map,u=0,N.map(e=>{let t=e.currentPeriodKey;return l.has(t)?e.color=l.get(t):(e.color||(e.color=(0,A.ob)(u++,e.displayName??e.dataKey)),l.set(t,e.color)),e})),groupColumns:g.map(e=>e.name),valueColumns:p.map(e=>e.name),isSingleValueColumn:h}}let H=e=>{if(null==e)return e;if(e.endsWith("_rate"))return H(e.replace("_rate",""));if("p50"===e||"p90"===e||"p95"===e||"p99"===e)return"quantile";if("count_per_sec"===e||"count_per_min"===e||"count_per_hour"===e)return"count";if(["avg","count","count_distinct","last_value","max","min","sum"].includes(e))return e;throw Error(`Unsupported aggregation function in v2: ${e}`)},W=(e,t)=>{let{series:a,granularity:n,dateRange:r,displayType:i="line",fillNulls:s}=e;if(a.length<1)throw Error("series is required");let o=a[0],l="stacked_bar"===i?h.t2.StackedBar:h.t2.Line;if("logs"===o.table)throw Error("IMPLEMENT ME (logs)");if("metrics"===o.table){let e;if(null==t.metric)throw Error("source.metric is required for metrics");return{select:a.map(e=>{let t=e.field??"",[a,n]=t.split(" - ").map(e=>e.trim()),r=function(e){let t=E[e];if(t)return c().format("MetricName IN (?)",[[e,t.newName]])}(a),i=m.fc(h.SX).parse(n?.toLowerCase());return{aggFn:H(e.aggFn),metricType:i,valueExpression:t,metricName:a,metricNameSql:r,aggConditionLanguage:"lucene",aggCondition:e.where}}),from:t.metric?.from,numberFormat:o.numberFormat,groupBy:(e=t.metric,o.groupBy.map(t=>t.startsWith("k8s")?`${e.resourceAttributesExpression}['${t}']`:t).join(",")),dateRange:r,connection:t.metric?.connection,metricTables:t.metric?.metricTables,timestampValueExpression:t.metric?.timestampValueExpression,granularity:n,where:"",fillNulls:s,displayType:l}}throw Error(`unsupported table in v2: ${o.table}`)};function B({source:e,config:t,dateRange:a,groupFilters:n,valueRangeFilter:r}){if(!e?.id)return null;let i=(0,p.bv)(t);if(i&&e?.logSourceId==null)return f.$e.show({color:"yellow",message:"No log source is associated with the selected metric source."}),null;let s=t.where,o=t.whereLanguage||"lucene";0===s.length&&Array.isArray(t.select)&&1===t.select.length&&(s=t.select[0].aggCondition??"",o=t.select[0].aggConditionLanguage??"lucene");let l=[];if(n&&n.length>0&&n.forEach(({column:e,value:t})=>{if(e&&null!=t){let a=`${e} IN (${c().escape(t)})`;l.push({type:"sql",condition:a})}}),r){let{expression:e,value:t,threshold:a=.05}=r;if(!$(e)){let n=`${e} BETWEEN ${c().escape(t*(1-a))} AND ${c().escape(t*(1+a))}`;l.push({type:"sql",condition:n})}}let u=a[0].getTime(),m=a[1].getTime(),d={source:e?.id??"",where:s,whereLanguage:o,filters:JSON.stringify([...t.filters??[],...l]),isLive:"false",from:u.toString(),to:m.toString()};return i&&(d.where="",d.whereLanguage="lucene",d.filters=JSON.stringify([]),d.source=e?.logSourceId??""),t.eventTableSelect&&(d.select=t.eventTableSelect),`/search?${new URLSearchParams(d).toString()}`}function j(e){return e?"string"==typeof e?e.split(",").map(e=>e.trim()):e.map(e=>"string"==typeof e?e:e.valueExpression):[]}function K({row:e,source:t,config:a,dateRange:n}){let r;if(!t?.id)return null;let i=[];j(a.groupBy).forEach(t=>{null!=e[t]&&i.push({column:t,value:e[t]})});let s=a.select?.[0];if(s){let t="string"==typeof s?void 0:s.aggFn;if(N.find(e=>e.value===t)?.isAttributable!==!1){let t="string"==typeof s?s:s.valueExpression,n=new Set(j(a.groupBy)),i=Object.keys(e).find(e=>!n.has(e)),o=i?e[i]:void 0;null!=o&&"number"==typeof o&&(r={expression:t,value:o})}}return B({source:t,config:a,dateRange:n,groupFilters:i,valueRangeFilter:r})}function G(e){return l()(e,["granularity","groupBy"])}function Q(e){return l()(e,["granularity"])}function z(e){let t=structuredClone(l()(e,["granularity"]));return t.limit||(t.limit={limit:200}),t.groupBy&&"string"==typeof t.groupBy&&!t.orderBy&&(t.orderBy=t.groupBy),t}function Y({mvOptimizationData:e,originalDateRange:t}){let a=e?.optimizedConfig?.dateRange;if(!a)return null;let r=e?.explanations.find(e=>e.success)?.mvConfig.minGranularity;return(0,n.jsx)(y.A,{originalDateRange:t,effectiveDateRange:a,mvGranularity:r},"date-range-indicator")}function J(e){return!1!==e}},49672:(e,t,a)=>{a.d(t,{VH:()=>p,W:()=>m,fu:()=>d,uI:()=>h});var n=a(75155),r=a(35467),i=a(88459),s=a(12482),o=a(98142),l=a(93108),u=a(6876),c=a(61410);let m=(e={})=>{if(o.VO){let t=(0,l.xZ)();return 0===t.length?(console.warn("No local connection found"),new i.aP({host:"",...e})):new i.aP({host:t[0].host,username:t[0].username,password:t[0].password,...e})}return new i.aP({host:"/api/clickhouse-proxy",...e})},d=(e={})=>{let{data:t}=u.Ay.useMe(),a=t?.team?.queryTimeout;return void 0!==a?e.queryTimeout=a:e.queryTimeout=c.rb,m(e)};function p(e,t){let a,r,i,o,l=(0,n.c)(8),{connectionId:u}=e;l[0]===Symbol.for("react.memo_cache_sentinel")?(a=m(),l[0]=a):a=l[0];let c=a;return l[1]!==u?(r=["direct_datasources/databases",u],i=async()=>await c.query({query:"SHOW DATABASES",connectionId:u}).then(g),l[1]=u,l[2]=r,l[3]=i):(r=l[2],i=l[3]),l[4]!==t||l[5]!==r||l[6]!==i?(o={queryKey:r,queryFn:i,staleTime:3e5,...t},l[4]=t,l[5]=r,l[6]=i,l[7]=o):o=l[7],(0,s.I)(o)}function g(e){return e.json()}function h({database:e,connectionId:t},a){let n=m();return(0,s.I)({queryKey:[`direct_datasources/databases/${e}/tables`,t],queryFn:async()=>{let a=(0,r.kg)`SHOW TABLES FROM ${{Identifier:e}}`;return await n.query({query:a.sql,query_params:a.params,connectionId:t}).then(e=>e.json())},staleTime:3e5,...a})}},57389:(e,t,a)=>{a.d(t,{d:()=>c});var n=a(75155),r=a(2615),i=a(4308),s=a(12482),o=a(49672),l=a(81973),u=a(78550);function c(e,t){let a,c,m,d,p,g=(0,n.c)(16);g[0]!==t?(a=t||{},g[0]=t,g[1]=a):a=g[1];let{enabled:h}=a,f=(0,u.Ge)(),y=(0,o.fu)(),E=e?.source;g[2]!==E?(c={id:E},g[2]=E,g[3]=c):c=g[3];let{data:A,isLoading:N}=(0,l.Fo)(c);g[4]!==e?(m=["optimizationExplanation",e],g[4]=e,g[5]=m):m=g[5],g[6]!==y||g[7]!==e||g[8]!==f||g[9]!==A?(d=async t=>{let{signal:a}=t;return e&&A?await (0,r.bn)(e,f,y,a,A):{explanations:[]}},g[6]=y,g[7]=e,g[8]=f,g[9]=A,g[10]=d):d=g[10];let T=(void 0===h||h)&&!N&&!!e&&!!A;return g[11]!==t||g[12]!==m||g[13]!==d||g[14]!==T?(p={queryKey:m,queryFn:d,placeholderData:i.rX,staleTime:5e3,...t,enabled:T},g[11]=t,g[12]=m,g[13]=d,g[14]=T,g[15]=p):p=g[15],(0,s.I)(p)}},61410:(e,t,a)=>{a.d(t,{Km:()=>n,Nz:()=>i,rb:()=>r});let n=200,r=60;function i(e){return{limit:{limit:e?.searchRowLimit??n}}}},67270:(e,t,a)=>{var n=a(31832);a(5062),a(75131),a(17769),t.n_=n.b,n.h,t.bv=n.e,t.v4=n.i,t.lE=n.d,t.x1=n.c,t.PV=n.k,n.f,n.g,n.j},69519:(e,t,a)=>{a.d(t,{Me:()=>i,so:()=>r});let n=[21600,21600,43200,86400];function r(e,t,a=n){if(e.getTime()===t.getTime())return[{startTime:e,endTime:t,windowIndex:0,direction:"DESC"}];let i=[],s=new Date(t),o=0;for(;s>e;){let t=1e3*(a[o]||a[a.length-1]),n=new Date(Math.max(s.getTime()-t,e.getTime()));i.push({endTime:new Date(s),startTime:n,windowIndex:o,direction:"DESC"}),s=n,o++}return i}function i(e,t,a=n){if(e.getTime()===t.getTime())return[{startTime:e,endTime:t,windowIndex:0,direction:"ASC"}];let r=[],s=new Date(e),o=0;for(;s{var n=a(67599),r=n.expandPhrases.call(void 0,["SELECT [ALL | DISTINCT]"]),i=n.expandPhrases.call(void 0,["WITH [RECURSIVE]","FROM","WHERE","GROUP BY [ALL | DISTINCT]","HAVING","WINDOW","PARTITION BY","ORDER BY","LIMIT","OFFSET","FETCH {FIRST | NEXT}","INSERT INTO","VALUES","SET"]),s=n.expandPhrases.call(void 0,["CREATE [GLOBAL TEMPORARY | LOCAL TEMPORARY] TABLE"]),o=n.expandPhrases.call(void 0,["CREATE [RECURSIVE] VIEW","UPDATE","WHERE CURRENT OF","DELETE FROM","DROP TABLE","ALTER TABLE","ADD COLUMN","DROP [COLUMN]","RENAME COLUMN","RENAME TO","ALTER [COLUMN]","{SET | DROP} DEFAULT","ADD SCOPE","DROP SCOPE {CASCADE | RESTRICT}","RESTART WITH","TRUNCATE TABLE","SET SCHEMA"]),l={name:"clickhouse",tokenizerOptions:{reservedSelect:r,reservedClauses:[...i,...s,...o],reservedSetOperations:n.expandPhrases.call(void 0,["UNION [ALL | DISTINCT]","EXCEPT [ALL | DISTINCT]","INTERSECT [ALL | DISTINCT]"]),reservedJoins:n.expandPhrases.call(void 0,["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN"]),reservedPhrases:n.expandPhrases.call(void 0,["ON {UPDATE | DELETE} [SET NULL | SET DEFAULT]","{ROWS | RANGE} BETWEEN"]),reservedKeywords:["ALL","ALLOCATE","ALTER","ANY","ARE","AS","ASC","ASENSITIVE","ASYMMETRIC","AT","ATOMIC","AUTHORIZATION","BEGIN","BETWEEN","BOTH","BY","CALL","CALLED","CASCADED","CAST","CHECK","CLOSE","COALESCE","COLLATE","COLUMN","COMMIT","CONDITION","CONNECT","CONSTRAINT","CORRESPONDING","CREATE","CROSS","CUBE","CURRENT","CURRENT_CATALOG","CURRENT_DEFAULT_TRANSFORM_GROUP","CURRENT_PATH","CURRENT_ROLE","CURRENT_SCHEMA","CURRENT_TRANSFORM_GROUP_FOR_TYPE","CURRENT_USER","CURSOR","CYCLE","DEALLOCATE","DAY","DECLARE","DEFAULT","DELETE","DEREF","DESC","DESCRIBE","DETERMINISTIC","DISCONNECT","DISTINCT","DROP","DYNAMIC","EACH","ELEMENT","END-EXEC","ESCAPE","EVERY","EXCEPT","EXEC","EXECUTE","EXISTS","EXTERNAL","FALSE","FETCH","FILTER","FOR","FOREIGN","FREE","FROM","FULL","FUNCTION","GET","GLOBAL","GRANT","GROUP","HAVING","HOLD","HOUR","IDENTITY","IN","INDICATOR","INNER","INOUT","INSENSITIVE","INSERT","INTERSECT","INTO","IS","LANGUAGE","LARGE","LATERAL","LEADING","LEFT","LIKE","LIKE_REGEX","LOCAL","MATCH","MEMBER","MERGE","METHOD","MINUTE","MODIFIES","MODULE","MONTH","NATURAL","NEW","NO","NONE","NOT","NULL","NULLIF","OF","OLD","ON","ONLY","OPEN","ORDER","OUT","OUTER","OVER","OVERLAPS","PARAMETER","PARTITION","PRECISION","PREPARE","PRIMARY","PROCEDURE","RANGE","READS","REAL","RECURSIVE","REF","REFERENCES","REFERENCING","RELEASE","RESULT","RETURN","RETURNS","REVOKE","RIGHT","ROLLBACK","ROLLUP","ROW","ROWS","SAVEPOINT","SCOPE","SCROLL","SEARCH","SECOND","SELECT","SENSITIVE","SESSION_USER","SET","SIMILAR","SOME","SPECIFIC","SQL","SQLEXCEPTION","SQLSTATE","SQLWARNING","START","STATIC","SUBMULTISET","SYMMETRIC","SYSTEM","SYSTEM_USER","TABLE","TABLESAMPLE","THEN","TIMEZONE_HOUR","TIMEZONE_MINUTE","TO","TRAILING","TRANSLATION","TREAT","TRIGGER","TRUE","UESCAPE","UNION","UNIQUE","UNKNOWN","UNNEST","UPDATE","USER","USING","VALUE","VALUES","WHENEVER","WINDOW","WITHIN","WITHOUT","YEAR"],reservedDataTypes:["ARRAY","BIGINT","BINARY LARGE OBJECT","BINARY VARYING","BINARY","BLOB","BOOLEAN","CHAR LARGE OBJECT","CHAR VARYING","CHAR","CHARACTER LARGE OBJECT","CHARACTER VARYING","CHARACTER","CLOB","DATE","DEC","DECIMAL","DOUBLE","FLOAT","INT","INTEGER","INTERVAL","MULTISET","NATIONAL CHAR VARYING","NATIONAL CHAR","NATIONAL CHARACTER LARGE OBJECT","NATIONAL CHARACTER VARYING","NATIONAL CHARACTER","NCHAR LARGE OBJECT","NCHAR VARYING","NCHAR","NCLOB","NUMERIC","SMALLINT","TIME","TIMESTAMP","VARBINARY","VARCHAR"],reservedFunctionNames:["GROUPING","RANK","DENSE_RANK","PERCENT_RANK","CUME_DIST","ROW_NUMBER","POSITION","OCCURRENCES_REGEX","POSITION_REGEX","EXTRACT","CHAR_LENGTH","CHARACTER_LENGTH","OCTET_LENGTH","CARDINALITY","ABS","MOD","LN","EXP","POWER","SQRT","FLOOR","CEIL","CEILING","WIDTH_BUCKET","SUBSTRING","SUBSTRING_REGEX","UPPER","LOWER","CONVERT","TRANSLATE","TRANSLATE_REGEX","TRIM","OVERLAY","NORMALIZE","SPECIFICTYPE","CURRENT_DATE","CURRENT_TIME","LOCALTIME","CURRENT_TIMESTAMP","LOCALTIMESTAMP","COUNT","AVG","MAX","MIN","SUM","STDDEV_POP","STDDEV_SAMP","VAR_SAMP","VAR_POP","COLLECT","FUSION","INTERSECTION","COVAR_POP","COVAR_SAMP","CORR","REGR_SLOPE","REGR_INTERCEPT","REGR_COUNT","REGR_R2","REGR_AVGX","REGR_AVGY","REGR_SXX","REGR_SYY","REGR_SXY","PERCENTILE_CONT","PERCENTILE_DISC","CAST","COALESCE","NULLIF","ROUND","SIN","COS","TAN","ASIN","ACOS","ATAN"],stringTypes:[{quote:"''-qq-bs",prefixes:["N","U&"]},{quote:"''-raw",prefixes:["X"],requirePrefix:!0}],identTypes:['""-qq',"``"],extraParens:["[]"],paramTypes:{positional:!0},operators:["||","%"]},formatOptions:{onelineClauses:[...s,...o],tabularOnelineClauses:o}};t.GP=function(e){return n.formatDialect.call(void 0,e,{dialect:l})}},78550:(e,t,a)=>{a.d(t,{Ii:()=>F,ws:()=>C,Zh:()=>T,lo:()=>L,kN:()=>O,n$:()=>S,Ge:()=>N,Sh:()=>R,nT:()=>$,Z2:()=>I});var n=a(75155),r=a(55729),i=a(79339),s=a.n(i),o=a(35467),l=a(93251),u=a(12482),c=a(4308),m=a(6876),d=a(98142),p=a(93108),g=a(3145),h=a(49672),f=a(61410);let y=()=>(0,g.yb)((0,h.W)({queryTimeout:f.rb}));var E=a(81973),A=a(92917);function N(){let e,t,a,i,s,o=(0,n.c)(10);o[0]===Symbol.for("react.memo_cache_sentinel")?(e=y(),o[0]=e):e=o[0];let[u,c]=(0,r.useState)(e),{data:g}=m.Ay.useMe(),h=(0,r.useRef)(!1),f=(0,l.jE)();o[1]!==f?(t=()=>{if(void 0===window.document||!d.VO)return;let e=e=>{e.key===p.Gs&&e.newValue&&(c(y()),h.current=!1,f.resetQueries())};return window.addEventListener("storage",e),()=>{window.removeEventListener("storage",e)}},a=[f],o[1]=f,o[2]=t,o[3]=a):(t=o[2],a=o[3]),(0,r.useEffect)(t,a),o[4]!==g||o[5]!==u?(i=()=>{g?.team?.metadataMaxRowsToRead&&!h.current&&(u.setClickHouseSettings({max_rows_to_read:g.team.metadataMaxRowsToRead}),h.current=!0)},o[4]=g,o[5]=u,o[6]=i):i=o[6];let E=g?.team?.metadataMaxRowsToRead;return o[7]!==u||o[8]!==E?(s=[E,u],o[7]=u,o[8]=E,o[9]=s):s=o[9],(0,r.useEffect)(i,s),u}function T(e,t){let a,r,i,s=(0,n.c)(13),{databaseName:o,tableName:l,connectionId:c}=e,m=N();s[0]!==o||s[1]!==l?(a=["useMetadata.useColumns",{databaseName:o,tableName:l}],s[0]=o,s[1]=l,s[2]=a):a=s[2],s[3]!==c||s[4]!==o||s[5]!==m||s[6]!==l?(r=async()=>m.getColumns({databaseName:o,tableName:l,connectionId:c}),s[3]=c,s[4]=o,s[5]=m,s[6]=l,s[7]=r):r=s[7];let d=!!o&&!!l&&!!c;return s[8]!==t||s[9]!==a||s[10]!==r||s[11]!==d?(i={queryKey:a,queryFn:r,enabled:d,...t},s[8]=t,s[9]=a,s[10]=r,s[11]=d,s[12]=i):i=s[12],(0,u.I)(i)}function S(e,t){let a,r,i,s=(0,n.c)(10),l=N();s[0]!==e?(a=["useMetadata.useJsonColumns",e],s[0]=e,s[1]=a):a=s[1],s[2]!==l||s[3]!==e?(r=async()=>{if(!e)return[];let t=await l.getColumns(e);return(0,o.P1)(t,[o.A2.JSON])?.map(_)??[]},s[2]=l,s[3]=e,s[4]=r):r=s[4];let c=e&&!!e.databaseName&&!!e.tableName&&!!e.connectionId;return s[5]!==t||s[6]!==a||s[7]!==r||s[8]!==c?(i={queryKey:a,queryFn:r,enabled:c,...t},s[5]=t,s[6]=a,s[7]=r,s[8]=c,s[9]=i):i=s[9],(0,u.I)(i)}function _(e){return e.name}function R(e,t){let a,r,i,s,o=(0,n.c)(14),l=N(),{data:c,isFetched:d}=m.Ay.useMe();return o[0]!==e?(a=["useMetadata.useMultipleAllFields",...e.map(w)],o[0]=e,o[1]=a):a=o[1],o[2]!==c?.team||o[3]!==l||o[4]!==e?(r=async()=>{let t=c?.team;if(t?.fieldMetadataDisabled)return[];let a=await Promise.all(e.map(e=>l.getAllFields(e)));return 1===a.length?a[0]:F(a)},o[2]=c?.team,o[3]=l,o[4]=e,o[5]=r):r=o[5],o[6]!==d||o[7]!==e?(i=e.length>0&&e.every(b)&&d,o[6]=d,o[7]=e,o[8]=i):i=o[8],o[9]!==t||o[10]!==a||o[11]!==r||o[12]!==i?(s={queryKey:a,queryFn:r,enabled:i,...t},o[9]=t,o[10]=a,o[11]=r,o[12]=i,o[13]=s):s=o[13],(0,u.I)(s)}function b(e){return!!e.databaseName&&!!e.tableName&&!!e.connectionId}function w(e){return{...e}}function C(e,t){let a,r=(0,n.c)(2);return r[0]!==e?(a=e?[e]:[],r[0]=e,r[1]=a):a=r[1],R(a,t)}function I(e,t){let a,r,i,s=(0,n.c)(13),{databaseName:o,tableName:l,connectionId:c}=e,m=N();s[0]!==o||s[1]!==l?(a=["useMetadata.useTableMetadata",{databaseName:o,tableName:l}],s[0]=o,s[1]=l,s[2]=a):a=s[2],s[3]!==c||s[4]!==o||s[5]!==m||s[6]!==l?(r=async()=>await m.getTableMetadata({databaseName:o,tableName:l,connectionId:c}),s[3]=c,s[4]=o,s[5]=m,s[6]=l,s[7]=r):r=s[7];let d=!!o&&!!l&&!!c;return s[8]!==t||s[9]!==a||s[10]!==r||s[11]!==d?(i={queryKey:a,queryFn:r,staleTime:3e5,enabled:d,...t},s[8]=t,s[9]=a,s[10]=r,s[11]=d,s[12]=i):i=s[12],(0,u.I)(i)}function $(e,t){let a,r,i,s=(0,n.c)(12),{chartConfigs:o,keys:l,limit:m,disableRowLimit:d}=e,p=N(),g=(0,A.$r)(o);s[0]!==t?(a=t||{},s[0]=t,s[1]=a):a=s[1];let{enabled:h}=a,{data:f,isLoading:y}=(0,E.oE)();s[2]!==g||s[3]!==d||s[4]!==l||s[5]!==m||s[6]!==p||s[7]!==f?(r=async e=>{let{signal:t}=e;return(await Promise.all(g.map(e=>{let a=e.source?f?.find(t=>t.id===e.source):void 0;return p.getKeyValuesWithMVs({chartConfig:e,keys:l.slice(0,20),limit:m,disableRowLimit:d,source:a,signal:t})}))).flatMap(x)},s[2]=g,s[3]=d,s[4]=l,s[5]=m,s[6]=p,s[7]=f,s[8]=r):r=s[8];let T=(0,u.I)({queryKey:["useMetadata.useGetKeyValues",...g.map(v),...l,d],queryFn:r,staleTime:3e5,placeholderData:c.rX,...t,enabled:!!(void 0===h||h)&&!!l.length&&!y}),S=T.isLoading||y;return s[9]!==T||s[10]!==S?(i={...T,isLoading:S},s[9]=T,s[10]=S,s[11]=i):i=s[11],i}function x(e){return e}function v(e){return{...e}}function O(e,t){let a,r,i,s,o=(0,n.c)(16),{chartConfig:l,key:m,limit:d}=e,p=N();o[0]!==l.source?(a={id:l.source},o[0]=l.source,o[1]=a):a=o[1];let{data:g,isLoading:h}=(0,E.Fo)(a);o[2]!==l||o[3]!==m?(r=["useMetadata.useGetValuesDistribution",l,m],o[2]=l,o[3]=m,o[4]=r):r=o[4],o[5]!==l||o[6]!==m||o[7]!==d||o[8]!==p||o[9]!==g?(i=async()=>await p.getValuesDistribution({chartConfig:l,key:m,limit:d,source:g}),o[5]=l,o[6]=m,o[7]=d,o[8]=p,o[9]=g,o[10]=i):i=o[10];let f=!!m&&!h;return o[11]!==t||o[12]!==r||o[13]!==i||o[14]!==f?(s={queryKey:r,queryFn:i,staleTime:1/0,enabled:f,placeholderData:c.rX,retry:!1,...t},o[11]=t,o[12]=r,o[13]=i,o[14]=f,o[15]=s):s=o[15],(0,u.I)(s)}function L(e,t){let a,r,i=(0,n.c)(7),{chartConfig:s,keys:o,limit:l,disableRowLimit:u}=e;return i[0]!==s?(a=s?[s]:[],i[0]=s,i[1]=a):a=i[1],i[2]!==u||i[3]!==o||i[4]!==l||i[5]!==a?(r={chartConfigs:a,keys:o,limit:l,disableRowLimit:u},i[2]=u,i[3]=o,i[4]=l,i[5]=a,i[6]=r):r=i[6],$(r,t)}function F(e){let t=[],a=new Set;for(let n of e)for(let e of n){let n=s().sha1(e);a.has(n)||(a.add(n),t.push(e))}return t}},81973:(e,t,a)=>{a.d(t,{AF:()=>b,Al:()=>K,Dp:()=>H,Fo:()=>O,N8:()=>I,YI:()=>U,Ys:()=>V,fS:()=>j,kJ:()=>N,kg:()=>W,nd:()=>D,oE:()=>x,pM:()=>w,sr:()=>F,xg:()=>C});var n=a(75155),r=a(29594),i=a.n(r),s=a(79339),o=a.n(s),l=a(91985),u=a.n(l),c=a(35467),m=a(76089),d=a(82641),p=a(12482),g=a(93251),h=a(16932),f=a(6876),y=a(98142),E=a(92917),A=a(93108);let N={resourceAttributesExpression:"ResourceAttributes",eventAttributesExpression:"LogAttributes",timestampValueExpression:"TimestampTime",implicitColumnExpression:"Body"},T={...N,timestampValueExpression:"Timestamp"},S="hdx-local-source";function _(e){u().transact(S,e,[])}function R(){if((0,A.xZ)().length>0&&u().has(S))return u().get(S,[])??[];try{let e=(0,E.Ol)(y.m6??"");if(null!=e)return e}catch(e){console.error("Error fetching default sources",e)}return[]}function b(e){return(0,m.AB)(e)[0]}function w(e){return e.spanNameExpression}function C(e){return e.displayedTimestampValueExpression??b(e.timestampValueExpression)}function I(e){let t=e.kind===d.GL.Trace?e.spanNameExpression??void 0:e.bodyExpression??e.implicitColumnExpression,a=(0,m.AB)(t??"");return 1===a.length?t:a[0]}function $(e){return{...e,timestampValueExpression:e.kind===d.GL.Session?e.timestampValueExpression||N.timestampValueExpression:e.timestampValueExpression}}function x(){let e,t=(0,n.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={queryKey:["sources"],queryFn:v},t[0]=e):e=t[0],(0,p.I)(e)}async function v(){return y.VO?R():(await (0,f.Q5)("sources").json()).map($)}function O(e){let t,a,r,i=(0,n.c)(6),{id:s}=e;i[0]===Symbol.for("react.memo_cache_sentinel")?(t=["sources"],i[0]=t):t=i[0],i[1]!==s?(a=e=>e.filter(e=>e.id===s)[0],i[1]=s,i[2]=a):a=i[2];let o=null!=s;return i[3]!==a||i[4]!==o?(r={queryKey:t,queryFn:L,select:a,enabled:o},i[3]=a,i[4]=o,i[5]=r):r=i[5],(0,p.I)(r)}async function L(){return y.VO?R():(await (0,f.Q5)("sources").json()).map($)}function F(){let e,t=(0,n.c)(2),a=(0,g.jE)();return t[0]!==a?(e={mutationFn:q,onSuccess:()=>{a.invalidateQueries({queryKey:["sources"]})}},t[0]=a,t[1]=e):e=t[1],(0,h.n)(e)}async function q(e){let{source:t}=e;if(!y.VO)return await (0,f.Q5)(`sources/${t.id}`,{method:"PUT",json:t});_(e=>e.map(e=>e.id===t.id?t:e))}function D(){let e,t=(0,n.c)(2),a=(0,g.jE)();return t[0]!==a?(e={mutationFn:M,onSuccess:()=>{a.invalidateQueries({queryKey:["sources"]})}},t[0]=a,t[1]=e):e=t[1],(0,h.n)(e)}async function M(e){let{source:t}=e;if(y.VO){let e=R().find(e=>o()(i()(e,["kind","name","connection"]))===o()(i()(t,["kind","name","connection"])));if(e)return{...t,id:e.id};let a={...t,id:`l${(0,m.s5)(Math.random().toString())}`};return _(e=>[...e,a]),a}return(0,f.Q5)("sources",{method:"POST",json:t}).json()}function U(){let e,t=(0,n.c)(2),a=(0,g.jE)();return t[0]!==a?(e={mutationFn:k,onSuccess:()=>{a.invalidateQueries({queryKey:["sources"]})}},t[0]=a,t[1]=e):e=t[1],(0,h.n)(e)}async function k(e){let{id:t}=e;return y.VO?void _(e=>e.filter(e=>e.id!==t)):(0,f.Q5)(`sources/${t}`,{method:"DELETE"})}function P(e,t){let a=new Map(e.map(e=>[e.name,e]));return 0===Array.from(t).filter(e=>!a.has(e)).length}async function V({databaseName:e,tableName:t,connectionId:a,metadata:n}){let r=await n.getColumns({databaseName:e,tableName:t,connectionId:a}),i=(await n.getTableMetadata({databaseName:e,tableName:t,connectionId:a})).primary_key,s=new Set((0,c.bZ)(i)),o=P(r,["Timestamp","Body","SeverityText","TraceId","SpanId","ServiceName","LogAttributes","ResourceAttributes"]),l=P(r,["Timestamp","SpanName","Duration","SpanKind","TraceId","SpanId","ParentSpanId","ServiceName","SpanAttributes","ResourceAttributes","StatusCode","StatusMessage"]),u=r.some(e=>"Events.Timestamp"===e.name),m=(0,c.P1)(r,[c.A2.Date]),d=m?.find(e=>s.has(e.name));return{...null!=d?{timestampValueExpression:d.name}:{},...o?{defaultTableSelectExpression:"Timestamp, ServiceName as service, SeverityText as level, Body",serviceNameExpression:"ServiceName",bodyExpression:"Body",displayedTimestampValueExpression:"Timestamp",eventAttributesExpression:"LogAttributes",implicitColumnExpression:"Body",resourceAttributesExpression:"ResourceAttributes",spanIdExpression:"SpanId",traceIdExpression:"TraceId",severityTextExpression:"SeverityText"}:{},...l?{displayedTimestampValueExpression:"Timestamp",implicitColumnExpression:"SpanName",defaultTableSelectExpression:"Timestamp, ServiceName as service, StatusCode as level, round(Duration / 1e6) as duration, SpanName",eventAttributesExpression:"SpanAttributes",serviceNameExpression:"ServiceName",resourceAttributesExpression:"ResourceAttributes",durationExpression:"Duration",durationPrecision:9,parentSpanIdExpression:"ParentSpanId",spanIdExpression:"SpanId",spanKindExpression:"SpanKind",spanNameExpression:"SpanName",traceIdExpression:"TraceId",statusCodeExpression:"StatusCode",statusMessageExpression:"StatusMessage",...u?{spanEventsValueExpression:"Events"}:{}}:{}}}function H(e){return`(${e.durationExpression})/1e${(e.durationPrecision??9)-3}`}function W(e){return`(${e.durationExpression})/1e${e.durationPrecision??9}`}let B={[d.SX.Gauge]:["TimeUnix","ServiceName","MetricName","Value","Attributes","ResourceAttributes"],[d.SX.Histogram]:["TimeUnix","ServiceName","MetricName","Attributes","ResourceAttributes","Count","Sum","BucketCounts","ExplicitBounds"],[d.SX.Sum]:["TimeUnix","ServiceName","MetricName","Value","Attributes","ResourceAttributes"],[d.SX.Summary]:["Attributes","TimeUnix","Count","Sum","ValueAtQuantiles.Quantile","ValueAtQuantiles.Value","Flags","ServiceName","MetricName","ResourceAttributes"],[d.SX.ExponentialHistogram]:["Attributes","TimeUnix","Count","Sum","Scale","ZeroCount","PositiveOffset","PositiveBucketCounts","NegativeOffset","NegativeBucketCounts","Flags","ServiceName","MetricName","ResourceAttributes"]};async function j({databaseName:e,tableName:t,connectionId:a,metricType:n,metadata:r}){return!!t&&P(await r.getColumns({databaseName:e,tableName:t,connectionId:a}),B[n])}async function K({databaseName:e,tableName:t,connectionId:a,metadata:n}){if(!t)return!1;let r=await n.getColumns({databaseName:e,tableName:t,connectionId:a});return P(r,Object.values(N))||P(r,Object.values(T))}},82641:(e,t,a)=>{var n=a(17769);n.g,n.i,n.A,t.lZ=n.v,n.C,t.w5=n.u,t.Or=n.t,t.qQ=n.s,n.$,n.aa,n.p,t.fB=n.B,n.J,n.U,n.I,n.O,n.N,n.R,t.mJ=n.T,n.S,n.k,t.t2=n.b,n.E,n.h,n.o,n.Y,n.c,t.SX=n.a,n.G,t.K5=n.P,n.Q,n.j,n.d,n.K,n.F,n.f,n.e,n.l,n.q,n.n,n.m,t.GL=n.X,n.Z,n.D,n.V,n.W,n.L,n.M,t.x=n.r,n.H,t.z1=n._,t.Oq=n.x,n.w,n.y,n.z},88459:(e,t,a)=>{function n(e){let t,a=e[0],n=1;for(;na.call(t,...e)),t=void 0)}return a}function r(e){let t=n(e);return null==t||t}var i=a(31832);a(5062),a(75131),a(17769);var s=a(5216),o=(e,t)=>{t||(t={});let a=new URL(e instanceof URL?e:e instanceof Request?e.url:e),i=n([t,"access",e=>e.headers,"optionalAccess",e=>e.Authorization]),[s,o]=window.atob(i.substring(6)).split(":");return r([t,"access",e=>e.headers,"optionalAccess",e=>delete e.Authorization]),r([t,"access",e=>e.headers,"optionalAccess",e=>delete e.authorization]),s&&a.searchParams.set("user",s),o&&a.searchParams.set("password",o),t.credentials="omit",fetch(`${a.toString()}`,t)},l=(e,t)=>(t||(t={}),r([t,"access",e=>e.headers,"optionalAccess",e=>delete e.Authorization]),r([t,"access",e=>e.headers,"optionalAccess",e=>delete e.authorization]),fetch(e,t)),u=t.Kc=async({host:e,username:t,password:a})=>{try{return(await new c({host:e,username:t,password:a}).query({query:"SELECT 1",format:"TabSeparatedRaw"})).text().then(e=>"1"===e.trim())}catch(e){return console.warn("Failed to test local connection",e),!1}},c=t.aP=class extends i.E{constructor(e){super(e)}buildClient(){var e,t,a,n;let r=this.host,i,u=null!=this.username&&null!=this.password,c={};u?(i=o,c.add_http_cors_header=1):(r=`${window.origin}${this.host}`,i=l);let m=new URL(r);return s.createClient.call(void 0,{url:m.origin,pathname:m.pathname,clickhouse_settings:c,username:(e=this.username,t=()=>"",null!=e?e:t()),password:(a=this.password,n=()=>"",null!=a?a:n()),keep_alive:{enabled:!1},fetch:i,request_timeout:this.requestTimeout,application:this.application})}async __query({query:e,format:t="JSON",query_params:a={},abort_signal:n,clickhouse_settings:r,connectionId:i,queryId:s,shouldSkipApplySettings:o}){let l;null==this.client&&(this.client=this.buildClient()),this.logDebugQuery(e,a),o||(l=await this.processClickhouseSettings({connectionId:i,externalClickhouseSettings:r}));let u={...i&&"local"!==i?{"x-hyperdx-connection-id":i}:{}};return this.getClient().query({query:e,query_params:a,format:t,abort_signal:n,http_headers:u,clickhouse_settings:l,query_id:s})}};t.aP=c,t.Kc=u},91021:(e,t,a)=>{a.d(t,{Kc:()=>b,HD:()=>_,zu:()=>R});var n=a(75155),r=a(35467),i=a(67270),s=a(76089),o=a(73854),l=a(93251),u=a(12482),c=a(43152),m=a(49672),d=a(98142),p=a(79339),g=a.n(p);let h="hyperdx",f=e=>{let t=g().sha1(e),a=(0,i.v4)(e.aggCondition);switch(e.aggFn){case"min":case"max":case"sum":case"avg":return{fieldName:t,fn:`${e.aggFn}${a?"If":""}`,args:["Nullable(Float64)",...a?["UInt8"]:[]]};case"count":return{fieldName:t,fn:`${e.aggFn}${a?"If":""}`,args:a?["UInt8"]:[]};default:throw Error(`Unsupported aggregation function: ${e.aggFn}`)}},y=async(e,t,a,n)=>{let s,o={...e,...Array.isArray(e.select)&&{select:e.select.map(e=>{let{fieldName:t,fn:a}=f(e);return{...e,aggFn:`${a}State`,alias:t}})},granularity:n??e.granularity,dateRange:void 0,orderBy:void 0,limit:void 0},l=await (0,i.PV)(o,t,a),u=g().sha1(l),c=`${e.from.tableName}_mv_${u}`,m={...e,...Array.isArray(e.select)&&{select:e.select.map(e=>{let{fieldName:t,fn:a}=f(e);return{aggFn:`${a}Merge`,valueExpression:t,alias:`${e.aggFn}(${e.valueExpression})`}})},timestampValueExpression:i.n_,from:{databaseName:h,tableName:c}};return{mtViewName:c,dataTableDDL:(0,r.l6)(((e,t)=>{if(!Array.isArray(t.select))throw Error("Only array select is supported");if((0,i.x1)(t))throw Error("Group by is not supported");return(0,r.kg)`CREATE TABLE IF NOT EXISTS ${h}.${{Identifier:e}} + ( + ${{Identifier:i.n_}} DateTime, + ${t.select.map(e=>{let{args:t,fieldName:a,fn:n}=f(e),r=[n,...t].join(",");return`${a} AggregateFunction(${r})`}).join(",\n")} + ) + ENGINE = AggregatingMergeTree + ORDER BY ${{Identifier:i.n_}} + SETTINGS index_granularity = 8192 + `})(`${c}_data`,e)),mtViewDDL:(0,r.l6)((s=`${c}_data`,(0,r.kg)`CREATE MATERIALIZED VIEW IF NOT EXISTS ${h}.${{Identifier:c}} TO ${h}.${{Identifier:s}} AS + ${l} + `)),renderMTViewConfig:async()=>{try{return await (0,i.PV)(m,t,a)}catch(e){return console.error("Failed to render MTView config",e),null}}}};var E=a(78550),A=a(81973),N=a(69519),T=a(57389);async function*S({config:e,clickhouseClient:t,signal:a,enableQueryChunking:n=!1,enableParallelQueries:r=!1,metadata:o,querySettings:l}){let u=n&&!(!(0,i.lE)(e)||!e.dateRange||(0,i.bv)(e))&&1?((e,t)=>{let[a,n]=e.dateRange,r=(0,N.so)(a,n,void 0),i="auto"===e.granularity?(0,s.tA)(e.dateRange):e.granularity,o=[];for(let[t,a]of r.entries()){let s=t===r.length-1?a.startTime:(0,c.W6)(a.startTime,i),l=0===t?n:(0,c.W6)(a.endTime,i);(!o.length||s{let i={...e,...n??{}};return{index:r,queryResult:await t.queryChartConfig({config:i,metadata:o,opts:{abort_signal:a},querySettings:l})}}),r=[...n],i=Array(u.length),s=0;for(let e=0;e0&&void 0!==i[0];){let e=i.shift();yield{chunk:e,isComplete:0===i.length},s+=1}}return}for(let n=0;n{let o=s?.optimizedConfig??e,l=r.getQueryCache().find({queryKey:a.queryKey,exact:!0}),u=!!l&&void 0!==l.state.data,m=S({config:o,clickhouseClient:n,signal:a.signal,enableQueryChunking:t?.enableQueryChunking,enableParallelQueries:t?.enableParallelQueries,metadata:i,querySettings:c?.querySettings}),d={data:[],meta:[],rows:0,isComplete:!1};for await(let e of m){if(a.signal.aborted)break;d=function(e,{chunk:t,isComplete:a}){return{data:[...t.data||[],...e?.data||[]],meta:t.meta,rows:(e?.rows||0)+(t.rows||0),isComplete:a}}(d,e),u||r.setQueryData(a.queryKey,d)}return u&&!a.signal.aborted&&r.setQueryData(a.queryKey,d),r.getQueryData(a.queryKey)},retry:1,refetchOnWindowFocus:!1,...t,enabled:a&&!o&&!d});return p.isError&&t?.onError&&t.onError(p.error),{...p,isLoading:p.isLoading||o}}function R(e,t){let a,s,l,c,m,d,p,g=(0,n.c)(21);g[0]!==t?(a=t??{},g[0]=t,g[1]=a):a=g[1];let{enabled:h}=a,f=void 0===h||h,y=(0,E.Ge)(),N=!!f;g[2]!==N?(s={enabled:N,placeholderData:void 0},g[2]=N,g[3]=s):s=g[3];let{data:S,isLoading:_}=(0,T.d)(e,s);g[4]!==e.source?(l={id:e.source},g[4]=e.source,g[5]=l):l=g[5];let{data:R,isLoading:b}=(0,A.Fo)(l);g[6]!==e?(c=["renderedSql",e],g[6]=e,g[7]=c):c=g[7],g[8]!==e||g[9]!==y||g[10]!==S?.optimizedConfig||g[11]!==R?.querySettings?(m=async()=>{let t=S?.optimizedConfig??e,a=await (0,i.PV)(t,y,R?.querySettings);return(0,o.GP)((0,r.l6)(a))},g[8]=e,g[9]=y,g[10]=S?.optimizedConfig,g[11]=R?.querySettings,g[12]=m):m=g[12];let w=f&&!_&&!b;g[13]!==t||g[14]!==c||g[15]!==m||g[16]!==w?(d={queryKey:c,queryFn:m,...t,enabled:w},g[13]=t,g[14]=c,g[15]=m,g[16]=w,g[17]=d):d=g[17];let C=(0,u.I)(d),I=C.isLoading||_;return g[18]!==C||g[19]!==I?(p={...C,isLoading:I},g[18]=C,g[19]=I,g[20]=p):p=g[20],p}function b(e,t){let a,s,o,l,c=(0,n.c)(20);c[0]!==e?(a=e?.dateRange&&(0,i.lE)(e)?e.dateRange[1].getTime()-e.dateRange[0].getTime():void 0,c[0]=e,c[1]=a):a=c[1];let m=a,d=(0,E.Ge)(),p=e?.select,g=e?.from,h=e?.connection,f=e?.with,y=e?.groupBy,A=e?.selectGroupBy,N=e?.granularity,T=e?.seriesReturnType;c[2]!==m||c[3]!==p||c[4]!==g||c[5]!==h||c[6]!==f||c[7]!==y||c[8]!==A||c[9]!==N||c[10]!==T?(s=["aliasMap",p,g,h,f,y,A,N,T,m],c[2]=m,c[3]=p,c[4]=g,c[5]=h,c[6]=f,c[7]=y,c[8]=A,c[9]=N,c[10]=T,c[11]=s):s=c[11],c[12]!==e||c[13]!==d?(o=async()=>{if(null==e)return{};let t=await (0,i.PV)(e,d,void 0);return(0,r.D7)(t)},c[12]=e,c[13]=d,c[14]=o):o=c[14];let S=null!=e;return c[15]!==t||c[16]!==o||c[17]!==S||c[18]!==s?(l={queryKey:s,queryFn:o,enabled:S,...t},c[15]=t,c[16]=o,c[17]=S,c[18]=s,c[19]=l):l=c[19],(0,u.I)(l)}},93108:(e,t,a)=>{a.d(t,{Gs:()=>p,Ir:()=>E,PQ:()=>S,ZY:()=>f,Zm:()=>N,xZ:()=>h});var n=a(75155),r=a(91985),i=a.n(r),s=a(88459),o=a(12482),l=a(93251),u=a(16932),c=a(6876),m=a(98142),d=a(92917);let p="connections";function g(e){let t=new StorageEvent("storage",{key:p,oldValue:i().session.get(p),newValue:JSON.stringify(e),storageArea:window.sessionStorage,url:window.location.href});i().session.set(p,e),window.dispatchEvent(t)}function h(){if(i().session.has(p))return i().session.get(p)??[];try{let e=(0,d.Ol)(m.$E??"");if(null!=e)return e}catch(e){console.error("Error fetching default connections",e)}return[]}function f(){let e,t=(0,n.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={queryKey:["connections"],queryFn:y},t[0]=e):e=t[0],(0,o.I)(e)}function y(){return m.VO?h():(0,c.Q5)("connections").json()}function E(){let e,t=(0,n.c)(2),a=(0,l.jE)();return t[0]!==a?(e={mutationFn:A,onSuccess:()=>{a.invalidateQueries({queryKey:["connections"]}),a.invalidateQueries({queryKey:["sources"]})}},t[0]=a,t[1]=e):e=t[1],(0,u.n)(e)}async function A(e){let{connection:t}=e;if(m.VO){if(!await (0,s.Kc)({host:t.host,username:t.username,password:t.password??""}))throw Error("Could not connect to Clickhouse with connection details");let e={id:"local"};return g([{...t,...e}]),e}return await (0,c.Q5)("connections",{method:"POST",json:t}).json()}function N(){let e,t=(0,n.c)(2),a=(0,l.jE)();return t[0]!==a?(e={mutationFn:T,onSuccess:()=>{a.invalidateQueries({queryKey:["connections"]})}},t[0]=a,t[1]=e):e=t[1],(0,u.n)(e)}async function T(e){let{connection:t,id:a}=e;m.VO?g([{...t,id:"local"}]):await (0,c.Q5)(`connections/${a}`,{method:"PUT",json:t})}function S(){let e,t=(0,n.c)(2),a=(0,l.jE)();return t[0]!==a?(e={mutationFn:_,onSuccess:()=>{a.invalidateQueries({queryKey:["connections"]})}},t[0]=a,t[1]=e):e=t[1],(0,u.n)(e)}async function _(e){let{id:t}=e;m.VO?g(h().filter(e=>e.id!==t)):await (0,c.Q5)(`connections/${t}`,{method:"DELETE"})}}}]); \ No newline at end of file diff --git a/out/_next/static/chunks/1274-aef343c4656bbdfc.js b/out/_next/static/chunks/1274-aef343c4656bbdfc.js deleted file mode 100644 index dbc946a..0000000 --- a/out/_next/static/chunks/1274-aef343c4656bbdfc.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1274],{19336:(e,t,n)=>{n.d(t,{A:()=>r});var r=(0,n(41495).A)("outline","markdown","IconMarkdown",[["path",{d:"M3 5m0 2a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2z",key:"svg-0"}],["path",{d:"M7 15v-6l2 2l2 -2v6",key:"svg-1"}],["path",{d:"M14 13l2 2l2 -2m-2 2v-6",key:"svg-2"}]])},20444:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){let n=null;if(!e||"string"!=typeof e)return n;let r=(0,i.default)(e),l="function"==typeof t;return r.forEach(e=>{if("declaration"!==e.type)return;let{property:r,value:i}=e;l?t(r,i,e):i&&((n=n||{})[r]=i)}),n};let i=r(n(47492))},27420:function(e,t,n){var r=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n(20444)),i=n(72756);function l(e,t){var n={};return e&&"string"==typeof e&&(0,r.default)(e,function(e,r){e&&r&&(n[(0,i.camelCase)(e,t)]=r)}),n}l.default=l,e.exports=l},28392:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,l=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},o=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),l=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!l)return!1;for(r in e);return void 0===r||t.call(e,r)},a=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},u=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;else if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,s,c,f=arguments[0],p=1,d=arguments.length,h=!1;for("boolean"==typeof f&&(h=f,f=arguments[1]||{},p=2),(null==f||"object"!=typeof f&&"function"!=typeof f)&&(f={});p{n.d(t,{A:()=>r});var r=(0,n(41495).A)("outline","chevron-left","IconChevronLeft",[["path",{d:"M15 6l-6 6l6 6",key:"svg-0"}]])},42604:(e,t,n)=>{n.d(t,{oz:()=>nD});var r={};n.r(r),n.d(r,{boolean:()=>g,booleanish:()=>y,commaOrSpaceSeparated:()=>w,commaSeparated:()=>b,number:()=>x,overloadedBoolean:()=>v,spaceSeparated:()=>k});var i={};n.r(i),n.d(i,{attentionMarkers:()=>tA,contentInitial:()=>tb,disable:()=>tT,document:()=>tk,flow:()=>tS,flowInitial:()=>tw,insideSpan:()=>tP,string:()=>tC,text:()=>tE});let l=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,o=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,a={};function u(e,t){return((t||a).jsx?o:l).test(e)}let s=/[ \t\n\f\r]/g;function c(e){return""===e.replace(s,"")}class f{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function p(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new f(n,r,t)}function d(e){return e.toLowerCase()}f.prototype.normal={},f.prototype.property={},f.prototype.space=void 0;class h{constructor(e,t){this.attribute=t,this.property=e}}h.prototype.attribute="",h.prototype.booleanish=!1,h.prototype.boolean=!1,h.prototype.commaOrSpaceSeparated=!1,h.prototype.commaSeparated=!1,h.prototype.defined=!1,h.prototype.mustUseProperty=!1,h.prototype.number=!1,h.prototype.overloadedBoolean=!1,h.prototype.property="",h.prototype.spaceSeparated=!1,h.prototype.space=void 0;let m=0,g=S(),y=S(),v=S(),x=S(),k=S(),b=S(),w=S();function S(){return 2**++m}let C=Object.keys(r);class E extends h{constructor(e,t,n,i){let l=-1;if(super(e,t),function(e,t,n){n&&(e[t]=n)}(this,"space",i),"number"==typeof n)for(;++l"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function T(e,t){return t in e?e[t]:t}function I(e,t){return T(e,t.toLowerCase())}let D=P({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:b,acceptCharset:k,accessKey:k,action:null,allow:null,allowFullScreen:g,allowPaymentRequest:g,allowUserMedia:g,alt:null,as:null,async:g,autoCapitalize:null,autoComplete:k,autoFocus:g,autoPlay:g,blocking:k,capture:null,charSet:null,checked:g,cite:null,className:k,cols:x,colSpan:null,content:null,contentEditable:y,controls:g,controlsList:k,coords:x|b,crossOrigin:null,data:null,dateTime:null,decoding:null,default:g,defer:g,dir:null,dirName:null,disabled:g,download:v,draggable:y,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:g,formTarget:null,headers:k,height:x,hidden:v,high:x,href:null,hrefLang:null,htmlFor:k,httpEquiv:k,id:null,imageSizes:null,imageSrcSet:null,inert:g,inputMode:null,integrity:null,is:null,isMap:g,itemId:null,itemProp:k,itemRef:k,itemScope:g,itemType:k,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:g,low:x,manifest:null,max:null,maxLength:x,media:null,method:null,min:null,minLength:x,multiple:g,muted:g,name:null,nonce:null,noModule:g,noValidate:g,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:g,optimum:x,pattern:null,ping:k,placeholder:null,playsInline:g,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:g,referrerPolicy:null,rel:k,required:g,reversed:g,rows:x,rowSpan:x,sandbox:k,scope:null,scoped:g,seamless:g,selected:g,shadowRootClonable:g,shadowRootDelegatesFocus:g,shadowRootMode:null,shape:null,size:x,sizes:null,slot:null,span:x,spellCheck:y,src:null,srcDoc:null,srcLang:null,srcSet:null,start:x,step:null,style:null,tabIndex:x,target:null,title:null,translate:null,type:null,typeMustMatch:g,useMap:null,value:y,width:x,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:k,axis:null,background:null,bgColor:null,border:x,borderColor:null,bottomMargin:x,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:g,declare:g,event:null,face:null,frame:null,frameBorder:null,hSpace:x,leftMargin:x,link:null,longDesc:null,lowSrc:null,marginHeight:x,marginWidth:x,noResize:g,noHref:g,noShade:g,noWrap:g,object:null,profile:null,prompt:null,rev:null,rightMargin:x,rules:null,scheme:null,scrolling:y,standby:null,summary:null,text:null,topMargin:x,valueType:null,version:null,vAlign:null,vLink:null,vSpace:x,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:g,disableRemotePlayback:g,prefix:null,property:null,results:x,security:null,unselectable:null},space:"html",transform:I}),L=P({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:w,accentHeight:x,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:x,amplitude:x,arabicForm:null,ascent:x,attributeName:null,attributeType:null,azimuth:x,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:x,by:null,calcMode:null,capHeight:x,className:k,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:x,diffuseConstant:x,direction:null,display:null,dur:null,divisor:x,dominantBaseline:null,download:g,dx:null,dy:null,edgeMode:null,editable:null,elevation:x,enableBackground:null,end:null,event:null,exponent:x,externalResourcesRequired:null,fill:null,fillOpacity:x,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:b,g2:b,glyphName:b,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:x,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:x,horizOriginX:x,horizOriginY:x,id:null,ideographic:x,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:x,k:x,k1:x,k2:x,k3:x,k4:x,kernelMatrix:w,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:x,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:x,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:x,overlineThickness:x,paintOrder:null,panose1:null,path:null,pathLength:x,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:k,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:x,pointsAtY:x,pointsAtZ:x,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:w,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:w,rev:w,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:w,requiredFeatures:w,requiredFonts:w,requiredFormats:w,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:x,specularExponent:x,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:x,strikethroughThickness:x,string:null,stroke:null,strokeDashArray:w,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:x,strokeOpacity:x,strokeWidth:null,style:null,surfaceScale:x,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:w,tabIndex:x,tableValues:null,target:null,targetX:x,targetY:x,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:w,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:x,underlineThickness:x,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:x,values:null,vAlphabetic:x,vMathematical:x,vectorEffect:null,vHanging:x,vIdeographic:x,version:null,vertAdvY:x,vertOriginX:x,vertOriginY:x,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:x,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:T}),M=P({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),z=P({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:I}),O=P({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),F=p([A,D,M,z,O],"html"),R=p([A,L,M,z,O],"svg"),_=/[A-Z]/g,N=/-[a-z]/g,j=/^data[-\w.:]+$/i;function B(e){return"-"+e.toLowerCase()}function U(e){return e.charAt(1).toUpperCase()}let H={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var V=n(27420);let q=K("end"),W=K("start");function K(e){return function(t){let n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function Q(e){return e&&"object"==typeof e?"position"in e||"type"in e?X(e.position):"start"in e||"end"in e?X(e):"line"in e||"column"in e?$(e):"":""}function $(e){return J(e&&e.line)+":"+J(e&&e.column)}function X(e){return $(e&&e.start)+"-"+$(e&&e.end)}function J(e){return e&&"number"==typeof e?e:1}class Y extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",i={},l=!1;if(t&&(i="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!i.cause&&e&&(l=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&"string"==typeof n){const e=n.indexOf(":");-1===e?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){const e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}const o=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=o?o.line:void 0,this.name=Q(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=l&&i.cause&&"string"==typeof i.cause.stack?i.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Y.prototype.file="",Y.prototype.name="",Y.prototype.reason="",Y.prototype.message="",Y.prototype.stack="",Y.prototype.column=void 0,Y.prototype.line=void 0,Y.prototype.ancestors=void 0,Y.prototype.cause=void 0,Y.prototype.fatal=void 0,Y.prototype.place=void 0,Y.prototype.ruleId=void 0,Y.prototype.source=void 0;let Z={}.hasOwnProperty,G=new Map,ee=/[A-Z]/g,et=new Set(["table","tbody","thead","tfoot","tr"]),en=new Set(["td","th"]),er="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function ei(e,t,n){var r,i,l,o,a,u,s,f,p;let m,g,y,v,x,k,b,w,S,C,P;return"element"===t.type?(r=e,i=t,l=n,g=m=r.schema,"svg"===i.tagName.toLowerCase()&&"html"===m.space&&(r.schema=R),r.ancestors.push(i),y=eu(r,i.tagName,!1),v=function(e,t){let n,r,i={};for(r in t.properties)if("children"!==r&&Z.call(t.properties,r)){let l=function(e,t,n){let r=function(e,t){let n=d(t),r=t,i=h;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&j.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(N,U);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!N.test(e)){let n=e.replace(_,B);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=E}return new i(r,t)}(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){var i;let t;if(Array.isArray(n)&&(n=r.commaSeparated?(t={},(""===(i=n)[i.length-1]?[...i,""]:i).join((t.padRight?" ":"")+","+(!1===t.padLeft?"":" ")).trim()):n.join(" ").trim()),"style"===r.property){let t="object"==typeof n?n:function(e,t){try{return V(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};let t=new Y("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw t.file=e.filePath||void 0,t.url=er+"#cannot-parse-style-attribute",t}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){let t,n={};for(t in e)Z.call(e,t)&&(n[function(e){let t=e.replace(ee,ec);return"ms-"===t.slice(0,3)&&(t="-"+t),t}(t)]=e[t]);return n}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?H[r.property]||r.property:r.attribute,n]}}(e,r,t.properties[r]);if(l){let[r,o]=l;e.tableCellAlignToStyle&&"align"===r&&"string"==typeof o&&en.has(t.tagName)?n=o:i[r]=o}}return n&&((i.style||(i.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=n),i}(r,i),x=ea(r,i),et.has(i.tagName)&&(x=x.filter(function(e){return"string"!=typeof e||!("object"==typeof e?"text"===e.type&&c(e.value):c(e))})),el(r,v,y,i),eo(v,x),r.ancestors.pop(),r.schema=m,r.create(i,y,v,l)):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}es(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?(o=e,a=t,u=n,b=k=o.schema,"svg"===a.name&&"html"===k.space&&(o.schema=R),o.ancestors.push(a),w=null===a.name?o.Fragment:eu(o,a.name,!0),S=function(e,t){let n={};for(let r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];t.type;let i=t.expression;i.type;let l=i.properties[0];l.type,Object.assign(n,e.evaluater.evaluateExpression(l.argument))}else es(e,t.position);else{let i,l=r.name;if(r.value&&"object"==typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];t.type,i=e.evaluater.evaluateExpression(t.expression)}else es(e,t.position);else i=null===r.value||r.value;n[l]=i}return n}(o,a),C=ea(o,a),el(o,S,w,a),eo(S,C),o.ancestors.pop(),o.schema=k,o.create(a,w,S,u)):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);es(e,t.position)}(e,t):"root"===t.type?(s=e,f=t,p=n,eo(P={},ea(s,f)),s.create(f,s.Fragment,P,p)):"text"===t.type?t.value:void 0}function el(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function eo(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function ea(e,t){let n=[],r=-1,i=e.passKeys?new Map:G;for(;++rl?0:l+t:t>l?l:t,n=n>0?n:0,r.length<1e4)(i=Array.from(r)).unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);o0?(eg(e,e.length,0,t),e):t}class ev{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return ethis.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){this.setCursor(Math.trunc(e));let r=this.right.splice(this.right.length-(t||0),1/0);return n&&ex(this.left,n),r.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),ex(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),ex(this.right,e.reverse())}setCursor(e){if(e!==this.left.length&&(!(e>this.left.length)||0!==this.right.length)&&(!(e<0)||0!==this.left.length))if(e-1&&e.test(String.fromCharCode(t))}}function eF(e,t,n,r){let i=r?r-1:1/0,l=0;return function(r){return eL(r)?(e.enter(n),function r(o){return eL(o)&&l++r))return;let a=i.events.length,u=a;for(;u--;)if("exit"===i.events[u][0]&&"chunkFlow"===i.events[u][1].type){if(e){n=i.events[u][1].end;break}e=!0}for(g(o),l=a;lt;){let t=l[n];i.containerState=t[1],t[0].exit.call(i,e)}l.length=t}function y(){t.write([null]),n=void 0,t=void 0,i.containerState._closeFlow=void 0}}},eN={tokenize:function(e,t,n){return eF(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},ej={partial:!0,tokenize:function(e,t,n){return function(t){return eL(t)?eF(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||eI(e)?t(e):n(e)}}},eB={resolve:function(e){return ek(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?i(t):eI(t)?e.check(eU,l,i)(t):(e.consume(t),r)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function l(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},eU={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),eF(e,i,"linePrefix")};function i(i){if(null===i||eI(i))return n(i);let l=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&l&&"linePrefix"===l[1].type&&l[2].sliceSerialize(l[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}},eH={tokenize:function(e){let t=this,n=e.attempt(ej,function(r){return null===r?void e.consume(r):(e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n)},e.attempt(this.parser.constructs.flowInitial,r,eF(e,e.attempt(this.parser.constructs.flow,r,e.attempt(eB,r)),"linePrefix")));return n;function r(r){return null===r?void e.consume(r):(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n)}}},eV={resolveAll:eQ()},eq=eK("string"),eW=eK("text");function eK(e){return{resolveAll:eQ("text"===e?e$:void 0),tokenize:function(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,l,o);return l;function l(e){return u(e)?i(e):o(e)}function o(e){return null===e?void t.consume(e):(t.enter("data"),t.consume(e),a)}function a(e){return u(e)?(t.exit("data"),i(e)):(t.consume(e),a)}function u(e){if(null===e)return!0;let t=r[e],i=-1;if(t)for(;++i=3&&(null===o||eI(o))?(e.exit("thematicBreak"),t(o)):n(o)}(o)}}},eJ={continuation:{tokenize:function(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(ej,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,eF(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!eL(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(eZ,t,i)(n))});function i(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,eF(e,e.attempt(eJ,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){let r=this,i=r.events[r.events.length-1],l=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,o=0;return function(t){let i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:eP(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(eX,n,a)(t):a(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),function t(i){return eP(i)&&++o<10?(e.consume(i),t):(!r.interrupt||o<2)&&(r.containerState.marker?i===r.containerState.marker:41===i||46===i)?(e.exit("listItemValue"),a(i)):n(i)}(t)}return n(t)};function a(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(ej,r.interrupt?n:u,e.attempt(eY,c,s))}function u(e){return r.containerState.initialBlankLine=!0,l++,c(e)}function s(t){return eL(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),c):n(t)}function c(n){return r.containerState.size=l+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},eY={partial:!0,tokenize:function(e,t,n){let r=this;return eF(e,function(e){let i=r.events[r.events.length-1];return!eL(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},eZ={partial:!0,tokenize:function(e,t,n){let r=this;return eF(e,function(e){let i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)}},eG={continuation:{tokenize:function(e,t,n){let r=this;return function(t){return eL(t)?eF(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):i(t)};function i(r){return e.attempt(eG,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){let r=this;return function(t){if(62===t){let n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return n(t)};function i(n){return eL(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}};function e1(e,t,n,r,i,l,o,a,u){let s=u||1/0,c=0;return function(t){return 60===t?(e.enter(r),e.enter(i),e.enter(l),e.consume(t),e.exit(l),f):null===t||32===t||41===t||eE(t)?n(t):(e.enter(r),e.enter(o),e.enter(a),e.enter("chunkString",{contentType:"string"}),h(t))};function f(n){return 62===n?(e.enter(l),e.consume(n),e.exit(l),e.exit(i),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),p(n))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(a),f(t)):null===t||60===t||eI(t)?n(t):(e.consume(t),92===t?d:p)}function d(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function h(i){return!c&&(null===i||41===i||eD(i))?(e.exit("chunkString"),e.exit(a),e.exit(o),e.exit(r),t(i)):c999||null===f||91===f||93===f&&!o||94===f&&!u&&"_hiddenFootnoteSupport"in a.parser.constructs?n(f):93===f?(e.exit(l),e.enter(i),e.consume(f),e.exit(i),e.exit(r),t):eI(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),s):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(t){return null===t||91===t||93===t||eI(t)||u++>999?(e.exit("chunkString"),s(t)):(e.consume(t),o||(o=!eL(t)),92===t?f:c)}function f(t){return 91===t||92===t||93===t?(e.consume(t),u++,c):c(t)}}function e2(e,t,n,r,i,l){let o;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=40===t?41:t,a):n(t)};function a(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(l),u(n))}function u(t){return t===o?(e.exit(l),a(o)):null===t?n(t):eI(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),eF(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),s(t))}function s(t){return t===o||null===t||eI(t)?(e.exit("chunkString"),u(t)):(e.consume(t),92===t?c:s)}function c(t){return t===o||92===t?(e.consume(t),s):s(t)}}function e4(e,t){let n;return function r(i){return eI(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):eL(i)?eF(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}function e3(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}let e6={partial:!0,tokenize:function(e,t,n){return function(t){return eD(t)?e4(e,r)(t):n(t)};function r(t){return e2(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return eL(t)?eF(e,l,"whitespace")(t):l(t)}function l(e){return null===e||eI(e)?t(e):n(e)}}},e5={name:"codeIndented",tokenize:function(e,t,n){let r=this;return function(t){return e.enter("codeIndented"),eF(e,i,"linePrefix",5)(t)};function i(t){let i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?function t(n){return null===n?l(n):eI(n)?e.attempt(e9,t,l)(n):(e.enter("codeFlowValue"),function n(r){return null===r||eI(r)?(e.exit("codeFlowValue"),t(r)):(e.consume(r),n)}(n))}(t):n(t)}function l(n){return e.exit("codeIndented"),t(n)}}},e9={partial:!0,tokenize:function(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):eI(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):eF(e,l,"linePrefix",5)(t)}function l(e){let l=r.events[r.events.length-1];return l&&"linePrefix"===l[1].type&&l[2].sliceSerialize(l[1],!0).length>=4?t(e):eI(e)?i(e):n(e)}}},e7={name:"setextUnderline",resolveTo:function(e,t){let n,r,i,l=e.length;for(;l--;)if("enter"===e[l][0]){if("content"===e[l][1].type){n=l;break}"paragraph"===e[l][1].type&&(r=l)}else"content"===e[l][1].type&&e.splice(l,1),i||"definition"!==e[l][1].type||(i=l);let o={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",o,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end={...e[i][1].end}):e[n][1]=o,e.push(["exit",o,t]),e},tokenize:function(e,t,n){let r,i=this;return function(t){var o;let a,u=i.events.length;for(;u--;)if("lineEnding"!==i.events[u][1].type&&"linePrefix"!==i.events[u][1].type&&"content"!==i.events[u][1].type){a="paragraph"===i.events[u][1].type;break}return!i.parser.lazy[i.now().line]&&(i.interrupt||a)?(e.enter("setextHeadingLine"),r=t,o=t,e.enter("setextHeadingLineSequence"),function t(n){return n===r?(e.consume(n),t):(e.exit("setextHeadingLineSequence"),eL(n)?eF(e,l,"lineSuffix")(n):l(n))}(o)):n(t)};function l(r){return null===r||eI(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}},e8=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],te=["pre","script","style","textarea"],tt={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(ej,t,n)}}},tn={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return eI(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):n(t)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},tr={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},ti={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){let r,i=this,l={partial:!0,tokenize:function(e,t,n){let l=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o};function o(t){return e.enter("codeFencedFence"),eL(t)?eF(e,u,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):u(t)}function u(t){return t===r?(e.enter("codeFencedFenceSequence"),function t(i){return i===r?(l++,e.consume(i),t):l>=a?(e.exit("codeFencedFenceSequence"),eL(i)?eF(e,s,"whitespace")(i):s(i)):n(i)}(t)):n(t)}function s(r){return null===r||eI(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}},o=0,a=0;return function(t){var l;let s;return l=t,o=(s=i.events[i.events.length-1])&&"linePrefix"===s[1].type?s[2].sliceSerialize(s[1],!0).length:0,r=l,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),function t(i){return i===r?(a++,e.consume(i),t):a<3?n(i):(e.exit("codeFencedFenceSequence"),eL(i)?eF(e,u,"whitespace")(i):u(i))}(l)};function u(l){return null===l||eI(l)?(e.exit("codeFencedFence"),i.interrupt?t(l):e.check(tr,c,h)(l)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||eI(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),u(i)):eL(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),eF(e,s,"whitespace")(i)):96===i&&i===r?n(i):(e.consume(i),t)}(l))}function s(t){return null===t||eI(t)?u(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||eI(i)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),u(i)):96===i&&i===r?n(i):(e.consume(i),t)}(t))}function c(t){return e.attempt(l,h,f)(t)}function f(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),p}function p(t){return o>0&&eL(t)?eF(e,d,"linePrefix",o+1)(t):d(t)}function d(t){return null===t||eI(t)?e.check(tr,c,h)(t):(e.enter("codeFlowValue"),function t(n){return null===n||eI(n)?(e.exit("codeFlowValue"),d(n)):(e.consume(n),t)}(t))}function h(n){return e.exit("codeFenced"),t(n)}}},tl=document.createElement("i");function to(e){let t="&"+e+";";tl.innerHTML=t;let n=tl.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}let ta={name:"characterReference",tokenize:function(e,t,n){let r,i,l=this,o=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),a};function a(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),r=31,i=eS,s(t))}function u(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,i=eA,s):(e.enter("characterReferenceValue"),r=7,i=eP,s(t))}function s(a){if(59===a&&o){let r=e.exit("characterReferenceValue");return i!==eS||to(l.sliceSerialize(r))?(e.enter("characterReferenceMarker"),e.consume(a),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(a)}return i(a)&&o++1&&e[c][1].end.offset-e[c][1].start.offset>1?2:1;let f={...e[n][1].end},p={...e[c][1].start};tv(f,-a),tv(p,a),l={type:a>1?"strongSequence":"emphasisSequence",start:f,end:{...e[n][1].end}},o={type:a>1?"strongSequence":"emphasisSequence",start:{...e[c][1].start},end:p},i={type:a>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[c][1].start}},r={type:a>1?"strong":"emphasis",start:{...l.start},end:{...o.end}},e[n][1].end={...l.start},e[c][1].start={...o.end},u=[],e[n][1].end.offset-e[n][1].start.offset&&(u=ey(u,[["enter",e[n][1],t],["exit",e[n][1],t]])),u=ey(u,[["enter",r,t],["enter",l,t],["exit",l,t],["enter",i,t]]),u=ey(u,tc(t.parser.constructs.insideSpan.null,e.slice(n+1,c),t)),u=ey(u,[["exit",i,t],["enter",o,t],["exit",o,t],["exit",r,t]]),e[c][1].end.offset-e[c][1].start.offset?(s=2,u=ey(u,[["enter",e[c][1],t],["exit",e[c][1],t]])):s=0,eg(e,n-1,c-n+3,u),c=n+u.length-s-2;break}}for(c=-1;++cl&&"whitespace"===e[i][1].type&&(i-=2),"atxHeadingSequence"===e[i][1].type&&(l===i-1||i-4>l&&"whitespace"===e[i-2][1].type)&&(i-=l+1===i?2:4),i>l&&(n={type:"atxHeadingText",start:e[l][1].start,end:e[i][1].end},r={type:"chunkText",start:e[l][1].start,end:e[i][1].end,contentType:"text"},eg(e,l,i-l+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e},tokenize:function(e,t,n){let r=0;return function(i){var l;return e.enter("atxHeading"),l=i,e.enter("atxHeadingSequence"),function i(l){return 35===l&&r++<6?(e.consume(l),i):null===l||eD(l)?(e.exit("atxHeadingSequence"),function n(r){return 35===r?(e.enter("atxHeadingSequence"),function t(r){return 35===r?(e.consume(r),t):(e.exit("atxHeadingSequence"),n(r))}(r)):null===r||eI(r)?(e.exit("atxHeading"),t(r)):eL(r)?eF(e,n,"whitespace")(r):(e.enter("atxHeadingText"),function t(r){return null===r||35===r||eD(r)?(e.exit("atxHeadingText"),n(r)):(e.consume(r),t)}(r))}(l)):n(l)}(l)}}},42:eX,45:[e7,eX],60:{concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},tokenize:function(e,t,n){let r,i,l,o,a,u=this;return function(t){var n;return n=t,e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(n),s};function s(o){return 33===o?(e.consume(o),c):47===o?(e.consume(o),i=!0,d):63===o?(e.consume(o),r=3,u.interrupt?t:M):ew(o)?(e.consume(o),l=String.fromCharCode(o),h):n(o)}function c(i){return 45===i?(e.consume(i),r=2,f):91===i?(e.consume(i),r=5,o=0,p):ew(i)?(e.consume(i),r=4,u.interrupt?t:M):n(i)}function f(r){return 45===r?(e.consume(r),u.interrupt?t:M):n(r)}function p(r){let i="CDATA[";return r===i.charCodeAt(o++)?(e.consume(r),o===i.length)?u.interrupt?t:C:p:n(r)}function d(t){return ew(t)?(e.consume(t),l=String.fromCharCode(t),h):n(t)}function h(o){if(null===o||47===o||62===o||eD(o)){let a=47===o,s=l.toLowerCase();return!a&&!i&&te.includes(s)?(r=1,u.interrupt?t(o):C(o)):e8.includes(l.toLowerCase())?(r=6,a)?(e.consume(o),m):u.interrupt?t(o):C(o):(r=7,u.interrupt&&!u.parser.lazy[u.now().line]?n(o):i?function t(n){return eL(n)?(e.consume(n),t):w(n)}(o):g(o))}return 45===o||eS(o)?(e.consume(o),l+=String.fromCharCode(o),h):n(o)}function m(r){return 62===r?(e.consume(r),u.interrupt?t:C):n(r)}function g(t){return 47===t?(e.consume(t),w):58===t||95===t||ew(t)?(e.consume(t),y):eL(t)?(e.consume(t),g):w(t)}function y(t){return 45===t||46===t||58===t||95===t||eS(t)?(e.consume(t),y):v(t)}function v(t){return 61===t?(e.consume(t),x):eL(t)?(e.consume(t),v):g(t)}function x(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),a=t,k):eL(t)?(e.consume(t),x):function t(n){return null===n||34===n||39===n||47===n||60===n||61===n||62===n||96===n||eD(n)?v(n):(e.consume(n),t)}(t)}function k(t){return t===a?(e.consume(t),a=null,b):null===t||eI(t)?n(t):(e.consume(t),k)}function b(e){return 47===e||62===e||eL(e)?g(e):n(e)}function w(t){return 62===t?(e.consume(t),S):n(t)}function S(t){return null===t||eI(t)?C(t):eL(t)?(e.consume(t),S):n(t)}function C(t){return 45===t&&2===r?(e.consume(t),T):60===t&&1===r?(e.consume(t),I):62===t&&4===r?(e.consume(t),z):63===t&&3===r?(e.consume(t),M):93===t&&5===r?(e.consume(t),L):eI(t)&&(6===r||7===r)?(e.exit("htmlFlowData"),e.check(tt,O,E)(t)):null===t||eI(t)?(e.exit("htmlFlowData"),E(t)):(e.consume(t),C)}function E(t){return e.check(tn,P,O)(t)}function P(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),A}function A(t){return null===t||eI(t)?E(t):(e.enter("htmlFlowData"),C(t))}function T(t){return 45===t?(e.consume(t),M):C(t)}function I(t){return 47===t?(e.consume(t),l="",D):C(t)}function D(t){if(62===t){let n=l.toLowerCase();return te.includes(n)?(e.consume(t),z):C(t)}return ew(t)&&l.length<8?(e.consume(t),l+=String.fromCharCode(t),D):C(t)}function L(t){return 93===t?(e.consume(t),M):C(t)}function M(t){return 62===t?(e.consume(t),z):45===t&&2===r?(e.consume(t),M):C(t)}function z(t){return null===t||eI(t)?(e.exit("htmlFlowData"),O(t)):(e.consume(t),z)}function O(n){return e.exit("htmlFlow"),t(n)}}},61:e7,95:eX,96:ti,126:ti},tC={38:ta,92:tu},tE={[-5]:ts,[-4]:ts,[-3]:ts,33:tm,38:ta,42:ty,60:[{name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return ew(t)?(e.consume(t),l):64===t?n(t):a(t)}function l(t){return 43===t||45===t||46===t||eS(t)?(r=1,function t(n){return 58===n?(e.consume(n),r=0,o):(43===n||45===n||46===n||eS(n))&&r++<32?(e.consume(n),t):(r=0,a(n))}(t)):a(t)}function o(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||eE(r)?n(r):(e.consume(r),o)}function a(t){return 64===t?(e.consume(t),u):eC(t)?(e.consume(t),a):n(t)}function u(i){return eS(i)?function i(l){return 46===l?(e.consume(l),r=0,u):62===l?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(l),e.exit("autolinkMarker"),e.exit("autolink"),t):function t(l){if((45===l||eS(l))&&r++<63){let n=45===l?t:i;return e.consume(l),n}return n(l)}(l)}(i):n(i)}}},{name:"htmlText",tokenize:function(e,t,n){let r,i,l,o=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),a};function a(t){return 33===t?(e.consume(t),u):47===t?(e.consume(t),k):63===t?(e.consume(t),v):ew(t)?(e.consume(t),w):n(t)}function u(t){return 45===t?(e.consume(t),s):91===t?(e.consume(t),i=0,d):ew(t)?(e.consume(t),y):n(t)}function s(t){return 45===t?(e.consume(t),p):n(t)}function c(t){return null===t?n(t):45===t?(e.consume(t),f):eI(t)?(l=c,D(t)):(e.consume(t),c)}function f(t){return 45===t?(e.consume(t),p):c(t)}function p(e){return 62===e?I(e):45===e?f(e):c(e)}function d(t){let r="CDATA[";return t===r.charCodeAt(i++)?(e.consume(t),i===r.length?h:d):n(t)}function h(t){return null===t?n(t):93===t?(e.consume(t),m):eI(t)?(l=h,D(t)):(e.consume(t),h)}function m(t){return 93===t?(e.consume(t),g):h(t)}function g(t){return 62===t?I(t):93===t?(e.consume(t),g):h(t)}function y(t){return null===t||62===t?I(t):eI(t)?(l=y,D(t)):(e.consume(t),y)}function v(t){return null===t?n(t):63===t?(e.consume(t),x):eI(t)?(l=v,D(t)):(e.consume(t),v)}function x(e){return 62===e?I(e):v(e)}function k(t){return ew(t)?(e.consume(t),b):n(t)}function b(t){return 45===t||eS(t)?(e.consume(t),b):function t(n){return eI(n)?(l=t,D(n)):eL(n)?(e.consume(n),t):I(n)}(t)}function w(t){return 45===t||eS(t)?(e.consume(t),w):47===t||62===t||eD(t)?S(t):n(t)}function S(t){return 47===t?(e.consume(t),I):58===t||95===t||ew(t)?(e.consume(t),C):eI(t)?(l=S,D(t)):eL(t)?(e.consume(t),S):I(t)}function C(t){return 45===t||46===t||58===t||95===t||eS(t)?(e.consume(t),C):function t(n){return 61===n?(e.consume(n),E):eI(n)?(l=t,D(n)):eL(n)?(e.consume(n),t):S(n)}(t)}function E(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),r=t,P):eI(t)?(l=E,D(t)):eL(t)?(e.consume(t),E):(e.consume(t),A)}function P(t){return t===r?(e.consume(t),r=void 0,T):null===t?n(t):eI(t)?(l=P,D(t)):(e.consume(t),P)}function A(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||eD(t)?S(t):(e.consume(t),A)}function T(e){return 47===e||62===e||eD(e)?S(e):n(e)}function I(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function D(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),L}function L(t){return eL(t)?eF(e,M,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):M(t)}function M(t){return e.enter("htmlTextData"),l(t)}}}],91:tx,92:[{name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return eI(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},tu],93:tf,95:ty,96:{name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,i=3;if(("lineEnding"===e[3][1].type||"space"===e[i][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type)){for(t=i;++t13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(65535&n)==65535||(65535&n)==65534||n>1114111?"�":String.fromCodePoint(n)}let tL=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function tM(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){let e=n.charCodeAt(1),t=120===e||88===e;return tD(n.slice(t?2:1),t?16:10)}return to(n)||e}let tz={}.hasOwnProperty;function tO(e){return{line:e.line,column:e.column,offset:e.offset}}function tF(e,t){if(e)throw Error("Cannot close `"+e.type+"` ("+Q({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Q({start:t.start,end:t.end})+") is open");throw Error("Cannot close document, a token (`"+t.type+"`, "+Q({start:t.start,end:t.end})+") is still open")}function tR(e){let t=this;t.parser=function(n){var r,l;let o,a,u,s;return"string"!=typeof(r={...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})&&(l=r,r=void 0),(function(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:r(y),autolinkProtocol:s,autolinkEmail:s,atxHeading:r(h),blockQuote:r(function(){return{type:"blockquote",children:[]}}),characterEscape:s,characterReference:s,codeFenced:r(d),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:r(d,i),codeText:r(function(){return{type:"inlineCode",value:""}},i),codeTextData:s,data:s,codeFlowValue:s,definition:r(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:r(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:r(m),hardBreakTrailing:r(m),htmlFlow:r(g,i),htmlFlowData:s,htmlText:r(g,i),htmlTextData:s,image:r(function(){return{type:"image",title:null,url:"",alt:null}}),label:i,link:r(y),listItem:r(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:r(v,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:r(v),paragraph:r(function(){return{type:"paragraph",children:[]}}),reference:function(){this.data.referenceType="collapsed"},referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:r(h),strong:r(function(){return{type:"strong",children:[]}}),thematicBreak:r(function(){return{type:"thematicBreak"}})},exit:{atxHeading:o(),atxHeadingSequence:function(e){let t=this.stack[this.stack.length-1];t.depth||(t.depth=this.sliceSerialize(e).length)},autolink:o(),autolinkEmail:function(e){c.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){c.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:o(),characterEscapeValue:c,characterReferenceMarkerHexadecimal:p,characterReferenceMarkerNumeric:p,characterReferenceValue:function(e){let t,n=this.sliceSerialize(e),r=this.data.characterReferenceType;r?(t=tD(n,"characterReferenceMarkerNumeric"===r?10:16),this.data.characterReferenceType=void 0):t=to(n);let i=this.stack[this.stack.length-1];i.value+=t},characterReference:function(e){this.stack.pop().position.end=tO(e.end)},codeFenced:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){let e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){let e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:c,codeIndented:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:c,data:c,definition:o(),definitionDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=e3(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:o(),hardBreakEscape:o(f),hardBreakTrailing:o(f),htmlFlow:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:c,htmlText:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:c,image:o(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),label:function(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,"link"===n.type?n.children=e.children:n.alt=t},labelText:function(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=t.replace(tL,tM),n.identifier=e3(t).toLowerCase()},lineEnding:function(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){n.children[n.children.length-1].position.end=tO(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(s.call(this,e),c.call(this,e))},link:o(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),listItem:o(),listOrdered:o(),listUnordered:o(),paragraph:o(),referenceString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=e3(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:o(function(){this.data.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:o(),thematicBreak:o()}};!function e(t,n){let r=-1;for(;++r0){let e=o.tokenStack[o.tokenStack.length-1];(e[1]||tF).call(o,void 0,e[0])}for(r.position={start:tO(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:tO(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},c=-1;++c-1){let e=n[0];"string"==typeof e?n[0]=e.slice(i):n.shift()}o>0&&n.push(e[l].slice(0,o))}return n}(o,e)}function p(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:l}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:l}}function d(e,t){t.restore()}function h(e,t){return function(n,i,l){var o;let c,f,d,h;return Array.isArray(n)?m(n):"tokenize"in n?m([n]):(o=n,function(e){let t=null!==e&&o[e],n=null!==e&&o.null;return m([...Array.isArray(t)?t:t?[t]:[],...Array.isArray(n)?n:n?[n]:[]])(e)});function m(e){return(c=e,f=0,0===e.length)?l:y(e[f])}function y(e){return function(n){let i,l,o,c,f;return(i=p(),l=s.previous,o=s.currentConstruct,c=s.events.length,f=Array.from(a),h={from:c,restore:function(){r=i,s.previous=l,s.currentConstruct=o,s.events.length=c,a=f,g()}},d=e,e.partial||(s.currentConstruct=e),e.name&&s.parser.constructs.disable.null.includes(e.name))?x(n):e.tokenize.call(t?Object.assign(Object.create(s),t):s,u,v,x)(n)}}function v(t){return e(d,h),i}function x(e){return(h.restore(),++f{var t;let n,r;return(t=new Map,n=(e,n)=>(t.set(n,e),e),r=i=>{if(t.has(i))return t.get(i);let[l,o]=e[i];switch(l){case 0:case -1:return n(o,i);case 1:{let e=n([],i);for(let t of o)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of o)e[r(t)]=r(n);return e}case 3:return n(new Date(o),i);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of o)e.add(r(t));return e}case 7:{let{name:e,message:t}=o;return n(new t_[e](t),i)}case 8:return n(BigInt(o),i);case"BigInt":return n(Object(BigInt(o)),i);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}}return n(new t_[l](o),i)})(0)},{toString:tj}={},{keys:tB}=Object,tU=e=>{let t=typeof e;if("object"!==t||!e)return[0,t];let n=tj.call(e).slice(8,-1);switch(n){case"Array":return[1,""];case"Object":return[2,""];case"Date":return[3,""];case"RegExp":return[4,""];case"Map":return[5,""];case"Set":return[6,""];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},tH=([e,t])=>0===e&&("function"===t||"symbol"===t),tV=(e,{json:t,lossy:n}={})=>{var r,i,l;let o,a,u=[];return(r=!(t||n),i=!!t,l=new Map,o=(e,t)=>{let n=u.push(e)-1;return l.set(t,n),n},a=e=>{if(l.has(e))return l.get(e);let[t,n]=tU(e);switch(t){case 0:{let i=e;switch(n){case"bigint":t=8,i=e.toString();break;case"function":case"symbol":if(r)throw TypeError("unable to serialize "+n);i=null;break;case"undefined":return o([-1],e)}return o([t,i],e)}case 1:{if(n){let t=e;return"DataView"===n?t=new Uint8Array(e.buffer):"ArrayBuffer"===n&&(t=new Uint8Array(e)),o([n,[...t]],e)}let r=[],i=o([t,r],e);for(let t of e)r.push(a(t));return i}case 2:{if(n)switch(n){case"BigInt":return o([n,e.toString()],e);case"Boolean":case"Number":case"String":return o([n,e.valueOf()],e)}if(i&&"toJSON"in e)return a(e.toJSON());let l=[],u=o([t,l],e);for(let t of tB(e))(r||!tH(tU(e[t])))&&l.push([a(t),a(e[t])]);return u}case 3:return o([t,e.toISOString()],e);case 4:{let{source:n,flags:r}=e;return o([t,{source:n,flags:r}],e)}case 5:{let n=[],i=o([t,n],e);for(let[t,i]of e)(r||!(tH(tU(t))||tH(tU(i))))&&n.push([a(t),a(i)]);return i}case 6:{let n=[],i=o([t,n],e);for(let t of e)(r||!tH(tU(t)))&&n.push(a(t));return i}}let{message:u}=e;return o([t,{name:n,message:u}],e)})(e),u},tq="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?tN(tV(e,t)):structuredClone(e):(e,t)=>tN(tV(e,t));function tW(e){let t=[],n=-1,r=0,i=0;for(;++n55295&&l<57344){let t=e.charCodeAt(n+1);l<56320&&t>56319&&t<57344?(o=String.fromCharCode(l,t),i=1):o="�"}else o=String.fromCharCode(l);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function tK(e,t){let n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function tQ(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}let t$=function(e){var t,n;if(null==e)return tJ;if("function"==typeof e)return tX(e);if("object"==typeof e){return Array.isArray(e)?function(e){let t=[],n=-1;for(;++n":"")+")"})}return u;function u(){var a;let u,s,c,d=tY;if((!i||f(t,n,r[r.length-1]||void 0))&&!1===(d=Array.isArray(a=l(t,r))?a:"number"==typeof a?[!0,a]:null==a?tY:[a])[0])return d;if("children"in t&&t.children&&t.children&&"skip"!==d[0])for(s=(o?t.children.length:-1)+p,c=r.concat(t);s>-1&&s1:t}function t0(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;9===t||32===t;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}let t2={blockquote:function(e,t){let n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){let n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){let n=t.value?t.value+"\n":"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let l={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(l.data={meta:t.meta}),e.patch(t,l),l={type:"element",tagName:"pre",properties:{},children:[l=e.applyData(t,l)]},e.patch(t,l),l},delete:function(e,t){let n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){let n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){let n,r="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),l=tW(i.toLowerCase()),o=e.footnoteOrder.indexOf(i),a=e.footnoteCounts.get(i);void 0===a?(a=0,e.footnoteOrder.push(i),n=e.footnoteOrder.length):n=o+1,a+=1,e.footnoteCounts.set(i,a);let u={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+l,id:r+"fnref-"+l+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(n)}]};e.patch(t,u);let s={type:"element",tagName:"sup",properties:{},children:[u]};return e.patch(t,s),e.applyData(t,s)},heading:function(e,t){let n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){let n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return tG(e,t);let i={src:tW(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(i.title=r.title);let l={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,l),e.applyData(t,l)},image:function(e,t){let n={src:tW(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){let n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);let r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return tG(e,t);let i={href:tW(r.url||"")};null!==r.title&&void 0!==r.title&&(i.title=r.title);let l={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,l),e.applyData(t,l)},link:function(e,t){let n={href:tW(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){let r=e.all(t),i=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r0&&e.children.unshift({type:"text",value:" "}),e.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),l.className=["task-list-item"]}let a=-1;for(;++a0){let r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},l=W(t.children[1]),o=q(t.children[t.children.length-1]);l&&o&&(r.position={start:l,end:o}),i.push(r)}let l={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,l),e.applyData(t,l)},tableCell:function(e,t){let n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){let r=n?n.children:void 0,i=0===(r?r.indexOf(t):1)?"th":"td",l=n&&"table"===n.type?n.align:void 0,o=l?l.length:t.children.length,a=-1,u=[];for(;++a0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return l.push(t0(t.slice(i),i>0,!1)),l.join("")}(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){let n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:t4,yaml:t4,definition:t4,footnoteDefinition:t4};function t4(){}let t3={}.hasOwnProperty,t6={};function t5(e,t){e.position&&(t.position=function(e){let t=W(e),n=q(e);if(t&&n)return{start:t,end:n}}(e))}function t9(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}),"element"===n.type&&i&&Object.assign(n.properties,tq(i)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function t7(e,t){let n=[],r=-1;for(t&&n.push({type:"text",value:"\n"});++r0&&n.push({type:"text",value:"\n"}),n}function t8(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function ne(e,t){let n,r,i,l,o=(n=t||t6,r=new Map,i=new Map,l={all:function(e){let t=[];if("children"in e){let n=e.children,r=-1;for(;++r0&&f.push({type:"text",value:" "});let e="string"==typeof n?n:n(u,c);"string"==typeof e&&(e={type:"text",value:e}),f.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+s+(c>1?"-"+c:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(u,c),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}let d=l[l.length-1];if(d&&"element"===d.type&&"p"===d.tagName){let e=d.children[d.children.length-1];e&&"text"===e.type?e.value+=" ":d.children.push({type:"text",value:" "}),d.children.push(...f)}else l.push(...f);let h={type:"element",tagName:"li",properties:{id:t+"fn-"+s},children:e.wrap(l,!0)};e.patch(i,h),a.push(h)}if(0!==a.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:l,properties:{...tq(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:"\n"}]}}(o),s=Array.isArray(a)?{type:"root",children:a}:a||{type:"root",children:[]};return u&&s.children.push({type:"text",value:"\n"},u),s}function nt(e,t){return e&&"run"in e?async function(n,r){let i=ne(n,{file:r,...t});await e.run(i,r)}:function(n,r){return ne(n,{file:r,...e||t})}}function nn(e){if(e)throw e}var nr=n(28392);function ni(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}let nl=function(e,t){let n;if(void 0!==t&&"string"!=typeof t)throw TypeError('"ext" argument must be a string');ns(e);let r=0,i=-1,l=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;l--;)if(47===e.codePointAt(l)){if(n){r=l+1;break}}else i<0&&(n=!0,i=l+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let o=-1,a=t.length-1;for(;l--;)if(47===e.codePointAt(l)){if(n){r=l+1;break}}else o<0&&(n=!0,o=l+1),a>-1&&(e.codePointAt(l)===t.codePointAt(a--)?a<0&&(i=l):(a=-1,i=o));return r===i?i=o:i<0&&(i=e.length),e.slice(r,i)},no=function(e){let t;if(ns(e),0===e.length)return".";let n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},na=function(e){let t;ns(e);let n=e.length,r=-1,i=0,l=-1,o=0;for(;n--;){let a=e.codePointAt(n);if(47===a){if(t){i=n+1;break}continue}r<0&&(t=!0,r=n+1),46===a?l<0?l=n:1!==o&&(o=1):l>-1&&(o=-1)}return l<0||r<0||0===o||1===o&&l===r-1&&l===i+1?"":e.slice(l,r)},nu=function(...e){var t;let n,r,i,l=-1;for(;++l2){if((r=i.lastIndexOf("/"))!==i.length-1){r<0?(i="",l=0):l=(i=i.slice(0,r)).length-1-i.lastIndexOf("/"),o=u,a=0;continue}}else if(i.length>0){i="",l=0,o=u,a=0;continue}}t&&(i=i.length>0?i+"/..":"..",l=2)}else i.length>0?i+="/"+e.slice(o+1,u):i=e.slice(o+1,u),l=u-o-1;o=u,a=0}else 46===n&&a>-1?a++:a=-1}return i}(t,!n)).length||n||(r="."),r.length>0&&47===t.codePointAt(t.length-1)&&(r+="/"),n?"/"+r:r)};function ns(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}function nc(e){return!!(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}let nf=["history","path","basename","stem","extname","dirname"];class np{constructor(e){let t,n;t=e?nc(e)?{path:e}:"string"==typeof e||function(e){return!!(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":"/",this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++rt.length;o&&t.push(r);try{l=e.apply(this,t)}catch(e){if(o&&n)throw e;return r(e)}o||(l instanceof Promise?l.then(i,r):l instanceof Error?r(l):i(l))};function r(e,...i){n||(n=!0,t(e,...i))}function i(e){r(null,e)}})(a,i)(...o):r(null,...o)}(null,...t)},use:function(n){if("function"!=typeof n)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}()}copy(){let e=new nv,t=-1;for(;++t0){let[r,...l]=t,o=n[i][1];ni(o)&&ni(r)&&(r=nr(!0,o,r)),n[i]=[e,r,...l]}}}}let nx=new nv().freeze();function nk(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `parser`")}function nb(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `compiler`")}function nw(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function nS(e){if(!ni(e)||"string"!=typeof e.type)throw TypeError("Expected node, got `"+e+"`")}function nC(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function nE(e){var t;return(t=e)&&"object"==typeof t&&"message"in t&&"messages"in t?e:new np(e)}let nP=[],nA={allowDangerousHtml:!0},nT=/^(https?|ircs?|mailto|xmpp)$/i,nI=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function nD(e){var t;let n,r,i,l,o,a=(n=(t=e).rehypePlugins||nP,r=t.remarkPlugins||nP,i=t.remarkRehypeOptions?{...t.remarkRehypeOptions,...nA}:nA,nx().use(tR).use(r).use(nt,i).use(n)),u=(l=e.children||"",o=new np,"string"==typeof l&&(o.value=l),o);return function(e,t){let n=t.allowedElements,r=t.allowElement,i=t.components,l=t.disallowedElements,o=t.skipHtml,a=t.unwrapDisallowed,u=t.urlTransform||nL;for(let e of nI)Object.hasOwn(t,e.from)&&(e.from,e.to&&e.to,e.id);return tZ(e,function(e,t,i){if("raw"===e.type&&i&&"number"==typeof t)return o?i.children.splice(t,1):i.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in ef)if(Object.hasOwn(ef,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=ef[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=u(String(n||""),t,e))}}if("element"===e.type){let o=n?!n.includes(e.tagName):!!l&&l.includes(e.tagName);if(!o&&r&&"number"==typeof t&&(o=!r(e,t,i)),o&&i&&"number"==typeof t)return a&&e.children?i.children.splice(t,1,...e.children):i.children.splice(t,1),t}}),function(e,t){var n,r,i,l;let o;if(!t||void 0===t.Fragment)throw TypeError("Expected `Fragment` in options");let a=t.filePath||void 0;if(t.development){if("function"!=typeof t.jsxDEV)throw TypeError("Expected `jsxDEV` in options when `development: true`");n=a,r=t.jsxDEV,o=function(e,t,i,l){let o=Array.isArray(i.children),a=W(e);return r(t,i,l,o,{columnNumber:a?a.column-1:void 0,fileName:n,lineNumber:a?a.line:void 0},void 0)}}else{if("function"!=typeof t.jsx)throw TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw TypeError("Expected `jsxs` in production options");i=t.jsx,l=t.jsxs,o=function(e,t,n,r){let o=Array.isArray(n.children)?l:i;return r?o(t,n,r):o(t,n)}}let u={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:o,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:a,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?R:F,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},s=ei(u,e,void 0);return s&&"string"!=typeof s?s:u.create(e,u.Fragment,{children:s||void 0},void 0)}(e,{Fragment:ep.Fragment,components:i,ignoreInvalidStyle:!0,jsx:ep.jsx,jsxs:ep.jsxs,passKeys:!0,passNode:!0})}(a.runSync(a.parse(u),u),e)}function nL(e){let t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return -1===t||-1!==i&&t>i||-1!==n&&t>n||-1!==r&&t>r||nT.test(e.slice(0,t))?e:""}},47492:e=>{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,l=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,u=/^\s+|\s+$/g;function s(e){return e?e.replace(u,""):""}e.exports=function(e,u){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];u=u||{};var c=1,f=1;function p(e){var t=e.match(n);t&&(c+=t.length);var r=e.lastIndexOf("\n");f=~r?e.length-r:f+e.length}function d(){var e={line:c,column:f};return function(t){return t.position=new h(e),g(r),t}}function h(e){this.start=e,this.end={line:c,column:f},this.source=u.source}function m(t){var n=Error(u.source+":"+c+":"+f+": "+t);if(n.reason=t,n.filename=u.source,n.line=c,n.column=f,n.source=e,u.silent);else throw n}function g(t){var n=t.exec(e);if(n){var r=n[0];return p(r),e=e.slice(r.length),n}}function y(e){var t;for(e=e||[];t=v();)!1!==t&&e.push(t);return e}function v(){var t=d();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;""!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return m("End of comment missing");var r=e.slice(2,n-2);return f+=2,p(r),e=e.slice(n),f+=2,t({type:"comment",comment:r})}}h.prototype.content=e,g(r);var x,k=[];for(y(k);x=function(){var e=d(),n=g(i);if(n){if(v(),!g(l))return m("property missing ':'");var r=g(o),u=e({type:"declaration",property:s(n[0].replace(t,"")),value:r?s(r[0].replace(t,"")):""});return g(a),u}}();)!1!==x&&(k.push(x),y(k));return k}},69164:(e,t,n)=>{n.d(t,{A:()=>r});var r=(0,n(41495).A)("outline","currency-dollar","IconCurrencyDollar",[["path",{d:"M16.7 8a3 3 0 0 0 -2.7 -2h-4a3 3 0 0 0 0 6h4a3 3 0 0 1 0 6h-4a3 3 0 0 1 -2.7 -2",key:"svg-0"}],["path",{d:"M12 3v3m0 12v3",key:"svg-1"}]])},72756:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,r=/-([a-z])/g,i=/^[^-]+$/,l=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,a=function(e,t){return t.toUpperCase()},u=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){var s;return(void 0===t&&(t={}),!(s=e)||i.test(s)||n.test(s))?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(o,u):e.replace(l,u)).replace(r,a))}},81077:(e,t,n)=>{n.d(t,{A:()=>r});var r=(0,n(41495).A)("outline","numbers","IconNumbers",[["path",{d:"M8 10v-7l-2 2",key:"svg-0"}],["path",{d:"M6 16a2 2 0 1 1 4 0c0 .591 -.601 1.46 -1 2l-3 3h4",key:"svg-1"}],["path",{d:"M15 14a2 2 0 1 0 2 -2a2 2 0 1 0 -2 -2",key:"svg-2"}],["path",{d:"M6.5 10h3",key:"svg-3"}]])},93003:(e,t,n)=>{n.d(t,{A:()=>r});var r=(0,n(41495).A)("outline","percentage","IconPercentage",[["path",{d:"M17 17m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-0"}],["path",{d:"M7 7m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-1"}],["path",{d:"M6 18l12 -12",key:"svg-2"}]])}}]); \ No newline at end of file diff --git a/out/_next/static/chunks/1926-613ed7f780169841.js b/out/_next/static/chunks/1926-613ed7f780169841.js deleted file mode 100644 index 9ecee8d..0000000 --- a/out/_next/static/chunks/1926-613ed7f780169841.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1926],{229:e=>{e.exports=function(e){return!!e&&"string"!=typeof e&&(e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&"String"!==e.constructor.name))}},1178:(e,t,r)=>{var n=r(38561),a=r(74981),i=r(48286),s=r(17782),o=r(1920),l=r(8578),c=r(2327),u=r(81515),d=r(45516);e.exports=function e(t,r,h,f,p,m,b,g,y,v){var w=128&r,E=1&r,M=2&r,N=24&r,D=512&r,x=M?void 0:s(t);function S(){for(var T=arguments.length,C=Array(T),_=T;_--;)C[_]=arguments[_];if(N)var k=l(S),A=i(C,k);if(f&&(C=n(C,f,p,N)),m&&(C=a(C,m,b,N)),T-=A,N&&T1&&C.reverse(),w&&y{var n=r(69926),a=r(74209),i=r(27288),s=r(19169);e.exports=function(e,t,r){var o=t+"";return i(e,a(o,s(n(o),r)))}},1920:(e,t,r)=>{var n=r(85274),a=r(44040),i=r(1620);e.exports=function(e,t,r,s,o,l,c,u,d,h){var f=8&t;t|=f?32:64,4&(t&=~(f?64:32))||(t&=-4);var p=[e,t,o,f?l:void 0,f?c:void 0,f?void 0:l,f?void 0:c,u,d,h],m=r.apply(void 0,p);return n(e)&&a(m,p),m.placeholder=s,i(m,e,t)}},2327:(e,t,r)=>{var n=r(97722),a=r(13920),i=Math.min;e.exports=function(e,t){for(var r=e.length,s=i(t.length,r),o=n(e);s--;){var l=t[s];e[s]=a(l,r)?o[l]:void 0}return e}},6033:function(e,t,r){var n;n=r(35596),function(e){for(var t=n.lib,r=t.WordArray,a=t.Hasher,i=n.algo,s=[],o=0;o<64;o++)s[o]=0x100000000*e.abs(e.sin(o+1))|0;var l=i.MD5=a.extend({_doReset:function(){this._hash=new r.init([0x67452301,0xefcdab89,0x98badcfe,0x10325476])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,a=e[n];e[n]=(a<<8|a>>>24)&0xff00ff|(a<<24|a>>>8)&0xff00ff00}var i=this._hash.words,o=e[t+0],l=e[t+1],f=e[t+2],p=e[t+3],m=e[t+4],b=e[t+5],g=e[t+6],y=e[t+7],v=e[t+8],w=e[t+9],E=e[t+10],M=e[t+11],N=e[t+12],D=e[t+13],x=e[t+14],S=e[t+15],T=i[0],C=i[1],_=i[2],k=i[3];T=c(T,C,_,k,o,7,s[0]),k=c(k,T,C,_,l,12,s[1]),_=c(_,k,T,C,f,17,s[2]),C=c(C,_,k,T,p,22,s[3]),T=c(T,C,_,k,m,7,s[4]),k=c(k,T,C,_,b,12,s[5]),_=c(_,k,T,C,g,17,s[6]),C=c(C,_,k,T,y,22,s[7]),T=c(T,C,_,k,v,7,s[8]),k=c(k,T,C,_,w,12,s[9]),_=c(_,k,T,C,E,17,s[10]),C=c(C,_,k,T,M,22,s[11]),T=c(T,C,_,k,N,7,s[12]),k=c(k,T,C,_,D,12,s[13]),_=c(_,k,T,C,x,17,s[14]),C=c(C,_,k,T,S,22,s[15]),T=u(T,C,_,k,l,5,s[16]),k=u(k,T,C,_,g,9,s[17]),_=u(_,k,T,C,M,14,s[18]),C=u(C,_,k,T,o,20,s[19]),T=u(T,C,_,k,b,5,s[20]),k=u(k,T,C,_,E,9,s[21]),_=u(_,k,T,C,S,14,s[22]),C=u(C,_,k,T,m,20,s[23]),T=u(T,C,_,k,w,5,s[24]),k=u(k,T,C,_,x,9,s[25]),_=u(_,k,T,C,p,14,s[26]),C=u(C,_,k,T,v,20,s[27]),T=u(T,C,_,k,D,5,s[28]),k=u(k,T,C,_,f,9,s[29]),_=u(_,k,T,C,y,14,s[30]),C=u(C,_,k,T,N,20,s[31]),T=d(T,C,_,k,b,4,s[32]),k=d(k,T,C,_,v,11,s[33]),_=d(_,k,T,C,M,16,s[34]),C=d(C,_,k,T,x,23,s[35]),T=d(T,C,_,k,l,4,s[36]),k=d(k,T,C,_,m,11,s[37]),_=d(_,k,T,C,y,16,s[38]),C=d(C,_,k,T,E,23,s[39]),T=d(T,C,_,k,D,4,s[40]),k=d(k,T,C,_,o,11,s[41]),_=d(_,k,T,C,p,16,s[42]),C=d(C,_,k,T,g,23,s[43]),T=d(T,C,_,k,w,4,s[44]),k=d(k,T,C,_,N,11,s[45]),_=d(_,k,T,C,S,16,s[46]),C=d(C,_,k,T,f,23,s[47]),T=h(T,C,_,k,o,6,s[48]),k=h(k,T,C,_,y,10,s[49]),_=h(_,k,T,C,x,15,s[50]),C=h(C,_,k,T,b,21,s[51]),T=h(T,C,_,k,N,6,s[52]),k=h(k,T,C,_,p,10,s[53]),_=h(_,k,T,C,E,15,s[54]),C=h(C,_,k,T,l,21,s[55]),T=h(T,C,_,k,v,6,s[56]),k=h(k,T,C,_,S,10,s[57]),_=h(_,k,T,C,g,15,s[58]),C=h(C,_,k,T,D,21,s[59]),T=h(T,C,_,k,m,6,s[60]),k=h(k,T,C,_,M,10,s[61]),_=h(_,k,T,C,f,15,s[62]),C=h(C,_,k,T,w,21,s[63]),i[0]=i[0]+T|0,i[1]=i[1]+C|0,i[2]=i[2]+_|0,i[3]=i[3]+k|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,a=8*t.sigBytes;r[a>>>5]|=128<<24-a%32;var i=e.floor(n/0x100000000);r[(a+64>>>9<<4)+15]=(i<<8|i>>>24)&0xff00ff|(i<<24|i>>>8)&0xff00ff00,r[(a+64>>>9<<4)+14]=(n<<8|n>>>24)&0xff00ff|(n<<24|n>>>8)&0xff00ff00,t.sigBytes=(r.length+1)*4,this._process();for(var s=this._hash,o=s.words,l=0;l<4;l++){var c=o[l];o[l]=(c<<8|c>>>24)&0xff00ff|(c<<24|c>>>8)&0xff00ff00}return s},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,t,r,n,a,i,s){var o=e+(t&r|~t&n)+a+s;return(o<>>32-i)+t}function u(e,t,r,n,a,i,s){var o=e+(t&n|r&~n)+a+s;return(o<>>32-i)+t}function d(e,t,r,n,a,i,s){var o=e+(t^r^n)+a+s;return(o<>>32-i)+t}function h(e,t,r,n,a,i,s){var o=e+(r^(t|~n))+a+s;return(o<>>32-i)+t}n.MD5=a._createHelper(l),n.HmacMD5=a._createHmacHelper(l)}(Math),e.exports=n.MD5},6723:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var n=(0,r(41495).A)("outline","minus","IconMinus",[["path",{d:"M5 12l14 0",key:"svg-0"}]])},8271:(e,t,r)=>{let n=r(48718),a=r(14430),i={};Object.keys(n).forEach(e=>{i[e]={},Object.defineProperty(i[e],"channels",{value:n[e].channels}),Object.defineProperty(i[e],"labels",{value:n[e].labels});let t=a(e);Object.keys(t).forEach(r=>{let n,a,s=t[r];i[e][r]=(n=function(...e){let t=e[0];if(null==t)return t;t.length>1&&(e=t);let r=s(e);if("object"==typeof r)for(let e=r.length,t=0;t1&&(e=t),s(e))},"conversion"in s&&(a.conversion=s.conversion),a)})}),e.exports=i},8468:(e,t,r)=>{"use strict";r.d(t,{u:()=>f});var n=r(6029);r(55729);var a=r(76),i=r(5618),s=r(80616),o=r(37666),l=r(60481),c=r(43016),u={root:"m_dc6f14e2"};let d={},h=(0,i.V)((e,{size:t})=>({root:{"--kbd-fz":(0,a.YC)(t,"kbd-fz"),"--kbd-padding":(0,a.YC)(t,"kbd-padding")}})),f=(0,c.P9)((e,t)=>{let r=(0,s.Y)("Kbd",d,e),{classNames:a,className:i,style:c,styles:f,unstyled:p,vars:m,...b}=r,g=(0,o.I)({name:"Kbd",classes:u,props:r,className:i,style:c,classNames:a,styles:f,unstyled:p,vars:m,varsResolver:h});return(0,n.jsx)(l.a,{component:"kbd",ref:t,...g("root"),...b})});f.classes=u,f.displayName="@mantine/core/Kbd"},8578:e=>{e.exports=function(e){return e.placeholder}},9385:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var n=(0,r(41495).A)("outline","filter","IconFilter",[["path",{d:"M4 4h16v2.172a2 2 0 0 1 -.586 1.414l-4.414 4.414v7l-6 2v-8.5l-4.48 -4.928a2 2 0 0 1 -.52 -1.345v-2.227z",key:"svg-0"}]])},10174:(e,t,r)=>{"use strict";r.d(t,{_:()=>H});var n=r(6029),a=r(55729),i=r(69626),s=r(80616),o=r(43016),l=r(65837);let[c,u]=(0,r(36254).F)("Drawer component was not found in tree");var d={root:"m_f11b401e",header:"m_5a7c2c9",content:"m_b8a05bbd",inner:"m_31cd769a"};let h={},f=(0,o.P9)((e,t)=>{let{classNames:r,className:a,style:i,styles:o,vars:c,...d}=(0,s.Y)("DrawerBody",h,e),f=u();return(0,n.jsx)(l.v,{ref:t,...f.getStyles("body",{classNames:r,style:i,styles:o,className:a}),...d})});f.classes=d,f.displayName="@mantine/core/DrawerBody";var p=r(68373);let m={},b=(0,o.P9)((e,t)=>{let{classNames:r,className:a,style:i,styles:o,vars:l,...c}=(0,s.Y)("DrawerCloseButton",m,e),d=u();return(0,n.jsx)(p.F,{ref:t,...d.getStyles("close",{classNames:r,style:i,styles:o,className:a}),...c})});b.classes=d,b.displayName="@mantine/core/DrawerCloseButton";var g=r(25878),y=r(87816);let v={},w=(0,o.P9)((e,t)=>{let{classNames:r,className:a,style:i,styles:o,vars:l,children:c,radius:d,__hidden:h,...f}=(0,s.Y)("DrawerContent",v,e),p=u(),m=p.scrollAreaComponent||y.a;return(0,n.jsx)(g.c,{...p.getStyles("content",{className:a,style:i,styles:o,classNames:r}),innerProps:p.getStyles("inner",{className:a,style:i,styles:o,classNames:r}),ref:t,...f,radius:d||p.radius||0,"data-hidden":h||void 0,children:(0,n.jsx)(m,{style:{height:"calc(100vh - var(--drawer-offset) * 2)"},children:c})})});w.classes=d,w.displayName="@mantine/core/DrawerContent";var E=r(62358);let M={},N=(0,o.P9)((e,t)=>{let{classNames:r,className:a,style:i,styles:o,vars:l,...c}=(0,s.Y)("DrawerHeader",M,e),d=u();return(0,n.jsx)(E.m,{ref:t,...d.getStyles("header",{classNames:r,style:i,styles:o,className:a}),...c})});N.classes=d,N.displayName="@mantine/core/DrawerHeader";var D=r(97762);let x={},S=(0,o.P9)((e,t)=>{let{classNames:r,className:a,style:i,styles:o,vars:l,...c}=(0,s.Y)("DrawerOverlay",x,e),d=u();return(0,n.jsx)(D.V,{ref:t,...d.getStyles("overlay",{classNames:r,style:i,styles:o,className:a}),...c})});S.classes=d,S.displayName="@mantine/core/DrawerOverlay";var T=r(26615),C=r(76),_=r(5618),k=r(37666),A=r(52432),O=r(43256),R=r(53993);let I={top:"slide-down",bottom:"slide-up",left:"slide-right",right:"slide-left"},F={top:"slide-down",bottom:"slide-up",right:"slide-right",left:"slide-left"},j={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:(0,i.I)("modal"),position:"left"},L=(0,_.V)((e,{position:t,size:r,offset:n})=>({root:{"--drawer-size":(0,C.YC)(r,"drawer-size"),"--drawer-flex":function(e){if("top"===e||"bottom"===e)return"0 0 calc(100% - var(--drawer-offset, 0rem) * 2)"}(t),"--drawer-height":"left"===t||"right"===t?void 0:"var(--drawer-size)","--drawer-align":function(e){switch(e){case"top":return"flex-start";case"bottom":return"flex-end";default:return}}(t),"--drawer-justify":"right"===t?"flex-end":void 0,"--drawer-offset":(0,T.D)(n)}})),B=(0,o.P9)((e,t)=>{let r=(0,s.Y)("DrawerRoot",j,e),{classNames:a,className:i,style:o,styles:l,unstyled:u,vars:h,scrollAreaComponent:f,position:p,transitionProps:m,radius:b,...g}=r,{dir:y}=(0,A.jH)(),v=(0,k.I)({name:"Drawer",classes:d,props:r,className:i,style:o,classNames:a,styles:l,unstyled:u,vars:h,varsResolver:L}),w=("rtl"===y?F:I)[p];return(0,n.jsx)(c,{value:{scrollAreaComponent:f,getStyles:v,radius:b},children:(0,n.jsx)(O.f,{ref:t,...v("root"),transitionProps:{transition:w,...m},"data-offset-scrollbars":f===R.F.Autosize||void 0,unstyled:u,...g})})});B.classes=d,B.displayName="@mantine/core/DrawerRoot";let[P,U]=(0,r(48930).e)();function z({children:e}){let[t,r]=(0,a.useState)([]),[s,o]=(0,a.useState)((0,i.I)("modal"));return(0,n.jsx)(P,{value:{stack:t,addModal:(e,t)=>{r(t=>[...new Set([...t,e])]),o(e=>"number"==typeof t&&"number"==typeof e?Math.max(e,t):e)},removeModal:e=>r(t=>t.filter(t=>t!==e)),getZIndex:e=>`calc(${s} + ${t.indexOf(e)} + 1)`,currentId:t[t.length-1],maxZIndex:s},children:e})}z.displayName="@mantine/core/DrawerStack";var W=r(66951);let Y={},G=(0,o.P9)((e,t)=>{let{classNames:r,className:a,style:i,styles:o,vars:l,...c}=(0,s.Y)("DrawerTitle",Y,e),d=u();return(0,n.jsx)(W.$,{ref:t,...d.getStyles("title",{classNames:r,style:i,styles:o,className:a}),...c})});G.classes=d,G.displayName="@mantine/core/DrawerTitle";let V={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:(0,i.I)("modal"),withOverlay:!0,withCloseButton:!0},H=(0,o.P9)((e,t)=>{let{title:r,withOverlay:o,overlayProps:l,withCloseButton:c,closeButtonProps:u,children:d,opened:h,stackId:p,zIndex:m,...g}=(0,s.Y)("Drawer",V,e),y=U(),v=!!r||c,E=y&&p?{closeOnEscape:y.currentId===p,trapFocus:y.currentId===p,zIndex:y.getZIndex(p)}:{},M=!1!==o&&(p&&y?y.currentId===p:h);return(0,a.useEffect)(()=>{y&&p&&(h?y.addModal(p,m||(0,i.I)("modal")):y.removeModal(p))},[h,p,m]),(0,n.jsxs)(B,{ref:t,opened:h,zIndex:y&&p?y.getZIndex(p):m,...g,...E,children:[o&&(0,n.jsx)(S,{visible:M,transitionProps:y&&p?{duration:0}:void 0,...l}),(0,n.jsxs)(w,{__hidden:!!y&&!!p&&!!h&&p!==y.currentId,children:[v&&(0,n.jsxs)(N,{children:[r&&(0,n.jsx)(G,{children:r}),c&&(0,n.jsx)(b,{...u})]}),(0,n.jsx)(f,{children:d})]})]})});H.classes=d,H.displayName="@mantine/core/Drawer",H.Root=B,H.Overlay=S,H.Content=w,H.Body=f,H.Header=N,H.Title=G,H.CloseButton=b,H.Stack=z},10708:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var n=(0,r(41495).A)("outline","globe","IconGlobe",[["path",{d:"M7 9a4 4 0 1 0 8 0a4 4 0 0 0 -8 0",key:"svg-0"}],["path",{d:"M5.75 15a8.015 8.015 0 1 0 9.25 -13",key:"svg-1"}],["path",{d:"M11 17v4",key:"svg-2"}],["path",{d:"M7 21h8",key:"svg-3"}]])},10822:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var n=(0,r(41495).A)("outline","arrow-back-up","IconArrowBackUp",[["path",{d:"M9 14l-4 -4l4 -4",key:"svg-0"}],["path",{d:"M5 10h11a4 4 0 1 1 0 8h-1",key:"svg-1"}]])},12853:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var n=(0,r(41495).A)("outline","toggle-right","IconToggleRight",[["path",{d:"M16 12m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-0"}],["path",{d:"M2 6m0 6a6 6 0 0 1 6 -6h8a6 6 0 0 1 6 6v0a6 6 0 0 1 -6 6h-8a6 6 0 0 1 -6 -6z",key:"svg-1"}]])},13157:e=>{"use strict";e.exports=({onlyFirst:e=!1}={})=>RegExp("[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)|(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))",e?void 0:"g")},14262:e=>{!function(){e.exports=l;var t="000000000",r=Math.trunc||function(e){var t=e-e%1;return 0==t&&(e<0||0===e&&1/e!=1/0)?-0:t},n=l.prototype,a=(l.fromDate=function(e){return new l(+e)},l.fromInt64BE=f(0,1,2,3,0,4),l.fromInt64LE=f(3,2,1,0,4,0),l.fromString=function(e){var r,n=new l,e=(e+="").replace(/^\s*[+\-]?\d+/,function(e){var e=+e,t=1970+(e-1970)%400;return n.year=e-t,t}).replace(/(?:Z|([+\-]\d{2}):?(\d{2}))$/,function(e,t,n){return t<0&&(n*=-1),r=6e4*(60*t+ +n),""}).replace(/\.\d+$/,function(e){return n.nano=+(e+t).substr(1,9),""}).split(/\D+/);if(1>24&255,r[i+t]=s>>16&255,r[i+n]=s>>8&255,r[i+a]=255&s}}function f(e,t,r,n,a,i){return function(e,t){p(e,t|=0);var r=s(e,t+a);return d(s(e,t+i),r)};function s(a,i){return 0x1000000*a[i+e]+(a[i+t]<<16|a[i+r]<<8|a[i+n])}}function p(e,t){if(null==(e=e&&e.length))throw TypeError("Invalid Buffer");if(e{let n=r(48718);e.exports=function(e){let t=function(e){let t=function(){let e={},t=Object.keys(n);for(let r=t.length,n=0;n{"use strict";r.d(t,{A:()=>n});var n=(0,r(41495).A)("outline","arrows-diagonal-minimize-2","IconArrowsDiagonalMinimize2",[["path",{d:"M18 10h-4v-4",key:"svg-0"}],["path",{d:"M20 4l-6 6",key:"svg-1"}],["path",{d:"M6 14h4v4",key:"svg-2"}],["path",{d:"M10 14l-6 6",key:"svg-3"}]])},16943:(e,t,r)=>{var n=r(88601),a=r(68988),i=r(43233),s=r(63127);e.exports=function(e,t){if(null==e)return{};var r=n(s(e),function(e){return[e]});return t=a(t),i(e,r,function(e,r){return t(e,r[0])})}},17782:(e,t,r)=>{var n=r(91357),a=r(23356);e.exports=function(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=n(e.prototype),i=e.apply(r,t);return a(i)?i:r}}},19169:(e,t,r)=>{var n=r(58120),a=r(68668),i=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];e.exports=function(e,t){return n(i,function(r){var n="_."+r[0];t&r[1]&&!a(e,n)&&e.push(n)}),e.sort()}},20294:(e,t,r)=>{"use strict";r.d(t,{B:()=>m});var n=r(6029),a=r(55729),i=r(30342),s=r(76),o=r(5618),l=r(80616),c=r(37666),u=r(60481),d=r(43016),h={root:"m_8b3717df",breadcrumb:"m_f678d540",separator:"m_3b8f2208"};let f={separator:"/"},p=(0,o.V)((e,{separatorMargin:t})=>({root:{"--bc-separator-margin":(0,s.GY)(t)}})),m=(0,d.P9)((e,t)=>{let r=(0,l.Y)("Breadcrumbs",f,e),{classNames:s,className:o,style:d,styles:m,unstyled:b,vars:g,children:y,separator:v,separatorMargin:w,...E}=r,M=(0,c.I)({name:"Breadcrumbs",classes:h,props:r,className:o,style:d,classNames:s,styles:m,unstyled:b,vars:g,varsResolver:p}),N=a.Children.toArray(y).reduce((e,t,r,n)=>{let s=(0,i.v)(t)?(0,a.cloneElement)(t,{...M("breadcrumb",{className:t.props?.className}),key:r}):(0,a.createElement)("div",{...M("breadcrumb"),key:r},t);return e.push(s),r!==n.length-1&&e.push((0,a.createElement)(u.a,{...M("separator"),key:`separator-${r}`},v)),e},[]);return(0,n.jsx)(u.a,{ref:t,...M("root"),...E,children:N})});m.classes=h,m.displayName="@mantine/core/Breadcrumbs"},21510:(e,t,r)=>{"use strict";r.d(t,{d:()=>tf});var n,a=r(55729),i=r(67125);let s=function(e){return e};var o="object"==typeof global&&global&&global.Object===Object&&global,l="object"==typeof self&&self&&self.Object===Object&&self,c=o||l||Function("return this")(),u=c.Symbol,d=Object.prototype,h=d.hasOwnProperty,f=d.toString,p=u?u.toStringTag:void 0;let m=function(e){var t=h.call(e,p),r=e[p];try{e[p]=void 0;var n=!0}catch(e){}var a=f.call(e);return n&&(t?e[p]=r:delete e[p]),a};var b=Object.prototype.toString,g=u?u.toStringTag:void 0;let y=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":g&&g in Object(e)?m(e):b.call(e)},v=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},w=function(e){if(!v(e))return!1;var t=y(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t};var E=c["__core-js_shared__"],M=(n=/[^.]+$/.exec(E&&E.keys&&E.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",N=Function.prototype.toString;let D=function(e){if(null!=e){try{return N.call(e)}catch(e){}try{return e+""}catch(e){}}return""};var x=/^\[object .+?Constructor\]$/,S=Object.prototype,T=Function.prototype.toString,C=S.hasOwnProperty,_=RegExp("^"+T.call(C).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");let k=function(e){return!!v(e)&&(!M||!(M in e))&&(w(e)?_:x).test(D(e))},A=function(e,t){var r=null==e?void 0:e[t];return k(r)?r:void 0};var O=A(c,"WeakMap"),R=O&&new O,I=R?function(e,t){return R.set(e,t),e}:s,F=Object.create,j=function(){function e(){}return function(t){if(!v(t))return{};if(F)return F(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();let L=function(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=j(e.prototype),n=e.apply(r,t);return v(n)?n:r}},B=function(e,t,r){var n=1&t,a=L(e);return function t(){return(this&&this!==c&&this instanceof t?a:e).apply(n?r:this,arguments)}},P=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)};var U=Math.max;let z=function(e,t,r,n){for(var a=-1,i=e.length,s=r.length,o=-1,l=t.length,c=U(i-s,0),u=Array(l+c),d=!n;++o0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}};var eo=es(I),el=/\{\n\/\* \[wrapped with (.+)\] \*/,ec=/,? & /;let eu=function(e){var t=e.match(el);return t?t[1].split(ec):[]};var ed=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;let eh=function(e,t){var r=t.length;if(!r)return e;var n=r-1;return t[n]=(r>1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(ed,"{\n/* [wrapped with "+t+"] */\n")};var ef=function(){try{var e=A(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),ep=es(ef?function(e,t){return ef(e,"toString",{configurable:!0,enumerable:!1,value:function(){return t},writable:!0})}:s);let em=function(e,t){for(var r=-1,n=null==e?0:e.length;++r-1};var ew=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];let eE=function(e,t,r){var n,a=t+"";return ep(e,eh(a,(n=eu(a),em(ew,function(e){var t="_."+e[0];r&e[1]&&!ev(n,t)&&n.push(t)}),n.sort())))},eM=function(e,t,r,n,a,i,s,o,l,c){var u=8&t;t|=u?32:64,4&(t&=~(u?64:32))||(t&=-4);var d=[e,t,a,u?i:void 0,u?s:void 0,u?void 0:i,u?void 0:s,o,l,c],h=r.apply(void 0,d);return ea(e)&&eo(h,d),h.placeholder=n,eE(h,e,t)},eN=function(e){return e.placeholder};var eD=/^(?:0|[1-9]\d*)$/;let ex=function(e,t){var r=typeof e;return!!(t=null==t?0x1fffffffffffff:t)&&("number"==r||"symbol"!=r&&eD.test(e))&&e>-1&&e%1==0&&e1&&w.reverse(),h&&ut=>({className:[t.className,e.className].filter(Boolean).join(" "),style:{...t.style||{},...e.style||{}}}),e0=(e,t,...r)=>{if(null===t)return e;Array.isArray(t)||(t=[t]);let n=t.map(t=>e[t]).filter(Boolean).reduce((e,t)=>("string"==typeof t?e.className=[e.className,t].filter(Boolean).join(" "):"object"==typeof t?e.style={...e.style,...t}:"function"==typeof t&&(e={...e,...t(e,...r)}),e),{className:"",style:{}});return n.className||delete n.className,0===Object.keys(n.style).length&&delete n.style,n},e1=e=>Object.keys(e).reduce((t,r)=>(t[r]=/^base/.test(r)?(e=>{var t,r;let n,a,s,o,l,c,u,d,h,[f,p,m]=(n=(t=i(e).array())[0]/255,a=t[1]/255,[.299*n+.587*a+.114*(s=t[2]/255),-.14713*n+-.28886*a+.436*s,.615*n+-.51499*a+-.10001*s]),b=(u=(r=[f<.25?1:f<.5?.9-f:1.1-f,p,m])[0],d=r[1],o=+u+0*d+1.13983*(h=r[2]),l=+u+-.39465*d+-.5806*h,c=+u+2.02311*d+0*h,[255*(o=Math.min(Math.max(0,o),1)),255*(l=Math.min(Math.max(0,l),1)),255*(c=Math.min(Math.max(0,c),1))]);return i.rgb(b).hex()})(e[r]):"scheme"===r?e[r]+":inverted":e[r],t),{}),e2=eX((e,t={},r={},...n)=>{let{defaultBase16:a=eK,base16Themes:i=null}=t,s=e5(r,i);s&&(r={...s,...r});let o=eJ.reduce((e,t)=>(e[t]=r[t]||a[t],e),{}),l=((e,t)=>{let r=Object.keys(t);for(let t in e)-1===r.indexOf(t)&&r.push(t);return r.reduce((r,n)=>(r[n]=((e,t)=>{if(void 0===e)return t;if(void 0===t)return e;let r=typeof t;switch(typeof e){case"string":switch(r){case"string":return[t,e].filter(Boolean).join(" ");case"object":return eQ({className:e,style:t});case"function":return(r,...n)=>eQ({className:e})(t(r,...n))}break;case"object":switch(r){case"string":return eQ({className:t,style:e});case"object":return{...t,...e};case"function":return(r,...n)=>eQ({style:e})(t(r,...n))}break;case"function":switch(r){case"string":return(r,...n)=>e(eQ(r)({className:t}),...n);case"object":return(r,...n)=>e(eQ(r)({style:t}),...n);case"function":return(r,...n)=>e(t(r,...n),...n)}}})(e[n],t[n]),r),{})})(Object.keys(r).reduce((e,t)=>(-1===eJ.indexOf(t)&&(e[t]=r[t]),e),{}),e(o));return eX(e0,2)(l,...n)},3),e5=(e,t)=>{if(e&&e.extend&&e.extend&&(e=e.extend),"string"==typeof e){let[r,n]=e.split(":");e=t?t[r]:eq[r],"inverted"===n&&(e=e1(e))}return e&&Object.prototype.hasOwnProperty.call(e,"base00")?e:void 0};function e3({styling:e,arrowStyle:t="single",expanded:r,nodeType:n,onClick:i}){return a.createElement("div",{...e("arrowContainer",t),onClick:i},a.createElement("div",{...e(["arrow","arrowSign"],n,r,t)},"▶","double"===t&&a.createElement("div",{...e(["arrowSign","arrowSignInner"])},"▶")))}function e6(e,t,r,n=0,a=1/0){let i;if("Object"===e){let e=Object.getOwnPropertyNames(t);r&&e.sort(!0===r?void 0:r),i={entries:(e=e.slice(n,a+1)).map(e=>({key:e,value:t[e]}))}}else if("Array"===e)i={entries:t.slice(n,a+1).map((e,t)=>({key:t+n,value:e}))};else{let e=0,r=[],s=!0,o="function"==typeof t.set;for(let i of t){if(e>a){s=!1;break}n<=e&&(o&&Array.isArray(i)?"string"==typeof i[0]||"number"==typeof i[0]?r.push({key:i[0],value:i[1]}):r.push({key:`[entry ${e}]`,value:{"[key]":i[0],"[value]":i[1]}}):r.push({key:e,value:i})),e++}i={hasMore:!s,entries:r}}return i}function e4(e,t,r){let n=[];for(;t-e>r*r;)r*=r;for(let a=e;a<=t;a+=r)n.push({from:a,to:Math.min(t,a+r-1)});return n}function e8(e){let{styling:t,from:r,to:n,renderChildNodes:i,nodeType:s}=e,[o,l]=(0,a.useState)(!1),c=(0,a.useCallback)(()=>{l(!o)},[o]);return o?a.createElement("div",{...t("itemRange",o)},i(e,r,n)):a.createElement("div",{...t("itemRange",o),onClick:c},a.createElement(e3,{nodeType:s,styling:t,expanded:!1,onClick:c,arrowStyle:"double"}),`${r} ... ${n}`)}function e9(e){let{circularCache:t=[],collectionLimit:r,createItemString:n,data:i,expandable:s,getItemString:o,hideRoot:l,isCircular:c,keyPath:u,labelRenderer:d,level:h=0,nodeType:f,nodeTypeIndicator:p,shouldExpandNodeInitially:m,styling:b}=e,[g,y]=(0,a.useState)(!c&&m(u,i,h)),v=(0,a.useCallback)(()=>{s&&y(!g)},[s,g]),w=g||l&&0===h?function e(t,r,n){let{nodeType:i,data:s,collectionLimit:o,circularCache:l,keyPath:c,postprocessValue:u,sortObjectKeys:d}=t,h=[];return(function(e,t,r,n,a=0,i=1/0){let s,o=e6.bind(null,e,t,r);if(!n)return o().entries;let l=i<1/0,c=Math.min(i-a,"Object"===e?Object.keys(t).length:"Array"===e?t.length:1/0);if("Iterable"!==e){if(c<=n||n<7)return o(a,i).entries}else if(c<=n&&!l)return o(a,i).entries;if("Iterable"===e){let{hasMore:e,entries:t}=o(a,a+n-1);s=e?[...t,...e4(a+n,a+2*n-1,n)]:t}else s=l?e4(a,i,n):[...o(0,n-5).entries,...e4(n-4,c-5,n),...o(c-4,c-1).entries];return s})(i,s,d,o,r,n).forEach(r=>{if(void 0!==r.to)h.push(a.createElement(e8,{...t,key:`ItemRange--${r.from}-${r.to}`,from:r.from,to:r.to,renderChildNodes:e}));else{let{key:e,value:n}=r,i=l.includes(n);h.push(a.createElement(ts,{...t,postprocessValue:u,collectionLimit:o,key:`Node--${e}`,keyPath:[e,...c],value:u(n),circularCache:[...l,n],isCircular:i,hideRoot:!1}))}}),h}({...e,circularCache:t,level:h+1}):null,E=o(f,i,a.createElement("span",{...b("nestedNodeItemType",g)},p),n(i,r),u),M=[u,f,g,s];return l?a.createElement("li",{...b("rootNode",...M)},a.createElement("ul",{...b("rootNodeChildren",...M)},w)):a.createElement("li",{...b("nestedNode",...M)},s&&a.createElement(e3,{styling:b,nodeType:f,expanded:g,onClick:v}),a.createElement("label",{...b(["label","nestedNodeLabel"],...M),onClick:v},d(...M)),a.createElement("span",{...b("nestedNodeItemString",...M),onClick:v},E),a.createElement("ul",{...b("nestedNodeChildren",...M)},w))}function e7(e){let t=Object.getOwnPropertyNames(e).length;return`${t} ${1!==t?"keys":"key"}`}function te({data:e,...t}){return a.createElement(e9,{...t,data:e,nodeType:"Object",nodeTypeIndicator:"Error"===t.nodeType?"Error()":"{}",createItemString:e7,expandable:Object.getOwnPropertyNames(e).length>0})}function tt(e){return`${e.length} ${1!==e.length?"items":"item"}`}function tr({data:e,...t}){return a.createElement(e9,{...t,data:e,nodeType:"Array",nodeTypeIndicator:"[]",createItemString:tt,expandable:e.length>0})}function tn(e,t){let r=0,n=!1;if(Number.isSafeInteger(e.size))r=e.size;else for(let a of e){if(t&&r+1>t){n=!0;break}r+=1}return`${n?">":""}${r} ${1!==r?"entries":"entry"}`}function ta(e){return a.createElement(e9,{...e,nodeType:"Iterable",nodeTypeIndicator:"()",createItemString:tn,expandable:!0})}function ti({nodeType:e,styling:t,labelRenderer:r,keyPath:n,valueRenderer:i,value:s,valueGetter:o=e=>e}){return a.createElement("li",{...t("value",e,n)},a.createElement("label",{...t(["label","valueLabel"],e,n)},r(n,e,!1,!1)),a.createElement("span",{...t("valueText",e,n)},i(o(s),s,...n)))}function ts({getItemString:e,keyPath:t,labelRenderer:r,styling:n,value:i,valueRenderer:s,isCustomNode:o,...l}){let c,u=o(i)?"Custom":"Object"===(c=Object.prototype.toString.call(i).slice(8,-1))&&"function"==typeof i[Symbol.iterator]?"Iterable":"Custom"===c&&i.constructor!==Object&&i instanceof Object?"Object":c,d={getItemString:e,key:t[0],keyPath:t,labelRenderer:r,nodeType:u,styling:n,value:i,valueRenderer:s},h={...l,...d,data:i,isCustomNode:o};switch(u){case"Object":case"Error":case"WeakMap":case"WeakSet":return a.createElement(te,{...h});case"Array":return a.createElement(tr,{...h});case"Iterable":case"Map":case"Set":return a.createElement(ta,{...h});case"String":return a.createElement(ti,{...d,valueGetter:e=>`"${e}"`});case"Number":case"Custom":return a.createElement(ti,{...d});case"Boolean":return a.createElement(ti,{...d,valueGetter:e=>e?"true":"false"});case"Date":return a.createElement(ti,{...d,valueGetter:e=>e.toISOString()});case"Null":return a.createElement(ti,{...d,valueGetter:()=>"null"});case"Undefined":return a.createElement(ti,{...d,valueGetter:()=>"undefined"});case"Function":case"Symbol":return a.createElement(ti,{...d,valueGetter:e=>e.toString()});default:return a.createElement(ti,{...d,valueGetter:()=>`<${u}>`})}}let to=e2(e=>{let t={BACKGROUND_COLOR:e.base00,TEXT_COLOR:e.base07,STRING_COLOR:e.base0B,DATE_COLOR:e.base0B,NUMBER_COLOR:e.base09,BOOLEAN_COLOR:e.base09,NULL_COLOR:e.base08,UNDEFINED_COLOR:e.base08,FUNCTION_COLOR:e.base08,SYMBOL_COLOR:e.base08,LABEL_COLOR:e.base0D,ARROW_COLOR:e.base0D,ITEM_STRING_COLOR:e.base0B,ITEM_STRING_EXPANDED_COLOR:e.base03};return{tree:{border:0,padding:0,marginTop:"0.5em",marginBottom:"0.5em",marginLeft:"0.125em",marginRight:0,listStyle:"none",MozUserSelect:"none",WebkitUserSelect:"none",backgroundColor:t.BACKGROUND_COLOR},value:({style:e},t,r)=>({style:{...e,paddingTop:"0.25em",paddingRight:0,marginLeft:"0.875em",WebkitUserSelect:"text",MozUserSelect:"text",wordWrap:"break-word",paddingLeft:r.length>1?"2.125em":"1.25em",textIndent:"-0.5em",wordBreak:"break-all"}}),label:{display:"inline-block",color:t.LABEL_COLOR},valueLabel:{margin:"0 0.5em 0 0"},valueText:({style:e},r)=>({style:{...e,color:({String:t.STRING_COLOR,Date:t.DATE_COLOR,Number:t.NUMBER_COLOR,Boolean:t.BOOLEAN_COLOR,Null:t.NULL_COLOR,Undefined:t.UNDEFINED_COLOR,Function:t.FUNCTION_COLOR,Symbol:t.SYMBOL_COLOR})[r]}}),itemRange:(e,r)=>({style:{paddingTop:r?0:"0.25em",cursor:"pointer",color:t.LABEL_COLOR}}),arrow:({style:e},t,r)=>({style:{...e,marginLeft:0,transition:"150ms",WebkitTransition:"150ms",MozTransition:"150ms",WebkitTransform:r?"rotateZ(90deg)":"rotateZ(0deg)",MozTransform:r?"rotateZ(90deg)":"rotateZ(0deg)",transform:r?"rotateZ(90deg)":"rotateZ(0deg)",transformOrigin:"45% 50%",WebkitTransformOrigin:"45% 50%",MozTransformOrigin:"45% 50%",position:"relative",lineHeight:"1.1em",fontSize:"0.75em"}}),arrowContainer:({style:e},t)=>({style:{...e,display:"inline-block",paddingRight:"0.5em",paddingLeft:"double"===t?"1em":0,cursor:"pointer"}}),arrowSign:{color:t.ARROW_COLOR},arrowSignInner:{position:"absolute",top:0,left:"-0.4em"},nestedNode:({style:e},t,r,n,a)=>({style:{...e,position:"relative",paddingTop:"0.25em",marginLeft:t.length>1?"0.875em":0,paddingLeft:a?0:"1.125em"}}),rootNode:{padding:0,margin:0},nestedNodeLabel:({style:e},t,r,n,a)=>({style:{...e,margin:0,padding:0,WebkitUserSelect:a?"inherit":"text",MozUserSelect:a?"inherit":"text",cursor:a?"pointer":"default"}}),nestedNodeItemString:({style:e},r,n,a)=>({style:{...e,paddingLeft:"0.5em",cursor:"default",color:a?t.ITEM_STRING_EXPANDED_COLOR:t.ITEM_STRING_COLOR}}),nestedNodeItemType:{marginLeft:"0.3em",marginRight:"0.3em"},nestedNodeChildren:({style:e},t,r)=>({style:{...e,padding:0,margin:0,listStyle:"none",display:r?"block":"none"}}),rootNodeChildren:{padding:0,margin:0,listStyle:"none"}}},{defaultBase16:{scheme:"solarized",author:"ethan schoonover (http://ethanschoonover.com/solarized)",base00:"#002b36",base01:"#073642",base02:"#586e75",base03:"#657b83",base04:"#839496",base05:"#93a1a1",base06:"#eee8d5",base07:"#fdf6e3",base08:"#dc322f",base09:"#cb4b16",base0A:"#b58900",base0B:"#859900",base0C:"#2aa198",base0D:"#268bd2",base0E:"#6c71c4",base0F:"#d33682"}}),tl=e=>e,tc=(e,t,r)=>0===r,tu=(e,t,r,n)=>a.createElement("span",null,r," ",n),td=([e])=>a.createElement("span",null,e,":"),th=()=>!1;function tf({data:e,theme:t,invertTheme:r,keyPath:n=["root"],labelRenderer:i=td,valueRenderer:s=tl,shouldExpandNodeInitially:o=tc,hideRoot:l=!1,getItemString:c=tu,postprocessValue:u=tl,isCustomNode:d=th,collectionLimit:h=50,sortObjectKeys:f=!1}){let p=(0,a.useMemo)(()=>{var e;return to(r?"string"==typeof(e=t)?`${e}:inverted`:e&&e.extend&&e.extend?"string"==typeof e.extend?{...e,extend:`${e.extend}:inverted`}:{...e,extend:e1(e.extend)}:e?e1(e):e:t)},[t,r]);return a.createElement("ul",{...p("tree")},a.createElement(ts,{keyPath:l?[]:n,value:u(e),isCustomNode:d,styling:p,labelRenderer:i,valueRenderer:s,shouldExpandNodeInitially:o,hideRoot:l,getItemString:c,postprocessValue:u,collectionLimit:h,sortObjectKeys:f}))}},22273:(e,t,r)=>{"use strict";r.d(t,{M:()=>a});var n=r(55729);function a(){let[e,t]=(0,n.useState)(!1),r=(0,n.useRef)(null),a=(0,n.useCallback)(()=>t(!0),[]),i=(0,n.useCallback)(()=>t(!1),[]);return(0,n.useEffect)(()=>{let e=r.current;if(e)return e.addEventListener("mouseenter",a),e.addEventListener("mouseleave",i),()=>{e?.removeEventListener("mouseenter",a),e?.removeEventListener("mouseleave",i)}},[r.current]),{ref:r,hovered:e}}},24656:(e,t,r)=>{var n=r(38561),a=r(74981),i=r(81515),s="__lodash_placeholder__",o=Math.min;e.exports=function(e,t){var r=e[1],l=t[1],c=r|l,u=c<131,d=128==l&&8==r||128==l&&256==r&&e[7].length<=t[8]||384==l&&t[7].length<=t[8]&&8==r;if(!(u||d))return e;1&l&&(e[2]=t[2],c|=1&r?0:4);var h=t[3];if(h){var f=e[3];e[3]=f?n(f,h,t[4]):h,e[4]=f?i(e[3],s):t[4]}return(h=t[5])&&(f=e[5],e[5]=f?a(f,h,t[6]):h,e[6]=f?i(e[5],s):t[6]),(h=t[7])&&(e[7]=h),128&l&&(e[8]=null==e[8]?t[8]:o(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=c,e}},27524:e=>{e.exports={}},27803:(e,t,r)=>{var n=r(17782),a=r(45516);e.exports=function(e,t,r){var i=1&t,s=n(e);return function t(){return(this&&this!==a&&this instanceof t?s:e).apply(i?r:this,arguments)}}},29464:(e,t,r)=>{var n=r(83529),a=r(53416),i=r(97722);e.exports=function(e){if(e instanceof n)return e.clone();var t=new a(e.__wrapped__,e.__chain__);return t.__actions__=i(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}},29766:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>c});var n={};r.r(n),r.d(n,{BRAND:()=>o.qt,DIRTY:()=>i.jm,EMPTY_PATH:()=>i.I3,INVALID:()=>i.uY,NEVER:()=>o.tm,OK:()=>i.OK,ParseStatus:()=>i.MY,Schema:()=>o.Sj,ZodAny:()=>o.Ml,ZodArray:()=>o.n,ZodBigInt:()=>o.Lr,ZodBoolean:()=>o.WF,ZodBranded:()=>o.eN,ZodCatch:()=>o.hw,ZodDate:()=>o.aP,ZodDefault:()=>o.Xi,ZodDiscriminatedUnion:()=>o.jv,ZodEffects:()=>o.k1,ZodEnum:()=>o.Vb,ZodError:()=>l.G,ZodFirstPartyTypeKind:()=>o.kY,ZodFunction:()=>o.CZ,ZodIntersection:()=>o.Jv,ZodIssueCode:()=>l.eq,ZodLazy:()=>o.Ih,ZodLiteral:()=>o.DN,ZodMap:()=>o.Ut,ZodNaN:()=>o.Tq,ZodNativeEnum:()=>o.WM,ZodNever:()=>o.iS,ZodNull:()=>o.PQ,ZodNullable:()=>o.l1,ZodNumber:()=>o.rS,ZodObject:()=>o.bv,ZodOptional:()=>o.Ii,ZodParsedType:()=>s.Zp,ZodPipeline:()=>o._c,ZodPromise:()=>o.$i,ZodReadonly:()=>o.EV,ZodRecord:()=>o.b8,ZodSchema:()=>o.lK,ZodSet:()=>o.Kz,ZodString:()=>o.ND,ZodSymbol:()=>o.K5,ZodTransformer:()=>o.BG,ZodTuple:()=>o.y0,ZodType:()=>o.aR,ZodUndefined:()=>o._Z,ZodUnion:()=>o.fZ,ZodUnknown:()=>o._,ZodVoid:()=>o.a0,addIssueToContext:()=>i.zn,any:()=>o.bz,array:()=>o.YO,bigint:()=>o.o,boolean:()=>o.zM,coerce:()=>o.au,custom:()=>o.Ie,date:()=>o.p6,datetimeRegex:()=>o.fm,defaultErrorMap:()=>a.su,discriminatedUnion:()=>o.gM,effect:()=>o.QZ,enum:()=>o.k5,function:()=>o.fH,getErrorMap:()=>a.$W,getParsedType:()=>s.CR,instanceof:()=>o.Nl,intersection:()=>o.E$,isAborted:()=>i.G4,isAsync:()=>i.xP,isDirty:()=>i.DM,isValid:()=>i.fn,late:()=>o.fn,lazy:()=>o.RZ,literal:()=>o.eu,makeIssue:()=>i.y7,map:()=>o.Tj,nan:()=>o.oi,nativeEnum:()=>o.fc,never:()=>o.Zm,null:()=>o.ch,nullable:()=>o.me,number:()=>o.ai,object:()=>o.Ik,objectUtil:()=>s.o6,oboolean:()=>o.yN,onumber:()=>o.p7,optional:()=>o.lq,ostring:()=>o.Di,pipeline:()=>o.Tk,preprocess:()=>o.vk,promise:()=>o.iv,quotelessJson:()=>l.WI,record:()=>o.g1,set:()=>o.hZ,setErrorMap:()=>a.pJ,strictObject:()=>o.re,string:()=>o.Yj,symbol:()=>o.HR,transformer:()=>o.Gu,tuple:()=>o.PV,undefined:()=>o.Vx,union:()=>o.KC,unknown:()=>o.L5,util:()=>s.ZS,void:()=>o.rI});var a=r(78974),i=r(8722),s=r(45859),o=r(6663),l=r(64892);let c=n},30039:(e,t,r)=>{"use strict";r.d(t,{K:()=>N});var n=r(6029),a=r(55729),i=r(26615),s=r(76),o=r(5618),l=r(66404),c=r(92096),u=r(35192),d=r(80616),h=r(37666),f=r(60481),p=r(43016);let[m,b]=(0,r(36254).F)("Timeline component was not found in tree");var g=r(15862),y={root:"m_43657ece",itemTitle:"m_2ebe8099",item:"m_436178ff",itemBullet:"m_8affcee1",itemBody:"m_540e8f41"};let v={},w=(0,p.P9)((e,t)=>{let{classNames:r,className:a,style:i,styles:o,vars:c,__active:u,__align:h,__lineActive:p,__vars:m,bullet:y,radius:w,color:E,lineVariant:M,children:N,title:D,mod:x,...S}=(0,d.Y)("TimelineItem",v,e),T=b(),C=(0,g.xd)(),_={classNames:r,styles:o};return(0,n.jsxs)(f.a,{...T.getStyles("item",{..._,className:a,style:i}),mod:[{"line-active":p,active:u},x],ref:t,__vars:{"--tli-radius":w?(0,s.nJ)(w):void 0,"--tli-color":E?(0,l.r)(E,C):void 0,"--tli-border-style":M||void 0},...S,children:[(0,n.jsx)(f.a,{...T.getStyles("itemBullet",_),mod:{"with-child":!!y,align:h,active:u},children:y}),(0,n.jsxs)("div",{...T.getStyles("itemBody",_),children:[D&&(0,n.jsx)("div",{...T.getStyles("itemTitle",_),children:D}),(0,n.jsx)("div",{...T.getStyles("itemContent",_),children:N})]})]})});w.classes=y,w.displayName="@mantine/core/TimelineItem";let E={active:-1,align:"left",reverseActive:!1},M=(0,o.V)((e,{bulletSize:t,lineWidth:r,radius:n,color:a,autoContrast:o})=>({root:{"--tl-bullet-size":(0,i.D)(t),"--tl-line-width":(0,i.D)(r),"--tl-radius":void 0===n?void 0:(0,s.nJ)(n),"--tl-color":a?(0,l.r)(a,e):void 0,"--tl-icon-color":(0,u.v)(o,e)?(0,c.w)({color:a,theme:e,autoContrast:o}):void 0}})),N=(0,p.P9)((e,t)=>{let r=(0,d.Y)("Timeline",E,e),{classNames:i,className:s,style:o,styles:l,unstyled:c,vars:u,children:p,active:b,color:g,radius:v,bulletSize:w,align:N,lineWidth:D,reverseActive:x,mod:S,autoContrast:T,...C}=r,_=(0,h.I)({name:"Timeline",classes:y,props:r,className:s,style:o,classNames:i,styles:l,unstyled:c,vars:u,varsResolver:M}),k=a.Children.toArray(p),A=k.map((e,t)=>(0,a.cloneElement)(e,{unstyled:c,__align:N,__active:e.props?.active||(x?b>=k.length-t-1:b>=t),__lineActive:e.props?.lineActive||(x?b>=k.length-t-1:b-1>=t)}));return(0,n.jsx)(m,{value:{getStyles:_},children:(0,n.jsx)(f.a,{..._("root"),mod:[{align:N},S],ref:t,...C,children:A})})});N.classes=y,N.displayName="@mantine/core/Timeline",N.Item=w},34027:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var n=(0,r(41495).A)("outline","terminal","IconTerminal",[["path",{d:"M5 7l5 5l-5 5",key:"svg-0"}],["path",{d:"M12 19l7 0",key:"svg-1"}]])},35596:function(e,t,r){var n;e.exports=n||function(e,t){if("u">typeof window&&window.crypto&&(n=window.crypto),"u">typeof self&&self.crypto&&(n=self.crypto),"u">typeof globalThis&&globalThis.crypto&&(n=globalThis.crypto),!n&&"u">typeof window&&window.msCrypto&&(n=window.msCrypto),!n&&void 0!==r.g&&r.g.crypto&&(n=r.g.crypto),!n)try{n=r(25156)}catch(e){}var n,a=function(){if(n){if("function"==typeof n.getRandomValues)try{return n.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof n.randomBytes)try{return n.randomBytes(4).readInt32LE()}catch(e){}}throw Error("Native crypto module could not be used to get secure random number.")},i=Object.create||function(){function e(){}return function(t){var r;return e.prototype=t,r=new e,e.prototype=null,r}}(),s={},o=s.lib={},l=o.Base={extend:function(e){var t=i(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},c=o.WordArray=l.extend({init:function(e,r){e=this.words=e||[],t!=r?this.sigBytes=r:this.sigBytes=4*e.length},toString:function(e){return(e||d).stringify(this)},concat:function(e){var t=this.words,r=e.words,n=this.sigBytes,a=e.sigBytes;if(this.clamp(),n%4)for(var i=0;i>>2]>>>24-i%4*8&255;t[n+i>>>2]|=s<<24-(n+i)%4*8}else for(var o=0;o>>2]=r[o>>>2];return this.sigBytes+=a,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=0xffffffff<<32-r%4*8,t.length=e.ceil(r/4)},clone:function(){var e=l.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],r=0;r>>2]>>>24-a%4*8&255;n.push((i>>>4).toString(16)),n.push((15&i).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new c.init(r,t/2)}},h=u.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],a=0;a>>2]>>>24-a%4*8&255;n.push(String.fromCharCode(i))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new c.init(r,t)}},f=u.Utf8={stringify:function(e){try{return decodeURIComponent(escape(h.stringify(e)))}catch(e){throw Error("Malformed UTF-8 data")}},parse:function(e){return h.parse(unescape(encodeURIComponent(e)))}},p=o.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=f.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var r,n=this._data,a=n.words,i=n.sigBytes,s=this.blockSize,o=i/(4*s),l=(o=t?e.ceil(o):e.max((0|o)-this._minBufferSize,0))*s,u=e.min(4*l,i);if(l){for(var d=0;d{"use strict";let n=r(13157);e.exports=e=>"string"==typeof e?e.replace(n(),""):e},38067:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var n=(0,r(41495).A)("outline","package","IconPackage",[["path",{d:"M12 3l8 4.5l0 9l-8 4.5l-8 -4.5l0 -9l8 -4.5",key:"svg-0"}],["path",{d:"M12 12l8 -4.5",key:"svg-1"}],["path",{d:"M12 12l0 9",key:"svg-2"}],["path",{d:"M12 12l-8 -4.5",key:"svg-3"}],["path",{d:"M16 5.25l-8 4.5",key:"svg-4"}]])},38088:e=>{e.exports=function(){}},38311:(e,t,r)=>{var n=r(40561),a=r(43149),i=Object.hasOwnProperty,s=Object.create(null);for(var o in n)i.call(n,o)&&(s[n[o]]=o);var l=e.exports={to:{},get:{}};function c(e,t,r){return Math.min(Math.max(t,e),r)}function u(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}l.get=function(e){var t,r;switch(e.substring(0,3).toLowerCase()){case"hsl":t=l.get.hsl(e),r="hsl";break;case"hwb":t=l.get.hwb(e),r="hwb";break;default:t=l.get.rgb(e),r="rgb"}return t?{model:r,value:t}:null},l.get.rgb=function(e){if(!e)return null;var t,r,a,s=[0,0,0,1];if(t=e.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(r=0,a=t[2],t=t[1];r<3;r++){var o=2*r;s[r]=parseInt(t.slice(o,o+2),16)}a&&(s[3]=parseInt(a,16)/255)}else if(t=e.match(/^#([a-f0-9]{3,4})$/i)){for(r=0,a=(t=t[1])[3];r<3;r++)s[r]=parseInt(t[r]+t[r],16);a&&(s[3]=parseInt(a+a,16)/255)}else if(t=e.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(r=0;r<3;r++)s[r]=parseInt(t[r+1],0);t[4]&&(t[5]?s[3]=.01*parseFloat(t[4]):s[3]=parseFloat(t[4]))}else if(t=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(r=0;r<3;r++)s[r]=Math.round(2.55*parseFloat(t[r+1]));t[4]&&(t[5]?s[3]=.01*parseFloat(t[4]):s[3]=parseFloat(t[4]))}else if(!(t=e.match(/^(\w+)$/)))return null;else return"transparent"===t[1]?[0,0,0,0]:i.call(n,t[1])?((s=n[t[1]])[3]=1,s):null;for(r=0;r<3;r++)s[r]=c(s[r],0,255);return s[3]=c(s[3],0,1),s},l.get.hsl=function(e){if(!e)return null;var t=e.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var r=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,c(parseFloat(t[2]),0,100),c(parseFloat(t[3]),0,100),c(isNaN(r)?1:r,0,1)]}return null},l.get.hwb=function(e){if(!e)return null;var t=e.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var r=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,c(parseFloat(t[2]),0,100),c(parseFloat(t[3]),0,100),c(isNaN(r)?1:r,0,1)]}return null},l.to.hex=function(){var e=a(arguments);return"#"+u(e[0])+u(e[1])+u(e[2])+(e[3]<1?u(Math.round(255*e[3])):"")},l.to.rgb=function(){var e=a(arguments);return e.length<4||1===e[3]?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},l.to.rgb.percent=function(){var e=a(arguments),t=Math.round(e[0]/255*100),r=Math.round(e[1]/255*100),n=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+t+"%, "+r+"%, "+n+"%)":"rgba("+t+"%, "+r+"%, "+n+"%, "+e[3]+")"},l.to.hsl=function(){var e=a(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},l.to.hwb=function(){var e=a(arguments),t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},l.to.keyword=function(e){return s[e.slice(0,3)]}},38314:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var n=(0,r(41495).A)("outline","text-wrap-disabled","IconTextWrapDisabled",[["path",{d:"M4 6l10 0",key:"svg-0"}],["path",{d:"M4 18l10 0",key:"svg-1"}],["path",{d:"M4 12h17l-3 -3m0 6l3 -3",key:"svg-2"}]])},38561:e=>{var t=Math.max;e.exports=function(e,r,n,a){for(var i=-1,s=e.length,o=n.length,l=-1,c=r.length,u=t(s-o,0),d=Array(c+u),h=!a;++l{"use strict";r.d(t,{A:()=>n});var n=(0,r(41495).A)("outline","arrow-forward-up","IconArrowForwardUp",[["path",{d:"M15 14l4 -4l-4 -4",key:"svg-0"}],["path",{d:"M19 10h-11a4 4 0 1 0 0 8h1",key:"svg-1"}]])},39785:(e,t,r)=>{"use strict";r.d(t,{o:()=>a});var n=r(55729);function a(e,t,r={leading:!1}){let[i,s]=(0,n.useState)(e),o=(0,n.useRef)(!1),l=(0,n.useRef)(null),c=(0,n.useRef)(!1),u=()=>window.clearTimeout(l.current);return(0,n.useEffect)(()=>{o.current&&(!c.current&&r.leading?(c.current=!0,s(e)):(u(),l.current=window.setTimeout(()=>{c.current=!1,s(e)},t)))},[e,r.leading,t]),(0,n.useEffect)(()=>(o.current=!0,u),[]),[i,u]}},40399:(e,t,r)=>{"use strict";r.d(t,{RH:()=>i}),r(55729);var n=r(67549);let a=new WeakMap;function i(e,t){let r=(0,n.Pj)(t),a=s(r);for(let[n,i]of e)(!a.has(n)||(null==t?void 0:t.dangerouslyForceHydrate))&&(a.add(n),r.set(n,i))}let s=e=>{let t=a.get(e);return t||(t=new WeakSet,a.set(e,t)),t}},40561:e=>{"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},43149:(e,t,r)=>{"use strict";var n=r(229),a=Array.prototype.concat,i=Array.prototype.slice,s=e.exports=function(e){for(var t=[],r=0,s=e.length;r{var n=r(72203);e.exports=r(43862)(n)},44595:(e,t,r)=>{"use strict";r.d(t,{r:()=>M});var n=r(6029);r(55729);var a=r(80616),i=r(37666),s=r(42098),o=r(60481),l=r(43016),c=r(78704),u=r(70603),d=r(93778),h=r(76),f=r(40461),p=r(69584),m=r(15862),b=r(19589);function g({spacing:e,verticalSpacing:t,cols:r,selector:a}){let i=(0,m.xd)(),s=void 0===t?e:t,o=(0,d.J)({"--sg-spacing-x":(0,h.GY)((0,p.D)(e)),"--sg-spacing-y":(0,h.GY)((0,p.D)(s)),"--sg-cols":(0,p.D)(r)?.toString()}),l=(0,c.H)(i.breakpoints).reduce((t,n)=>(t[n]||(t[n]={}),"object"==typeof e&&void 0!==e[n]&&(t[n]["--sg-spacing-x"]=(0,h.GY)(e[n])),"object"==typeof s&&void 0!==s[n]&&(t[n]["--sg-spacing-y"]=(0,h.GY)(s[n])),"object"==typeof r&&void 0!==r[n]&&(t[n]["--sg-cols"]=r[n]),t),{}),u=(0,f.q)((0,c.H)(l),i.breakpoints).filter(e=>(0,c.H)(l[e.value]).length>0).map(e=>({query:`(min-width: ${i.breakpoints[e.value]})`,styles:l[e.value]}));return(0,n.jsx)(b.K,{styles:o,media:u,selector:a})}function y(e){return"object"==typeof e&&null!==e?(0,c.H)(e):[]}function v({spacing:e,verticalSpacing:t,cols:r,selector:a}){let i=void 0===t?e:t,s=(0,d.J)({"--sg-spacing-x":(0,h.GY)((0,p.D)(e)),"--sg-spacing-y":(0,h.GY)((0,p.D)(i)),"--sg-cols":(0,p.D)(r)?.toString()}),o=function({spacing:e,verticalSpacing:t,cols:r}){return Array.from(new Set([...y(e),...y(t),...y(r)])).sort((e,t)=>(0,u.px)(e)-(0,u.px)(t))}({spacing:e,verticalSpacing:t,cols:r}),l=o.reduce((t,n)=>(t[n]||(t[n]={}),"object"==typeof e&&void 0!==e[n]&&(t[n]["--sg-spacing-x"]=(0,h.GY)(e[n])),"object"==typeof i&&void 0!==i[n]&&(t[n]["--sg-spacing-y"]=(0,h.GY)(i[n])),"object"==typeof r&&void 0!==r[n]&&(t[n]["--sg-cols"]=r[n]),t),{}),c=o.map(e=>({query:`simple-grid (min-width: ${e})`,styles:l[e]}));return(0,n.jsx)(b.K,{styles:s,container:c,selector:a})}var w={container:"m_925c2d2c",root:"m_2415a157"};let E={cols:1,spacing:"md",type:"media"},M=(0,l.P9)((e,t)=>{let r=(0,a.Y)("SimpleGrid",E,e),{classNames:l,className:c,style:u,styles:d,unstyled:h,vars:f,cols:p,verticalSpacing:m,spacing:b,type:y,...M}=r,N=(0,i.I)({name:"SimpleGrid",classes:w,props:r,className:c,style:u,classNames:l,styles:d,unstyled:h,vars:f}),D=(0,s.C)();return"container"===y?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(v,{...r,selector:`.${D}`}),(0,n.jsx)("div",{...N("container"),children:(0,n.jsx)(o.a,{ref:t,...N("root",{className:D}),...M})})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(g,{...r,selector:`.${D}`}),(0,n.jsx)(o.a,{ref:t,...N("root",{className:D}),...M})]})});M.classes=w,M.displayName="@mantine/core/SimpleGrid"},46375:e=>{function t(e){return e&&e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function r(e){return e}function n(e,n){let a=(n=n||{}).delimiter||".",i=n.maxDepth,s=n.transformKey||r,o={};return!function e(r,l,c){c=c||1,Object.keys(r).forEach(function(u){let d=r[u],h=n.safe&&Array.isArray(d),f=Object.prototype.toString.call(d),p=t(d),m=l?l+a+s(u):s(u);if(!h&&!p&&("[object Object]"===f||"[object Array]"===f)&&Object.keys(d).length&&(!n.maxDepth||c0&&(n=u(r.shift()),d=u(r[0]))}h[n]=e(a[t],i)}),c}},48286:e=>{e.exports=function(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n;return n}},48718:(e,t,r)=>{let n=r(40561),a={};for(let e of Object.keys(n))a[n[e]]=e;let i={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(let t of(e.exports=i,Object.keys(i))){if(!("channels"in i[t]))throw Error("missing channels property: "+t);if(!("labels"in i[t]))throw Error("missing channel labels property: "+t);if(i[t].labels.length!==i[t].channels)throw Error("channel and label counts mismatch: "+t);let{channels:e,labels:r}=i[t];delete i[t].channels,delete i[t].labels,Object.defineProperty(i[t],"channels",{value:e}),Object.defineProperty(i[t],"labels",{value:r})}i.rgb.hsl=function(e){let t,r=e[0]/255,n=e[1]/255,a=e[2]/255,i=Math.min(r,n,a),s=Math.max(r,n,a),o=s-i;s===i?t=0:r===s?t=(n-a)/o:n===s?t=2+(a-r)/o:a===s&&(t=4+(r-n)/o),(t=Math.min(60*t,360))<0&&(t+=360);let l=(i+s)/2;return[t,100*(s===i?0:l<=.5?o/(s+i):o/(2-s-i)),100*l]},i.rgb.hsv=function(e){let t,r,n,a,i,s=e[0]/255,o=e[1]/255,l=e[2]/255,c=Math.max(s,o,l),u=c-Math.min(s,o,l),d=function(e){return(c-e)/6/u+.5};return 0===u?(a=0,i=0):(i=u/c,t=d(s),r=d(o),n=d(l),s===c?a=n-r:o===c?a=1/3+t-n:l===c&&(a=2/3+r-t),a<0?a+=1:a>1&&(a-=1)),[360*a,100*i,100*c]},i.rgb.hwb=function(e){let t=e[0],r=e[1],n=e[2];return[i.rgb.hsl(e)[0],1/255*Math.min(t,Math.min(r,n))*100,100*(n=1-1/255*Math.max(t,Math.max(r,n)))]},i.rgb.cmyk=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,a=Math.min(1-t,1-r,1-n);return[100*((1-t-a)/(1-a)||0),100*((1-r-a)/(1-a)||0),100*((1-n-a)/(1-a)||0),100*a]},i.rgb.keyword=function(e){let t,r=a[e];if(r)return r;let i=1/0;for(let r of Object.keys(n)){let a=n[r],s=(e[0]-a[0])**2+(e[1]-a[1])**2+(e[2]-a[2])**2;s.04045?((t+.055)/1.055)**2.4:t/12.92)+.3576*(r=r>.04045?((r+.055)/1.055)**2.4:r/12.92)+.1805*(n=n>.04045?((n+.055)/1.055)**2.4:n/12.92)),100*(.2126*t+.7152*r+.0722*n),100*(.0193*t+.1192*r+.9505*n)]},i.rgb.lab=function(e){let t=i.rgb.xyz(e),r=t[0],n=t[1],a=t[2];return r/=95.047,n/=100,a/=108.883,[116*(n=n>.008856?n**(1/3):7.787*n+16/116)-16,500*((r=r>.008856?r**(1/3):7.787*r+16/116)-n),200*(n-(a=a>.008856?a**(1/3):7.787*a+16/116))]},i.hsl.rgb=function(e){let t,r,n,a=e[0]/360,i=e[1]/100,s=e[2]/100;if(0===i)return[n=255*s,n,n];t=s<.5?s*(1+i):s+i-s*i;let o=2*s-t,l=[0,0,0];for(let e=0;e<3;e++)(r=a+-(1/3*(e-1)))<0&&r++,r>1&&r--,n=6*r<1?o+(t-o)*6*r:2*r<1?t:3*r<2?o+(t-o)*(2/3-r)*6:o,l[e]=255*n;return l},i.hsl.hsv=function(e){let t=e[0],r=e[1]/100,n=e[2]/100,a=r,i=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,a*=i<=1?i:2-i;let s=(n+r)/2;return[t,100*(0===n?2*a/(i+a):2*r/(n+r)),100*s]},i.hsv.rgb=function(e){let t=e[0]/60,r=e[1]/100,n=e[2]/100,a=Math.floor(t)%6,i=t-Math.floor(t),s=255*n*(1-r),o=255*n*(1-r*i),l=255*n*(1-r*(1-i));switch(n*=255,a){case 0:return[n,l,s];case 1:return[o,n,s];case 2:return[s,n,l];case 3:return[s,o,n];case 4:return[l,s,n];case 5:return[n,s,o]}},i.hsv.hsl=function(e){let t,r,n=e[0],a=e[1]/100,i=e[2]/100,s=Math.max(i,.01);r=(2-a)*i;let o=(2-a)*s;return[n,100*(t=(t=a*s/(o<=1?o:2-o))||0),100*(r/=2)]},i.hwb.rgb=function(e){let t,r,n,a,i=e[0]/360,s=e[1]/100,o=e[2]/100,l=s+o;l>1&&(s/=l,o/=l);let c=Math.floor(6*i),u=1-o;t=6*i-c,(1&c)!=0&&(t=1-t);let d=s+t*(u-s);switch(c){default:case 6:case 0:r=u,n=d,a=s;break;case 1:r=d,n=u,a=s;break;case 2:r=s,n=u,a=d;break;case 3:r=s,n=d,a=u;break;case 4:r=d,n=s,a=u;break;case 5:r=u,n=s,a=d}return[255*r,255*n,255*a]},i.cmyk.rgb=function(e){let t=e[0]/100,r=e[1]/100,n=e[2]/100,a=e[3]/100;return[255*(1-Math.min(1,t*(1-a)+a)),255*(1-Math.min(1,r*(1-a)+a)),255*(1-Math.min(1,n*(1-a)+a))]},i.xyz.rgb=function(e){let t,r,n,a=e[0]/100,i=e[1]/100,s=e[2]/100;return t=(t=3.2406*a+-1.5372*i+-.4986*s)>.0031308?1.055*t**(1/2.4)-.055:12.92*t,r=(r=-.9689*a+1.8758*i+.0415*s)>.0031308?1.055*r**(1/2.4)-.055:12.92*r,n=(n=.0557*a+-.204*i+1.057*s)>.0031308?1.055*n**(1/2.4)-.055:12.92*n,[255*(t=Math.min(Math.max(0,t),1)),255*(r=Math.min(Math.max(0,r),1)),255*(n=Math.min(Math.max(0,n),1))]},i.xyz.lab=function(e){let t=e[0],r=e[1],n=e[2];return t/=95.047,r/=100,n/=108.883,[116*(r=r>.008856?r**(1/3):7.787*r+16/116)-16,500*((t=t>.008856?t**(1/3):7.787*t+16/116)-r),200*(r-(n=n>.008856?n**(1/3):7.787*n+16/116))]},i.lab.xyz=function(e){let t,r,n,a=e[0],i=e[1],s=e[2];t=i/500+(r=(a+16)/116),n=r-s/200;let o=r**3,l=t**3,c=n**3;return r=(o>.008856?o:(r-16/116)/7.787)*100,[t=(l>.008856?l:(t-16/116)/7.787)*95.047,r,n=(c>.008856?c:(n-16/116)/7.787)*108.883]},i.lab.lch=function(e){let t,r=e[0],n=e[1],a=e[2];return(t=360*Math.atan2(a,n)/2/Math.PI)<0&&(t+=360),[r,Math.sqrt(n*n+a*a),t]},i.lch.lab=function(e){let t=e[0],r=e[1],n=e[2]/360*2*Math.PI;return[t,r*Math.cos(n),r*Math.sin(n)]},i.rgb.ansi16=function(e,t=null){let[r,n,a]=e,s=null===t?i.rgb.hsv(e)[2]:t;if(0===(s=Math.round(s/50)))return 30;let o=30+(Math.round(a/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return 2===s&&(o+=60),o},i.hsv.ansi16=function(e){return i.rgb.ansi16(i.hsv.rgb(e),e[2])},i.rgb.ansi256=function(e){let t=e[0],r=e[1],n=e[2];return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},i.ansi16.rgb=function(e){let t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];let r=(~~(e>50)+1)*.5;return[(1&t)*r*255,(t>>1&1)*r*255,(t>>2&1)*r*255]},i.ansi256.rgb=function(e){let t;if(e>=232){let t=(e-232)*10+8;return[t,t,t]}return[Math.floor((e-=16)/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},i.rgb.hex=function(e){let t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},i.hex.rgb=function(e){let t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];3===t[0].length&&(r=r.split("").map(e=>e+e).join(""));let n=parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},i.rgb.hcg=function(e){let t,r=e[0]/255,n=e[1]/255,a=e[2]/255,i=Math.max(Math.max(r,n),a),s=Math.min(Math.min(r,n),a),o=i-s;return t=o<1?s/(1-o):0,[360*((o<=0?0:i===r?(n-a)/o%6:i===n?2+(a-r)/o:4+(r-n)/o)/6%1),100*o,100*t]},i.hsl.hcg=function(e){let t=e[1]/100,r=e[2]/100,n=r<.5?2*t*r:2*t*(1-r),a=0;return n<1&&(a=(r-.5*n)/(1-n)),[e[0],100*n,100*a]},i.hsv.hcg=function(e){let t=e[1]/100,r=e[2]/100,n=t*r,a=0;return n<1&&(a=(r-n)/(1-n)),[e[0],100*n,100*a]},i.hcg.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100;if(0===r)return[255*n,255*n,255*n];let a=[0,0,0],i=t%1*6,s=i%1,o=1-s,l=0;switch(Math.floor(i)){case 0:a[0]=1,a[1]=s,a[2]=0;break;case 1:a[0]=o,a[1]=1,a[2]=0;break;case 2:a[0]=0,a[1]=1,a[2]=s;break;case 3:a[0]=0,a[1]=o,a[2]=1;break;case 4:a[0]=s,a[1]=0,a[2]=1;break;default:a[0]=1,a[1]=0,a[2]=o}return l=(1-r)*n,[(r*a[0]+l)*255,(r*a[1]+l)*255,(r*a[2]+l)*255]},i.hcg.hsv=function(e){let t=e[1]/100,r=t+e[2]/100*(1-t),n=0;return r>0&&(n=t/r),[e[0],100*n,100*r]},i.hcg.hsl=function(e){let t=e[1]/100,r=e[2]/100*(1-t)+.5*t,n=0;return r>0&&r<.5?n=t/(2*r):r>=.5&&r<1&&(n=t/(2*(1-r))),[e[0],100*n,100*r]},i.hcg.hwb=function(e){let t=e[1]/100,r=t+e[2]/100*(1-t);return[e[0],(r-t)*100,(1-r)*100]},i.hwb.hcg=function(e){let t=e[1]/100,r=1-e[2]/100,n=r-t,a=0;return n<1&&(a=(r-n)/(1-n)),[e[0],100*n,100*a]},i.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},i.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},i.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},i.gray.hsl=function(e){return[0,0,e[0]]},i.gray.hsv=i.gray.hsl,i.gray.hwb=function(e){return[0,100,e[0]]},i.gray.cmyk=function(e){return[0,0,0,e[0]]},i.gray.lab=function(e){return[e[0],0,0]},i.gray.hex=function(e){let t=255&Math.round(e[0]/100*255),r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r},i.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},53416:(e,t,r)=>{function n(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}n.prototype=r(91357)(r(38088).prototype),n.prototype.constructor=n,e.exports=n},54396:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var n=(0,r(41495).A)("outline","map-pin","IconMapPin",[["path",{d:"M9 11a3 3 0 1 0 6 0a3 3 0 0 0 -6 0",key:"svg-0"}],["path",{d:"M17.657 16.657l-4.243 4.243a2 2 0 0 1 -2.827 0l-4.244 -4.243a8 8 0 1 1 11.314 0z",key:"svg-1"}]])},55160:(e,t,r)=>{var n=r(72203),a=r(27803),i=r(77991),s=r(1178),o=r(89765),l=r(84116),c=r(24656),u=r(44040),d=r(1620),h=r(98888),f=Math.max;e.exports=function(e,t,r,p,m,b,g,y){var v=2&t;if(!v&&"function"!=typeof e)throw TypeError("Expected a function");var w=p?p.length:0;if(w||(t&=-97,p=m=void 0),g=void 0===g?g:f(h(g),0),y=void 0===y?y:h(y),w-=m?m.length:0,64&t){var E=p,M=m;p=m=void 0}var N=v?void 0:l(e),D=[e,t,r,p,m,E,M,b,g,y];if(N&&c(D,N),e=D[0],t=D[1],r=D[2],p=D[3],m=D[4],(y=D[9]=void 0===D[9]?v?0:e.length:f(D[9]-w,0))||!(24&t)||(t&=-25),t&&1!=t)x=8==t||16==t?i(e,t,y):32!=t&&33!=t||m.length?s.apply(void 0,D):o(e,t,r,p);else var x=a(e,t,r);return d((N?n:u)(x,D),e,t)}},56906:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var n=(0,r(41495).A)("outline","message","IconMessage",[["path",{d:"M8 9h8",key:"svg-0"}],["path",{d:"M8 13h6",key:"svg-1"}],["path",{d:"M18 4a3 3 0 0 1 3 3v8a3 3 0 0 1 -3 3h-5l-5 3v-3h-2a3 3 0 0 1 -3 -3v-8a3 3 0 0 1 3 -3h12z",key:"svg-2"}]])},61411:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var n=(0,r(41495).A)("outline","list","IconList",[["path",{d:"M9 6l11 0",key:"svg-0"}],["path",{d:"M9 12l11 0",key:"svg-1"}],["path",{d:"M9 18l11 0",key:"svg-2"}],["path",{d:"M5 6l0 .01",key:"svg-3"}],["path",{d:"M5 12l0 .01",key:"svg-4"}],["path",{d:"M5 18l0 .01",key:"svg-5"}]])},61441:(e,t,r)=>{"use strict";r.d(t,{i:()=>o});var n=r(6029),a=r(55729),i=r(80616);let s={timeout:1e3};function o(e){let{children:t,timeout:r,value:o,...l}=(0,i.Y)("CopyButton",s,e),c=function({timeout:e=2e3}={}){let[t,r]=(0,a.useState)(null),[n,i]=(0,a.useState)(!1),[s,o]=(0,a.useState)(null);return{copy:t=>{"clipboard"in navigator?navigator.clipboard.writeText(t).then(()=>{window.clearTimeout(s),o(window.setTimeout(()=>i(!1),e)),i(!0)}).catch(e=>r(e)):r(Error("useClipboard: navigator.clipboard is not supported"))},reset:()=>{i(!1),r(null),window.clearTimeout(s)},error:t,copied:n}}({timeout:r});return(0,n.jsx)(n.Fragment,{children:t({copy:()=>c.copy(o),copied:c.copied,...l})})}o.displayName="@mantine/core/CopyButton"},62118:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var n=(0,r(41495).A)("outline","player-play","IconPlayerPlay",[["path",{d:"M7 4v16l13 -8z",key:"svg-0"}]])},67125:(e,t,r)=>{let n=r(38311),a=r(8271),i=["keyword","gray","hex"],s={};for(let e of Object.keys(a))s[[...a[e].labels].sort().join("")]=e;let o={};function l(e,t){let r,c;if(!(this instanceof l))return new l(e,t);if(t&&t in i&&(t=null),t&&!(t in a))throw Error("Unknown model: "+t);if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof l)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if("string"==typeof e){let t=n.get(e);if(null===t)throw Error("Unable to parse color from string: "+e);this.model=t.model,c=a[this.model].channels,this.color=t.value.slice(0,c),this.valpha="number"==typeof t.value[c]?t.value[c]:1}else if(e.length>0){this.model=t||"rgb",c=a[this.model].channels;let r=Array.prototype.slice.call(e,0,c);this.color=d(r,c),this.valpha="number"==typeof e[c]?e[c]:1}else if("number"==typeof e)this.model="rgb",this.color=[e>>16&255,e>>8&255,255&e],this.valpha=1;else{this.valpha=1;let t=Object.keys(e);"alpha"in e&&(t.splice(t.indexOf("alpha"),1),this.valpha="number"==typeof e.alpha?e.alpha:0);let n=t.sort().join("");if(!(n in s))throw Error("Unable to parse color from object: "+JSON.stringify(e));this.model=s[n];let{labels:i}=a[this.model],o=[];for(r=0;r(e%360+360)%360),saturationl:c("hsl",1,u(100)),lightness:c("hsl",2,u(100)),saturationv:c("hsv",1,u(100)),value:c("hsv",2,u(100)),chroma:c("hcg",1,u(100)),gray:c("hcg",2,u(100)),white:c("hwb",1,u(100)),wblack:c("hwb",2,u(100)),cyan:c("cmyk",0,u(100)),magenta:c("cmyk",1,u(100)),yellow:c("cmyk",2,u(100)),black:c("cmyk",3,u(100)),x:c("xyz",0,u(95.047)),y:c("xyz",1,u(100)),z:c("xyz",2,u(108.833)),l:c("lab",0,u(100)),a:c("lab",1),b:c("lab",2),keyword(e){return void 0!==e?new l(e):a[this.model].keyword(this.color)},hex(e){return void 0!==e?new l(e):n.to.hex(this.rgb().round().color)},hexa(e){if(void 0!==e)return new l(e);let t=this.rgb().round().color,r=Math.round(255*this.valpha).toString(16).toUpperCase();return 1===r.length&&(r="0"+r),n.to.hex(t)+r},rgbNumber(){let e=this.rgb().color;return(255&e[0])<<16|(255&e[1])<<8|255&e[2]},luminosity(){let e=this.rgb().color,t=[];for(let[r,n]of e.entries()){let e=n/255;t[r]=e<=.04045?e/12.92:((e+.055)/1.055)**2.4}return .2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(e){let t=this.luminosity(),r=e.luminosity();return t>r?(t+.05)/(r+.05):(r+.05)/(t+.05)},level(e){let t=this.contrast(e);return t>=7?"AAA":t>=4.5?"AA":""},isDark(){let e=this.rgb().color;return(2126*e[0]+7152*e[1]+722*e[2])/1e4<128},isLight(){return!this.isDark()},negate(){let e=this.rgb();for(let t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten(e){let t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken(e){let t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate(e){let t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate(e){let t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten(e){let t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken(e){let t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale(){let e=this.rgb().color,t=.3*e[0]+.59*e[1]+.11*e[2];return l.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){let t=this.hsl(),r=t.color[0];return r=(r=(r+e)%360)<0?360+r:r,t.color[0]=r,t},mix(e,t){if(!e||!e.rgb)throw Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);let r=e.rgb(),n=this.rgb(),a=void 0===t?.5:t,i=2*a-1,s=r.alpha()-n.alpha(),o=((i*s==-1?i:(i+s)/(1+i*s))+1)/2,c=1-o;return l.rgb(o*r.red()+c*n.red(),o*r.green()+c*n.green(),o*r.blue()+c*n.blue(),r.alpha()*a+n.alpha()*(1-a))}},Object.keys(a))){if(i.includes(e))continue;let{channels:t}=a[e];l.prototype[e]=function(...t){var r;return this.model===e?new l(this):t.length>0?new l(t,e):new l([...Array.isArray(r=a[this.model][e].raw(this.color))?r:[r],this.valpha],e)},l[e]=function(...r){let n=r[0];return"number"==typeof n&&(n=d(r,t)),new l(n,e)}}function c(e,t,r){for(let n of e=Array.isArray(e)?e:[e])(o[n]||(o[n]=[]))[t]=r;return e=e[0],function(n){let a;return void 0!==n?(r&&(n=r(n)),(a=this[e]()).color[t]=n):(a=this[e]().color[t],r&&(a=r(a))),a}}function u(e){return function(t){return Math.max(0,Math.min(e,t))}}function d(e,t){for(let r=0;r{"use strict";r.d(t,{E:()=>p});var n=r(6029),a=r(26615);r(55729);var i=r(76),s=r(5618),o=r(80616),l=r(37666),c=r(60481),u=r(43016),d={root:"m_18320242","skeleton-fade":"m_299c329c"};let h={visible:!0,animate:!0},f=(0,s.V)((e,{width:t,height:r,radius:n,circle:s})=>({root:{"--skeleton-height":(0,a.D)(r),"--skeleton-width":s?(0,a.D)(r):(0,a.D)(t),"--skeleton-radius":s?"1000px":void 0===n?void 0:(0,i.nJ)(n)}})),p=(0,u.P9)((e,t)=>{let r=(0,o.Y)("Skeleton",h,e),{classNames:a,className:i,style:s,styles:u,unstyled:p,vars:m,width:b,height:g,circle:y,visible:v,radius:w,animate:E,mod:M,...N}=r,D=(0,l.I)({name:"Skeleton",classes:d,props:r,className:i,style:s,classNames:a,styles:u,unstyled:p,vars:m,varsResolver:f});return(0,n.jsx)(c.a,{ref:t,...D("root"),mod:[{visible:v,animate:E},M],...N})});p.classes=d,p.displayName="@mantine/core/Skeleton"},69926:e=>{var t=/\{\n\/\* \[wrapped with (.+)\] \*/,r=/,? & /;e.exports=function(e){var n=e.match(t);return n?n[1].split(r):[]}},69986:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var n=(0,r(41495).A)("outline","arrows-left-right","IconArrowsLeftRight",[["path",{d:"M21 17l-18 0",key:"svg-0"}],["path",{d:"M6 10l-3 -3l3 -3",key:"svg-1"}],["path",{d:"M3 7l18 0",key:"svg-2"}],["path",{d:"M18 20l3 -3l-3 -3",key:"svg-3"}]])},72203:(e,t,r)=>{var n=r(5549),a=r(88149);e.exports=a?function(e,t){return a.set(e,t),e}:n},73454:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var n=(0,r(41495).A)("outline","rotate-clockwise","IconRotateClockwise",[["path",{d:"M4.05 11a8 8 0 1 1 .5 4m-.5 5v-5h5",key:"svg-0"}]])},74209:e=>{var t=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;e.exports=function(e,r){var n=r.length;if(!n)return e;var a=n-1;return r[a]=(n>1?"& ":"")+r[a],r=r.join(n>2?", ":" "),e.replace(t,"{\n/* [wrapped with "+r+"] */\n")}},74981:e=>{var t=Math.max;e.exports=function(e,r,n,a){for(var i=-1,s=e.length,o=-1,l=n.length,c=-1,u=r.length,d=t(s-l,0),h=Array(d+u),f=!a;++i{e.exports=function(e){return null===e}},77991:(e,t,r)=>{var n=r(93248),a=r(17782),i=r(1178),s=r(1920),o=r(8578),l=r(81515),c=r(45516);e.exports=function(e,t,r){var u=a(e);function d(){for(var a=arguments.length,h=Array(a),f=a,p=o(d);f--;)h[f]=arguments[f];var m=a<3&&h[0]!==p&&h[a-1]!==p?[]:l(h,p);return(a-=m.length){"use strict";r.d(t,{A:()=>n});var n=(0,r(41495).A)("outline","arrows-minimize","IconArrowsMinimize",[["path",{d:"M5 9l4 0l0 -4",key:"svg-0"}],["path",{d:"M3 3l6 6",key:"svg-1"}],["path",{d:"M5 15l4 0l0 4",key:"svg-2"}],["path",{d:"M3 21l6 -6",key:"svg-3"}],["path",{d:"M19 9l-4 0l0 -4",key:"svg-4"}],["path",{d:"M15 9l6 -6",key:"svg-5"}],["path",{d:"M19 15l-4 0l0 4",key:"svg-6"}],["path",{d:"M15 15l6 6",key:"svg-7"}]])},81055:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var n=(0,r(41495).A)("outline","arrows-maximize","IconArrowsMaximize",[["path",{d:"M16 4l4 0l0 4",key:"svg-0"}],["path",{d:"M14 10l6 -6",key:"svg-1"}],["path",{d:"M8 20l-4 0l0 -4",key:"svg-2"}],["path",{d:"M4 20l6 -6",key:"svg-3"}],["path",{d:"M16 20l4 0l0 -4",key:"svg-4"}],["path",{d:"M14 14l6 6",key:"svg-5"}],["path",{d:"M8 4l-4 0l0 4",key:"svg-6"}],["path",{d:"M4 4l6 6",key:"svg-7"}]])},81244:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var n=(0,r(41495).A)("outline","toggle-left","IconToggleLeft",[["path",{d:"M8 12m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-0"}],["path",{d:"M2 6m0 6a6 6 0 0 1 6 -6h8a6 6 0 0 1 6 6v0a6 6 0 0 1 -6 6h-8a6 6 0 0 1 -6 -6z",key:"svg-1"}]])},81515:e=>{var t="__lodash_placeholder__";e.exports=function(e,r){for(var n=-1,a=e.length,i=0,s=[];++n{function n(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=0xffffffff,this.__views__=[]}n.prototype=r(91357)(r(38088).prototype),n.prototype.constructor=n,e.exports=n},84116:(e,t,r)=>{var n=r(88149),a=r(78383);e.exports=n?function(e){return n.get(e)}:a},85274:(e,t,r)=>{var n=r(83529),a=r(84116),i=r(94209),s=r(93407);e.exports=function(e){var t=i(e),r=s[t];if("function"!=typeof r||!(t in n.prototype))return!1;if(e===r)return!0;var o=a(r);return!!o&&e===o[0]}},86823:(e,t,r)=>{"use strict";r.d(t,{B:()=>e1});var n,a,i,s,o,l,c,u,d,h,f,p,m,b,g={};function y(e,t,r,n){return new(r||(r=Promise))(function(a,i){function s(e){try{l(n.next(e))}catch(e){i(e)}}function o(e){try{l(n.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?a(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,o)}l((n=n.apply(e,t||[])).next())})}r.r(g),r.d(g,{default:()=>ep}),(n=f||(f={}))[n.Document=0]="Document",n[n.DocumentType=1]="DocumentType",n[n.Element=2]="Element",n[n.Text=3]="Text",n[n.CDATA=4]="CDATA",n[n.Comment=5]="Comment";var v=function(){function e(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}return e.prototype.getId=function(e){if(!e)return -1;var t,r=null==(t=this.getMeta(e))?void 0:t.id;return null!=r?r:-1},e.prototype.getNode=function(e){return this.idNodeMap.get(e)||null},e.prototype.getIds=function(){return Array.from(this.idNodeMap.keys())},e.prototype.getMeta=function(e){return this.nodeMetaMap.get(e)||null},e.prototype.removeNodeFromMap=function(e){var t=this,r=this.getId(e);this.idNodeMap.delete(r),e.childNodes&&e.childNodes.forEach(function(e){return t.removeNodeFromMap(e)})},e.prototype.has=function(e){return this.idNodeMap.has(e)},e.prototype.hasNode=function(e){return this.nodeMetaMap.has(e)},e.prototype.add=function(e,t){var r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)},e.prototype.replace=function(e,t){var r=this.getNode(e);if(r){var n=this.nodeMetaMap.get(r);n&&this.nodeMetaMap.set(t,n)}this.idNodeMap.set(e,t)},e.prototype.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},e}(),w=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;function E(e){return e?e.replace(/^\s+|\s+$/g,""):""}var M={script:"noscript",altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",fedropshadow:"feDropShadow",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient"},N=/([^\\]):hover/,D=RegExp(N.source,"g");function x(e,t){var r=null==t?void 0:t.stylesWithHoverClass.get(e);if(r)return r;var n=function(e,t){void 0===t&&(t={});var r,n=1,a=1;function i(e){var t=e.match(/\n/g);t&&(n+=t.length);var r=e.lastIndexOf("\n");a=-1===r?a+e.length:e.length-r}function s(){var e={line:n,column:a};return function(t){return t.position=new o(e),h(/^\s*/),t}}var o=function(e){this.start=e,this.end={line:n,column:a},this.source=t.source};o.prototype.content=e;var l=[];function c(r){var i=Error("".concat(t.source||"",":").concat(n,":").concat(a,": ").concat(r));if(i.reason=r,i.filename=t.source,i.line=n,i.column=a,i.source=e,t.silent)l.push(i);else throw i}function u(){return h(/^{\s*/)}function d(){return h(/^}/)}function h(t){var r=t.exec(e);if(r){var n=r[0];return i(n),e=e.slice(n.length),r}}function f(e){var t;for(void 0===e&&(e=[]);t=p();)!1!==t&&e.push(t),t=p();return e}function p(){var t=s();if("/"===e.charAt(0)&&"*"===e.charAt(1)){for(var r=2;""!==e.charAt(r)&&("*"!==e.charAt(r)||"/"!==e.charAt(r+1));)++r;if(r+=2,""===e.charAt(r-1))return c("End of comment missing");var n=e.slice(2,r-2);return a+=2,i(n),e=e.slice(r),a+=2,t({type:"comment",comment:n})}}function m(){var e=h(/^([^{]+)/);if(e)return E(e[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,function(e){return e.replace(/,/g,"‌")}).split(/\s*(?![^(]*\)),\s*/).map(function(e){return e.replace(/\u200C/g,",")})}function b(){var e=s(),t=h(/^(\*?[-#\/\*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(t){var r=E(t[0]);if(!h(/^:\s*/))return c("property missing ':'");var n=h(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+)/),a=e({type:"declaration",property:r.replace(w,""),value:n?E(n[0]).replace(w,""):""});return h(/^[;\s]*/),a}}function g(){var e,t=[];if(!u())return c("missing '{'");for(f(t);e=b();)!1!==e&&(t.push(e),f(t)),e=b();return d()?t:c("missing '}'")}var y=N("import"),v=N("charset"),M=N("namespace");function N(e){var t=RegExp("^@"+e+"\\s*([^;]+);");return function(){var r=s(),n=h(t);if(n){var a={type:e};return a[e]=n[1].trim(),r(a)}}}return function e(t,r){for(var n=t&&"string"==typeof t.type,a=n?t:r,i=0,s=Object.keys(t);i'):r.write('')),h=r),n.add(h,e),(e.type===f.Document||e.type===f.Element)&&!(void 0!==a&&a))for(var p=0,m=e.childNodes;pA.test(e)?e:e.replace(k,(e,t)=>t?t.toUpperCase():""),R=/\B([A-Z])/g,I=e=>e.replace(R,"-$1").toLowerCase();class F{constructor(...e){this.parentElement=null,this.parentNode=null,this.firstChild=null,this.lastChild=null,this.previousSibling=null,this.nextSibling=null,this.ELEMENT_NODE=m.ELEMENT_NODE,this.TEXT_NODE=m.TEXT_NODE}get childNodes(){let e=[],t=this.firstChild;for(;t;)e.push(t),t=t.nextSibling;return e}contains(e){if(!(e instanceof F)||e.ownerDocument!==this.ownerDocument)return!1;if(e===this)return!0;for(;e.parentNode;){if(e.parentNode===this)return!0;e=e.parentNode}return!1}appendChild(e){throw Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(e,t){throw Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(e){throw Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}}function j(e){return class t extends e{constructor(...e){super(e),this.nodeType=m.DOCUMENT_NODE,this.nodeName="#document",this.compatMode="CSS1Compat",this.RRNodeType=p.Document,this.textContent=null,this.ownerDocument=this}get documentElement(){return this.childNodes.find(e=>e.RRNodeType===p.Element&&"HTML"===e.tagName)||null}get body(){var e;return(null==(e=this.documentElement)?void 0:e.childNodes.find(e=>e.RRNodeType===p.Element&&"BODY"===e.tagName))||null}get head(){var e;return(null==(e=this.documentElement)?void 0:e.childNodes.find(e=>e.RRNodeType===p.Element&&"HEAD"===e.tagName))||null}get implementation(){return this}get firstElementChild(){return this.documentElement}appendChild(e){let t=e.RRNodeType;if((t===p.Element||t===p.DocumentType)&&this.childNodes.some(e=>e.RRNodeType===t))throw Error(`RRDomException: Failed to execute 'appendChild' on 'RRNode': Only one ${t===p.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);let r=G(this,e);return r.parentElement=null,r}insertBefore(e,t){let r=e.RRNodeType;if((r===p.Element||r===p.DocumentType)&&this.childNodes.some(e=>e.RRNodeType===r))throw Error(`RRDomException: Failed to execute 'insertBefore' on 'RRNode': Only one ${r===p.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);let n=V(this,e,t);return n.parentElement=null,n}removeChild(e){return H(this,e)}open(){this.firstChild=null,this.lastChild=null}close(){}write(e){let t;if(''===e?t="-//W3C//DTD XHTML 1.0 Transitional//EN":''===e&&(t="-//W3C//DTD HTML 4.0 Transitional//EN"),t){let e=this.createDocumentType("html",t,"");this.open(),this.appendChild(e)}}createDocument(e,r,n){return new t}createDocumentType(e,t,r){let n=new(L(F))(e,t,r);return n.ownerDocument=this,n}createElement(e){let t=new(B(F))(e);return t.ownerDocument=this,t}createElementNS(e,t){return this.createElement(t)}createTextNode(e){let t=new(U(F))(e);return t.ownerDocument=this,t}createComment(e){let t=new(z(F))(e);return t.ownerDocument=this,t}createCDATASection(e){let t=new(W(F))(e);return t.ownerDocument=this,t}toString(){return"RRDocument"}}}function L(e){return class extends e{constructor(e,t,r){super(),this.nodeType=m.DOCUMENT_TYPE_NODE,this.RRNodeType=p.DocumentType,this.name=e,this.publicId=t,this.systemId=r,this.nodeName=e,this.textContent=null}toString(){return"RRDocumentType"}}}function B(e){return class extends e{constructor(e){super(),this.nodeType=m.ELEMENT_NODE,this.RRNodeType=p.Element,this.attributes={},this.shadowRoot=null,this.tagName=e.toUpperCase(),this.nodeName=e.toUpperCase()}get textContent(){let e="";return this.childNodes.forEach(t=>e+=t.textContent),e}set textContent(e){this.firstChild=null,this.lastChild=null,this.appendChild(this.ownerDocument.createTextNode(e))}get classList(){return new Y(this.attributes.class,e=>{this.attributes.class=e})}get id(){return this.attributes.id||""}get className(){return this.attributes.class||""}get style(){var e;let t,r,n=this.attributes.style?(e=this.attributes.style,t={},r=/:(.+)/,e.replace(/\/\*.*?\*\//g,"").split(/;(?![^(]*\))/g).forEach(function(e){if(e){let n=e.split(r);n.length>1&&(t[O(n[0].trim())]=n[1].trim())}}),t):{},a=/\B([A-Z])/g;return n.setProperty=(e,t,r)=>{if(a.test(e))return;let i=O(e);t?n[i]=t:delete n[i],"important"===r&&(n[i]+=" !important"),this.attributes.style=_(n)},n.removeProperty=e=>{if(a.test(e))return"";let t=O(e),r=n[t]||"";return delete n[t],this.attributes.style=_(n),r},n}getAttribute(e){return this.attributes[e]||null}setAttribute(e,t){this.attributes[e]=t}setAttributeNS(e,t,r){this.setAttribute(t,r)}removeAttribute(e){delete this.attributes[e]}appendChild(e){return G(this,e)}insertBefore(e,t){return V(this,e,t)}removeChild(e){return H(this,e)}attachShadow(e){let t=this.ownerDocument.createElement("SHADOWROOT");return this.shadowRoot=t,t}dispatchEvent(e){return!0}toString(){let e="";for(let t in this.attributes)e+=`${t}="${this.attributes[t]}" `;return`${this.tagName} ${e}`}}}function P(e){return class extends e{attachShadow(e){throw Error("RRDomException: Failed to execute 'attachShadow' on 'RRElement': This RRElement does not support attachShadow")}play(){this.paused=!1}pause(){this.paused=!0}}}function U(e){return class extends e{constructor(e){super(),this.nodeType=m.TEXT_NODE,this.nodeName="#text",this.RRNodeType=p.Text,this.data=e}get textContent(){return this.data}set textContent(e){this.data=e}toString(){return`RRText text=${JSON.stringify(this.data)}`}}}function z(e){return class extends e{constructor(e){super(),this.nodeType=m.COMMENT_NODE,this.nodeName="#comment",this.RRNodeType=p.Comment,this.data=e}get textContent(){return this.data}set textContent(e){this.data=e}toString(){return`RRComment text=${JSON.stringify(this.data)}`}}}function W(e){return class extends e{constructor(e){super(),this.nodeName="#cdata-section",this.nodeType=m.CDATA_SECTION_NODE,this.RRNodeType=p.CDATA,this.data=e}get textContent(){return this.data}set textContent(e){this.data=e}toString(){return`RRCDATASection data=${JSON.stringify(this.data)}`}}}class Y{constructor(e,t){if(this.classes=[],this.add=(...e)=>{for(let t of e){let e=String(t);this.classes.indexOf(e)>=0||this.classes.push(e)}this.onChange&&this.onChange(this.classes.join(" "))},this.remove=(...e)=>{this.classes=this.classes.filter(t=>-1===e.indexOf(t)),this.onChange&&this.onChange(this.classes.join(" "))},e){const t=e.trim().split(/\s+/);this.classes.push(...t)}this.onChange=t}}function G(e,t){return t.parentNode&&t.parentNode.removeChild(t),e.lastChild?(e.lastChild.nextSibling=t,t.previousSibling=e.lastChild):(e.firstChild=t,t.previousSibling=null),e.lastChild=t,t.nextSibling=null,t.parentNode=e,t.parentElement=e,t.ownerDocument=e.ownerDocument,t}function V(e,t,r){if(!r)return G(e,t);if(r.parentNode!==e)throw Error("Failed to execute 'insertBefore' on 'RRNode': The RRNode before which the new node is to be inserted is not a child of this RRNode.");return t===r||(t.parentNode&&t.parentNode.removeChild(t),t.previousSibling=r.previousSibling,r.previousSibling=t,t.nextSibling=r,t.previousSibling?t.previousSibling.nextSibling=t:e.firstChild=t,t.parentElement=e,t.parentNode=e,t.ownerDocument=e.ownerDocument),t}function H(e,t){if(t.parentNode!==e)throw Error("Failed to execute 'removeChild' on 'RRNode': The RRNode to be removed is not a child of this RRNode.");return t.previousSibling?t.previousSibling.nextSibling=t.nextSibling:e.firstChild=t.nextSibling,t.nextSibling?t.nextSibling.previousSibling=t.previousSibling:e.lastChild=t.previousSibling,t.previousSibling=null,t.nextSibling=null,t.parentElement=null,t.parentNode=null,t}(i=m||(m={}))[i.PLACEHOLDER=0]="PLACEHOLDER",i[i.ELEMENT_NODE=1]="ELEMENT_NODE",i[i.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",i[i.TEXT_NODE=3]="TEXT_NODE",i[i.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",i[i.ENTITY_REFERENCE_NODE=5]="ENTITY_REFERENCE_NODE",i[i.ENTITY_NODE=6]="ENTITY_NODE",i[i.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",i[i.COMMENT_NODE=8]="COMMENT_NODE",i[i.DOCUMENT_NODE=9]="DOCUMENT_NODE",i[i.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",i[i.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE";let Z={svg:"http://www.w3.org/2000/svg","xlink:href":"http://www.w3.org/1999/xlink",xmlns:"http://www.w3.org/2000/xmlns/"},$={altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",fedropshadow:"feDropShadow",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient"},X=null;function q(e,t,r,n=t.mirror||t.ownerDocument.mirror){let a=(e=function(e,t,r,n){var a;if(r.afterAppend&&!X&&(X=new WeakSet,setTimeout(()=>{X=null},0)),!Q(e,t)){let i=J(t,r.mirror,n);null==(a=e.parentNode)||a.replaceChild(i,e),e=i}switch(t.RRNodeType){case p.Document:if(!ee(e,t,r.mirror,n)){let a=n.getMeta(t);a&&(r.mirror.removeNodeFromMap(e),e.close(),e.open(),r.mirror.add(e,a),null==X||X.add(e))}break;case p.Element:{let a=e;switch(t.tagName){case"IFRAME":{let a=e.contentDocument;if(!a)break;q(a,t.contentDocument,r,n)}}if(t.shadowRoot){a.shadowRoot||a.attachShadow({mode:"open"});let e=a.shadowRoot.childNodes,i=t.shadowRoot.childNodes;(e.length>0||i.length>0)&&K(Array.from(e),i,a.shadowRoot,r,n)}}}return e}(e,t,r,n)).childNodes,i=t.childNodes;(a.length>0||i.length>0)&&K(Array.from(a),i,e,r,n),function(e,t,r,n){var a;switch(t.RRNodeType){case p.Document:{let e=t.scrollData;e&&r.applyScroll(e,!0);break}case p.Element:switch(function(e,t,r){let n=e.attributes,a=t.attributes;for(let n in a){let i=a[n],s=r.getMeta(t);if((null==s?void 0:s.isSVG)&&Z[n])e.setAttributeNS(Z[n],n,i);else if("CANVAS"===t.tagName&&"rr_dataURL"===n){let t=document.createElement("img");t.src=i,t.onload=()=>{let r=e.getContext("2d");r&&r.drawImage(t,0,0,t.width,t.height)}}else e.setAttribute(n,i)}for(let{name:t}of Array.from(n))t in a||e.removeAttribute(t);t.scrollLeft&&(e.scrollLeft=t.scrollLeft),t.scrollTop&&(e.scrollTop=t.scrollTop)}(e,t,n),t.scrollData&&r.applyScroll(t.scrollData,!0),t.inputData&&r.applyInput(t.inputData),t.tagName){case"AUDIO":case"VIDEO":void 0!==t.paused&&(t.paused?e.pause():e.play()),void 0!==t.muted&&(e.muted=t.muted),void 0!==t.volume&&(e.volume=t.volume),void 0!==t.currentTime&&(e.currentTime=t.currentTime),void 0!==t.playbackRate&&(e.playbackRate=t.playbackRate);break;case"CANVAS":if(null!==t.rr_dataURL){let r=document.createElement("img");r.onload=()=>{let t=e.getContext("2d");t&&t.drawImage(r,0,0,r.width,r.height)},r.src=t.rr_dataURL}t.canvasMutations.forEach(t=>r.applyCanvas(t.event,t.mutation,e));break;case"STYLE":{let n=e.sheet;n&&t.rules.forEach(e=>r.applyStyleSheetMutation(e,n))}}break;case p.Text:case p.Comment:case p.CDATA:e.textContent!==t.data&&(e.textContent=t.data)}(null==X?void 0:X.has(e))&&(X.delete(e),null==(a=r.afterAppend)||a.call(r,e,r.mirror.getId(e)))}(e,t,r,n)}function K(e,t,r,n,a){let i,s,o=0,l=e.length-1,c=0,u=t.length-1,d=e[o],h=e[l],f=t[c],p=t[u];for(;o<=l&&c<=u;)if(void 0===d)d=e[++o];else if(void 0===h)h=e[--l];else if(ee(d,f,n.mirror,a))q(d,f,n,a),d=e[++o],f=t[++c];else if(ee(h,p,n.mirror,a))q(h,p,n,a),h=e[--l],p=t[--u];else if(ee(d,p,n.mirror,a)){try{r.insertBefore(d,h.nextSibling)}catch(e){console.warn(e)}q(d,p,n,a),d=e[++o],p=t[--u]}else if(ee(h,f,n.mirror,a)){try{r.insertBefore(h,d)}catch(e){console.warn(e)}q(h,f,n,a),h=e[--l],f=t[++c]}else{if(!i){i={};for(let t=o;t<=l;t++){let r=e[t];r&&n.mirror.hasNode(r)&&(i[n.mirror.getId(r)]=t)}}let u=e[s=i[a.getId(f)]];if(void 0!==s&&u&&ee(u,f,n.mirror,a)){try{r.insertBefore(u,d)}catch(e){console.warn(e)}q(u,f,n,a),e[s]=void 0}else{let t=J(f,n.mirror,a);"#document"===r.nodeName&&d&&(t.nodeType===t.DOCUMENT_TYPE_NODE&&d.nodeType===d.DOCUMENT_TYPE_NODE||t.nodeType===t.ELEMENT_NODE&&d.nodeType===d.ELEMENT_NODE)&&(r.removeChild(d),n.mirror.removeNodeFromMap(d),d=e[++o]);try{r.insertBefore(t,d||null),q(t,f,n,a)}catch(e){console.warn(e)}}f=t[++c]}if(o>l){let e=t[u+1],i=null;for(e&&(i=n.mirror.getNode(a.getId(e)));c<=u;++c){let e=J(t[c],n.mirror,a);try{r.insertBefore(e,i),q(e,t[c],n,a)}catch(e){console.warn(e)}}}else if(c>u)for(;o<=l;o++){let t=e[o];if(t&&t.parentNode===r)try{r.removeChild(t),n.mirror.removeNodeFromMap(t)}catch(e){console.warn(e)}}}function J(e,t,r){let n=r.getId(e),a=r.getMeta(e),i=null;if(n>-1&&(i=t.getNode(n)),null!==i&&Q(i,e))return i;switch(e.RRNodeType){case p.Document:i=new Document;break;case p.DocumentType:i=document.implementation.createDocumentType(e.name,e.publicId,e.systemId);break;case p.Element:{let t=e.tagName.toLowerCase();t=$[t]||t,i=a&&"isSVG"in a&&(null==a?void 0:a.isSVG)?document.createElementNS(Z.svg,t):document.createElement(e.tagName);break}case p.Text:i=document.createTextNode(e.data);break;case p.Comment:i=document.createComment(e.data);break;case p.CDATA:i=document.createCDATASection(e.data)}a&&t.add(i,Object.assign({},a));try{null==X||X.add(i)}catch(e){}return i}function Q(e,t){return e.nodeType===t.nodeType&&(e.nodeType!==e.ELEMENT_NODE||e.tagName.toUpperCase()===t.tagName)}function ee(e,t,r,n){let a=r.getId(e),i=n.getId(t);return -1!==a&&a===i&&Q(e,t)}class et extends j(F){constructor(e){super(),this.UNSERIALIZED_STARTING_ID=-2,this._unserializedId=this.UNSERIALIZED_STARTING_ID,this.mirror=new eh,this.scrollData=null,e&&(this.mirror=e)}get unserializedId(){return this._unserializedId--}createDocument(e,t,r){return new et}createDocumentType(e,t,r){let n=new er(e,t,r);return n.ownerDocument=this,n}createElement(e){let t,r=e.toUpperCase();switch(r){case"AUDIO":case"VIDEO":t=new ea(r);break;case"IFRAME":t=new eo(r,this.mirror);break;case"CANVAS":t=new ei(r);break;case"STYLE":t=new es(r);break;default:t=new en(r)}return t.ownerDocument=this,t}createComment(e){let t=new ec(e);return t.ownerDocument=this,t}createCDATASection(e){let t=new eu(e);return t.ownerDocument=this,t}createTextNode(e){let t=new el(e);return t.ownerDocument=this,t}destroyTree(){this.firstChild=null,this.lastChild=null,this.mirror.reset()}open(){super.open(),this._unserializedId=this.UNSERIALIZED_STARTING_ID}}let er=L(F);class en extends B(F){constructor(){super(...arguments),this.inputData=null,this.scrollData=null}}class ea extends P(en){}class ei extends en{constructor(){super(...arguments),this.rr_dataURL=null,this.canvasMutations=[]}getContext(){return null}}class es extends en{constructor(){super(...arguments),this.rules=[]}}class eo extends en{constructor(e,t){super(e),this.contentDocument=new et,this.contentDocument.mirror=t}}let el=U(F),ec=z(F),eu=W(F);function ed(e,t,r,n){let a;switch(e.nodeType){case m.DOCUMENT_NODE:n&&"IFRAME"===n.nodeName?a=n.contentDocument:(a=t).compatMode=e.compatMode;break;case m.DOCUMENT_TYPE_NODE:a=t.createDocumentType(e.name,e.publicId,e.systemId);break;case m.ELEMENT_NODE:{let r=e instanceof HTMLFormElement?"FORM":e.tagName.toUpperCase(),n=a=t.createElement(r);for(let{name:t,value:r}of Array.from(e.attributes))n.attributes[t]=r;e.scrollLeft&&(n.scrollLeft=e.scrollLeft),e.scrollTop&&(n.scrollTop=e.scrollTop);break}case m.TEXT_NODE:a=t.createTextNode(e.textContent||"");break;case m.CDATA_SECTION_NODE:a=t.createCDATASection(e.data);break;case m.COMMENT_NODE:a=t.createComment(e.textContent||"");break;case m.DOCUMENT_FRAGMENT_NODE:a=n.attachShadow({mode:"open"});break;default:return null}let i=r.getMeta(e);return t instanceof et&&(i||(i=ef(a,t.unserializedId),r.add(e,i)),t.mirror.add(a,Object.assign({},i))),a}class eh{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(e){var t;if(!e)return -1;let r=null==(t=this.getMeta(e))?void 0:t.id;return null!=r?r:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){let t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){let r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}replace(e,t){let r=this.getNode(e);if(r){let e=this.nodeMetaMap.get(r);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function ef(e,t){switch(e.RRNodeType){case p.Document:return{id:t,type:e.RRNodeType,childNodes:[]};case p.DocumentType:return{id:t,type:e.RRNodeType,name:e.name,publicId:e.publicId,systemId:e.systemId};case p.Element:return{id:t,type:e.RRNodeType,tagName:e.tagName.toLowerCase(),attributes:{},childNodes:[]};case p.Text:case p.Comment:return{id:t,type:e.RRNodeType,textContent:e.textContent||""};case p.CDATA:return{id:t,type:e.RRNodeType,textContent:""}}}function ep(e){return{all:e=e||new Map,on:function(t,r){var n=e.get(t);n?n.push(r):e.set(t,[r])},off:function(t,r){var n=e.get(t);n&&(r?n.splice(n.indexOf(r)>>>0,1):e.set(t,[]))},emit:function(t,r){var n=e.get(t);n&&n.slice().map(function(e){e(r)}),(n=e.get("*"))&&n.slice().map(function(e){e(t,r)})}}}var em=((s=em||{})[s.DomContentLoaded=0]="DomContentLoaded",s[s.Load=1]="Load",s[s.FullSnapshot=2]="FullSnapshot",s[s.IncrementalSnapshot=3]="IncrementalSnapshot",s[s.Meta=4]="Meta",s[s.Custom=5]="Custom",s[s.Plugin=6]="Plugin",s),eb=((o=eb||{})[o.Mutation=0]="Mutation",o[o.MouseMove=1]="MouseMove",o[o.MouseInteraction=2]="MouseInteraction",o[o.Scroll=3]="Scroll",o[o.ViewportResize=4]="ViewportResize",o[o.Input=5]="Input",o[o.TouchMove=6]="TouchMove",o[o.MediaInteraction=7]="MediaInteraction",o[o.StyleSheetRule=8]="StyleSheetRule",o[o.CanvasMutation=9]="CanvasMutation",o[o.Font=10]="Font",o[o.Log=11]="Log",o[o.Drag=12]="Drag",o[o.StyleDeclaration=13]="StyleDeclaration",o[o.Selection=14]="Selection",o[o.AdoptedStyleSheet=15]="AdoptedStyleSheet",o),eg=((l=eg||{})[l.MouseUp=0]="MouseUp",l[l.MouseDown=1]="MouseDown",l[l.Click=2]="Click",l[l.ContextMenu=3]="ContextMenu",l[l.DblClick=4]="DblClick",l[l.Focus=5]="Focus",l[l.Blur=6]="Blur",l[l.TouchStart=7]="TouchStart",l[l.TouchMove_Departed=8]="TouchMove_Departed",l[l.TouchEnd=9]="TouchEnd",l[l.TouchCancel=10]="TouchCancel",l),ey=((c=ey||{})[c.Mouse=0]="Mouse",c[c.Pen=1]="Pen",c[c.Touch=2]="Touch",c),ev=((u=ev||{})[u["2D"]=0]="2D",u[u.WebGL=1]="WebGL",u[u.WebGL2=2]="WebGL2",u),ew=((d=ew||{}).Start="start",d.Pause="pause",d.Resume="resume",d.Resize="resize",d.Finish="finish",d.FullsnapshotRebuilded="fullsnapshot-rebuilded",d.LoadStylesheetStart="load-stylesheet-start",d.LoadStylesheetEnd="load-stylesheet-end",d.SkipStart="skip-start",d.SkipEnd="skip-end",d.MouseInteraction="mouse-interaction",d.EventCast="event-cast",d.CustomEvent="custom-event",d.Flush="flush",d.StateChange="state-change",d.PlayBack="play-back",d.Destroy="destroy",d);class eE{constructor(e=[],t){this.timeOffset=0,this.raf=null,this.actions=e,this.speed=t.speed}addAction(e){let t=!0===this.raf;if(!this.actions.length||this.actions[this.actions.length-1].delay<=e.delay)this.actions.push(e);else{let t=this.findActionIndex(e);this.actions.splice(t,0,e)}t&&(this.raf=requestAnimationFrame(this.rafCheck.bind(this)))}start(){this.timeOffset=0,this.lastTimestamp=performance.now(),this.raf=requestAnimationFrame(this.rafCheck.bind(this))}rafCheck(){let e=performance.now();for(this.timeOffset+=(e-this.lastTimestamp)*this.speed,this.lastTimestamp=e;this.actions.length;){let e=this.actions[0];if(this.timeOffset>=e.delay)this.actions.shift(),e.doAction();else break}this.actions.length>0?this.raf=requestAnimationFrame(this.rafCheck.bind(this)):this.raf=!0}clear(){this.raf&&(!0!==this.raf&&cancelAnimationFrame(this.raf),this.raf=null),this.actions.length=0}setSpeed(e){this.speed=e}isActive(){return null!==this.raf}findActionIndex(e){let t=0,r=this.actions.length-1;for(;t<=r;){let n=Math.floor((t+r)/2);if(this.actions[n].delaye.delay))return n+1;r=n-1}}return t}}function eM(e,t){if(e.type===em.IncrementalSnapshot&&e.data.source===eb.MouseMove&&e.data.positions&&e.data.positions.length){let r=e.data.positions[0].timeOffset,n=e.timestamp+r;return e.delay=n-t,n-t}return e.delay=e.timestamp-t,e.delay}function eN(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,i=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(a)throw a.error}}return s}(h=b||(b={}))[h.NotStarted=0]="NotStarted",h[h.Running=1]="Running",h[h.Stopped=2]="Stopped";var eD={type:"xstate.init"};function ex(e){return void 0===e?[]:[].concat(e)}function eS(e){return{type:"xstate.assign",assignment:e}}function eT(e,t){return"string"==typeof(e="string"==typeof e&&t&&t[e]?t[e]:e)?{type:e}:"function"==typeof e?{type:e.name,exec:e}:e}function eC(e){return function(t){return e===t}}function e_(e){return"string"==typeof e?{type:e}:e}function ek(e,t){return{value:e,context:t,actions:[],changed:!1,matches:eC(e)}}function eA(e,t,r){var n=t,a=!1;return[e.filter(function(e){if("xstate.assign"===e.type){a=!0;var t=Object.assign({},n);return"function"==typeof e.assignment?t=e.assignment(n,r):Object.keys(e.assignment).forEach(function(a){t[a]="function"==typeof e.assignment[a]?e.assignment[a](n,r):e.assignment[a]}),n=t,!1}return!0}),n,a]}function eO(e,t){void 0===t&&(t={});var r=eN(eA(ex(e.states[e.initial].entry).map(function(e){return eT(e,t.actions)}),e.context,eD),2),n=r[0],a=r[1],i={config:e,_options:t,initialState:{value:e.initial,actions:n,context:a,matches:eC(e.initial)},transition:function(t,r){var n,a,s="string"==typeof t?{value:t,context:e.context}:t,o=s.value,l=s.context,c=e_(r),u=e.states[o];if(u.on){var d=ex(u.on[c.type]);try{for(var h=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(d),f=h.next();!f.done;f=h.next()){var p=f.value;if(void 0===p)return ek(o,l);var m="string"==typeof p?{target:p}:p,b=m.target,g=m.actions,y=void 0===g?[]:g,v=m.cond,w=void 0===v?function(){return!0}:v,E=void 0===b,M=null!=b?b:o,N=e.states[M];if(w(l,c)){var D=eN(eA((E?ex(y):[].concat(u.exit,y,N.entry).filter(function(e){return e})).map(function(e){return eT(e,i._options.actions)}),l,c),3),x=D[0],S=D[1],T=D[2],C=null!=b?b:o;return{value:C,context:S,actions:x,changed:b!==o||x.length>0||T,matches:eC(C)}}}}catch(e){n={error:e}}finally{try{f&&!f.done&&(a=h.return)&&a.call(h)}finally{if(n)throw n.error}}}return ek(o,l)}};return i}var eR=function(e,t){return e.actions.forEach(function(r){var n=r.exec;return n&&n(e.context,t)})};function eI(e){var t=e.initialState,r=b.NotStarted,n=new Set,a={_machine:e,send:function(a){r===b.Running&&(eR(t=e.transition(t,a),e_(a)),n.forEach(function(e){return e(t)}))},subscribe:function(e){return n.add(e),e(t),{unsubscribe:function(){return n.delete(e)}}},start:function(n){if(n){var i="object"==typeof n?n:{context:e.config.context,value:n};t={value:i.value,actions:[],context:i.context,matches:eC(i.value)}}return r=b.Running,eR(t,eD),a},stop:function(){return r=b.Stopped,n.clear(),a},get state(){return t},get status(){return r}};return a}let eF="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.",ej={map:{},getId:()=>(console.error(eF),-1),getNode:()=>(console.error(eF),null),removeNodeFromMap(){console.error(eF)},has:()=>(console.error(eF),!1),reset(){console.error(eF)}};function eL(e,t){return!!("IFRAME"===e.nodeName&&t.getMeta(e))}function eB(e){return!!(null==e?void 0:e.shadowRoot)}function eP(e,t){let r=e[t[0]];return 1===t.length?r:eP(r.cssRules[t[1]].cssRules,t.slice(2))}function eU(e){let t=[...e],r=t.pop();return{positions:t,index:r}}"u">typeof window&&window.Proxy&&window.Reflect&&(ej=new Proxy(ej,{get:(e,t,r)=>("map"===t&&console.error(eF),Reflect.get(e,t,r))}));class ez{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){var t;return null!=(t=this.styleIDMap.get(e))?t:-1}has(e){return this.styleIDMap.has(e)}add(e,t){let r;return this.has(e)?this.getId(e):(r=void 0===t?this.id++:t,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r)}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}for(var eW="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",eY="u">4,u[l++]=(15&n)<<4|a>>2,u[l++]=(3&a)<<6|63&i;return c};let eH=new Map;function eZ(e,t){let r=eH.get(e);return r||(r=new Map,eH.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}function e$(e,t,r){return n=>y(this,void 0,void 0,function*(){if(n&&"object"==typeof n&&"rr_type"in n){if(r&&(r.isUnchanged=!1),"ImageBitmap"===n.rr_type&&"args"in n){let a=yield e$(e,t,r)(n.args);return yield createImageBitmap.apply(null,a)}if("index"in n){if(r||null===t)return n;let{rr_type:e,index:a}=n;return eZ(t,e)[a]}if("args"in n){let{rr_type:a,args:i}=n;return new window[a](...yield Promise.all(i.map(e$(e,t,r))))}else if("base64"in n)return eV(n.base64);else if("src"in n){let t=e.get(n.src);if(t)return t;{let t=new Image;return t.src=n.src,e.set(n.src,t),t}}else if("data"in n&&"Blob"===n.rr_type)return new Blob((yield Promise.all(n.data.map(e$(e,t,r)))),{type:n.type})}else if(Array.isArray(n))return yield Promise.all(n.map(e$(e,t,r)));return n})}let eX=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject"];function eq({event:e,mutation:t,target:r,imageMap:n,canvasEventMap:a,errorHandler:i}){return y(this,void 0,void 0,function*(){try{let s=a.get(e)||t,o="commands"in s?s.commands:[s];if([ev.WebGL,ev.WebGL2].includes(t.type)){for(let e=0;e{for(let t of(this.iframe.style.display="inherit",[this.mouseTail,this.iframe]))t&&(t.setAttribute("width",String(e.width)),t.setAttribute("height",String(e.height)))},this.applyEventsSynchronously=e=>{for(let t of e){switch(t.type){case em.DomContentLoaded:case em.Load:case em.Custom:continue;case em.FullSnapshot:case em.Meta:case em.Plugin:case em.IncrementalSnapshot:}this.getCastFn(t,!0)()}},this.getCastFn=(e,t=!1)=>{let r;switch(e.type){case em.DomContentLoaded:case em.Load:break;case em.Custom:r=()=>{this.emitter.emit(ew.CustomEvent,e)};break;case em.Meta:r=()=>this.emitter.emit(ew.Resize,{width:e.data.width,height:e.data.height});break;case em.FullSnapshot:r=()=>{var r;if(this.firstFullSnapshot){if(this.firstFullSnapshot===e){this.firstFullSnapshot=!0;return}}else this.firstFullSnapshot=!0;this.rebuildFullSnapshot(e,t),null==(r=this.iframe.contentWindow)||r.scrollTo(e.data.initialOffset),this.styleMirror.reset()};break;case em.IncrementalSnapshot:r=()=>{if(this.applyIncremental(e,t),!t&&(e===this.nextUserInteractionEvent&&(this.nextUserInteractionEvent=null,this.backToNormal()),this.config.skipInactive&&!this.nextUserInteractionEvent)){for(let t of this.service.state.context.events)if(!(t.timestamp<=e.timestamp)&&this.isUserInteraction(t)){t.delay-e.delay>1e4*this.speedService.state.context.timer.speed&&(this.nextUserInteractionEvent=t);break}if(this.nextUserInteractionEvent){let t={speed:Math.min(Math.round((this.nextUserInteractionEvent.delay-e.delay)/5e3),this.config.maxSpeed)};this.speedService.send({type:"FAST_FORWARD",payload:t}),this.emitter.emit(ew.SkipStart,t)}}}}return()=>{for(let n of(r&&r(),this.config.plugins||[]))n.handler&&n.handler(e,t,{replayer:this});this.service.send({type:"CAST_EVENT",payload:{event:e}});let n=this.service.state.context.events.length-1;if(!this.config.liveMode&&e===this.service.state.context.events[n]){let t=()=>{n{if(this.usingVirtualDom){let e={mirror:this.mirror,applyCanvas:(e,t,r)=>{eq({event:e,mutation:t,target:r,imageMap:this.imageMap,canvasEventMap:this.canvasEventMap,errorHandler:this.warnCanvasMutationFailed.bind(this)})},applyInput:this.applyInput.bind(this),applyScroll:this.applyScroll.bind(this),applyStyleSheetMutation:(e,t)=>{e.source===eb.StyleSheetRule?this.applyStyleSheetRule(e,t):e.source===eb.StyleDeclaration&&this.applyStyleDeclaration(e,t)},afterAppend:(e,t)=>{for(let r of this.config.plugins||[])r.onBuild&&r.onBuild(e,{id:t,replayer:this})}};if(this.iframe.contentDocument)try{q(this.iframe.contentDocument,this.virtualDom,e,this.virtualDom.mirror)}catch(e){console.warn(e)}if(this.virtualDom.destroyTree(),this.usingVirtualDom=!1,Object.keys(this.legacy_missingNodeRetryMap).length)for(let t in this.legacy_missingNodeRetryMap)try{let r=this.legacy_missingNodeRetryMap[t],n=J(r.node,this.mirror,this.virtualDom.mirror);q(n,r.node,e,this.virtualDom.mirror),r.node=n}catch(e){this.warn(e)}this.constructedStyleMutations.forEach(e=>{this.applyStyleSheetMutation(e)}),this.constructedStyleMutations=[],this.adoptedStyleSheets.forEach(e=>{this.applyAdoptedStyleSheet(e)}),this.adoptedStyleSheets=[]}if(this.mousePos&&(this.moveAndHover(this.mousePos.x,this.mousePos.y,this.mousePos.id,!0,this.mousePos.debugData),this.mousePos=null),!0===this.touchActive?this.mouse.classList.add("touch-active"):!1===this.touchActive&&this.mouse.classList.remove("touch-active"),this.touchActive=null,this.lastMouseDownEvent){let[e,t]=this.lastMouseDownEvent;e.dispatchEvent(t)}this.lastMouseDownEvent=null,this.lastSelectionData&&(this.applySelection(this.lastSelectionData),this.lastSelectionData=null)}),this.emitter.on(ew.PlayBack,()=>{this.firstFullSnapshot=null,this.mirror.reset(),this.styleMirror.reset()});const n=new eE([],{speed:this.config.speed});this.service=function(e,{getCastFn:t,applyEventsSynchronously:r,emitter:n}){return eI(eO({id:"player",context:e,initial:"paused",states:{playing:{on:{PAUSE:{target:"paused",actions:["pause"]},CAST_EVENT:{target:"playing",actions:"castEvent"},END:{target:"paused",actions:["resetLastPlayedEvent","pause"]},ADD_EVENT:{target:"playing",actions:["addEvent"]}}},paused:{on:{PLAY:{target:"playing",actions:["recordTimeOffset","play"]},CAST_EVENT:{target:"paused",actions:"castEvent"},TO_LIVE:{target:"live",actions:["startLive"]},ADD_EVENT:{target:"paused",actions:["addEvent"]}}},live:{on:{ADD_EVENT:{target:"live",actions:["addEvent"]},CAST_EVENT:{target:"live",actions:["castEvent"]}}}}},{actions:{castEvent:eS({lastPlayedEvent:(e,t)=>"CAST_EVENT"===t.type?t.payload.event:e.lastPlayedEvent}),recordTimeOffset:eS((e,t)=>{let r=e.timeOffset;return"payload"in t&&"timeOffset"in t.payload&&(r=t.payload.timeOffset),Object.assign(Object.assign({},e),{timeOffset:r,baselineTime:e.events[0].timestamp+r})}),play(e){var a;let{timer:i,events:s,baselineTime:o,lastPlayedEvent:l}=e;for(let e of(i.clear(),s))eM(e,o);let c=function(e,t){for(let r=e.length-1;r>=0;r--){let n=e[r];if(n.type===em.Meta&&n.timestamp<=t)return e.slice(r)}return e}(s,o),u=null==l?void 0:l.timestamp;(null==l?void 0:l.type)===em.IncrementalSnapshot&&l.data.source===eb.MouseMove&&(u=l.timestamp+(null==(a=l.data.positions[0])?void 0:a.timeOffset)),o<(u||0)&&n.emit(ew.PlayBack);let d=[];for(let e of c)if(!u||!(u{r()},delay:e.delay})}r(d),n.emit(ew.Flush),i.start()},pause(e){e.timer.clear()},resetLastPlayedEvent:eS(e=>Object.assign(Object.assign({},e),{lastPlayedEvent:null})),startLive:eS({baselineTime:(e,t)=>(e.timer.start(),"TO_LIVE"===t.type&&t.payload.baselineTime)?t.payload.baselineTime:Date.now()}),addEvent:eS((e,r)=>{let{baselineTime:n,timer:a,events:i}=e;if("ADD_EVENT"===r.type){let{event:e}=r.payload;eM(e,n);let s=i.length-1;if(!i[s]||i[s].timestamp<=e.timestamp)i.push(e);else{let t=-1,r=0;for(;r<=s;){let t=Math.floor((r+s)/2);i[t].timestamp<=e.timestamp?r=t+1:s=t-1}-1===t&&(t=r),i.splice(t,0,e)}let o=e.timestamp{l()},delay:e.delay})}return Object.assign(Object.assign({},e),{events:i})})}}))}({events:e.map(e=>t&&t.unpackFn?t.unpackFn(e):e).sort((e,t)=>e.timestamp-t.timestamp),timer:n,timeOffset:0,baselineTime:0,lastPlayedEvent:null},{getCastFn:this.getCastFn,applyEventsSynchronously:this.applyEventsSynchronously,emitter:this.emitter}),this.service.start(),this.service.subscribe(e=>{this.emitter.emit(ew.StateChange,{player:e})}),this.speedService=eI(eO({id:"speed",context:{normalSpeed:-1,timer:n},initial:"normal",states:{normal:{on:{FAST_FORWARD:{target:"skipping",actions:["recordSpeed","setSpeed"]},SET_SPEED:{target:"normal",actions:["setSpeed"]}}},skipping:{on:{BACK_TO_NORMAL:{target:"normal",actions:["restoreSpeed"]},SET_SPEED:{target:"normal",actions:["setSpeed"]}}}}},{actions:{setSpeed:(e,t)=>{"payload"in t&&e.timer.setSpeed(t.payload.speed)},recordSpeed:eS({normalSpeed:e=>e.timer.speed}),restoreSpeed:e=>{e.timer.setSpeed(e.normalSpeed)}}})),this.speedService.start(),this.speedService.subscribe(e=>{this.emitter.emit(ew.StateChange,{speed:e})});const a=this.service.state.context.events.find(e=>e.type===em.Meta),i=this.service.state.context.events.find(e=>e.type===em.FullSnapshot);if(a){const{width:e,height:t}=a.data;setTimeout(()=>{this.emitter.emit(ew.Resize,{width:e,height:t})},0)}i&&setTimeout(()=>{var e;this.firstFullSnapshot||(this.firstFullSnapshot=i,this.rebuildFullSnapshot(i),null==(e=this.iframe.contentWindow)||e.scrollTo(i.data.initialOffset))},1),this.service.state.context.events.find(e0)&&this.mouse.classList.add("touch-device")}get timer(){return this.service.state.context.timer}on(e,t){return this.emitter.on(e,t),this}off(e,t){return this.emitter.off(e,t),this}setConfig(e){Object.keys(e).forEach(t=>{e[t],this.config[t]=e[t]}),this.config.skipInactive||this.backToNormal(),void 0!==e.speed&&this.speedService.send({type:"SET_SPEED",payload:{speed:e.speed}}),void 0!==e.mouseTail&&(!1===e.mouseTail?this.mouseTail&&(this.mouseTail.style.display="none"):(this.mouseTail||(this.mouseTail=document.createElement("canvas"),this.mouseTail.width=Number.parseFloat(this.iframe.width),this.mouseTail.height=Number.parseFloat(this.iframe.height),this.mouseTail.classList.add("replayer-mouse-tail"),this.wrapper.insertBefore(this.mouseTail,this.iframe)),this.mouseTail.style.display="inherit"))}getMetaData(){let e=this.service.state.context.events[0],t=this.service.state.context.events[this.service.state.context.events.length-1];return{startTime:e.timestamp,endTime:t.timestamp,totalTime:t.timestamp-e.timestamp}}getCurrentTime(){return this.timer.timeOffset+this.getTimeOffset()}getTimeOffset(){let{baselineTime:e,events:t}=this.service.state.context;return e-t[0].timestamp}getMirror(){return this.mirror}play(e=0){var t,r;this.service.state.matches("paused")||this.service.send({type:"PAUSE"}),this.service.send({type:"PLAY",payload:{timeOffset:e}}),null==(r=null==(t=this.iframe.contentDocument)?void 0:t.getElementsByTagName("html")[0])||r.classList.remove("rrweb-paused"),this.emitter.emit(ew.Start)}pause(e){var t,r;void 0===e&&this.service.state.matches("playing")&&this.service.send({type:"PAUSE"}),"number"==typeof e&&(this.play(e),this.service.send({type:"PAUSE"})),null==(r=null==(t=this.iframe.contentDocument)?void 0:t.getElementsByTagName("html")[0])||r.classList.add("rrweb-paused"),this.emitter.emit(ew.Pause)}resume(e=0){this.warn("The 'resume' was deprecated in 1.0. Please use 'play' method which has the same interface."),this.play(e),this.emitter.emit(ew.Resume)}destroy(){this.pause(),this.config.root.removeChild(this.wrapper),this.emitter.emit(ew.Destroy)}startLive(e){this.service.send({type:"TO_LIVE",payload:{baselineTime:e}})}addEvent(e){let t=this.config.unpackFn?this.config.unpackFn(e):e;e0(t)&&this.mouse.classList.add("touch-device"),Promise.resolve().then(()=>this.service.send({type:"ADD_EVENT",payload:{event:t}}))}enableInteract(){this.iframe.setAttribute("scrolling","auto"),this.iframe.style.pointerEvents="auto"}disableInteract(){this.iframe.setAttribute("scrolling","no"),this.iframe.style.pointerEvents="none"}resetCache(){this.cache=S()}setupDom(){this.wrapper=document.createElement("div"),this.wrapper.classList.add("replayer-wrapper"),this.config.root.appendChild(this.wrapper),this.mouse=document.createElement("div"),this.mouse.classList.add("replayer-mouse"),this.wrapper.appendChild(this.mouse),!1!==this.config.mouseTail&&(this.mouseTail=document.createElement("canvas"),this.mouseTail.classList.add("replayer-mouse-tail"),this.mouseTail.style.display="inherit",this.wrapper.appendChild(this.mouseTail)),this.iframe=document.createElement("iframe");let e=["allow-same-origin"];this.config.UNSAFE_replayCanvas&&e.push("allow-scripts"),this.iframe.style.display="none",this.iframe.setAttribute("sandbox",e.join(" ")),this.disableInteract(),this.wrapper.appendChild(this.iframe),this.iframe.contentWindow&&this.iframe.contentDocument&&(!function(e=window,t=document){var r;if("scrollBehavior"in t.documentElement.style&&!0!==e.__forceSmoothScrollPolyfill__)return;let n=e.HTMLElement||e.Element,a={scroll:e.scroll||e.scrollTo,scrollBy:e.scrollBy,elementScroll:n.prototype.scroll||o,scrollIntoView:n.prototype.scrollIntoView},i=e.performance&&e.performance.now?e.performance.now.bind(e.performance):Date.now,s=+(r=e.navigator.userAgent,!!RegExp("MSIE |Trident/|Edge/").test(r));function o(e,t){this.scrollLeft=e,this.scrollTop=t}function l(e){if(null===e||"object"!=typeof e||void 0===e.behavior||"auto"===e.behavior||"instant"===e.behavior)return!0;if("object"==typeof e&&"smooth"===e.behavior)return!1;throw TypeError("behavior member of ScrollOptions "+e.behavior+" is not a valid value for enumeration ScrollBehavior.")}function c(e,t){return"Y"===t?e.clientHeight+s1?1:o))),a=r.startX+(r.x-r.startX)*n,s=r.startY+(r.y-r.startY)*n,r.method.call(r.scrollable,a,s),(a!==r.x||s!==r.y)&&e.requestAnimationFrame(t.bind(e,r))}({scrollable:l,method:d,startTime:h,startX:c,startY:u,x:n,y:s})}e.scroll=e.scrollTo=function(){if(void 0!==arguments[0]){if(!0===l(arguments[0]))return void a.scroll.call(e,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:e.scrollX||e.pageXOffset,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:e.scrollY||e.pageYOffset);d.call(e,t.body,void 0!==arguments[0].left?~~arguments[0].left:e.scrollX||e.pageXOffset,void 0!==arguments[0].top?~~arguments[0].top:e.scrollY||e.pageYOffset)}},e.scrollBy=function(){if(void 0!==arguments[0]){if(l(arguments[0]))return void a.scrollBy.call(e,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:0,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:0);d.call(e,t.body,~~arguments[0].left+(e.scrollX||e.pageXOffset),~~arguments[0].top+(e.scrollY||e.pageYOffset))}},n.prototype.scroll=n.prototype.scrollTo=function(){if(void 0===arguments[0])return;if(!0===l(arguments[0])){if("number"==typeof arguments[0]&&void 0===arguments[1])throw SyntaxError("Value could not be converted");a.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left:"object"!=typeof arguments[0]?~~arguments[0]:this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top:void 0!==arguments[1]?~~arguments[1]:this.scrollTop);return}let e=arguments[0].left,t=arguments[0].top;d.call(this,this,void 0===e?this.scrollLeft:~~e,void 0===t?this.scrollTop:~~t)},n.prototype.scrollBy=function(){if(void 0!==arguments[0]){if(!0===l(arguments[0]))return void a.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop);this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior})}},n.prototype.scrollIntoView=function(){if(!0===l(arguments[0]))return void a.scrollIntoView.call(this,void 0===arguments[0]||arguments[0]);let r=function(e){var r;let n,a;for(;e!==t.body&&!1===(n=c(r=e,"Y")&&u(r,"Y"),a=c(r,"X")&&u(r,"X"),n||a);)e=e.parentNode||e.host;return e}(this),n=r.getBoundingClientRect(),i=this.getBoundingClientRect();r!==t.body?(d.call(this,r,r.scrollLeft+i.left-n.left,r.scrollTop+i.top-n.top),"fixed"!==e.getComputedStyle(r).position&&e.scrollBy({left:n.left,top:n.top,behavior:"smooth"})):e.scrollBy({left:i.left,top:i.top,behavior:"smooth"})}}(this.iframe.contentWindow,this.iframe.contentDocument),function(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw TypeError("1 argument is required");do if(this===t)return!0;while(t=t&&t.parentNode);return!1})}(this.iframe.contentWindow))}rebuildFullSnapshot(e,t=!1){var r,n,a,i,s,o,l,c,u;if(!this.iframe.contentDocument)return this.warn("Looks like your replayer has been destroyed.");Object.keys(this.legacy_missingNodeRetryMap).length&&this.warn("Found unresolved missing node map",this.legacy_missingNodeRetryMap),this.legacy_missingNodeRetryMap={};let d=[],h=(e,t)=>{for(let r of(this.collectIframeAndAttachDocument(d,e),this.config.plugins||[]))r.onBuild&&r.onBuild(e,{id:t,replayer:this})};for(let{mutationInQueue:t,builtNode:p}of(this.usingVirtualDom&&(this.virtualDom.destroyTree(),this.usingVirtualDom=!1),this.mirror.reset(),r=e.data.node,a=(n={doc:this.iframe.contentDocument,afterAppend:h,cache:this.cache,mirror:this.mirror}).doc,i=n.onVisit,s=n.hackCss,o=n.afterAppend,l=n.cache,T(r,{doc:a,mirror:u=void 0===(c=n.mirror)?new v:c,skipChild:!1,hackCss:void 0===s||s,afterAppend:o,cache:l}),function(e,t){for(var r=0,n=e.getIds();re!==t);let{documentElement:p,head:m}=this.iframe.contentDocument;this.insertStyleRules(p,m),this.service.state.matches("playing")||this.iframe.contentDocument.getElementsByTagName("html")[0].classList.add("rrweb-paused"),this.emitter.emit(ew.FullsnapshotRebuilded,e),t||this.waitForStylesheetLoad(),this.config.UNSAFE_replayCanvas&&this.preloadAllImages()}insertStyleRules(e,t){var r;let n,a=(n=this.config.blockClass,[`.${n} { background: currentColor }`,"noscript { display: none !important; }"]).concat(this.config.insertStyleRules);if(this.config.pauseAnimation&&a.push("html.rrweb-paused *, html.rrweb-paused *:before, html.rrweb-paused *:after { animation-play-state: paused !important; }"),this.usingVirtualDom){let r=this.virtualDom.createElement("style");this.virtualDom.mirror.add(r,ef(r,this.virtualDom.unserializedId)),e.insertBefore(r,t),r.rules.push({source:eb.StyleSheetRule,adds:a.map((e,t)=>({rule:e,index:t}))})}else{let n=document.createElement("style");e.insertBefore(n,t);for(let e=0;e{this.collectIframeAndAttachDocument(n,e);let i=r.getMeta(e);if((null==i?void 0:i.type)===f.Element&&(null==i?void 0:i.tagName.toUpperCase())==="HTML"){let{documentElement:e,head:r}=t.contentDocument;this.insertStyleRules(e,r)}if(!this.usingVirtualDom)for(let t of this.config.plugins||[])t.onBuild&&t.onBuild(e,{id:a,replayer:this})};for(let{mutationInQueue:i,builtNode:s}of(T(e.node,{doc:t.contentDocument,mirror:r,hackCss:!0,skipChild:!1,afterAppend:a,cache:this.cache}),a(t.contentDocument,e.node.id),n))this.attachDocumentToIframe(i,s),this.newDocumentQueue=this.newDocumentQueue.filter(e=>e!==i)}collectIframeAndAttachDocument(e,t){if(eL(t,this.mirror)){let r=this.newDocumentQueue.find(e=>e.parentId===this.mirror.getId(t));r&&e.push({mutationInQueue:r,builtNode:t})}}waitForStylesheetLoad(){var e;let t=null==(e=this.iframe.contentDocument)?void 0:e.head;if(t){let e,r=new Set,n=this.service.state,a=()=>{n=this.service.state};this.emitter.on(ew.Start,a),this.emitter.on(ew.Pause,a);let i=()=>{this.emitter.off(ew.Start,a),this.emitter.off(ew.Pause,a)};t.querySelectorAll('link[rel="stylesheet"]').forEach(t=>{t.sheet||(r.add(t),t.addEventListener("load",()=>{r.delete(t),0===r.size&&-1!==e&&(n.matches("playing")&&this.play(this.getCurrentTime()),this.emitter.emit(ew.LoadStylesheetEnd),e&&clearTimeout(e),i())}))}),r.size>0&&(this.service.send({type:"PAUSE"}),this.emitter.emit(ew.LoadStylesheetStart),e=setTimeout(()=>{n.matches("playing")&&this.play(this.getCurrentTime()),e=-1,i()},this.config.loadTimeout))}}preloadAllImages(){return y(this,void 0,void 0,function*(){this.service.state;let e=()=>{this.service.state};this.emitter.on(ew.Start,e),this.emitter.on(ew.Pause,e);let t=[];for(let e of this.service.state.context.events)e.type===em.IncrementalSnapshot&&e.data.source===eb.CanvasMutation&&(t.push(this.deserializeAndPreloadCanvasEvents(e.data,e)),("commands"in e.data?e.data.commands:[e.data]).forEach(t=>{this.preloadImages(t,e)}));return Promise.all(t)})}preloadImages(e,t){if("drawImage"===e.property&&"string"==typeof e.args[0]&&!this.imageMap.has(t)){let t=document.createElement("canvas"),r=t.getContext("2d"),n=null==r?void 0:r.createImageData(t.width,t.height);null==n||n.data,JSON.parse(e.args[0]),null==r||r.putImageData(n,0,0)}}deserializeAndPreloadCanvasEvents(e,t){return y(this,void 0,void 0,function*(){if(!this.canvasEventMap.has(t)){let r={isUnchanged:!0};if("commands"in e){let n=yield Promise.all(e.commands.map(e=>y(this,void 0,void 0,function*(){let t=yield Promise.all(e.args.map(e$(this.imageMap,null,r)));return Object.assign(Object.assign({},e),{args:t})})));!1===r.isUnchanged&&this.canvasEventMap.set(t,Object.assign(Object.assign({},e),{commands:n}))}else{let n=yield Promise.all(e.args.map(e$(this.imageMap,null,r)));!1===r.isUnchanged&&this.canvasEventMap.set(t,Object.assign(Object.assign({},e),{args:n}))}}})}applyIncremental(e,t){var r,n,a;let{data:i}=e;switch(i.source){case eb.Mutation:try{this.applyMutation(i,t)}catch(e){this.warn(`Exception in mutation ${e.message||e}`,i)}break;case eb.Drag:case eb.TouchMove:case eb.MouseMove:if(t){let e=i.positions[i.positions.length-1];this.mousePos={x:e.x,y:e.y,id:e.id,debugData:i}}else i.positions.forEach(r=>{let n={doAction:()=>{this.moveAndHover(r.x,r.y,r.id,t,i)},delay:r.timeOffset+e.timestamp-this.service.state.context.baselineTime};this.timer.addAction(n)}),this.timer.addAction({doAction(){},delay:e.delay-(null==(r=i.positions[0])?void 0:r.timeOffset)});break;case eb.MouseInteraction:{if(-1===i.id)break;let e=new Event(eg[i.type].toLowerCase()),r=this.mirror.getNode(i.id);if(!r)return this.debugNodeNotFound(i,i.id);this.emitter.emit(ew.MouseInteraction,{type:i.type,target:r});let{triggerFocus:n}=this.config;switch(i.type){case eg.Blur:"blur"in r&&r.blur();break;case eg.Focus:n&&r.focus&&r.focus({preventScroll:!0});break;case eg.Click:case eg.TouchStart:case eg.TouchEnd:case eg.MouseDown:case eg.MouseUp:t?(i.type===eg.TouchStart?this.touchActive=!0:i.type===eg.TouchEnd&&(this.touchActive=!1),i.type===eg.MouseDown?this.lastMouseDownEvent=[r,e]:i.type===eg.MouseUp&&(this.lastMouseDownEvent=null),this.mousePos={x:i.x,y:i.y,id:i.id,debugData:i}):(i.type===eg.TouchStart&&(this.tailPositions.length=0),this.moveAndHover(i.x,i.y,i.id,t,i),i.type===eg.Click?(this.mouse.classList.remove("active"),this.mouse.offsetWidth,this.mouse.classList.add("active")):i.type===eg.TouchStart?(this.mouse.offsetWidth,this.mouse.classList.add("touch-active")):i.type===eg.TouchEnd?this.mouse.classList.remove("touch-active"):r.dispatchEvent(e));break;case eg.TouchCancel:t?this.touchActive=!1:this.mouse.classList.remove("touch-active");break;default:r.dispatchEvent(e)}break}case eb.Scroll:if(-1===i.id)break;if(this.usingVirtualDom){let e=this.virtualDom.mirror.getNode(i.id);if(!e)return this.debugNodeNotFound(i,i.id);e.scrollData=i;break}this.applyScroll(i,t);break;case eb.ViewportResize:this.emitter.emit(ew.Resize,{width:i.width,height:i.height});break;case eb.Input:if(-1===i.id)break;if(this.usingVirtualDom){let e=this.virtualDom.mirror.getNode(i.id);if(!e)return this.debugNodeNotFound(i,i.id);e.inputData=i;break}this.applyInput(i);break;case eb.MediaInteraction:{let e=this.usingVirtualDom?this.virtualDom.mirror.getNode(i.id):this.mirror.getNode(i.id);if(!e)return this.debugNodeNotFound(i,i.id);try{void 0!==i.currentTime&&(e.currentTime=i.currentTime),void 0!==i.volume&&(e.volume=i.volume),void 0!==i.muted&&(e.muted=i.muted),1===i.type&&e.pause(),0===i.type&&e.play(),4===i.type&&(e.playbackRate=i.playbackRate)}catch(e){this.warn(`Failed to replay media interactions: ${e.message||e}`)}break}case eb.StyleSheetRule:case eb.StyleDeclaration:this.usingVirtualDom?i.styleId?this.constructedStyleMutations.push(i):i.id&&(null==(n=this.virtualDom.mirror.getNode(i.id))||n.rules.push(i)):this.applyStyleSheetMutation(i);break;case eb.CanvasMutation:if(!this.config.UNSAFE_replayCanvas)return;if(this.usingVirtualDom){let t=this.virtualDom.mirror.getNode(i.id);if(!t)return this.debugNodeNotFound(i,i.id);t.canvasMutations.push({event:e,mutation:i})}else{let t=this.mirror.getNode(i.id);if(!t)return this.debugNodeNotFound(i,i.id);eq({event:e,mutation:i,target:t,imageMap:this.imageMap,canvasEventMap:this.canvasEventMap,errorHandler:this.warnCanvasMutationFailed.bind(this)})}break;case eb.Font:try{let e=new FontFace(i.family,i.buffer?new Uint8Array(JSON.parse(i.fontSource)):i.fontSource,i.descriptors);null==(a=this.iframe.contentDocument)||a.fonts.add(e)}catch(e){this.warn(e)}break;case eb.Selection:if(t){this.lastSelectionData=i;break}this.applySelection(i);break;case eb.AdoptedStyleSheet:this.usingVirtualDom?this.adoptedStyleSheets.push(i):this.applyAdoptedStyleSheet(i)}}applyMutation(e,t){if(this.config.useVirtualDom&&!this.usingVirtualDom&&t&&(this.usingVirtualDom=!0,!function(e,t=new C,r=new et){!function e(n,a){let i=ed(n,r,t,a);if(null!==i)if((null==a?void 0:a.nodeName)!=="IFRAME"&&n.nodeType!==m.DOCUMENT_FRAGMENT_NODE&&(null==a||a.appendChild(i),i.parentNode=a,i.parentElement=a),"IFRAME"===n.nodeName){let t=n.contentDocument;t&&e(t,i)}else(n.nodeType===m.DOCUMENT_NODE||n.nodeType===m.ELEMENT_NODE||n.nodeType===m.DOCUMENT_FRAGMENT_NODE)&&(n.nodeType===m.ELEMENT_NODE&&n.shadowRoot&&e(n.shadowRoot,i),n.childNodes.forEach(t=>e(t,i)))}(e,null)}(this.iframe.contentDocument,this.mirror,this.virtualDom),Object.keys(this.legacy_missingNodeRetryMap).length))for(let e in this.legacy_missingNodeRetryMap)try{let t=this.legacy_missingNodeRetryMap[e],r=ed(t.node,this.virtualDom,this.mirror);r&&(t.node=r)}catch(e){this.warn(e)}let r=this.usingVirtualDom?this.virtualDom.mirror:this.mirror;e.removes=e.removes.filter(t=>!!r.getNode(t.id)||(this.warnNodeNotFound(e,t.id),!1)),e.removes.forEach(t=>{var n;let a=r.getNode(t.id);if(!a)return;let i=r.getNode(t.parentId);if(!i)return this.warnNodeNotFound(e,t.parentId);if(t.isShadow&&eB(i)&&(i=i.shadowRoot),r.removeNodeFromMap(a),i)try{i.removeChild(a),this.usingVirtualDom&&"#text"===a.nodeName&&"STYLE"===i.nodeName&&(null==(n=i.rules)?void 0:n.length)>0&&(i.rules=[])}catch(t){if(t instanceof DOMException)this.warn("parent could not remove child in mutation",i,a,e);else throw t}});let n=Object.assign({},this.legacy_missingNodeRetryMap),a=[],i=e=>{var t,i;let s;if(!this.iframe.contentDocument)return this.warn("Looks like your replayer has been destroyed.");let o=r.getNode(e.parentId);if(!o)return e.node.type===f.Document?this.newDocumentQueue.push(e):a.push(e);e.node.isShadow&&(eB(o)||o.attachShadow({mode:"open"}),o=o.shadowRoot);let l=null,c=null;if(e.previousId&&(l=r.getNode(e.previousId)),e.nextId&&(c=r.getNode(e.nextId)),s=null,e.nextId&&(s=r.getNode(e.nextId)),null!==e.nextId&&void 0!==e.nextId&&-1!==e.nextId&&!s||0)return a.push(e);if(e.node.rootId&&!r.getNode(e.node.rootId))return;let u=e.node.rootId?r.getNode(e.node.rootId):this.usingVirtualDom?this.virtualDom:this.iframe.contentDocument;if(eL(o,r))return void this.attachDocumentToIframe(e,o);let d=(e,t)=>{if(!this.usingVirtualDom)for(let r of this.config.plugins||[])r.onBuild&&r.onBuild(e,{id:t,replayer:this})},h=T(e.node,{doc:u,mirror:r,skipChild:!0,hackCss:!0,cache:this.cache,afterAppend:d});if(-1===e.previousId||-1===e.nextId){n[e.node.id]={node:h,mutation:e};return}let p=r.getMeta(o);if(p&&p.type===f.Element&&"textarea"===p.tagName&&e.node.type===f.Text)for(let e of Array.isArray(o.childNodes)?o.childNodes:Array.from(o.childNodes))e.nodeType===o.TEXT_NODE&&o.removeChild(e);else if((null==p?void 0:p.type)===f.Document){let r=o;e.node.type===f.DocumentType&&(null==(t=r.childNodes[0])?void 0:t.nodeType)===Node.DOCUMENT_TYPE_NODE&&r.removeChild(r.childNodes[0]),"HTML"===h.nodeName&&r.documentElement&&r.removeChild(r.documentElement)}if(l&&l.nextSibling&&l.nextSibling.parentNode?o.insertBefore(h,l.nextSibling):c&&c.parentNode?o.contains(c)?o.insertBefore(h,c):o.insertBefore(h,null):o.appendChild(h),d(h,e.node.id),this.usingVirtualDom&&"#text"===h.nodeName&&"STYLE"===o.nodeName&&(null==(i=o.rules)?void 0:i.length)>0&&(o.rules=[]),eL(h,this.mirror)){let e=this.mirror.getId(h),t=this.newDocumentQueue.find(t=>t.parentId===e);t&&(this.attachDocumentToIframe(t,h),this.newDocumentQueue=this.newDocumentQueue.filter(e=>e!==t))}(e.previousId||e.nextId)&&this.legacy_resolveMissingNode(n,o,h,e)};e.adds.forEach(e=>{i(e)});let s=Date.now();for(;a.length;){let e=function(e){let t={},r=(e,r)=>{let n={value:e,parent:r,children:[]};return t[e.node.id]=n,n},n=[];for(let a of e){let{nextId:e,parentId:i}=a;if(e&&e in t){let i=t[e];if(i.parent){let e=i.parent.children.indexOf(i);i.parent.children.splice(e,0,r(a,i.parent))}else{let e=n.indexOf(i);n.splice(e,0,r(a,null))}continue}if(i in t){let e=t[i];e.children.push(r(a,e));continue}n.push(r(a,null))}return n}(a);if(a.length=0,Date.now()-s>500){this.warn("Timeout in the loop, please check the resolve tree data:",e);break}for(let t of e)r.getNode(t.value.parentId)?function e(t,r){r(t.value);for(let n=t.children.length-1;n>=0;n--)e(t.children[n],r)}(t,e=>{i(e)}):this.debug("Drop resolve tree since there is no parent for the root node.",t)}Object.keys(n).length&&Object.assign(this.legacy_missingNodeRetryMap,n),(function(e){let t=new Set,r=[];for(let n=e.length;n--;){let a=e[n];t.has(a.id)||(r.push(a),t.add(a.id))}return r})(e.texts).forEach(t=>{var n;let a=r.getNode(t.id);if(!a){if(e.removes.find(e=>e.id===t.id))return;return this.warnNodeNotFound(e,t.id)}if(a.textContent=t.value,this.usingVirtualDom){let e=a.parentNode;(null==(n=null==e?void 0:e.rules)?void 0:n.length)>0&&(e.rules=[])}}),e.attributes.forEach(t=>{let n=r.getNode(t.id);if(!n){if(e.removes.find(e=>e.id===t.id))return;return this.warnNodeNotFound(e,t.id)}for(let e in t.attributes)if("string"==typeof e){let a=t.attributes[e];if(null===a)n.removeAttribute(e);else if("string"==typeof a)try{if("_cssText"===e&&("LINK"===n.nodeName||"STYLE"===n.nodeName))try{let e=r.getMeta(n);Object.assign(e.attributes,t.attributes);let a=T(e,{doc:n.ownerDocument,mirror:r,skipChild:!0,hackCss:!0,cache:this.cache}),i=n.nextSibling,s=n.parentNode;if(a&&s){s.removeChild(n),s.insertBefore(a,i),r.replace(t.id,a);break}}catch(e){}n.setAttribute(e,a)}catch(e){this.warn("An error occurred may due to the checkout feature.",e)}else if("style"===e)for(let e in a)if(!1===a[e])n.style.removeProperty(e);else if(a[e]instanceof Array){let t=a[e];n.style.setProperty(e,t[0],t[1])}else{let t=a[e];n.style.setProperty(e,t)}}})}applyScroll(e,t){var r,n;let a=this.mirror.getNode(e.id);if(!a)return this.debugNodeNotFound(e,e.id);let i=this.mirror.getMeta(a);if(a===this.iframe.contentDocument)null==(r=this.iframe.contentWindow)||r.scrollTo({top:e.y,left:e.x,behavior:t?"auto":"smooth"});else if((null==i?void 0:i.type)===f.Document)null==(n=a.defaultView)||n.scrollTo({top:e.y,left:e.x,behavior:t?"auto":"smooth"});else try{a.scrollTo({top:e.y,left:e.x,behavior:t?"auto":"smooth"})}catch(e){}}applyInput(e){let t=this.mirror.getNode(e.id);if(!t)return this.debugNodeNotFound(e,e.id);try{t.checked=e.isChecked,t.value=e.text}catch(e){}}applySelection(e){try{let t=new Set,r=e.ranges.map(({start:e,startOffset:r,end:n,endOffset:a})=>{let i=this.mirror.getNode(e),s=this.mirror.getNode(n);if(!i||!s)return;let o=new Range;o.setStart(i,r),o.setEnd(s,a);let l=i.ownerDocument,c=null==l?void 0:l.getSelection();return c&&t.add(c),{range:o,selection:c}});t.forEach(e=>e.removeAllRanges()),r.forEach(e=>{var t;return e&&(null==(t=e.selection)?void 0:t.addRange(e.range))})}catch(e){}}applyStyleSheetMutation(e){var t;let r=null;e.styleId?r=this.styleMirror.getStyle(e.styleId):e.id&&(r=(null==(t=this.mirror.getNode(e.id))?void 0:t.sheet)||null),r&&(e.source===eb.StyleSheetRule?this.applyStyleSheetRule(e,r):e.source===eb.StyleDeclaration&&this.applyStyleDeclaration(e,r))}applyStyleSheetRule(e,t){var r,n,a,i;if(null==(r=e.adds)||r.forEach(({rule:e,index:r})=>{try{if(Array.isArray(r)){let{positions:n,index:a}=eU(r);eP(t.cssRules,n).insertRule(e,a)}else{let n=void 0===r?void 0:Math.min(r,t.cssRules.length);null==t||t.insertRule(e,n)}}catch(e){}}),null==(n=e.removes)||n.forEach(({index:e})=>{try{if(Array.isArray(e)){let{positions:r,index:n}=eU(e);eP(t.cssRules,r).deleteRule(n||0)}else null==t||t.deleteRule(e)}catch(e){}}),e.replace)try{null==(a=t.replace)||a.call(t,e.replace)}catch(e){}if(e.replaceSync)try{null==(i=t.replaceSync)||i.call(t,e.replaceSync)}catch(e){}}applyStyleDeclaration(e,t){e.set&&eP(t.rules,e.index).style.setProperty(e.set.property,e.set.value,e.set.priority),e.remove&&eP(t.rules,e.index).style.removeProperty(e.remove.property)}applyAdoptedStyleSheet(e){var t;let r=this.mirror.getNode(e.id);if(!r)return;null==(t=e.styles)||t.forEach(e=>{var t;let n=null,a=null;if(eB(r)?a=(null==(t=r.ownerDocument)?void 0:t.defaultView)||null:"#document"===r.nodeName&&(a=r.defaultView),a)try{n=new a.CSSStyleSheet,this.styleMirror.add(n,e.styleId),this.applyStyleSheetRule({source:eb.StyleSheetRule,adds:e.rules},n)}catch(e){}});let n=0,a=(e,t)=>{let r=t.map(e=>this.styleMirror.getStyle(e)).filter(e=>null!==e);eB(e)?e.shadowRoot.adoptedStyleSheets=r:"#document"===e.nodeName&&(e.adoptedStyleSheets=r),r.length!==t.length&&n<10&&(setTimeout(()=>a(e,t),0+100*n),n++)};a(r,e.styleIds)}legacy_resolveMissingNode(e,t,r,n){let{previousId:a,nextId:i}=n,s=a&&e[a],o=i&&e[i];if(s){let{node:n,mutation:a}=s;t.insertBefore(n,r),delete e[a.node.id],delete this.legacy_missingNodeRetryMap[a.node.id],(a.previousId||a.nextId)&&this.legacy_resolveMissingNode(e,t,n,a)}if(o){let{node:n,mutation:a}=o;t.insertBefore(n,r.nextSibling),delete e[a.node.id],delete this.legacy_missingNodeRetryMap[a.node.id],(a.previousId||a.nextId)&&this.legacy_resolveMissingNode(e,t,n,a)}}moveAndHover(e,t,r,n,a){let i=this.mirror.getNode(r);if(!i)return this.debugNodeNotFound(a,r);let s=function e(t,r){var n,a;let i=null==(a=null==(n=t.ownerDocument)?void 0:n.defaultView)?void 0:a.frameElement;if(!i||i===r)return{x:0,y:0,relativeScale:1,absoluteScale:1};let s=i.getBoundingClientRect(),o=e(i,r),l=s.height/i.clientHeight;return{x:s.x*o.relativeScale+o.x,y:s.y*o.relativeScale+o.y,relativeScale:l,absoluteScale:o.absoluteScale*l}}(i,this.iframe),o=e*s.absoluteScale+s.x,l=t*s.absoluteScale+s.y;this.mouse.style.left=`${o}px`,this.mouse.style.top=`${l}px`,n||this.drawMouseTail({x:o,y:l}),this.hoverElements(i)}drawMouseTail(e){if(!this.mouseTail)return;let{lineCap:t,lineWidth:r,strokeStyle:n,duration:a}=!0===this.config.mouseTail?eQ:Object.assign({},eQ,this.config.mouseTail),i=()=>{if(!this.mouseTail)return;let e=this.mouseTail.getContext("2d");e&&this.tailPositions.length&&(e.clearRect(0,0,this.mouseTail.width,this.mouseTail.height),e.beginPath(),e.lineWidth=r,e.lineCap=t,e.strokeStyle=n,e.moveTo(this.tailPositions[0].x,this.tailPositions[0].y),this.tailPositions.forEach(t=>e.lineTo(t.x,t.y)),e.stroke())};this.tailPositions.push(e),i(),setTimeout(()=>{this.tailPositions=this.tailPositions.filter(t=>t!==e),i()},a/this.speedService.state.context.timer.speed)}hoverElements(e){var t;null==(t=this.lastHoveredRootNode||this.iframe.contentDocument)||t.querySelectorAll(".\\:hover").forEach(e=>{e.classList.remove(":hover")}),this.lastHoveredRootNode=e.getRootNode();let r=e;for(;r;)r.classList&&r.classList.add(":hover"),r=r.parentElement}isUserInteraction(e){return e.type===em.IncrementalSnapshot&&e.data.source>eb.Mutation&&e.data.source<=eb.Input}backToNormal(){this.nextUserInteractionEvent=null,this.speedService.state.matches("normal")||(this.speedService.send({type:"BACK_TO_NORMAL"}),this.emitter.emit(ew.SkipEnd,{speed:this.speedService.state.context.normalSpeed}))}warnNodeNotFound(e,t){this.warn(`Node with id '${t}' not found. `,e)}warnCanvasMutationFailed(e,t){this.warn("Has error on canvas update",t,"canvas mutation:",e)}debugNodeNotFound(e,t){this.debug(`Node with id '${t}' not found. `,e)}warn(...e){this.config.showWarning&&this.config.logger.warn(eJ,...e)}debug(...e){this.config.showDebug&&this.config.logger.log(eJ,...e)}}},88149:(e,t,r)=>{var n=r(24490);e.exports=n&&new n},88302:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var n=(0,r(41495).A)("filled","caret-right-filled","IconCaretRightFilled",[["path",{d:"M9 6c0 -.852 .986 -1.297 1.623 -.783l.084 .076l6 6a1 1 0 0 1 .083 1.32l-.083 .094l-6 6l-.094 .083l-.077 .054l-.096 .054l-.036 .017l-.067 .027l-.108 .032l-.053 .01l-.06 .01l-.057 .004l-.059 .002l-.059 -.002l-.058 -.005l-.06 -.009l-.052 -.01l-.108 -.032l-.067 -.027l-.132 -.07l-.09 -.065l-.081 -.073l-.083 -.094l-.054 -.077l-.054 -.096l-.017 -.036l-.027 -.067l-.032 -.108l-.01 -.053l-.01 -.06l-.004 -.057l-.002 -12.059z",key:"svg-0"}]])},89765:(e,t,r)=>{var n=r(93248),a=r(17782),i=r(45516);e.exports=function(e,t,r,s){var o=1&t,l=a(e);return function t(){for(var a=-1,c=arguments.length,u=-1,d=s.length,h=Array(d+c);++u{var n=r(55160);function a(e,t,r){var i=n(e,8,void 0,void 0,void 0,void 0,void 0,t=r?void 0:t);return i.placeholder=a.placeholder,i}a.placeholder={},e.exports=a},91104:(e,t,r)=>{"use strict";r.d(t,{D:()=>i});var n=r(55729),a=r(9825);function i(e,t){let r,i,s,o,l,c,u,d,h,[f,p]=(0,n.useState)(e),m=(0,n.useRef)(e),[b,g]=(r=(0,a.c)(p),i=(0,n.useRef)(null),s=(0,n.useRef)(null),o=(0,n.useRef)(!0),l=(0,n.useRef)(t),c=(0,n.useRef)(-1),u=(0,n.useCallback)((...e)=>{r(...e),i.current=e,s.current=e,o.current=!1},[r]),d=(0,n.useCallback)(()=>{i.current&&i.current!==s.current?(u(...i.current),c.current=window.setTimeout(d,l.current)):o.current=!0},[u]),h=(0,n.useCallback)((...e)=>{o.current?(u(...e),c.current=window.setTimeout(d,l.current)):i.current=e},[u,d]),(0,n.useEffect)(()=>{l.current=t},[t]),[h,()=>window.clearTimeout(c.current)]);return(0,n.useEffect)(()=>{e!==m.current&&(m.current=e,b(e))},[b,e]),(0,n.useEffect)(()=>g,[]),f}},93407:(e,t,r)=>{var n=r(83529),a=r(53416),i=r(38088),s=r(91544),o=r(3619),l=r(29464),c=Object.prototype.hasOwnProperty;function u(e){if(o(e)&&!s(e)&&!(e instanceof n)){if(e instanceof a)return e;if(c.call(e,"__wrapped__"))return l(e)}return new a(e)}u.prototype=i.prototype,u.prototype.constructor=u,e.exports=u},94193:(e,t,r)=>{"use strict";r.d(t,{T:()=>_});var n=r(6029);function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(a[r]=e[r]);return a}(e,M),y=void 0!==b.value,N=i.useRef(null),D=c(N,t),x=i.useRef(0),S=i.useRef(),T=function(){var e=N.current,t=r&&S.current?S.current:g(e);if(t){S.current=t;var a,i,o,l,c,u,p,b,y,v,w,E=(a=e.value||e.placeholder||"x",void 0===(i=s)&&(i=1),void 0===(o=n)&&(o=1/0),h||((h=document.createElement("textarea")).setAttribute("tabindex","-1"),h.setAttribute("aria-hidden","true"),d(h)),null===h.parentNode&&document.body.appendChild(h),l=t.paddingSize,c=t.borderSize,p=(u=t.sizingStyle).boxSizing,Object.keys(u).forEach(function(e){h.style[e]=u[e]}),d(h),h.value=a,b=f(h,t),h.value=a,b=f(h,t),h.value="x",v=(y=h.scrollHeight-l)*i,"border-box"===p&&(v=v+l+c),b=Math.max(v,b),w=y*o,"border-box"===p&&(w=w+l+c),[b=Math.min(w,b),y]),M=E[0],D=E[1];x.current!==M&&(x.current=M,e.style.setProperty("height",M+"px","important"),m(M,{rowHeight:D}))}};return i.useLayoutEffect(T),v(N,function(){if(!y){var e=N.current.value;requestAnimationFrame(function(){var t=N.current;t&&e!==t.value&&T()})}}),w(T),E(T),i.createElement("textarea",a({},b,{onChange:function(e){y||T(),l(e)},ref:D}))}),D=r(45490),x=r(80616),S=r(43016),T=r(94613);let C={},_=(0,S.P9)((e,t)=>{let{autosize:r,maxRows:a,minRows:i,__staticSelector:s,resize:o,...l}=(0,x.Y)("Textarea",C,e),c=r&&"test"!==(0,D._)();return(0,n.jsx)(T.O,{component:c?N:"textarea",ref:t,...l,__staticSelector:s||"Textarea",multiline:!0,"data-no-overflow":r&&void 0===a||void 0,__vars:{"--input-resize":o},...c?{maxRows:a,minRows:i}:{}})});_.classes=T.O.classes,_.displayName="@mantine/core/Textarea"},94209:(e,t,r)=>{var n=r(27524),a=Object.prototype.hasOwnProperty;e.exports=function(e){for(var t=e.name+"",r=n[t],i=a.call(n,t)?r.length:0;i--;){var s=r[i],o=s.func;if(null==o||o==e)return s.name}return t}},96413:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var n=(0,r(41495).A)("outline","filter-x","IconFilterX",[["path",{d:"M13.758 19.414l-4.758 1.586v-8.5l-4.48 -4.928a2 2 0 0 1 -.52 -1.345v-2.227h16v2.172a2 2 0 0 1 -.586 1.414l-4.414 4.414v1.5",key:"svg-0"}],["path",{d:"M22 22l-5 -5",key:"svg-1"}],["path",{d:"M17 22l5 -5",key:"svg-2"}]])},97039:(e,t,r)=>{"use strict";r.d(t,{j:()=>y});var n=r(6029),a=r(78341),i=r(55729),s=r(80616),o=r(82556),l=r(37659);let[c,u]=(0,r(36254).F)("HoverCard component was not found in the tree");var d=r(72448);let h={};function f(e){let{children:t,onMouseEnter:r,onMouseLeave:a,...i}=(0,s.Y)("HoverCardDropdown",h,e),o=u(),c=(0,d.T)(r,o.openDropdown),f=(0,d.T)(a,o.closeDropdown);return(0,n.jsx)(l.A.Dropdown,{onMouseEnter:c,onMouseLeave:f,...i,children:t})}f.displayName="@mantine/core/HoverCardDropdown";var p=r(30342);let m={refProp:"ref"},b=(0,i.forwardRef)((e,t)=>{let{children:r,refProp:a,eventPropsWrapperName:o,...c}=(0,s.Y)("HoverCardTarget",m,e);if(!(0,p.v)(r))throw Error("HoverCard.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");let h=u(),f={onMouseEnter:(0,d.T)(r.props.onMouseEnter,h.openDropdown),onMouseLeave:(0,d.T)(r.props.onMouseLeave,h.closeDropdown)};return(0,n.jsx)(l.A.Target,{refProp:a,ref:t,...c,children:(0,i.cloneElement)(r,o?{[o]:f}:f)})});b.displayName="@mantine/core/HoverCardTarget";let g={openDelay:0,closeDelay:150,initiallyOpened:!1};function y(e){let{children:t,onOpen:r,onClose:i,openDelay:u,closeDelay:d,initiallyOpened:h,...f}=(0,s.Y)("HoverCard",g,e),[p,{open:m,close:b}]=(0,a.j)(h,{onClose:i,onOpen:r}),{openDropdown:y,closeDropdown:v}=(0,o.K)({open:m,close:b,openDelay:u,closeDelay:d});return(0,n.jsx)(c,{value:{openDropdown:y,closeDropdown:v},children:(0,n.jsx)(l.A,{...f,opened:p,__staticSelector:"HoverCard",children:t})})}y.displayName="@mantine/core/HoverCard",y.Target=b,y.Dropdown=f,y.extend=e=>e},97684:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var n=(0,r(41495).A)("outline","player-pause","IconPlayerPause",[["path",{d:"M6 5m0 1a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v12a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z",key:"svg-0"}],["path",{d:"M14 5m0 1a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v12a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z",key:"svg-1"}]])},98632:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var n=(0,r(41495).A)("outline","pointer","IconPointer",[["path",{d:"M7.904 17.563a1.2 1.2 0 0 0 2.228 .308l2.09 -3.093l4.907 4.907a1.067 1.067 0 0 0 1.509 0l1.047 -1.047a1.067 1.067 0 0 0 0 -1.509l-4.907 -4.907l3.113 -2.09a1.2 1.2 0 0 0 -.309 -2.228l-13.582 -3.904l3.904 13.563z",key:"svg-0"}]])}}]); \ No newline at end of file diff --git a/out/_next/static/chunks/1626-de51610d6ac78e10.js b/out/_next/static/chunks/3062-27c104855df7fb76.js similarity index 59% rename from out/_next/static/chunks/1626-de51610d6ac78e10.js rename to out/_next/static/chunks/3062-27c104855df7fb76.js index d18e965..be970df 100644 --- a/out/_next/static/chunks/1626-de51610d6ac78e10.js +++ b/out/_next/static/chunks/3062-27c104855df7fb76.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1626],{1146:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","brand-discord","IconBrandDiscord",[["path",{d:"M8 12a1 1 0 1 0 2 0a1 1 0 0 0 -2 0",key:"svg-0"}],["path",{d:"M14 12a1 1 0 1 0 2 0a1 1 0 0 0 -2 0",key:"svg-1"}],["path",{d:"M15.5 17c0 1 1.5 3 2 3c1.5 0 2.833 -1.667 3.5 -3c.667 -1.667 .5 -5.833 -1.5 -11.5c-1.457 -1.015 -3 -1.34 -4.5 -1.5l-.972 1.923a11.913 11.913 0 0 0 -4.053 0l-.975 -1.923c-1.5 .16 -3.043 .485 -4.5 1.5c-2 5.667 -2.167 9.833 -1.5 11.5c.667 1.333 2 3 3.5 3c.5 0 2 -2 2 -3",key:"svg-2"}],["path",{d:"M7 16.5c3.5 1 6.5 1 10 0",key:"svg-3"}]])},1885:(e,t,r)=>{"use strict";function a(e){return Array.isArray?Array.isArray(e):"[object Array]"===d(e)}r.d(t,{A:()=>K});let s=1/0;function n(e){return"string"==typeof e}function o(e){return"number"==typeof e}function i(e){return"object"==typeof e}function l(e){return null!=e}function c(e){return!e.trim().length}function d(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}let h=Object.prototype.hasOwnProperty;class u{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach(e=>{let r=p(e);t+=r.weight,this._keys.push(r),this._keyMap[r.id]=r,t+=r.weight}),this._keys.forEach(e=>{e.weight/=t})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function p(e){let t=null,r=null,s=null,o=1,i=null;if(n(e)||a(e))s=e,t=g(e),r=v(e);else{if(!h.call(e,"name"))throw Error("Missing name property in key");let a=e.name;if(s=a,h.call(e,"weight")&&(o=e.weight)<=0)throw Error(`Property 'weight' in key '${a}' must be a positive integer`);t=g(a),r=v(a),i=e.getFn}return{path:t,id:r,weight:o,src:s,getFn:i}}function g(e){return a(e)?e:e.split(".")}function v(e){return a(e)?e.join("."):e}var m={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx{if(l(e))if(t[u]){var p,g;let v=e[t[u]];if(!l(v))return;if(u===t.length-1&&(n(v)||o(v)||!0===(p=v)||!1===p||i(g=p)&&null!==g&&"[object Boolean]"==d(p)))r.push(null==v?"":function(e){if("string"==typeof e)return e;let t=e+"";return"0"==t&&1/e==-s?"-0":t}(v));else if(a(v)){c=!0;for(let e=0,r=v.length;e{this._keysMap[e.id]=t})}create(){!this.isCreated&&this.docs.length&&(this.isCreated=!0,n(this.docs[0])?this.docs.forEach((e,t)=>{this._addString(e,t)}):this.docs.forEach((e,t)=>{this._addObject(e,t)}),this.norm.clear())}add(e){let t=this.size();n(e)?this._addString(e,t):this._addObject(e,t)}removeAt(e){this.records.splice(e,1);for(let t=e,r=this.size();t{let o=t.getFn?t.getFn(e):this.getFn(e,t.path);if(l(o)){if(a(o)){let e=[],t=[{nestedArrIndex:-1,value:o}];for(;t.length;){let{nestedArrIndex:r,value:s}=t.pop();if(l(s))if(n(s)&&!c(s)){let t={v:s,i:r,n:this.norm.get(s)};e.push(t)}else a(s)&&s.forEach((e,r)=>{t.push({nestedArrIndex:r,value:e})})}r.$[s]=e}else if(n(o)&&!c(o)){let e={v:o,n:this.norm.get(o)};r.$[s]=e}}}),this.records.push(r)}toJSON(){return{keys:this.keys,records:this.records}}}function k(e,t,{getFn:r=m.getFn,fieldNormWeight:a=m.fieldNormWeight}={}){let s=new f({getFn:r,fieldNormWeight:a});return s.setKeys(e.map(p)),s.setSources(t),s.create(),s}function M(e,{errors:t=0,currentLocation:r=0,expectedLocation:a=0,distance:s=m.distance,ignoreLocation:n=m.ignoreLocation}={}){let o=t/e.length;if(n)return o;let i=Math.abs(a-r);return s?o+i/s:i?1:o}class w{constructor(e,{location:t=m.location,threshold:r=m.threshold,distance:a=m.distance,includeMatches:s=m.includeMatches,findAllMatches:n=m.findAllMatches,minMatchCharLength:o=m.minMatchCharLength,isCaseSensitive:i=m.isCaseSensitive,ignoreLocation:l=m.ignoreLocation}={}){if(this.options={location:t,threshold:r,distance:a,includeMatches:s,findAllMatches:n,minMatchCharLength:o,isCaseSensitive:i,ignoreLocation:l},this.pattern=i?e:e.toLowerCase(),this.chunks=[],!this.pattern.length)return;const c=(e,t)=>{this.chunks.push({pattern:e,alphabet:function(e){let t={};for(let r=0,a=e.length;r32){let e=0;const t=d%32,r=d-t;for(;e{let{isMatch:g,score:v,indices:y}=function(e,t,r,{location:a=m.location,distance:s=m.distance,threshold:n=m.threshold,findAllMatches:o=m.findAllMatches,minMatchCharLength:i=m.minMatchCharLength,includeMatches:l=m.includeMatches,ignoreLocation:c=m.ignoreLocation}={}){let d;if(t.length>32)throw Error("Pattern length exceeds max of 32.");let h=t.length,u=e.length,p=Math.max(0,Math.min(a,u)),g=n,v=p,y=i>1||l,f=y?Array(u):[];for(;(d=e.indexOf(t,v))>-1;)if(g=Math.min(M(t,{currentLocation:d,expectedLocation:p,distance:s,ignoreLocation:c}),g),v=d+h,y){let e=0;for(;e=l;n-=1){let o=n-1,i=r[e.charAt(o)];if(y&&(f[o]=+!!i),m[n]=(m[n+1]<<1|1)&i,a&&(m[n]|=(k[n+1]|k[n])<<1|1|k[n+1]),m[n]&x&&(w=M(t,{errors:a,currentLocation:o,expectedLocation:p,distance:s,ignoreLocation:c}))<=g){if(g=w,(v=o)<=p)break;l=Math.max(1,2*p-v)}}if(M(t,{errors:a+1,currentLocation:p,expectedLocation:p,distance:s,ignoreLocation:c})>g)break;k=m}let S={isMatch:v>=0,score:Math.max(.001,w)};if(y){let e=function(e=[],t=m.minMatchCharLength){let r=[],a=-1,s=-1,n=0;for(let o=e.length;n=t&&r.push([a,s]),a=-1)}return e[n-1]&&n-a>=t&&r.push([a,n-1]),r}(f,i);e.length?l&&(S.indices=e):S.isMatch=!1}return S}(e,t,u,{location:a+p,distance:s,threshold:n,findAllMatches:o,minMatchCharLength:i,includeMatches:r,ignoreLocation:l});g&&(h=!0),d+=v,g&&y&&(c=[...c,...y])});let u={isMatch:h,score:h?d/this.chunks.length:1};return h&&r&&(u.indices=c),u}}class b{constructor(e){this.pattern=e}static isMultiMatch(e){return x(e,this.multiRegex)}static isSingleMatch(e){return x(e,this.singleRegex)}search(){}}function x(e,t){let r=e.match(t);return r?r[1]:null}class S extends b{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){let t=e===this.pattern;return{isMatch:t,score:+!t,indices:[0,this.pattern.length-1]}}}class A extends b{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){let t=-1===e.indexOf(this.pattern);return{isMatch:t,score:+!t,indices:[0,e.length-1]}}}class C extends b{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){let t=e.startsWith(this.pattern);return{isMatch:t,score:+!t,indices:[0,this.pattern.length-1]}}}class _ extends b{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){let t=!e.startsWith(this.pattern);return{isMatch:t,score:+!t,indices:[0,e.length-1]}}}class I extends b{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){let t=e.endsWith(this.pattern);return{isMatch:t,score:+!t,indices:[e.length-this.pattern.length,e.length-1]}}}class j extends b{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){let t=!e.endsWith(this.pattern);return{isMatch:t,score:+!t,indices:[0,e.length-1]}}}class E extends b{constructor(e,{location:t=m.location,threshold:r=m.threshold,distance:a=m.distance,includeMatches:s=m.includeMatches,findAllMatches:n=m.findAllMatches,minMatchCharLength:o=m.minMatchCharLength,isCaseSensitive:i=m.isCaseSensitive,ignoreLocation:l=m.ignoreLocation}={}){super(e),this._bitapSearch=new w(e,{location:t,threshold:r,distance:a,includeMatches:s,findAllMatches:n,minMatchCharLength:o,isCaseSensitive:i,ignoreLocation:l})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class L extends b{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let t,r=0,a=[],s=this.pattern.length;for(;(t=e.indexOf(this.pattern,r))>-1;)r=t+s,a.push([t,r-1]);let n=!!a.length;return{isMatch:n,score:+!n,indices:a}}}let D=[S,L,C,_,j,I,A,E],N=D.length,F=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,$=new Set([E.type,L.type]);class z{constructor(e,{isCaseSensitive:t=m.isCaseSensitive,includeMatches:r=m.includeMatches,minMatchCharLength:a=m.minMatchCharLength,ignoreLocation:s=m.ignoreLocation,findAllMatches:n=m.findAllMatches,location:o=m.location,threshold:i=m.threshold,distance:l=m.distance}={}){this.query=null,this.options={isCaseSensitive:t,includeMatches:r,minMatchCharLength:a,findAllMatches:n,ignoreLocation:s,location:o,threshold:i,distance:l},this.pattern=t?e:e.toLowerCase(),this.query=function(e,t={}){return e.split("|").map(e=>{let r=e.trim().split(F).filter(e=>e&&!!e.trim()),a=[];for(let e=0,s=r.length;e!!(e[P]||e.$or),G=e=>({[P]:Object.keys(e).map(t=>({[t]:e[t]}))});function V(e,t,{auto:r=!0}={}){let s=e=>{let o=Object.keys(e),l=!!e[T];if(!l&&o.length>1&&!Y(e))return s(G(e));if(!a(e)&&i(e)&&!Y(e)){let a=l?e[T]:o[0],s=l?e.$val:e[a];if(!n(s))throw Error(`Invalid value for key ${a}`);let i={keyId:v(a),pattern:s};return r&&(i.searcher=R(s,t)),i}let c={children:[],operator:o[0]};return o.forEach(t=>{let r=e[t];a(r)&&r.forEach(e=>{c.children.push(s(e))})}),c};return Y(e)||(e=G(e)),s(e)}function q(e,t){let r=e.matches;t.matches=[],l(r)&&r.forEach(e=>{if(!l(e.indices)||!e.indices.length)return;let{indices:r,value:a}=e,s={indices:r,value:a};e.key&&(s.key=e.key.src),e.idx>-1&&(s.refIndex=e.idx),t.matches.push(s)})}function B(e,t){t.score=e.score}class K{constructor(e,t={},r){this.options={...m,...t},this.options.useExtendedSearch,this._keyStore=new u(this.options.keys),this.setCollection(e,r)}setCollection(e,t){if(this._docs=e,t&&!(t instanceof f))throw Error("Incorrect 'index' type");this._myIndex=t||k(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){l(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=()=>!1){let t=[];for(let r=0,a=this._docs.length;r{let r=1;e.matches.forEach(({key:e,norm:a,score:s})=>{let n=e?e.weight:null;r*=Math.pow(0===s&&n?Number.EPSILON:s,(n||1)*(t?1:a))}),e.score=r})}(c,{ignoreFieldNorm:l}),s&&c.sort(i),o(t)&&t>-1&&(c=c.slice(0,t)),function(e,t,{includeMatches:r=m.includeMatches,includeScore:a=m.includeScore}={}){let s=[];return r&&s.push(q),a&&s.push(B),e.map(e=>{let{idx:r}=e,a={item:t[r],refIndex:r};return s.length&&s.forEach(t=>{t(e,a)}),a})}(c,this._docs,{includeMatches:r,includeScore:a})}_searchStringList(e){let t=R(e,this.options),{records:r}=this._myIndex,a=[];return r.forEach(({v:e,i:r,n:s})=>{if(!l(e))return;let{isMatch:n,score:o,indices:i}=t.searchIn(e);n&&a.push({item:e,idx:r,matches:[{score:o,value:e,norm:s,indices:i}]})}),a}_searchLogical(e){let t=V(e,this.options),r=(e,t,a)=>{if(!e.children){let{keyId:r,searcher:s}=e,n=this._findMatches({key:this._keyStore.get(r),value:this._myIndex.getValueForItemAtKeyId(t,r),searcher:s});return n&&n.length?[{idx:a,item:t,matches:n}]:[]}let s=[];for(let n=0,o=e.children.length;n{if(l(e)){let o=r(t,e,a);o.length&&(s[a]||(s[a]={idx:a,item:e,matches:[]},n.push(s[a])),o.forEach(({matches:e})=>{s[a].matches.push(...e)}))}}),n}_searchObjectList(e){let t=R(e,this.options),{keys:r,records:a}=this._myIndex,s=[];return a.forEach(({$:e,i:a})=>{if(!l(e))return;let n=[];r.forEach((r,a)=>{n.push(...this._findMatches({key:r,value:e[a],searcher:t}))}),n.length&&s.push({idx:a,item:e,matches:n})}),s}_findMatches({key:e,value:t,searcher:r}){if(!l(t))return[];let s=[];if(a(t))t.forEach(({v:t,i:a,n:n})=>{if(!l(t))return;let{isMatch:o,score:i,indices:c}=r.searchIn(t);o&&s.push({score:i,key:e,value:t,idx:a,norm:n,indices:c})});else{let{v:a,n:n}=t,{isMatch:o,score:i,indices:l}=r.searchIn(a);o&&s.push({score:i,key:e,value:a,norm:n,indices:l})}return s}}K.version="6.6.2",K.createIndex=k,K.parseIndex=function(e,{getFn:t=m.getFn,fieldNormWeight:r=m.fieldNormWeight}={}){let{keys:a,records:s}=e,n=new f({getFn:t,fieldNormWeight:r});return n.setKeys(a),n.setIndexRecords(s),n},K.config=m,K.parseQuery=V,function(...e){O.push(...e)}(z)},16120:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","command","IconCommand",[["path",{d:"M7 9a2 2 0 1 1 2 -2v10a2 2 0 1 1 -2 -2h10a2 2 0 1 1 -2 2v-10a2 2 0 1 1 2 2h-10",key:"svg-0"}]])},21604:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","book","IconBook",[["path",{d:"M3 19a9 9 0 0 1 9 0a9 9 0 0 1 9 0",key:"svg-0"}],["path",{d:"M3 6a9 9 0 0 1 9 0a9 9 0 0 1 9 0",key:"svg-1"}],["path",{d:"M3 6l0 13",key:"svg-2"}],["path",{d:"M12 6l0 13",key:"svg-3"}],["path",{d:"M21 6l0 13",key:"svg-4"}]])},22175:(e,t,r)=>{"use strict";r.d(t,{M:()=>i});var a=r(55729),s=r(33361);function n(e){try{return e&&JSON.parse(e)}catch{return e}}function o(e){return{getItem:t=>{try{return window[e].getItem(t)}catch(e){return console.warn("use-local-storage: Failed to get value from storage, localStorage is blocked"),null}},setItem:(t,r)=>{try{window[e].setItem(t,r)}catch(e){console.warn("use-local-storage: Failed to set value to storage, localStorage is blocked")}},removeItem:t=>{try{window[e].removeItem(t)}catch(e){console.warn("use-local-storage: Failed to remove value from storage, localStorage is blocked")}}}}function i(e){return(function(e,t){let r="localStorage"===e?"mantine-local-storage":"mantine-session-storage",{getItem:i,setItem:l,removeItem:c}=o(e);return function({key:o,defaultValue:d,getInitialValueInEffect:h=!0,sync:u=!0,deserialize:p=n,serialize:g=e=>(function(e,t="use-local-storage"){try{return JSON.stringify(e)}catch(e){throw Error(`@mantine/hooks ${t}: Failed to serialize the value`)}})(e,t)}){let v=(0,a.useCallback)(t=>{let r;try{r="u"{e instanceof Function?y(t=>{let a=e(t);return l(o,g(a)),window.dispatchEvent(new CustomEvent(r,{detail:{key:o,value:e(t)}})),a}):(l(o,g(e)),window.dispatchEvent(new CustomEvent(r,{detail:{key:o,value:e}})),y(e))},[o]),k=(0,a.useCallback)(()=>{c(o),window.dispatchEvent(new CustomEvent(r,{detail:{key:o,value:d}}))},[]);return(0,s.M)("storage",t=>{u&&t.storageArea===window[e]&&t.key===o&&y(p(t.newValue??void 0))}),(0,s.M)(r,e=>{u&&e.detail.key===o&&y(e.detail.value)}),(0,a.useEffect)(()=>{void 0!==d&&void 0===m&&f(d)},[d,m,f]),(0,a.useEffect)(()=>{let e=v();void 0!==e&&f(e)},[o]),[void 0===m?d:m,f,k]}})("localStorage","use-local-storage")(e)}!function(e){let{getItem:t}=o(e)}("localStorage")},22746:(e,t,r)=>{"use strict";r.d(t,{u:()=>h});var a=r(6029),s=r(3001);r(55729);var n=r(80616),o=r(43016),i=r(96061),l=r(29645),c=r(46321);let d={},h=(0,o.P9)((e,t)=>{let{value:r,defaultValue:o,onChange:h,size:u,wrapperProps:p,children:g,readOnly:v,...m}=(0,n.Y)("SwitchGroup",d,e),[y,f]=(0,s.Z)({value:r,defaultValue:o,finalValue:[],onChange:h});return(0,a.jsx)(c.x,{value:{value:y,onChange:e=>{let t=e.currentTarget.value;v||f(y.includes(t)?y.filter(e=>e!==t):[...y,t])},size:u},children:(0,a.jsx)(i.p.Wrapper,{size:u,ref:t,...p,...m,labelElement:"div",__staticSelector:"SwitchGroup",children:(0,a.jsx)(l.F,{role:"group",children:g})})})});h.classes=i.p.Wrapper.classes,h.displayName="@mantine/core/SwitchGroup"},23474:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","chevron-down","IconChevronDown",[["path",{d:"M6 9l6 6l6 -6",key:"svg-0"}]])},23994:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","flask","IconFlask",[["path",{d:"M9 3l6 0",key:"svg-0"}],["path",{d:"M10 9l4 0",key:"svg-1"}],["path",{d:"M10 3v6l-4 11a.7 .7 0 0 0 .5 1h11a.7 .7 0 0 0 .5 -1l-4 -11v-6",key:"svg-2"}]])},29645:(e,t,r)=>{"use strict";r.d(t,{F:()=>n});var a=r(6029);r(55729);var s=r(1827);function n({children:e,role:t}){let r=(0,s.e)();return r?(0,a.jsx)("div",{role:t,"aria-labelledby":r.labelId,"aria-describedby":r.describedBy,children:e}):(0,a.jsx)(a.Fragment,{children:e})}},36517:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","clipboard-check","IconClipboardCheck",[["path",{d:"M9 5h-2a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-12a2 2 0 0 0 -2 -2h-2",key:"svg-0"}],["path",{d:"M9 3m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v0a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z",key:"svg-1"}],["path",{d:"M9 14l2 2l4 -4",key:"svg-2"}]])},42717:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","layout","IconLayout",[["path",{d:"M4 4m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v1a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z",key:"svg-0"}],["path",{d:"M4 13m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v3a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z",key:"svg-1"}],["path",{d:"M14 4m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z",key:"svg-2"}]])},45519:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","table","IconTable",[["path",{d:"M3 5a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14z",key:"svg-0"}],["path",{d:"M3 10h18",key:"svg-1"}],["path",{d:"M10 3v18",key:"svg-2"}]])},46321:(e,t,r)=>{"use strict";r.d(t,{U:()=>o,x:()=>n});var a=r(55729);let s=(0,a.createContext)(null),n=s.Provider,o=()=>(0,a.useContext)(s)},46661:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","layout-grid","IconLayoutGrid",[["path",{d:"M4 4m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z",key:"svg-0"}],["path",{d:"M14 4m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z",key:"svg-1"}],["path",{d:"M4 14m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z",key:"svg-2"}],["path",{d:"M14 14m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z",key:"svg-3"}]])},50561:(e,t,r)=>{"use strict";r.d(t,{O:()=>o});var a=r(55729);let s={" ":"space",ArrowLeft:"arrowleft",ArrowRight:"arrowright",ArrowUp:"arrowup",ArrowDown:"arrowdown",Escape:"esc",Esc:"esc",Enter:"enter",Tab:"tab",Backspace:"backspace",Delete:"delete",Insert:"insert",Home:"home",End:"end",PageUp:"pageup",PageDown:"pagedown","+":"plus","-":"minus","*":"asterisk","/":"slash"};function n(e){let t=e.replace("Key","").toLowerCase();return s[e]||t}function o(e,t=["INPUT","TEXTAREA","SELECT"],r=!1){(0,a.useEffect)(()=>{let a=a=>{e.forEach(([e,s,o={preventDefault:!0,usePhysicalKeys:!1}])=>{var i;(i=o.usePhysicalKeys,t=>{let r,a,s,o;return function(e,t,r){let{alt:a,ctrl:s,meta:o,mod:i,shift:l,key:c}=e,{altKey:d,ctrlKey:h,metaKey:u,shiftKey:p,key:g,code:v}=t;if(a!==d)return!1;if(i){if(!h&&!u)return!1}else if(s!==h||o!==u)return!1;return l===p&&!!c&&(r?n(v)===n(c):n(g??v)===n(c))}((a={alt:(r=e.toLowerCase().split("+").map(e=>e.trim())).includes("alt"),ctrl:r.includes("ctrl"),meta:r.includes("meta"),mod:r.includes("mod"),shift:r.includes("shift"),plus:r.includes("[plus]")},s=["alt","ctrl","meta","shift","mod"],o=r.find(e=>!s.includes(e)),{...a,key:"[plus]"===o?"+":o}),t,i)})(a)&&function(e,t,r=!1){return!(e.target instanceof HTMLElement)||(r?!t.includes(e.target.tagName):!e.target.isContentEditable&&!t.includes(e.target.tagName))}(a,t,r)&&(o.preventDefault&&a.preventDefault(),s(a))})};return document.documentElement.addEventListener("keydown",a),()=>document.documentElement.removeEventListener("keydown",a)},[e])}},53061:(e,t,r)=>{"use strict";r.d(t,{o:()=>d});var a=r(6029);r(55729);var s=r(80616),n=r(37666),o=r(60481),i=r(63863),l={root:"m_4451eb3a"};let c={},d=(0,i.v)((e,t)=>{let r=(0,s.Y)("Center",c,e),{classNames:i,className:d,style:h,styles:u,unstyled:p,vars:g,inline:v,mod:m,...y}=r,f=(0,n.I)({name:"Center",props:r,classes:l,className:d,style:h,classNames:i,styles:u,unstyled:p,vars:g});return(0,a.jsx)(o.a,{ref:t,mod:[{inline:v},m],...f("root"),...y})});d.classes=l,d.displayName="@mantine/core/Center"},53780:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("filled","bell-filled","IconBellFilled",[["path",{d:"M14.235 19c.865 0 1.322 1.024 .745 1.668a3.992 3.992 0 0 1 -2.98 1.332a3.992 3.992 0 0 1 -2.98 -1.332c-.552 -.616 -.158 -1.579 .634 -1.661l.11 -.006h4.471z",key:"svg-0"}],["path",{d:"M12 2c1.358 0 2.506 .903 2.875 2.141l.046 .171l.008 .043a8.013 8.013 0 0 1 4.024 6.069l.028 .287l.019 .289v2.931l.021 .136a3 3 0 0 0 1.143 1.847l.167 .117l.162 .099c.86 .487 .56 1.766 -.377 1.864l-.116 .006h-16c-1.028 0 -1.387 -1.364 -.493 -1.87a3 3 0 0 0 1.472 -2.063l.021 -.143l.001 -2.97a8 8 0 0 1 3.821 -6.454l.248 -.146l.01 -.043a3.003 3.003 0 0 1 2.562 -2.29l.182 -.017l.176 -.004z",key:"svg-1"}]])},54134:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","logs","IconLogs",[["path",{d:"M4 12h.01",key:"svg-0"}],["path",{d:"M4 6h.01",key:"svg-1"}],["path",{d:"M4 18h.01",key:"svg-2"}],["path",{d:"M8 18h2",key:"svg-3"}],["path",{d:"M8 12h2",key:"svg-4"}],["path",{d:"M8 6h2",key:"svg-5"}],["path",{d:"M14 6h6",key:"svg-6"}],["path",{d:"M14 12h6",key:"svg-7"}],["path",{d:"M14 18h6",key:"svg-8"}]])},56447:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","layout-sidebar-left-collapse","IconLayoutSidebarLeftCollapse",[["path",{d:"M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z",key:"svg-0"}],["path",{d:"M9 4v16",key:"svg-1"}],["path",{d:"M15 10l-2 2l2 2",key:"svg-2"}]])},56513:(e,t,r)=>{"use strict";r.d(t,{W:()=>R});var a=r(6029),s=r(55729),n=r(3001),o=r(3465),i=r(78526),l=r(35228),c=r(37666),d=r(80616),h=r(43016),u=r(82556),p=r(37659);let[g,v]=(0,r(36254).F)("Menu component was not found in the tree");var m=r(60481),y={dropdown:"m_dc9b7c9f",label:"m_9bfac126",divider:"m_efdf90cb",item:"m_99ac2aa1",itemLabel:"m_5476e0d3",itemSection:"m_8b75e504"};let f={},k=(0,h.P9)((e,t)=>{let{classNames:r,className:s,style:n,styles:o,vars:i,...l}=(0,d.Y)("MenuDivider",f,e),c=v();return(0,a.jsx)(m.a,{ref:t,...c.getStyles("divider",{className:s,style:n,styles:o,classNames:r}),...l})});k.classes=y,k.displayName="@mantine/core/MenuDivider";var M=r(56655),w=r(72448);let b={},x=(0,h.P9)((e,t)=>{let{classNames:r,className:n,style:o,styles:i,vars:l,onMouseEnter:c,onMouseLeave:h,onKeyDown:u,children:g,...m}=(0,d.Y)("MenuDropdown",b,e),y=(0,s.useRef)(null),f=v(),k=(0,w.T)(u,e=>{("ArrowUp"===e.key||"ArrowDown"===e.key)&&(e.preventDefault(),y.current?.querySelectorAll("[data-menu-item]:not(:disabled)")[0]?.focus())}),x=(0,w.T)(c,()=>("hover"===f.trigger||"click-hover"===f.trigger)&&f.openDropdown()),S=(0,w.T)(h,()=>("hover"===f.trigger||"click-hover"===f.trigger)&&f.closeDropdown());return(0,a.jsxs)(p.A.Dropdown,{...m,onMouseEnter:x,onMouseLeave:S,role:"menu","aria-orientation":"vertical",ref:(0,M.pc)(t,y),...f.getStyles("dropdown",{className:n,style:o,styles:i,classNames:r,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,onKeyDown:k,children:[f.withInitialFocusPlaceholder&&(0,a.jsx)("div",{tabIndex:-1,"data-autofocus":!0,"data-mantine-stop-propagation":!0,style:{outline:0}}),g]})});x.classes=y,x.displayName="@mantine/core/MenuDropdown";var S=r(66062),A=r(41375),C=r(15862),_=r(63863),I=r(52432),j=r(8737);let E={},L=(0,_.v)((e,t)=>{let{classNames:r,className:n,style:o,styles:i,vars:l,color:c,closeMenuOnClick:h,leftSection:u,rightSection:p,children:g,disabled:m,"data-disabled":y,...f}=(0,d.Y)("MenuItem",E,e),k=v(),b=(0,C.xd)(),{dir:x}=(0,I.jH)(),_=(0,s.useRef)(null),L=k.getItemIndex(_.current),D=(0,w.T)(f.onMouseLeave,()=>k.setHovered(-1)),N=(0,w.T)(f.onMouseEnter,()=>k.setHovered(k.getItemIndex(_.current))),F=(0,w.T)(f.onClick,()=>{!y&&("boolean"==typeof h?h&&k.closeDropdownImmediately():k.closeOnItemClick&&k.closeDropdownImmediately())}),$=(0,w.T)(f.onFocus,()=>k.setHovered(k.getItemIndex(_.current))),z=c?b.variantColorResolver({color:c,theme:b,variant:"light"}):void 0,O=c?(0,A.g)({color:c,theme:b}):null;return(0,a.jsxs)(j.N,{...f,unstyled:k.unstyled,tabIndex:k.menuItemTabIndex,onFocus:$,...k.getStyles("item",{className:n,style:o,styles:i,classNames:r}),ref:(0,M.pc)(_,t),role:"menuitem",disabled:m,"data-menu-item":!0,"data-disabled":m||y||void 0,"data-hovered":k.hovered===L||void 0,"data-mantine-stop-propagation":!0,onMouseEnter:N,onMouseLeave:D,onClick:F,onKeyDown:(0,S.Y)({siblingSelector:"[data-menu-item]:not([data-disabled])",parentSelector:"[data-menu-dropdown]",activateOnFocus:!1,loop:k.loop,dir:x,orientation:"vertical",onKeyDown:f.onKeyDown}),__vars:{"--menu-item-color":O?.isThemeColor&&O?.shade===void 0?`var(--mantine-color-${O.color}-6)`:z?.color,"--menu-item-hover":z?.hover},children:[u&&(0,a.jsx)("div",{...k.getStyles("itemSection",{styles:i,classNames:r}),"data-position":"left",children:u}),g&&(0,a.jsx)("div",{...k.getStyles("itemLabel",{styles:i,classNames:r}),children:g}),p&&(0,a.jsx)("div",{...k.getStyles("itemSection",{styles:i,classNames:r}),"data-position":"right",children:p})]})});L.classes=y,L.displayName="@mantine/core/MenuItem";let D={},N=(0,h.P9)((e,t)=>{let{classNames:r,className:s,style:n,styles:o,vars:i,...l}=(0,d.Y)("MenuLabel",D,e),c=v();return(0,a.jsx)(m.a,{ref:t,...c.getStyles("label",{className:s,style:n,styles:o,classNames:r}),...l})});N.classes=y,N.displayName="@mantine/core/MenuLabel";var F=r(30342);let $={refProp:"ref"},z=(0,s.forwardRef)((e,t)=>{let{children:r,refProp:n,...o}=(0,d.Y)("MenuTarget",$,e);if(!(0,F.v)(r))throw Error("Menu.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");let i=v(),l=r.props,c=(0,w.T)(l.onClick,()=>{"click"===i.trigger?i.toggleDropdown():"click-hover"===i.trigger&&(i.setOpenedViaClick(!0),i.opened||i.openDropdown())}),h=(0,w.T)(l.onMouseEnter,()=>("hover"===i.trigger||"click-hover"===i.trigger)&&i.openDropdown()),u=(0,w.T)(l.onMouseLeave,()=>{"hover"===i.trigger?i.closeDropdown():"click-hover"!==i.trigger||i.openedViaClick||i.closeDropdown()});return(0,a.jsx)(p.A.Target,{refProp:n,popupType:"menu",ref:t,...o,children:(0,s.cloneElement)(r,{onClick:c,onMouseEnter:h,onMouseLeave:u,"data-expanded":!!i.opened||void 0})})});z.displayName="@mantine/core/MenuTarget";let O={trapFocus:!0,closeOnItemClick:!0,withInitialFocusPlaceholder:!0,clickOutsideEvents:["mousedown","touchstart","keydown"],loop:!0,trigger:"click",openDelay:0,closeDelay:100,menuItemTabIndex:-1};function R(e){let t=(0,d.Y)("Menu",O,e),{children:r,onOpen:h,onClose:v,opened:m,defaultOpened:f,trapFocus:k,onChange:M,closeOnItemClick:w,loop:b,closeOnEscape:x,trigger:S,openDelay:A,closeDelay:C,classNames:_,styles:I,unstyled:j,variant:E,vars:L,menuItemTabIndex:D,keepMounted:N,withInitialFocusPlaceholder:F,...$}=t,z=(0,c.I)({name:"Menu",classes:y,props:t,classNames:_,styles:I,unstyled:j}),[R,{setHovered:P,resetHovered:T}]=function(){let[e,t]=(0,s.useState)(-1);return[e,{setHovered:t,resetHovered:()=>t(-1)}]}(),[Y,G]=(0,n.Z)({value:m,defaultValue:f,finalValue:!1,onChange:M}),[V,q]=(0,s.useState)(!1),B=()=>{G(!1),q(!1),Y&&v?.()},K=()=>{G(!0),Y||h?.()},W=()=>{Y?B():K()},{openDropdown:H,closeDropdown:U}=(0,u.K)({open:K,close:B,closeDelay:C,openDelay:A}),{resolvedClassNames:Z,resolvedStyles:J}=(0,l.Y)({classNames:_,styles:I,props:t});return(0,o.C)(()=>{T()},[Y]),(0,a.jsx)(g,{value:{getStyles:z,opened:Y,toggleDropdown:W,getItemIndex:e=>e?Array.from((0,i.P)(e,"[data-menu-dropdown]")?.querySelectorAll("[data-menu-item]")||[]).findIndex(t=>t===e):null,hovered:R,setHovered:P,openedViaClick:V,setOpenedViaClick:q,closeOnItemClick:w,closeDropdown:"click"===S?B:U,openDropdown:"click"===S?K:H,closeDropdownImmediately:B,loop:b,trigger:S,unstyled:j,menuItemTabIndex:D,withInitialFocusPlaceholder:F},children:(0,a.jsx)(p.A,{...$,opened:Y,onChange:W,defaultOpened:f,trapFocus:!N&&k,closeOnEscape:x,__staticSelector:"Menu",classNames:Z,styles:J,unstyled:j,variant:E,keepMounted:N,children:r})})}R.extend=e=>e,R.withProps=(0,h.LE)(R),R.classes=y,R.displayName="@mantine/core/Menu",R.Item=L,R.Label=N,R.Dropdown=x,R.Target=z,R.Divider=k},58333:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","chevron-up","IconChevronUp",[["path",{d:"M6 15l6 -6l6 6",key:"svg-0"}]])},62801:(e,t,r)=>{"use strict";r.d(t,{Z:()=>k});var a=r(6029),s=r(55729),n=r(76),o=r(5618),i=r(80616),l=r(37666),c=r(63863),d=r(22623);let[h,u]=(0,r(36254).F)("Card component was not found in tree");var p=r(60481),g={root:"m_e615b15f",section:"m_599a2148"};let v={},m=(0,c.v)((e,t)=>{let{classNames:r,className:s,style:n,styles:o,vars:l,withBorder:c,inheritPadding:d,mod:h,...g}=(0,i.Y)("CardSection",v,e),m=u();return(0,a.jsx)(p.a,{ref:t,mod:[{"with-border":c,"inherit-padding":d},h],...m.getStyles("section",{className:s,style:n,styles:o,classNames:r}),...g})});m.classes=g,m.displayName="@mantine/core/CardSection";let y={},f=(0,o.V)((e,{padding:t})=>({root:{"--card-padding":(0,n.GY)(t)}})),k=(0,c.v)((e,t)=>{let r=(0,i.Y)("Card",y,e),{classNames:n,className:o,style:c,styles:u,unstyled:p,vars:v,children:k,padding:M,...w}=r,b=(0,l.I)({name:"Card",props:r,classes:g,className:o,style:c,classNames:n,styles:u,unstyled:p,vars:v,varsResolver:f}),x=s.Children.toArray(k),S=x.map((e,t)=>"object"==typeof e&&e&&"type"in e&&e.type===m?(0,s.cloneElement)(e,{"data-first-section":0===t||void 0,"data-last-section":t===x.length-1||void 0}):e);return(0,a.jsx)(h,{value:{getStyles:b},children:(0,a.jsx)(d.t,{ref:t,unstyled:p,...b("root"),...w,children:S})})});k.classes=g,k.displayName="@mantine/core/Card",k.Section=m},62861:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","logout","IconLogout",[["path",{d:"M14 8v-2a2 2 0 0 0 -2 -2h-7a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h7a2 2 0 0 0 2 -2v-2",key:"svg-0"}],["path",{d:"M9 12h12l-3 -3",key:"svg-1"}],["path",{d:"M18 15l3 -3",key:"svg-2"}]])},66992:(e,t,r)=>{"use strict";r.d(t,{e:()=>b});var a=r(6029),s=r(55729),n=r(76),o=r(5618),i=r(80616),l=r(37666),c=r(60481),d=r(63863),h=r(43016);let u=(0,s.createContext)(null),p=u.Provider;var g={group:"m_11def92b",root:"m_f85678b6",image:"m_11f8ac07",placeholder:"m_104cd71f"};let v={},m=(0,o.V)((e,{spacing:t})=>({group:{"--ag-spacing":(0,n.GY)(t)}})),y=(0,h.P9)((e,t)=>{let r=(0,i.Y)("AvatarGroup",v,e),{classNames:s,className:n,style:o,styles:d,unstyled:h,vars:u,spacing:y,...f}=r,k=(0,l.I)({name:"AvatarGroup",classes:g,props:r,className:n,style:o,classNames:s,styles:d,unstyled:h,vars:u,varsResolver:m,rootSelector:"group"});return(0,a.jsx)(p,{value:!0,children:(0,a.jsx)(c.a,{ref:t,...k("group"),...f})})});function f(e){return(0,a.jsx)("svg",{...e,"data-avatar-placeholder-icon":!0,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M0.877014 7.49988C0.877014 3.84219 3.84216 0.877045 7.49985 0.877045C11.1575 0.877045 14.1227 3.84219 14.1227 7.49988C14.1227 11.1575 11.1575 14.1227 7.49985 14.1227C3.84216 14.1227 0.877014 11.1575 0.877014 7.49988ZM7.49985 1.82704C4.36683 1.82704 1.82701 4.36686 1.82701 7.49988C1.82701 8.97196 2.38774 10.3131 3.30727 11.3213C4.19074 9.94119 5.73818 9.02499 7.50023 9.02499C9.26206 9.02499 10.8093 9.94097 11.6929 11.3208C12.6121 10.3127 13.1727 8.97172 13.1727 7.49988C13.1727 4.36686 10.6328 1.82704 7.49985 1.82704ZM10.9818 11.9787C10.2839 10.7795 8.9857 9.97499 7.50023 9.97499C6.01458 9.97499 4.71624 10.7797 4.01845 11.9791C4.97952 12.7272 6.18765 13.1727 7.49985 13.1727C8.81227 13.1727 10.0206 12.727 10.9818 11.9787ZM5.14999 6.50487C5.14999 5.207 6.20212 4.15487 7.49999 4.15487C8.79786 4.15487 9.84999 5.207 9.84999 6.50487C9.84999 7.80274 8.79786 8.85487 7.49999 8.85487C6.20212 8.85487 5.14999 7.80274 5.14999 6.50487ZM7.49999 5.10487C6.72679 5.10487 6.09999 5.73167 6.09999 6.50487C6.09999 7.27807 6.72679 7.90487 7.49999 7.90487C8.27319 7.90487 8.89999 7.27807 8.89999 6.50487C8.89999 5.73167 8.27319 5.10487 7.49999 5.10487Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}y.classes=g,y.displayName="@mantine/core/AvatarGroup";let k=["blue","cyan","grape","green","indigo","lime","orange","pink","red","teal","violet"],M={},w=(0,o.V)((e,{size:t,radius:r,variant:a,gradient:s,color:o,autoContrast:i,name:l,allowedInitialsColors:c})=>{let d="initials"===o&&"string"==typeof l?function(e,t=k){let r=Math.abs(function(e){let t=0;for(let r=0;r{let r=(0,i.Y)("Avatar",M,e),{classNames:n,className:o,style:d,styles:h,unstyled:p,vars:v,src:m,alt:y,radius:k,color:b,gradient:x,imageProps:S,children:A,autoContrast:C,mod:_,name:I,allowedInitialsColors:j,...E}=r,L={withinGroup:!!(0,s.useContext)(u)},[D,N]=(0,s.useState)(!m),F=(0,l.I)({name:"Avatar",props:r,classes:g,className:o,style:d,classNames:n,styles:h,unstyled:p,vars:v,varsResolver:w});return(0,s.useEffect)(()=>N(!m),[m]),(0,a.jsx)(c.a,{...F("root"),mod:[{"within-group":L.withinGroup},_],ref:t,...E,children:D?(0,a.jsx)("span",{...F("placeholder"),title:y,children:A||"string"==typeof I&&function(e,t=2){let r=e.split(" ");return 1===r.length?e.slice(0,t).toUpperCase():r.map(e=>e[0]).slice(0,t).join("").toUpperCase()}(I)||(0,a.jsx)(f,{})}):(0,a.jsx)("img",{...S,...F("image"),src:m,alt:y,onError:e=>{N(!0),S?.onError?.(e)}})})});b.classes=g,b.displayName="@mantine/core/Avatar",b.Group=y},70114:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","chevron-right","IconChevronRight",[["path",{d:"M9 6l6 6l-6 6",key:"svg-0"}]])},71991:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","chart-dots","IconChartDots",[["path",{d:"M3 3v18h18",key:"svg-0"}],["path",{d:"M9 9m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-1"}],["path",{d:"M19 7m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-2"}],["path",{d:"M14 15m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-3"}],["path",{d:"M10.16 10.62l2.34 2.88",key:"svg-4"}],["path",{d:"M15.088 13.328l2.837 -4.586",key:"svg-5"}]])},72448:(e,t,r)=>{"use strict";function a(e,t){return r=>{e?.(r),t?.(r)}}r.d(t,{T:()=>a})},72832:(e,t,r)=>{"use strict";r.d(t,{I:()=>h,M:()=>d});var a=r(6029),s=r(55729),n=r(76),o=r(37666),i=r(60481),l=r(96061),c={root:"m_5f75b09e",body:"m_5f6e695e",labelWrapper:"m_d3ea56bb",label:"m_8ee546b8",description:"m_328f68c0",error:"m_8e8a99cc"};let d=c,h=(0,s.forwardRef)(({__staticSelector:e,__stylesApiProps:t,className:r,classNames:s,styles:d,unstyled:h,children:u,label:p,description:g,id:v,disabled:m,error:y,size:f,labelPosition:k="left",bodyElement:M="div",labelElement:w="label",variant:b,style:x,vars:S,mod:A,...C},_)=>{let I=(0,o.I)({name:e,props:t,className:r,style:x,classes:c,classNames:s,styles:d,unstyled:h});return(0,a.jsx)(i.a,{...I("root"),ref:_,__vars:{"--label-fz":(0,n.ny)(f),"--label-lh":(0,n.YC)(f,"label-lh")},mod:[{"label-position":k},A],variant:b,size:f,...C,children:(0,a.jsxs)(i.a,{component:M,htmlFor:"label"===M?v:void 0,...I("body"),children:[u,(0,a.jsxs)("div",{...I("labelWrapper"),"data-disabled":m||void 0,children:[p&&(0,a.jsx)(i.a,{component:w,htmlFor:"label"===w?v:void 0,...I("label"),"data-disabled":m||void 0,children:p}),g&&(0,a.jsx)(l.p.Description,{size:f,__inheritStyles:!1,...I("description"),children:g}),y&&"boolean"!=typeof y&&(0,a.jsx)(l.p.Error,{size:f,__inheritStyles:!1,...I("error"),children:y})]})]})})});h.displayName="@mantine/core/InlineInput"},74805:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","clipboard","IconClipboard",[["path",{d:"M9 5h-2a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-12a2 2 0 0 0 -2 -2h-2",key:"svg-0"}],["path",{d:"M9 3m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v0a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z",key:"svg-1"}]])},74862:(e,t,r)=>{"use strict";let a;r.d(t,{L:()=>ev});var s=r(6029),n=r(69626),o=r(43016),i=r(80616),l=r(3001);function c(e){return void 0!==e.group&&Array.isArray(e.actions)}var d=r(74003),h=r(62900);function u(e,t){let r=t.getState();t.setState({...r,...e(t.getState())})}function p(e){u(()=>({opened:!0,selected:-1}),e)}function g(e){u(()=>({opened:!1}),e)}function v(e,t=document){let r=t.querySelector(e);if(r)return r;let a=t instanceof ShadowRoot?t.host.children:t.children;for(let t=0;t({...e,selected:r})),l}let y=function(e,t){t.updateState(t=>({...t,listId:e}))},f=function(e){let t=e.getState(),r=v(`#${t.listId} [data-selected]`);r?.click()},k=function(e,t){u(()=>({query:e}),t),Promise.resolve().then(()=>{m(0,t),u(e=>({empty:e.query.trim().length>0&&0===e.registeredActions.size}),t)})},M=function({clearQuery:e},t){t.updateState(t=>({...t,selected:-1,query:e?"":t.query,empty:!e&&t.empty}))},[w,b]=[a=(0,h.y)({opened:!1,empty:!1,selected:-1,listId:"",query:"",registeredActions:new Set}),{open:()=>p(a),close:()=>g(a),toggle:()=>{u(e=>({opened:!e.opened,selected:e.opened?e.selected:-1}),a)}}],{open:x,close:S,toggle:A}=b;var C=r(55729),_=r(63863),I=r(5618),j=r(37666),E=r(60481),L=r(41375);function D({color:e,theme:t,defaultShade:r}){let a=(0,L.g)({color:e,theme:t});return a.isThemeColor?void 0===a.shade?`var(--mantine-color-${a.color}-${r})`:`var(${a.variable})`:e}var N={root:"m_bcb3f3c2"};let F={color:"yellow"},$=(0,I.V)((e,{color:t})=>({root:{"--mark-bg-dark":D({color:t,theme:e,defaultShade:5}),"--mark-bg-light":D({color:t,theme:e,defaultShade:2})}})),z=(0,o.P9)((e,t)=>{let r=(0,i.Y)("Mark",F,e),{classNames:a,className:n,style:o,styles:l,unstyled:c,vars:d,color:h,variant:u,...p}=r,g=(0,j.I)({name:"Mark",props:r,className:n,style:o,classes:N,classNames:a,styles:l,unstyled:c,vars:d,varsResolver:$});return(0,s.jsx)(E.a,{component:"mark",ref:t,variant:u,...g("root"),...p})});z.classes=N,z.displayName="@mantine/core/Mark";var O=r(43517);function R(e){return e.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&")}let P={},T=(0,_.v)((e,t)=>{let{unstyled:r,children:a,highlight:n,highlightStyles:o,color:l,...c}=(0,i.Y)("Highlight",P,e),d=function(e,t){if(null==t)return[{chunk:e,highlighted:!1}];let r=Array.isArray(t)?t.map(R):R(t);if(!(Array.isArray(r)?r.filter(e=>e.trim().length>0).length>0:""!==r.trim()))return[{chunk:e,highlighted:!1}];let a="string"==typeof r?r.trim():r.filter(e=>0!==e.trim().length).map(e=>e.trim()).sort((e,t)=>t.length-e.length).join("|"),s=RegExp(`(${a})`,"gi");return e.split(s).map(e=>({chunk:e,highlighted:s.test(e)})).filter(({chunk:e})=>e)}(a,n);return(0,s.jsx)(O.E,{unstyled:r,ref:t,...c,__staticSelector:"Highlight",children:d.map(({chunk:e,highlighted:t},a)=>t?(0,s.jsx)(z,{unstyled:r,color:l,style:o,"data-highlight":e,children:e},a):(0,s.jsx)("span",{children:e},a))})});T.classes=O.E.classes,T.displayName="@mantine/core/Highlight";var Y=r(8737);let[G,V]=(0,r(36254).F)("Spotlight component was not found in tree");var q={root:"m_d2b315db",content:"m_3cd250e0",body:"m_d2abce9b",search:"m_f366a061",actionsList:"m_6e463822",action:"m_d49bb8ef",actionBody:"m_3d475731",actionSection:"m_832642f6",actionLabel:"m_6c2a1345",actionDescription:"m_a6d9d78d",empty:"m_82f78f74",footer:"m_ddcaf054",actionsGroup:"m_5a3e5f7b"};let B={dimmedSections:!0,highlightQuery:!1},K=(0,o.P9)((e,t)=>{let{className:r,style:a,classNames:n,styles:o,id:l,description:c,label:d,leftSection:h,rightSection:u,children:p,dimmedSections:v,highlightQuery:m,highlightColor:y,closeSpotlightOnTrigger:f,onClick:k,onMouseDown:M,keywords:w,vars:b,...x}=(0,i.Y)("SpotlightAction",B,e),S=V(),A={classNames:n,styles:o},C=m&&"string"==typeof d?(0,s.jsx)(T,{component:"span",highlight:S.query,color:y,...S.getStyles("actionLabel",A),children:d}):(0,s.jsx)("span",{...S.getStyles("actionLabel",A),children:d});return(0,s.jsx)(Y.N,{ref:t,"data-action":!0,...S.getStyles("action",{className:r,style:a,...A}),...x,onMouseDown:e=>{e.preventDefault(),M?.(e)},onClick:e=>{k?.(e),(f??S.closeOnActionTrigger)&&g(S.store)},tabIndex:-1,children:p||(0,s.jsxs)(s.Fragment,{children:[h&&(0,s.jsx)(E.a,{component:"span",mod:{position:"left",dimmed:v},...S.getStyles("actionSection",A),children:h}),(0,s.jsxs)("span",{...S.getStyles("actionBody",A),children:[C,(0,s.jsx)("span",{...S.getStyles("actionDescription",A),children:c})]}),u&&(0,s.jsx)(E.a,{component:"span",mod:{position:"right",dimmed:v},...S.getStyles("actionSection",A),children:u})]})})});K.classes=q,K.displayName="@mantine/spotlight/SpotlightAction";let W={},H=(0,o.P9)((e,t)=>{let{className:r,style:a,styles:n,classNames:o,label:l,children:c,...d}=(0,i.Y)("SpotlightActionsGroup",W,e),h=V();return(0,s.jsx)(E.a,{...h.getStyles("actionsGroup",{className:r,style:a,classNames:o,styles:n}),ref:t,...d,__vars:{"--spotlight-label":`'${l?.replace(/'/g,"\\'")}'`},children:c})});H.classes=q,H.displayName="@mantine/core/SpotlightActionsGroup";var U=r(53993);let Z={},J=(0,o.P9)((e,t)=>{let{className:r,style:a,id:n,children:o,vars:l,classNames:c,styles:d,...h}=(0,i.Y)("SpotlightActionsList",Z,e),u=V(),p=`mantine-${(0,C.useId)().replace(/:/g,"")}`,g=n||p;return(0,C.useEffect)(()=>(y(g,u.store),()=>y("",u.store)),[]),(0,s.jsx)(U.F.Autosize,{...u.getStyles("actionsList",{className:r,style:a,classNames:c,styles:d}),ref:t,type:"scroll",scrollbarSize:"var(--spotlight-actions-list-padding)",offsetScrollbars:"y",id:g,...h,children:o})});J.classes=q,J.displayName="@mantine/spotlight/SpotlightActionsList";let Q={},X=(0,o.P9)((e,t)=>{let{className:r,style:a,classNames:n,styles:o,...l}=(0,i.Y)("SpotlightEmpty",Q,e),c=V();return(0,s.jsx)(E.a,{ref:t,...c.getStyles("empty",{classNames:n,styles:o,className:r,style:a}),...l})});X.classes=q,X.displayName="@mantine/spotlight/SpotlightEmpty";let ee={},et=(0,o.P9)((e,t)=>{let{className:r,style:a,classNames:n,styles:o,...l}=(0,i.Y)("SpotlightFooter",ee,e),c=V();return(0,s.jsx)(E.a,{ref:t,...c.getStyles("footer",{className:r,classNames:n,style:a,styles:o}),...l})});et.classes=q,et.displayName="@mantine/spotlight/SpotlightFooter";var er=r(15862),ea=r(27166),es=r(86091),en=r(93692),eo=r(26615),ei=r(50561),el=r(3465);let ec={size:600,yOffset:80,zIndex:(0,n.I)("max"),overlayProps:{backgroundOpacity:.35,blur:7},transitionProps:{duration:200,transition:"pop"},store:w,clearQueryOnClose:!0,closeOnActionTrigger:!0,shortcut:"mod + K",maxHeight:400,scrollable:!1},ed=(0,o.P9)((e,t)=>{let r=(0,i.Y)("SpotlightRoot",ec,e),{classNames:a,className:n,style:o,styles:l,unstyled:c,vars:d,store:u,children:v,query:m,onQueryChange:y,transitionProps:f,clearQueryOnClose:w,shortcut:b,tagsToIgnore:x,triggerOnContentEditable:S,disabled:A,onSpotlightOpen:C,onSpotlightClose:_,forceOpened:I,closeOnActionTrigger:E,maxHeight:L,scrollable:D,...N}=r,F=(0,er.xd)(),{opened:$,query:z}=(0,h.P)(u),O=e=>{y?.(e),k(e,u)},R=(0,j.I)({name:"Spotlight",classes:q,props:r,className:n,style:o,classNames:a,styles:l,unstyled:c});return((0,ei.O)(function(e,t){if(!e)return[];let r=()=>p(t);return Array.isArray(e)?e.map(e=>[e,r]):[[e,r]]}(b,u),x,S),(0,el.C)(()=>{$?C?.():_?.()},[$]),A)?null:(0,s.jsx)(G,{value:{getStyles:R,query:m||z,setQuery:O,store:u,closeOnActionTrigger:E},children:(0,s.jsx)(ea.a,{ref:t,...N,withCloseButton:!1,opened:$||!!I,padding:0,onClose:()=>g(u),className:n,style:o,classNames:(0,es.J)({theme:F,classNames:[q,a],props:r,stylesCtx:void 0}),styles:(0,en.N)({theme:F,styles:l,props:r,stylesCtx:void 0}),transitionProps:{...f,onExited:()=>{w&&O(""),M({clearQuery:w},u),f?.onExited?.()}},__vars:{"--spotlight-max-height":D?(0,eo.D)(L):void 0},__staticSelector:"Spotlight","data-scrollable":D||void 0,children:v})})});ed.classes=q,ed.displayName="@mantine/spotlight/SpotlightRoot";var eh=r(96061);let eu={size:"lg"},ep=(0,o.P9)((e,t)=>{let{classNames:r,styles:a,onKeyDown:n,onChange:o,vars:l,value:c,...d}=(0,i.Y)("SpotlightSearch",eu,e),h=V(),u=h.getStyles("search"),[p,g]=(0,C.useState)(!1);return(0,s.jsx)(eh.p,{ref:t,classNames:[{input:u.className},r],styles:[{input:u.style},a],...d,value:c??h.query,onChange:e=>{h.setQuery(e.currentTarget.value),o?.(e)},onKeyDown:e=>{var t,r;n?.(e),p||("ArrowDown"===e.nativeEvent.code&&(e.preventDefault(),m((t=h.store).getState().selected+1,t)),"ArrowUp"===e.nativeEvent.code&&(e.preventDefault(),m((r=h.store).getState().selected-1,r)),("Enter"===e.nativeEvent.code||"NumpadEnter"===e.nativeEvent.code)&&(e.preventDefault(),f(h.store)))},onCompositionStart:()=>g(!0),onCompositionEnd:()=>g(!1)})});ep.classes=q,ep.displayName="@mantine/spotlight/SpotlightSearch";let eg={size:600,yOffset:80,limit:1/0,zIndex:(0,n.I)("max"),overlayProps:{backgroundOpacity:.35,blur:7},transitionProps:{duration:200,transition:"pop"},store:w,filter:(e,t)=>{var r;let a,s,n=e.trim().toLowerCase(),o=[[],[]];return t.reduce((e,t)=>"actions"in t?[...e,...t.actions.map(e=>({...e,group:t.group}))]:[...e,t],[]).forEach(e=>{if(e.label?.toLowerCase().includes(n))o[0].push(e);else{var t;(e.description?.toLowerCase().includes(n)||(Array.isArray(t=e.keywords)?t.map(e=>e.trim()).join(",").toLowerCase().trim():"string"==typeof t?t.toLowerCase().trim():"").includes(n))&&o[1].push(e)}}),r=o.flat(),a={},s=[],r.forEach(e=>{e.group?(a[e.group]||(a[e.group]={pushed:!1,data:{group:e.group,actions:[]}}),a[e.group].data.actions.push(e),a[e.group].pushed||(a[e.group].pushed=!0,s.push(a[e.group].data))):s.push(e)}),s},clearQueryOnClose:!0,closeOnActionTrigger:!0,shortcut:"mod + K",highlightQuery:!1},ev=(0,o.P9)((e,t)=>{let{searchProps:r,filter:a,query:n,onQueryChange:o,actions:d,nothingFound:h,highlightQuery:u,limit:p,...g}=(0,i.Y)("Spotlight",eg,e),[v,m]=(0,l.Z)({value:n,defaultValue:"",finalValue:"",onChange:o}),y=(function e(t,r){if(!Array.isArray(t))return[];let a=0;return t.reduce((t,s)=>{if(a>=r)return t;if(c(s)){let n=e(s.actions,r-a);t.push({group:s.group,actions:n}),a+=n.length}else t.push(s),a+=1;return t},[])})(a(v,d),p).map(e=>{if(c(e)){let t=e.actions.map(({id:e,...t})=>(0,s.jsx)(K,{highlightQuery:u,...t},e));return(0,s.jsx)(H,{label:e.group,children:t},e.group)}return(0,s.jsx)(K,{highlightQuery:u,...e},e.id)});return(0,s.jsxs)(ed,{...g,query:v,onQueryChange:m,ref:t,children:[(0,s.jsx)(ep,{...r}),(0,s.jsxs)(J,{children:[y,0===y.length&&h&&(0,s.jsx)(X,{children:h})]})]})});ev.classes=q,ev.displayName="@mantine/spotlight/Spotlight",ev.Search=ep,ev.ActionsList=J,ev.Action=K,ev.Empty=X,ev.ActionsGroup=H,ev.Footer=et,ev.Root=ed,ev.open=b.open,ev.close=b.close,ev.toggle=b.toggle},80170:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","activity-heartbeat","IconActivityHeartbeat",[["path",{d:"M3 12h4.5l1.5 -6l4 12l2 -9l1.5 3h4.5",key:"svg-0"}]])},82556:(e,t,r)=>{"use strict";r.d(t,{K:()=>s});var a=r(55729);function s({open:e,close:t,openDelay:r,closeDelay:s}){let n=(0,a.useRef)(-1),o=(0,a.useRef)(-1),i=()=>{window.clearTimeout(n.current),window.clearTimeout(o.current)};return(0,a.useEffect)(()=>i,[]),{openDropdown:()=>{i(),0===r||void 0===r?e():n.current=window.setTimeout(e,r)},closeDropdown:()=>{i(),0===s||void 0===s?t():o.current=window.setTimeout(t,s)}}}},84479:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","grid-dots","IconGridDots",[["path",{d:"M5 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-0"}],["path",{d:"M12 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-1"}],["path",{d:"M19 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-2"}],["path",{d:"M5 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-3"}],["path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-4"}],["path",{d:"M19 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-5"}],["path",{d:"M5 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-6"}],["path",{d:"M12 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-7"}],["path",{d:"M19 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-8"}]])},85318:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","sitemap","IconSitemap",[["path",{d:"M3 15m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z",key:"svg-0"}],["path",{d:"M15 15m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z",key:"svg-1"}],["path",{d:"M9 3m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z",key:"svg-2"}],["path",{d:"M6 15v-1a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v1",key:"svg-3"}],["path",{d:"M12 9l0 3",key:"svg-4"}]])},86502:()=>{},86705:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","device-laptop","IconDeviceLaptop",[["path",{d:"M3 19l18 0",key:"svg-0"}],["path",{d:"M5 6m0 1a1 1 0 0 1 1 -1h12a1 1 0 0 1 1 1v8a1 1 0 0 1 -1 1h-12a1 1 0 0 1 -1 -1z",key:"svg-1"}]])},87104:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","bell","IconBell",[["path",{d:"M10 5a2 2 0 1 1 4 0a7 7 0 0 1 4 6v3a4 4 0 0 0 2 3h-16a4 4 0 0 0 2 -3v-3a7 7 0 0 1 4 -6",key:"svg-0"}],["path",{d:"M9 17v1a3 3 0 0 0 6 0v-1",key:"svg-1"}]])},87989:(e,t,r)=>{"use strict";r.d(t,{d:()=>M});var a=r(6029),s=r(60466),n=r(3001);r(55729);var o=r(76),i=r(5618),l=r(66404),c=r(80616),d=r(37666),h=r(3389),u=r(60481),p=r(43016),g=r(72832),v=r(46321),m=r(22746),y={root:"m_5f93f3bb",input:"m_926b4011",track:"m_9307d992",thumb:"m_93039a1d",trackLabel:"m_8277e082"};let f={labelPosition:"right"},k=(0,i.V)((e,{radius:t,color:r,size:a})=>({root:{"--switch-radius":void 0===t?void 0:(0,o.nJ)(t),"--switch-height":(0,o.YC)(a,"switch-height"),"--switch-width":(0,o.YC)(a,"switch-width"),"--switch-thumb-size":(0,o.YC)(a,"switch-thumb-size"),"--switch-label-font-size":(0,o.YC)(a,"switch-label-font-size"),"--switch-track-label-padding":(0,o.YC)(a,"switch-track-label-padding"),"--switch-color":r?(0,l.r)(r,e):void 0}})),M=(0,p.P9)((e,t)=>{let r=(0,c.Y)("Switch",f,e),{classNames:o,className:i,style:l,styles:p,unstyled:m,vars:M,color:w,label:b,offLabel:x,onLabel:S,id:A,size:C,radius:_,wrapperProps:I,thumbIcon:j,checked:E,defaultChecked:L,onChange:D,labelPosition:N,description:F,error:$,disabled:z,variant:O,rootRef:R,mod:P,...T}=r,Y=(0,v.U)(),G=C||Y?.size,V=(0,d.I)({name:"Switch",props:r,classes:y,className:i,style:l,classNames:o,styles:p,unstyled:m,vars:M,varsResolver:k}),{styleProps:q,rest:B}=(0,h.j)(T),K=(0,s.B)(A),W=Y?{checked:Y.value.includes(B.value),onChange:Y.onChange}:{},[H,U]=(0,n.Z)({value:W.checked??E,defaultValue:L,finalValue:!1});return(0,a.jsxs)(g.I,{...V("root"),__staticSelector:"Switch",__stylesApiProps:r,id:K,size:G,labelPosition:N,label:b,description:F,error:$,disabled:z,bodyElement:"label",labelElement:"span",classNames:o,styles:p,unstyled:m,"data-checked":W.checked||E||void 0,variant:O,ref:R,mod:P,...q,...I,children:[(0,a.jsx)("input",{...B,disabled:z,checked:H,"data-checked":W.checked||E||void 0,onChange:e=>{Y?W.onChange?.(e):D?.(e),U(e.currentTarget.checked)},id:K,ref:t,type:"checkbox",role:"switch",...V("input")}),(0,a.jsxs)(u.a,{"aria-hidden":"true",component:"span",mod:{error:$,"label-position":N,"without-labels":!S&&!x},...V("track"),children:[(0,a.jsx)(u.a,{component:"span",mod:"reduce-motion",...V("thumb"),children:j}),(0,a.jsx)("span",{...V("trackLabel"),children:H?S:x})]})]})});M.classes={...y,...g.M},M.displayName="@mantine/core/Switch",M.Group=m.u},88992:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","arrow-right","IconArrowRight",[["path",{d:"M5 12l14 0",key:"svg-0"}],["path",{d:"M13 18l6 -6",key:"svg-1"}],["path",{d:"M13 6l6 6",key:"svg-2"}]])},89533:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","user-cog","IconUserCog",[["path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0",key:"svg-0"}],["path",{d:"M6 21v-2a4 4 0 0 1 4 -4h2.5",key:"svg-1"}],["path",{d:"M19.001 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-2"}],["path",{d:"M19.001 15.5v1.5",key:"svg-3"}],["path",{d:"M19.001 21v1.5",key:"svg-4"}],["path",{d:"M22.032 17.25l-1.299 .75",key:"svg-5"}],["path",{d:"M17.27 20l-1.3 .75",key:"svg-6"}],["path",{d:"M15.97 17.25l1.3 .75",key:"svg-7"}],["path",{d:"M20.733 20l1.3 .75",key:"svg-8"}]])},92334:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","help","IconHelp",[["path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",key:"svg-0"}],["path",{d:"M12 17l0 .01",key:"svg-1"}],["path",{d:"M12 13.5a1.5 1.5 0 0 1 1 -1.5a2.6 2.6 0 1 0 -3 -4",key:"svg-2"}]])},92789:(e,t,r)=>{"use strict";r.d(t,{c:()=>g});var a=r(6029);r(55729);var s=r(76),n=r(5618),o=r(66404),i=r(80616),l=r(37666),c=r(60481),d=r(43016),h={root:"m_3eebeb36",label:"m_9e365f20"};let u={orientation:"horizontal"},p=(0,n.V)((e,{color:t,variant:r,size:a})=>({root:{"--divider-color":t?(0,o.r)(t,e):void 0,"--divider-border-style":r,"--divider-size":(0,s.YC)(a,"divider-size")}})),g=(0,d.P9)((e,t)=>{let r=(0,i.Y)("Divider",u,e),{classNames:s,className:n,style:o,styles:d,unstyled:g,vars:v,color:m,orientation:y,label:f,labelPosition:k,mod:M,...w}=r,b=(0,l.I)({name:"Divider",classes:h,props:r,className:n,style:o,classNames:s,styles:d,unstyled:g,vars:v,varsResolver:p});return(0,a.jsx)(c.a,{ref:t,mod:[{orientation:y,"with-label":!!f},M],...b("root"),...w,role:"separator",children:f&&(0,a.jsx)(c.a,{component:"span",mod:{position:k},...b("label"),children:f})})});g.classes=h,g.displayName="@mantine/core/Divider"},93938:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","bulb","IconBulb",[["path",{d:"M3 12h1m8 -9v1m8 8h1m-15.4 -6.4l.7 .7m12.1 -.7l-.7 .7",key:"svg-0"}],["path",{d:"M9 16a5 5 0 1 1 6 0a3.5 3.5 0 0 0 -1 3a2 2 0 0 1 -4 0a3.5 3.5 0 0 0 -1 -3",key:"svg-1"}],["path",{d:"M9.7 17l4.6 0",key:"svg-2"}]])},95316:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","settings","IconSettings",[["path",{d:"M10.325 4.317c.426 -1.756 2.924 -1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543 -.94 3.31 .826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756 .426 1.756 2.924 0 3.35a1.724 1.724 0 0 0 -1.066 2.573c.94 1.543 -.826 3.31 -2.37 2.37a1.724 1.724 0 0 0 -2.572 1.065c-.426 1.756 -2.924 1.756 -3.35 0a1.724 1.724 0 0 0 -2.573 -1.066c-1.543 .94 -3.31 -.826 -2.37 -2.37a1.724 1.724 0 0 0 -1.065 -2.572c-1.756 -.426 -1.756 -2.924 0 -3.35a1.724 1.724 0 0 0 1.066 -2.573c-.94 -1.543 .826 -3.31 2.37 -2.37c1 .608 2.296 .07 2.572 -1.065z",key:"svg-0"}],["path",{d:"M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0",key:"svg-1"}]])},97702:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","help-circle","IconHelpCircle",[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M12 16v.01",key:"svg-1"}],["path",{d:"M12 13a2 2 0 0 0 .914 -3.782a1.98 1.98 0 0 0 -2.414 .483",key:"svg-2"}]])},97787:(e,t,r)=>{"use strict";r.d(t,{j:()=>y});var a=r(6029),s=r(55729),n=r(60466),o=r(3001),i=r(35228),l=r(80616),c=r(43016),d=r(63531),h=r(27273),u=r(46084),p=r(66085),g=r(24935),v=r(94613);let m={},y=(0,c.P9)((e,t)=>{let r=(0,l.Y)("Autocomplete",m,e),{classNames:c,styles:y,unstyled:f,vars:k,dropdownOpened:M,defaultDropdownOpened:w,onDropdownClose:b,onDropdownOpen:x,onFocus:S,onBlur:A,onClick:C,onChange:_,data:I,value:j,defaultValue:E,selectFirstOptionOnChange:L,onOptionSubmit:D,comboboxProps:N,readOnly:F,disabled:$,filter:z,limit:O,withScrollArea:R,maxDropdownHeight:P,size:T,id:Y,renderOption:G,autoComplete:V,scrollAreaProps:q,onClear:B,clearButtonProps:K,error:W,clearable:H,rightSection:U,...Z}=r,J=(0,n.B)(Y),Q=(0,d.d)(I),X=(0,h.D)(Q),[ee,et]=(0,o.Z)({value:j,defaultValue:E,finalValue:"",onChange:_}),er=(0,g.B)({opened:M,defaultOpened:w,onDropdownOpen:x,onDropdownClose:()=>{b?.(),er.resetSelectedOption()}}),ea=e=>{et(e),er.resetSelectedOption()},{resolvedClassNames:es,resolvedStyles:en}=(0,i.Y)({props:r,styles:y,classNames:c});(0,s.useEffect)(()=>{L&&er.selectFirstOption()},[L,ee]);let eo=(0,a.jsx)(u.G.ClearButton,{...K,onClear:()=>{ea(""),B?.()}});return(0,a.jsxs)(u.G,{store:er,__staticSelector:"Autocomplete",classNames:es,styles:en,unstyled:f,readOnly:F,onOptionSubmit:e=>{D?.(e),ea(X[e].label),er.closeDropdown()},size:T,...N,children:[(0,a.jsx)(u.G.Target,{autoComplete:V,children:(0,a.jsx)(v.O,{ref:t,...Z,size:T,__staticSelector:"Autocomplete",__clearSection:eo,__clearable:H&&!!ee&&!$&&!F,rightSection:U,disabled:$,readOnly:F,value:ee,error:W,onChange:e=>{ea(e.currentTarget.value),er.openDropdown(),L&&er.selectFirstOption()},onFocus:e=>{er.openDropdown(),S?.(e)},onBlur:e=>{er.closeDropdown(),A?.(e)},onClick:e=>{er.openDropdown(),C?.(e)},classNames:es,styles:en,unstyled:f,id:J})}),(0,a.jsx)(p.i,{data:Q,hidden:F||$,filter:z,search:ee,limit:O,hiddenWhenEmpty:!0,withScrollArea:R,maxDropdownHeight:P,unstyled:f,labelId:Z.label?`${J}-label`:void 0,"aria-label":Z.label?void 0:Z["aria-label"],renderOption:G,scrollAreaProps:q})]})});y.classes={...v.O.classes,...u.G.classes},y.displayName="@mantine/core/Autocomplete"}}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3062],{1146:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","brand-discord","IconBrandDiscord",[["path",{d:"M8 12a1 1 0 1 0 2 0a1 1 0 0 0 -2 0",key:"svg-0"}],["path",{d:"M14 12a1 1 0 1 0 2 0a1 1 0 0 0 -2 0",key:"svg-1"}],["path",{d:"M15.5 17c0 1 1.5 3 2 3c1.5 0 2.833 -1.667 3.5 -3c.667 -1.667 .5 -5.833 -1.5 -11.5c-1.457 -1.015 -3 -1.34 -4.5 -1.5l-.972 1.923a11.913 11.913 0 0 0 -4.053 0l-.975 -1.923c-1.5 .16 -3.043 .485 -4.5 1.5c-2 5.667 -2.167 9.833 -1.5 11.5c.667 1.333 2 3 3.5 3c.5 0 2 -2 2 -3",key:"svg-2"}],["path",{d:"M7 16.5c3.5 1 6.5 1 10 0",key:"svg-3"}]])},1885:(e,t,r)=>{"use strict";function a(e){return Array.isArray?Array.isArray(e):"[object Array]"===d(e)}r.d(t,{A:()=>K});let s=1/0;function n(e){return"string"==typeof e}function o(e){return"number"==typeof e}function i(e){return"object"==typeof e}function l(e){return null!=e}function c(e){return!e.trim().length}function d(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}let h=Object.prototype.hasOwnProperty;class u{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach(e=>{let r=p(e);t+=r.weight,this._keys.push(r),this._keyMap[r.id]=r,t+=r.weight}),this._keys.forEach(e=>{e.weight/=t})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function p(e){let t=null,r=null,s=null,o=1,i=null;if(n(e)||a(e))s=e,t=g(e),r=v(e);else{if(!h.call(e,"name"))throw Error("Missing name property in key");let a=e.name;if(s=a,h.call(e,"weight")&&(o=e.weight)<=0)throw Error(`Property 'weight' in key '${a}' must be a positive integer`);t=g(a),r=v(a),i=e.getFn}return{path:t,id:r,weight:o,src:s,getFn:i}}function g(e){return a(e)?e:e.split(".")}function v(e){return a(e)?e.join("."):e}var m={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx{if(l(e))if(t[u]){var p,g;let v=e[t[u]];if(!l(v))return;if(u===t.length-1&&(n(v)||o(v)||!0===(p=v)||!1===p||i(g=p)&&null!==g&&"[object Boolean]"==d(p)))r.push(null==v?"":function(e){if("string"==typeof e)return e;let t=e+"";return"0"==t&&1/e==-s?"-0":t}(v));else if(a(v)){c=!0;for(let e=0,r=v.length;e{this._keysMap[e.id]=t})}create(){!this.isCreated&&this.docs.length&&(this.isCreated=!0,n(this.docs[0])?this.docs.forEach((e,t)=>{this._addString(e,t)}):this.docs.forEach((e,t)=>{this._addObject(e,t)}),this.norm.clear())}add(e){let t=this.size();n(e)?this._addString(e,t):this._addObject(e,t)}removeAt(e){this.records.splice(e,1);for(let t=e,r=this.size();t{let o=t.getFn?t.getFn(e):this.getFn(e,t.path);if(l(o)){if(a(o)){let e=[],t=[{nestedArrIndex:-1,value:o}];for(;t.length;){let{nestedArrIndex:r,value:s}=t.pop();if(l(s))if(n(s)&&!c(s)){let t={v:s,i:r,n:this.norm.get(s)};e.push(t)}else a(s)&&s.forEach((e,r)=>{t.push({nestedArrIndex:r,value:e})})}r.$[s]=e}else if(n(o)&&!c(o)){let e={v:o,n:this.norm.get(o)};r.$[s]=e}}}),this.records.push(r)}toJSON(){return{keys:this.keys,records:this.records}}}function k(e,t,{getFn:r=m.getFn,fieldNormWeight:a=m.fieldNormWeight}={}){let s=new f({getFn:r,fieldNormWeight:a});return s.setKeys(e.map(p)),s.setSources(t),s.create(),s}function M(e,{errors:t=0,currentLocation:r=0,expectedLocation:a=0,distance:s=m.distance,ignoreLocation:n=m.ignoreLocation}={}){let o=t/e.length;if(n)return o;let i=Math.abs(a-r);return s?o+i/s:i?1:o}class w{constructor(e,{location:t=m.location,threshold:r=m.threshold,distance:a=m.distance,includeMatches:s=m.includeMatches,findAllMatches:n=m.findAllMatches,minMatchCharLength:o=m.minMatchCharLength,isCaseSensitive:i=m.isCaseSensitive,ignoreLocation:l=m.ignoreLocation}={}){if(this.options={location:t,threshold:r,distance:a,includeMatches:s,findAllMatches:n,minMatchCharLength:o,isCaseSensitive:i,ignoreLocation:l},this.pattern=i?e:e.toLowerCase(),this.chunks=[],!this.pattern.length)return;const c=(e,t)=>{this.chunks.push({pattern:e,alphabet:function(e){let t={};for(let r=0,a=e.length;r32){let e=0;const t=d%32,r=d-t;for(;e{let{isMatch:g,score:v,indices:y}=function(e,t,r,{location:a=m.location,distance:s=m.distance,threshold:n=m.threshold,findAllMatches:o=m.findAllMatches,minMatchCharLength:i=m.minMatchCharLength,includeMatches:l=m.includeMatches,ignoreLocation:c=m.ignoreLocation}={}){let d;if(t.length>32)throw Error("Pattern length exceeds max of 32.");let h=t.length,u=e.length,p=Math.max(0,Math.min(a,u)),g=n,v=p,y=i>1||l,f=y?Array(u):[];for(;(d=e.indexOf(t,v))>-1;)if(g=Math.min(M(t,{currentLocation:d,expectedLocation:p,distance:s,ignoreLocation:c}),g),v=d+h,y){let e=0;for(;e=l;n-=1){let o=n-1,i=r[e.charAt(o)];if(y&&(f[o]=+!!i),m[n]=(m[n+1]<<1|1)&i,a&&(m[n]|=(k[n+1]|k[n])<<1|1|k[n+1]),m[n]&x&&(w=M(t,{errors:a,currentLocation:o,expectedLocation:p,distance:s,ignoreLocation:c}))<=g){if(g=w,(v=o)<=p)break;l=Math.max(1,2*p-v)}}if(M(t,{errors:a+1,currentLocation:p,expectedLocation:p,distance:s,ignoreLocation:c})>g)break;k=m}let S={isMatch:v>=0,score:Math.max(.001,w)};if(y){let e=function(e=[],t=m.minMatchCharLength){let r=[],a=-1,s=-1,n=0;for(let o=e.length;n=t&&r.push([a,s]),a=-1)}return e[n-1]&&n-a>=t&&r.push([a,n-1]),r}(f,i);e.length?l&&(S.indices=e):S.isMatch=!1}return S}(e,t,u,{location:a+p,distance:s,threshold:n,findAllMatches:o,minMatchCharLength:i,includeMatches:r,ignoreLocation:l});g&&(h=!0),d+=v,g&&y&&(c=[...c,...y])});let u={isMatch:h,score:h?d/this.chunks.length:1};return h&&r&&(u.indices=c),u}}class b{constructor(e){this.pattern=e}static isMultiMatch(e){return x(e,this.multiRegex)}static isSingleMatch(e){return x(e,this.singleRegex)}search(){}}function x(e,t){let r=e.match(t);return r?r[1]:null}class S extends b{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){let t=e===this.pattern;return{isMatch:t,score:+!t,indices:[0,this.pattern.length-1]}}}class A extends b{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){let t=-1===e.indexOf(this.pattern);return{isMatch:t,score:+!t,indices:[0,e.length-1]}}}class C extends b{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){let t=e.startsWith(this.pattern);return{isMatch:t,score:+!t,indices:[0,this.pattern.length-1]}}}class I extends b{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){let t=!e.startsWith(this.pattern);return{isMatch:t,score:+!t,indices:[0,e.length-1]}}}class _ extends b{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){let t=e.endsWith(this.pattern);return{isMatch:t,score:+!t,indices:[e.length-this.pattern.length,e.length-1]}}}class E extends b{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){let t=!e.endsWith(this.pattern);return{isMatch:t,score:+!t,indices:[0,e.length-1]}}}class j extends b{constructor(e,{location:t=m.location,threshold:r=m.threshold,distance:a=m.distance,includeMatches:s=m.includeMatches,findAllMatches:n=m.findAllMatches,minMatchCharLength:o=m.minMatchCharLength,isCaseSensitive:i=m.isCaseSensitive,ignoreLocation:l=m.ignoreLocation}={}){super(e),this._bitapSearch=new w(e,{location:t,threshold:r,distance:a,includeMatches:s,findAllMatches:n,minMatchCharLength:o,isCaseSensitive:i,ignoreLocation:l})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class L extends b{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let t,r=0,a=[],s=this.pattern.length;for(;(t=e.indexOf(this.pattern,r))>-1;)r=t+s,a.push([t,r-1]);let n=!!a.length;return{isMatch:n,score:+!n,indices:a}}}let D=[S,L,C,I,E,_,A,j],N=D.length,F=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,$=new Set([j.type,L.type]);class O{constructor(e,{isCaseSensitive:t=m.isCaseSensitive,includeMatches:r=m.includeMatches,minMatchCharLength:a=m.minMatchCharLength,ignoreLocation:s=m.ignoreLocation,findAllMatches:n=m.findAllMatches,location:o=m.location,threshold:i=m.threshold,distance:l=m.distance}={}){this.query=null,this.options={isCaseSensitive:t,includeMatches:r,minMatchCharLength:a,findAllMatches:n,ignoreLocation:s,location:o,threshold:i,distance:l},this.pattern=t?e:e.toLowerCase(),this.query=function(e,t={}){return e.split("|").map(e=>{let r=e.trim().split(F).filter(e=>e&&!!e.trim()),a=[];for(let e=0,s=r.length;e!!(e[P]||e.$or),G=e=>({[P]:Object.keys(e).map(t=>({[t]:e[t]}))});function V(e,t,{auto:r=!0}={}){let s=e=>{let o=Object.keys(e),l=!!e[T];if(!l&&o.length>1&&!Y(e))return s(G(e));if(!a(e)&&i(e)&&!Y(e)){let a=l?e[T]:o[0],s=l?e.$val:e[a];if(!n(s))throw Error(`Invalid value for key ${a}`);let i={keyId:v(a),pattern:s};return r&&(i.searcher=z(s,t)),i}let c={children:[],operator:o[0]};return o.forEach(t=>{let r=e[t];a(r)&&r.forEach(e=>{c.children.push(s(e))})}),c};return Y(e)||(e=G(e)),s(e)}function q(e,t){let r=e.matches;t.matches=[],l(r)&&r.forEach(e=>{if(!l(e.indices)||!e.indices.length)return;let{indices:r,value:a}=e,s={indices:r,value:a};e.key&&(s.key=e.key.src),e.idx>-1&&(s.refIndex=e.idx),t.matches.push(s)})}function B(e,t){t.score=e.score}class K{constructor(e,t={},r){this.options={...m,...t},this.options.useExtendedSearch,this._keyStore=new u(this.options.keys),this.setCollection(e,r)}setCollection(e,t){if(this._docs=e,t&&!(t instanceof f))throw Error("Incorrect 'index' type");this._myIndex=t||k(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){l(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=()=>!1){let t=[];for(let r=0,a=this._docs.length;r{let r=1;e.matches.forEach(({key:e,norm:a,score:s})=>{let n=e?e.weight:null;r*=Math.pow(0===s&&n?Number.EPSILON:s,(n||1)*(t?1:a))}),e.score=r})}(c,{ignoreFieldNorm:l}),s&&c.sort(i),o(t)&&t>-1&&(c=c.slice(0,t)),function(e,t,{includeMatches:r=m.includeMatches,includeScore:a=m.includeScore}={}){let s=[];return r&&s.push(q),a&&s.push(B),e.map(e=>{let{idx:r}=e,a={item:t[r],refIndex:r};return s.length&&s.forEach(t=>{t(e,a)}),a})}(c,this._docs,{includeMatches:r,includeScore:a})}_searchStringList(e){let t=z(e,this.options),{records:r}=this._myIndex,a=[];return r.forEach(({v:e,i:r,n:s})=>{if(!l(e))return;let{isMatch:n,score:o,indices:i}=t.searchIn(e);n&&a.push({item:e,idx:r,matches:[{score:o,value:e,norm:s,indices:i}]})}),a}_searchLogical(e){let t=V(e,this.options),r=(e,t,a)=>{if(!e.children){let{keyId:r,searcher:s}=e,n=this._findMatches({key:this._keyStore.get(r),value:this._myIndex.getValueForItemAtKeyId(t,r),searcher:s});return n&&n.length?[{idx:a,item:t,matches:n}]:[]}let s=[];for(let n=0,o=e.children.length;n{if(l(e)){let o=r(t,e,a);o.length&&(s[a]||(s[a]={idx:a,item:e,matches:[]},n.push(s[a])),o.forEach(({matches:e})=>{s[a].matches.push(...e)}))}}),n}_searchObjectList(e){let t=z(e,this.options),{keys:r,records:a}=this._myIndex,s=[];return a.forEach(({$:e,i:a})=>{if(!l(e))return;let n=[];r.forEach((r,a)=>{n.push(...this._findMatches({key:r,value:e[a],searcher:t}))}),n.length&&s.push({idx:a,item:e,matches:n})}),s}_findMatches({key:e,value:t,searcher:r}){if(!l(t))return[];let s=[];if(a(t))t.forEach(({v:t,i:a,n:n})=>{if(!l(t))return;let{isMatch:o,score:i,indices:c}=r.searchIn(t);o&&s.push({score:i,key:e,value:t,idx:a,norm:n,indices:c})});else{let{v:a,n:n}=t,{isMatch:o,score:i,indices:l}=r.searchIn(a);o&&s.push({score:i,key:e,value:a,norm:n,indices:l})}return s}}K.version="6.6.2",K.createIndex=k,K.parseIndex=function(e,{getFn:t=m.getFn,fieldNormWeight:r=m.fieldNormWeight}={}){let{keys:a,records:s}=e,n=new f({getFn:t,fieldNormWeight:r});return n.setKeys(a),n.setIndexRecords(s),n},K.config=m,K.parseQuery=V,function(...e){R.push(...e)}(O)},16120:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","command","IconCommand",[["path",{d:"M7 9a2 2 0 1 1 2 -2v10a2 2 0 1 1 -2 -2h10a2 2 0 1 1 -2 2v-10a2 2 0 1 1 2 2h-10",key:"svg-0"}]])},21604:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","book","IconBook",[["path",{d:"M3 19a9 9 0 0 1 9 0a9 9 0 0 1 9 0",key:"svg-0"}],["path",{d:"M3 6a9 9 0 0 1 9 0a9 9 0 0 1 9 0",key:"svg-1"}],["path",{d:"M3 6l0 13",key:"svg-2"}],["path",{d:"M12 6l0 13",key:"svg-3"}],["path",{d:"M21 6l0 13",key:"svg-4"}]])},22175:(e,t,r)=>{"use strict";r.d(t,{M:()=>i});var a=r(55729),s=r(33361);function n(e){try{return e&&JSON.parse(e)}catch{return e}}function o(e){return{getItem:t=>{try{return window[e].getItem(t)}catch(e){return console.warn("use-local-storage: Failed to get value from storage, localStorage is blocked"),null}},setItem:(t,r)=>{try{window[e].setItem(t,r)}catch(e){console.warn("use-local-storage: Failed to set value to storage, localStorage is blocked")}},removeItem:t=>{try{window[e].removeItem(t)}catch(e){console.warn("use-local-storage: Failed to remove value from storage, localStorage is blocked")}}}}function i(e){return(function(e,t){let r="localStorage"===e?"mantine-local-storage":"mantine-session-storage",{getItem:i,setItem:l,removeItem:c}=o(e);return function({key:o,defaultValue:d,getInitialValueInEffect:h=!0,sync:u=!0,deserialize:p=n,serialize:g=e=>(function(e,t="use-local-storage"){try{return JSON.stringify(e)}catch(e){throw Error(`@mantine/hooks ${t}: Failed to serialize the value`)}})(e,t)}){let v=(0,a.useCallback)(t=>{let r;try{r="u"{e instanceof Function?y(t=>{let a=e(t);return l(o,g(a)),window.dispatchEvent(new CustomEvent(r,{detail:{key:o,value:e(t)}})),a}):(l(o,g(e)),window.dispatchEvent(new CustomEvent(r,{detail:{key:o,value:e}})),y(e))},[o]),k=(0,a.useCallback)(()=>{c(o),window.dispatchEvent(new CustomEvent(r,{detail:{key:o,value:d}}))},[]);return(0,s.M)("storage",t=>{u&&t.storageArea===window[e]&&t.key===o&&y(p(t.newValue??void 0))}),(0,s.M)(r,e=>{u&&e.detail.key===o&&y(e.detail.value)}),(0,a.useEffect)(()=>{void 0!==d&&void 0===m&&f(d)},[d,m,f]),(0,a.useEffect)(()=>{let e=v();void 0!==e&&f(e)},[o]),[void 0===m?d:m,f,k]}})("localStorage","use-local-storage")(e)}!function(e){let{getItem:t}=o(e)}("localStorage")},22746:(e,t,r)=>{"use strict";r.d(t,{u:()=>h});var a=r(6029),s=r(3001);r(55729);var n=r(80616),o=r(43016),i=r(96061),l=r(29645),c=r(46321);let d={},h=(0,o.P9)((e,t)=>{let{value:r,defaultValue:o,onChange:h,size:u,wrapperProps:p,children:g,readOnly:v,...m}=(0,n.Y)("SwitchGroup",d,e),[y,f]=(0,s.Z)({value:r,defaultValue:o,finalValue:[],onChange:h});return(0,a.jsx)(c.x,{value:{value:y,onChange:e=>{let t=e.currentTarget.value;v||f(y.includes(t)?y.filter(e=>e!==t):[...y,t])},size:u},children:(0,a.jsx)(i.p.Wrapper,{size:u,ref:t,...p,...m,labelElement:"div",__staticSelector:"SwitchGroup",children:(0,a.jsx)(l.F,{role:"group",children:g})})})});h.classes=i.p.Wrapper.classes,h.displayName="@mantine/core/SwitchGroup"},23474:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","chevron-down","IconChevronDown",[["path",{d:"M6 9l6 6l6 -6",key:"svg-0"}]])},23994:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","flask","IconFlask",[["path",{d:"M9 3l6 0",key:"svg-0"}],["path",{d:"M10 9l4 0",key:"svg-1"}],["path",{d:"M10 3v6l-4 11a.7 .7 0 0 0 .5 1h11a.7 .7 0 0 0 .5 -1l-4 -11v-6",key:"svg-2"}]])},29645:(e,t,r)=>{"use strict";r.d(t,{F:()=>n});var a=r(6029);r(55729);var s=r(1827);function n({children:e,role:t}){let r=(0,s.e)();return r?(0,a.jsx)("div",{role:t,"aria-labelledby":r.labelId,"aria-describedby":r.describedBy,children:e}):(0,a.jsx)(a.Fragment,{children:e})}},36517:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","clipboard-check","IconClipboardCheck",[["path",{d:"M9 5h-2a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-12a2 2 0 0 0 -2 -2h-2",key:"svg-0"}],["path",{d:"M9 3m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v0a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z",key:"svg-1"}],["path",{d:"M9 14l2 2l4 -4",key:"svg-2"}]])},42717:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","layout","IconLayout",[["path",{d:"M4 4m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v1a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z",key:"svg-0"}],["path",{d:"M4 13m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v3a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z",key:"svg-1"}],["path",{d:"M14 4m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z",key:"svg-2"}]])},45519:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","table","IconTable",[["path",{d:"M3 5a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14z",key:"svg-0"}],["path",{d:"M3 10h18",key:"svg-1"}],["path",{d:"M10 3v18",key:"svg-2"}]])},46321:(e,t,r)=>{"use strict";r.d(t,{U:()=>o,x:()=>n});var a=r(55729);let s=(0,a.createContext)(null),n=s.Provider,o=()=>(0,a.useContext)(s)},46661:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","layout-grid","IconLayoutGrid",[["path",{d:"M4 4m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z",key:"svg-0"}],["path",{d:"M14 4m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z",key:"svg-1"}],["path",{d:"M4 14m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z",key:"svg-2"}],["path",{d:"M14 14m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z",key:"svg-3"}]])},50561:(e,t,r)=>{"use strict";r.d(t,{O:()=>o});var a=r(55729);let s={" ":"space",ArrowLeft:"arrowleft",ArrowRight:"arrowright",ArrowUp:"arrowup",ArrowDown:"arrowdown",Escape:"esc",Esc:"esc",Enter:"enter",Tab:"tab",Backspace:"backspace",Delete:"delete",Insert:"insert",Home:"home",End:"end",PageUp:"pageup",PageDown:"pagedown","+":"plus","-":"minus","*":"asterisk","/":"slash"};function n(e){let t=e.replace("Key","").toLowerCase();return s[e]||t}function o(e,t=["INPUT","TEXTAREA","SELECT"],r=!1){(0,a.useEffect)(()=>{let a=a=>{e.forEach(([e,s,o={preventDefault:!0,usePhysicalKeys:!1}])=>{var i;(i=o.usePhysicalKeys,t=>{let r,a,s,o;return function(e,t,r){let{alt:a,ctrl:s,meta:o,mod:i,shift:l,key:c}=e,{altKey:d,ctrlKey:h,metaKey:u,shiftKey:p,key:g,code:v}=t;if(a!==d)return!1;if(i){if(!h&&!u)return!1}else if(s!==h||o!==u)return!1;return l===p&&!!c&&(r?n(v)===n(c):n(g??v)===n(c))}((a={alt:(r=e.toLowerCase().split("+").map(e=>e.trim())).includes("alt"),ctrl:r.includes("ctrl"),meta:r.includes("meta"),mod:r.includes("mod"),shift:r.includes("shift"),plus:r.includes("[plus]")},s=["alt","ctrl","meta","shift","mod"],o=r.find(e=>!s.includes(e)),{...a,key:"[plus]"===o?"+":o}),t,i)})(a)&&function(e,t,r=!1){return!(e.target instanceof HTMLElement)||(r?!t.includes(e.target.tagName):!e.target.isContentEditable&&!t.includes(e.target.tagName))}(a,t,r)&&(o.preventDefault&&a.preventDefault(),s(a))})};return document.documentElement.addEventListener("keydown",a),()=>document.documentElement.removeEventListener("keydown",a)},[e])}},53061:(e,t,r)=>{"use strict";r.d(t,{o:()=>d});var a=r(6029);r(55729);var s=r(80616),n=r(37666),o=r(60481),i=r(63863),l={root:"m_4451eb3a"};let c={},d=(0,i.v)((e,t)=>{let r=(0,s.Y)("Center",c,e),{classNames:i,className:d,style:h,styles:u,unstyled:p,vars:g,inline:v,mod:m,...y}=r,f=(0,n.I)({name:"Center",props:r,classes:l,className:d,style:h,classNames:i,styles:u,unstyled:p,vars:g});return(0,a.jsx)(o.a,{ref:t,mod:[{inline:v},m],...f("root"),...y})});d.classes=l,d.displayName="@mantine/core/Center"},53780:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("filled","bell-filled","IconBellFilled",[["path",{d:"M14.235 19c.865 0 1.322 1.024 .745 1.668a3.992 3.992 0 0 1 -2.98 1.332a3.992 3.992 0 0 1 -2.98 -1.332c-.552 -.616 -.158 -1.579 .634 -1.661l.11 -.006h4.471z",key:"svg-0"}],["path",{d:"M12 2c1.358 0 2.506 .903 2.875 2.141l.046 .171l.008 .043a8.013 8.013 0 0 1 4.024 6.069l.028 .287l.019 .289v2.931l.021 .136a3 3 0 0 0 1.143 1.847l.167 .117l.162 .099c.86 .487 .56 1.766 -.377 1.864l-.116 .006h-16c-1.028 0 -1.387 -1.364 -.493 -1.87a3 3 0 0 0 1.472 -2.063l.021 -.143l.001 -2.97a8 8 0 0 1 3.821 -6.454l.248 -.146l.01 -.043a3.003 3.003 0 0 1 2.562 -2.29l.182 -.017l.176 -.004z",key:"svg-1"}]])},54134:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","logs","IconLogs",[["path",{d:"M4 12h.01",key:"svg-0"}],["path",{d:"M4 6h.01",key:"svg-1"}],["path",{d:"M4 18h.01",key:"svg-2"}],["path",{d:"M8 18h2",key:"svg-3"}],["path",{d:"M8 12h2",key:"svg-4"}],["path",{d:"M8 6h2",key:"svg-5"}],["path",{d:"M14 6h6",key:"svg-6"}],["path",{d:"M14 12h6",key:"svg-7"}],["path",{d:"M14 18h6",key:"svg-8"}]])},56447:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","layout-sidebar-left-collapse","IconLayoutSidebarLeftCollapse",[["path",{d:"M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z",key:"svg-0"}],["path",{d:"M9 4v16",key:"svg-1"}],["path",{d:"M15 10l-2 2l2 2",key:"svg-2"}]])},56513:(e,t,r)=>{"use strict";r.d(t,{W:()=>z});var a=r(6029),s=r(55729),n=r(3001),o=r(3465),i=r(78526),l=r(35228),c=r(37666),d=r(80616),h=r(43016),u=r(82556),p=r(37659);let[g,v]=(0,r(36254).F)("Menu component was not found in the tree");var m=r(60481),y={dropdown:"m_dc9b7c9f",label:"m_9bfac126",divider:"m_efdf90cb",item:"m_99ac2aa1",itemLabel:"m_5476e0d3",itemSection:"m_8b75e504"};let f={},k=(0,h.P9)((e,t)=>{let{classNames:r,className:s,style:n,styles:o,vars:i,...l}=(0,d.Y)("MenuDivider",f,e),c=v();return(0,a.jsx)(m.a,{ref:t,...c.getStyles("divider",{className:s,style:n,styles:o,classNames:r}),...l})});k.classes=y,k.displayName="@mantine/core/MenuDivider";var M=r(56655),w=r(72448);let b={},x=(0,h.P9)((e,t)=>{let{classNames:r,className:n,style:o,styles:i,vars:l,onMouseEnter:c,onMouseLeave:h,onKeyDown:u,children:g,...m}=(0,d.Y)("MenuDropdown",b,e),y=(0,s.useRef)(null),f=v(),k=(0,w.T)(u,e=>{("ArrowUp"===e.key||"ArrowDown"===e.key)&&(e.preventDefault(),y.current?.querySelectorAll("[data-menu-item]:not(:disabled)")[0]?.focus())}),x=(0,w.T)(c,()=>("hover"===f.trigger||"click-hover"===f.trigger)&&f.openDropdown()),S=(0,w.T)(h,()=>("hover"===f.trigger||"click-hover"===f.trigger)&&f.closeDropdown());return(0,a.jsxs)(p.A.Dropdown,{...m,onMouseEnter:x,onMouseLeave:S,role:"menu","aria-orientation":"vertical",ref:(0,M.pc)(t,y),...f.getStyles("dropdown",{className:n,style:o,styles:i,classNames:r,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,onKeyDown:k,children:[f.withInitialFocusPlaceholder&&(0,a.jsx)("div",{tabIndex:-1,"data-autofocus":!0,"data-mantine-stop-propagation":!0,style:{outline:0}}),g]})});x.classes=y,x.displayName="@mantine/core/MenuDropdown";var S=r(66062),A=r(41375),C=r(15862),I=r(63863),_=r(52432),E=r(8737);let j={},L=(0,I.v)((e,t)=>{let{classNames:r,className:n,style:o,styles:i,vars:l,color:c,closeMenuOnClick:h,leftSection:u,rightSection:p,children:g,disabled:m,"data-disabled":y,...f}=(0,d.Y)("MenuItem",j,e),k=v(),b=(0,C.xd)(),{dir:x}=(0,_.jH)(),I=(0,s.useRef)(null),L=k.getItemIndex(I.current),D=(0,w.T)(f.onMouseLeave,()=>k.setHovered(-1)),N=(0,w.T)(f.onMouseEnter,()=>k.setHovered(k.getItemIndex(I.current))),F=(0,w.T)(f.onClick,()=>{!y&&("boolean"==typeof h?h&&k.closeDropdownImmediately():k.closeOnItemClick&&k.closeDropdownImmediately())}),$=(0,w.T)(f.onFocus,()=>k.setHovered(k.getItemIndex(I.current))),O=c?b.variantColorResolver({color:c,theme:b,variant:"light"}):void 0,R=c?(0,A.g)({color:c,theme:b}):null;return(0,a.jsxs)(E.N,{...f,unstyled:k.unstyled,tabIndex:k.menuItemTabIndex,onFocus:$,...k.getStyles("item",{className:n,style:o,styles:i,classNames:r}),ref:(0,M.pc)(I,t),role:"menuitem",disabled:m,"data-menu-item":!0,"data-disabled":m||y||void 0,"data-hovered":k.hovered===L||void 0,"data-mantine-stop-propagation":!0,onMouseEnter:N,onMouseLeave:D,onClick:F,onKeyDown:(0,S.Y)({siblingSelector:"[data-menu-item]:not([data-disabled])",parentSelector:"[data-menu-dropdown]",activateOnFocus:!1,loop:k.loop,dir:x,orientation:"vertical",onKeyDown:f.onKeyDown}),__vars:{"--menu-item-color":R?.isThemeColor&&R?.shade===void 0?`var(--mantine-color-${R.color}-6)`:O?.color,"--menu-item-hover":O?.hover},children:[u&&(0,a.jsx)("div",{...k.getStyles("itemSection",{styles:i,classNames:r}),"data-position":"left",children:u}),g&&(0,a.jsx)("div",{...k.getStyles("itemLabel",{styles:i,classNames:r}),children:g}),p&&(0,a.jsx)("div",{...k.getStyles("itemSection",{styles:i,classNames:r}),"data-position":"right",children:p})]})});L.classes=y,L.displayName="@mantine/core/MenuItem";let D={},N=(0,h.P9)((e,t)=>{let{classNames:r,className:s,style:n,styles:o,vars:i,...l}=(0,d.Y)("MenuLabel",D,e),c=v();return(0,a.jsx)(m.a,{ref:t,...c.getStyles("label",{className:s,style:n,styles:o,classNames:r}),...l})});N.classes=y,N.displayName="@mantine/core/MenuLabel";var F=r(30342);let $={refProp:"ref"},O=(0,s.forwardRef)((e,t)=>{let{children:r,refProp:n,...o}=(0,d.Y)("MenuTarget",$,e);if(!(0,F.v)(r))throw Error("Menu.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");let i=v(),l=r.props,c=(0,w.T)(l.onClick,()=>{"click"===i.trigger?i.toggleDropdown():"click-hover"===i.trigger&&(i.setOpenedViaClick(!0),i.opened||i.openDropdown())}),h=(0,w.T)(l.onMouseEnter,()=>("hover"===i.trigger||"click-hover"===i.trigger)&&i.openDropdown()),u=(0,w.T)(l.onMouseLeave,()=>{"hover"===i.trigger?i.closeDropdown():"click-hover"!==i.trigger||i.openedViaClick||i.closeDropdown()});return(0,a.jsx)(p.A.Target,{refProp:n,popupType:"menu",ref:t,...o,children:(0,s.cloneElement)(r,{onClick:c,onMouseEnter:h,onMouseLeave:u,"data-expanded":!!i.opened||void 0})})});O.displayName="@mantine/core/MenuTarget";let R={trapFocus:!0,closeOnItemClick:!0,withInitialFocusPlaceholder:!0,clickOutsideEvents:["mousedown","touchstart","keydown"],loop:!0,trigger:"click",openDelay:0,closeDelay:100,menuItemTabIndex:-1};function z(e){let t=(0,d.Y)("Menu",R,e),{children:r,onOpen:h,onClose:v,opened:m,defaultOpened:f,trapFocus:k,onChange:M,closeOnItemClick:w,loop:b,closeOnEscape:x,trigger:S,openDelay:A,closeDelay:C,classNames:I,styles:_,unstyled:E,variant:j,vars:L,menuItemTabIndex:D,keepMounted:N,withInitialFocusPlaceholder:F,...$}=t,O=(0,c.I)({name:"Menu",classes:y,props:t,classNames:I,styles:_,unstyled:E}),[z,{setHovered:P,resetHovered:T}]=function(){let[e,t]=(0,s.useState)(-1);return[e,{setHovered:t,resetHovered:()=>t(-1)}]}(),[Y,G]=(0,n.Z)({value:m,defaultValue:f,finalValue:!1,onChange:M}),[V,q]=(0,s.useState)(!1),B=()=>{G(!1),q(!1),Y&&v?.()},K=()=>{G(!0),Y||h?.()},W=()=>{Y?B():K()},{openDropdown:H,closeDropdown:U}=(0,u.K)({open:K,close:B,closeDelay:C,openDelay:A}),{resolvedClassNames:Z,resolvedStyles:J}=(0,l.Y)({classNames:I,styles:_,props:t});return(0,o.C)(()=>{T()},[Y]),(0,a.jsx)(g,{value:{getStyles:O,opened:Y,toggleDropdown:W,getItemIndex:e=>e?Array.from((0,i.P)(e,"[data-menu-dropdown]")?.querySelectorAll("[data-menu-item]")||[]).findIndex(t=>t===e):null,hovered:z,setHovered:P,openedViaClick:V,setOpenedViaClick:q,closeOnItemClick:w,closeDropdown:"click"===S?B:U,openDropdown:"click"===S?K:H,closeDropdownImmediately:B,loop:b,trigger:S,unstyled:E,menuItemTabIndex:D,withInitialFocusPlaceholder:F},children:(0,a.jsx)(p.A,{...$,opened:Y,onChange:W,defaultOpened:f,trapFocus:!N&&k,closeOnEscape:x,__staticSelector:"Menu",classNames:Z,styles:J,unstyled:E,variant:j,keepMounted:N,children:r})})}z.extend=e=>e,z.withProps=(0,h.LE)(z),z.classes=y,z.displayName="@mantine/core/Menu",z.Item=L,z.Label=N,z.Dropdown=x,z.Target=O,z.Divider=k},58333:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","chevron-up","IconChevronUp",[["path",{d:"M6 15l6 -6l6 6",key:"svg-0"}]])},62801:(e,t,r)=>{"use strict";r.d(t,{Z:()=>k});var a=r(6029),s=r(55729),n=r(76),o=r(5618),i=r(80616),l=r(37666),c=r(63863),d=r(22623);let[h,u]=(0,r(36254).F)("Card component was not found in tree");var p=r(60481),g={root:"m_e615b15f",section:"m_599a2148"};let v={},m=(0,c.v)((e,t)=>{let{classNames:r,className:s,style:n,styles:o,vars:l,withBorder:c,inheritPadding:d,mod:h,...g}=(0,i.Y)("CardSection",v,e),m=u();return(0,a.jsx)(p.a,{ref:t,mod:[{"with-border":c,"inherit-padding":d},h],...m.getStyles("section",{className:s,style:n,styles:o,classNames:r}),...g})});m.classes=g,m.displayName="@mantine/core/CardSection";let y={},f=(0,o.V)((e,{padding:t})=>({root:{"--card-padding":(0,n.GY)(t)}})),k=(0,c.v)((e,t)=>{let r=(0,i.Y)("Card",y,e),{classNames:n,className:o,style:c,styles:u,unstyled:p,vars:v,children:k,padding:M,...w}=r,b=(0,l.I)({name:"Card",props:r,classes:g,className:o,style:c,classNames:n,styles:u,unstyled:p,vars:v,varsResolver:f}),x=s.Children.toArray(k),S=x.map((e,t)=>"object"==typeof e&&e&&"type"in e&&e.type===m?(0,s.cloneElement)(e,{"data-first-section":0===t||void 0,"data-last-section":t===x.length-1||void 0}):e);return(0,a.jsx)(h,{value:{getStyles:b},children:(0,a.jsx)(d.t,{ref:t,unstyled:p,...b("root"),...w,children:S})})});k.classes=g,k.displayName="@mantine/core/Card",k.Section=m},62861:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","logout","IconLogout",[["path",{d:"M14 8v-2a2 2 0 0 0 -2 -2h-7a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h7a2 2 0 0 0 2 -2v-2",key:"svg-0"}],["path",{d:"M9 12h12l-3 -3",key:"svg-1"}],["path",{d:"M18 15l3 -3",key:"svg-2"}]])},66992:(e,t,r)=>{"use strict";r.d(t,{e:()=>b});var a=r(6029),s=r(55729),n=r(76),o=r(5618),i=r(80616),l=r(37666),c=r(60481),d=r(63863),h=r(43016);let u=(0,s.createContext)(null),p=u.Provider;var g={group:"m_11def92b",root:"m_f85678b6",image:"m_11f8ac07",placeholder:"m_104cd71f"};let v={},m=(0,o.V)((e,{spacing:t})=>({group:{"--ag-spacing":(0,n.GY)(t)}})),y=(0,h.P9)((e,t)=>{let r=(0,i.Y)("AvatarGroup",v,e),{classNames:s,className:n,style:o,styles:d,unstyled:h,vars:u,spacing:y,...f}=r,k=(0,l.I)({name:"AvatarGroup",classes:g,props:r,className:n,style:o,classNames:s,styles:d,unstyled:h,vars:u,varsResolver:m,rootSelector:"group"});return(0,a.jsx)(p,{value:!0,children:(0,a.jsx)(c.a,{ref:t,...k("group"),...f})})});function f(e){return(0,a.jsx)("svg",{...e,"data-avatar-placeholder-icon":!0,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M0.877014 7.49988C0.877014 3.84219 3.84216 0.877045 7.49985 0.877045C11.1575 0.877045 14.1227 3.84219 14.1227 7.49988C14.1227 11.1575 11.1575 14.1227 7.49985 14.1227C3.84216 14.1227 0.877014 11.1575 0.877014 7.49988ZM7.49985 1.82704C4.36683 1.82704 1.82701 4.36686 1.82701 7.49988C1.82701 8.97196 2.38774 10.3131 3.30727 11.3213C4.19074 9.94119 5.73818 9.02499 7.50023 9.02499C9.26206 9.02499 10.8093 9.94097 11.6929 11.3208C12.6121 10.3127 13.1727 8.97172 13.1727 7.49988C13.1727 4.36686 10.6328 1.82704 7.49985 1.82704ZM10.9818 11.9787C10.2839 10.7795 8.9857 9.97499 7.50023 9.97499C6.01458 9.97499 4.71624 10.7797 4.01845 11.9791C4.97952 12.7272 6.18765 13.1727 7.49985 13.1727C8.81227 13.1727 10.0206 12.727 10.9818 11.9787ZM5.14999 6.50487C5.14999 5.207 6.20212 4.15487 7.49999 4.15487C8.79786 4.15487 9.84999 5.207 9.84999 6.50487C9.84999 7.80274 8.79786 8.85487 7.49999 8.85487C6.20212 8.85487 5.14999 7.80274 5.14999 6.50487ZM7.49999 5.10487C6.72679 5.10487 6.09999 5.73167 6.09999 6.50487C6.09999 7.27807 6.72679 7.90487 7.49999 7.90487C8.27319 7.90487 8.89999 7.27807 8.89999 6.50487C8.89999 5.73167 8.27319 5.10487 7.49999 5.10487Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}y.classes=g,y.displayName="@mantine/core/AvatarGroup";let k=["blue","cyan","grape","green","indigo","lime","orange","pink","red","teal","violet"],M={},w=(0,o.V)((e,{size:t,radius:r,variant:a,gradient:s,color:o,autoContrast:i,name:l,allowedInitialsColors:c})=>{let d="initials"===o&&"string"==typeof l?function(e,t=k){let r=Math.abs(function(e){let t=0;for(let r=0;r{let r=(0,i.Y)("Avatar",M,e),{classNames:n,className:o,style:d,styles:h,unstyled:p,vars:v,src:m,alt:y,radius:k,color:b,gradient:x,imageProps:S,children:A,autoContrast:C,mod:I,name:_,allowedInitialsColors:E,...j}=r,L={withinGroup:!!(0,s.useContext)(u)},[D,N]=(0,s.useState)(!m),F=(0,l.I)({name:"Avatar",props:r,classes:g,className:o,style:d,classNames:n,styles:h,unstyled:p,vars:v,varsResolver:w});return(0,s.useEffect)(()=>N(!m),[m]),(0,a.jsx)(c.a,{...F("root"),mod:[{"within-group":L.withinGroup},I],ref:t,...j,children:D?(0,a.jsx)("span",{...F("placeholder"),title:y,children:A||"string"==typeof _&&function(e,t=2){let r=e.split(" ");return 1===r.length?e.slice(0,t).toUpperCase():r.map(e=>e[0]).slice(0,t).join("").toUpperCase()}(_)||(0,a.jsx)(f,{})}):(0,a.jsx)("img",{...S,...F("image"),src:m,alt:y,onError:e=>{N(!0),S?.onError?.(e)}})})});b.classes=g,b.displayName="@mantine/core/Avatar",b.Group=y},70114:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","chevron-right","IconChevronRight",[["path",{d:"M9 6l6 6l-6 6",key:"svg-0"}]])},71991:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","chart-dots","IconChartDots",[["path",{d:"M3 3v18h18",key:"svg-0"}],["path",{d:"M9 9m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-1"}],["path",{d:"M19 7m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-2"}],["path",{d:"M14 15m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-3"}],["path",{d:"M10.16 10.62l2.34 2.88",key:"svg-4"}],["path",{d:"M15.088 13.328l2.837 -4.586",key:"svg-5"}]])},72448:(e,t,r)=>{"use strict";function a(e,t){return r=>{e?.(r),t?.(r)}}r.d(t,{T:()=>a})},72832:(e,t,r)=>{"use strict";r.d(t,{I:()=>h,M:()=>d});var a=r(6029),s=r(55729),n=r(76),o=r(37666),i=r(60481),l=r(96061),c={root:"m_5f75b09e",body:"m_5f6e695e",labelWrapper:"m_d3ea56bb",label:"m_8ee546b8",description:"m_328f68c0",error:"m_8e8a99cc"};let d=c,h=(0,s.forwardRef)(({__staticSelector:e,__stylesApiProps:t,className:r,classNames:s,styles:d,unstyled:h,children:u,label:p,description:g,id:v,disabled:m,error:y,size:f,labelPosition:k="left",bodyElement:M="div",labelElement:w="label",variant:b,style:x,vars:S,mod:A,...C},I)=>{let _=(0,o.I)({name:e,props:t,className:r,style:x,classes:c,classNames:s,styles:d,unstyled:h});return(0,a.jsx)(i.a,{..._("root"),ref:I,__vars:{"--label-fz":(0,n.ny)(f),"--label-lh":(0,n.YC)(f,"label-lh")},mod:[{"label-position":k},A],variant:b,size:f,...C,children:(0,a.jsxs)(i.a,{component:M,htmlFor:"label"===M?v:void 0,..._("body"),children:[u,(0,a.jsxs)("div",{..._("labelWrapper"),"data-disabled":m||void 0,children:[p&&(0,a.jsx)(i.a,{component:w,htmlFor:"label"===w?v:void 0,..._("label"),"data-disabled":m||void 0,children:p}),g&&(0,a.jsx)(l.p.Description,{size:f,__inheritStyles:!1,..._("description"),children:g}),y&&"boolean"!=typeof y&&(0,a.jsx)(l.p.Error,{size:f,__inheritStyles:!1,..._("error"),children:y})]})]})})});h.displayName="@mantine/core/InlineInput"},74011:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","x","IconX",[["path",{d:"M18 6l-12 12",key:"svg-0"}],["path",{d:"M6 6l12 12",key:"svg-1"}]])},74805:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","clipboard","IconClipboard",[["path",{d:"M9 5h-2a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-12a2 2 0 0 0 -2 -2h-2",key:"svg-0"}],["path",{d:"M9 3m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v0a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z",key:"svg-1"}]])},74862:(e,t,r)=>{"use strict";let a;r.d(t,{L:()=>ev});var s=r(6029),n=r(69626),o=r(43016),i=r(80616),l=r(3001);function c(e){return void 0!==e.group&&Array.isArray(e.actions)}var d=r(74003),h=r(62900);function u(e,t){let r=t.getState();t.setState({...r,...e(t.getState())})}function p(e){u(()=>({opened:!0,selected:-1}),e)}function g(e){u(()=>({opened:!1}),e)}function v(e,t=document){let r=t.querySelector(e);if(r)return r;let a=t instanceof ShadowRoot?t.host.children:t.children;for(let t=0;t({...e,selected:r})),l}let y=function(e,t){t.updateState(t=>({...t,listId:e}))},f=function(e){let t=e.getState(),r=v(`#${t.listId} [data-selected]`);r?.click()},k=function(e,t){u(()=>({query:e}),t),Promise.resolve().then(()=>{m(0,t),u(e=>({empty:e.query.trim().length>0&&0===e.registeredActions.size}),t)})},M=function({clearQuery:e},t){t.updateState(t=>({...t,selected:-1,query:e?"":t.query,empty:!e&&t.empty}))},[w,b]=[a=(0,h.y)({opened:!1,empty:!1,selected:-1,listId:"",query:"",registeredActions:new Set}),{open:()=>p(a),close:()=>g(a),toggle:()=>{u(e=>({opened:!e.opened,selected:e.opened?e.selected:-1}),a)}}],{open:x,close:S,toggle:A}=b;var C=r(55729),I=r(63863),_=r(5618),E=r(37666),j=r(60481),L=r(41375);function D({color:e,theme:t,defaultShade:r}){let a=(0,L.g)({color:e,theme:t});return a.isThemeColor?void 0===a.shade?`var(--mantine-color-${a.color}-${r})`:`var(${a.variable})`:e}var N={root:"m_bcb3f3c2"};let F={color:"yellow"},$=(0,_.V)((e,{color:t})=>({root:{"--mark-bg-dark":D({color:t,theme:e,defaultShade:5}),"--mark-bg-light":D({color:t,theme:e,defaultShade:2})}})),O=(0,o.P9)((e,t)=>{let r=(0,i.Y)("Mark",F,e),{classNames:a,className:n,style:o,styles:l,unstyled:c,vars:d,color:h,variant:u,...p}=r,g=(0,E.I)({name:"Mark",props:r,className:n,style:o,classes:N,classNames:a,styles:l,unstyled:c,vars:d,varsResolver:$});return(0,s.jsx)(j.a,{component:"mark",ref:t,variant:u,...g("root"),...p})});O.classes=N,O.displayName="@mantine/core/Mark";var R=r(43517);function z(e){return e.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&")}let P={},T=(0,I.v)((e,t)=>{let{unstyled:r,children:a,highlight:n,highlightStyles:o,color:l,...c}=(0,i.Y)("Highlight",P,e),d=function(e,t){if(null==t)return[{chunk:e,highlighted:!1}];let r=Array.isArray(t)?t.map(z):z(t);if(!(Array.isArray(r)?r.filter(e=>e.trim().length>0).length>0:""!==r.trim()))return[{chunk:e,highlighted:!1}];let a="string"==typeof r?r.trim():r.filter(e=>0!==e.trim().length).map(e=>e.trim()).sort((e,t)=>t.length-e.length).join("|"),s=RegExp(`(${a})`,"gi");return e.split(s).map(e=>({chunk:e,highlighted:s.test(e)})).filter(({chunk:e})=>e)}(a,n);return(0,s.jsx)(R.E,{unstyled:r,ref:t,...c,__staticSelector:"Highlight",children:d.map(({chunk:e,highlighted:t},a)=>t?(0,s.jsx)(O,{unstyled:r,color:l,style:o,"data-highlight":e,children:e},a):(0,s.jsx)("span",{children:e},a))})});T.classes=R.E.classes,T.displayName="@mantine/core/Highlight";var Y=r(8737);let[G,V]=(0,r(36254).F)("Spotlight component was not found in tree");var q={root:"m_d2b315db",content:"m_3cd250e0",body:"m_d2abce9b",search:"m_f366a061",actionsList:"m_6e463822",action:"m_d49bb8ef",actionBody:"m_3d475731",actionSection:"m_832642f6",actionLabel:"m_6c2a1345",actionDescription:"m_a6d9d78d",empty:"m_82f78f74",footer:"m_ddcaf054",actionsGroup:"m_5a3e5f7b"};let B={dimmedSections:!0,highlightQuery:!1},K=(0,o.P9)((e,t)=>{let{className:r,style:a,classNames:n,styles:o,id:l,description:c,label:d,leftSection:h,rightSection:u,children:p,dimmedSections:v,highlightQuery:m,highlightColor:y,closeSpotlightOnTrigger:f,onClick:k,onMouseDown:M,keywords:w,vars:b,...x}=(0,i.Y)("SpotlightAction",B,e),S=V(),A={classNames:n,styles:o},C=m&&"string"==typeof d?(0,s.jsx)(T,{component:"span",highlight:S.query,color:y,...S.getStyles("actionLabel",A),children:d}):(0,s.jsx)("span",{...S.getStyles("actionLabel",A),children:d});return(0,s.jsx)(Y.N,{ref:t,"data-action":!0,...S.getStyles("action",{className:r,style:a,...A}),...x,onMouseDown:e=>{e.preventDefault(),M?.(e)},onClick:e=>{k?.(e),(f??S.closeOnActionTrigger)&&g(S.store)},tabIndex:-1,children:p||(0,s.jsxs)(s.Fragment,{children:[h&&(0,s.jsx)(j.a,{component:"span",mod:{position:"left",dimmed:v},...S.getStyles("actionSection",A),children:h}),(0,s.jsxs)("span",{...S.getStyles("actionBody",A),children:[C,(0,s.jsx)("span",{...S.getStyles("actionDescription",A),children:c})]}),u&&(0,s.jsx)(j.a,{component:"span",mod:{position:"right",dimmed:v},...S.getStyles("actionSection",A),children:u})]})})});K.classes=q,K.displayName="@mantine/spotlight/SpotlightAction";let W={},H=(0,o.P9)((e,t)=>{let{className:r,style:a,styles:n,classNames:o,label:l,children:c,...d}=(0,i.Y)("SpotlightActionsGroup",W,e),h=V();return(0,s.jsx)(j.a,{...h.getStyles("actionsGroup",{className:r,style:a,classNames:o,styles:n}),ref:t,...d,__vars:{"--spotlight-label":`'${l?.replace(/'/g,"\\'")}'`},children:c})});H.classes=q,H.displayName="@mantine/core/SpotlightActionsGroup";var U=r(53993);let Z={},J=(0,o.P9)((e,t)=>{let{className:r,style:a,id:n,children:o,vars:l,classNames:c,styles:d,...h}=(0,i.Y)("SpotlightActionsList",Z,e),u=V(),p=`mantine-${(0,C.useId)().replace(/:/g,"")}`,g=n||p;return(0,C.useEffect)(()=>(y(g,u.store),()=>y("",u.store)),[]),(0,s.jsx)(U.F.Autosize,{...u.getStyles("actionsList",{className:r,style:a,classNames:c,styles:d}),ref:t,type:"scroll",scrollbarSize:"var(--spotlight-actions-list-padding)",offsetScrollbars:"y",id:g,...h,children:o})});J.classes=q,J.displayName="@mantine/spotlight/SpotlightActionsList";let Q={},X=(0,o.P9)((e,t)=>{let{className:r,style:a,classNames:n,styles:o,...l}=(0,i.Y)("SpotlightEmpty",Q,e),c=V();return(0,s.jsx)(j.a,{ref:t,...c.getStyles("empty",{classNames:n,styles:o,className:r,style:a}),...l})});X.classes=q,X.displayName="@mantine/spotlight/SpotlightEmpty";let ee={},et=(0,o.P9)((e,t)=>{let{className:r,style:a,classNames:n,styles:o,...l}=(0,i.Y)("SpotlightFooter",ee,e),c=V();return(0,s.jsx)(j.a,{ref:t,...c.getStyles("footer",{className:r,classNames:n,style:a,styles:o}),...l})});et.classes=q,et.displayName="@mantine/spotlight/SpotlightFooter";var er=r(15862),ea=r(27166),es=r(86091),en=r(93692),eo=r(26615),ei=r(50561),el=r(3465);let ec={size:600,yOffset:80,zIndex:(0,n.I)("max"),overlayProps:{backgroundOpacity:.35,blur:7},transitionProps:{duration:200,transition:"pop"},store:w,clearQueryOnClose:!0,closeOnActionTrigger:!0,shortcut:"mod + K",maxHeight:400,scrollable:!1},ed=(0,o.P9)((e,t)=>{let r=(0,i.Y)("SpotlightRoot",ec,e),{classNames:a,className:n,style:o,styles:l,unstyled:c,vars:d,store:u,children:v,query:m,onQueryChange:y,transitionProps:f,clearQueryOnClose:w,shortcut:b,tagsToIgnore:x,triggerOnContentEditable:S,disabled:A,onSpotlightOpen:C,onSpotlightClose:I,forceOpened:_,closeOnActionTrigger:j,maxHeight:L,scrollable:D,...N}=r,F=(0,er.xd)(),{opened:$,query:O}=(0,h.P)(u),R=e=>{y?.(e),k(e,u)},z=(0,E.I)({name:"Spotlight",classes:q,props:r,className:n,style:o,classNames:a,styles:l,unstyled:c});return((0,ei.O)(function(e,t){if(!e)return[];let r=()=>p(t);return Array.isArray(e)?e.map(e=>[e,r]):[[e,r]]}(b,u),x,S),(0,el.C)(()=>{$?C?.():I?.()},[$]),A)?null:(0,s.jsx)(G,{value:{getStyles:z,query:m||O,setQuery:R,store:u,closeOnActionTrigger:j},children:(0,s.jsx)(ea.a,{ref:t,...N,withCloseButton:!1,opened:$||!!_,padding:0,onClose:()=>g(u),className:n,style:o,classNames:(0,es.J)({theme:F,classNames:[q,a],props:r,stylesCtx:void 0}),styles:(0,en.N)({theme:F,styles:l,props:r,stylesCtx:void 0}),transitionProps:{...f,onExited:()=>{w&&R(""),M({clearQuery:w},u),f?.onExited?.()}},__vars:{"--spotlight-max-height":D?(0,eo.D)(L):void 0},__staticSelector:"Spotlight","data-scrollable":D||void 0,children:v})})});ed.classes=q,ed.displayName="@mantine/spotlight/SpotlightRoot";var eh=r(96061);let eu={size:"lg"},ep=(0,o.P9)((e,t)=>{let{classNames:r,styles:a,onKeyDown:n,onChange:o,vars:l,value:c,...d}=(0,i.Y)("SpotlightSearch",eu,e),h=V(),u=h.getStyles("search"),[p,g]=(0,C.useState)(!1);return(0,s.jsx)(eh.p,{ref:t,classNames:[{input:u.className},r],styles:[{input:u.style},a],...d,value:c??h.query,onChange:e=>{h.setQuery(e.currentTarget.value),o?.(e)},onKeyDown:e=>{var t,r;n?.(e),p||("ArrowDown"===e.nativeEvent.code&&(e.preventDefault(),m((t=h.store).getState().selected+1,t)),"ArrowUp"===e.nativeEvent.code&&(e.preventDefault(),m((r=h.store).getState().selected-1,r)),("Enter"===e.nativeEvent.code||"NumpadEnter"===e.nativeEvent.code)&&(e.preventDefault(),f(h.store)))},onCompositionStart:()=>g(!0),onCompositionEnd:()=>g(!1)})});ep.classes=q,ep.displayName="@mantine/spotlight/SpotlightSearch";let eg={size:600,yOffset:80,limit:1/0,zIndex:(0,n.I)("max"),overlayProps:{backgroundOpacity:.35,blur:7},transitionProps:{duration:200,transition:"pop"},store:w,filter:(e,t)=>{var r;let a,s,n=e.trim().toLowerCase(),o=[[],[]];return t.reduce((e,t)=>"actions"in t?[...e,...t.actions.map(e=>({...e,group:t.group}))]:[...e,t],[]).forEach(e=>{if(e.label?.toLowerCase().includes(n))o[0].push(e);else{var t;(e.description?.toLowerCase().includes(n)||(Array.isArray(t=e.keywords)?t.map(e=>e.trim()).join(",").toLowerCase().trim():"string"==typeof t?t.toLowerCase().trim():"").includes(n))&&o[1].push(e)}}),r=o.flat(),a={},s=[],r.forEach(e=>{e.group?(a[e.group]||(a[e.group]={pushed:!1,data:{group:e.group,actions:[]}}),a[e.group].data.actions.push(e),a[e.group].pushed||(a[e.group].pushed=!0,s.push(a[e.group].data))):s.push(e)}),s},clearQueryOnClose:!0,closeOnActionTrigger:!0,shortcut:"mod + K",highlightQuery:!1},ev=(0,o.P9)((e,t)=>{let{searchProps:r,filter:a,query:n,onQueryChange:o,actions:d,nothingFound:h,highlightQuery:u,limit:p,...g}=(0,i.Y)("Spotlight",eg,e),[v,m]=(0,l.Z)({value:n,defaultValue:"",finalValue:"",onChange:o}),y=(function e(t,r){if(!Array.isArray(t))return[];let a=0;return t.reduce((t,s)=>{if(a>=r)return t;if(c(s)){let n=e(s.actions,r-a);t.push({group:s.group,actions:n}),a+=n.length}else t.push(s),a+=1;return t},[])})(a(v,d),p).map(e=>{if(c(e)){let t=e.actions.map(({id:e,...t})=>(0,s.jsx)(K,{highlightQuery:u,...t},e));return(0,s.jsx)(H,{label:e.group,children:t},e.group)}return(0,s.jsx)(K,{highlightQuery:u,...e},e.id)});return(0,s.jsxs)(ed,{...g,query:v,onQueryChange:m,ref:t,children:[(0,s.jsx)(ep,{...r}),(0,s.jsxs)(J,{children:[y,0===y.length&&h&&(0,s.jsx)(X,{children:h})]})]})});ev.classes=q,ev.displayName="@mantine/spotlight/Spotlight",ev.Search=ep,ev.ActionsList=J,ev.Action=K,ev.Empty=X,ev.ActionsGroup=H,ev.Footer=et,ev.Root=ed,ev.open=b.open,ev.close=b.close,ev.toggle=b.toggle},80170:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","activity-heartbeat","IconActivityHeartbeat",[["path",{d:"M3 12h4.5l1.5 -6l4 12l2 -9l1.5 3h4.5",key:"svg-0"}]])},82556:(e,t,r)=>{"use strict";r.d(t,{K:()=>s});var a=r(55729);function s({open:e,close:t,openDelay:r,closeDelay:s}){let n=(0,a.useRef)(-1),o=(0,a.useRef)(-1),i=()=>{window.clearTimeout(n.current),window.clearTimeout(o.current)};return(0,a.useEffect)(()=>i,[]),{openDropdown:()=>{i(),0===r||void 0===r?e():n.current=window.setTimeout(e,r)},closeDropdown:()=>{i(),0===s||void 0===s?t():o.current=window.setTimeout(t,s)}}}},84479:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","grid-dots","IconGridDots",[["path",{d:"M5 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-0"}],["path",{d:"M12 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-1"}],["path",{d:"M19 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-2"}],["path",{d:"M5 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-3"}],["path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-4"}],["path",{d:"M19 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-5"}],["path",{d:"M5 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-6"}],["path",{d:"M12 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-7"}],["path",{d:"M19 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-8"}]])},85318:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","sitemap","IconSitemap",[["path",{d:"M3 15m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z",key:"svg-0"}],["path",{d:"M15 15m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z",key:"svg-1"}],["path",{d:"M9 3m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z",key:"svg-2"}],["path",{d:"M6 15v-1a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v1",key:"svg-3"}],["path",{d:"M12 9l0 3",key:"svg-4"}]])},86502:()=>{},86705:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","device-laptop","IconDeviceLaptop",[["path",{d:"M3 19l18 0",key:"svg-0"}],["path",{d:"M5 6m0 1a1 1 0 0 1 1 -1h12a1 1 0 0 1 1 1v8a1 1 0 0 1 -1 1h-12a1 1 0 0 1 -1 -1z",key:"svg-1"}]])},87104:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","bell","IconBell",[["path",{d:"M10 5a2 2 0 1 1 4 0a7 7 0 0 1 4 6v3a4 4 0 0 0 2 3h-16a4 4 0 0 0 2 -3v-3a7 7 0 0 1 4 -6",key:"svg-0"}],["path",{d:"M9 17v1a3 3 0 0 0 6 0v-1",key:"svg-1"}]])},87989:(e,t,r)=>{"use strict";r.d(t,{d:()=>M});var a=r(6029),s=r(60466),n=r(3001);r(55729);var o=r(76),i=r(5618),l=r(66404),c=r(80616),d=r(37666),h=r(3389),u=r(60481),p=r(43016),g=r(72832),v=r(46321),m=r(22746),y={root:"m_5f93f3bb",input:"m_926b4011",track:"m_9307d992",thumb:"m_93039a1d",trackLabel:"m_8277e082"};let f={labelPosition:"right"},k=(0,i.V)((e,{radius:t,color:r,size:a})=>({root:{"--switch-radius":void 0===t?void 0:(0,o.nJ)(t),"--switch-height":(0,o.YC)(a,"switch-height"),"--switch-width":(0,o.YC)(a,"switch-width"),"--switch-thumb-size":(0,o.YC)(a,"switch-thumb-size"),"--switch-label-font-size":(0,o.YC)(a,"switch-label-font-size"),"--switch-track-label-padding":(0,o.YC)(a,"switch-track-label-padding"),"--switch-color":r?(0,l.r)(r,e):void 0}})),M=(0,p.P9)((e,t)=>{let r=(0,c.Y)("Switch",f,e),{classNames:o,className:i,style:l,styles:p,unstyled:m,vars:M,color:w,label:b,offLabel:x,onLabel:S,id:A,size:C,radius:I,wrapperProps:_,thumbIcon:E,checked:j,defaultChecked:L,onChange:D,labelPosition:N,description:F,error:$,disabled:O,variant:R,rootRef:z,mod:P,...T}=r,Y=(0,v.U)(),G=C||Y?.size,V=(0,d.I)({name:"Switch",props:r,classes:y,className:i,style:l,classNames:o,styles:p,unstyled:m,vars:M,varsResolver:k}),{styleProps:q,rest:B}=(0,h.j)(T),K=(0,s.B)(A),W=Y?{checked:Y.value.includes(B.value),onChange:Y.onChange}:{},[H,U]=(0,n.Z)({value:W.checked??j,defaultValue:L,finalValue:!1});return(0,a.jsxs)(g.I,{...V("root"),__staticSelector:"Switch",__stylesApiProps:r,id:K,size:G,labelPosition:N,label:b,description:F,error:$,disabled:O,bodyElement:"label",labelElement:"span",classNames:o,styles:p,unstyled:m,"data-checked":W.checked||j||void 0,variant:R,ref:z,mod:P,...q,..._,children:[(0,a.jsx)("input",{...B,disabled:O,checked:H,"data-checked":W.checked||j||void 0,onChange:e=>{Y?W.onChange?.(e):D?.(e),U(e.currentTarget.checked)},id:K,ref:t,type:"checkbox",role:"switch",...V("input")}),(0,a.jsxs)(u.a,{"aria-hidden":"true",component:"span",mod:{error:$,"label-position":N,"without-labels":!S&&!x},...V("track"),children:[(0,a.jsx)(u.a,{component:"span",mod:"reduce-motion",...V("thumb"),children:E}),(0,a.jsx)("span",{...V("trackLabel"),children:H?S:x})]})]})});M.classes={...y,...g.M},M.displayName="@mantine/core/Switch",M.Group=m.u},88992:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","arrow-right","IconArrowRight",[["path",{d:"M5 12l14 0",key:"svg-0"}],["path",{d:"M13 18l6 -6",key:"svg-1"}],["path",{d:"M13 6l6 6",key:"svg-2"}]])},89533:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","user-cog","IconUserCog",[["path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0",key:"svg-0"}],["path",{d:"M6 21v-2a4 4 0 0 1 4 -4h2.5",key:"svg-1"}],["path",{d:"M19.001 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-2"}],["path",{d:"M19.001 15.5v1.5",key:"svg-3"}],["path",{d:"M19.001 21v1.5",key:"svg-4"}],["path",{d:"M22.032 17.25l-1.299 .75",key:"svg-5"}],["path",{d:"M17.27 20l-1.3 .75",key:"svg-6"}],["path",{d:"M15.97 17.25l1.3 .75",key:"svg-7"}],["path",{d:"M20.733 20l1.3 .75",key:"svg-8"}]])},92334:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","help","IconHelp",[["path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",key:"svg-0"}],["path",{d:"M12 17l0 .01",key:"svg-1"}],["path",{d:"M12 13.5a1.5 1.5 0 0 1 1 -1.5a2.6 2.6 0 1 0 -3 -4",key:"svg-2"}]])},93938:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","bulb","IconBulb",[["path",{d:"M3 12h1m8 -9v1m8 8h1m-15.4 -6.4l.7 .7m12.1 -.7l-.7 .7",key:"svg-0"}],["path",{d:"M9 16a5 5 0 1 1 6 0a3.5 3.5 0 0 0 -1 3a2 2 0 0 1 -4 0a3.5 3.5 0 0 0 -1 -3",key:"svg-1"}],["path",{d:"M9.7 17l4.6 0",key:"svg-2"}]])},95316:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","settings","IconSettings",[["path",{d:"M10.325 4.317c.426 -1.756 2.924 -1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543 -.94 3.31 .826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756 .426 1.756 2.924 0 3.35a1.724 1.724 0 0 0 -1.066 2.573c.94 1.543 -.826 3.31 -2.37 2.37a1.724 1.724 0 0 0 -2.572 1.065c-.426 1.756 -2.924 1.756 -3.35 0a1.724 1.724 0 0 0 -2.573 -1.066c-1.543 .94 -3.31 -.826 -2.37 -2.37a1.724 1.724 0 0 0 -1.065 -2.572c-1.756 -.426 -1.756 -2.924 0 -3.35a1.724 1.724 0 0 0 1.066 -2.573c-.94 -1.543 .826 -3.31 2.37 -2.37c1 .608 2.296 .07 2.572 -1.065z",key:"svg-0"}],["path",{d:"M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0",key:"svg-1"}]])},97702:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var a=(0,r(41495).A)("outline","help-circle","IconHelpCircle",[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M12 16v.01",key:"svg-1"}],["path",{d:"M12 13a2 2 0 0 0 .914 -3.782a1.98 1.98 0 0 0 -2.414 .483",key:"svg-2"}]])},97787:(e,t,r)=>{"use strict";r.d(t,{j:()=>y});var a=r(6029),s=r(55729),n=r(60466),o=r(3001),i=r(35228),l=r(80616),c=r(43016),d=r(63531),h=r(27273),u=r(46084),p=r(66085),g=r(24935),v=r(94613);let m={},y=(0,c.P9)((e,t)=>{let r=(0,l.Y)("Autocomplete",m,e),{classNames:c,styles:y,unstyled:f,vars:k,dropdownOpened:M,defaultDropdownOpened:w,onDropdownClose:b,onDropdownOpen:x,onFocus:S,onBlur:A,onClick:C,onChange:I,data:_,value:E,defaultValue:j,selectFirstOptionOnChange:L,onOptionSubmit:D,comboboxProps:N,readOnly:F,disabled:$,filter:O,limit:R,withScrollArea:z,maxDropdownHeight:P,size:T,id:Y,renderOption:G,autoComplete:V,scrollAreaProps:q,onClear:B,clearButtonProps:K,error:W,clearable:H,rightSection:U,...Z}=r,J=(0,n.B)(Y),Q=(0,d.d)(_),X=(0,h.D)(Q),[ee,et]=(0,o.Z)({value:E,defaultValue:j,finalValue:"",onChange:I}),er=(0,g.B)({opened:M,defaultOpened:w,onDropdownOpen:x,onDropdownClose:()=>{b?.(),er.resetSelectedOption()}}),ea=e=>{et(e),er.resetSelectedOption()},{resolvedClassNames:es,resolvedStyles:en}=(0,i.Y)({props:r,styles:y,classNames:c});(0,s.useEffect)(()=>{L&&er.selectFirstOption()},[L,ee]);let eo=(0,a.jsx)(u.G.ClearButton,{...K,onClear:()=>{ea(""),B?.()}});return(0,a.jsxs)(u.G,{store:er,__staticSelector:"Autocomplete",classNames:es,styles:en,unstyled:f,readOnly:F,onOptionSubmit:e=>{D?.(e),ea(X[e].label),er.closeDropdown()},size:T,...N,children:[(0,a.jsx)(u.G.Target,{autoComplete:V,children:(0,a.jsx)(v.O,{ref:t,...Z,size:T,__staticSelector:"Autocomplete",__clearSection:eo,__clearable:H&&!!ee&&!$&&!F,rightSection:U,disabled:$,readOnly:F,value:ee,error:W,onChange:e=>{ea(e.currentTarget.value),er.openDropdown(),L&&er.selectFirstOption()},onFocus:e=>{er.openDropdown(),S?.(e)},onBlur:e=>{er.closeDropdown(),A?.(e)},onClick:e=>{er.openDropdown(),C?.(e)},classNames:es,styles:en,unstyled:f,id:J})}),(0,a.jsx)(p.i,{data:Q,hidden:F||$,filter:O,search:ee,limit:R,hiddenWhenEmpty:!0,withScrollArea:z,maxDropdownHeight:P,unstyled:f,labelId:Z.label?`${J}-label`:void 0,"aria-label":Z.label?void 0:Z["aria-label"],renderOption:G,scrollAreaProps:q})]})});y.classes={...v.O.classes,...u.G.classes},y.displayName="@mantine/core/Autocomplete"}}]); \ No newline at end of file diff --git a/out/_next/static/chunks/3172-1a9549c57c0fdbee.js b/out/_next/static/chunks/3172-1a9549c57c0fdbee.js new file mode 100644 index 0000000..df6d3f7 --- /dev/null +++ b/out/_next/static/chunks/3172-1a9549c57c0fdbee.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3172],{8989:(e,a,t)=>{"use strict";t.d(a,{R:()=>c});var n=t(75155),r=t(67270),l=t(12482),s=t(49672),o=t(81973),i=t(78550);function c(e,a){let t,c,d,m,u,h=(0,n.c)(16);h[0]!==e?(t={...e,with:void 0},h[0]=e,h[1]=t):t=h[1];let x=t,p=(0,s.fu)(),b=(0,i.Ge)(),f=x?.source;h[2]!==f?(c={id:f},h[2]=f,h[3]=c):c=h[3];let{data:g,isLoading:j}=(0,o.Fo)(c);h[4]!==x?(d=["explain",x],h[4]=x,h[5]=d):d=h[5],h[6]!==p||h[7]!==x||h[8]!==b||h[9]!==g?.querySettings?(m=async e=>{let{signal:a}=e,t=await (0,r.PV)(x,b,g?.querySettings);return(await p.query({query:`EXPLAIN ESTIMATE ${t.sql}`,query_params:t.params,format:"JSONEachRow",abort_signal:a,connectionId:x.connection})).json()},h[6]=p,h[7]=x,h[8]=b,h[9]=g?.querySettings,h[10]=m):m=h[10];let y=!j;return h[11]!==a||h[12]!==d||h[13]!==m||h[14]!==y?(u={queryKey:d,queryFn:m,retry:!1,staleTime:6e4,enabled:y,...a},h[11]=a,h[12]=d,h[13]=m,h[14]=y,h[15]=u):u=h[15],(0,l.I)(u)}},24207:(e,a,t)=>{"use strict";t.d(a,{A:()=>i});var n=t(6029),r=t(75155),l=t(56513),s=t(25062),o=t(90993);function i(e){let a,t,i,c=(0,r.c)(4),{onDelete:d}=e;return c[0]===Symbol.for("react.memo_cache_sentinel")?(a=(0,n.jsx)(l.W.Target,{children:(0,n.jsx)(s.$,{variant:"danger",size:"xs",children:"Delete"})}),c[0]=a):a=c[0],c[1]===Symbol.for("react.memo_cache_sentinel")?(t=(0,n.jsx)(o.A,{size:16}),c[1]=t):t=c[1],c[2]!==d?(i=(0,n.jsxs)(l.W,{withArrow:!0,children:[a,(0,n.jsx)(l.W.Dropdown,{children:(0,n.jsx)(l.W.Item,{leftSection:t,onClick:d,children:"Confirm Delete"})})]}),c[2]=d,c[3]=i):i=c[3],i}},24314:(e,a,t)=>{"use strict";t.d(a,{Eb:()=>eH});var n=t(6029),r=t(75155),l=t(55729),s=t(1909),o=t(35467),i=t(82641),c=t(43517),d=t(34834),m=t(63085),u=t(53061),h=t(78253),x=t(60481),p=t(48378),b=t(76013),f=t(25062),g=t(3635),j=t(92789),y=t(38206),S=t(23935),v=t(9953),w=t(18341),C=t(58061),_=t(289),E=t(3465),N=t(60665),z=t(97702),T=t(90515),A=t(90993),$=t(28975),I=t(95316),k=t(46466),F=t(57478),L=t(98142),H=t(93108),V=t(8989),M=t(78550),D=t(81973),Z=t(36600),O=t(76089);let q=["avg","count","max","min","quantile","sum","histogram"],G=[{value:"1 second",label:"1 second"},{value:O.Z7.FifteenSecond,label:"15 seconds"},{value:O.Z7.ThirtySecond,label:"30 seconds"},{value:O.Z7.OneMinute,label:"1 minute"},{value:O.Z7.FiveMinute,label:"5 minutes"},{value:O.Z7.FifteenMinute,label:"15 minutes"},{value:O.Z7.ThirtyMinute,label:"30 minutes"},{value:O.Z7.OneHour,label:"1 hour"},{value:O.Z7.TwoHour,label:"2 hours"},{value:O.Z7.SixHour,label:"6 hours"},{value:O.Z7.TwelveHour,label:"12 hours"},{value:O.Z7.OneDay,label:"1 day"},{value:O.Z7.TwoDay,label:"2 days"},{value:O.Z7.SevenDay,label:"7 days"},{value:O.Z7.ThirtyDay,label:"30 days"}],R=/MATERIALIZED VIEW [^\s]+\.[^\s]+ TO ([^\s]+)\.([^\s]+)/;function B(e){return e.engine?.includes("AggregatingMergeTree")??!1}function P(e){return e.engine?.includes("SummingMergeTree")??!1}async function K({databaseName:e,tableName:a,connectionId:t},n){try{let r=await n.getTableMetadata({databaseName:e,tableName:a,connectionId:t});if(r.engine?.startsWith("MaterializedView")){let e=function(e){let a=e.create_table_query.match(R);if(a&&a[1]&&a[2])return{databaseName:a[1],tableName:a[2]}}(r);if(e){let a=await n.getTableMetadata({...e,connectionId:t});return B(a)||P(a)?{mvMetadata:r,mvTableMetadata:a}:void 0}}else if(B(r)||P(r)){let l=await n.queryMaterializedViewsByTarget({databaseName:e,tableName:a,connectionId:t});if(1===l.length)return{mvMetadata:await n.getTableMetadata({...l[0],connectionId:t}),mvTableMetadata:r};return{mvTableMetadata:r}}}catch(e){console.error("Error fetching materialized view metadata",e)}}function W(e){let a=e.as_select??"",t=a.slice(0,a.toLowerCase().indexOf("from")).replace(/^select/i,"").trim();return(0,O.AB)(t)}function Y(e,a,t,n){if("count"===e)return"";let r=a.name.split("__")[1];if(t.find(e=>e.name===r))return r;if(n){let e=W(n).find(e=>e.endsWith(a.name)),r=e&&t.find(a=>RegExp(`\\b${a.name.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}\\b`).test(e));if(r)return r.name}return""}async function Q(e,a,t){let{databaseName:n,tableName:r,connectionId:l}=e,{databaseName:s,tableName:i}=a;if(!r)return;let c=await K({databaseName:n,tableName:r,connectionId:l},t);if(!c)return;let{mvMetadata:d,mvTableMetadata:m}=c,[u,h]=await Promise.all([t.getColumns({databaseName:m.database,tableName:m.name,connectionId:l}),t.getColumns({databaseName:s,tableName:i,connectionId:l})]),x=u.filter(e=>e.type.includes("AggregateFunction")).map(e=>{let a,t=e.type.match(/AggregateFunction\(([a-zA-Z0-9_]+)/)?.[1];if("sum"===t&&e.name.toLowerCase().includes("count")?t="count":t?.startsWith("quantile")&&(t="quantile"),a=t,!q.includes(a??""))return;let n=Y(t,e,h,d);return{mvColumn:e.name,aggFn:t,sourceColumn:n}}).filter(e=>void 0!=e),p=P(m)?function(e){if(!P(e))return;let a=e.engine_full?.match(/SummingMergeTree\((\(?[^(]*)\)/)?.[1],t=a?.at(0)==="("&&a?.at(-1)===")"?a.slice(1,-1):a;if(t)return new Set((0,O.AB)(t))}(m):void 0;for(let e of p??[]){let a=e.toLowerCase().includes("count")?"count":"sum",t=u.find(a=>a.name===e);if(t){let n=Y(a,t,h,d);x.push({mvColumn:e,aggFn:a,sourceColumn:n})}}let b=new Set((0,o.bZ)(m.primary_key)),f=(0,o.P1)(u,[o.A2.Date])??[],g=f?.find(e=>b.has(e.name))?.name??"",j="";d&&(j=function(e,a){try{let t=W(e).find(e=>e.match(/toStartOf|toDate/)&&e.includes(a));if(!t)return;for(let[e,a]of Object.entries({toStartOfSecond:"1 second",toStartOfMinute:"1 minute",toStartOfFiveMinutes:"5 minute",toStartOfFifteenMinutes:"15 minute",toStartOfHour:"1 hour",toStartOfDay:"1 day",toDate:"1 day",toDateTime:"1 second"}))if(t?.includes(`${e}(`))return a;if(t.includes("toStartOfInterval(")){let e=t.match(/INTERVAL\s+(\d+)\s+(SECOND|MINUTE|HOUR|DAY)S?\)/i),a=t.match(/toInterval(Second|Minute|Hour|Day)\((\d+)\)/),n=e?`${e[1]} ${e[2].toLowerCase()}`:a?`${a[2]} ${a[1].toLowerCase()}`:null;if(n&&G.map(e=>e.value).includes(n)&&G.map(e=>e.value).includes(n))return n}}catch(e){console.error("Error inferring timestamp column granularity",e)}}(d,g)??"");let y=u.filter(e=>!e.type.includes("AggregateFunction")&&!p?.has(e.name)&&!f.includes(e)).map(e=>e.name).join(", ");return{databaseName:m.database,tableName:m.name,dimensionColumns:y,minGranularity:j,timestampColumn:g,aggregatedColumns:x}}var X=t(24207),U=t(62453),J=t(66980),ee=t(49672);function ea(e){let a,t,l,s,o,i,c,d,m=(0,r.c)(21),{database:u,setDatabase:h,connectionId:x,onBlur:p,name:b,inputRef:f,size:g}=e,j=x??"";m[0]!==j?(a={connectionId:j},m[0]=j,m[1]=a):a=m[1];let S=!!x;m[2]!==S?(t={enabled:S},m[2]=S,m[3]=t):t=m[3];let{data:v,isLoading:w}=(0,ee.VH)(a,t);m[4]!==v?.data?(l=v?.data||[],m[4]=v?.data,m[5]=l):l=m[5],m[6]!==l?(s=l.map(et),m[6]=l,m[7]=s):s=m[7];let C=s;return m[8]===Symbol.for("react.memo_cache_sentinel")?(o=(0,n.jsx)(J.A,{size:16}),m[8]=o):o=m[8],m[9]===Symbol.for("react.memo_cache_sentinel")?(i={withinPortal:!1},m[9]=i):i=m[9],m[10]!==h?(c=e=>h(e??void 0),m[10]=h,m[11]=c):c=m[11],m[12]!==C||m[13]!==u||m[14]!==f||m[15]!==w||m[16]!==b||m[17]!==p||m[18]!==g||m[19]!==c?(d=(0,n.jsx)(y.l,{searchable:!0,placeholder:"Database",leftSection:o,maxDropdownHeight:280,data:C,disabled:w,comboboxProps:i,value:u,onChange:c,onBlur:p,name:b,ref:f,size:g}),m[12]=C,m[13]=u,m[14]=f,m[15]=w,m[16]=b,m[17]=p,m[18]=g,m[19]=c,m[20]=d):d=m[20],d}function et(e){return{value:e.name,label:e.name}}function en(e){let a,t=(0,r.c)(7),{field:l}=(0,s.as)(e);return t[0]!==l.name||t[1]!==l.onBlur||t[2]!==l.onChange||t[3]!==l.ref||t[4]!==l.value||t[5]!==e?(a=(0,n.jsx)(ea,{...e,database:l.value,setDatabase:l.onChange,onBlur:l.onBlur,name:l.name,inputRef:l.ref}),t[0]=l.name,t[1]=l.onBlur,t[2]=l.onChange,t[3]=l.ref,t[4]=l.value,t[5]=e,t[6]=a):a=t[6],a}var er=t(45519),el=t(86761);function es(e){let a,t,l,s,o,i,c,d,m,u,x=(0,r.c)(29),{database:p,setTable:b,table:f,onBlur:g,name:j,size:S,inputRef:v,connectionId:w}=e,C=p??"",_=w??"";x[0]!==C||x[1]!==_?(a={database:C,connectionId:_},x[0]=C,x[1]=_,x[2]=a):a=x[2];let E=!!p&&!!w;x[3]!==E?(t={enabled:E},x[3]=E,x[4]=t):t=x[4];let{data:N,isLoading:z}=(0,ee.uI)(a,t);x[5]!==N?.data?(l=N?.data||[],x[5]=N?.data,x[6]=l):l=x[6],x[7]!==l?(s=l.map(eo),x[7]=l,x[8]=s):s=x[8];let T=s;x[9]!==w||x[10]!==p||x[11]!==f?(o=w&&p&&f?(0,n.jsx)(el.A,{source:{connection:w,from:{databaseName:p,tableName:f}},variant:"text"}):void 0,x[9]=w,x[10]=p,x[11]=f,x[12]=o):o=x[12],x[13]!==o?(i=(0,F.J)({sourceSchemaPreview:o}),x[13]=o,x[14]=i):i=x[14];let A=i;return x[15]===Symbol.for("react.memo_cache_sentinel")?(c=(0,n.jsx)(er.A,{size:16}),x[15]=c):c=x[15],x[16]===Symbol.for("react.memo_cache_sentinel")?(d={withinPortal:!1},x[16]=d):d=x[16],x[17]!==b?(m=e=>b(e??void 0),x[17]=b,x[18]=m):m=x[18],x[19]!==T||x[20]!==v||x[21]!==z||x[22]!==j||x[23]!==g||x[24]!==A||x[25]!==S||x[26]!==m||x[27]!==f?(u=(0,n.jsx)(h.s,{align:"center",gap:8,children:(0,n.jsx)(y.l,{searchable:!0,placeholder:"Table",leftSection:c,maxDropdownHeight:280,data:T,disabled:z,value:f,comboboxProps:d,onChange:m,onBlur:g,name:j,ref:v,size:S,className:"flex-grow-1",...A})}),x[19]=T,x[20]=v,x[21]=z,x[22]=j,x[23]=g,x[24]=A,x[25]=S,x[26]=m,x[27]=f,x[28]=u):u=x[28],u}function eo(e){return{value:e.name,label:e.name}}function ei(e){let a,t,l,o,i=(0,r.c)(13);i[0]!==e?({database:t,connectionId:a,...l}=e,i[0]=e,i[1]=a,i[2]=t,i[3]=l):(a=i[1],t=i[2],l=i[3]);let{field:c}=(0,s.as)(l);return i[4]!==a||i[5]!==t||i[6]!==c.name||i[7]!==c.onBlur||i[8]!==c.onChange||i[9]!==c.ref||i[10]!==c.value||i[11]!==l?(o=(0,n.jsx)(es,{...l,database:t,connectionId:a,table:c.value,setTable:c.onChange,onBlur:c.onBlur,name:c.name,inputRef:c.ref}),i[4]=a,i[5]=t,i[6]=c.name,i[7]=c.onBlur,i[8]=c.onChange,i[9]=c.ref,i[10]=c.value,i[11]=l,i[12]=o):o=i[12],o}var ec=t(24589),ed=t(22599),em=t(70114),eu=t(18205);function eh(e){let a,t,s,o,i,c,d,m,u=(0,r.c)(16),{summary:h,details:x}=e,[p,b]=(0,l.useState)(!1);u[0]===Symbol.for("react.memo_cache_sentinel")?(a=()=>b(ex),u[0]=a):a=u[0];let g=p?"rotate(90deg)":"rotate(0deg)";return u[1]!==g?(t=(0,n.jsx)(em.A,{size:14,style:{transform:g,transition:"transform 150ms ease"}}),u[1]=g,u[2]=t):t=u[2],u[3]===Symbol.for("react.memo_cache_sentinel")?(s=(0,n.jsx)(eu.A,{size:14,className:"me-2"}),u[3]=s):s=u[3],u[4]!==h||u[5]!==t?(o=(0,n.jsxs)(f.$,{variant:"subtle",size:"compact-xs",color:"red",onClick:a,leftSection:t,children:[s," ",h]}),u[4]=h,u[5]=t,u[6]=o):o=u[6],u[7]===Symbol.for("react.memo_cache_sentinel")?(i={whiteSpace:"pre-wrap",wordBreak:"break-word"},u[7]=i):i=u[7],u[8]!==x?(c=(0,n.jsx)(ec.C,{block:!0,c:"red",mt:"xs",style:i,children:x}),u[8]=x,u[9]=c):c=u[9],u[10]!==p||u[11]!==c?(d=(0,n.jsx)(ed.S,{in:p,children:c}),u[10]=p,u[11]=c,u[12]=d):d=u[12],u[13]!==o||u[14]!==d?(m=(0,n.jsxs)(n.Fragment,{children:[o,d]}),u[13]=o,u[14]=d,u[15]=m):m=u[15],m}function ex(e){return!e}var ep=t(71781),eb=t(9211);let ef="default",eg=q.map(e=>({value:e,label:e})),ej={timestampValueExpression:"TimeUnix",resourceAttributesExpression:"ResourceAttributes"},ey={[i.GL.Log]:{metricSourceId:[{targetKind:i.GL.Metric,targetField:"logSourceId"}],traceSourceId:[{targetKind:i.GL.Trace,targetField:"logSourceId"}]},[i.GL.Trace]:{logSourceId:[{targetKind:i.GL.Log,targetField:"traceSourceId"}],sessionSourceId:[{targetKind:i.GL.Session,targetField:"traceSourceId"}],metricSourceId:[{targetKind:i.GL.Metric,targetField:"logSourceId"}]},[i.GL.Session]:{traceSourceId:[{targetKind:i.GL.Trace,targetField:"sessionSourceId"}]},[i.GL.Metric]:{logSourceId:[{targetKind:i.GL.Log,targetField:"metricSourceId"}]}};function eS(e){let a,t,l,s,o,i,p,b,f,g,j,y=(0,r.c)(22),{label:S,children:v,helpText:w}=e;return y[0]===Symbol.for("react.memo_cache_sentinel")?(a={maxWidth:220,minWidth:220,height:"36px"},y[0]=a):a=y[0],y[1]!==S?(t="string"==typeof S?(0,n.jsx)(c.E,{tt:"capitalize",size:"sm",children:S}):S,y[1]=S,y[2]=t):t=y[2],y[3]!==t?(l=(0,n.jsx)(d.B,{justify:"center",style:a,children:t}),y[3]=t,y[4]=l):l=y[4],y[5]!==w?(s={...!w?{opacity:0,pointerEvents:"none"}:{}},y[5]=w,y[6]=s):s=y[6],y[7]===Symbol.for("react.memo_cache_sentinel")?(o=(0,n.jsx)(z.A,{size:20,className:"cursor-pointer"}),y[7]=o):o=y[7],y[8]!==w?(i=(0,n.jsx)(m.m,{label:w,color:"dark",c:"white",multiline:!0,maw:600,children:o}),y[8]=w,y[9]=i):i=y[9],y[10]!==s||y[11]!==i?(p=(0,n.jsx)(u.o,{me:"sm",ms:"sm",style:s,children:i}),y[10]=s,y[11]=i,y[12]=p):p=y[12],y[13]!==l||y[14]!==p?(b=(0,n.jsxs)(h.s,{align:"center",children:[l,p]}),y[13]=l,y[14]=p,y[15]=b):b=y[15],y[16]===Symbol.for("react.memo_cache_sentinel")?(f={minWidth:0},y[16]=f):f=y[16],y[17]!==v?(g=(0,n.jsx)(x.a,{w:"100%",style:f,children:v}),y[17]=v,y[18]=g):g=y[18],y[19]!==g||y[20]!==b?(j=(0,n.jsxs)(h.s,{align:"flex-start",children:[b,g]}),y[19]=g,y[20]=b,y[21]=j):j=y[21],j}function ev(e){let a,t,i,d,u,x,f,g,j,y,S,v,w,C,N,$,I,F,L,H,M,D,Z,O,q,G,R=(0,r.c)(75),{id:B,index:P,control:K,databaseName:W,name:Y,tableName:Q,connectionId:X,removeHighlightedAttribute:U}=e,J=`${Y}.${P}.sqlExpression`;R[0]!==K||R[1]!==J?(a={control:K,name:J},R[0]=K,R[1]=J,R[2]=a):a=R[2];let ee=(0,s.FH)(a),ea=`${Y}.${P}.alias`;R[3]!==K||R[4]!==ea?(t={control:K,name:ea},R[3]=K,R[4]=ea,R[5]=t):t=R[5];let et=(0,s.FH)(t),[en,er]=(0,l.useState)();R[6]===Symbol.for("react.memo_cache_sentinel")?(i=e=>{er(e)},R[6]=i):i=R[6];let el=(0,_.Y)(i,1e3);R[7]!==et||R[8]!==ee||R[9]!==el?(d=()=>{el({expression:ee,alias:et})},R[7]=et,R[8]=ee,R[9]=el,R[10]=d):d=R[10],R[11]!==et||R[12]!==ee?(u=[ee,et],R[11]=et,R[12]=ee,R[13]=u):u=R[13],(0,E.C)(d,u),R[14]!==W||R[15]!==Q?(x={databaseName:W,tableName:Q},R[14]=W,R[15]=Q,R[16]=x):x=R[16];let es=en?.alias,eo=en?.expression??"";R[17]!==eo||R[18]!==es?(f=[{alias:es,valueExpression:eo}],R[17]=eo,R[18]=es,R[19]=f):f=R[19],R[20]!==X||R[21]!==f||R[22]!==x?(g={from:x,connection:X,select:f,where:""},R[20]=X,R[21]=f,R[22]=x,R[23]=g):g=R[23];let ei=!!en?.expression;R[24]!==ei?(j={enabled:ei},R[24]=ei,R[25]=j):j=R[25];let{data:ec,error:ed,isLoading:em}=(0,V.R)(g,j);R[26]!==et||R[27]!==ee?(y=()=>{er({expression:ee,alias:et})},R[26]=et,R[27]=ee,R[28]=y):y=R[28];let eu=y,ex=!!ec?.length,eb=ed instanceof o.p1,ef=en?.expression===ee&&en?.alias===et&&(ex||eb);R[29]===Symbol.for("react.memo_cache_sentinel")?(S={display:"contents"},R[29]=S):S=R[29];let eg=`${Y}.${P}.sqlExpression`;R[30]!==X||R[31]!==W||R[32]!==Q?(v={databaseName:W,tableName:Q,connectionId:X},R[30]=X,R[31]=W,R[32]=Q,R[33]=v):v=R[33];let ej=`${Y}.${P}.sqlExpression`;R[34]!==K||R[35]!==v||R[36]!==ej?(w=(0,n.jsx)(k.Z,{tableConnection:v,control:K,name:ej,disableKeywordAutocomplete:!0,placeholder:"ResourceAttributes['http.host']"}),R[34]=K,R[35]=v,R[36]=ej,R[37]=w):w=R[37],R[38]!==eg||R[39]!==w?(C=(0,n.jsx)(p.x.Col,{span:3,pe:0,children:(0,n.jsx)("div",{style:S,"data-name":eg,children:w})}),R[38]=eg,R[39]=w,R[40]=C):C=R[40],R[41]===Symbol.for("react.memo_cache_sentinel")?(N=(0,n.jsx)(c.E,{c:"gray",children:"AS"}),R[41]=N):N=R[41];let ey=`${Y}.${P}.alias`;R[42]!==K||R[43]!==ey?($=(0,n.jsx)(k.Z,{control:K,name:ey,placeholder:"Optional Alias",disableKeywordAutocomplete:!0}),R[42]=K,R[43]=ey,R[44]=$):$=R[44];let eS=!ee||em;R[45]===Symbol.for("react.memo_cache_sentinel")?(I=(0,n.jsx)(T.A,{size:16}),R[45]=I):I=R[45],R[46]!==em||R[47]!==eu||R[48]!==eS?(F=(0,n.jsx)(m.m,{label:"Validate expression",children:(0,n.jsx)(b.M,{size:"xs",variant:"subtle",color:"gray",loading:em,disabled:eS,onClick:eu,children:I})}),R[46]=em,R[47]=eu,R[48]=eS,R[49]=F):F=R[49],R[50]!==P||R[51]!==U?(L=()=>U(P),R[50]=P,R[51]=U,R[52]=L):L=R[52],R[53]===Symbol.for("react.memo_cache_sentinel")?(H=(0,n.jsx)(A.A,{size:16}),R[53]=H):H=R[53],R[54]!==L?(M=(0,n.jsx)(b.M,{size:"xs",variant:"subtle",color:"gray",onClick:L,children:H}),R[54]=L,R[55]=M):M=R[55],R[56]!==$||R[57]!==F||R[58]!==M?(D=(0,n.jsx)(p.x.Col,{span:2,ps:"xs",children:(0,n.jsxs)(h.s,{align:"center",gap:"sm",children:[N,$,F,M]})}),R[56]=$,R[57]=F,R[58]=M,R[59]=D):D=R[59],R[60]!==ed?.message||R[61]!==eb||R[62]!==ex||R[63]!==ef?(Z=ef&&(0,n.jsxs)(p.x.Col,{span:5,pe:0,pt:0,children:[ex&&(0,n.jsx)(c.E,{c:"green",size:"xs",children:"Expression is valid."}),eb&&(0,n.jsx)(eh,{summary:"Expression is invalid",details:ed?.message})]}),R[60]=ed?.message,R[61]=eb,R[62]=ex,R[63]=ef,R[64]=Z):Z=R[64];let ev=`${Y}.${P}.luceneExpression`;return R[65]!==K||R[66]!==ev?(O=(0,n.jsx)(p.x.Col,{span:3,pe:0,children:(0,n.jsx)(ep.t4,{control:K,name:ev,placeholder:"ResourceAttributes.http.host (Optional) "})}),R[65]=K,R[66]=ev,R[67]=O):O=R[67],R[68]===Symbol.for("react.memo_cache_sentinel")?(q=(0,n.jsx)(p.x.Col,{span:1,pe:0,children:(0,n.jsx)(c.E,{me:"sm",mt:6,children:(0,n.jsx)(m.m,{label:"An optional, Lucene version of the above expression. If provided, it is used when searching for this attribute value.",color:"dark",c:"white",multiline:!0,maw:600,children:(0,n.jsx)(z.A,{size:14,className:"cursor-pointer"})})})}),R[68]=q):q=R[68],R[69]!==B||R[70]!==C||R[71]!==D||R[72]!==Z||R[73]!==O?(G=(0,n.jsxs)(l.Fragment,{children:[C,D,Z,O,q]},B),R[69]=B,R[70]=C,R[71]=D,R[72]=Z,R[73]=O,R[74]=G):G=R[74],G}function ew(e){let a,t,l,o,i,c,d,m,u,h,x=(0,r.c)(37),{control:b,name:g,label:j,helpText:y}=e;x[0]!==b?(a={control:b,name:"from.databaseName",defaultValue:ef},x[0]=b,x[1]=a):a=x[1];let S=(0,s.FH)(a);x[2]!==b?(t={control:b,name:"from.tableName"},x[2]=b,x[3]=t):t=x[3];let v=(0,s.FH)(t);x[4]!==b?(l={control:b,name:"connection"},x[4]=b,x[5]=l):l=x[5];let w=(0,s.FH)(l);x[6]!==b||x[7]!==g?(o={control:b,name:g},x[6]=b,x[7]=g,x[8]=o):o=x[8];let{fields:C,append:_,remove:E}=(0,s.jz)(o);if(x[9]!==w||x[10]!==b||x[11]!==S||x[12]!==C||x[13]!==g||x[14]!==E||x[15]!==v){let e;x[17]!==w||x[18]!==b||x[19]!==S||x[20]!==g||x[21]!==E||x[22]!==v?(e=(e,a)=>{let{id:t}=e;return(0,n.jsx)(ev,{id:t,index:a,name:g,control:b,databaseName:S,tableName:v,connectionId:w,removeHighlightedAttribute:E},t)},x[17]=w,x[18]=b,x[19]=S,x[20]=g,x[21]=E,x[22]=v,x[23]=e):e=x[23],i=C.map(e),x[9]=w,x[10]=b,x[11]=S,x[12]=C,x[13]=g,x[14]=E,x[15]=v,x[16]=i}else i=x[16];x[24]!==i?(c=(0,n.jsx)(p.x,{columns:5,children:i}),x[24]=i,x[25]=c):c=x[25];let N=C.length?"sm":"md";return x[26]!==_?(d=()=>{_({sqlExpression:"",luceneExpression:"",alias:""},{shouldFocus:!1})},x[26]=_,x[27]=d):d=x[27],x[28]===Symbol.for("react.memo_cache_sentinel")?(m=(0,n.jsx)($.A,{size:14,className:"me-2"}),x[28]=m):m=x[28],x[29]!==N||x[30]!==d?(u=(0,n.jsxs)(f.$,{variant:"secondary",size:"sm",className:"align-self-start",mt:N,onClick:d,children:[m,"Add expression"]}),x[29]=N,x[30]=d,x[31]=u):u=x[31],x[32]!==y||x[33]!==j||x[34]!==u||x[35]!==c?(h=(0,n.jsxs)(eS,{label:j,helpText:y,children:[c,u]}),x[32]=y,x[33]=j,x[34]=u,x[35]=c,x[36]=h):h=x[36],h}function eC(e){let a,t,l,o,i,c,m,u=(0,r.c)(22),{control:h,setValue:x}=e;u[0]!==h?(a={control:h,name:"from.databaseName",defaultValue:ef},u[0]=h,u[1]=a):a=u[1];let p=(0,s.FH)(a);u[2]!==h?(t={control:h,name:"materializedViews"},u[2]=h,u[3]=t):t=u[3];let{fields:b,append:j,remove:y}=(0,s.jz)(t);if(u[4]!==h||u[5]!==b||u[6]!==y||u[7]!==x){let e;u[9]!==h||u[10]!==y||u[11]!==x?(e=(e,a)=>(0,n.jsx)(e_,{control:h,mvIndex:a,setValue:x,onRemove:()=>y(a)},e.id),u[9]=h,u[10]=y,u[11]=x,u[12]=e):e=u[12],l=b.map(e),u[4]=h,u[5]=b,u[6]=y,u[7]=x,u[8]=l}else l=u[8];return u[13]!==j||u[14]!==p?(o=()=>{j({databaseName:p,tableName:"",dimensionColumns:"",minGranularity:"",timestampColumn:"",aggregatedColumns:[]})},u[13]=j,u[14]=p,u[15]=o):o=u[15],u[16]===Symbol.for("react.memo_cache_sentinel")?(i=(0,n.jsxs)(g.Y,{children:[(0,n.jsx)($.A,{size:16}),"Add Materialized View"]}),u[16]=i):i=u[16],u[17]!==o?(c=(0,n.jsx)(f.$,{variant:"secondary",onClick:o,children:i}),u[17]=o,u[18]=c):c=u[18],u[19]!==l||u[20]!==c?(m=(0,n.jsx)(d.B,{gap:"md",children:(0,n.jsx)(eS,{label:"Materialized Views",helpText:"Configure materialized views for query optimization. These pre-aggregated views can significantly improve query performance on aggregation queries.",children:(0,n.jsxs)(d.B,{gap:"md",children:[l,c]})})}),u[19]=l,u[20]=c,u[21]=m):m=u[21],m}function e_(e){let a,t,l,o,i,u,h,f,y,S,v,w,C,_,E,N,T,$,I,F,L,H,V,M,D,O=(0,r.c)(72),{control:q,mvIndex:G,onRemove:R,setValue:B}=e,P=(0,Z.Kh)();O[0]!==q?(a={control:q,name:"connection"},O[0]=q,O[1]=a):a=O[1];let K=(0,s.FH)(a);O[2]!==q?(t={control:q,name:"from.databaseName",defaultValue:ef},O[2]=q,O[3]=t):t=O[3];let W=(0,s.FH)(t),Y=`materializedViews.${G}.databaseName`;O[4]!==q||O[5]!==W||O[6]!==Y?(l={control:q,name:Y,defaultValue:W},O[4]=q,O[5]=W,O[6]=Y,O[7]=l):l=O[7];let Q=(0,s.FH)(l),X=`materializedViews.${G}.tableName`;O[8]!==q||O[9]!==X?(o={control:q,name:X,defaultValue:""},O[8]=q,O[9]=X,O[10]=o):o=O[10];let U=(0,s.FH)(o),J=`materializedViews.${G}.databaseName`;O[11]!==K||O[12]!==q||O[13]!==J?(i=(0,n.jsx)(p.x.Col,{span:1,children:(0,n.jsx)(en,{control:q,name:J,connectionId:K})}),O[11]=K,O[12]=q,O[13]=J,O[14]=i):i=O[14];let ee=`materializedViews.${G}.tableName`;O[15]!==K||O[16]!==q||O[17]!==Q||O[18]!==ee?(u=(0,n.jsx)(x.a,{flex:1,children:(0,n.jsx)(ei,{database:Q,control:q,name:ee,connectionId:K})}),O[15]=K,O[16]=q,O[17]=Q,O[18]=ee,O[19]=u):u=O[19],O[20]===Symbol.for("react.memo_cache_sentinel")?(h=(0,n.jsx)(A.A,{size:16}),O[20]=h):h=O[20],O[21]!==R?(f=(0,n.jsx)(b.M,{size:"sm",onClick:R,children:h}),O[21]=R,O[22]=f):f=O[22],O[23]!==u||O[24]!==f?(y=(0,n.jsx)(p.x.Col,{span:1,children:(0,n.jsxs)(g.Y,{children:[u,f]})}),O[23]=u,O[24]=f,O[25]=y):y=O[25],O[26]===Symbol.for("react.memo_cache_sentinel")?(S=(0,n.jsx)(c.E,{size:"xs",fw:500,mb:4,children:"Timestamp Column"}),O[26]=S):S=O[26],O[27]!==K||O[28]!==Q||O[29]!==U?(v={databaseName:Q,tableName:U,connectionId:K},O[27]=K,O[28]=Q,O[29]=U,O[30]=v):v=O[30];let ea=`materializedViews.${G}.timestampColumn`;O[31]!==q||O[32]!==v||O[33]!==ea?(w=(0,n.jsxs)(p.x.Col,{span:2,children:[S,(0,n.jsx)(k.Z,{tableConnection:v,control:q,placeholder:"Timestamp",name:ea,disableKeywordAutocomplete:!0})]}),O[31]=q,O[32]=v,O[33]=ea,O[34]=w):w=O[34],O[35]===Symbol.for("react.memo_cache_sentinel")?(C=(0,n.jsxs)(c.E,{size:"xs",fw:500,mb:4,children:["Granularity",(0,n.jsx)(m.m,{label:"The granularity of the timestamp column",color:"dark",c:"white",multiline:!0,maw:600,children:(0,n.jsx)(z.A,{size:14,className:"cursor-pointer ms-1"})})]}),O[35]=C):C=O[35];let et=`materializedViews.${G}.minGranularity`;O[36]!==q||O[37]!==et?(_=(0,n.jsxs)(p.x.Col,{span:1,children:[C,(0,n.jsx)(s.xI,{control:q,name:et,render:eN})]}),O[36]=q,O[37]=et,O[38]=_):_=O[38];let er=`(Optional) The earliest date and time (in the local timezone) for which the materialized view contains data. If not provided, then ${P} will assume that the materialized view contains data for all dates for which the source table contains data.`;O[39]===Symbol.for("react.memo_cache_sentinel")?(E=(0,n.jsx)(z.A,{size:14,className:"cursor-pointer ms-1"}),O[39]=E):E=O[39],O[40]!==er?(N=(0,n.jsxs)(c.E,{size:"xs",fw:500,mb:4,children:["Minimum Date",(0,n.jsx)(m.m,{label:er,color:"dark",c:"white",multiline:!0,maw:600,children:E})]}),O[40]=er,O[41]=N):N=O[41];let el=`materializedViews.${G}.minDate`;O[42]!==q||O[43]!==el?(T=(0,n.jsx)(s.xI,{control:q,name:el,render:eE}),O[42]=q,O[43]=el,O[44]=T):T=O[44],O[45]!==N||O[46]!==T?($=(0,n.jsxs)(p.x.Col,{span:1,children:[N,T]}),O[45]=N,O[46]=T,O[47]=$):$=O[47],O[48]!==y||O[49]!==w||O[50]!==_||O[51]!==$||O[52]!==i?(I=(0,n.jsxs)(p.x,{columns:2,flex:1,children:[i,y,w,_,$]}),O[48]=y,O[49]=w,O[50]=_,O[51]=$,O[52]=i,O[53]=I):I=O[53],O[54]===Symbol.for("react.memo_cache_sentinel")?(F=(0,n.jsxs)(c.E,{size:"xs",fw:500,mb:4,children:["Dimension Columns (comma-separated)",(0,n.jsx)(m.m,{label:"Columns which are not pre-aggregated in the materialized view and can be used for filtering and grouping.",color:"dark",c:"white",multiline:!0,maw:600,children:(0,n.jsx)(z.A,{size:14,className:"cursor-pointer ms-1"})})]}),O[54]=F):F=O[54],O[55]!==K||O[56]!==Q||O[57]!==U?(L={databaseName:Q,tableName:U,connectionId:K},O[55]=K,O[56]=Q,O[57]=U,O[58]=L):L=O[58];let es=`materializedViews.${G}.dimensionColumns`;return O[59]!==q||O[60]!==L||O[61]!==es?(H=(0,n.jsxs)(x.a,{children:[F,(0,n.jsx)(k.Z,{tableConnection:L,control:q,name:es,placeholder:"ServiceName, StatusCode",disableKeywordAutocomplete:!0})]}),O[59]=q,O[60]=L,O[61]=es,O[62]=H):H=O[62],O[63]!==q||O[64]!==G||O[65]!==B?(V=(0,n.jsx)(ez,{control:q,mvIndex:G,setValue:B}),O[63]=q,O[64]=G,O[65]=B,O[66]=V):V=O[66],O[67]===Symbol.for("react.memo_cache_sentinel")?(M=(0,n.jsx)(j.c,{}),O[67]=M):M=O[67],O[68]!==I||O[69]!==H||O[70]!==V?(D=(0,n.jsxs)(d.B,{gap:"sm",children:[I,H,V,M]}),O[68]=I,O[69]=H,O[70]=V,O[71]=D):D=O[71],D}function eE(e){let{field:a}=e;return(0,n.jsx)(C.J,{...a,value:a.value?new Date(a.value):void 0,onChange:e=>a.onChange(e?e.toISOString():null),clearable:!0,highlightToday:!0,placeholder:"YYYY-MM-DD HH:mm:ss",valueFormat:"YYYY-MM-DD HH:mm:ss"})}function eN(e){let{field:a}=e;return(0,n.jsx)(y.l,{...a,data:G,placeholder:"Granularity",size:"sm"})}function ez({control:e,setValue:a,mvIndex:t}){let{fields:r,append:o,remove:d,replace:u}=(0,s.jz)({control:e,name:`materializedViews.${t}.aggregatedColumns`}),h=(0,l.useCallback)(()=>{o({sourceColumn:"",aggFn:"avg",mvColumn:""})},[o]),b=(0,s.FH)({control:e,name:"kind"}),j=(0,s.FH)({control:e,name:"connection"}),y=(0,s.FH)({control:e,name:`materializedViews.${t}.tableName`}),S=(0,s.FH)({control:e,name:`materializedViews.${t}.databaseName`}),v=(0,s.FH)({control:e,name:"from.databaseName"}),w=(0,s.FH)({control:e,name:"from.tableName"}),C=(0,l.useRef)(y),_=(0,M.Ge)();return(0,l.useEffect)(()=>{(async()=>{try{if(y!==C.current&&(C.current=y,(b===i.GL.Log||b===i.GL.Trace)&&j&&S&&y&&v&&w)){let e=await Q({databaseName:S,tableName:y,connectionId:j},{databaseName:v,tableName:w,connectionId:j},_);e?(a(`materializedViews.${t}`,e),u(e.aggregatedColumns??[]),N.$e.show({color:"green",id:"mv-infer-success",message:"Partially inferred materialized view configuration from view schema."})):N.$e.show({color:"yellow",id:"mv-infer-failure",message:"Unable to infer materialized view configuration."})}}catch(e){console.error(e)}})()},[y,b,j,S,v,w,t,u,a,_]),(0,n.jsxs)(x.a,{children:[(0,n.jsxs)(c.E,{size:"xs",mb:4,children:["Pre-aggregated Columns",(0,n.jsx)(m.m,{label:"Columns which are pre-aggregated by the materialized view",color:"dark",c:"white",multiline:!0,maw:600,children:(0,n.jsx)(z.A,{size:14,className:"cursor-pointer ms-1"})})]}),(0,n.jsx)(p.x,{columns:10,children:r.map((r,l)=>(0,n.jsx)(eT,{setValue:a,control:e,mvIndex:t,colIndex:l,onRemove:()=>d(l)},r.id))}),(0,n.jsx)(f.$,{size:"sm",variant:"secondary",onClick:h,mt:"lg",children:(0,n.jsxs)(g.Y,{children:[(0,n.jsx)($.A,{size:16}),"Add Column"]})})]})}function eT(e){let a,t,l,o,i,c,d,m,u,h,f,j,y,S,v,w=(0,r.c)(48),{control:C,mvIndex:_,colIndex:E,onRemove:N}=e;w[0]!==C?(a={control:C,name:"connection"},w[0]=C,w[1]=a):a=w[1];let z=(0,s.FH)(a);w[2]!==C?(t={control:C,name:"from.databaseName",defaultValue:ef},w[2]=C,w[3]=t):t=w[3];let T=(0,s.FH)(t);w[4]!==C?(l={control:C,name:"from.tableName"},w[4]=C,w[5]=l):l=w[5];let $=(0,s.FH)(l),I=`materializedViews.${_}.databaseName`;w[6]!==C||w[7]!==T||w[8]!==I?(o={control:C,name:I,defaultValue:T},w[6]=C,w[7]=T,w[8]=I,w[9]=o):o=w[9];let F=(0,s.FH)(o),L=`materializedViews.${_}.tableName`;w[10]!==C||w[11]!==L?(i={control:C,name:L},w[10]=C,w[11]=L,w[12]=i):i=w[12];let H=(0,s.FH)(i),V=`materializedViews.${_}.aggregatedColumns.${E}.aggFn`;w[13]!==C||w[14]!==V?(c={control:C,name:V},w[13]=C,w[14]=V,w[15]=c):c=w[15];let M="count"===(0,s.FH)(c),D=`materializedViews.${_}.aggregatedColumns.${E}.aggFn`;w[16]!==C||w[17]!==D?(d=(0,n.jsx)(p.x.Col,{span:2,children:(0,n.jsx)(eb.A,{control:C,name:D,data:eg,size:"sm"})}),w[16]=C,w[17]=D,w[18]=d):d=w[18],w[19]!==E||w[20]!==z||w[21]!==C||w[22]!==M||w[23]!==_||w[24]!==T||w[25]!==$?(m=!M&&(0,n.jsx)(p.x.Col,{span:4,children:(0,n.jsx)(k.Z,{tableConnection:{databaseName:T,tableName:$,connectionId:z},control:C,name:`materializedViews.${_}.aggregatedColumns.${E}.sourceColumn`,placeholder:"Source Column",disableKeywordAutocomplete:!0})}),w[19]=E,w[20]=z,w[21]=C,w[22]=M,w[23]=_,w[24]=T,w[25]=$,w[26]=m):m=w[26];let Z=M?8:4;w[27]!==z||w[28]!==F||w[29]!==H?(u={databaseName:F,tableName:H,connectionId:z},w[27]=z,w[28]=F,w[29]=H,w[30]=u):u=w[30];let O=`materializedViews.${_}.aggregatedColumns.${E}.mvColumn`;return w[31]!==C||w[32]!==u||w[33]!==O?(h=(0,n.jsx)(x.a,{flex:1,children:(0,n.jsx)(k.Z,{tableConnection:u,control:C,name:O,placeholder:"View Column",disableKeywordAutocomplete:!0})}),w[31]=C,w[32]=u,w[33]=O,w[34]=h):h=w[34],w[35]===Symbol.for("react.memo_cache_sentinel")?(f=(0,n.jsx)(A.A,{size:16}),w[35]=f):f=w[35],w[36]!==N?(j=(0,n.jsx)(b.M,{size:"sm",onClick:N,children:f}),w[36]=N,w[37]=j):j=w[37],w[38]!==h||w[39]!==j?(y=(0,n.jsxs)(g.Y,{wrap:"nowrap",children:[h,j]}),w[38]=h,w[39]=j,w[40]=y):y=w[40],w[41]!==Z||w[42]!==y?(S=(0,n.jsx)(p.x.Col,{span:Z,children:y}),w[41]=Z,w[42]=y,w[43]=S):S=w[43],w[44]!==d||w[45]!==m||w[46]!==S?(v=(0,n.jsxs)(n.Fragment,{children:[d,m,S]}),w[44]=d,w[45]=m,w[46]=S,w[47]=v):v=w[47],v}function eA(e){let a,t,o,i,c,m,u,h,p,b,y,v,w,C,_,E,N,z,T,A,$,L,H,V,M,D,O,q,G,R,B,P,K,W,Y,Q,X,U,J,ee,ea,et,en,er,el=(0,r.c)(135),{control:es}=e,eo=(0,Z.Kh)();el[0]!==es?(a={control:es,name:"from.databaseName",defaultValue:ef},el[0]=es,el[1]=a):a=el[1];let ei=(0,s.FH)(a);el[2]!==es?(t={control:es,name:"from.tableName"},el[2]=es,el[3]=t):t=el[3];let ec=(0,s.FH)(t);el[4]!==es?(o={control:es,name:"connection"},el[4]=es,el[5]=o):o=el[5];let ed=(0,s.FH)(o),[em,eu]=(0,l.useState)(!1);el[6]!==ed||el[7]!==ei||el[8]!==ec?(i={databaseName:ei,tableName:ec,connectionId:ed},el[6]=ed,el[7]=ei,el[8]=ec,el[9]=i):i=el[9],el[10]!==es||el[11]!==i?(c=(0,n.jsx)(eS,{label:"Timestamp Column",helpText:"DateTime column or expression that is part of your table's primary key.",children:(0,n.jsx)(k.Z,{tableConnection:i,control:es,name:"timestampValueExpression",disableKeywordAutocomplete:!0})}),el[10]=es,el[11]=i,el[12]=c):c=el[12],el[13]!==ed||el[14]!==ei||el[15]!==ec?(m={databaseName:ei,tableName:ec,connectionId:ed},el[13]=ed,el[14]=ei,el[15]=ec,el[16]=m):m=el[16],el[17]!==es||el[18]!==m?(u=(0,n.jsx)(eS,{label:"Default Select",helpText:"Default columns selected in search results (this can be customized per search later)",children:(0,n.jsx)(k.Z,{tableConnection:m,control:es,name:"defaultTableSelectExpression",placeholder:"Timestamp, Body"})}),el[17]=es,el[18]=m,el[19]=u):u=el[19],el[20]!==em?(h=!em&&(0,n.jsx)(S.M,{underline:"always",onClick:()=>eu(!0),size:"xs",children:(0,n.jsxs)(g.Y,{gap:"xs",children:[(0,n.jsx)(I.A,{size:14}),"Configure Optional Fields"]})}),el[20]=em,el[21]=h):h=el[21],el[22]!==em?(p=em&&(0,n.jsx)(f.$,{onClick:()=>eu(!1),size:"xs",variant:"subtle",children:"Hide Optional Fields"}),el[22]=em,el[23]=p):p=el[23],el[24]!==h||el[25]!==p?(b=(0,n.jsxs)(x.a,{children:[h,p]}),el[24]=h,el[25]=p,el[26]=b):b=el[26],el[27]!==c||el[28]!==u||el[29]!==b?(y=(0,n.jsxs)(d.B,{gap:"sm",children:[c,u,b]}),el[27]=c,el[28]=u,el[29]=b,el[30]=y):y=el[30];let eh=em?"flex":"none";el[31]!==eh?(v={display:eh},el[31]=eh,el[32]=v):v=el[32],el[33]===Symbol.for("react.memo_cache_sentinel")?(w=(0,n.jsx)(j.c,{}),el[33]=w):w=el[33],el[34]!==ed||el[35]!==ei||el[36]!==ec?(C={databaseName:ei,tableName:ec,connectionId:ed},el[34]=ed,el[35]=ei,el[36]=ec,el[37]=C):C=el[37],el[38]!==es||el[39]!==C?(_=(0,n.jsx)(eS,{label:"Service Name Expression",children:(0,n.jsx)(k.Z,{tableConnection:C,control:es,name:"serviceNameExpression",placeholder:"ServiceName"})}),el[38]=es,el[39]=C,el[40]=_):_=el[40],el[41]!==ed||el[42]!==ei||el[43]!==ec?(E={databaseName:ei,tableName:ec,connectionId:ed},el[41]=ed,el[42]=ei,el[43]=ec,el[44]=E):E=el[44],el[45]!==es||el[46]!==E?(N=(0,n.jsx)(eS,{label:"Log Level Expression",children:(0,n.jsx)(k.Z,{tableConnection:E,control:es,name:"severityTextExpression",placeholder:"SeverityText"})}),el[45]=es,el[46]=E,el[47]=N):N=el[47],el[48]!==ed||el[49]!==ei||el[50]!==ec?(z={databaseName:ei,tableName:ec,connectionId:ed},el[48]=ed,el[49]=ei,el[50]=ec,el[51]=z):z=el[51],el[52]!==es||el[53]!==z?(T=(0,n.jsx)(eS,{label:"Body Expression",children:(0,n.jsx)(k.Z,{tableConnection:z,control:es,name:"bodyExpression",placeholder:"Body"})}),el[52]=es,el[53]=z,el[54]=T):T=el[54],el[55]!==ed||el[56]!==ei||el[57]!==ec?(A={databaseName:ei,tableName:ec,connectionId:ed},el[55]=ed,el[56]=ei,el[57]=ec,el[58]=A):A=el[58],el[59]!==es||el[60]!==A?($=(0,n.jsx)(eS,{label:"Log Attributes Expression",children:(0,n.jsx)(k.Z,{tableConnection:A,control:es,name:"eventAttributesExpression",placeholder:"LogAttributes"})}),el[59]=es,el[60]=A,el[61]=$):$=el[61],el[62]!==ed||el[63]!==ei||el[64]!==ec?(L={databaseName:ei,tableName:ec,connectionId:ed},el[62]=ed,el[63]=ei,el[64]=ec,el[65]=L):L=el[65],el[66]!==es||el[67]!==L?(H=(0,n.jsx)(eS,{label:"Resource Attributes Expression",children:(0,n.jsx)(k.Z,{tableConnection:L,control:es,name:"resourceAttributesExpression",placeholder:"ResourceAttributes"})}),el[66]=es,el[67]=L,el[68]=H):H=el[68],el[69]!==ed||el[70]!==ei||el[71]!==ec?(V={databaseName:ei,tableName:ec,connectionId:ed},el[69]=ed,el[70]=ei,el[71]=ec,el[72]=V):V=el[72],el[73]!==es||el[74]!==V?(M=(0,n.jsx)(eS,{label:"Displayed Timestamp Column",helpText:"This DateTime column is used to display and order search results.",children:(0,n.jsx)(k.Z,{tableConnection:V,control:es,name:"displayedTimestampValueExpression",disableKeywordAutocomplete:!0})}),el[73]=es,el[74]=V,el[75]=M):M=el[75],el[76]===Symbol.for("react.memo_cache_sentinel")?(D=(0,n.jsx)(j.c,{}),el[76]=D):D=el[76];let ex=`${eo} Source for metrics associated with logs. Optional`;el[77]!==es?(O=(0,n.jsx)(F.W,{control:es,name:"metricSourceId"}),el[77]=es,el[78]=O):O=el[78],el[79]!==ex||el[80]!==O?(q=(0,n.jsx)(eS,{label:"Correlated Metric Source",helpText:ex,children:O}),el[79]=ex,el[80]=O,el[81]=q):q=el[81];let ep=`${eo} Source for traces associated with logs. Optional`;return el[82]!==es?(G=(0,n.jsx)(F.W,{control:es,name:"traceSourceId"}),el[82]=es,el[83]=G):G=el[83],el[84]!==ep||el[85]!==G?(R=(0,n.jsx)(eS,{label:"Correlated Trace Source",helpText:ep,children:G}),el[84]=ep,el[85]=G,el[86]=R):R=el[86],el[87]!==ed||el[88]!==ei||el[89]!==ec?(B={databaseName:ei,tableName:ec,connectionId:ed},el[87]=ed,el[88]=ei,el[89]=ec,el[90]=B):B=el[90],el[91]!==es||el[92]!==B?(P=(0,n.jsx)(eS,{label:"Trace Id Expression",children:(0,n.jsx)(k.Z,{tableConnection:B,control:es,name:"traceIdExpression",placeholder:"TraceId"})}),el[91]=es,el[92]=B,el[93]=P):P=el[93],el[94]!==ed||el[95]!==ei||el[96]!==ec?(K={databaseName:ei,tableName:ec,connectionId:ed},el[94]=ed,el[95]=ei,el[96]=ec,el[97]=K):K=el[97],el[98]!==es||el[99]!==K?(W=(0,n.jsx)(eS,{label:"Span Id Expression",children:(0,n.jsx)(k.Z,{tableConnection:K,control:es,name:"spanIdExpression",placeholder:"SpanId"})}),el[98]=es,el[99]=K,el[100]=W):W=el[100],el[101]===Symbol.for("react.memo_cache_sentinel")?(Y=(0,n.jsx)(j.c,{}),el[101]=Y):Y=el[101],el[102]!==ed||el[103]!==ei||el[104]!==ec?(Q={databaseName:ei,tableName:ec,connectionId:ed},el[102]=ed,el[103]=ei,el[104]=ec,el[105]=Q):Q=el[105],el[106]!==es||el[107]!==Q?(X=(0,n.jsx)(eS,{label:"Implicit Column Expression",helpText:"Column used for full text search if no property is specified in a Lucene-based search. Typically the message body of a log.",children:(0,n.jsx)(k.Z,{tableConnection:Q,control:es,name:"implicitColumnExpression",placeholder:"Body"})}),el[106]=es,el[107]=Q,el[108]=X):X=el[108],el[109]===Symbol.for("react.memo_cache_sentinel")?(U=(0,n.jsx)(j.c,{}),el[109]=U):U=el[109],el[110]!==e?(J=(0,n.jsx)(ew,{...e,name:"highlightedRowAttributeExpressions",label:"Highlighted Attributes",helpText:"Expressions defining row-level attributes which are displayed in the row side panel for the selected row."}),ee=(0,n.jsx)(ew,{...e,name:"highlightedTraceAttributeExpressions",label:"Highlighted Trace Attributes",helpText:"Expressions defining trace-level attributes which are displayed in the trace view for the selected trace."}),el[110]=e,el[111]=J,el[112]=ee):(J=el[111],ee=el[112]),el[113]===Symbol.for("react.memo_cache_sentinel")?(ea=(0,n.jsx)(j.c,{}),el[113]=ea):ea=el[113],el[114]!==e?(et=(0,n.jsx)(eC,{...e}),el[114]=e,el[115]=et):et=el[115],el[116]!==v||el[117]!==_||el[118]!==N||el[119]!==T||el[120]!==$||el[121]!==H||el[122]!==M||el[123]!==q||el[124]!==R||el[125]!==P||el[126]!==W||el[127]!==X||el[128]!==J||el[129]!==ee||el[130]!==et?(en=(0,n.jsxs)(d.B,{gap:"sm",style:v,children:[w,_,N,T,$,H,M,D,q,R,P,W,Y,X,U,J,ee,ea,et]}),el[116]=v,el[117]=_,el[118]=N,el[119]=T,el[120]=$,el[121]=H,el[122]=M,el[123]=q,el[124]=R,el[125]=P,el[126]=W,el[127]=X,el[128]=J,el[129]=ee,el[130]=et,el[131]=en):en=el[131],el[132]!==y||el[133]!==en?(er=(0,n.jsxs)(n.Fragment,{children:[y,en]}),el[132]=y,el[133]=en,el[134]=er):er=el[134],er}function e$(e){let a,t,l,o,i,c,m,u,h,p,b,f,g,y,S,v,w,C,_,E,N,z,T,A,$,I,L,H,V,M,D,O,q,G,R,B,P,K,W,Y,Q,X,U,J,ee,ea,et,en,er,el,es=(0,r.c)(168),{control:eo}=e,ei=(0,Z.Kh)();es[0]!==eo?(a={control:eo,name:"from.databaseName",defaultValue:ef},es[0]=eo,es[1]=a):a=es[1];let ec=(0,s.FH)(a);es[2]!==eo?(t={control:eo,name:"from.tableName"},es[2]=eo,es[3]=t):t=es[3];let ed=(0,s.FH)(t);es[4]!==eo?(l={control:eo,name:"connection"},es[4]=eo,es[5]=l):l=es[5];let em=(0,s.FH)(l);es[6]!==em||es[7]!==ec||es[8]!==ed?(o={databaseName:ec,tableName:ed,connectionId:em},es[6]=em,es[7]=ec,es[8]=ed,es[9]=o):o=es[9],es[10]!==eo||es[11]!==o?(i=(0,n.jsx)(eS,{label:"Timestamp Column",helpText:"DateTime column or expression defines the start of the span",children:(0,n.jsx)(k.Z,{tableConnection:o,control:eo,name:"timestampValueExpression",placeholder:"Timestamp",disableKeywordAutocomplete:!0})}),es[10]=eo,es[11]=o,es[12]=i):i=es[12],es[13]!==em||es[14]!==ec||es[15]!==ed?(c={databaseName:ec,tableName:ed,connectionId:em},es[13]=em,es[14]=ec,es[15]=ed,es[16]=c):c=es[16],es[17]!==eo||es[18]!==c?(m=(0,n.jsx)(eS,{label:"Default Select",helpText:"Default columns selected in search results (this can be customized per search later)",children:(0,n.jsx)(k.Z,{tableConnection:c,control:eo,name:"defaultTableSelectExpression",placeholder:"Timestamp, ServiceName, StatusCode, Duration, SpanName"})}),es[17]=eo,es[18]=c,es[19]=m):m=es[19],es[20]===Symbol.for("react.memo_cache_sentinel")?(u=(0,n.jsx)(j.c,{}),es[20]=u):u=es[20],es[21]!==em||es[22]!==ec||es[23]!==ed?(h={databaseName:ec,tableName:ed,connectionId:em},es[21]=em,es[22]=ec,es[23]=ed,es[24]=h):h=es[24],es[25]!==eo||es[26]!==h?(p=(0,n.jsx)(eS,{label:"Duration Expression",children:(0,n.jsx)(k.Z,{tableConnection:h,control:eo,name:"durationExpression",placeholder:"Duration Column"})}),es[25]=eo,es[26]=h,es[27]=p):p=es[27],es[28]!==eo?(b=(0,n.jsx)(eS,{label:"Duration Precision",children:(0,n.jsx)(x.a,{mx:"xl",children:(0,n.jsx)(s.xI,{control:eo,name:"durationPrecision",render:eI})})}),es[28]=eo,es[29]=b):b=es[29],es[30]!==em||es[31]!==ec||es[32]!==ed?(f={databaseName:ec,tableName:ed,connectionId:em},es[30]=em,es[31]=ec,es[32]=ed,es[33]=f):f=es[33],es[34]!==eo||es[35]!==f?(g=(0,n.jsx)(eS,{label:"Trace Id Expression",children:(0,n.jsx)(k.Z,{tableConnection:f,control:eo,name:"traceIdExpression",placeholder:"TraceId"})}),es[34]=eo,es[35]=f,es[36]=g):g=es[36],es[37]!==em||es[38]!==ec||es[39]!==ed?(y={databaseName:ec,tableName:ed,connectionId:em},es[37]=em,es[38]=ec,es[39]=ed,es[40]=y):y=es[40],es[41]!==eo||es[42]!==y?(S=(0,n.jsx)(eS,{label:"Span Id Expression",children:(0,n.jsx)(k.Z,{tableConnection:y,control:eo,name:"spanIdExpression",placeholder:"SpanId"})}),es[41]=eo,es[42]=y,es[43]=S):S=es[43],es[44]!==em||es[45]!==ec||es[46]!==ed?(v={databaseName:ec,tableName:ed,connectionId:em},es[44]=em,es[45]=ec,es[46]=ed,es[47]=v):v=es[47],es[48]!==eo||es[49]!==v?(w=(0,n.jsx)(eS,{label:"Parent Span Id Expression",children:(0,n.jsx)(k.Z,{tableConnection:v,control:eo,name:"parentSpanIdExpression",placeholder:"ParentSpanId"})}),es[48]=eo,es[49]=v,es[50]=w):w=es[50],es[51]!==em||es[52]!==ec||es[53]!==ed?(C={databaseName:ec,tableName:ed,connectionId:em},es[51]=em,es[52]=ec,es[53]=ed,es[54]=C):C=es[54],es[55]!==eo||es[56]!==C?(_=(0,n.jsx)(eS,{label:"Span Name Expression",children:(0,n.jsx)(k.Z,{tableConnection:C,control:eo,name:"spanNameExpression",placeholder:"SpanName"})}),es[55]=eo,es[56]=C,es[57]=_):_=es[57],es[58]!==em||es[59]!==ec||es[60]!==ed?(E={databaseName:ec,tableName:ed,connectionId:em},es[58]=em,es[59]=ec,es[60]=ed,es[61]=E):E=es[61],es[62]!==eo||es[63]!==E?(N=(0,n.jsx)(eS,{label:"Span Kind Expression",children:(0,n.jsx)(k.Z,{tableConnection:E,control:eo,name:"spanKindExpression",placeholder:"SpanKind"})}),es[62]=eo,es[63]=E,es[64]=N):N=es[64],es[65]===Symbol.for("react.memo_cache_sentinel")?(z=(0,n.jsx)(j.c,{}),es[65]=z):z=es[65];let eu=`${ei} Source for logs associated with traces. Optional`;es[66]!==eo?(T=(0,n.jsx)(F.W,{control:eo,name:"logSourceId"}),es[66]=eo,es[67]=T):T=es[67],es[68]!==eu||es[69]!==T?(A=(0,n.jsx)(eS,{label:"Correlated Log Source",helpText:eu,children:T}),es[68]=eu,es[69]=T,es[70]=A):A=es[70];let eh=`${ei} Source for sessions associated with traces. Optional`;es[71]!==eo?($=(0,n.jsx)(F.W,{control:eo,name:"sessionSourceId"}),es[71]=eo,es[72]=$):$=es[72],es[73]!==eh||es[74]!==$?(I=(0,n.jsx)(eS,{label:"Correlated Session Source",helpText:eh,children:$}),es[73]=eh,es[74]=$,es[75]=I):I=es[75];let ex=`${ei} Source for metrics associated with traces. Optional`;return es[76]!==eo?(L=(0,n.jsx)(F.W,{control:eo,name:"metricSourceId"}),es[76]=eo,es[77]=L):L=es[77],es[78]!==ex||es[79]!==L?(H=(0,n.jsx)(eS,{label:"Correlated Metric Source",helpText:ex,children:L}),es[78]=ex,es[79]=L,es[80]=H):H=es[80],es[81]!==em||es[82]!==ec||es[83]!==ed?(V={databaseName:ec,tableName:ed,connectionId:em},es[81]=em,es[82]=ec,es[83]=ed,es[84]=V):V=es[84],es[85]!==eo||es[86]!==V?(M=(0,n.jsx)(eS,{label:"Status Code Expression",children:(0,n.jsx)(k.Z,{tableConnection:V,control:eo,name:"statusCodeExpression",placeholder:"StatusCode"})}),es[85]=eo,es[86]=V,es[87]=M):M=es[87],es[88]!==em||es[89]!==ec||es[90]!==ed?(D={databaseName:ec,tableName:ed,connectionId:em},es[88]=em,es[89]=ec,es[90]=ed,es[91]=D):D=es[91],es[92]!==eo||es[93]!==D?(O=(0,n.jsx)(eS,{label:"Status Message Expression",children:(0,n.jsx)(k.Z,{tableConnection:D,control:eo,name:"statusMessageExpression",placeholder:"StatusMessage"})}),es[92]=eo,es[93]=D,es[94]=O):O=es[94],es[95]!==em||es[96]!==ec||es[97]!==ed?(q={databaseName:ec,tableName:ed,connectionId:em},es[95]=em,es[96]=ec,es[97]=ed,es[98]=q):q=es[98],es[99]!==eo||es[100]!==q?(G=(0,n.jsx)(eS,{label:"Service Name Expression",children:(0,n.jsx)(k.Z,{tableConnection:q,control:eo,name:"serviceNameExpression",placeholder:"ServiceName"})}),es[99]=eo,es[100]=q,es[101]=G):G=es[101],es[102]!==em||es[103]!==ec||es[104]!==ed?(R={databaseName:ec,tableName:ed,connectionId:em},es[102]=em,es[103]=ec,es[104]=ed,es[105]=R):R=es[105],es[106]!==eo||es[107]!==R?(B=(0,n.jsx)(eS,{label:"Resource Attributes Expression",children:(0,n.jsx)(k.Z,{tableConnection:R,control:eo,name:"resourceAttributesExpression",placeholder:"ResourceAttributes"})}),es[106]=eo,es[107]=R,es[108]=B):B=es[108],es[109]!==em||es[110]!==ec||es[111]!==ed?(P={databaseName:ec,tableName:ed,connectionId:em},es[109]=em,es[110]=ec,es[111]=ed,es[112]=P):P=es[112],es[113]!==eo||es[114]!==P?(K=(0,n.jsx)(eS,{label:"Event Attributes Expression",children:(0,n.jsx)(k.Z,{tableConnection:P,control:eo,name:"eventAttributesExpression",placeholder:"SpanAttributes"})}),es[113]=eo,es[114]=P,es[115]=K):K=es[115],es[116]!==em||es[117]!==ec||es[118]!==ed?(W={databaseName:ec,tableName:ed,connectionId:em},es[116]=em,es[117]=ec,es[118]=ed,es[119]=W):W=es[119],es[120]!==eo||es[121]!==W?(Y=(0,n.jsx)(eS,{label:"Span Events Expression",helpText:"Expression to extract span events. Used to capture events associated with spans. Expected to be Nested ( Timestamp DateTime64(9), Name LowCardinality(String), Attributes Map(LowCardinality(String), String)",children:(0,n.jsx)(k.Z,{tableConnection:W,control:eo,name:"spanEventsValueExpression",placeholder:"Events"})}),es[120]=eo,es[121]=W,es[122]=Y):Y=es[122],es[123]!==em||es[124]!==ec||es[125]!==ed?(Q={databaseName:ec,tableName:ed,connectionId:em},es[123]=em,es[124]=ec,es[125]=ed,es[126]=Q):Q=es[126],es[127]!==eo||es[128]!==Q?(X=(0,n.jsx)(eS,{label:"Implicit Column Expression",helpText:"Column used for full text search if no property is specified in a Lucene-based search. Typically the message body of a log.",children:(0,n.jsx)(k.Z,{tableConnection:Q,control:eo,name:"implicitColumnExpression",placeholder:"SpanName"})}),es[127]=eo,es[128]=Q,es[129]=X):X=es[129],es[130]!==em||es[131]!==ec||es[132]!==ed?(U={databaseName:ec,tableName:ed,connectionId:em},es[130]=em,es[131]=ec,es[132]=ed,es[133]=U):U=es[133],es[134]!==eo||es[135]!==U?(J=(0,n.jsx)(eS,{label:"Displayed Timestamp Column",helpText:"This DateTime column is used to display and order search results.",children:(0,n.jsx)(k.Z,{tableConnection:U,control:eo,name:"displayedTimestampValueExpression",disableKeywordAutocomplete:!0})}),es[134]=eo,es[135]=U,es[136]=J):J=es[136],es[137]===Symbol.for("react.memo_cache_sentinel")?(ee=(0,n.jsx)(j.c,{}),es[137]=ee):ee=es[137],es[138]!==e?(ea=(0,n.jsx)(ew,{...e,name:"highlightedRowAttributeExpressions",label:"Highlighted Attributes",helpText:"Expressions defining row-level attributes which are displayed in the row side panel for the selected row"}),et=(0,n.jsx)(ew,{...e,name:"highlightedTraceAttributeExpressions",label:"Highlighted Trace Attributes",helpText:"Expressions defining trace-level attributes which are displayed in the trace view for the selected trace."}),es[138]=e,es[139]=ea,es[140]=et):(ea=es[139],et=es[140]),es[141]===Symbol.for("react.memo_cache_sentinel")?(en=(0,n.jsx)(j.c,{}),es[141]=en):en=es[141],es[142]!==e?(er=(0,n.jsx)(eC,{...e}),es[142]=e,es[143]=er):er=es[143],es[144]!==b||es[145]!==g||es[146]!==S||es[147]!==w||es[148]!==_||es[149]!==N||es[150]!==A||es[151]!==I||es[152]!==H||es[153]!==M||es[154]!==O||es[155]!==G||es[156]!==B||es[157]!==i||es[158]!==K||es[159]!==Y||es[160]!==X||es[161]!==J||es[162]!==ea||es[163]!==et||es[164]!==er||es[165]!==m||es[166]!==p?(el=(0,n.jsxs)(d.B,{gap:"sm",children:[i,m,u,p,b,g,S,w,_,N,z,A,I,H,M,O,G,B,K,Y,X,J,ee,ea,et,en,er]}),es[144]=b,es[145]=g,es[146]=S,es[147]=w,es[148]=_,es[149]=N,es[150]=A,es[151]=I,es[152]=H,es[153]=M,es[154]=O,es[155]=G,es[156]=B,es[157]=i,es[158]=K,es[159]=Y,es[160]=X,es[161]=J,es[162]=ea,es[163]=et,es[164]=er,es[165]=m,es[166]=p,es[167]=el):el=es[167],el}function eI(e){let{field:a}=e,{onChange:t,value:r}=a;return(0,n.jsx)("div",{style:{width:"90%",marginBottom:8},children:(0,n.jsx)(v.A,{color:"green",defaultValue:0,min:0,max:9,marks:[{value:0,label:"Seconds"},{value:3,label:"Millisecond"},{value:6,label:"Microsecond"},{value:9,label:"Nanosecond"}],value:r,onChange:t})})}function ek({control:e}){let a=(0,Z.Kh)(),t=(0,s.FH)({control:e,name:"from.databaseName",defaultValue:ef}),r=(0,s.FH)({control:e,name:"connection"}),o=(0,s.FH)({control:e,name:"from.tableName"}),i=(0,l.useRef)(o),c=(0,M.Ge)();return(0,l.useEffect)(()=>{(async()=>{try{o&&o!==i.current&&(i.current=o,await (0,D.Al)({databaseName:t,tableName:o,connectionId:r,metadata:c})||N.$e.show({color:"red",message:`${o} is not a valid Sessions schema.`}))}catch(e){console.error(e),N.$e.show({color:"red",message:e.message})}})()},[o,t,r,c]),(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(d.B,{gap:"sm",children:[(0,n.jsx)(eS,{label:"Correlated Trace Source",helpText:`${a} Source for traces associated with sessions. Required`,children:(0,n.jsx)(F.W,{control:e,name:"traceSourceId"})}),(0,n.jsx)(eS,{label:"Timestamp Column",helpText:"DateTime column or expression that is part of your table's primary key.",children:(0,n.jsx)(k.Z,{tableConnection:{databaseName:t,tableName:o,connectionId:r},control:e,name:"timestampValueExpression",disableKeywordAutocomplete:!0})})]})})}function eF({control:e,setValue:a}){let t=(0,Z.Kh)(),r=(0,s.FH)({control:e,name:"from.databaseName",defaultValue:ef}),o=(0,s.FH)({control:e,name:"connection"}),c=(0,s.FH)({control:e,name:"metricTables"}),m=(0,l.useRef)(c),u=(0,M.Ge)();return(0,l.useEffect)(()=>{for(let[e,t]of Object.entries(ej))a(e,t)},[a]),(0,l.useEffect)(()=>{(async()=>{try{if(c&&m.current)for(let e of Object.values(i.SX)){let a=c[e],t=m.current[e];a!==t&&(await (0,D.fS)({databaseName:r,tableName:a,connectionId:o,metricType:e,metadata:u})||N.$e.show({color:"red",message:`${a} is not a valid OTEL ${e} schema.`}))}m.current=c}catch(e){console.error(e),N.$e.show({color:"red",message:e.message})}})()},[c,r,o,u]),(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(d.B,{gap:"sm",children:[Object.values(i.SX).map(a=>(0,n.jsx)(eS,{label:`${a} Table`,helpText:a===i.SX.ExponentialHistogram||a===i.SX.Summary?`Table containing ${a.toLowerCase()} metrics data. Note: not yet fully supported by ${t}`:`Table containing ${a.toLowerCase()} metrics data`,children:(0,n.jsx)(ei,{connectionId:o,database:r,control:e,name:`metricTables.${a.toLowerCase()}`})},a.toLowerCase())),(0,n.jsx)(eS,{label:"Correlated Log Source",helpText:`${t} Source for logs associated with metrics. Optional`,children:(0,n.jsx)(F.W,{control:e,name:"logSourceId"})})]})})}function eL(e){let a=(0,r.c)(12),{control:t,setValue:l,kind:s}=e;switch(s){case i.GL.Log:{let e;return a[0]!==t||a[1]!==l?(e=(0,n.jsx)(eA,{control:t,setValue:l}),a[0]=t,a[1]=l,a[2]=e):e=a[2],e}case i.GL.Trace:{let e;return a[3]!==t||a[4]!==l?(e=(0,n.jsx)(e$,{control:t,setValue:l}),a[3]=t,a[4]=l,a[5]=e):e=a[5],e}case i.GL.Session:{let e;return a[6]!==t||a[7]!==l?(e=(0,n.jsx)(ek,{control:t,setValue:l}),a[6]=t,a[7]=l,a[8]=e):e=a[8],e}case i.GL.Metric:{let e;return a[9]!==t||a[10]!==l?(e=(0,n.jsx)(eF,{control:t,setValue:l}),a[9]=t,a[10]=l,a[11]=e):e=a[11],e}}}function eH({sourceId:e,onSave:a,onCreate:t,isNew:r=!1,defaultName:o="",onCancel:m}){let{data:u}=(0,D.Fo)({id:e}),{data:x}=(0,H.ZY)(),{control:j,setValue:y,handleSubmit:v,resetField:C,setError:_,clearErrors:E}=(0,s.mN)({defaultValues:{kind:i.GL.Log,name:o,connection:x?.[0]?.id,from:{databaseName:"default",tableName:""},querySettings:u?.querySettings},values:u,resetOptions:{keepDirtyValues:!0,keepErrors:!0}}),z=(0,s.FH)({control:j,name:"connection",defaultValue:u?.connection}),T=(0,s.FH)({control:j,name:"from.databaseName",defaultValue:u?.from?.databaseName||ef}),I=(0,s.FH)({control:j,name:"from.tableName",defaultValue:u?.from?.tableName}),k=(0,s.FH)({control:j,name:"kind",defaultValue:u?.kind||i.GL.Log}),F=(0,l.useRef)(I),V=(0,M.Ge)();(0,l.useEffect)(()=>{(async()=>{try{if(I!==F.current&&(F.current=I,null!=z&&null!=T&&(k===i.GL.Metric||null!=I))){let e=await (0,D.Ys)({databaseName:T,tableName:k!==i.GL.Metric?I:"",connectionId:z,metadata:V});Object.keys(e).length>0&&N.$e.show({color:"green",message:"Automatically inferred source configuration from table schema."}),Object.entries(e).forEach(([e,a])=>{C(e,{keepDirty:!0,defaultValue:a})})}}catch(e){console.error(e)}})()},[I,z,T,k,C,V]),(0,l.useEffect)(()=>{C("connection",{defaultValue:x?.[0]?.id})},[x,C]);let Z=(0,s.FH)({control:j,name:"kind",defaultValue:u?.kind||i.GL.Log}),O=(0,D.nd)(),q=(0,D.sr)(),G=(0,D.YI)(),{data:R}=(0,D.oE)(),B=(0,s.FH)({control:j,name:"id"}),P=(0,s.FH)({control:j,name:"logSourceId"}),K=(0,s.FH)({control:j,name:"traceSourceId"}),W=(0,s.FH)({control:j,name:"metricSourceId"}),Y=(0,s.FH)({control:j,name:"traceSourceId"}),Q=(0,l.useRef)(P),J=(0,l.useRef)(K),ee=(0,l.useRef)(W),ea=(0,l.useRef)(Y);(0,l.useEffect)(()=>{(async()=>{if(!B||!R||!Z)return;let e=ey[Z];if(!e)return;let a=[];for(let{name:t,value:n}of(P!==Q.current&&(Q.current=P,a.push({name:"logSourceId",value:P??void 0})),K!==J.current&&(J.current=K,a.push({name:"traceSourceId",value:K??void 0})),W!==ee.current&&(ee.current=W,a.push({name:"metricSourceId",value:W??void 0})),Y!==ea.current&&Z===i.GL.Session&&(ea.current=Y,a.push({name:"traceSourceId",value:Y??void 0})),a))if(t in e)for(let{targetKind:a,targetField:r}of e[t]){let e=R.find(e=>e.kind===a&&e[r]===B);if(e&&e.id!==n&&await q.mutateAsync({source:{...e,[r]:void 0}}),n){let e=R.find(e=>e.id===n);e&&e.kind===a&&!e[r]&&await q.mutateAsync({source:{...e,[r]:B}})}}})()},[P,K,W,Y,Z,B,R,q]);let et=(0,i.z1)({id:!0}),er=(0,l.useCallback)(({errors:e},a)=>{let t=[];for(let n of(console.debug(`[${a}] SourceForm validation error`,JSON.stringify(e)),e)){let e=n.path.join(".");_(e,{...n});let a="Required"===n.message?`${e}: ${n.message}`:n.message;t.push(a)}N.$e.show({color:"red",message:(0,n.jsxs)(d.B,{children:[(0,n.jsx)(c.E,{size:"sm",children:(0,n.jsx)("b",{children:"Failed to create source"})}),t.map((e,a)=>(0,n.jsxs)(c.E,{size:"sm",children:["✖ ",e]},a))]})})},[_]),el=(0,l.useCallback)(()=>{E(),v(async e=>{let a=et.safeParse(e);a.error?er(a.error,"create"):O.mutate({source:e},{onSuccess:async e=>{let a=ey[e.kind];if(a&&R)for(let[t,n]of Object.entries(a)){let a=e[t];if(a)for(let{targetKind:t,targetField:r}of n){let n=R.find(e=>e.id===a);n&&n.kind===t&&!n[r]&&await q.mutateAsync({source:{...n,[r]:e.id}})}}t?.(e),N.$e.show({color:"green",message:"Source created"})},onError:e=>{N.$e.show({color:"red",message:`Failed to create source - ${e.message}`})}})})()},[E,er,et,v,O,t,R,q]),es=(0,l.useCallback)(()=>{E(),v(e=>{let t=et.safeParse(e);t.error?er(t.error,"save"):q.mutate({source:e},{onSuccess:()=>{a?.(),N.$e.show({color:"green",message:"Source updated"})},onError:()=>{N.$e.show({color:"red",message:"Failed to update source"})}})})()},[v,q,a,E,er,et]),eo=(0,s.FH)({control:j,name:"from.databaseName",defaultValue:u?.from?.databaseName||ef}),ec=(0,s.FH)({control:j,name:"connection",defaultValue:u?.connection}),{fields:ed,append:em,remove:eu}=(0,s.jz)({control:j,name:"querySettings"});return(0,n.jsxs)("div",{style:{},children:[(0,n.jsxs)(d.B,{gap:"md",mb:"md",children:[(0,n.jsx)(c.E,{mb:"lg",children:"Source Settings"}),(0,n.jsx)(eS,{label:"Name",children:(0,n.jsx)(ep.t4,{control:j,name:"name",rules:{required:"Name is required"}})}),(0,n.jsx)(eS,{label:"Source Data Type",children:(0,n.jsx)(s.xI,{control:j,name:"kind",render:({field:{onChange:e,value:a}})=>(0,n.jsx)(w.s.Group,{value:a,onChange:a=>e(a),withAsterisk:!0,children:(0,n.jsxs)(g.Y,{children:[(0,n.jsx)(w.s,{value:i.GL.Log,label:"Log"}),(0,n.jsx)(w.s,{value:i.GL.Trace,label:"Trace"}),L.Fm&&(0,n.jsx)(w.s,{value:i.GL.Metric,label:"OTEL Metrics"}),L.vN&&(0,n.jsx)(w.s,{value:i.GL.Session,label:"Session"})]})})})}),(0,n.jsx)(eS,{label:"Server Connection",children:(0,n.jsx)(U.r,{control:j,name:"connection"})}),(0,n.jsx)(eS,{label:"Database",children:(0,n.jsx)(en,{control:j,name:"from.databaseName",connectionId:ec})}),Z!==i.GL.Metric&&(0,n.jsx)(eS,{label:"Table",children:(0,n.jsx)(ei,{database:eo,control:j,name:"from.tableName",connectionId:ec,rules:{required:"Table is required"}})}),(0,n.jsxs)(eS,{label:(0,n.jsx)(S.M,{href:"https://clickhouse.com/docs/operations/settings/settings",size:"sm",target:"_blank",children:"Query Settings"}),helpText:"Query-level Session Settings that will be added to each query for this source.",children:[(0,n.jsx)(p.x,{columns:11,children:ed.map((e,a)=>(0,n.jsxs)(l.Fragment,{children:[(0,n.jsx)(p.x.Col,{span:5,pe:0,children:(0,n.jsx)(ep.t4,{placeholder:"Setting",control:j,name:`querySettings.${a}.setting`})}),(0,n.jsx)(p.x.Col,{span:5,pe:0,children:(0,n.jsx)(ep.t4,{placeholder:"Value",control:j,name:`querySettings.${a}.value`})}),(0,n.jsx)(p.x.Col,{span:1,ps:0,children:(0,n.jsx)(h.s,{align:"center",justify:"center",gap:"sm",h:"100%",children:(0,n.jsx)(b.M,{variant:"subtle",color:"gray",title:"Remove setting",onClick:()=>eu(a),children:(0,n.jsx)(A.A,{size:16})})})})]},e.id))}),(0,n.jsxs)(f.$,{variant:"secondary",size:"sm",color:"gray",mt:"md",disabled:ed.length>=10,onClick:()=>{ed.length<10&&em({setting:"",value:""})},children:[(0,n.jsx)($.A,{size:14,className:"me-2"}),"Add Setting"]})]})]}),(0,n.jsx)(eL,{control:j,setValue:y,kind:Z}),(0,n.jsxs)(g.Y,{justify:"flex-end",mt:"lg",children:[m&&(0,n.jsx)(f.$,{variant:"secondary",onClick:m,size:"xs",children:"Cancel"}),r?(0,n.jsx)(f.$,{variant:"primary",onClick:el,size:"xs",loading:O.isPending,children:"Save New Source"}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(X.A,{onDelete:()=>G.mutate({id:e??""})}),(0,n.jsx)(f.$,{variant:"primary",onClick:es,size:"xs",loading:O.isPending,children:"Save Source"})]})]})]})}},43567:(e,a,t)=>{"use strict";t.d(a,{B:()=>N});var n,r=t(6029),l=t(75155),s=t(55729),o=t(1909),i=t(88459),c=t(43517),d=t(60481),m=t(25062),u=t(78253),h=t(23935),x=t(3635),p=t(63085),b=t(34834),f=t(60665),g=t(95316),j=t(97702),y=t(6876),S=t(71781),v=t(98142),w=t(93108),C=t(92917),_=t(24207),E=((n=E||{}).Loading="loading",n.Valid="valid",n.Invalid="invalid",n);function N(e){let a,t,n,E,N,A,$,I,k,F,L,H,V,M,D,Z,O,q,G,R,B,P,K,W,Y,Q,X,U,J,ee,ea,et,en,er,el=(0,l.c)(98),{connection:es,isNew:eo,onSave:ei,onClose:ec,showCancelButton:ed,showDeleteButton:em}=e,eu=void 0!==ed&&ed,eh=void 0!==em&&em;el[0]!==es.host||el[1]!==es.hyperdxSettingPrefix||el[2]!==es.id||el[3]!==es.name||el[4]!==es.password||el[5]!==es.username?(a={defaultValues:{id:es.id,name:es.name,host:es.host,username:es.username,password:es.password,hyperdxSettingPrefix:es.hyperdxSettingPrefix}},el[0]=es.host,el[1]=es.hyperdxSettingPrefix,el[2]=es.id,el[3]=es.name,el[4]=es.password,el[5]=es.username,el[6]=a):a=el[6];let{control:ex,handleSubmit:ep,resetField:eb,getValues:ef,formState:eg}=(0,o.mN)(a),ej=(0,w.Ir)(),ey=(0,w.Zm)(),eS=(0,w.PQ)();el[7]!==es.id||el[8]!==ej||el[9]!==eo||el[10]!==ei||el[11]!==ey?(t=e=>{let a={...e,host:(0,C.KL)(e.host),hyperdxSettingPrefix:e.hyperdxSettingPrefix||null};if(eo){let{id:e,...t}=a;ej.mutate({connection:t},{onSuccess:()=>{f.$e.show({color:"green",message:"Connection created successfully"}),ei?.()},onError:T})}else ey.mutate({connection:a,id:es.id},{onSuccess:()=>{f.$e.show({color:"green",message:"Connection updated successfully"}),ei?.()},onError:z})},el[7]=es.id,el[8]=ej,el[9]=eo,el[10]=ei,el[11]=ey,el[12]=t):t=el[12];let ev=t,[ew,eC]=(0,s.useState)(!1),[e_,eE]=(0,s.useState)(!1);el[13]!==ef?(n={getValues:ef},el[13]=ef,el[14]=n):n=el[14];let{testConnectionState:eN,handleTestConnection:ez}=function({getValues:e}){let a=y.Ay.useTestConnection(),[t,n]=(0,s.useState)(null),r=(0,s.useCallback)(async()=>{let r=e("host"),l=e("username"),s=e("password"),o=(0,C.KL)(r);if(!t){if(n("loading"),v.VO)try{await (0,i.Kc)({host:o,username:l,password:s})?n("valid"):(n("invalid"),f.$e.show({color:"red",message:"Connection test failed",autoClose:5e3}))}catch(e){console.error(e),n("invalid"),f.$e.show({color:"red",message:e.message,autoClose:5e3})}else try{let e=await a.mutateAsync({host:o,username:l,password:s});e.success?n("valid"):(n("invalid"),f.$e.show({color:"red",message:e.error||"Connection test failed",autoClose:5e3}))}catch(a){let e=await a.response?.json();n("invalid"),f.$e.show({color:"red",message:e?.error??"Failed to test connection",autoClose:5e3})}setTimeout(()=>{n(null)},2e3)}},[e,a,t]);return{testConnectionState:t,handleTestConnection:r}}(n);el[15]!==ep||el[16]!==ev?(E=e=>{e.preventDefault(),ep(e=>{ev(e)})()},el[15]=ep,el[16]=ev,el[17]=E):E=el[17],el[18]===Symbol.for("react.memo_cache_sentinel")?(N=(0,r.jsx)(c.E,{size:"xs",mb:"xs",children:"Connection Name"}),el[18]=N):N=el[18],el[19]===Symbol.for("react.memo_cache_sentinel")?(A={required:"Connection name is required"},el[19]=A):A=el[19],el[20]!==ex?($=(0,r.jsxs)(d.a,{children:[N,(0,r.jsx)(S.t4,{"data-testid":"connection-name-input",name:"name",control:ex,placeholder:"My Clickhouse Server",rules:A})]}),el[20]=ex,el[21]=$):$=el[21],el[22]===Symbol.for("react.memo_cache_sentinel")?(I=(0,r.jsx)(c.E,{size:"xs",mb:"xs",children:"Host"}),el[22]=I):I=el[22],el[23]===Symbol.for("react.memo_cache_sentinel")?(k={required:"Host is required"},el[23]=k):k=el[23],el[24]!==ex?(F=(0,r.jsxs)(d.a,{children:[I,(0,r.jsx)(S.t4,{"data-testid":"connection-host-input",name:"host",control:ex,placeholder:"http://localhost:8123",rules:k})]}),el[24]=ex,el[25]=F):F=el[25],el[26]===Symbol.for("react.memo_cache_sentinel")?(L=(0,r.jsx)(c.E,{size:"xs",mb:"xs",children:"Username"}),el[26]=L):L=el[26],el[27]!==ex?(H=(0,r.jsxs)(d.a,{children:[L,(0,r.jsx)(S.t4,{"data-testid":"connection-username-input",name:"username",control:ex,placeholder:"Username (default: default)"})]}),el[27]=ex,el[28]=H):H=el[28],el[29]===Symbol.for("react.memo_cache_sentinel")?(V=(0,r.jsx)(c.E,{size:"xs",mb:"xs",children:"Password"}),el[29]=V):V=el[29],el[30]!==eo||el[31]!==ew?(M=!ew&&!eo&&(0,r.jsx)(m.$,{"data-testid":"update-password-button",variant:"secondary",onClick:()=>{eC(!0)},children:"Update Password"}),el[30]=eo,el[31]=ew,el[32]=M):M=el[32],el[33]!==ex||el[34]!==eo||el[35]!==eb||el[36]!==ew?(D=(ew||eo)&&(0,r.jsxs)(u.s,{align:"center",gap:"sm",children:[(0,r.jsx)(S.aJ,{"data-testid":"connection-password-input",style:{flexGrow:1},name:"password",control:ex,placeholder:"Password (default: blank)"}),!eo&&(0,r.jsx)(m.$,{"data-testid":"cancel-password-button",variant:"secondary",onClick:()=>{eC(!1),eb("password")},children:"Cancel"})]}),el[33]=ex,el[34]=eo,el[35]=eb,el[36]=ew,el[37]=D):D=el[37],el[38]!==M||el[39]!==D?(Z=(0,r.jsxs)(d.a,{children:[V,M,D]}),el[38]=M,el[39]=D,el[40]=Z):Z=el[40],el[41]!==e_?(O=!e_&&(0,r.jsx)(h.M,{underline:"always",onClick:()=>eE(!0),size:"xs",children:(0,r.jsxs)(x.Y,{gap:"xs",children:[(0,r.jsx)(g.A,{size:14}),"Advanced Settings"]})}),el[41]=e_,el[42]=O):O=el[42],el[43]!==e_?(q=e_&&(0,r.jsx)(m.$,{onClick:()=>eE(!1),size:"xs",variant:"subtle",children:"Hide Advanced Settings"}),el[43]=e_,el[44]=q):q=el[44],el[45]!==O||el[46]!==q?(G=(0,r.jsxs)(d.a,{children:[O,q]}),el[45]=O,el[46]=q,el[47]=G):G=el[47];let eT=e_?"block":"none";el[48]!==eT?(R={display:eT},el[48]=eT,el[49]=R):R=el[49],el[50]===Symbol.for("react.memo_cache_sentinel")?(B=(0,r.jsx)(c.E,{size:"xs",children:"Query Log Setting Prefix"}),el[50]=B):B=el[50],el[51]===Symbol.for("react.memo_cache_sentinel")?(P=(0,r.jsxs)(x.Y,{gap:"xs",mb:"xs",children:[B,(0,r.jsx)(p.m,{label:"Tracks query origins by adding the current user's email to ClickHouse queries (as {prefix}_user in system.query_log). Requires 'custom_settings_prefixes' in your ClickHouse config.xml to include this exact value, otherwise queries will be rejected.",color:"dark",c:"white",multiline:!0,maw:400,children:(0,r.jsx)(j.A,{size:16,className:"cursor-pointer"})})]}),el[51]=P):P=el[51],el[52]!==ex?(K=(0,r.jsx)(S.t4,{"data-testid":"connection-setting-prefix-input",name:"hyperdxSettingPrefix",control:ex,placeholder:"hyperdx"}),el[52]=ex,el[53]=K):K=el[53],el[54]!==R||el[55]!==K?(W=(0,r.jsxs)(d.a,{style:R,children:[P,K]}),el[54]=R,el[55]=K,el[56]=W):W=el[56];let eA=!eg.isValid,e$="invalid"===eN?"danger":"secondary",eI="loading"===eN;el[57]!==eN?(Y="valid"===eN?(0,r.jsx)(r.Fragment,{children:"Connection successful"}):"invalid"===eN?(0,r.jsx)(r.Fragment,{children:"Unable to connect"}):"Test Connection",el[57]=eN,el[58]=Y):Y=el[58],el[59]!==ez||el[60]!==eA||el[61]!==e$||el[62]!==eI||el[63]!==Y?(Q=(0,r.jsx)(m.$,{disabled:eA,variant:e$,type:"button",onClick:ez,loading:eI,children:Y}),el[59]=ez,el[60]=eA,el[61]=e$,el[62]=eI,el[63]=Y,el[64]=Q):Q=el[64],el[65]!==eo||el[66]!==Q?(X=(0,r.jsx)(p.m,{label:"\uD83D\uDD12 Password re-entry required for security",position:"right",disabled:eo,withArrow:!0,children:Q}),el[65]=eo,el[66]=Q,el[67]=X):X=el[67],el[68]!==ec||el[69]!==eu?(U=ec&&eu&&(0,r.jsx)(m.$,{variant:"secondary",onClick:ec,children:"Cancel"}),el[68]=ec,el[69]=eu,el[70]=U):U=el[70],el[71]!==es.id||el[72]!==eS||el[73]!==eo||el[74]!==ec||el[75]!==eh?(J=!eo&&!1!==eh&&(0,r.jsx)(_.A,{onDelete:()=>eS.mutate({id:es.id},{onSuccess:()=>{ec?.()}})}),el[71]=es.id,el[72]=eS,el[73]=eo,el[74]=ec,el[75]=eh,el[76]=J):J=el[76];let ek=eo?ej.isPending:ey.isPending,eF=eo?"Create":"Save";return el[77]!==ek||el[78]!==eF?(ee=(0,r.jsxs)(m.$,{"data-testid":"connection-save-button",variant:"primary",type:"submit",loading:ek,children:[eF," Connection"]}),el[77]=ek,el[78]=eF,el[79]=ee):ee=el[79],el[80]!==U||el[81]!==J||el[82]!==ee?(ea=(0,r.jsxs)(x.Y,{gap:"xs",children:[U,J,ee]}),el[80]=U,el[81]=J,el[82]=ee,el[83]=ea):ea=el[83],el[84]!==X||el[85]!==ea?(et=(0,r.jsxs)(x.Y,{justify:"space-between",children:[X,ea]}),el[84]=X,el[85]=ea,el[86]=et):et=el[86],el[87]!==F||el[88]!==H||el[89]!==Z||el[90]!==G||el[91]!==W||el[92]!==et||el[93]!==$?(en=(0,r.jsxs)(b.B,{gap:"md",children:[$,F,H,Z,G,W,et]}),el[87]=F,el[88]=H,el[89]=Z,el[90]=G,el[91]=W,el[92]=et,el[93]=$,el[94]=en):en=el[94],el[95]!==en||el[96]!==E?(er=(0,r.jsx)("form",{"data-testid":"connection-form",onSubmit:E,children:en}),el[95]=en,el[96]=E,el[97]=er):er=el[97],er}function z(){f.$e.show({color:"red",message:"Error updating connection, please check the host and credentials and try again.",autoClose:5e3})}function T(){f.$e.show({color:"red",message:"Error creating connection, please check the host and credentials and try again.",autoClose:5e3})}},46466:(e,a,t)=>{"use strict";t.d(a,{Z:()=>N});var n=t(6029),r=t(75155),l=t(55729),s=t(75828),o=t.n(s),i=t(1909),c=t(66692),d=t(95516),m=t(15215),u=t(36417),h=t(22623),x=t(43517),p=t(63085),b=t(78253),f=t(67747),g=t(95352),j=t(78550),y=t(92917),S=t(74860),v=t(71470),w=t.n(v);let C="150px",_={lineNumbers:!1,foldGutter:!1,highlightActiveLine:!1,highlightActiveLineGutter:!1};function E({tableConnection:e,tableConnections:a,filterField:t,onChange:r,placeholder:s,onLanguageChange:i,language:v,onSubmit:E,error:N,value:z,size:T,label:A,disableKeywordAutocomplete:$,enableHotkey:I,tooltipText:k,additionalSuggestions:F=[],queryHistoryType:L,parentRef:H,allowMultiline:V=!0}){let{colorScheme:M}=(0,u.C)(),{data:D}=(0,j.Sh)((e?[e]:a)??[]),Z=(0,l.useMemo)(()=>t?D?.filter(t):D,[D,t]),[O,q]=(0,y.mk)(L),G=(0,l.useCallback)((e,a,t,n)=>{e.dispatch({changes:{from:a,to:t,insert:n}}),(0,d.N)(e),q(n),E&&E()},[E,q]),R=(0,l.useMemo)(()=>()=>({from:0,options:O.map(e=>({label:e,section:"Search History",type:"keyword",apply:(a,t,n,r)=>{G(a,n,r,e)}}))}),[O,G]),[B,P]=(0,l.useState)(!1),K=(0,l.useRef)(null),W=(0,l.useRef)(new g.xx),Y=(0,l.useCallback)(e=>{let a=e.state.doc.toString(),t=[...Z?.map(e=>e.path.length>1?`${e.path[0]}['${e.path[1]}']`:e.path[0])??[],...F],n=(0,m.ll)({dialect:m.fy.define({keywords:t.join(" ")+($?"":" AND OR NOT IN LIKE ILIKE BETWEEN ASC DESC intDiv intDivOrZero isNaN moduloOrZero abs empty notEmpty length arrayConcat has hasAll hasAny indexOf arrayCount countEqual arrayUnion arrayIntersect arrayMap arrayFilter arraySort flatten arrayCompact arrayMin arrayMax arraySum arrayAvg if multiIf floor ceiling truncate round timestamp toTimeZone toYear toMonth toWeek toDayOfYear toDayOfMonth toDayOfWeek toUnixTimestamp toTime lower upper substring trim dictGet dictGetOrDefault dictGetOrNull")})}),r=(0,d.yU)({compareCompletions:(e,a)=>0,override:[R]});e.dispatch({effects:W.current.reconfigure(a.length>0?n:r)})},[Z,F,R,$]);(0,l.useEffect)(()=>{null!=K.current&&null!=K.current.view&&Y(K.current.view)},[Y]),(0,c.vC)(["/","s"],()=>{I&&K.current?.view?.focus()},{preventDefault:!0,enableOnFormTags:!1,enableOnContentEditable:!1},[I]);let Q=(0,l.useMemo)(()=>null==H?[]:[(0,g.vX)({parent:H,tooltipSpace:e=>{let a=e.dom.getBoundingClientRect(),t=H.getBoundingClientRect();return{...a,right:a.right??0,left:t.left??a.left,top:t.top??a.top,bottom:t.bottom??a.bottom}}})],[H]),X=(0,l.useMemo)(()=>[...Q,g.Lz.baseTheme({"&.cm-editor.cm-focused":{outline:"0px solid transparent"},"&.cm-editor":{background:"transparent !important"},".cm-editor-multiline &.cm-editor":{maxHeight:C},"& .cm-tooltip-autocomplete":{whiteSpace:"nowrap",wordWrap:"break-word",maxWidth:"100%",backgroundColor:"var(--color-bg-surface) !important",border:"1px solid var(--color-border) !important",borderRadius:"8px",boxShadow:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",padding:"4px"},"& .cm-tooltip-autocomplete > ul":{fontFamily:"inherit",maxHeight:"300px"},"& .cm-tooltip-autocomplete > ul > li":{padding:"4px 8px",borderRadius:"4px",cursor:"pointer",color:"var(--color-text)"},"& .cm-tooltip-autocomplete > ul > li[aria-selected]":{backgroundColor:"var(--color-bg-highlighted) !important",color:"var(--color-text-muted) !important"},"& .cm-tooltip-autocomplete .cm-completionLabel":{color:"var(--color-text)"},"& .cm-tooltip-autocomplete .cm-completionDetail":{color:"var(--color-text-muted)",fontStyle:"normal",marginLeft:"8px"},"& .cm-tooltip-autocomplete .cm-completionInfo":{backgroundColor:"var(--color-bg-field)",border:"1px solid var(--color-border)",borderRadius:"4px",padding:"8px",color:"var(--color-text)"},"& .cm-completionIcon":{width:"16px",marginRight:"6px",opacity:.7},"& .cm-scroller":{overflowX:"hidden"},".cm-editor-multiline & .cm-scroller":{maxHeight:C,overflowY:"auto"}}),...V?[g.Lz.lineWrapping]:[],W.current.of((0,m.ll)({upperCaseKeywords:!0})),g.Nb.highest(g.w4.of([{key:"Enter",run:e=>null!=E&&(L&&K?.current?.view&&q(K?.current?.view.state.doc.toString()),E(),!0)},...V?[{key:"Shift-Enter",run:()=>!1}]:[]])),g.w4.of([{key:"Tab",run:d.$w}])],[V,E,L,q,Q]),U=(0,l.useCallback)(()=>{K?.current?.view&&(0,d.rB)(K.current.view)},[]),J=V&&B;return(0,n.jsxs)("div",{className:w().wrapper,style:{"--editor-base-height":`${"xs"===T?32:36}px`},"data-expanded":J?"true":void 0,children:[J&&(0,n.jsx)("div",{className:w().placeholder,"aria-hidden":"true"}),(0,n.jsxs)(h.t,{shadow:"none",className:o()(w().paper,N?w().error:void 0,J?w().expanded:void 0,V&&!J?w().collapseFade:void 0),ps:"4px",children:[null!=A&&(0,n.jsx)(x.E,{mx:"4px",size:"xs",fw:"bold",className:o()(w().label,"xs"===T?w().sizeXs:void 0),component:"div",children:(0,n.jsx)(p.m,{label:k,disabled:!k,children:(0,n.jsxs)(b.s,{align:"center",gap:2,children:[A,k&&(0,n.jsx)(f.A,{size:16})]})})}),(0,n.jsx)("div",{className:o()(w().cmWrapper,"xs"===T?w().sizeXs:void 0,J?void 0:w().collapsed,J?"cm-editor-multiline":void 0),children:(0,n.jsx)(g.Ay,{indentWithTab:!1,ref:K,value:z,onChange:r,theme:"dark"===M?"dark":"light",onFocus:(0,l.useCallback)(()=>{P(!0)},[P]),onBlur:(0,l.useCallback)(()=>{P(!1)},[P]),extensions:X,onCreateEditor:Y,basicSetup:_,placeholder:s,onClick:U})}),null!=i&&null!=v&&(0,n.jsx)("div",{className:w().languageSwitchWrapper,children:(0,n.jsx)(S.A,{language:v,onLanguageChange:i})})]})]})}let N=(0,l.memo)(function(e){let a,t,l,s,o,c,d=(0,r.c)(15);d[0]!==e?({placeholder:l,filterField:t,additionalSuggestions:a,queryHistoryType:o,...s}=e,d[0]=e,d[1]=a,d[2]=t,d[3]=l,d[4]=s,d[5]=o):(a=d[1],t=d[2],l=d[3],s=d[4],o=d[5]);let{field:m,fieldState:u}=(0,i.as)(s),h=m.value||s.defaultValue,x="";"string"==typeof h?x=h:void 0!==h&&console.error("SQLInlineEditor: value is not a string",h);let p=u.error?.message;return d[6]!==a||d[7]!==m.onChange||d[8]!==t||d[9]!==l||d[10]!==s||d[11]!==o||d[12]!==x||d[13]!==p?(c=(0,n.jsx)(E,{filterField:t,onChange:m.onChange,placeholder:l,value:x,error:p,additionalSuggestions:a,queryHistoryType:o,...s}),d[6]=a,d[7]=m.onChange,d[8]=t,d[9]=l,d[10]=s,d[11]=o,d[12]=x,d[13]=p,d[14]=c):c=d[14],c})},54970:(e,a,t)=>{"use strict";t.d(a,{v:()=>k});var n=t(6029),r=t(75155),l=t(55729),s=t(82641),o=t(62801),i=t(78253),c=t(94720),d=t(43517),m=t(25062),u=t(39603),h=t(92556),x=t(3635),p=t(76013),b=t(60481),f=t(92789),g=t(34834),j=t(28797),y=t(94502),S=t(17283),v=t(91758),w=t(58333),C=t(23474),_=t(23195),E=t(98142),N=t(93108),z=t(81973),T=t(92917),A=t(24314),$=t(76326),I=t.n($);function k(e){let a,t,$,k,F,L,H,V,M=(0,r.c)(53),{onAddSource:D,withCard:Z,withBorder:O,cardClassName:q,variant:G,showEmptyState:R}=e,B=void 0===Z||Z,P=void 0===O||O,K=void 0===G?"compact":G,W=void 0===R||R,{data:Y,isLoading:Q,error:X,refetch:U}=(0,N.ZY)(),{data:J,isLoading:ee,error:ea,refetch:et}=(0,z.oE)(),[en,er]=(0,l.useState)(null),[el,es]=(0,l.useState)(!1),eo=X||ea;M[0]!==U||M[1]!==et?(a=()=>{U(),et()},M[0]=U,M[1]=et,M[2]=a):a=M[2];let ei=a,ec="compact"===K?"sm":"md",ed="compact"===K?"xs":"sm",em="compact"===K?11:14,eu="compact"===K?"xs":"sm",eh=B?o.Z:l.Fragment;M[3]!==q||M[4]!==P||M[5]!==B?(t=B?{withBorder:P,p:"md",radius:"sm",className:q??I().sourcesCard}:{},M[3]=q,M[4]=P,M[5]=B,M[6]=t):t=M[6];let ex=t;if(Q||ee){let e,a;return M[7]===Symbol.for("react.memo_cache_sentinel")?(e=(0,n.jsxs)(i.s,{justify:"center",align:"center",py:"xl",children:[(0,n.jsx)(c.a,{size:"sm"}),(0,n.jsx)(d.E,{size:"sm",c:"dimmed",ml:"sm",children:"Loading sources..."})]}),M[7]=e):e=M[7],M[8]!==eh||M[9]!==ex?(a=(0,n.jsx)(eh,{...ex,children:e}),M[8]=eh,M[9]=ex,M[10]=a):a=M[10],a}if(eo){let e,a,t,r,l,s;M[11]===Symbol.for("react.memo_cache_sentinel")?(e=(0,n.jsx)(j.A,{size:16}),M[11]=e):e=M[11];let o=eo instanceof Error?eo.message:"An error occurred while loading data sources.";return M[12]!==o?(a=(0,n.jsx)(d.E,{size:"sm",mb:"sm",children:o}),M[12]=o,M[13]=a):a=M[13],M[14]===Symbol.for("react.memo_cache_sentinel")?(t=(0,n.jsx)(y.A,{size:14}),M[14]=t):t=M[14],M[15]!==ei?(r=(0,n.jsx)(m.$,{size:"xs",variant:"danger",leftSection:t,onClick:ei,children:"Retry"}),M[15]=ei,M[16]=r):r=M[16],M[17]!==r||M[18]!==a?(l=(0,n.jsxs)(u.F,{icon:e,title:"Failed to load sources",color:"red",variant:"light",children:[a,r]}),M[17]=r,M[18]=a,M[19]=l):l=M[19],M[20]!==eh||M[21]!==l||M[22]!==ex?(s=(0,n.jsx)(eh,{...ex,children:l}),M[20]=eh,M[21]=l,M[22]=ex,M[23]=s):s=M[23],s}let ep=!J||0===J.length;return M[24]!==el||M[25]!==ep||M[26]!==W?($=ep&&!el&&W&&(0,n.jsxs)(i.s,{direction:"column",align:"center",py:"xl",gap:"sm",children:[(0,n.jsx)(S.A,{size:32,color:"var(--color-text-muted)"}),(0,n.jsx)(h.h,{size:"sm",ta:"center",c:"var(--color-text-muted)",children:"No data sources configured yet."}),(0,n.jsx)(d.E,{size:"xs",ta:"center",c:"var(--color-text-muted)",children:"Add a source to start querying your data."})]}),M[24]=el,M[25]=ep,M[26]=W,M[27]=$):$=M[27],M[28]!==eu||M[29]!==Y||M[30]!==en||M[31]!==em||M[32]!==J||M[33]!==ed||M[34]!==ec?(k=J?.map((e,a)=>(0,n.jsxs)(l.Fragment,{children:[(0,n.jsxs)(i.s,{justify:"space-between",align:"center",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)(d.E,{size:ec,fw:500,children:e.name}),(0,n.jsx)(d.E,{size:ed,c:"dimmed",mt:4,children:(0,n.jsxs)(x.Y,{gap:"xs",children:[(0,T.Zr)(e.kind),(0,n.jsxs)(x.Y,{gap:4,children:[(0,n.jsx)(v.A,{size:em}),Y?.find(a=>a.id===e.connection)?.name]}),(0,n.jsx)(x.Y,{gap:4,children:e.from&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(S.A,{size:em}),e.from.databaseName,e.kind===s.GL.Metric?"":".",e.from.tableName]})})]})})]}),(0,n.jsx)(p.M,{variant:"secondary",size:eu,onClick:()=>er(en===e.id?null:e.id),children:en===e.id?(0,n.jsx)(w.A,{size:em+2}):(0,n.jsx)(C.A,{size:em+2})})]}),en===e.id&&(0,n.jsx)(b.a,{mt:"xs",children:(0,n.jsx)(A.Eb,{sourceId:e.id,onSave:()=>er(null)})}),a<(J?.length??0)-1&&(0,n.jsx)(f.c,{})]},e.id)),M[28]=eu,M[29]=Y,M[30]=en,M[31]=em,M[32]=J,M[33]=ed,M[34]=ec,M[35]=k):k=M[35],M[36]!==el||M[37]!==J?(F=el&&(0,n.jsxs)(n.Fragment,{children:[J&&J.length>0&&(0,n.jsx)(f.c,{}),(0,n.jsx)(A.Eb,{isNew:!0,onCreate:()=>es(!1),onCancel:()=>es(!1)})]}),M[36]=el,M[37]=J,M[38]=F):F=M[38],M[39]!==eu||M[40]!==el||M[41]!==D||M[42]!==J?(L=!E.VO&&!el&&(0,n.jsx)(i.s,{justify:"flex-end",pt:J&&J.length>0?"md":0,children:(0,n.jsx)(m.$,{variant:"secondary",size:eu,leftSection:(0,n.jsx)(_.A,{size:14}),onClick:()=>{es(!0),D?.()},children:"Add source"})}),M[39]=eu,M[40]=el,M[41]=D,M[42]=J,M[43]=L):L=M[43],M[44]!==L||M[45]!==$||M[46]!==k||M[47]!==F?(H=(0,n.jsxs)(g.B,{gap:"md",children:[$,k,F,L]}),M[44]=L,M[45]=$,M[46]=k,M[47]=F,M[48]=H):H=M[48],M[49]!==eh||M[50]!==H||M[51]!==ex?(V=(0,n.jsx)(eh,{...ex,children:H}),M[49]=eh,M[50]=H,M[51]=ex,M[52]=V):V=M[52],V}},62453:(e,a,t)=>{"use strict";t.d(a,{r:()=>i});var n=t(6029),r=t(75155),l=t(91758),s=t(9211),o=t(93108);function i(e){let a,t,i,d,m,u,h=(0,r.c)(11);h[0]!==e?({size:t,...a}=e,h[0]=e,h[1]=a,h[2]=t):(a=h[1],t=h[2]);let{data:x}=(0,o.ZY)();h[3]!==x?(i=x?.map(c),h[3]=x,h[4]=i):i=h[4];let p=i;return h[5]===Symbol.for("react.memo_cache_sentinel")?(d={withinPortal:!1},h[5]=d):d=h[5],h[6]===Symbol.for("react.memo_cache_sentinel")?(m=(0,n.jsx)(l.A,{size:16}),h[6]=m):m=h[6],h[7]!==a||h[8]!==t||h[9]!==p?(u=(0,n.jsx)(s.A,{...a,allowDeselect:!1,data:p,comboboxProps:d,searchable:!0,placeholder:"Connection",leftSection:m,maxDropdownHeight:280,size:t}),h[7]=a,h[8]=t,h[9]=p,h[10]=u):u=h[10],u}function c(e){return{value:e.id,label:e.name}}},71470:e=>{e.exports={wrapper:"SQLInlineEditor_wrapper__pT7MN",placeholder:"SQLInlineEditor_placeholder__Lx1ui",paper:"SQLInlineEditor_paper__Gtsf3",error:"SQLInlineEditor_error__RXa7x",expanded:"SQLInlineEditor_expanded__yWAQc",label:"SQLInlineEditor_label__shxMn",sizeXs:"SQLInlineEditor_sizeXs__ianH0",cmWrapper:"SQLInlineEditor_cmWrapper__u4wLo",collapsed:"SQLInlineEditor_collapsed__9rkFt",languageSwitchWrapper:"SQLInlineEditor_languageSwitchWrapper__gsIbr",collapseFade:"SQLInlineEditor_collapseFade__3N8c7"}},71781:(e,a,t)=>{"use strict";t.d(a,{M7:()=>d,aJ:()=>u,mh:()=>h,t4:()=>m});var n=t(6029),r=t(75155);t(55729);var l=t(1909),s=t(59029),o=t(96061),i=t(45544),c=t(47268);function d(e){let a,t,o,i,c,d,m=(0,r.c)(12);return m[0]!==e?({name:t,control:a,rules:i,...o}=e,m[0]=e,m[1]=a,m[2]=t,m[3]=o,m[4]=i):(a=m[1],t=m[2],o=m[3],i=m[4]),m[5]!==o?(c=e=>{let{field:a,fieldState:t}=e,{error:r}=t;return(0,n.jsx)(s.k,{...o,...a,error:r?.message})},m[5]=o,m[6]=c):c=m[6],m[7]!==a||m[8]!==t||m[9]!==i||m[10]!==c?(d=(0,n.jsx)(l.xI,{name:t,control:a,rules:i,render:c}),m[7]=a,m[8]=t,m[9]=i,m[10]=c,m[11]=d):d=m[11],d}function m(e){let a,t,s,i,c,d,m=(0,r.c)(12);return m[0]!==e?({name:t,control:a,rules:i,...s}=e,m[0]=e,m[1]=a,m[2]=t,m[3]=s,m[4]=i):(a=m[1],t=m[2],s=m[3],i=m[4]),m[5]!==s?(c=e=>{let{field:a,fieldState:t}=e,{error:r}=t;return(0,n.jsx)(o.p,{...s,...a,error:r?.message})},m[5]=s,m[6]=c):c=m[6],m[7]!==a||m[8]!==t||m[9]!==i||m[10]!==c?(d=(0,n.jsx)(l.xI,{name:t,control:a,rules:i,render:c}),m[7]=a,m[8]=t,m[9]=i,m[10]=c,m[11]=d):d=m[11],d}function u(e){let a,t,s,o,c,d,m=(0,r.c)(12);return m[0]!==e?({name:t,control:a,rules:o,...s}=e,m[0]=e,m[1]=a,m[2]=t,m[3]=s,m[4]=o):(a=m[1],t=m[2],s=m[3],o=m[4]),m[5]!==s?(c=e=>{let{field:a,fieldState:t}=e,{error:r}=t;return(0,n.jsx)(i.y,{...s,...a,error:r?.message})},m[5]=s,m[6]=c):c=m[6],m[7]!==a||m[8]!==t||m[9]!==o||m[10]!==c?(d=(0,n.jsx)(l.xI,{name:t,control:a,rules:o,render:c}),m[7]=a,m[8]=t,m[9]=o,m[10]=c,m[11]=d):d=m[11],d}function h(e){let a,t,s,o,i,d,m=(0,r.c)(12);return m[0]!==e?({name:t,control:a,rules:o,...s}=e,m[0]=e,m[1]=a,m[2]=t,m[3]=s,m[4]=o):(a=m[1],t=m[2],s=m[3],o=m[4]),m[5]!==s?(i=e=>{let{field:a,fieldState:t}=e,{value:r,...l}=a,{error:o}=t;return(0,n.jsx)(c.S,{...s,...l,checked:r,error:o?.message})},m[5]=s,m[6]=i):i=m[6],m[7]!==a||m[8]!==t||m[9]!==o||m[10]!==i?(d=(0,n.jsx)(l.xI,{name:t,control:a,rules:o,render:i}),m[7]=a,m[8]=t,m[9]=o,m[10]=i,m[11]=d):d=m[11],d}},74860:(e,a,t)=>{"use strict";t.d(a,{A:()=>i});var n=t(6029),r=t(75155),l=t(38206),s=t(23474);let o=[{value:"sql",label:"SQL"},{value:"lucene",label:"Lucene"}];function i(e){let a,t,i,c,d=(0,r.c)(7),{language:m,onLanguageChange:u}=e;return d[0]!==u?(a=e=>{("sql"===e||"lucene"===e)&&u(e)},d[0]=u,d[1]=a):a=d[1],d[2]===Symbol.for("react.memo_cache_sentinel")?(t=(0,n.jsx)(s.A,{size:14}),i={input:{border:"none",background:"transparent",minHeight:28,fontWeight:500},dropdown:{minWidth:96}},d[2]=t,d[3]=i):(t=d[2],i=d[3]),d[4]!==m||d[5]!==a?(c=(0,n.jsx)(l.l,{size:"xs",value:m,onChange:a,data:o,w:80,rightSection:t,styles:i,"aria-label":"Query language"}),d[4]=m,d[5]=a,d[6]=c):c=d[6],c}},76326:e=>{e.exports={sourcesCard:"Sources_sourcesCard__m5aMQ"}},86761:(e,a,t)=>{"use strict";t.d(a,{A:()=>j});var n=t(6029),r=t(75155),l=t(55729),s=t(82641),o=t(43517),i=t(63085),c=t(22623),d=t(27166),m=t(64488),u=t(6620),h=t(94502),x=t(78550),p=t(88339);let b=e=>{let a,t,l,s=(0,r.c)(11),{onClick:c,isEnabled:d,tableCount:m,iconStyles:h,variant:x}=e,p=void 0===x?"icon":x,b=d?m>1?"Show Table Schemas":"Show Table Schema":"Select a table to view its schema";return s[0]!==d||s[1]!==c?(a=()=>d&&c(),s[0]=d,s[1]=c,s[2]=a):a=s[2],s[3]!==h||s[4]!==d||s[5]!==p?(t="text"===p?(0,n.jsx)(o.E,{fw:500,size:"xs",className:"text-sucess-hover",style:{cursor:d?"pointer":"default",...h},children:"Schema"}):(0,n.jsx)(u.A,{size:16}),s[3]=h,s[4]=d,s[5]=p,s[6]=t):t=s[6],s[7]!==a||s[8]!==t||s[9]!==b?(l=(0,n.jsx)(i.m,{label:b,color:"dark",position:"right",onClick:a,children:t}),s[7]=a,s[8]=t,s[9]=b,s[10]=l):l=s[10],l},f=e=>{let a,t,l,s=(0,r.c)(8),{databaseName:o,tableName:i,connectionId:d}=e;s[0]!==d||s[1]!==o||s[2]!==i?(a={databaseName:o,tableName:i,connectionId:d},s[0]=d,s[1]=o,s[2]=i,s[3]=a):a=s[3];let{data:m,isLoading:u}=(0,x.Z2)(a);return s[4]===Symbol.for("react.memo_cache_sentinel")?(t={overflow:"hidden"},s[4]=t):t=s[4],s[5]!==m?.create_table_query||s[6]!==u?(l=(0,n.jsx)(c.t,{flex:"auto",shadow:"none",radius:"sm",p:"xs",style:t,children:u?(0,n.jsx)("div",{className:"d-inline-block",children:(0,n.jsx)(h.A,{className:"spin-animate"})}):(0,n.jsx)(p.V,{data:m?.create_table_query??"Schema is not available",enableCopy:!!m?.create_table_query,copyButtonSize:"xs"})}),s[5]=m?.create_table_query,s[6]=u,s[7]=l):l=s[7],l},g={[s.SX.Sum]:"Sum",[s.SX.Gauge]:"Gauge",[s.SX.Histogram]:"Histogram",[s.SX.Summary]:"Summary",[s.SX.ExponentialHistogram]:"Exponential Histogram"},j=e=>{let a,t,o,i,c,u=(0,r.c)(34),{source:h,iconStyles:x,variant:p}=e,f=void 0===p?"icon":p,[j,w]=(0,l.useState)(!1),C=h?.kind==="metric";if(u[0]!==C||u[1]!==h){let e,t;if(a=[],h&&C){let e,t,n;u[3]===Symbol.for("react.memo_cache_sentinel")?(e=Object.values(s.SX),u[3]=e):e=u[3],u[4]!==h?(t=e.map(e=>({metricType:e,tableName:h.metricTables?.[e]})).filter(y),u[4]=h,u[5]=t):t=u[5],u[6]!==h||u[7]!==t?(n=t.map(e=>{let{metricType:a,tableName:t}=e;return{databaseName:h.from.databaseName,tableName:t,connectionId:h.connection,title:g[a]}}),u[6]=h,u[7]=t,u[8]=n):n=u[8],a.push(...n)}else if(h&&h.from.tableName){let e,t=h.name??h.from.tableName;u[9]!==h.connection||u[10]!==h.from.databaseName||u[11]!==h.from.tableName||u[12]!==t?(e={databaseName:h.from.databaseName,tableName:h.from.tableName,connectionId:h.connection,title:t},u[9]=h.connection,u[10]=h.from.databaseName,u[11]=h.from.tableName,u[12]=t,u[13]=e):e=u[13],a.push(e)}u[14]!==h?.materializedViews?(e=h?.materializedViews??[],u[14]=h?.materializedViews,u[15]=e):e=u[15];let n=e;if(u[16]!==n||u[17]!==h){let e;u[19]!==h?(e=e=>{let{tableName:a,databaseName:t}=e;return{databaseName:t,tableName:a,connectionId:h.connection,title:`${a} (MV)`}},u[19]=h,u[20]=e):e=u[20],t=n.map(e),u[16]=n,u[17]=h,u[18]=t}else t=u[18];a.push(...t),u[0]=C,u[1]=h,u[2]=a}else a=u[2];let _=!!h&&a.length>0;return u[21]===Symbol.for("react.memo_cache_sentinel")?(t=()=>w(!0),u[21]=t):t=u[21],u[22]!==x||u[23]!==_||u[24]!==a.length||u[25]!==f?(o=(0,n.jsx)(b,{isEnabled:_,onClick:t,iconStyles:x,tableCount:a.length,variant:f}),u[22]=x,u[23]=_,u[24]=a.length,u[25]=f,u[26]=o):o=u[26],u[27]!==_||u[28]!==j||u[29]!==a?(i=_&&(0,n.jsx)(d.a,{opened:j,onClose:()=>w(!1),size:"auto",title:a.length>1?"Table Schemas":"Table Schema",children:(0,n.jsxs)(m.t,{defaultValue:`${a[0]?.databaseName}.${a[0]?.tableName}.${a[0]?.title}`,children:[(0,n.jsx)(m.t.List,{children:a.map(S)}),a.map(v)]})}),u[27]=_,u[28]=j,u[29]=a,u[30]=i):i=u[30],u[31]!==o||u[32]!==i?(c=(0,n.jsxs)(n.Fragment,{children:[o,i]}),u[31]=o,u[32]=i,u[33]=c):c=u[33],c};function y(e){let{tableName:a}=e;return!!a}function S(e){return(0,n.jsx)(m.t.Tab,{value:`${e.databaseName}.${e.tableName}.${e.title}`,children:e.title},`${e.databaseName}.${e.tableName}.${e.title}`)}function v(e){return(0,n.jsx)(m.t.Panel,{value:`${e.databaseName}.${e.tableName}.${e.title}`,pt:"sm",children:(0,n.jsx)(f,{...e})},`${e.databaseName}.${e.tableName}.${e.title}`)}}}]); \ No newline at end of file diff --git a/out/_next/static/chunks/3172-b6490fb55ce08c1c.js b/out/_next/static/chunks/3172-b6490fb55ce08c1c.js deleted file mode 100644 index 23f2218..0000000 --- a/out/_next/static/chunks/3172-b6490fb55ce08c1c.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3172],{8989:(e,t,a)=>{"use strict";a.d(t,{R:()=>c});var n=a(75155),r=a(67270),s=a(12482),l=a(49672),o=a(81973),i=a(78550);function c(e,t){let a,c,d,m,u,h=(0,n.c)(16);h[0]!==e?(a={...e,with:void 0},h[0]=e,h[1]=a):a=h[1];let x=a,p=(0,l.fu)(),b=(0,i.Ge)(),f=x?.source;h[2]!==f?(c={id:f},h[2]=f,h[3]=c):c=h[3];let{data:g,isLoading:j}=(0,o.Fo)(c);h[4]!==x?(d=["explain",x],h[4]=x,h[5]=d):d=h[5],h[6]!==p||h[7]!==x||h[8]!==b||h[9]!==g?.querySettings?(m=async e=>{let{signal:t}=e,a=await (0,r.PV)(x,b,g?.querySettings);return(await p.query({query:`EXPLAIN ESTIMATE ${a.sql}`,query_params:a.params,format:"JSONEachRow",abort_signal:t,connectionId:x.connection})).json()},h[6]=p,h[7]=x,h[8]=b,h[9]=g?.querySettings,h[10]=m):m=h[10];let y=!j;return h[11]!==t||h[12]!==d||h[13]!==m||h[14]!==y?(u={queryKey:d,queryFn:m,retry:!1,staleTime:6e4,enabled:y,...t},h[11]=t,h[12]=d,h[13]=m,h[14]=y,h[15]=u):u=h[15],(0,s.I)(u)}},24207:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var n=a(6029),r=a(75155),s=a(56513),l=a(25062),o=a(90993);function i(e){let t,a,i,c=(0,r.c)(4),{onDelete:d}=e;return c[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,n.jsx)(s.W.Target,{children:(0,n.jsx)(l.$,{variant:"danger",size:"xs",children:"Delete"})}),c[0]=t):t=c[0],c[1]===Symbol.for("react.memo_cache_sentinel")?(a=(0,n.jsx)(o.A,{size:16}),c[1]=a):a=c[1],c[2]!==d?(i=(0,n.jsxs)(s.W,{withArrow:!0,children:[t,(0,n.jsx)(s.W.Dropdown,{children:(0,n.jsx)(s.W.Item,{leftSection:a,onClick:d,children:"Confirm Delete"})})]}),c[2]=d,c[3]=i):i=c[3],i}},24314:(e,t,a)=>{"use strict";a.d(t,{Eb:()=>eH});var n=a(6029),r=a(75155),s=a(55729),l=a(1909),o=a(35467),i=a(82641),c=a(43517),d=a(34834),m=a(63085),u=a(53061),h=a(78253),x=a(60481),p=a(48378),b=a(76013),f=a(25062),g=a(3635),j=a(92789),y=a(38206),S=a(23935),v=a(9953),w=a(18341),C=a(58061),E=a(289),N=a(3465),_=a(60665),z=a(97702),T=a(90515),A=a(90993),$=a(28975),k=a(95316),I=a(57478),F=a(98142),H=a(93108),L=a(8989),V=a(78550),D=a(81973),M=a(76089);let Z=["avg","count","max","min","quantile","sum","histogram"],q=[{value:"1 second",label:"1 second"},{value:M.Z7.FifteenSecond,label:"15 seconds"},{value:M.Z7.ThirtySecond,label:"30 seconds"},{value:M.Z7.OneMinute,label:"1 minute"},{value:M.Z7.FiveMinute,label:"5 minutes"},{value:M.Z7.FifteenMinute,label:"15 minutes"},{value:M.Z7.ThirtyMinute,label:"30 minutes"},{value:M.Z7.OneHour,label:"1 hour"},{value:M.Z7.TwoHour,label:"2 hours"},{value:M.Z7.SixHour,label:"6 hours"},{value:M.Z7.TwelveHour,label:"12 hours"},{value:M.Z7.OneDay,label:"1 day"},{value:M.Z7.TwoDay,label:"2 days"},{value:M.Z7.SevenDay,label:"7 days"},{value:M.Z7.ThirtyDay,label:"30 days"}],O=/MATERIALIZED VIEW [^\s]+\.[^\s]+ TO ([^\s]+)\.([^\s]+)/;function G(e){return e.engine?.includes("AggregatingMergeTree")??!1}function B(e){return e.engine?.includes("SummingMergeTree")??!1}async function R({databaseName:e,tableName:t,connectionId:a},n){try{let r=await n.getTableMetadata({databaseName:e,tableName:t,connectionId:a});if(r.engine?.startsWith("MaterializedView")){let e=function(e){let t=e.create_table_query.match(O);if(t&&t[1]&&t[2])return{databaseName:t[1],tableName:t[2]}}(r);if(e){let t=await n.getTableMetadata({...e,connectionId:a});return G(t)||B(t)?{mvMetadata:r,mvTableMetadata:t}:void 0}}else if(G(r)||B(r)){let s=await n.queryMaterializedViewsByTarget({databaseName:e,tableName:t,connectionId:a});if(1===s.length)return{mvMetadata:await n.getTableMetadata({...s[0],connectionId:a}),mvTableMetadata:r};return{mvTableMetadata:r}}}catch(e){console.error("Error fetching materialized view metadata",e)}}function P(e){let t=e.as_select??"",a=t.slice(0,t.toLowerCase().indexOf("from")).replace(/^select/i,"").trim();return(0,M.AB)(a)}function Y(e,t,a,n){if("count"===e)return"";let r=t.name.split("__")[1];if(a.find(e=>e.name===r))return r;if(n){let e=P(n).find(e=>e.endsWith(t.name)),r=e&&a.find(t=>RegExp(`\\b${t.name.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}\\b`).test(e));if(r)return r.name}return""}async function K(e,t,a){let{databaseName:n,tableName:r,connectionId:s}=e,{databaseName:l,tableName:i}=t;if(!r)return;let c=await R({databaseName:n,tableName:r,connectionId:s},a);if(!c)return;let{mvMetadata:d,mvTableMetadata:m}=c,[u,h]=await Promise.all([a.getColumns({databaseName:m.database,tableName:m.name,connectionId:s}),a.getColumns({databaseName:l,tableName:i,connectionId:s})]),x=u.filter(e=>e.type.includes("AggregateFunction")).map(e=>{let t,a=e.type.match(/AggregateFunction\(([a-zA-Z0-9_]+)/)?.[1];if("sum"===a&&e.name.toLowerCase().includes("count")?a="count":a?.startsWith("quantile")&&(a="quantile"),t=a,!Z.includes(t??""))return;let n=Y(a,e,h,d);return{mvColumn:e.name,aggFn:a,sourceColumn:n}}).filter(e=>void 0!=e),p=B(m)?function(e){if(!B(e))return;let t=e.engine_full?.match(/SummingMergeTree\((\(?[^(]*)\)/)?.[1],a=t?.at(0)==="("&&t?.at(-1)===")"?t.slice(1,-1):t;if(a)return new Set((0,M.AB)(a))}(m):void 0;for(let e of p??[]){let t=e.toLowerCase().includes("count")?"count":"sum",a=u.find(t=>t.name===e);if(a){let n=Y(t,a,h,d);x.push({mvColumn:e,aggFn:t,sourceColumn:n})}}let b=new Set((0,o.bZ)(m.primary_key)),f=(0,o.P1)(u,[o.A2.Date])??[],g=f?.find(e=>b.has(e.name))?.name??"",j="";d&&(j=function(e,t){try{let a=P(e).find(e=>e.match(/toStartOf|toDate/)&&e.includes(t));if(!a)return;for(let[e,t]of Object.entries({toStartOfSecond:"1 second",toStartOfMinute:"1 minute",toStartOfFiveMinutes:"5 minute",toStartOfFifteenMinutes:"15 minute",toStartOfHour:"1 hour",toStartOfDay:"1 day",toDate:"1 day",toDateTime:"1 second"}))if(a?.includes(`${e}(`))return t;if(a.includes("toStartOfInterval(")){let e=a.match(/INTERVAL\s+(\d+)\s+(SECOND|MINUTE|HOUR|DAY)S?\)/i),t=a.match(/toInterval(Second|Minute|Hour|Day)\((\d+)\)/),n=e?`${e[1]} ${e[2].toLowerCase()}`:t?`${t[2]} ${t[1].toLowerCase()}`:null;if(n&&q.map(e=>e.value).includes(n)&&q.map(e=>e.value).includes(n))return n}}catch(e){console.error("Error inferring timestamp column granularity",e)}}(d,g)??"");let y=u.filter(e=>!e.type.includes("AggregateFunction")&&!p?.has(e.name)&&!f.includes(e)).map(e=>e.name).join(", ");return{databaseName:m.database,tableName:m.name,dimensionColumns:y,minGranularity:j,timestampColumn:g,aggregatedColumns:x}}var W=a(24207),X=a(62453),U=a(66980),Q=a(49672);function J(e){let t,a,s,l,o,i,c,d,m=(0,r.c)(21),{database:u,setDatabase:h,connectionId:x,onBlur:p,name:b,inputRef:f,size:g}=e,j=x??"";m[0]!==j?(t={connectionId:j},m[0]=j,m[1]=t):t=m[1];let S=!!x;m[2]!==S?(a={enabled:S},m[2]=S,m[3]=a):a=m[3];let{data:v,isLoading:w}=(0,Q.VH)(t,a);m[4]!==v?.data?(s=v?.data||[],m[4]=v?.data,m[5]=s):s=m[5],m[6]!==s?(l=s.map(ee),m[6]=s,m[7]=l):l=m[7];let C=l;return m[8]===Symbol.for("react.memo_cache_sentinel")?(o=(0,n.jsx)(U.A,{size:16}),m[8]=o):o=m[8],m[9]===Symbol.for("react.memo_cache_sentinel")?(i={withinPortal:!1},m[9]=i):i=m[9],m[10]!==h?(c=e=>h(e??void 0),m[10]=h,m[11]=c):c=m[11],m[12]!==C||m[13]!==u||m[14]!==f||m[15]!==w||m[16]!==b||m[17]!==p||m[18]!==g||m[19]!==c?(d=(0,n.jsx)(y.l,{searchable:!0,placeholder:"Database",leftSection:o,maxDropdownHeight:280,data:C,disabled:w,comboboxProps:i,value:u,onChange:c,onBlur:p,name:b,ref:f,size:g}),m[12]=C,m[13]=u,m[14]=f,m[15]=w,m[16]=b,m[17]=p,m[18]=g,m[19]=c,m[20]=d):d=m[20],d}function ee(e){return{value:e.name,label:e.name}}function et(e){let t,a=(0,r.c)(7),{field:s}=(0,l.as)(e);return a[0]!==s.name||a[1]!==s.onBlur||a[2]!==s.onChange||a[3]!==s.ref||a[4]!==s.value||a[5]!==e?(t=(0,n.jsx)(J,{...e,database:s.value,setDatabase:s.onChange,onBlur:s.onBlur,name:s.name,inputRef:s.ref}),a[0]=s.name,a[1]=s.onBlur,a[2]=s.onChange,a[3]=s.ref,a[4]=s.value,a[5]=e,a[6]=t):t=a[6],t}var ea=a(45519),en=a(86761);function er(e){let t,a,s,l,o,i,c,d,m,u,x=(0,r.c)(29),{database:p,setTable:b,table:f,onBlur:g,name:j,size:S,inputRef:v,connectionId:w}=e,C=p??"",E=w??"";x[0]!==C||x[1]!==E?(t={database:C,connectionId:E},x[0]=C,x[1]=E,x[2]=t):t=x[2];let N=!!p&&!!w;x[3]!==N?(a={enabled:N},x[3]=N,x[4]=a):a=x[4];let{data:_,isLoading:z}=(0,Q.uI)(t,a);x[5]!==_?.data?(s=_?.data||[],x[5]=_?.data,x[6]=s):s=x[6],x[7]!==s?(l=s.map(es),x[7]=s,x[8]=l):l=x[8];let T=l;x[9]!==w||x[10]!==p||x[11]!==f?(o=w&&p&&f?(0,n.jsx)(en.A,{source:{connection:w,from:{databaseName:p,tableName:f}},variant:"text"}):void 0,x[9]=w,x[10]=p,x[11]=f,x[12]=o):o=x[12],x[13]!==o?(i=(0,I.J)({sourceSchemaPreview:o}),x[13]=o,x[14]=i):i=x[14];let A=i;return x[15]===Symbol.for("react.memo_cache_sentinel")?(c=(0,n.jsx)(ea.A,{size:16}),x[15]=c):c=x[15],x[16]===Symbol.for("react.memo_cache_sentinel")?(d={withinPortal:!1},x[16]=d):d=x[16],x[17]!==b?(m=e=>b(e??void 0),x[17]=b,x[18]=m):m=x[18],x[19]!==T||x[20]!==v||x[21]!==z||x[22]!==j||x[23]!==g||x[24]!==A||x[25]!==S||x[26]!==m||x[27]!==f?(u=(0,n.jsx)(h.s,{align:"center",gap:8,children:(0,n.jsx)(y.l,{searchable:!0,placeholder:"Table",leftSection:c,maxDropdownHeight:280,data:T,disabled:z,value:f,comboboxProps:d,onChange:m,onBlur:g,name:j,ref:v,size:S,className:"flex-grow-1",...A})}),x[19]=T,x[20]=v,x[21]=z,x[22]=j,x[23]=g,x[24]=A,x[25]=S,x[26]=m,x[27]=f,x[28]=u):u=x[28],u}function es(e){return{value:e.name,label:e.name}}function el(e){let t,a,s,o,i=(0,r.c)(13);i[0]!==e?({database:a,connectionId:t,...s}=e,i[0]=e,i[1]=t,i[2]=a,i[3]=s):(t=i[1],a=i[2],s=i[3]);let{field:c}=(0,l.as)(s);return i[4]!==t||i[5]!==a||i[6]!==c.name||i[7]!==c.onBlur||i[8]!==c.onChange||i[9]!==c.ref||i[10]!==c.value||i[11]!==s?(o=(0,n.jsx)(er,{...s,database:a,connectionId:t,table:c.value,setTable:c.onChange,onBlur:c.onBlur,name:c.name,inputRef:c.ref}),i[4]=t,i[5]=a,i[6]=c.name,i[7]=c.onBlur,i[8]=c.onChange,i[9]=c.ref,i[10]=c.value,i[11]=s,i[12]=o):o=i[12],o}var eo=a(24589),ei=a(22599),ec=a(70114),ed=a(18205);function em(e){let t,a,l,o,i,c,d,m,u=(0,r.c)(16),{summary:h,details:x}=e,[p,b]=(0,s.useState)(!1);u[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>b(eu),u[0]=t):t=u[0];let g=p?"rotate(90deg)":"rotate(0deg)";return u[1]!==g?(a=(0,n.jsx)(ec.A,{size:14,style:{transform:g,transition:"transform 150ms ease"}}),u[1]=g,u[2]=a):a=u[2],u[3]===Symbol.for("react.memo_cache_sentinel")?(l=(0,n.jsx)(ed.A,{size:14,className:"me-2"}),u[3]=l):l=u[3],u[4]!==h||u[5]!==a?(o=(0,n.jsxs)(f.$,{variant:"subtle",size:"compact-xs",color:"red",onClick:t,leftSection:a,children:[l," ",h]}),u[4]=h,u[5]=a,u[6]=o):o=u[6],u[7]===Symbol.for("react.memo_cache_sentinel")?(i={whiteSpace:"pre-wrap",wordBreak:"break-word"},u[7]=i):i=u[7],u[8]!==x?(c=(0,n.jsx)(eo.C,{block:!0,c:"red",mt:"xs",style:i,children:x}),u[8]=x,u[9]=c):c=u[9],u[10]!==p||u[11]!==c?(d=(0,n.jsx)(ei.S,{in:p,children:c}),u[10]=p,u[11]=c,u[12]=d):d=u[12],u[13]!==o||u[14]!==d?(m=(0,n.jsxs)(n.Fragment,{children:[o,d]}),u[13]=o,u[14]=d,u[15]=m):m=u[15],m}function eu(e){return!e}var eh=a(71781),ex=a(9211),ep=a(64467);let eb="default",ef=Z.map(e=>({value:e,label:e})),eg={timestampValueExpression:"TimeUnix",resourceAttributesExpression:"ResourceAttributes"},ej={[i.GL.Log]:{metricSourceId:[{targetKind:i.GL.Metric,targetField:"logSourceId"}],traceSourceId:[{targetKind:i.GL.Trace,targetField:"logSourceId"}]},[i.GL.Trace]:{logSourceId:[{targetKind:i.GL.Log,targetField:"traceSourceId"}],sessionSourceId:[{targetKind:i.GL.Session,targetField:"traceSourceId"}],metricSourceId:[{targetKind:i.GL.Metric,targetField:"logSourceId"}]},[i.GL.Session]:{traceSourceId:[{targetKind:i.GL.Trace,targetField:"sessionSourceId"}]},[i.GL.Metric]:{logSourceId:[{targetKind:i.GL.Log,targetField:"metricSourceId"}]}};function ey(e){let t,a,s,l,o,i,p,b,f,g,j,y=(0,r.c)(22),{label:S,children:v,helpText:w}=e;return y[0]===Symbol.for("react.memo_cache_sentinel")?(t={maxWidth:220,minWidth:220,height:"36px"},y[0]=t):t=y[0],y[1]!==S?(a="string"==typeof S?(0,n.jsx)(c.E,{tt:"capitalize",size:"sm",children:S}):S,y[1]=S,y[2]=a):a=y[2],y[3]!==a?(s=(0,n.jsx)(d.B,{justify:"center",style:t,children:a}),y[3]=a,y[4]=s):s=y[4],y[5]!==w?(l={...!w?{opacity:0,pointerEvents:"none"}:{}},y[5]=w,y[6]=l):l=y[6],y[7]===Symbol.for("react.memo_cache_sentinel")?(o=(0,n.jsx)(z.A,{size:20,className:"cursor-pointer"}),y[7]=o):o=y[7],y[8]!==w?(i=(0,n.jsx)(m.m,{label:w,color:"dark",c:"white",multiline:!0,maw:600,children:o}),y[8]=w,y[9]=i):i=y[9],y[10]!==l||y[11]!==i?(p=(0,n.jsx)(u.o,{me:"sm",ms:"sm",style:l,children:i}),y[10]=l,y[11]=i,y[12]=p):p=y[12],y[13]!==s||y[14]!==p?(b=(0,n.jsxs)(h.s,{align:"center",children:[s,p]}),y[13]=s,y[14]=p,y[15]=b):b=y[15],y[16]===Symbol.for("react.memo_cache_sentinel")?(f={minWidth:0},y[16]=f):f=y[16],y[17]!==v?(g=(0,n.jsx)(x.a,{w:"100%",style:f,children:v}),y[17]=v,y[18]=g):g=y[18],y[19]!==g||y[20]!==b?(j=(0,n.jsxs)(h.s,{align:"flex-start",children:[b,g]}),y[19]=g,y[20]=b,y[21]=j):j=y[21],j}function eS(e){let t,a,i,d,u,x,f,g,j,y,S,v,w,C,_,$,k,I,F,H,V,D,M,Z,q,O,G=(0,r.c)(75),{id:B,index:R,control:P,databaseName:Y,name:K,tableName:W,connectionId:X,removeHighlightedAttribute:U}=e,Q=`${K}.${R}.sqlExpression`;G[0]!==P||G[1]!==Q?(t={control:P,name:Q},G[0]=P,G[1]=Q,G[2]=t):t=G[2];let J=(0,l.FH)(t),ee=`${K}.${R}.alias`;G[3]!==P||G[4]!==ee?(a={control:P,name:ee},G[3]=P,G[4]=ee,G[5]=a):a=G[5];let et=(0,l.FH)(a),[ea,en]=(0,s.useState)();G[6]===Symbol.for("react.memo_cache_sentinel")?(i=e=>{en(e)},G[6]=i):i=G[6];let er=(0,E.Y)(i,1e3);G[7]!==et||G[8]!==J||G[9]!==er?(d=()=>{er({expression:J,alias:et})},G[7]=et,G[8]=J,G[9]=er,G[10]=d):d=G[10],G[11]!==et||G[12]!==J?(u=[J,et],G[11]=et,G[12]=J,G[13]=u):u=G[13],(0,N.C)(d,u),G[14]!==Y||G[15]!==W?(x={databaseName:Y,tableName:W},G[14]=Y,G[15]=W,G[16]=x):x=G[16];let es=ea?.alias,el=ea?.expression??"";G[17]!==el||G[18]!==es?(f=[{alias:es,valueExpression:el}],G[17]=el,G[18]=es,G[19]=f):f=G[19],G[20]!==X||G[21]!==f||G[22]!==x?(g={from:x,connection:X,select:f,where:""},G[20]=X,G[21]=f,G[22]=x,G[23]=g):g=G[23];let eo=!!ea?.expression;G[24]!==eo?(j={enabled:eo},G[24]=eo,G[25]=j):j=G[25];let{data:ei,error:ec,isLoading:ed}=(0,L.R)(g,j);G[26]!==et||G[27]!==J?(y=()=>{en({expression:J,alias:et})},G[26]=et,G[27]=J,G[28]=y):y=G[28];let eu=y,ex=!!ei?.length,eb=ec instanceof o.p1,ef=ea?.expression===J&&ea?.alias===et&&(ex||eb);G[29]===Symbol.for("react.memo_cache_sentinel")?(S={display:"contents"},G[29]=S):S=G[29];let eg=`${K}.${R}.sqlExpression`;G[30]!==X||G[31]!==Y||G[32]!==W?(v={databaseName:Y,tableName:W,connectionId:X},G[30]=X,G[31]=Y,G[32]=W,G[33]=v):v=G[33];let ej=`${K}.${R}.sqlExpression`;G[34]!==P||G[35]!==v||G[36]!==ej?(w=(0,n.jsx)(ep.Z,{tableConnection:v,control:P,name:ej,disableKeywordAutocomplete:!0,placeholder:"ResourceAttributes['http.host']"}),G[34]=P,G[35]=v,G[36]=ej,G[37]=w):w=G[37],G[38]!==eg||G[39]!==w?(C=(0,n.jsx)(p.x.Col,{span:3,pe:0,children:(0,n.jsx)("div",{style:S,"data-name":eg,children:w})}),G[38]=eg,G[39]=w,G[40]=C):C=G[40],G[41]===Symbol.for("react.memo_cache_sentinel")?(_=(0,n.jsx)(c.E,{c:"gray",children:"AS"}),G[41]=_):_=G[41];let ey=`${K}.${R}.alias`;G[42]!==P||G[43]!==ey?($=(0,n.jsx)(ep.Z,{control:P,name:ey,placeholder:"Optional Alias",disableKeywordAutocomplete:!0}),G[42]=P,G[43]=ey,G[44]=$):$=G[44];let eS=!J||ed;G[45]===Symbol.for("react.memo_cache_sentinel")?(k=(0,n.jsx)(T.A,{size:16}),G[45]=k):k=G[45],G[46]!==ed||G[47]!==eu||G[48]!==eS?(I=(0,n.jsx)(m.m,{label:"Validate expression",children:(0,n.jsx)(b.M,{size:"xs",variant:"subtle",color:"gray",loading:ed,disabled:eS,onClick:eu,children:k})}),G[46]=ed,G[47]=eu,G[48]=eS,G[49]=I):I=G[49],G[50]!==R||G[51]!==U?(F=()=>U(R),G[50]=R,G[51]=U,G[52]=F):F=G[52],G[53]===Symbol.for("react.memo_cache_sentinel")?(H=(0,n.jsx)(A.A,{size:16}),G[53]=H):H=G[53],G[54]!==F?(V=(0,n.jsx)(b.M,{size:"xs",variant:"subtle",color:"gray",onClick:F,children:H}),G[54]=F,G[55]=V):V=G[55],G[56]!==$||G[57]!==I||G[58]!==V?(D=(0,n.jsx)(p.x.Col,{span:2,ps:"xs",children:(0,n.jsxs)(h.s,{align:"center",gap:"sm",children:[_,$,I,V]})}),G[56]=$,G[57]=I,G[58]=V,G[59]=D):D=G[59],G[60]!==ec?.message||G[61]!==eb||G[62]!==ex||G[63]!==ef?(M=ef&&(0,n.jsxs)(p.x.Col,{span:5,pe:0,pt:0,children:[ex&&(0,n.jsx)(c.E,{c:"green",size:"xs",children:"Expression is valid."}),eb&&(0,n.jsx)(em,{summary:"Expression is invalid",details:ec?.message})]}),G[60]=ec?.message,G[61]=eb,G[62]=ex,G[63]=ef,G[64]=M):M=G[64];let ev=`${K}.${R}.luceneExpression`;return G[65]!==P||G[66]!==ev?(Z=(0,n.jsx)(p.x.Col,{span:3,pe:0,children:(0,n.jsx)(eh.t4,{control:P,name:ev,placeholder:"ResourceAttributes.http.host (Optional) "})}),G[65]=P,G[66]=ev,G[67]=Z):Z=G[67],G[68]===Symbol.for("react.memo_cache_sentinel")?(q=(0,n.jsx)(p.x.Col,{span:1,pe:0,children:(0,n.jsx)(c.E,{me:"sm",mt:6,children:(0,n.jsx)(m.m,{label:"An optional, Lucene version of the above expression. If provided, it is used when searching for this attribute value.",color:"dark",c:"white",multiline:!0,maw:600,children:(0,n.jsx)(z.A,{size:14,className:"cursor-pointer"})})})}),G[68]=q):q=G[68],G[69]!==B||G[70]!==C||G[71]!==D||G[72]!==M||G[73]!==Z?(O=(0,n.jsxs)(s.Fragment,{children:[C,D,M,Z,q]},B),G[69]=B,G[70]=C,G[71]=D,G[72]=M,G[73]=Z,G[74]=O):O=G[74],O}function ev(e){let t,a,s,o,i,c,d,m,u,h,x=(0,r.c)(37),{control:b,name:g,label:j,helpText:y}=e;x[0]!==b?(t={control:b,name:"from.databaseName",defaultValue:eb},x[0]=b,x[1]=t):t=x[1];let S=(0,l.FH)(t);x[2]!==b?(a={control:b,name:"from.tableName"},x[2]=b,x[3]=a):a=x[3];let v=(0,l.FH)(a);x[4]!==b?(s={control:b,name:"connection"},x[4]=b,x[5]=s):s=x[5];let w=(0,l.FH)(s);x[6]!==b||x[7]!==g?(o={control:b,name:g},x[6]=b,x[7]=g,x[8]=o):o=x[8];let{fields:C,append:E,remove:N}=(0,l.jz)(o);if(x[9]!==w||x[10]!==b||x[11]!==S||x[12]!==C||x[13]!==g||x[14]!==N||x[15]!==v){let e;x[17]!==w||x[18]!==b||x[19]!==S||x[20]!==g||x[21]!==N||x[22]!==v?(e=(e,t)=>{let{id:a}=e;return(0,n.jsx)(eS,{id:a,index:t,name:g,control:b,databaseName:S,tableName:v,connectionId:w,removeHighlightedAttribute:N},a)},x[17]=w,x[18]=b,x[19]=S,x[20]=g,x[21]=N,x[22]=v,x[23]=e):e=x[23],i=C.map(e),x[9]=w,x[10]=b,x[11]=S,x[12]=C,x[13]=g,x[14]=N,x[15]=v,x[16]=i}else i=x[16];x[24]!==i?(c=(0,n.jsx)(p.x,{columns:5,children:i}),x[24]=i,x[25]=c):c=x[25];let _=C.length?"sm":"md";return x[26]!==E?(d=()=>{E({sqlExpression:"",luceneExpression:"",alias:""},{shouldFocus:!1})},x[26]=E,x[27]=d):d=x[27],x[28]===Symbol.for("react.memo_cache_sentinel")?(m=(0,n.jsx)($.A,{size:14,className:"me-2"}),x[28]=m):m=x[28],x[29]!==_||x[30]!==d?(u=(0,n.jsxs)(f.$,{variant:"secondary",size:"sm",className:"align-self-start",mt:_,onClick:d,children:[m,"Add expression"]}),x[29]=_,x[30]=d,x[31]=u):u=x[31],x[32]!==y||x[33]!==j||x[34]!==u||x[35]!==c?(h=(0,n.jsxs)(ey,{label:j,helpText:y,children:[c,u]}),x[32]=y,x[33]=j,x[34]=u,x[35]=c,x[36]=h):h=x[36],h}function ew(e){let t,a,s,o,i,c,m,u=(0,r.c)(22),{control:h,setValue:x}=e;u[0]!==h?(t={control:h,name:"from.databaseName",defaultValue:eb},u[0]=h,u[1]=t):t=u[1];let p=(0,l.FH)(t);u[2]!==h?(a={control:h,name:"materializedViews"},u[2]=h,u[3]=a):a=u[3];let{fields:b,append:j,remove:y}=(0,l.jz)(a);if(u[4]!==h||u[5]!==b||u[6]!==y||u[7]!==x){let e;u[9]!==h||u[10]!==y||u[11]!==x?(e=(e,t)=>(0,n.jsx)(eC,{control:h,mvIndex:t,setValue:x,onRemove:()=>y(t)},e.id),u[9]=h,u[10]=y,u[11]=x,u[12]=e):e=u[12],s=b.map(e),u[4]=h,u[5]=b,u[6]=y,u[7]=x,u[8]=s}else s=u[8];return u[13]!==j||u[14]!==p?(o=()=>{j({databaseName:p,tableName:"",dimensionColumns:"",minGranularity:"",timestampColumn:"",aggregatedColumns:[]})},u[13]=j,u[14]=p,u[15]=o):o=u[15],u[16]===Symbol.for("react.memo_cache_sentinel")?(i=(0,n.jsxs)(g.Y,{children:[(0,n.jsx)($.A,{size:16}),"Add Materialized View"]}),u[16]=i):i=u[16],u[17]!==o?(c=(0,n.jsx)(f.$,{variant:"secondary",onClick:o,children:i}),u[17]=o,u[18]=c):c=u[18],u[19]!==s||u[20]!==c?(m=(0,n.jsx)(d.B,{gap:"md",children:(0,n.jsx)(ey,{label:"Materialized Views",helpText:"Configure materialized views for query optimization. These pre-aggregated views can significantly improve query performance on aggregation queries.",children:(0,n.jsxs)(d.B,{gap:"md",children:[s,c]})})}),u[19]=s,u[20]=c,u[21]=m):m=u[21],m}function eC(e){let t,a,s,o,i,u,h,f,y,S,v,w,C,E,N,_,T,$,k,I,F,H,L,V=(0,r.c)(67),{control:D,mvIndex:M,onRemove:Z,setValue:q}=e;V[0]!==D?(t={control:D,name:"connection"},V[0]=D,V[1]=t):t=V[1];let O=(0,l.FH)(t);V[2]!==D?(a={control:D,name:"from.databaseName",defaultValue:eb},V[2]=D,V[3]=a):a=V[3];let G=(0,l.FH)(a),B=`materializedViews.${M}.databaseName`;V[4]!==D||V[5]!==G||V[6]!==B?(s={control:D,name:B,defaultValue:G},V[4]=D,V[5]=G,V[6]=B,V[7]=s):s=V[7];let R=(0,l.FH)(s),P=`materializedViews.${M}.tableName`;V[8]!==D||V[9]!==P?(o={control:D,name:P,defaultValue:""},V[8]=D,V[9]=P,V[10]=o):o=V[10];let Y=(0,l.FH)(o),K=`materializedViews.${M}.databaseName`;V[11]!==O||V[12]!==D||V[13]!==K?(i=(0,n.jsx)(p.x.Col,{span:1,children:(0,n.jsx)(et,{control:D,name:K,connectionId:O})}),V[11]=O,V[12]=D,V[13]=K,V[14]=i):i=V[14];let W=`materializedViews.${M}.tableName`;V[15]!==O||V[16]!==D||V[17]!==R||V[18]!==W?(u=(0,n.jsx)(x.a,{flex:1,children:(0,n.jsx)(el,{database:R,control:D,name:W,connectionId:O})}),V[15]=O,V[16]=D,V[17]=R,V[18]=W,V[19]=u):u=V[19],V[20]===Symbol.for("react.memo_cache_sentinel")?(h=(0,n.jsx)(A.A,{size:16}),V[20]=h):h=V[20],V[21]!==Z?(f=(0,n.jsx)(b.M,{size:"sm",onClick:Z,children:h}),V[21]=Z,V[22]=f):f=V[22],V[23]!==u||V[24]!==f?(y=(0,n.jsx)(p.x.Col,{span:1,children:(0,n.jsxs)(g.Y,{children:[u,f]})}),V[23]=u,V[24]=f,V[25]=y):y=V[25],V[26]===Symbol.for("react.memo_cache_sentinel")?(S=(0,n.jsx)(c.E,{size:"xs",fw:500,mb:4,children:"Timestamp Column"}),V[26]=S):S=V[26],V[27]!==O||V[28]!==R||V[29]!==Y?(v={databaseName:R,tableName:Y,connectionId:O},V[27]=O,V[28]=R,V[29]=Y,V[30]=v):v=V[30];let X=`materializedViews.${M}.timestampColumn`;V[31]!==D||V[32]!==v||V[33]!==X?(w=(0,n.jsxs)(p.x.Col,{span:2,children:[S,(0,n.jsx)(ep.Z,{tableConnection:v,control:D,placeholder:"Timestamp",name:X,disableKeywordAutocomplete:!0})]}),V[31]=D,V[32]=v,V[33]=X,V[34]=w):w=V[34],V[35]===Symbol.for("react.memo_cache_sentinel")?(C=(0,n.jsxs)(c.E,{size:"xs",fw:500,mb:4,children:["Granularity",(0,n.jsx)(m.m,{label:"The granularity of the timestamp column",color:"dark",c:"white",multiline:!0,maw:600,children:(0,n.jsx)(z.A,{size:14,className:"cursor-pointer ms-1"})})]}),V[35]=C):C=V[35];let U=`materializedViews.${M}.minGranularity`;V[36]!==D||V[37]!==U?(E=(0,n.jsxs)(p.x.Col,{span:1,children:[C,(0,n.jsx)(l.xI,{control:D,name:U,render:eN})]}),V[36]=D,V[37]=U,V[38]=E):E=V[38],V[39]===Symbol.for("react.memo_cache_sentinel")?(N=(0,n.jsxs)(c.E,{size:"xs",fw:500,mb:4,children:["Minimum Date",(0,n.jsx)(m.m,{label:"(Optional) The earliest date and time (in the local timezone) for which the materialized view contains data. If not provided, then HyperDX will assume that the materialized view contains data for all dates for which the source table contains data.",color:"dark",c:"white",multiline:!0,maw:600,children:(0,n.jsx)(z.A,{size:14,className:"cursor-pointer ms-1"})})]}),V[39]=N):N=V[39];let Q=`materializedViews.${M}.minDate`;V[40]!==D||V[41]!==Q?(_=(0,n.jsxs)(p.x.Col,{span:1,children:[N,(0,n.jsx)(l.xI,{control:D,name:Q,render:eE})]}),V[40]=D,V[41]=Q,V[42]=_):_=V[42],V[43]!==y||V[44]!==w||V[45]!==E||V[46]!==_||V[47]!==i?(T=(0,n.jsxs)(p.x,{columns:2,flex:1,children:[i,y,w,E,_]}),V[43]=y,V[44]=w,V[45]=E,V[46]=_,V[47]=i,V[48]=T):T=V[48],V[49]===Symbol.for("react.memo_cache_sentinel")?($=(0,n.jsxs)(c.E,{size:"xs",fw:500,mb:4,children:["Dimension Columns (comma-separated)",(0,n.jsx)(m.m,{label:"Columns which are not pre-aggregated in the materialized view and can be used for filtering and grouping.",color:"dark",c:"white",multiline:!0,maw:600,children:(0,n.jsx)(z.A,{size:14,className:"cursor-pointer ms-1"})})]}),V[49]=$):$=V[49],V[50]!==O||V[51]!==R||V[52]!==Y?(k={databaseName:R,tableName:Y,connectionId:O},V[50]=O,V[51]=R,V[52]=Y,V[53]=k):k=V[53];let J=`materializedViews.${M}.dimensionColumns`;return V[54]!==D||V[55]!==k||V[56]!==J?(I=(0,n.jsxs)(x.a,{children:[$,(0,n.jsx)(ep.Z,{tableConnection:k,control:D,name:J,placeholder:"ServiceName, StatusCode",disableKeywordAutocomplete:!0})]}),V[54]=D,V[55]=k,V[56]=J,V[57]=I):I=V[57],V[58]!==D||V[59]!==M||V[60]!==q?(F=(0,n.jsx)(e_,{control:D,mvIndex:M,setValue:q}),V[58]=D,V[59]=M,V[60]=q,V[61]=F):F=V[61],V[62]===Symbol.for("react.memo_cache_sentinel")?(H=(0,n.jsx)(j.c,{}),V[62]=H):H=V[62],V[63]!==T||V[64]!==I||V[65]!==F?(L=(0,n.jsxs)(d.B,{gap:"sm",children:[T,I,F,H]}),V[63]=T,V[64]=I,V[65]=F,V[66]=L):L=V[66],L}function eE(e){let{field:t}=e;return(0,n.jsx)(C.J,{...t,value:t.value?new Date(t.value):void 0,onChange:e=>t.onChange(e?e.toISOString():null),clearable:!0,highlightToday:!0,placeholder:"YYYY-MM-DD HH:mm:ss",valueFormat:"YYYY-MM-DD HH:mm:ss"})}function eN(e){let{field:t}=e;return(0,n.jsx)(y.l,{...t,data:q,placeholder:"Granularity",size:"sm"})}function e_({control:e,setValue:t,mvIndex:a}){let{fields:r,append:o,remove:d,replace:u}=(0,l.jz)({control:e,name:`materializedViews.${a}.aggregatedColumns`}),h=(0,s.useCallback)(()=>{o({sourceColumn:"",aggFn:"avg",mvColumn:""})},[o]),b=(0,l.FH)({control:e,name:"kind"}),j=(0,l.FH)({control:e,name:"connection"}),y=(0,l.FH)({control:e,name:`materializedViews.${a}.tableName`}),S=(0,l.FH)({control:e,name:`materializedViews.${a}.databaseName`}),v=(0,l.FH)({control:e,name:"from.databaseName"}),w=(0,l.FH)({control:e,name:"from.tableName"}),C=(0,s.useRef)(y),E=(0,V.Ge)();return(0,s.useEffect)(()=>{(async()=>{try{if(y!==C.current&&(C.current=y,(b===i.GL.Log||b===i.GL.Trace)&&j&&S&&y&&v&&w)){let e=await K({databaseName:S,tableName:y,connectionId:j},{databaseName:v,tableName:w,connectionId:j},E);e?(t(`materializedViews.${a}`,e),u(e.aggregatedColumns??[]),_.$e.show({color:"green",id:"mv-infer-success",message:"Partially inferred materialized view configuration from view schema."})):_.$e.show({color:"yellow",id:"mv-infer-failure",message:"Unable to infer materialized view configuration."})}}catch(e){console.error(e)}})()},[y,b,j,S,v,w,a,u,t,E]),(0,n.jsxs)(x.a,{children:[(0,n.jsxs)(c.E,{size:"xs",mb:4,children:["Pre-aggregated Columns",(0,n.jsx)(m.m,{label:"Columns which are pre-aggregated by the materialized view",color:"dark",c:"white",multiline:!0,maw:600,children:(0,n.jsx)(z.A,{size:14,className:"cursor-pointer ms-1"})})]}),(0,n.jsx)(p.x,{columns:10,children:r.map((r,s)=>(0,n.jsx)(ez,{setValue:t,control:e,mvIndex:a,colIndex:s,onRemove:()=>d(s)},r.id))}),(0,n.jsx)(f.$,{size:"sm",variant:"secondary",onClick:h,mt:"lg",children:(0,n.jsxs)(g.Y,{children:[(0,n.jsx)($.A,{size:16}),"Add Column"]})})]})}function ez(e){let t,a,s,o,i,c,d,m,u,h,f,j,y,S,v,w=(0,r.c)(48),{control:C,mvIndex:E,colIndex:N,onRemove:_}=e;w[0]!==C?(t={control:C,name:"connection"},w[0]=C,w[1]=t):t=w[1];let z=(0,l.FH)(t);w[2]!==C?(a={control:C,name:"from.databaseName",defaultValue:eb},w[2]=C,w[3]=a):a=w[3];let T=(0,l.FH)(a);w[4]!==C?(s={control:C,name:"from.tableName"},w[4]=C,w[5]=s):s=w[5];let $=(0,l.FH)(s),k=`materializedViews.${E}.databaseName`;w[6]!==C||w[7]!==T||w[8]!==k?(o={control:C,name:k,defaultValue:T},w[6]=C,w[7]=T,w[8]=k,w[9]=o):o=w[9];let I=(0,l.FH)(o),F=`materializedViews.${E}.tableName`;w[10]!==C||w[11]!==F?(i={control:C,name:F},w[10]=C,w[11]=F,w[12]=i):i=w[12];let H=(0,l.FH)(i),L=`materializedViews.${E}.aggregatedColumns.${N}.aggFn`;w[13]!==C||w[14]!==L?(c={control:C,name:L},w[13]=C,w[14]=L,w[15]=c):c=w[15];let V="count"===(0,l.FH)(c),D=`materializedViews.${E}.aggregatedColumns.${N}.aggFn`;w[16]!==C||w[17]!==D?(d=(0,n.jsx)(p.x.Col,{span:2,children:(0,n.jsx)(ex.A,{control:C,name:D,data:ef,size:"sm"})}),w[16]=C,w[17]=D,w[18]=d):d=w[18],w[19]!==N||w[20]!==z||w[21]!==C||w[22]!==V||w[23]!==E||w[24]!==T||w[25]!==$?(m=!V&&(0,n.jsx)(p.x.Col,{span:4,children:(0,n.jsx)(ep.Z,{tableConnection:{databaseName:T,tableName:$,connectionId:z},control:C,name:`materializedViews.${E}.aggregatedColumns.${N}.sourceColumn`,placeholder:"Source Column",disableKeywordAutocomplete:!0})}),w[19]=N,w[20]=z,w[21]=C,w[22]=V,w[23]=E,w[24]=T,w[25]=$,w[26]=m):m=w[26];let M=V?8:4;w[27]!==z||w[28]!==I||w[29]!==H?(u={databaseName:I,tableName:H,connectionId:z},w[27]=z,w[28]=I,w[29]=H,w[30]=u):u=w[30];let Z=`materializedViews.${E}.aggregatedColumns.${N}.mvColumn`;return w[31]!==C||w[32]!==u||w[33]!==Z?(h=(0,n.jsx)(x.a,{flex:1,children:(0,n.jsx)(ep.Z,{tableConnection:u,control:C,name:Z,placeholder:"View Column",disableKeywordAutocomplete:!0})}),w[31]=C,w[32]=u,w[33]=Z,w[34]=h):h=w[34],w[35]===Symbol.for("react.memo_cache_sentinel")?(f=(0,n.jsx)(A.A,{size:16}),w[35]=f):f=w[35],w[36]!==_?(j=(0,n.jsx)(b.M,{size:"sm",onClick:_,children:f}),w[36]=_,w[37]=j):j=w[37],w[38]!==h||w[39]!==j?(y=(0,n.jsxs)(g.Y,{wrap:"nowrap",children:[h,j]}),w[38]=h,w[39]=j,w[40]=y):y=w[40],w[41]!==M||w[42]!==y?(S=(0,n.jsx)(p.x.Col,{span:M,children:y}),w[41]=M,w[42]=y,w[43]=S):S=w[43],w[44]!==d||w[45]!==m||w[46]!==S?(v=(0,n.jsxs)(n.Fragment,{children:[d,m,S]}),w[44]=d,w[45]=m,w[46]=S,w[47]=v):v=w[47],v}function eT(e){let t,a,o,i,c,m,u,h,p,b,y,v,w,C,E,N,_,z,T,A,$,F,H,L,V,D,M,Z,q,O,G,B,R,P,Y,K,W,X,U,Q,J,ee,et=(0,r.c)(129),{control:ea}=e;et[0]!==ea?(t={control:ea,name:"from.databaseName",defaultValue:eb},et[0]=ea,et[1]=t):t=et[1];let en=(0,l.FH)(t);et[2]!==ea?(a={control:ea,name:"from.tableName"},et[2]=ea,et[3]=a):a=et[3];let er=(0,l.FH)(a);et[4]!==ea?(o={control:ea,name:"connection"},et[4]=ea,et[5]=o):o=et[5];let es=(0,l.FH)(o),[el,eo]=(0,s.useState)(!1);et[6]!==es||et[7]!==en||et[8]!==er?(i={databaseName:en,tableName:er,connectionId:es},et[6]=es,et[7]=en,et[8]=er,et[9]=i):i=et[9],et[10]!==ea||et[11]!==i?(c=(0,n.jsx)(ey,{label:"Timestamp Column",helpText:"DateTime column or expression that is part of your table's primary key.",children:(0,n.jsx)(ep.Z,{tableConnection:i,control:ea,name:"timestampValueExpression",disableKeywordAutocomplete:!0})}),et[10]=ea,et[11]=i,et[12]=c):c=et[12],et[13]!==es||et[14]!==en||et[15]!==er?(m={databaseName:en,tableName:er,connectionId:es},et[13]=es,et[14]=en,et[15]=er,et[16]=m):m=et[16],et[17]!==ea||et[18]!==m?(u=(0,n.jsx)(ey,{label:"Default Select",helpText:"Default columns selected in search results (this can be customized per search later)",children:(0,n.jsx)(ep.Z,{tableConnection:m,control:ea,name:"defaultTableSelectExpression",placeholder:"Timestamp, Body"})}),et[17]=ea,et[18]=m,et[19]=u):u=et[19],et[20]!==el?(h=!el&&(0,n.jsx)(S.M,{underline:"always",onClick:()=>eo(!0),size:"xs",children:(0,n.jsxs)(g.Y,{gap:"xs",children:[(0,n.jsx)(k.A,{size:14}),"Configure Optional Fields"]})}),et[20]=el,et[21]=h):h=et[21],et[22]!==el?(p=el&&(0,n.jsx)(f.$,{onClick:()=>eo(!1),size:"xs",variant:"subtle",children:"Hide Optional Fields"}),et[22]=el,et[23]=p):p=et[23],et[24]!==h||et[25]!==p?(b=(0,n.jsxs)(x.a,{children:[h,p]}),et[24]=h,et[25]=p,et[26]=b):b=et[26],et[27]!==c||et[28]!==u||et[29]!==b?(y=(0,n.jsxs)(d.B,{gap:"sm",children:[c,u,b]}),et[27]=c,et[28]=u,et[29]=b,et[30]=y):y=et[30];let ei=el?"flex":"none";return et[31]!==ei?(v={display:ei},et[31]=ei,et[32]=v):v=et[32],et[33]===Symbol.for("react.memo_cache_sentinel")?(w=(0,n.jsx)(j.c,{}),et[33]=w):w=et[33],et[34]!==es||et[35]!==en||et[36]!==er?(C={databaseName:en,tableName:er,connectionId:es},et[34]=es,et[35]=en,et[36]=er,et[37]=C):C=et[37],et[38]!==ea||et[39]!==C?(E=(0,n.jsx)(ey,{label:"Service Name Expression",children:(0,n.jsx)(ep.Z,{tableConnection:C,control:ea,name:"serviceNameExpression",placeholder:"ServiceName"})}),et[38]=ea,et[39]=C,et[40]=E):E=et[40],et[41]!==es||et[42]!==en||et[43]!==er?(N={databaseName:en,tableName:er,connectionId:es},et[41]=es,et[42]=en,et[43]=er,et[44]=N):N=et[44],et[45]!==ea||et[46]!==N?(_=(0,n.jsx)(ey,{label:"Log Level Expression",children:(0,n.jsx)(ep.Z,{tableConnection:N,control:ea,name:"severityTextExpression",placeholder:"SeverityText"})}),et[45]=ea,et[46]=N,et[47]=_):_=et[47],et[48]!==es||et[49]!==en||et[50]!==er?(z={databaseName:en,tableName:er,connectionId:es},et[48]=es,et[49]=en,et[50]=er,et[51]=z):z=et[51],et[52]!==ea||et[53]!==z?(T=(0,n.jsx)(ey,{label:"Body Expression",children:(0,n.jsx)(ep.Z,{tableConnection:z,control:ea,name:"bodyExpression",placeholder:"Body"})}),et[52]=ea,et[53]=z,et[54]=T):T=et[54],et[55]!==es||et[56]!==en||et[57]!==er?(A={databaseName:en,tableName:er,connectionId:es},et[55]=es,et[56]=en,et[57]=er,et[58]=A):A=et[58],et[59]!==ea||et[60]!==A?($=(0,n.jsx)(ey,{label:"Log Attributes Expression",children:(0,n.jsx)(ep.Z,{tableConnection:A,control:ea,name:"eventAttributesExpression",placeholder:"LogAttributes"})}),et[59]=ea,et[60]=A,et[61]=$):$=et[61],et[62]!==es||et[63]!==en||et[64]!==er?(F={databaseName:en,tableName:er,connectionId:es},et[62]=es,et[63]=en,et[64]=er,et[65]=F):F=et[65],et[66]!==ea||et[67]!==F?(H=(0,n.jsx)(ey,{label:"Resource Attributes Expression",children:(0,n.jsx)(ep.Z,{tableConnection:F,control:ea,name:"resourceAttributesExpression",placeholder:"ResourceAttributes"})}),et[66]=ea,et[67]=F,et[68]=H):H=et[68],et[69]!==es||et[70]!==en||et[71]!==er?(L={databaseName:en,tableName:er,connectionId:es},et[69]=es,et[70]=en,et[71]=er,et[72]=L):L=et[72],et[73]!==ea||et[74]!==L?(V=(0,n.jsx)(ey,{label:"Displayed Timestamp Column",helpText:"This DateTime column is used to display and order search results.",children:(0,n.jsx)(ep.Z,{tableConnection:L,control:ea,name:"displayedTimestampValueExpression",disableKeywordAutocomplete:!0})}),et[73]=ea,et[74]=L,et[75]=V):V=et[75],et[76]===Symbol.for("react.memo_cache_sentinel")?(D=(0,n.jsx)(j.c,{}),et[76]=D):D=et[76],et[77]!==ea?(M=(0,n.jsx)(ey,{label:"Correlated Metric Source",helpText:"HyperDX Source for metrics associated with logs. Optional",children:(0,n.jsx)(I.W,{control:ea,name:"metricSourceId"})}),et[77]=ea,et[78]=M):M=et[78],et[79]!==ea?(Z=(0,n.jsx)(ey,{label:"Correlated Trace Source",helpText:"HyperDX Source for traces associated with logs. Optional",children:(0,n.jsx)(I.W,{control:ea,name:"traceSourceId"})}),et[79]=ea,et[80]=Z):Z=et[80],et[81]!==es||et[82]!==en||et[83]!==er?(q={databaseName:en,tableName:er,connectionId:es},et[81]=es,et[82]=en,et[83]=er,et[84]=q):q=et[84],et[85]!==ea||et[86]!==q?(O=(0,n.jsx)(ey,{label:"Trace Id Expression",children:(0,n.jsx)(ep.Z,{tableConnection:q,control:ea,name:"traceIdExpression",placeholder:"TraceId"})}),et[85]=ea,et[86]=q,et[87]=O):O=et[87],et[88]!==es||et[89]!==en||et[90]!==er?(G={databaseName:en,tableName:er,connectionId:es},et[88]=es,et[89]=en,et[90]=er,et[91]=G):G=et[91],et[92]!==ea||et[93]!==G?(B=(0,n.jsx)(ey,{label:"Span Id Expression",children:(0,n.jsx)(ep.Z,{tableConnection:G,control:ea,name:"spanIdExpression",placeholder:"SpanId"})}),et[92]=ea,et[93]=G,et[94]=B):B=et[94],et[95]===Symbol.for("react.memo_cache_sentinel")?(R=(0,n.jsx)(j.c,{}),et[95]=R):R=et[95],et[96]!==es||et[97]!==en||et[98]!==er?(P={databaseName:en,tableName:er,connectionId:es},et[96]=es,et[97]=en,et[98]=er,et[99]=P):P=et[99],et[100]!==ea||et[101]!==P?(Y=(0,n.jsx)(ey,{label:"Implicit Column Expression",helpText:"Column used for full text search if no property is specified in a Lucene-based search. Typically the message body of a log.",children:(0,n.jsx)(ep.Z,{tableConnection:P,control:ea,name:"implicitColumnExpression",placeholder:"Body"})}),et[100]=ea,et[101]=P,et[102]=Y):Y=et[102],et[103]===Symbol.for("react.memo_cache_sentinel")?(K=(0,n.jsx)(j.c,{}),et[103]=K):K=et[103],et[104]!==e?(W=(0,n.jsx)(ev,{...e,name:"highlightedRowAttributeExpressions",label:"Highlighted Attributes",helpText:"Expressions defining row-level attributes which are displayed in the row side panel for the selected row."}),X=(0,n.jsx)(ev,{...e,name:"highlightedTraceAttributeExpressions",label:"Highlighted Trace Attributes",helpText:"Expressions defining trace-level attributes which are displayed in the trace view for the selected trace."}),et[104]=e,et[105]=W,et[106]=X):(W=et[105],X=et[106]),et[107]===Symbol.for("react.memo_cache_sentinel")?(U=(0,n.jsx)(j.c,{}),et[107]=U):U=et[107],et[108]!==e?(Q=(0,n.jsx)(ew,{...e}),et[108]=e,et[109]=Q):Q=et[109],et[110]!==v||et[111]!==E||et[112]!==_||et[113]!==T||et[114]!==$||et[115]!==H||et[116]!==V||et[117]!==M||et[118]!==Z||et[119]!==O||et[120]!==B||et[121]!==Y||et[122]!==W||et[123]!==X||et[124]!==Q?(J=(0,n.jsxs)(d.B,{gap:"sm",style:v,children:[w,E,_,T,$,H,V,D,M,Z,O,B,R,Y,K,W,X,U,Q]}),et[110]=v,et[111]=E,et[112]=_,et[113]=T,et[114]=$,et[115]=H,et[116]=V,et[117]=M,et[118]=Z,et[119]=O,et[120]=B,et[121]=Y,et[122]=W,et[123]=X,et[124]=Q,et[125]=J):J=et[125],et[126]!==y||et[127]!==J?(ee=(0,n.jsxs)(n.Fragment,{children:[y,J]}),et[126]=y,et[127]=J,et[128]=ee):ee=et[128],ee}function eA(e){let t,a,s,o,i,c,m,u,h,p,b,f,g,y,S,v,w,C,E,N,_,z,T,A,$,k,F,H,L,V,D,M,Z,q,O,G,B,R,P,Y,K,W,X,U,Q,J,ee,et=(0,r.c)(159),{control:ea}=e;et[0]!==ea?(t={control:ea,name:"from.databaseName",defaultValue:eb},et[0]=ea,et[1]=t):t=et[1];let en=(0,l.FH)(t);et[2]!==ea?(a={control:ea,name:"from.tableName"},et[2]=ea,et[3]=a):a=et[3];let er=(0,l.FH)(a);et[4]!==ea?(s={control:ea,name:"connection"},et[4]=ea,et[5]=s):s=et[5];let es=(0,l.FH)(s);return et[6]!==es||et[7]!==en||et[8]!==er?(o={databaseName:en,tableName:er,connectionId:es},et[6]=es,et[7]=en,et[8]=er,et[9]=o):o=et[9],et[10]!==ea||et[11]!==o?(i=(0,n.jsx)(ey,{label:"Timestamp Column",helpText:"DateTime column or expression defines the start of the span",children:(0,n.jsx)(ep.Z,{tableConnection:o,control:ea,name:"timestampValueExpression",placeholder:"Timestamp",disableKeywordAutocomplete:!0})}),et[10]=ea,et[11]=o,et[12]=i):i=et[12],et[13]!==es||et[14]!==en||et[15]!==er?(c={databaseName:en,tableName:er,connectionId:es},et[13]=es,et[14]=en,et[15]=er,et[16]=c):c=et[16],et[17]!==ea||et[18]!==c?(m=(0,n.jsx)(ey,{label:"Default Select",helpText:"Default columns selected in search results (this can be customized per search later)",children:(0,n.jsx)(ep.Z,{tableConnection:c,control:ea,name:"defaultTableSelectExpression",placeholder:"Timestamp, ServiceName, StatusCode, Duration, SpanName"})}),et[17]=ea,et[18]=c,et[19]=m):m=et[19],et[20]===Symbol.for("react.memo_cache_sentinel")?(u=(0,n.jsx)(j.c,{}),et[20]=u):u=et[20],et[21]!==es||et[22]!==en||et[23]!==er?(h={databaseName:en,tableName:er,connectionId:es},et[21]=es,et[22]=en,et[23]=er,et[24]=h):h=et[24],et[25]!==ea||et[26]!==h?(p=(0,n.jsx)(ey,{label:"Duration Expression",children:(0,n.jsx)(ep.Z,{tableConnection:h,control:ea,name:"durationExpression",placeholder:"Duration Column"})}),et[25]=ea,et[26]=h,et[27]=p):p=et[27],et[28]!==ea?(b=(0,n.jsx)(ey,{label:"Duration Precision",children:(0,n.jsx)(x.a,{mx:"xl",children:(0,n.jsx)(l.xI,{control:ea,name:"durationPrecision",render:e$})})}),et[28]=ea,et[29]=b):b=et[29],et[30]!==es||et[31]!==en||et[32]!==er?(f={databaseName:en,tableName:er,connectionId:es},et[30]=es,et[31]=en,et[32]=er,et[33]=f):f=et[33],et[34]!==ea||et[35]!==f?(g=(0,n.jsx)(ey,{label:"Trace Id Expression",children:(0,n.jsx)(ep.Z,{tableConnection:f,control:ea,name:"traceIdExpression",placeholder:"TraceId"})}),et[34]=ea,et[35]=f,et[36]=g):g=et[36],et[37]!==es||et[38]!==en||et[39]!==er?(y={databaseName:en,tableName:er,connectionId:es},et[37]=es,et[38]=en,et[39]=er,et[40]=y):y=et[40],et[41]!==ea||et[42]!==y?(S=(0,n.jsx)(ey,{label:"Span Id Expression",children:(0,n.jsx)(ep.Z,{tableConnection:y,control:ea,name:"spanIdExpression",placeholder:"SpanId"})}),et[41]=ea,et[42]=y,et[43]=S):S=et[43],et[44]!==es||et[45]!==en||et[46]!==er?(v={databaseName:en,tableName:er,connectionId:es},et[44]=es,et[45]=en,et[46]=er,et[47]=v):v=et[47],et[48]!==ea||et[49]!==v?(w=(0,n.jsx)(ey,{label:"Parent Span Id Expression",children:(0,n.jsx)(ep.Z,{tableConnection:v,control:ea,name:"parentSpanIdExpression",placeholder:"ParentSpanId"})}),et[48]=ea,et[49]=v,et[50]=w):w=et[50],et[51]!==es||et[52]!==en||et[53]!==er?(C={databaseName:en,tableName:er,connectionId:es},et[51]=es,et[52]=en,et[53]=er,et[54]=C):C=et[54],et[55]!==ea||et[56]!==C?(E=(0,n.jsx)(ey,{label:"Span Name Expression",children:(0,n.jsx)(ep.Z,{tableConnection:C,control:ea,name:"spanNameExpression",placeholder:"SpanName"})}),et[55]=ea,et[56]=C,et[57]=E):E=et[57],et[58]!==es||et[59]!==en||et[60]!==er?(N={databaseName:en,tableName:er,connectionId:es},et[58]=es,et[59]=en,et[60]=er,et[61]=N):N=et[61],et[62]!==ea||et[63]!==N?(_=(0,n.jsx)(ey,{label:"Span Kind Expression",children:(0,n.jsx)(ep.Z,{tableConnection:N,control:ea,name:"spanKindExpression",placeholder:"SpanKind"})}),et[62]=ea,et[63]=N,et[64]=_):_=et[64],et[65]===Symbol.for("react.memo_cache_sentinel")?(z=(0,n.jsx)(j.c,{}),et[65]=z):z=et[65],et[66]!==ea?(T=(0,n.jsx)(ey,{label:"Correlated Log Source",helpText:"HyperDX Source for logs associated with traces. Optional",children:(0,n.jsx)(I.W,{control:ea,name:"logSourceId"})}),et[66]=ea,et[67]=T):T=et[67],et[68]!==ea?(A=(0,n.jsx)(ey,{label:"Correlated Session Source",helpText:"HyperDX Source for sessions associated with traces. Optional",children:(0,n.jsx)(I.W,{control:ea,name:"sessionSourceId"})}),et[68]=ea,et[69]=A):A=et[69],et[70]!==ea?($=(0,n.jsx)(ey,{label:"Correlated Metric Source",helpText:"HyperDX Source for metrics associated with traces. Optional",children:(0,n.jsx)(I.W,{control:ea,name:"metricSourceId"})}),et[70]=ea,et[71]=$):$=et[71],et[72]!==es||et[73]!==en||et[74]!==er?(k={databaseName:en,tableName:er,connectionId:es},et[72]=es,et[73]=en,et[74]=er,et[75]=k):k=et[75],et[76]!==ea||et[77]!==k?(F=(0,n.jsx)(ey,{label:"Status Code Expression",children:(0,n.jsx)(ep.Z,{tableConnection:k,control:ea,name:"statusCodeExpression",placeholder:"StatusCode"})}),et[76]=ea,et[77]=k,et[78]=F):F=et[78],et[79]!==es||et[80]!==en||et[81]!==er?(H={databaseName:en,tableName:er,connectionId:es},et[79]=es,et[80]=en,et[81]=er,et[82]=H):H=et[82],et[83]!==ea||et[84]!==H?(L=(0,n.jsx)(ey,{label:"Status Message Expression",children:(0,n.jsx)(ep.Z,{tableConnection:H,control:ea,name:"statusMessageExpression",placeholder:"StatusMessage"})}),et[83]=ea,et[84]=H,et[85]=L):L=et[85],et[86]!==es||et[87]!==en||et[88]!==er?(V={databaseName:en,tableName:er,connectionId:es},et[86]=es,et[87]=en,et[88]=er,et[89]=V):V=et[89],et[90]!==ea||et[91]!==V?(D=(0,n.jsx)(ey,{label:"Service Name Expression",children:(0,n.jsx)(ep.Z,{tableConnection:V,control:ea,name:"serviceNameExpression",placeholder:"ServiceName"})}),et[90]=ea,et[91]=V,et[92]=D):D=et[92],et[93]!==es||et[94]!==en||et[95]!==er?(M={databaseName:en,tableName:er,connectionId:es},et[93]=es,et[94]=en,et[95]=er,et[96]=M):M=et[96],et[97]!==ea||et[98]!==M?(Z=(0,n.jsx)(ey,{label:"Resource Attributes Expression",children:(0,n.jsx)(ep.Z,{tableConnection:M,control:ea,name:"resourceAttributesExpression",placeholder:"ResourceAttributes"})}),et[97]=ea,et[98]=M,et[99]=Z):Z=et[99],et[100]!==es||et[101]!==en||et[102]!==er?(q={databaseName:en,tableName:er,connectionId:es},et[100]=es,et[101]=en,et[102]=er,et[103]=q):q=et[103],et[104]!==ea||et[105]!==q?(O=(0,n.jsx)(ey,{label:"Event Attributes Expression",children:(0,n.jsx)(ep.Z,{tableConnection:q,control:ea,name:"eventAttributesExpression",placeholder:"SpanAttributes"})}),et[104]=ea,et[105]=q,et[106]=O):O=et[106],et[107]!==es||et[108]!==en||et[109]!==er?(G={databaseName:en,tableName:er,connectionId:es},et[107]=es,et[108]=en,et[109]=er,et[110]=G):G=et[110],et[111]!==ea||et[112]!==G?(B=(0,n.jsx)(ey,{label:"Span Events Expression",helpText:"Expression to extract span events. Used to capture events associated with spans. Expected to be Nested ( Timestamp DateTime64(9), Name LowCardinality(String), Attributes Map(LowCardinality(String), String)",children:(0,n.jsx)(ep.Z,{tableConnection:G,control:ea,name:"spanEventsValueExpression",placeholder:"Events"})}),et[111]=ea,et[112]=G,et[113]=B):B=et[113],et[114]!==es||et[115]!==en||et[116]!==er?(R={databaseName:en,tableName:er,connectionId:es},et[114]=es,et[115]=en,et[116]=er,et[117]=R):R=et[117],et[118]!==ea||et[119]!==R?(P=(0,n.jsx)(ey,{label:"Implicit Column Expression",helpText:"Column used for full text search if no property is specified in a Lucene-based search. Typically the message body of a log.",children:(0,n.jsx)(ep.Z,{tableConnection:R,control:ea,name:"implicitColumnExpression",placeholder:"SpanName"})}),et[118]=ea,et[119]=R,et[120]=P):P=et[120],et[121]!==es||et[122]!==en||et[123]!==er?(Y={databaseName:en,tableName:er,connectionId:es},et[121]=es,et[122]=en,et[123]=er,et[124]=Y):Y=et[124],et[125]!==ea||et[126]!==Y?(K=(0,n.jsx)(ey,{label:"Displayed Timestamp Column",helpText:"This DateTime column is used to display and order search results.",children:(0,n.jsx)(ep.Z,{tableConnection:Y,control:ea,name:"displayedTimestampValueExpression",disableKeywordAutocomplete:!0})}),et[125]=ea,et[126]=Y,et[127]=K):K=et[127],et[128]===Symbol.for("react.memo_cache_sentinel")?(W=(0,n.jsx)(j.c,{}),et[128]=W):W=et[128],et[129]!==e?(X=(0,n.jsx)(ev,{...e,name:"highlightedRowAttributeExpressions",label:"Highlighted Attributes",helpText:"Expressions defining row-level attributes which are displayed in the row side panel for the selected row"}),U=(0,n.jsx)(ev,{...e,name:"highlightedTraceAttributeExpressions",label:"Highlighted Trace Attributes",helpText:"Expressions defining trace-level attributes which are displayed in the trace view for the selected trace."}),et[129]=e,et[130]=X,et[131]=U):(X=et[130],U=et[131]),et[132]===Symbol.for("react.memo_cache_sentinel")?(Q=(0,n.jsx)(j.c,{}),et[132]=Q):Q=et[132],et[133]!==e?(J=(0,n.jsx)(ew,{...e}),et[133]=e,et[134]=J):J=et[134],et[135]!==b||et[136]!==g||et[137]!==S||et[138]!==w||et[139]!==E||et[140]!==_||et[141]!==T||et[142]!==A||et[143]!==$||et[144]!==F||et[145]!==L||et[146]!==D||et[147]!==Z||et[148]!==O||et[149]!==B||et[150]!==P||et[151]!==i||et[152]!==K||et[153]!==X||et[154]!==U||et[155]!==J||et[156]!==m||et[157]!==p?(ee=(0,n.jsxs)(d.B,{gap:"sm",children:[i,m,u,p,b,g,S,w,E,_,z,T,A,$,F,L,D,Z,O,B,P,K,W,X,U,Q,J]}),et[135]=b,et[136]=g,et[137]=S,et[138]=w,et[139]=E,et[140]=_,et[141]=T,et[142]=A,et[143]=$,et[144]=F,et[145]=L,et[146]=D,et[147]=Z,et[148]=O,et[149]=B,et[150]=P,et[151]=i,et[152]=K,et[153]=X,et[154]=U,et[155]=J,et[156]=m,et[157]=p,et[158]=ee):ee=et[158],ee}function e$(e){let{field:t}=e,{onChange:a,value:r}=t;return(0,n.jsx)("div",{style:{width:"90%",marginBottom:8},children:(0,n.jsx)(v.A,{color:"green",defaultValue:0,min:0,max:9,marks:[{value:0,label:"Seconds"},{value:3,label:"Millisecond"},{value:6,label:"Microsecond"},{value:9,label:"Nanosecond"}],value:r,onChange:a})})}function ek({control:e}){let t=(0,l.FH)({control:e,name:"from.databaseName",defaultValue:eb}),a=(0,l.FH)({control:e,name:"connection"}),r=(0,l.FH)({control:e,name:"from.tableName"}),o=(0,s.useRef)(r),i=(0,V.Ge)();return(0,s.useEffect)(()=>{(async()=>{try{r&&r!==o.current&&(o.current=r,await (0,D.Al)({databaseName:t,tableName:r,connectionId:a,metadata:i})||_.$e.show({color:"red",message:`${r} is not a valid Sessions schema.`}))}catch(e){console.error(e),_.$e.show({color:"red",message:e.message})}})()},[r,t,a,i]),(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(d.B,{gap:"sm",children:[(0,n.jsx)(ey,{label:"Correlated Trace Source",helpText:"HyperDX Source for traces associated with sessions. Required",children:(0,n.jsx)(I.W,{control:e,name:"traceSourceId"})}),(0,n.jsx)(ey,{label:"Timestamp Column",helpText:"DateTime column or expression that is part of your table's primary key.",children:(0,n.jsx)(ep.Z,{tableConnection:{databaseName:t,tableName:r,connectionId:a},control:e,name:"timestampValueExpression",disableKeywordAutocomplete:!0})})]})})}function eI({control:e,setValue:t}){let a=(0,l.FH)({control:e,name:"from.databaseName",defaultValue:eb}),r=(0,l.FH)({control:e,name:"connection"}),o=(0,l.FH)({control:e,name:"metricTables"}),c=(0,s.useRef)(o),m=(0,V.Ge)();return(0,s.useEffect)(()=>{for(let[e,a]of Object.entries(eg))t(e,a)},[t]),(0,s.useEffect)(()=>{(async()=>{try{if(o&&c.current)for(let e of Object.values(i.SX)){let t=o[e],n=c.current[e];t!==n&&(await (0,D.fS)({databaseName:a,tableName:t,connectionId:r,metricType:e,metadata:m})||_.$e.show({color:"red",message:`${t} is not a valid OTEL ${e} schema.`}))}c.current=o}catch(e){console.error(e),_.$e.show({color:"red",message:e.message})}})()},[o,a,r,m]),(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(d.B,{gap:"sm",children:[Object.values(i.SX).map(t=>(0,n.jsx)(ey,{label:`${t} Table`,helpText:t===i.SX.ExponentialHistogram||t===i.SX.Summary?`Table containing ${t.toLowerCase()} metrics data. Note: not yet fully supported by HyperDX`:`Table containing ${t.toLowerCase()} metrics data`,children:(0,n.jsx)(el,{connectionId:r,database:a,control:e,name:`metricTables.${t.toLowerCase()}`})},t.toLowerCase())),(0,n.jsx)(ey,{label:"Correlated Log Source",helpText:"HyperDX Source for logs associated with metrics. Optional",children:(0,n.jsx)(I.W,{control:e,name:"logSourceId"})})]})})}function eF(e){let t=(0,r.c)(12),{control:a,setValue:s,kind:l}=e;switch(l){case i.GL.Log:{let e;return t[0]!==a||t[1]!==s?(e=(0,n.jsx)(eT,{control:a,setValue:s}),t[0]=a,t[1]=s,t[2]=e):e=t[2],e}case i.GL.Trace:{let e;return t[3]!==a||t[4]!==s?(e=(0,n.jsx)(eA,{control:a,setValue:s}),t[3]=a,t[4]=s,t[5]=e):e=t[5],e}case i.GL.Session:{let e;return t[6]!==a||t[7]!==s?(e=(0,n.jsx)(ek,{control:a,setValue:s}),t[6]=a,t[7]=s,t[8]=e):e=t[8],e}case i.GL.Metric:{let e;return t[9]!==a||t[10]!==s?(e=(0,n.jsx)(eI,{control:a,setValue:s}),t[9]=a,t[10]=s,t[11]=e):e=t[11],e}}}function eH({sourceId:e,onSave:t,onCreate:a,isNew:r=!1,defaultName:o="",onCancel:m}){let{data:u}=(0,D.Fo)({id:e}),{data:x}=(0,H.ZY)(),{control:j,setValue:y,handleSubmit:v,resetField:C,setError:E,clearErrors:N}=(0,l.mN)({defaultValues:{kind:i.GL.Log,name:o,connection:x?.[0]?.id,from:{databaseName:"default",tableName:""},querySettings:u?.querySettings},values:u,resetOptions:{keepDirtyValues:!0,keepErrors:!0}}),z=(0,l.FH)({control:j,name:"connection",defaultValue:u?.connection}),T=(0,l.FH)({control:j,name:"from.databaseName",defaultValue:u?.from?.databaseName||eb}),k=(0,l.FH)({control:j,name:"from.tableName",defaultValue:u?.from?.tableName}),I=(0,l.FH)({control:j,name:"kind",defaultValue:u?.kind||i.GL.Log}),L=(0,s.useRef)(k),M=(0,V.Ge)();(0,s.useEffect)(()=>{(async()=>{try{if(k!==L.current&&(L.current=k,null!=z&&null!=T&&(I===i.GL.Metric||null!=k))){let e=await (0,D.Ys)({databaseName:T,tableName:I!==i.GL.Metric?k:"",connectionId:z,metadata:M});Object.keys(e).length>0&&_.$e.show({color:"green",message:"Automatically inferred source configuration from table schema."}),Object.entries(e).forEach(([e,t])=>{C(e,{keepDirty:!0,defaultValue:t})})}}catch(e){console.error(e)}})()},[k,z,T,I,C,M]),(0,s.useEffect)(()=>{C("connection",{defaultValue:x?.[0]?.id})},[x,C]);let Z=(0,l.FH)({control:j,name:"kind",defaultValue:u?.kind||i.GL.Log}),q=(0,D.nd)(),O=(0,D.sr)(),G=(0,D.YI)(),{data:B}=(0,D.oE)(),R=(0,l.FH)({control:j,name:"id"}),P=(0,l.FH)({control:j,name:"logSourceId"}),Y=(0,l.FH)({control:j,name:"traceSourceId"}),K=(0,l.FH)({control:j,name:"metricSourceId"}),U=(0,l.FH)({control:j,name:"traceSourceId"}),Q=(0,s.useRef)(P),J=(0,s.useRef)(Y),ee=(0,s.useRef)(K),ea=(0,s.useRef)(U);(0,s.useEffect)(()=>{(async()=>{if(!R||!B||!Z)return;let e=ej[Z];if(!e)return;let t=[];for(let{name:a,value:n}of(P!==Q.current&&(Q.current=P,t.push({name:"logSourceId",value:P??void 0})),Y!==J.current&&(J.current=Y,t.push({name:"traceSourceId",value:Y??void 0})),K!==ee.current&&(ee.current=K,t.push({name:"metricSourceId",value:K??void 0})),U!==ea.current&&Z===i.GL.Session&&(ea.current=U,t.push({name:"traceSourceId",value:U??void 0})),t))if(a in e)for(let{targetKind:t,targetField:r}of e[a]){let e=B.find(e=>e.kind===t&&e[r]===R);if(e&&e.id!==n&&await O.mutateAsync({source:{...e,[r]:void 0}}),n){let e=B.find(e=>e.id===n);e&&e.kind===t&&!e[r]&&await O.mutateAsync({source:{...e,[r]:R}})}}})()},[P,Y,K,U,Z,R,B,O]);let en=(0,i.z1)({id:!0}),er=(0,s.useCallback)(({errors:e},t)=>{let a=[];for(let n of(console.debug(`[${t}] SourceForm validation error`,JSON.stringify(e)),e)){let e=n.path.join(".");E(e,{...n});let t="Required"===n.message?`${e}: ${n.message}`:n.message;a.push(t)}_.$e.show({color:"red",message:(0,n.jsxs)(d.B,{children:[(0,n.jsx)(c.E,{size:"sm",children:(0,n.jsx)("b",{children:"Failed to create source"})}),a.map((e,t)=>(0,n.jsxs)(c.E,{size:"sm",children:["✖ ",e]},t))]})})},[E]),es=(0,s.useCallback)(()=>{N(),v(async e=>{let t=en.safeParse(e);t.error?er(t.error,"create"):q.mutate({source:e},{onSuccess:async e=>{let t=ej[e.kind];if(t&&B)for(let[a,n]of Object.entries(t)){let t=e[a];if(t)for(let{targetKind:a,targetField:r}of n){let n=B.find(e=>e.id===t);n&&n.kind===a&&!n[r]&&await O.mutateAsync({source:{...n,[r]:e.id}})}}a?.(e),_.$e.show({color:"green",message:"Source created"})},onError:e=>{_.$e.show({color:"red",message:`Failed to create source - ${e.message}`})}})})()},[N,er,en,v,q,a,B,O]),eo=(0,s.useCallback)(()=>{N(),v(e=>{let a=en.safeParse(e);a.error?er(a.error,"save"):O.mutate({source:e},{onSuccess:()=>{t?.(),_.$e.show({color:"green",message:"Source updated"})},onError:()=>{_.$e.show({color:"red",message:"Failed to update source"})}})})()},[v,O,t,N,er,en]),ei=(0,l.FH)({control:j,name:"from.databaseName",defaultValue:u?.from?.databaseName||eb}),ec=(0,l.FH)({control:j,name:"connection",defaultValue:u?.connection}),{fields:ed,append:em,remove:eu}=(0,l.jz)({control:j,name:"querySettings"});return(0,n.jsxs)("div",{style:{},children:[(0,n.jsxs)(d.B,{gap:"md",mb:"md",children:[(0,n.jsx)(c.E,{mb:"lg",children:"Source Settings"}),(0,n.jsx)(ey,{label:"Name",children:(0,n.jsx)(eh.t4,{control:j,name:"name",rules:{required:"Name is required"}})}),(0,n.jsx)(ey,{label:"Source Data Type",children:(0,n.jsx)(l.xI,{control:j,name:"kind",render:({field:{onChange:e,value:t}})=>(0,n.jsx)(w.s.Group,{value:t,onChange:t=>e(t),withAsterisk:!0,children:(0,n.jsxs)(g.Y,{children:[(0,n.jsx)(w.s,{value:i.GL.Log,label:"Log"}),(0,n.jsx)(w.s,{value:i.GL.Trace,label:"Trace"}),F.Fm&&(0,n.jsx)(w.s,{value:i.GL.Metric,label:"OTEL Metrics"}),F.vN&&(0,n.jsx)(w.s,{value:i.GL.Session,label:"Session"})]})})})}),(0,n.jsx)(ey,{label:"Server Connection",children:(0,n.jsx)(X.r,{control:j,name:"connection"})}),(0,n.jsx)(ey,{label:"Database",children:(0,n.jsx)(et,{control:j,name:"from.databaseName",connectionId:ec})}),Z!==i.GL.Metric&&(0,n.jsx)(ey,{label:"Table",children:(0,n.jsx)(el,{database:ei,control:j,name:"from.tableName",connectionId:ec,rules:{required:"Table is required"}})}),(0,n.jsxs)(ey,{label:(0,n.jsx)(S.M,{href:"https://clickhouse.com/docs/operations/settings/settings",size:"sm",target:"_blank",children:"Query Settings"}),helpText:"Query-level Session Settings that will be added to each query for this source.",children:[(0,n.jsx)(p.x,{columns:11,children:ed.map((e,t)=>(0,n.jsxs)(s.Fragment,{children:[(0,n.jsx)(p.x.Col,{span:5,pe:0,children:(0,n.jsx)(eh.t4,{placeholder:"Setting",control:j,name:`querySettings.${t}.setting`})}),(0,n.jsx)(p.x.Col,{span:5,pe:0,children:(0,n.jsx)(eh.t4,{placeholder:"Value",control:j,name:`querySettings.${t}.value`})}),(0,n.jsx)(p.x.Col,{span:1,ps:0,children:(0,n.jsx)(h.s,{align:"center",justify:"center",gap:"sm",h:"100%",children:(0,n.jsx)(b.M,{variant:"subtle",color:"gray",title:"Remove setting",onClick:()=>eu(t),children:(0,n.jsx)(A.A,{size:16})})})})]},e.id))}),(0,n.jsxs)(f.$,{variant:"secondary",size:"sm",color:"gray",mt:"md",disabled:ed.length>=10,onClick:()=>{ed.length<10&&em({setting:"",value:""})},children:[(0,n.jsx)($.A,{size:14,className:"me-2"}),"Add Setting"]})]})]}),(0,n.jsx)(eF,{control:j,setValue:y,kind:Z}),(0,n.jsxs)(g.Y,{justify:"flex-end",mt:"lg",children:[m&&(0,n.jsx)(f.$,{variant:"secondary",onClick:m,size:"xs",children:"Cancel"}),r?(0,n.jsx)(f.$,{variant:"primary",onClick:es,size:"xs",loading:q.isPending,children:"Save New Source"}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(W.A,{onDelete:()=>G.mutate({id:e??""})}),(0,n.jsx)(f.$,{variant:"primary",onClick:eo,size:"xs",loading:q.isPending,children:"Save Source"})]})]})]})}},43567:(e,t,a)=>{"use strict";a.d(t,{B:()=>_});var n,r=a(6029),s=a(75155),l=a(55729),o=a(1909),i=a(88459),c=a(43517),d=a(60481),m=a(25062),u=a(78253),h=a(23935),x=a(3635),p=a(63085),b=a(34834),f=a(60665),g=a(95316),j=a(97702),y=a(6876),S=a(71781),v=a(98142),w=a(93108),C=a(92917),E=a(24207),N=((n=N||{}).Loading="loading",n.Valid="valid",n.Invalid="invalid",n);function _(e){let t,a,n,N,_,A,$,k,I,F,H,L,V,D,M,Z,q,O,G,B,R,P,Y,K,W,X,U,Q,J,ee,et,ea,en,er,es=(0,s.c)(98),{connection:el,isNew:eo,onSave:ei,onClose:ec,showCancelButton:ed,showDeleteButton:em}=e,eu=void 0!==ed&&ed,eh=void 0!==em&&em;es[0]!==el.host||es[1]!==el.hyperdxSettingPrefix||es[2]!==el.id||es[3]!==el.name||es[4]!==el.password||es[5]!==el.username?(t={defaultValues:{id:el.id,name:el.name,host:el.host,username:el.username,password:el.password,hyperdxSettingPrefix:el.hyperdxSettingPrefix}},es[0]=el.host,es[1]=el.hyperdxSettingPrefix,es[2]=el.id,es[3]=el.name,es[4]=el.password,es[5]=el.username,es[6]=t):t=es[6];let{control:ex,handleSubmit:ep,resetField:eb,getValues:ef,formState:eg}=(0,o.mN)(t),ej=(0,w.Ir)(),ey=(0,w.Zm)(),eS=(0,w.PQ)();es[7]!==el.id||es[8]!==ej||es[9]!==eo||es[10]!==ei||es[11]!==ey?(a=e=>{let t={...e,host:(0,C.KL)(e.host),hyperdxSettingPrefix:e.hyperdxSettingPrefix||null};if(eo){let{id:e,...a}=t;ej.mutate({connection:a},{onSuccess:()=>{f.$e.show({color:"green",message:"Connection created successfully"}),ei?.()},onError:T})}else ey.mutate({connection:t,id:el.id},{onSuccess:()=>{f.$e.show({color:"green",message:"Connection updated successfully"}),ei?.()},onError:z})},es[7]=el.id,es[8]=ej,es[9]=eo,es[10]=ei,es[11]=ey,es[12]=a):a=es[12];let ev=a,[ew,eC]=(0,l.useState)(!1),[eE,eN]=(0,l.useState)(!1);es[13]!==ef?(n={getValues:ef},es[13]=ef,es[14]=n):n=es[14];let{testConnectionState:e_,handleTestConnection:ez}=function({getValues:e}){let t=y.Ay.useTestConnection(),[a,n]=(0,l.useState)(null),r=(0,l.useCallback)(async()=>{let r=e("host"),s=e("username"),l=e("password"),o=(0,C.KL)(r);if(!a){if(n("loading"),v.VO)try{await (0,i.Kc)({host:o,username:s,password:l})?n("valid"):(n("invalid"),f.$e.show({color:"red",message:"Connection test failed",autoClose:5e3}))}catch(e){console.error(e),n("invalid"),f.$e.show({color:"red",message:e.message,autoClose:5e3})}else try{let e=await t.mutateAsync({host:o,username:s,password:l});e.success?n("valid"):(n("invalid"),f.$e.show({color:"red",message:e.error||"Connection test failed",autoClose:5e3}))}catch(t){let e=await t.response?.json();n("invalid"),f.$e.show({color:"red",message:e?.error??"Failed to test connection",autoClose:5e3})}setTimeout(()=>{n(null)},2e3)}},[e,t,a]);return{testConnectionState:a,handleTestConnection:r}}(n);es[15]!==ep||es[16]!==ev?(N=e=>{e.preventDefault(),ep(e=>{ev(e)})()},es[15]=ep,es[16]=ev,es[17]=N):N=es[17],es[18]===Symbol.for("react.memo_cache_sentinel")?(_=(0,r.jsx)(c.E,{size:"xs",mb:"xs",children:"Connection Name"}),es[18]=_):_=es[18],es[19]===Symbol.for("react.memo_cache_sentinel")?(A={required:"Connection name is required"},es[19]=A):A=es[19],es[20]!==ex?($=(0,r.jsxs)(d.a,{children:[_,(0,r.jsx)(S.t4,{"data-testid":"connection-name-input",name:"name",control:ex,placeholder:"My Clickhouse Server",rules:A})]}),es[20]=ex,es[21]=$):$=es[21],es[22]===Symbol.for("react.memo_cache_sentinel")?(k=(0,r.jsx)(c.E,{size:"xs",mb:"xs",children:"Host"}),es[22]=k):k=es[22],es[23]===Symbol.for("react.memo_cache_sentinel")?(I={required:"Host is required"},es[23]=I):I=es[23],es[24]!==ex?(F=(0,r.jsxs)(d.a,{children:[k,(0,r.jsx)(S.t4,{"data-testid":"connection-host-input",name:"host",control:ex,placeholder:"http://localhost:8123",rules:I})]}),es[24]=ex,es[25]=F):F=es[25],es[26]===Symbol.for("react.memo_cache_sentinel")?(H=(0,r.jsx)(c.E,{size:"xs",mb:"xs",children:"Username"}),es[26]=H):H=es[26],es[27]!==ex?(L=(0,r.jsxs)(d.a,{children:[H,(0,r.jsx)(S.t4,{"data-testid":"connection-username-input",name:"username",control:ex,placeholder:"Username (default: default)"})]}),es[27]=ex,es[28]=L):L=es[28],es[29]===Symbol.for("react.memo_cache_sentinel")?(V=(0,r.jsx)(c.E,{size:"xs",mb:"xs",children:"Password"}),es[29]=V):V=es[29],es[30]!==eo||es[31]!==ew?(D=!ew&&!eo&&(0,r.jsx)(m.$,{"data-testid":"update-password-button",variant:"secondary",onClick:()=>{eC(!0)},children:"Update Password"}),es[30]=eo,es[31]=ew,es[32]=D):D=es[32],es[33]!==ex||es[34]!==eo||es[35]!==eb||es[36]!==ew?(M=(ew||eo)&&(0,r.jsxs)(u.s,{align:"center",gap:"sm",children:[(0,r.jsx)(S.aJ,{"data-testid":"connection-password-input",style:{flexGrow:1},name:"password",control:ex,placeholder:"Password (default: blank)"}),!eo&&(0,r.jsx)(m.$,{"data-testid":"cancel-password-button",variant:"secondary",onClick:()=>{eC(!1),eb("password")},children:"Cancel"})]}),es[33]=ex,es[34]=eo,es[35]=eb,es[36]=ew,es[37]=M):M=es[37],es[38]!==D||es[39]!==M?(Z=(0,r.jsxs)(d.a,{children:[V,D,M]}),es[38]=D,es[39]=M,es[40]=Z):Z=es[40],es[41]!==eE?(q=!eE&&(0,r.jsx)(h.M,{underline:"always",onClick:()=>eN(!0),size:"xs",children:(0,r.jsxs)(x.Y,{gap:"xs",children:[(0,r.jsx)(g.A,{size:14}),"Advanced Settings"]})}),es[41]=eE,es[42]=q):q=es[42],es[43]!==eE?(O=eE&&(0,r.jsx)(m.$,{onClick:()=>eN(!1),size:"xs",variant:"subtle",children:"Hide Advanced Settings"}),es[43]=eE,es[44]=O):O=es[44],es[45]!==q||es[46]!==O?(G=(0,r.jsxs)(d.a,{children:[q,O]}),es[45]=q,es[46]=O,es[47]=G):G=es[47];let eT=eE?"block":"none";es[48]!==eT?(B={display:eT},es[48]=eT,es[49]=B):B=es[49],es[50]===Symbol.for("react.memo_cache_sentinel")?(R=(0,r.jsx)(c.E,{size:"xs",children:"Query Log Setting Prefix"}),es[50]=R):R=es[50],es[51]===Symbol.for("react.memo_cache_sentinel")?(P=(0,r.jsxs)(x.Y,{gap:"xs",mb:"xs",children:[R,(0,r.jsx)(p.m,{label:"Tracks query origins by adding the current user's email to ClickHouse queries (as {prefix}_user in system.query_log). Requires 'custom_settings_prefixes' in your ClickHouse config.xml to include this exact value, otherwise queries will be rejected.",color:"dark",c:"white",multiline:!0,maw:400,children:(0,r.jsx)(j.A,{size:16,className:"cursor-pointer"})})]}),es[51]=P):P=es[51],es[52]!==ex?(Y=(0,r.jsx)(S.t4,{"data-testid":"connection-setting-prefix-input",name:"hyperdxSettingPrefix",control:ex,placeholder:"hyperdx"}),es[52]=ex,es[53]=Y):Y=es[53],es[54]!==B||es[55]!==Y?(K=(0,r.jsxs)(d.a,{style:B,children:[P,Y]}),es[54]=B,es[55]=Y,es[56]=K):K=es[56];let eA=!eg.isValid,e$="invalid"===e_?"danger":"secondary",ek="loading"===e_;es[57]!==e_?(W="valid"===e_?(0,r.jsx)(r.Fragment,{children:"Connection successful"}):"invalid"===e_?(0,r.jsx)(r.Fragment,{children:"Unable to connect"}):"Test Connection",es[57]=e_,es[58]=W):W=es[58],es[59]!==ez||es[60]!==eA||es[61]!==e$||es[62]!==ek||es[63]!==W?(X=(0,r.jsx)(m.$,{disabled:eA,variant:e$,type:"button",onClick:ez,loading:ek,children:W}),es[59]=ez,es[60]=eA,es[61]=e$,es[62]=ek,es[63]=W,es[64]=X):X=es[64],es[65]!==eo||es[66]!==X?(U=(0,r.jsx)(p.m,{label:"\uD83D\uDD12 Password re-entry required for security",position:"right",disabled:eo,withArrow:!0,children:X}),es[65]=eo,es[66]=X,es[67]=U):U=es[67],es[68]!==ec||es[69]!==eu?(Q=ec&&eu&&(0,r.jsx)(m.$,{variant:"secondary",onClick:ec,children:"Cancel"}),es[68]=ec,es[69]=eu,es[70]=Q):Q=es[70],es[71]!==el.id||es[72]!==eS||es[73]!==eo||es[74]!==ec||es[75]!==eh?(J=!eo&&!1!==eh&&(0,r.jsx)(E.A,{onDelete:()=>eS.mutate({id:el.id},{onSuccess:()=>{ec?.()}})}),es[71]=el.id,es[72]=eS,es[73]=eo,es[74]=ec,es[75]=eh,es[76]=J):J=es[76];let eI=eo?ej.isPending:ey.isPending,eF=eo?"Create":"Save";return es[77]!==eI||es[78]!==eF?(ee=(0,r.jsxs)(m.$,{"data-testid":"connection-save-button",variant:"primary",type:"submit",loading:eI,children:[eF," Connection"]}),es[77]=eI,es[78]=eF,es[79]=ee):ee=es[79],es[80]!==Q||es[81]!==J||es[82]!==ee?(et=(0,r.jsxs)(x.Y,{gap:"xs",children:[Q,J,ee]}),es[80]=Q,es[81]=J,es[82]=ee,es[83]=et):et=es[83],es[84]!==U||es[85]!==et?(ea=(0,r.jsxs)(x.Y,{justify:"space-between",children:[U,et]}),es[84]=U,es[85]=et,es[86]=ea):ea=es[86],es[87]!==F||es[88]!==L||es[89]!==Z||es[90]!==G||es[91]!==K||es[92]!==ea||es[93]!==$?(en=(0,r.jsxs)(b.B,{gap:"md",children:[$,F,L,Z,G,K,ea]}),es[87]=F,es[88]=L,es[89]=Z,es[90]=G,es[91]=K,es[92]=ea,es[93]=$,es[94]=en):en=es[94],es[95]!==en||es[96]!==N?(er=(0,r.jsx)("form",{"data-testid":"connection-form",onSubmit:N,children:en}),es[95]=en,es[96]=N,es[97]=er):er=es[97],er}function z(){f.$e.show({color:"red",message:"Error updating connection, please check the host and credentials and try again.",autoClose:5e3})}function T(){f.$e.show({color:"red",message:"Error creating connection, please check the host and credentials and try again.",autoClose:5e3})}},52154:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var n=a(6029),r=a(75155),s=a(43517),l=a(78253);function o(e){let t,a,o,i,c,d,m,u=(0,r.c)(17),{language:h,onLanguageChange:x,showHotkey:p}=e;u[0]!==p?(t=p&&(0,n.jsx)(s.E,{size:"xxs",bg:"var(--color-bg-neutral)",c:"white",px:4,py:0,mr:4,lh:1.4,children:"/"}),u[0]=p,u[1]=t):t=u[1];let b="sql"===h?"var(--color-text-brand)":"gray";u[2]!==x?(a=()=>x("sql"),u[2]=x,u[3]=a):a=u[3],u[4]!==b||u[5]!==a?(o=(0,n.jsx)(s.E,{c:b,onClick:a,size:"xs",role:"button",children:"SQL"}),u[4]=b,u[5]=a,u[6]=o):o=u[6],u[7]===Symbol.for("react.memo_cache_sentinel")?(i=(0,n.jsx)(s.E,{size:"xs",children:"|"}),u[7]=i):i=u[7];let f="lucene"===h?"var(--color-text-brand)":"gray";return u[8]!==x?(c=()=>x("lucene"),u[8]=x,u[9]=c):c=u[9],u[10]!==f||u[11]!==c?(d=(0,n.jsx)(s.E,{size:"xs",role:"button",fw:500,c:f,onClick:c,children:"Lucene"}),u[10]=f,u[11]=c,u[12]=d):d=u[12],u[13]!==t||u[14]!==o||u[15]!==d?(m=(0,n.jsxs)(l.s,{wrap:"nowrap",gap:"xxxs",px:"sm",children:[t,o,i,d]}),u[13]=t,u[14]=o,u[15]=d,u[16]=m):m=u[16],m}},54970:(e,t,a)=>{"use strict";a.d(t,{v:()=>I});var n=a(6029),r=a(75155),s=a(55729),l=a(82641),o=a(62801),i=a(78253),c=a(94720),d=a(43517),m=a(25062),u=a(39603),h=a(92556),x=a(3635),p=a(76013),b=a(60481),f=a(92789),g=a(34834),j=a(28797),y=a(94502),S=a(17283),v=a(91758),w=a(58333),C=a(23474),E=a(23195),N=a(98142),_=a(93108),z=a(81973),T=a(92917),A=a(24314),$=a(76326),k=a.n($);function I(e){let t,a,$,I,F,H,L,V,D=(0,r.c)(53),{onAddSource:M,withCard:Z,withBorder:q,cardClassName:O,variant:G,showEmptyState:B}=e,R=void 0===Z||Z,P=void 0===q||q,Y=void 0===G?"compact":G,K=void 0===B||B,{data:W,isLoading:X,error:U,refetch:Q}=(0,_.ZY)(),{data:J,isLoading:ee,error:et,refetch:ea}=(0,z.oE)(),[en,er]=(0,s.useState)(null),[es,el]=(0,s.useState)(!1),eo=U||et;D[0]!==Q||D[1]!==ea?(t=()=>{Q(),ea()},D[0]=Q,D[1]=ea,D[2]=t):t=D[2];let ei=t,ec="compact"===Y?"sm":"md",ed="compact"===Y?"xs":"sm",em="compact"===Y?11:14,eu="compact"===Y?"xs":"sm",eh=R?o.Z:s.Fragment;D[3]!==O||D[4]!==P||D[5]!==R?(a=R?{withBorder:P,p:"md",radius:"sm",className:O??k().sourcesCard}:{},D[3]=O,D[4]=P,D[5]=R,D[6]=a):a=D[6];let ex=a;if(X||ee){let e,t;return D[7]===Symbol.for("react.memo_cache_sentinel")?(e=(0,n.jsxs)(i.s,{justify:"center",align:"center",py:"xl",children:[(0,n.jsx)(c.a,{size:"sm"}),(0,n.jsx)(d.E,{size:"sm",c:"dimmed",ml:"sm",children:"Loading sources..."})]}),D[7]=e):e=D[7],D[8]!==eh||D[9]!==ex?(t=(0,n.jsx)(eh,{...ex,children:e}),D[8]=eh,D[9]=ex,D[10]=t):t=D[10],t}if(eo){let e,t,a,r,s,l;D[11]===Symbol.for("react.memo_cache_sentinel")?(e=(0,n.jsx)(j.A,{size:16}),D[11]=e):e=D[11];let o=eo instanceof Error?eo.message:"An error occurred while loading data sources.";return D[12]!==o?(t=(0,n.jsx)(d.E,{size:"sm",mb:"sm",children:o}),D[12]=o,D[13]=t):t=D[13],D[14]===Symbol.for("react.memo_cache_sentinel")?(a=(0,n.jsx)(y.A,{size:14}),D[14]=a):a=D[14],D[15]!==ei?(r=(0,n.jsx)(m.$,{size:"xs",variant:"danger",leftSection:a,onClick:ei,children:"Retry"}),D[15]=ei,D[16]=r):r=D[16],D[17]!==r||D[18]!==t?(s=(0,n.jsxs)(u.F,{icon:e,title:"Failed to load sources",color:"red",variant:"light",children:[t,r]}),D[17]=r,D[18]=t,D[19]=s):s=D[19],D[20]!==eh||D[21]!==s||D[22]!==ex?(l=(0,n.jsx)(eh,{...ex,children:s}),D[20]=eh,D[21]=s,D[22]=ex,D[23]=l):l=D[23],l}let ep=!J||0===J.length;return D[24]!==es||D[25]!==ep||D[26]!==K?($=ep&&!es&&K&&(0,n.jsxs)(i.s,{direction:"column",align:"center",py:"xl",gap:"sm",children:[(0,n.jsx)(S.A,{size:32,color:"var(--color-text-muted)"}),(0,n.jsx)(h.h,{size:"sm",ta:"center",c:"var(--color-text-muted)",children:"No data sources configured yet."}),(0,n.jsx)(d.E,{size:"xs",ta:"center",c:"var(--color-text-muted)",children:"Add a source to start querying your data."})]}),D[24]=es,D[25]=ep,D[26]=K,D[27]=$):$=D[27],D[28]!==eu||D[29]!==W||D[30]!==en||D[31]!==em||D[32]!==J||D[33]!==ed||D[34]!==ec?(I=J?.map((e,t)=>(0,n.jsxs)(s.Fragment,{children:[(0,n.jsxs)(i.s,{justify:"space-between",align:"center",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)(d.E,{size:ec,fw:500,children:e.name}),(0,n.jsx)(d.E,{size:ed,c:"dimmed",mt:4,children:(0,n.jsxs)(x.Y,{gap:"xs",children:[(0,T.Zr)(e.kind),(0,n.jsxs)(x.Y,{gap:4,children:[(0,n.jsx)(v.A,{size:em}),W?.find(t=>t.id===e.connection)?.name]}),(0,n.jsx)(x.Y,{gap:4,children:e.from&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(S.A,{size:em}),e.from.databaseName,e.kind===l.GL.Metric?"":".",e.from.tableName]})})]})})]}),(0,n.jsx)(p.M,{variant:"secondary",size:eu,onClick:()=>er(en===e.id?null:e.id),children:en===e.id?(0,n.jsx)(w.A,{size:em+2}):(0,n.jsx)(C.A,{size:em+2})})]}),en===e.id&&(0,n.jsx)(b.a,{mt:"xs",children:(0,n.jsx)(A.Eb,{sourceId:e.id,onSave:()=>er(null)})}),t<(J?.length??0)-1&&(0,n.jsx)(f.c,{})]},e.id)),D[28]=eu,D[29]=W,D[30]=en,D[31]=em,D[32]=J,D[33]=ed,D[34]=ec,D[35]=I):I=D[35],D[36]!==es||D[37]!==J?(F=es&&(0,n.jsxs)(n.Fragment,{children:[J&&J.length>0&&(0,n.jsx)(f.c,{}),(0,n.jsx)(A.Eb,{isNew:!0,onCreate:()=>el(!1),onCancel:()=>el(!1)})]}),D[36]=es,D[37]=J,D[38]=F):F=D[38],D[39]!==eu||D[40]!==es||D[41]!==M||D[42]!==J?(H=!N.VO&&!es&&(0,n.jsx)(i.s,{justify:"flex-end",pt:J&&J.length>0?"md":0,children:(0,n.jsx)(m.$,{variant:"secondary",size:eu,leftSection:(0,n.jsx)(E.A,{size:14}),onClick:()=>{el(!0),M?.()},children:"Add source"})}),D[39]=eu,D[40]=es,D[41]=M,D[42]=J,D[43]=H):H=D[43],D[44]!==H||D[45]!==$||D[46]!==I||D[47]!==F?(L=(0,n.jsxs)(g.B,{gap:"md",children:[$,I,F,H]}),D[44]=H,D[45]=$,D[46]=I,D[47]=F,D[48]=L):L=D[48],D[49]!==eh||D[50]!==L||D[51]!==ex?(V=(0,n.jsx)(eh,{...ex,children:L}),D[49]=eh,D[50]=L,D[51]=ex,D[52]=V):V=D[52],V}},62453:(e,t,a)=>{"use strict";a.d(t,{r:()=>i});var n=a(6029),r=a(75155),s=a(91758),l=a(9211),o=a(93108);function i(e){let t,a,i,d,m,u,h=(0,r.c)(11);h[0]!==e?({size:a,...t}=e,h[0]=e,h[1]=t,h[2]=a):(t=h[1],a=h[2]);let{data:x}=(0,o.ZY)();h[3]!==x?(i=x?.map(c),h[3]=x,h[4]=i):i=h[4];let p=i;return h[5]===Symbol.for("react.memo_cache_sentinel")?(d={withinPortal:!1},h[5]=d):d=h[5],h[6]===Symbol.for("react.memo_cache_sentinel")?(m=(0,n.jsx)(s.A,{size:16}),h[6]=m):m=h[6],h[7]!==t||h[8]!==a||h[9]!==p?(u=(0,n.jsx)(l.A,{...t,allowDeselect:!1,data:p,comboboxProps:d,searchable:!0,placeholder:"Connection",leftSection:m,maxDropdownHeight:280,size:a}),h[7]=t,h[8]=a,h[9]=p,h[10]=u):u=h[10],u}function c(e){return{value:e.id,label:e.name}}},64467:(e,t,a)=>{"use strict";a.d(t,{Z:()=>w});var n=a(6029),r=a(75155),s=a(55729),l=a(1909),o=a(66692),i=a(95516),c=a(15215),d=a(36417),m=a(22623),u=a(43517),h=a(63085),x=a(78253),p=a(67747),b=a(95352),f=a(78550),g=a(92917),j=a(52154);let y="150px",S={lineNumbers:!1,foldGutter:!1,highlightActiveLine:!1,highlightActiveLineGutter:!1};function v({tableConnection:e,tableConnections:t,filterField:a,onChange:r,placeholder:l,onLanguageChange:v,language:w,onSubmit:C,error:E,value:N,size:_,label:z,disableKeywordAutocomplete:T,enableHotkey:A,tooltipText:$,additionalSuggestions:k=[],queryHistoryType:I,parentRef:F,allowMultiline:H=!1}){let{colorScheme:L}=(0,d.C)(),{data:V}=(0,f.Sh)((e?[e]:t)??[]),D=(0,s.useMemo)(()=>a?V?.filter(a):V,[V,a]),[M,Z]=(0,g.mk)(I),q=(0,s.useCallback)((e,t,a,n)=>{e.dispatch({changes:{from:t,to:a,insert:n}}),(0,i.N)(e),Z(n),C&&C()},[C,Z]),O=(0,s.useMemo)(()=>()=>({from:0,options:M.map(e=>({label:e,section:"Search History",type:"keyword",apply:(t,a,n,r)=>{q(t,n,r,e)}}))}),[M,q]),[G,B]=(0,s.useState)(!1),R=(0,s.useRef)(null),P=(0,s.useRef)(new b.xx),Y=(0,s.useCallback)(e=>{let t=e.state.doc.toString(),a=[...D?.map(e=>e.path.length>1?`${e.path[0]}['${e.path[1]}']`:e.path[0])??[],...k],n=(0,c.ll)({dialect:c.fy.define({keywords:a.join(" ")+(T?"":" AND OR NOT IN LIKE ILIKE BETWEEN ASC DESC intDiv intDivOrZero isNaN moduloOrZero abs empty notEmpty length arrayConcat has hasAll hasAny indexOf arrayCount countEqual arrayUnion arrayIntersect arrayMap arrayFilter arraySort flatten arrayCompact arrayMin arrayMax arraySum arrayAvg if multiIf floor ceiling truncate round timestamp toTimeZone toYear toMonth toWeek toDayOfYear toDayOfMonth toDayOfWeek toUnixTimestamp toTime lower upper substring trim dictGet dictGetOrDefault dictGetOrNull")})}),r=(0,i.yU)({compareCompletions:(e,t)=>0,override:[O]});e.dispatch({effects:P.current.reconfigure(t.length>0?n:r)})},[D,k,O,T]);(0,s.useEffect)(()=>{null!=R.current&&null!=R.current.view&&Y(R.current.view)},[Y]),(0,o.vC)("/",()=>{A&&R.current?.view?.focus()},{preventDefault:!0},[A]);let K=(0,s.useMemo)(()=>null==F?[]:[(0,b.vX)({parent:F,tooltipSpace:e=>{let t=e.dom.getBoundingClientRect(),a=F.getBoundingClientRect();return{...t,right:t.right??0,left:a.left??t.left,top:a.top??t.top,bottom:a.bottom??t.bottom}}})],[F]),W=(0,s.useMemo)(()=>[...K,b.Lz.baseTheme({"&.cm-editor.cm-focused":{outline:"0px solid transparent"},"&.cm-editor":{background:"transparent !important"},".cm-editor-multiline &.cm-editor":{maxHeight:y},"& .cm-tooltip-autocomplete":{whiteSpace:"nowrap",wordWrap:"break-word",maxWidth:"100%",backgroundColor:"var(--color-bg-field) !important",border:"1px solid var(--color-border) !important",borderRadius:"8px",boxShadow:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",padding:"4px"},"& .cm-tooltip-autocomplete > ul":{fontFamily:"inherit",maxHeight:"300px"},"& .cm-tooltip-autocomplete > ul > li":{padding:"4px 8px",borderRadius:"4px",cursor:"pointer",color:"var(--color-text)"},"& .cm-tooltip-autocomplete > ul > li[aria-selected]":{backgroundColor:"var(--color-bg-field-highlighted) !important",color:"var(--color-text-muted) !important"},"& .cm-tooltip-autocomplete .cm-completionLabel":{color:"var(--color-text)"},"& .cm-tooltip-autocomplete .cm-completionDetail":{color:"var(--color-text-muted)",fontStyle:"normal",marginLeft:"8px"},"& .cm-tooltip-autocomplete .cm-completionInfo":{backgroundColor:"var(--color-bg-field)",border:"1px solid var(--color-border)",borderRadius:"4px",padding:"8px",color:"var(--color-text)"},"& .cm-completionIcon":{width:"16px",marginRight:"6px",opacity:.7},"& .cm-scroller":{overflowX:"hidden"},".cm-editor-multiline & .cm-scroller":{maxHeight:y,overflowY:"auto"}}),...H?[b.Lz.lineWrapping]:[],P.current.of((0,c.ll)({upperCaseKeywords:!0})),b.Nb.highest(b.w4.of([{key:"Enter",run:e=>null!=C&&(I&&R?.current?.view&&Z(R?.current?.view.state.doc.toString()),C(),!0)},...H?[{key:"Shift-Enter",run:()=>!1}]:[]])),b.w4.of([{key:"Tab",run:i.$w}])],[H,C,I,Z,K]),X=(0,s.useCallback)(()=>{R?.current?.view&&(0,i.rB)(R.current.view)},[]);return(0,n.jsxs)(m.t,{flex:"auto",shadow:"none",style:{backgroundColor:"var(--color-bg-field)",border:`1px solid ${E?"var(--color-bg-danger)":"var(--color-border)"}`,display:"flex",alignItems:"center",minHeight:"xs"===_?30:36},ps:"4px",children:[null!=z&&(0,n.jsx)(u.E,{mx:"4px",size:"xs",fw:"bold",style:{whiteSpace:"nowrap"},component:"div",children:(0,n.jsx)(h.m,{label:$,disabled:!$,children:(0,n.jsxs)(x.s,{align:"center",gap:2,children:[z,$&&(0,n.jsx)(p.A,{size:20})]})})}),(0,n.jsx)("div",{style:{minWidth:10,width:"100%"},className:H?"cm-editor-multiline":"",children:(0,n.jsx)(b.Ay,{indentWithTab:!1,ref:R,value:N,onChange:r,theme:"dark"===L?"dark":"light",onFocus:(0,s.useCallback)(()=>{B(!0)},[B]),onBlur:(0,s.useCallback)(()=>{B(!1)},[B]),extensions:W,onCreateEditor:Y,basicSetup:S,placeholder:l,onClick:X})}),null!=v&&null!=w&&(0,n.jsx)(j.A,{showHotkey:A&&G,language:w,onLanguageChange:v})]})}let w=(0,s.memo)(function(e){let t,a,s,o,i,c,d=(0,r.c)(15);d[0]!==e?({placeholder:s,filterField:a,additionalSuggestions:t,queryHistoryType:i,...o}=e,d[0]=e,d[1]=t,d[2]=a,d[3]=s,d[4]=o,d[5]=i):(t=d[1],a=d[2],s=d[3],o=d[4],i=d[5]);let{field:m,fieldState:u}=(0,l.as)(o),h=m.value||o.defaultValue,x="";"string"==typeof h?x=h:void 0!==h&&console.error("SQLInlineEditor: value is not a string",h);let p=u.error?.message;return d[6]!==t||d[7]!==m.onChange||d[8]!==a||d[9]!==s||d[10]!==o||d[11]!==i||d[12]!==x||d[13]!==p?(c=(0,n.jsx)(v,{filterField:a,onChange:m.onChange,placeholder:s,value:x,error:p,additionalSuggestions:t,queryHistoryType:i,...o}),d[6]=t,d[7]=m.onChange,d[8]=a,d[9]=s,d[10]=o,d[11]=i,d[12]=x,d[13]=p,d[14]=c):c=d[14],c})},71781:(e,t,a)=>{"use strict";a.d(t,{M7:()=>d,aJ:()=>u,mh:()=>h,t4:()=>m});var n=a(6029),r=a(75155);a(55729);var s=a(1909),l=a(59029),o=a(96061),i=a(45544),c=a(47268);function d(e){let t,a,o,i,c,d,m=(0,r.c)(12);return m[0]!==e?({name:a,control:t,rules:i,...o}=e,m[0]=e,m[1]=t,m[2]=a,m[3]=o,m[4]=i):(t=m[1],a=m[2],o=m[3],i=m[4]),m[5]!==o?(c=e=>{let{field:t,fieldState:a}=e,{error:r}=a;return(0,n.jsx)(l.k,{...o,...t,error:r?.message})},m[5]=o,m[6]=c):c=m[6],m[7]!==t||m[8]!==a||m[9]!==i||m[10]!==c?(d=(0,n.jsx)(s.xI,{name:a,control:t,rules:i,render:c}),m[7]=t,m[8]=a,m[9]=i,m[10]=c,m[11]=d):d=m[11],d}function m(e){let t,a,l,i,c,d,m=(0,r.c)(12);return m[0]!==e?({name:a,control:t,rules:i,...l}=e,m[0]=e,m[1]=t,m[2]=a,m[3]=l,m[4]=i):(t=m[1],a=m[2],l=m[3],i=m[4]),m[5]!==l?(c=e=>{let{field:t,fieldState:a}=e,{error:r}=a;return(0,n.jsx)(o.p,{...l,...t,error:r?.message})},m[5]=l,m[6]=c):c=m[6],m[7]!==t||m[8]!==a||m[9]!==i||m[10]!==c?(d=(0,n.jsx)(s.xI,{name:a,control:t,rules:i,render:c}),m[7]=t,m[8]=a,m[9]=i,m[10]=c,m[11]=d):d=m[11],d}function u(e){let t,a,l,o,c,d,m=(0,r.c)(12);return m[0]!==e?({name:a,control:t,rules:o,...l}=e,m[0]=e,m[1]=t,m[2]=a,m[3]=l,m[4]=o):(t=m[1],a=m[2],l=m[3],o=m[4]),m[5]!==l?(c=e=>{let{field:t,fieldState:a}=e,{error:r}=a;return(0,n.jsx)(i.y,{...l,...t,error:r?.message})},m[5]=l,m[6]=c):c=m[6],m[7]!==t||m[8]!==a||m[9]!==o||m[10]!==c?(d=(0,n.jsx)(s.xI,{name:a,control:t,rules:o,render:c}),m[7]=t,m[8]=a,m[9]=o,m[10]=c,m[11]=d):d=m[11],d}function h(e){let t,a,l,o,i,d,m=(0,r.c)(12);return m[0]!==e?({name:a,control:t,rules:o,...l}=e,m[0]=e,m[1]=t,m[2]=a,m[3]=l,m[4]=o):(t=m[1],a=m[2],l=m[3],o=m[4]),m[5]!==l?(i=e=>{let{field:t,fieldState:a}=e,{value:r,...s}=t,{error:o}=a;return(0,n.jsx)(c.S,{...l,...s,checked:r,error:o?.message})},m[5]=l,m[6]=i):i=m[6],m[7]!==t||m[8]!==a||m[9]!==o||m[10]!==i?(d=(0,n.jsx)(s.xI,{name:a,control:t,rules:o,render:i}),m[7]=t,m[8]=a,m[9]=o,m[10]=i,m[11]=d):d=m[11],d}},76326:e=>{e.exports={sourcesCard:"Sources_sourcesCard__m5aMQ"}},86761:(e,t,a)=>{"use strict";a.d(t,{A:()=>j});var n=a(6029),r=a(75155),s=a(55729),l=a(82641),o=a(43517),i=a(63085),c=a(22623),d=a(27166),m=a(64488),u=a(6620),h=a(94502),x=a(78550),p=a(88339);let b=e=>{let t,a,s,l=(0,r.c)(11),{onClick:c,isEnabled:d,tableCount:m,iconStyles:h,variant:x}=e,p=void 0===x?"icon":x,b=d?m>1?"Show Table Schemas":"Show Table Schema":"Select a table to view its schema";return l[0]!==d||l[1]!==c?(t=()=>d&&c(),l[0]=d,l[1]=c,l[2]=t):t=l[2],l[3]!==h||l[4]!==d||l[5]!==p?(a="text"===p?(0,n.jsx)(o.E,{fw:500,size:"xs",className:"text-sucess-hover",style:{cursor:d?"pointer":"default",...h},children:"Schema"}):(0,n.jsx)(u.A,{size:16}),l[3]=h,l[4]=d,l[5]=p,l[6]=a):a=l[6],l[7]!==t||l[8]!==a||l[9]!==b?(s=(0,n.jsx)(i.m,{label:b,color:"dark",position:"right",onClick:t,children:a}),l[7]=t,l[8]=a,l[9]=b,l[10]=s):s=l[10],s},f=e=>{let t,a,s,l=(0,r.c)(8),{databaseName:o,tableName:i,connectionId:d}=e;l[0]!==d||l[1]!==o||l[2]!==i?(t={databaseName:o,tableName:i,connectionId:d},l[0]=d,l[1]=o,l[2]=i,l[3]=t):t=l[3];let{data:m,isLoading:u}=(0,x.Z2)(t);return l[4]===Symbol.for("react.memo_cache_sentinel")?(a={overflow:"hidden"},l[4]=a):a=l[4],l[5]!==m?.create_table_query||l[6]!==u?(s=(0,n.jsx)(c.t,{flex:"auto",shadow:"none",radius:"sm",p:"xs",style:a,children:u?(0,n.jsx)("div",{className:"d-inline-block",children:(0,n.jsx)(h.A,{className:"spin-animate"})}):(0,n.jsx)(p.V,{data:m?.create_table_query??"Schema is not available",enableCopy:!!m?.create_table_query,copyButtonSize:"xs"})}),l[5]=m?.create_table_query,l[6]=u,l[7]=s):s=l[7],s},g={[l.SX.Sum]:"Sum",[l.SX.Gauge]:"Gauge",[l.SX.Histogram]:"Histogram",[l.SX.Summary]:"Summary",[l.SX.ExponentialHistogram]:"Exponential Histogram"},j=e=>{let t,a,o,i,c,u=(0,r.c)(34),{source:h,iconStyles:x,variant:p}=e,f=void 0===p?"icon":p,[j,w]=(0,s.useState)(!1),C=h?.kind==="metric";if(u[0]!==C||u[1]!==h){let e,a;if(t=[],h&&C){let e,a,n;u[3]===Symbol.for("react.memo_cache_sentinel")?(e=Object.values(l.SX),u[3]=e):e=u[3],u[4]!==h?(a=e.map(e=>({metricType:e,tableName:h.metricTables?.[e]})).filter(y),u[4]=h,u[5]=a):a=u[5],u[6]!==h||u[7]!==a?(n=a.map(e=>{let{metricType:t,tableName:a}=e;return{databaseName:h.from.databaseName,tableName:a,connectionId:h.connection,title:g[t]}}),u[6]=h,u[7]=a,u[8]=n):n=u[8],t.push(...n)}else if(h&&h.from.tableName){let e,a=h.name??h.from.tableName;u[9]!==h.connection||u[10]!==h.from.databaseName||u[11]!==h.from.tableName||u[12]!==a?(e={databaseName:h.from.databaseName,tableName:h.from.tableName,connectionId:h.connection,title:a},u[9]=h.connection,u[10]=h.from.databaseName,u[11]=h.from.tableName,u[12]=a,u[13]=e):e=u[13],t.push(e)}u[14]!==h?.materializedViews?(e=h?.materializedViews??[],u[14]=h?.materializedViews,u[15]=e):e=u[15];let n=e;if(u[16]!==n||u[17]!==h){let e;u[19]!==h?(e=e=>{let{tableName:t,databaseName:a}=e;return{databaseName:a,tableName:t,connectionId:h.connection,title:`${t} (MV)`}},u[19]=h,u[20]=e):e=u[20],a=n.map(e),u[16]=n,u[17]=h,u[18]=a}else a=u[18];t.push(...a),u[0]=C,u[1]=h,u[2]=t}else t=u[2];let E=!!h&&t.length>0;return u[21]===Symbol.for("react.memo_cache_sentinel")?(a=()=>w(!0),u[21]=a):a=u[21],u[22]!==x||u[23]!==E||u[24]!==t.length||u[25]!==f?(o=(0,n.jsx)(b,{isEnabled:E,onClick:a,iconStyles:x,tableCount:t.length,variant:f}),u[22]=x,u[23]=E,u[24]=t.length,u[25]=f,u[26]=o):o=u[26],u[27]!==E||u[28]!==j||u[29]!==t?(i=E&&(0,n.jsx)(d.a,{opened:j,onClose:()=>w(!1),size:"auto",title:t.length>1?"Table Schemas":"Table Schema",children:(0,n.jsxs)(m.t,{defaultValue:`${t[0]?.databaseName}.${t[0]?.tableName}.${t[0]?.title}`,children:[(0,n.jsx)(m.t.List,{children:t.map(S)}),t.map(v)]})}),u[27]=E,u[28]=j,u[29]=t,u[30]=i):i=u[30],u[31]!==o||u[32]!==i?(c=(0,n.jsxs)(n.Fragment,{children:[o,i]}),u[31]=o,u[32]=i,u[33]=c):c=u[33],c};function y(e){let{tableName:t}=e;return!!t}function S(e){return(0,n.jsx)(m.t.Tab,{value:`${e.databaseName}.${e.tableName}.${e.title}`,children:e.title},`${e.databaseName}.${e.tableName}.${e.title}`)}function v(e){return(0,n.jsx)(m.t.Panel,{value:`${e.databaseName}.${e.tableName}.${e.title}`,pt:"sm",children:(0,n.jsx)(f,{...e})},`${e.databaseName}.${e.tableName}.${e.title}`)}}}]); \ No newline at end of file diff --git a/out/_next/static/chunks/3234-91be2b1b16b8a12e.js b/out/_next/static/chunks/3234-91be2b1b16b8a12e.js deleted file mode 100644 index a42a28a..0000000 --- a/out/_next/static/chunks/3234-91be2b1b16b8a12e.js +++ /dev/null @@ -1,5 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3234],{6379:(e,t,a)=>{"use strict";a.d(t,{FC:()=>B,yI:()=>F});var r=a(6029),l=a(75155),n=a(55729),i=a(75828),s=a.n(i),o=a(25605),c=a(43465),d=a(86508),u=a(7913),h=a(92205),m=a(56721),g=a(2055),p=a(13297),x=a(40684),f=a(8454),y=a(2893),v=a(47122),j=a(31292),w=a(88140),b=a(64370),C=a(93463),k=a(82641),A=a(37659),S=a(49109),_=a(33958),D=a(92917),z=a(43152),T=a(7565),E=a(43736),P=a.n(E);let N=new Intl.NumberFormat("en-US",{style:"percent",maximumFractionDigits:2}),M=e=>{let t,a,n=(0,l.c)(7),{current:i,previous:s}=e;if(n[0]!==i||n[1]!==s){a=Symbol.for("react.early_return_sentinel");e:{let e,l,o=0===s?0===i?0:void 0:(i-s)/s;if(void 0==o){a=null;break e}let c=o>0?S.A:_.A;n[4]===Symbol.for("react.memo_cache_sentinel")?(e={display:"inline-flex",alignItems:"center",gap:0},n[4]=e):e=n[4],n[5]!==c?(l=(0,r.jsx)(c,{size:12}),n[5]=c,n[6]=l):l=n[6],t=(0,r.jsxs)("span",{style:e,children:["(",l,N.format(Math.abs(o)),")"]})}n[0]=i,n[1]=s,n[2]=t,n[3]=a}else t=n[2],a=n[3];return a!==Symbol.for("react.early_return_sentinel")?a:t},I=(0,n.memo)(e=>{let t,a,n,i,s,o,c,d,u=(0,l.c)(24),{p:h,previous:m,numberFormat:g}=e;u[0]!==h.color||u[1]!==h.opacity||u[2]!==h.strokeDasharray?(t=(0,r.jsx)("div",{children:(0,r.jsx)("svg",{width:"12",height:"4",children:(0,r.jsx)("line",{x1:"0",y1:"2",x2:"12",y2:"2",stroke:h.color,opacity:h.opacity,strokeDasharray:h.strokeDasharray})})}),u[0]=h.color,u[1]=h.opacity,u[2]=h.strokeDasharray,u[3]=t):t=u[3],u[4]!==h.color?(a={color:h.color},u[4]=h.color,u[5]=a):a=u[5];let p=h.name??h.dataKey;return u[6]!==p?(n=(0,D.kU)(p,50),u[6]=p,u[7]=n):n=u[7],u[8]!==a||u[9]!==n?(i=(0,r.jsx)("span",{style:a,children:n}),u[8]=a,u[9]=n,u[10]=i):i=u[10],u[11]!==g||u[12]!==h.value?(s=g?(0,D.ZV)(h.value,g):h.value,u[11]=g,u[12]=h.value,u[13]=s):s=u[13],u[14]!==h.value||u[15]!==m?(o=m&&(0,r.jsx)(M,{current:h.value,previous:m?.value}),u[14]=h.value,u[15]=m,u[16]=o):o=u[16],u[17]!==i||u[18]!==s||u[19]!==o?(c=(0,r.jsxs)("div",{children:[i,": ",s," ",o]}),u[17]=i,u[18]=s,u[19]=o,u[20]=c):c=u[20],u[21]!==t||u[22]!==c?(d=(0,r.jsxs)("div",{className:"d-flex gap-2 items-center justify-center",children:[t,c]}),u[21]=t,u[22]=c,u[23]=d):d=u[23],d}),L=(0,u.withErrorBoundary)((0,n.memo)(e=>{let t,a=(0,l.c)(24),{active:n,payload:i,label:s,numberFormat:o,lineDataMap:c,previousPeriodOffsetSeconds:d}=e;a[0]!==i?(t=new Map(i.map(X)),a[0]=i,a[1]=t):t=a[1];let u=t;if(n&&i&&i.length){let e,t,l,n,h,m,g=1e3*s;if(a[2]!==g?(e=(0,r.jsx)(T.H,{value:g}),a[2]=g,a[3]=e):e=a[3],a[4]!==s||a[5]!==d?(t=null!=d&&(0,r.jsxs)(r.Fragment,{children:[" (vs ",(0,r.jsx)(T.H,{value:(s-d)*1e3}),")"]}),a[4]=s,a[5]=d,a[6]=t):t=a[6],a[7]!==e||a[8]!==t?(l=(0,r.jsxs)("div",{className:P().chartTooltipHeader,children:[e,t]}),a[7]=e,a[8]=t,a[9]=l):l=a[9],a[10]!==c||a[11]!==o||a[12]!==i||a[13]!==u){let e;a[15]!==c||a[16]!==o||a[17]!==u?(e=e=>{let t=c[e.dataKey]?.previousPeriodKey,a=t!==e.dataKey&&t?u.get(t):void 0;return(0,r.jsx)(I,{p:e,numberFormat:o,previous:a},e.dataKey)},a[15]=c,a[16]=o,a[17]=u,a[18]=e):e=a[18],n=i.sort(H).map(e),a[10]=c,a[11]=o,a[12]=i,a[13]=u,a[14]=n}else n=a[14];return a[19]!==n?(h=(0,r.jsx)("div",{className:P().chartTooltipContent,children:n}),a[19]=n,a[20]=h):h=a[20],a[21]!==l||a[22]!==h?(m=(0,r.jsxs)("div",{className:P().chartTooltip,children:[l,h]}),a[21]=l,a[22]=h,a[23]=m):m=a[23],m}return null}),{onError:console.error,fallback:(0,r.jsx)("div",{className:"text-danger px-2 py-1 m-2 fs-8 font-monospace bg-danger-transparent",children:"An error occurred while rendering the tooltip."})});function R(e){let t,a,i,s,o,c=(0,l.c)(21),{entry:d,expanded:u,isSelected:h,isDisabled:m,onToggle:g}=e,[p,x]=(0,n.useState)(!1),f=p||u,y=m?.3:1,v=h?600:400;c[0]!==d.color||c[1]!==y||c[2]!==v?(t={color:d.color,opacity:y,fontWeight:v,cursor:"pointer"},c[0]=d.color,c[1]=y,c[2]=v,c[3]=t):t=c[3],c[4]!==g?(a=e=>{g?g(e.shiftKey):x(K)},c[4]=g,c[5]=a):a=c[5];let j=h?"Click to show all (Shift+click to deselect)":"Click to show only this (Shift+click for multi-select)",w=m?.3:1,b=d.payload?.strokeDasharray,C=h?2.5:1.5;return c[6]!==d.color||c[7]!==w||c[8]!==b||c[9]!==C?(i=(0,r.jsx)("div",{children:(0,r.jsx)("svg",{width:"12",height:"4",children:(0,r.jsx)("line",{x1:"0",y1:"2",x2:"12",y2:"2",stroke:d.color,opacity:w,strokeDasharray:b,strokeWidth:C})})}),c[6]=d.color,c[7]=w,c[8]=b,c[9]=C,c[10]=i):i=c[10],c[11]!==d.value||c[12]!==f||c[13]!==h?(s=f||h?d.value:(0,D.kU)(`${d.value}`,35),c[11]=d.value,c[12]=f,c[13]=h,c[14]=s):s=c[14],c[15]!==s||c[16]!==t||c[17]!==a||c[18]!==j||c[19]!==i?(o=(0,r.jsxs)("span",{className:`d-flex gap-1 items-center justify-center ${P().legendItem}`,style:t,role:"button",onClick:a,title:j,children:[i,s]}),c[15]=s,c[16]=t,c[17]=a,c[18]=j,c[19]=i,c[20]=o):o=c[20],o}function K(e){return!e}let q=(0,n.memo)(e=>{let{payload:t=[],lineDataMap:a,allLineData:l=[],selectedSeries:i=new Set,onToggleSeries:o}=e,c=i.size>0,d=(0,n.useMemo)(()=>l.length>0?l.map(e=>({dataKey:e.dataKey,value:e.displayName||e.dataKey,color:e.color,payload:{strokeDasharray:e.isDashed?"4 3":"0"}})):t,[l,t]),u=(0,n.useMemo)(()=>{let e=new Map;return d.forEach((t,r)=>{let l=a[t.dataKey]?.currentPeriodKey||"";e.has(l)||e.set(l,r)}),d.sort((t,r)=>{let l=a[t.dataKey]?.currentPeriodKey??"",n=a[r.dataKey]?.currentPeriodKey??"",i=e.get(l)??0;return(e.get(n)??0)-i||t.dataKey.localeCompare(r.dataKey)})},[d,a]),h=u.slice(0,4),m=u.slice(4);return(0,r.jsxs)("div",{className:P().legend,children:[h.map((e,t)=>{let a=i.has(e.value);return(0,r.jsx)(R,{entry:e,isSelected:a,isDisabled:c&&!a,onToggle:t=>o?.(e.value,t)},`item-${t}`)}),m.length?(0,r.jsxs)(A.A,{withinPortal:!0,withArrow:!0,closeOnEscape:!0,closeOnClickOutside:!0,children:[(0,r.jsx)(A.A.Target,{children:(0,r.jsxs)("div",{className:s()(P().legendItem,P().legendMoreLink),children:["+",m.length," more"]})}),(0,r.jsx)(A.A.Dropdown,{p:"xs",children:(0,r.jsx)("div",{className:P().legendTooltipContent,children:m.map((e,t)=>{let a=i.has(e.value);return(0,r.jsx)(R,{entry:e,isSelected:a,isDisabled:c&&!a,onToggle:t=>o?.(e.value,t)},`item-${t}`)})})})]}):null]})}),F=60,B=(0,n.memo)(function({graphResults:e,setIsClickActive:t,isClickActive:a,dateRange:l,lineData:i,referenceLines:s,logReferenceTimestamp:u,displayType:A=k.t2.Line,numberFormat:S,isLoading:_,timestampKey:E="ts_bucket",onTimeRangeSelect:P,showLegend:N=!0,previousPeriodOffsetSeconds:M,selectedSeriesNames:I,onToggleSeries:R,granularity:K,dateRangeEndInclusive:B=!0}){let X=(0,n.useId)().replace(/:/g,""),[H,W]=(0,n.useState)(!1),V=A===k.t2.StackedBar?h.E:m.Q,Y=(0,n.useMemo)(()=>{let e=I&&I.size>0;return i.map(e=>e.dataKey).slice(0,F).filter((t,a)=>{let r=i[a]?.displayName??t;return!e||I.has(r)}).map(e=>{let t=i.findIndex(t=>t.dataKey===e),a=i[t]?.color,l=i[t]?.isDashed?"4 3":"0",n=i[t]?.displayName??e;return"stacked_bar"===A?(0,r.jsx)(g.y,{type:"monotone",dataKey:e,name:n,fill:a,opacity:1,stackId:"1",isAnimationActive:!1,shape:(0,r.jsx)(e=>{let{x:t,y:a,width:l,height:n,fill:i}=e;return(0,r.jsx)("rect",{x:t,y:a,width:l,height:n&&n>0?n+.5:0,fill:i})},{dataKey:e})},e):(0,r.jsx)(p.G,{dataKey:e,type:"monotone",stroke:a,fillOpacity:1,...H?{fill:"none",strokeDasharray:l}:{fill:`url(#time-chart-lin-grad-${X}-${a?.replace("#","").toLowerCase()})`,strokeDasharray:l},name:n,isAnimationActive:!1,connectNulls:!0},e)})},[i,A,X,H,I]),G=(0,n.useMemo)(()=>{if(!(I&&I.size>0))return[0,"auto"];let t=1/0,a=-1/0;if(e.forEach(e=>{i.forEach(r=>{let l=r.displayName||r.dataKey;if(I.has(l)){let l=e[r.dataKey];"number"!=typeof l||isNaN(l)||(t=Math.min(t,l),a=Math.max(a,l))}})}),t!==1/0&&a!==-1/0){let e=(a-t)*.1;return[Math.max(0,t-e),a+e]}return["auto","auto"]},[e,i,I]),O=(0,n.useRef)([0,0]),$=(0,T.a)(),Q=(0,n.useCallback)((e,t)=>$(1e3*e,{format:0===t?"normal":"time"}),[$]),U=(0,n.useCallback)((e,t)=>S?(0,D.ZV)(e,{...S,average:!0,mantissa:0,unit:void 0}):new Intl.NumberFormat("en-US",{notation:"compact",compactDisplay:"short"}).format(e),[S]),[J,Z]=(0,n.useState)(),[ee,et]=(0,n.useState)(),ea=(0,n.useRef)(null),er=(0,n.useMemo)(()=>{let e={};return i.forEach(t=>{e[t.dataKey]=t}),e},[i]),el=(0,n.useMemo)(()=>{let e=(0,z.W6)(l[0],K),t=(0,z.W6)(l[1],K);if((0,o.A)(l[1],t)&&!B&&(t=(0,c.A)(t,{seconds:(0,z.qL)(K)})),A===k.t2.StackedBar){let a=(0,z.qL)(K)/2;e=(0,c.A)(e,{seconds:a}),t=(0,d.A)(t,{seconds:a})}return[e.getTime()/1e3,t.getTime()/1e3]},[l,K,B,A]);return(0,r.jsx)(x.u,{width:"100%",height:"100%",minWidth:0,onResize:(e,t)=>{O.current=[e??1,t??1]},className:_?"effect-pulse":"",children:(0,r.jsxs)(V,{width:500,height:300,data:e,syncId:"hdx",syncMethod:"value",onMouseEnter:()=>W(!0),onMouseLeave:e=>{W(!1),Z(void 0),et(void 0),ea.current=null},onMouseDown:e=>{null!=e&&null!=e.chartX&&null!=e.chartY&&(Z(e.activeLabel),ea.current=e.chartX)},onMouseMove:e=>{W(!0),null!=J&&(et(e.activeLabel),t(void 0))},onMouseUp:e=>{let t=0;if(null!=ea.current&&e?.chartX!=null&&(t=Math.abs(e.chartX-ea.current)),e?.activeLabel!=null&&J===e.activeLabel)Z(void 0),et(void 0),ea.current=null;else if(null!=J&&null!=ee&&t>=20){try{P?.(new Date(1e3*Number.parseInt(J<=ee?J:ee)),new Date(1e3*Number.parseInt(ee>=J?ee:J)))}catch(e){console.error("failed to highlight range",e)}Z(void 0),et(void 0),ea.current=null}else Z(void 0),et(void 0),ea.current=null},onClick:(e,a)=>{null!=e&&null!=e.chartX&&null!=e.chartY&&null!=e.activeLabel&&null==J?t({x:e.chartX,y:e.chartY,activeLabel:e.activeLabel,xPerc:e.chartX/O.current[0],yPerc:e.chartY/O.current[1],activePayload:e.activePayload}):t(void 0),a.stopPropagation()},children:[(0,r.jsx)("defs",{children:D.lm.map(e=>(0,r.jsxs)("linearGradient",{id:`time-chart-lin-grad-${X}-${e.replace("#","").toLowerCase()}`,x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,r.jsx)("stop",{offset:"0%",stopColor:e,stopOpacity:.15}),(0,r.jsx)("stop",{offset:"10%",stopColor:e,stopOpacity:.003})]},e))}),H&&(0,r.jsx)(f.d,{strokeDasharray:"3 3",stroke:"var(--color-border)"}),(0,r.jsx)(y.W,{dataKey:E??"ts_bucket",domain:el,interval:"preserveStartEnd",scale:"time",type:"number",tickFormatter:Q,minTickGap:100,tick:{fontSize:11,fontFamily:"IBM Plex Mono, monospace"}}),(0,r.jsx)(v.h,{width:40,minTickGap:25,tickFormatter:U,tick:{fontSize:11,fontFamily:"IBM Plex Mono, monospace"},domain:G}),Y,null==a&&(0,r.jsx)(j.m,{content:(0,r.jsx)(L,{numberFormat:S,lineDataMap:er,previousPeriodOffsetSeconds:M}),wrapperStyle:{zIndex:1}}),s,J&&ee?(0,r.jsx)(w.T,{x1:J,x2:ee,strokeOpacity:.3}):null,N&&(0,r.jsx)(b.s,{iconSize:10,verticalAlign:"bottom",content:(0,r.jsx)(q,{lineDataMap:er,allLineData:i,selectedSeries:I||new Set,onToggleSeries:R}),offset:-100}),null!=a?(0,r.jsx)(C.e,{x:a.activeLabel,stroke:"#ccc"}):null,null!=u?(0,r.jsx)(C.e,{x:u,stroke:"#ff5d5b",strokeDasharray:"3 3",label:"Event"}):null]})})});function X(e){return[e.dataKey,e]}function H(e,t){return t.value-e.value}},9211:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});var r=a(6029),l=a(75155),n=a(1909),i=a(38206);function s(e){let t,a,s,o,c,d=(0,l.c)(16),{field:u,fieldState:h}=(0,n.as)(e),{value:m,onChange:g,onBlur:p,name:x,ref:f}=u;d[0]!==e?({onCreate:t,allowDeselect:s,...a}=e,d[0]=e,d[1]=t,d[2]=a,d[3]=s):(t=d[1],a=d[2],s=d[3]);let y=void 0===s||s,v=e.data?.find(e=>"string"==typeof e?e===m:!("value"in e)||e.value===m);d[4]!==y||d[5]!==g||d[6]!==t?(o=e=>{"_create_new_value"===e&&null!=t?t():(null!==e||y)&&g(e)},d[4]=y,d[5]=g,d[6]=t,d[7]=o):o=d[7];let j=o,w=h.error?.message,b=null==v?null:m;return d[8]!==x||d[9]!==p||d[10]!==f||d[11]!==j||d[12]!==a||d[13]!==w||d[14]!==b?(c=(0,r.jsx)(i.l,{...a,error:w,value:b,onChange:j,onBlur:p,name:x,ref:f}),d[8]=x,d[9]=p,d[10]=f,d[11]=j,d[12]=a,d[13]=w,d[14]=b,d[15]=c):c=d[15],c}},11104:(e,t,a)=>{"use strict";a.d(t,{A:()=>d});var r=a(6029),l=a(75155),n=a(75828),i=a.n(n),s=a(63085),o=a(76013),c=a(3635);let d=function(e){let t,a,n=(0,l.c)(9),{value:d,onChange:u,options:h}=e;if(n[0]!==u||n[1]!==h||n[2]!==d){let e;n[4]!==u||n[5]!==d?(e=e=>{let{icon:t,label:a,value:l,disabled:n}=e;return(0,r.jsx)(s.m,{label:a,children:(0,r.jsx)(o.M,{size:"xs",me:2,className:i()({"text-brand":d===l,"text-muted-hover":d!==l}),disabled:n,onClick:()=>u(l),children:t})},l)},n[4]=u,n[5]=d,n[6]=e):e=n[6],t=h.map(e),n[0]=u,n[1]=h,n[2]=d,n[3]=t}else t=n[3];return n[7]!==t?(a=(0,r.jsx)(c.Y,{className:"bg-muted px-2 py-2 rounded fs-8",align:"center",gap:0,wrap:"nowrap",children:t}),n[7]=t,n[8]=a):a=n[8],a}},15628:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});var r=a(6029),l=a(75155),n=a(3635),i=a(34834);let s=function(e){let t,a,s,o,c=(0,l.c)(10),{title:d,toolbarItems:u,children:h,disableReactiveContainer:m}=e;return c[0]===Symbol.for("react.memo_cache_sentinel")?(t={flexGrow:1},c[0]=t):t=c[0],c[1]!==d||c[2]!==u?(a=(!!d||!!u?.length)&&(0,r.jsxs)(n.Y,{justify:"space-between",align:"start",wrap:"nowrap",children:[(0,r.jsx)("span",{style:{flex:1,flexShrink:1,overflow:"hidden"},children:d}),u&&(0,r.jsx)(n.Y,{flex:0,wrap:"nowrap",gap:5,children:u})]}),c[1]=d,c[2]=u,c[3]=a):a=c[3],c[4]!==h||c[5]!==m?(s=m?h:(0,r.jsx)("div",{style:{position:"relative",width:"100%",height:"100%"},children:(0,r.jsx)("div",{style:{position:"absolute",left:0,right:0,bottom:0,top:0},children:h})}),c[4]=h,c[5]=m,c[6]=s):s=c[6],c[7]!==a||c[8]!==s?(o=(0,r.jsxs)(i.B,{h:"100%",w:"100%",style:t,children:[a,s]}),c[7]=a,c[8]=s,c[9]=o):o=c[9],o}},17421:(e,t,a)=>{"use strict";a.d(t,{P:()=>i});var r=a(6029);a(55729);var l=a(87383),n=a(8737);let i=({data:e,filename:t,children:a,className:i,title:s,disabled:o=!1,onExportStart:c,onExportComplete:d,onExportError:u,...h})=>{let{CSVDownloader:m}=(0,l.jG)();return o||0===e.length?(0,r.jsx)("div",{className:i,title:o?"Export disabled":"No data to export",style:{opacity:.5,cursor:"not-allowed"},...h,children:a}):(0,r.jsx)(n.N,{className:i,title:s,onClick:()=>{try{if(0===e.length)return void u?.(Error("No data to export"));c?.(),d?.()}catch(e){u?.(e instanceof Error?e:Error("Export failed"))}},...h,children:(0,r.jsx)(m,{data:e,filename:t,config:{quotes:!0,quoteChar:'"',escapeChar:'"',delimiter:",",header:!0},style:{color:"inherit",textDecoration:"none",background:"none",border:"none",padding:0,cursor:"pointer",display:"block",width:"100%",height:"100%"},children:a})})}},34011:e=>{e.exports={tableWrapper:"Table_tableWrapper__u_gzk",tableBorderless:"Table_tableBorderless__C8oJ4",tableDensityZero:"Table_tableDensityZero___MyCd",tableDensityCompact:"Table_tableDensityCompact__VH49r",tableDensityComfortable:"Table_tableDensityComfortable__yAVt1",tableInteractive:"Table_tableInteractive__g4nmr",emptyMessage:"Table_emptyMessage__Grj3p",tableCellButton:"Table_tableCellButton__q1n1W",cursorColResize:"Table_cursorColResize__8J2BT"}},40228:(e,t,a)=>{"use strict";a.d(t,{S:()=>K});var r=a(6029),l=a(55729),n=a(82203),i=a.n(n),s=a(11370),o=a(86508),c=a(35467),d=a(76089),u=a(82641),h=a(95991),m=a(37659),g=a(3635),p=a(34834),x=a(43517),f=a(63085),y=a(25062),v=a(27166),j=a(24589),w=a(78341),b=a(41279),C=a(9841),k=a(45556),A=a(16232),S=a(6876),_=a(43152),D=a(6379),z=a(91021),T=a(57389),E=a(81973),P=a(15628),N=a(35871),M=a(11104),I=a(99082),L=a(88339);function R({activeClickPayload:e,buildSearchUrl:t,onDismiss:a}){let l=null!=e&&null!=e.activePayload&&e.activePayload.length>0;if(!l)return null;let n=e.activePayload.filter(e=>null!=e.value&&!e.dataKey?.endsWith(_.wt)).sort((e,t)=>t.value-e.value);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(h.Z,{children:(0,r.jsx)("div",{style:{position:"fixed",top:0,left:0,right:0,bottom:0,zIndex:199},onClick:e=>{e.stopPropagation(),e.preventDefault(),a()},onMouseDown:e=>{e.stopPropagation()}})}),(0,r.jsxs)(m.A,{opened:l,onChange:e=>{e||a()},position:"bottom-start",offset:4,withinPortal:!0,closeOnEscape:!0,withArrow:!0,shadow:"md",children:[(0,r.jsx)(m.A.Target,{children:(0,r.jsx)("div",{style:{position:"absolute",left:e.x??0,top:e.y??0,width:1,height:1,pointerEvents:"none"}})}),(0,r.jsx)(m.A.Dropdown,{p:"xs",maw:300,onClick:e=>e.stopPropagation(),onMouseDown:e=>e.stopPropagation(),children:n.length<=1?(0,r.jsx)(i(),{"data-testid":"chart-view-events-link",href:t(n?.[0]?.dataKey,n?.[0]?.value)??"/search",onClick:a,children:(0,r.jsxs)(g.Y,{gap:"xs",children:[(0,r.jsx)(b.A,{size:16}),"View Events"]})}):(0,r.jsxs)(p.B,{gap:"xs",style:{maxHeight:"170px",overflowY:"auto"},children:[(0,r.jsx)(x.E,{c:"gray.5",size:"xs",children:"View Events for:"}),n.map((e,l)=>{let n=t(e.dataKey,e.value);return(0,r.jsx)(f.m,{label:e.name,withArrow:!0,color:"gray",position:"right",children:(0,r.jsx)(i(),{"data-testid":`chart-view-events-link-${e.dataKey}`,href:n??"/search",onClick:a,children:(0,r.jsxs)(g.Y,{gap:"xs",children:[(0,r.jsx)(b.A,{size:12}),(0,r.jsx)(x.E,{size:"xs",truncate:!0,flex:"1",children:e.name})]})})},l)})]})})]})]})}let K=(0,l.memo)(function({config:e,disableQueryChunking:t,disableDrillDown:a,enableParallelQueries:n,enabled:i=!0,logReferenceTimestamp:h,onTimeRangeSelect:m,queryKeyPrefix:p,referenceLines:f,setDisplayType:b,showDisplaySwitcher:K=!0,showLegend:q=!0,sourceId:F,hiddenSeries:B,title:X,toolbarPrefix:H,toolbarSuffix:W,showMVOptimizationIndicator:V=!0,showDateRangeIndicator:Y=!0}){let[G,O]=(0,w.j)(!1),[$,Q]=(0,l.useState)(new Set),U=(0,l.useCallback)((e,t)=>{Q(a=>{let r=new Set(a);return t?r.has(e)?r.delete(e):r.add(e):r.has(e)&&1===r.size?r.clear():(r.clear(),r.add(e)),r})},[]),J=e.dateRange,{displayType:Z,dateRange:ee,granularity:et,fillNulls:ea}=(0,_.GJ)(e),er=(0,l.useMemo)(()=>(0,_.O7)(e),[e]),{data:el}=(0,T.d)(er),{data:en,isLoading:ei}=S.Ay.useMe(),{data:es,isLoading:eo,isError:ec,error:ed,isPlaceholderData:eu,isSuccess:eh}=(0,z.HD)(er,{placeholderData:e=>e,queryKey:[p,er,"chunked",{disableQueryChunking:t,enableParallelQueries:n,parallelizeWhenPossible:en?.team?.parallelizeWhenPossible}],enabled:i&&!ei,enableQueryChunking:!t,enableParallelQueries:n&&en?.team?.parallelizeWhenPossible}),em=(0,l.useMemo)(()=>{let e=!1===er.alignDateRangeToGranularity?(0,_.r4)(J):(0,d.Ol)((0,_.r4)(J),er.granularity);return{...er,dateRange:e}},[er,J]),eg=(0,l.useMemo)(()=>e.compareToPreviousPeriod?(0,s.A)(ee[0],em.dateRange[0]):void 0,[e.compareToPreviousPeriod,ee,em.dateRange]),{data:ep,isLoading:ex}=(0,z.HD)(em,{placeholderData:e=>e,queryKey:[p,em,"chunked"],enabled:!!(i&&e.compareToPreviousPeriod),enableQueryChunking:!0});(0,l.useEffect)(()=>{!ec&&G&&O.close()},[ec,G,O]);let ef=eo||ex||!es?.isComplete||e.compareToPreviousPeriod&&!ep?.isComplete||eu,{data:ey}=(0,E.Fo)({id:F||e.source}),{graphResults:ev,timestampColumn:ej,groupColumns:ew,valueColumns:eb,isSingleValueColumn:eC,lineData:ek}=(0,l.useMemo)(()=>{let t={graphResults:[],timestampColumn:void 0,lineData:[],groupColumns:[],valueColumns:[],isSingleValueColumn:!0};if(null==es||!eh)return t;try{return(0,_.zg)({currentPeriodResponse:es,previousPeriodResponse:e.compareToPreviousPeriod?ep:void 0,dateRange:ee,granularity:et,generateEmptyBuckets:(0,_.xu)(ea),source:ey,hiddenSeries:B,previousPeriodOffsetSeconds:eg})}catch(e){return console.error(e),t}},[es,ee,et,eh,ea,ey,e.compareToPreviousPeriod,ep,B,eg]),[eA,eS]=(0,l.useState)(Z),e_=(0,l.useMemo)(()=>b?Z:eA,[eA,Z,b]),eD=(0,l.useCallback)(e=>{b?b(e):eS(e)},[b]);(0,l.useEffect)(()=>{e.compareToPreviousPeriod&&eS(u.t2.Line)},[e.compareToPreviousPeriod]);let[ez,eT]=(0,l.useState)(void 0),eE=(0,l.useCallback)(e=>{null==ey||a||eT(e)},[ey,a]),eP=(0,l.useMemo)(()=>ez?.activeLabel!=null?new Date(1e3*Number.parseInt(ez.activeLabel)):void 0,[ez]),eN=(0,l.useCallback)((t,a)=>{let r;if(null==eP||null==ey)return null;let l=t?.split(_.Hx),n=[];if(l?.length&&ew?.length&&(!(eC??!0)||(ew?.length??0)===0&&(eb?.length??0)>0?l.slice(1):l).forEach((e,t)=>{null!=ew[t]&&n.push({column:ew[t],value:e})}),a&&Array.isArray(e.select)&&e.select.length>0){let t;if((eC??!0)&&1===e.select.length){let a=e.select[0],r="string"==typeof a?void 0:a.aggFn;_.gT.find(e=>e.value===r)?.isAttributable!==!1&&(t="string"==typeof a?a:a.valueExpression)}else if(l?.length&&(eb?.length??0)>0){let a=l[0],r=eb?.findIndex(e=>e===a);if(null!=r&&r>=0&&re.value===l)?.isAttributable!==!1&&(t="string"==typeof a?a:a.valueExpression)}}t&&(r={expression:t,value:a})}let i=(0,o.A)(eP,{seconds:(0,_.qL)(et)});return(0,_.VH)({source:ey,config:e,dateRange:[eP,i],groupFilters:n,valueRangeFilter:r})},[eP,e,et,ey,ew,eb,eC]),eM=(0,l.useMemo)(()=>{let t=[];H&&H.length>0&&t.push(...H),ey&&V&&t.push((0,r.jsx)(I.A,{config:er,source:ey,variant:"icon"},"db-time-chart-mv-indicator"));let a=el?.optimizedConfig?.dateRange,l=!1!==er.alignDateRangeToGranularity;if(Y&&(a||l)){let n=l?void 0:el?.explanations.find(e=>e.success)?.mvConfig.minGranularity;t.push((0,r.jsx)(N.A,{originalDateRange:e.dateRange,effectiveDateRange:a||er.dateRange,mvGranularity:n},"db-time-chart-date-range-indicator"))}return K&&t.push((0,r.jsx)(M.A,{value:e_,onChange:eD,options:[{value:u.t2.Line,label:"Display as Line Chart",icon:(0,r.jsx)(C.A,{})},{value:u.t2.StackedBar,label:e.compareToPreviousPeriod?"Bar Chart Unavailable When Comparing to Previous Period":"Display as Bar Chart",icon:(0,r.jsx)(k.A,{}),disabled:e.compareToPreviousPeriod}]},"db-time-chart-display-switcher")),W&&W.length>0&&t.push(...W),t},[e,e_,eD,K,ey,H,W,V,Y,el,er]);return(0,r.jsx)(P.A,{title:X,toolbarItems:eM,children:eo&&!es?(0,r.jsx)("div",{className:"d-flex h-100 w-100 align-items-center justify-content-center text-muted",children:"Loading Chart Data..."}):ec?(0,r.jsxs)("div",{className:"h-100 w-100 d-flex g-1 flex-column align-items-center justify-content-center text-muted overflow-auto",children:[(0,r.jsx)(x.E,{ta:"center",size:"sm",mt:"sm",children:"Error loading chart, please check your query or try again later."}),(0,r.jsx)(y.$,{className:"mx-auto",variant:"danger",onClick:()=>O.open(),children:(0,r.jsxs)(g.Y,{gap:"xxs",children:[(0,r.jsx)(A.A,{size:16}),"See Error Details"]})}),(0,r.jsx)(v.a,{opened:G,onClose:()=>O.close(),title:"Error Details",children:(0,r.jsxs)(g.Y,{align:"start",children:[(0,r.jsx)(x.E,{size:"sm",ta:"center",children:"Error Message:"}),(0,r.jsx)(j.C,{block:!0,style:{whiteSpace:"pre-wrap"},children:ed.message}),ed instanceof c.p1&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(x.E,{my:"sm",size:"sm",ta:"center",children:"Sent Query:"}),(0,r.jsx)(L.V,{data:ed?.query})]})]})})]}):0===ev.length?(0,r.jsx)("div",{className:"d-flex h-100 w-100 align-items-center justify-content-center text-muted",children:"No data found within time range."}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(R,{activeClickPayload:ez,buildSearchUrl:eN,onDismiss:()=>eT(void 0)}),(0,r.jsx)(D.FC,{dateRange:ee,displayType:e_,graphResults:ev,isClickActive:ez,lineData:ek,isLoading:ef,logReferenceTimestamp:h,numberFormat:e.numberFormat,onTimeRangeSelect:m,referenceLines:f,setIsClickActive:eE,showLegend:q,timestampKey:ej?.name,previousPeriodOffsetSeconds:eg,selectedSeriesNames:$,onToggleSeries:U,granularity:et,dateRangeEndInclusive:er.dateRangeEndInclusive})]})})})},43736:e=>{e.exports={legend:"HDXLineChart_legend__lPU01",legendItem:"HDXLineChart_legendItem____Qwu",legendMoreLink:"HDXLineChart_legendMoreLink__16Wq1",legendTooltipContent:"HDXLineChart_legendTooltipContent__tHXLT",chartTooltip:"HDXLineChart_chartTooltip__hEAmh",chartTooltipHeader:"HDXLineChart_chartTooltipHeader__l9Fb7",chartTooltipContent:"HDXLineChart_chartTooltipContent__vtVBK"}},48423:(e,t,a)=>{"use strict";a.d(t,{A:()=>x});var r=a(6029),l=a(75828),n=a.n(l),i=a(3635),s=a(43517),o=a(25062),c=a(97767),d=a(67872),u=a(2485),h=a(79220),m=a(68593),g=a(34011),p=a.n(g);function x({isLast:e,header:t,lastItemButtons:a}){return(0,r.jsx)("th",{className:"overflow-hidden",colSpan:t.colSpan,style:{width:t.getSize()===m.k?"100%":t.getSize(),minWidth:t.getSize()===m.k?0:t.getSize()},children:(0,r.jsxs)(i.Y,{wrap:"nowrap",gap:0,align:"center",children:[t.column.getCanSort()?(0,r.jsx)(o.$,{size:"xxs",p:1,variant:"subtle",color:"gray",onClick:t.column.getToggleSortingHandler(),flex:"1",justify:"space-between","data-testid":"raw-log-table-sort-button",children:(0,r.jsxs)(r.Fragment,{children:[t.isPlaceholder?null:(0,r.jsx)(s.E,{truncate:"end",size:"xs",flex:"1",children:(0,h.Kv)(t.column.columnDef.header,t.getContext())}),t.column.getIsSorted()&&(0,r.jsx)("div",{"data-testid":"raw-log-table-sort-indicator",className:"asc"===t.column.getIsSorted()?"sorted-asc":"sorted-desc",children:(0,r.jsx)(r.Fragment,{children:"asc"===t.column.getIsSorted()?(0,r.jsx)(c.A,{size:12}):(0,r.jsx)(d.A,{size:12})})})]})}):(0,r.jsx)(s.E,{truncate:"end",size:"xs",flex:"1",children:(0,h.Kv)(t.column.columnDef.header,t.getContext())}),(0,r.jsxs)(i.Y,{gap:0,wrap:"nowrap",align:"center",children:[t.column.getCanResize()&&!e&&(0,r.jsx)("div",{onMouseDown:t.getResizeHandler(),onTouchStart:t.getResizeHandler(),className:n()(`resizer ${p().cursorColResize}`,t.column.getIsResizing()&&"isResizing"),children:(0,r.jsx)(u.A,{size:12})}),e&&(0,r.jsx)(i.Y,{gap:2,wrap:"nowrap",children:a})]})]})},t.id)}},55024:(e,t,a)=>{"use strict";a.d(t,{u:()=>l});var r=a(75155);let l=(e,t,a)=>{let l,n,i=(0,r.c)(14);i[0]!==a?(l=void 0===a?{}:a,i[0]=a,i[1]=l):l=i[1];let{maxRows:s,groupColumnName:o}=l,c=void 0===s?4e3:s;e:{let a,r;if(!Array.isArray(e)||0===e.length||!Array.isArray(t)||0===t.length){let e,t;i[2]===Symbol.for("react.memo_cache_sentinel")?(e=[],i[2]=e):e=i[2],i[3]!==c?(t={csvData:e,maxRows:c,isDataEmpty:!0,actualRowCount:0,isLimited:!1},i[3]=c,i[4]=t):t=i[4],n=t;break e}i[5]!==t||i[6]!==e||i[7]!==o||i[8]!==c?(a=((e,t,a={})=>{let{groupColumnName:r}=a;if(!Array.isArray(e))return console.warn("CSV Export: data must be an array"),[];if(!Array.isArray(t)||0===t.length)return console.warn("CSV Export: columns must be a non-empty array"),[];let l=t.filter(e=>!e||"string"!=typeof e.dataKey||"string"!=typeof e.displayName);return l.length>0?(console.warn("CSV Export: Invalid column structure detected",l),[]):e.filter(e=>null!=e&&"object"==typeof e).map((e,a)=>{try{return{...null!=r?{[r]:e.group??""}:{},...Object.fromEntries(t.map(({displayName:t,dataKey:a})=>{let r=e[a];return null==r?[t,""]:"object"==typeof r?[t,JSON.stringify(r)]:[t,String(r)]}))}}catch(e){return console.warn(`CSV Export: Error processing row ${a}:`,e),{}}}).filter(e=>Object.keys(e).length>0)})(e.slice(0,c),t,{groupColumnName:o}),i[5]=t,i[6]=e,i[7]=o,i[8]=c,i[9]=a):a=i[9];let l=a,s=e.length>c;i[10]!==l||i[11]!==c||i[12]!==s?(r={csvData:l,maxRows:c,isDataEmpty:!1,actualRowCount:l.length,isLimited:s},i[10]=l,i[11]=c,i[12]=s,i[13]=r):r=i[13],n=r}return n}},68593:(e,t,a)=>{"use strict";a.d(t,{k:()=>r});let r=99999},78744:(e,t,a)=>{"use strict";a.d(t,{A:()=>y});var r=a(75155),l=a(67264),n=a.n(l),i=a(67270),s=a(76089),o=a(93251),c=a(95099),d=a(6876),u=a(49672),h=a(78550),m=a(57389),g=a(81973),p=a(92917),x=a(69519);let f=async({queryKey:e,pageParam:t,signal:a,meta:r})=>{if(null==r)throw Error("Query missing client meta");let{queryClient:l,metadata:n,hasPreviousQueries:o,optimizedConfig:c,source:d}=r,h=!o||t.offset>0||t.windowIndex>0,m=e[2],g=(0,u.W)({queryTimeout:m}),p=e[1],f=c??p,y=(0,s.jN)(f)?function(e,t){let[a,r]=e.dateRange,l=((0,s.es)(e.orderBy)?(0,x.Me)(a,r):(0,x.so)(a,r))[t.windowIndex];if(null==l)throw Error("Invalid time window for page param");return l}(f,t):{startTime:f.dateRange[0],endTime:f.dateRange[1],windowIndex:0,direction:"DESC"},v={...f,dateRange:[y.startTime,y.endTime],limit:{limit:f.limit?.limit,offset:t.offset}},j=await (0,i.PV)(v,n,d?.querySettings),w=m?new AbortController:void 0;w&&m&&setTimeout(()=>w.abort(),1e3*m);let b=(await g.query({query:j.sql,query_params:j.params,format:"JSONCompactEachRowWithNamesAndTypes",abort_signal:w?.signal||a,connectionId:f.connection})).stream().getReader(),C=[];h&&l.setQueryData(e,e=>{let a={data:[],meta:[],chSql:{sql:"",params:{}},window:y};return null==e?{pages:[a],pageParams:[t]}:{pages:[...e.pages,a],pageParams:[...e.pageParams,t]}});let k=[],A=[];async function S(){let{done:a,value:r}=await b.read();if(!a&&null!=r){if(C.push(...r),C.length>=2){let a=r;if(0===k.length){let e=C[0].json(),t=C[1].json();if(e.length!==t.length)throw Error("Invalid JSONCompactEachRowWithNamesAndTypes header rows");for(let a=0;a{if(null==e)return{pages:[{data:n,meta:k,chSql:j,window:y}],pageParams:[t]};let a=e.pages.slice(0,-1),r=e.pages[e.pages.length-1];return{pages:[...a,{...r,data:[...r.data??[],...n],meta:k,chSql:j,window:y}],pageParams:e.pageParams}})}return await S()}}function _(){l.setQueryData(e,e=>{if(null!=e)return{pages:e.pages.slice(0,-1),pageParams:e.pageParams.slice(0,-1)}})}try{await S()}catch(e){throw h&&_(),e}if(!h)return{data:A,meta:k,chSql:j,window:y};let D=l.getQueryData(e);if(null==D)throw Error("Data not found in cache");let{pages:z}=D,T=z[z.length-1];return _(),T};function y(e,t){var a;let l,i,u,y,j,w,b,C,k,A,S=(0,r.c)(35),{isLive:_,enabled:D,queryKeyPrefix:z}=void 0===t?{}:t,T=void 0===D||D,E=void 0===z?"":z,{data:P,isLoading:N}=d.Ay.useMe(),M=[E,e,P?.team?.queryTimeout],I=(0,o.jE)(),L=(0,h.Ge)(),R=I.getQueriesData({queryKey:[E,(0,p.cJ)(e,["dateRange"])]}).filter(v).length>0,K=!!T;S[0]!==K?(l={enabled:K,placeholderData:void 0},S[0]=K,S[1]=l):l=S[1];let{data:q,isLoading:F}=(0,m.d)(e,l),B=e?.source;S[2]!==B?(i={id:B},S[2]=B,S[3]=i):i=S[3];let{data:X,isLoading:H}=(0,g.Fo)(i);S[4]!==_?(u=e=>_?e:void 0,S[4]=_,S[5]=u):u=S[5];let W=T&&!N&&!F&&!H;S[6]===Symbol.for("react.memo_cache_sentinel")?(y={windowIndex:0,offset:0},S[6]=y):y=S[6],S[7]!==e?(j=(t,a)=>(function(e,t,a){if(null==e)return;let[r,l]=a.dateRange,n=(0,s.es)(a.orderBy)?(0,x.Me)(r,l):(0,x.so)(r,l),i=e.window,o=t.filter(e=>e.window.windowIndex===i.windowIndex).reduce((e,t)=>e+t.data.length,0);if(e.data.length>0)return{windowIndex:i.windowIndex,offset:o};let c=(0,s.jN)(a),d=i.windowIndex+1;if(c&&de.data),chSql:a.pages[0].chSql,window:a.pages[a.pages.length-1].window},S[25]=O,S[26]=k):k=S[26];let et=k,ea=U||N||F,er=ee||N||F;return S[27]!==Z||S[28]!==$||S[29]!==et||S[30]!==Q||S[31]!==J||S[32]!==ea||S[33]!==er?(A={isError:J,error:Z,data:et,fetchNextPage:$,hasNextPage:Q,isFetching:ea,isLoading:er},S[27]=Z,S[28]=$,S[29]=et,S[30]=Q,S[31]=J,S[32]=ea,S[33]=er,S[34]=A):A=S[34],A}function v(e){let[,t]=e;return null!=t}},88339:(e,t,a)=>{"use strict";a.d(t,{A:()=>y,V:()=>f});var r=a(6029),l=a(75155),n=a(55729),i=a(65234),s=a.n(i),o=a(15215),c=a(73854),d=a(25062),u=a(22623),h=a(90515),m=a(45172),g=a(95352),p=a(91021);function x(e){let t,a,i,o,c=(0,l.c)(12),{text:u,size:g}=e,p=void 0===g?"md":g,[x,f]=(0,n.useState)(!1),y="xs"===p?14:16,v="xs"===p?"compact-xs":"sm",j=(void 0===u?"":u)??"";c[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>f(!0),c[0]=t):t=c[0];let w=x?"light":"default";c[1]!==x||c[2]!==y?(a=x?(0,r.jsx)(h.A,{size:y,className:"me-2"}):(0,r.jsx)(m.A,{size:y,className:"me-2"}),c[1]=x,c[2]=y,c[3]=a):a=c[3];let b=x?"Copied!":"Copy";return c[4]!==v||c[5]!==w||c[6]!==a||c[7]!==b?(i=(0,r.jsxs)(d.$,{variant:w,size:v,className:"position-absolute top-0 end-0",children:[a,b]}),c[4]=v,c[5]=w,c[6]=a,c[7]=b,c[8]=i):i=c[8],c[9]!==j||c[10]!==i?(o=(0,r.jsx)(s(),{text:j,onCopy:t,children:i}),c[9]=j,c[10]=i,c[11]=o):o=c[11],o}function f(e){let t,a,n,i,s,d,u=(0,l.c)(14),{data:h,formatData:m,enableCopy:p,copyButtonSize:f}=e,y=void 0===m||m,v=void 0!==p&&p,j=void 0===f?"md":f;u[0]!==h||u[1]!==y?(t=y?function(e){try{if(null!=e)return(0,c.GP)(e);return e}catch{return e}}(h):h,u[0]=h,u[1]=y,u[2]=t):t=u[2];let w=t;return u[3]===Symbol.for("react.memo_cache_sentinel")?(a={lineNumbers:!1,foldGutter:!1,highlightActiveLine:!1,highlightActiveLineGutter:!1},n=[(0,o.ll)()],u[3]=a,u[4]=n):(a=u[3],n=u[4]),u[5]!==w?(i=(0,r.jsx)(g.Ay,{indentWithTab:!1,value:w,theme:"dark",basicSetup:a,extensions:n,editable:!1}),u[5]=w,u[6]=i):i=u[6],u[7]!==j||u[8]!==w||u[9]!==v?(s=v&&(0,r.jsx)(x,{text:w,size:j}),u[7]=j,u[8]=w,u[9]=v,u[10]=s):s=u[10],u[11]!==i||u[12]!==s?(d=(0,r.jsxs)("div",{className:"position-relative",children:[i,s]}),u[11]=i,u[12]=s,u[13]=d):d=u[13],d}function y(e){let t,a,n=(0,l.c)(3),{config:i}=e,{data:s}=(0,p.zu)(i);return n[0]===Symbol.for("react.memo_cache_sentinel")?(t={overflow:"hidden"},n[0]=t):t=n[0],n[1]!==s?(a=(0,r.jsx)(u.t,{flex:"auto",shadow:"none",radius:"sm",style:t,children:(0,r.jsx)(f,{data:s,formatData:!1})}),n[1]=s,n[2]=a):a=n[2],a}},99082:(e,t,a)=>{"use strict";a.d(t,{A:()=>M});var r=a(6029),l=a(75155),n=a(55729),i=a(63085),s=a(76013),o=a(43085),c=a(15683),d=a(27798),u=a(57389),h=a(27166),m=a(43517),g=a(45005),p=a(3635),x=a(39603),f=a(76089),y=a(34834),v=a(48378),j=a(46181),w=a(11088),b=a(67747),C=a(7565);function k({config:e}){let t=(0,n.useMemo)(()=>(0,f.AB)(e.dimensionColumns),[e.dimensionColumns]),a=(0,n.useMemo)(()=>{let t=new Map;for(let{sourceColumn:a="",aggFn:r}of e.aggregatedColumns)t.has(a)?t.get(a)?.push(r):t.set(a,[r]);return Array.from(t.entries()).sort(([e],[t])=>e.localeCompare(t))},[e.aggregatedColumns]);return(0,r.jsxs)(y.B,{gap:"md",children:[(0,r.jsxs)(v.x,{columns:2,children:[(0,r.jsxs)(v.x.Col,{span:1,children:[(0,r.jsxs)(p.Y,{align:"center",mb:"xs",gap:"xs",children:[(0,r.jsx)(m.E,{size:"sm",fw:500,children:"Granularity"}),(0,r.jsx)(i.m,{multiline:!0,maw:400,label:` - The size of the time buckets into which data is pre-aggregated. - Aggregate values can vary slightly between materialized views and the base source - table when the selected time range does not align with the view's granularity. - `,children:(0,r.jsx)(b.A,{size:16})})]}),(0,r.jsx)(j.a,{children:e.minGranularity})]}),e.minDate&&(0,r.jsxs)(v.x.Col,{span:1,children:[(0,r.jsx)(m.E,{size:"sm",fw:500,mb:"xs",children:"Minimum Date"}),(0,r.jsx)(j.a,{children:(0,r.jsx)(C.H,{value:e.minDate,format:"withYear"})})]})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)(m.E,{size:"sm",fw:500,mb:"xs",children:"Available Group and Filter Columns"}),(0,r.jsx)(p.Y,{gap:"xs",children:t.map(e=>(0,r.jsx)(j.a,{children:e},e))})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)(m.E,{size:"sm",fw:500,mb:"sm",children:"Available Aggregated Columns"}),(0,r.jsxs)(w.X,{children:[(0,r.jsx)(w.X.Thead,{children:(0,r.jsxs)(w.X.Tr,{children:[(0,r.jsx)(w.X.Th,{children:"Column"}),(0,r.jsx)(w.X.Th,{children:"Aggregation"})]})}),(0,r.jsx)(w.X.Tbody,{children:a.map(([e,t])=>(0,r.jsxs)(w.X.Tr,{children:[(0,r.jsx)(w.X.Td,{children:e}),(0,r.jsx)(w.X.Td,{children:(0,r.jsx)(p.Y,{gap:"xs",children:t.map(e=>(0,r.jsx)(j.a,{children:e},e))})})]},e))})]})]})]})}function A(e){return`mv-${e.databaseName}-${e.tableName}`}function S(e){let t,a,n,s,c,d,u,f,y,v,j,w,b=(0,l.c)(33),{mvConfigs:C,explanations:S,opened:T,onClose:E}=e,P=C.length>1;b[0]!==S?(t=new Map(S.map(z)),b[0]=S,b[1]=t):t=b[1];let N=t;if(b[2]!==S||b[3]!==P||b[4]!==E||b[5]!==T){let e=S.find(D)?.mvConfig;n=h.a,c=P?"Materialized Views":"Materialized View",d=T,u=E,f="lg";let t=P?"materialized views":"a materialized view";b[14]!==t?(y=(0,r.jsxs)(m.E,{size:"sm",mb:"sm",children:["This source is configured with"," ",t," for accelerating some aggregations."]}),b[14]=t,b[15]=y):y=b[15],a=g.n,s=e&&A(e),b[2]=S,b[3]=P,b[4]=E,b[5]=T,b[6]=a,b[7]=n,b[8]=s,b[9]=c,b[10]=d,b[11]=u,b[12]=f,b[13]=y}else a=b[6],n=b[7],s=b[8],c=b[9],d=b[10],u=b[11],f=b[12],y=b[13];if(b[16]!==N||b[17]!==C){let e;b[19]!==N?(e=e=>{let t=A(e),a=N.get(t),l=!!a?.errors.length,n=a?.success,s=a?.rowEstimate?.toLocaleString()??"N/A";return(0,r.jsxs)(g.n.Item,{value:t,children:[(0,r.jsx)(g.n.Control,{px:"xs",children:(0,r.jsxs)(p.Y,{justify:"space-between",children:[(0,r.jsx)(m.E,{children:e.tableName}),n?(0,r.jsx)(i.m,{label:`Estimated rows scanned: ${s}`,children:(0,r.jsx)(o.E,{me:"md",color:"var(--color-bg-success)",children:"Active"})}):l?(0,r.jsx)(i.m,{label:"This materialized view is not compatible with the selected query.",children:(0,r.jsx)(o.E,{me:"md",color:"var(--color-bg-warning)",children:"Incompatible"})}):a?(0,r.jsx)(i.m,{label:`Estimated rows scanned: ${s}`,children:(0,r.jsx)(o.E,{me:"md",color:"gray",children:"Skipped"})}):null]})}),(0,r.jsx)(g.n.Panel,{children:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(k,{config:e}),l&&(0,r.jsxs)(x.F,{color:"red",mt:"xs",children:[(0,r.jsx)(m.E,{size:"sm",fw:500,mb:"xs",children:"The query cannot be accelerated using this materialized view for the following reason(s):"}),a.errors.map(_)]})]})})]},t)},b[19]=N,b[20]=e):e=b[20],v=C.map(e),b[16]=N,b[17]=C,b[18]=v}else v=b[18];return b[21]!==a||b[22]!==s||b[23]!==v?(j=(0,r.jsx)(a,{defaultValue:s,children:v}),b[21]=a,b[22]=s,b[23]=v,b[24]=j):j=b[24],b[25]!==n||b[26]!==c||b[27]!==d||b[28]!==u||b[29]!==f||b[30]!==y||b[31]!==j?(w=(0,r.jsxs)(n,{title:c,opened:d,onClose:u,size:f,children:[y,j]}),b[25]=n,b[26]=c,b[27]=d,b[28]=u,b[29]=f,b[30]=y,b[31]=j,b[32]=w):w=b[32],w}function _(e,t){return(0,r.jsx)(m.E,{size:"sm",mt:"xs",children:e},t)}function D(e){return e.success}function z(e){return[A(e.mvConfig),e]}let T="var(--color-bg-warning)",E="var(--color-bg-success)";function P(e){let t,a=(0,l.c)(3),{isInWarningState:n,onClick:o}=e;return a[0]!==n||a[1]!==o?(t=n?(0,r.jsx)(i.m,{label:"Not Accelerated",children:(0,r.jsx)(s.M,{onClick:o,children:(0,r.jsx)(c.A,{size:16,color:T})})}):(0,r.jsx)(i.m,{label:"Accelerated",children:(0,r.jsx)(s.M,{onClick:o,children:(0,r.jsx)(d.A,{size:18,color:E})})}),a[0]=n,a[1]=o,a[2]=t):t=a[2],t}function N(e){let t,a=(0,l.c)(4),{isInWarningState:n,onClick:i}=e,s=n?T:E,c=n?"Not Accelerated":"Accelerated";return a[0]!==i||a[1]!==s||a[2]!==c?(t=(0,r.jsx)(o.E,{color:s,onClick:i,className:"cursor-pointer",children:c}),a[0]=i,a[1]=s,a[2]=c,a[3]=t):t=a[3],t}function M(e){let t,a,i,s,o=(0,l.c)(12),{source:c,config:d,variant:h}=e,m=void 0===h?"badge":h,[g,p]=(0,n.useState)(!1),{data:x}=(0,u.d)(d);o[0]!==c.materializedViews?(t=c.materializedViews??[],o[0]=c.materializedViews,o[1]=t):t=o[1];let f=t;if(!f?.length)return null;let y=!!d&&!!x&&!x?.optimizedConfig;return o[2]!==y||o[3]!==m?(a="icon"===m?(0,r.jsx)(P,{isInWarningState:y,onClick:()=>p(!0)}):(0,r.jsx)(N,{isInWarningState:y,onClick:()=>p(!0)}),o[2]=y,o[3]=m,o[4]=a):a=o[4],o[5]!==x||o[6]!==g||o[7]!==f?(i=x&&(0,r.jsx)(S,{mvConfigs:f,explanations:x.explanations,opened:g,onClose:()=>p(!1)}),o[5]=x,o[6]=g,o[7]=f,o[8]=i):i=o[8],o[9]!==a||o[10]!==i?(s=(0,r.jsxs)(r.Fragment,{children:[a,i]}),o[9]=a,o[10]=i,o[11]=s):s=o[11],s}}}]); \ No newline at end of file diff --git a/out/_next/static/chunks/3234-d8981055fd9e22cb.js b/out/_next/static/chunks/3234-d8981055fd9e22cb.js new file mode 100644 index 0000000..93db4d6 --- /dev/null +++ b/out/_next/static/chunks/3234-d8981055fd9e22cb.js @@ -0,0 +1,5 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3234],{6379:(e,t,a)=>{"use strict";a.d(t,{FC:()=>K,yI:()=>R});var r=a(6029),n=a(75155),l=a(55729),i=a(75828),s=a.n(i),o=a(25605),c=a(43465),d=a(86508),u=a(7913),h=a(92205),m=a(56721),g=a(14693),p=a(13297),x=a(40684),f=a(8454),y=a(2893),v=a(47122),j=a(31292),w=a(88140),b=a(64370),C=a(93463),k=a(82641),_=a(37659),S=a(92917),A=a(23648),D=a(43152),z=a(7565),T=a(43736),P=a.n(T);let E=(0,l.memo)(e=>{let t,a=(0,n.c)(8),{p:l,previous:i,numberFormat:s}=e,o=l.color??"",c=l.name??l.dataKey,d=i?.value;return a[0]!==s||a[1]!==l.opacity||a[2]!==l.strokeDasharray||a[3]!==l.value||a[4]!==o||a[5]!==c||a[6]!==d?(t=(0,r.jsx)(A.H,{color:o,name:c,value:l.value,numberFormat:s,indicator:"line",strokeDasharray:l.strokeDasharray,opacity:l.opacity,previous:d}),a[0]=s,a[1]=l.opacity,a[2]=l.strokeDasharray,a[3]=l.value,a[4]=o,a[5]=c,a[6]=d,a[7]=t):t=a[7],t}),N=(0,u.withErrorBoundary)((0,l.memo)(e=>{let t,a=(0,n.c)(22),{active:l,payload:i,label:s,numberFormat:o,lineDataMap:c,previousPeriodOffsetSeconds:d}=e;a[0]!==i?(t=new Map(i.map(F)),a[0]=i,a[1]=t):t=a[1];let u=t;if(l&&i&&i.length){let e,t,n,l,h,m=1e3*s;a[2]!==m?(e=(0,r.jsx)(z.H,{value:m}),a[2]=m,a[3]=e):e=a[3],a[4]!==s||a[5]!==d?(t=null!=d&&(0,r.jsxs)(r.Fragment,{children:[" (vs ",(0,r.jsx)(z.H,{value:(s-d)*1e3}),")"]}),a[4]=s,a[5]=d,a[6]=t):t=a[6],a[7]!==e||a[8]!==t?(n=(0,r.jsxs)(r.Fragment,{children:[e,t]}),a[7]=e,a[8]=t,a[9]=n):n=a[9];let g=n;if(a[10]!==c||a[11]!==o||a[12]!==i||a[13]!==u){let e;a[15]!==c||a[16]!==o||a[17]!==u?(e=e=>{let t=c[e.dataKey]?.previousPeriodKey,a=t!==e.dataKey&&t?u.get(t):void 0;return(0,r.jsx)(E,{p:e,numberFormat:o,previous:a},e.dataKey)},a[15]=c,a[16]=o,a[17]=u,a[18]=e):e=a[18],l=i.sort(q).map(e),a[10]=c,a[11]=o,a[12]=i,a[13]=u,a[14]=l}else l=a[14];return a[19]!==g||a[20]!==l?(h=(0,r.jsx)(A.l,{header:g,children:l}),a[19]=g,a[20]=l,a[21]=h):h=a[21],h}return null}),{onError:console.error,fallback:(0,r.jsx)("div",{className:"text-danger px-2 py-1 m-2 fs-8 font-monospace bg-danger-transparent",children:"An error occurred while rendering the tooltip."})});function M(e){let t,a,i,s,o,c=(0,n.c)(21),{entry:d,expanded:u,isSelected:h,isDisabled:m,onToggle:g}=e,[p,x]=(0,l.useState)(!1),f=p||u,y=m?.3:1,v=h?600:400;c[0]!==d.color||c[1]!==y||c[2]!==v?(t={color:d.color,opacity:y,fontWeight:v,cursor:"pointer"},c[0]=d.color,c[1]=y,c[2]=v,c[3]=t):t=c[3],c[4]!==g?(a=e=>{g?g(e.shiftKey):x(I)},c[4]=g,c[5]=a):a=c[5];let j=h?"Click to show all (Shift+click to deselect)":"Click to show only this (Shift+click for multi-select)",w=m?.3:1,b=d.payload?.strokeDasharray,C=h?2.5:1.5;return c[6]!==d.color||c[7]!==w||c[8]!==b||c[9]!==C?(i=(0,r.jsx)("div",{children:(0,r.jsx)("svg",{width:"12",height:"4",children:(0,r.jsx)("line",{x1:"0",y1:"2",x2:"12",y2:"2",stroke:d.color,opacity:w,strokeDasharray:b,strokeWidth:C})})}),c[6]=d.color,c[7]=w,c[8]=b,c[9]=C,c[10]=i):i=c[10],c[11]!==d.value||c[12]!==f||c[13]!==h?(s=f||h?d.value:(0,S.kU)(`${d.value}`,35),c[11]=d.value,c[12]=f,c[13]=h,c[14]=s):s=c[14],c[15]!==s||c[16]!==t||c[17]!==a||c[18]!==j||c[19]!==i?(o=(0,r.jsxs)("span",{className:`d-flex gap-1 items-center justify-center ${P().legendItem}`,style:t,role:"button",onClick:a,title:j,children:[i,s]}),c[15]=s,c[16]=t,c[17]=a,c[18]=j,c[19]=i,c[20]=o):o=c[20],o}function I(e){return!e}let L=(0,l.memo)(e=>{let{payload:t=[],lineDataMap:a,allLineData:n=[],selectedSeries:i=new Set,onToggleSeries:o}=e,c=i.size>0,d=(0,l.useMemo)(()=>n.length>0?n.map(e=>({dataKey:e.dataKey,value:e.displayName||e.dataKey,color:e.color,payload:{strokeDasharray:e.isDashed?"4 3":"0"}})):t,[n,t]),u=(0,l.useMemo)(()=>{let e=new Map;return d.forEach((t,r)=>{let n=a[t.dataKey]?.currentPeriodKey||"";e.has(n)||e.set(n,r)}),d.sort((t,r)=>{let n=a[t.dataKey]?.currentPeriodKey??"",l=a[r.dataKey]?.currentPeriodKey??"",i=e.get(n)??0;return(e.get(l)??0)-i||t.dataKey.localeCompare(r.dataKey)})},[d,a]),h=u.slice(0,4),m=u.slice(4);return(0,r.jsxs)("div",{className:P().legend,children:[h.map((e,t)=>{let a=i.has(e.value);return(0,r.jsx)(M,{entry:e,isSelected:a,isDisabled:c&&!a,onToggle:t=>o?.(e.value,t)},`item-${t}`)}),m.length?(0,r.jsxs)(_.A,{withinPortal:!0,withArrow:!0,closeOnEscape:!0,closeOnClickOutside:!0,children:[(0,r.jsx)(_.A.Target,{children:(0,r.jsxs)("div",{className:s()(P().legendItem,P().legendMoreLink),children:["+",m.length," more"]})}),(0,r.jsx)(_.A.Dropdown,{p:"xs",children:(0,r.jsx)("div",{className:P().legendTooltipContent,children:m.map((e,t)=>{let a=i.has(e.value);return(0,r.jsx)(M,{entry:e,isSelected:a,isDisabled:c&&!a,onToggle:t=>o?.(e.value,t)},`item-${t}`)})})})]}):null]})}),R=60,K=(0,l.memo)(function({graphResults:e,setIsClickActive:t,isClickActive:a,dateRange:n,lineData:i,referenceLines:s,logReferenceTimestamp:u,displayType:_=k.t2.Line,numberFormat:A,isLoading:T,timestampKey:P="ts_bucket",onTimeRangeSelect:E,showLegend:M=!0,previousPeriodOffsetSeconds:I,selectedSeriesNames:K,onToggleSeries:F,granularity:q,dateRangeEndInclusive:H=!0}){let B=(0,l.useId)().replace(/:/g,""),[X,W]=(0,l.useState)(!1),V=_===k.t2.StackedBar?h.E:m.Q,Y=(0,l.useMemo)(()=>{let e=K&&K.size>0;return i.map(e=>e.dataKey).slice(0,R).filter((t,a)=>{let r=i[a]?.displayName??t;return!e||K.has(r)}).map(e=>{let t=i.findIndex(t=>t.dataKey===e),a=i[t]?.color,n=i[t]?.isDashed?"4 3":"0",l=i[t]?.displayName??e;return"stacked_bar"===_?(0,r.jsx)(g.y,{type:"monotone",dataKey:e,name:l,fill:a,opacity:1,stackId:"1",isAnimationActive:!1,shape:(0,r.jsx)(e=>{let{x:t,y:a,width:n,height:l,fill:i}=e;return(0,r.jsx)("rect",{x:t,y:a,width:n,height:l&&l>0?l+.5:0,fill:i})},{dataKey:e})},e):(0,r.jsx)(p.G,{dataKey:e,type:"monotone",stroke:a,fillOpacity:1,...X?{fill:"none",strokeDasharray:n}:{fill:`url(#time-chart-lin-grad-${B}-${a?.replace("#","").toLowerCase()})`,strokeDasharray:n},name:l,isAnimationActive:!1,connectNulls:!0},e)})},[i,_,B,X,K]),G=(0,l.useMemo)(()=>{if(!(K&&K.size>0))return[0,"auto"];let t=1/0,a=-1/0;if(e.forEach(e=>{i.forEach(r=>{let n=r.displayName||r.dataKey;if(K.has(n)){let n=e[r.dataKey];"number"!=typeof n||isNaN(n)||(t=Math.min(t,n),a=Math.max(a,n))}})}),t!==1/0&&a!==-1/0){let e=(a-t)*.1;return[Math.max(0,t-e),a+e]}return["auto","auto"]},[e,i,K]),O=(0,l.useRef)([0,0]),$=(0,z.a)(),Q=(0,l.useCallback)((e,t)=>$(1e3*e,{format:0===t?"normal":"time"}),[$]),U=(0,l.useCallback)((e,t)=>A?(0,S.ZV)(e,{...A,average:!0,mantissa:0,unit:void 0}):new Intl.NumberFormat("en-US",{notation:"compact",compactDisplay:"short"}).format(e),[A]),[J,Z]=(0,l.useState)(),[ee,et]=(0,l.useState)(),ea=(0,l.useRef)(null),er=(0,l.useMemo)(()=>{let e={};return i.forEach(t=>{e[t.dataKey]=t}),e},[i]),en=(0,l.useMemo)(()=>{let e=(0,D.W6)(n[0],q),t=(0,D.W6)(n[1],q);if((0,o.A)(n[1],t)&&!H&&(t=(0,c.A)(t,{seconds:(0,D.qL)(q)})),_===k.t2.StackedBar){let a=(0,D.qL)(q)/2;e=(0,c.A)(e,{seconds:a}),t=(0,d.A)(t,{seconds:a})}return[e.getTime()/1e3,t.getTime()/1e3]},[n,q,H,_]);return(0,r.jsx)(x.u,{width:"100%",height:"100%",minWidth:0,onResize:(e,t)=>{O.current=[e??1,t??1]},className:T?"effect-pulse":"",children:(0,r.jsxs)(V,{width:500,height:300,data:e,syncId:"hdx",syncMethod:"value",onMouseEnter:()=>W(!0),onMouseLeave:e=>{W(!1),Z(void 0),et(void 0),ea.current=null},onMouseDown:e=>{null!=e&&null!=e.chartX&&null!=e.chartY&&(Z(e.activeLabel),ea.current=e.chartX)},onMouseMove:e=>{W(!0),null!=J&&(et(e.activeLabel),t(void 0))},onMouseUp:e=>{let t=0;if(null!=ea.current&&e?.chartX!=null&&(t=Math.abs(e.chartX-ea.current)),e?.activeLabel!=null&&J===e.activeLabel)Z(void 0),et(void 0),ea.current=null;else if(null!=J&&null!=ee&&t>=20){try{E?.(new Date(1e3*Number.parseInt(J<=ee?J:ee)),new Date(1e3*Number.parseInt(ee>=J?ee:J)))}catch(e){console.error("failed to highlight range",e)}Z(void 0),et(void 0),ea.current=null}else Z(void 0),et(void 0),ea.current=null},onClick:(e,a)=>{null!=e&&null!=e.chartX&&null!=e.chartY&&null!=e.activeLabel&&null==J?t({x:e.chartX,y:e.chartY,activeLabel:e.activeLabel,xPerc:e.chartX/O.current[0],yPerc:e.chartY/O.current[1],activePayload:e.activePayload}):t(void 0),a.stopPropagation()},children:[(0,r.jsx)("defs",{children:S.lm.map(e=>(0,r.jsxs)("linearGradient",{id:`time-chart-lin-grad-${B}-${e.replace("#","").toLowerCase()}`,x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,r.jsx)("stop",{offset:"0%",stopColor:e,stopOpacity:.15}),(0,r.jsx)("stop",{offset:"10%",stopColor:e,stopOpacity:.003})]},e))}),X&&(0,r.jsx)(f.d,{strokeDasharray:"3 3",stroke:"var(--color-border)"}),(0,r.jsx)(y.W,{dataKey:P??"ts_bucket",domain:en,interval:"preserveStartEnd",scale:"time",type:"number",tickFormatter:Q,minTickGap:100,tick:{fontSize:11,fontFamily:"IBM Plex Mono, monospace"}}),(0,r.jsx)(v.h,{width:40,minTickGap:25,tickFormatter:U,tick:{fontSize:11,fontFamily:"IBM Plex Mono, monospace"},domain:G}),Y,null==a&&(0,r.jsx)(j.m,{content:(0,r.jsx)(N,{numberFormat:A,lineDataMap:er,previousPeriodOffsetSeconds:I}),wrapperStyle:{zIndex:1}}),s,J&&ee?(0,r.jsx)(w.T,{x1:J,x2:ee,strokeOpacity:.3}):null,M&&(0,r.jsx)(b.s,{iconSize:10,verticalAlign:"bottom",content:(0,r.jsx)(L,{lineDataMap:er,allLineData:i,selectedSeries:K||new Set,onToggleSeries:F}),offset:-100}),null!=a?(0,r.jsx)(C.e,{x:a.activeLabel,stroke:"#ccc"}):null,null!=u?(0,r.jsx)(C.e,{x:u,stroke:"#ff5d5b",strokeDasharray:"3 3",label:"Event"}):null]})})});function F(e){return[e.dataKey,e]}function q(e,t){return t.value-e.value}},9211:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});var r=a(6029),n=a(75155),l=a(1909),i=a(38206);function s(e){let t,a,s,o,c,d=(0,n.c)(16),{field:u,fieldState:h}=(0,l.as)(e),{value:m,onChange:g,onBlur:p,name:x,ref:f}=u;d[0]!==e?({onCreate:t,allowDeselect:s,...a}=e,d[0]=e,d[1]=t,d[2]=a,d[3]=s):(t=d[1],a=d[2],s=d[3]);let y=void 0===s||s,v=e.data?.find(e=>"string"==typeof e?e===m:!("value"in e)||e.value===m);d[4]!==y||d[5]!==g||d[6]!==t?(o=e=>{"_create_new_value"===e&&null!=t?t():(null!==e||y)&&g(e)},d[4]=y,d[5]=g,d[6]=t,d[7]=o):o=d[7];let j=o,w=h.error?.message,b=null==v?null:m;return d[8]!==x||d[9]!==p||d[10]!==f||d[11]!==j||d[12]!==a||d[13]!==w||d[14]!==b?(c=(0,r.jsx)(i.l,{...a,error:w,value:b,onChange:j,onBlur:p,name:x,ref:f}),d[8]=x,d[9]=p,d[10]=f,d[11]=j,d[12]=a,d[13]=w,d[14]=b,d[15]=c):c=d[15],c}},11104:(e,t,a)=>{"use strict";a.d(t,{A:()=>d});var r=a(6029),n=a(75155),l=a(75828),i=a.n(l),s=a(63085),o=a(76013),c=a(3635);let d=function(e){let t,a,l=(0,n.c)(9),{value:d,onChange:u,options:h}=e;if(l[0]!==u||l[1]!==h||l[2]!==d){let e;l[4]!==u||l[5]!==d?(e=e=>{let{icon:t,label:a,value:n,disabled:l}=e;return(0,r.jsx)(s.m,{label:a,children:(0,r.jsx)(o.M,{size:"xs",me:2,className:i()({"text-brand":d===n,"text-muted-hover":d!==n}),disabled:l,onClick:()=>u(n),children:t})},n)},l[4]=u,l[5]=d,l[6]=e):e=l[6],t=h.map(e),l[0]=u,l[1]=h,l[2]=d,l[3]=t}else t=l[3];return l[7]!==t?(a=(0,r.jsx)(c.Y,{className:"bg-muted px-2 py-2 rounded fs-8",align:"center",gap:0,wrap:"nowrap",children:t}),l[7]=t,l[8]=a):a=l[8],a}},15628:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});var r=a(6029),n=a(75155),l=a(3635),i=a(34834);let s=function(e){let t,a,s,o,c=(0,n.c)(10),{title:d,toolbarItems:u,children:h,disableReactiveContainer:m}=e;return c[0]===Symbol.for("react.memo_cache_sentinel")?(t={flexGrow:1},c[0]=t):t=c[0],c[1]!==d||c[2]!==u?(a=(!!d||!!u?.length)&&(0,r.jsxs)(l.Y,{justify:"space-between",align:"start",wrap:"nowrap",children:[(0,r.jsx)("span",{style:{flex:1,flexShrink:1,overflow:"hidden"},children:d}),u&&(0,r.jsx)(l.Y,{flex:0,wrap:"nowrap",gap:5,children:u})]}),c[1]=d,c[2]=u,c[3]=a):a=c[3],c[4]!==h||c[5]!==m?(s=m?h:(0,r.jsx)("div",{style:{position:"relative",width:"100%",height:"100%"},children:(0,r.jsx)("div",{style:{position:"absolute",left:0,right:0,bottom:0,top:0},children:h})}),c[4]=h,c[5]=m,c[6]=s):s=c[6],c[7]!==a||c[8]!==s?(o=(0,r.jsxs)(i.B,{h:"100%",w:"100%",style:t,children:[a,s]}),c[7]=a,c[8]=s,c[9]=o):o=c[9],o}},17421:(e,t,a)=>{"use strict";a.d(t,{P:()=>i});var r=a(6029);a(55729);var n=a(87383),l=a(8737);let i=({data:e,filename:t,children:a,className:i,title:s,disabled:o=!1,onExportStart:c,onExportComplete:d,onExportError:u,...h})=>{let{CSVDownloader:m}=(0,n.jG)();return o||0===e.length?(0,r.jsx)("div",{className:i,title:o?"Export disabled":"No data to export",style:{opacity:.5,cursor:"not-allowed"},...h,children:a}):(0,r.jsx)(l.N,{className:i,title:s,onClick:()=>{try{if(0===e.length)return void u?.(Error("No data to export"));c?.(),d?.()}catch(e){u?.(e instanceof Error?e:Error("Export failed"))}},...h,children:(0,r.jsx)(m,{data:e,filename:t,config:{quotes:!0,quoteChar:'"',escapeChar:'"',delimiter:",",header:!0},style:{color:"inherit",textDecoration:"none",background:"none",border:"none",padding:0,cursor:"pointer",display:"block",width:"100%",height:"100%"},children:a})})}},23648:(e,t,a)=>{"use strict";a.d(t,{H:()=>m,l:()=>g});var r=a(6029),n=a(75155),l=a(55729),i=a(49109),s=a(33958),o=a(92917),c=a(43736),d=a.n(c);let u=new Intl.NumberFormat("en-US",{style:"percent",maximumFractionDigits:2}),h=e=>{let t,a,l=(0,n.c)(7),{current:o,previous:c}=e;if(l[0]!==o||l[1]!==c){a=Symbol.for("react.early_return_sentinel");e:{let e,n,d=0===c?0===o?0:void 0:(o-c)/c;if(void 0==d){a=null;break e}let h=d>0?i.A:s.A;l[4]===Symbol.for("react.memo_cache_sentinel")?(e={display:"inline-flex",alignItems:"center",gap:0},l[4]=e):e=l[4],l[5]!==h?(n=(0,r.jsx)(h,{size:12}),l[5]=h,l[6]=n):n=l[6],t=(0,r.jsxs)("span",{style:e,children:["(",n,u.format(Math.abs(d)),")"]})}l[0]=o,l[1]=c,l[2]=t,l[3]=a}else t=l[2],a=l[3];return a!==Symbol.for("react.early_return_sentinel")?a:t},m=(0,l.memo)(e=>{let t,a,l,i,s,c,d,u,m,g=(0,n.c)(27),{color:p,name:x,value:f,numberFormat:y,indicator:v,strokeDasharray:j,opacity:w,previous:b}=e,C=void 0===v?"line":v;return g[0]!==p||g[1]!==C||g[2]!==w||g[3]!==j?(t="square"===C?(0,r.jsx)("svg",{width:"12",height:"12",children:(0,r.jsx)("rect",{width:"12",height:"12",fill:p,rx:"2"})}):"line"===C?(0,r.jsx)("svg",{width:"12",height:"4",children:(0,r.jsx)("line",{x1:"0",y1:"2",x2:"12",y2:"2",stroke:p,opacity:w,strokeDasharray:j})}):null,g[0]=p,g[1]=C,g[2]=w,g[3]=j,g[4]=t):t=g[4],g[5]!==t?(a=(0,r.jsx)("div",{children:t}),g[5]=t,g[6]=a):a=g[6],g[7]!==p?(l={color:p},g[7]=p,g[8]=l):l=g[8],g[9]!==x?(i=(0,o.kU)(x,50),g[9]=x,g[10]=i):i=g[10],g[11]!==l||g[12]!==i?(s=(0,r.jsx)("span",{style:l,children:i}),g[11]=l,g[12]=i,g[13]=s):s=g[13],g[14]!==y||g[15]!==f?(c=y?(0,o.ZV)(f,y):f,g[14]=y,g[15]=f,g[16]=c):c=g[16],g[17]!==b||g[18]!==f?(d=null!=b&&(0,r.jsx)(h,{current:f,previous:b}),g[17]=b,g[18]=f,g[19]=d):d=g[19],g[20]!==s||g[21]!==c||g[22]!==d?(u=(0,r.jsxs)("div",{children:[s,": ",c," ",d]}),g[20]=s,g[21]=c,g[22]=d,g[23]=u):u=g[23],g[24]!==a||g[25]!==u?(m=(0,r.jsxs)("div",{className:"d-flex gap-2 items-center justify-center",children:[a,u]}),g[24]=a,g[25]=u,g[26]=m):m=g[26],m}),g=e=>{let t,a,l,i=(0,n.c)(7),{header:s,children:o}=e;return i[0]!==s?(t=null!=s&&(0,r.jsx)("div",{className:d().chartTooltipHeader,children:s}),i[0]=s,i[1]=t):t=i[1],i[2]!==o?(a=(0,r.jsx)("div",{className:d().chartTooltipContent,children:o}),i[2]=o,i[3]=a):a=i[3],i[4]!==t||i[5]!==a?(l=(0,r.jsxs)("div",{className:d().chartTooltip,children:[t,a]}),i[4]=t,i[5]=a,i[6]=l):l=i[6],l}},34011:e=>{e.exports={tableWrapper:"Table_tableWrapper__u_gzk",tableBorderless:"Table_tableBorderless__C8oJ4",tableDensityZero:"Table_tableDensityZero___MyCd",tableDensityCompact:"Table_tableDensityCompact__VH49r",tableDensityComfortable:"Table_tableDensityComfortable__yAVt1",tableInteractive:"Table_tableInteractive__g4nmr",emptyMessage:"Table_emptyMessage__Grj3p",tableCellButton:"Table_tableCellButton__q1n1W",cursorColResize:"Table_cursorColResize__8J2BT"}},40228:(e,t,a)=>{"use strict";a.d(t,{S:()=>V});var r=a(6029),n=a(75155),l=a(55729),i=a(82203),s=a.n(i),o=a(11370),c=a(86508),d=a(35467),u=a(76089),h=a(82641),m=a(95991),g=a(37659),p=a(34834),x=a(3635),f=a(92789),y=a(43517),v=a(63085),j=a(25062),w=a(27166),b=a(24589),C=a(78341),k=a(41279),_=a(9841),S=a(45556),A=a(16232),D=a(6876),z=a(43152),T=a(6379),P=a(91021),E=a(57389),N=a(81973),M=a(15628),I=a(35871),L=a(11104),R=a(99082),K=a(88339);function F(e){let t,a,l,i,o,c,d,u,h,j,w,b,C,_,S,A,D,z,T,P,E,N,M,I,L,R=(0,n.c)(70),{activeClickPayload:K,buildSearchUrl:F,onDismiss:V}=e,Y=null!=K&&null!=K.activePayload&&K.activePayload.length>0;if(!Y)return null;if(R[0]!==K.activePayload||R[1]!==K.x||R[2]!==K.y||R[3]!==F||R[4]!==Y||R[5]!==V){let e,n,N,M=K.activePayload.filter(W).sort(X);R[27]===Symbol.for("react.memo_cache_sentinel")?(e={position:"fixed",top:0,left:0,right:0,bottom:0,zIndex:199},R[27]=e):e=R[27],R[28]!==V?(C=(0,r.jsx)(m.Z,{children:(0,r.jsx)("div",{style:e,onClick:e=>{e.stopPropagation(),e.preventDefault(),V()},onMouseDown:B})}),R[28]=V,R[29]=C):C=R[29],l=g.A,E=Y,R[30]!==V?(o=e=>{e||V()},R[30]=V,R[31]=o):o=R[31],c="bottom-start",d=4,u=!0,h=!0,j=!0,w="md";let I=K.x??0,L=K.y??0;R[32]!==I||R[33]!==L?(b=(0,r.jsx)(g.A.Target,{children:(0,r.jsx)("div",{style:{position:"absolute",left:I,top:L,width:1,height:1,pointerEvents:"none"}})}),R[32]=I,R[33]=L,R[34]=b):b=R[34],a=g.A.Dropdown,D="xs",z=300,T=H,P=q,t=p.B,i="xs",R[35]===Symbol.for("react.memo_cache_sentinel")?(_={maxHeight:"220px",overflowY:"auto"},R[35]=_):_=R[35],R[36]!==F?(n=F()??"/search",R[36]=F,R[37]=n):n=R[37],R[38]===Symbol.for("react.memo_cache_sentinel")?(N=(0,r.jsxs)(x.Y,{gap:"xs",children:[(0,r.jsx)(k.A,{size:16}),"View All Events"]}),R[38]=N):N=R[38],R[39]!==V||R[40]!==n?(S=(0,r.jsx)(s(),{"data-testid":"chart-view-events-link",href:n,onClick:V,children:N}),R[39]=V,R[40]=n,R[41]=S):S=R[41],A=M.length>1&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(f.c,{}),(0,r.jsx)(y.E,{c:"gray.5",size:"xs",children:"Filter by group:"}),M.map((e,t)=>{let a=F(e.dataKey,e.value);return(0,r.jsx)(v.m,{label:e.name,withArrow:!0,color:"gray",position:"right",children:(0,r.jsx)(s(),{"data-testid":`chart-view-events-link-${e.dataKey}`,href:a??"/search",onClick:V,children:(0,r.jsxs)(x.Y,{gap:"xs",children:[(0,r.jsx)(k.A,{size:12}),(0,r.jsx)(y.E,{size:"xs",truncate:!0,flex:"1",children:e.name})]})})},t)})]}),R[0]=K.activePayload,R[1]=K.x,R[2]=K.y,R[3]=F,R[4]=Y,R[5]=V,R[6]=t,R[7]=a,R[8]=l,R[9]=i,R[10]=o,R[11]=c,R[12]=d,R[13]=u,R[14]=h,R[15]=j,R[16]=w,R[17]=b,R[18]=C,R[19]=_,R[20]=S,R[21]=A,R[22]=D,R[23]=z,R[24]=T,R[25]=P,R[26]=E}else t=R[6],a=R[7],l=R[8],i=R[9],o=R[10],c=R[11],d=R[12],u=R[13],h=R[14],j=R[15],w=R[16],b=R[17],C=R[18],_=R[19],S=R[20],A=R[21],D=R[22],z=R[23],T=R[24],P=R[25],E=R[26];return R[42]!==t||R[43]!==i||R[44]!==_||R[45]!==S||R[46]!==A?(N=(0,r.jsxs)(t,{gap:i,style:_,children:[S,A]}),R[42]=t,R[43]=i,R[44]=_,R[45]=S,R[46]=A,R[47]=N):N=R[47],R[48]!==a||R[49]!==N||R[50]!==D||R[51]!==z||R[52]!==T||R[53]!==P?(M=(0,r.jsx)(a,{p:D,maw:z,onClick:T,onMouseDown:P,children:N}),R[48]=a,R[49]=N,R[50]=D,R[51]=z,R[52]=T,R[53]=P,R[54]=M):M=R[54],R[55]!==l||R[56]!==o||R[57]!==c||R[58]!==d||R[59]!==u||R[60]!==h||R[61]!==j||R[62]!==w||R[63]!==b||R[64]!==M||R[65]!==E?(I=(0,r.jsxs)(l,{opened:E,onChange:o,position:c,offset:d,withinPortal:u,closeOnEscape:h,withArrow:j,shadow:w,children:[b,M]}),R[55]=l,R[56]=o,R[57]=c,R[58]=d,R[59]=u,R[60]=h,R[61]=j,R[62]=w,R[63]=b,R[64]=M,R[65]=E,R[66]=I):I=R[66],R[67]!==C||R[68]!==I?(L=(0,r.jsxs)(r.Fragment,{children:[C,I]}),R[67]=C,R[68]=I,R[69]=L):L=R[69],L}function q(e){return e.stopPropagation()}function H(e){return e.stopPropagation()}function B(e){e.stopPropagation()}function X(e,t){return t.value-e.value}function W(e){return null!=e.value&&!e.dataKey?.endsWith(z.wt)}let V=(0,l.memo)(function({config:e,disableQueryChunking:t,disableDrillDown:a,enableParallelQueries:n,enabled:i=!0,logReferenceTimestamp:s,onTimeRangeSelect:m,queryKeyPrefix:g,referenceLines:p,setDisplayType:f,showDisplaySwitcher:v=!0,showLegend:k=!0,sourceId:q,hiddenSeries:H,title:B,toolbarPrefix:X,toolbarSuffix:W,showMVOptimizationIndicator:V=!0,showDateRangeIndicator:Y=!0}){let[G,O]=(0,C.j)(!1),[$,Q]=(0,l.useState)(new Set),U=(0,l.useCallback)((e,t)=>{Q(a=>{let r=new Set(a);return t?r.has(e)?r.delete(e):r.add(e):r.has(e)&&1===r.size?r.clear():(r.clear(),r.add(e)),r})},[]),J=e.dateRange,{displayType:Z,dateRange:ee,granularity:et,fillNulls:ea}=(0,z.GJ)(e),er=(0,l.useMemo)(()=>(0,z.O7)(e),[e]),{data:en}=(0,E.d)(er),{data:el,isLoading:ei}=D.Ay.useMe(),{data:es,isLoading:eo,isError:ec,error:ed,isPlaceholderData:eu,isSuccess:eh}=(0,P.HD)(er,{placeholderData:e=>e,queryKey:[g,er,"chunked",{disableQueryChunking:t,enableParallelQueries:n,parallelizeWhenPossible:el?.team?.parallelizeWhenPossible}],enabled:i&&!ei,enableQueryChunking:!t,enableParallelQueries:n&&el?.team?.parallelizeWhenPossible}),em=(0,l.useMemo)(()=>{let e=!1===er.alignDateRangeToGranularity?(0,z.r4)(J):(0,u.Ol)((0,z.r4)(J),er.granularity);return{...er,dateRange:e}},[er,J]),eg=(0,l.useMemo)(()=>e.compareToPreviousPeriod?(0,o.A)(ee[0],em.dateRange[0]):void 0,[e.compareToPreviousPeriod,ee,em.dateRange]),{data:ep,isLoading:ex}=(0,P.HD)(em,{placeholderData:e=>e,queryKey:[g,em,"chunked"],enabled:!!(i&&e.compareToPreviousPeriod),enableQueryChunking:!0});(0,l.useEffect)(()=>{!ec&&G&&O.close()},[ec,G,O]);let ef=eo||ex||!es?.isComplete||e.compareToPreviousPeriod&&!ep?.isComplete||eu,{data:ey}=(0,N.Fo)({id:q||e.source}),{graphResults:ev,timestampColumn:ej,groupColumns:ew,valueColumns:eb,isSingleValueColumn:eC,lineData:ek}=(0,l.useMemo)(()=>{let t={graphResults:[],timestampColumn:void 0,lineData:[],groupColumns:[],valueColumns:[],isSingleValueColumn:!0};if(null==es||!eh)return t;try{return(0,z.zg)({currentPeriodResponse:es,previousPeriodResponse:e.compareToPreviousPeriod?ep:void 0,dateRange:ee,granularity:et,generateEmptyBuckets:(0,z.xu)(ea),source:ey,hiddenSeries:H,previousPeriodOffsetSeconds:eg})}catch(e){return console.error(e),t}},[es,ee,et,eh,ea,ey,e.compareToPreviousPeriod,ep,H,eg]),[e_,eS]=(0,l.useState)(Z),eA=(0,l.useMemo)(()=>f?Z:e_,[e_,Z,f]),eD=(0,l.useCallback)(e=>{f?f(e):eS(e)},[f]);(0,l.useEffect)(()=>{e.compareToPreviousPeriod&&eS(h.t2.Line)},[e.compareToPreviousPeriod]);let[ez,eT]=(0,l.useState)(void 0),eP=(0,l.useCallback)(e=>{null==ey||a||eT(e)},[ey,a]),eE=(0,l.useMemo)(()=>ez?.activeLabel!=null?new Date(1e3*Number.parseInt(ez.activeLabel)):void 0,[ez]),eN=(0,l.useCallback)((t,a)=>{let r;if(null==eE||null==ey)return null;let n=t?.split(z.Hx),l=[];if(n?.length&&ew?.length&&(!(eC??!0)||(ew?.length??0)===0&&(eb?.length??0)>0?n.slice(1):n).forEach((e,t)=>{null!=ew[t]&&l.push({column:ew[t],value:e})}),a&&Array.isArray(e.select)&&e.select.length>0){let t;if((eC??!0)&&1===e.select.length){let a=e.select[0],r="string"==typeof a?void 0:a.aggFn;z.gT.find(e=>e.value===r)?.isAttributable!==!1&&(t="string"==typeof a?a:a.valueExpression)}else if(n?.length&&(eb?.length??0)>0){let a=n[0],r=eb?.findIndex(e=>e===a);if(null!=r&&r>=0&&re.value===n)?.isAttributable!==!1&&(t="string"==typeof a?a:a.valueExpression)}}t&&(r={expression:t,value:a})}let i=(0,c.A)(eE,{seconds:(0,z.qL)(et)});return(0,z.VH)({source:ey,config:e,dateRange:[eE,i],groupFilters:l,valueRangeFilter:r})},[eE,e,et,ey,ew,eb,eC]),eM=(0,l.useMemo)(()=>{let t=[];X&&X.length>0&&t.push(...X),ey&&V&&t.push((0,r.jsx)(R.A,{config:er,source:ey,variant:"icon"},"db-time-chart-mv-indicator"));let a=en?.optimizedConfig?.dateRange,n=!1!==er.alignDateRangeToGranularity;if(Y&&(a||n)){let l=n?void 0:en?.explanations.find(e=>e.success)?.mvConfig.minGranularity;t.push((0,r.jsx)(I.A,{originalDateRange:e.dateRange,effectiveDateRange:a||er.dateRange,mvGranularity:l},"db-time-chart-date-range-indicator"))}return v&&t.push((0,r.jsx)(L.A,{value:eA,onChange:eD,options:[{value:h.t2.Line,label:"Display as Line Chart",icon:(0,r.jsx)(_.A,{})},{value:h.t2.StackedBar,label:e.compareToPreviousPeriod?"Bar Chart Unavailable When Comparing to Previous Period":"Display as Bar Chart",icon:(0,r.jsx)(S.A,{}),disabled:e.compareToPreviousPeriod}]},"db-time-chart-display-switcher")),W&&W.length>0&&t.push(...W),t},[e,eA,eD,v,ey,X,W,V,Y,en,er]);return(0,r.jsx)(M.A,{title:B,toolbarItems:eM,children:eo&&!es?(0,r.jsx)("div",{className:"d-flex h-100 w-100 align-items-center justify-content-center text-muted",children:"Loading Chart Data..."}):ec?(0,r.jsxs)("div",{className:"h-100 w-100 d-flex g-1 flex-column align-items-center justify-content-center text-muted overflow-auto",children:[(0,r.jsx)(y.E,{ta:"center",size:"sm",mt:"sm",children:"Error loading chart, please check your query or try again later."}),(0,r.jsx)(j.$,{className:"mx-auto",variant:"danger",onClick:()=>O.open(),children:(0,r.jsxs)(x.Y,{gap:"xxs",children:[(0,r.jsx)(A.A,{size:16}),"See Error Details"]})}),(0,r.jsx)(w.a,{opened:G,onClose:()=>O.close(),title:"Error Details",children:(0,r.jsxs)(x.Y,{align:"start",children:[(0,r.jsx)(y.E,{size:"sm",ta:"center",children:"Error Message:"}),(0,r.jsx)(b.C,{block:!0,style:{whiteSpace:"pre-wrap"},children:ed.message}),ed instanceof d.p1&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(y.E,{my:"sm",size:"sm",ta:"center",children:"Sent Query:"}),(0,r.jsx)(K.V,{data:ed?.query})]})]})})]}):0===ev.length?(0,r.jsx)("div",{className:"d-flex h-100 w-100 align-items-center justify-content-center text-muted",children:"No data found within time range."}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(F,{activeClickPayload:ez,buildSearchUrl:eN,onDismiss:()=>eT(void 0)}),(0,r.jsx)(T.FC,{dateRange:ee,displayType:eA,graphResults:ev,isClickActive:ez,lineData:ek,isLoading:ef,logReferenceTimestamp:s,numberFormat:e.numberFormat,onTimeRangeSelect:m,referenceLines:p,setIsClickActive:eP,showLegend:k,timestampKey:ej?.name,previousPeriodOffsetSeconds:eg,selectedSeriesNames:$,onToggleSeries:U,granularity:et,dateRangeEndInclusive:er.dateRangeEndInclusive})]})})})},43736:e=>{e.exports={legend:"HDXLineChart_legend__lPU01",legendItem:"HDXLineChart_legendItem____Qwu",legendMoreLink:"HDXLineChart_legendMoreLink__16Wq1",legendTooltipContent:"HDXLineChart_legendTooltipContent__tHXLT",chartTooltip:"HDXLineChart_chartTooltip__hEAmh",chartTooltipHeader:"HDXLineChart_chartTooltipHeader__l9Fb7",chartTooltipContent:"HDXLineChart_chartTooltipContent__vtVBK"}},48423:(e,t,a)=>{"use strict";a.d(t,{A:()=>x});var r=a(6029),n=a(75828),l=a.n(n),i=a(3635),s=a(43517),o=a(25062),c=a(97767),d=a(67872),u=a(2485),h=a(79220),m=a(68593),g=a(34011),p=a.n(g);function x({isLast:e,header:t,lastItemButtons:a}){return(0,r.jsx)("th",{className:"overflow-hidden",colSpan:t.colSpan,style:{width:t.getSize()===m.k?"100%":t.getSize(),minWidth:t.getSize()===m.k?0:t.getSize(),textAlign:"left"},children:(0,r.jsxs)(i.Y,{wrap:"nowrap",gap:0,align:"center",children:[t.column.getCanSort()?(0,r.jsx)(o.$,{size:"xxs",p:1,variant:"subtle",color:"gray",onClick:t.column.getToggleSortingHandler(),flex:"1",justify:"space-between","data-testid":"raw-log-table-sort-button",children:(0,r.jsxs)(r.Fragment,{children:[t.isPlaceholder?null:(0,r.jsx)(s.E,{truncate:"end",size:"xs",flex:"1",children:(0,h.Kv)(t.column.columnDef.header,t.getContext())}),t.column.getIsSorted()&&(0,r.jsx)("div",{"data-testid":"raw-log-table-sort-indicator",className:"asc"===t.column.getIsSorted()?"sorted-asc":"sorted-desc",children:(0,r.jsx)(r.Fragment,{children:"asc"===t.column.getIsSorted()?(0,r.jsx)(c.A,{size:12}):(0,r.jsx)(d.A,{size:12})})})]})}):(0,r.jsx)(s.E,{truncate:"end",size:"xs",flex:"1",children:(0,h.Kv)(t.column.columnDef.header,t.getContext())}),(0,r.jsxs)(i.Y,{gap:0,wrap:"nowrap",align:"center",children:[t.column.getCanResize()&&!e&&(0,r.jsx)("div",{onMouseDown:t.getResizeHandler(),onTouchStart:t.getResizeHandler(),className:l()(`resizer ${p().cursorColResize}`,t.column.getIsResizing()&&"isResizing"),children:(0,r.jsx)(u.A,{size:12})}),e&&(0,r.jsx)(i.Y,{gap:2,wrap:"nowrap",children:a})]})]})},t.id)}},55024:(e,t,a)=>{"use strict";a.d(t,{u:()=>n});var r=a(75155);let n=(e,t,a)=>{let n,l,i=(0,r.c)(14);i[0]!==a?(n=void 0===a?{}:a,i[0]=a,i[1]=n):n=i[1];let{maxRows:s,groupColumnName:o}=n,c=void 0===s?4e3:s;e:{let a,r;if(!Array.isArray(e)||0===e.length||!Array.isArray(t)||0===t.length){let e,t;i[2]===Symbol.for("react.memo_cache_sentinel")?(e=[],i[2]=e):e=i[2],i[3]!==c?(t={csvData:e,maxRows:c,isDataEmpty:!0,actualRowCount:0,isLimited:!1},i[3]=c,i[4]=t):t=i[4],l=t;break e}i[5]!==t||i[6]!==e||i[7]!==o||i[8]!==c?(a=((e,t,a={})=>{let{groupColumnName:r}=a;if(!Array.isArray(e))return console.warn("CSV Export: data must be an array"),[];if(!Array.isArray(t)||0===t.length)return console.warn("CSV Export: columns must be a non-empty array"),[];let n=t.filter(e=>!e||"string"!=typeof e.dataKey||"string"!=typeof e.displayName);return n.length>0?(console.warn("CSV Export: Invalid column structure detected",n),[]):e.filter(e=>null!=e&&"object"==typeof e).map((e,a)=>{try{return{...null!=r?{[r]:e.group??""}:{},...Object.fromEntries(t.map(({displayName:t,dataKey:a})=>{let r=e[a];return null==r?[t,""]:"object"==typeof r?[t,JSON.stringify(r)]:[t,String(r)]}))}}catch(e){return console.warn(`CSV Export: Error processing row ${a}:`,e),{}}}).filter(e=>Object.keys(e).length>0)})(e.slice(0,c),t,{groupColumnName:o}),i[5]=t,i[6]=e,i[7]=o,i[8]=c,i[9]=a):a=i[9];let n=a,s=e.length>c;i[10]!==n||i[11]!==c||i[12]!==s?(r={csvData:n,maxRows:c,isDataEmpty:!1,actualRowCount:n.length,isLimited:s},i[10]=n,i[11]=c,i[12]=s,i[13]=r):r=i[13],l=r}return l}},68593:(e,t,a)=>{"use strict";a.d(t,{k:()=>r});let r=99999},78744:(e,t,a)=>{"use strict";a.d(t,{A:()=>y});var r=a(75155),n=a(67264),l=a.n(n),i=a(67270),s=a(76089),o=a(93251),c=a(95099),d=a(6876),u=a(49672),h=a(78550),m=a(57389),g=a(81973),p=a(92917),x=a(69519);let f=async({queryKey:e,pageParam:t,signal:a,meta:r})=>{if(null==r)throw Error("Query missing client meta");let{queryClient:n,metadata:l,hasPreviousQueries:o,optimizedConfig:c,source:d}=r,h=!o||t.offset>0||t.windowIndex>0,m=e[2],g=(0,u.W)({queryTimeout:m}),p=e[1],f=c??p,y=(0,s.jN)(f)?function(e,t){let[a,r]=e.dateRange,n=((0,s.es)(e.orderBy)?(0,x.Me)(a,r):(0,x.so)(a,r))[t.windowIndex];if(null==n)throw Error("Invalid time window for page param");return n}(f,t):{startTime:f.dateRange[0],endTime:f.dateRange[1],windowIndex:0,direction:"DESC"},v={...f,dateRange:[y.startTime,y.endTime],limit:{limit:f.limit?.limit,offset:t.offset}},j=await (0,i.PV)(v,l,d?.querySettings),w=m?new AbortController:void 0;w&&m&&setTimeout(()=>w.abort(),1e3*m);let b=(await g.query({query:j.sql,query_params:j.params,format:"JSONCompactEachRowWithNamesAndTypes",abort_signal:w?.signal||a,connectionId:f.connection})).stream().getReader(),C=[];h&&n.setQueryData(e,e=>{let a={data:[],meta:[],chSql:{sql:"",params:{}},window:y};return null==e?{pages:[a],pageParams:[t]}:{pages:[...e.pages,a],pageParams:[...e.pageParams,t]}});let k=[],_=[];async function S(){let{done:a,value:r}=await b.read();if(!a&&null!=r){if(C.push(...r),C.length>=2){let a=r;if(0===k.length){let e=C[0].json(),t=C[1].json();if(e.length!==t.length)throw Error("Invalid JSONCompactEachRowWithNamesAndTypes header rows");for(let a=0;a{if(null==e)return{pages:[{data:l,meta:k,chSql:j,window:y}],pageParams:[t]};let a=e.pages.slice(0,-1),r=e.pages[e.pages.length-1];return{pages:[...a,{...r,data:[...r.data??[],...l],meta:k,chSql:j,window:y}],pageParams:e.pageParams}})}return await S()}}function A(){n.setQueryData(e,e=>{if(null!=e)return{pages:e.pages.slice(0,-1),pageParams:e.pageParams.slice(0,-1)}})}try{await S()}catch(e){throw h&&A(),e}if(!h)return{data:_,meta:k,chSql:j,window:y};let D=n.getQueryData(e);if(null==D)throw Error("Data not found in cache");let{pages:z}=D,T=z[z.length-1];return A(),T};function y(e,t){var a;let n,i,u,y,j,w,b,C,k,_,S=(0,r.c)(35),{isLive:A,enabled:D,queryKeyPrefix:z}=void 0===t?{}:t,T=void 0===D||D,P=void 0===z?"":z,{data:E,isLoading:N}=d.Ay.useMe(),M=[P,e,E?.team?.queryTimeout],I=(0,o.jE)(),L=(0,h.Ge)(),R=I.getQueriesData({queryKey:[P,(0,p.cJ)(e,["dateRange"])]}).filter(v).length>0,K=!!T;S[0]!==K?(n={enabled:K,placeholderData:void 0},S[0]=K,S[1]=n):n=S[1];let{data:F,isLoading:q}=(0,m.d)(e,n),H=e?.source;S[2]!==H?(i={id:H},S[2]=H,S[3]=i):i=S[3];let{data:B,isLoading:X}=(0,g.Fo)(i);S[4]!==A?(u=e=>A?e:void 0,S[4]=A,S[5]=u):u=S[5];let W=T&&!N&&!q&&!X;S[6]===Symbol.for("react.memo_cache_sentinel")?(y={windowIndex:0,offset:0},S[6]=y):y=S[6],S[7]!==e?(j=(t,a)=>(function(e,t,a){if(null==e)return;let[r,n]=a.dateRange,l=(0,s.es)(a.orderBy)?(0,x.Me)(r,n):(0,x.so)(r,n),i=e.window,o=t.filter(e=>e.window.windowIndex===i.windowIndex).reduce((e,t)=>e+t.data.length,0);if(e.data.length>0)return{windowIndex:i.windowIndex,offset:o};let c=(0,s.jN)(a),d=i.windowIndex+1;if(c&&de.data),chSql:a.pages[0].chSql,window:a.pages[a.pages.length-1].window},S[25]=O,S[26]=k):k=S[26];let et=k,ea=U||N||q,er=ee||N||q;return S[27]!==Z||S[28]!==$||S[29]!==et||S[30]!==Q||S[31]!==J||S[32]!==ea||S[33]!==er?(_={isError:J,error:Z,data:et,fetchNextPage:$,hasNextPage:Q,isFetching:ea,isLoading:er},S[27]=Z,S[28]=$,S[29]=et,S[30]=Q,S[31]=J,S[32]=ea,S[33]=er,S[34]=_):_=S[34],_}function v(e){let[,t]=e;return null!=t}},88339:(e,t,a)=>{"use strict";a.d(t,{A:()=>y,V:()=>f});var r=a(6029),n=a(75155),l=a(55729),i=a(65234),s=a.n(i),o=a(15215),c=a(73854),d=a(25062),u=a(22623),h=a(90515),m=a(45172),g=a(95352),p=a(91021);function x(e){let t,a,i,o,c=(0,n.c)(12),{text:u,size:g}=e,p=void 0===g?"md":g,[x,f]=(0,l.useState)(!1),y="xs"===p?14:16,v="xs"===p?"compact-xs":"sm",j=(void 0===u?"":u)??"";c[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>f(!0),c[0]=t):t=c[0];let w=x?"light":"default";c[1]!==x||c[2]!==y?(a=x?(0,r.jsx)(h.A,{size:y,className:"me-2"}):(0,r.jsx)(m.A,{size:y,className:"me-2"}),c[1]=x,c[2]=y,c[3]=a):a=c[3];let b=x?"Copied!":"Copy";return c[4]!==v||c[5]!==w||c[6]!==a||c[7]!==b?(i=(0,r.jsxs)(d.$,{variant:w,size:v,className:"position-absolute top-0 end-0",children:[a,b]}),c[4]=v,c[5]=w,c[6]=a,c[7]=b,c[8]=i):i=c[8],c[9]!==j||c[10]!==i?(o=(0,r.jsx)(s(),{text:j,onCopy:t,children:i}),c[9]=j,c[10]=i,c[11]=o):o=c[11],o}function f(e){let t,a,l,i,s,d,u=(0,n.c)(14),{data:h,formatData:m,enableCopy:p,copyButtonSize:f}=e,y=void 0===m||m,v=void 0!==p&&p,j=void 0===f?"md":f;u[0]!==h||u[1]!==y?(t=y?function(e){try{if(null!=e)return(0,c.GP)(e);return e}catch{return e}}(h):h,u[0]=h,u[1]=y,u[2]=t):t=u[2];let w=t;return u[3]===Symbol.for("react.memo_cache_sentinel")?(a={lineNumbers:!1,foldGutter:!1,highlightActiveLine:!1,highlightActiveLineGutter:!1},l=[(0,o.ll)()],u[3]=a,u[4]=l):(a=u[3],l=u[4]),u[5]!==w?(i=(0,r.jsx)(g.Ay,{indentWithTab:!1,value:w,theme:"dark",basicSetup:a,extensions:l,editable:!1}),u[5]=w,u[6]=i):i=u[6],u[7]!==j||u[8]!==w||u[9]!==v?(s=v&&(0,r.jsx)(x,{text:w,size:j}),u[7]=j,u[8]=w,u[9]=v,u[10]=s):s=u[10],u[11]!==i||u[12]!==s?(d=(0,r.jsxs)("div",{className:"position-relative",children:[i,s]}),u[11]=i,u[12]=s,u[13]=d):d=u[13],d}function y(e){let t,a,l=(0,n.c)(3),{config:i}=e,{data:s}=(0,p.zu)(i);return l[0]===Symbol.for("react.memo_cache_sentinel")?(t={overflow:"hidden"},l[0]=t):t=l[0],l[1]!==s?(a=(0,r.jsx)(u.t,{flex:"auto",shadow:"none",radius:"sm",style:t,children:(0,r.jsx)(f,{data:s,formatData:!1})}),l[1]=s,l[2]=a):a=l[2],a}},99082:(e,t,a)=>{"use strict";a.d(t,{A:()=>M});var r=a(6029),n=a(75155),l=a(55729),i=a(63085),s=a(76013),o=a(43085),c=a(15683),d=a(27798),u=a(57389),h=a(27166),m=a(43517),g=a(45005),p=a(3635),x=a(39603),f=a(76089),y=a(34834),v=a(48378),j=a(46181),w=a(11088),b=a(67747),C=a(7565);function k({config:e}){let t=(0,l.useMemo)(()=>(0,f.AB)(e.dimensionColumns),[e.dimensionColumns]),a=(0,l.useMemo)(()=>{let t=new Map;for(let{sourceColumn:a="",aggFn:r}of e.aggregatedColumns)t.has(a)?t.get(a)?.push(r):t.set(a,[r]);return Array.from(t.entries()).sort(([e],[t])=>e.localeCompare(t))},[e.aggregatedColumns]);return(0,r.jsxs)(y.B,{gap:"md",children:[(0,r.jsxs)(v.x,{columns:2,children:[(0,r.jsxs)(v.x.Col,{span:1,children:[(0,r.jsxs)(p.Y,{align:"center",mb:"xs",gap:"xs",children:[(0,r.jsx)(m.E,{size:"sm",fw:500,children:"Granularity"}),(0,r.jsx)(i.m,{multiline:!0,maw:400,label:` + The size of the time buckets into which data is pre-aggregated. + Aggregate values can vary slightly between materialized views and the base source + table when the selected time range does not align with the view's granularity. + `,children:(0,r.jsx)(b.A,{size:16})})]}),(0,r.jsx)(j.a,{children:e.minGranularity})]}),e.minDate&&(0,r.jsxs)(v.x.Col,{span:1,children:[(0,r.jsx)(m.E,{size:"sm",fw:500,mb:"xs",children:"Minimum Date"}),(0,r.jsx)(j.a,{children:(0,r.jsx)(C.H,{value:e.minDate,format:"withYear"})})]})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)(m.E,{size:"sm",fw:500,mb:"xs",children:"Available Group and Filter Columns"}),(0,r.jsx)(p.Y,{gap:"xs",children:t.map(e=>(0,r.jsx)(j.a,{children:e},e))})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)(m.E,{size:"sm",fw:500,mb:"sm",children:"Available Aggregated Columns"}),(0,r.jsxs)(w.X,{children:[(0,r.jsx)(w.X.Thead,{children:(0,r.jsxs)(w.X.Tr,{children:[(0,r.jsx)(w.X.Th,{children:"Column"}),(0,r.jsx)(w.X.Th,{children:"Aggregation"})]})}),(0,r.jsx)(w.X.Tbody,{children:a.map(([e,t])=>(0,r.jsxs)(w.X.Tr,{children:[(0,r.jsx)(w.X.Td,{children:e}),(0,r.jsx)(w.X.Td,{children:(0,r.jsx)(p.Y,{gap:"xs",children:t.map(e=>(0,r.jsx)(j.a,{children:e},e))})})]},e))})]})]})]})}function _(e){return`mv-${e.databaseName}-${e.tableName}`}function S(e){let t,a,l,s,c,d,u,f,y,v,j,w,b=(0,n.c)(33),{mvConfigs:C,explanations:S,opened:T,onClose:P}=e,E=C.length>1;b[0]!==S?(t=new Map(S.map(z)),b[0]=S,b[1]=t):t=b[1];let N=t;if(b[2]!==S||b[3]!==E||b[4]!==P||b[5]!==T){let e=S.find(D)?.mvConfig;l=h.a,c=E?"Materialized Views":"Materialized View",d=T,u=P,f="lg";let t=E?"materialized views":"a materialized view";b[14]!==t?(y=(0,r.jsxs)(m.E,{size:"sm",mb:"sm",children:["This source is configured with"," ",t," for accelerating some aggregations."]}),b[14]=t,b[15]=y):y=b[15],a=g.n,s=e&&_(e),b[2]=S,b[3]=E,b[4]=P,b[5]=T,b[6]=a,b[7]=l,b[8]=s,b[9]=c,b[10]=d,b[11]=u,b[12]=f,b[13]=y}else a=b[6],l=b[7],s=b[8],c=b[9],d=b[10],u=b[11],f=b[12],y=b[13];if(b[16]!==N||b[17]!==C){let e;b[19]!==N?(e=e=>{let t=_(e),a=N.get(t),n=!!a?.errors.length,l=a?.success,s=a?.rowEstimate?.toLocaleString()??"N/A";return(0,r.jsxs)(g.n.Item,{value:t,children:[(0,r.jsx)(g.n.Control,{px:"xs",children:(0,r.jsxs)(p.Y,{justify:"space-between",children:[(0,r.jsx)(m.E,{children:e.tableName}),l?(0,r.jsx)(i.m,{label:`Estimated rows scanned: ${s}`,children:(0,r.jsx)(o.E,{me:"md",color:"var(--color-bg-success)",children:"Active"})}):n?(0,r.jsx)(i.m,{label:"This materialized view is not compatible with the selected query.",children:(0,r.jsx)(o.E,{me:"md",color:"var(--color-bg-warning)",children:"Incompatible"})}):a?(0,r.jsx)(i.m,{label:`Estimated rows scanned: ${s}`,children:(0,r.jsx)(o.E,{me:"md",color:"gray",children:"Skipped"})}):null]})}),(0,r.jsx)(g.n.Panel,{children:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(k,{config:e}),n&&(0,r.jsxs)(x.F,{color:"red",mt:"xs",children:[(0,r.jsx)(m.E,{size:"sm",fw:500,mb:"xs",children:"The query cannot be accelerated using this materialized view for the following reason(s):"}),a.errors.map(A)]})]})})]},t)},b[19]=N,b[20]=e):e=b[20],v=C.map(e),b[16]=N,b[17]=C,b[18]=v}else v=b[18];return b[21]!==a||b[22]!==s||b[23]!==v?(j=(0,r.jsx)(a,{defaultValue:s,children:v}),b[21]=a,b[22]=s,b[23]=v,b[24]=j):j=b[24],b[25]!==l||b[26]!==c||b[27]!==d||b[28]!==u||b[29]!==f||b[30]!==y||b[31]!==j?(w=(0,r.jsxs)(l,{title:c,opened:d,onClose:u,size:f,children:[y,j]}),b[25]=l,b[26]=c,b[27]=d,b[28]=u,b[29]=f,b[30]=y,b[31]=j,b[32]=w):w=b[32],w}function A(e,t){return(0,r.jsx)(m.E,{size:"sm",mt:"xs",children:e},t)}function D(e){return e.success}function z(e){return[_(e.mvConfig),e]}let T="var(--color-bg-warning)",P="var(--color-bg-success)";function E(e){let t,a=(0,n.c)(3),{isInWarningState:l,onClick:o}=e;return a[0]!==l||a[1]!==o?(t=l?(0,r.jsx)(i.m,{label:"Not Accelerated",children:(0,r.jsx)(s.M,{onClick:o,children:(0,r.jsx)(c.A,{size:16,color:T})})}):(0,r.jsx)(i.m,{label:"Accelerated",children:(0,r.jsx)(s.M,{onClick:o,children:(0,r.jsx)(d.A,{size:18,color:P})})}),a[0]=l,a[1]=o,a[2]=t):t=a[2],t}function N(e){let t,a=(0,n.c)(4),{isInWarningState:l,onClick:i}=e,s=l?T:P,c=l?"Not Accelerated":"Accelerated";return a[0]!==i||a[1]!==s||a[2]!==c?(t=(0,r.jsx)(o.E,{color:s,onClick:i,className:"cursor-pointer",children:c}),a[0]=i,a[1]=s,a[2]=c,a[3]=t):t=a[3],t}function M(e){let t,a,i,s,o=(0,n.c)(12),{source:c,config:d,variant:h}=e,m=void 0===h?"badge":h,[g,p]=(0,l.useState)(!1),{data:x}=(0,u.d)(d);o[0]!==c.materializedViews?(t=c.materializedViews??[],o[0]=c.materializedViews,o[1]=t):t=o[1];let f=t;if(!f?.length)return null;let y=!!d&&!!x&&!x?.optimizedConfig;return o[2]!==y||o[3]!==m?(a="icon"===m?(0,r.jsx)(E,{isInWarningState:y,onClick:()=>p(!0)}):(0,r.jsx)(N,{isInWarningState:y,onClick:()=>p(!0)}),o[2]=y,o[3]=m,o[4]=a):a=o[4],o[5]!==x||o[6]!==g||o[7]!==f?(i=x&&(0,r.jsx)(S,{mvConfigs:f,explanations:x.explanations,opened:g,onClose:()=>p(!1)}),o[5]=x,o[6]=g,o[7]=f,o[8]=i):i=o[8],o[9]!==a||o[10]!==i?(s=(0,r.jsxs)(r.Fragment,{children:[a,i]}),o[9]=a,o[10]=i,o[11]=s):s=o[11],s}}}]); \ No newline at end of file diff --git a/out/_next/static/chunks/35-38880205eb57367e.js b/out/_next/static/chunks/35-38880205eb57367e.js new file mode 100644 index 0000000..64b237b --- /dev/null +++ b/out/_next/static/chunks/35-38880205eb57367e.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[35],{6876:(e,s,t)=>{t.d(s,{Ay:()=>m,Q5:()=>c});var r=t(81278),a=t.n(r),n=t(62910),o=t(16932),i=t(12482),l=t(98142);let d=n.Ay.create({prefixUrl:"/api",credentials:"include",hooks:{afterResponse:[function(e,s,t){if(!["/","/forgot","/join-team","/login","/register","/reset-password"].includes(a().pathname)&&401===t.status){try{window.sessionStorage.setItem("hdx-login-redirect-url",a().asPath)}catch(e){console.error(e)}a().push("/login")}}]},timeout:!1}),c=(e,s)=>d(e,{...s}),m={useCreateAlert:()=>(0,o.n)({mutationFn:async e=>d("alerts",{method:"POST",json:e}).json()}),useUpdateAlert:()=>(0,o.n)({mutationFn:async e=>d(`alerts/${e.id}`,{method:"PUT",json:e}).json()}),useDeleteAlert:()=>(0,o.n)({mutationFn:async e=>d(`alerts/${e}`,{method:"DELETE"})}),useSilenceAlert:()=>(0,o.n)({mutationFn:async({alertId:e,mutedUntil:s})=>d(`alerts/${e}/silenced`,{method:"POST",json:{mutedUntil:s}})}),useUnsilenceAlert:()=>(0,o.n)({mutationFn:async e=>d(`alerts/${e}/silenced`,{method:"DELETE"})}),useDashboards:e=>(0,i.I)({queryKey:["dashboards"],queryFn:()=>l.VO?null:c("dashboards",{method:"GET"}).json(),...e}),useCreateDashboard:()=>(0,o.n)({mutationFn:async({name:e,charts:s,query:t,tags:r})=>c("dashboards",{method:"POST",json:{name:e,charts:s,query:t,tags:r}}).json()}),useUpdateDashboard:()=>(0,o.n)({mutationFn:async({id:e,name:s,charts:t,query:r,tags:a})=>c(`dashboards/${e}`,{method:"PUT",json:{name:s,charts:t,query:r,tags:a}}).json()}),useDeleteDashboard:()=>(0,o.n)({mutationFn:async({id:e})=>c(`dashboards/${e}`,{method:"DELETE"}).json()}),usePresetDashboardFilters:(e,s,t=!0)=>(0,i.I)({queryKey:["dashboards","preset",e,"filters",s],queryFn:()=>c(`dashboards/preset/${e}/filters/`,{method:"GET",searchParams:{sourceId:s}}).json(),enabled:!!s&&t}),useCreatePresetDashboardFilter:()=>(0,o.n)({mutationFn:async e=>c(`dashboards/preset/${e.presetDashboard}/filter`,{method:"POST",json:{filter:e}}).json()}),useUpdatePresetDashboardFilter:()=>(0,o.n)({mutationFn:async e=>c(`dashboards/preset/${e.presetDashboard}/filter`,{method:"PUT",json:{filter:e}}).json()}),useDeletePresetDashboardFilter:()=>(0,o.n)({mutationFn:async({id:e,presetDashboard:s})=>c(`dashboards/preset/${s}/filter/${e}`,{method:"DELETE"}).json()}),useAlerts:()=>(0,i.I)({queryKey:["alerts"],queryFn:()=>c("alerts").json()}),useServices:()=>(0,i.I)({queryKey:["services"],queryFn:()=>c("chart/services",{method:"GET"}).json()}),useRotateTeamApiKey:()=>(0,o.n)({mutationFn:async()=>c("team/apiKey",{method:"PATCH"}).json()}),useDeleteTeamMember:()=>(0,o.n)({mutationFn:async({userId:e})=>c(`team/member/${e}`,{method:"DELETE"}).json()}),useTeamInvitations:()=>(0,i.I)({queryKey:["team/invitations"],queryFn:()=>c("team/invitations").json()}),useSaveTeamInvitation:()=>(0,o.n)({mutationFn:async({name:e,email:s})=>c("team/invitation",{method:"POST",json:{name:e,email:s}}).json()}),useDeleteTeamInvitation:()=>(0,o.n)({mutationFn:async({id:e})=>c(`team/invitation/${e}`,{method:"DELETE"}).json()}),useInstallation:()=>(0,i.I)({queryKey:["installation"],queryFn:()=>{if(!l.VO)return c("installation").json()}}),useMe:()=>(0,i.I)({queryKey:["me"],queryFn:()=>l.VO?null:c("me").json()}),useTeam:()=>(0,i.I)({queryKey:["team"],queryFn:()=>l.VO?null:c("team").json(),retry:1}),useTeamMembers:()=>(0,i.I)({queryKey:["team/members"],queryFn:()=>c("team/members").json()}),useSetTeamName:()=>(0,o.n)({mutationFn:async({name:e})=>c("team/name",{method:"PATCH",json:{name:e}}).json()}),useUpdateClickhouseSettings:()=>(0,o.n)({mutationFn:async e=>c("team/clickhouse-settings",{method:"PATCH",json:e}).json()}),useTags:()=>(0,i.I)({queryKey:["team/tags"],queryFn:()=>c("team/tags").json()}),useSaveWebhook:()=>(0,o.n)({mutationFn:async({service:e,url:s,name:t,description:r,queryParams:a,headers:n,body:o})=>c("webhooks",{method:"POST",json:{name:t,service:e,url:s,description:r,queryParams:a||{},headers:n||{},body:o}}).json()}),useUpdateWebhook:()=>(0,o.n)({mutationFn:async({id:e,service:s,url:t,name:r,description:a,queryParams:n,headers:o,body:i})=>c(`webhooks/${e}`,{method:"PUT",json:{name:r,service:s,url:t,description:a,queryParams:n||{},headers:o||{},body:i}}).json()}),useWebhooks:e=>(0,i.I)({queryKey:[...e],queryFn:()=>c("webhooks",{method:"GET",searchParams:[...e.map(e=>["service",e])]}).json()}),useDeleteWebhook:()=>(0,o.n)({mutationFn:async({id:e})=>c(`webhooks/${e}`,{method:"DELETE"}).json()}),useTestWebhook:()=>(0,o.n)({mutationFn:async({service:e,url:s,queryParams:t,headers:r,body:a})=>c("webhooks/test",{method:"POST",json:{service:e,url:s,queryParams:t||{},headers:r||{},body:a}}).json()}),useRegisterPassword:()=>(0,o.n)({mutationFn:async({email:e,password:s,confirmPassword:t})=>c("register/password",{method:"POST",json:{email:e,password:s,confirmPassword:t}}).json()}),useTestConnection:()=>(0,o.n)({mutationFn:async({host:e,username:s,password:t})=>c("clickhouse-proxy/test",{method:"POST",json:{host:e,username:s,password:t}}).json()})}},23935:(e,s,t)=>{t.d(s,{M:()=>c});var r=t(6029),a=t(50212);t(55729);var n=t(80616),o=t(63863),i=t(43517),l={root:"m_849cf0da"};let d={underline:"hover"},c=(0,o.v)((e,s)=>{let{underline:t,className:o,unstyled:c,mod:m,...h}=(0,n.Y)("Anchor",d,e);return(0,r.jsx)(i.E,{component:"a",ref:s,className:(0,a.A)({[l.root]:!c},o),...h,mod:[{underline:t},m],__staticSelector:"Anchor",unstyled:c})});c.classes=l,c.displayName="@mantine/core/Anchor"},39090:(e,s,t)=>{t.d(s,{A:()=>r});var r=(0,t(41495).A)("outline","lock","IconLock",[["path",{d:"M5 13a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-6z",key:"svg-0"}],["path",{d:"M11 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0",key:"svg-1"}],["path",{d:"M8 11v-4a4 4 0 1 1 8 0v4",key:"svg-2"}]])},40035:(e,s,t)=>{t.d(s,{A:()=>X});var r=t(6029),a=t(75155),n=t(55729),o=t(82203),i=t.n(o),l=t(81278),d=t(51652),c=t(11335),m=t(1909),h=t(59029),u=t(45544),p=t(37699),y=t(25062),g=t(22623),j=t(34834),x=(0,t(41495).A)("outline","at","IconAt",[["path",{d:"M12 12m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0",key:"svg-0"}],["path",{d:"M16 12v1.5a2.5 2.5 0 0 0 5 0v-1.5a9 9 0 1 0 -5.5 8.28",key:"svg-1"}]]),v=t(39090),f=t(36600),b=t(6876),w=t(98142),C=t(26615),P=t(76),T=t(5618),E=t(66404),F=t(80616),A=t(37666),k=t(60481),S=t(43016),_=t(8737),D={root:"m_fea6bf1a",burger:"m_d4fb9cad"};let I={},q=(0,T.V)((e,{color:s,size:t,lineSize:r,transitionDuration:a,transitionTimingFunction:n})=>({root:{"--burger-color":s?(0,E.r)(s,e):void 0,"--burger-size":(0,P.YC)(t,"burger-size"),"--burger-line-size":r?(0,C.D)(r):void 0,"--burger-transition-duration":void 0===a?void 0:`${a}ms`,"--burger-transition-timing-function":n}})),z=(0,S.P9)((e,s)=>{let t=(0,F.Y)("Burger",I,e),{classNames:a,className:n,style:o,styles:i,unstyled:l,vars:d,opened:c,children:m,transitionDuration:h,transitionTimingFunction:u,lineSize:p,...y}=t,g=(0,A.I)({name:"Burger",classes:D,props:t,className:n,style:o,classNames:a,styles:i,unstyled:l,vars:d,varsResolver:q});return(0,r.jsxs)(_.N,{...g("root"),ref:s,...y,children:[(0,r.jsx)(k.a,{mod:["reduce-motion",{opened:c}],...g("burger")}),m]})});z.classes=D,z.displayName="@mantine/core/Burger";var M=t(23935),$=t(3635),N=t(83171),L=t(78341);function K(e){let s,t,n,o,l,d,c,m,h,u,p,g,j,x,v,w,C,P=(0,a.c)(52),{activeKey:T,fixed:E}=e,F=(0,f.Kh)(),A=(0,f.PH)(),{data:k}=b.Ay.useMe(),S=!!k,{data:_}=b.Ay.useInstallation(),[D,I]=(0,L.j)(!1),{toggle:q}=I;P[0]===Symbol.for("react.memo_cache_sentinel")?(s={position:"fixed",top:0,left:0,right:0,background:"var(--color-bg-body)",backdropFilter:"blur(12px)",borderBottom:"1px solid var(--color-border)",zIndex:100},P[0]=s):s=P[0],P[1]===Symbol.for("react.memo_cache_sentinel")?(t={textDecoration:"none"},P[1]=t):t=P[1],P[2]!==A?(n=(0,r.jsx)(i(),{href:"/",style:t,children:A}),P[2]=A,P[3]=n):n=P[3],P[4]!==D||P[5]!==q?(o=(0,r.jsx)(z,{opened:D,onClick:q,hiddenFrom:"lg",color:"white"}),P[4]=D,P[5]=q,P[6]=o):o=P[6];let K="cloud"===T?"var(--color-text-primary)":"gray",W="cloud"===T?600:400;P[7]!==W?(l={fontWeight:W},P[7]=W,P[8]=l):l=P[8],P[9]!==F||P[10]!==K||P[11]!==l?(d=(0,r.jsxs)(M.M,{href:"https://hyperdx.io",c:K,underline:"never",style:l,size:"sm",children:[F," Cloud"]}),P[9]=F,P[10]=K,P[11]=l,P[12]=d):d=P[12];let O="docs"===T?"var(--color-text-primary)":"gray",B="docs"===T?600:400;return P[13]!==B?(c={fontWeight:B},P[13]=B,P[14]=c):c=P[14],P[15]!==O||P[16]!==c?(m=(0,r.jsx)(M.M,{href:"https://clickhouse.com/docs/use-cases/observability/clickstack",c:O,underline:"never",style:c,size:"sm",children:"Docs"}),P[15]=O,P[16]=c,P[17]=m):m=P[17],P[18]!==T||P[19]!==_?.isTeamExisting||P[20]!==S?(h=!S&&_?.isTeamExisting===!0&&(0,r.jsx)(M.M,{href:"/login",c:"/login"===T?"var(--color-text-primary)":"gray",underline:"never",style:{fontWeight:"/login"===T?600:400},size:"sm",children:"Login"}),P[18]=T,P[19]=_?.isTeamExisting,P[20]=S,P[21]=h):h=P[21],P[22]!==T||P[23]!==_?.isTeamExisting||P[24]!==S?(u=!S&&"/register"!==T&&_?.isTeamExisting===!1&&(0,r.jsx)(i(),{href:"/register",children:(0,r.jsx)(y.$,{variant:"primary",size:"sm",children:"Setup Account"})}),P[22]=T,P[23]=_?.isTeamExisting,P[24]=S,P[25]=u):u=P[25],P[26]!==S?(p=S&&(0,r.jsx)(i(),{href:"/search",children:(0,r.jsx)(y.$,{variant:"primary",size:"sm",children:"Go to Search"})}),P[26]=S,P[27]=p):p=P[27],P[28]!==m||P[29]!==h||P[30]!==u||P[31]!==p||P[32]!==d?(g=(0,r.jsxs)($.Y,{gap:"lg",visibleFrom:"lg",children:[d,m,h,u,p]}),P[28]=m,P[29]=h,P[30]=u,P[31]=p,P[32]=d,P[33]=g):g=P[33],P[34]!==g||P[35]!==n||P[36]!==o?(j=(0,r.jsxs)($.Y,{justify:"space-between",align:"center",children:[n,o,g]}),P[34]=g,P[35]=n,P[36]=o,P[37]=j):j=P[37],P[38]!==T||P[39]!==F||P[40]!==_?.isTeamExisting||P[41]!==S||P[42]!==D?(x=D&&(0,r.jsxs)($.Y,{gap:"sm",mt:"md",hiddenFrom:"lg",style:{fontSize:14},children:[(0,r.jsxs)(M.M,{href:"https://hyperdx.io",underline:"never",style:{fontWeight:"cloud"===T?600:400},children:[F," Cloud"]}),(0,r.jsx)(M.M,{href:"https://clickhouse.com/docs/use-cases/observability/clickstack",underline:"never",style:{fontWeight:"docs"===T?600:400},children:"Docs"}),!S&&_?.isTeamExisting===!0&&(0,r.jsx)(M.M,{href:"/login",underline:"never",style:{fontWeight:"/login"===T?600:400},children:"Login"}),!S&&"/register"!==T&&_?.isTeamExisting===!1&&(0,r.jsx)(i(),{href:"/register",children:(0,r.jsx)(y.$,{variant:"primary",size:"sm",fullWidth:!0,children:"Setup Account"})}),S&&(0,r.jsx)(i(),{href:"/search",children:(0,r.jsx)(y.$,{variant:"primary",size:"sm",fullWidth:!0,children:"Go to Search"})})]}),P[38]=T,P[39]=F,P[40]=_?.isTeamExisting,P[41]=S,P[42]=D,P[43]=x):x=P[43],P[44]!==j||P[45]!==x?(v=(0,r.jsx)("div",{style:s,children:(0,r.jsxs)(N.m,{fluid:!0,px:"xl",py:"md",children:[j,x]})}),P[44]=j,P[45]=x,P[46]=v):v=P[46],P[47]!==E?(w=!E&&(0,r.jsx)("div",{style:{height:70}}),P[47]=E,P[48]=w):w=P[48],P[49]!==v||P[50]!==w?(C=(0,r.jsxs)(r.Fragment,{children:[v,w]}),P[49]=v,P[50]=w,P[51]=C):C=P[51],C}var W=t(90515),O=t(74011);let B=e=>e.length>=12,V=e=>/[A-Z]+/.test(e),U=e=>/[a-z]+/.test(e),Y=e=>/\d+/.test(e),R=e=>/\W+/.test(e),Z=e=>{let s,t=(0,a.c)(2),n=e.password;return t[0]!==n?(s=(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{children:(0,r.jsx)(H,{handler:B,password:n,children:"minimum 12 characters"})}),(0,r.jsx)("div",{children:(0,r.jsx)(H,{handler:V,password:n,children:"at least 1 uppercase"})}),(0,r.jsx)("div",{children:(0,r.jsx)(H,{handler:U,password:n,children:"at least 1 lowercase"})}),(0,r.jsx)("div",{children:(0,r.jsx)(H,{handler:Y,password:n,children:"at least 1 number"})}),(0,r.jsx)("div",{children:(0,r.jsx)(H,{handler:R,password:n,children:"at least 1 special character"})})]}),t[0]=n,t[1]=s):s=t[1],s},H=e=>{let s,t,n,o,i=(0,a.c)(13),{handler:l,password:d,children:c}=e;i[0]!==d?(s="",s="string"==typeof d?d:d.password??"",i[0]=d,i[1]=s):s=i[1];let m=0===s.length;i[2]!==s||i[3]!==l?(t=l(s),i[2]=s,i[3]=l,i[4]=t):t=i[4];let h=t;if(m){let e;return i[5]!==c?(e=(0,r.jsx)("span",{children:c}),i[5]=c,i[6]=e):e=i[6],e}let u=h?"text-success":"text-danger";return i[7]!==h?(n=h?(0,r.jsx)(G,{}):(0,r.jsx)(Q,{}),i[7]=h,i[8]=n):n=i[8],i[9]!==c||i[10]!==u||i[11]!==n?(o=(0,r.jsxs)("span",{className:u,children:[n," ",c]}),i[9]=c,i[10]=u,i[11]=n,i[12]=o):o=i[12],o},G=()=>{let e,s=(0,a.c)(1);return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,r.jsx)(W.A,{size:14}),s[0]=e):e=s[0],e},Q=()=>{let e,s=(0,a.c)(1);return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,r.jsx)(O.A,{size:14}),s[0]=e):e=s[0],e};function X(e){let s,t,o,C,P,T,E,F,A,k,S,_,D,I,q,z,M,$,N,L,W,O,B,V,U,Y,R,G,Q,X,J,ee,es,et=(0,a.c)(93),{action:er}=e,ea=(0,f.Kh)(),{data:en,isLoading:eo}=b.Ay.useTeam(),ei=(0,l.useRouter)(),el=!!(!eo&&en);et[0]!==el||et[1]!==ei?(s=()=>{el&&ei.push("/search")},t=[el,ei],et[0]=el,et[1]=ei,et[2]=s,et[3]=t):(s=et[2],t=et[3]),(0,n.useEffect)(s,t);let ed="register"===er;et[4]===Symbol.for("react.memo_cache_sentinel")?(o={reValidateMode:"onSubmit"},et[4]=o):o=et[4];let{register:ec,handleSubmit:em,formState:eh,setError:eu,control:ep}=(0,m.mN)(o),{errors:ey,isSubmitting:eg}=eh,{err:ej,msg:ex}=ei.query,{data:ev}=b.Ay.useInstallation(),ef=b.Ay.useRegisterPassword(),eb="verify"===ex,ew=`${ea} - ${ed?"Sign up":"Login"}`;et[5]!==ev?.isTeamExisting||et[6]!==ed||et[7]!==ei?(C=()=>{w.bp&&ev?.isTeamExisting===!0&&ed&&ei.push("/login")},et[5]=ev?.isTeamExisting,et[6]=ed,et[7]=ei,et[8]=C):C=et[8],et[9]!==ev||et[10]!==ed||et[11]!==ei?(P=[ev,ed,ei],et[9]=ev,et[10]=ed,et[11]=ei,et[12]=P):P=et[12],(0,n.useEffect)(C,P),et[13]!==ep?(T={control:ep,name:"password",defaultValue:""},et[13]=ep,et[14]=T):T=et[14];let eC=(0,m.FH)(T);et[15]!==ep?(E={control:ep,name:"confirmPassword",defaultValue:""},et[15]=ep,et[16]=E):E=et[16];let eP=(0,m.FH)(E);et[17]!==eP||et[18]!==eC?(F=()=>eC===eP,et[17]=eP,et[18]=eC,et[19]=F):F=et[19];let eT=F;et[20]!==ef||et[21]!==ei||et[22]!==eu?(A=e=>ef.mutate({email:e.email,password:e.password,confirmPassword:e.confirmPassword},{onSuccess:()=>ei.push("/search"),onError:async e=>{if(e instanceof c.H){let s=await e.response.json();if(Array.isArray(s)&&s[0]?.errors?.issues)return s[0].errors.issues.forEach(e=>{eu(e.path[0],{type:e.code,message:e.message})})}eu("root",{type:"manual",message:"An unexpected error occurred, please try again later."})}}),et[20]=ef,et[21]=ei,et[22]=eu,et[23]=A):A=et[23];let eE=A;et[24]!==em||et[25]!==ed||et[26]!==eE||et[27]!==ec?(k=ed?{controller:{onSubmit:em(eE)},email:ec("email",{required:!0}),password:ec("password",{required:!0}),confirmPassword:ec("confirmPassword",{required:!0})}:{controller:{action:"/api/login/password",method:"POST"},email:{name:"email"},password:{name:"password"}},et[24]=em,et[25]=ed,et[26]=eE,et[27]=ec,et[28]=k):k=et[28];let eF=k;et[29]!==ew?(S=(0,r.jsx)(d.bV,{title:ew}),et[29]=ew,et[30]=S):S=et[30];let eA=`/${er}`;et[31]!==eA?(_=(0,r.jsx)(K,{activeKey:eA,fixed:!0}),et[31]=eA,et[32]=_):_=et[32],et[33]===Symbol.for("react.memo_cache_sentinel")?(D={width:"26rem"},et[33]=D):D=et[33],et[34]===Symbol.for("react.memo_cache_sentinel")?(I={marginTop:-30},et[34]=I):I=et[34];let ek=w.bp&&ed?"Setup ":ed?"Register for ":"Login to ";et[35]!==ea?(q=(0,r.jsx)("span",{className:"text-brand fw-bold",children:ea}),et[35]=ea,et[36]=q):q=et[36],et[37]!==ek||et[38]!==q?(z=(0,r.jsxs)("div",{className:"text-center mb-2 fs-5 ",style:I,children:[ek,q]}),et[37]=ek,et[38]=q,et[39]=z):z=et[39],et[40]!==er?(M="login"===er&&(0,r.jsx)("div",{className:"text-center mb-2 ",children:"Welcome back!"}),et[40]=er,et[41]=M):M=et[41],et[42]!==ed?($=ed&&!0===w.bp&&(0,r.jsxs)("div",{className:"text-center mb-2 text-muted",children:["Let","'","s create your user account."]}),et[42]=ed,et[43]=$):$=et[43],et[44]===Symbol.for("react.memo_cache_sentinel")?(N=(0,r.jsx)(x,{size:18}),et[44]=N):N=et[44];let eS=ey.email?.message;et[45]!==eF.email||et[46]!==eS?(L=(0,r.jsx)(h.k,{label:"Email",size:"md",withAsterisk:!1,placeholder:"you@company.com",type:"email",leftSection:N,error:eS,required:!0,...eF.email}),et[45]=eF.email,et[46]=eS,et[47]=L):L=et[47],et[48]===Symbol.for("react.memo_cache_sentinel")?(W=(0,r.jsx)(v.A,{size:16}),et[48]=W):W=et[48];let e_=ey.password?.message;et[49]!==eF.password||et[50]!==e_?(O=(0,r.jsx)(u.y,{size:"md",label:"Password",withAsterisk:!1,leftSection:W,error:e_,required:!0,placeholder:"Password",...eF.password}),et[49]=eF.password,et[50]=e_,et[51]=O):O=et[51],et[52]!==eT||et[53]!==eC||et[54]!==ey.confirmPassword?.message||et[55]!==eF.confirmPassword||et[56]!==ed?(B=ed&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(u.y,{label:(0,r.jsx)(H,{handler:eT,password:eC,children:"Confirm Password"}),size:"md",required:!0,withAsterisk:!1,leftSection:(0,r.jsx)(v.A,{size:16}),error:ey.confirmPassword?.message,placeholder:"Confirm Password",...eF.confirmPassword}),(0,r.jsx)(p.E,{withCloseButton:!1,children:(0,r.jsx)(Z,{password:eC})})]}),et[52]=eT,et[53]=eC,et[54]=ey.confirmPassword?.message,et[55]=eF.confirmPassword,et[56]=ed,et[57]=B):B=et[57];let eD=eg||eb,eI=w.bp&&ed?"Create":ed?"Register":"Login";return et[58]!==eg||et[59]!==eD||et[60]!==eI?(V=(0,r.jsx)(y.$,{mt:4,type:"submit",variant:"primary",size:"md",disabled:eD,loading:eg,"data-test-id":"submit",children:eI}),et[58]=eg,et[59]=eD,et[60]=eI,et[61]=V):V=et[61],et[62]!==L||et[63]!==O||et[64]!==B||et[65]!==V?(U=(0,r.jsx)(g.t,{p:34,shadow:"md",radius:"md",children:(0,r.jsxs)(j.B,{gap:"lg",children:[L,O,B,V]})}),et[62]=L,et[63]=O,et[64]=B,et[65]=V,et[66]=U):U=et[66],et[67]!==ej?(Y=null!=ej&&(0,r.jsx)(p.E,{withCloseButton:!1,withBorder:!0,color:"red","data-test-id":"auth-error-msg",children:"missing"===ej?"Please provide a valid email and password":"invalid"===ej?"Email or password is invalid":"authFail"===ej?"Failed to login with email and password, please try again.":"passwordAuthNotAllowed"===ej?"Password authentication is not allowed by your team admin.":"teamAlreadyExists"===ej?"Team already exists, please login instead.":"Unknown error occurred, please try again later."}),et[67]=ej,et[68]=Y):Y=et[68],et[69]!==eb?(R=eb&&(0,r.jsx)(p.E,{withCloseButton:!1,withBorder:!0,color:"green","data-test-id":"auth-msg",children:"Sent verification email! Please check your email inbox"}),et[69]=eb,et[70]=R):R=et[70],et[71]!==ed?(G=ed&&!1===w.bp&&(0,r.jsxs)("div",{"data-test-id":"login-link",className:"text-center fs-8 ",children:["Already have an account? ",(0,r.jsx)(i(),{href:"/login",children:"Log in"})," ","instead."]}),et[71]=ed,et[72]=G):G=et[72],et[73]!==er?(Q="login"===er&&!1===w.bp&&(0,r.jsxs)("div",{"data-test-id":"register-link",className:"text-center fs-8 ",children:["Don","'","t have an account yet?"," ",(0,r.jsx)(i(),{href:"/register",children:"Register"})," instead."]}),et[73]=er,et[74]=Q):Q=et[74],et[75]!==U||et[76]!==Y||et[77]!==R||et[78]!==G||et[79]!==Q?(X=(0,r.jsxs)(j.B,{gap:"xl",children:[U,Y,R,G,Q]}),et[75]=U,et[76]=Y,et[77]=R,et[78]=G,et[79]=Q,et[80]=X):X=et[80],et[81]!==eF.controller||et[82]!==X?(J=(0,r.jsx)("form",{className:"text-start mt-4",...eF.controller,children:X}),et[81]=eF.controller,et[82]=X,et[83]=J):J=et[83],et[84]!==z||et[85]!==M||et[86]!==$||et[87]!==J?(ee=(0,r.jsx)("div",{className:"d-flex justify-content-center align-items-center vh-100",children:(0,r.jsxs)("div",{style:D,children:[z,M,$,J]})}),et[84]=z,et[85]=M,et[86]=$,et[87]=J,et[88]=ee):ee=et[88],et[89]!==S||et[90]!==_||et[91]!==ee?(es=(0,r.jsxs)("div",{className:"AuthPage",children:[S,_,ee]}),et[89]=S,et[90]=_,et[91]=ee,et[92]=es):es=et[92],es}},45544:(e,s,t)=>{t.d(s,{y:()=>f});var r=t(6029),a=t(50212),n=t(60466),o=t(3001);t(55729);var i=t(76),l=t(5618),d=t(35228),c=t(37666),m=t(80616),h=t(3389),u=t(43016),p=t(76013),y=t(96061),g=t(94613),j={root:"m_f61ca620",input:"m_ccf8da4c",innerInput:"m_f2d85dd2",visibilityToggle:"m_b1072d44"};let x={visibilityToggleIcon:({reveal:e})=>(0,r.jsx)("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{width:"var(--psi-icon-size)",height:"var(--psi-icon-size)"},children:(0,r.jsx)("path",{d:e?"M13.3536 2.35355C13.5488 2.15829 13.5488 1.84171 13.3536 1.64645C13.1583 1.45118 12.8417 1.45118 12.6464 1.64645L10.6828 3.61012C9.70652 3.21671 8.63759 3 7.5 3C4.30786 3 1.65639 4.70638 0.0760002 7.23501C-0.0253338 7.39715 -0.0253334 7.60288 0.0760014 7.76501C0.902945 9.08812 2.02314 10.1861 3.36061 10.9323L1.64645 12.6464C1.45118 12.8417 1.45118 13.1583 1.64645 13.3536C1.84171 13.5488 2.15829 13.5488 2.35355 13.3536L4.31723 11.3899C5.29348 11.7833 6.36241 12 7.5 12C10.6921 12 13.3436 10.2936 14.924 7.76501C15.0253 7.60288 15.0253 7.39715 14.924 7.23501C14.0971 5.9119 12.9769 4.81391 11.6394 4.06771L13.3536 2.35355ZM9.90428 4.38861C9.15332 4.1361 8.34759 4 7.5 4C4.80285 4 2.52952 5.37816 1.09622 7.50001C1.87284 8.6497 2.89609 9.58106 4.09974 10.1931L9.90428 4.38861ZM5.09572 10.6114L10.9003 4.80685C12.1039 5.41894 13.1272 6.35031 13.9038 7.50001C12.4705 9.62183 10.1971 11 7.5 11C6.65241 11 5.84668 10.8639 5.09572 10.6114Z":"M7.5 11C4.80285 11 2.52952 9.62184 1.09622 7.50001C2.52952 5.37816 4.80285 4 7.5 4C10.1971 4 12.4705 5.37816 13.9038 7.50001C12.4705 9.62183 10.1971 11 7.5 11ZM7.5 3C4.30786 3 1.65639 4.70638 0.0760002 7.23501C-0.0253338 7.39715 -0.0253334 7.60288 0.0760014 7.76501C1.65639 10.2936 4.30786 12 7.5 12C10.6921 12 13.3436 10.2936 14.924 7.76501C15.0253 7.60288 15.0253 7.39715 14.924 7.23501C13.3436 4.70638 10.6921 3 7.5 3ZM7.5 9.5C8.60457 9.5 9.5 8.60457 9.5 7.5C9.5 6.39543 8.60457 5.5 7.5 5.5C6.39543 5.5 5.5 6.39543 5.5 7.5C5.5 8.60457 6.39543 9.5 7.5 9.5Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})},v=(0,l.V)((e,{size:s})=>({root:{"--psi-icon-size":(0,i.YC)(s,"psi-icon-size"),"--psi-button-size":(0,i.YC)(s,"psi-button-size")}})),f=(0,u.P9)((e,s)=>{let t=(0,m.Y)("PasswordInput",x,e),{classNames:i,className:l,style:u,styles:g,unstyled:f,vars:b,required:w,error:C,leftSection:P,disabled:T,id:E,variant:F,inputContainer:A,description:k,label:S,size:_,errorProps:D,descriptionProps:I,labelProps:q,withAsterisk:z,inputWrapperOrder:M,wrapperProps:$,radius:N,rightSection:L,rightSectionWidth:K,rightSectionPointerEvents:W,leftSectionWidth:O,visible:B,defaultVisible:V,onVisibilityChange:U,visibilityToggleIcon:Y,visibilityToggleButtonProps:R,rightSectionProps:Z,leftSectionProps:H,leftSectionPointerEvents:G,withErrorStyles:Q,mod:X,...J}=t,ee=(0,n.B)(E),[es,et]=(0,o.Z)({value:B,defaultValue:V,finalValue:!1,onChange:U}),er=(0,c.I)({name:"PasswordInput",classes:j,props:t,className:l,style:u,classNames:i,styles:g,unstyled:f,vars:b,varsResolver:v}),{resolvedClassNames:ea,resolvedStyles:en}=(0,d.Y)({classNames:i,styles:g,props:t}),{styleProps:eo,rest:ei}=(0,h.j)(J),el=D?.id||`${ee}-error`,ed=I?.id||`${ee}-description`,ec=!!C&&"boolean"!=typeof C,em=!!k,eh=`${ec?el:""} ${em?ed:""}`,eu=eh.trim().length>0?eh.trim():void 0,ep=(0,r.jsx)(p.M,{...er("visibilityToggle"),disabled:T,radius:N,"aria-hidden":!R,tabIndex:-1,...R,variant:R?.variant??"subtle",color:"gray",unstyled:f,onTouchEnd:e=>{e.preventDefault(),R?.onTouchEnd?.(e),et(!es)},onMouseDown:e=>{e.preventDefault(),R?.onMouseDown?.(e),et(!es)},onKeyDown:e=>{R?.onKeyDown?.(e)," "===e.key&&(e.preventDefault(),et(!es))},children:(0,r.jsx)(Y,{reveal:es})});return(0,r.jsx)(y.p.Wrapper,{required:w,id:ee,label:S,error:C,description:k,size:_,classNames:ea,styles:en,__staticSelector:"PasswordInput",unstyled:f,withAsterisk:z,inputWrapperOrder:M,inputContainer:A,variant:F,labelProps:{...q,htmlFor:ee},descriptionProps:{...I,id:ed},errorProps:{...D,id:el},mod:X,...er("root"),...eo,...$,children:(0,r.jsx)(y.p,{component:"div",error:C,leftSection:P,size:_,classNames:{...ea,input:(0,a.A)(j.input,ea.input)},styles:en,radius:N,disabled:T,__staticSelector:"PasswordInput",rightSectionWidth:K,rightSection:L??ep,variant:F,unstyled:f,leftSectionWidth:O,rightSectionPointerEvents:W||"all",rightSectionProps:Z,leftSectionProps:H,leftSectionPointerEvents:G,withAria:!1,withErrorStyles:Q,children:(0,r.jsx)("input",{required:w,"data-invalid":!!C||void 0,"data-with-left-section":!!P||void 0,...er("innerInput"),disabled:T,id:ee,ref:s,...ei,"aria-describedby":eu,autoComplete:ei.autoComplete||"off",type:es?"text":"password"})})})});f.classes={...g.O.classes,...j},f.displayName="@mantine/core/PasswordInput"},74011:(e,s,t)=>{t.d(s,{A:()=>r});var r=(0,t(41495).A)("outline","x","IconX",[["path",{d:"M18 6l-12 12",key:"svg-0"}],["path",{d:"M6 6l12 12",key:"svg-1"}]])},83171:(e,s,t)=>{t.d(s,{m:()=>u});var r=t(6029);t(55729);var a=t(76),n=t(5618),o=t(80616),i=t(37666),l=t(60481),d=t(43016),c={root:"m_7485cace"};let m={},h=(0,n.V)((e,{size:s,fluid:t})=>({root:{"--container-size":t?void 0:(0,a.YC)(s,"container-size")}})),u=(0,d.P9)((e,s)=>{let t=(0,o.Y)("Container",m,e),{classNames:a,className:n,style:d,styles:u,unstyled:p,vars:y,fluid:g,mod:j,...x}=t,v=(0,i.I)({name:"Container",classes:c,props:t,className:n,style:d,classNames:a,styles:u,unstyled:p,vars:y,varsResolver:h});return(0,r.jsx)(l.a,{ref:s,mod:[{fluid:g},j],...v("root"),...x})});u.classes=c,u.displayName="@mantine/core/Container"}}]); \ No newline at end of file diff --git a/out/_next/static/chunks/35-9a2c3aba3b13971b.js b/out/_next/static/chunks/35-9a2c3aba3b13971b.js deleted file mode 100644 index 7e90ea8..0000000 --- a/out/_next/static/chunks/35-9a2c3aba3b13971b.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[35],{6876:(e,s,t)=>{t.d(s,{Ay:()=>m,Q5:()=>c});var r=t(81278),a=t.n(r),n=t(62910),o=t(16932),i=t(12482),l=t(98142);let d=n.Ay.create({prefixUrl:"/api",credentials:"include",hooks:{afterResponse:[function(e,s,t){if(!["/","/forgot","/join-team","/login","/register","/reset-password"].includes(a().pathname)&&401===t.status){try{window.sessionStorage.setItem("hdx-login-redirect-url",a().asPath)}catch(e){console.error(e)}a().push("/login")}}]},timeout:!1}),c=(e,s)=>d(e,{...s}),m={useCreateAlert:()=>(0,o.n)({mutationFn:async e=>d("alerts",{method:"POST",json:e}).json()}),useUpdateAlert:()=>(0,o.n)({mutationFn:async e=>d(`alerts/${e.id}`,{method:"PUT",json:e}).json()}),useDeleteAlert:()=>(0,o.n)({mutationFn:async e=>d(`alerts/${e}`,{method:"DELETE"})}),useSilenceAlert:()=>(0,o.n)({mutationFn:async({alertId:e,mutedUntil:s})=>d(`alerts/${e}/silenced`,{method:"POST",json:{mutedUntil:s}})}),useUnsilenceAlert:()=>(0,o.n)({mutationFn:async e=>d(`alerts/${e}/silenced`,{method:"DELETE"})}),useDashboards:e=>(0,i.I)({queryKey:["dashboards"],queryFn:()=>l.VO?null:c("dashboards",{method:"GET"}).json(),...e}),useCreateDashboard:()=>(0,o.n)({mutationFn:async({name:e,charts:s,query:t,tags:r})=>c("dashboards",{method:"POST",json:{name:e,charts:s,query:t,tags:r}}).json()}),useUpdateDashboard:()=>(0,o.n)({mutationFn:async({id:e,name:s,charts:t,query:r,tags:a})=>c(`dashboards/${e}`,{method:"PUT",json:{name:s,charts:t,query:r,tags:a}}).json()}),useDeleteDashboard:()=>(0,o.n)({mutationFn:async({id:e})=>c(`dashboards/${e}`,{method:"DELETE"}).json()}),usePresetDashboardFilters:(e,s,t=!0)=>(0,i.I)({queryKey:["dashboards","preset",e,"filters",s],queryFn:()=>c(`dashboards/preset/${e}/filters/`,{method:"GET",searchParams:{sourceId:s}}).json(),enabled:!!s&&t}),useCreatePresetDashboardFilter:()=>(0,o.n)({mutationFn:async e=>c(`dashboards/preset/${e.presetDashboard}/filter`,{method:"POST",json:{filter:e}}).json()}),useUpdatePresetDashboardFilter:()=>(0,o.n)({mutationFn:async e=>c(`dashboards/preset/${e.presetDashboard}/filter`,{method:"PUT",json:{filter:e}}).json()}),useDeletePresetDashboardFilter:()=>(0,o.n)({mutationFn:async({id:e,presetDashboard:s})=>c(`dashboards/preset/${s}/filter/${e}`,{method:"DELETE"}).json()}),useAlerts:()=>(0,i.I)({queryKey:["alerts"],queryFn:()=>c("alerts").json()}),useServices:()=>(0,i.I)({queryKey:["services"],queryFn:()=>c("chart/services",{method:"GET"}).json()}),useRotateTeamApiKey:()=>(0,o.n)({mutationFn:async()=>c("team/apiKey",{method:"PATCH"}).json()}),useDeleteTeamMember:()=>(0,o.n)({mutationFn:async({userId:e})=>c(`team/member/${e}`,{method:"DELETE"}).json()}),useTeamInvitations:()=>(0,i.I)({queryKey:["team/invitations"],queryFn:()=>c("team/invitations").json()}),useSaveTeamInvitation:()=>(0,o.n)({mutationFn:async({name:e,email:s})=>c("team/invitation",{method:"POST",json:{name:e,email:s}}).json()}),useDeleteTeamInvitation:()=>(0,o.n)({mutationFn:async({id:e})=>c(`team/invitation/${e}`,{method:"DELETE"}).json()}),useInstallation:()=>(0,i.I)({queryKey:["installation"],queryFn:()=>{if(!l.VO)return c("installation").json()}}),useMe:()=>(0,i.I)({queryKey:["me"],queryFn:()=>l.VO?null:c("me").json()}),useTeam:()=>(0,i.I)({queryKey:["team"],queryFn:()=>l.VO?null:c("team").json(),retry:1}),useTeamMembers:()=>(0,i.I)({queryKey:["team/members"],queryFn:()=>c("team/members").json()}),useSetTeamName:()=>(0,o.n)({mutationFn:async({name:e})=>c("team/name",{method:"PATCH",json:{name:e}}).json()}),useUpdateClickhouseSettings:()=>(0,o.n)({mutationFn:async e=>c("team/clickhouse-settings",{method:"PATCH",json:e}).json()}),useTags:()=>(0,i.I)({queryKey:["team/tags"],queryFn:()=>c("team/tags").json()}),useSaveWebhook:()=>(0,o.n)({mutationFn:async({service:e,url:s,name:t,description:r,queryParams:a,headers:n,body:o})=>c("webhooks",{method:"POST",json:{name:t,service:e,url:s,description:r,queryParams:a||{},headers:n||{},body:o}}).json()}),useUpdateWebhook:()=>(0,o.n)({mutationFn:async({id:e,service:s,url:t,name:r,description:a,queryParams:n,headers:o,body:i})=>c(`webhooks/${e}`,{method:"PUT",json:{name:r,service:s,url:t,description:a,queryParams:n||{},headers:o||{},body:i}}).json()}),useWebhooks:e=>(0,i.I)({queryKey:[...e],queryFn:()=>c("webhooks",{method:"GET",searchParams:[...e.map(e=>["service",e])]}).json()}),useDeleteWebhook:()=>(0,o.n)({mutationFn:async({id:e})=>c(`webhooks/${e}`,{method:"DELETE"}).json()}),useTestWebhook:()=>(0,o.n)({mutationFn:async({service:e,url:s,queryParams:t,headers:r,body:a})=>c("webhooks/test",{method:"POST",json:{service:e,url:s,queryParams:t||{},headers:r||{},body:a}}).json()}),useRegisterPassword:()=>(0,o.n)({mutationFn:async({email:e,password:s,confirmPassword:t})=>c("register/password",{method:"POST",json:{email:e,password:s,confirmPassword:t}}).json()}),useTestConnection:()=>(0,o.n)({mutationFn:async({host:e,username:s,password:t})=>c("clickhouse-proxy/test",{method:"POST",json:{host:e,username:s,password:t}}).json()})}},23935:(e,s,t)=>{t.d(s,{M:()=>c});var r=t(6029),a=t(50212);t(55729);var n=t(80616),o=t(63863),i=t(43517),l={root:"m_849cf0da"};let d={underline:"hover"},c=(0,o.v)((e,s)=>{let{underline:t,className:o,unstyled:c,mod:m,...h}=(0,n.Y)("Anchor",d,e);return(0,r.jsx)(i.E,{component:"a",ref:s,className:(0,a.A)({[l.root]:!c},o),...h,mod:[{underline:t},m],__staticSelector:"Anchor",unstyled:c})});c.classes=l,c.displayName="@mantine/core/Anchor"},39090:(e,s,t)=>{t.d(s,{A:()=>r});var r=(0,t(41495).A)("outline","lock","IconLock",[["path",{d:"M5 13a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-6z",key:"svg-0"}],["path",{d:"M11 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0",key:"svg-1"}],["path",{d:"M8 11v-4a4 4 0 1 1 8 0v4",key:"svg-2"}]])},40035:(e,s,t)=>{t.d(s,{A:()=>Q});var r=t(6029),a=t(75155),n=t(55729),o=t(82203),i=t.n(o),l=t(81278),d=t(51652),c=t(11335),m=t(1909),h=t(59029),u=t(45544),p=t(37699),y=t(25062),g=t(22623),j=t(34834),x=(0,t(41495).A)("outline","at","IconAt",[["path",{d:"M12 12m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0",key:"svg-0"}],["path",{d:"M16 12v1.5a2.5 2.5 0 0 0 5 0v-1.5a9 9 0 1 0 -5.5 8.28",key:"svg-1"}]]),f=t(39090),v=t(6876),b=t(98142),w=t(26615),C=t(76),P=t(5618),T=t(66404),E=t(80616),F=t(37666),A=t(60481),S=t(43016),k=t(8737),D={root:"m_fea6bf1a",burger:"m_d4fb9cad"};let _={},I=(0,P.V)((e,{color:s,size:t,lineSize:r,transitionDuration:a,transitionTimingFunction:n})=>({root:{"--burger-color":s?(0,T.r)(s,e):void 0,"--burger-size":(0,C.YC)(t,"burger-size"),"--burger-line-size":r?(0,w.D)(r):void 0,"--burger-transition-duration":void 0===a?void 0:`${a}ms`,"--burger-transition-timing-function":n}})),q=(0,S.P9)((e,s)=>{let t=(0,E.Y)("Burger",_,e),{classNames:a,className:n,style:o,styles:i,unstyled:l,vars:d,opened:c,children:m,transitionDuration:h,transitionTimingFunction:u,lineSize:p,...y}=t,g=(0,F.I)({name:"Burger",classes:D,props:t,className:n,style:o,classNames:a,styles:i,unstyled:l,vars:d,varsResolver:I});return(0,r.jsxs)(k.N,{...g("root"),ref:s,...y,children:[(0,r.jsx)(A.a,{mod:["reduce-motion",{opened:c}],...g("burger")}),m]})});q.classes=D,q.displayName="@mantine/core/Burger";var z=t(23935),M=t(3635),$=t(83171),N=t(78341),L=t(36600);function K(e){let s,t,n,o,l,d,c,m,h,u,p,g,j,x,f,b,w,C=(0,a.c)(50),{activeKey:P,fixed:T}=e,E=(0,L.PH)(),{data:F}=v.Ay.useMe(),A=!!F,{data:S}=v.Ay.useInstallation(),[k,D]=(0,N.j)(!1),{toggle:_}=D;C[0]===Symbol.for("react.memo_cache_sentinel")?(s={position:"fixed",top:0,left:0,right:0,background:"var(--color-bg-body)",backdropFilter:"blur(12px)",borderBottom:"1px solid var(--color-border)",zIndex:100},C[0]=s):s=C[0],C[1]===Symbol.for("react.memo_cache_sentinel")?(t={textDecoration:"none"},C[1]=t):t=C[1],C[2]!==E?(n=(0,r.jsx)(i(),{href:"/",style:t,children:E}),C[2]=E,C[3]=n):n=C[3],C[4]!==k||C[5]!==_?(o=(0,r.jsx)(q,{opened:k,onClick:_,hiddenFrom:"lg",color:"white"}),C[4]=k,C[5]=_,C[6]=o):o=C[6];let I="cloud"===P?"green":"gray",K="cloud"===P?600:400;C[7]!==K?(l={fontWeight:K},C[7]=K,C[8]=l):l=C[8],C[9]!==I||C[10]!==l?(d=(0,r.jsx)(z.M,{href:"https://hyperdx.io",c:I,underline:"never",style:l,size:"sm",children:"HyperDX Cloud"}),C[9]=I,C[10]=l,C[11]=d):d=C[11];let W="docs"===P?"green":"gray",O="docs"===P?600:400;return C[12]!==O?(c={fontWeight:O},C[12]=O,C[13]=c):c=C[13],C[14]!==W||C[15]!==c?(m=(0,r.jsx)(z.M,{href:"https://clickhouse.com/docs/use-cases/observability/clickstack",c:W,underline:"never",style:c,size:"sm",children:"Docs"}),C[14]=W,C[15]=c,C[16]=m):m=C[16],C[17]!==P||C[18]!==S?.isTeamExisting||C[19]!==A?(h=!A&&S?.isTeamExisting===!0&&(0,r.jsx)(z.M,{href:"/login",c:"/login"===P?"green":"gray",underline:"never",style:{fontWeight:"/login"===P?600:400},size:"sm",children:"Login"}),C[17]=P,C[18]=S?.isTeamExisting,C[19]=A,C[20]=h):h=C[20],C[21]!==P||C[22]!==S?.isTeamExisting||C[23]!==A?(u=!A&&"/register"!==P&&S?.isTeamExisting===!1&&(0,r.jsx)(i(),{href:"/register",children:(0,r.jsx)(y.$,{variant:"primary",size:"sm",children:"Setup Account"})}),C[21]=P,C[22]=S?.isTeamExisting,C[23]=A,C[24]=u):u=C[24],C[25]!==A?(p=A&&(0,r.jsx)(i(),{href:"/search",children:(0,r.jsx)(y.$,{variant:"primary",size:"sm",children:"Go to Search"})}),C[25]=A,C[26]=p):p=C[26],C[27]!==m||C[28]!==h||C[29]!==u||C[30]!==p||C[31]!==d?(g=(0,r.jsxs)(M.Y,{gap:"lg",visibleFrom:"lg",children:[d,m,h,u,p]}),C[27]=m,C[28]=h,C[29]=u,C[30]=p,C[31]=d,C[32]=g):g=C[32],C[33]!==g||C[34]!==n||C[35]!==o?(j=(0,r.jsxs)(M.Y,{justify:"space-between",align:"center",children:[n,o,g]}),C[33]=g,C[34]=n,C[35]=o,C[36]=j):j=C[36],C[37]!==P||C[38]!==S?.isTeamExisting||C[39]!==A||C[40]!==k?(x=k&&(0,r.jsxs)(M.Y,{gap:"sm",mt:"md",hiddenFrom:"lg",style:{fontSize:14},children:[(0,r.jsx)(z.M,{href:"https://hyperdx.io",underline:"never",style:{fontWeight:"cloud"===P?600:400},children:"HyperDX Cloud"}),(0,r.jsx)(z.M,{href:"https://clickhouse.com/docs/use-cases/observability/clickstack",underline:"never",style:{fontWeight:"docs"===P?600:400},children:"Docs"}),!A&&S?.isTeamExisting===!0&&(0,r.jsx)(z.M,{href:"/login",underline:"never",style:{fontWeight:"/login"===P?600:400},children:"Login"}),!A&&"/register"!==P&&S?.isTeamExisting===!1&&(0,r.jsx)(i(),{href:"/register",children:(0,r.jsx)(y.$,{variant:"primary",size:"sm",fullWidth:!0,children:"Setup Account"})}),A&&(0,r.jsx)(i(),{href:"/search",children:(0,r.jsx)(y.$,{variant:"primary",size:"sm",fullWidth:!0,children:"Go to Search"})})]}),C[37]=P,C[38]=S?.isTeamExisting,C[39]=A,C[40]=k,C[41]=x):x=C[41],C[42]!==j||C[43]!==x?(f=(0,r.jsx)("div",{style:s,children:(0,r.jsxs)($.m,{fluid:!0,px:"xl",py:"md",children:[j,x]})}),C[42]=j,C[43]=x,C[44]=f):f=C[44],C[45]!==T?(b=!T&&(0,r.jsx)("div",{style:{height:70}}),C[45]=T,C[46]=b):b=C[46],C[47]!==f||C[48]!==b?(w=(0,r.jsxs)(r.Fragment,{children:[f,b]}),C[47]=f,C[48]=b,C[49]=w):w=C[49],w}var W=t(90515),O=t(74011);let B=e=>e.length>=12,V=e=>/[A-Z]+/.test(e),U=e=>/[a-z]+/.test(e),Y=e=>/\d+/.test(e),H=e=>/\W+/.test(e),R=e=>{let s,t=(0,a.c)(2),n=e.password;return t[0]!==n?(s=(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{children:(0,r.jsx)(Z,{handler:B,password:n,children:"minimum 12 characters"})}),(0,r.jsx)("div",{children:(0,r.jsx)(Z,{handler:V,password:n,children:"at least 1 uppercase"})}),(0,r.jsx)("div",{children:(0,r.jsx)(Z,{handler:U,password:n,children:"at least 1 lowercase"})}),(0,r.jsx)("div",{children:(0,r.jsx)(Z,{handler:Y,password:n,children:"at least 1 number"})}),(0,r.jsx)("div",{children:(0,r.jsx)(Z,{handler:H,password:n,children:"at least 1 special character"})})]}),t[0]=n,t[1]=s):s=t[1],s},Z=e=>{let s,t,n,o,i=(0,a.c)(13),{handler:l,password:d,children:c}=e;i[0]!==d?(s="",s="string"==typeof d?d:d.password??"",i[0]=d,i[1]=s):s=i[1];let m=0===s.length;i[2]!==s||i[3]!==l?(t=l(s),i[2]=s,i[3]=l,i[4]=t):t=i[4];let h=t;if(m){let e;return i[5]!==c?(e=(0,r.jsx)("span",{children:c}),i[5]=c,i[6]=e):e=i[6],e}let u=h?"text-success":"text-danger";return i[7]!==h?(n=h?(0,r.jsx)(G,{}):(0,r.jsx)(X,{}),i[7]=h,i[8]=n):n=i[8],i[9]!==c||i[10]!==u||i[11]!==n?(o=(0,r.jsxs)("span",{className:u,children:[n," ",c]}),i[9]=c,i[10]=u,i[11]=n,i[12]=o):o=i[12],o},G=()=>{let e,s=(0,a.c)(1);return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,r.jsx)(W.A,{size:14}),s[0]=e):e=s[0],e},X=()=>{let e,s=(0,a.c)(1);return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,r.jsx)(O.A,{size:14}),s[0]=e):e=s[0],e};function Q(e){let s,t,o,w,C,P,T,E,F,A,S,k,D,_,I,q,z,M,$,N,L,W,O,B,V,U,Y,H,G,X,Q,J,ee,es=(0,a.c)(91),{action:et}=e,{data:er,isLoading:ea}=v.Ay.useTeam(),en=(0,l.useRouter)(),eo=!!(!ea&&er);es[0]!==eo||es[1]!==en?(s=()=>{eo&&en.push("/search")},t=[eo,en],es[0]=eo,es[1]=en,es[2]=s,es[3]=t):(s=es[2],t=es[3]),(0,n.useEffect)(s,t);let ei="register"===et;es[4]===Symbol.for("react.memo_cache_sentinel")?(o={reValidateMode:"onSubmit"},es[4]=o):o=es[4];let{register:el,handleSubmit:ed,formState:ec,setError:em,control:eh}=(0,m.mN)(o),{errors:eu,isSubmitting:ep}=ec,{err:ey,msg:eg}=en.query,{data:ej}=v.Ay.useInstallation(),ex=v.Ay.useRegisterPassword(),ef="verify"===eg,ev=`HyperDX - ${ei?"Sign up":"Login"}`;es[5]!==ej?.isTeamExisting||es[6]!==ei||es[7]!==en?(w=()=>{b.bp&&ej?.isTeamExisting===!0&&ei&&en.push("/login")},es[5]=ej?.isTeamExisting,es[6]=ei,es[7]=en,es[8]=w):w=es[8],es[9]!==ej||es[10]!==ei||es[11]!==en?(C=[ej,ei,en],es[9]=ej,es[10]=ei,es[11]=en,es[12]=C):C=es[12],(0,n.useEffect)(w,C),es[13]!==eh?(P={control:eh,name:"password",defaultValue:""},es[13]=eh,es[14]=P):P=es[14];let eb=(0,m.FH)(P);es[15]!==eh?(T={control:eh,name:"confirmPassword",defaultValue:""},es[15]=eh,es[16]=T):T=es[16];let ew=(0,m.FH)(T);es[17]!==ew||es[18]!==eb?(E=()=>eb===ew,es[17]=ew,es[18]=eb,es[19]=E):E=es[19];let eC=E;es[20]!==ex||es[21]!==en||es[22]!==em?(F=e=>ex.mutate({email:e.email,password:e.password,confirmPassword:e.confirmPassword},{onSuccess:()=>en.push("/search"),onError:async e=>{if(e instanceof c.H){let s=await e.response.json();if(Array.isArray(s)&&s[0]?.errors?.issues)return s[0].errors.issues.forEach(e=>{em(e.path[0],{type:e.code,message:e.message})})}em("root",{type:"manual",message:"An unexpected error occurred, please try again later."})}}),es[20]=ex,es[21]=en,es[22]=em,es[23]=F):F=es[23];let eP=F;es[24]!==ed||es[25]!==ei||es[26]!==eP||es[27]!==el?(A=ei?{controller:{onSubmit:ed(eP)},email:el("email",{required:!0}),password:el("password",{required:!0}),confirmPassword:el("confirmPassword",{required:!0})}:{controller:{action:"/api/login/password",method:"POST"},email:{name:"email"},password:{name:"password"}},es[24]=ed,es[25]=ei,es[26]=eP,es[27]=el,es[28]=A):A=es[28];let eT=A;es[29]!==ev?(S=(0,r.jsx)(d.bV,{title:ev}),es[29]=ev,es[30]=S):S=es[30];let eE=`/${et}`;es[31]!==eE?(k=(0,r.jsx)(K,{activeKey:eE,fixed:!0}),es[31]=eE,es[32]=k):k=es[32],es[33]===Symbol.for("react.memo_cache_sentinel")?(D={width:"26rem"},es[33]=D):D=es[33],es[34]===Symbol.for("react.memo_cache_sentinel")?(_={marginTop:-30},es[34]=_):_=es[34];let eF=b.bp&&ei?"Setup ":ei?"Register for ":"Login to ";es[35]===Symbol.for("react.memo_cache_sentinel")?(I=(0,r.jsx)("span",{className:"text-brand fw-bold",children:"HyperDX"}),es[35]=I):I=es[35],es[36]!==eF?(q=(0,r.jsxs)("div",{className:"text-center mb-2 fs-5 ",style:_,children:[eF,I]}),es[36]=eF,es[37]=q):q=es[37],es[38]!==et?(z="login"===et&&(0,r.jsx)("div",{className:"text-center mb-2 ",children:"Welcome back!"}),es[38]=et,es[39]=z):z=es[39],es[40]!==ei?(M=ei&&!0===b.bp&&(0,r.jsxs)("div",{className:"text-center mb-2 text-muted",children:["Let","'","s create your user account."]}),es[40]=ei,es[41]=M):M=es[41],es[42]===Symbol.for("react.memo_cache_sentinel")?($=(0,r.jsx)(x,{size:18}),es[42]=$):$=es[42];let eA=eu.email?.message;es[43]!==eT.email||es[44]!==eA?(N=(0,r.jsx)(h.k,{label:"Email",size:"md",withAsterisk:!1,placeholder:"you@company.com",type:"email",leftSection:$,error:eA,required:!0,...eT.email}),es[43]=eT.email,es[44]=eA,es[45]=N):N=es[45],es[46]===Symbol.for("react.memo_cache_sentinel")?(L=(0,r.jsx)(f.A,{size:16}),es[46]=L):L=es[46];let eS=eu.password?.message;es[47]!==eT.password||es[48]!==eS?(W=(0,r.jsx)(u.y,{size:"md",label:"Password",withAsterisk:!1,leftSection:L,error:eS,required:!0,placeholder:"Password",...eT.password}),es[47]=eT.password,es[48]=eS,es[49]=W):W=es[49],es[50]!==eC||es[51]!==eb||es[52]!==eu.confirmPassword?.message||es[53]!==eT.confirmPassword||es[54]!==ei?(O=ei&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(u.y,{label:(0,r.jsx)(Z,{handler:eC,password:eb,children:"Confirm Password"}),size:"md",required:!0,withAsterisk:!1,leftSection:(0,r.jsx)(f.A,{size:16}),error:eu.confirmPassword?.message,placeholder:"Confirm Password",...eT.confirmPassword}),(0,r.jsx)(p.E,{withCloseButton:!1,children:(0,r.jsx)(R,{password:eb})})]}),es[50]=eC,es[51]=eb,es[52]=eu.confirmPassword?.message,es[53]=eT.confirmPassword,es[54]=ei,es[55]=O):O=es[55];let ek=ep||ef,eD=b.bp&&ei?"Create":ei?"Register":"Login";return es[56]!==ep||es[57]!==ek||es[58]!==eD?(B=(0,r.jsx)(y.$,{mt:4,type:"submit",variant:"primary",size:"md",disabled:ek,loading:ep,"data-test-id":"submit",children:eD}),es[56]=ep,es[57]=ek,es[58]=eD,es[59]=B):B=es[59],es[60]!==N||es[61]!==W||es[62]!==O||es[63]!==B?(V=(0,r.jsx)(g.t,{p:34,shadow:"md",radius:"md",children:(0,r.jsxs)(j.B,{gap:"lg",children:[N,W,O,B]})}),es[60]=N,es[61]=W,es[62]=O,es[63]=B,es[64]=V):V=es[64],es[65]!==ey?(U=null!=ey&&(0,r.jsx)(p.E,{withCloseButton:!1,withBorder:!0,color:"red","data-test-id":"auth-error-msg",children:"missing"===ey?"Please provide a valid email and password":"invalid"===ey?"Email or password is invalid":"authFail"===ey?"Failed to login with email and password, please try again.":"passwordAuthNotAllowed"===ey?"Password authentication is not allowed by your team admin.":"teamAlreadyExists"===ey?"Team already exists, please login instead.":"Unknown error occurred, please try again later."}),es[65]=ey,es[66]=U):U=es[66],es[67]!==ef?(Y=ef&&(0,r.jsx)(p.E,{withCloseButton:!1,withBorder:!0,color:"green","data-test-id":"auth-msg",children:"Sent verification email! Please check your email inbox"}),es[67]=ef,es[68]=Y):Y=es[68],es[69]!==ei?(H=ei&&!1===b.bp&&(0,r.jsxs)("div",{"data-test-id":"login-link",className:"text-center fs-8 ",children:["Already have an account? ",(0,r.jsx)(i(),{href:"/login",children:"Log in"})," ","instead."]}),es[69]=ei,es[70]=H):H=es[70],es[71]!==et?(G="login"===et&&!1===b.bp&&(0,r.jsxs)("div",{"data-test-id":"register-link",className:"text-center fs-8 ",children:["Don","'","t have an account yet?"," ",(0,r.jsx)(i(),{href:"/register",children:"Register"})," instead."]}),es[71]=et,es[72]=G):G=es[72],es[73]!==V||es[74]!==U||es[75]!==Y||es[76]!==H||es[77]!==G?(X=(0,r.jsxs)(j.B,{gap:"xl",children:[V,U,Y,H,G]}),es[73]=V,es[74]=U,es[75]=Y,es[76]=H,es[77]=G,es[78]=X):X=es[78],es[79]!==eT.controller||es[80]!==X?(Q=(0,r.jsx)("form",{className:"text-start mt-4",...eT.controller,children:X}),es[79]=eT.controller,es[80]=X,es[81]=Q):Q=es[81],es[82]!==q||es[83]!==z||es[84]!==M||es[85]!==Q?(J=(0,r.jsx)("div",{className:"d-flex justify-content-center align-items-center vh-100",children:(0,r.jsxs)("div",{style:D,children:[q,z,M,Q]})}),es[82]=q,es[83]=z,es[84]=M,es[85]=Q,es[86]=J):J=es[86],es[87]!==S||es[88]!==k||es[89]!==J?(ee=(0,r.jsxs)("div",{className:"AuthPage",children:[S,k,J]}),es[87]=S,es[88]=k,es[89]=J,es[90]=ee):ee=es[90],ee}},45544:(e,s,t)=>{t.d(s,{y:()=>v});var r=t(6029),a=t(50212),n=t(60466),o=t(3001);t(55729);var i=t(76),l=t(5618),d=t(35228),c=t(37666),m=t(80616),h=t(3389),u=t(43016),p=t(76013),y=t(96061),g=t(94613),j={root:"m_f61ca620",input:"m_ccf8da4c",innerInput:"m_f2d85dd2",visibilityToggle:"m_b1072d44"};let x={visibilityToggleIcon:({reveal:e})=>(0,r.jsx)("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{width:"var(--psi-icon-size)",height:"var(--psi-icon-size)"},children:(0,r.jsx)("path",{d:e?"M13.3536 2.35355C13.5488 2.15829 13.5488 1.84171 13.3536 1.64645C13.1583 1.45118 12.8417 1.45118 12.6464 1.64645L10.6828 3.61012C9.70652 3.21671 8.63759 3 7.5 3C4.30786 3 1.65639 4.70638 0.0760002 7.23501C-0.0253338 7.39715 -0.0253334 7.60288 0.0760014 7.76501C0.902945 9.08812 2.02314 10.1861 3.36061 10.9323L1.64645 12.6464C1.45118 12.8417 1.45118 13.1583 1.64645 13.3536C1.84171 13.5488 2.15829 13.5488 2.35355 13.3536L4.31723 11.3899C5.29348 11.7833 6.36241 12 7.5 12C10.6921 12 13.3436 10.2936 14.924 7.76501C15.0253 7.60288 15.0253 7.39715 14.924 7.23501C14.0971 5.9119 12.9769 4.81391 11.6394 4.06771L13.3536 2.35355ZM9.90428 4.38861C9.15332 4.1361 8.34759 4 7.5 4C4.80285 4 2.52952 5.37816 1.09622 7.50001C1.87284 8.6497 2.89609 9.58106 4.09974 10.1931L9.90428 4.38861ZM5.09572 10.6114L10.9003 4.80685C12.1039 5.41894 13.1272 6.35031 13.9038 7.50001C12.4705 9.62183 10.1971 11 7.5 11C6.65241 11 5.84668 10.8639 5.09572 10.6114Z":"M7.5 11C4.80285 11 2.52952 9.62184 1.09622 7.50001C2.52952 5.37816 4.80285 4 7.5 4C10.1971 4 12.4705 5.37816 13.9038 7.50001C12.4705 9.62183 10.1971 11 7.5 11ZM7.5 3C4.30786 3 1.65639 4.70638 0.0760002 7.23501C-0.0253338 7.39715 -0.0253334 7.60288 0.0760014 7.76501C1.65639 10.2936 4.30786 12 7.5 12C10.6921 12 13.3436 10.2936 14.924 7.76501C15.0253 7.60288 15.0253 7.39715 14.924 7.23501C13.3436 4.70638 10.6921 3 7.5 3ZM7.5 9.5C8.60457 9.5 9.5 8.60457 9.5 7.5C9.5 6.39543 8.60457 5.5 7.5 5.5C6.39543 5.5 5.5 6.39543 5.5 7.5C5.5 8.60457 6.39543 9.5 7.5 9.5Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})},f=(0,l.V)((e,{size:s})=>({root:{"--psi-icon-size":(0,i.YC)(s,"psi-icon-size"),"--psi-button-size":(0,i.YC)(s,"psi-button-size")}})),v=(0,u.P9)((e,s)=>{let t=(0,m.Y)("PasswordInput",x,e),{classNames:i,className:l,style:u,styles:g,unstyled:v,vars:b,required:w,error:C,leftSection:P,disabled:T,id:E,variant:F,inputContainer:A,description:S,label:k,size:D,errorProps:_,descriptionProps:I,labelProps:q,withAsterisk:z,inputWrapperOrder:M,wrapperProps:$,radius:N,rightSection:L,rightSectionWidth:K,rightSectionPointerEvents:W,leftSectionWidth:O,visible:B,defaultVisible:V,onVisibilityChange:U,visibilityToggleIcon:Y,visibilityToggleButtonProps:H,rightSectionProps:R,leftSectionProps:Z,leftSectionPointerEvents:G,withErrorStyles:X,mod:Q,...J}=t,ee=(0,n.B)(E),[es,et]=(0,o.Z)({value:B,defaultValue:V,finalValue:!1,onChange:U}),er=(0,c.I)({name:"PasswordInput",classes:j,props:t,className:l,style:u,classNames:i,styles:g,unstyled:v,vars:b,varsResolver:f}),{resolvedClassNames:ea,resolvedStyles:en}=(0,d.Y)({classNames:i,styles:g,props:t}),{styleProps:eo,rest:ei}=(0,h.j)(J),el=_?.id||`${ee}-error`,ed=I?.id||`${ee}-description`,ec=!!C&&"boolean"!=typeof C,em=!!S,eh=`${ec?el:""} ${em?ed:""}`,eu=eh.trim().length>0?eh.trim():void 0,ep=(0,r.jsx)(p.M,{...er("visibilityToggle"),disabled:T,radius:N,"aria-hidden":!H,tabIndex:-1,...H,variant:H?.variant??"subtle",color:"gray",unstyled:v,onTouchEnd:e=>{e.preventDefault(),H?.onTouchEnd?.(e),et(!es)},onMouseDown:e=>{e.preventDefault(),H?.onMouseDown?.(e),et(!es)},onKeyDown:e=>{H?.onKeyDown?.(e)," "===e.key&&(e.preventDefault(),et(!es))},children:(0,r.jsx)(Y,{reveal:es})});return(0,r.jsx)(y.p.Wrapper,{required:w,id:ee,label:k,error:C,description:S,size:D,classNames:ea,styles:en,__staticSelector:"PasswordInput",unstyled:v,withAsterisk:z,inputWrapperOrder:M,inputContainer:A,variant:F,labelProps:{...q,htmlFor:ee},descriptionProps:{...I,id:ed},errorProps:{..._,id:el},mod:Q,...er("root"),...eo,...$,children:(0,r.jsx)(y.p,{component:"div",error:C,leftSection:P,size:D,classNames:{...ea,input:(0,a.A)(j.input,ea.input)},styles:en,radius:N,disabled:T,__staticSelector:"PasswordInput",rightSectionWidth:K,rightSection:L??ep,variant:F,unstyled:v,leftSectionWidth:O,rightSectionPointerEvents:W||"all",rightSectionProps:R,leftSectionProps:Z,leftSectionPointerEvents:G,withAria:!1,withErrorStyles:X,children:(0,r.jsx)("input",{required:w,"data-invalid":!!C||void 0,"data-with-left-section":!!P||void 0,...er("innerInput"),disabled:T,id:ee,ref:s,...ei,"aria-describedby":eu,autoComplete:ei.autoComplete||"off",type:es?"text":"password"})})})});v.classes={...g.O.classes,...j},v.displayName="@mantine/core/PasswordInput"},74011:(e,s,t)=>{t.d(s,{A:()=>r});var r=(0,t(41495).A)("outline","x","IconX",[["path",{d:"M18 6l-12 12",key:"svg-0"}],["path",{d:"M6 6l12 12",key:"svg-1"}]])},83171:(e,s,t)=>{t.d(s,{m:()=>u});var r=t(6029);t(55729);var a=t(76),n=t(5618),o=t(80616),i=t(37666),l=t(60481),d=t(43016),c={root:"m_7485cace"};let m={},h=(0,n.V)((e,{size:s,fluid:t})=>({root:{"--container-size":t?void 0:(0,a.YC)(s,"container-size")}})),u=(0,d.P9)((e,s)=>{let t=(0,o.Y)("Container",m,e),{classNames:a,className:n,style:d,styles:u,unstyled:p,vars:y,fluid:g,mod:j,...x}=t,f=(0,i.I)({name:"Container",classes:c,props:t,className:n,style:d,classNames:a,styles:u,unstyled:p,vars:y,varsResolver:h});return(0,r.jsx)(l.a,{ref:s,mod:[{fluid:g},j],...f("root"),...x})});u.classes=c,u.displayName="@mantine/core/Container"}}]); \ No newline at end of file diff --git a/out/_next/static/chunks/3943-0b032b204fb92637.js b/out/_next/static/chunks/3943-0b032b204fb92637.js deleted file mode 100644 index 2ca8734..0000000 --- a/out/_next/static/chunks/3943-0b032b204fb92637.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3943],{6892:(e,o,r)=>{r.d(o,{A:()=>a});var a=(0,r(41495).A)("outline","pencil","IconPencil",[["path",{d:"M4 20h4l10.5 -10.5a2.828 2.828 0 1 0 -4 -4l-10.5 10.5v4",key:"svg-0"}],["path",{d:"M13.5 6.5l4 4",key:"svg-1"}]])},16515:(e,o,r)=>{r.d(o,{L:()=>l,a:()=>t});var a=r(55729);let c=(0,a.createContext)(null),t=c.Provider,l=()=>(0,a.useContext)(c)},23195:(e,o,r)=>{r.d(o,{A:()=>a});var a=(0,r(41495).A)("outline","plus","IconPlus",[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M5 12l14 0",key:"svg-1"}]])},23935:(e,o,r)=>{r.d(o,{M:()=>d});var a=r(6029),c=r(50212);r(55729);var t=r(80616),l=r(63863),n=r(43517),i={root:"m_849cf0da"};let s={underline:"hover"},d=(0,l.v)((e,o)=>{let{underline:r,className:l,unstyled:d,mod:p,...h}=(0,t.Y)("Anchor",s,e);return(0,a.jsx)(n.E,{component:"a",ref:o,className:(0,c.A)({[i.root]:!d},l),...h,mod:[{underline:r},p],__staticSelector:"Anchor",unstyled:d})});d.classes=i,d.displayName="@mantine/core/Anchor"},28975:(e,o,r)=>{r.d(o,{A:()=>a});var a=(0,r(41495).A)("outline","circle-plus","IconCirclePlus",[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M9 12h6",key:"svg-1"}],["path",{d:"M12 9v6",key:"svg-2"}]])},47268:(e,o,r)=>{r.d(o,{S:()=>V});var a=r(6029),c=r(55729),t=r(60466),l=r(76),n=r(5618),i=r(41375),s=r(66404),d=r(92096),p=r(35192),h=r(80616),u=r(37666),v=r(3389),k=r(60481),y=r(43016),m=r(72832),x=r(3001),b=r(8737),C=r(16515);let[g,f]=(0,r(48930).e)();var _={card:"m_26775b0a"};let j={withBorder:!0},A=(0,n.V)((e,{radius:o})=>({card:{"--card-radius":(0,l.nJ)(o)}})),I=(0,y.P9)((e,o)=>{let r=(0,h.Y)("CheckboxCard",j,e),{classNames:c,className:t,style:l,styles:n,unstyled:i,vars:s,checked:d,mod:p,withBorder:v,value:k,onClick:y,defaultChecked:m,onChange:f,...I}=r,M=(0,u.I)({name:"CheckboxCard",classes:_,props:r,className:t,style:l,classNames:c,styles:n,unstyled:i,vars:s,varsResolver:A,rootSelector:"card"}),N=(0,C.L)(),P="boolean"==typeof d?d:N?N.value.includes(k||""):void 0,[w,G]=(0,x.Z)({value:P,defaultValue:m,finalValue:!1,onChange:f});return(0,a.jsx)(g,{value:{checked:w},children:(0,a.jsx)(b.N,{ref:o,mod:[{"with-border":v,checked:w},p],...M("card"),...I,role:"checkbox","aria-checked":w,onClick:e=>{y?.(e),N?.onChange(k||""),G(!w)}})})});I.displayName="@mantine/core/CheckboxCard",I.classes=_;var M=r(75177),N=r(39467),P={indicator:"m_5e5256ee",icon:"m_1b1c543a","indicator--outline":"m_76e20374"};let w={icon:N.R},G=(0,n.V)((e,{radius:o,color:r,size:a,iconColor:c,variant:t,autoContrast:n})=>{let h=(0,i.g)({color:r||e.primaryColor,theme:e}),u=h.isThemeColor&&void 0===h.shade?`var(--mantine-color-${h.color}-outline)`:h.color;return{indicator:{"--checkbox-size":(0,l.YC)(a,"checkbox-size"),"--checkbox-radius":void 0===o?void 0:(0,l.nJ)(o),"--checkbox-color":"outline"===t?u:(0,s.r)(r,e),"--checkbox-icon-color":c?(0,s.r)(c,e):(0,p.v)(n,e)?(0,d.w)({color:r,theme:e,autoContrast:n}):void 0}}}),S=(0,y.P9)((e,o)=>{let r=(0,h.Y)("CheckboxIndicator",w,e),{classNames:c,className:t,style:l,styles:n,unstyled:i,vars:s,icon:d,indeterminate:p,radius:v,color:y,iconColor:m,autoContrast:x,checked:b,mod:C,variant:g,disabled:_,...j}=r,A=(0,u.I)({name:"CheckboxIndicator",classes:P,props:r,className:t,style:l,classNames:c,styles:n,unstyled:i,vars:s,varsResolver:G,rootSelector:"indicator"}),I=f(),M="boolean"==typeof b||"boolean"==typeof p?b||p:I?.checked||!1;return(0,a.jsx)(k.a,{ref:o,...A("indicator",{variant:g}),variant:g,mod:[{checked:M,disabled:_},C],...j,children:(0,a.jsx)(d,{indeterminate:p,...A("icon")})})});S.displayName="@mantine/core/CheckboxIndicator",S.classes=P;var Y={root:"m_bf2d988c",inner:"m_26062bec",input:"m_26063560",icon:"m_bf295423","input--outline":"m_215c4542"};let z={labelPosition:"right",icon:N.R},R=(0,n.V)((e,{radius:o,color:r,size:a,iconColor:c,variant:t,autoContrast:n})=>{let h=(0,i.g)({color:r||e.primaryColor,theme:e}),u=h.isThemeColor&&void 0===h.shade?`var(--mantine-color-${h.color}-outline)`:h.color;return{root:{"--checkbox-size":(0,l.YC)(a,"checkbox-size"),"--checkbox-radius":void 0===o?void 0:(0,l.nJ)(o),"--checkbox-color":"outline"===t?u:(0,s.r)(r,e),"--checkbox-icon-color":c?(0,s.r)(c,e):(0,p.v)(n,e)?(0,d.w)({color:r,theme:e,autoContrast:n}):void 0}}}),V=(0,y.P9)((e,o)=>{let r=(0,h.Y)("Checkbox",z,e),{classNames:l,className:n,style:i,styles:s,unstyled:d,vars:p,color:y,label:x,id:b,size:g,radius:f,wrapperProps:_,checked:j,labelPosition:A,description:I,error:M,disabled:N,variant:P,indeterminate:w,icon:G,rootRef:S,iconColor:V,onChange:E,autoContrast:F,mod:$,...J}=r,L=(0,C.L)(),T=g||L?.size,W=(0,u.I)({name:"Checkbox",props:r,classes:Y,className:n,style:i,classNames:l,styles:s,unstyled:d,vars:p,varsResolver:R}),{styleProps:B,rest:X}=(0,v.j)(J),Z=(0,t.B)(b),D=L?{checked:L.value.includes(X.value),onChange:e=>{L.onChange(e),E?.(e)}}:{},K=(0,c.useRef)(null),q=o||K;return(0,c.useEffect)(()=>{q&&"current"in q&&q.current&&(q.current.indeterminate=w||!1)},[w,q]),(0,a.jsx)(m.I,{...W("root"),__staticSelector:"Checkbox",__stylesApiProps:r,id:Z,size:T,labelPosition:A,label:x,description:I,error:M,disabled:N,classNames:l,styles:s,unstyled:d,"data-checked":D.checked||j||void 0,variant:P,ref:S,mod:$,...B,..._,children:(0,a.jsxs)(k.a,{...W("inner"),mod:{"data-label-position":A},children:[(0,a.jsx)(k.a,{component:"input",id:Z,ref:q,checked:j,disabled:N,mod:{error:!!M,indeterminate:w},...W("input",{focusable:!0,variant:P}),onChange:E,...X,...D,type:"checkbox"}),(0,a.jsx)(G,{indeterminate:w,...W("icon")})]})})});V.classes={...Y,...m.M},V.displayName="@mantine/core/Checkbox",V.Group=M.$,V.Indicator=S,V.Card=I},56795:(e,o,r)=>{r.d(o,{A:()=>a});var a=(0,r(41495).A)("outline","link","IconLink",[["path",{d:"M9 15l6 -6",key:"svg-0"}],["path",{d:"M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464",key:"svg-1"}],["path",{d:"M13 18l-.397 .534a5.068 5.068 0 0 1 -7.127 0a4.972 4.972 0 0 1 0 -7.071l.524 -.463",key:"svg-2"}]])},74011:(e,o,r)=>{r.d(o,{A:()=>a});var a=(0,r(41495).A)("outline","x","IconX",[["path",{d:"M18 6l-12 12",key:"svg-0"}],["path",{d:"M6 6l12 12",key:"svg-1"}]])},75177:(e,o,r)=>{r.d(o,{$:()=>p});var a=r(6029),c=r(3001);r(55729);var t=r(80616),l=r(43016),n=r(96061),i=r(29645),s=r(16515);let d={},p=(0,l.P9)((e,o)=>{let{value:r,defaultValue:l,onChange:p,size:h,wrapperProps:u,children:v,readOnly:k,...y}=(0,t.Y)("CheckboxGroup",d,e),[m,x]=(0,c.Z)({value:r,defaultValue:l,finalValue:[],onChange:p});return(0,a.jsx)(s.a,{value:{value:m,onChange:e=>{let o="string"==typeof e?e:e.currentTarget.value;k||x(m.includes(o)?m.filter(e=>e!==o):[...m,o])},size:h},children:(0,a.jsx)(n.p.Wrapper,{size:h,ref:o,...u,...y,labelElement:"div",__staticSelector:"CheckboxGroup",children:(0,a.jsx)(i.F,{role:"group",children:v})})})});p.classes=n.p.Wrapper.classes,p.displayName="@mantine/core/CheckboxGroup"},78253:(e,o,r)=>{r.d(o,{s:()=>y});var a=r(6029),c=r(93778);r(55729);var t=r(15862),l=r(80616),n=r(37666),i=r(19589),s=r(84047),d=r(42098),p=r(60481),h=r(63863);let u={gap:{type:"spacing",property:"gap"},rowGap:{type:"spacing",property:"rowGap"},columnGap:{type:"spacing",property:"columnGap"},align:{type:"identity",property:"alignItems"},justify:{type:"identity",property:"justifyContent"},wrap:{type:"identity",property:"flexWrap"},direction:{type:"identity",property:"flexDirection"}};var v={root:"m_8bffd616"};let k={},y=(0,h.v)((e,o)=>{let r=(0,l.Y)("Flex",k,e),{classNames:h,className:y,style:m,styles:x,unstyled:b,vars:C,gap:g,rowGap:f,columnGap:_,align:j,justify:A,wrap:I,direction:M,...N}=r,P=(0,n.I)({name:"Flex",classes:v,props:r,className:y,style:m,classNames:h,styles:x,unstyled:b,vars:C}),w=(0,t.xd)(),G=(0,d.C)(),S=(0,s.X)({styleProps:{gap:g,rowGap:f,columnGap:_,align:j,justify:A,wrap:I,direction:M},theme:w,data:u});return(0,a.jsxs)(a.Fragment,{children:[S.hasResponsiveStyles&&(0,a.jsx)(i.K,{selector:`.${G}`,styles:S.styles,media:S.media}),(0,a.jsx)(p.a,{ref:o,...P("root",{className:G,style:(0,c.J)(S.inlineStyles)}),...N})]})});y.classes=v,y.displayName="@mantine/core/Flex"}}]); \ No newline at end of file diff --git a/out/_next/static/chunks/4e973673-734c42c7ea430577.js b/out/_next/static/chunks/4e973673-734c42c7ea430577.js new file mode 100644 index 0000000..51927ac --- /dev/null +++ b/out/_next/static/chunks/4e973673-734c42c7ea430577.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[883],{71434:function(n,t,r){var e;n=r.nmd(n),(function(){var u,i="Expected a function",o="__lodash_hash_undefined__",f="__lodash_placeholder__",a=1/0,c=0/0,l=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],s="[object Arguments]",h="[object Array]",p="[object Boolean]",v="[object Date]",_="[object Error]",g="[object Function]",y="[object GeneratorFunction]",d="[object Map]",b="[object Number]",w="[object Object]",m="[object Promise]",x="[object RegExp]",j="[object Set]",A="[object String]",k="[object Symbol]",O="[object WeakMap]",I="[object ArrayBuffer]",E="[object DataView]",R="[object Float32Array]",z="[object Float64Array]",S="[object Int8Array]",C="[object Int16Array]",W="[object Int32Array]",L="[object Uint8Array]",U="[object Uint8ClampedArray]",B="[object Uint16Array]",T="[object Uint32Array]",$=/\b__p \+= '';/g,D=/\b(__p \+=) '' \+/g,M=/(__e\(.*?\)|\b__t\)) \+\n'';/g,F=/&(?:amp|lt|gt|quot|#39);/g,N=/[&<>"']/g,P=RegExp(F.source),q=RegExp(N.source),Z=/<%-([\s\S]+?)%>/g,K=/<%([\s\S]+?)%>/g,V=/<%=([\s\S]+?)%>/g,G=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,H=/^\w*$/,J=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Y=/[\\^$.*+?()[\]{}|]/g,Q=RegExp(Y.source),X=/^\s+/,nn=/\s/,nt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,nr=/\{\n\/\* \[wrapped with (.+)\] \*/,ne=/,? & /,nu=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ni=/[()=,{}\[\]\/\s]/,no=/\\(\\)?/g,nf=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,na=/\w*$/,nc=/^[-+]0x[0-9a-f]+$/i,nl=/^0b[01]+$/i,ns=/^\[object .+?Constructor\]$/,nh=/^0o[0-7]+$/i,np=/^(?:0|[1-9]\d*)$/,nv=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,n_=/($^)/,ng=/['\n\r\u2028\u2029\\]/g,ny="\\ud800-\\udfff",nd="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",nb="\\u2700-\\u27bf",nw="a-z\\xdf-\\xf6\\xf8-\\xff",nm="A-Z\\xc0-\\xd6\\xd8-\\xde",nx="\\ufe0e\\ufe0f",nj="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",nA="['’]",nk="["+nj+"]",nO="["+nd+"]",nI="["+nw+"]",nE="[^"+ny+nj+"\\d+"+nb+nw+nm+"]",nR="\\ud83c[\\udffb-\\udfff]",nz="[^"+ny+"]",nS="(?:\\ud83c[\\udde6-\\uddff]){2}",nC="[\\ud800-\\udbff][\\udc00-\\udfff]",nW="["+nm+"]",nL="\\u200d",nU="(?:"+nI+"|"+nE+")",nB="(?:"+nW+"|"+nE+")",nT="(?:"+nA+"(?:d|ll|m|re|s|t|ve))?",n$="(?:"+nA+"(?:D|LL|M|RE|S|T|VE))?",nD="(?:"+nO+"|"+nR+")?",nM="["+nx+"]?",nF="(?:"+nL+"(?:"+[nz,nS,nC].join("|")+")"+nM+nD+")*",nN=nM+nD+nF,nP="(?:"+["["+nb+"]",nS,nC].join("|")+")"+nN,nq="(?:"+[nz+nO+"?",nO,nS,nC,"["+ny+"]"].join("|")+")",nZ=RegExp(nA,"g"),nK=RegExp(nO,"g"),nV=RegExp(nR+"(?="+nR+")|"+nq+nN,"g"),nG=RegExp([nW+"?"+nI+"+"+nT+"(?="+[nk,nW,"$"].join("|")+")",nB+"+"+n$+"(?="+[nk,nW+nU,"$"].join("|")+")",nW+"?"+nU+"+"+nT,nW+"+"+n$,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])|\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])|\\d+",nP].join("|"),"g"),nH=RegExp("["+nL+ny+nd+nx+"]"),nJ=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,nY=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],nQ=-1,nX={};nX[R]=nX[z]=nX[S]=nX[C]=nX[W]=nX[L]=nX[U]=nX[B]=nX[T]=!0,nX[s]=nX[h]=nX[I]=nX[p]=nX[E]=nX[v]=nX[_]=nX[g]=nX[d]=nX[b]=nX[w]=nX[x]=nX[j]=nX[A]=nX[O]=!1;var n0={};n0[s]=n0[h]=n0[I]=n0[E]=n0[p]=n0[v]=n0[R]=n0[z]=n0[S]=n0[C]=n0[W]=n0[d]=n0[b]=n0[w]=n0[x]=n0[j]=n0[A]=n0[k]=n0[L]=n0[U]=n0[B]=n0[T]=!0,n0[_]=n0[g]=n0[O]=!1;var n1={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},n2=parseFloat,n3=parseInt,n8="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,n4="object"==typeof self&&self&&self.Object===Object&&self,n6=n8||n4||Function("return this")(),n9=t&&!t.nodeType&&t,n7=n9&&n&&!n.nodeType&&n,n5=n7&&n7.exports===n9,tn=n5&&n8.process,tt=function(){try{var n=n7&&n7.require&&n7.require("util").types;if(n)return n;return tn&&tn.binding&&tn.binding("util")}catch(n){}}(),tr=tt&&tt.isArrayBuffer,te=tt&&tt.isDate,tu=tt&&tt.isMap,ti=tt&&tt.isRegExp,to=tt&&tt.isSet,tf=tt&&tt.isTypedArray;function ta(n,t,r){switch(r.length){case 0:return n.call(t);case 1:return n.call(t,r[0]);case 2:return n.call(t,r[0],r[1]);case 3:return n.call(t,r[0],r[1],r[2])}return n.apply(t,r)}function tc(n,t,r,e){for(var u=-1,i=null==n?0:n.length;++u-1}function tv(n,t,r){for(var e=-1,u=null==n?0:n.length;++e-1;);return r}function tT(n,t){for(var r=n.length;r--&&tj(t,n[r],0)>-1;);return r}var t$=tE({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),tD=tE({"&":"&","<":"<",">":">",'"':""","'":"'"});function tM(n){return"\\"+n1[n]}function tF(n){return nH.test(n)}function tN(n){var t=-1,r=Array(n.size);return n.forEach(function(n,e){r[++t]=[e,n]}),r}function tP(n,t){return function(r){return n(t(r))}}function tq(n,t){for(var r=-1,e=n.length,u=0,i=[];++r",""":'"',"'":"'"}),tJ=function n(t){var r,e,nn,ny,nd=(t=null==t?n6:tJ.defaults(n6.Object(),t,tJ.pick(n6,nY))).Array,nb=t.Date,nw=t.Error,nm=t.Function,nx=t.Math,nj=t.Object,nA=t.RegExp,nk=t.String,nO=t.TypeError,nI=nd.prototype,nE=nm.prototype,nR=nj.prototype,nz=t["__core-js_shared__"],nS=nE.toString,nC=nR.hasOwnProperty,nW=0,nL=(r=/[^.]+$/.exec(nz&&nz.keys&&nz.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",nU=nR.toString,nB=nS.call(nj),nT=n6._,n$=nA("^"+nS.call(nC).replace(Y,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),nD=n5?t.Buffer:u,nM=t.Symbol,nF=t.Uint8Array,nN=nD?nD.allocUnsafe:u,nP=tP(nj.getPrototypeOf,nj),nq=nj.create,nV=nR.propertyIsEnumerable,nH=nI.splice,n1=nM?nM.isConcatSpreadable:u,n8=nM?nM.iterator:u,n4=nM?nM.toStringTag:u,n9=function(){try{var n=uh(nj,"defineProperty");return n({},"",{}),n}catch(n){}}(),n7=t.clearTimeout!==n6.clearTimeout&&t.clearTimeout,tn=nb&&nb.now!==n6.Date.now&&nb.now,tt=t.setTimeout!==n6.setTimeout&&t.setTimeout,tw=nx.ceil,tE=nx.floor,tY=nj.getOwnPropertySymbols,tQ=nD?nD.isBuffer:u,tX=t.isFinite,t0=nI.join,t1=tP(nj.keys,nj),t2=nx.max,t3=nx.min,t8=nb.now,t4=t.parseInt,t6=nx.random,t9=nI.reverse,t7=uh(t,"DataView"),t5=uh(t,"Map"),rn=uh(t,"Promise"),rt=uh(t,"Set"),rr=uh(t,"WeakMap"),re=uh(nj,"create"),ru=rr&&new rr,ri={},ro=uT(t7),rf=uT(t5),ra=uT(rn),rc=uT(rt),rl=uT(rr),rs=nM?nM.prototype:u,rh=rs?rs.valueOf:u,rp=rs?rs.toString:u;function rv(n){if(iG(n)&&!iT(n)&&!(n instanceof rd)){if(n instanceof ry)return n;if(nC.call(n,"__wrapped__"))return u$(n)}return new ry(n)}var r_=function(){function n(){}return function(t){if(!iV(t))return{};if(nq)return nq(t);n.prototype=t;var r=new n;return n.prototype=u,r}}();function rg(){}function ry(n,t){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=u}function rd(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=0xffffffff,this.__views__=[]}function rb(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t-1},rw.prototype.set=function(n,t){var r=this.__data__,e=rE(r,n);return e<0?(++this.size,r.push([n,t])):r[e][1]=t,this},rm.prototype.clear=function(){this.size=0,this.__data__={hash:new rb,map:new(t5||rw),string:new rb}},rm.prototype.delete=function(n){var t=ul(this,n).delete(n);return this.size-=!!t,t},rm.prototype.get=function(n){return ul(this,n).get(n)},rm.prototype.has=function(n){return ul(this,n).has(n)},rm.prototype.set=function(n,t){var r=ul(this,n),e=r.size;return r.set(n,t),this.size+=+(r.size!=e),this},rx.prototype.add=rx.prototype.push=function(n){return this.__data__.set(n,o),this},rx.prototype.has=function(n){return this.__data__.has(n)};function rO(n,t,r){(u===r||iW(n[t],r))&&(u!==r||t in n)||rS(n,t,r)}function rI(n,t,r){var e=n[t];nC.call(n,t)&&iW(e,r)&&(u!==r||t in n)||rS(n,t,r)}function rE(n,t){for(var r=n.length;r--;)if(iW(n[r][0],t))return r;return -1}function rR(n,t,r,e){return r$(n,function(n,u,i){t(e,n,r(n),i)}),e}function rz(n,t){return n&&eF(t,ov(t),n)}function rS(n,t,r){"__proto__"==t&&n9?n9(n,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):n[t]=r}function rC(n,t){for(var r=-1,e=t.length,i=nd(e),o=null==n;++r=t?n:t)),n}function rL(n,t,r,e,i,o){var f,a=1&t,c=2&t,l=4&t;if(r&&(f=i?r(n,e,i,o):r(n)),u!==f)return f;if(!iV(n))return n;var h=iT(n);if(h){if(m=(_=n).length,O=new _.constructor(m),m&&"string"==typeof _[0]&&nC.call(_,"index")&&(O.index=_.index,O.input=_.input),f=O,!a)return eM(n,f)}else{var _,m,O,$,D,M,F,N,P=u_(n),q=P==g||P==y;if(iF(n))return eL(n,a);if(P==w||P==s||q&&!i){if(f=c||q?{}:uy(n),!a){return c?($=n,D=(N=f)&&eF(n,o_(n),N),eF($,uv($),D)):(M=n,F=rz(f,n),eF(M,up(M),F))}}else{if(!n0[P])return i?n:{};f=function(n,t,r){var e,u,i=n.constructor;switch(t){case I:return eU(n);case p:case v:return new i(+n);case E:return e=r?eU(n.buffer):n.buffer,new n.constructor(e,n.byteOffset,n.byteLength);case R:case z:case S:case C:case W:case L:case U:case B:case T:return eB(n,r);case d:return new i;case b:case A:return new i(n);case x:return(u=new n.constructor(n.source,na.exec(n))).lastIndex=n.lastIndex,u;case j:return new i;case k:return rh?nj(rh.call(n)):{}}}(n,P,a)}}o||(o=new rj);var Z=o.get(n);if(Z)return Z;o.set(n,f),iX(n)?n.forEach(function(e){f.add(rL(e,t,r,e,n,o))}):iH(n)&&n.forEach(function(e,u){f.set(u,rL(e,t,r,u,n,o))});var K=l?c?ui:uu:c?o_:ov,V=h?u:K(n);return tl(V||n,function(e,u){V&&(e=n[u=e]),rI(f,u,rL(e,t,r,u,n,o))}),f}function rU(n,t,r){var e=r.length;if(null==n)return!e;for(n=nj(n);e--;){var i=r[e],o=t[i],f=n[i];if(u===f&&!(i in n)||!o(f))return!1}return!0}function rB(n,t,r){if("function"!=typeof n)throw new nO(i);return uz(function(){n.apply(u,r)},t)}function rT(n,t,r,e){var u=-1,i=tp,o=!0,f=n.length,a=[],c=t.length;if(!f)return a;r&&(t=t_(t,tW(r))),e?(i=tv,o=!1):t.length>=200&&(i=tU,o=!1,t=new rx(t));n:for(;++u0&&r(f)?t>1?rP(f,t-1,r,e,u):tg(u,f):e||(u[u.length]=f)}return u}var rq=eZ(),rZ=eZ(!0);function rK(n,t){return n&&rq(n,t,ov)}function rV(n,t){return n&&rZ(n,t,ov)}function rG(n,t){return th(t,function(t){return iq(n[t])})}function rH(n,t){t=eS(t,n);for(var r=0,e=t.length;null!=n&&rt}function rX(n,t){return null!=n&&nC.call(n,t)}function r0(n,t){return null!=n&&t in nj(n)}function r1(n,t,r){for(var e=r?tv:tp,i=n[0].length,o=n.length,f=o,a=nd(o),c=1/0,l=[];f--;){var s=n[f];f&&t&&(s=t_(s,tW(t))),c=t3(s.length,c),a[f]=!r&&(t||i>=120&&s.length>=120)?new rx(f&&s):u}s=n[0];var h=-1,p=a[0];n:for(;++h=f)return a;return a*("desc"==r[e]?-1:1)}}return n.index-t.index}(n,t,r)});i--;)u[i]=u[i].value;return u}function eo(n,t,r){for(var e=-1,u=t.length,i={};++e-1;)f!==n&&nH.call(f,a,1),nH.call(n,a,1);return n}function ea(n,t){for(var r=n?t.length:0,e=r-1;r--;){var u=t[r];if(r==e||u!==i){var i=u;ub(u)?nH.call(n,u,1):ej(n,u)}}return n}function ec(n,t){return n+tE(t6()*(t-n+1))}function el(n,t){var r="";if(!n||t<1||t>0x1fffffffffffff)return r;do t%2&&(r+=n),(t=tE(t/2))&&(n+=n);while(t);return r}function es(n,t){return uS(uO(n,t,oM),n+"")}function eh(n,t,r,e){if(!iV(n))return n;t=eS(t,n);for(var i=-1,o=t.length,f=o-1,a=n;null!=a&&++iu?0:u+t),(r=r>u?u:r)<0&&(r+=u),u=t>r?0:r-t>>>0,t>>>=0;for(var i=nd(u);++e>>1,o=n[i];null!==o&&!i1(o)&&(r?o<=t:o=200){var c=t?null:e6(n);if(c)return tZ(c);o=!1,u=tU,a=new rx}else a=t?[]:f;n:for(;++e=e?n:e_(n,t,r)}var eW=n7||function(n){return n6.clearTimeout(n)};function eL(n,t){if(t)return n.slice();var r=n.length,e=nN?nN(r):new n.constructor(r);return n.copy(e),e}function eU(n){var t=new n.constructor(n.byteLength);return new nF(t).set(new nF(n)),t}function eB(n,t){var r=t?eU(n.buffer):n.buffer;return new n.constructor(r,n.byteOffset,n.length)}function eT(n,t){if(n!==t){var r=u!==n,e=null===n,i=n==n,o=i1(n),f=u!==t,a=null===t,c=t==t,l=i1(t);if(!a&&!l&&!o&&n>t||o&&f&&c&&!a&&!l||e&&f&&c||!r&&c||!i)return 1;if(!e&&!o&&!l&&n1?r[i-1]:u,f=i>2?r[2]:u;for(o=n.length>3&&"function"==typeof o?(i--,o):u,f&&uw(r[0],r[1],f)&&(o=i<3?u:o,i=1),t=nj(t);++e-1?i[o?t[f]:f]:u}}function eJ(n){return ue(function(t){var r=t.length,e=r,o=ry.prototype.thru;for(n&&t.reverse();e--;){var f=t[e];if("function"!=typeof f)throw new nO(i);if(o&&!a&&"wrapper"==uf(f))var a=new ry([],!0)}for(e=a?e:r;++e1&&b.reverse(),s&&ca))return!1;var l=o.get(n),s=o.get(t);if(l&&s)return l==t&&s==n;var h=-1,p=!0,v=2&r?new rx:u;for(o.set(n,t),o.set(t,n);++h-1&&n%1==0&&n1?"& ":"")+t[e],t=t.join(r>2?", ":" "),n.replace(nt,"{\n/* [wrapped with "+t+"] */\n")}(o,(e=(i=o.match(nr))?i[1].split(ne):[],u=r,tl(l,function(n){var t="_."+n[0];u&n[1]&&!tp(e,t)&&e.push(t)}),e.sort())))}function uW(n){var t=0,r=0;return function(){var e=t8(),i=16-(e-r);if(r=e,i>0){if(++t>=800)return arguments[0]}else t=0;return n.apply(u,arguments)}}function uL(n,t){var r=-1,e=n.length,i=e-1;for(t=u===t?e:t;++r1?n[t-1]:u;return r="function"==typeof r?(n.pop(),r):u,u8(n,r)});function ir(n){var t=rv(n);return t.__chain__=!0,t}function ie(n,t){return t(n)}var iu=ue(function(n){var t=n.length,r=t?n[0]:0,e=this.__wrapped__,i=function(t){return rC(t,n)};return!(t>1)&&!this.__actions__.length&&e instanceof rd&&ub(r)?((e=e.slice(r,+r+ +!!t)).__actions__.push({func:ie,args:[i],thisArg:u}),new ry(e,this.__chain__).thru(function(n){return t&&!n.length&&n.push(u),n})):this.thru(i)}),ii=eN(function(n,t,r){nC.call(n,r)?++n[r]:rS(n,r,1)}),io=eH(uN),ia=eH(uP);function ic(n,t){return(iT(n)?tl:r$)(n,uc(t,3))}function il(n,t){return(iT(n)?function(n,t){for(var r=null==n?0:n.length;r--&&!1!==t(n[r],r,n););return n}:rD)(n,uc(t,3))}var is=eN(function(n,t,r){nC.call(n,r)?n[r].push(t):rS(n,r,[t])}),ih=es(function(n,t,r){var e=-1,u="function"==typeof t,i=iD(n)?nd(n.length):[];return r$(n,function(n){i[++e]=u?ta(t,n,r):r2(n,t,r)}),i}),ip=eN(function(n,t,r){rS(n,r,t)});function iv(n,t){return(iT(n)?t_:en)(n,uc(t,3))}var i_=eN(function(n,t,r){n[+!r].push(t)},function(){return[[],[]]}),ig=es(function(n,t){if(null==n)return[];var r=t.length;return r>1&&uw(n,t[0],t[1])?t=[]:r>2&&uw(t[0],t[1],t[2])&&(t=[t[0]]),ei(n,rP(t,1),[])}),iy=tn||function(){return n6.Date.now()};function id(n,t,r){return t=r?u:t,t=n&&null==t?n.length:t,e7(n,128,u,u,u,u,t)}function ib(n,t){var r;if("function"!=typeof t)throw new nO(i);return n=i9(n),function(){return--n>0&&(r=t.apply(this,arguments)),n<=1&&(t=u),r}}var iw=es(function(n,t,r){var e=1;if(r.length){var u=tq(r,ua(iw));e|=32}return e7(n,e,t,r,u)}),im=es(function(n,t,r){var e=3;if(r.length){var u=tq(r,ua(im));e|=32}return e7(t,e,n,r,u)});function ix(n,t,r){t=r?u:t;var e=e7(n,8,u,u,u,u,u,t);return e.placeholder=ix.placeholder,e}function ij(n,t,r){t=r?u:t;var e=e7(n,16,u,u,u,u,u,t);return e.placeholder=ij.placeholder,e}function iA(n,t,r){var e,o,f,a,c,l,s=0,h=!1,p=!1,v=!0;if("function"!=typeof n)throw new nO(i);function _(t){var r=e,i=o;return e=o=u,s=t,a=n.apply(i,r)}function g(n){var r=n-l,e=n-s;return u===l||r>=t||r<0||p&&e>=f}function y(){var n,r,e,u=iy();if(g(u))return d(u);c=uz(y,(n=u-l,r=u-s,e=t-n,p?t3(e,f-r):e))}function d(n){return(c=u,v&&e)?_(n):(e=o=u,a)}function b(){var n,r=iy(),i=g(r);if(e=arguments,o=this,l=r,i){if(u===c)return s=n=l,c=uz(y,t),h?_(n):a;if(p)return eW(c),c=uz(y,t),_(l)}return u===c&&(c=uz(y,t)),a}return t=i5(t)||0,iV(r)&&(h=!!r.leading,f=(p="maxWait"in r)?t2(i5(r.maxWait)||0,t):f,v="trailing"in r?!!r.trailing:v),b.cancel=function(){u!==c&&eW(c),s=0,e=l=o=c=u},b.flush=function(){return u===c?a:d(iy())},b}var ik=es(function(n,t){return rB(n,1,t)}),iO=es(function(n,t,r){return rB(n,i5(t)||0,r)});function iI(n,t){if("function"!=typeof n||null!=t&&"function"!=typeof t)throw new nO(i);var r=function(){var e=arguments,u=t?t.apply(this,e):e[0],i=r.cache;if(i.has(u))return i.get(u);var o=n.apply(this,e);return r.cache=i.set(u,o)||i,o};return r.cache=new(iI.Cache||rm),r}function iE(n){if("function"!=typeof n)throw new nO(i);return function(){var t=arguments;switch(t.length){case 0:return!n.call(this);case 1:return!n.call(this,t[0]);case 2:return!n.call(this,t[0],t[1]);case 3:return!n.call(this,t[0],t[1],t[2])}return!n.apply(this,t)}}iI.Cache=rm;var iR=es(function(n,t){var r=(t=1==t.length&&iT(t[0])?t_(t[0],tW(uc())):t_(rP(t,1),tW(uc()))).length;return es(function(e){for(var u=-1,i=t3(e.length,r);++u=t}),iB=r3(function(){return arguments}())?r3:function(n){return iG(n)&&nC.call(n,"callee")&&!nV.call(n,"callee")},iT=nd.isArray,i$=tr?tW(tr):function(n){return iG(n)&&rY(n)==I};function iD(n){return null!=n&&iK(n.length)&&!iq(n)}function iM(n){return iG(n)&&iD(n)}var iF=tQ||oX,iN=te?tW(te):function(n){return iG(n)&&rY(n)==v};function iP(n){if(!iG(n))return!1;var t=rY(n);return t==_||"[object DOMException]"==t||"string"==typeof n.message&&"string"==typeof n.name&&!iY(n)}function iq(n){if(!iV(n))return!1;var t=rY(n);return t==g||t==y||"[object AsyncFunction]"==t||"[object Proxy]"==t}function iZ(n){return"number"==typeof n&&n==i9(n)}function iK(n){return"number"==typeof n&&n>-1&&n%1==0&&n<=0x1fffffffffffff}function iV(n){var t=typeof n;return null!=n&&("object"==t||"function"==t)}function iG(n){return null!=n&&"object"==typeof n}var iH=tu?tW(tu):function(n){return iG(n)&&u_(n)==d};function iJ(n){return"number"==typeof n||iG(n)&&rY(n)==b}function iY(n){if(!iG(n)||rY(n)!=w)return!1;var t=nP(n);if(null===t)return!0;var r=nC.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&nS.call(r)==nB}var iQ=ti?tW(ti):function(n){return iG(n)&&rY(n)==x},iX=to?tW(to):function(n){return iG(n)&&u_(n)==j};function i0(n){return"string"==typeof n||!iT(n)&&iG(n)&&rY(n)==A}function i1(n){return"symbol"==typeof n||iG(n)&&rY(n)==k}var i2=tf?tW(tf):function(n){return iG(n)&&iK(n.length)&&!!nX[rY(n)]},i3=e3(r5),i8=e3(function(n,t){return n<=t});function i4(n){if(!n)return[];if(iD(n))return i0(n)?tV(n):eM(n);if(n8&&n[n8]){for(var t,r=n[n8](),e=[];!(t=r.next()).done;)e.push(t.value);return e}var u=u_(n);return(u==d?tN:u==j?tZ:oj)(n)}function i6(n){return n?(n=i5(n))===a||n===-a?(n<0?-1:1)*17976931348623157e292:n==n?n:0:0===n?n:0}function i9(n){var t=i6(n),r=t%1;return t==t?r?t-r:t:0}function i7(n){return n?rW(i9(n),0,0xffffffff):0}function i5(n){if("number"==typeof n)return n;if(i1(n))return c;if(iV(n)){var t="function"==typeof n.valueOf?n.valueOf():n;n=iV(t)?t+"":t}if("string"!=typeof n)return 0===n?n:+n;n=tC(n);var r=nl.test(n);return r||nh.test(n)?n3(n.slice(2),r?2:8):nc.test(n)?c:+n}function on(n){return eF(n,o_(n))}function ot(n){return null==n?"":em(n)}var or=eP(function(n,t){if(uA(t)||iD(t))return void eF(t,ov(t),n);for(var r in t)nC.call(t,r)&&rI(n,r,t[r])}),oe=eP(function(n,t){eF(t,o_(t),n)}),ou=eP(function(n,t,r,e){eF(t,o_(t),n,e)}),oi=eP(function(n,t,r,e){eF(t,ov(t),n,e)}),oo=ue(rC),of=es(function(n,t){n=nj(n);var r=-1,e=t.length,i=e>2?t[2]:u;for(i&&uw(t[0],t[1],i)&&(e=1);++r1),t}),eF(n,ui(n),r),e&&(r=rL(r,7,ut));for(var u=t.length;u--;)ej(r,t[u]);return r}),ob=ue(function(n,t){return null==n?{}:eo(n,t,function(t,r){return ol(n,r)})});function ow(n,t){if(null==n)return{};var r=t_(ui(n),function(n){return[n]});return t=uc(t),eo(n,r,function(n,r){return t(n,r[0])})}var om=e9(ov),ox=e9(o_);function oj(n){return null==n?[]:tL(n,ov(n))}var oA=eV(function(n,t,r){return t=t.toLowerCase(),n+(r?ok(t):t)});function ok(n){return oW(ot(n).toLowerCase())}function oO(n){return(n=ot(n))&&n.replace(nv,t$).replace(nK,"")}var oI=eV(function(n,t,r){return n+(r?"-":"")+t.toLowerCase()}),oE=eV(function(n,t,r){return n+(r?" ":"")+t.toLowerCase()}),oR=eK("toLowerCase"),oz=eV(function(n,t,r){return n+(r?"_":"")+t.toLowerCase()}),oS=eV(function(n,t,r){return n+(r?" ":"")+oW(t)}),oC=eV(function(n,t,r){return n+(r?" ":"")+t.toUpperCase()}),oW=eK("toUpperCase");function oL(n,t,r){if(n=ot(n),t=r?u:t,u===t){var e;return(e=n,nJ.test(e))?n.match(nG)||[]:n.match(nu)||[]}return n.match(t)||[]}var oU=es(function(n,t){try{return ta(n,u,t)}catch(n){return iP(n)?n:new nw(n)}}),oB=ue(function(n,t){return tl(t,function(t){rS(n,t=uB(t),iw(n[t],n))}),n});function oT(n){return function(){return n}}var o$=eJ(),oD=eJ(!0);function oM(n){return n}function oF(n){return r9("function"==typeof n?n:rL(n,1))}var oN=es(function(n,t){return function(r){return r2(r,n,t)}}),oP=es(function(n,t){return function(r){return r2(n,r,t)}});function oq(n,t,r){var e=ov(t),u=rG(t,e);null!=r||iV(t)&&(u.length||!e.length)||(r=t,t=n,n=this,u=rG(t,ov(t)));var i=!(iV(r)&&"chain"in r)||!!r.chain,o=iq(n);return tl(u,function(r){var e=t[r];n[r]=e,o&&(n.prototype[r]=function(){var t=this.__chain__;if(i||t){var r=n(this.__wrapped__);return(r.__actions__=eM(this.__actions__)).push({func:e,args:arguments,thisArg:n}),r.__chain__=t,r}return e.apply(n,tg([this.value()],arguments))})}),n}function oZ(){}var oK=e0(t_),oV=e0(ts),oG=e0(tb);function oH(n){return um(n)?tI(uB(n)):function(t){return rH(t,n)}}var oJ=e2(),oY=e2(!0);function oQ(){return[]}function oX(){return!1}var o0=eX(function(n,t){return n+t},0),o1=e4("ceil"),o2=eX(function(n,t){return n/t},1),o3=e4("floor"),o8=eX(function(n,t){return n*t},1),o4=e4("round"),o6=eX(function(n,t){return n-t},0);return rv.after=function(n,t){if("function"!=typeof t)throw new nO(i);return n=i9(n),function(){if(--n<1)return t.apply(this,arguments)}},rv.ary=id,rv.assign=or,rv.assignIn=oe,rv.assignInWith=ou,rv.assignWith=oi,rv.at=oo,rv.before=ib,rv.bind=iw,rv.bindAll=oB,rv.bindKey=im,rv.castArray=function(){if(!arguments.length)return[];var n=arguments[0];return iT(n)?n:[n]},rv.chain=ir,rv.chunk=function(n,t,r){t=(r?uw(n,t,r):u===t)?1:t2(i9(t),0);var e=null==n?0:n.length;if(!e||t<1)return[];for(var i=0,o=0,f=nd(tw(e/t));ia?0:a+o),(f=u===f||f>a?a:i9(f))<0&&(f+=a),f=o>f?0:i7(f);o>>0)?(n=ot(n))&&("string"==typeof t||null!=t&&!iQ(t))&&!(t=em(t))&&tF(n)?eC(tV(n),0,r):n.split(t,r):[]},rv.spread=function(n,t){if("function"!=typeof n)throw new nO(i);return t=null==t?0:t2(i9(t),0),es(function(r){var e=r[t],u=eC(r,0,t);return e&&tg(u,e),ta(n,this,u)})},rv.tail=function(n){var t=null==n?0:n.length;return t?e_(n,1,t):[]},rv.take=function(n,t,r){return n&&n.length?e_(n,0,(t=r||u===t?1:i9(t))<0?0:t):[]},rv.takeRight=function(n,t,r){var e=null==n?0:n.length;return e?e_(n,(t=e-(t=r||u===t?1:i9(t)))<0?0:t,e):[]},rv.takeRightWhile=function(n,t){return n&&n.length?ek(n,uc(t,3),!1,!0):[]},rv.takeWhile=function(n,t){return n&&n.length?ek(n,uc(t,3)):[]},rv.tap=function(n,t){return t(n),n},rv.throttle=function(n,t,r){var e=!0,u=!0;if("function"!=typeof n)throw new nO(i);return iV(r)&&(e="leading"in r?!!r.leading:e,u="trailing"in r?!!r.trailing:u),iA(n,t,{leading:e,maxWait:t,trailing:u})},rv.thru=ie,rv.toArray=i4,rv.toPairs=om,rv.toPairsIn=ox,rv.toPath=function(n){return iT(n)?t_(n,uB):i1(n)?[n]:eM(uU(ot(n)))},rv.toPlainObject=on,rv.transform=function(n,t,r){var e=iT(n),u=e||iF(n)||i2(n);if(t=uc(t,4),null==r){var i=n&&n.constructor;r=u?e?new i:[]:iV(n)&&iq(i)?r_(nP(n)):{}}return(u?tl:rK)(n,function(n,e,u){return t(r,n,e,u)}),r},rv.unary=function(n){return id(n,1)},rv.union=u0,rv.unionBy=u1,rv.unionWith=u2,rv.uniq=function(n){return n&&n.length?ex(n):[]},rv.uniqBy=function(n,t){return n&&n.length?ex(n,uc(t,2)):[]},rv.uniqWith=function(n,t){return t="function"==typeof t?t:u,n&&n.length?ex(n,u,t):[]},rv.unset=function(n,t){return null==n||ej(n,t)},rv.unzip=u3,rv.unzipWith=u8,rv.update=function(n,t,r){return null==n?n:eA(n,t,ez(r))},rv.updateWith=function(n,t,r,e){return e="function"==typeof e?e:u,null==n?n:eA(n,t,ez(r),e)},rv.values=oj,rv.valuesIn=function(n){return null==n?[]:tL(n,o_(n))},rv.without=u4,rv.words=oL,rv.wrap=function(n,t){return iz(ez(t),n)},rv.xor=u6,rv.xorBy=u9,rv.xorWith=u7,rv.zip=u5,rv.zipObject=function(n,t){return eE(n||[],t||[],rI)},rv.zipObjectDeep=function(n,t){return eE(n||[],t||[],eh)},rv.zipWith=it,rv.entries=om,rv.entriesIn=ox,rv.extend=oe,rv.extendWith=ou,oq(rv,rv),rv.add=o0,rv.attempt=oU,rv.camelCase=oA,rv.capitalize=ok,rv.ceil=o1,rv.clamp=function(n,t,r){return u===r&&(r=t,t=u),u!==r&&(r=(r=i5(r))==r?r:0),u!==t&&(t=(t=i5(t))==t?t:0),rW(i5(n),t,r)},rv.clone=function(n){return rL(n,4)},rv.cloneDeep=function(n){return rL(n,5)},rv.cloneDeepWith=function(n,t){return rL(n,5,t="function"==typeof t?t:u)},rv.cloneWith=function(n,t){return rL(n,4,t="function"==typeof t?t:u)},rv.conformsTo=function(n,t){return null==t||rU(n,t,ov(t))},rv.deburr=oO,rv.defaultTo=function(n,t){return null==n||n!=n?t:n},rv.divide=o2,rv.endsWith=function(n,t,r){n=ot(n),t=em(t);var e=n.length,i=r=u===r?e:rW(i9(r),0,e);return(r-=t.length)>=0&&n.slice(r,i)==t},rv.eq=iW,rv.escape=function(n){return(n=ot(n))&&q.test(n)?n.replace(N,tD):n},rv.escapeRegExp=function(n){return(n=ot(n))&&Q.test(n)?n.replace(Y,"\\$&"):n},rv.every=function(n,t,r){var e=iT(n)?ts:rM;return r&&uw(n,t,r)&&(t=u),e(n,uc(t,3))},rv.find=io,rv.findIndex=uN,rv.findKey=function(n,t){return tm(n,uc(t,3),rK)},rv.findLast=ia,rv.findLastIndex=uP,rv.findLastKey=function(n,t){return tm(n,uc(t,3),rV)},rv.floor=o3,rv.forEach=ic,rv.forEachRight=il,rv.forIn=function(n,t){return null==n?n:rq(n,uc(t,3),o_)},rv.forInRight=function(n,t){return null==n?n:rZ(n,uc(t,3),o_)},rv.forOwn=function(n,t){return n&&rK(n,uc(t,3))},rv.forOwnRight=function(n,t){return n&&rV(n,uc(t,3))},rv.get=oc,rv.gt=iL,rv.gte=iU,rv.has=function(n,t){return null!=n&&ug(n,t,rX)},rv.hasIn=ol,rv.head=uZ,rv.identity=oM,rv.includes=function(n,t,r,e){n=iD(n)?n:oj(n),r=r&&!e?i9(r):0;var u=n.length;return r<0&&(r=t2(u+r,0)),i0(n)?r<=u&&n.indexOf(t,r)>-1:!!u&&tj(n,t,r)>-1},rv.indexOf=function(n,t,r){var e=null==n?0:n.length;if(!e)return -1;var u=null==r?0:i9(r);return u<0&&(u=t2(e+u,0)),tj(n,t,u)},rv.inRange=function(n,t,r){var e,i,o;return t=i6(t),u===r?(r=t,t=0):r=i6(r),(e=n=i5(n))>=t3(i=t,o=r)&&e=-0x1fffffffffffff&&n<=0x1fffffffffffff},rv.isSet=iX,rv.isString=i0,rv.isSymbol=i1,rv.isTypedArray=i2,rv.isUndefined=function(n){return u===n},rv.isWeakMap=function(n){return iG(n)&&u_(n)==O},rv.isWeakSet=function(n){return iG(n)&&"[object WeakSet]"==rY(n)},rv.join=function(n,t){return null==n?"":t0.call(n,t)},rv.kebabCase=oI,rv.last=uH,rv.lastIndexOf=function(n,t,r){var e=null==n?0:n.length;if(!e)return -1;var i=e;return u!==r&&(i=(i=i9(r))<0?t2(e+i,0):t3(i,e-1)),t==t?function(n,t,r){for(var e=r+1;e--&&n[e]!==t;);return e}(n,t,i):tx(n,tk,i,!0)},rv.lowerCase=oE,rv.lowerFirst=oR,rv.lt=i3,rv.lte=i8,rv.max=function(n){return n&&n.length?rF(n,oM,rQ):u},rv.maxBy=function(n,t){return n&&n.length?rF(n,uc(t,2),rQ):u},rv.mean=function(n){return tO(n,oM)},rv.meanBy=function(n,t){return tO(n,uc(t,2))},rv.min=function(n){return n&&n.length?rF(n,oM,r5):u},rv.minBy=function(n,t){return n&&n.length?rF(n,uc(t,2),r5):u},rv.stubArray=oQ,rv.stubFalse=oX,rv.stubObject=function(){return{}},rv.stubString=function(){return""},rv.stubTrue=function(){return!0},rv.multiply=o8,rv.nth=function(n,t){return n&&n.length?eu(n,i9(t)):u},rv.noConflict=function(){return n6._===this&&(n6._=nT),this},rv.noop=oZ,rv.now=iy,rv.pad=function(n,t,r){n=ot(n);var e=(t=i9(t))?tK(n):0;if(!t||e>=t)return n;var u=(t-e)/2;return e1(tE(u),r)+n+e1(tw(u),r)},rv.padEnd=function(n,t,r){n=ot(n);var e=(t=i9(t))?tK(n):0;return t&&et){var e=n;n=t,t=e}if(r||n%1||t%1){var i=t6();return t3(n+i*(t-n+n2("1e-"+((i+"").length-1))),t)}return ec(n,t)},rv.reduce=function(n,t,r){var e=iT(n)?ty:tR,u=arguments.length<3;return e(n,uc(t,4),r,u,r$)},rv.reduceRight=function(n,t,r){var e=iT(n)?td:tR,u=arguments.length<3;return e(n,uc(t,4),r,u,rD)},rv.repeat=function(n,t,r){return t=(r?uw(n,t,r):u===t)?1:i9(t),el(ot(n),t)},rv.replace=function(){var n=arguments,t=ot(n[0]);return n.length<3?t:t.replace(n[1],n[2])},rv.result=function(n,t,r){t=eS(t,n);var e=-1,i=t.length;for(i||(i=1,n=u);++e0x1fffffffffffff)return[];var r=0xffffffff,e=t3(n,0xffffffff);t=uc(t),n-=0xffffffff;for(var u=tS(e,t);++r=o)return n;var a=r-tK(e);if(a<1)return e;var c=f?eC(f,0,a).join(""):n.slice(0,a);if(u===i)return c+e;if(f&&(a+=c.length-a),iQ(i)){if(n.slice(a).search(i)){var l,s=c;for(i.global||(i=nA(i.source,ot(na.exec(i))+"g")),i.lastIndex=0;l=i.exec(s);)var h=l.index;c=c.slice(0,u===h?a:h)}}else if(n.indexOf(em(i),a)!=a){var p=c.lastIndexOf(i);p>-1&&(c=c.slice(0,p))}return c+e},rv.unescape=function(n){return(n=ot(n))&&P.test(n)?n.replace(F,tH):n},rv.uniqueId=function(n){var t=++nW;return ot(n)+t},rv.upperCase=oC,rv.upperFirst=oW,rv.each=ic,rv.eachRight=il,rv.first=uZ,oq(rv,(ny={},rK(rv,function(n,t){nC.call(rv.prototype,t)||(ny[t]=n)}),ny),{chain:!1}),rv.VERSION="4.17.23",tl(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){rv[n].placeholder=rv}),tl(["drop","take"],function(n,t){rd.prototype[n]=function(r){r=u===r?1:t2(i9(r),0);var e=this.__filtered__&&!t?new rd(this):this.clone();return e.__filtered__?e.__takeCount__=t3(r,e.__takeCount__):e.__views__.push({size:t3(r,0xffffffff),type:n+(e.__dir__<0?"Right":"")}),e},rd.prototype[n+"Right"]=function(t){return this.reverse()[n](t).reverse()}}),tl(["filter","map","takeWhile"],function(n,t){var r=t+1,e=1==r||3==r;rd.prototype[n]=function(n){var t=this.clone();return t.__iteratees__.push({iteratee:uc(n,3),type:r}),t.__filtered__=t.__filtered__||e,t}}),tl(["head","last"],function(n,t){var r="take"+(t?"Right":"");rd.prototype[n]=function(){return this[r](1).value()[0]}}),tl(["initial","tail"],function(n,t){var r="drop"+(t?"":"Right");rd.prototype[n]=function(){return this.__filtered__?new rd(this):this[r](1)}}),rd.prototype.compact=function(){return this.filter(oM)},rd.prototype.find=function(n){return this.filter(n).head()},rd.prototype.findLast=function(n){return this.reverse().find(n)},rd.prototype.invokeMap=es(function(n,t){return"function"==typeof n?new rd(this):this.map(function(r){return r2(r,n,t)})}),rd.prototype.reject=function(n){return this.filter(iE(uc(n)))},rd.prototype.slice=function(n,t){n=i9(n);var r=this;return r.__filtered__&&(n>0||t<0)?new rd(r):(n<0?r=r.takeRight(-n):n&&(r=r.drop(n)),u!==t&&(r=(t=i9(t))<0?r.dropRight(-t):r.take(t-n)),r)},rd.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},rd.prototype.toArray=function(){return this.take(0xffffffff)},rK(rd.prototype,function(n,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),e=/^(?:head|last)$/.test(t),i=rv[e?"take"+("last"==t?"Right":""):t],o=e||/^find/.test(t);i&&(rv.prototype[t]=function(){var t=this.__wrapped__,f=e?[1]:arguments,a=t instanceof rd,c=f[0],l=a||iT(t),s=function(n){var t=i.apply(rv,tg([n],f));return e&&h?t[0]:t};l&&r&&"function"==typeof c&&1!=c.length&&(a=l=!1);var h=this.__chain__,p=!!this.__actions__.length,v=o&&!h,_=a&&!p;if(!o&&l){t=_?t:new rd(this);var g=n.apply(t,f);return g.__actions__.push({func:ie,args:[s],thisArg:u}),new ry(g,h)}return v&&_?n.apply(this,f):(g=this.thru(s),v?e?g.value()[0]:g.value():g)})}),tl(["pop","push","shift","sort","splice","unshift"],function(n){var t=nI[n],r=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",e=/^(?:pop|shift)$/.test(n);rv.prototype[n]=function(){var n=arguments;if(e&&!this.__chain__){var u=this.value();return t.apply(iT(u)?u:[],n)}return this[r](function(r){return t.apply(iT(r)?r:[],n)})}}),rK(rd.prototype,function(n,t){var r=rv[t];if(r){var e=r.name+"";nC.call(ri,e)||(ri[e]=[]),ri[e].push({name:t,func:r})}}),ri[eY(u,2).name]=[{name:"wrapper",func:u}],rd.prototype.clone=function(){var n=new rd(this.__wrapped__);return n.__actions__=eM(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=eM(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=eM(this.__views__),n},rd.prototype.reverse=function(){if(this.__filtered__){var n=new rd(this);n.__dir__=-1,n.__filtered__=!0}else n=this.clone(),n.__dir__*=-1;return n},rd.prototype.value=function(){var n=this.__wrapped__.value(),t=this.__dir__,r=iT(n),e=t<0,u=r?n.length:0,i=function(n,t,r){for(var e=-1,u=r.length;++e=this.__values__.length,t=n?u:this.__values__[this.__index__++];return{done:n,value:t}},rv.prototype.plant=function(n){for(var t,r=this;r instanceof rg;){var e=u$(r);e.__index__=0,e.__values__=u,t?i.__wrapped__=e:t=e;var i=e;r=r.__wrapped__}return i.__wrapped__=n,t},rv.prototype.reverse=function(){var n=this.__wrapped__;if(n instanceof rd){var t=n;return this.__actions__.length&&(t=new rd(this)),(t=t.reverse()).__actions__.push({func:ie,args:[uX],thisArg:u}),new ry(t,this.__chain__)}return this.thru(uX)},rv.prototype.toJSON=rv.prototype.valueOf=rv.prototype.value=function(){return eO(this.__wrapped__,this.__actions__)},rv.prototype.first=rv.prototype.head,n8&&(rv.prototype[n8]=function(){return this}),rv}();n6._=tJ,u===(e=(function(){return tJ}).call(t,r,t,n))||(n.exports=e)}).call(this)}}]); \ No newline at end of file diff --git a/out/_next/static/chunks/4e973673-b7b5da192a879342.js b/out/_next/static/chunks/4e973673-b7b5da192a879342.js deleted file mode 100644 index d6017f9..0000000 --- a/out/_next/static/chunks/4e973673-b7b5da192a879342.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[883],{71434:function(n,t,r){var e;n=r.nmd(n),(function(){var u,i="Expected a function",o="__lodash_hash_undefined__",f="__lodash_placeholder__",a=1/0,c=0/0,l=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],s="[object Arguments]",h="[object Array]",p="[object Boolean]",v="[object Date]",_="[object Error]",g="[object Function]",y="[object GeneratorFunction]",d="[object Map]",b="[object Number]",w="[object Object]",m="[object Promise]",x="[object RegExp]",j="[object Set]",A="[object String]",k="[object Symbol]",O="[object WeakMap]",I="[object ArrayBuffer]",E="[object DataView]",R="[object Float32Array]",z="[object Float64Array]",S="[object Int8Array]",C="[object Int16Array]",W="[object Int32Array]",L="[object Uint8Array]",U="[object Uint8ClampedArray]",B="[object Uint16Array]",T="[object Uint32Array]",$=/\b__p \+= '';/g,D=/\b(__p \+=) '' \+/g,M=/(__e\(.*?\)|\b__t\)) \+\n'';/g,F=/&(?:amp|lt|gt|quot|#39);/g,N=/[&<>"']/g,P=RegExp(F.source),q=RegExp(N.source),Z=/<%-([\s\S]+?)%>/g,K=/<%([\s\S]+?)%>/g,V=/<%=([\s\S]+?)%>/g,G=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,H=/^\w*$/,J=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Y=/[\\^$.*+?()[\]{}|]/g,Q=RegExp(Y.source),X=/^\s+/,nn=/\s/,nt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,nr=/\{\n\/\* \[wrapped with (.+)\] \*/,ne=/,? & /,nu=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ni=/[()=,{}\[\]\/\s]/,no=/\\(\\)?/g,nf=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,na=/\w*$/,nc=/^[-+]0x[0-9a-f]+$/i,nl=/^0b[01]+$/i,ns=/^\[object .+?Constructor\]$/,nh=/^0o[0-7]+$/i,np=/^(?:0|[1-9]\d*)$/,nv=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,n_=/($^)/,ng=/['\n\r\u2028\u2029\\]/g,ny="\\ud800-\\udfff",nd="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",nb="\\u2700-\\u27bf",nw="a-z\\xdf-\\xf6\\xf8-\\xff",nm="A-Z\\xc0-\\xd6\\xd8-\\xde",nx="\\ufe0e\\ufe0f",nj="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",nA="['’]",nk="["+nj+"]",nO="["+nd+"]",nI="["+nw+"]",nE="[^"+ny+nj+"\\d+"+nb+nw+nm+"]",nR="\\ud83c[\\udffb-\\udfff]",nz="[^"+ny+"]",nS="(?:\\ud83c[\\udde6-\\uddff]){2}",nC="[\\ud800-\\udbff][\\udc00-\\udfff]",nW="["+nm+"]",nL="\\u200d",nU="(?:"+nI+"|"+nE+")",nB="(?:"+nW+"|"+nE+")",nT="(?:"+nA+"(?:d|ll|m|re|s|t|ve))?",n$="(?:"+nA+"(?:D|LL|M|RE|S|T|VE))?",nD="(?:"+nO+"|"+nR+")?",nM="["+nx+"]?",nF="(?:"+nL+"(?:"+[nz,nS,nC].join("|")+")"+nM+nD+")*",nN=nM+nD+nF,nP="(?:"+["["+nb+"]",nS,nC].join("|")+")"+nN,nq="(?:"+[nz+nO+"?",nO,nS,nC,"["+ny+"]"].join("|")+")",nZ=RegExp(nA,"g"),nK=RegExp(nO,"g"),nV=RegExp(nR+"(?="+nR+")|"+nq+nN,"g"),nG=RegExp([nW+"?"+nI+"+"+nT+"(?="+[nk,nW,"$"].join("|")+")",nB+"+"+n$+"(?="+[nk,nW+nU,"$"].join("|")+")",nW+"?"+nU+"+"+nT,nW+"+"+n$,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])|\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])|\\d+",nP].join("|"),"g"),nH=RegExp("["+nL+ny+nd+nx+"]"),nJ=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,nY=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],nQ=-1,nX={};nX[R]=nX[z]=nX[S]=nX[C]=nX[W]=nX[L]=nX[U]=nX[B]=nX[T]=!0,nX[s]=nX[h]=nX[I]=nX[p]=nX[E]=nX[v]=nX[_]=nX[g]=nX[d]=nX[b]=nX[w]=nX[x]=nX[j]=nX[A]=nX[O]=!1;var n0={};n0[s]=n0[h]=n0[I]=n0[E]=n0[p]=n0[v]=n0[R]=n0[z]=n0[S]=n0[C]=n0[W]=n0[d]=n0[b]=n0[w]=n0[x]=n0[j]=n0[A]=n0[k]=n0[L]=n0[U]=n0[B]=n0[T]=!0,n0[_]=n0[g]=n0[O]=!1;var n1={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},n2=parseFloat,n3=parseInt,n8="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,n4="object"==typeof self&&self&&self.Object===Object&&self,n6=n8||n4||Function("return this")(),n9=t&&!t.nodeType&&t,n7=n9&&n&&!n.nodeType&&n,n5=n7&&n7.exports===n9,tn=n5&&n8.process,tt=function(){try{var n=n7&&n7.require&&n7.require("util").types;if(n)return n;return tn&&tn.binding&&tn.binding("util")}catch(n){}}(),tr=tt&&tt.isArrayBuffer,te=tt&&tt.isDate,tu=tt&&tt.isMap,ti=tt&&tt.isRegExp,to=tt&&tt.isSet,tf=tt&&tt.isTypedArray;function ta(n,t,r){switch(r.length){case 0:return n.call(t);case 1:return n.call(t,r[0]);case 2:return n.call(t,r[0],r[1]);case 3:return n.call(t,r[0],r[1],r[2])}return n.apply(t,r)}function tc(n,t,r,e){for(var u=-1,i=null==n?0:n.length;++u-1}function tv(n,t,r){for(var e=-1,u=null==n?0:n.length;++e-1;);return r}function tT(n,t){for(var r=n.length;r--&&tj(t,n[r],0)>-1;);return r}var t$=tE({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),tD=tE({"&":"&","<":"<",">":">",'"':""","'":"'"});function tM(n){return"\\"+n1[n]}function tF(n){return nH.test(n)}function tN(n){var t=-1,r=Array(n.size);return n.forEach(function(n,e){r[++t]=[e,n]}),r}function tP(n,t){return function(r){return n(t(r))}}function tq(n,t){for(var r=-1,e=n.length,u=0,i=[];++r",""":'"',"'":"'"}),tJ=function n(t){var r,e,nn,ny,nd=(t=null==t?n6:tJ.defaults(n6.Object(),t,tJ.pick(n6,nY))).Array,nb=t.Date,nw=t.Error,nm=t.Function,nx=t.Math,nj=t.Object,nA=t.RegExp,nk=t.String,nO=t.TypeError,nI=nd.prototype,nE=nm.prototype,nR=nj.prototype,nz=t["__core-js_shared__"],nS=nE.toString,nC=nR.hasOwnProperty,nW=0,nL=(r=/[^.]+$/.exec(nz&&nz.keys&&nz.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",nU=nR.toString,nB=nS.call(nj),nT=n6._,n$=nA("^"+nS.call(nC).replace(Y,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),nD=n5?t.Buffer:u,nM=t.Symbol,nF=t.Uint8Array,nN=nD?nD.allocUnsafe:u,nP=tP(nj.getPrototypeOf,nj),nq=nj.create,nV=nR.propertyIsEnumerable,nH=nI.splice,n1=nM?nM.isConcatSpreadable:u,n8=nM?nM.iterator:u,n4=nM?nM.toStringTag:u,n9=function(){try{var n=uh(nj,"defineProperty");return n({},"",{}),n}catch(n){}}(),n7=t.clearTimeout!==n6.clearTimeout&&t.clearTimeout,tn=nb&&nb.now!==n6.Date.now&&nb.now,tt=t.setTimeout!==n6.setTimeout&&t.setTimeout,tw=nx.ceil,tE=nx.floor,tY=nj.getOwnPropertySymbols,tQ=nD?nD.isBuffer:u,tX=t.isFinite,t0=nI.join,t1=tP(nj.keys,nj),t2=nx.max,t3=nx.min,t8=nb.now,t4=t.parseInt,t6=nx.random,t9=nI.reverse,t7=uh(t,"DataView"),t5=uh(t,"Map"),rn=uh(t,"Promise"),rt=uh(t,"Set"),rr=uh(t,"WeakMap"),re=uh(nj,"create"),ru=rr&&new rr,ri={},ro=uT(t7),rf=uT(t5),ra=uT(rn),rc=uT(rt),rl=uT(rr),rs=nM?nM.prototype:u,rh=rs?rs.valueOf:u,rp=rs?rs.toString:u;function rv(n){if(iG(n)&&!iT(n)&&!(n instanceof rd)){if(n instanceof ry)return n;if(nC.call(n,"__wrapped__"))return u$(n)}return new ry(n)}var r_=function(){function n(){}return function(t){if(!iV(t))return{};if(nq)return nq(t);n.prototype=t;var r=new n;return n.prototype=u,r}}();function rg(){}function ry(n,t){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=u}function rd(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=0xffffffff,this.__views__=[]}function rb(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t-1},rw.prototype.set=function(n,t){var r=this.__data__,e=rE(r,n);return e<0?(++this.size,r.push([n,t])):r[e][1]=t,this},rm.prototype.clear=function(){this.size=0,this.__data__={hash:new rb,map:new(t5||rw),string:new rb}},rm.prototype.delete=function(n){var t=ul(this,n).delete(n);return this.size-=!!t,t},rm.prototype.get=function(n){return ul(this,n).get(n)},rm.prototype.has=function(n){return ul(this,n).has(n)},rm.prototype.set=function(n,t){var r=ul(this,n),e=r.size;return r.set(n,t),this.size+=+(r.size!=e),this},rx.prototype.add=rx.prototype.push=function(n){return this.__data__.set(n,o),this},rx.prototype.has=function(n){return this.__data__.has(n)};function rO(n,t,r){(u===r||iW(n[t],r))&&(u!==r||t in n)||rS(n,t,r)}function rI(n,t,r){var e=n[t];nC.call(n,t)&&iW(e,r)&&(u!==r||t in n)||rS(n,t,r)}function rE(n,t){for(var r=n.length;r--;)if(iW(n[r][0],t))return r;return -1}function rR(n,t,r,e){return r$(n,function(n,u,i){t(e,n,r(n),i)}),e}function rz(n,t){return n&&eF(t,ov(t),n)}function rS(n,t,r){"__proto__"==t&&n9?n9(n,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):n[t]=r}function rC(n,t){for(var r=-1,e=t.length,i=nd(e),o=null==n;++r=t?n:t)),n}function rL(n,t,r,e,i,o){var f,a=1&t,c=2&t,l=4&t;if(r&&(f=i?r(n,e,i,o):r(n)),u!==f)return f;if(!iV(n))return n;var h=iT(n);if(h){if(m=(_=n).length,O=new _.constructor(m),m&&"string"==typeof _[0]&&nC.call(_,"index")&&(O.index=_.index,O.input=_.input),f=O,!a)return eM(n,f)}else{var _,m,O,$,D,M,F,N,P=u_(n),q=P==g||P==y;if(iF(n))return eL(n,a);if(P==w||P==s||q&&!i){if(f=c||q?{}:uy(n),!a){return c?($=n,D=(N=f)&&eF(n,o_(n),N),eF($,uv($),D)):(M=n,F=rz(f,n),eF(M,up(M),F))}}else{if(!n0[P])return i?n:{};f=function(n,t,r){var e,u,i=n.constructor;switch(t){case I:return eU(n);case p:case v:return new i(+n);case E:return e=r?eU(n.buffer):n.buffer,new n.constructor(e,n.byteOffset,n.byteLength);case R:case z:case S:case C:case W:case L:case U:case B:case T:return eB(n,r);case d:return new i;case b:case A:return new i(n);case x:return(u=new n.constructor(n.source,na.exec(n))).lastIndex=n.lastIndex,u;case j:return new i;case k:return rh?nj(rh.call(n)):{}}}(n,P,a)}}o||(o=new rj);var Z=o.get(n);if(Z)return Z;o.set(n,f),iX(n)?n.forEach(function(e){f.add(rL(e,t,r,e,n,o))}):iH(n)&&n.forEach(function(e,u){f.set(u,rL(e,t,r,u,n,o))});var K=l?c?ui:uu:c?o_:ov,V=h?u:K(n);return tl(V||n,function(e,u){V&&(e=n[u=e]),rI(f,u,rL(e,t,r,u,n,o))}),f}function rU(n,t,r){var e=r.length;if(null==n)return!e;for(n=nj(n);e--;){var i=r[e],o=t[i],f=n[i];if(u===f&&!(i in n)||!o(f))return!1}return!0}function rB(n,t,r){if("function"!=typeof n)throw new nO(i);return uz(function(){n.apply(u,r)},t)}function rT(n,t,r,e){var u=-1,i=tp,o=!0,f=n.length,a=[],c=t.length;if(!f)return a;r&&(t=t_(t,tW(r))),e?(i=tv,o=!1):t.length>=200&&(i=tU,o=!1,t=new rx(t));n:for(;++u0&&r(f)?t>1?rP(f,t-1,r,e,u):tg(u,f):e||(u[u.length]=f)}return u}var rq=eZ(),rZ=eZ(!0);function rK(n,t){return n&&rq(n,t,ov)}function rV(n,t){return n&&rZ(n,t,ov)}function rG(n,t){return th(t,function(t){return iq(n[t])})}function rH(n,t){t=eS(t,n);for(var r=0,e=t.length;null!=n&&rt}function rX(n,t){return null!=n&&nC.call(n,t)}function r0(n,t){return null!=n&&t in nj(n)}function r1(n,t,r){for(var e=r?tv:tp,i=n[0].length,o=n.length,f=o,a=nd(o),c=1/0,l=[];f--;){var s=n[f];f&&t&&(s=t_(s,tW(t))),c=t3(s.length,c),a[f]=!r&&(t||i>=120&&s.length>=120)?new rx(f&&s):u}s=n[0];var h=-1,p=a[0];n:for(;++h=f)return a;return a*("desc"==r[e]?-1:1)}}return n.index-t.index}(n,t,r)});i--;)u[i]=u[i].value;return u}function eo(n,t,r){for(var e=-1,u=t.length,i={};++e-1;)f!==n&&nH.call(f,a,1),nH.call(n,a,1);return n}function ea(n,t){for(var r=n?t.length:0,e=r-1;r--;){var u=t[r];if(r==e||u!==i){var i=u;ub(u)?nH.call(n,u,1):ej(n,u)}}return n}function ec(n,t){return n+tE(t6()*(t-n+1))}function el(n,t){var r="";if(!n||t<1||t>0x1fffffffffffff)return r;do t%2&&(r+=n),(t=tE(t/2))&&(n+=n);while(t);return r}function es(n,t){return uS(uO(n,t,oM),n+"")}function eh(n,t,r,e){if(!iV(n))return n;t=eS(t,n);for(var i=-1,o=t.length,f=o-1,a=n;null!=a&&++iu?0:u+t),(r=r>u?u:r)<0&&(r+=u),u=t>r?0:r-t>>>0,t>>>=0;for(var i=nd(u);++e>>1,o=n[i];null!==o&&!i1(o)&&(r?o<=t:o=200){var c=t?null:e6(n);if(c)return tZ(c);o=!1,u=tU,a=new rx}else a=t?[]:f;n:for(;++e=e?n:e_(n,t,r)}var eW=n7||function(n){return n6.clearTimeout(n)};function eL(n,t){if(t)return n.slice();var r=n.length,e=nN?nN(r):new n.constructor(r);return n.copy(e),e}function eU(n){var t=new n.constructor(n.byteLength);return new nF(t).set(new nF(n)),t}function eB(n,t){var r=t?eU(n.buffer):n.buffer;return new n.constructor(r,n.byteOffset,n.length)}function eT(n,t){if(n!==t){var r=u!==n,e=null===n,i=n==n,o=i1(n),f=u!==t,a=null===t,c=t==t,l=i1(t);if(!a&&!l&&!o&&n>t||o&&f&&c&&!a&&!l||e&&f&&c||!r&&c||!i)return 1;if(!e&&!o&&!l&&n1?r[i-1]:u,f=i>2?r[2]:u;for(o=n.length>3&&"function"==typeof o?(i--,o):u,f&&uw(r[0],r[1],f)&&(o=i<3?u:o,i=1),t=nj(t);++e-1?i[o?t[f]:f]:u}}function eJ(n){return ue(function(t){var r=t.length,e=r,o=ry.prototype.thru;for(n&&t.reverse();e--;){var f=t[e];if("function"!=typeof f)throw new nO(i);if(o&&!a&&"wrapper"==uf(f))var a=new ry([],!0)}for(e=a?e:r;++e1&&b.reverse(),s&&ca))return!1;var l=o.get(n),s=o.get(t);if(l&&s)return l==t&&s==n;var h=-1,p=!0,v=2&r?new rx:u;for(o.set(n,t),o.set(t,n);++h-1&&n%1==0&&n1?"& ":"")+t[e],t=t.join(r>2?", ":" "),n.replace(nt,"{\n/* [wrapped with "+t+"] */\n")}(o,(e=(i=o.match(nr))?i[1].split(ne):[],u=r,tl(l,function(n){var t="_."+n[0];u&n[1]&&!tp(e,t)&&e.push(t)}),e.sort())))}function uW(n){var t=0,r=0;return function(){var e=t8(),i=16-(e-r);if(r=e,i>0){if(++t>=800)return arguments[0]}else t=0;return n.apply(u,arguments)}}function uL(n,t){var r=-1,e=n.length,i=e-1;for(t=u===t?e:t;++r1?n[t-1]:u;return r="function"==typeof r?(n.pop(),r):u,u8(n,r)});function ir(n){var t=rv(n);return t.__chain__=!0,t}function ie(n,t){return t(n)}var iu=ue(function(n){var t=n.length,r=t?n[0]:0,e=this.__wrapped__,i=function(t){return rC(t,n)};return!(t>1)&&!this.__actions__.length&&e instanceof rd&&ub(r)?((e=e.slice(r,+r+ +!!t)).__actions__.push({func:ie,args:[i],thisArg:u}),new ry(e,this.__chain__).thru(function(n){return t&&!n.length&&n.push(u),n})):this.thru(i)}),ii=eN(function(n,t,r){nC.call(n,r)?++n[r]:rS(n,r,1)}),io=eH(uN),ia=eH(uP);function ic(n,t){return(iT(n)?tl:r$)(n,uc(t,3))}function il(n,t){return(iT(n)?function(n,t){for(var r=null==n?0:n.length;r--&&!1!==t(n[r],r,n););return n}:rD)(n,uc(t,3))}var is=eN(function(n,t,r){nC.call(n,r)?n[r].push(t):rS(n,r,[t])}),ih=es(function(n,t,r){var e=-1,u="function"==typeof t,i=iD(n)?nd(n.length):[];return r$(n,function(n){i[++e]=u?ta(t,n,r):r2(n,t,r)}),i}),ip=eN(function(n,t,r){rS(n,r,t)});function iv(n,t){return(iT(n)?t_:en)(n,uc(t,3))}var i_=eN(function(n,t,r){n[+!r].push(t)},function(){return[[],[]]}),ig=es(function(n,t){if(null==n)return[];var r=t.length;return r>1&&uw(n,t[0],t[1])?t=[]:r>2&&uw(t[0],t[1],t[2])&&(t=[t[0]]),ei(n,rP(t,1),[])}),iy=tn||function(){return n6.Date.now()};function id(n,t,r){return t=r?u:t,t=n&&null==t?n.length:t,e7(n,128,u,u,u,u,t)}function ib(n,t){var r;if("function"!=typeof t)throw new nO(i);return n=i9(n),function(){return--n>0&&(r=t.apply(this,arguments)),n<=1&&(t=u),r}}var iw=es(function(n,t,r){var e=1;if(r.length){var u=tq(r,ua(iw));e|=32}return e7(n,e,t,r,u)}),im=es(function(n,t,r){var e=3;if(r.length){var u=tq(r,ua(im));e|=32}return e7(t,e,n,r,u)});function ix(n,t,r){t=r?u:t;var e=e7(n,8,u,u,u,u,u,t);return e.placeholder=ix.placeholder,e}function ij(n,t,r){t=r?u:t;var e=e7(n,16,u,u,u,u,u,t);return e.placeholder=ij.placeholder,e}function iA(n,t,r){var e,o,f,a,c,l,s=0,h=!1,p=!1,v=!0;if("function"!=typeof n)throw new nO(i);function _(t){var r=e,i=o;return e=o=u,s=t,a=n.apply(i,r)}function g(n){var r=n-l,e=n-s;return u===l||r>=t||r<0||p&&e>=f}function y(){var n,r,e,u=iy();if(g(u))return d(u);c=uz(y,(n=u-l,r=u-s,e=t-n,p?t3(e,f-r):e))}function d(n){return(c=u,v&&e)?_(n):(e=o=u,a)}function b(){var n,r=iy(),i=g(r);if(e=arguments,o=this,l=r,i){if(u===c)return s=n=l,c=uz(y,t),h?_(n):a;if(p)return eW(c),c=uz(y,t),_(l)}return u===c&&(c=uz(y,t)),a}return t=i5(t)||0,iV(r)&&(h=!!r.leading,f=(p="maxWait"in r)?t2(i5(r.maxWait)||0,t):f,v="trailing"in r?!!r.trailing:v),b.cancel=function(){u!==c&&eW(c),s=0,e=l=o=c=u},b.flush=function(){return u===c?a:d(iy())},b}var ik=es(function(n,t){return rB(n,1,t)}),iO=es(function(n,t,r){return rB(n,i5(t)||0,r)});function iI(n,t){if("function"!=typeof n||null!=t&&"function"!=typeof t)throw new nO(i);var r=function(){var e=arguments,u=t?t.apply(this,e):e[0],i=r.cache;if(i.has(u))return i.get(u);var o=n.apply(this,e);return r.cache=i.set(u,o)||i,o};return r.cache=new(iI.Cache||rm),r}function iE(n){if("function"!=typeof n)throw new nO(i);return function(){var t=arguments;switch(t.length){case 0:return!n.call(this);case 1:return!n.call(this,t[0]);case 2:return!n.call(this,t[0],t[1]);case 3:return!n.call(this,t[0],t[1],t[2])}return!n.apply(this,t)}}iI.Cache=rm;var iR=es(function(n,t){var r=(t=1==t.length&&iT(t[0])?t_(t[0],tW(uc())):t_(rP(t,1),tW(uc()))).length;return es(function(e){for(var u=-1,i=t3(e.length,r);++u=t}),iB=r3(function(){return arguments}())?r3:function(n){return iG(n)&&nC.call(n,"callee")&&!nV.call(n,"callee")},iT=nd.isArray,i$=tr?tW(tr):function(n){return iG(n)&&rY(n)==I};function iD(n){return null!=n&&iK(n.length)&&!iq(n)}function iM(n){return iG(n)&&iD(n)}var iF=tQ||oX,iN=te?tW(te):function(n){return iG(n)&&rY(n)==v};function iP(n){if(!iG(n))return!1;var t=rY(n);return t==_||"[object DOMException]"==t||"string"==typeof n.message&&"string"==typeof n.name&&!iY(n)}function iq(n){if(!iV(n))return!1;var t=rY(n);return t==g||t==y||"[object AsyncFunction]"==t||"[object Proxy]"==t}function iZ(n){return"number"==typeof n&&n==i9(n)}function iK(n){return"number"==typeof n&&n>-1&&n%1==0&&n<=0x1fffffffffffff}function iV(n){var t=typeof n;return null!=n&&("object"==t||"function"==t)}function iG(n){return null!=n&&"object"==typeof n}var iH=tu?tW(tu):function(n){return iG(n)&&u_(n)==d};function iJ(n){return"number"==typeof n||iG(n)&&rY(n)==b}function iY(n){if(!iG(n)||rY(n)!=w)return!1;var t=nP(n);if(null===t)return!0;var r=nC.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&nS.call(r)==nB}var iQ=ti?tW(ti):function(n){return iG(n)&&rY(n)==x},iX=to?tW(to):function(n){return iG(n)&&u_(n)==j};function i0(n){return"string"==typeof n||!iT(n)&&iG(n)&&rY(n)==A}function i1(n){return"symbol"==typeof n||iG(n)&&rY(n)==k}var i2=tf?tW(tf):function(n){return iG(n)&&iK(n.length)&&!!nX[rY(n)]},i3=e3(r5),i8=e3(function(n,t){return n<=t});function i4(n){if(!n)return[];if(iD(n))return i0(n)?tV(n):eM(n);if(n8&&n[n8]){for(var t,r=n[n8](),e=[];!(t=r.next()).done;)e.push(t.value);return e}var u=u_(n);return(u==d?tN:u==j?tZ:oj)(n)}function i6(n){return n?(n=i5(n))===a||n===-a?(n<0?-1:1)*17976931348623157e292:n==n?n:0:0===n?n:0}function i9(n){var t=i6(n),r=t%1;return t==t?r?t-r:t:0}function i7(n){return n?rW(i9(n),0,0xffffffff):0}function i5(n){if("number"==typeof n)return n;if(i1(n))return c;if(iV(n)){var t="function"==typeof n.valueOf?n.valueOf():n;n=iV(t)?t+"":t}if("string"!=typeof n)return 0===n?n:+n;n=tC(n);var r=nl.test(n);return r||nh.test(n)?n3(n.slice(2),r?2:8):nc.test(n)?c:+n}function on(n){return eF(n,o_(n))}function ot(n){return null==n?"":em(n)}var or=eP(function(n,t){if(uA(t)||iD(t))return void eF(t,ov(t),n);for(var r in t)nC.call(t,r)&&rI(n,r,t[r])}),oe=eP(function(n,t){eF(t,o_(t),n)}),ou=eP(function(n,t,r,e){eF(t,o_(t),n,e)}),oi=eP(function(n,t,r,e){eF(t,ov(t),n,e)}),oo=ue(rC),of=es(function(n,t){n=nj(n);var r=-1,e=t.length,i=e>2?t[2]:u;for(i&&uw(t[0],t[1],i)&&(e=1);++r1),t}),eF(n,ui(n),r),e&&(r=rL(r,7,ut));for(var u=t.length;u--;)ej(r,t[u]);return r}),ob=ue(function(n,t){return null==n?{}:eo(n,t,function(t,r){return ol(n,r)})});function ow(n,t){if(null==n)return{};var r=t_(ui(n),function(n){return[n]});return t=uc(t),eo(n,r,function(n,r){return t(n,r[0])})}var om=e9(ov),ox=e9(o_);function oj(n){return null==n?[]:tL(n,ov(n))}var oA=eV(function(n,t,r){return t=t.toLowerCase(),n+(r?ok(t):t)});function ok(n){return oW(ot(n).toLowerCase())}function oO(n){return(n=ot(n))&&n.replace(nv,t$).replace(nK,"")}var oI=eV(function(n,t,r){return n+(r?"-":"")+t.toLowerCase()}),oE=eV(function(n,t,r){return n+(r?" ":"")+t.toLowerCase()}),oR=eK("toLowerCase"),oz=eV(function(n,t,r){return n+(r?"_":"")+t.toLowerCase()}),oS=eV(function(n,t,r){return n+(r?" ":"")+oW(t)}),oC=eV(function(n,t,r){return n+(r?" ":"")+t.toUpperCase()}),oW=eK("toUpperCase");function oL(n,t,r){if(n=ot(n),t=r?u:t,u===t){var e;return(e=n,nJ.test(e))?n.match(nG)||[]:n.match(nu)||[]}return n.match(t)||[]}var oU=es(function(n,t){try{return ta(n,u,t)}catch(n){return iP(n)?n:new nw(n)}}),oB=ue(function(n,t){return tl(t,function(t){rS(n,t=uB(t),iw(n[t],n))}),n});function oT(n){return function(){return n}}var o$=eJ(),oD=eJ(!0);function oM(n){return n}function oF(n){return r9("function"==typeof n?n:rL(n,1))}var oN=es(function(n,t){return function(r){return r2(r,n,t)}}),oP=es(function(n,t){return function(r){return r2(n,r,t)}});function oq(n,t,r){var e=ov(t),u=rG(t,e);null!=r||iV(t)&&(u.length||!e.length)||(r=t,t=n,n=this,u=rG(t,ov(t)));var i=!(iV(r)&&"chain"in r)||!!r.chain,o=iq(n);return tl(u,function(r){var e=t[r];n[r]=e,o&&(n.prototype[r]=function(){var t=this.__chain__;if(i||t){var r=n(this.__wrapped__);return(r.__actions__=eM(this.__actions__)).push({func:e,args:arguments,thisArg:n}),r.__chain__=t,r}return e.apply(n,tg([this.value()],arguments))})}),n}function oZ(){}var oK=e0(t_),oV=e0(ts),oG=e0(tb);function oH(n){return um(n)?tI(uB(n)):function(t){return rH(t,n)}}var oJ=e2(),oY=e2(!0);function oQ(){return[]}function oX(){return!1}var o0=eX(function(n,t){return n+t},0),o1=e4("ceil"),o2=eX(function(n,t){return n/t},1),o3=e4("floor"),o8=eX(function(n,t){return n*t},1),o4=e4("round"),o6=eX(function(n,t){return n-t},0);return rv.after=function(n,t){if("function"!=typeof t)throw new nO(i);return n=i9(n),function(){if(--n<1)return t.apply(this,arguments)}},rv.ary=id,rv.assign=or,rv.assignIn=oe,rv.assignInWith=ou,rv.assignWith=oi,rv.at=oo,rv.before=ib,rv.bind=iw,rv.bindAll=oB,rv.bindKey=im,rv.castArray=function(){if(!arguments.length)return[];var n=arguments[0];return iT(n)?n:[n]},rv.chain=ir,rv.chunk=function(n,t,r){t=(r?uw(n,t,r):u===t)?1:t2(i9(t),0);var e=null==n?0:n.length;if(!e||t<1)return[];for(var i=0,o=0,f=nd(tw(e/t));ia?0:a+o),(f=u===f||f>a?a:i9(f))<0&&(f+=a),f=o>f?0:i7(f);o>>0)?(n=ot(n))&&("string"==typeof t||null!=t&&!iQ(t))&&!(t=em(t))&&tF(n)?eC(tV(n),0,r):n.split(t,r):[]},rv.spread=function(n,t){if("function"!=typeof n)throw new nO(i);return t=null==t?0:t2(i9(t),0),es(function(r){var e=r[t],u=eC(r,0,t);return e&&tg(u,e),ta(n,this,u)})},rv.tail=function(n){var t=null==n?0:n.length;return t?e_(n,1,t):[]},rv.take=function(n,t,r){return n&&n.length?e_(n,0,(t=r||u===t?1:i9(t))<0?0:t):[]},rv.takeRight=function(n,t,r){var e=null==n?0:n.length;return e?e_(n,(t=e-(t=r||u===t?1:i9(t)))<0?0:t,e):[]},rv.takeRightWhile=function(n,t){return n&&n.length?ek(n,uc(t,3),!1,!0):[]},rv.takeWhile=function(n,t){return n&&n.length?ek(n,uc(t,3)):[]},rv.tap=function(n,t){return t(n),n},rv.throttle=function(n,t,r){var e=!0,u=!0;if("function"!=typeof n)throw new nO(i);return iV(r)&&(e="leading"in r?!!r.leading:e,u="trailing"in r?!!r.trailing:u),iA(n,t,{leading:e,maxWait:t,trailing:u})},rv.thru=ie,rv.toArray=i4,rv.toPairs=om,rv.toPairsIn=ox,rv.toPath=function(n){return iT(n)?t_(n,uB):i1(n)?[n]:eM(uU(ot(n)))},rv.toPlainObject=on,rv.transform=function(n,t,r){var e=iT(n),u=e||iF(n)||i2(n);if(t=uc(t,4),null==r){var i=n&&n.constructor;r=u?e?new i:[]:iV(n)&&iq(i)?r_(nP(n)):{}}return(u?tl:rK)(n,function(n,e,u){return t(r,n,e,u)}),r},rv.unary=function(n){return id(n,1)},rv.union=u0,rv.unionBy=u1,rv.unionWith=u2,rv.uniq=function(n){return n&&n.length?ex(n):[]},rv.uniqBy=function(n,t){return n&&n.length?ex(n,uc(t,2)):[]},rv.uniqWith=function(n,t){return t="function"==typeof t?t:u,n&&n.length?ex(n,u,t):[]},rv.unset=function(n,t){return null==n||ej(n,t)},rv.unzip=u3,rv.unzipWith=u8,rv.update=function(n,t,r){return null==n?n:eA(n,t,ez(r))},rv.updateWith=function(n,t,r,e){return e="function"==typeof e?e:u,null==n?n:eA(n,t,ez(r),e)},rv.values=oj,rv.valuesIn=function(n){return null==n?[]:tL(n,o_(n))},rv.without=u4,rv.words=oL,rv.wrap=function(n,t){return iz(ez(t),n)},rv.xor=u6,rv.xorBy=u9,rv.xorWith=u7,rv.zip=u5,rv.zipObject=function(n,t){return eE(n||[],t||[],rI)},rv.zipObjectDeep=function(n,t){return eE(n||[],t||[],eh)},rv.zipWith=it,rv.entries=om,rv.entriesIn=ox,rv.extend=oe,rv.extendWith=ou,oq(rv,rv),rv.add=o0,rv.attempt=oU,rv.camelCase=oA,rv.capitalize=ok,rv.ceil=o1,rv.clamp=function(n,t,r){return u===r&&(r=t,t=u),u!==r&&(r=(r=i5(r))==r?r:0),u!==t&&(t=(t=i5(t))==t?t:0),rW(i5(n),t,r)},rv.clone=function(n){return rL(n,4)},rv.cloneDeep=function(n){return rL(n,5)},rv.cloneDeepWith=function(n,t){return rL(n,5,t="function"==typeof t?t:u)},rv.cloneWith=function(n,t){return rL(n,4,t="function"==typeof t?t:u)},rv.conformsTo=function(n,t){return null==t||rU(n,t,ov(t))},rv.deburr=oO,rv.defaultTo=function(n,t){return null==n||n!=n?t:n},rv.divide=o2,rv.endsWith=function(n,t,r){n=ot(n),t=em(t);var e=n.length,i=r=u===r?e:rW(i9(r),0,e);return(r-=t.length)>=0&&n.slice(r,i)==t},rv.eq=iW,rv.escape=function(n){return(n=ot(n))&&q.test(n)?n.replace(N,tD):n},rv.escapeRegExp=function(n){return(n=ot(n))&&Q.test(n)?n.replace(Y,"\\$&"):n},rv.every=function(n,t,r){var e=iT(n)?ts:rM;return r&&uw(n,t,r)&&(t=u),e(n,uc(t,3))},rv.find=io,rv.findIndex=uN,rv.findKey=function(n,t){return tm(n,uc(t,3),rK)},rv.findLast=ia,rv.findLastIndex=uP,rv.findLastKey=function(n,t){return tm(n,uc(t,3),rV)},rv.floor=o3,rv.forEach=ic,rv.forEachRight=il,rv.forIn=function(n,t){return null==n?n:rq(n,uc(t,3),o_)},rv.forInRight=function(n,t){return null==n?n:rZ(n,uc(t,3),o_)},rv.forOwn=function(n,t){return n&&rK(n,uc(t,3))},rv.forOwnRight=function(n,t){return n&&rV(n,uc(t,3))},rv.get=oc,rv.gt=iL,rv.gte=iU,rv.has=function(n,t){return null!=n&&ug(n,t,rX)},rv.hasIn=ol,rv.head=uZ,rv.identity=oM,rv.includes=function(n,t,r,e){n=iD(n)?n:oj(n),r=r&&!e?i9(r):0;var u=n.length;return r<0&&(r=t2(u+r,0)),i0(n)?r<=u&&n.indexOf(t,r)>-1:!!u&&tj(n,t,r)>-1},rv.indexOf=function(n,t,r){var e=null==n?0:n.length;if(!e)return -1;var u=null==r?0:i9(r);return u<0&&(u=t2(e+u,0)),tj(n,t,u)},rv.inRange=function(n,t,r){var e,i,o;return t=i6(t),u===r?(r=t,t=0):r=i6(r),(e=n=i5(n))>=t3(i=t,o=r)&&e=-0x1fffffffffffff&&n<=0x1fffffffffffff},rv.isSet=iX,rv.isString=i0,rv.isSymbol=i1,rv.isTypedArray=i2,rv.isUndefined=function(n){return u===n},rv.isWeakMap=function(n){return iG(n)&&u_(n)==O},rv.isWeakSet=function(n){return iG(n)&&"[object WeakSet]"==rY(n)},rv.join=function(n,t){return null==n?"":t0.call(n,t)},rv.kebabCase=oI,rv.last=uH,rv.lastIndexOf=function(n,t,r){var e=null==n?0:n.length;if(!e)return -1;var i=e;return u!==r&&(i=(i=i9(r))<0?t2(e+i,0):t3(i,e-1)),t==t?function(n,t,r){for(var e=r+1;e--&&n[e]!==t;);return e}(n,t,i):tx(n,tk,i,!0)},rv.lowerCase=oE,rv.lowerFirst=oR,rv.lt=i3,rv.lte=i8,rv.max=function(n){return n&&n.length?rF(n,oM,rQ):u},rv.maxBy=function(n,t){return n&&n.length?rF(n,uc(t,2),rQ):u},rv.mean=function(n){return tO(n,oM)},rv.meanBy=function(n,t){return tO(n,uc(t,2))},rv.min=function(n){return n&&n.length?rF(n,oM,r5):u},rv.minBy=function(n,t){return n&&n.length?rF(n,uc(t,2),r5):u},rv.stubArray=oQ,rv.stubFalse=oX,rv.stubObject=function(){return{}},rv.stubString=function(){return""},rv.stubTrue=function(){return!0},rv.multiply=o8,rv.nth=function(n,t){return n&&n.length?eu(n,i9(t)):u},rv.noConflict=function(){return n6._===this&&(n6._=nT),this},rv.noop=oZ,rv.now=iy,rv.pad=function(n,t,r){n=ot(n);var e=(t=i9(t))?tK(n):0;if(!t||e>=t)return n;var u=(t-e)/2;return e1(tE(u),r)+n+e1(tw(u),r)},rv.padEnd=function(n,t,r){n=ot(n);var e=(t=i9(t))?tK(n):0;return t&&et){var e=n;n=t,t=e}if(r||n%1||t%1){var i=t6();return t3(n+i*(t-n+n2("1e-"+((i+"").length-1))),t)}return ec(n,t)},rv.reduce=function(n,t,r){var e=iT(n)?ty:tR,u=arguments.length<3;return e(n,uc(t,4),r,u,r$)},rv.reduceRight=function(n,t,r){var e=iT(n)?td:tR,u=arguments.length<3;return e(n,uc(t,4),r,u,rD)},rv.repeat=function(n,t,r){return t=(r?uw(n,t,r):u===t)?1:i9(t),el(ot(n),t)},rv.replace=function(){var n=arguments,t=ot(n[0]);return n.length<3?t:t.replace(n[1],n[2])},rv.result=function(n,t,r){t=eS(t,n);var e=-1,i=t.length;for(i||(i=1,n=u);++e0x1fffffffffffff)return[];var r=0xffffffff,e=t3(n,0xffffffff);t=uc(t),n-=0xffffffff;for(var u=tS(e,t);++r=o)return n;var a=r-tK(e);if(a<1)return e;var c=f?eC(f,0,a).join(""):n.slice(0,a);if(u===i)return c+e;if(f&&(a+=c.length-a),iQ(i)){if(n.slice(a).search(i)){var l,s=c;for(i.global||(i=nA(i.source,ot(na.exec(i))+"g")),i.lastIndex=0;l=i.exec(s);)var h=l.index;c=c.slice(0,u===h?a:h)}}else if(n.indexOf(em(i),a)!=a){var p=c.lastIndexOf(i);p>-1&&(c=c.slice(0,p))}return c+e},rv.unescape=function(n){return(n=ot(n))&&P.test(n)?n.replace(F,tH):n},rv.uniqueId=function(n){var t=++nW;return ot(n)+t},rv.upperCase=oC,rv.upperFirst=oW,rv.each=ic,rv.eachRight=il,rv.first=uZ,oq(rv,(ny={},rK(rv,function(n,t){nC.call(rv.prototype,t)||(ny[t]=n)}),ny),{chain:!1}),rv.VERSION="4.17.21",tl(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){rv[n].placeholder=rv}),tl(["drop","take"],function(n,t){rd.prototype[n]=function(r){r=u===r?1:t2(i9(r),0);var e=this.__filtered__&&!t?new rd(this):this.clone();return e.__filtered__?e.__takeCount__=t3(r,e.__takeCount__):e.__views__.push({size:t3(r,0xffffffff),type:n+(e.__dir__<0?"Right":"")}),e},rd.prototype[n+"Right"]=function(t){return this.reverse()[n](t).reverse()}}),tl(["filter","map","takeWhile"],function(n,t){var r=t+1,e=1==r||3==r;rd.prototype[n]=function(n){var t=this.clone();return t.__iteratees__.push({iteratee:uc(n,3),type:r}),t.__filtered__=t.__filtered__||e,t}}),tl(["head","last"],function(n,t){var r="take"+(t?"Right":"");rd.prototype[n]=function(){return this[r](1).value()[0]}}),tl(["initial","tail"],function(n,t){var r="drop"+(t?"":"Right");rd.prototype[n]=function(){return this.__filtered__?new rd(this):this[r](1)}}),rd.prototype.compact=function(){return this.filter(oM)},rd.prototype.find=function(n){return this.filter(n).head()},rd.prototype.findLast=function(n){return this.reverse().find(n)},rd.prototype.invokeMap=es(function(n,t){return"function"==typeof n?new rd(this):this.map(function(r){return r2(r,n,t)})}),rd.prototype.reject=function(n){return this.filter(iE(uc(n)))},rd.prototype.slice=function(n,t){n=i9(n);var r=this;return r.__filtered__&&(n>0||t<0)?new rd(r):(n<0?r=r.takeRight(-n):n&&(r=r.drop(n)),u!==t&&(r=(t=i9(t))<0?r.dropRight(-t):r.take(t-n)),r)},rd.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},rd.prototype.toArray=function(){return this.take(0xffffffff)},rK(rd.prototype,function(n,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),e=/^(?:head|last)$/.test(t),i=rv[e?"take"+("last"==t?"Right":""):t],o=e||/^find/.test(t);i&&(rv.prototype[t]=function(){var t=this.__wrapped__,f=e?[1]:arguments,a=t instanceof rd,c=f[0],l=a||iT(t),s=function(n){var t=i.apply(rv,tg([n],f));return e&&h?t[0]:t};l&&r&&"function"==typeof c&&1!=c.length&&(a=l=!1);var h=this.__chain__,p=!!this.__actions__.length,v=o&&!h,_=a&&!p;if(!o&&l){t=_?t:new rd(this);var g=n.apply(t,f);return g.__actions__.push({func:ie,args:[s],thisArg:u}),new ry(g,h)}return v&&_?n.apply(this,f):(g=this.thru(s),v?e?g.value()[0]:g.value():g)})}),tl(["pop","push","shift","sort","splice","unshift"],function(n){var t=nI[n],r=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",e=/^(?:pop|shift)$/.test(n);rv.prototype[n]=function(){var n=arguments;if(e&&!this.__chain__){var u=this.value();return t.apply(iT(u)?u:[],n)}return this[r](function(r){return t.apply(iT(r)?r:[],n)})}}),rK(rd.prototype,function(n,t){var r=rv[t];if(r){var e=r.name+"";nC.call(ri,e)||(ri[e]=[]),ri[e].push({name:t,func:r})}}),ri[eY(u,2).name]=[{name:"wrapper",func:u}],rd.prototype.clone=function(){var n=new rd(this.__wrapped__);return n.__actions__=eM(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=eM(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=eM(this.__views__),n},rd.prototype.reverse=function(){if(this.__filtered__){var n=new rd(this);n.__dir__=-1,n.__filtered__=!0}else n=this.clone(),n.__dir__*=-1;return n},rd.prototype.value=function(){var n=this.__wrapped__.value(),t=this.__dir__,r=iT(n),e=t<0,u=r?n.length:0,i=function(n,t,r){for(var e=-1,u=r.length;++e=this.__values__.length,t=n?u:this.__values__[this.__index__++];return{done:n,value:t}},rv.prototype.plant=function(n){for(var t,r=this;r instanceof rg;){var e=u$(r);e.__index__=0,e.__values__=u,t?i.__wrapped__=e:t=e;var i=e;r=r.__wrapped__}return i.__wrapped__=n,t},rv.prototype.reverse=function(){var n=this.__wrapped__;if(n instanceof rd){var t=n;return this.__actions__.length&&(t=new rd(this)),(t=t.reverse()).__actions__.push({func:ie,args:[uX],thisArg:u}),new ry(t,this.__chain__)}return this.thru(uX)},rv.prototype.toJSON=rv.prototype.valueOf=rv.prototype.value=function(){return eO(this.__wrapped__,this.__actions__)},rv.prototype.first=rv.prototype.head,n8&&(rv.prototype[n8]=function(){return this}),rv}();n6._=tJ,u===(e=(function(){return tJ}).call(t,r,t,n))||(n.exports=e)}).call(this)}}]); \ No newline at end of file diff --git a/out/_next/static/chunks/5165-cc0faaa4c0c1e192.js b/out/_next/static/chunks/5165-cc0faaa4c0c1e192.js new file mode 100644 index 0000000..cc47085 --- /dev/null +++ b/out/_next/static/chunks/5165-cc0faaa4c0c1e192.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5165],{6892:(e,o,r)=>{r.d(o,{A:()=>a});var a=(0,r(41495).A)("outline","pencil","IconPencil",[["path",{d:"M4 20h4l10.5 -10.5a2.828 2.828 0 1 0 -4 -4l-10.5 10.5v4",key:"svg-0"}],["path",{d:"M13.5 6.5l4 4",key:"svg-1"}]])},16515:(e,o,r)=>{r.d(o,{L:()=>l,a:()=>t});var a=r(55729);let c=(0,a.createContext)(null),t=c.Provider,l=()=>(0,a.useContext)(c)},23195:(e,o,r)=>{r.d(o,{A:()=>a});var a=(0,r(41495).A)("outline","plus","IconPlus",[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M5 12l14 0",key:"svg-1"}]])},23935:(e,o,r)=>{r.d(o,{M:()=>d});var a=r(6029),c=r(50212);r(55729);var t=r(80616),l=r(63863),n=r(43517),i={root:"m_849cf0da"};let s={underline:"hover"},d=(0,l.v)((e,o)=>{let{underline:r,className:l,unstyled:d,mod:p,...h}=(0,t.Y)("Anchor",s,e);return(0,a.jsx)(n.E,{component:"a",ref:o,className:(0,c.A)({[i.root]:!d},l),...h,mod:[{underline:r},p],__staticSelector:"Anchor",unstyled:d})});d.classes=i,d.displayName="@mantine/core/Anchor"},28975:(e,o,r)=>{r.d(o,{A:()=>a});var a=(0,r(41495).A)("outline","circle-plus","IconCirclePlus",[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M9 12h6",key:"svg-1"}],["path",{d:"M12 9v6",key:"svg-2"}]])},47268:(e,o,r)=>{r.d(o,{S:()=>V});var a=r(6029),c=r(55729),t=r(60466),l=r(76),n=r(5618),i=r(41375),s=r(66404),d=r(92096),p=r(35192),h=r(80616),u=r(37666),v=r(3389),k=r(60481),m=r(43016),y=r(72832),x=r(3001),b=r(8737),C=r(16515);let[g,f]=(0,r(48930).e)();var _={card:"m_26775b0a"};let j={withBorder:!0},I=(0,n.V)((e,{radius:o})=>({card:{"--card-radius":(0,l.nJ)(o)}})),A=(0,m.P9)((e,o)=>{let r=(0,h.Y)("CheckboxCard",j,e),{classNames:c,className:t,style:l,styles:n,unstyled:i,vars:s,checked:d,mod:p,withBorder:v,value:k,onClick:m,defaultChecked:y,onChange:f,...A}=r,M=(0,u.I)({name:"CheckboxCard",classes:_,props:r,className:t,style:l,classNames:c,styles:n,unstyled:i,vars:s,varsResolver:I,rootSelector:"card"}),N=(0,C.L)(),P="boolean"==typeof d?d:N?N.value.includes(k||""):void 0,[w,G]=(0,x.Z)({value:P,defaultValue:y,finalValue:!1,onChange:f});return(0,a.jsx)(g,{value:{checked:w},children:(0,a.jsx)(b.N,{ref:o,mod:[{"with-border":v,checked:w},p],...M("card"),...A,role:"checkbox","aria-checked":w,onClick:e=>{m?.(e),N?.onChange(k||""),G(!w)}})})});A.displayName="@mantine/core/CheckboxCard",A.classes=_;var M=r(75177),N=r(39467),P={indicator:"m_5e5256ee",icon:"m_1b1c543a","indicator--outline":"m_76e20374"};let w={icon:N.R},G=(0,n.V)((e,{radius:o,color:r,size:a,iconColor:c,variant:t,autoContrast:n})=>{let h=(0,i.g)({color:r||e.primaryColor,theme:e}),u=h.isThemeColor&&void 0===h.shade?`var(--mantine-color-${h.color}-outline)`:h.color;return{indicator:{"--checkbox-size":(0,l.YC)(a,"checkbox-size"),"--checkbox-radius":void 0===o?void 0:(0,l.nJ)(o),"--checkbox-color":"outline"===t?u:(0,s.r)(r,e),"--checkbox-icon-color":c?(0,s.r)(c,e):(0,p.v)(n,e)?(0,d.w)({color:r,theme:e,autoContrast:n}):void 0}}}),S=(0,m.P9)((e,o)=>{let r=(0,h.Y)("CheckboxIndicator",w,e),{classNames:c,className:t,style:l,styles:n,unstyled:i,vars:s,icon:d,indeterminate:p,radius:v,color:m,iconColor:y,autoContrast:x,checked:b,mod:C,variant:g,disabled:_,...j}=r,I=(0,u.I)({name:"CheckboxIndicator",classes:P,props:r,className:t,style:l,classNames:c,styles:n,unstyled:i,vars:s,varsResolver:G,rootSelector:"indicator"}),A=f(),M="boolean"==typeof b||"boolean"==typeof p?b||p:A?.checked||!1;return(0,a.jsx)(k.a,{ref:o,...I("indicator",{variant:g}),variant:g,mod:[{checked:M,disabled:_},C],...j,children:(0,a.jsx)(d,{indeterminate:p,...I("icon")})})});S.displayName="@mantine/core/CheckboxIndicator",S.classes=P;var Y={root:"m_bf2d988c",inner:"m_26062bec",input:"m_26063560",icon:"m_bf295423","input--outline":"m_215c4542"};let z={labelPosition:"right",icon:N.R},R=(0,n.V)((e,{radius:o,color:r,size:a,iconColor:c,variant:t,autoContrast:n})=>{let h=(0,i.g)({color:r||e.primaryColor,theme:e}),u=h.isThemeColor&&void 0===h.shade?`var(--mantine-color-${h.color}-outline)`:h.color;return{root:{"--checkbox-size":(0,l.YC)(a,"checkbox-size"),"--checkbox-radius":void 0===o?void 0:(0,l.nJ)(o),"--checkbox-color":"outline"===t?u:(0,s.r)(r,e),"--checkbox-icon-color":c?(0,s.r)(c,e):(0,p.v)(n,e)?(0,d.w)({color:r,theme:e,autoContrast:n}):void 0}}}),V=(0,m.P9)((e,o)=>{let r=(0,h.Y)("Checkbox",z,e),{classNames:l,className:n,style:i,styles:s,unstyled:d,vars:p,color:m,label:x,id:b,size:g,radius:f,wrapperProps:_,checked:j,labelPosition:I,description:A,error:M,disabled:N,variant:P,indeterminate:w,icon:G,rootRef:S,iconColor:V,onChange:E,autoContrast:F,mod:$,...J}=r,L=(0,C.L)(),T=g||L?.size,W=(0,u.I)({name:"Checkbox",props:r,classes:Y,className:n,style:i,classNames:l,styles:s,unstyled:d,vars:p,varsResolver:R}),{styleProps:B,rest:Z}=(0,v.j)(J),D=(0,t.B)(b),K=L?{checked:L.value.includes(Z.value),onChange:e=>{L.onChange(e),E?.(e)}}:{},X=(0,c.useRef)(null),q=o||X;return(0,c.useEffect)(()=>{q&&"current"in q&&q.current&&(q.current.indeterminate=w||!1)},[w,q]),(0,a.jsx)(y.I,{...W("root"),__staticSelector:"Checkbox",__stylesApiProps:r,id:D,size:T,labelPosition:I,label:x,description:A,error:M,disabled:N,classNames:l,styles:s,unstyled:d,"data-checked":K.checked||j||void 0,variant:P,ref:S,mod:$,...B,..._,children:(0,a.jsxs)(k.a,{...W("inner"),mod:{"data-label-position":I},children:[(0,a.jsx)(k.a,{component:"input",id:D,ref:q,checked:j,disabled:N,mod:{error:!!M,indeterminate:w},...W("input",{focusable:!0,variant:P}),onChange:E,...Z,...K,type:"checkbox"}),(0,a.jsx)(G,{indeterminate:w,...W("icon")})]})})});V.classes={...Y,...y.M},V.displayName="@mantine/core/Checkbox",V.Group=M.$,V.Indicator=S,V.Card=A},56795:(e,o,r)=>{r.d(o,{A:()=>a});var a=(0,r(41495).A)("outline","link","IconLink",[["path",{d:"M9 15l6 -6",key:"svg-0"}],["path",{d:"M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464",key:"svg-1"}],["path",{d:"M13 18l-.397 .534a5.068 5.068 0 0 1 -7.127 0a4.972 4.972 0 0 1 0 -7.071l.524 -.463",key:"svg-2"}]])},75177:(e,o,r)=>{r.d(o,{$:()=>p});var a=r(6029),c=r(3001);r(55729);var t=r(80616),l=r(43016),n=r(96061),i=r(29645),s=r(16515);let d={},p=(0,l.P9)((e,o)=>{let{value:r,defaultValue:l,onChange:p,size:h,wrapperProps:u,children:v,readOnly:k,...m}=(0,t.Y)("CheckboxGroup",d,e),[y,x]=(0,c.Z)({value:r,defaultValue:l,finalValue:[],onChange:p});return(0,a.jsx)(s.a,{value:{value:y,onChange:e=>{let o="string"==typeof e?e:e.currentTarget.value;k||x(y.includes(o)?y.filter(e=>e!==o):[...y,o])},size:h},children:(0,a.jsx)(n.p.Wrapper,{size:h,ref:o,...u,...m,labelElement:"div",__staticSelector:"CheckboxGroup",children:(0,a.jsx)(i.F,{role:"group",children:v})})})});p.classes=n.p.Wrapper.classes,p.displayName="@mantine/core/CheckboxGroup"},78253:(e,o,r)=>{r.d(o,{s:()=>m});var a=r(6029),c=r(93778);r(55729);var t=r(15862),l=r(80616),n=r(37666),i=r(19589),s=r(84047),d=r(42098),p=r(60481),h=r(63863);let u={gap:{type:"spacing",property:"gap"},rowGap:{type:"spacing",property:"rowGap"},columnGap:{type:"spacing",property:"columnGap"},align:{type:"identity",property:"alignItems"},justify:{type:"identity",property:"justifyContent"},wrap:{type:"identity",property:"flexWrap"},direction:{type:"identity",property:"flexDirection"}};var v={root:"m_8bffd616"};let k={},m=(0,h.v)((e,o)=>{let r=(0,l.Y)("Flex",k,e),{classNames:h,className:m,style:y,styles:x,unstyled:b,vars:C,gap:g,rowGap:f,columnGap:_,align:j,justify:I,wrap:A,direction:M,...N}=r,P=(0,n.I)({name:"Flex",classes:v,props:r,className:m,style:y,classNames:h,styles:x,unstyled:b,vars:C}),w=(0,t.xd)(),G=(0,d.C)(),S=(0,s.X)({styleProps:{gap:g,rowGap:f,columnGap:_,align:j,justify:I,wrap:A,direction:M},theme:w,data:u});return(0,a.jsxs)(a.Fragment,{children:[S.hasResponsiveStyles&&(0,a.jsx)(i.K,{selector:`.${G}`,styles:S.styles,media:S.media}),(0,a.jsx)(p.a,{ref:o,...P("root",{className:G,style:(0,c.J)(S.inlineStyles)}),...N})]})});m.classes=v,m.displayName="@mantine/core/Flex"}}]); \ No newline at end of file diff --git a/out/_next/static/chunks/522-db7920b51550c9e2.js b/out/_next/static/chunks/522-db7920b51550c9e2.js deleted file mode 100644 index 00d0b02..0000000 --- a/out/_next/static/chunks/522-db7920b51550c9e2.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[522],{3400:e=>{function t(e){var t={},r={},o=[];if(e.sinks().forEach(function i(a){if(Object.hasOwn(r,a))throw new n;Object.hasOwn(t,a)||(r[a]=!0,t[a]=!0,e.predecessors(a).forEach(i),delete r[a],o.push(a))}),Object.keys(t).length!==e.nodeCount())throw new n;return o}class n extends Error{constructor(){super(...arguments)}}e.exports=t,t.CycleException=n},3644:(e,t,n)=>{"use strict";let r=n(11280),o=n(21367).positionX;e.exports=function(e){var t;let n,i,a;t=e=r.asNonCompoundGraph(e),n=r.buildLayerMatrix(t),i=t.graph().ranksep,a=0,n.forEach(e=>{let n=e.reduce((e,n)=>{let r=t.node(n).height;return e>r?e:r},0);e.forEach(e=>t.node(e).y=a+n/2),a+=n+i}),Object.entries(o(e)).forEach(([t,n])=>e.node(t).x=n)}},4755:(e,t,n)=>{let r=n(11280);e.exports={run:function(e){var t,n,o;let i=r.addDummyNode(e,"root",{},"_root"),a=(n={},(t=e).children().forEach(e=>(function e(r,o){var i=t.children(r);i&&i.length&&i.forEach(t=>e(t,o+1)),n[r]=o})(e,1)),n),s=Object.values(a),u=r.applyWithChunking(Math.max,s)-1,l=2*u+1;e.graph().nestingRoot=i,e.edges().forEach(t=>e.edge(t).minlen*=l);let c=(o=e).edges().reduce((e,t)=>e+o.edge(t).weight,0)+1;e.children().forEach(t=>(function e(t,n,o,i,a,s,u){let l=t.children(u);if(!l.length){u!==n&&t.setEdge(n,u,{weight:0,minlen:o});return}let c=r.addBorderNode(t,"_bt"),h=r.addBorderNode(t,"_bb"),d=t.node(u);t.setParent(c,u),d.borderTop=c,t.setParent(h,u),d.borderBottom=h,l.forEach(r=>{e(t,n,o,i,a,s,r);let l=t.node(r),d=l.borderTop?l.borderTop:r,f=l.borderBottom?l.borderBottom:r,p=l.borderTop?i:2*i,g=d!==f?1:a-s[u]+1;t.setEdge(c,d,{weight:p,minlen:g,nestingEdge:!0}),t.setEdge(f,h,{weight:p,minlen:g,nestingEdge:!0})}),t.parent(u)||t.setEdge(n,c,{weight:0,minlen:a+s[u]})})(e,i,l,c,u,a,t)),e.graph().nodeRankFactor=l},cleanup:function(e){var t=e.graph();e.removeNode(t.nestingRoot),delete t.nestingRoot,e.edges().forEach(t=>{e.edge(t).nestingEdge&&e.removeEdge(t)})}}},7203:(e,t,n)=>{"use strict";e.exports=n(65675)},8210:(e,t,n)=>{var r=n(88885);e.exports=function(e){return r(e).filter(function(t){return t.length>1||1===t.length&&e.hasEdge(t[0],t[0])})}},11058:(e,t,n)=>{"use strict";n.d(t,{h:()=>h,n:()=>l});var r=n(55729),o=n(7203);let i=e=>{let t,n=new Set,r=(e,r)=>{let o="function"==typeof e?e(t):e;if(!Object.is(o,t)){let e=t;t=(null!=r?r:"object"!=typeof o||null===o)?o:Object.assign({},t,o),n.forEach(n=>n(t,e))}},o=()=>t,i={setState:r,getState:o,getInitialState:()=>a,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},a=t=e(r,o,i);return i},{useDebugValue:a}=r,{useSyncExternalStoreWithSelector:s}=o,u=e=>e;function l(e,t=u,n){let r=s(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return a(r),r}let c=(e,t)=>{let n=e?i(e):i,r=(e,r=t)=>l(n,e,r);return Object.assign(r,n),r},h=(e,t)=>e?c(e,t):c},11280:(e,t,n)=>{"use strict";let r=n(49010).Graph;function o(e,t,n,r){for(var o=r;e.hasNode(o);)o=u(r);return n.dummy=t,e.setNode(o,n),o}e.exports={addBorderNode:function(e,t,n,r){let i={width:0,height:0};return arguments.length>=4&&(i.rank=n,i.order=r),o(e,"border",i,t)},addDummyNode:o,applyWithChunking:i,asNonCompoundGraph:function(e){let t=new r({multigraph:e.isMultigraph()}).setGraph(e.graph());return e.nodes().forEach(n=>{e.children(n).length||t.setNode(n,e.node(n))}),e.edges().forEach(n=>{t.setEdge(n,e.edge(n))}),t},buildLayerMatrix:function(e){let t=l(a(e)+1).map(()=>[]);return e.nodes().forEach(n=>{let r=e.node(n),o=r.rank;void 0!==o&&(t[o][r.order]=n)}),t},intersectRect:function(e,t){let n,r,o=e.x,i=e.y,a=t.x-o,s=t.y-i,u=e.width/2,l=e.height/2;if(!a&&!s)throw Error("Not possible to find intersection inside of the rectangle");return Math.abs(s)*u>Math.abs(a)*l?(s<0&&(l=-l),n=l*a/s,r=l):(a<0&&(u=-u),n=u,r=u*s/a),{x:o+n,y:i+r}},mapValues:function(e,t){let n=t;return"string"==typeof t&&(n=e=>e[t]),Object.entries(e).reduce((e,[t,r])=>(e[t]=n(r,t),e),{})},maxRank:a,normalizeRanks:function(e){let t=i(Math.min,e.nodes().map(t=>{let n=e.node(t).rank;return void 0===n?Number.MAX_VALUE:n}));e.nodes().forEach(n=>{let r=e.node(n);Object.hasOwn(r,"rank")&&(r.rank-=t)})},notime:function(e,t){return t()},partition:function(e,t){let n={lhs:[],rhs:[]};return e.forEach(e=>{t(e)?n.lhs.push(e):n.rhs.push(e)}),n},pick:function(e,t){let n={};for(let r of t)void 0!==e[r]&&(n[r]=e[r]);return n},predecessorWeights:function(e){let t=e.nodes().map(t=>{let n={};return e.inEdges(t).forEach(t=>{n[t.v]=(n[t.v]||0)+e.edge(t).weight}),n});return c(e.nodes(),t)},range:l,removeEmptyRanks:function(e){let t=i(Math.min,e.nodes().map(t=>e.node(t).rank)),n=[];e.nodes().forEach(r=>{let o=e.node(r).rank-t;n[o]||(n[o]=[]),n[o].push(r)});let r=0,o=e.graph().nodeRankFactor;Array.from(n).forEach((t,n)=>{void 0===t&&n%o!=0?--r:void 0!==t&&r&&t.forEach(t=>e.node(t).rank+=r)})},simplify:function(e){let t=new r().setGraph(e.graph());return e.nodes().forEach(n=>t.setNode(n,e.node(n))),e.edges().forEach(n=>{let r=t.edge(n.v,n.w)||{weight:0,minlen:1},o=e.edge(n);t.setEdge(n.v,n.w,{weight:r.weight+o.weight,minlen:Math.max(r.minlen,o.minlen)})}),t},successorWeights:function(e){let t=e.nodes().map(t=>{let n={};return e.outEdges(t).forEach(t=>{n[t.w]=(n[t.w]||0)+e.edge(t).weight}),n});return c(e.nodes(),t)},time:function(e,t){let n=Date.now();try{return t()}finally{console.log(e+" time: "+(Date.now()-n)+"ms")}},uniqueId:u,zipObject:c};function i(e,t){if(!(t.length>65535))return e.apply(null,t);{let n=function(e,t=65535){let n=[];for(let r=0;re.apply(null,t)))}}function a(e){return i(Math.max,e.nodes().map(t=>{let n=e.node(t).rank;return void 0===n?5e-324:n}))}let s=0;function u(e){return e+""+ ++s}function l(e,t,n=1){null==t&&(t=e,e=0);let r=e=>et(e[n]=t[r],e),{})}},11426:(e,t,n)=>{e.exports={Graph:n(31866),version:n(57682)}},11844:(e,t,n)=>{"use strict";var r=n(91485),o=n(37039).slack,i=n(37039).longestPath,a=n(49010).alg.preorder,s=n(49010).alg.postorder,u=n(11280).simplify;function l(e){i(e=u(e));var t,n,o=r(e);for(d(o),c(o,e);t=f(o);)n=p(o,e,t),g(o,e,t,n)}function c(e,t){var n=s(e,e.nodes());(n=n.slice(0,n.length-1)).forEach(n=>{var r,o,i,a;return r=e,o=t,i=n,a=r.node(i).parent,void(r.edge(i,a).cutvalue=h(r,o,i))})}function h(e,t,n){var r=e.node(n).parent,o=!0,i=t.edge(n,r),a=0;return i||(o=!1,i=t.edge(r,n)),a=i.weight,t.nodeEdges(n).forEach(i=>{var s=i.v===n,u=s?i.w:i.v;if(u!==r){var l,c,h,d=s===o,f=t.edge(i).weight;if(a+=d?f:-f,l=e,c=n,h=u,l.hasEdge(c,h)){var p=e.edge(n,u).cutvalue;a+=d?-p:p}}}),a}function d(e,t){arguments.length<2&&(t=e.nodes()[0]),function e(t,n,r,o,i){var a=r,s=t.node(o);return n[o]=!0,t.neighbors(o).forEach(i=>{Object.hasOwn(n,i)||(r=e(t,n,r,i,o))}),s.low=a,s.lim=r++,i?s.parent=i:delete s.parent,r}(e,{},1,t)}function f(e){return e.edges().find(t=>e.edge(t).cutvalue<0)}function p(e,t,n){var r=n.v,i=n.w;t.hasEdge(r,i)||(r=n.w,i=n.v);var a=e.node(r),s=e.node(i),u=a,l=!1;return a.lim>s.lim&&(u=s,l=!0),t.edges().filter(t=>l===m(e,e.node(t.v),u)&&l!==m(e,e.node(t.w),u)).reduce((e,n)=>o(t,n)!i.node(e).parent),(u=(u=a(o,s)).slice(1)).forEach(e=>{var t=o.node(e).parent,n=i.edge(e,t),r=!1;n||(n=i.edge(t,e),r=!0),i.node(e).rank=i.node(t).rank+(r?n.minlen:-n.minlen)})}function m(e,t,n){return n.low<=t.lim&&t.lim<=n.lim}e.exports=l,l.initLowLimValues=d,l.initCutValues=c,l.calcCutValue=h,l.leaveEdge=f,l.enterEdge=p,l.exchangeEdges=g},12604:e=>{"use strict";function t(e){e.nodes().forEach(t=>n(e.node(t))),e.edges().forEach(t=>n(e.edge(t)))}function n(e){let t=e.width;e.width=e.height,e.height=t}function r(e){e.y=-e.y}function o(e){let t=e.x;e.x=e.y,e.y=t}e.exports={adjust:function(e){let n=e.graph().rankdir.toLowerCase();("lr"===n||"rl"===n)&&t(e)},undo:function(e){var n,i;let a=e.graph().rankdir.toLowerCase();("bt"===a||"rl"===a)&&((n=e).nodes().forEach(e=>r(n.node(e))),n.edges().forEach(e=>{let t=n.edge(e);t.points.forEach(r),Object.hasOwn(t,"y")&&r(t)})),("lr"===a||"rl"===a)&&((i=e).nodes().forEach(e=>o(i.node(e))),i.edges().forEach(e=>{let t=i.edge(e);t.points.forEach(o),Object.hasOwn(t,"x")&&o(t)}),t(e))}}},13402:(e,t,n)=>{var r=n(31866),o=n(51825);e.exports=function(e,t){var n,i=new r,a={},s=new o;function u(e){var r=e.v===n?e.w:e.v,o=s.priority(r);if(void 0!==o){var i=t(e);i0;){if(Object.hasOwn(a,n=s.removeMin()))i.setEdge(n,a[n]);else if(l)throw Error("Input graph is not connected: "+e);else l=!0;e.nodeEdges(n).forEach(u)}return i}},14105:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var r=(0,n(41495).A)("filled","calendar-filled","IconCalendarFilled",[["path",{d:"M16 2a1 1 0 0 1 .993 .883l.007 .117v1h1a3 3 0 0 1 2.995 2.824l.005 .176v12a3 3 0 0 1 -2.824 2.995l-.176 .005h-12a3 3 0 0 1 -2.995 -2.824l-.005 -.176v-12a3 3 0 0 1 2.824 -2.995l.176 -.005h1v-1a1 1 0 0 1 1.993 -.117l.007 .117v1h6v-1a1 1 0 0 1 1 -1zm3 7h-14v9.625c0 .705 .386 1.286 .883 1.366l.117 .009h12c.513 0 .936 -.53 .993 -1.215l.007 -.16v-9.625z",key:"svg-0"}],["path",{d:"M12 12a1 1 0 0 1 .993 .883l.007 .117v3a1 1 0 0 1 -1.993 .117l-.007 -.117v-2a1 1 0 0 1 -.117 -1.993l.117 -.007h1z",key:"svg-1"}]])},14134:(e,t,n)=>{let r=n(49010).Graph,o=n(11280);e.exports=function(e,t,n){let i=function(e){for(var t;e.hasNode(t=o.uniqueId("_root")););return t}(e),a=new r({compound:!0}).setGraph({root:i}).setDefaultNodeLabel(t=>e.node(t));return e.nodes().forEach(r=>{let o=e.node(r),s=e.parent(r);(o.rank===t||o.minRank<=t&&t<=o.maxRank)&&(a.setNode(r),a.setParent(r,s||i),e[n](r).forEach(t=>{let n=t.v===r?t.w:t.v,o=a.edge(n,r),i=void 0!==o?o.weight:0;a.setEdge(n,r,{weight:e.edge(t).weight+i})}),Object.hasOwn(o,"minRank")&&a.setNode(r,{borderLeft:o.borderLeft[t],borderRight:o.borderRight[t]}))}),a}},14570:(e,t,n)=>{var r=n(27660);e.exports=function(e,t){return r(e,t,"pre")}},19302:(e,t,n)=>{"use strict";let r=n(26736),o=n(91387),i=n(87905),a=n(11280).normalizeRanks,s=n(54598),u=n(11280).removeEmptyRanks,l=n(4755),c=n(49913),h=n(12604),d=n(83031),f=n(3644),p=n(11280),g=n(49010).Graph;e.exports=function(e,t){let n=t&&t.debugTiming?p.time:p.notime;n("layout",()=>{let O=n(" buildLayoutGraph",()=>{var t;let n,r;return t=e,n=new g({multigraph:!0,compound:!0}),r=M(t.graph()),n.setGraph(Object.assign({},v,k(r,m),p.pick(r,y))),t.nodes().forEach(e=>{let r=k(M(t.node(e)),w);Object.keys(b).forEach(e=>{void 0===r[e]&&(r[e]=b[e])}),n.setNode(e,r),n.setParent(e,t.parent(e))}),t.edges().forEach(e=>{let r=M(t.edge(e));n.setEdge(e,Object.assign({},_,k(r,x),p.pick(r,E)))}),n});n(" runLayout",()=>{var e,g,m;return e=O,g=n,m=t,void(g(" makeSpaceForEdgeLabels",()=>{var t;let n;return n=(t=e).graph(),void(n.ranksep/=2,t.edges().forEach(e=>{let r=t.edge(e);r.minlen*=2,"c"!==r.labelpos.toLowerCase()&&("TB"===n.rankdir||"BT"===n.rankdir?r.width+=r.labeloffset:r.height+=r.labeloffset)}))}),g(" removeSelfEdges",()=>{var t;(t=e).edges().forEach(e=>{if(e.v===e.w){var n=t.node(e.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e:e,label:t.edge(e)}),t.removeEdge(e)}})}),g(" acyclic",()=>r.run(e)),g(" nestingGraph.run",()=>l.run(e)),g(" rank",()=>i(p.asNonCompoundGraph(e))),g(" injectEdgeLabelProxies",()=>{var t;(t=e).edges().forEach(e=>{let n=t.edge(e);if(n.width&&n.height){let n=t.node(e.v),r={rank:(t.node(e.w).rank-n.rank)/2+n.rank,e:e};p.addDummyNode(t,"edge-proxy",r,"_ep")}})}),g(" removeEmptyRanks",()=>u(e)),g(" nestingGraph.cleanup",()=>l.cleanup(e)),g(" normalizeRanks",()=>a(e)),g(" assignRankMinMax",()=>{var t;let n;return n=0,void((t=e).nodes().forEach(e=>{let r=t.node(e);r.borderTop&&(r.minRank=t.node(r.borderTop).rank,r.maxRank=t.node(r.borderBottom).rank,n=Math.max(n,r.maxRank))}),t.graph().maxRank=n)}),g(" removeEdgeLabelProxies",()=>{var t;(t=e).nodes().forEach(e=>{let n=t.node(e);"edge-proxy"===n.dummy&&(t.edge(n.e).labelRank=n.rank,t.removeNode(e))})}),g(" normalize.run",()=>o.run(e)),g(" parentDummyChains",()=>s(e)),g(" addBorderSegments",()=>c(e)),g(" order",()=>d(e,m)),g(" insertSelfEdges",()=>{var t;return t=e,void p.buildLayerMatrix(t).forEach(e=>{var n=0;e.forEach((e,r)=>{var o=t.node(e);o.order=r+n,(o.selfEdges||[]).forEach(e=>{p.addDummyNode(t,"selfedge",{width:e.label.width,height:e.label.height,rank:o.rank,order:r+ ++n,e:e.e,label:e.label},"_se")}),delete o.selfEdges})})}),g(" adjustCoordinateSystem",()=>h.adjust(e)),g(" position",()=>f(e)),g(" positionSelfEdges",()=>{var t;(t=e).nodes().forEach(e=>{var n=t.node(e);if("selfedge"===n.dummy){var r=t.node(n.e.v),o=r.x+r.width/2,i=r.y,a=n.x-o,s=r.height/2;t.setEdge(n.e,n.label),t.removeNode(e),n.label.points=[{x:o+2*a/3,y:i-s},{x:o+5*a/6,y:i-s},{x:o+a,y:i},{x:o+5*a/6,y:i+s},{x:o+2*a/3,y:i+s}],n.label.x=n.x,n.label.y=n.y}})}),g(" removeBorderNodes",()=>{var t;(t=e).nodes().forEach(e=>{if(t.children(e).length){let n=t.node(e),r=t.node(n.borderTop),o=t.node(n.borderBottom),i=t.node(n.borderLeft[n.borderLeft.length-1]),a=t.node(n.borderRight[n.borderRight.length-1]);n.width=Math.abs(a.x-i.x),n.height=Math.abs(o.y-r.y),n.x=i.x+n.width/2,n.y=r.y+n.height/2}}),t.nodes().forEach(e=>{"border"===t.node(e).dummy&&t.removeNode(e)})}),g(" normalize.undo",()=>o.undo(e)),g(" fixupEdgeLabelCoords",()=>{var t;(t=e).edges().forEach(e=>{let n=t.edge(e);if(Object.hasOwn(n,"x"))switch(("l"===n.labelpos||"r"===n.labelpos)&&(n.width-=n.labeloffset),n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset}})}),g(" undoCoordinateSystem",()=>h.undo(e)),g(" translateGraph",()=>(function(e){let t=1/0,n=0,r=1/0,o=0,i=e.graph(),a=i.marginx||0,s=i.marginy||0;function u(e){let i=e.x,a=e.y,s=e.width,u=e.height;t=Math.min(t,i-s/2),n=Math.max(n,i+s/2),r=Math.min(r,a-u/2),o=Math.max(o,a+u/2)}e.nodes().forEach(t=>u(e.node(t))),e.edges().forEach(t=>{let n=e.edge(t);Object.hasOwn(n,"x")&&u(n)}),t-=a,r-=s,e.nodes().forEach(n=>{let o=e.node(n);o.x-=t,o.y-=r}),e.edges().forEach(n=>{let o=e.edge(n);o.points.forEach(e=>{e.x-=t,e.y-=r}),Object.hasOwn(o,"x")&&(o.x-=t),Object.hasOwn(o,"y")&&(o.y-=r)}),i.width=n-t+a,i.height=o-r+s})(e)),g(" assignNodeIntersects",()=>{var t;(t=e).edges().forEach(e=>{let n,r,o=t.edge(e),i=t.node(e.v),a=t.node(e.w);o.points?(n=o.points[0],r=o.points[o.points.length-1]):(o.points=[],n=a,r=i),o.points.unshift(p.intersectRect(i,n)),o.points.push(p.intersectRect(a,r))})}),g(" reversePoints",()=>{var t;(t=e).edges().forEach(e=>{let n=t.edge(e);n.reversed&&n.points.reverse()})}),g(" acyclic.undo",()=>r.undo(e)))}),n(" updateInputGraph",()=>{var t,n;return t=e,n=O,void(t.nodes().forEach(e=>{let r=t.node(e),o=n.node(e);r&&(r.x=o.x,r.y=o.y,r.rank=o.rank,n.children(e).length&&(r.width=o.width,r.height=o.height))}),t.edges().forEach(e=>{let r=t.edge(e),o=n.edge(e);r.points=o.points,Object.hasOwn(o,"x")&&(r.x=o.x,r.y=o.y)}),t.graph().width=n.graph().width,t.graph().height=n.graph().height)})})};let m=["nodesep","edgesep","ranksep","marginx","marginy"],v={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},y=["acyclicer","ranker","rankdir","align"],w=["width","height","rank"],b={width:0,height:0},x=["minlen","weight","width","height","labeloffset"],_={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},E=["labelpos"];function k(e,t){return p.mapValues(p.pick(e,t),Number)}function M(e){var t={};return e&&Object.entries(e).forEach(([e,n])=>{"string"==typeof e&&(e=e.toLowerCase()),t[e]=n}),t}},21367:(e,t,n)=>{"use strict";let r=n(49010).Graph,o=n(11280);function i(e,t){let n={};return t.length&&t.reduce(function(t,r){let o=0,i=0,a=t.length,u=r[r.length-1];return r.forEach((t,l)=>{let c=function(e,t){if(e.node(t).dummy)return e.predecessors(t).find(t=>e.node(t).dummy)}(e,t),h=c?e.node(c).order:a;(c||t===u)&&(r.slice(i,l+1).forEach(t=>{e.predecessors(t).forEach(r=>{let i=e.node(r),a=i.order;(a{l=t[r],e.node(l).dummy&&e.predecessors(l).forEach(t=>{let r=e.node(t);r.dummy&&(r.orderu)&&s(n,t,l)})})}return t.length&&t.reduce(function(t,n){let o=-1,i,a=0;return n.forEach((s,u)=>{if("border"===e.node(s).dummy){let t=e.predecessors(s);t.length&&(i=e.node(t[0]).order,r(n,a,u,o,i),a=u,o=i)}r(n,a,n.length,i,t.length)}),n}),n}function s(e,t,n){if(t>n){let e=t;t=n,n=e}let r=e[t];r||(e[t]=r={}),r[n]=!0}function u(e,t,n){if(t>n){let e=t;t=n,n=e}return!!e[t]&&Object.hasOwn(e[t],n)}function l(e,t,n,r){let o={},i={},a={};return t.forEach(e=>{e.forEach((e,t)=>{o[e]=e,i[e]=e,a[e]=t})}),t.forEach(e=>{let t=-1;e.forEach(e=>{let s=r(e);if(s.length){let r=((s=s.sort((e,t)=>a[e]-a[t])).length-1)/2;for(let l=Math.floor(r),c=Math.ceil(r);l<=c;++l){let r=s[l];i[e]===e&&t{let r,o,i=e.node(t),a=e.node(n);if(r=0+i.width/2,Object.hasOwn(i,"labelpos"))switch(i.labelpos.toLowerCase()){case"l":o=-i.width/2;break;case"r":o=i.width/2}if(o&&(r+=d?o:-o),o=0,r+=(i.dummy?h:c)/2,r+=(a.dummy?h:c)/2,r+=a.width/2,Object.hasOwn(a,"labelpos"))switch(a.labelpos.toLowerCase()){case"l":o=a.width/2;break;case"r":o=-a.width/2}return o&&(r+=d?o:-o),o=0,r}),s.forEach(e=>{let t;e.forEach(e=>{let n=u[e];if(f.setNode(n),t){var r=u[t],o=f.edge(r,n);f.setEdge(r,n,Math.max(g(a,e,t),o||0))}t=e})}),f),y=i?"borderLeft":"borderRight";function w(e,t){let n=v.nodes(),r=n.pop(),o={};for(;r;)o[r]?e(r):(o[r]=!0,n.push(r),n=n.concat(t(r))),r=n.pop()}return w(function(e){m[e]=v.inEdges(e).reduce((e,t)=>Math.max(e,m[t.v]+v.edge(t)),0)},v.predecessors.bind(v)),w(function(t){let n=v.outEdges(t).reduce((e,t)=>Math.min(e,m[t.w]-v.edge(t)),1/0),r=e.node(t);n!==1/0&&r.borderType!==y&&(m[t]=Math.max(m[t],n))},v.successors.bind(v)),Object.keys(o).forEach(e=>m[e]=m[n[e]]),m}function h(e,t){return Object.values(t).reduce((t,n)=>{let r=-1/0,o=1/0;Object.entries(n).forEach(([t,n])=>{var i,a;let s=(i=e,a=t,i.node(a).width/2);r=Math.max(n+s,r),o=Math.min(n-s,o)});let i=r-o;return i{["l","r"].forEach(a=>{let s=n+a,u=e[s];if(u===t)return;let l=Object.values(u),c=r-o.applyWithChunking(Math.min,l);"l"!==a&&(c=i-o.applyWithChunking(Math.max,l)),c&&(e[s]=o.mapValues(u,e=>e+c))})})}function f(e,t){return o.mapValues(e.ul,(n,r)=>{if(t)return e[t.toLowerCase()][r];{let t=Object.values(e).map(e=>e[r]).sort((e,t)=>e-t);return(t[1]+t[2])/2}})}e.exports={positionX:function(e){let t,n=o.buildLayerMatrix(e),r=Object.assign(i(e,n),a(e,n)),s={};["u","d"].forEach(i=>{t="u"===i?n:Object.values(n).reverse(),["l","r"].forEach(n=>{"r"===n&&(t=t.map(e=>Object.values(e).reverse()));let a=("u"===i?e.predecessors:e.successors).bind(e),u=l(e,t,r,a),h=c(e,t,u.root,u.align,"r"===n);"r"===n&&(h=o.mapValues(h,e=>-e)),s[i+n]=h})});let u=h(e,s);return d(s,u),f(s,e.graph().align)},findType1Conflicts:i,findType2Conflicts:a,addConflict:s,hasConflict:u,verticalAlignment:l,horizontalCompaction:c,alignCoordinates:d,findSmallestWidthAlignment:h,balance:f}},21848:e=>{e.exports="1.1.5"},23897:(e,t,n)=>{let r=n(11280);function o(e,t,n){let r;for(;t.length&&(r=t[t.length-1]).i<=n;)t.pop(),e.push(r.vs),n++;return n}e.exports=function(e,t){var n;let i=r.partition(e,e=>Object.hasOwn(e,"barycenter")),a=i.lhs,s=i.rhs.sort((e,t)=>t.i-e.i),u=[],l=0,c=0,h=0;a.sort((n=!!t,(e,t)=>e.barycentert.barycenter?1:n?t.i-e.i:e.i-t.i)),h=o(u,s,h),a.forEach(e=>{h+=e.vs.length,u.push(e.vs),l+=e.barycenter*e.weight,c+=e.weight,h=o(u,s,h)});let d={vs:u.flat(!0)};return c&&(d.barycenter=l/c,d.weight=c),d}},24650:(e,t,n)=>{"use strict";n.d(t,{A:()=>function e(t){if("string"==typeof t||"number"==typeof t)return""+t;let n="";if(Array.isArray(t))for(let r=0,o;r{class t{constructor(){let e={};e._next=e._prev=e,this._sentinel=e}dequeue(){let e=this._sentinel,t=e._prev;if(t!==e)return n(t),t}enqueue(e){let t=this._sentinel;e._prev&&e._next&&n(e),e._next=t._next,t._next._prev=e,t._next=e,e._prev=t}toString(){let e=[],t=this._sentinel,n=t._prev;for(;n!==t;)e.push(JSON.stringify(n,r)),n=n._prev;return"["+e.join(", ")+"]"}}function n(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function r(e,t){if("_next"!==e&&"_prev"!==e)return t}e.exports=t},26400:(e,t,n)=>{var r=n(31866);e.exports={write:function(e){var t,n,r={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:(t=e).nodes().map(function(e){var n=t.node(e),r=t.parent(e),o={v:e};return void 0!==n&&(o.value=n),void 0!==r&&(o.parent=r),o}),edges:(n=e).edges().map(function(e){var t=n.edge(e),r={v:e.v,w:e.w};return void 0!==e.name&&(r.name=e.name),void 0!==t&&(r.value=t),r})};return void 0!==e.graph()&&(r.value=structuredClone(e.graph())),r},read:function(e){var t=new r(e.options).setGraph(e.value);return e.nodes.forEach(function(e){t.setNode(e.v,e.value),e.parent&&t.setParent(e.v,e.parent)}),e.edges.forEach(function(e){t.setEdge({v:e.v,w:e.w,name:e.name},e.value)}),t}}},26736:(e,t,n)=>{"use strict";let r=n(51491),o=n(11280).uniqueId;e.exports={run:function(e){var t,n;let i,a,s;("greedy"===e.graph().acyclicer?r(e,(t=e,e=>t.edge(e).weight)):(i=[],a={},s={},(n=e).nodes().forEach(function e(t){Object.hasOwn(s,t)||(s[t]=!0,a[t]=!0,n.outEdges(t).forEach(t=>{Object.hasOwn(a,t.w)?i.push(t):e(t.w)}),delete a[t])}),i)).forEach(t=>{let n=e.edge(t);e.removeEdge(t),n.forwardName=t.name,n.reversed=!0,e.setEdge(t.w,t.v,n,o("rev"))})},undo:function(e){e.edges().forEach(t=>{let n=e.edge(t);if(n.reversed){e.removeEdge(t);let r=n.forwardName;delete n.reversed,delete n.forwardName,e.setEdge(t.w,t.v,n,r)}})}}},27133:(e,t,n)=>{"use strict";e.exports=n(85596)},27660:e=>{function t(e,t,n,o){for(var i=[[e,!1]];i.length>0;){var a=i.pop();a[1]?o.push(a[0]):Object.hasOwn(n,a[0])||(n[a[0]]=!0,i.push([a[0],!0]),r(t(a[0]),e=>i.push([e,!1])))}}function n(e,t,n,o){for(var i=[e];i.length>0;){var a=i.pop();Object.hasOwn(n,a)||(n[a]=!0,o.push(a),r(t(a),e=>i.push(e)))}}function r(e,t){for(var n=e.length;n--;)t(e[n],n,e);return e}e.exports=function(e,r,o){Array.isArray(r)||(r=[r]);var i=e.isDirected()?t=>e.successors(t):t=>e.neighbors(t),a="post"===o?t:n,s=[],u={};return r.forEach(t=>{if(!e.hasNode(t))throw Error("Graph does not have node: "+t);a(t,i,u,s)}),s}},31866:e=>{"use strict";class t{_isDirected=!0;_isMultigraph=!1;_isCompound=!1;_label;_defaultNodeLabelFn=()=>void 0;_defaultEdgeLabelFn=()=>void 0;_nodes={};_in={};_preds={};_out={};_sucs={};_edgeObjs={};_edgeLabels={};_nodeCount=0;_edgeCount=0;_parent;_children;constructor(e){e&&(this._isDirected=!Object.hasOwn(e,"directed")||e.directed,this._isMultigraph=!!Object.hasOwn(e,"multigraph")&&e.multigraph,this._isCompound=!!Object.hasOwn(e,"compound")&&e.compound),this._isCompound&&(this._parent={},this._children={},this._children["\0"]={})}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(e){return this._label=e,this}graph(){return this._label}setDefaultNodeLabel(e){return this._defaultNodeLabelFn=e,"function"!=typeof e&&(this._defaultNodeLabelFn=()=>e),this}nodeCount(){return this._nodeCount}nodes(){return Object.keys(this._nodes)}sources(){var e=this;return this.nodes().filter(t=>0===Object.keys(e._in[t]).length)}sinks(){var e=this;return this.nodes().filter(t=>0===Object.keys(e._out[t]).length)}setNodes(e,t){var n=arguments,r=this;return e.forEach(function(e){n.length>1?r.setNode(e,t):r.setNode(e)}),this}setNode(e,t){return Object.hasOwn(this._nodes,e)?arguments.length>1&&(this._nodes[e]=t):(this._nodes[e]=arguments.length>1?t:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]="\0",this._children[e]={},this._children["\0"][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount),this}node(e){return this._nodes[e]}hasNode(e){return Object.hasOwn(this._nodes,e)}removeNode(e){var t=this;if(Object.hasOwn(this._nodes,e)){var n=e=>t.removeEdge(t._edgeObjs[e]);delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],this.children(e).forEach(function(e){t.setParent(e)}),delete this._children[e]),Object.keys(this._in[e]).forEach(n),delete this._in[e],delete this._preds[e],Object.keys(this._out[e]).forEach(n),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this}setParent(e,t){if(!this._isCompound)throw Error("Cannot set parent in a non-compound graph");if(void 0===t)t="\0";else{t+="";for(var n=t;void 0!==n;n=this.parent(n))if(n===e)throw Error("Setting "+t+" as parent of "+e+" would create a cycle");this.setNode(t)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=t,this._children[t][e]=!0,this}_removeFromParentsChildList(e){delete this._children[this._parent[e]][e]}parent(e){if(this._isCompound){var t=this._parent[e];if("\0"!==t)return t}}children(e="\0"){if(this._isCompound){var t=this._children[e];if(t)return Object.keys(t)}else if("\0"===e)return this.nodes();else if(this.hasNode(e))return[]}predecessors(e){var t=this._preds[e];if(t)return Object.keys(t)}successors(e){var t=this._sucs[e];if(t)return Object.keys(t)}neighbors(e){var t=this.predecessors(e);if(t){let r=new Set(t);for(var n of this.successors(e))r.add(n);return Array.from(r.values())}}isLeaf(e){return 0===(this.isDirected()?this.successors(e):this.neighbors(e)).length}filterNodes(e){var t=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});t.setGraph(this.graph());var n=this;Object.entries(this._nodes).forEach(function([n,r]){e(n)&&t.setNode(n,r)}),Object.values(this._edgeObjs).forEach(function(e){t.hasNode(e.v)&&t.hasNode(e.w)&&t.setEdge(e,n.edge(e))});var r={};return this._isCompound&&t.nodes().forEach(e=>t.setParent(e,function e(o){var i=n.parent(o);return void 0===i||t.hasNode(i)?(r[o]=i,i):i in r?r[i]:e(i)}(e))),t}setDefaultEdgeLabel(e){return this._defaultEdgeLabelFn=e,"function"!=typeof e&&(this._defaultEdgeLabelFn=()=>e),this}edgeCount(){return this._edgeCount}edges(){return Object.values(this._edgeObjs)}setPath(e,t){var n=this,r=arguments;return e.reduce(function(e,o){return r.length>1?n.setEdge(e,o,t):n.setEdge(e,o),o}),this}setEdge(){var e,t,r,i,a=!1,s=arguments[0];"object"==typeof s&&null!==s&&"v"in s?(e=s.v,t=s.w,r=s.name,2==arguments.length&&(i=arguments[1],a=!0)):(e=s,t=arguments[1],r=arguments[3],arguments.length>2&&(i=arguments[2],a=!0)),e=""+e,t=""+t,void 0!==r&&(r=""+r);var u=o(this._isDirected,e,t,r);if(Object.hasOwn(this._edgeLabels,u))return a&&(this._edgeLabels[u]=i),this;if(void 0!==r&&!this._isMultigraph)throw Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(t),this._edgeLabels[u]=a?i:this._defaultEdgeLabelFn(e,t,r);var l=function(e,t,n,r){var o=""+t,i=""+n;if(!e&&o>i){var a=o;o=i,i=a}var s={v:o,w:i};return r&&(s.name=r),s}(this._isDirected,e,t,r);return e=l.v,t=l.w,Object.freeze(l),this._edgeObjs[u]=l,n(this._preds[t],e),n(this._sucs[e],t),this._in[t][u]=l,this._out[e][u]=l,this._edgeCount++,this}edge(e,t,n){var r=1==arguments.length?i(this._isDirected,arguments[0]):o(this._isDirected,e,t,n);return this._edgeLabels[r]}edgeAsObj(){let e=this.edge(...arguments);return"object"!=typeof e?{label:e}:e}hasEdge(e,t,n){var r=1==arguments.length?i(this._isDirected,arguments[0]):o(this._isDirected,e,t,n);return Object.hasOwn(this._edgeLabels,r)}removeEdge(e,t,n){var a=1==arguments.length?i(this._isDirected,arguments[0]):o(this._isDirected,e,t,n),s=this._edgeObjs[a];return s&&(e=s.v,t=s.w,delete this._edgeLabels[a],delete this._edgeObjs[a],r(this._preds[t],e),r(this._sucs[e],t),delete this._in[t][a],delete this._out[e][a],this._edgeCount--),this}inEdges(e,t){var n=this._in[e];if(n){var r=Object.values(n);return t?r.filter(e=>e.v===t):r}}outEdges(e,t){var n=this._out[e];if(n){var r=Object.values(n);return t?r.filter(e=>e.w===t):r}}nodeEdges(e,t){var n=this.inEdges(e,t);if(n)return n.concat(this.outEdges(e,t))}}function n(e,t){e[t]?e[t]++:e[t]=1}function r(e,t){--e[t]||delete e[t]}function o(e,t,n,r){var o=""+t,i=""+n;if(!e&&o>i){var a=o;o=i,i=a}return o+"\x01"+i+"\x01"+(void 0===r?"\0":r)}function i(e,t){return o(e,t.v,t.w,t.name)}e.exports=t},33208:e=>{e.exports=function(e,n,r){var o,i,a,s,u;return o=e,i=n||t,a=r||function(t){return e.outEdges(t)},s={},(u=o.nodes()).forEach(function(e){s[e]={},s[e][e]={distance:0},u.forEach(function(t){e!==t&&(s[e][t]={distance:1/0})}),a(e).forEach(function(t){var n=t.v===e?t.w:t.v,r=i(t);s[e][n]={distance:r,predecessor:e}})}),u.forEach(function(e){var t=s[e];u.forEach(function(n){var r=s[n];u.forEach(function(n){var o=r[e],i=t[n],a=r[n],s=o.distance+i.distance;s1},33536:e=>{e.exports=function(e,t=[]){return t.map(t=>{let n=e.inEdges(t);if(!n.length)return{v:t};{let r=n.reduce((t,n)=>{let r=e.edge(n),o=e.node(n.v);return{sum:t.sum+r.weight*o.order,weight:t.weight+r.weight}},{sum:0,weight:0});return{v:t,barycenter:r.sum/r.weight,weight:r.weight}}})}},36223:(e,t,n)=>{let r=n(11280),o=n(49010).Graph;e.exports={debugOrdering:function(e){let t=r.buildLayerMatrix(e),n=new o({compound:!0,multigraph:!0}).setGraph({});return e.nodes().forEach(t=>{n.setNode(t,{label:t}),n.setParent(t,"layer"+e.node(t).rank)}),e.edges().forEach(e=>n.setEdge(e.v,e.w,{},e.name)),t.forEach((e,t)=>{n.setNode("layer"+t,{rank:"same"}),e.reduce((e,t)=>(n.setEdge(e,t,{style:"invis"}),t))}),n}}},36973:(e,t,n)=>{var r=n(85199);e.exports=function(e,t,n){return e.nodes().reduce(function(o,i){return o[i]=r(e,i,t,n),o},{})}},37039:(e,t,n)=>{"use strict";let{applyWithChunking:r}=n(11280);e.exports={longestPath:function(e){var t={};e.sources().forEach(function n(o){var i=e.node(o);if(Object.hasOwn(t,o))return i.rank;t[o]=!0;var a=r(Math.min,e.outEdges(o).map(t=>null==t?1/0:n(t.w)-e.edge(t).minlen));return a===1/0&&(a=0),i.rank=a})},slack:function(e,t){return e.node(t.w).rank-e.node(t.v).rank-e.edge(t).minlen}}},44853:(e,t,n)=>{var r=n(27660);e.exports=function(e,t){return r(e,t,"post")}},45490:(e,t,n)=>{"use strict";n.d(t,{_:()=>o});var r=n(29143);function o(){return void 0!==r&&r.env&&1?"production":"development"}},49010:(e,t,n)=>{var r=n(11426);e.exports={Graph:r.Graph,json:n(26400),alg:n(56791),version:r.version}},49913:(e,t,n)=>{let r=n(11280);function o(e,t,n,o,i,a){let s=i[t][a-1],u=r.addDummyNode(e,"border",{width:0,height:0,rank:a,borderType:t},n);i[t][a]=u,e.setParent(u,o),s&&e.setEdge(s,u,{weight:1})}e.exports=function(e){e.children().forEach(function t(n){let r=e.children(n),i=e.node(n);if(r.length&&r.forEach(t),Object.hasOwn(i,"minRank")){i.borderLeft=[],i.borderRight=[];for(let t=i.minRank,r=i.maxRank+1;t{let r=n(49010).Graph,o=n(24913);e.exports=function(e,t){var n,u;let l,c,h,d,f;if(1>=e.nodeCount())return[];let p=(n=e,u=t||i,l=new r,c=0,h=0,n.nodes().forEach(e=>{l.setNode(e,{v:e,in:0,out:0})}),n.edges().forEach(e=>{let t=l.edge(e.v,e.w)||0,n=u(e);l.setEdge(e.v,e.w,t+n),h=Math.max(h,l.node(e.v).out+=n),c=Math.max(c,l.node(e.w).in+=n)}),d=(function(e){let t=[];for(let n=0;nnew o),f=c+1,l.nodes().forEach(e=>{s(d,f,l.node(e))}),{graph:l,buckets:d,zeroIdx:f});return(function(e,t,n){let r,o=[],i=t[t.length-1],s=t[0];for(;e.nodeCount();){for(;r=s.dequeue();)a(e,t,n,r);for(;r=i.dequeue();)a(e,t,n,r);if(e.nodeCount()){for(let i=t.length-2;i>0;--i)if(r=t[i].dequeue()){o=o.concat(a(e,t,n,r,!0));break}}}return o})(p.graph,p.buckets,p.zeroIdx).flatMap(t=>e.outEdges(t.v,t.w))};let i=()=>1;function a(e,t,n,r,o){let i=o?[]:void 0;return e.inEdges(r.v).forEach(r=>{let a=e.edge(r),u=e.node(r.v);o&&i.push({v:r.v,w:r.w}),u.out-=a,s(t,n,u)}),e.outEdges(r.v).forEach(r=>{let o=e.edge(r),i=r.w,a=e.node(i);a.in-=o,s(t,n,a)}),e.removeNode(r.v),i}function s(e,t,n){n.out?n.in?e[n.out-n.in+t].enqueue(n):e[e.length-1].enqueue(n):e[0].enqueue(n)}},51825:e=>{class t{_arr=[];_keyIndices={};size(){return this._arr.length}keys(){return this._arr.map(function(e){return e.key})}has(e){return Object.hasOwn(this._keyIndices,e)}priority(e){var t=this._keyIndices[e];if(void 0!==t)return this._arr[t].priority}min(){if(0===this.size())throw Error("Queue underflow");return this._arr[0].key}add(e,t){var n=this._keyIndices;if(!Object.hasOwn(n,e=String(e))){var r=this._arr,o=r.length;return n[e]=o,r.push({key:e,priority:t}),this._decrease(o),!0}return!1}removeMin(){this._swap(0,this._arr.length-1);var e=this._arr.pop();return delete this._keyIndices[e.key],this._heapify(0),e.key}decrease(e,t){var n=this._keyIndices[e];if(t>this._arr[n].priority)throw Error("New priority is greater than current priority. Key: "+e+" Old: "+this._arr[n].priority+" New: "+t);this._arr[n].priority=t,this._decrease(n)}_heapify(e){var t=this._arr,n=2*e,r=n+1,o=e;n>1].priority{e.exports=function(e){var t;let n,r,o=(n={},r=0,(t=e).children().forEach(function e(o){let i=r;t.children(o).forEach(e),n[o]={low:i,lim:r++}}),n);e.graph().dummyChains.forEach(t=>{let n=e.node(t),r=n.edgeObj,i=function(e,t,n,r){let o,i,a=[],s=[],u=Math.min(t[n].low,t[r].low),l=Math.max(t[n].lim,t[r].lim);o=n;do a.push(o=e.parent(o));while(o&&(t[o].low>u||l>t[o].lim));for(i=o,o=r;(o=e.parent(o))!==i;)s.push(o);return{path:a.concat(s.reverse()),lca:i}}(e,o,r.v,r.w),a=i.path,s=i.lca,u=0,l=a[0],c=!0;for(;t!==r.w;){if(n=e.node(t),c){for(;(l=a[u])!==s&&e.node(l).maxRank{e.exports=function(e,t,n){let r={},o;n.forEach(n=>{let i=e.parent(n),a,s;for(;i;){if((a=e.parent(i))?(s=r[a],r[a]=i):(s=o,o=i),s&&s!==i)return void t.setEdge(s,i);i=a}})}},55272:e=>{"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(o=r;0!=o--;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;0!=o--;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;0!=o--;){var r,o,i,a=i[o];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n}},56791:(e,t,n)=>{e.exports={components:n(57013),dijkstra:n(85199),dijkstraAll:n(36973),findCycles:n(8210),floydWarshall:n(33208),isAcyclic:n(61528),postorder:n(44853),preorder:n(14570),prim:n(13402),tarjan:n(88885),topsort:n(3400)}},56992:(e,t,n)=>{e.exports={graphlib:n(49010),layout:n(19302),debug:n(36223),util:{time:n(11280).time,notime:n(11280).notime},version:n(21848)}},57013:e=>{e.exports=function(e){var t,n={},r=[];return e.nodes().forEach(function(o){t=[],function r(o){Object.hasOwn(n,o)||(n[o]=!0,t.push(o),e.successors(o).forEach(r),e.predecessors(o).forEach(r))}(o),t.length&&r.push(t)}),r}},57537:(e,t,n)=>{"use strict";let r=n(11280);e.exports=function(e,t){let n={};return e.forEach((e,t)=>{let r=n[e.v]={indegree:0,in:[],out:[],vs:[e.v],i:t};void 0!==e.barycenter&&(r.barycenter=e.barycenter,r.weight=e.weight)}),t.edges().forEach(e=>{let t=n[e.v],r=n[e.w];void 0!==t&&void 0!==r&&(r.indegree++,t.out.push(n[e.w]))}),function(e){let t=[];for(;e.length;){let n=e.pop();t.push(n),n.in.reverse().forEach(function(e){return t=>{!t.merged&&(void 0===t.barycenter||void 0===e.barycenter||t.barycenter>=e.barycenter)&&function(e,t){let n=0,r=0;e.weight&&(n+=e.barycenter*e.weight,r+=e.weight),t.weight&&(n+=t.barycenter*t.weight,r+=t.weight),e.vs=t.vs.concat(e.vs),e.barycenter=n/r,e.weight=r,e.i=Math.min(t.i,e.i),t.merged=!0}(e,t)}}(n)),n.out.forEach(function(t){return n=>{n.in.push(t),0==--n.indegree&&e.push(n)}}(n))}return t.filter(e=>!e.merged).map(e=>r.pick(e,["vs","i","barycenter","weight"]))}(Object.values(n).filter(e=>!e.indegree))}},57682:e=>{e.exports="2.2.4"},57703:(e,t,n)=>{"use strict";n.d(t,{Do:()=>p,WZ:()=>h,TG:()=>g,ny:()=>d,yX:()=>m,xN:()=>v,Qc:()=>f,I$:()=>nW,aQ:()=>nQ,di:()=>nJ,kO:()=>n9,ET:()=>ro,rN:()=>nm,bi:()=>nP,_s:()=>t4,aE:()=>tT,Hm:()=>nC,tM:()=>tE,KE:()=>tZ,tn:()=>t_,xc:()=>tb,us:()=>t9,IO:()=>tL,e_:()=>nl,Fp:()=>nd,Mi:()=>tW,HF:()=>tO,Eo:()=>nn,b5:()=>nE,th:()=>nz,Tq:()=>tI,qX:()=>np,q1:()=>ns,oj:()=>nr,aZ:()=>tz,aW:()=>nj,uD:()=>t6,ih:()=>nS,Jo:()=>tN,U$:()=>t$,X6:()=>tG,oN:()=>nx,ah:()=>nv,R4:()=>t2,r8:()=>nV,ZO:()=>tx,bK:()=>tk,b$:()=>tj,uj:()=>ng,v5:()=>ni,Ue:()=>t5,Er:()=>na,oB:()=>tC,kf:()=>tU,mW:()=>tK,Q6:()=>ne,QE:()=>t8,kM:()=>tY,No:()=>nF,Ff:()=>tJ,zj:()=>t0,s_:()=>tQ,vS:()=>nI,qn:()=>nX,uL:()=>nB,YN:()=>t7});var r,o,i,a,s,u,l,c,h,d,f,p,g,m,v,y={value:()=>{}};function w(){for(var e,t=0,n=arguments.length,r={};t=0&&(t=e.slice(n+1),e=e.slice(0,n)),e&&!r.hasOwnProperty(e))throw Error("unknown type: "+e);return{type:e,name:t}}),i=-1,a=o.length;if(arguments.length<2){for(;++i0)for(var n,r,o=Array(n),i=0;it?1:e>=t?0:NaN}$.prototype={constructor:$,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};var D="http://www.w3.org/1999/xhtml";let R={svg:"http://www.w3.org/2000/svg",xhtml:D,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function V(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),R.hasOwnProperty(t)?{space:R[t],local:e}:e}function B(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function F(e,t){return e.style.getPropertyValue(t)||B(e).getComputedStyle(e,null).getPropertyValue(t)}function H(e){return e.trim().split(/^|\s+/)}function X(e){return e.classList||new Y(e)}function Y(e){this._node=e,this._names=H(e.getAttribute("class")||"")}function q(e,t){for(var n=X(e),r=-1,o=t.length;++rthis._names.indexOf(e)&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var ea=[null];function es(e,t){this._groups=e,this._parents=t}function eu(){return new es([[document.documentElement]],ea)}function el(e){return"string"==typeof e?new es([[document.querySelector(e)]],[document.documentElement]):new es([[e]],ea)}function ec(e,t){if(e=function(e){let t;for(;t=e.sourceEvent;)e=t;return e}(e),void 0===t&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,[(r=r.matrixTransform(t.getScreenCTM().inverse())).x,r.y]}if(t.getBoundingClientRect){var o=t.getBoundingClientRect();return[e.clientX-o.left-t.clientLeft,e.clientY-o.top-t.clientTop]}}return[e.pageX,e.pageY]}es.prototype=eu.prototype={constructor:es,select:function(e){"function"!=typeof e&&(e=E(e));for(var t=this._groups,n=t.length,r=Array(n),o=0;o=_&&(_=x+1);!(b=m[_])&&++_=0;)(r=o[i])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=P);for(var n=this._groups,r=n.length,o=Array(r),i=0;i1?this.each((null==t?function(e){return function(){this.style.removeProperty(e)}}:"function"==typeof t?function(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}:function(e,t,n){return function(){this.style.setProperty(e,t,n)}})(e,t,null==n?"":n)):F(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?function(e){return function(){delete this[e]}}:"function"==typeof t?function(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}:function(e,t){return function(){this[e]=t}})(e,t)):this.node()[e]},classed:function(e,t){var n=H(e+"");if(arguments.length<2){for(var r=X(this.node()),o=-1,i=n.length;++o=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}),a=i.length;if(arguments.length<2){var s=this.node().__on;if(s){for(var u,l=0,c=s.length;l()=>e;function ey(e,{sourceEvent:t,subject:n,target:r,identifier:o,active:i,x:a,y:s,dx:u,dy:l,dispatch:c}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:o,enumerable:!0,configurable:!0},active:{value:i,enumerable:!0,configurable:!0},x:{value:a,enumerable:!0,configurable:!0},y:{value:s,enumerable:!0,configurable:!0},dx:{value:u,enumerable:!0,configurable:!0},dy:{value:l,enumerable:!0,configurable:!0},_:{value:c}})}function ew(e){return!e.ctrlKey&&!e.button}function eb(){return this.parentNode}function ex(e,t){return null==t?{x:e.x,y:e.y}:t}function e_(){return navigator.maxTouchPoints||"ontouchstart"in this}function eE(){var e,t,n,r,o=ew,i=eb,a=ex,s=e_,u={},l=w("start","drag","end"),c=0,h=0;function d(e){e.on("mousedown.drag",f).filter(s).on("touchstart.drag",m).on("touchmove.drag",v,eh).on("touchend.drag touchcancel.drag",y).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function f(a,s){if(!r&&o.call(this,a,s)){var u=b(this,i.call(this,a,s),a,s,"mouse");u&&(el(a.view).on("mousemove.drag",p,ed).on("mouseup.drag",g,ed),eg(a.view),ef(a),n=!1,e=a.clientX,t=a.clientY,u("start",a))}}function p(r){if(ep(r),!n){var o=r.clientX-e,i=r.clientY-t;n=o*o+i*i>h}u.mouse("drag",r)}function g(e){el(e.view).on("mousemove.drag mouseup.drag",null),em(e.view,n),ep(e),u.mouse("end",e)}function m(e,t){if(o.call(this,e,t)){var n,r,a=e.changedTouches,s=i.call(this,e,t),u=a.length;for(n=0;n=0&&t._call.call(void 0,e),t=t._next;--eC}finally{eC=0,function(){for(var e,t,n=eO,r=1/0;n;)n._call?(r>n._time&&(r=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:eO=t);ej=e,eF(r)}(),ez=0}}function eB(){var e=eL.now(),t=e-eN;t>1e3&&(e$-=t,eN=e)}function eF(e){!eC&&(eS&&(eS=clearTimeout(eS)),e-ez>24?(e<1/0&&(eS=setTimeout(eV,e-eL.now()-e$)),eA&&(eA=clearInterval(eA))):(eA||(eN=eL.now(),eA=setInterval(eB,1e3)),eC=1,eT(eV)))}function eH(e,t,n){var r=new eD;return t=null==t?0:+t,r.restart(n=>{r.stop(),e(n+t)},t,n),r}eD.prototype=eR.prototype={constructor:eD,restart:function(e,t,n){if("function"!=typeof e)throw TypeError("callback is not a function");n=(null==n?eI():+n)+(null==t?0:+t),this._next||ej===this||(ej?ej._next=this:eO=this,ej=this),this._call=e,this._time=n,eF()},stop:function(){this._call&&(this._call=null,this._time=1/0,eF())}};var eX=w("start","end","cancel","interrupt"),eY=[];function eq(e,t,n,r,o,i){var a=e.__transition;if(a){if(n in a)return}else e.__transition={};!function(e,t,n){var r,o=e.__transition;function i(u){var l,c,h,d;if(1!==n.state)return s();for(l in o)if((d=o[l]).name===n.name){if(3===d.state)return eH(i);4===d.state?(d.state=6,d.timer.stop(),d.on.call("interrupt",e,e.__data__,d.index,d.group),delete o[l]):+l0)throw Error("too late; already scheduled");return n}function eG(e,t){var n=eK(e,t);if(n.state>3)throw Error("too late; already running");return n}function eK(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw Error("transition not found");return n}function eU(e,t){var n,r,o,i=e.__transition,a=!0;if(i){for(o in t=null==t?null:t+"",i){if((n=i[o]).name!==t){a=!1;continue}r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete i[o]}a&&delete e.__transition}}var eZ=n(30669),eQ=180/Math.PI,eJ={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function e0(e,t,n,r,o,i){var a,s,u;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(u=e*n+t*r)&&(n-=e*u,r-=t*u),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,u/=s),e*r180?u+=360:u-s>180&&(s+=360),d.push({i:h.push(o(h)+"rotate(",null,r)-2,x:(0,eZ.A)(s,u)})):u&&h.push(o(h)+"rotate("+u+r),l=i.skewX,c=a.skewX,l!==c?d.push({i:h.push(o(h)+"skewX(",null,r)-2,x:(0,eZ.A)(l,c)}):c&&h.push(o(h)+"skewX("+c+r),!function(e,t,n,r,i,a){if(e!==n||t!==r){var s=i.push(o(i)+"scale(",null,",",null,")");a.push({i:s-4,x:(0,eZ.A)(e,n)},{i:s-2,x:(0,eZ.A)(t,r)})}else(1!==n||1!==r)&&i.push(o(i)+"scale("+n+","+r+")")}(i.scaleX,i.scaleY,a.scaleX,a.scaleY,h,d),i=a=null,function(e){for(var t,n=-1,r=d.length;++n=0&&(e=e.slice(0,t)),!e||"start"===e})?eW:eG,function(){var e=s(this,n),t=e.on;t!==i&&(a=(i=t).copy()).on(r,o),e.on=a}))},attr:function(e,t){var n=V(e),r="transform"===n?e5:e4;return this.attrTween(e,"function"==typeof t?(n.local?function(e,t,n){var r,o,i;return function(){var a,s,u=n(this);return null==u?void this.removeAttributeNS(e.space,e.local):(a=this.getAttributeNS(e.space,e.local))===(s=u+"")?null:a===r&&s===o?i:(o=s,i=t(r=a,u))}}:function(e,t,n){var r,o,i;return function(){var a,s,u=n(this);return null==u?void this.removeAttribute(e):(a=this.getAttribute(e))===(s=u+"")?null:a===r&&s===o?i:(o=s,i=t(r=a,u))}})(n,r,e3(this,"attr."+e,t)):null==t?(n.local?function(e){return function(){this.removeAttributeNS(e.space,e.local)}}:function(e){return function(){this.removeAttribute(e)}})(n):(n.local?function(e,t,n){var r,o,i=n+"";return function(){var a=this.getAttributeNS(e.space,e.local);return a===i?null:a===r?o:o=t(r=a,n)}}:function(e,t,n){var r,o,i=n+"";return function(){var a=this.getAttribute(e);return a===i?null:a===r?o:o=t(r=a,n)}})(n,r,t))},attrTween:function(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw Error();var r=V(e);return this.tween(n,(r.local?function(e,t){var n,r;function o(){var o=t.apply(this,arguments);return o!==r&&(n=(r=o)&&function(t){this.setAttributeNS(e.space,e.local,o.call(this,t))}),n}return o._value=t,o}:function(e,t){var n,r;function o(){var o=t.apply(this,arguments);return o!==r&&(n=(r=o)&&function(t){this.setAttribute(e,o.call(this,t))}),n}return o._value=t,o})(r,t))},style:function(e,t,n){var r,o,i,a,s,u,l,c,h,d,f,p,g,m,v,y,w,b,x,_,E,k="transform"==(e+="")?e2:e4;return null==t?this.styleTween(e,(r=e,function(){var e=F(this,r),t=(this.style.removeProperty(r),F(this,r));return e===t?null:e===o&&t===i?a:a=k(o=e,i=t)})).on("end.style."+e,te(e)):"function"==typeof t?this.styleTween(e,(s=e,u=e3(this,"style."+e,t),function(){var e=F(this,s),t=u(this),n=t+"";return null==t&&(this.style.removeProperty(s),n=t=F(this,s)),e===n?null:e===l&&n===c?h:(c=n,h=k(l=e,t))})).each((d=this._id,w="end."+(y="style."+(f=e)),function(){var e=eG(this,d),t=e.on,n=null==e.value[y]?v||(v=te(f)):void 0;(t!==p||m!==n)&&(g=(p=t).copy()).on(w,m=n),e.on=g})):this.styleTween(e,(b=e,E=t+"",function(){var e=F(this,b);return e===E?null:e===x?_:_=k(x=e,t)}),n).on("end.style."+e,null)},styleTween:function(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==t)return this.tween(r,null);if("function"!=typeof t)throw Error();return this.tween(r,function(e,t,n){var r,o;function i(){var i=t.apply(this,arguments);return i!==o&&(r=(o=i)&&function(t){this.style.setProperty(e,i.call(this,t),n)}),r}return i._value=t,i}(e,t,null==n?"":n))},text:function(e){var t,n;return this.tween("text","function"==typeof e?(t=e3(this,"text",e),function(){var e=t(this);this.textContent=null==e?"":e}):(n=null==e?"":e+"",function(){this.textContent=n}))},textTween:function(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(null==e)return this.tween(t,null);if("function"!=typeof e)throw Error();return this.tween(t,function(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&function(e){this.textContent=r.call(this,e)}),t}return r._value=e,r}(e))},remove:function(){var e;return this.on("end.remove",(e=this._id,function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}))},tween:function(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r,o=eK(this.node(),n).tween,i=0,a=o.length;i()=>e;function ta(e,{sourceEvent:t,target:n,transform:r,dispatch:o}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:o}})}function ts(e,t,n){this.k=e,this.x=t,this.y=n}ts.prototype={constructor:ts,scale:function(e){return 1===e?this:new ts(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new ts(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var tu=new ts(1,0,0);function tl(e){for(;!e.__zoom;)if(!(e=e.parentNode))return tu;return e.__zoom}function tc(e){e.stopImmediatePropagation()}function th(e){e.preventDefault(),e.stopImmediatePropagation()}function td(e){return(!e.ctrlKey||"wheel"===e.type)&&!e.button}function tf(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e).hasAttribute("viewBox")?[[(e=e.viewBox.baseVal).x,e.y],[e.x+e.width,e.y+e.height]]:[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]:[[0,0],[e.clientWidth,e.clientHeight]]}function tp(){return this.__zoom||tu}function tg(e){return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function tm(){return navigator.maxTouchPoints||"ontouchstart"in this}function tv(e,t,n){var r=e.invertX(t[0][0])-n[0][0],o=e.invertX(t[1][0])-n[1][0],i=e.invertY(t[0][1])-n[0][1],a=e.invertY(t[1][1])-n[1][1];return e.translate(o>r?(r+o)/2:Math.min(0,r)||Math.max(0,o),a>i?(i+a)/2:Math.min(0,i)||Math.max(0,a))}function ty(){var e,t,n,r=td,o=tf,i=tv,a=tg,s=tm,u=[0,1/0],l=[[-1/0,-1/0],[1/0,1/0]],c=250,h=eM,d=w("start","zoom","end"),f=0,p=10;function g(e){e.property("__zoom",tp).on("wheel.zoom",E,{passive:!1}).on("mousedown.zoom",k).on("dblclick.zoom",M).filter(s).on("touchstart.zoom",O).on("touchmove.zoom",j).on("touchend.zoom touchcancel.zoom",C).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function m(e,t){return(t=Math.max(u[0],Math.min(u[1],t)))===e.k?e:new ts(t,e.x,e.y)}function v(e,t,n){var r=t[0]-n[0]*e.k,o=t[1]-n[1]*e.k;return r===e.x&&o===e.y?e:new ts(e.k,r,o)}function y(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function b(e,t,n,r){e.on("start.zoom",function(){x(this,arguments).event(r).start()}).on("interrupt.zoom end.zoom",function(){x(this,arguments).event(r).end()}).tween("zoom",function(){var e=arguments,i=x(this,e).event(r),a=o.apply(this,e),s=null==n?y(a):"function"==typeof n?n.apply(this,e):n,u=Math.max(a[1][0]-a[0][0],a[1][1]-a[0][1]),l=this.__zoom,c="function"==typeof t?t.apply(this,e):t,d=h(l.invert(s).concat(u/l.k),c.invert(s).concat(u/c.k));return function(e){if(1===e)e=c;else{var t=d(e),n=u/t[2];e=new ts(n,s[0]-t[0]*n,s[1]-t[1]*n)}i.zoom(null,e)}})}function x(e,t,n){return!n&&e.__zooming||new _(e,t)}function _(e,t){this.that=e,this.args=t,this.active=0,this.sourceEvent=null,this.extent=o.apply(e,t),this.taps=0}function E(e,...t){if(r.apply(this,arguments)){var n=x(this,t).event(e),o=this.__zoom,s=Math.max(u[0],Math.min(u[1],o.k*Math.pow(2,a.apply(this,arguments)))),c=ec(e);if(n.wheel)(n.mouse[0][0]!==c[0]||n.mouse[0][1]!==c[1])&&(n.mouse[1]=o.invert(n.mouse[0]=c)),clearTimeout(n.wheel);else{if(o.k===s)return;n.mouse=[c,o.invert(c)],eU(this),n.start()}th(e),n.wheel=setTimeout(function(){n.wheel=null,n.end()},150),n.zoom("mouse",i(v(m(o,s),n.mouse[0],n.mouse[1]),n.extent,l))}}function k(e,...t){if(!n&&r.apply(this,arguments)){var o=e.currentTarget,a=x(this,t,!0).event(e),s=el(e.view).on("mousemove.zoom",function(e){if(th(e),!a.moved){var t=e.clientX-c,n=e.clientY-h;a.moved=t*t+n*n>f}a.event(e).zoom("mouse",i(v(a.that.__zoom,a.mouse[0]=ec(e,o),a.mouse[1]),a.extent,l))},!0).on("mouseup.zoom",function(e){s.on("mousemove.zoom mouseup.zoom",null),em(e.view,a.moved),th(e),a.event(e).end()},!0),u=ec(e,o),c=e.clientX,h=e.clientY;eg(e.view),tc(e),a.mouse=[u,this.__zoom.invert(u)],eU(this),a.start()}}function M(e,...t){if(r.apply(this,arguments)){var n=this.__zoom,a=ec(e.changedTouches?e.changedTouches[0]:e,this),s=n.invert(a),u=n.k*(e.shiftKey?.5:2),h=i(v(m(n,u),a,s),o.apply(this,t),l);th(e),c>0?el(this).transition().duration(c).call(b,h,a,e):el(this).call(g.transform,h,a,e)}}function O(n,...o){if(r.apply(this,arguments)){var i,a,s,u,l=n.touches,c=l.length,h=x(this,o,n.changedTouches.length===c).event(n);for(tc(n),a=0;a"[React Flow]: Seems like you have not used zustand provider as an ancestor. Help: https://reactflow.dev/error#001",error002:()=>"It looks like you've created a new nodeTypes or edgeTypes object. If this wasn't on purpose please define the nodeTypes/edgeTypes outside of the component or memoize them.",error003:e=>`Node type "${e}" not found. Using fallback type "default".`,error004:()=>"The React Flow parent container needs a width and a height to render the graph.",error005:()=>"Only child nodes can use a parent extent.",error006:()=>"Can't create edge. An edge needs a source and a target.",error007:e=>`The old edge with id=${e} does not exist.`,error009:e=>`Marker type "${e}" doesn't exist.`,error008:(e,{id:t,sourceHandle:n,targetHandle:r})=>`Couldn't create edge for ${e} handle id: "${"source"===e?n:r}", edge id: ${t}.`,error010:()=>"Handle: No node id found. Make sure to only use a Handle inside a custom Node.",error011:e=>`Edge type "${e}" not found. Using fallback type "default".`,error012:e=>`Node with id "${e}" does not exist, it may have been removed. This can happen when a node is deleted before the "onNodeClick" handler is called.`,error013:(e="react")=>`It seems that you haven't loaded the styles. Please import '@xyflow/${e}/dist/style.css' or base.css to make sure everything is working properly.`,error014:()=>"useNodeConnections: No node ID found. Call useNodeConnections inside a custom Node or provide a node ID.",error015:()=>"It seems that you are trying to drag a node that is not initialized. Please use onNodesChange as explained in the docs."},tx=[[-1/0,-1/0],[1/0,1/0]],t_=["Enter"," ","Escape"],tE={"node.a11yDescription.default":"Press enter or space to select a node. Press delete to remove it and escape to cancel.","node.a11yDescription.keyboardDisabled":"Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.","node.a11yDescription.ariaLiveMessage":({direction:e,x:t,y:n})=>`Moved selected node ${e}. New position, x: ${t}, y: ${n}`,"edge.a11yDescription.default":"Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.","controls.ariaLabel":"Control Panel","controls.zoomIn.ariaLabel":"Zoom In","controls.zoomOut.ariaLabel":"Zoom Out","controls.fitView.ariaLabel":"Fit View","controls.interactive.ariaLabel":"Toggle Interactivity","minimap.ariaLabel":"Mini Map","handle.ariaLabel":"Handle"};(r=h||(h={})).Strict="strict",r.Loose="loose",(o=d||(d={})).Free="free",o.Vertical="vertical",o.Horizontal="horizontal",(i=f||(f={})).Partial="partial",i.Full="full";let tk={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null};(a=p||(p={})).Bezier="default",a.Straight="straight",a.Step="step",a.SmoothStep="smoothstep",a.SimpleBezier="simplebezier",(s=g||(g={})).Arrow="arrow",s.ArrowClosed="arrowclosed",(u=m||(m={})).Left="left",u.Top="top",u.Right="right",u.Bottom="bottom";let tM={[m.Left]:m.Right,[m.Right]:m.Left,[m.Top]:m.Bottom,[m.Bottom]:m.Top};function tO(e){return null===e?null:e?"valid":"invalid"}let tj=e=>"id"in e&&"source"in e&&"target"in e,tC=e=>"id"in e&&"position"in e&&!("source"in e)&&!("target"in e),tS=e=>"id"in e&&"internals"in e&&!("source"in e)&&!("target"in e),tA=(e,t=[0,0])=>{let{width:n,height:r}=t6(e),o=e.origin??t,i=n*o[0],a=r*o[1];return{x:e.position.x-i,y:e.position.y-a}},tN=(e,t={nodeOrigin:[0,0]})=>0===e.length?{x:0,y:0,width:0,height:0}:tX(e.reduce((e,n)=>{let r="string"==typeof n,o=t.nodeLookup||r?void 0:n;return t.nodeLookup&&(o=r?t.nodeLookup.get(n):tS(n)?n:t.nodeLookup.get(n.id)),tF(e,o?tq(o,t.nodeOrigin):{x:0,y:0,x2:0,y2:0})},{x:1/0,y:1/0,x2:-1/0,y2:-1/0})),tz=(e,t={})=>{let n={x:1/0,y:1/0,x2:-1/0,y2:-1/0},r=!1;return e.forEach(e=>{(void 0===t.filter||t.filter(e))&&(n=tF(n,tq(e)),r=!0)}),r?tX(n):{x:0,y:0,width:0,height:0}},t$=(e,t,[n,r,o]=[0,0,1],i=!1,a=!1)=>{let s={...tJ(t,[n,r,o]),width:t.width/o,height:t.height/o},u=[];for(let t of e.values()){let{measured:e,selectable:n=!0,hidden:r=!1}=t;if(a&&!n||r)continue;let o=e.width??t.width??t.initialWidth??null,l=e.height??t.height??t.initialHeight??null,c=tG(s,tY(t)),h=(o??0)*(l??0),d=i&&c>0;(!t.internals.handleBounds||d||c>=h||t.dragging)&&u.push(t)}return u};async function tL({nodes:e,width:t,height:n,panZoom:r,minZoom:o,maxZoom:i},a){let s,u;if(0===e.size)return Promise.resolve(!0);let l=t2(tz((s=new Map,u=a?.nodes?new Set(a.nodes.map(e=>e.id)):null,e.forEach(e=>{e.measured.width&&e.measured.height&&(a?.includeHiddenNodes||!e.hidden)&&(!u||u.has(e.id))&&s.set(e.id,e)}),s)),t,n,a?.minZoom??o,a?.maxZoom??i,a?.padding??.1);return await r.setViewport(l,{duration:a?.duration,ease:a?.ease,interpolate:a?.interpolate}),Promise.resolve(!0)}function tT({nodeId:e,nextPosition:t,nodeLookup:n,nodeOrigin:r=[0,0],nodeExtent:o,onError:i}){let a=n.get(e),s=a.parentId?n.get(a.parentId):void 0,{x:u,y:l}=s?s.internals.positionAbsolute:{x:0,y:0},c=a.origin??r,h=a.extent||o;if("parent"!==a.extent||a.expandParent)s&&t3(a.extent)&&(h=[[a.extent[0][0]+u,a.extent[0][1]+l],[a.extent[1][0]+u,a.extent[1][1]+l]]);else if(s){let e=s.measured.width,t=s.measured.height;e&&t&&(h=[[u,l],[u+e,l+t]])}else i?.("005",tb.error005());let d=t3(h)?tD(t,h,a.measured):t;return(void 0===a.measured.width||void 0===a.measured.height)&&i?.("015",tb.error015()),{position:{x:d.x-u+(a.measured.width??0)*c[0],y:d.y-l+(a.measured.height??0)*c[1]},positionAbsolute:d}}async function tI({nodesToRemove:e=[],edgesToRemove:t=[],nodes:n,edges:r,onBeforeDelete:o}){let i,a=new Set(e.map(e=>e.id)),s=[];for(let e of n){if(!1===e.deletable)continue;let t=a.has(e.id),n=!t&&e.parentId&&s.find(t=>t.id===e.parentId);(t||n)&&s.push(e)}let u=new Set(t.map(e=>e.id)),l=r.filter(e=>!1!==e.deletable),c=(i=new Set,s.forEach(e=>{i.add(e.id)}),l.filter(e=>i.has(e.source)||i.has(e.target)));for(let e of l)u.has(e.id)&&!c.find(t=>t.id===e.id)&&c.push(e);if(!o)return{edges:c,nodes:s};let h=await o({nodes:s,edges:c});return"boolean"==typeof h?h?{edges:c,nodes:s}:{edges:[],nodes:[]}:h}let tP=(e,t=0,n=1)=>Math.min(Math.max(e,t),n),tD=(e={x:0,y:0},t,n)=>({x:tP(e.x,t[0][0],t[1][0]-(n?.width??0)),y:tP(e.y,t[0][1],t[1][1]-(n?.height??0))});function tR(e,t,n){let{width:r,height:o}=t6(n),{x:i,y:a}=n.internals.positionAbsolute;return tD(e,[[i,a],[i+r,a+o]],t)}let tV=(e,t,n)=>en?-tP(Math.abs(e-n),1,t)/t:0,tB=(e,t,n=15,r=40)=>[tV(e.x,r,t.width-r)*n,tV(e.y,r,t.height-r)*n],tF=(e,t)=>({x:Math.min(e.x,t.x),y:Math.min(e.y,t.y),x2:Math.max(e.x2,t.x2),y2:Math.max(e.y2,t.y2)}),tH=({x:e,y:t,width:n,height:r})=>({x:e,y:t,x2:e+n,y2:t+r}),tX=({x:e,y:t,x2:n,y2:r})=>({x:e,y:t,width:n-e,height:r-t}),tY=(e,t=[0,0])=>{let{x:n,y:r}=tS(e)?e.internals.positionAbsolute:tA(e,t);return{x:n,y:r,width:e.measured?.width??e.width??e.initialWidth??0,height:e.measured?.height??e.height??e.initialHeight??0}},tq=(e,t=[0,0])=>{let{x:n,y:r}=tS(e)?e.internals.positionAbsolute:tA(e,t);return{x:n,y:r,x2:n+(e.measured?.width??e.width??e.initialWidth??0),y2:r+(e.measured?.height??e.height??e.initialHeight??0)}},tW=(e,t)=>tX(tF(tH(e),tH(t))),tG=(e,t)=>Math.ceil(Math.max(0,Math.min(e.x+e.width,t.x+t.width)-Math.max(e.x,t.x))*Math.max(0,Math.min(e.y+e.height,t.y+t.height)-Math.max(e.y,t.y))),tK=e=>tU(e.width)&&tU(e.height)&&tU(e.x)&&tU(e.y),tU=e=>!isNaN(e)&&isFinite(e),tZ=(e,t)=>{},tQ=(e,t=[1,1])=>({x:t[0]*Math.round(e.x/t[0]),y:t[1]*Math.round(e.y/t[1])}),tJ=({x:e,y:t},[n,r,o],i=!1,a=[1,1])=>{let s={x:(e-n)/o,y:(t-r)/o};return i?tQ(s,a):s},t0=({x:e,y:t},[n,r,o])=>({x:e*o+n,y:t*o+r});function t1(e,t){if("number"==typeof e)return Math.floor((t-t/(1+e))*.5);if("string"==typeof e&&e.endsWith("px")){let t=parseFloat(e);if(!Number.isNaN(t))return Math.floor(t)}if("string"==typeof e&&e.endsWith("%")){let n=parseFloat(e);if(!Number.isNaN(n))return Math.floor(t*n*.01)}return console.error(`[React Flow] The padding value "${e}" is invalid. Please provide a number or a string with a valid unit (px or %).`),0}let t2=(e,t,n,r,o,i)=>{let a=function(e,t,n){if("string"==typeof e||"number"==typeof e){let r=t1(e,n),o=t1(e,t);return{top:r,right:o,bottom:r,left:o,x:2*o,y:2*r}}if("object"==typeof e){let r=t1(e.top??e.y??0,n),o=t1(e.bottom??e.y??0,n),i=t1(e.left??e.x??0,t),a=t1(e.right??e.x??0,t);return{top:r,right:a,bottom:o,left:i,x:i+a,y:r+o}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}(i,t,n),s=tP(Math.min((t-a.x)/e.width,(n-a.y)/e.height),r,o),u=e.x+e.width/2,l=e.y+e.height/2,c=t/2-u*s,h=n/2-l*s,d=function(e,t,n,r,o,i){let{x:a,y:s}=t0(e,[t,n,r]),{x:u,y:l}=t0({x:e.x+e.width,y:e.y+e.height},[t,n,r]);return{left:Math.floor(a),top:Math.floor(s),right:Math.floor(o-u),bottom:Math.floor(i-l)}}(e,c,h,s,t,n),f={left:Math.min(d.left-a.left,0),top:Math.min(d.top-a.top,0),right:Math.min(d.right-a.right,0),bottom:Math.min(d.bottom-a.bottom,0)};return{x:c-f.left+f.right,y:h-f.top+f.bottom,zoom:s}},t5=()=>"u">typeof navigator&&navigator?.userAgent?.indexOf("Mac")>=0;function t3(e){return null!=e&&"parent"!==e}function t6(e){return{width:e.measured?.width??e.width??e.initialWidth??0,height:e.measured?.height??e.height??e.initialHeight??0}}function t8(e){return(e.measured?.width??e.width??e.initialWidth)!==void 0&&(e.measured?.height??e.height??e.initialHeight)!==void 0}function t9(e,t={width:0,height:0},n,r,o){let i={...e},a=r.get(n);if(a){let e=a.origin||o;i.x+=a.internals.positionAbsolute.x-(t.width??0)*e[0],i.y+=a.internals.positionAbsolute.y-(t.height??0)*e[1]}return i}function t4(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function t7(){let e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}function ne(e){return{...tE,...e||{}}}function nt(e,{snapGrid:t=[0,0],snapToGrid:n=!1,transform:r,containerBounds:o}){let{x:i,y:a}=ns(e),s=tJ({x:i-(o?.left??0),y:a-(o?.top??0)},r),{x:u,y:l}=n?tQ(s,t):s;return{xSnapped:u,ySnapped:l,...s}}let nn=e=>({width:e.offsetWidth,height:e.offsetHeight}),nr=e=>e?.getRootNode?.()||window?.document,no=["INPUT","SELECT","TEXTAREA"];function ni(e){let t=e.composedPath?.()?.[0]||e.target;return t?.nodeType===1&&(no.includes(t.nodeName)||t.hasAttribute("contenteditable")||!!t.closest(".nokey"))}let na=e=>"clientX"in e,ns=(e,t)=>{let n=na(e),r=n?e.clientX:e.touches?.[0].clientX,o=n?e.clientY:e.touches?.[0].clientY;return{x:r-(t?.left??0),y:o-(t?.top??0)}},nu=(e,t,n,r,o)=>{let i=t.querySelectorAll(`.${e}`);return i&&i.length?Array.from(i).map(t=>{let i=t.getBoundingClientRect();return{id:t.getAttribute("data-handleid"),type:e,nodeId:o,position:t.getAttribute("data-handlepos"),x:(i.left-n.left)/r,y:(i.top-n.top)/r,...nn(t)}}):null};function nl({sourceX:e,sourceY:t,targetX:n,targetY:r,sourceControlX:o,sourceControlY:i,targetControlX:a,targetControlY:s}){let u=.125*e+.375*o+.375*a+.125*n,l=.125*t+.375*i+.375*s+.125*r,c=Math.abs(u-e),h=Math.abs(l-t);return[u,l,c,h]}function nc(e,t){return e>=0?.5*e:25*t*Math.sqrt(-e)}function nh({pos:e,x1:t,y1:n,x2:r,y2:o,c:i}){switch(e){case m.Left:return[t-nc(t-r,i),n];case m.Right:return[t+nc(r-t,i),n];case m.Top:return[t,n-nc(n-o,i)];case m.Bottom:return[t,n+nc(o-n,i)]}}function nd({sourceX:e,sourceY:t,sourcePosition:n=m.Bottom,targetX:r,targetY:o,targetPosition:i=m.Top,curvature:a=.25}){let[s,u]=nh({pos:n,x1:e,y1:t,x2:r,y2:o,c:a}),[l,c]=nh({pos:i,x1:r,y1:o,x2:e,y2:t,c:a}),[h,d,f,p]=nl({sourceX:e,sourceY:t,targetX:r,targetY:o,sourceControlX:s,sourceControlY:u,targetControlX:l,targetControlY:c});return[`M${e},${t} C${s},${u} ${l},${c} ${r},${o}`,h,d,f,p]}function nf({sourceX:e,sourceY:t,targetX:n,targetY:r}){let o=Math.abs(n-e)/2,i=Math.abs(r-t)/2;return[n0}let nm=(e,t)=>{let n,r;return e.source&&e.target?(r=n=tj(e)?{...e}:{...e,id:(({source:e,sourceHandle:t,target:n,targetHandle:r})=>`xy-edge__${e}${t||""}-${n}${r||""}`)(e)},t.some(e=>e.source===r.source&&e.target===r.target&&(e.sourceHandle===r.sourceHandle||!e.sourceHandle&&!r.sourceHandle)&&(e.targetHandle===r.targetHandle||!e.targetHandle&&!r.targetHandle)))?t:(null===n.sourceHandle&&delete n.sourceHandle,null===n.targetHandle&&delete n.targetHandle,t.concat(n)):(tZ("006",tb.error006()),t)};function nv({sourceX:e,sourceY:t,targetX:n,targetY:r}){let[o,i,a,s]=nf({sourceX:e,sourceY:t,targetX:n,targetY:r});return[`M ${e},${t}L ${n},${r}`,o,i,a,s]}let ny={[m.Left]:{x:-1,y:0},[m.Right]:{x:1,y:0},[m.Top]:{x:0,y:-1},[m.Bottom]:{x:0,y:1}},nw=({source:e,sourcePosition:t=m.Bottom,target:n})=>t===m.Left||t===m.Right?e.xMath.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2));function nx({sourceX:e,sourceY:t,sourcePosition:n=m.Bottom,targetX:r,targetY:o,targetPosition:i=m.Top,borderRadius:a=5,centerX:s,centerY:u,offset:l=20,stepPosition:c=.5}){let[h,d,f,p,g]=function({source:e,sourcePosition:t=m.Bottom,target:n,targetPosition:r=m.Top,center:o,offset:i,stepPosition:a}){let s,u,l=ny[t],c=ny[r],h={x:e.x+l.x*i,y:e.y+l.y*i},d={x:n.x+c.x*i,y:n.y+c.y*i},f=nw({source:h,sourcePosition:t,target:d}),p=0!==f.x?"x":"y",g=f[p],v=[],y={x:0,y:0},w={x:0,y:0},[,,b,x]=nf({sourceX:e.x,sourceY:e.y,targetX:n.x,targetY:n.y});if(l[p]*c[p]==-1){"x"===p?(s=o.x??h.x+(d.x-h.x)*a,u=o.y??(h.y+d.y)/2):(s=o.x??(h.x+d.x)/2,u=o.y??h.y+(d.y-h.y)*a);let e=[{x:s,y:h.y},{x:s,y:d.y}],t=[{x:h.x,y:u},{x:d.x,y:u}];v=l[p]===g?"x"===p?e:t:"x"===p?t:e}else{let o=[{x:h.x,y:d.y}],a=[{x:d.x,y:h.y}];if(v="x"===p?l.x===g?a:o:l.y===g?o:a,t===r){let t=Math.abs(e[p]-n[p]);if(t<=i){let r=Math.min(i-1,i-t);l[p]===g?y[p]=(h[p]>e[p]?-1:1)*r:w[p]=(d[p]>n[p]?-1:1)*r}}if(t!==r){let e="x"===p?"y":"x",t=l[p]===c[e],n=h[e]>d[e],r=h[e]=Math.max(Math.abs(f.y-v[0].y),Math.abs(m.y-v[0].y))?(s=(f.x+m.x)/2,u=v[0].y):(s=v[0].x,u=(f.y+m.y)/2)}return[[e,{x:h.x+y.x,y:h.y+y.y},...v,{x:d.x+w.x,y:d.y+w.y},n],s,u,b,x]}({source:{x:e,y:t},sourcePosition:n,target:{x:r,y:o},targetPosition:i,center:{x:s,y:u},offset:l,stepPosition:c});return[h.reduce((e,t,n)=>e+(n>0&&ne.id===t):e[0])||null}function nj(e,t){if(!e)return"";if("string"==typeof e)return e;let n=t?`${t}__`:"";return`${n}${Object.keys(e).sort().map(t=>`${t}=${e[t]}`).join("&")}`}function nC(e,{id:t,defaultColor:n,defaultMarkerStart:r,defaultMarkerEnd:o}){let i=new Set;return e.reduce((e,a)=>([a.markerStart||r,a.markerEnd||o].forEach(r=>{if(r&&"object"==typeof r){let o=nj(r,t);i.has(o)||(e.push({id:o,color:r.color||n,...r}),i.add(o))}}),e),[]).sort((e,t)=>e.id.localeCompare(t.id))}function nS(e,t,n,r,o){let i=.5;"start"===o?i=0:"end"===o&&(i=1);let a=[(e.x+e.width*i)*t.zoom+t.x,e.y*t.zoom+t.y-r],s=[-100*i,-100];switch(n){case m.Right:a=[(e.x+e.width)*t.zoom+t.x+r,(e.y+e.height*i)*t.zoom+t.y],s=[0,-100*i];break;case m.Bottom:a[1]=(e.y+e.height)*t.zoom+t.y+r,s[1]=0;break;case m.Left:a=[e.x*t.zoom+t.x-r,(e.y+e.height*i)*t.zoom+t.y],s=[-100,-100*i]}return`translate(${a[0]}px, ${a[1]}px) translate(${s[0]}%, ${s[1]}%)`}let nA={left:0,center:50,right:100},nN={top:0,center:50,bottom:100};function nz(e,t,n,r="center",o="center"){return`translate(${e}px, ${t}px) scale(${1/n}) translate(${-(nA[r]??50)}%, ${-(nN[o]??50)}%)`}let n$={nodeOrigin:[0,0],nodeExtent:tx,elevateNodesOnSelect:!0,defaults:{}},nL={...n$,checkEquality:!0};function nT(e,t){let n={...e};for(let e in t)void 0!==t[e]&&(n[e]=t[e]);return n}function nI(e,t,n){let r=nT(n$,n);for(let n of e.values())if(n.parentId)nD(n,e,t,r);else{let e=tD(tA(n,r.nodeOrigin),t3(n.extent)?n.extent:r.nodeExtent,t6(n));n.internals.positionAbsolute=e}}function nP(e,t,n,r){let o=nT(nL,r),i={i:-1},a=e.length>0,s=new Map(t),u=1e3*!!o?.elevateNodesOnSelect;for(let l of(t.clear(),n.clear(),e)){let e=s.get(l.id);if(o.checkEquality&&l===e?.internals.userNode)t.set(l.id,e);else{let n=tD(tA(l,o.nodeOrigin),t3(l.extent)?l.extent:o.nodeExtent,t6(l));e={...o.defaults,...l,measured:{width:l.measured?.width,height:l.measured?.height},internals:{positionAbsolute:n,handleBounds:function(e,t){if(!e.handles)return e.measured?t?.internals.handleBounds:void 0;let n=[],r=[];for(let t of e.handles){let o={id:t.id,width:t.width??1,height:t.height??1,nodeId:e.id,x:t.x,y:t.y,position:t.position,type:t.type};"source"===t.type?n.push(o):"target"===t.type&&r.push(o)}return{source:n,target:r}}(l,e),z:nR(l,u),userNode:l}},t.set(l.id,e)}void 0!==e.measured&&void 0!==e.measured.width&&void 0!==e.measured.height||e.hidden||(a=!1),l.parentId&&nD(e,t,n,r,i)}return a}function nD(e,t,n,r,o){let{elevateNodesOnSelect:i,nodeOrigin:a,nodeExtent:s}=nT(n$,r),u=e.parentId,l=t.get(u);if(!l)return void console.warn(`Parent node ${u} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);!function(e,t){if(!e.parentId)return;let n=t.get(e.parentId);n?n.set(e.id,e):t.set(e.parentId,new Map([[e.id,e]]))}(e,n),o&&!l.parentId&&void 0===l.internals.rootParentIndex&&(l.internals.rootParentIndex=++o.i,l.internals.z=l.internals.z+10*o.i),o&&void 0!==l.internals.rootParentIndex&&(o.i=l.internals.rootParentIndex);let{x:c,y:h,z:d}=function(e,t,n,r,o){let{x:i,y:a}=t.internals.positionAbsolute,s=t6(e),u=tA(e,n),l=t3(e.extent)?tD(u,e.extent,s):u,c=tD({x:i+l.x,y:a+l.y},r,s);"parent"===e.extent&&(c=tR(c,s,t));let h=nR(e,o),d=t.internals.z??0;return{x:c.x,y:c.y,z:d>=h?d+1:h}}(e,l,a,s,1e3*!!i),{positionAbsolute:f}=e.internals,p=c!==f.x||h!==f.y;(p||d!==e.internals.z)&&t.set(e.id,{...e,internals:{...e.internals,positionAbsolute:p?{x:c,y:h}:f,z:d}})}function nR(e,t){return(tU(e.zIndex)?e.zIndex:0)+(e.selected?t:0)}function nV(e,t,n,r=[0,0]){let o=[],i=new Map;for(let n of e){let e=t.get(n.parentId);if(!e)continue;let r=tW(i.get(n.parentId)?.expandedRect??tY(e),n.rect);i.set(n.parentId,{expandedRect:r,parent:e})}return i.size>0&&i.forEach(({expandedRect:t,parent:i},a)=>{let s=i.internals.positionAbsolute,u=t6(i),l=i.origin??r,c=t.x0||h>0||p||g)&&(o.push({id:a,type:"position",position:{x:i.position.x-c+p,y:i.position.y-h+g}}),n.get(a)?.forEach(t=>{e.some(e=>e.id===t.id)||o.push({id:t.id,type:"position",position:{x:t.position.x+c,y:t.position.y+h}})})),(u.width0){let e=nV(h,t,n,o);u.push(...e)}return{changes:u,updatedInternals:s}}async function nF({delta:e,panZoom:t,transform:n,translateExtent:r,width:o,height:i}){if(!t||!e.x&&!e.y)return Promise.resolve(!1);let a=await t.setViewportConstrained({x:n[0]+e.x,y:n[1]+e.y,zoom:n[2]},[[0,0],[o,i]],r);return Promise.resolve(!!a&&(a.x!==n[0]||a.y!==n[1]||a.k!==n[2]))}function nH(e,t,n,r,o,i){let a=o,s=r.get(a)||new Map;r.set(a,s.set(n,t)),a=`${o}-${e}`;let u=r.get(a)||new Map;if(r.set(a,u.set(n,t)),i){a=`${o}-${e}-${i}`;let s=r.get(a)||new Map;r.set(a,s.set(n,t))}}function nX(e,t,n){for(let r of(e.clear(),t.clear(),n)){let{source:n,target:o,sourceHandle:i=null,targetHandle:a=null}=r,s={edgeId:r.id,source:n,target:o,sourceHandle:i,targetHandle:a},u=`${n}-${i}--${o}-${a}`;nH("source",s,`${o}-${a}--${n}-${i}`,e,n,i),nH("target",s,u,e,o,a),t.set(r.id,r)}}function nY(e,t,n){let r=e;do{if(r?.matches?.(t))return!0;if(r===n)break;r=r?.parentElement}while(r);return!1}function nq({nodeId:e,dragItems:t,nodeLookup:n,dragging:r=!0}){let o=[];for(let[e,i]of t){let t=n.get(e)?.internals.userNode;t&&o.push({...t,position:i.position,dragging:r})}if(!e)return[o[0],o];let i=n.get(e)?.internals.userNode;return[i?{...i,position:t.get(e)?.position||i.position,dragging:r}:o[0],o]}function nW({onNodeMouseDown:e,getStoreItems:t,onDragStart:n,onDrag:r,onDragStop:o}){let i={x:null,y:null},a=0,s=new Map,u=!1,l={x:0,y:0},c=null,h=!1,d=null,f=!1,p=!1,g=null;return{update:function({noDragClassName:m,handleSelector:v,domNode:y,isSelectable:w,nodeId:b,nodeClickDistance:x=0}){function _({x:e,y:n}){let{nodeLookup:o,nodeExtent:a,snapGrid:u,snapToGrid:l,nodeOrigin:c,onNodeDrag:h,onSelectionDrag:d,onError:f,updateNodePositions:m}=t();i={x:e,y:n};let v=!1,y=s.size>1,w=y&&a?tH(tz(s)):null,x=y&&l?function({dragItems:e,snapGrid:t,x:n,y:r}){let o=e.values().next().value;if(!o)return null;let i={x:n-o.distance.x,y:r-o.distance.y},a=tQ(i,t);return{x:a.x-i.x,y:a.y-i.y}}({dragItems:s,snapGrid:u,x:e,y:n}):null;for(let[t,r]of s){if(!o.has(t))continue;let i={x:e-r.distance.x,y:n-r.distance.y};l&&(i=x?{x:Math.round(i.x+x.x),y:Math.round(i.y+x.y)}:tQ(i,u));let s=null;if(y&&a&&!r.extent&&w){let{positionAbsolute:e}=r.internals,t=e.x-w.x+a[0][0],n=e.x+r.measured.width-w.x2+a[1][0];s=[[t,e.y-w.y+a[0][1]],[n,e.y+r.measured.height-w.y2+a[1][1]]]}let{position:h,positionAbsolute:d}=tT({nodeId:t,nextPosition:i,nodeLookup:o,nodeExtent:s||a,nodeOrigin:c,onError:f});v=v||r.position.x!==h.x||r.position.y!==h.y,r.position=h,r.internals.positionAbsolute=d}if(p=p||v,v&&(m(s,!0),g&&(r||h||!b&&d))){let[e,t]=nq({nodeId:b,dragItems:s,nodeLookup:o});r?.(g,s,e,t),h?.(g,e,t),b||d?.(g,t)}}async function E(){if(!c)return;let{transform:e,panBy:n,autoPanSpeed:r,autoPanOnNodeDrag:o}=t();if(!o){u=!1,cancelAnimationFrame(a);return}let[s,h]=tB(l,c,r);(0!==s||0!==h)&&(i.x=(i.x??0)-s/e[2],i.y=(i.y??0)-h/e[2],await n({x:s,y:h})&&_(i)),a=requestAnimationFrame(E)}function k(r){let{nodeLookup:o,multiSelectionActive:a,nodesDraggable:u,transform:l,snapGrid:d,snapToGrid:f,selectNodesOnDrag:p,onNodeDragStart:g,onSelectionDragStart:m,unselectNodesAndEdges:v}=t();h=!0,p&&w||a||!b||o.get(b)?.selected||v(),w&&p&&b&&e?.(b);let y=nt(r.sourceEvent,{transform:l,snapGrid:d,snapToGrid:f,containerBounds:c});if(i=y,(s=function(e,t,n,r){let o=new Map;for(let[i,a]of e)if((a.selected||a.id===r)&&(!a.parentId||!function e(t,n){if(!t.parentId)return!1;let r=n.get(t.parentId);return!!r&&(!!r.selected||e(r,n))}(a,e))&&(a.draggable||t&&void 0===a.draggable)){let t=e.get(i);t&&o.set(i,{id:i,position:t.position||{x:0,y:0},distance:{x:n.x-t.internals.positionAbsolute.x,y:n.y-t.internals.positionAbsolute.y},extent:t.extent,parentId:t.parentId,origin:t.origin,expandParent:t.expandParent,internals:{positionAbsolute:t.internals.positionAbsolute||{x:0,y:0}},measured:{width:t.measured.width??0,height:t.measured.height??0}})}return o}(o,u,y,b)).size>0&&(n||g||!b&&m)){let[e,t]=nq({nodeId:b,dragItems:s,nodeLookup:o});n?.(r.sourceEvent,s,e,t),g?.(r.sourceEvent,e,t),b||m?.(r.sourceEvent,t)}}d=el(y);let M=eE().clickDistance(x).on("start",e=>{let{domNode:n,nodeDragThreshold:r,transform:o,snapGrid:a,snapToGrid:s}=t();c=n?.getBoundingClientRect()||null,f=!1,p=!1,g=e.sourceEvent,0===r&&k(e),i=nt(e.sourceEvent,{transform:o,snapGrid:a,snapToGrid:s,containerBounds:c}),l=ns(e.sourceEvent,c)}).on("drag",e=>{let{autoPanOnNodeDrag:n,transform:r,snapGrid:o,snapToGrid:a,nodeDragThreshold:d,nodeLookup:p}=t(),m=nt(e.sourceEvent,{transform:r,snapGrid:o,snapToGrid:a,containerBounds:c});if(g=e.sourceEvent,("touchmove"===e.sourceEvent.type&&e.sourceEvent.touches.length>1||b&&!p.has(b))&&(f=!0),!f){if(!u&&n&&h&&(u=!0,E()),!h){let t=ns(e.sourceEvent,c),n=t.x-l.x,r=t.y-l.y;Math.sqrt(n*n+r*r)>d&&k(e)}(i.x!==m.xSnapped||i.y!==m.ySnapped)&&s&&h&&(l=ns(e.sourceEvent,c),_(m))}}).on("end",e=>{if(h&&!f&&(u=!1,h=!1,cancelAnimationFrame(a),s.size>0)){let{nodeLookup:n,updateNodePositions:r,onNodeDragStop:i,onSelectionDragStop:a}=t();if(p&&(r(s,!1),p=!1),o||i||!b&&a){let[t,r]=nq({nodeId:b,dragItems:s,nodeLookup:n,dragging:!1});o?.(e.sourceEvent,s,t,r),i?.(e.sourceEvent,t,r),b||a?.(e.sourceEvent,r)}}}).filter(e=>{let t=e.target;return!e.button&&(!m||!nY(t,`.${m}`,y))&&(!v||nY(t,v,y))});d.call(M)},destroy:function(){d?.on(".drag",null)}}}function nG(e,t,n,r,o,i=!1){let a=r.get(e);if(!a)return null;let s="strict"===o?a.internals.handleBounds?.[t]:[...a.internals.handleBounds?.source??[],...a.internals.handleBounds?.target??[]],u=(n?s?.find(e=>e.id===n):s?.[0])??null;return u&&i?{...u,...nM(a,u,u.position,!0)}:u}function nK(e,t){return e?e:t?.classList.contains("target")?"target":t?.classList.contains("source")?"source":null}let nU=()=>!0;function nZ(e,{handle:t,connectionMode:n,fromNodeId:r,fromHandleId:o,fromType:i,doc:a,lib:s,flowId:u,isValidConnection:l=nU,nodeLookup:c}){let d="target"===i,f=t?a.querySelector(`.${s}-flow__handle[data-id="${u}-${t?.nodeId}-${t?.id}-${t?.type}"]`):null,{x:p,y:g}=ns(e),m=a.elementFromPoint(p,g),v=m?.classList.contains(`${s}-flow__handle`)?m:f,y={handleDomNode:v,isValid:!1,connection:null,toHandle:null};if(v){let e=nK(void 0,v),t=v.getAttribute("data-nodeid"),i=v.getAttribute("data-handleid"),a=v.classList.contains("connectable"),s=v.classList.contains("connectableend");if(!t||!e)return y;let u={source:d?t:r,sourceHandle:d?i:o,target:d?r:t,targetHandle:d?o:i};y.connection=u,y.isValid=a&&s&&(n===h.Strict?d&&"source"===e||!d&&"target"===e:t!==r||i!==o)&&l(u),y.toHandle=nG(t,e,i,c,n,!0)}return y}let nQ={onPointerDown:function(e,{connectionMode:t,connectionRadius:n,handleId:r,nodeId:o,edgeUpdaterType:i,isTarget:a,domNode:s,nodeLookup:u,lib:l,autoPanOnConnect:c,flowId:h,panBy:d,cancelConnection:f,onConnectStart:p,onConnect:g,onConnectEnd:v,isValidConnection:y=nU,onReconnectEnd:w,updateConnection:b,getTransform:x,getFromHandle:_,autoPanSpeed:E,dragThreshold:k=1,handleDomNode:M}){let O,j=nr(e.target),C=0,{x:S,y:A}=ns(e),N=nK(i,M),z=s?.getBoundingClientRect(),$=!1;if(!z||!N)return;let L=nG(o,N,r,u,t);if(!L)return;let T=ns(e,z),I=!1,P=null,D=!1,R=null,V={...L,nodeId:o,type:N,position:L.position},B=u.get(o),F={inProgress:!0,isValid:null,from:nM(B,V,m.Left,!0),fromHandle:V,fromPosition:V.position,fromNode:B,to:T,toHandle:null,toPosition:tM[V.position],toNode:null};function H(){$=!0,b(F),p?.(e,{nodeId:o,handleId:r,handleType:N})}function X(e){var i,s;let f;if(!$){let{x:t,y:n}=ns(e),r=t-S,o=n-A;if(!(r*r+o*o>k*k))return;H()}if(!_()||!V)return void Y(e);let p=x();O=function(e,t,n,r){let o=[],i=1/0;for(let a of function(e,t,n){let r=[],o={x:e.x-n,y:e.y-n,width:2*n,height:2*n};for(let e of t.values())tG(o,tY(e))>0&&r.push(e);return r}(e,n,t+250))for(let n of[...a.internals.handleBounds?.source??[],...a.internals.handleBounds?.target??[]]){if(r.nodeId===n.nodeId&&r.type===n.type&&r.id===n.id)continue;let{x:s,y:u}=nM(a,n,n.position,!0),l=Math.sqrt(Math.pow(s-e.x,2)+Math.pow(u-e.y,2));l>t||(l1){let e="source"===r.type?"target":"source";return o.find(t=>t.type===e)??o[0]}return o[0]}(tJ(T=ns(e,z),p,!1,[1,1]),n,u,V),I||(!function e(){if(!c||!z)return;let[t,n]=tB(T,z,E);d({x:t,y:n}),C=requestAnimationFrame(e)}(),I=!0);let g=nZ(e,{handle:O,connectionMode:t,fromNodeId:o,fromHandleId:r,fromType:a?"target":"source",isValidConnection:y,doc:j,lib:l,flowId:h,nodeLookup:u});R=g.handleDomNode,P=g.connection,i=!!O,s=g.isValid,f=null,s?f=!0:i&&!s&&(f=!1),D=f;let m={...F,isValid:D,to:g.toHandle&&D?t0({x:g.toHandle.x,y:g.toHandle.y},p):T,toHandle:g.toHandle,toPosition:D&&g.toHandle?g.toHandle.position:tM[V.position],toNode:g.toHandle?u.get(g.toHandle.nodeId):null};D&&O&&F.toHandle&&m.toHandle&&F.toHandle.type===m.toHandle.type&&F.toHandle.nodeId===m.toHandle.nodeId&&F.toHandle.id===m.toHandle.id&&F.to.x===m.to.x&&F.to.y===m.to.y||(b(m),F=m)}function Y(e){if(!("touches"in e)||!(e.touches.length>0)){if($){(O||R)&&P&&D&&g?.(P);let{inProgress:t,...n}=F,r={...n,toPosition:F.toHandle?F.toPosition:null};v?.(e,r),i&&w?.(e,r)}f(),cancelAnimationFrame(C),I=!1,D=!1,P=null,R=null,j.removeEventListener("mousemove",X),j.removeEventListener("mouseup",Y),j.removeEventListener("touchmove",X),j.removeEventListener("touchend",Y)}}0===k&&H(),j.addEventListener("mousemove",X),j.addEventListener("mouseup",Y),j.addEventListener("touchmove",X),j.addEventListener("touchend",Y)},isValid:nZ};function nJ({domNode:e,panZoom:t,getTransform:n,getViewScale:r}){let o=el(e);return{update:function({translateExtent:e,width:i,height:a,zoomStep:s=1,pannable:u=!0,zoomable:l=!0,inversePan:c=!1}){let h=[0,0],d=ty().on("start",e=>{("mousedown"===e.sourceEvent.type||"touchstart"===e.sourceEvent.type)&&(h=[e.sourceEvent.clientX??e.sourceEvent.touches[0].clientX,e.sourceEvent.clientY??e.sourceEvent.touches[0].clientY])}).on("zoom",u?o=>{let s=n();if("mousemove"!==o.sourceEvent.type&&"touchmove"!==o.sourceEvent.type||!t)return;let u=[o.sourceEvent.clientX??o.sourceEvent.touches[0].clientX,o.sourceEvent.clientY??o.sourceEvent.touches[0].clientY],l=[u[0]-h[0],u[1]-h[1]];h=u;let d=r()*Math.max(s[2],Math.log(s[2]))*(c?-1:1),f={x:s[0]-l[0]*d,y:s[1]-l[1]*d};t.setViewportConstrained({x:f.x,y:f.y,zoom:s[2]},[[0,0],[i,a]],e)}:null).on("zoom.wheel",l?e=>{if("wheel"!==e.sourceEvent.type||!t)return;let r=n(),o=e.sourceEvent.ctrlKey&&t5()?10:1,i=-e.sourceEvent.deltaY*(1===e.sourceEvent.deltaMode?.05:e.sourceEvent.deltaMode?1:.002)*s,a=r[2]*Math.pow(2,i*o);t.scaleTo(a)}:null);o.call(d,{})},destroy:function(){o.on("zoom",null)},pointer:ec}}let n0=e=>({x:e.x,y:e.y,zoom:e.k}),n1=({x:e,y:t,zoom:n})=>tu.translate(e,t).scale(n),n2=(e,t)=>e.target.closest(`.${t}`),n5=(e,t)=>2===t&&Array.isArray(e)&&e.includes(2),n3=e=>((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2,n6=(e,t=0,n=n3,r=()=>{})=>{let o="number"==typeof t&&t>0;return o||r(),o?e.transition().duration(t).ease(n).on("end",r):e},n8=e=>{let t=e.ctrlKey&&t5()?10:1;return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*t};function n9({domNode:e,minZoom:t,maxZoom:n,paneClickDistance:r,translateExtent:o,viewport:i,onPanZoom:a,onPanZoomStart:s,onPanZoomEnd:u,onDraggingChange:l}){let c={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{x:0,y:0,zoom:0},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},h=e.getBoundingClientRect(),f=ty().clickDistance(!tU(r)||r<0?0:r).scaleExtent([t,n]).translateExtent(o),p=el(e).call(f);w({x:i.x,y:i.y,zoom:tP(i.zoom,t,n)},[[0,0],[h.width,h.height]],o);let g=p.on("wheel.zoom"),m=p.on("dblclick.zoom");function v(e,t){return p?new Promise(n=>{f?.interpolate(t?.interpolate==="linear"?tw.A:eM).transform(n6(p,t?.duration,t?.ease,()=>n(!0)),e)}):Promise.resolve(!1)}function y(){f.on("zoom",null)}async function w(e,t,n){let r=n1(e),o=f?.constrain()(r,t,n);return o&&await v(o),new Promise(e=>e(o))}return f.wheelDelta(n8),{update:function({noWheelClassName:e,noPanClassName:t,onPaneContextMenu:n,userSelectionActive:r,panOnScroll:o,panOnDrag:i,panOnScrollMode:h,panOnScrollSpeed:v,preventScrolling:w,zoomOnPinch:b,zoomOnScroll:x,zoomOnDoubleClick:_,zoomActivationKeyPressed:E,lib:k,onTransformChange:M,connectionInProgress:O}){r&&!c.isZoomingOrPanning&&y();let j=!o||E||r?function({noWheelClassName:e,preventScrolling:t,d3ZoomHandler:n}){return function(r,o){let i="wheel"===r.type,a=!t&&i&&!r.ctrlKey,s=n2(r,e);if(r.ctrlKey&&i&&s&&r.preventDefault(),a||s)return null;r.preventDefault(),n.call(this,r,o)}}({noWheelClassName:e,preventScrolling:w,d3ZoomHandler:g}):function({zoomPanValues:e,noWheelClassName:t,d3Selection:n,d3Zoom:r,panOnScrollMode:o,panOnScrollSpeed:i,zoomOnPinch:a,onPanZoomStart:s,onPanZoom:u,onPanZoomEnd:l}){return c=>{if(n2(c,t))return c.ctrlKey&&c.preventDefault(),!1;c.preventDefault(),c.stopImmediatePropagation();let h=n.property("__zoom").k||1;if(c.ctrlKey&&a){let e=ec(c),t=h*Math.pow(2,n8(c));r.scaleTo(n,t,e,c);return}let f=1===c.deltaMode?20:1,p=o===d.Vertical?0:c.deltaX*f,g=o===d.Horizontal?0:c.deltaY*f;!t5()&&c.shiftKey&&o!==d.Vertical&&(p=c.deltaY*f,g=0),r.translateBy(n,-(p/h)*i,-(g/h)*i,{internal:!0});let m=n0(n.property("__zoom"));clearTimeout(e.panScrollTimeout),e.isPanScrolling?(u?.(c,m),e.panScrollTimeout=setTimeout(()=>{l?.(c,m),e.isPanScrolling=!1},150)):(e.isPanScrolling=!0,s?.(c,m))}}({zoomPanValues:c,noWheelClassName:e,d3Selection:p,d3Zoom:f,panOnScrollMode:h,panOnScrollSpeed:v,zoomOnPinch:b,onPanZoomStart:s,onPanZoom:a,onPanZoomEnd:u});if(p.on("wheel.zoom",j,{passive:!1}),!r){let e=function({zoomPanValues:e,onDraggingChange:t,onPanZoomStart:n}){return r=>{if(r.sourceEvent?.internal)return;let o=n0(r.transform);e.mouseButton=r.sourceEvent?.button||0,e.isZoomingOrPanning=!0,e.prevViewport=o,r.sourceEvent?.type==="mousedown"&&t(!0),n&&n?.(r.sourceEvent,o)}}({zoomPanValues:c,onDraggingChange:l,onPanZoomStart:s});f.on("start",e);let t=function({zoomPanValues:e,panOnDrag:t,onPaneContextMenu:n,onTransformChange:r,onPanZoom:o}){return i=>{e.usedRightMouseButton=!!(n&&n5(t,e.mouseButton??0)),i.sourceEvent?.sync||r([i.transform.x,i.transform.y,i.transform.k]),o&&!i.sourceEvent?.internal&&o?.(i.sourceEvent,n0(i.transform))}}({zoomPanValues:c,panOnDrag:i,onPaneContextMenu:!!n,onPanZoom:a,onTransformChange:M});f.on("zoom",t);let r=function({zoomPanValues:e,panOnDrag:t,panOnScroll:n,onDraggingChange:r,onPanZoomEnd:o,onPaneContextMenu:i}){return a=>{if(!a.sourceEvent?.internal&&(e.isZoomingOrPanning=!1,i&&n5(t,e.mouseButton??0)&&!e.usedRightMouseButton&&a.sourceEvent&&i(a.sourceEvent),e.usedRightMouseButton=!1,r(!1),o)){let t=n0(a.transform);e.prevViewport=t,clearTimeout(e.timerId),e.timerId=setTimeout(()=>{o?.(a.sourceEvent,t)},150*!!n)}}}({zoomPanValues:c,panOnDrag:i,panOnScroll:o,onPaneContextMenu:n,onPanZoomEnd:u,onDraggingChange:l});f.on("end",r)}let C=function({zoomActivationKeyPressed:e,zoomOnScroll:t,zoomOnPinch:n,panOnDrag:r,panOnScroll:o,zoomOnDoubleClick:i,userSelectionActive:a,noWheelClassName:s,noPanClassName:u,lib:l,connectionInProgress:c}){return h=>{let d=e||t,f=n&&h.ctrlKey,p="wheel"===h.type;if(1===h.button&&"mousedown"===h.type&&(n2(h,`${l}-flow__node`)||n2(h,`${l}-flow__edge`)))return!0;if(!r&&!d&&!o&&!i&&!n||a||c&&!p||n2(h,s)&&p||n2(h,u)&&(!p||o&&p&&!e)||!n&&h.ctrlKey&&p)return!1;if(!n&&"touchstart"===h.type&&h.touches?.length>1)return h.preventDefault(),!1;if(!d&&!o&&!f&&p||!r&&("mousedown"===h.type||"touchstart"===h.type)||Array.isArray(r)&&!r.includes(h.button)&&"mousedown"===h.type)return!1;let g=Array.isArray(r)&&r.includes(h.button)||!h.button||h.button<=1;return(!h.ctrlKey||p)&&g}}({zoomActivationKeyPressed:E,panOnDrag:i,zoomOnScroll:x,panOnScroll:o,zoomOnDoubleClick:_,zoomOnPinch:b,userSelectionActive:r,noPanClassName:t,noWheelClassName:e,lib:k,connectionInProgress:O});f.filter(C),_?p.on("dblclick.zoom",m):p.on("dblclick.zoom",null)},destroy:y,setViewport:async function e(e,t){let n=n1(e);return await v(n,t),new Promise(e=>e(n))},setViewportConstrained:w,getViewport:function(){let e=p?tl(p.node()):{x:0,y:0,k:1};return{x:e.x,y:e.y,zoom:e.k}},scaleTo:function(e,t){return p?new Promise(n=>{f?.interpolate(t?.interpolate==="linear"?tw.A:eM).scaleTo(n6(p,t?.duration,t?.ease,()=>n(!0)),e)}):Promise.resolve(!1)},scaleBy:function(e,t){return p?new Promise(n=>{f?.interpolate(t?.interpolate==="linear"?tw.A:eM).scaleBy(n6(p,t?.duration,t?.ease,()=>n(!0)),e)}):Promise.resolve(!1)},setScaleExtent:function(e){f?.scaleExtent(e)},setTranslateExtent:function(e){f?.translateExtent(e)},syncViewport:function(e){if(p){let t=n1(e),n=p.property("__zoom");(n.k!==e.zoom||n.x!==e.x||n.y!==e.y)&&f?.transform(p,t,null,{sync:!0})}},setClickDistance:function(e){let t=!tU(e)||e<0?0:e;f?.clickDistance(t)}}}function n4(e){let t=e.includes("right")||e.includes("left"),n=e.includes("bottom")||e.includes("top");return{isHorizontal:t,isVertical:n,affectsX:e.includes("left"),affectsY:e.includes("top")}}function n7(e,t){return Math.max(0,t-e)}function re(e,t){return Math.max(0,e-t)}function rt(e,t,n){return Math.max(0,t-e,e-n)}(l=v||(v={})).Line="line",l.Handle="handle";let rn={width:0,height:0,x:0,y:0},rr={...rn,pointerX:0,pointerY:0,aspectRatio:1};function ro({domNode:e,nodeId:t,getStoreItems:n,onChange:r,onEnd:o}){let i=el(e),a={controlDirection:n4("bottom-right"),boundaries:{minWidth:0,minHeight:0,maxWidth:Number.MAX_VALUE,maxHeight:Number.MAX_VALUE},resizeDirection:void 0,keepAspectRatio:!1};return{update:function({controlPosition:e,boundaries:s,keepAspectRatio:u,resizeDirection:l,onResizeStart:c,onResize:h,onResizeEnd:d,shouldResize:f}){let p,g,m,v,y={...rn},w={...rr};a={boundaries:s,resizeDirection:l,keepAspectRatio:u,controlDirection:n4(e)};let b=null,x=[],_=!1,E=eE().on("start",e=>{let{nodeLookup:r,transform:o,snapGrid:i,snapToGrid:a,nodeOrigin:s,paneDomNode:u}=n();if(!(p=r.get(t)))return;b=u?.getBoundingClientRect()??null;let{xSnapped:l,ySnapped:h}=nt(e.sourceEvent,{transform:o,snapGrid:i,snapToGrid:a,containerBounds:b});if(w={...y={width:p.measured.width??0,height:p.measured.height??0,x:p.position.x??0,y:p.position.y??0},pointerX:l,pointerY:h,aspectRatio:y.width/y.height},g=void 0,p.parentId&&("parent"===p.extent||p.expandParent)){var d;m=(g=r.get(p.parentId))&&"parent"===p.extent?[[0,0],[(d=g).measured.width,d.measured.height]]:void 0}for(let[e,n]of(x=[],v=void 0,r))if(n.parentId===t&&(x.push({id:e,position:{...n.position},extent:n.extent}),"parent"===n.extent||n.expandParent)){let e=function(e,t,n){let r=t.position.x+e.position.x,o=t.position.y+e.position.y,i=e.measured.width??0,a=e.measured.height??0,s=n[0]*i,u=n[1]*a;return[[r-s,o-u],[r+i-s,o+a-u]]}(n,p,n.origin??s);v=v?[[Math.min(e[0][0],v[0][0]),Math.min(e[0][1],v[0][1])],[Math.max(e[1][0],v[1][0]),Math.max(e[1][1],v[1][1])]]:e}c?.(e,{...y})}).on("drag",e=>{let{transform:t,snapGrid:o,snapToGrid:i,nodeOrigin:s}=n(),u=nt(e.sourceEvent,{transform:t,snapGrid:o,snapToGrid:i,containerBounds:b}),l=[];if(!p)return;let{x:c,y:d,width:E,height:k}=y,M={},O=p.origin??s,{width:j,height:C,x:S,y:A}=function(e,t,n,r,o,i,a,s){var u,l,c,h;let{affectsX:d,affectsY:f}=t,{isHorizontal:p,isVertical:g}=t,m=p&&g,{xSnapped:v,ySnapped:y}=n,{minWidth:w,maxWidth:b,minHeight:x,maxHeight:_}=r,{x:E,y:k,width:M,height:O,aspectRatio:j}=e,C=Math.floor(p?v-e.pointerX:0),S=Math.floor(g?y-e.pointerY:0),A=M+(d?-C:C),N=O+(f?-S:S),z=-i[0]*M,$=-i[1]*O,L=rt(A,w,b),T=rt(N,x,_);if(a){let e=0,t=0;d&&C<0?e=n7(E+C+z,a[0][0]):!d&&C>0&&(e=re(E+A+z,a[1][0])),f&&S<0?t=n7(k+S+$,a[0][1]):!f&&S>0&&(t=re(k+N+$,a[1][1])),L=Math.max(L,e),T=Math.max(T,t)}if(s){let e=0,t=0;d&&C>0?e=re(E+C,s[0][0]):!d&&C<0&&(e=n7(E+A,s[1][0])),f&&S>0?t=re(k+S,s[0][1]):!f&&S<0&&(t=n7(k+N,s[1][1])),L=Math.max(L,e),T=Math.max(T,t)}if(o){if(p){(L=Math.max(L,rt(A/j,x,_)*j),a)&&(L=Math.max(L,(d||f)&&(!d||f||!m)?n7(k+$+(d?C:-C)/j,a[0][1])*j:re(k+$+A/j,a[1][1])*j));s&&(L=Math.max(L,(d||f)&&(!d||f||!m)?re(k+(d?C:-C)/j,s[0][1])*j:n7(k+A/j,s[1][1])*j))}if(g){(T=Math.max(T,rt(N*j,w,b)/j),a)&&(T=Math.max(T,(d||f)&&(!f||d||!m)?n7(E+(f?S:-S)*j+z,a[0][0])/j:re(E+N*j+z,a[1][0])/j));s&&(T=Math.max(T,(d||f)&&(!f||d||!m)?re(E+(f?S:-S)*j,s[0][0])/j:n7(E+N*j,s[1][0])/j))}}S+=S<0?T:-T,C+=C<0?L:-L,o&&(m?A>N*j?S=((u=d,l=f,u?!l:l)?-C:C)/j:C=((c=d,h=f,c?!h:h)?-S:S)*j:p?(S=C/j,f=d):(C=S*j,d=f));let I=d?E+C:E,P=f?k+S:k;return{width:M+(d?-C:C),height:O+(f?-S:S),x:i[0]*C*(d?-1:1)+I,y:i[1]*S*(f?-1:1)+P}}(w,a.controlDirection,u,a.boundaries,a.keepAspectRatio,O,m,v),N=j!==E,z=C!==k,$=S!==c&&N,L=A!==d&&z;if(!$&&!L&&!N&&!z)return;if(($||L||1===O[0]||1===O[1])&&(M.x=$?S:y.x,M.y=L?A:y.y,y.x=M.x,y.y=M.y,x.length>0)){let e=S-c,t=A-d;for(let n of x)n.position={x:n.position.x-e+O[0]*(j-E),y:n.position.y-t+O[1]*(C-k)},l.push(n)}if((N||z)&&(M.width=N&&(!a.resizeDirection||"horizontal"===a.resizeDirection)?j:y.width,M.height=z&&(!a.resizeDirection||"vertical"===a.resizeDirection)?C:y.height,y.width=M.width,y.height=M.height),g&&p.expandParent){let e=O[0]*(M.width??0);M.x&&M.x0?1:a<0?-1:0,s>0?1:s<0?-1:0];return a&&o&&(u[0]=-1*u[0]),s&&i&&(u[1]=-1*u[1]),u}({width:y.width,prevWidth:E,height:y.height,prevHeight:k,affectsX:a.controlDirection.affectsX,affectsY:a.controlDirection.affectsY}),I={...y,direction:T};!1!==f?.(e,I)&&(_=!0,h?.(e,I),r(M,l))}).on("end",e=>{_&&(d?.(e,{...y}),o?.({...y}),_=!1)});i.call(E)},destroy:function(){i.on(".drag",null)}}}},59705:(e,t,n)=>{"use strict";n.d(t,{$:()=>u});var r=n(6029);n(55729);var o=n(80616),i=n(60481),a=n(43016);let s={},u=(0,a.P9)((e,t)=>{let{w:n,h:a,miw:u,mih:l,...c}=(0,o.Y)("Space",s,e);return(0,r.jsx)(i.a,{ref:t,...c,w:n,miw:u??n,h:a,mih:l??a})});u.displayName="@mantine/core/Space"},61528:(e,t,n)=>{var r=n(3400);e.exports=function(e){try{r(e)}catch(e){if(e instanceof r.CycleException)return!1;throw e}return!0}},64762:(e,t,n)=>{let r=n(33536),o=n(57537),i=n(23897);e.exports=function e(t,n,a,s){var u,l;let c=t.children(n),h=t.node(n),d=h?h.borderLeft:void 0,f=h?h.borderRight:void 0,p={};d&&(c=c.filter(e=>e!==d&&e!==f));let g=r(t,c);g.forEach(n=>{if(t.children(n.v).length){var r,o;let i=e(t,n.v,a,s);p[n.v]=i,Object.hasOwn(i,"barycenter")&&(r=n,o=i,void 0!==r.barycenter?(r.barycenter=(r.barycenter*r.weight+o.barycenter*o.weight)/(r.weight+o.weight),r.weight+=o.weight):(r.barycenter=o.barycenter,r.weight=o.weight))}});let m=o(g,a);u=m,l=p,u.forEach(e=>{e.vs=e.vs.flatMap(e=>l[e]?l[e].vs:e)});let v=i(m,s);if(d&&(v.vs=[d,v.vs,f].flat(!0),t.predecessors(d).length)){let e=t.node(t.predecessors(d)[0]),n=t.node(t.predecessors(f)[0]);Object.hasOwn(v,"barycenter")||(v.barycenter=0,v.weight=0),v.barycenter=(v.barycenter*v.weight+e.order+n.order)/(v.weight+2),v.weight+=2}return v}},65675:(e,t,n)=>{"use strict";var r=n(55729),o=n(27133),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=o.useSyncExternalStore,s=r.useRef,u=r.useEffect,l=r.useMemo,c=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var h=s(null);if(null===h.current){var d={hasValue:!1,value:null};h.current=d}else d=h.current;var f=a(e,(h=l(function(){function e(e){if(!u){if(u=!0,a=e,e=r(e),void 0!==o&&d.hasValue){var t=d.value;if(o(t,e))return s=t}return s=e}if(t=s,i(a,e))return t;var n=r(e);return void 0!==o&&o(t,n)?(a=e,t):(a=e,s=n)}var a,s,u=!1,l=void 0===n?null:n;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]},[t,n,r,o]))[0],h[1]);return u(function(){d.hasValue=!0,d.value=f},[f]),c(f),f}},72864:(e,t,n)=>{"use strict";function r(e,t){if(Object.is(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(let[n,r]of e)if(!Object.is(r,t.get(n)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}let n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||!Object.is(e[r],t[r]))return!1;return!0}n.d(t,{x:()=>r})},75071:(e,t,n)=>{"use strict";n.d(t,{m:()=>E});var r=n(55729);let o="u">typeof window?r.useLayoutEffect:r.useEffect;function i(e,t){o(()=>{if(e)return window.addEventListener(e,t),()=>window.removeEventListener(e,t)},[e])}function a(e){return null===e||"object"!=typeof e?{}:Object.keys(e).reduce((t,n)=>{let r=e[n];return null!=r&&!1!==r&&(t[n]=r),t},{})}function s(e,t){if(null===t||"object"!=typeof t)return{};let n={...t};return Object.keys(t).forEach(t=>{t.includes(`${String(e)}.`)&&delete n[t]}),n}function u(e,t){return parseInt(e.substring(t.length+1).split(".")[0],10)}function l(e,t,n,r){if(void 0===t)return n;let o=`${String(e)}`,i=n;-1===r&&(i=s(`${o}.${t}`,i));let a={...i},l=new Set;return Object.entries(i).filter(([e])=>{if(!e.startsWith(`${o}.`))return!1;let n=u(e,o);return!Number.isNaN(n)&&n>=t}).forEach(([e,t])=>{let n=u(e,o),i=e.replace(`${o}.${n}`,`${o}.${n+r}`);a[i]=t,l.add(i),l.has(e)||delete a[e]}),a}function c(e){return"string"!=typeof e?[]:e.split(".")}function h(e,t){let n=c(e);if(0===n.length||"object"!=typeof t||null===t)return;let r=t[n[0]];for(let e=1;ee.startsWith(`${t}.`));return e[t]||r.some(t=>e[t])||!1}return n.some(t=>e[t])}function v(e,t){return e?`${e}-${t.toString()}`:t.toString()}let y=Symbol("root-rule");function w(e){let t=a(e);return{hasErrors:Object.keys(t).length>0,errors:t}}function b(e,t){return"function"==typeof e?w(e(t)):w(function e(t,n,r="",o={}){return"object"!=typeof t||null===t?o:Object.keys(t).reduce((o,i)=>{let a=t[i],s=`${""===r?"":`${r}.`}${i}`,u=h(s,n),l=!1;return"function"==typeof a&&(o[s]=a(u,n,s)),"object"==typeof a&&Array.isArray(u)&&(l=!0,u.forEach((t,r)=>e(a,n,`${s}.${r}`,o)),y in a&&(o[s]=a[y](u,n,s))),"object"==typeof a&&"object"==typeof u&&null!==u&&(l||e(a,n,s,o),y in a&&(o[s]=a[y](u,n,s))),o},o)}(e,t))}function x(e,t,n){if("string"!=typeof e)return{hasError:!1,error:null};let r=b(t,n),o=Object.keys(r.errors).find(t=>e.split(".").every((e,n)=>e===t.split(".")[n]));return{hasError:!!o,error:o?r.errors[o]:null}}function _(e,t){return!!t&&("boolean"==typeof t?t:!!Array.isArray(t)&&t.includes(e.replace(/[.][0-9]+/g,".__MANTINE_FORM_INDEX__")))}function E({name:e,mode:t="controlled",initialValues:n,initialErrors:o={},initialDirty:u={},initialTouched:c={},clearInputErrorOnChange:d=!0,validateInputOnChange:f=!1,validateInputOnBlur:y=!1,onValuesChange:w,transformValues:k=e=>e,enhanceGetInputProps:M,validate:O,onSubmitPreventDefault:j="always",touchTrigger:C="change"}={}){let S=function(e){let[t,n]=(0,r.useState)(a(e)),o=(0,r.useRef)(t),i=(0,r.useCallback)(e=>{n(t=>{let n=a("function"==typeof e?e(t):e);return o.current=n,n})},[]),s=(0,r.useCallback)(()=>i({}),[]),u=(0,r.useCallback)(e=>{void 0!==o.current[e]&&i(t=>{let n={...t};return delete n[e],n})},[t]),l=(0,r.useCallback)((e,t)=>{null==t||!1===t?u(e):o.current[e]!==t&&i(n=>({...n,[e]:t}))},[t]);return{errorsState:t,setErrors:i,clearErrors:s,setFieldError:l,clearFieldError:u}}(o),A=function({initialValues:e,onValuesChange:t,mode:n}){let o=(0,r.useRef)(!1),[i,a]=(0,r.useState)(e||{}),s=(0,r.useRef)(i),u=(0,r.useRef)(i),l=(0,r.useCallback)(({values:e,subscribers:n,updateState:r=!0,mergeWithPreviousValues:o=!0})=>{let i=s.current,u=e instanceof Function?e(s.current):e,l=o?{...i,...u}:u;s.current=l,r&&a(l),t?.(l,i),n?.filter(Boolean).forEach(e=>e({updatedValues:l,previousValues:i}))},[t]),c=(0,r.useCallback)(e=>{let t=h(e.path,s.current),n=e.value instanceof Function?e.value(t):e.value;if(t!==n){let t=s.current,r=p(e.path,n,s.current);l({values:r,updateState:e.updateState}),e.subscribers?.filter(Boolean).forEach(n=>n({path:e.path,updatedValues:r,previousValues:t}))}},[l]),d=(0,r.useCallback)(e=>{u.current=e},[]),f=(0,r.useCallback)((e,t)=>{o.current||(o.current=!0,l({values:e,updateState:"controlled"===n}),d(e),t())},[l]),g=(0,r.useCallback)(()=>{l({values:u.current,updateState:!0,mergeWithPreviousValues:!1})},[l]),m=(0,r.useCallback)(()=>s.current,[]),v=(0,r.useCallback)(()=>u.current,[]);return{initialized:o,stateValues:i,refValues:s,valuesSnapshot:u,setValues:l,setFieldValue:c,resetValues:g,setValuesSnapshot:d,initialize:f,getValues:m,getValuesSnapshot:v}}({initialValues:n,onValuesChange:w,mode:t}),N=function({initialDirty:e,initialTouched:t,mode:n,$values:o}){let[i,a]=(0,r.useState)(t),[u,l]=(0,r.useState)(e),c=(0,r.useRef)(t),d=(0,r.useRef)(e),f=(0,r.useCallback)(e=>{let t="function"==typeof e?e(c.current):e;c.current=t,"controlled"===n&&a(t)},[]),p=(0,r.useCallback)((e,t=!1)=>{let r="function"==typeof e?e(d.current):e;d.current=r,("controlled"===n||t)&&l(r)},[]),v=(0,r.useCallback)(()=>f({}),[]),y=(0,r.useCallback)(e=>{let t=e?{...o.refValues.current,...e}:o.refValues.current;o.setValuesSnapshot(t),p({})},[]),w=(0,r.useCallback)((e,t)=>{f(n=>m(n,e)===t?n:{...n,[e]:t})},[]),b=(0,r.useCallback)((e,t,n)=>{p(n=>m(n,e)===t?n:{...n,[e]:t},n)},[]),x=(0,r.useCallback)((e,t)=>{let n=m(d.current,e),r=!g(h(e,o.getValuesSnapshot()),t),i=s(e,d.current);i[e]=r,p(i,n!==r)},[]),_=(0,r.useCallback)(e=>m(c.current,e),[]),E=(0,r.useCallback)(e=>p(t=>{if("string"!=typeof e)return t;let n=s(e,t);return(delete n[e],g(n,t))?t:n}),[]),k=(0,r.useCallback)(e=>{if(e){let t=h(e,d.current);return"boolean"==typeof t?t:!g(h(e,o.refValues.current),h(e,o.valuesSnapshot.current))}return Object.keys(d.current).length>0?m(d.current):!g(o.refValues.current,o.valuesSnapshot.current)},[]),M=(0,r.useCallback)(()=>d.current,[]),O=(0,r.useCallback)(()=>c.current,[]);return{touchedState:i,dirtyState:u,touchedRef:c,dirtyRef:d,setTouched:f,setDirty:p,resetDirty:y,resetTouched:v,isTouched:_,setFieldTouched:w,setFieldDirty:b,setTouchedState:a,setDirtyState:l,clearFieldDirty:E,isDirty:k,getDirty:M,getTouched:O,setCalculatedFieldDirty:x}}({initialDirty:u,initialTouched:c,$values:A,mode:t}),z=function({$values:e,$errors:t,$status:n}){let o=(0,r.useCallback)((r,o)=>{n.clearFieldDirty(r),t.setErrors(e=>(function(e,{from:t,to:n},r){let o=`${e}.${t}`,i=`${e}.${n}`,a={...r},s=new Set;return Object.keys(r).forEach(e=>{let t,n;if(!s.has(e)&&(e.startsWith(o)?(t=e,n=e.replace(o,i)):e.startsWith(i)&&(t=e.replace(i,o),n=e),t&&n)){let e=a[t],r=a[n];void 0===r?delete a[t]:a[t]=r,void 0===e?delete a[n]:a[n]=e,s.add(t),s.add(n)}}),a})(r,o,e)),e.setValues({values:function(e,{from:t,to:n},r){let o=h(e,r);if(!Array.isArray(o))return r;let i=[...o],a=o[t];return i.splice(t,1),i.splice(n,0,a),p(e,i,r)}(r,o,e.refValues.current),updateState:!0})},[]),i=(0,r.useCallback)((r,o)=>{var i;let a;n.clearFieldDirty(r),t.setErrors(e=>l(r,o,e,-1)),e.setValues({values:Array.isArray(a=h(r,i=e.refValues.current))?p(r,a.filter((e,t)=>t!==o),i):i,updateState:!0})},[]);return{reorderListItem:o,removeListItem:i,insertListItem:(0,r.useCallback)((r,o,i)=>{n.clearFieldDirty(r),t.setErrors(e=>l(r,i,e,1)),e.setValues({values:function(e,t,n,r){let o=h(e,r);if(!Array.isArray(o))return r;let i=[...o];return i.splice("number"==typeof n?n:i.length,0,t),p(e,i,r)}(r,o,i,e.refValues.current),updateState:!0})},[]),replaceListItem:(0,r.useCallback)((t,r,o)=>{n.clearFieldDirty(t),e.setValues({values:function(e,t,n,r){let o=h(e,r);if(!Array.isArray(o)||o.length<=n)return r;let i=[...o];return i[n]=t,p(e,i,r)}(t,o,r,e.refValues.current),updateState:!0})},[])}}({$values:A,$errors:S,$status:N}),$=function({$status:e}){let t=(0,r.useRef)({}),n=(0,r.useCallback)((e,n)=>{(0,r.useEffect)(()=>(t.current[e]=t.current[e]||[],t.current[e].push(n),()=>{t.current[e]=t.current[e].filter(e=>e!==n)}),[n])},[]),o=(0,r.useCallback)(n=>t.current[n]?t.current[n].map(t=>r=>t({previousValue:h(n,r.previousValues),value:h(n,r.updatedValues),touched:e.isTouched(n),dirty:e.isDirty(n)})):[],[]);return{subscribers:t,watch:n,getFieldSubscribers:o}}({$status:N}),[L,T]=(0,r.useState)(0),[I,P]=(0,r.useState)({}),[D,R]=(0,r.useState)(!1),V=(0,r.useCallback)(()=>{A.resetValues(),S.clearErrors(),N.resetDirty(),N.resetTouched(),"uncontrolled"===t&&T(e=>e+1)},[]),B=(0,r.useCallback)(e=>{d&&S.clearErrors(),"uncontrolled"===t&&T(e=>e+1),Object.keys($.subscribers.current).forEach(t=>{h(t,A.refValues.current)!==h(t,e)&&$.getFieldSubscribers(t).forEach(t=>t({previousValues:e,updatedValues:A.refValues.current}))})},[d]),F=(0,r.useCallback)(e=>{let n=A.refValues.current;A.initialize(e,()=>"uncontrolled"===t&&T(e=>e+1)),B(n)},[B]),H=(0,r.useCallback)((e,n,r)=>{let o=_(e,f),i=n instanceof Function?n(h(e,A.refValues.current)):n;N.setCalculatedFieldDirty(e,i),"change"===C&&N.setFieldTouched(e,!0),!o&&d&&S.clearFieldError(e),A.setFieldValue({path:e,value:n,updateState:"controlled"===t,subscribers:[...$.getFieldSubscribers(e),o?t=>{let n=x(e,O,t.updatedValues);n.hasError?S.setFieldError(e,n.error):S.clearFieldError(e)}:null,r?.forceUpdate!==!1&&"controlled"!==t?()=>P(t=>({...t,[e]:(t[e]||0)+1})):null]})},[w,O]),X=(0,r.useCallback)(e=>{let n=A.refValues.current;A.setValues({values:e,updateState:"controlled"===t}),B(n)},[w,B]),Y=(0,r.useCallback)(()=>{let e=b(O,A.refValues.current);return S.setErrors(e.errors),e},[O]),q=(0,r.useCallback)(e=>{let t=x(e,O,A.refValues.current);return t.hasError?S.setFieldError(e,t.error):S.clearFieldError(e),t},[O]),W=(0,r.useCallback)(e=>{e.preventDefault(),V()},[]),G=(0,r.useCallback)(e=>e?!x(e,O,A.refValues.current).hasError:!b(O,A.refValues.current).hasErrors,[O]),K=(0,r.useCallback)(t=>document.querySelector(`[data-path="${v(e,t)}"]`),[]),U={watch:$.watch,initialized:A.initialized.current,values:A.stateValues,getValues:A.getValues,getInitialValues:A.getValuesSnapshot,setInitialValues:A.setValuesSnapshot,initialize:F,setValues:X,setFieldValue:H,submitting:D,setSubmitting:R,errors:S.errorsState,setErrors:S.setErrors,setFieldError:S.setFieldError,clearFieldError:S.clearFieldError,clearErrors:S.clearErrors,resetDirty:N.resetDirty,setTouched:N.setTouched,setDirty:N.setDirty,isTouched:N.isTouched,resetTouched:N.resetTouched,isDirty:N.isDirty,getTouched:N.getTouched,getDirty:N.getDirty,reorderListItem:z.reorderListItem,insertListItem:z.insertListItem,removeListItem:z.removeListItem,replaceListItem:z.replaceListItem,reset:V,validate:Y,validateField:q,getInputProps:(n,{type:r="input",withError:o=!0,withFocus:i=!0,...a}={})=>{var s;let u={onChange:(s=e=>H(n,e,{forceUpdate:!1}),e=>{if(e)if("function"==typeof e)s(e);else if("object"==typeof e&&"nativeEvent"in e){let{currentTarget:t}=e;t instanceof HTMLInputElement?"checkbox"===t.type?s(t.checked):s(t.value):(t instanceof HTMLTextAreaElement||t instanceof HTMLSelectElement)&&s(t.value)}else s(e);else s(e)}),"data-path":v(e,n)};return o&&(u.error=S.errorsState[n]),"checkbox"===r?u["controlled"===t?"checked":"defaultChecked"]=h(n,A.refValues.current):u["controlled"===t?"value":"defaultValue"]=h(n,A.refValues.current),i&&(u.onFocus=()=>N.setFieldTouched(n,!0),u.onBlur=()=>{if(_(n,y)){let e=x(n,O,A.refValues.current);e.hasError?S.setFieldError(n,e.error):S.clearFieldError(n)}}),Object.assign(u,M?.({inputProps:u,field:n,options:{type:r,withError:o,withFocus:i,...a},form:U}))},onSubmit:(e,t)=>n=>{"always"===j&&n?.preventDefault();let r=Y();if(r.hasErrors)"validation-failed"===j&&n?.preventDefault(),t?.(r.errors,A.refValues.current,n);else{let t=e?.(k(A.refValues.current),n);t instanceof Promise&&(R(!0),t.finally(()=>R(!1)))}},onReset:W,isValid:G,getTransformedValues:e=>k(e||A.refValues.current),key:e=>`${L}-${e}-${I[e]||0}`,getInputNode:K};return e&&function(e){if(!/^[0-9a-zA-Z-]+$/.test(e))throw Error(`[@mantine/use-form] Form name "${e}" is invalid, it should contain only letters, numbers and dashes`)}(e),i(`mantine-form:${e}:set-field-value`,e=>U.setFieldValue(e.detail.path,e.detail.value)),i(`mantine-form:${e}:set-values`,e=>U.setValues(e.detail)),i(`mantine-form:${e}:set-initial-values`,e=>U.setInitialValues(e.detail)),i(`mantine-form:${e}:set-errors`,e=>U.setErrors(e.detail)),i(`mantine-form:${e}:set-field-error`,e=>U.setFieldError(e.detail.path,e.detail.error)),i(`mantine-form:${e}:clear-field-error`,e=>U.clearFieldError(e.detail)),i(`mantine-form:${e}:clear-errors`,U.clearErrors),i(`mantine-form:${e}:reset`,U.reset),i(`mantine-form:${e}:validate`,U.validate),i(`mantine-form:${e}:validate-field`,e=>U.validateField(e.detail)),i(`mantine-form:${e}:reorder-list-item`,e=>U.reorderListItem(e.detail.path,e.detail.payload)),i(`mantine-form:${e}:remove-list-item`,e=>U.removeListItem(e.detail.path,e.detail.index)),i(`mantine-form:${e}:insert-list-item`,e=>U.insertListItem(e.detail.path,e.detail.item,e.detail.index)),i(`mantine-form:${e}:set-dirty`,e=>U.setDirty(e.detail)),i(`mantine-form:${e}:set-touched`,e=>U.setTouched(e.detail)),i(`mantine-form:${e}:reset-dirty`,e=>U.resetDirty(e.detail)),i(`mantine-form:${e}:reset-touched`,U.resetTouched),U}},75593:(e,t,n)=>{"use strict";let r=n(11280).zipObject;e.exports=function(e,t){let n=0;for(let o=1;ot)),i=t.flatMap(t=>e.outEdges(t).map(t=>({pos:o[t.w],weight:e.edge(t).weight})).sort((e,t)=>e.pos-t.pos)),a=1;for(;a{let t=e.pos+a;u[t]+=e.weight;let n=0;for(;t>0;)t%2&&(n+=u[t+1]),t=t-1>>1,u[t]+=e.weight;l+=e.weight*n}),l}(e,t[o-1],t[o]);return n}},78270:(e,t,n)=>{"use strict";let r=n(11280);e.exports=function(e){let t={},n=e.nodes().filter(t=>!e.children(t).length),o=n.map(t=>e.node(t).rank),i=r.applyWithChunking(Math.max,o),a=r.range(i+1).map(()=>[]);return n.sort((t,n)=>e.node(t).rank-e.node(n).rank).forEach(function n(r){t[r]||(t[r]=!0,a[e.node(r).rank].push(r),e.successors(r).forEach(n))}),a}},83031:(e,t,n)=>{"use strict";let r=n(78270),o=n(75593),i=n(64762),a=n(14134),s=n(54780),u=n(49010).Graph,l=n(11280);function c(e,t,n){return t.map(function(t){return a(e,t,n)})}function h(e,t){Object.values(t).forEach(t=>t.forEach((t,n)=>e.node(t).order=n))}e.exports=function e(t,n){if(n&&"function"==typeof n.customOrder)return void n.customOrder(t,e);let a=l.maxRank(t),d=c(t,l.range(1,a+1),"inEdges"),f=c(t,l.range(a-1,-1,-1),"outEdges"),p=r(t);if(h(t,p),n&&n.disableOptimalOrderHeuristic)return;let g=1/0,m;for(let e=0,n=0;n<4;++e,++n){(function(e,t){let n=new u;e.forEach(function(e){let r=e.graph().root,o=i(e,r,n,t);o.vs.forEach((t,n)=>e.node(t).order=n),s(e,n,o.vs)})})(e%2?d:f,e%4>=2),p=l.buildLayerMatrix(t);let r=o(t,p);r{var r=n(51825);e.exports=function(e,t,n,i){return function(e,t,n,o){var i,a,s={},u=new r,l=function(e){var t=e.v!==i?e.v:e.w,r=s[t],o=n(e),l=a.distance+o;if(o<0)throw Error("dijkstra does not allow negative edge weights. Bad edge: "+e+" Weight: "+o);l0&&(a=s[i=u.removeMin()]).distance!==1/0;)o(i).forEach(l);return s}(e,String(t),n||o,i||function(t){return e.outEdges(t)})};var o=()=>1},85596:(e,t,n)=>{"use strict";var r=n(55729),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useState,a=r.useEffect,s=r.useLayoutEffect,u=r.useDebugValue;function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var c="u"{"use strict";var r=n(37039).longestPath,o=n(91485),i=n(11844);e.exports=function(e){var t,n=e.graph().ranker;if(n instanceof Function)return n(e);switch(e.graph().ranker){case"network-simplex":default:i(e);break;case"tight-tree":r(t=e),o(t);break;case"longest-path":a(e);case"none":}};var a=r},88885:e=>{e.exports=function(e){var t=0,n=[],r={},o=[];return e.nodes().forEach(function(i){Object.hasOwn(r,i)||function i(a){var s=r[a]={onStack:!0,lowlink:t,index:t++};if(n.push(a),e.successors(a).forEach(function(e){Object.hasOwn(r,e)?r[e].onStack&&(s.lowlink=Math.min(s.lowlink,r[e].index)):(i(e),s.lowlink=Math.min(s.lowlink,r[e].lowlink))}),s.lowlink===s.index){var u,l=[];do r[u=n.pop()].onStack=!1,l.push(u);while(a!==u);o.push(l)}}(i)}),o}},90124:(e,t,n)=>{"use strict";n.d(t,{I:()=>j});var r=n(6029),o=n(55729),i=n(15811),a=n(3001),s=n(60466),u=n(56655),l=n(76),c=n(5618),h=n(66404),d=n(92096),f=n(15862),p=n(80616),g=n(37666),m=n(60481),v=n(43016),y=n(45490),w=n(64402),b={root:"m_96b553a6"};let x={},_=(0,c.V)((e,{transitionDuration:t})=>({root:{"--transition-duration":"number"==typeof t?`${t}ms`:t}})),E=(0,v.P9)((e,t)=>{let n=(0,p.Y)("FloatingIndicator",x,e),{classNames:i,className:a,style:s,styles:l,unstyled:c,vars:h,target:d,parent:f,transitionDuration:v,mod:E,displayAfterTransitionEnd:k,...M}=n,O=(0,g.I)({name:"FloatingIndicator",classes:b,props:n,className:a,style:s,classNames:i,styles:l,unstyled:c,vars:h,varsResolver:_}),j=(0,o.useRef)(null),{initialized:C,hidden:S}=function({target:e,parent:t,ref:n,displayAfterTransitionEnd:r}){var i,a,s;let u,l,c=(0,o.useRef)(-1),[h,d]=(0,o.useState)(!1),[f,p]=(0,o.useState)("boolean"==typeof r&&r),g=()=>{if(!e||!t||!n.current)return;let r=e.getBoundingClientRect(),o=t.getBoundingClientRect(),i=window.getComputedStyle(e),a=window.getComputedStyle(t),s=(0,w.R)(i.borderTopWidth)+(0,w.R)(a.borderTopWidth),u=(0,w.R)(i.borderLeftWidth)+(0,w.R)(a.borderLeftWidth),l={top:r.top-o.top-s,left:r.left-o.left-u,width:r.width,height:r.height};n.current.style.transform=`translateY(${l.top}px) translateX(${l.left}px)`,n.current.style.width=`${l.width}px`,n.current.style.height=`${l.height}px`},m=()=>{window.clearTimeout(c.current),n.current&&(n.current.style.transitionDuration="0ms"),g(),c.current=window.setTimeout(()=>{n.current&&(n.current.style.transitionDuration="")},30)},v=(0,o.useRef)(null),b=(0,o.useRef)(null);return(0,o.useEffect)(()=>{if(g(),e)return v.current=new ResizeObserver(m),v.current.observe(e),t&&(b.current=new ResizeObserver(m),b.current.observe(t)),()=>{v.current?.disconnect(),b.current?.disconnect()}},[t,e]),(0,o.useEffect)(()=>{if(t){let e=e=>{(function(e,t){if(!t||!e)return!1;let n=t.parentNode;for(;null!=n;){if(n===e)return!0;n=n.parentNode}return!1})(e.target,t)&&(m(),p(!1))};return t.addEventListener("transitionend",e),()=>{t.removeEventListener("transitionend",e)}}},[t]),function(e,t,n={autoInvoke:!1}){let r=(0,o.useRef)(null),i=(0,o.useCallback)((...t)=>{r.current||(r.current=window.setTimeout(()=>{e(t),r.current=null},20))},[20]),a=(0,o.useCallback)(()=>{r.current&&(window.clearTimeout(r.current),r.current=null)},[]);(0,o.useEffect)(()=>(n.autoInvoke&&i(),a),[a,i])}(()=>{"test"!==(0,y._)()&&d(!0)},0,{autoInvoke:!0}),i=e=>{e.forEach(e=>{"attributes"===e.type&&"dir"===e.attributeName&&m()})},a={attributes:!0,attributeFilter:["dir"]},s=()=>document.documentElement,u=(0,o.useRef)(null),l=(0,o.useRef)(null),(0,o.useEffect)(()=>{let e=s();return(e||l.current)&&(u.current=new MutationObserver(i),u.current.observe(e||l.current,a)),()=>{u.current?.disconnect()}},[i,a]),{initialized:h,hidden:f}}({target:d,parent:f,ref:j,displayAfterTransitionEnd:k}),A=(0,u.pc)(t,j);return d&&f?(0,r.jsx)(m.a,{ref:A,mod:[{initialized:C,hidden:S},E],...O("root"),...M}):null});E.displayName="@mantine/core/FloatingIndicator",E.classes=b;var k={root:"m_cf365364",indicator:"m_9e182ccd",label:"m_1738fcb2",input:"m_1714d588",control:"m_69686b9b",innerLabel:"m_78882f40"};let M={withItemsBorders:!0},O=(0,c.V)((e,{radius:t,color:n,transitionDuration:r,size:o,transitionTimingFunction:i})=>({root:{"--sc-radius":void 0===t?void 0:(0,l.nJ)(t),"--sc-color":n?(0,h.r)(n,e):void 0,"--sc-shadow":n?void 0:"var(--mantine-shadow-xs)","--sc-transition-duration":void 0===r?void 0:`${r}ms`,"--sc-transition-timing-function":i,"--sc-padding":(0,l.YC)(o,"sc-padding"),"--sc-font-size":(0,l.ny)(o)}})),j=(0,v.P9)((e,t)=>{var n,l;let c,h,v=(0,p.Y)("SegmentedControl",M,e),{classNames:y,className:w,style:b,styles:x,unstyled:_,vars:j,data:C,value:S,defaultValue:A,onChange:N,size:z,name:$,disabled:L,readOnly:T,fullWidth:I,orientation:P,radius:D,color:R,transitionDuration:V,transitionTimingFunction:B,variant:F,autoContrast:H,withItemsBorders:X,mod:Y,...q}=v,W=(0,g.I)({name:"SegmentedControl",props:v,classes:k,className:w,style:b,classNames:y,styles:x,unstyled:_,vars:j,varsResolver:O}),G=(0,f.xd)(),K=C.map(e=>"string"==typeof e?{label:e,value:e}:e),U=function(){let[e,t]=(0,o.useState)(!1);return(0,o.useEffect)(()=>t(!0),[]),e}(),[Z,Q]=(0,o.useState)((0,i.z)()),[J,ee]=(0,o.useState)(null),[et,en]=(0,o.useState)({}),[er,eo]=(0,a.Z)({value:S,defaultValue:A,finalValue:Array.isArray(C)?K.find(e=>!e.disabled)?.value??C[0]?.value??null:null,onChange:N}),ei=(0,s.B)($),ea=K.map(e=>(0,o.createElement)(m.a,{...W("control"),mod:{active:er===e.value,orientation:P},key:e.value},(0,o.createElement)("input",{...W("input"),disabled:L||e.disabled,type:"radio",name:ei,value:e.value,id:`${ei}-${e.value}`,checked:er===e.value,onChange:()=>!T&&eo(e.value),"data-focus-ring":G.focusRing,key:`${e.value}-input`}),(0,o.createElement)(m.a,{component:"label",...W("label"),mod:{active:er===e.value&&!(L||e.disabled),disabled:L||e.disabled,"read-only":T},htmlFor:`${ei}-${e.value}`,ref:t=>{et[e.value]=t,en(et)},__vars:{"--sc-label-color":void 0!==R?(0,d.w)({color:R,theme:G,autoContrast:H}):void 0},key:`${e.value}-label`},(0,r.jsx)("span",{...W("innerLabel"),children:e.label})))),es=(0,u.pc)(t,e=>ee(e));return(n=()=>{Q((0,i.z)())},l=[C.length],(0,o.useEffect)(n,(c=(0,o.useRef)([]),h=(0,o.useRef)(0),!function(e,t){if(!e||!t)return!1;if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n{"use strict";let r=n(11280);e.exports={run:function(e){e.graph().dummyChains=[],e.edges().forEach(t=>(function(e,t){let n,o,i,a=t.v,s=e.node(a).rank,u=t.w,l=e.node(u).rank,c=t.name,h=e.edge(t),d=h.labelRank;if(l!==s+1){for(e.removeEdge(t),i=0,++s;s{let n,r=e.node(t),o=r.edgeLabel;for(e.setEdge(r.edgeObj,o);r.dummy;)n=e.successors(t)[0],e.removeNode(t),o.points.push({x:r.x,y:r.y}),"edge-label"===r.dummy&&(o.x=r.x,o.y=r.y,o.width=r.width,o.height=r.height),t=n,r=e.node(t)})}}},91485:(e,t,n)=>{"use strict";var r=n(49010).Graph,o=n(37039).slack;e.exports=function(e){var t,n,i,a,s=new r({directed:!1}),u=e.nodes()[0],l=e.nodeCount();for(s.setNode(u,{});t=s,n=e,t.nodes().forEach(function e(r){n.nodeEdges(r).forEach(i=>{var a=i.v,s=r===a?i.w:a;t.hasNode(s)||o(n,i)||(t.setNode(s,{}),t.setEdge(r,s,{}),e(s))})}),t.nodeCount(){let i=1/0;return(e.hasNode(r.v)!==e.hasNode(r.w)&&(i=o(t,r)),it.node(e).rank+=n)}(s,e,a);return s}}}]); \ No newline at end of file diff --git a/out/_next/static/chunks/5948-68ff120004c4d125.js b/out/_next/static/chunks/5948-68ff120004c4d125.js new file mode 100644 index 0000000..22d0633 --- /dev/null +++ b/out/_next/static/chunks/5948-68ff120004c4d125.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5948],{229:e=>{e.exports=function(e){return!!e&&"string"!=typeof e&&(e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&"String"!==e.constructor.name))}},831:(e,t,r)=>{var n=r(68988),a=r(22180);e.exports=function(e,t){return e&&e.length?a(e,n(t,2)):[]}},1178:(e,t,r)=>{var n=r(38561),a=r(74981),o=r(48286),i=r(17782),s=r(1920),l=r(8578),c=r(2327),u=r(81515),d=r(45516);e.exports=function e(t,r,h,f,p,m,b,g,v,y){var w=128&r,E=1&r,x=2&r,M=24&r,N=512&r,D=x?void 0:i(t);function S(){for(var T=arguments.length,C=Array(T),_=T;_--;)C[_]=arguments[_];if(M)var k=l(S),A=o(C,k);if(f&&(C=n(C,f,p,M)),m&&(C=a(C,m,b,M)),T-=A,M&&T1&&C.reverse(),w&&v{var n=r(69926),a=r(74209),o=r(27288),i=r(19169);e.exports=function(e,t,r){var s=t+"";return o(e,a(s,i(n(s),r)))}},1920:(e,t,r)=>{var n=r(85274),a=r(44040),o=r(1620);e.exports=function(e,t,r,i,s,l,c,u,d,h){var f=8&t;t|=f?32:64,4&(t&=~(f?64:32))||(t&=-4);var p=[e,t,s,f?l:void 0,f?c:void 0,f?void 0:l,f?void 0:c,u,d,h],m=r.apply(void 0,p);return n(e)&&a(m,p),m.placeholder=i,o(m,e,t)}},2193:(e,t,r)=>{var n=r(3128),a=r(29090),o=r(31835),i=r(96024),s=r(53140),l=r(91544),c=r(9541),u=r(43562),d="[object Arguments]",h="[object Array]",f="[object Object]",p=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,m,b,g){var v=l(e),y=l(t),w=v?h:s(e),E=y?h:s(t);w=w==d?f:w,E=E==d?f:E;var x=w==f,M=E==f,N=w==E;if(N&&c(e)){if(!c(t))return!1;v=!0,x=!1}if(N&&!x)return g||(g=new n),v||u(e)?a(e,t,r,m,b,g):o(e,t,w,r,m,b,g);if(!(1&r)){var D=x&&p.call(e,"__wrapped__"),S=M&&p.call(t,"__wrapped__");if(D||S){var T=D?e.value():e,C=S?t.value():t;return g||(g=new n),b(T,C,r,m,g)}}return!!N&&(g||(g=new n),i(e,t,r,m,b,g))}},2327:(e,t,r)=>{var n=r(97722),a=r(13920),o=Math.min;e.exports=function(e,t){for(var r=e.length,i=o(t.length,r),s=n(e);i--;){var l=t[i];e[i]=a(l,r)?s[l]:void 0}return e}},2882:e=>{e.exports=function(e){return e!=e}},6033:function(e,t,r){var n;n=r(35596),function(e){for(var t=n.lib,r=t.WordArray,a=t.Hasher,o=n.algo,i=[],s=0;s<64;s++)i[s]=0x100000000*e.abs(e.sin(s+1))|0;var l=o.MD5=a.extend({_doReset:function(){this._hash=new r.init([0x67452301,0xefcdab89,0x98badcfe,0x10325476])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,a=e[n];e[n]=(a<<8|a>>>24)&0xff00ff|(a<<24|a>>>8)&0xff00ff00}var o=this._hash.words,s=e[t+0],l=e[t+1],f=e[t+2],p=e[t+3],m=e[t+4],b=e[t+5],g=e[t+6],v=e[t+7],y=e[t+8],w=e[t+9],E=e[t+10],x=e[t+11],M=e[t+12],N=e[t+13],D=e[t+14],S=e[t+15],T=o[0],C=o[1],_=o[2],k=o[3];T=c(T,C,_,k,s,7,i[0]),k=c(k,T,C,_,l,12,i[1]),_=c(_,k,T,C,f,17,i[2]),C=c(C,_,k,T,p,22,i[3]),T=c(T,C,_,k,m,7,i[4]),k=c(k,T,C,_,b,12,i[5]),_=c(_,k,T,C,g,17,i[6]),C=c(C,_,k,T,v,22,i[7]),T=c(T,C,_,k,y,7,i[8]),k=c(k,T,C,_,w,12,i[9]),_=c(_,k,T,C,E,17,i[10]),C=c(C,_,k,T,x,22,i[11]),T=c(T,C,_,k,M,7,i[12]),k=c(k,T,C,_,N,12,i[13]),_=c(_,k,T,C,D,17,i[14]),C=c(C,_,k,T,S,22,i[15]),T=u(T,C,_,k,l,5,i[16]),k=u(k,T,C,_,g,9,i[17]),_=u(_,k,T,C,x,14,i[18]),C=u(C,_,k,T,s,20,i[19]),T=u(T,C,_,k,b,5,i[20]),k=u(k,T,C,_,E,9,i[21]),_=u(_,k,T,C,S,14,i[22]),C=u(C,_,k,T,m,20,i[23]),T=u(T,C,_,k,w,5,i[24]),k=u(k,T,C,_,D,9,i[25]),_=u(_,k,T,C,p,14,i[26]),C=u(C,_,k,T,y,20,i[27]),T=u(T,C,_,k,N,5,i[28]),k=u(k,T,C,_,f,9,i[29]),_=u(_,k,T,C,v,14,i[30]),C=u(C,_,k,T,M,20,i[31]),T=d(T,C,_,k,b,4,i[32]),k=d(k,T,C,_,y,11,i[33]),_=d(_,k,T,C,x,16,i[34]),C=d(C,_,k,T,D,23,i[35]),T=d(T,C,_,k,l,4,i[36]),k=d(k,T,C,_,m,11,i[37]),_=d(_,k,T,C,v,16,i[38]),C=d(C,_,k,T,E,23,i[39]),T=d(T,C,_,k,N,4,i[40]),k=d(k,T,C,_,s,11,i[41]),_=d(_,k,T,C,p,16,i[42]),C=d(C,_,k,T,g,23,i[43]),T=d(T,C,_,k,w,4,i[44]),k=d(k,T,C,_,M,11,i[45]),_=d(_,k,T,C,S,16,i[46]),C=d(C,_,k,T,f,23,i[47]),T=h(T,C,_,k,s,6,i[48]),k=h(k,T,C,_,v,10,i[49]),_=h(_,k,T,C,D,15,i[50]),C=h(C,_,k,T,b,21,i[51]),T=h(T,C,_,k,M,6,i[52]),k=h(k,T,C,_,p,10,i[53]),_=h(_,k,T,C,E,15,i[54]),C=h(C,_,k,T,l,21,i[55]),T=h(T,C,_,k,y,6,i[56]),k=h(k,T,C,_,S,10,i[57]),_=h(_,k,T,C,g,15,i[58]),C=h(C,_,k,T,N,21,i[59]),T=h(T,C,_,k,m,6,i[60]),k=h(k,T,C,_,x,10,i[61]),_=h(_,k,T,C,f,15,i[62]),C=h(C,_,k,T,w,21,i[63]),o[0]=o[0]+T|0,o[1]=o[1]+C|0,o[2]=o[2]+_|0,o[3]=o[3]+k|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,a=8*t.sigBytes;r[a>>>5]|=128<<24-a%32;var o=e.floor(n/0x100000000);r[(a+64>>>9<<4)+15]=(o<<8|o>>>24)&0xff00ff|(o<<24|o>>>8)&0xff00ff00,r[(a+64>>>9<<4)+14]=(n<<8|n>>>24)&0xff00ff|(n<<24|n>>>8)&0xff00ff00,t.sigBytes=(r.length+1)*4,this._process();for(var i=this._hash,s=i.words,l=0;l<4;l++){var c=s[l];s[l]=(c<<8|c>>>24)&0xff00ff|(c<<24|c>>>8)&0xff00ff00}return i},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,t,r,n,a,o,i){var s=e+(t&r|~t&n)+a+i;return(s<>>32-o)+t}function u(e,t,r,n,a,o,i){var s=e+(t&n|r&~n)+a+i;return(s<>>32-o)+t}function d(e,t,r,n,a,o,i){var s=e+(t^r^n)+a+i;return(s<>>32-o)+t}function h(e,t,r,n,a,o,i){var s=e+(r^(t|~n))+a+i;return(s<>>32-o)+t}n.MD5=a._createHelper(l),n.HmacMD5=a._createHmacHelper(l)}(Math),e.exports=n.MD5},6723:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var n=(0,r(41495).A)("outline","minus","IconMinus",[["path",{d:"M5 12l14 0",key:"svg-0"}]])},6802:(e,t,r)=>{var n=r(3128),a=r(7855);e.exports=function(e,t,r,o){var i=r.length,s=i,l=!o;if(null==e)return!s;for(e=Object(e);i--;){var c=r[i];if(l&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++i{var n=r(2193),a=r(3619);e.exports=function e(t,r,o,i,s){return t===r||(null!=t&&null!=r&&(a(t)||a(r))?n(t,r,o,i,e,s):t!=t&&r!=r)}},8271:(e,t,r)=>{let n=r(48718),a=r(14430),o={};Object.keys(n).forEach(e=>{o[e]={},Object.defineProperty(o[e],"channels",{value:n[e].channels}),Object.defineProperty(o[e],"labels",{value:n[e].labels});let t=a(e);Object.keys(t).forEach(r=>{let n,a,i=t[r];o[e][r]=(n=function(...e){let t=e[0];if(null==t)return t;t.length>1&&(e=t);let r=i(e);if("object"==typeof r)for(let e=r.length,t=0;t1&&(e=t),i(e))},"conversion"in i&&(a.conversion=i.conversion),a)})}),e.exports=o},8468:(e,t,r)=>{"use strict";r.d(t,{u:()=>f});var n=r(6029);r(55729);var a=r(76),o=r(5618),i=r(80616),s=r(37666),l=r(60481),c=r(43016),u={root:"m_dc6f14e2"};let d={},h=(0,o.V)((e,{size:t})=>({root:{"--kbd-fz":(0,a.YC)(t,"kbd-fz"),"--kbd-padding":(0,a.YC)(t,"kbd-padding")}})),f=(0,c.P9)((e,t)=>{let r=(0,i.Y)("Kbd",d,e),{classNames:a,className:o,style:c,styles:f,unstyled:p,vars:m,...b}=r,g=(0,s.I)({name:"Kbd",classes:u,props:r,className:o,style:c,classNames:a,styles:f,unstyled:p,vars:m,varsResolver:h});return(0,n.jsx)(l.a,{component:"kbd",ref:t,...g("root"),...b})});f.classes=u,f.displayName="@mantine/core/Kbd"},8578:e=>{e.exports=function(e){return e.placeholder}},9385:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var n=(0,r(41495).A)("outline","filter","IconFilter",[["path",{d:"M4 4h16v2.172a2 2 0 0 1 -.586 1.414l-4.414 4.414v7l-6 2v-8.5l-4.48 -4.928a2 2 0 0 1 -.52 -1.345v-2.227z",key:"svg-0"}]])},10174:(e,t,r)=>{"use strict";r.d(t,{_:()=>H});var n=r(6029),a=r(55729),o=r(69626),i=r(80616),s=r(43016),l=r(65837);let[c,u]=(0,r(36254).F)("Drawer component was not found in tree");var d={root:"m_f11b401e",header:"m_5a7c2c9",content:"m_b8a05bbd",inner:"m_31cd769a"};let h={},f=(0,s.P9)((e,t)=>{let{classNames:r,className:a,style:o,styles:s,vars:c,...d}=(0,i.Y)("DrawerBody",h,e),f=u();return(0,n.jsx)(l.v,{ref:t,...f.getStyles("body",{classNames:r,style:o,styles:s,className:a}),...d})});f.classes=d,f.displayName="@mantine/core/DrawerBody";var p=r(68373);let m={},b=(0,s.P9)((e,t)=>{let{classNames:r,className:a,style:o,styles:s,vars:l,...c}=(0,i.Y)("DrawerCloseButton",m,e),d=u();return(0,n.jsx)(p.F,{ref:t,...d.getStyles("close",{classNames:r,style:o,styles:s,className:a}),...c})});b.classes=d,b.displayName="@mantine/core/DrawerCloseButton";var g=r(25878),v=r(87816);let y={},w=(0,s.P9)((e,t)=>{let{classNames:r,className:a,style:o,styles:s,vars:l,children:c,radius:d,__hidden:h,...f}=(0,i.Y)("DrawerContent",y,e),p=u(),m=p.scrollAreaComponent||v.a;return(0,n.jsx)(g.c,{...p.getStyles("content",{className:a,style:o,styles:s,classNames:r}),innerProps:p.getStyles("inner",{className:a,style:o,styles:s,classNames:r}),ref:t,...f,radius:d||p.radius||0,"data-hidden":h||void 0,children:(0,n.jsx)(m,{style:{height:"calc(100vh - var(--drawer-offset) * 2)"},children:c})})});w.classes=d,w.displayName="@mantine/core/DrawerContent";var E=r(62358);let x={},M=(0,s.P9)((e,t)=>{let{classNames:r,className:a,style:o,styles:s,vars:l,...c}=(0,i.Y)("DrawerHeader",x,e),d=u();return(0,n.jsx)(E.m,{ref:t,...d.getStyles("header",{classNames:r,style:o,styles:s,className:a}),...c})});M.classes=d,M.displayName="@mantine/core/DrawerHeader";var N=r(97762);let D={},S=(0,s.P9)((e,t)=>{let{classNames:r,className:a,style:o,styles:s,vars:l,...c}=(0,i.Y)("DrawerOverlay",D,e),d=u();return(0,n.jsx)(N.V,{ref:t,...d.getStyles("overlay",{classNames:r,style:o,styles:s,className:a}),...c})});S.classes=d,S.displayName="@mantine/core/DrawerOverlay";var T=r(26615),C=r(76),_=r(5618),k=r(37666),A=r(52432),O=r(43256),R=r(53993);let I={top:"slide-down",bottom:"slide-up",left:"slide-right",right:"slide-left"},j={top:"slide-down",bottom:"slide-up",right:"slide-right",left:"slide-left"},F={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:(0,o.I)("modal"),position:"left"},L=(0,_.V)((e,{position:t,size:r,offset:n})=>({root:{"--drawer-size":(0,C.YC)(r,"drawer-size"),"--drawer-flex":function(e){if("top"===e||"bottom"===e)return"0 0 calc(100% - var(--drawer-offset, 0rem) * 2)"}(t),"--drawer-height":"left"===t||"right"===t?void 0:"var(--drawer-size)","--drawer-align":function(e){switch(e){case"top":return"flex-start";case"bottom":return"flex-end";default:return}}(t),"--drawer-justify":"right"===t?"flex-end":void 0,"--drawer-offset":(0,T.D)(n)}})),B=(0,s.P9)((e,t)=>{let r=(0,i.Y)("DrawerRoot",F,e),{classNames:a,className:o,style:s,styles:l,unstyled:u,vars:h,scrollAreaComponent:f,position:p,transitionProps:m,radius:b,...g}=r,{dir:v}=(0,A.jH)(),y=(0,k.I)({name:"Drawer",classes:d,props:r,className:o,style:s,classNames:a,styles:l,unstyled:u,vars:h,varsResolver:L}),w=("rtl"===v?j:I)[p];return(0,n.jsx)(c,{value:{scrollAreaComponent:f,getStyles:y,radius:b},children:(0,n.jsx)(O.f,{ref:t,...y("root"),transitionProps:{transition:w,...m},"data-offset-scrollbars":f===R.F.Autosize||void 0,unstyled:u,...g})})});B.classes=d,B.displayName="@mantine/core/DrawerRoot";let[P,U]=(0,r(48930).e)();function z({children:e}){let[t,r]=(0,a.useState)([]),[i,s]=(0,a.useState)((0,o.I)("modal"));return(0,n.jsx)(P,{value:{stack:t,addModal:(e,t)=>{r(t=>[...new Set([...t,e])]),s(e=>"number"==typeof t&&"number"==typeof e?Math.max(e,t):e)},removeModal:e=>r(t=>t.filter(t=>t!==e)),getZIndex:e=>`calc(${i} + ${t.indexOf(e)} + 1)`,currentId:t[t.length-1],maxZIndex:i},children:e})}z.displayName="@mantine/core/DrawerStack";var W=r(66951);let Y={},G=(0,s.P9)((e,t)=>{let{classNames:r,className:a,style:o,styles:s,vars:l,...c}=(0,i.Y)("DrawerTitle",Y,e),d=u();return(0,n.jsx)(W.$,{ref:t,...d.getStyles("title",{classNames:r,style:o,styles:s,className:a}),...c})});G.classes=d,G.displayName="@mantine/core/DrawerTitle";let V={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:(0,o.I)("modal"),withOverlay:!0,withCloseButton:!0},H=(0,s.P9)((e,t)=>{let{title:r,withOverlay:s,overlayProps:l,withCloseButton:c,closeButtonProps:u,children:d,opened:h,stackId:p,zIndex:m,...g}=(0,i.Y)("Drawer",V,e),v=U(),y=!!r||c,E=v&&p?{closeOnEscape:v.currentId===p,trapFocus:v.currentId===p,zIndex:v.getZIndex(p)}:{},x=!1!==s&&(p&&v?v.currentId===p:h);return(0,a.useEffect)(()=>{v&&p&&(h?v.addModal(p,m||(0,o.I)("modal")):v.removeModal(p))},[h,p,m]),(0,n.jsxs)(B,{ref:t,opened:h,zIndex:v&&p?v.getZIndex(p):m,...g,...E,children:[s&&(0,n.jsx)(S,{visible:x,transitionProps:v&&p?{duration:0}:void 0,...l}),(0,n.jsxs)(w,{__hidden:!!v&&!!p&&!!h&&p!==v.currentId,children:[y&&(0,n.jsxs)(M,{children:[r&&(0,n.jsx)(G,{children:r}),c&&(0,n.jsx)(b,{...u})]}),(0,n.jsx)(f,{children:d})]})]})});H.classes=d,H.displayName="@mantine/core/Drawer",H.Root=B,H.Overlay=S,H.Content=w,H.Body=f,H.Header=M,H.Title=G,H.CloseButton=b,H.Stack=z},10708:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var n=(0,r(41495).A)("outline","globe","IconGlobe",[["path",{d:"M7 9a4 4 0 1 0 8 0a4 4 0 0 0 -8 0",key:"svg-0"}],["path",{d:"M5.75 15a8.015 8.015 0 1 0 9.25 -13",key:"svg-1"}],["path",{d:"M11 17v4",key:"svg-2"}],["path",{d:"M7 21h8",key:"svg-3"}]])},10822:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var n=(0,r(41495).A)("outline","arrow-back-up","IconArrowBackUp",[["path",{d:"M9 14l-4 -4l4 -4",key:"svg-0"}],["path",{d:"M5 10h11a4 4 0 1 1 0 8h-1",key:"svg-1"}]])},10931:(e,t,r)=>{var n=r(7855),a=r(60449),o=r(8546),i=r(25907),s=r(28617),l=r(20764),c=r(43092);e.exports=function(e,t){return i(e)&&s(t)?l(c(e),t):function(r){var i=a(r,e);return void 0===i&&i===t?o(r,e):n(t,i,3)}}},11061:(e,t,r)=>{var n=r(22479),a=1/0;e.exports=function(e){return e?(e=n(e))===a||e===-a?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},12364:(e,t,r)=>{var n=r(23356),a=r(23169),o=r(22479),i=Math.max,s=Math.min;e.exports=function(e,t,r){var l,c,u,d,h,f,p=0,m=!1,b=!1,g=!0;if("function"!=typeof e)throw TypeError("Expected a function");function v(t){var r=l,n=c;return l=c=void 0,p=t,d=e.apply(n,r)}function y(e){var r=e-f,n=e-p;return void 0===f||r>=t||r<0||b&&n>=u}function w(){var e,r,n,o=a();if(y(o))return E(o);h=setTimeout(w,(e=o-f,r=o-p,n=t-e,b?s(n,u-r):n))}function E(e){return(h=void 0,g&&l)?v(e):(l=c=void 0,d)}function x(){var e,r=a(),n=y(r);if(l=arguments,c=this,f=r,n){if(void 0===h)return p=e=f,h=setTimeout(w,t),m?v(e):d;if(b)return clearTimeout(h),h=setTimeout(w,t),v(f)}return void 0===h&&(h=setTimeout(w,t)),d}return t=o(t)||0,n(r)&&(m=!!r.leading,u=(b="maxWait"in r)?i(o(r.maxWait)||0,t):u,g="trailing"in r?!!r.trailing:g),x.cancel=function(){void 0!==h&&clearTimeout(h),p=0,l=f=c=h=void 0},x.flush=function(){return void 0===h?d:E(a())},x}},12853:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var n=(0,r(41495).A)("outline","toggle-right","IconToggleRight",[["path",{d:"M16 12m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-0"}],["path",{d:"M2 6m0 6a6 6 0 0 1 6 -6h8a6 6 0 0 1 6 6v0a6 6 0 0 1 -6 6h-8a6 6 0 0 1 -6 -6z",key:"svg-1"}]])},13157:e=>{"use strict";e.exports=({onlyFirst:e=!1}={})=>RegExp("[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)|(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))",e?void 0:"g")},14262:e=>{!function(){e.exports=l;var t="000000000",r=Math.trunc||function(e){var t=e-e%1;return 0==t&&(e<0||0===e&&1/e!=1/0)?-0:t},n=l.prototype,a=(l.fromDate=function(e){return new l(+e)},l.fromInt64BE=f(0,1,2,3,0,4),l.fromInt64LE=f(3,2,1,0,4,0),l.fromString=function(e){var r,n=new l,e=(e+="").replace(/^\s*[+\-]?\d+/,function(e){var e=+e,t=1970+(e-1970)%400;return n.year=e-t,t}).replace(/(?:Z|([+\-]\d{2}):?(\d{2}))$/,function(e,t,n){return t<0&&(n*=-1),r=6e4*(60*t+ +n),""}).replace(/\.\d+$/,function(e){return n.nano=+(e+t).substr(1,9),""}).split(/\D+/);if(1>24&255,r[o+t]=i>>16&255,r[o+n]=i>>8&255,r[o+a]=255&i}}function f(e,t,r,n,a,o){return function(e,t){p(e,t|=0);var r=i(e,t+a);return d(i(e,t+o),r)};function i(a,o){return 0x1000000*a[o+e]+(a[o+t]<<16|a[o+r]<<8|a[o+n])}}function p(e,t){if(null==(e=e&&e.length))throw TypeError("Invalid Buffer");if(e{let n=r(48718);e.exports=function(e){let t=function(e){let t=function(){let e={},t=Object.keys(n);for(let r=t.length,n=0;n{"use strict";r.d(t,{A:()=>n});var n=(0,r(41495).A)("outline","arrows-diagonal-minimize-2","IconArrowsDiagonalMinimize2",[["path",{d:"M18 10h-4v-4",key:"svg-0"}],["path",{d:"M20 4l-6 6",key:"svg-1"}],["path",{d:"M6 14h4v4",key:"svg-2"}],["path",{d:"M10 14l-6 6",key:"svg-3"}]])},16943:(e,t,r)=>{var n=r(88601),a=r(68988),o=r(43233),i=r(63127);e.exports=function(e,t){if(null==e)return{};var r=n(i(e),function(e){return[e]});return t=a(t),o(e,r,function(e,r){return t(e,r[0])})}},17782:(e,t,r)=>{var n=r(91357),a=r(23356);e.exports=function(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=n(e.prototype),o=e.apply(r,t);return a(o)?o:r}}},17877:e=>{var t=/\s/;e.exports=function(e){for(var r=e.length;r--&&t.test(e.charAt(r)););return r}},19169:(e,t,r)=>{var n=r(58120),a=r(68668),o=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];e.exports=function(e,t){return n(o,function(r){var n="_."+r[0];t&r[1]&&!a(e,n)&&e.push(n)}),e.sort()}},20294:(e,t,r)=>{"use strict";r.d(t,{B:()=>m});var n=r(6029),a=r(55729),o=r(30342),i=r(76),s=r(5618),l=r(80616),c=r(37666),u=r(60481),d=r(43016),h={root:"m_8b3717df",breadcrumb:"m_f678d540",separator:"m_3b8f2208"};let f={separator:"/"},p=(0,s.V)((e,{separatorMargin:t})=>({root:{"--bc-separator-margin":(0,i.GY)(t)}})),m=(0,d.P9)((e,t)=>{let r=(0,l.Y)("Breadcrumbs",f,e),{classNames:i,className:s,style:d,styles:m,unstyled:b,vars:g,children:v,separator:y,separatorMargin:w,...E}=r,x=(0,c.I)({name:"Breadcrumbs",classes:h,props:r,className:s,style:d,classNames:i,styles:m,unstyled:b,vars:g,varsResolver:p}),M=a.Children.toArray(v).reduce((e,t,r,n)=>{let i=(0,o.v)(t)?(0,a.cloneElement)(t,{...x("breadcrumb",{className:t.props?.className}),key:r}):(0,a.createElement)("div",{...x("breadcrumb"),key:r},t);return e.push(i),r!==n.length-1&&e.push((0,a.createElement)(u.a,{...x("separator"),key:`separator-${r}`},y)),e},[]);return(0,n.jsx)(u.a,{ref:t,...x("root"),...E,children:M})});m.classes=h,m.displayName="@mantine/core/Breadcrumbs"},20764:e=>{e.exports=function(e,t){return function(r){return null!=r&&r[e]===t&&(void 0!==t||e in Object(r))}}},21510:(e,t,r)=>{"use strict";r.d(t,{d:()=>tf});var n,a=r(55729),o=r(67125);let i=function(e){return e};var s="object"==typeof global&&global&&global.Object===Object&&global,l="object"==typeof self&&self&&self.Object===Object&&self,c=s||l||Function("return this")(),u=c.Symbol,d=Object.prototype,h=d.hasOwnProperty,f=d.toString,p=u?u.toStringTag:void 0;let m=function(e){var t=h.call(e,p),r=e[p];try{e[p]=void 0;var n=!0}catch(e){}var a=f.call(e);return n&&(t?e[p]=r:delete e[p]),a};var b=Object.prototype.toString,g=u?u.toStringTag:void 0;let v=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":g&&g in Object(e)?m(e):b.call(e)},y=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},w=function(e){if(!y(e))return!1;var t=v(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t};var E=c["__core-js_shared__"],x=(n=/[^.]+$/.exec(E&&E.keys&&E.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",M=Function.prototype.toString;let N=function(e){if(null!=e){try{return M.call(e)}catch(e){}try{return e+""}catch(e){}}return""};var D=/^\[object .+?Constructor\]$/,S=Object.prototype,T=Function.prototype.toString,C=S.hasOwnProperty,_=RegExp("^"+T.call(C).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");let k=function(e){return!!y(e)&&(!x||!(x in e))&&(w(e)?_:D).test(N(e))},A=function(e,t){var r=null==e?void 0:e[t];return k(r)?r:void 0};var O=A(c,"WeakMap"),R=O&&new O,I=R?function(e,t){return R.set(e,t),e}:i,j=Object.create,F=function(){function e(){}return function(t){if(!y(t))return{};if(j)return j(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();let L=function(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=F(e.prototype),n=e.apply(r,t);return y(n)?n:r}},B=function(e,t,r){var n=1&t,a=L(e);return function t(){return(this&&this!==c&&this instanceof t?a:e).apply(n?r:this,arguments)}},P=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)};var U=Math.max;let z=function(e,t,r,n){for(var a=-1,o=e.length,i=r.length,s=-1,l=t.length,c=U(o-i,0),u=Array(l+c),d=!n;++s0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}};var es=ei(I),el=/\{\n\/\* \[wrapped with (.+)\] \*/,ec=/,? & /;let eu=function(e){var t=e.match(el);return t?t[1].split(ec):[]};var ed=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;let eh=function(e,t){var r=t.length;if(!r)return e;var n=r-1;return t[n]=(r>1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(ed,"{\n/* [wrapped with "+t+"] */\n")};var ef=function(){try{var e=A(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),ep=ei(ef?function(e,t){return ef(e,"toString",{configurable:!0,enumerable:!1,value:function(){return t},writable:!0})}:i);let em=function(e,t){for(var r=-1,n=null==e?0:e.length;++r-1};var ew=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];let eE=function(e,t,r){var n,a=t+"";return ep(e,eh(a,(n=eu(a),em(ew,function(e){var t="_."+e[0];r&e[1]&&!ey(n,t)&&n.push(t)}),n.sort())))},ex=function(e,t,r,n,a,o,i,s,l,c){var u=8&t;t|=u?32:64,4&(t&=~(u?64:32))||(t&=-4);var d=[e,t,a,u?o:void 0,u?i:void 0,u?void 0:o,u?void 0:i,s,l,c],h=r.apply(void 0,d);return ea(e)&&es(h,d),h.placeholder=n,eE(h,e,t)},eM=function(e){return e.placeholder};var eN=/^(?:0|[1-9]\d*)$/;let eD=function(e,t){var r=typeof e;return!!(t=null==t?0x1fffffffffffff:t)&&("number"==r||"symbol"!=r&&eN.test(e))&&e>-1&&e%1==0&&e1&&w.reverse(),h&&ut=>({className:[t.className,e.className].filter(Boolean).join(" "),style:{...t.style||{},...e.style||{}}}),e0=(e,t,...r)=>{if(null===t)return e;Array.isArray(t)||(t=[t]);let n=t.map(t=>e[t]).filter(Boolean).reduce((e,t)=>("string"==typeof t?e.className=[e.className,t].filter(Boolean).join(" "):"object"==typeof t?e.style={...e.style,...t}:"function"==typeof t&&(e={...e,...t(e,...r)}),e),{className:"",style:{}});return n.className||delete n.className,0===Object.keys(n.style).length&&delete n.style,n},e1=e=>Object.keys(e).reduce((t,r)=>(t[r]=/^base/.test(r)?(e=>{var t,r;let n,a,i,s,l,c,u,d,h,[f,p,m]=(n=(t=o(e).array())[0]/255,a=t[1]/255,[.299*n+.587*a+.114*(i=t[2]/255),-.14713*n+-.28886*a+.436*i,.615*n+-.51499*a+-.10001*i]),b=(u=(r=[f<.25?1:f<.5?.9-f:1.1-f,p,m])[0],d=r[1],s=+u+0*d+1.13983*(h=r[2]),l=+u+-.39465*d+-.5806*h,c=+u+2.02311*d+0*h,[255*(s=Math.min(Math.max(0,s),1)),255*(l=Math.min(Math.max(0,l),1)),255*(c=Math.min(Math.max(0,c),1))]);return o.rgb(b).hex()})(e[r]):"scheme"===r?e[r]+":inverted":e[r],t),{}),e2=eX((e,t={},r={},...n)=>{let{defaultBase16:a=eK,base16Themes:o=null}=t,i=e5(r,o);i&&(r={...i,...r});let s=eJ.reduce((e,t)=>(e[t]=r[t]||a[t],e),{}),l=((e,t)=>{let r=Object.keys(t);for(let t in e)-1===r.indexOf(t)&&r.push(t);return r.reduce((r,n)=>(r[n]=((e,t)=>{if(void 0===e)return t;if(void 0===t)return e;let r=typeof t;switch(typeof e){case"string":switch(r){case"string":return[t,e].filter(Boolean).join(" ");case"object":return eQ({className:e,style:t});case"function":return(r,...n)=>eQ({className:e})(t(r,...n))}break;case"object":switch(r){case"string":return eQ({className:t,style:e});case"object":return{...t,...e};case"function":return(r,...n)=>eQ({style:e})(t(r,...n))}break;case"function":switch(r){case"string":return(r,...n)=>e(eQ(r)({className:t}),...n);case"object":return(r,...n)=>e(eQ(r)({style:t}),...n);case"function":return(r,...n)=>e(t(r,...n),...n)}}})(e[n],t[n]),r),{})})(Object.keys(r).reduce((e,t)=>(-1===eJ.indexOf(t)&&(e[t]=r[t]),e),{}),e(s));return eX(e0,2)(l,...n)},3),e5=(e,t)=>{if(e&&e.extend&&e.extend&&(e=e.extend),"string"==typeof e){let[r,n]=e.split(":");e=t?t[r]:eq[r],"inverted"===n&&(e=e1(e))}return e&&Object.prototype.hasOwnProperty.call(e,"base00")?e:void 0};function e6({styling:e,arrowStyle:t="single",expanded:r,nodeType:n,onClick:o}){return a.createElement("div",{...e("arrowContainer",t),onClick:o},a.createElement("div",{...e(["arrow","arrowSign"],n,r,t)},"▶","double"===t&&a.createElement("div",{...e(["arrowSign","arrowSignInner"])},"▶")))}function e3(e,t,r,n=0,a=1/0){let o;if("Object"===e){let e=Object.getOwnPropertyNames(t);r&&e.sort(!0===r?void 0:r),o={entries:(e=e.slice(n,a+1)).map(e=>({key:e,value:t[e]}))}}else if("Array"===e)o={entries:t.slice(n,a+1).map((e,t)=>({key:t+n,value:e}))};else{let e=0,r=[],i=!0,s="function"==typeof t.set;for(let o of t){if(e>a){i=!1;break}n<=e&&(s&&Array.isArray(o)?"string"==typeof o[0]||"number"==typeof o[0]?r.push({key:o[0],value:o[1]}):r.push({key:`[entry ${e}]`,value:{"[key]":o[0],"[value]":o[1]}}):r.push({key:e,value:o})),e++}o={hasMore:!i,entries:r}}return o}function e4(e,t,r){let n=[];for(;t-e>r*r;)r*=r;for(let a=e;a<=t;a+=r)n.push({from:a,to:Math.min(t,a+r-1)});return n}function e8(e){let{styling:t,from:r,to:n,renderChildNodes:o,nodeType:i}=e,[s,l]=(0,a.useState)(!1),c=(0,a.useCallback)(()=>{l(!s)},[s]);return s?a.createElement("div",{...t("itemRange",s)},o(e,r,n)):a.createElement("div",{...t("itemRange",s),onClick:c},a.createElement(e6,{nodeType:i,styling:t,expanded:!1,onClick:c,arrowStyle:"double"}),`${r} ... ${n}`)}function e9(e){let{circularCache:t=[],collectionLimit:r,createItemString:n,data:o,expandable:i,getItemString:s,hideRoot:l,isCircular:c,keyPath:u,labelRenderer:d,level:h=0,nodeType:f,nodeTypeIndicator:p,shouldExpandNodeInitially:m,styling:b}=e,[g,v]=(0,a.useState)(!c&&m(u,o,h)),y=(0,a.useCallback)(()=>{i&&v(!g)},[i,g]),w=g||l&&0===h?function e(t,r,n){let{nodeType:o,data:i,collectionLimit:s,circularCache:l,keyPath:c,postprocessValue:u,sortObjectKeys:d}=t,h=[];return(function(e,t,r,n,a=0,o=1/0){let i,s=e3.bind(null,e,t,r);if(!n)return s().entries;let l=o<1/0,c=Math.min(o-a,"Object"===e?Object.keys(t).length:"Array"===e?t.length:1/0);if("Iterable"!==e){if(c<=n||n<7)return s(a,o).entries}else if(c<=n&&!l)return s(a,o).entries;if("Iterable"===e){let{hasMore:e,entries:t}=s(a,a+n-1);i=e?[...t,...e4(a+n,a+2*n-1,n)]:t}else i=l?e4(a,o,n):[...s(0,n-5).entries,...e4(n-4,c-5,n),...s(c-4,c-1).entries];return i})(o,i,d,s,r,n).forEach(r=>{if(void 0!==r.to)h.push(a.createElement(e8,{...t,key:`ItemRange--${r.from}-${r.to}`,from:r.from,to:r.to,renderChildNodes:e}));else{let{key:e,value:n}=r,o=l.includes(n);h.push(a.createElement(ti,{...t,postprocessValue:u,collectionLimit:s,key:`Node--${e}`,keyPath:[e,...c],value:u(n),circularCache:[...l,n],isCircular:o,hideRoot:!1}))}}),h}({...e,circularCache:t,level:h+1}):null,E=s(f,o,a.createElement("span",{...b("nestedNodeItemType",g)},p),n(o,r),u),x=[u,f,g,i];return l?a.createElement("li",{...b("rootNode",...x)},a.createElement("ul",{...b("rootNodeChildren",...x)},w)):a.createElement("li",{...b("nestedNode",...x)},i&&a.createElement(e6,{styling:b,nodeType:f,expanded:g,onClick:y}),a.createElement("label",{...b(["label","nestedNodeLabel"],...x),onClick:y},d(...x)),a.createElement("span",{...b("nestedNodeItemString",...x),onClick:y},E),a.createElement("ul",{...b("nestedNodeChildren",...x)},w))}function e7(e){let t=Object.getOwnPropertyNames(e).length;return`${t} ${1!==t?"keys":"key"}`}function te({data:e,...t}){return a.createElement(e9,{...t,data:e,nodeType:"Object",nodeTypeIndicator:"Error"===t.nodeType?"Error()":"{}",createItemString:e7,expandable:Object.getOwnPropertyNames(e).length>0})}function tt(e){return`${e.length} ${1!==e.length?"items":"item"}`}function tr({data:e,...t}){return a.createElement(e9,{...t,data:e,nodeType:"Array",nodeTypeIndicator:"[]",createItemString:tt,expandable:e.length>0})}function tn(e,t){let r=0,n=!1;if(Number.isSafeInteger(e.size))r=e.size;else for(let a of e){if(t&&r+1>t){n=!0;break}r+=1}return`${n?">":""}${r} ${1!==r?"entries":"entry"}`}function ta(e){return a.createElement(e9,{...e,nodeType:"Iterable",nodeTypeIndicator:"()",createItemString:tn,expandable:!0})}function to({nodeType:e,styling:t,labelRenderer:r,keyPath:n,valueRenderer:o,value:i,valueGetter:s=e=>e}){return a.createElement("li",{...t("value",e,n)},a.createElement("label",{...t(["label","valueLabel"],e,n)},r(n,e,!1,!1)),a.createElement("span",{...t("valueText",e,n)},o(s(i),i,...n)))}function ti({getItemString:e,keyPath:t,labelRenderer:r,styling:n,value:o,valueRenderer:i,isCustomNode:s,...l}){let c,u=s(o)?"Custom":"Object"===(c=Object.prototype.toString.call(o).slice(8,-1))&&"function"==typeof o[Symbol.iterator]?"Iterable":"Custom"===c&&o.constructor!==Object&&o instanceof Object?"Object":c,d={getItemString:e,key:t[0],keyPath:t,labelRenderer:r,nodeType:u,styling:n,value:o,valueRenderer:i},h={...l,...d,data:o,isCustomNode:s};switch(u){case"Object":case"Error":case"WeakMap":case"WeakSet":return a.createElement(te,{...h});case"Array":return a.createElement(tr,{...h});case"Iterable":case"Map":case"Set":return a.createElement(ta,{...h});case"String":return a.createElement(to,{...d,valueGetter:e=>`"${e}"`});case"Number":case"Custom":return a.createElement(to,{...d});case"Boolean":return a.createElement(to,{...d,valueGetter:e=>e?"true":"false"});case"Date":return a.createElement(to,{...d,valueGetter:e=>e.toISOString()});case"Null":return a.createElement(to,{...d,valueGetter:()=>"null"});case"Undefined":return a.createElement(to,{...d,valueGetter:()=>"undefined"});case"Function":case"Symbol":return a.createElement(to,{...d,valueGetter:e=>e.toString()});default:return a.createElement(to,{...d,valueGetter:()=>`<${u}>`})}}let ts=e2(e=>{let t={BACKGROUND_COLOR:e.base00,TEXT_COLOR:e.base07,STRING_COLOR:e.base0B,DATE_COLOR:e.base0B,NUMBER_COLOR:e.base09,BOOLEAN_COLOR:e.base09,NULL_COLOR:e.base08,UNDEFINED_COLOR:e.base08,FUNCTION_COLOR:e.base08,SYMBOL_COLOR:e.base08,LABEL_COLOR:e.base0D,ARROW_COLOR:e.base0D,ITEM_STRING_COLOR:e.base0B,ITEM_STRING_EXPANDED_COLOR:e.base03};return{tree:{border:0,padding:0,marginTop:"0.5em",marginBottom:"0.5em",marginLeft:"0.125em",marginRight:0,listStyle:"none",MozUserSelect:"none",WebkitUserSelect:"none",backgroundColor:t.BACKGROUND_COLOR},value:({style:e},t,r)=>({style:{...e,paddingTop:"0.25em",paddingRight:0,marginLeft:"0.875em",WebkitUserSelect:"text",MozUserSelect:"text",wordWrap:"break-word",paddingLeft:r.length>1?"2.125em":"1.25em",textIndent:"-0.5em",wordBreak:"break-all"}}),label:{display:"inline-block",color:t.LABEL_COLOR},valueLabel:{margin:"0 0.5em 0 0"},valueText:({style:e},r)=>({style:{...e,color:({String:t.STRING_COLOR,Date:t.DATE_COLOR,Number:t.NUMBER_COLOR,Boolean:t.BOOLEAN_COLOR,Null:t.NULL_COLOR,Undefined:t.UNDEFINED_COLOR,Function:t.FUNCTION_COLOR,Symbol:t.SYMBOL_COLOR})[r]}}),itemRange:(e,r)=>({style:{paddingTop:r?0:"0.25em",cursor:"pointer",color:t.LABEL_COLOR}}),arrow:({style:e},t,r)=>({style:{...e,marginLeft:0,transition:"150ms",WebkitTransition:"150ms",MozTransition:"150ms",WebkitTransform:r?"rotateZ(90deg)":"rotateZ(0deg)",MozTransform:r?"rotateZ(90deg)":"rotateZ(0deg)",transform:r?"rotateZ(90deg)":"rotateZ(0deg)",transformOrigin:"45% 50%",WebkitTransformOrigin:"45% 50%",MozTransformOrigin:"45% 50%",position:"relative",lineHeight:"1.1em",fontSize:"0.75em"}}),arrowContainer:({style:e},t)=>({style:{...e,display:"inline-block",paddingRight:"0.5em",paddingLeft:"double"===t?"1em":0,cursor:"pointer"}}),arrowSign:{color:t.ARROW_COLOR},arrowSignInner:{position:"absolute",top:0,left:"-0.4em"},nestedNode:({style:e},t,r,n,a)=>({style:{...e,position:"relative",paddingTop:"0.25em",marginLeft:t.length>1?"0.875em":0,paddingLeft:a?0:"1.125em"}}),rootNode:{padding:0,margin:0},nestedNodeLabel:({style:e},t,r,n,a)=>({style:{...e,margin:0,padding:0,WebkitUserSelect:a?"inherit":"text",MozUserSelect:a?"inherit":"text",cursor:a?"pointer":"default"}}),nestedNodeItemString:({style:e},r,n,a)=>({style:{...e,paddingLeft:"0.5em",cursor:"default",color:a?t.ITEM_STRING_EXPANDED_COLOR:t.ITEM_STRING_COLOR}}),nestedNodeItemType:{marginLeft:"0.3em",marginRight:"0.3em"},nestedNodeChildren:({style:e},t,r)=>({style:{...e,padding:0,margin:0,listStyle:"none",display:r?"block":"none"}}),rootNodeChildren:{padding:0,margin:0,listStyle:"none"}}},{defaultBase16:{scheme:"solarized",author:"ethan schoonover (http://ethanschoonover.com/solarized)",base00:"#002b36",base01:"#073642",base02:"#586e75",base03:"#657b83",base04:"#839496",base05:"#93a1a1",base06:"#eee8d5",base07:"#fdf6e3",base08:"#dc322f",base09:"#cb4b16",base0A:"#b58900",base0B:"#859900",base0C:"#2aa198",base0D:"#268bd2",base0E:"#6c71c4",base0F:"#d33682"}}),tl=e=>e,tc=(e,t,r)=>0===r,tu=(e,t,r,n)=>a.createElement("span",null,r," ",n),td=([e])=>a.createElement("span",null,e,":"),th=()=>!1;function tf({data:e,theme:t,invertTheme:r,keyPath:n=["root"],labelRenderer:o=td,valueRenderer:i=tl,shouldExpandNodeInitially:s=tc,hideRoot:l=!1,getItemString:c=tu,postprocessValue:u=tl,isCustomNode:d=th,collectionLimit:h=50,sortObjectKeys:f=!1}){let p=(0,a.useMemo)(()=>{var e;return ts(r?"string"==typeof(e=t)?`${e}:inverted`:e&&e.extend&&e.extend?"string"==typeof e.extend?{...e,extend:`${e.extend}:inverted`}:{...e,extend:e1(e.extend)}:e?e1(e):e:t)},[t,r]);return a.createElement("ul",{...p("tree")},a.createElement(ti,{keyPath:l?[]:n,value:u(e),isCustomNode:d,styling:p,labelRenderer:o,valueRenderer:i,shouldExpandNodeInitially:s,hideRoot:l,getItemString:c,postprocessValue:u,collectionLimit:h,sortObjectKeys:f}))}},22180:(e,t,r)=>{var n=r(22926),a=r(68668),o=r(86152),i=r(82694),s=r(79860),l=r(48546);e.exports=function(e,t,r){var c=-1,u=a,d=e.length,h=!0,f=[],p=f;if(r)h=!1,u=o;else if(d>=200){var m=t?null:s(e);if(m)return l(m);h=!1,u=i,p=new n}else p=t?[]:f;e:for(;++c{"use strict";r.d(t,{M:()=>a});var n=r(55729);function a(){let[e,t]=(0,n.useState)(!1),r=(0,n.useRef)(null),a=(0,n.useCallback)(()=>t(!0),[]),o=(0,n.useCallback)(()=>t(!1),[]);return(0,n.useEffect)(()=>{let e=r.current;if(e)return e.addEventListener("mouseenter",a),e.addEventListener("mouseleave",o),()=>{e?.removeEventListener("mouseenter",a),e?.removeEventListener("mouseleave",o)}},[r.current]),{ref:r,hovered:e}}},22479:(e,t,r)=>{var n=r(86301),a=r(23356),o=r(50515),i=0/0,s=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return i;if(a(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=a(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var r=l.test(e);return r||c.test(e)?u(e.slice(2),r?2:8):s.test(e)?i:+e}},22926:(e,t,r)=>{var n=r(33276),a=r(91353),o=r(36022);function i(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++t{var n=r(45516);e.exports=function(){return n.Date.now()}},24656:(e,t,r)=>{var n=r(38561),a=r(74981),o=r(81515),i="__lodash_placeholder__",s=Math.min;e.exports=function(e,t){var r=e[1],l=t[1],c=r|l,u=c<131,d=128==l&&8==r||128==l&&256==r&&e[7].length<=t[8]||384==l&&t[7].length<=t[8]&&8==r;if(!(u||d))return e;1&l&&(e[2]=t[2],c|=1&r?0:4);var h=t[3];if(h){var f=e[3];e[3]=f?n(f,h,t[4]):h,e[4]=f?o(e[3],i):t[4]}return(h=t[5])&&(f=e[5],e[5]=f?a(f,h,t[6]):h,e[6]=f?o(e[5],i):t[6]),(h=t[7])&&(e[7]=h),128&l&&(e[8]=null==e[8]?t[8]:s(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=c,e}},27524:e=>{e.exports={}},27803:(e,t,r)=>{var n=r(17782),a=r(45516);e.exports=function(e,t,r){var o=1&t,i=n(e);return function t(){return(this&&this!==a&&this instanceof t?i:e).apply(o?r:this,arguments)}}},28469:(e,t,r)=>{var n=r(28617),a=r(87567);e.exports=function(e){for(var t=a(e),r=t.length;r--;){var o=t[r],i=e[o];t[r]=[o,i,n(i)]}return t}},28617:(e,t,r)=>{var n=r(23356);e.exports=function(e){return e==e&&!n(e)}},29090:(e,t,r)=>{var n=r(22926),a=r(98501),o=r(82694);e.exports=function(e,t,r,i,s,l){var c=1&r,u=e.length,d=t.length;if(u!=d&&!(c&&d>u))return!1;var h=l.get(e),f=l.get(t);if(h&&f)return h==t&&f==e;var p=-1,m=!0,b=2&r?new n:void 0;for(l.set(e,t),l.set(t,e);++p{var n=r(83529),a=r(53416),o=r(97722);e.exports=function(e){if(e instanceof n)return e.clone();var t=new a(e.__wrapped__,e.__chain__);return t.__actions__=o(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}},29766:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>c});var n={};r.r(n),r.d(n,{BRAND:()=>s.qt,DIRTY:()=>o.jm,EMPTY_PATH:()=>o.I3,INVALID:()=>o.uY,NEVER:()=>s.tm,OK:()=>o.OK,ParseStatus:()=>o.MY,Schema:()=>s.Sj,ZodAny:()=>s.Ml,ZodArray:()=>s.n,ZodBigInt:()=>s.Lr,ZodBoolean:()=>s.WF,ZodBranded:()=>s.eN,ZodCatch:()=>s.hw,ZodDate:()=>s.aP,ZodDefault:()=>s.Xi,ZodDiscriminatedUnion:()=>s.jv,ZodEffects:()=>s.k1,ZodEnum:()=>s.Vb,ZodError:()=>l.G,ZodFirstPartyTypeKind:()=>s.kY,ZodFunction:()=>s.CZ,ZodIntersection:()=>s.Jv,ZodIssueCode:()=>l.eq,ZodLazy:()=>s.Ih,ZodLiteral:()=>s.DN,ZodMap:()=>s.Ut,ZodNaN:()=>s.Tq,ZodNativeEnum:()=>s.WM,ZodNever:()=>s.iS,ZodNull:()=>s.PQ,ZodNullable:()=>s.l1,ZodNumber:()=>s.rS,ZodObject:()=>s.bv,ZodOptional:()=>s.Ii,ZodParsedType:()=>i.Zp,ZodPipeline:()=>s._c,ZodPromise:()=>s.$i,ZodReadonly:()=>s.EV,ZodRecord:()=>s.b8,ZodSchema:()=>s.lK,ZodSet:()=>s.Kz,ZodString:()=>s.ND,ZodSymbol:()=>s.K5,ZodTransformer:()=>s.BG,ZodTuple:()=>s.y0,ZodType:()=>s.aR,ZodUndefined:()=>s._Z,ZodUnion:()=>s.fZ,ZodUnknown:()=>s._,ZodVoid:()=>s.a0,addIssueToContext:()=>o.zn,any:()=>s.bz,array:()=>s.YO,bigint:()=>s.o,boolean:()=>s.zM,coerce:()=>s.au,custom:()=>s.Ie,date:()=>s.p6,datetimeRegex:()=>s.fm,defaultErrorMap:()=>a.su,discriminatedUnion:()=>s.gM,effect:()=>s.QZ,enum:()=>s.k5,function:()=>s.fH,getErrorMap:()=>a.$W,getParsedType:()=>i.CR,instanceof:()=>s.Nl,intersection:()=>s.E$,isAborted:()=>o.G4,isAsync:()=>o.xP,isDirty:()=>o.DM,isValid:()=>o.fn,late:()=>s.fn,lazy:()=>s.RZ,literal:()=>s.eu,makeIssue:()=>o.y7,map:()=>s.Tj,nan:()=>s.oi,nativeEnum:()=>s.fc,never:()=>s.Zm,null:()=>s.ch,nullable:()=>s.me,number:()=>s.ai,object:()=>s.Ik,objectUtil:()=>i.o6,oboolean:()=>s.yN,onumber:()=>s.p7,optional:()=>s.lq,ostring:()=>s.Di,pipeline:()=>s.Tk,preprocess:()=>s.vk,promise:()=>s.iv,quotelessJson:()=>l.WI,record:()=>s.g1,set:()=>s.hZ,setErrorMap:()=>a.pJ,strictObject:()=>s.re,string:()=>s.Yj,symbol:()=>s.HR,transformer:()=>s.Gu,tuple:()=>s.PV,undefined:()=>s.Vx,union:()=>s.KC,unknown:()=>s.L5,util:()=>i.ZS,void:()=>s.rI});var a=r(78974),o=r(8722),i=r(45859),s=r(6663),l=r(64892);let c=n},30039:(e,t,r)=>{"use strict";r.d(t,{K:()=>M});var n=r(6029),a=r(55729),o=r(26615),i=r(76),s=r(5618),l=r(66404),c=r(92096),u=r(35192),d=r(80616),h=r(37666),f=r(60481),p=r(43016);let[m,b]=(0,r(36254).F)("Timeline component was not found in tree");var g=r(15862),v={root:"m_43657ece",itemTitle:"m_2ebe8099",item:"m_436178ff",itemBullet:"m_8affcee1",itemBody:"m_540e8f41"};let y={},w=(0,p.P9)((e,t)=>{let{classNames:r,className:a,style:o,styles:s,vars:c,__active:u,__align:h,__lineActive:p,__vars:m,bullet:v,radius:w,color:E,lineVariant:x,children:M,title:N,mod:D,...S}=(0,d.Y)("TimelineItem",y,e),T=b(),C=(0,g.xd)(),_={classNames:r,styles:s};return(0,n.jsxs)(f.a,{...T.getStyles("item",{..._,className:a,style:o}),mod:[{"line-active":p,active:u},D],ref:t,__vars:{"--tli-radius":w?(0,i.nJ)(w):void 0,"--tli-color":E?(0,l.r)(E,C):void 0,"--tli-border-style":x||void 0},...S,children:[(0,n.jsx)(f.a,{...T.getStyles("itemBullet",_),mod:{"with-child":!!v,align:h,active:u},children:v}),(0,n.jsxs)("div",{...T.getStyles("itemBody",_),children:[N&&(0,n.jsx)("div",{...T.getStyles("itemTitle",_),children:N}),(0,n.jsx)("div",{...T.getStyles("itemContent",_),children:M})]})]})});w.classes=v,w.displayName="@mantine/core/TimelineItem";let E={active:-1,align:"left",reverseActive:!1},x=(0,s.V)((e,{bulletSize:t,lineWidth:r,radius:n,color:a,autoContrast:s})=>({root:{"--tl-bullet-size":(0,o.D)(t),"--tl-line-width":(0,o.D)(r),"--tl-radius":void 0===n?void 0:(0,i.nJ)(n),"--tl-color":a?(0,l.r)(a,e):void 0,"--tl-icon-color":(0,u.v)(s,e)?(0,c.w)({color:a,theme:e,autoContrast:s}):void 0}})),M=(0,p.P9)((e,t)=>{let r=(0,d.Y)("Timeline",E,e),{classNames:o,className:i,style:s,styles:l,unstyled:c,vars:u,children:p,active:b,color:g,radius:y,bulletSize:w,align:M,lineWidth:N,reverseActive:D,mod:S,autoContrast:T,...C}=r,_=(0,h.I)({name:"Timeline",classes:v,props:r,className:i,style:s,classNames:o,styles:l,unstyled:c,vars:u,varsResolver:x}),k=a.Children.toArray(p),A=k.map((e,t)=>(0,a.cloneElement)(e,{unstyled:c,__align:M,__active:e.props?.active||(D?b>=k.length-t-1:b>=t),__lineActive:e.props?.lineActive||(D?b>=k.length-t-1:b-1>=t)}));return(0,n.jsx)(m,{value:{getStyles:_},children:(0,n.jsx)(f.a,{..._("root"),mod:[{align:M},S],ref:t,...C,children:A})})});M.classes=v,M.displayName="@mantine/core/Timeline",M.Item=w},31835:(e,t,r)=>{var n=r(25080),a=r(50025),o=r(66581),i=r(29090),s=r(45852),l=r(48546),c=n?n.prototype:void 0,u=c?c.valueOf:void 0;e.exports=function(e,t,r,n,c,d,h){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":if(e.byteLength!=t.byteLength||!d(new a(e),new a(t)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var f=s;case"[object Set]":var p=1&n;if(f||(f=l),e.size!=t.size&&!p)break;var m=h.get(e);if(m)return m==t;n|=2,h.set(e,t);var b=i(f(e),f(t),n,c,d,h);return h.delete(e),b;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},34027:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var n=(0,r(41495).A)("outline","terminal","IconTerminal",[["path",{d:"M5 7l5 5l-5 5",key:"svg-0"}],["path",{d:"M12 19l7 0",key:"svg-1"}]])},35596:function(e,t,r){var n;e.exports=n||function(e,t){if("u">typeof window&&window.crypto&&(n=window.crypto),"u">typeof self&&self.crypto&&(n=self.crypto),"u">typeof globalThis&&globalThis.crypto&&(n=globalThis.crypto),!n&&"u">typeof window&&window.msCrypto&&(n=window.msCrypto),!n&&void 0!==r.g&&r.g.crypto&&(n=r.g.crypto),!n)try{n=r(25156)}catch(e){}var n,a=function(){if(n){if("function"==typeof n.getRandomValues)try{return n.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof n.randomBytes)try{return n.randomBytes(4).readInt32LE()}catch(e){}}throw Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function e(){}return function(t){var r;return e.prototype=t,r=new e,e.prototype=null,r}}(),i={},s=i.lib={},l=s.Base={extend:function(e){var t=o(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},c=s.WordArray=l.extend({init:function(e,r){e=this.words=e||[],t!=r?this.sigBytes=r:this.sigBytes=4*e.length},toString:function(e){return(e||d).stringify(this)},concat:function(e){var t=this.words,r=e.words,n=this.sigBytes,a=e.sigBytes;if(this.clamp(),n%4)for(var o=0;o>>2]>>>24-o%4*8&255;t[n+o>>>2]|=i<<24-(n+o)%4*8}else for(var s=0;s>>2]=r[s>>>2];return this.sigBytes+=a,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=0xffffffff<<32-r%4*8,t.length=e.ceil(r/4)},clone:function(){var e=l.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],r=0;r>>2]>>>24-a%4*8&255;n.push((o>>>4).toString(16)),n.push((15&o).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new c.init(r,t/2)}},h=u.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],a=0;a>>2]>>>24-a%4*8&255;n.push(String.fromCharCode(o))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new c.init(r,t)}},f=u.Utf8={stringify:function(e){try{return decodeURIComponent(escape(h.stringify(e)))}catch(e){throw Error("Malformed UTF-8 data")}},parse:function(e){return h.parse(unescape(encodeURIComponent(e)))}},p=s.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=f.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var r,n=this._data,a=n.words,o=n.sigBytes,i=this.blockSize,s=o/(4*i),l=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*i,u=e.min(4*l,o);if(l){for(var d=0;d{e.exports=function(e){return this.__data__.has(e)}},36722:(e,t,r)=>{"use strict";let n=r(13157);e.exports=e=>"string"==typeof e?e.replace(n(),""):e},38067:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var n=(0,r(41495).A)("outline","package","IconPackage",[["path",{d:"M12 3l8 4.5l0 9l-8 4.5l-8 -4.5l0 -9l8 -4.5",key:"svg-0"}],["path",{d:"M12 12l8 -4.5",key:"svg-1"}],["path",{d:"M12 12l0 9",key:"svg-2"}],["path",{d:"M12 12l-8 -4.5",key:"svg-3"}],["path",{d:"M16 5.25l-8 4.5",key:"svg-4"}]])},38088:e=>{e.exports=function(){}},38302:e=>{e.exports=function(e,t,r,n){for(var a=e.length,o=r+(n?1:-1);n?o--:++o{var n=r(40561),a=r(43149),o=Object.hasOwnProperty,i=Object.create(null);for(var s in n)o.call(n,s)&&(i[n[s]]=s);var l=e.exports={to:{},get:{}};function c(e,t,r){return Math.min(Math.max(t,e),r)}function u(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}l.get=function(e){var t,r;switch(e.substring(0,3).toLowerCase()){case"hsl":t=l.get.hsl(e),r="hsl";break;case"hwb":t=l.get.hwb(e),r="hwb";break;default:t=l.get.rgb(e),r="rgb"}return t?{model:r,value:t}:null},l.get.rgb=function(e){if(!e)return null;var t,r,a,i=[0,0,0,1];if(t=e.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(r=0,a=t[2],t=t[1];r<3;r++){var s=2*r;i[r]=parseInt(t.slice(s,s+2),16)}a&&(i[3]=parseInt(a,16)/255)}else if(t=e.match(/^#([a-f0-9]{3,4})$/i)){for(r=0,a=(t=t[1])[3];r<3;r++)i[r]=parseInt(t[r]+t[r],16);a&&(i[3]=parseInt(a+a,16)/255)}else if(t=e.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(r=0;r<3;r++)i[r]=parseInt(t[r+1],0);t[4]&&(t[5]?i[3]=.01*parseFloat(t[4]):i[3]=parseFloat(t[4]))}else if(t=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(r=0;r<3;r++)i[r]=Math.round(2.55*parseFloat(t[r+1]));t[4]&&(t[5]?i[3]=.01*parseFloat(t[4]):i[3]=parseFloat(t[4]))}else if(!(t=e.match(/^(\w+)$/)))return null;else return"transparent"===t[1]?[0,0,0,0]:o.call(n,t[1])?((i=n[t[1]])[3]=1,i):null;for(r=0;r<3;r++)i[r]=c(i[r],0,255);return i[3]=c(i[3],0,1),i},l.get.hsl=function(e){if(!e)return null;var t=e.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var r=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,c(parseFloat(t[2]),0,100),c(parseFloat(t[3]),0,100),c(isNaN(r)?1:r,0,1)]}return null},l.get.hwb=function(e){if(!e)return null;var t=e.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var r=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,c(parseFloat(t[2]),0,100),c(parseFloat(t[3]),0,100),c(isNaN(r)?1:r,0,1)]}return null},l.to.hex=function(){var e=a(arguments);return"#"+u(e[0])+u(e[1])+u(e[2])+(e[3]<1?u(Math.round(255*e[3])):"")},l.to.rgb=function(){var e=a(arguments);return e.length<4||1===e[3]?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},l.to.rgb.percent=function(){var e=a(arguments),t=Math.round(e[0]/255*100),r=Math.round(e[1]/255*100),n=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+t+"%, "+r+"%, "+n+"%)":"rgba("+t+"%, "+r+"%, "+n+"%, "+e[3]+")"},l.to.hsl=function(){var e=a(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},l.to.hwb=function(){var e=a(arguments),t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},l.to.keyword=function(e){return i[e.slice(0,3)]}},38314:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var n=(0,r(41495).A)("outline","text-wrap-disabled","IconTextWrapDisabled",[["path",{d:"M4 6l10 0",key:"svg-0"}],["path",{d:"M4 18l10 0",key:"svg-1"}],["path",{d:"M4 12h17l-3 -3m0 6l3 -3",key:"svg-2"}]])},38561:e=>{var t=Math.max;e.exports=function(e,r,n,a){for(var o=-1,i=e.length,s=n.length,l=-1,c=r.length,u=t(i-s,0),d=Array(c+u),h=!a;++l{"use strict";r.d(t,{A:()=>n});var n=(0,r(41495).A)("outline","arrow-forward-up","IconArrowForwardUp",[["path",{d:"M15 14l4 -4l-4 -4",key:"svg-0"}],["path",{d:"M19 10h-11a4 4 0 1 0 0 8h1",key:"svg-1"}]])},39785:(e,t,r)=>{"use strict";r.d(t,{o:()=>a});var n=r(55729);function a(e,t,r={leading:!1}){let[o,i]=(0,n.useState)(e),s=(0,n.useRef)(!1),l=(0,n.useRef)(null),c=(0,n.useRef)(!1),u=()=>window.clearTimeout(l.current);return(0,n.useEffect)(()=>{s.current&&(!c.current&&r.leading?(c.current=!0,i(e)):(u(),l.current=window.setTimeout(()=>{c.current=!1,i(e)},t)))},[e,r.leading,t]),(0,n.useEffect)(()=>(s.current=!0,u),[]),[o,u]}},40399:(e,t,r)=>{"use strict";r.d(t,{RH:()=>o}),r(55729);var n=r(67549);let a=new WeakMap;function o(e,t){let r=(0,n.Pj)(t),a=i(r);for(let[n,o]of e)(!a.has(n)||(null==t?void 0:t.dangerouslyForceHydrate))&&(a.add(n),r.set(n,o))}let i=e=>{let t=a.get(e);return t||(t=new WeakSet,a.set(e,t)),t}},40561:e=>{"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},43149:(e,t,r)=>{"use strict";var n=r(229),a=Array.prototype.concat,o=Array.prototype.slice,i=e.exports=function(e){for(var t=[],r=0,i=e.length;r{var n=r(72203);e.exports=r(43862)(n)},44595:(e,t,r)=>{"use strict";r.d(t,{r:()=>x});var n=r(6029);r(55729);var a=r(80616),o=r(37666),i=r(42098),s=r(60481),l=r(43016),c=r(78704),u=r(70603),d=r(93778),h=r(76),f=r(40461),p=r(69584),m=r(15862),b=r(19589);function g({spacing:e,verticalSpacing:t,cols:r,selector:a}){let o=(0,m.xd)(),i=void 0===t?e:t,s=(0,d.J)({"--sg-spacing-x":(0,h.GY)((0,p.D)(e)),"--sg-spacing-y":(0,h.GY)((0,p.D)(i)),"--sg-cols":(0,p.D)(r)?.toString()}),l=(0,c.H)(o.breakpoints).reduce((t,n)=>(t[n]||(t[n]={}),"object"==typeof e&&void 0!==e[n]&&(t[n]["--sg-spacing-x"]=(0,h.GY)(e[n])),"object"==typeof i&&void 0!==i[n]&&(t[n]["--sg-spacing-y"]=(0,h.GY)(i[n])),"object"==typeof r&&void 0!==r[n]&&(t[n]["--sg-cols"]=r[n]),t),{}),u=(0,f.q)((0,c.H)(l),o.breakpoints).filter(e=>(0,c.H)(l[e.value]).length>0).map(e=>({query:`(min-width: ${o.breakpoints[e.value]})`,styles:l[e.value]}));return(0,n.jsx)(b.K,{styles:s,media:u,selector:a})}function v(e){return"object"==typeof e&&null!==e?(0,c.H)(e):[]}function y({spacing:e,verticalSpacing:t,cols:r,selector:a}){let o=void 0===t?e:t,i=(0,d.J)({"--sg-spacing-x":(0,h.GY)((0,p.D)(e)),"--sg-spacing-y":(0,h.GY)((0,p.D)(o)),"--sg-cols":(0,p.D)(r)?.toString()}),s=function({spacing:e,verticalSpacing:t,cols:r}){return Array.from(new Set([...v(e),...v(t),...v(r)])).sort((e,t)=>(0,u.px)(e)-(0,u.px)(t))}({spacing:e,verticalSpacing:t,cols:r}),l=s.reduce((t,n)=>(t[n]||(t[n]={}),"object"==typeof e&&void 0!==e[n]&&(t[n]["--sg-spacing-x"]=(0,h.GY)(e[n])),"object"==typeof o&&void 0!==o[n]&&(t[n]["--sg-spacing-y"]=(0,h.GY)(o[n])),"object"==typeof r&&void 0!==r[n]&&(t[n]["--sg-cols"]=r[n]),t),{}),c=s.map(e=>({query:`simple-grid (min-width: ${e})`,styles:l[e]}));return(0,n.jsx)(b.K,{styles:i,container:c,selector:a})}var w={container:"m_925c2d2c",root:"m_2415a157"};let E={cols:1,spacing:"md",type:"media"},x=(0,l.P9)((e,t)=>{let r=(0,a.Y)("SimpleGrid",E,e),{classNames:l,className:c,style:u,styles:d,unstyled:h,vars:f,cols:p,verticalSpacing:m,spacing:b,type:v,...x}=r,M=(0,o.I)({name:"SimpleGrid",classes:w,props:r,className:c,style:u,classNames:l,styles:d,unstyled:h,vars:f}),N=(0,i.C)();return"container"===v?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(y,{...r,selector:`.${N}`}),(0,n.jsx)("div",{...M("container"),children:(0,n.jsx)(s.a,{ref:t,...M("root",{className:N}),...x})})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(g,{...r,selector:`.${N}`}),(0,n.jsx)(s.a,{ref:t,...M("root",{className:N}),...x})]})});x.classes=w,x.displayName="@mantine/core/SimpleGrid"},45852:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}},46375:e=>{function t(e){return e&&e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function r(e){return e}function n(e,n){let a=(n=n||{}).delimiter||".",o=n.maxDepth,i=n.transformKey||r,s={};return!function e(r,l,c){c=c||1,Object.keys(r).forEach(function(u){let d=r[u],h=n.safe&&Array.isArray(d),f=Object.prototype.toString.call(d),p=t(d),m=l?l+a+i(u):i(u);if(!h&&!p&&("[object Object]"===f||"[object Array]"===f)&&Object.keys(d).length&&(!n.maxDepth||c0&&(n=u(r.shift()),d=u(r[0]))}h[n]=e(a[t],o)}),c}},47687:(e,t,r)=>{var n=r(12364),a=r(23356);e.exports=function(e,t,r){var o=!0,i=!0;if("function"!=typeof e)throw TypeError("Expected a function");return a(r)&&(o="leading"in r?!!r.leading:o,i="trailing"in r?!!r.trailing:i),n(e,t,{leading:o,maxWait:t,trailing:i})}},48286:e=>{e.exports=function(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n;return n}},48546:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}},48718:(e,t,r)=>{let n=r(40561),a={};for(let e of Object.keys(n))a[n[e]]=e;let o={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(let t of(e.exports=o,Object.keys(o))){if(!("channels"in o[t]))throw Error("missing channels property: "+t);if(!("labels"in o[t]))throw Error("missing channel labels property: "+t);if(o[t].labels.length!==o[t].channels)throw Error("channel and label counts mismatch: "+t);let{channels:e,labels:r}=o[t];delete o[t].channels,delete o[t].labels,Object.defineProperty(o[t],"channels",{value:e}),Object.defineProperty(o[t],"labels",{value:r})}o.rgb.hsl=function(e){let t,r=e[0]/255,n=e[1]/255,a=e[2]/255,o=Math.min(r,n,a),i=Math.max(r,n,a),s=i-o;i===o?t=0:r===i?t=(n-a)/s:n===i?t=2+(a-r)/s:a===i&&(t=4+(r-n)/s),(t=Math.min(60*t,360))<0&&(t+=360);let l=(o+i)/2;return[t,100*(i===o?0:l<=.5?s/(i+o):s/(2-i-o)),100*l]},o.rgb.hsv=function(e){let t,r,n,a,o,i=e[0]/255,s=e[1]/255,l=e[2]/255,c=Math.max(i,s,l),u=c-Math.min(i,s,l),d=function(e){return(c-e)/6/u+.5};return 0===u?(a=0,o=0):(o=u/c,t=d(i),r=d(s),n=d(l),i===c?a=n-r:s===c?a=1/3+t-n:l===c&&(a=2/3+r-t),a<0?a+=1:a>1&&(a-=1)),[360*a,100*o,100*c]},o.rgb.hwb=function(e){let t=e[0],r=e[1],n=e[2];return[o.rgb.hsl(e)[0],1/255*Math.min(t,Math.min(r,n))*100,100*(n=1-1/255*Math.max(t,Math.max(r,n)))]},o.rgb.cmyk=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,a=Math.min(1-t,1-r,1-n);return[100*((1-t-a)/(1-a)||0),100*((1-r-a)/(1-a)||0),100*((1-n-a)/(1-a)||0),100*a]},o.rgb.keyword=function(e){let t,r=a[e];if(r)return r;let o=1/0;for(let r of Object.keys(n)){let a=n[r],i=(e[0]-a[0])**2+(e[1]-a[1])**2+(e[2]-a[2])**2;i.04045?((t+.055)/1.055)**2.4:t/12.92)+.3576*(r=r>.04045?((r+.055)/1.055)**2.4:r/12.92)+.1805*(n=n>.04045?((n+.055)/1.055)**2.4:n/12.92)),100*(.2126*t+.7152*r+.0722*n),100*(.0193*t+.1192*r+.9505*n)]},o.rgb.lab=function(e){let t=o.rgb.xyz(e),r=t[0],n=t[1],a=t[2];return r/=95.047,n/=100,a/=108.883,[116*(n=n>.008856?n**(1/3):7.787*n+16/116)-16,500*((r=r>.008856?r**(1/3):7.787*r+16/116)-n),200*(n-(a=a>.008856?a**(1/3):7.787*a+16/116))]},o.hsl.rgb=function(e){let t,r,n,a=e[0]/360,o=e[1]/100,i=e[2]/100;if(0===o)return[n=255*i,n,n];t=i<.5?i*(1+o):i+o-i*o;let s=2*i-t,l=[0,0,0];for(let e=0;e<3;e++)(r=a+-(1/3*(e-1)))<0&&r++,r>1&&r--,n=6*r<1?s+(t-s)*6*r:2*r<1?t:3*r<2?s+(t-s)*(2/3-r)*6:s,l[e]=255*n;return l},o.hsl.hsv=function(e){let t=e[0],r=e[1]/100,n=e[2]/100,a=r,o=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,a*=o<=1?o:2-o;let i=(n+r)/2;return[t,100*(0===n?2*a/(o+a):2*r/(n+r)),100*i]},o.hsv.rgb=function(e){let t=e[0]/60,r=e[1]/100,n=e[2]/100,a=Math.floor(t)%6,o=t-Math.floor(t),i=255*n*(1-r),s=255*n*(1-r*o),l=255*n*(1-r*(1-o));switch(n*=255,a){case 0:return[n,l,i];case 1:return[s,n,i];case 2:return[i,n,l];case 3:return[i,s,n];case 4:return[l,i,n];case 5:return[n,i,s]}},o.hsv.hsl=function(e){let t,r,n=e[0],a=e[1]/100,o=e[2]/100,i=Math.max(o,.01);r=(2-a)*o;let s=(2-a)*i;return[n,100*(t=(t=a*i/(s<=1?s:2-s))||0),100*(r/=2)]},o.hwb.rgb=function(e){let t,r,n,a,o=e[0]/360,i=e[1]/100,s=e[2]/100,l=i+s;l>1&&(i/=l,s/=l);let c=Math.floor(6*o),u=1-s;t=6*o-c,(1&c)!=0&&(t=1-t);let d=i+t*(u-i);switch(c){default:case 6:case 0:r=u,n=d,a=i;break;case 1:r=d,n=u,a=i;break;case 2:r=i,n=u,a=d;break;case 3:r=i,n=d,a=u;break;case 4:r=d,n=i,a=u;break;case 5:r=u,n=i,a=d}return[255*r,255*n,255*a]},o.cmyk.rgb=function(e){let t=e[0]/100,r=e[1]/100,n=e[2]/100,a=e[3]/100;return[255*(1-Math.min(1,t*(1-a)+a)),255*(1-Math.min(1,r*(1-a)+a)),255*(1-Math.min(1,n*(1-a)+a))]},o.xyz.rgb=function(e){let t,r,n,a=e[0]/100,o=e[1]/100,i=e[2]/100;return t=(t=3.2406*a+-1.5372*o+-.4986*i)>.0031308?1.055*t**(1/2.4)-.055:12.92*t,r=(r=-.9689*a+1.8758*o+.0415*i)>.0031308?1.055*r**(1/2.4)-.055:12.92*r,n=(n=.0557*a+-.204*o+1.057*i)>.0031308?1.055*n**(1/2.4)-.055:12.92*n,[255*(t=Math.min(Math.max(0,t),1)),255*(r=Math.min(Math.max(0,r),1)),255*(n=Math.min(Math.max(0,n),1))]},o.xyz.lab=function(e){let t=e[0],r=e[1],n=e[2];return t/=95.047,r/=100,n/=108.883,[116*(r=r>.008856?r**(1/3):7.787*r+16/116)-16,500*((t=t>.008856?t**(1/3):7.787*t+16/116)-r),200*(r-(n=n>.008856?n**(1/3):7.787*n+16/116))]},o.lab.xyz=function(e){let t,r,n,a=e[0],o=e[1],i=e[2];t=o/500+(r=(a+16)/116),n=r-i/200;let s=r**3,l=t**3,c=n**3;return r=(s>.008856?s:(r-16/116)/7.787)*100,[t=(l>.008856?l:(t-16/116)/7.787)*95.047,r,n=(c>.008856?c:(n-16/116)/7.787)*108.883]},o.lab.lch=function(e){let t,r=e[0],n=e[1],a=e[2];return(t=360*Math.atan2(a,n)/2/Math.PI)<0&&(t+=360),[r,Math.sqrt(n*n+a*a),t]},o.lch.lab=function(e){let t=e[0],r=e[1],n=e[2]/360*2*Math.PI;return[t,r*Math.cos(n),r*Math.sin(n)]},o.rgb.ansi16=function(e,t=null){let[r,n,a]=e,i=null===t?o.rgb.hsv(e)[2]:t;if(0===(i=Math.round(i/50)))return 30;let s=30+(Math.round(a/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return 2===i&&(s+=60),s},o.hsv.ansi16=function(e){return o.rgb.ansi16(o.hsv.rgb(e),e[2])},o.rgb.ansi256=function(e){let t=e[0],r=e[1],n=e[2];return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},o.ansi16.rgb=function(e){let t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];let r=(~~(e>50)+1)*.5;return[(1&t)*r*255,(t>>1&1)*r*255,(t>>2&1)*r*255]},o.ansi256.rgb=function(e){let t;if(e>=232){let t=(e-232)*10+8;return[t,t,t]}return[Math.floor((e-=16)/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},o.rgb.hex=function(e){let t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},o.hex.rgb=function(e){let t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];3===t[0].length&&(r=r.split("").map(e=>e+e).join(""));let n=parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},o.rgb.hcg=function(e){let t,r=e[0]/255,n=e[1]/255,a=e[2]/255,o=Math.max(Math.max(r,n),a),i=Math.min(Math.min(r,n),a),s=o-i;return t=s<1?i/(1-s):0,[360*((s<=0?0:o===r?(n-a)/s%6:o===n?2+(a-r)/s:4+(r-n)/s)/6%1),100*s,100*t]},o.hsl.hcg=function(e){let t=e[1]/100,r=e[2]/100,n=r<.5?2*t*r:2*t*(1-r),a=0;return n<1&&(a=(r-.5*n)/(1-n)),[e[0],100*n,100*a]},o.hsv.hcg=function(e){let t=e[1]/100,r=e[2]/100,n=t*r,a=0;return n<1&&(a=(r-n)/(1-n)),[e[0],100*n,100*a]},o.hcg.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100;if(0===r)return[255*n,255*n,255*n];let a=[0,0,0],o=t%1*6,i=o%1,s=1-i,l=0;switch(Math.floor(o)){case 0:a[0]=1,a[1]=i,a[2]=0;break;case 1:a[0]=s,a[1]=1,a[2]=0;break;case 2:a[0]=0,a[1]=1,a[2]=i;break;case 3:a[0]=0,a[1]=s,a[2]=1;break;case 4:a[0]=i,a[1]=0,a[2]=1;break;default:a[0]=1,a[1]=0,a[2]=s}return l=(1-r)*n,[(r*a[0]+l)*255,(r*a[1]+l)*255,(r*a[2]+l)*255]},o.hcg.hsv=function(e){let t=e[1]/100,r=t+e[2]/100*(1-t),n=0;return r>0&&(n=t/r),[e[0],100*n,100*r]},o.hcg.hsl=function(e){let t=e[1]/100,r=e[2]/100*(1-t)+.5*t,n=0;return r>0&&r<.5?n=t/(2*r):r>=.5&&r<1&&(n=t/(2*(1-r))),[e[0],100*n,100*r]},o.hcg.hwb=function(e){let t=e[1]/100,r=t+e[2]/100*(1-t);return[e[0],(r-t)*100,(1-r)*100]},o.hwb.hcg=function(e){let t=e[1]/100,r=1-e[2]/100,n=r-t,a=0;return n<1&&(a=(r-n)/(1-n)),[e[0],100*n,100*a]},o.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},o.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},o.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},o.gray.hsl=function(e){return[0,0,e[0]]},o.gray.hsv=o.gray.hsl,o.gray.hwb=function(e){return[0,100,e[0]]},o.gray.cmyk=function(e){return[0,0,0,e[0]]},o.gray.lab=function(e){return[e[0],0,0]},o.gray.hex=function(e){let t=255&Math.round(e[0]/100*255),r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r},o.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},53416:(e,t,r)=>{function n(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}n.prototype=r(91357)(r(38088).prototype),n.prototype.constructor=n,e.exports=n},54396:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var n=(0,r(41495).A)("outline","map-pin","IconMapPin",[["path",{d:"M9 11a3 3 0 1 0 6 0a3 3 0 0 0 -6 0",key:"svg-0"}],["path",{d:"M17.657 16.657l-4.243 4.243a2 2 0 0 1 -2.827 0l-4.244 -4.243a8 8 0 1 1 11.314 0z",key:"svg-1"}]])},55160:(e,t,r)=>{var n=r(72203),a=r(27803),o=r(77991),i=r(1178),s=r(89765),l=r(84116),c=r(24656),u=r(44040),d=r(1620),h=r(98888),f=Math.max;e.exports=function(e,t,r,p,m,b,g,v){var y=2&t;if(!y&&"function"!=typeof e)throw TypeError("Expected a function");var w=p?p.length:0;if(w||(t&=-97,p=m=void 0),g=void 0===g?g:f(h(g),0),v=void 0===v?v:h(v),w-=m?m.length:0,64&t){var E=p,x=m;p=m=void 0}var M=y?void 0:l(e),N=[e,t,r,p,m,E,x,b,g,v];if(M&&c(N,M),e=N[0],t=N[1],r=N[2],p=N[3],m=N[4],(v=N[9]=void 0===N[9]?y?0:e.length:f(N[9]-w,0))||!(24&t)||(t&=-25),t&&1!=t)D=8==t||16==t?o(e,t,v):32!=t&&33!=t||m.length?i.apply(void 0,N):s(e,t,r,p);else var D=a(e,t,r);return d((M?n:u)(D,N),e,t)}},56906:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var n=(0,r(41495).A)("outline","message","IconMessage",[["path",{d:"M8 9h8",key:"svg-0"}],["path",{d:"M8 13h6",key:"svg-1"}],["path",{d:"M18 4a3 3 0 0 1 3 3v8a3 3 0 0 1 -3 3h-5l-5 3v-3h-2a3 3 0 0 1 -3 -3v-8a3 3 0 0 1 3 -3h12z",key:"svg-2"}]])},57140:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},59513:(e,t,r)=>{var n=r(33573),a=r(3619);e.exports=function(e){return!0===e||!1===e||a(e)&&"[object Boolean]"==n(e)}},60449:(e,t,r)=>{var n=r(24127);e.exports=function(e,t,r){var a=null==e?void 0:n(e,t);return void 0===a?r:a}},61411:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var n=(0,r(41495).A)("outline","list","IconList",[["path",{d:"M9 6l11 0",key:"svg-0"}],["path",{d:"M9 12l11 0",key:"svg-1"}],["path",{d:"M9 18l11 0",key:"svg-2"}],["path",{d:"M5 6l0 .01",key:"svg-3"}],["path",{d:"M5 12l0 .01",key:"svg-4"}],["path",{d:"M5 18l0 .01",key:"svg-5"}]])},61441:(e,t,r)=>{"use strict";r.d(t,{i:()=>s});var n=r(6029),a=r(55729),o=r(80616);let i={timeout:1e3};function s(e){let{children:t,timeout:r,value:s,...l}=(0,o.Y)("CopyButton",i,e),c=function({timeout:e=2e3}={}){let[t,r]=(0,a.useState)(null),[n,o]=(0,a.useState)(!1),[i,s]=(0,a.useState)(null);return{copy:t=>{"clipboard"in navigator?navigator.clipboard.writeText(t).then(()=>{window.clearTimeout(i),s(window.setTimeout(()=>o(!1),e)),o(!0)}).catch(e=>r(e)):r(Error("useClipboard: navigator.clipboard is not supported"))},reset:()=>{o(!1),r(null),window.clearTimeout(i)},error:t,copied:n}}({timeout:r});return(0,n.jsx)(n.Fragment,{children:t({copy:()=>c.copy(s),copied:c.copied,...l})})}s.displayName="@mantine/core/CopyButton"},62118:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var n=(0,r(41495).A)("outline","player-play","IconPlayerPlay",[["path",{d:"M7 4v16l13 -8z",key:"svg-0"}]])},63778:(e,t,r)=>{var n=r(57140),a=r(88274),o=r(25907),i=r(43092);e.exports=function(e){return o(e)?n(i(e)):a(e)}},66678:(e,t,r)=>{var n=r(38302),a=r(2882),o=r(91994);e.exports=function(e,t,r){return t==t?o(e,t,r):n(e,a,r)}},67125:(e,t,r)=>{let n=r(38311),a=r(8271),o=["keyword","gray","hex"],i={};for(let e of Object.keys(a))i[[...a[e].labels].sort().join("")]=e;let s={};function l(e,t){let r,c;if(!(this instanceof l))return new l(e,t);if(t&&t in o&&(t=null),t&&!(t in a))throw Error("Unknown model: "+t);if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof l)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if("string"==typeof e){let t=n.get(e);if(null===t)throw Error("Unable to parse color from string: "+e);this.model=t.model,c=a[this.model].channels,this.color=t.value.slice(0,c),this.valpha="number"==typeof t.value[c]?t.value[c]:1}else if(e.length>0){this.model=t||"rgb",c=a[this.model].channels;let r=Array.prototype.slice.call(e,0,c);this.color=d(r,c),this.valpha="number"==typeof e[c]?e[c]:1}else if("number"==typeof e)this.model="rgb",this.color=[e>>16&255,e>>8&255,255&e],this.valpha=1;else{this.valpha=1;let t=Object.keys(e);"alpha"in e&&(t.splice(t.indexOf("alpha"),1),this.valpha="number"==typeof e.alpha?e.alpha:0);let n=t.sort().join("");if(!(n in i))throw Error("Unable to parse color from object: "+JSON.stringify(e));this.model=i[n];let{labels:o}=a[this.model],s=[];for(r=0;r(e%360+360)%360),saturationl:c("hsl",1,u(100)),lightness:c("hsl",2,u(100)),saturationv:c("hsv",1,u(100)),value:c("hsv",2,u(100)),chroma:c("hcg",1,u(100)),gray:c("hcg",2,u(100)),white:c("hwb",1,u(100)),wblack:c("hwb",2,u(100)),cyan:c("cmyk",0,u(100)),magenta:c("cmyk",1,u(100)),yellow:c("cmyk",2,u(100)),black:c("cmyk",3,u(100)),x:c("xyz",0,u(95.047)),y:c("xyz",1,u(100)),z:c("xyz",2,u(108.833)),l:c("lab",0,u(100)),a:c("lab",1),b:c("lab",2),keyword(e){return void 0!==e?new l(e):a[this.model].keyword(this.color)},hex(e){return void 0!==e?new l(e):n.to.hex(this.rgb().round().color)},hexa(e){if(void 0!==e)return new l(e);let t=this.rgb().round().color,r=Math.round(255*this.valpha).toString(16).toUpperCase();return 1===r.length&&(r="0"+r),n.to.hex(t)+r},rgbNumber(){let e=this.rgb().color;return(255&e[0])<<16|(255&e[1])<<8|255&e[2]},luminosity(){let e=this.rgb().color,t=[];for(let[r,n]of e.entries()){let e=n/255;t[r]=e<=.04045?e/12.92:((e+.055)/1.055)**2.4}return .2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(e){let t=this.luminosity(),r=e.luminosity();return t>r?(t+.05)/(r+.05):(r+.05)/(t+.05)},level(e){let t=this.contrast(e);return t>=7?"AAA":t>=4.5?"AA":""},isDark(){let e=this.rgb().color;return(2126*e[0]+7152*e[1]+722*e[2])/1e4<128},isLight(){return!this.isDark()},negate(){let e=this.rgb();for(let t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten(e){let t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken(e){let t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate(e){let t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate(e){let t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten(e){let t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken(e){let t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale(){let e=this.rgb().color,t=.3*e[0]+.59*e[1]+.11*e[2];return l.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){let t=this.hsl(),r=t.color[0];return r=(r=(r+e)%360)<0?360+r:r,t.color[0]=r,t},mix(e,t){if(!e||!e.rgb)throw Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);let r=e.rgb(),n=this.rgb(),a=void 0===t?.5:t,o=2*a-1,i=r.alpha()-n.alpha(),s=((o*i==-1?o:(o+i)/(1+o*i))+1)/2,c=1-s;return l.rgb(s*r.red()+c*n.red(),s*r.green()+c*n.green(),s*r.blue()+c*n.blue(),r.alpha()*a+n.alpha()*(1-a))}},Object.keys(a))){if(o.includes(e))continue;let{channels:t}=a[e];l.prototype[e]=function(...t){var r;return this.model===e?new l(this):t.length>0?new l(t,e):new l([...Array.isArray(r=a[this.model][e].raw(this.color))?r:[r],this.valpha],e)},l[e]=function(...r){let n=r[0];return"number"==typeof n&&(n=d(r,t)),new l(n,e)}}function c(e,t,r){for(let n of e=Array.isArray(e)?e:[e])(s[n]||(s[n]=[]))[t]=r;return e=e[0],function(n){let a;return void 0!==n?(r&&(n=r(n)),(a=this[e]()).color[t]=n):(a=this[e]().color[t],r&&(a=r(a))),a}}function u(e){return function(t){return Math.max(0,Math.min(e,t))}}function d(e,t){for(let r=0;r{"use strict";r.d(t,{E:()=>p});var n=r(6029),a=r(26615);r(55729);var o=r(76),i=r(5618),s=r(80616),l=r(37666),c=r(60481),u=r(43016),d={root:"m_18320242","skeleton-fade":"m_299c329c"};let h={visible:!0,animate:!0},f=(0,i.V)((e,{width:t,height:r,radius:n,circle:i})=>({root:{"--skeleton-height":(0,a.D)(r),"--skeleton-width":i?(0,a.D)(r):(0,a.D)(t),"--skeleton-radius":i?"1000px":void 0===n?void 0:(0,o.nJ)(n)}})),p=(0,u.P9)((e,t)=>{let r=(0,s.Y)("Skeleton",h,e),{classNames:a,className:o,style:i,styles:u,unstyled:p,vars:m,width:b,height:g,circle:v,visible:y,radius:w,animate:E,mod:x,...M}=r,N=(0,l.I)({name:"Skeleton",classes:d,props:r,className:o,style:i,classNames:a,styles:u,unstyled:p,vars:m,varsResolver:f});return(0,n.jsx)(c.a,{ref:t,...N("root"),mod:[{visible:y,animate:E},x],...M})});p.classes=d,p.displayName="@mantine/core/Skeleton"},67290:(e,t,r)=>{var n=r(6802),a=r(28469),o=r(20764);e.exports=function(e){var t=a(e);return 1==t.length&&t[0][2]?o(t[0][0],t[0][1]):function(r){return r===e||n(r,e,t)}}},68668:(e,t,r)=>{var n=r(66678);e.exports=function(e,t){return!!(null==e?0:e.length)&&n(e,t,0)>-1}},68988:(e,t,r)=>{var n=r(67290),a=r(10931),o=r(5549),i=r(91544),s=r(63778);e.exports=function(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?i(e)?a(e[0],e[1]):n(e):s(e)}},69926:e=>{var t=/\{\n\/\* \[wrapped with (.+)\] \*/,r=/,? & /;e.exports=function(e){var n=e.match(t);return n?n[1].split(r):[]}},69986:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var n=(0,r(41495).A)("outline","arrows-left-right","IconArrowsLeftRight",[["path",{d:"M21 17l-18 0",key:"svg-0"}],["path",{d:"M6 10l-3 -3l3 -3",key:"svg-1"}],["path",{d:"M3 7l18 0",key:"svg-2"}],["path",{d:"M18 20l3 -3l-3 -3",key:"svg-3"}]])},72203:(e,t,r)=>{var n=r(5549),a=r(88149);e.exports=a?function(e,t){return a.set(e,t),e}:n},73454:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var n=(0,r(41495).A)("outline","rotate-clockwise","IconRotateClockwise",[["path",{d:"M4.05 11a8 8 0 1 1 .5 4m-.5 5v-5h5",key:"svg-0"}]])},74209:e=>{var t=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;e.exports=function(e,r){var n=r.length;if(!n)return e;var a=n-1;return r[a]=(n>1?"& ":"")+r[a],r=r.join(n>2?", ":" "),e.replace(t,"{\n/* [wrapped with "+r+"] */\n")}},74981:e=>{var t=Math.max;e.exports=function(e,r,n,a){for(var o=-1,i=e.length,s=-1,l=n.length,c=-1,u=r.length,d=t(i-l,0),h=Array(d+u),f=!a;++o{e.exports=function(e){return null===e}},77991:(e,t,r)=>{var n=r(93248),a=r(17782),o=r(1178),i=r(1920),s=r(8578),l=r(81515),c=r(45516);e.exports=function(e,t,r){var u=a(e);function d(){for(var a=arguments.length,h=Array(a),f=a,p=s(d);f--;)h[f]=arguments[f];var m=a<3&&h[0]!==p&&h[a-1]!==p?[]:l(h,p);return(a-=m.length){e.exports=function(){}},79621:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var n=(0,r(41495).A)("outline","arrows-minimize","IconArrowsMinimize",[["path",{d:"M5 9l4 0l0 -4",key:"svg-0"}],["path",{d:"M3 3l6 6",key:"svg-1"}],["path",{d:"M5 15l4 0l0 4",key:"svg-2"}],["path",{d:"M3 21l6 -6",key:"svg-3"}],["path",{d:"M19 9l-4 0l0 -4",key:"svg-4"}],["path",{d:"M15 9l6 -6",key:"svg-5"}],["path",{d:"M19 15l-4 0l0 4",key:"svg-6"}],["path",{d:"M15 15l6 6",key:"svg-7"}]])},79860:(e,t,r)=>{var n=r(31736),a=r(78383),o=r(48546);e.exports=n&&1/o(new n([,-0]))[1]==1/0?function(e){return new n(e)}:a},81055:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var n=(0,r(41495).A)("outline","arrows-maximize","IconArrowsMaximize",[["path",{d:"M16 4l4 0l0 4",key:"svg-0"}],["path",{d:"M14 10l6 -6",key:"svg-1"}],["path",{d:"M8 20l-4 0l0 -4",key:"svg-2"}],["path",{d:"M4 20l6 -6",key:"svg-3"}],["path",{d:"M16 20l4 0l0 -4",key:"svg-4"}],["path",{d:"M14 14l6 6",key:"svg-5"}],["path",{d:"M8 4l-4 0l0 4",key:"svg-6"}],["path",{d:"M4 4l6 6",key:"svg-7"}]])},81244:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var n=(0,r(41495).A)("outline","toggle-left","IconToggleLeft",[["path",{d:"M8 12m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-0"}],["path",{d:"M2 6m0 6a6 6 0 0 1 6 -6h8a6 6 0 0 1 6 6v0a6 6 0 0 1 -6 6h-8a6 6 0 0 1 -6 -6z",key:"svg-1"}]])},81515:e=>{var t="__lodash_placeholder__";e.exports=function(e,r){for(var n=-1,a=e.length,o=0,i=[];++n{e.exports=function(e,t){return e.has(t)}},83529:(e,t,r)=>{function n(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=0xffffffff,this.__views__=[]}n.prototype=r(91357)(r(38088).prototype),n.prototype.constructor=n,e.exports=n},84116:(e,t,r)=>{var n=r(88149),a=r(78383);e.exports=n?function(e){return n.get(e)}:a},84450:(e,t,r)=>{var n=r(33573),a=r(91544),o=r(3619);e.exports=function(e){return"string"==typeof e||!a(e)&&o(e)&&"[object String]"==n(e)}},85274:(e,t,r)=>{var n=r(83529),a=r(84116),o=r(94209),i=r(93407);e.exports=function(e){var t=o(e),r=i[t];if("function"!=typeof r||!(t in n.prototype))return!1;if(e===r)return!0;var s=a(r);return!!s&&e===s[0]}},86152:e=>{e.exports=function(e,t,r){for(var n=-1,a=null==e?0:e.length;++n{var n=r(17877),a=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(a,""):e}},86823:(e,t,r)=>{"use strict";r.d(t,{B:()=>e1});var n,a,o,i,s,l,c,u,d,h,f,p,m,b,g={};function v(e,t,r,n){return new(r||(r=Promise))(function(a,o){function i(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?a(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(i,s)}l((n=n.apply(e,t||[])).next())})}r.r(g),r.d(g,{default:()=>ep}),(n=f||(f={}))[n.Document=0]="Document",n[n.DocumentType=1]="DocumentType",n[n.Element=2]="Element",n[n.Text=3]="Text",n[n.CDATA=4]="CDATA",n[n.Comment=5]="Comment";var y=function(){function e(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}return e.prototype.getId=function(e){if(!e)return -1;var t,r=null==(t=this.getMeta(e))?void 0:t.id;return null!=r?r:-1},e.prototype.getNode=function(e){return this.idNodeMap.get(e)||null},e.prototype.getIds=function(){return Array.from(this.idNodeMap.keys())},e.prototype.getMeta=function(e){return this.nodeMetaMap.get(e)||null},e.prototype.removeNodeFromMap=function(e){var t=this,r=this.getId(e);this.idNodeMap.delete(r),e.childNodes&&e.childNodes.forEach(function(e){return t.removeNodeFromMap(e)})},e.prototype.has=function(e){return this.idNodeMap.has(e)},e.prototype.hasNode=function(e){return this.nodeMetaMap.has(e)},e.prototype.add=function(e,t){var r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)},e.prototype.replace=function(e,t){var r=this.getNode(e);if(r){var n=this.nodeMetaMap.get(r);n&&this.nodeMetaMap.set(t,n)}this.idNodeMap.set(e,t)},e.prototype.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},e}(),w=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;function E(e){return e?e.replace(/^\s+|\s+$/g,""):""}var x={script:"noscript",altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",fedropshadow:"feDropShadow",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient"},M=/([^\\]):hover/,N=RegExp(M.source,"g");function D(e,t){var r=null==t?void 0:t.stylesWithHoverClass.get(e);if(r)return r;var n=function(e,t){void 0===t&&(t={});var r,n=1,a=1;function o(e){var t=e.match(/\n/g);t&&(n+=t.length);var r=e.lastIndexOf("\n");a=-1===r?a+e.length:e.length-r}function i(){var e={line:n,column:a};return function(t){return t.position=new s(e),h(/^\s*/),t}}var s=function(e){this.start=e,this.end={line:n,column:a},this.source=t.source};s.prototype.content=e;var l=[];function c(r){var o=Error("".concat(t.source||"",":").concat(n,":").concat(a,": ").concat(r));if(o.reason=r,o.filename=t.source,o.line=n,o.column=a,o.source=e,t.silent)l.push(o);else throw o}function u(){return h(/^{\s*/)}function d(){return h(/^}/)}function h(t){var r=t.exec(e);if(r){var n=r[0];return o(n),e=e.slice(n.length),r}}function f(e){var t;for(void 0===e&&(e=[]);t=p();)!1!==t&&e.push(t),t=p();return e}function p(){var t=i();if("/"===e.charAt(0)&&"*"===e.charAt(1)){for(var r=2;""!==e.charAt(r)&&("*"!==e.charAt(r)||"/"!==e.charAt(r+1));)++r;if(r+=2,""===e.charAt(r-1))return c("End of comment missing");var n=e.slice(2,r-2);return a+=2,o(n),e=e.slice(r),a+=2,t({type:"comment",comment:n})}}function m(){var e=h(/^([^{]+)/);if(e)return E(e[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,function(e){return e.replace(/,/g,"‌")}).split(/\s*(?![^(]*\)),\s*/).map(function(e){return e.replace(/\u200C/g,",")})}function b(){var e=i(),t=h(/^(\*?[-#\/\*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(t){var r=E(t[0]);if(!h(/^:\s*/))return c("property missing ':'");var n=h(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+)/),a=e({type:"declaration",property:r.replace(w,""),value:n?E(n[0]).replace(w,""):""});return h(/^[;\s]*/),a}}function g(){var e,t=[];if(!u())return c("missing '{'");for(f(t);e=b();)!1!==e&&(t.push(e),f(t)),e=b();return d()?t:c("missing '}'")}var v=M("import"),y=M("charset"),x=M("namespace");function M(e){var t=RegExp("^@"+e+"\\s*([^;]+);");return function(){var r=i(),n=h(t);if(n){var a={type:e};return a[e]=n[1].trim(),r(a)}}}return function e(t,r){for(var n=t&&"string"==typeof t.type,a=n?t:r,o=0,i=Object.keys(t);o'):r.write('')),h=r),n.add(h,e),(e.type===f.Document||e.type===f.Element)&&!(void 0!==a&&a))for(var p=0,m=e.childNodes;pA.test(e)?e:e.replace(k,(e,t)=>t?t.toUpperCase():""),R=/\B([A-Z])/g,I=e=>e.replace(R,"-$1").toLowerCase();class j{constructor(...e){this.parentElement=null,this.parentNode=null,this.firstChild=null,this.lastChild=null,this.previousSibling=null,this.nextSibling=null,this.ELEMENT_NODE=m.ELEMENT_NODE,this.TEXT_NODE=m.TEXT_NODE}get childNodes(){let e=[],t=this.firstChild;for(;t;)e.push(t),t=t.nextSibling;return e}contains(e){if(!(e instanceof j)||e.ownerDocument!==this.ownerDocument)return!1;if(e===this)return!0;for(;e.parentNode;){if(e.parentNode===this)return!0;e=e.parentNode}return!1}appendChild(e){throw Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(e,t){throw Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(e){throw Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}}function F(e){return class t extends e{constructor(...e){super(e),this.nodeType=m.DOCUMENT_NODE,this.nodeName="#document",this.compatMode="CSS1Compat",this.RRNodeType=p.Document,this.textContent=null,this.ownerDocument=this}get documentElement(){return this.childNodes.find(e=>e.RRNodeType===p.Element&&"HTML"===e.tagName)||null}get body(){var e;return(null==(e=this.documentElement)?void 0:e.childNodes.find(e=>e.RRNodeType===p.Element&&"BODY"===e.tagName))||null}get head(){var e;return(null==(e=this.documentElement)?void 0:e.childNodes.find(e=>e.RRNodeType===p.Element&&"HEAD"===e.tagName))||null}get implementation(){return this}get firstElementChild(){return this.documentElement}appendChild(e){let t=e.RRNodeType;if((t===p.Element||t===p.DocumentType)&&this.childNodes.some(e=>e.RRNodeType===t))throw Error(`RRDomException: Failed to execute 'appendChild' on 'RRNode': Only one ${t===p.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);let r=G(this,e);return r.parentElement=null,r}insertBefore(e,t){let r=e.RRNodeType;if((r===p.Element||r===p.DocumentType)&&this.childNodes.some(e=>e.RRNodeType===r))throw Error(`RRDomException: Failed to execute 'insertBefore' on 'RRNode': Only one ${r===p.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);let n=V(this,e,t);return n.parentElement=null,n}removeChild(e){return H(this,e)}open(){this.firstChild=null,this.lastChild=null}close(){}write(e){let t;if(''===e?t="-//W3C//DTD XHTML 1.0 Transitional//EN":''===e&&(t="-//W3C//DTD HTML 4.0 Transitional//EN"),t){let e=this.createDocumentType("html",t,"");this.open(),this.appendChild(e)}}createDocument(e,r,n){return new t}createDocumentType(e,t,r){let n=new(L(j))(e,t,r);return n.ownerDocument=this,n}createElement(e){let t=new(B(j))(e);return t.ownerDocument=this,t}createElementNS(e,t){return this.createElement(t)}createTextNode(e){let t=new(U(j))(e);return t.ownerDocument=this,t}createComment(e){let t=new(z(j))(e);return t.ownerDocument=this,t}createCDATASection(e){let t=new(W(j))(e);return t.ownerDocument=this,t}toString(){return"RRDocument"}}}function L(e){return class extends e{constructor(e,t,r){super(),this.nodeType=m.DOCUMENT_TYPE_NODE,this.RRNodeType=p.DocumentType,this.name=e,this.publicId=t,this.systemId=r,this.nodeName=e,this.textContent=null}toString(){return"RRDocumentType"}}}function B(e){return class extends e{constructor(e){super(),this.nodeType=m.ELEMENT_NODE,this.RRNodeType=p.Element,this.attributes={},this.shadowRoot=null,this.tagName=e.toUpperCase(),this.nodeName=e.toUpperCase()}get textContent(){let e="";return this.childNodes.forEach(t=>e+=t.textContent),e}set textContent(e){this.firstChild=null,this.lastChild=null,this.appendChild(this.ownerDocument.createTextNode(e))}get classList(){return new Y(this.attributes.class,e=>{this.attributes.class=e})}get id(){return this.attributes.id||""}get className(){return this.attributes.class||""}get style(){var e;let t,r,n=this.attributes.style?(e=this.attributes.style,t={},r=/:(.+)/,e.replace(/\/\*.*?\*\//g,"").split(/;(?![^(]*\))/g).forEach(function(e){if(e){let n=e.split(r);n.length>1&&(t[O(n[0].trim())]=n[1].trim())}}),t):{},a=/\B([A-Z])/g;return n.setProperty=(e,t,r)=>{if(a.test(e))return;let o=O(e);t?n[o]=t:delete n[o],"important"===r&&(n[o]+=" !important"),this.attributes.style=_(n)},n.removeProperty=e=>{if(a.test(e))return"";let t=O(e),r=n[t]||"";return delete n[t],this.attributes.style=_(n),r},n}getAttribute(e){return this.attributes[e]||null}setAttribute(e,t){this.attributes[e]=t}setAttributeNS(e,t,r){this.setAttribute(t,r)}removeAttribute(e){delete this.attributes[e]}appendChild(e){return G(this,e)}insertBefore(e,t){return V(this,e,t)}removeChild(e){return H(this,e)}attachShadow(e){let t=this.ownerDocument.createElement("SHADOWROOT");return this.shadowRoot=t,t}dispatchEvent(e){return!0}toString(){let e="";for(let t in this.attributes)e+=`${t}="${this.attributes[t]}" `;return`${this.tagName} ${e}`}}}function P(e){return class extends e{attachShadow(e){throw Error("RRDomException: Failed to execute 'attachShadow' on 'RRElement': This RRElement does not support attachShadow")}play(){this.paused=!1}pause(){this.paused=!0}}}function U(e){return class extends e{constructor(e){super(),this.nodeType=m.TEXT_NODE,this.nodeName="#text",this.RRNodeType=p.Text,this.data=e}get textContent(){return this.data}set textContent(e){this.data=e}toString(){return`RRText text=${JSON.stringify(this.data)}`}}}function z(e){return class extends e{constructor(e){super(),this.nodeType=m.COMMENT_NODE,this.nodeName="#comment",this.RRNodeType=p.Comment,this.data=e}get textContent(){return this.data}set textContent(e){this.data=e}toString(){return`RRComment text=${JSON.stringify(this.data)}`}}}function W(e){return class extends e{constructor(e){super(),this.nodeName="#cdata-section",this.nodeType=m.CDATA_SECTION_NODE,this.RRNodeType=p.CDATA,this.data=e}get textContent(){return this.data}set textContent(e){this.data=e}toString(){return`RRCDATASection data=${JSON.stringify(this.data)}`}}}class Y{constructor(e,t){if(this.classes=[],this.add=(...e)=>{for(let t of e){let e=String(t);this.classes.indexOf(e)>=0||this.classes.push(e)}this.onChange&&this.onChange(this.classes.join(" "))},this.remove=(...e)=>{this.classes=this.classes.filter(t=>-1===e.indexOf(t)),this.onChange&&this.onChange(this.classes.join(" "))},e){const t=e.trim().split(/\s+/);this.classes.push(...t)}this.onChange=t}}function G(e,t){return t.parentNode&&t.parentNode.removeChild(t),e.lastChild?(e.lastChild.nextSibling=t,t.previousSibling=e.lastChild):(e.firstChild=t,t.previousSibling=null),e.lastChild=t,t.nextSibling=null,t.parentNode=e,t.parentElement=e,t.ownerDocument=e.ownerDocument,t}function V(e,t,r){if(!r)return G(e,t);if(r.parentNode!==e)throw Error("Failed to execute 'insertBefore' on 'RRNode': The RRNode before which the new node is to be inserted is not a child of this RRNode.");return t===r||(t.parentNode&&t.parentNode.removeChild(t),t.previousSibling=r.previousSibling,r.previousSibling=t,t.nextSibling=r,t.previousSibling?t.previousSibling.nextSibling=t:e.firstChild=t,t.parentElement=e,t.parentNode=e,t.ownerDocument=e.ownerDocument),t}function H(e,t){if(t.parentNode!==e)throw Error("Failed to execute 'removeChild' on 'RRNode': The RRNode to be removed is not a child of this RRNode.");return t.previousSibling?t.previousSibling.nextSibling=t.nextSibling:e.firstChild=t.nextSibling,t.nextSibling?t.nextSibling.previousSibling=t.previousSibling:e.lastChild=t.previousSibling,t.previousSibling=null,t.nextSibling=null,t.parentElement=null,t.parentNode=null,t}(o=m||(m={}))[o.PLACEHOLDER=0]="PLACEHOLDER",o[o.ELEMENT_NODE=1]="ELEMENT_NODE",o[o.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",o[o.TEXT_NODE=3]="TEXT_NODE",o[o.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",o[o.ENTITY_REFERENCE_NODE=5]="ENTITY_REFERENCE_NODE",o[o.ENTITY_NODE=6]="ENTITY_NODE",o[o.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",o[o.COMMENT_NODE=8]="COMMENT_NODE",o[o.DOCUMENT_NODE=9]="DOCUMENT_NODE",o[o.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",o[o.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE";let Z={svg:"http://www.w3.org/2000/svg","xlink:href":"http://www.w3.org/1999/xlink",xmlns:"http://www.w3.org/2000/xmlns/"},$={altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",fedropshadow:"feDropShadow",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient"},X=null;function q(e,t,r,n=t.mirror||t.ownerDocument.mirror){let a=(e=function(e,t,r,n){var a;if(r.afterAppend&&!X&&(X=new WeakSet,setTimeout(()=>{X=null},0)),!Q(e,t)){let o=J(t,r.mirror,n);null==(a=e.parentNode)||a.replaceChild(o,e),e=o}switch(t.RRNodeType){case p.Document:if(!ee(e,t,r.mirror,n)){let a=n.getMeta(t);a&&(r.mirror.removeNodeFromMap(e),e.close(),e.open(),r.mirror.add(e,a),null==X||X.add(e))}break;case p.Element:{let a=e;switch(t.tagName){case"IFRAME":{let a=e.contentDocument;if(!a)break;q(a,t.contentDocument,r,n)}}if(t.shadowRoot){a.shadowRoot||a.attachShadow({mode:"open"});let e=a.shadowRoot.childNodes,o=t.shadowRoot.childNodes;(e.length>0||o.length>0)&&K(Array.from(e),o,a.shadowRoot,r,n)}}}return e}(e,t,r,n)).childNodes,o=t.childNodes;(a.length>0||o.length>0)&&K(Array.from(a),o,e,r,n),function(e,t,r,n){var a;switch(t.RRNodeType){case p.Document:{let e=t.scrollData;e&&r.applyScroll(e,!0);break}case p.Element:switch(function(e,t,r){let n=e.attributes,a=t.attributes;for(let n in a){let o=a[n],i=r.getMeta(t);if((null==i?void 0:i.isSVG)&&Z[n])e.setAttributeNS(Z[n],n,o);else if("CANVAS"===t.tagName&&"rr_dataURL"===n){let t=document.createElement("img");t.src=o,t.onload=()=>{let r=e.getContext("2d");r&&r.drawImage(t,0,0,t.width,t.height)}}else e.setAttribute(n,o)}for(let{name:t}of Array.from(n))t in a||e.removeAttribute(t);t.scrollLeft&&(e.scrollLeft=t.scrollLeft),t.scrollTop&&(e.scrollTop=t.scrollTop)}(e,t,n),t.scrollData&&r.applyScroll(t.scrollData,!0),t.inputData&&r.applyInput(t.inputData),t.tagName){case"AUDIO":case"VIDEO":void 0!==t.paused&&(t.paused?e.pause():e.play()),void 0!==t.muted&&(e.muted=t.muted),void 0!==t.volume&&(e.volume=t.volume),void 0!==t.currentTime&&(e.currentTime=t.currentTime),void 0!==t.playbackRate&&(e.playbackRate=t.playbackRate);break;case"CANVAS":if(null!==t.rr_dataURL){let r=document.createElement("img");r.onload=()=>{let t=e.getContext("2d");t&&t.drawImage(r,0,0,r.width,r.height)},r.src=t.rr_dataURL}t.canvasMutations.forEach(t=>r.applyCanvas(t.event,t.mutation,e));break;case"STYLE":{let n=e.sheet;n&&t.rules.forEach(e=>r.applyStyleSheetMutation(e,n))}}break;case p.Text:case p.Comment:case p.CDATA:e.textContent!==t.data&&(e.textContent=t.data)}(null==X?void 0:X.has(e))&&(X.delete(e),null==(a=r.afterAppend)||a.call(r,e,r.mirror.getId(e)))}(e,t,r,n)}function K(e,t,r,n,a){let o,i,s=0,l=e.length-1,c=0,u=t.length-1,d=e[s],h=e[l],f=t[c],p=t[u];for(;s<=l&&c<=u;)if(void 0===d)d=e[++s];else if(void 0===h)h=e[--l];else if(ee(d,f,n.mirror,a))q(d,f,n,a),d=e[++s],f=t[++c];else if(ee(h,p,n.mirror,a))q(h,p,n,a),h=e[--l],p=t[--u];else if(ee(d,p,n.mirror,a)){try{r.insertBefore(d,h.nextSibling)}catch(e){console.warn(e)}q(d,p,n,a),d=e[++s],p=t[--u]}else if(ee(h,f,n.mirror,a)){try{r.insertBefore(h,d)}catch(e){console.warn(e)}q(h,f,n,a),h=e[--l],f=t[++c]}else{if(!o){o={};for(let t=s;t<=l;t++){let r=e[t];r&&n.mirror.hasNode(r)&&(o[n.mirror.getId(r)]=t)}}let u=e[i=o[a.getId(f)]];if(void 0!==i&&u&&ee(u,f,n.mirror,a)){try{r.insertBefore(u,d)}catch(e){console.warn(e)}q(u,f,n,a),e[i]=void 0}else{let t=J(f,n.mirror,a);"#document"===r.nodeName&&d&&(t.nodeType===t.DOCUMENT_TYPE_NODE&&d.nodeType===d.DOCUMENT_TYPE_NODE||t.nodeType===t.ELEMENT_NODE&&d.nodeType===d.ELEMENT_NODE)&&(r.removeChild(d),n.mirror.removeNodeFromMap(d),d=e[++s]);try{r.insertBefore(t,d||null),q(t,f,n,a)}catch(e){console.warn(e)}}f=t[++c]}if(s>l){let e=t[u+1],o=null;for(e&&(o=n.mirror.getNode(a.getId(e)));c<=u;++c){let e=J(t[c],n.mirror,a);try{r.insertBefore(e,o),q(e,t[c],n,a)}catch(e){console.warn(e)}}}else if(c>u)for(;s<=l;s++){let t=e[s];if(t&&t.parentNode===r)try{r.removeChild(t),n.mirror.removeNodeFromMap(t)}catch(e){console.warn(e)}}}function J(e,t,r){let n=r.getId(e),a=r.getMeta(e),o=null;if(n>-1&&(o=t.getNode(n)),null!==o&&Q(o,e))return o;switch(e.RRNodeType){case p.Document:o=new Document;break;case p.DocumentType:o=document.implementation.createDocumentType(e.name,e.publicId,e.systemId);break;case p.Element:{let t=e.tagName.toLowerCase();t=$[t]||t,o=a&&"isSVG"in a&&(null==a?void 0:a.isSVG)?document.createElementNS(Z.svg,t):document.createElement(e.tagName);break}case p.Text:o=document.createTextNode(e.data);break;case p.Comment:o=document.createComment(e.data);break;case p.CDATA:o=document.createCDATASection(e.data)}a&&t.add(o,Object.assign({},a));try{null==X||X.add(o)}catch(e){}return o}function Q(e,t){return e.nodeType===t.nodeType&&(e.nodeType!==e.ELEMENT_NODE||e.tagName.toUpperCase()===t.tagName)}function ee(e,t,r,n){let a=r.getId(e),o=n.getId(t);return -1!==a&&a===o&&Q(e,t)}class et extends F(j){constructor(e){super(),this.UNSERIALIZED_STARTING_ID=-2,this._unserializedId=this.UNSERIALIZED_STARTING_ID,this.mirror=new eh,this.scrollData=null,e&&(this.mirror=e)}get unserializedId(){return this._unserializedId--}createDocument(e,t,r){return new et}createDocumentType(e,t,r){let n=new er(e,t,r);return n.ownerDocument=this,n}createElement(e){let t,r=e.toUpperCase();switch(r){case"AUDIO":case"VIDEO":t=new ea(r);break;case"IFRAME":t=new es(r,this.mirror);break;case"CANVAS":t=new eo(r);break;case"STYLE":t=new ei(r);break;default:t=new en(r)}return t.ownerDocument=this,t}createComment(e){let t=new ec(e);return t.ownerDocument=this,t}createCDATASection(e){let t=new eu(e);return t.ownerDocument=this,t}createTextNode(e){let t=new el(e);return t.ownerDocument=this,t}destroyTree(){this.firstChild=null,this.lastChild=null,this.mirror.reset()}open(){super.open(),this._unserializedId=this.UNSERIALIZED_STARTING_ID}}let er=L(j);class en extends B(j){constructor(){super(...arguments),this.inputData=null,this.scrollData=null}}class ea extends P(en){}class eo extends en{constructor(){super(...arguments),this.rr_dataURL=null,this.canvasMutations=[]}getContext(){return null}}class ei extends en{constructor(){super(...arguments),this.rules=[]}}class es extends en{constructor(e,t){super(e),this.contentDocument=new et,this.contentDocument.mirror=t}}let el=U(j),ec=z(j),eu=W(j);function ed(e,t,r,n){let a;switch(e.nodeType){case m.DOCUMENT_NODE:n&&"IFRAME"===n.nodeName?a=n.contentDocument:(a=t).compatMode=e.compatMode;break;case m.DOCUMENT_TYPE_NODE:a=t.createDocumentType(e.name,e.publicId,e.systemId);break;case m.ELEMENT_NODE:{let r=e instanceof HTMLFormElement?"FORM":e.tagName.toUpperCase(),n=a=t.createElement(r);for(let{name:t,value:r}of Array.from(e.attributes))n.attributes[t]=r;e.scrollLeft&&(n.scrollLeft=e.scrollLeft),e.scrollTop&&(n.scrollTop=e.scrollTop);break}case m.TEXT_NODE:a=t.createTextNode(e.textContent||"");break;case m.CDATA_SECTION_NODE:a=t.createCDATASection(e.data);break;case m.COMMENT_NODE:a=t.createComment(e.textContent||"");break;case m.DOCUMENT_FRAGMENT_NODE:a=n.attachShadow({mode:"open"});break;default:return null}let o=r.getMeta(e);return t instanceof et&&(o||(o=ef(a,t.unserializedId),r.add(e,o)),t.mirror.add(a,Object.assign({},o))),a}class eh{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(e){var t;if(!e)return -1;let r=null==(t=this.getMeta(e))?void 0:t.id;return null!=r?r:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){let t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){let r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}replace(e,t){let r=this.getNode(e);if(r){let e=this.nodeMetaMap.get(r);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function ef(e,t){switch(e.RRNodeType){case p.Document:return{id:t,type:e.RRNodeType,childNodes:[]};case p.DocumentType:return{id:t,type:e.RRNodeType,name:e.name,publicId:e.publicId,systemId:e.systemId};case p.Element:return{id:t,type:e.RRNodeType,tagName:e.tagName.toLowerCase(),attributes:{},childNodes:[]};case p.Text:case p.Comment:return{id:t,type:e.RRNodeType,textContent:e.textContent||""};case p.CDATA:return{id:t,type:e.RRNodeType,textContent:""}}}function ep(e){return{all:e=e||new Map,on:function(t,r){var n=e.get(t);n?n.push(r):e.set(t,[r])},off:function(t,r){var n=e.get(t);n&&(r?n.splice(n.indexOf(r)>>>0,1):e.set(t,[]))},emit:function(t,r){var n=e.get(t);n&&n.slice().map(function(e){e(r)}),(n=e.get("*"))&&n.slice().map(function(e){e(t,r)})}}}var em=((i=em||{})[i.DomContentLoaded=0]="DomContentLoaded",i[i.Load=1]="Load",i[i.FullSnapshot=2]="FullSnapshot",i[i.IncrementalSnapshot=3]="IncrementalSnapshot",i[i.Meta=4]="Meta",i[i.Custom=5]="Custom",i[i.Plugin=6]="Plugin",i),eb=((s=eb||{})[s.Mutation=0]="Mutation",s[s.MouseMove=1]="MouseMove",s[s.MouseInteraction=2]="MouseInteraction",s[s.Scroll=3]="Scroll",s[s.ViewportResize=4]="ViewportResize",s[s.Input=5]="Input",s[s.TouchMove=6]="TouchMove",s[s.MediaInteraction=7]="MediaInteraction",s[s.StyleSheetRule=8]="StyleSheetRule",s[s.CanvasMutation=9]="CanvasMutation",s[s.Font=10]="Font",s[s.Log=11]="Log",s[s.Drag=12]="Drag",s[s.StyleDeclaration=13]="StyleDeclaration",s[s.Selection=14]="Selection",s[s.AdoptedStyleSheet=15]="AdoptedStyleSheet",s),eg=((l=eg||{})[l.MouseUp=0]="MouseUp",l[l.MouseDown=1]="MouseDown",l[l.Click=2]="Click",l[l.ContextMenu=3]="ContextMenu",l[l.DblClick=4]="DblClick",l[l.Focus=5]="Focus",l[l.Blur=6]="Blur",l[l.TouchStart=7]="TouchStart",l[l.TouchMove_Departed=8]="TouchMove_Departed",l[l.TouchEnd=9]="TouchEnd",l[l.TouchCancel=10]="TouchCancel",l),ev=((c=ev||{})[c.Mouse=0]="Mouse",c[c.Pen=1]="Pen",c[c.Touch=2]="Touch",c),ey=((u=ey||{})[u["2D"]=0]="2D",u[u.WebGL=1]="WebGL",u[u.WebGL2=2]="WebGL2",u),ew=((d=ew||{}).Start="start",d.Pause="pause",d.Resume="resume",d.Resize="resize",d.Finish="finish",d.FullsnapshotRebuilded="fullsnapshot-rebuilded",d.LoadStylesheetStart="load-stylesheet-start",d.LoadStylesheetEnd="load-stylesheet-end",d.SkipStart="skip-start",d.SkipEnd="skip-end",d.MouseInteraction="mouse-interaction",d.EventCast="event-cast",d.CustomEvent="custom-event",d.Flush="flush",d.StateChange="state-change",d.PlayBack="play-back",d.Destroy="destroy",d);class eE{constructor(e=[],t){this.timeOffset=0,this.raf=null,this.actions=e,this.speed=t.speed}addAction(e){let t=!0===this.raf;if(!this.actions.length||this.actions[this.actions.length-1].delay<=e.delay)this.actions.push(e);else{let t=this.findActionIndex(e);this.actions.splice(t,0,e)}t&&(this.raf=requestAnimationFrame(this.rafCheck.bind(this)))}start(){this.timeOffset=0,this.lastTimestamp=performance.now(),this.raf=requestAnimationFrame(this.rafCheck.bind(this))}rafCheck(){let e=performance.now();for(this.timeOffset+=(e-this.lastTimestamp)*this.speed,this.lastTimestamp=e;this.actions.length;){let e=this.actions[0];if(this.timeOffset>=e.delay)this.actions.shift(),e.doAction();else break}this.actions.length>0?this.raf=requestAnimationFrame(this.rafCheck.bind(this)):this.raf=!0}clear(){this.raf&&(!0!==this.raf&&cancelAnimationFrame(this.raf),this.raf=null),this.actions.length=0}setSpeed(e){this.speed=e}isActive(){return null!==this.raf}findActionIndex(e){let t=0,r=this.actions.length-1;for(;t<=r;){let n=Math.floor((t+r)/2);if(this.actions[n].delaye.delay))return n+1;r=n-1}}return t}}function ex(e,t){if(e.type===em.IncrementalSnapshot&&e.data.source===eb.MouseMove&&e.data.positions&&e.data.positions.length){let r=e.data.positions[0].timeOffset,n=e.timestamp+r;return e.delay=n-t,n-t}return e.delay=e.timestamp-t,e.delay}function eM(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i}(h=b||(b={}))[h.NotStarted=0]="NotStarted",h[h.Running=1]="Running",h[h.Stopped=2]="Stopped";var eN={type:"xstate.init"};function eD(e){return void 0===e?[]:[].concat(e)}function eS(e){return{type:"xstate.assign",assignment:e}}function eT(e,t){return"string"==typeof(e="string"==typeof e&&t&&t[e]?t[e]:e)?{type:e}:"function"==typeof e?{type:e.name,exec:e}:e}function eC(e){return function(t){return e===t}}function e_(e){return"string"==typeof e?{type:e}:e}function ek(e,t){return{value:e,context:t,actions:[],changed:!1,matches:eC(e)}}function eA(e,t,r){var n=t,a=!1;return[e.filter(function(e){if("xstate.assign"===e.type){a=!0;var t=Object.assign({},n);return"function"==typeof e.assignment?t=e.assignment(n,r):Object.keys(e.assignment).forEach(function(a){t[a]="function"==typeof e.assignment[a]?e.assignment[a](n,r):e.assignment[a]}),n=t,!1}return!0}),n,a]}function eO(e,t){void 0===t&&(t={});var r=eM(eA(eD(e.states[e.initial].entry).map(function(e){return eT(e,t.actions)}),e.context,eN),2),n=r[0],a=r[1],o={config:e,_options:t,initialState:{value:e.initial,actions:n,context:a,matches:eC(e.initial)},transition:function(t,r){var n,a,i="string"==typeof t?{value:t,context:e.context}:t,s=i.value,l=i.context,c=e_(r),u=e.states[s];if(u.on){var d=eD(u.on[c.type]);try{for(var h=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(d),f=h.next();!f.done;f=h.next()){var p=f.value;if(void 0===p)return ek(s,l);var m="string"==typeof p?{target:p}:p,b=m.target,g=m.actions,v=void 0===g?[]:g,y=m.cond,w=void 0===y?function(){return!0}:y,E=void 0===b,x=null!=b?b:s,M=e.states[x];if(w(l,c)){var N=eM(eA((E?eD(v):[].concat(u.exit,v,M.entry).filter(function(e){return e})).map(function(e){return eT(e,o._options.actions)}),l,c),3),D=N[0],S=N[1],T=N[2],C=null!=b?b:s;return{value:C,context:S,actions:D,changed:b!==s||D.length>0||T,matches:eC(C)}}}}catch(e){n={error:e}}finally{try{f&&!f.done&&(a=h.return)&&a.call(h)}finally{if(n)throw n.error}}}return ek(s,l)}};return o}var eR=function(e,t){return e.actions.forEach(function(r){var n=r.exec;return n&&n(e.context,t)})};function eI(e){var t=e.initialState,r=b.NotStarted,n=new Set,a={_machine:e,send:function(a){r===b.Running&&(eR(t=e.transition(t,a),e_(a)),n.forEach(function(e){return e(t)}))},subscribe:function(e){return n.add(e),e(t),{unsubscribe:function(){return n.delete(e)}}},start:function(n){if(n){var o="object"==typeof n?n:{context:e.config.context,value:n};t={value:o.value,actions:[],context:o.context,matches:eC(o.value)}}return r=b.Running,eR(t,eN),a},stop:function(){return r=b.Stopped,n.clear(),a},get state(){return t},get status(){return r}};return a}let ej="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.",eF={map:{},getId:()=>(console.error(ej),-1),getNode:()=>(console.error(ej),null),removeNodeFromMap(){console.error(ej)},has:()=>(console.error(ej),!1),reset(){console.error(ej)}};function eL(e,t){return!!("IFRAME"===e.nodeName&&t.getMeta(e))}function eB(e){return!!(null==e?void 0:e.shadowRoot)}function eP(e,t){let r=e[t[0]];return 1===t.length?r:eP(r.cssRules[t[1]].cssRules,t.slice(2))}function eU(e){let t=[...e],r=t.pop();return{positions:t,index:r}}"u">typeof window&&window.Proxy&&window.Reflect&&(eF=new Proxy(eF,{get:(e,t,r)=>("map"===t&&console.error(ej),Reflect.get(e,t,r))}));class ez{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){var t;return null!=(t=this.styleIDMap.get(e))?t:-1}has(e){return this.styleIDMap.has(e)}add(e,t){let r;return this.has(e)?this.getId(e):(r=void 0===t?this.id++:t,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r)}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}for(var eW="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",eY="u">4,u[l++]=(15&n)<<4|a>>2,u[l++]=(3&a)<<6|63&o;return c};let eH=new Map;function eZ(e,t){let r=eH.get(e);return r||(r=new Map,eH.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}function e$(e,t,r){return n=>v(this,void 0,void 0,function*(){if(n&&"object"==typeof n&&"rr_type"in n){if(r&&(r.isUnchanged=!1),"ImageBitmap"===n.rr_type&&"args"in n){let a=yield e$(e,t,r)(n.args);return yield createImageBitmap.apply(null,a)}if("index"in n){if(r||null===t)return n;let{rr_type:e,index:a}=n;return eZ(t,e)[a]}if("args"in n){let{rr_type:a,args:o}=n;return new window[a](...yield Promise.all(o.map(e$(e,t,r))))}else if("base64"in n)return eV(n.base64);else if("src"in n){let t=e.get(n.src);if(t)return t;{let t=new Image;return t.src=n.src,e.set(n.src,t),t}}else if("data"in n&&"Blob"===n.rr_type)return new Blob((yield Promise.all(n.data.map(e$(e,t,r)))),{type:n.type})}else if(Array.isArray(n))return yield Promise.all(n.map(e$(e,t,r)));return n})}let eX=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject"];function eq({event:e,mutation:t,target:r,imageMap:n,canvasEventMap:a,errorHandler:o}){return v(this,void 0,void 0,function*(){try{let i=a.get(e)||t,s="commands"in i?i.commands:[i];if([ey.WebGL,ey.WebGL2].includes(t.type)){for(let e=0;e{for(let t of(this.iframe.style.display="inherit",[this.mouseTail,this.iframe]))t&&(t.setAttribute("width",String(e.width)),t.setAttribute("height",String(e.height)))},this.applyEventsSynchronously=e=>{for(let t of e){switch(t.type){case em.DomContentLoaded:case em.Load:case em.Custom:continue;case em.FullSnapshot:case em.Meta:case em.Plugin:case em.IncrementalSnapshot:}this.getCastFn(t,!0)()}},this.getCastFn=(e,t=!1)=>{let r;switch(e.type){case em.DomContentLoaded:case em.Load:break;case em.Custom:r=()=>{this.emitter.emit(ew.CustomEvent,e)};break;case em.Meta:r=()=>this.emitter.emit(ew.Resize,{width:e.data.width,height:e.data.height});break;case em.FullSnapshot:r=()=>{var r;if(this.firstFullSnapshot){if(this.firstFullSnapshot===e){this.firstFullSnapshot=!0;return}}else this.firstFullSnapshot=!0;this.rebuildFullSnapshot(e,t),null==(r=this.iframe.contentWindow)||r.scrollTo(e.data.initialOffset),this.styleMirror.reset()};break;case em.IncrementalSnapshot:r=()=>{if(this.applyIncremental(e,t),!t&&(e===this.nextUserInteractionEvent&&(this.nextUserInteractionEvent=null,this.backToNormal()),this.config.skipInactive&&!this.nextUserInteractionEvent)){for(let t of this.service.state.context.events)if(!(t.timestamp<=e.timestamp)&&this.isUserInteraction(t)){t.delay-e.delay>1e4*this.speedService.state.context.timer.speed&&(this.nextUserInteractionEvent=t);break}if(this.nextUserInteractionEvent){let t={speed:Math.min(Math.round((this.nextUserInteractionEvent.delay-e.delay)/5e3),this.config.maxSpeed)};this.speedService.send({type:"FAST_FORWARD",payload:t}),this.emitter.emit(ew.SkipStart,t)}}}}return()=>{for(let n of(r&&r(),this.config.plugins||[]))n.handler&&n.handler(e,t,{replayer:this});this.service.send({type:"CAST_EVENT",payload:{event:e}});let n=this.service.state.context.events.length-1;if(!this.config.liveMode&&e===this.service.state.context.events[n]){let t=()=>{n{if(this.usingVirtualDom){let e={mirror:this.mirror,applyCanvas:(e,t,r)=>{eq({event:e,mutation:t,target:r,imageMap:this.imageMap,canvasEventMap:this.canvasEventMap,errorHandler:this.warnCanvasMutationFailed.bind(this)})},applyInput:this.applyInput.bind(this),applyScroll:this.applyScroll.bind(this),applyStyleSheetMutation:(e,t)=>{e.source===eb.StyleSheetRule?this.applyStyleSheetRule(e,t):e.source===eb.StyleDeclaration&&this.applyStyleDeclaration(e,t)},afterAppend:(e,t)=>{for(let r of this.config.plugins||[])r.onBuild&&r.onBuild(e,{id:t,replayer:this})}};if(this.iframe.contentDocument)try{q(this.iframe.contentDocument,this.virtualDom,e,this.virtualDom.mirror)}catch(e){console.warn(e)}if(this.virtualDom.destroyTree(),this.usingVirtualDom=!1,Object.keys(this.legacy_missingNodeRetryMap).length)for(let t in this.legacy_missingNodeRetryMap)try{let r=this.legacy_missingNodeRetryMap[t],n=J(r.node,this.mirror,this.virtualDom.mirror);q(n,r.node,e,this.virtualDom.mirror),r.node=n}catch(e){this.warn(e)}this.constructedStyleMutations.forEach(e=>{this.applyStyleSheetMutation(e)}),this.constructedStyleMutations=[],this.adoptedStyleSheets.forEach(e=>{this.applyAdoptedStyleSheet(e)}),this.adoptedStyleSheets=[]}if(this.mousePos&&(this.moveAndHover(this.mousePos.x,this.mousePos.y,this.mousePos.id,!0,this.mousePos.debugData),this.mousePos=null),!0===this.touchActive?this.mouse.classList.add("touch-active"):!1===this.touchActive&&this.mouse.classList.remove("touch-active"),this.touchActive=null,this.lastMouseDownEvent){let[e,t]=this.lastMouseDownEvent;e.dispatchEvent(t)}this.lastMouseDownEvent=null,this.lastSelectionData&&(this.applySelection(this.lastSelectionData),this.lastSelectionData=null)}),this.emitter.on(ew.PlayBack,()=>{this.firstFullSnapshot=null,this.mirror.reset(),this.styleMirror.reset()});const n=new eE([],{speed:this.config.speed});this.service=function(e,{getCastFn:t,applyEventsSynchronously:r,emitter:n}){return eI(eO({id:"player",context:e,initial:"paused",states:{playing:{on:{PAUSE:{target:"paused",actions:["pause"]},CAST_EVENT:{target:"playing",actions:"castEvent"},END:{target:"paused",actions:["resetLastPlayedEvent","pause"]},ADD_EVENT:{target:"playing",actions:["addEvent"]}}},paused:{on:{PLAY:{target:"playing",actions:["recordTimeOffset","play"]},CAST_EVENT:{target:"paused",actions:"castEvent"},TO_LIVE:{target:"live",actions:["startLive"]},ADD_EVENT:{target:"paused",actions:["addEvent"]}}},live:{on:{ADD_EVENT:{target:"live",actions:["addEvent"]},CAST_EVENT:{target:"live",actions:["castEvent"]}}}}},{actions:{castEvent:eS({lastPlayedEvent:(e,t)=>"CAST_EVENT"===t.type?t.payload.event:e.lastPlayedEvent}),recordTimeOffset:eS((e,t)=>{let r=e.timeOffset;return"payload"in t&&"timeOffset"in t.payload&&(r=t.payload.timeOffset),Object.assign(Object.assign({},e),{timeOffset:r,baselineTime:e.events[0].timestamp+r})}),play(e){var a;let{timer:o,events:i,baselineTime:s,lastPlayedEvent:l}=e;for(let e of(o.clear(),i))ex(e,s);let c=function(e,t){for(let r=e.length-1;r>=0;r--){let n=e[r];if(n.type===em.Meta&&n.timestamp<=t)return e.slice(r)}return e}(i,s),u=null==l?void 0:l.timestamp;(null==l?void 0:l.type)===em.IncrementalSnapshot&&l.data.source===eb.MouseMove&&(u=l.timestamp+(null==(a=l.data.positions[0])?void 0:a.timeOffset)),s<(u||0)&&n.emit(ew.PlayBack);let d=[];for(let e of c)if(!u||!(u{r()},delay:e.delay})}r(d),n.emit(ew.Flush),o.start()},pause(e){e.timer.clear()},resetLastPlayedEvent:eS(e=>Object.assign(Object.assign({},e),{lastPlayedEvent:null})),startLive:eS({baselineTime:(e,t)=>(e.timer.start(),"TO_LIVE"===t.type&&t.payload.baselineTime)?t.payload.baselineTime:Date.now()}),addEvent:eS((e,r)=>{let{baselineTime:n,timer:a,events:o}=e;if("ADD_EVENT"===r.type){let{event:e}=r.payload;ex(e,n);let i=o.length-1;if(!o[i]||o[i].timestamp<=e.timestamp)o.push(e);else{let t=-1,r=0;for(;r<=i;){let t=Math.floor((r+i)/2);o[t].timestamp<=e.timestamp?r=t+1:i=t-1}-1===t&&(t=r),o.splice(t,0,e)}let s=e.timestamp{l()},delay:e.delay})}return Object.assign(Object.assign({},e),{events:o})})}}))}({events:e.map(e=>t&&t.unpackFn?t.unpackFn(e):e).sort((e,t)=>e.timestamp-t.timestamp),timer:n,timeOffset:0,baselineTime:0,lastPlayedEvent:null},{getCastFn:this.getCastFn,applyEventsSynchronously:this.applyEventsSynchronously,emitter:this.emitter}),this.service.start(),this.service.subscribe(e=>{this.emitter.emit(ew.StateChange,{player:e})}),this.speedService=eI(eO({id:"speed",context:{normalSpeed:-1,timer:n},initial:"normal",states:{normal:{on:{FAST_FORWARD:{target:"skipping",actions:["recordSpeed","setSpeed"]},SET_SPEED:{target:"normal",actions:["setSpeed"]}}},skipping:{on:{BACK_TO_NORMAL:{target:"normal",actions:["restoreSpeed"]},SET_SPEED:{target:"normal",actions:["setSpeed"]}}}}},{actions:{setSpeed:(e,t)=>{"payload"in t&&e.timer.setSpeed(t.payload.speed)},recordSpeed:eS({normalSpeed:e=>e.timer.speed}),restoreSpeed:e=>{e.timer.setSpeed(e.normalSpeed)}}})),this.speedService.start(),this.speedService.subscribe(e=>{this.emitter.emit(ew.StateChange,{speed:e})});const a=this.service.state.context.events.find(e=>e.type===em.Meta),o=this.service.state.context.events.find(e=>e.type===em.FullSnapshot);if(a){const{width:e,height:t}=a.data;setTimeout(()=>{this.emitter.emit(ew.Resize,{width:e,height:t})},0)}o&&setTimeout(()=>{var e;this.firstFullSnapshot||(this.firstFullSnapshot=o,this.rebuildFullSnapshot(o),null==(e=this.iframe.contentWindow)||e.scrollTo(o.data.initialOffset))},1),this.service.state.context.events.find(e0)&&this.mouse.classList.add("touch-device")}get timer(){return this.service.state.context.timer}on(e,t){return this.emitter.on(e,t),this}off(e,t){return this.emitter.off(e,t),this}setConfig(e){Object.keys(e).forEach(t=>{e[t],this.config[t]=e[t]}),this.config.skipInactive||this.backToNormal(),void 0!==e.speed&&this.speedService.send({type:"SET_SPEED",payload:{speed:e.speed}}),void 0!==e.mouseTail&&(!1===e.mouseTail?this.mouseTail&&(this.mouseTail.style.display="none"):(this.mouseTail||(this.mouseTail=document.createElement("canvas"),this.mouseTail.width=Number.parseFloat(this.iframe.width),this.mouseTail.height=Number.parseFloat(this.iframe.height),this.mouseTail.classList.add("replayer-mouse-tail"),this.wrapper.insertBefore(this.mouseTail,this.iframe)),this.mouseTail.style.display="inherit"))}getMetaData(){let e=this.service.state.context.events[0],t=this.service.state.context.events[this.service.state.context.events.length-1];return{startTime:e.timestamp,endTime:t.timestamp,totalTime:t.timestamp-e.timestamp}}getCurrentTime(){return this.timer.timeOffset+this.getTimeOffset()}getTimeOffset(){let{baselineTime:e,events:t}=this.service.state.context;return e-t[0].timestamp}getMirror(){return this.mirror}play(e=0){var t,r;this.service.state.matches("paused")||this.service.send({type:"PAUSE"}),this.service.send({type:"PLAY",payload:{timeOffset:e}}),null==(r=null==(t=this.iframe.contentDocument)?void 0:t.getElementsByTagName("html")[0])||r.classList.remove("rrweb-paused"),this.emitter.emit(ew.Start)}pause(e){var t,r;void 0===e&&this.service.state.matches("playing")&&this.service.send({type:"PAUSE"}),"number"==typeof e&&(this.play(e),this.service.send({type:"PAUSE"})),null==(r=null==(t=this.iframe.contentDocument)?void 0:t.getElementsByTagName("html")[0])||r.classList.add("rrweb-paused"),this.emitter.emit(ew.Pause)}resume(e=0){this.warn("The 'resume' was deprecated in 1.0. Please use 'play' method which has the same interface."),this.play(e),this.emitter.emit(ew.Resume)}destroy(){this.pause(),this.config.root.removeChild(this.wrapper),this.emitter.emit(ew.Destroy)}startLive(e){this.service.send({type:"TO_LIVE",payload:{baselineTime:e}})}addEvent(e){let t=this.config.unpackFn?this.config.unpackFn(e):e;e0(t)&&this.mouse.classList.add("touch-device"),Promise.resolve().then(()=>this.service.send({type:"ADD_EVENT",payload:{event:t}}))}enableInteract(){this.iframe.setAttribute("scrolling","auto"),this.iframe.style.pointerEvents="auto"}disableInteract(){this.iframe.setAttribute("scrolling","no"),this.iframe.style.pointerEvents="none"}resetCache(){this.cache=S()}setupDom(){this.wrapper=document.createElement("div"),this.wrapper.classList.add("replayer-wrapper"),this.config.root.appendChild(this.wrapper),this.mouse=document.createElement("div"),this.mouse.classList.add("replayer-mouse"),this.wrapper.appendChild(this.mouse),!1!==this.config.mouseTail&&(this.mouseTail=document.createElement("canvas"),this.mouseTail.classList.add("replayer-mouse-tail"),this.mouseTail.style.display="inherit",this.wrapper.appendChild(this.mouseTail)),this.iframe=document.createElement("iframe");let e=["allow-same-origin"];this.config.UNSAFE_replayCanvas&&e.push("allow-scripts"),this.iframe.style.display="none",this.iframe.setAttribute("sandbox",e.join(" ")),this.disableInteract(),this.wrapper.appendChild(this.iframe),this.iframe.contentWindow&&this.iframe.contentDocument&&(!function(e=window,t=document){var r;if("scrollBehavior"in t.documentElement.style&&!0!==e.__forceSmoothScrollPolyfill__)return;let n=e.HTMLElement||e.Element,a={scroll:e.scroll||e.scrollTo,scrollBy:e.scrollBy,elementScroll:n.prototype.scroll||s,scrollIntoView:n.prototype.scrollIntoView},o=e.performance&&e.performance.now?e.performance.now.bind(e.performance):Date.now,i=+(r=e.navigator.userAgent,!!RegExp("MSIE |Trident/|Edge/").test(r));function s(e,t){this.scrollLeft=e,this.scrollTop=t}function l(e){if(null===e||"object"!=typeof e||void 0===e.behavior||"auto"===e.behavior||"instant"===e.behavior)return!0;if("object"==typeof e&&"smooth"===e.behavior)return!1;throw TypeError("behavior member of ScrollOptions "+e.behavior+" is not a valid value for enumeration ScrollBehavior.")}function c(e,t){return"Y"===t?e.clientHeight+i1?1:s))),a=r.startX+(r.x-r.startX)*n,i=r.startY+(r.y-r.startY)*n,r.method.call(r.scrollable,a,i),(a!==r.x||i!==r.y)&&e.requestAnimationFrame(t.bind(e,r))}({scrollable:l,method:d,startTime:h,startX:c,startY:u,x:n,y:i})}e.scroll=e.scrollTo=function(){if(void 0!==arguments[0]){if(!0===l(arguments[0]))return void a.scroll.call(e,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:e.scrollX||e.pageXOffset,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:e.scrollY||e.pageYOffset);d.call(e,t.body,void 0!==arguments[0].left?~~arguments[0].left:e.scrollX||e.pageXOffset,void 0!==arguments[0].top?~~arguments[0].top:e.scrollY||e.pageYOffset)}},e.scrollBy=function(){if(void 0!==arguments[0]){if(l(arguments[0]))return void a.scrollBy.call(e,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:0,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:0);d.call(e,t.body,~~arguments[0].left+(e.scrollX||e.pageXOffset),~~arguments[0].top+(e.scrollY||e.pageYOffset))}},n.prototype.scroll=n.prototype.scrollTo=function(){if(void 0===arguments[0])return;if(!0===l(arguments[0])){if("number"==typeof arguments[0]&&void 0===arguments[1])throw SyntaxError("Value could not be converted");a.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left:"object"!=typeof arguments[0]?~~arguments[0]:this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top:void 0!==arguments[1]?~~arguments[1]:this.scrollTop);return}let e=arguments[0].left,t=arguments[0].top;d.call(this,this,void 0===e?this.scrollLeft:~~e,void 0===t?this.scrollTop:~~t)},n.prototype.scrollBy=function(){if(void 0!==arguments[0]){if(!0===l(arguments[0]))return void a.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop);this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior})}},n.prototype.scrollIntoView=function(){if(!0===l(arguments[0]))return void a.scrollIntoView.call(this,void 0===arguments[0]||arguments[0]);let r=function(e){var r;let n,a;for(;e!==t.body&&!1===(n=c(r=e,"Y")&&u(r,"Y"),a=c(r,"X")&&u(r,"X"),n||a);)e=e.parentNode||e.host;return e}(this),n=r.getBoundingClientRect(),o=this.getBoundingClientRect();r!==t.body?(d.call(this,r,r.scrollLeft+o.left-n.left,r.scrollTop+o.top-n.top),"fixed"!==e.getComputedStyle(r).position&&e.scrollBy({left:n.left,top:n.top,behavior:"smooth"})):e.scrollBy({left:o.left,top:o.top,behavior:"smooth"})}}(this.iframe.contentWindow,this.iframe.contentDocument),function(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw TypeError("1 argument is required");do if(this===t)return!0;while(t=t&&t.parentNode);return!1})}(this.iframe.contentWindow))}rebuildFullSnapshot(e,t=!1){var r,n,a,o,i,s,l,c,u;if(!this.iframe.contentDocument)return this.warn("Looks like your replayer has been destroyed.");Object.keys(this.legacy_missingNodeRetryMap).length&&this.warn("Found unresolved missing node map",this.legacy_missingNodeRetryMap),this.legacy_missingNodeRetryMap={};let d=[],h=(e,t)=>{for(let r of(this.collectIframeAndAttachDocument(d,e),this.config.plugins||[]))r.onBuild&&r.onBuild(e,{id:t,replayer:this})};for(let{mutationInQueue:t,builtNode:p}of(this.usingVirtualDom&&(this.virtualDom.destroyTree(),this.usingVirtualDom=!1),this.mirror.reset(),r=e.data.node,a=(n={doc:this.iframe.contentDocument,afterAppend:h,cache:this.cache,mirror:this.mirror}).doc,o=n.onVisit,i=n.hackCss,s=n.afterAppend,l=n.cache,T(r,{doc:a,mirror:u=void 0===(c=n.mirror)?new y:c,skipChild:!1,hackCss:void 0===i||i,afterAppend:s,cache:l}),function(e,t){for(var r=0,n=e.getIds();re!==t);let{documentElement:p,head:m}=this.iframe.contentDocument;this.insertStyleRules(p,m),this.service.state.matches("playing")||this.iframe.contentDocument.getElementsByTagName("html")[0].classList.add("rrweb-paused"),this.emitter.emit(ew.FullsnapshotRebuilded,e),t||this.waitForStylesheetLoad(),this.config.UNSAFE_replayCanvas&&this.preloadAllImages()}insertStyleRules(e,t){var r;let n,a=(n=this.config.blockClass,[`.${n} { background: currentColor }`,"noscript { display: none !important; }"]).concat(this.config.insertStyleRules);if(this.config.pauseAnimation&&a.push("html.rrweb-paused *, html.rrweb-paused *:before, html.rrweb-paused *:after { animation-play-state: paused !important; }"),this.usingVirtualDom){let r=this.virtualDom.createElement("style");this.virtualDom.mirror.add(r,ef(r,this.virtualDom.unserializedId)),e.insertBefore(r,t),r.rules.push({source:eb.StyleSheetRule,adds:a.map((e,t)=>({rule:e,index:t}))})}else{let n=document.createElement("style");e.insertBefore(n,t);for(let e=0;e{this.collectIframeAndAttachDocument(n,e);let o=r.getMeta(e);if((null==o?void 0:o.type)===f.Element&&(null==o?void 0:o.tagName.toUpperCase())==="HTML"){let{documentElement:e,head:r}=t.contentDocument;this.insertStyleRules(e,r)}if(!this.usingVirtualDom)for(let t of this.config.plugins||[])t.onBuild&&t.onBuild(e,{id:a,replayer:this})};for(let{mutationInQueue:o,builtNode:i}of(T(e.node,{doc:t.contentDocument,mirror:r,hackCss:!0,skipChild:!1,afterAppend:a,cache:this.cache}),a(t.contentDocument,e.node.id),n))this.attachDocumentToIframe(o,i),this.newDocumentQueue=this.newDocumentQueue.filter(e=>e!==o)}collectIframeAndAttachDocument(e,t){if(eL(t,this.mirror)){let r=this.newDocumentQueue.find(e=>e.parentId===this.mirror.getId(t));r&&e.push({mutationInQueue:r,builtNode:t})}}waitForStylesheetLoad(){var e;let t=null==(e=this.iframe.contentDocument)?void 0:e.head;if(t){let e,r=new Set,n=this.service.state,a=()=>{n=this.service.state};this.emitter.on(ew.Start,a),this.emitter.on(ew.Pause,a);let o=()=>{this.emitter.off(ew.Start,a),this.emitter.off(ew.Pause,a)};t.querySelectorAll('link[rel="stylesheet"]').forEach(t=>{t.sheet||(r.add(t),t.addEventListener("load",()=>{r.delete(t),0===r.size&&-1!==e&&(n.matches("playing")&&this.play(this.getCurrentTime()),this.emitter.emit(ew.LoadStylesheetEnd),e&&clearTimeout(e),o())}))}),r.size>0&&(this.service.send({type:"PAUSE"}),this.emitter.emit(ew.LoadStylesheetStart),e=setTimeout(()=>{n.matches("playing")&&this.play(this.getCurrentTime()),e=-1,o()},this.config.loadTimeout))}}preloadAllImages(){return v(this,void 0,void 0,function*(){this.service.state;let e=()=>{this.service.state};this.emitter.on(ew.Start,e),this.emitter.on(ew.Pause,e);let t=[];for(let e of this.service.state.context.events)e.type===em.IncrementalSnapshot&&e.data.source===eb.CanvasMutation&&(t.push(this.deserializeAndPreloadCanvasEvents(e.data,e)),("commands"in e.data?e.data.commands:[e.data]).forEach(t=>{this.preloadImages(t,e)}));return Promise.all(t)})}preloadImages(e,t){if("drawImage"===e.property&&"string"==typeof e.args[0]&&!this.imageMap.has(t)){let t=document.createElement("canvas"),r=t.getContext("2d"),n=null==r?void 0:r.createImageData(t.width,t.height);null==n||n.data,JSON.parse(e.args[0]),null==r||r.putImageData(n,0,0)}}deserializeAndPreloadCanvasEvents(e,t){return v(this,void 0,void 0,function*(){if(!this.canvasEventMap.has(t)){let r={isUnchanged:!0};if("commands"in e){let n=yield Promise.all(e.commands.map(e=>v(this,void 0,void 0,function*(){let t=yield Promise.all(e.args.map(e$(this.imageMap,null,r)));return Object.assign(Object.assign({},e),{args:t})})));!1===r.isUnchanged&&this.canvasEventMap.set(t,Object.assign(Object.assign({},e),{commands:n}))}else{let n=yield Promise.all(e.args.map(e$(this.imageMap,null,r)));!1===r.isUnchanged&&this.canvasEventMap.set(t,Object.assign(Object.assign({},e),{args:n}))}}})}applyIncremental(e,t){var r,n,a;let{data:o}=e;switch(o.source){case eb.Mutation:try{this.applyMutation(o,t)}catch(e){this.warn(`Exception in mutation ${e.message||e}`,o)}break;case eb.Drag:case eb.TouchMove:case eb.MouseMove:if(t){let e=o.positions[o.positions.length-1];this.mousePos={x:e.x,y:e.y,id:e.id,debugData:o}}else o.positions.forEach(r=>{let n={doAction:()=>{this.moveAndHover(r.x,r.y,r.id,t,o)},delay:r.timeOffset+e.timestamp-this.service.state.context.baselineTime};this.timer.addAction(n)}),this.timer.addAction({doAction(){},delay:e.delay-(null==(r=o.positions[0])?void 0:r.timeOffset)});break;case eb.MouseInteraction:{if(-1===o.id)break;let e=new Event(eg[o.type].toLowerCase()),r=this.mirror.getNode(o.id);if(!r)return this.debugNodeNotFound(o,o.id);this.emitter.emit(ew.MouseInteraction,{type:o.type,target:r});let{triggerFocus:n}=this.config;switch(o.type){case eg.Blur:"blur"in r&&r.blur();break;case eg.Focus:n&&r.focus&&r.focus({preventScroll:!0});break;case eg.Click:case eg.TouchStart:case eg.TouchEnd:case eg.MouseDown:case eg.MouseUp:t?(o.type===eg.TouchStart?this.touchActive=!0:o.type===eg.TouchEnd&&(this.touchActive=!1),o.type===eg.MouseDown?this.lastMouseDownEvent=[r,e]:o.type===eg.MouseUp&&(this.lastMouseDownEvent=null),this.mousePos={x:o.x,y:o.y,id:o.id,debugData:o}):(o.type===eg.TouchStart&&(this.tailPositions.length=0),this.moveAndHover(o.x,o.y,o.id,t,o),o.type===eg.Click?(this.mouse.classList.remove("active"),this.mouse.offsetWidth,this.mouse.classList.add("active")):o.type===eg.TouchStart?(this.mouse.offsetWidth,this.mouse.classList.add("touch-active")):o.type===eg.TouchEnd?this.mouse.classList.remove("touch-active"):r.dispatchEvent(e));break;case eg.TouchCancel:t?this.touchActive=!1:this.mouse.classList.remove("touch-active");break;default:r.dispatchEvent(e)}break}case eb.Scroll:if(-1===o.id)break;if(this.usingVirtualDom){let e=this.virtualDom.mirror.getNode(o.id);if(!e)return this.debugNodeNotFound(o,o.id);e.scrollData=o;break}this.applyScroll(o,t);break;case eb.ViewportResize:this.emitter.emit(ew.Resize,{width:o.width,height:o.height});break;case eb.Input:if(-1===o.id)break;if(this.usingVirtualDom){let e=this.virtualDom.mirror.getNode(o.id);if(!e)return this.debugNodeNotFound(o,o.id);e.inputData=o;break}this.applyInput(o);break;case eb.MediaInteraction:{let e=this.usingVirtualDom?this.virtualDom.mirror.getNode(o.id):this.mirror.getNode(o.id);if(!e)return this.debugNodeNotFound(o,o.id);try{void 0!==o.currentTime&&(e.currentTime=o.currentTime),void 0!==o.volume&&(e.volume=o.volume),void 0!==o.muted&&(e.muted=o.muted),1===o.type&&e.pause(),0===o.type&&e.play(),4===o.type&&(e.playbackRate=o.playbackRate)}catch(e){this.warn(`Failed to replay media interactions: ${e.message||e}`)}break}case eb.StyleSheetRule:case eb.StyleDeclaration:this.usingVirtualDom?o.styleId?this.constructedStyleMutations.push(o):o.id&&(null==(n=this.virtualDom.mirror.getNode(o.id))||n.rules.push(o)):this.applyStyleSheetMutation(o);break;case eb.CanvasMutation:if(!this.config.UNSAFE_replayCanvas)return;if(this.usingVirtualDom){let t=this.virtualDom.mirror.getNode(o.id);if(!t)return this.debugNodeNotFound(o,o.id);t.canvasMutations.push({event:e,mutation:o})}else{let t=this.mirror.getNode(o.id);if(!t)return this.debugNodeNotFound(o,o.id);eq({event:e,mutation:o,target:t,imageMap:this.imageMap,canvasEventMap:this.canvasEventMap,errorHandler:this.warnCanvasMutationFailed.bind(this)})}break;case eb.Font:try{let e=new FontFace(o.family,o.buffer?new Uint8Array(JSON.parse(o.fontSource)):o.fontSource,o.descriptors);null==(a=this.iframe.contentDocument)||a.fonts.add(e)}catch(e){this.warn(e)}break;case eb.Selection:if(t){this.lastSelectionData=o;break}this.applySelection(o);break;case eb.AdoptedStyleSheet:this.usingVirtualDom?this.adoptedStyleSheets.push(o):this.applyAdoptedStyleSheet(o)}}applyMutation(e,t){if(this.config.useVirtualDom&&!this.usingVirtualDom&&t&&(this.usingVirtualDom=!0,!function(e,t=new C,r=new et){!function e(n,a){let o=ed(n,r,t,a);if(null!==o)if((null==a?void 0:a.nodeName)!=="IFRAME"&&n.nodeType!==m.DOCUMENT_FRAGMENT_NODE&&(null==a||a.appendChild(o),o.parentNode=a,o.parentElement=a),"IFRAME"===n.nodeName){let t=n.contentDocument;t&&e(t,o)}else(n.nodeType===m.DOCUMENT_NODE||n.nodeType===m.ELEMENT_NODE||n.nodeType===m.DOCUMENT_FRAGMENT_NODE)&&(n.nodeType===m.ELEMENT_NODE&&n.shadowRoot&&e(n.shadowRoot,o),n.childNodes.forEach(t=>e(t,o)))}(e,null)}(this.iframe.contentDocument,this.mirror,this.virtualDom),Object.keys(this.legacy_missingNodeRetryMap).length))for(let e in this.legacy_missingNodeRetryMap)try{let t=this.legacy_missingNodeRetryMap[e],r=ed(t.node,this.virtualDom,this.mirror);r&&(t.node=r)}catch(e){this.warn(e)}let r=this.usingVirtualDom?this.virtualDom.mirror:this.mirror;e.removes=e.removes.filter(t=>!!r.getNode(t.id)||(this.warnNodeNotFound(e,t.id),!1)),e.removes.forEach(t=>{var n;let a=r.getNode(t.id);if(!a)return;let o=r.getNode(t.parentId);if(!o)return this.warnNodeNotFound(e,t.parentId);if(t.isShadow&&eB(o)&&(o=o.shadowRoot),r.removeNodeFromMap(a),o)try{o.removeChild(a),this.usingVirtualDom&&"#text"===a.nodeName&&"STYLE"===o.nodeName&&(null==(n=o.rules)?void 0:n.length)>0&&(o.rules=[])}catch(t){if(t instanceof DOMException)this.warn("parent could not remove child in mutation",o,a,e);else throw t}});let n=Object.assign({},this.legacy_missingNodeRetryMap),a=[],o=e=>{var t,o;let i;if(!this.iframe.contentDocument)return this.warn("Looks like your replayer has been destroyed.");let s=r.getNode(e.parentId);if(!s)return e.node.type===f.Document?this.newDocumentQueue.push(e):a.push(e);e.node.isShadow&&(eB(s)||s.attachShadow({mode:"open"}),s=s.shadowRoot);let l=null,c=null;if(e.previousId&&(l=r.getNode(e.previousId)),e.nextId&&(c=r.getNode(e.nextId)),i=null,e.nextId&&(i=r.getNode(e.nextId)),null!==e.nextId&&void 0!==e.nextId&&-1!==e.nextId&&!i||0)return a.push(e);if(e.node.rootId&&!r.getNode(e.node.rootId))return;let u=e.node.rootId?r.getNode(e.node.rootId):this.usingVirtualDom?this.virtualDom:this.iframe.contentDocument;if(eL(s,r))return void this.attachDocumentToIframe(e,s);let d=(e,t)=>{if(!this.usingVirtualDom)for(let r of this.config.plugins||[])r.onBuild&&r.onBuild(e,{id:t,replayer:this})},h=T(e.node,{doc:u,mirror:r,skipChild:!0,hackCss:!0,cache:this.cache,afterAppend:d});if(-1===e.previousId||-1===e.nextId){n[e.node.id]={node:h,mutation:e};return}let p=r.getMeta(s);if(p&&p.type===f.Element&&"textarea"===p.tagName&&e.node.type===f.Text)for(let e of Array.isArray(s.childNodes)?s.childNodes:Array.from(s.childNodes))e.nodeType===s.TEXT_NODE&&s.removeChild(e);else if((null==p?void 0:p.type)===f.Document){let r=s;e.node.type===f.DocumentType&&(null==(t=r.childNodes[0])?void 0:t.nodeType)===Node.DOCUMENT_TYPE_NODE&&r.removeChild(r.childNodes[0]),"HTML"===h.nodeName&&r.documentElement&&r.removeChild(r.documentElement)}if(l&&l.nextSibling&&l.nextSibling.parentNode?s.insertBefore(h,l.nextSibling):c&&c.parentNode?s.contains(c)?s.insertBefore(h,c):s.insertBefore(h,null):s.appendChild(h),d(h,e.node.id),this.usingVirtualDom&&"#text"===h.nodeName&&"STYLE"===s.nodeName&&(null==(o=s.rules)?void 0:o.length)>0&&(s.rules=[]),eL(h,this.mirror)){let e=this.mirror.getId(h),t=this.newDocumentQueue.find(t=>t.parentId===e);t&&(this.attachDocumentToIframe(t,h),this.newDocumentQueue=this.newDocumentQueue.filter(e=>e!==t))}(e.previousId||e.nextId)&&this.legacy_resolveMissingNode(n,s,h,e)};e.adds.forEach(e=>{o(e)});let i=Date.now();for(;a.length;){let e=function(e){let t={},r=(e,r)=>{let n={value:e,parent:r,children:[]};return t[e.node.id]=n,n},n=[];for(let a of e){let{nextId:e,parentId:o}=a;if(e&&e in t){let o=t[e];if(o.parent){let e=o.parent.children.indexOf(o);o.parent.children.splice(e,0,r(a,o.parent))}else{let e=n.indexOf(o);n.splice(e,0,r(a,null))}continue}if(o in t){let e=t[o];e.children.push(r(a,e));continue}n.push(r(a,null))}return n}(a);if(a.length=0,Date.now()-i>500){this.warn("Timeout in the loop, please check the resolve tree data:",e);break}for(let t of e)r.getNode(t.value.parentId)?function e(t,r){r(t.value);for(let n=t.children.length-1;n>=0;n--)e(t.children[n],r)}(t,e=>{o(e)}):this.debug("Drop resolve tree since there is no parent for the root node.",t)}Object.keys(n).length&&Object.assign(this.legacy_missingNodeRetryMap,n),(function(e){let t=new Set,r=[];for(let n=e.length;n--;){let a=e[n];t.has(a.id)||(r.push(a),t.add(a.id))}return r})(e.texts).forEach(t=>{var n;let a=r.getNode(t.id);if(!a){if(e.removes.find(e=>e.id===t.id))return;return this.warnNodeNotFound(e,t.id)}if(a.textContent=t.value,this.usingVirtualDom){let e=a.parentNode;(null==(n=null==e?void 0:e.rules)?void 0:n.length)>0&&(e.rules=[])}}),e.attributes.forEach(t=>{let n=r.getNode(t.id);if(!n){if(e.removes.find(e=>e.id===t.id))return;return this.warnNodeNotFound(e,t.id)}for(let e in t.attributes)if("string"==typeof e){let a=t.attributes[e];if(null===a)n.removeAttribute(e);else if("string"==typeof a)try{if("_cssText"===e&&("LINK"===n.nodeName||"STYLE"===n.nodeName))try{let e=r.getMeta(n);Object.assign(e.attributes,t.attributes);let a=T(e,{doc:n.ownerDocument,mirror:r,skipChild:!0,hackCss:!0,cache:this.cache}),o=n.nextSibling,i=n.parentNode;if(a&&i){i.removeChild(n),i.insertBefore(a,o),r.replace(t.id,a);break}}catch(e){}n.setAttribute(e,a)}catch(e){this.warn("An error occurred may due to the checkout feature.",e)}else if("style"===e)for(let e in a)if(!1===a[e])n.style.removeProperty(e);else if(a[e]instanceof Array){let t=a[e];n.style.setProperty(e,t[0],t[1])}else{let t=a[e];n.style.setProperty(e,t)}}})}applyScroll(e,t){var r,n;let a=this.mirror.getNode(e.id);if(!a)return this.debugNodeNotFound(e,e.id);let o=this.mirror.getMeta(a);if(a===this.iframe.contentDocument)null==(r=this.iframe.contentWindow)||r.scrollTo({top:e.y,left:e.x,behavior:t?"auto":"smooth"});else if((null==o?void 0:o.type)===f.Document)null==(n=a.defaultView)||n.scrollTo({top:e.y,left:e.x,behavior:t?"auto":"smooth"});else try{a.scrollTo({top:e.y,left:e.x,behavior:t?"auto":"smooth"})}catch(e){}}applyInput(e){let t=this.mirror.getNode(e.id);if(!t)return this.debugNodeNotFound(e,e.id);try{t.checked=e.isChecked,t.value=e.text}catch(e){}}applySelection(e){try{let t=new Set,r=e.ranges.map(({start:e,startOffset:r,end:n,endOffset:a})=>{let o=this.mirror.getNode(e),i=this.mirror.getNode(n);if(!o||!i)return;let s=new Range;s.setStart(o,r),s.setEnd(i,a);let l=o.ownerDocument,c=null==l?void 0:l.getSelection();return c&&t.add(c),{range:s,selection:c}});t.forEach(e=>e.removeAllRanges()),r.forEach(e=>{var t;return e&&(null==(t=e.selection)?void 0:t.addRange(e.range))})}catch(e){}}applyStyleSheetMutation(e){var t;let r=null;e.styleId?r=this.styleMirror.getStyle(e.styleId):e.id&&(r=(null==(t=this.mirror.getNode(e.id))?void 0:t.sheet)||null),r&&(e.source===eb.StyleSheetRule?this.applyStyleSheetRule(e,r):e.source===eb.StyleDeclaration&&this.applyStyleDeclaration(e,r))}applyStyleSheetRule(e,t){var r,n,a,o;if(null==(r=e.adds)||r.forEach(({rule:e,index:r})=>{try{if(Array.isArray(r)){let{positions:n,index:a}=eU(r);eP(t.cssRules,n).insertRule(e,a)}else{let n=void 0===r?void 0:Math.min(r,t.cssRules.length);null==t||t.insertRule(e,n)}}catch(e){}}),null==(n=e.removes)||n.forEach(({index:e})=>{try{if(Array.isArray(e)){let{positions:r,index:n}=eU(e);eP(t.cssRules,r).deleteRule(n||0)}else null==t||t.deleteRule(e)}catch(e){}}),e.replace)try{null==(a=t.replace)||a.call(t,e.replace)}catch(e){}if(e.replaceSync)try{null==(o=t.replaceSync)||o.call(t,e.replaceSync)}catch(e){}}applyStyleDeclaration(e,t){e.set&&eP(t.rules,e.index).style.setProperty(e.set.property,e.set.value,e.set.priority),e.remove&&eP(t.rules,e.index).style.removeProperty(e.remove.property)}applyAdoptedStyleSheet(e){var t;let r=this.mirror.getNode(e.id);if(!r)return;null==(t=e.styles)||t.forEach(e=>{var t;let n=null,a=null;if(eB(r)?a=(null==(t=r.ownerDocument)?void 0:t.defaultView)||null:"#document"===r.nodeName&&(a=r.defaultView),a)try{n=new a.CSSStyleSheet,this.styleMirror.add(n,e.styleId),this.applyStyleSheetRule({source:eb.StyleSheetRule,adds:e.rules},n)}catch(e){}});let n=0,a=(e,t)=>{let r=t.map(e=>this.styleMirror.getStyle(e)).filter(e=>null!==e);eB(e)?e.shadowRoot.adoptedStyleSheets=r:"#document"===e.nodeName&&(e.adoptedStyleSheets=r),r.length!==t.length&&n<10&&(setTimeout(()=>a(e,t),0+100*n),n++)};a(r,e.styleIds)}legacy_resolveMissingNode(e,t,r,n){let{previousId:a,nextId:o}=n,i=a&&e[a],s=o&&e[o];if(i){let{node:n,mutation:a}=i;t.insertBefore(n,r),delete e[a.node.id],delete this.legacy_missingNodeRetryMap[a.node.id],(a.previousId||a.nextId)&&this.legacy_resolveMissingNode(e,t,n,a)}if(s){let{node:n,mutation:a}=s;t.insertBefore(n,r.nextSibling),delete e[a.node.id],delete this.legacy_missingNodeRetryMap[a.node.id],(a.previousId||a.nextId)&&this.legacy_resolveMissingNode(e,t,n,a)}}moveAndHover(e,t,r,n,a){let o=this.mirror.getNode(r);if(!o)return this.debugNodeNotFound(a,r);let i=function e(t,r){var n,a;let o=null==(a=null==(n=t.ownerDocument)?void 0:n.defaultView)?void 0:a.frameElement;if(!o||o===r)return{x:0,y:0,relativeScale:1,absoluteScale:1};let i=o.getBoundingClientRect(),s=e(o,r),l=i.height/o.clientHeight;return{x:i.x*s.relativeScale+s.x,y:i.y*s.relativeScale+s.y,relativeScale:l,absoluteScale:s.absoluteScale*l}}(o,this.iframe),s=e*i.absoluteScale+i.x,l=t*i.absoluteScale+i.y;this.mouse.style.left=`${s}px`,this.mouse.style.top=`${l}px`,n||this.drawMouseTail({x:s,y:l}),this.hoverElements(o)}drawMouseTail(e){if(!this.mouseTail)return;let{lineCap:t,lineWidth:r,strokeStyle:n,duration:a}=!0===this.config.mouseTail?eQ:Object.assign({},eQ,this.config.mouseTail),o=()=>{if(!this.mouseTail)return;let e=this.mouseTail.getContext("2d");e&&this.tailPositions.length&&(e.clearRect(0,0,this.mouseTail.width,this.mouseTail.height),e.beginPath(),e.lineWidth=r,e.lineCap=t,e.strokeStyle=n,e.moveTo(this.tailPositions[0].x,this.tailPositions[0].y),this.tailPositions.forEach(t=>e.lineTo(t.x,t.y)),e.stroke())};this.tailPositions.push(e),o(),setTimeout(()=>{this.tailPositions=this.tailPositions.filter(t=>t!==e),o()},a/this.speedService.state.context.timer.speed)}hoverElements(e){var t;null==(t=this.lastHoveredRootNode||this.iframe.contentDocument)||t.querySelectorAll(".\\:hover").forEach(e=>{e.classList.remove(":hover")}),this.lastHoveredRootNode=e.getRootNode();let r=e;for(;r;)r.classList&&r.classList.add(":hover"),r=r.parentElement}isUserInteraction(e){return e.type===em.IncrementalSnapshot&&e.data.source>eb.Mutation&&e.data.source<=eb.Input}backToNormal(){this.nextUserInteractionEvent=null,this.speedService.state.matches("normal")||(this.speedService.send({type:"BACK_TO_NORMAL"}),this.emitter.emit(ew.SkipEnd,{speed:this.speedService.state.context.normalSpeed}))}warnNodeNotFound(e,t){this.warn(`Node with id '${t}' not found. `,e)}warnCanvasMutationFailed(e,t){this.warn("Has error on canvas update",t,"canvas mutation:",e)}debugNodeNotFound(e,t){this.debug(`Node with id '${t}' not found. `,e)}warn(...e){this.config.showWarning&&this.config.logger.warn(eJ,...e)}debug(...e){this.config.showDebug&&this.config.logger.log(eJ,...e)}}},88149:(e,t,r)=>{var n=r(24490);e.exports=n&&new n},88274:(e,t,r)=>{var n=r(24127);e.exports=function(e){return function(t){return n(t,e)}}},88302:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var n=(0,r(41495).A)("filled","caret-right-filled","IconCaretRightFilled",[["path",{d:"M9 6c0 -.852 .986 -1.297 1.623 -.783l.084 .076l6 6a1 1 0 0 1 .083 1.32l-.083 .094l-6 6l-.094 .083l-.077 .054l-.096 .054l-.036 .017l-.067 .027l-.108 .032l-.053 .01l-.06 .01l-.057 .004l-.059 .002l-.059 -.002l-.058 -.005l-.06 -.009l-.052 -.01l-.108 -.032l-.067 -.027l-.132 -.07l-.09 -.065l-.081 -.073l-.083 -.094l-.054 -.077l-.054 -.096l-.017 -.036l-.027 -.067l-.032 -.108l-.01 -.053l-.01 -.06l-.004 -.057l-.002 -12.059z",key:"svg-0"}]])},89765:(e,t,r)=>{var n=r(93248),a=r(17782),o=r(45516);e.exports=function(e,t,r,i){var s=1&t,l=a(e);return function t(){for(var a=-1,c=arguments.length,u=-1,d=i.length,h=Array(d+c);++u{var n=r(55160);function a(e,t,r){var o=n(e,8,void 0,void 0,void 0,void 0,void 0,t=r?void 0:t);return o.placeholder=a.placeholder,o}a.placeholder={},e.exports=a},91104:(e,t,r)=>{"use strict";r.d(t,{D:()=>o});var n=r(55729),a=r(9825);function o(e,t){let r,o,i,s,l,c,u,d,h,[f,p]=(0,n.useState)(e),m=(0,n.useRef)(e),[b,g]=(r=(0,a.c)(p),o=(0,n.useRef)(null),i=(0,n.useRef)(null),s=(0,n.useRef)(!0),l=(0,n.useRef)(t),c=(0,n.useRef)(-1),u=(0,n.useCallback)((...e)=>{r(...e),o.current=e,i.current=e,s.current=!1},[r]),d=(0,n.useCallback)(()=>{o.current&&o.current!==i.current?(u(...o.current),c.current=window.setTimeout(d,l.current)):s.current=!0},[u]),h=(0,n.useCallback)((...e)=>{s.current?(u(...e),c.current=window.setTimeout(d,l.current)):o.current=e},[u,d]),(0,n.useEffect)(()=>{l.current=t},[t]),[h,()=>window.clearTimeout(c.current)]);return(0,n.useEffect)(()=>{e!==m.current&&(m.current=e,b(e))},[b,e]),(0,n.useEffect)(()=>g,[]),f}},91353:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},91994:e=>{e.exports=function(e,t,r){for(var n=r-1,a=e.length;++n{var n=r(83529),a=r(53416),o=r(38088),i=r(91544),s=r(3619),l=r(29464),c=Object.prototype.hasOwnProperty;function u(e){if(s(e)&&!i(e)&&!(e instanceof n)){if(e instanceof a)return e;if(c.call(e,"__wrapped__"))return l(e)}return new a(e)}u.prototype=o.prototype,u.prototype.constructor=u,e.exports=u},94193:(e,t,r)=>{"use strict";r.d(t,{T:()=>_});var n=r(6029);function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(a[r]=e[r]);return a}(e,x),v=void 0!==b.value,M=o.useRef(null),N=c(M,t),D=o.useRef(0),S=o.useRef(),T=function(){var e=M.current,t=r&&S.current?S.current:g(e);if(t){S.current=t;var a,o,s,l,c,u,p,b,v,y,w,E=(a=e.value||e.placeholder||"x",void 0===(o=i)&&(o=1),void 0===(s=n)&&(s=1/0),h||((h=document.createElement("textarea")).setAttribute("tabindex","-1"),h.setAttribute("aria-hidden","true"),d(h)),null===h.parentNode&&document.body.appendChild(h),l=t.paddingSize,c=t.borderSize,p=(u=t.sizingStyle).boxSizing,Object.keys(u).forEach(function(e){h.style[e]=u[e]}),d(h),h.value=a,b=f(h,t),h.value=a,b=f(h,t),h.value="x",y=(v=h.scrollHeight-l)*o,"border-box"===p&&(y=y+l+c),b=Math.max(y,b),w=v*s,"border-box"===p&&(w=w+l+c),[b=Math.min(w,b),v]),x=E[0],N=E[1];D.current!==x&&(D.current=x,e.style.setProperty("height",x+"px","important"),m(x,{rowHeight:N}))}};return o.useLayoutEffect(T),y(M,function(){if(!v){var e=M.current.value;requestAnimationFrame(function(){var t=M.current;t&&e!==t.value&&T()})}}),w(T),E(T),o.createElement("textarea",a({},b,{onChange:function(e){v||T(),l(e)},ref:N}))}),N=r(45490),D=r(80616),S=r(43016),T=r(94613);let C={},_=(0,S.P9)((e,t)=>{let{autosize:r,maxRows:a,minRows:o,__staticSelector:i,resize:s,...l}=(0,D.Y)("Textarea",C,e),c=r&&"test"!==(0,N._)();return(0,n.jsx)(T.O,{component:c?M:"textarea",ref:t,...l,__staticSelector:i||"Textarea",multiline:!0,"data-no-overflow":r&&void 0===a||void 0,__vars:{"--input-resize":s},...c?{maxRows:a,minRows:o}:{}})});_.classes=T.O.classes,_.displayName="@mantine/core/Textarea"},94209:(e,t,r)=>{var n=r(27524),a=Object.prototype.hasOwnProperty;e.exports=function(e){for(var t=e.name+"",r=n[t],o=a.call(n,t)?r.length:0;o--;){var i=r[o],s=i.func;if(null==s||s==e)return i.name}return t}},96024:(e,t,r)=>{var n=r(15051),a=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,o,i,s){var l=1&r,c=n(e),u=c.length;if(u!=n(t).length&&!l)return!1;for(var d=u;d--;){var h=c[d];if(!(l?h in t:a.call(t,h)))return!1}var f=s.get(e),p=s.get(t);if(f&&p)return f==t&&p==e;var m=!0;s.set(e,t),s.set(t,e);for(var b=l;++d{"use strict";r.d(t,{A:()=>n});var n=(0,r(41495).A)("outline","filter-x","IconFilterX",[["path",{d:"M13.758 19.414l-4.758 1.586v-8.5l-4.48 -4.928a2 2 0 0 1 -.52 -1.345v-2.227h16v2.172a2 2 0 0 1 -.586 1.414l-4.414 4.414v1.5",key:"svg-0"}],["path",{d:"M22 22l-5 -5",key:"svg-1"}],["path",{d:"M17 22l5 -5",key:"svg-2"}]])},97039:(e,t,r)=>{"use strict";r.d(t,{j:()=>v});var n=r(6029),a=r(78341),o=r(55729),i=r(80616),s=r(82556),l=r(37659);let[c,u]=(0,r(36254).F)("HoverCard component was not found in the tree");var d=r(72448);let h={};function f(e){let{children:t,onMouseEnter:r,onMouseLeave:a,...o}=(0,i.Y)("HoverCardDropdown",h,e),s=u(),c=(0,d.T)(r,s.openDropdown),f=(0,d.T)(a,s.closeDropdown);return(0,n.jsx)(l.A.Dropdown,{onMouseEnter:c,onMouseLeave:f,...o,children:t})}f.displayName="@mantine/core/HoverCardDropdown";var p=r(30342);let m={refProp:"ref"},b=(0,o.forwardRef)((e,t)=>{let{children:r,refProp:a,eventPropsWrapperName:s,...c}=(0,i.Y)("HoverCardTarget",m,e);if(!(0,p.v)(r))throw Error("HoverCard.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");let h=u(),f={onMouseEnter:(0,d.T)(r.props.onMouseEnter,h.openDropdown),onMouseLeave:(0,d.T)(r.props.onMouseLeave,h.closeDropdown)};return(0,n.jsx)(l.A.Target,{refProp:a,ref:t,...c,children:(0,o.cloneElement)(r,s?{[s]:f}:f)})});b.displayName="@mantine/core/HoverCardTarget";let g={openDelay:0,closeDelay:150,initiallyOpened:!1};function v(e){let{children:t,onOpen:r,onClose:o,openDelay:u,closeDelay:d,initiallyOpened:h,...f}=(0,i.Y)("HoverCard",g,e),[p,{open:m,close:b}]=(0,a.j)(h,{onClose:o,onOpen:r}),{openDropdown:v,closeDropdown:y}=(0,s.K)({open:m,close:b,openDelay:u,closeDelay:d});return(0,n.jsx)(c,{value:{openDropdown:v,closeDropdown:y},children:(0,n.jsx)(l.A,{...f,opened:p,__staticSelector:"HoverCard",children:t})})}v.displayName="@mantine/core/HoverCard",v.Target=b,v.Dropdown=f,v.extend=e=>e},97554:(e,t,r)=>{var n=r(33573),a=r(3619);e.exports=function(e){return"number"==typeof e||a(e)&&"[object Number]"==n(e)}},97684:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var n=(0,r(41495).A)("outline","player-pause","IconPlayerPause",[["path",{d:"M6 5m0 1a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v12a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z",key:"svg-0"}],["path",{d:"M14 5m0 1a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v12a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z",key:"svg-1"}]])},98501:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r{"use strict";r.d(t,{A:()=>n});var n=(0,r(41495).A)("outline","pointer","IconPointer",[["path",{d:"M7.904 17.563a1.2 1.2 0 0 0 2.228 .308l2.09 -3.093l4.907 4.907a1.067 1.067 0 0 0 1.509 0l1.047 -1.047a1.067 1.067 0 0 0 0 -1.509l-4.907 -4.907l3.113 -2.09a1.2 1.2 0 0 0 -.309 -2.228l-13.582 -3.904l3.904 13.563z",key:"svg-0"}]])},98888:(e,t,r)=>{var n=r(11061);e.exports=function(e){var t=n(e),r=t%1;return t==t?r?t-r:t:0}}}]); \ No newline at end of file diff --git a/out/_next/static/chunks/6514-9ab29f6b02cd025a.js b/out/_next/static/chunks/6514-9ab29f6b02cd025a.js deleted file mode 100644 index a7c2267..0000000 --- a/out/_next/static/chunks/6514-9ab29f6b02cd025a.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6514],{43524:e=>{e.exports={navGhost:"AppNav_navGhost__eHfjO",nav:"AppNav_nav__aQ9CO",navFixed:"AppNav_navFixed__ZeKhY",navCollapsed:"AppNav_navCollapsed__lycT3",navLinks:"AppNav_navLinks__3ZFJ_",navItem:"AppNav_navItem__qtSLL",navItemIcon:"AppNav_navItemIcon__y86wX",header:"AppNav_header__2JQvX",headerExpanded:"AppNav_headerExpanded__yEAuu",headerCollapsed:"AppNav_headerCollapsed__qMGd8",logoLink:"AppNav_logoLink__FMsYw",logoIconWrapper:"AppNav_logoIconWrapper__OelwF",collapseButton:"AppNav_collapseButton__FDYcm",collapseButtonCollapsed:"AppNav_collapseButtonCollapsed__1j3qp",scrollContainer:"AppNav_scrollContainer__UQQtv",footer:"AppNav_footer__dHa_L",navItemActive:"AppNav_navItemActive__GN7le",navItemContent:"AppNav_navItemContent__YlStp",navItemBadge:"AppNav_navItemBadge__6VqCa",navItemToggle:"AppNav_navItemToggle__tfzhc",subMenu:"AppNav_subMenu__sdt7n",subMenuItem:"AppNav_subMenuItem___6SwX",subMenuItemActive:"AppNav_subMenuItemActive__jQhrk",groupLabel:"AppNav_groupLabel__rOCDt",groupDragOver:"AppNav_groupDragOver__7ZKjA",searchInput:"AppNav_searchInput__tW1sl",shortcutHint:"AppNav_shortcutHint__McknQ",shortcutHintCtrl:"AppNav_shortcutHintCtrl__nSE1_",emptyMessage:"AppNav_emptyMessage__s2J5J",userMenu:"AppNav_userMenu__7x8UA",userMenuCollapsed:"AppNav_userMenuCollapsed__YtJQm",userMenuInfo:"AppNav_userMenuInfo__GUaPj",userMenuName:"AppNav_userMenuName__7bXub",userMenuTeam:"AppNav_userMenuTeam__qL_0p",helpButton:"AppNav_helpButton__i5B5h",helpButtonCollapsed:"AppNav_helpButtonCollapsed__dXx2R",onboardingSection:"AppNav_onboardingSection__eOrci",scrollbar:"AppNav_scrollbar__YjKyG",thumb:"AppNav_thumb__IzI2H"}},56514:(e,s,t)=>{"use strict";t.d(s,{D:()=>sc});var a=t(6029),r=t(55729),n=t(82203),l=t.n(n),o=t(60481),i=t(53061),c=t(43517),d=t(75155),m=t(81278),h=t.n(m),u=t(75828),p=t.n(u),x=t(1885),f=t(6065),b=t(16162),j=t.n(b),v=t(82641),_=t(25062),g=t(20158),y=t(96061),S=t(22599),k=t(3635),N=t(43085),C=t(76013),A=t(94720),w=t(53993),z=t(22175),I=t(78341),M=t(71991),E=t(87104),D=t(86705),T=t(85318),L=t(16120),F=t(41279),O=t(70114),P=t(23474),W=t(53780),H=t(56447),Q=t(45519),B=t(46661),Y=t(95316),q=t(6876),G=t(98142),V=t(97344),$=t(27166),K=t(36517),U=t(74805),R=t(65234);function J(e){let s,t,n,l,o,i=(0,d.c)(12),{text:c,className:m,children:h}=e,[u,x]=(0,r.useState)(!1);return i[0]===Symbol.for("react.memo_cache_sentinel")?(s=()=>{x(!0),setTimeout(()=>x(!1),2e3)},i[0]=s):s=i[0],i[1]!==m?(t=p()("text-decoration-none",m),i[1]=m,i[2]=t):t=i[2],i[3]!==h||i[4]!==u?(n=h({isCopied:u}),i[3]=h,i[4]=u,i[5]=n):n=i[5],i[6]!==t||i[7]!==n?(l=(0,a.jsx)(_.$,{variant:"secondary",p:0,className:t,size:"xs",fullWidth:!0,children:n}),i[6]=t,i[7]=n,i[8]=l):l=i[8],i[9]!==l||i[10]!==c?(o=(0,a.jsx)(R.CopyToClipboard,{text:c,onCopy:s,children:l}),i[9]=l,i[10]=c,i[11]=o):o=i[11],o}function X(e){let s,t,r=(0,d.c)(6),{label:n,value:l}=e,o=void 0===n?"":n;return r[0]!==o||r[1]!==l?(s=e=>{let{isCopied:s}=e;return(0,a.jsxs)("div",{className:p()("d-flex w-100 py-2 px-2 gap-2 rounded align-items-center justify-content-between cursor-pointer",{"text-success":s}),children:[(0,a.jsxs)("div",{className:"fs-7 d-flex text-truncate align-items-center",children:[o,(0,a.jsx)("pre",{className:"m-0 user-select-all d-inline text-truncate fs-7 lh-1",children:l})]}),(0,a.jsxs)(k.Y,{gap:2,wrap:"nowrap",className:p()("fs-7 text-end"),children:[s?(0,a.jsx)(K.A,{size:14}):(0,a.jsx)(U.A,{size:14}),s?"Copied!":"Copy"]})]})},r[0]=o,r[1]=l,r[2]=s):s=r[2],r[3]!==s||r[4]!==l?(t=(0,a.jsx)(J,{text:l,className:"d-flex mx-auto p-0 w-100",children:s}),r[3]=s,r[4]=l,r[5]=t):t=r[5],t}function Z(e){let s,t,r,n,l,o,i,c,m,h,u,p,x,f,b,j,v,g,y=(0,d.c)(25),{show:S,onHide:k}=e,{data:N}=q.Ay.useTeam();return y[0]!==N?(s=null!=N&&(0,a.jsx)("div",{className:"mb-4",children:(0,a.jsx)(X,{label:(0,a.jsxs)("span",{className:"text-muted me-2",children:["Your Ingestion API Key:"," "]}),value:N.apiKey})}),y[0]=N,y[1]=s):s=y[1],y[2]===Symbol.for("react.memo_cache_sentinel")?(t=(0,a.jsx)("div",{className:"fs-7 mb-4",children:"Click on a link below to view installation instructions for your application."}),r=(0,a.jsx)("div",{className:"fs-6 mb-2",children:"Backend"}),y[2]=t,y[3]=r):(t=y[2],r=y[3]),y[4]===Symbol.for("react.memo_cache_sentinel")?(n=(0,a.jsxs)("div",{className:"mb-2",children:[(0,a.jsx)("a",{href:"https://clickhouse.com/docs/use-cases/observability/clickstack/sdks/nodejs",target:"_blank",rel:"noreferrer",className:"text-link",children:"Node.js"}),(0,a.jsx)("span",{className:"ms-2 text-muted",children:"(Logs + Traces)"})]}),y[4]=n):n=y[4],y[5]===Symbol.for("react.memo_cache_sentinel")?(l=(0,a.jsxs)("div",{className:"mb-2",children:[(0,a.jsx)("a",{href:"https://clickhouse.com/docs/use-cases/observability/clickstack/sdks/golang",target:"_blank",rel:"noreferrer",className:"text-link",children:"Go"}),(0,a.jsx)("span",{className:"ms-2 text-muted",children:"(Logs + Traces)"})]}),y[5]=l):l=y[5],y[6]===Symbol.for("react.memo_cache_sentinel")?(o=(0,a.jsxs)("div",{className:"mb-2",children:[(0,a.jsx)("a",{href:"https://clickhouse.com/docs/use-cases/observability/clickstack/sdks/python",target:"_blank",rel:"noreferrer",className:"text-link",children:"Python"}),(0,a.jsx)("span",{className:"ms-2 text-muted",children:"(Logs + Traces)"})]}),y[6]=o):o=y[6],y[7]===Symbol.for("react.memo_cache_sentinel")?(i=(0,a.jsxs)("div",{className:"mb-2",children:[(0,a.jsx)("a",{href:"https://clickhouse.com/docs/use-cases/observability/clickstack/sdks/java",target:"_blank",rel:"noreferrer",className:"text-link",children:"Java"}),(0,a.jsx)("span",{className:"ms-2 text-muted",children:"(Logs + Traces)"})]}),y[7]=i):i=y[7],y[8]===Symbol.for("react.memo_cache_sentinel")?(c=(0,a.jsxs)("div",{className:"mb-2",children:[(0,a.jsx)("a",{href:"https://clickhouse.com/docs/use-cases/observability/clickstack/sdks/elixir",target:"_blank",rel:"noreferrer",className:"text-link",children:"Elixir"}),(0,a.jsx)("span",{className:"ms-2 text-muted",children:"(Logs)"})]}),y[8]=c):c=y[8],y[9]===Symbol.for("react.memo_cache_sentinel")?(h=(0,a.jsxs)("div",{className:"mb-2",children:[(0,a.jsx)("a",{href:"https://clickhouse.com/docs/use-cases/observability/clickstack/sdks/ruby-on-rails",target:"_blank",rel:"noreferrer",className:"text-link",children:"Ruby on Rails"}),(0,a.jsx)("span",{className:"ms-2 text-muted",children:"(Traces)"})]}),m=(0,a.jsx)("div",{className:"fs-6 mb-2 mt-4",children:"Platform"}),y[9]=m,y[10]=h):(m=y[9],h=y[10]),y[11]===Symbol.for("react.memo_cache_sentinel")?(u=(0,a.jsxs)("div",{className:"mb-2",children:[(0,a.jsx)("a",{href:"https://clickhouse.com/docs/use-cases/observability/clickstack/ingesting-data/kubernetes",target:"_blank",rel:"noreferrer",className:"text-link",children:"Kubernetes"}),(0,a.jsx)("span",{className:"ms-2 text-muted",children:"(Logs + Metrics)"})]}),p=(0,a.jsx)("div",{className:"fs-6 mb-2 mt-4",children:"Browser"}),y[11]=u,y[12]=p):(u=y[11],p=y[12]),y[13]===Symbol.for("react.memo_cache_sentinel")?(x=(0,a.jsxs)("div",{className:"mb-2",children:[(0,a.jsx)("a",{href:"https://clickhouse.com/docs/use-cases/observability/clickstack/sdks/browser",target:"_blank",rel:"noreferrer",className:"text-link",children:"JavaScript/TypeScript"}),(0,a.jsx)("span",{className:"ms-2 text-muted",children:"(Logs + Traces)"})]}),f=(0,a.jsx)("div",{className:"fs-6 mb-2 mt-4",children:"Data Collector"}),y[13]=x,y[14]=f):(x=y[13],f=y[14]),y[15]===Symbol.for("react.memo_cache_sentinel")?(b=(0,a.jsxs)("div",{className:"mb-2",children:[(0,a.jsx)("a",{href:"https://clickhouse.com/docs/use-cases/observability/clickstack/ingesting-data/opentelemetry#sending-otel-data",target:"_blank",rel:"noreferrer",className:"text-link",children:"OpenTelemetry"}),(0,a.jsx)("span",{className:"ms-2 text-muted",children:"(Logs + Traces)"})]}),y[15]=b):b=y[15],y[16]!==k?(j=(0,a.jsx)("div",{className:"mt-4",children:(0,a.jsx)(_.$,{variant:"secondary",onClick:()=>k(),children:"Cancel"})}),y[16]=k,y[17]=j):j=y[17],y[18]!==s||y[19]!==j?(v=(0,a.jsxs)("div",{className:"inter",children:[s,t,r,n,l,o,i,c,h,m,u,p,x,f,b,j]}),y[18]=s,y[19]=j,y[20]=v):v=y[20],y[21]!==k||y[22]!==S||y[23]!==v?(g=(0,a.jsx)($.a,{opened:S,onClose:k,title:"Start Sending Telemetry",size:"lg",centered:!0,children:v}),y[21]=k,y[22]=S,y[23]=v,y[24]=g):g=y[24],g}var ee=t(34834),es=t(62801),et=t(8737),ea=t(58333),er=t(90515),en=t(88992),el=t(91021),eo=t(93108),ei=t(81973),ec=t(92917);let ed=Date.now(),em=e=>{let s,t,r,n,l,o,i,m,h,u,p,x,f,b,j,v,_,g,y,A,w,z,I,M=(0,d.c)(64),{onAddDataClick:E}=e,[D,T]=(0,ec.Mj)("onboardingChecklistCollapsed",!1),{data:L,isLoading:F}=q.Ay.useTeam(),{data:O,isLoading:W}=(0,eo.ZY)(),{data:H,isLoading:Q}=(0,ei.oE)();e:{let e,t;if(!L?.createdAt){s=!1;break e}M[0]===Symbol.for("react.memo_cache_sentinel")?(e=new Date(ed-2592e5),M[0]=e):e=M[0];let a=e;M[1]!==L.createdAt?(t=new Date(L.createdAt),M[1]=L.createdAt,M[2]=t):t=M[2],s=t>a}let B=s,Y=!1===F&&B,G=O?.[0];M[3]!==G?.id||M[4]!==H?(t=H?.filter(e=>e.connection===G?.id),M[3]=G?.id,M[4]=H,M[5]=t):t=M[5];let V=t;M[6]===Symbol.for("react.memo_cache_sentinel")?(r={databaseName:"system",tableName:"tables"},M[6]=r):r=M[6],M[7]!==V?(n=V??[],M[7]=V,M[8]=n):n=M[8],M[9]!==n?(l=n.map(eh),M[9]=n,M[10]=l):l=M[10];let $=G?.id??"";M[11]!==l||M[12]!==$?(o={select:"sum(total_rows) as total_rows",from:r,where:"",filtersLogicalOperator:"OR",filters:l,connection:$},M[11]=l,M[12]=$,M[13]=o):o=M[13];let K=o;M[14]!==Y?(i={enabled:Y},M[14]=Y,M[15]=i):i=M[15];let{data:U,isLoading:R}=(0,el.HD)(K,i),J=U?.data?.[0]?.total_rows>0,X=O&&O.length>0,Z=H&&H.length>0,et=X??!1,er=X?void 0:"/team";M[16]!==W||M[17]!==er||M[18]!==et?(m={id:"connection",title:"Connect to ClickHouse",description:"Set up your database connection",isComplete:et,isLoading:W,href:er},M[16]=W,M[17]=er,M[18]=et,M[19]=m):m=M[19];let en=Z??!1,em=Z?void 0:"/team";M[20]!==Q||M[21]!==en||M[22]!==em?(h={id:"sources",title:"Create Data Sources",description:"Configure where your data comes from",isComplete:en,isLoading:Q,href:em},M[20]=Q,M[21]=en,M[22]=em,M[23]=h):h=M[23];let ex=J?void 0:E;M[24]!==J||M[25]!==R||M[26]!==ex?(u={id:"data",title:"Add Data",description:"Start sending logs, metrics, or traces",isComplete:J,isLoading:R,onClick:ex},M[24]=J,M[25]=R,M[26]=ex,M[27]=u):u=M[27],M[28]!==m||M[29]!==h||M[30]!==u?(p=[m,h,u],M[28]=m,M[29]=h,M[30]=u,M[31]=p):p=M[31];let ef=p;M[32]!==ef?(x=ef.filter(eu),M[32]=ef,M[33]=x):x=M[33];let eb=x.length,ej=eb===ef.length;if(!Y)return null;let ev=D?0:"xs";M[34]===Symbol.for("react.memo_cache_sentinel")?(f=(0,a.jsx)(c.E,{size:"sm",fw:"bold",children:"Get Started"}),M[34]=f):f=M[34];let e_=ej?"green":"blue";M[35]!==eb||M[36]!==ef.length||M[37]!==e_?(b=(0,a.jsxs)(k.Y,{gap:"xs",align:"center",children:[f,(0,a.jsxs)(N.E,{size:"xs",color:e_,variant:"light",children:[eb,"/",ef.length]})]}),M[35]=eb,M[36]=ef.length,M[37]=e_,M[38]=b):b=M[38],M[39]!==D||M[40]!==T?(j=()=>T(!D),M[39]=D,M[40]=T,M[41]=j):j=M[41],M[42]!==D?(v=D?(0,a.jsx)(P.A,{size:12}):(0,a.jsx)(ea.A,{size:12}),M[42]=D,M[43]=v):v=M[43],M[44]!==j||M[45]!==v?(_=(0,a.jsx)(C.M,{variant:"subtle",size:"sm",onClick:j,children:v}),M[44]=j,M[45]=v,M[46]=_):_=M[46],M[47]!==ev||M[48]!==b||M[49]!==_?(g=(0,a.jsxs)(k.Y,{justify:"space-between",align:"center",mb:ev,children:[b,_]}),M[47]=ev,M[48]=b,M[49]=_,M[50]=g):g=M[50];let eg=!D;return M[51]!==ef?(y=ef.map(ep),M[51]=ef,M[52]=y):y=M[52],M[53]!==ej?(A=ej&&(0,a.jsx)(k.Y,{justify:"center",mt:"xs",p:"xs",children:(0,a.jsx)(c.E,{size:"sm",c:"green",fw:"bold",children:"\uD83C\uDF89 Great job! You're all set up."})}),M[53]=ej,M[54]=A):A=M[54],M[55]!==y||M[56]!==A?(w=(0,a.jsxs)(ee.B,{gap:"xs",children:[y,A]}),M[55]=y,M[56]=A,M[57]=w):w=M[57],M[58]!==eg||M[59]!==w?(z=(0,a.jsx)(S.S,{in:eg,children:w}),M[58]=eg,M[59]=w,M[60]=z):z=M[60],M[61]!==g||M[62]!==z?(I=(0,a.jsxs)(es.Z,{withBorder:!0,p:"xs",mb:"sm",radius:"md",children:[g,z]}),M[61]=g,M[62]=z,M[63]=I):I=M[63],I};function eh(e){return{type:"sql",condition:`table = '${e.from.tableName}' AND database = '${e.from.databaseName}'`}}function eu(e){return e.isComplete}function ep(e,s){let t=(0,a.jsxs)(k.Y,{gap:"sm",align:"center",w:"100%",children:[(0,a.jsx)("div",{style:{width:20,height:20,borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",border:e.isComplete?"1px solid var(--color-text-brand)":"1px solid var(--color-border)",backgroundColor:e.isComplete?"transparent":"var(--color-bg-muted)",color:e.isComplete?"var(--color-text-brand)":"var(--color-text)",flexShrink:0},children:e.isLoading?(0,a.jsx)(A.a,{size:"xs",color:"gray"}):e.isComplete?(0,a.jsx)(er.A,{size:16,style:{fontSize:12,fontWeight:"bold",paddingTop:1}}):(0,a.jsx)(c.E,{size:"xs",fw:"bold",children:s+1})}),(0,a.jsxs)("div",{style:{flex:1},children:[(0,a.jsx)(c.E,{size:"sm",fw:"500",style:{textDecoration:e.isComplete?"line-through":"none",opacity:e.isComplete?.8:1},children:e.title}),(0,a.jsx)(c.E,{size:"xs",c:"dimmed",children:e.description})]}),!e.isComplete&&(e.href||e.onClick)&&(0,a.jsx)(en.A,{size:12,style:{color:"var(--color-text-muted)"}})]});return e.href&&!e.isComplete?(0,a.jsx)(l(),{href:e.href,style:{textDecoration:"none"},children:(0,a.jsx)(et.N,{w:"100%",py:"xs",style:{borderRadius:6,cursor:"pointer",":hover":{backgroundColor:"var(--color-bg-muted)"}},children:t})},e.id):e.onClick&&!e.isComplete?(0,a.jsx)(et.N,{w:"100%",py:"xs",onClick:e.onClick,style:{borderRadius:6,cursor:"pointer",":hover":{backgroundColor:"var(--color-bg-hover)"}},children:t},e.id):(0,a.jsx)("div",{style:{},children:t},e.id)}var ex=t(87095),ef=t(36600),eb=t(92789),ej=t(38206),ev=t(87989),e_=t(63085),eg=t(97787),ey=t(23994),eS=t(31071),ek=t(58202),eN=t(57820);let eC=[{label:"Dark",value:"dark"},{label:"Light",value:"light"}],eA=Object.values(ek.Zj).map(e=>({label:e.displayName,value:e.name})),ew=e=>{let s,t,r,n,l,o,i=(0,d.c)(12),{label:m,description:h,children:u}=e;return i[0]===Symbol.for("react.memo_cache_sentinel")?(s={flex:1},i[0]=s):s=i[0],i[1]!==h?(t=h&&(0,a.jsx)(c.E,{size:"xs",mt:2,children:h}),i[1]=h,i[2]=t):t=i[2],i[3]!==m||i[4]!==t?(r=(0,a.jsxs)("div",{style:s,children:[m,t]}),i[3]=m,i[4]=t,i[5]=r):r=i[5],i[6]===Symbol.for("react.memo_cache_sentinel")?(n={flex:.8},i[6]=n):n=i[6],i[7]!==u?(l=(0,a.jsx)("div",{style:n,children:u}),i[7]=u,i[8]=l):l=i[8],i[9]!==r||i[10]!==l?(o=(0,a.jsxs)(k.Y,{align:"center",justify:"space-between",children:[r,l]}),i[9]=r,i[10]=l,i[11]=o):o=i[11],o},ez=e=>{let s,t,r,n,l,o,i,m,h,u,p,x,f,b,j=(0,d.c)(37),{opened:v,onClose:_}=e,{userPreferences:g,setUserPreference:y}=(0,eN.HW)(),{themeName:S,setTheme:C,isDev:A}=(0,ef.o3)();return j[0]===Symbol.for("react.memo_cache_sentinel")?(s=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{children:"Preferences"}),(0,a.jsx)(c.E,{size:"xs",mt:6,children:"Customize your experience"})]}),j[0]=s):s=j[0],j[1]===Symbol.for("react.memo_cache_sentinel")?(t=(0,a.jsx)(eb.c,{label:"Date and Time",labelPosition:"left"}),j[1]=t):t=j[1],j[2]!==y?(r=e=>e&&y({timeFormat:e}),j[2]=y,j[3]=r):r=j[3],j[4]===Symbol.for("react.memo_cache_sentinel")?(n=["12h","24h"],j[4]=n):n=j[4],j[5]!==r||j[6]!==g.timeFormat?(l=(0,a.jsx)(ew,{label:"Time format",children:(0,a.jsx)(ej.l,{value:g.timeFormat,onChange:r,data:n,allowDeselect:!1})}),j[5]=r,j[6]=g.timeFormat,j[7]=l):l=j[7],j[8]!==y?(o=e=>y({isUTC:e.currentTarget.checked}),j[8]=y,j[9]=o):o=j[9],j[10]!==o||j[11]!==g.isUTC?(i=(0,a.jsx)(ew,{label:"Use UTC time",children:(0,a.jsx)(ev.d,{size:"md",onLabel:"UTC",checked:g.isUTC,onChange:o})}),j[10]=o,j[11]=g.isUTC,j[12]=i):i=j[12],j[13]===Symbol.for("react.memo_cache_sentinel")?(m=(0,a.jsx)(eb.c,{label:(0,a.jsxs)(k.Y,{align:"center",gap:"xs",children:["Appearance",(0,a.jsx)(N.E,{variant:"light",fw:"normal",size:"xs",children:"Experimental"})]}),labelPosition:"left",mt:"sm"}),j[13]=m):m=j[13],j[14]!==y?(h=e=>e&&y({colorMode:e}),j[14]=y,j[15]=h):h=j[15],j[16]!==h||j[17]!==g.colorMode?(u=(0,a.jsx)(ew,{label:"Color Mode",description:"Switch between light and dark mode",children:(0,a.jsx)(ej.l,{value:g.colorMode,onChange:h,data:eC,allowDeselect:!1})}),j[16]=h,j[17]=g.colorMode,j[18]=u):u=j[18],j[19]!==A||j[20]!==C||j[21]!==S?(p=A&&(0,a.jsx)(ew,{label:(0,a.jsxs)(k.Y,{gap:"xs",children:["Brand Theme",(0,a.jsx)(e_.m,{label:"Only available in local/dev mode. Changes logo, colors, and branding.",multiline:!0,w:220,children:(0,a.jsx)(N.E,{variant:"light",color:"violet",fw:"normal",size:"xs",leftSection:(0,a.jsx)(ey.A,{size:10}),children:"Dev Only"})})]}),description:"Switch between HyperDX and ClickStack branding",children:(0,a.jsx)(ej.l,{value:S,onChange:e=>{e&&(0,ek.tc)(e)&&C(e)},data:eA,allowDeselect:!1})}),j[19]=A,j[20]=C,j[21]=S,j[22]=p):p=j[22],j[23]!==y||j[24]!==S||j[25]!==g.font?(x="clickstack"!==S&&(0,a.jsx)(ew,{label:"Font",description:"If using custom font, make sure it's installed on your system",children:(0,a.jsx)(eg.j,{value:g.font,filter:eI,onChange:e=>y({font:e}),data:eS.Al})}),j[23]=y,j[24]=S,j[25]=g.font,j[26]=x):x=j[26],j[27]!==u||j[28]!==p||j[29]!==x||j[30]!==l||j[31]!==i?(f=(0,a.jsxs)(ee.B,{gap:"lg",children:[t,l,i,m,u,p,x]}),j[27]=u,j[28]=p,j[29]=x,j[30]=l,j[31]=i,j[32]=f):f=j[32],j[33]!==_||j[34]!==v||j[35]!==f?(b=(0,a.jsx)($.a,{title:s,size:"lg",padding:"lg",keepMounted:!1,opened:v,onClose:_,children:f}),j[33]=_,j[34]=v,j[35]=f,j[36]=b):b=j[36],b};function eI(e){let{options:s}=e;return s}var eM=t(66992),eE=t(56513),eD=t(22623),eT=t(89533),eL=t(62861),eF=t(92334),eO=t(21604),eP=t(1146),eW=t(93938),eH=t(43524),eQ=t.n(eH);let eB=r.createContext({isCollapsed:!1,pathname:"/"}),eY=()=>{let e,s,t=(0,d.c)(2);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)("span",{className:"fs-8",children:"Ready to deploy on ClickHouse Cloud?"}),t[0]=e):e=t[0],t[1]===Symbol.for("react.memo_cache_sentinel")?(s=(0,a.jsxs)("div",{className:"my-3 bg-muted rounded p-2 text-center",children:[e,(0,a.jsx)("div",{className:"mt-2 mb-2",children:(0,a.jsx)(_.$,{variant:"primary",size:"xs",component:"a",href:"https://clickhouse.com/docs/use-cases/observability/clickstack/getting-started#deploy-with-clickhouse-cloud",target:"_blank",rel:"noopener noreferrer",children:"Get Started for Free"})})]}),t[1]=s):s=t[1],s},eq=e=>{let s,t,n,o,i,m,h,u,x,f,b,j,v,_=(0,d.c)(29),{userName:g,teamName:y,logoutUrl:S,onClickUserPreferences:N}=e,C=void 0===g?"User":g,{isCollapsed:A}=r.useContext(eB);_[0]!==C?(s=C.split(" ").map(e$).join(""),_[0]=C,_[1]=s):s=_[1];let w=s,z=G.VO?"Local mode":C;return _[2]===Symbol.for("react.memo_cache_sentinel")?(t={transition:"fade-up"},_[2]=t):t=_[2],_[3]!==A?(n=p()(eQ().userMenu,{[eQ().userMenuCollapsed]:A}),_[3]=A,_[4]=n):n=_[4],_[5]!==w?(o=(0,a.jsx)(eM.e,{size:"sm",radius:"xl",color:"gray",children:w}),_[5]=w,_[6]=o):o=_[6],_[7]!==z||_[8]!==A||_[9]!==y?(i=!A&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(e_.m,{fz:"xs",color:"gray",ta:"center",label:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("strong",{children:z}),(0,a.jsx)("br",{}),y]}),openDelay:250,children:(0,a.jsxs)("div",{className:eQ().userMenuInfo,children:[(0,a.jsx)(c.E,{size:"xs",fw:"bold",lh:1.1,className:eQ().userMenuName,children:z}),(0,a.jsx)(c.E,{size:"xs",className:eQ().userMenuTeam,children:y})]})}),(0,a.jsx)(O.A,{size:14})]}),_[7]=z,_[8]=A,_[9]=y,_[10]=i):i=_[10],_[11]!==o||_[12]!==i?(m=(0,a.jsxs)(k.Y,{gap:"xs",wrap:"nowrap",miw:0,children:[o,i]}),_[11]=o,_[12]=i,_[13]=m):m=_[13],_[14]!==n||_[15]!==m?(h=(0,a.jsx)(eE.W.Target,{children:(0,a.jsx)(eD.t,{"data-testid":"user-menu-trigger",className:n,children:m})}),_[14]=n,_[15]=m,_[16]=h):h=_[16],_[17]===Symbol.for("react.memo_cache_sentinel")?(u=G.VO?(0,a.jsx)(eE.W.Label,{fz:"xs",children:"Local mode"}):(0,a.jsx)(eE.W.Item,{"data-testid":"team-settings-menu-item",href:"/team",component:l(),leftSection:(0,a.jsx)(Y.A,{size:16}),children:"Team Settings"}),_[17]=u):u=_[17],_[18]===Symbol.for("react.memo_cache_sentinel")?(x=(0,a.jsx)(eT.A,{size:16}),_[18]=x):x=_[18],_[19]!==N?(f=(0,a.jsx)(eE.W.Item,{"data-testid":"user-preferences-menu-item",leftSection:x,onClick:N,children:"User Preferences"}),_[19]=N,_[20]=f):f=_[20],_[21]!==S?(b=S&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(eE.W.Divider,{}),(0,a.jsx)(eE.W.Item,{"data-testid":"logout-menu-item",color:"red",leftSection:(0,a.jsx)(eL.A,{size:16}),component:l(),href:S,children:"Logout"})]}),_[21]=S,_[22]=b):b=_[22],_[23]!==f||_[24]!==b?(j=(0,a.jsxs)(eE.W.Dropdown,{children:[u,f,b]}),_[23]=f,_[24]=b,_[25]=j):j=_[25],_[26]!==j||_[27]!==h?(v=(0,a.jsxs)(eE.W,{position:"top-start",transitionProps:t,children:[h,j]}),_[26]=j,_[27]=h,_[28]=v):v=_[28],v},eG=e=>{let s,t,n,l,o,i,m,h,u,x,f,b,j,v=(0,d.c)(25),{version:_,onAddDataClick:g}=e,{isCollapsed:y}=r.useContext(eB),[S,N]=(0,I.j)(!1),{close:C}=N;return v[0]!==y?(s=p()(eQ().helpButton,{[eQ().helpButtonCollapsed]:y}),v[0]=y,v[1]=s):s=v[1],v[2]===Symbol.for("react.memo_cache_sentinel")?(t={transition:"fade-up"},v[2]=t):t=v[2],v[3]===Symbol.for("react.memo_cache_sentinel")?(n=(0,a.jsx)(eE.W.Target,{children:(0,a.jsx)(et.N,{"data-testid":"help-menu-trigger",w:"100%",children:(0,a.jsx)(k.Y,{align:"center",justify:"center",h:28,children:(0,a.jsx)(eF.A,{size:16})})})}),v[3]=n):n=v[3],v[4]!==_?(l=_&&(0,a.jsxs)(c.E,{size:"xs",component:"span",children:["v",_]}),v[4]=_,v[5]=l):l=v[5],v[6]!==l?(o=(0,a.jsxs)(eE.W.Label,{children:["Help"," ",l]}),v[6]=l,v[7]=o):o=v[7],v[8]===Symbol.for("react.memo_cache_sentinel")?(i=(0,a.jsx)(eE.W.Item,{"data-testid":"documentation-menu-item",href:"https://clickhouse.com/docs/use-cases/observability/clickstack",component:"a",target:"_blank",rel:"noopener noreferrer",leftSection:(0,a.jsx)(eO.A,{size:16}),children:"Documentation"}),v[8]=i):i=v[8],v[9]===Symbol.for("react.memo_cache_sentinel")?(m=(0,a.jsx)(eE.W.Item,{"data-testid":"discord-menu-item",leftSection:(0,a.jsx)(eP.A,{size:16}),component:"a",href:"https://hyperdx.io/discord",target:"_blank",rel:"noopener noreferrer",children:"Discord Community"}),v[9]=m):m=v[9],v[10]===Symbol.for("react.memo_cache_sentinel")?(h=(0,a.jsx)(eW.A,{size:16}),v[10]=h):h=v[10],v[11]!==g?(u=(0,a.jsx)(eE.W.Item,{"data-testid":"setup-instructions-menu-item",leftSection:h,onClick:g,children:"Setup Instructions"}),v[11]=g,v[12]=u):u=v[12],v[13]!==u||v[14]!==o?(x=(0,a.jsxs)(eE.W,{withArrow:!0,position:"top-start",transitionProps:t,defaultOpened:!1,children:[n,(0,a.jsxs)(eE.W.Dropdown,{children:[o,i,m,u]})]}),v[13]=u,v[14]=o,v[15]=x):x=v[15],v[16]!==x||v[17]!==s?(f=(0,a.jsx)(eD.t,{className:s,children:x}),v[16]=x,v[17]=s,v[18]=f):f=v[18],v[19]!==C||v[20]!==S?(b=(0,a.jsx)(Z,{show:S,onHide:C}),v[19]=C,v[20]=S,v[21]=b):b=v[21],v[22]!==f||v[23]!==b?(j=(0,a.jsxs)(a.Fragment,{children:[f,b]}),v[22]=f,v[23]=b,v[24]=j):j=v[24],j},eV=e=>{let s,t,n,o,i,c,m,h,u,x,f,b,j=(0,d.c)(37),{className:v,label:_,icon:g,href:y,isExpanded:S,onToggle:k,isBeta:C}=e,{pathname:A,isCollapsed:w}=r.useContext(eB);j[0]!==y?(s=y.replace(/^\//,"").replace(/\//g,"-")||"home",j[0]=y,j[1]=s):s=j[1];let z=`nav-link-${s}`;j[2]!==k?(t=e=>{e.preventDefault(),e.stopPropagation(),k?.()},j[2]=k,j[3]=t):t=j[3];let I=t;if(j[4]!==v||j[5]!==y||j[6]!==A||j[7]!==z){let e=A===y||A?.startsWith(y+"/");n=l(),o=z,i=y,c=p()(eQ().navItem,{[eQ().navItemActive]:e},v),j[4]=v,j[5]=y,j[6]=A,j[7]=z,j[8]=n,j[9]=o,j[10]=i,j[11]=c}else n=j[8],o=j[9],i=j[10],c=j[11];return j[12]!==g?(m=(0,a.jsx)("span",{className:eQ().navItemIcon,children:g}),j[12]=g,j[13]=m):m=j[13],j[14]!==w||j[15]!==_?(h=!w&&(0,a.jsx)("span",{children:_}),j[14]=w,j[15]=_,j[16]=h):h=j[16],j[17]!==m||j[18]!==h?(u=(0,a.jsxs)("span",{className:eQ().navItemContent,children:[m,h]}),j[17]=m,j[18]=h,j[19]=u):u=j[19],j[20]!==C||j[21]!==w?(x=!w&&C&&(0,a.jsx)(N.E,{size:"xs",color:"blue",variant:"light",className:eQ().navItemBadge,children:"Beta"}),j[20]=C,j[21]=w,j[22]=x):x=j[22],j[23]!==I||j[24]!==w||j[25]!==S||j[26]!==k||j[27]!==z?(f=!w&&k&&(0,a.jsx)("button",{type:"button","data-testid":`${z}-toggle`,className:eQ().navItemToggle,onClick:I,children:S?(0,a.jsx)(ea.A,{size:14,className:"text-muted-hover"}):(0,a.jsx)(P.A,{size:14,className:"text-muted-hover"})}),j[23]=I,j[24]=w,j[25]=S,j[26]=k,j[27]=z,j[28]=f):f=j[28],j[29]!==n||j[30]!==f||j[31]!==o||j[32]!==i||j[33]!==c||j[34]!==u||j[35]!==x?(b=(0,a.jsxs)(n,{"data-testid":o,href:i,className:c,children:[u,x,f]}),j[29]=n,j[30]=f,j[31]=o,j[32]=i,j[33]=c,j[34]=u,j[35]=x,j[36]=b):b=j[36],b};function e$(e){return e[0].toUpperCase()}let eK="Saved Searches",eU="Saved Dashboards",eR=[{id:"chart",label:"Chart Explorer",href:"/chart",icon:(0,a.jsx)(M.A,{size:16})},{id:"alerts",label:"Alerts",href:"/alerts",icon:(0,a.jsx)(E.A,{size:16}),cloudOnly:!0},{id:"sessions",label:"Client Sessions",href:"/sessions",icon:(0,a.jsx)(D.A,{size:16})},{id:"service-map",label:"Service Map",href:"/service-map",icon:(0,a.jsx)(T.A,{size:16}),isBeta:!0}];function eJ(){let e,s,t,r=(0,d.c)(6),n=(0,V.mG)();if(G.VO){let e;return r[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsxs)(_.$,{component:l(),href:"/dashboards","data-testid":"create-dashboard-button",variant:"transparent",color:"var(--color-text)",py:"0px",px:"sm",fw:400,children:[(0,a.jsx)("span",{className:"pe-2",children:"+"})," Create Dashboard"]}),r[0]=e):e=r[0],e}return r[1]!==n?(e=()=>n.mutate({name:"My Dashboard",tiles:[],tags:[]},{onSuccess:eX}),r[1]=n,r[2]=e):e=r[2],r[3]===Symbol.for("react.memo_cache_sentinel")?(s=(0,a.jsx)("span",{className:"pe-2",children:"+"}),r[3]=s):s=r[3],r[4]!==e?(t=(0,a.jsxs)(_.$,{"data-testid":"create-dashboard-button",variant:"transparent",color:"var(--color-text)",py:"0px",px:"sm",fw:400,onClick:e,children:[s," Create Dashboard"]}),r[4]=e,r[5]=t):t=r[5],t}function eX(e){h().push(`/dashboards/${e.id}`)}function eZ(e){let s,t,r,n,l,o,i=(0,d.c)(15),{placeholder:c,value:m,onChange:h,onEnterDown:u}=e;i[0]===Symbol.for("react.memo_cache_sentinel")?(s=(0,a.jsxs)("div",{className:eQ().shortcutHint,children:[window.navigator.platform?.toUpperCase().includes("MAC")?(0,a.jsx)(L.A,{size:8}):(0,a.jsx)("span",{className:eQ().shortcutHintCtrl,children:"Ctrl"}),"\xa0K"]}),i[0]=s):s=i[0];let p=s;i[1]!==u?(t=e=>{"Enter"===e.key&&u?.()},i[1]=u,i[2]=t):t=i[2];let x=t;return i[3]!==h?(r=e=>h(e.currentTarget.value),i[3]=h,i[4]=r):r=i[4],i[5]===Symbol.for("react.memo_cache_sentinel")?(n=(0,a.jsx)(F.A,{size:16,className:"ps-1"}),i[5]=n):n=i[5],i[6]!==h||i[7]!==m?(l=m?(0,a.jsx)(g.J,{"data-testid":"nav-search-clear",tabIndex:-1,size:"xs",radius:"xl",onClick:()=>h("")}):p,i[6]=h,i[7]=m,i[8]=l):l=i[8],i[9]!==x||i[10]!==c||i[11]!==r||i[12]!==l||i[13]!==m?(o=(0,a.jsx)(y.p,{"data-testid":"nav-search-input",placeholder:c,value:m,onChange:r,leftSection:n,onKeyDown:x,rightSection:l,mt:8,mb:"sm",size:"xs",variant:"filled",radius:"xl",className:eQ().searchInput}),i[9]=x,i[10]=c,i[11]=r,i[12]=l,i[13]=m,i[14]=o):o=i[14],o}let e1=e=>{let s,t,r,n=(0,d.c)(8),{name:l,collapsed:o,onClick:i}=e;return n[0]!==o?(s=o?(0,a.jsx)(O.A,{size:14}):(0,a.jsx)(P.A,{size:14}),n[0]=o,n[1]=s):s=n[1],n[2]!==l?(t=(0,a.jsx)("div",{children:l}),n[2]=l,n[3]=t):t=n[3],n[4]!==i||n[5]!==s||n[6]!==t?(r=(0,a.jsxs)("div",{className:eQ().groupLabel,onClick:i,children:[s,t]}),n[4]=i,n[5]=s,n[6]=t,n[7]=r):r=n[7],r},e0=e=>{let s,t,n,l,o,i=(0,d.c)(23),{name:c,groups:m,renderLink:h,onDragEnd:u,forceExpandGroups:x}=e,f=void 0!==x&&x,b=`collapsedGroups-${c}`;i[0]===Symbol.for("react.memo_cache_sentinel")?(s={},i[0]=s):s=i[0],i[1]!==b?(t={key:b,defaultValue:s},i[1]=b,i[2]=t):t=i[2];let[j,v]=(0,z.M)(t);i[3]!==j||i[4]!==v?(n=e=>{v({...j,[e]:!j[e]})},i[3]=j,i[4]=v,i[5]=n):n=i[5];let _=n,[g,y]=(0,r.useState)(null);if(i[6]!==j||i[7]!==g||i[8]!==f||i[9]!==m||i[10]!==_||i[11]!==u||i[12]!==h){let e;i[14]!==j||i[15]!==g||i[16]!==f||i[17]!==_||i[18]!==u||i[19]!==h?(e=e=>(0,a.jsxs)("div",{className:p()(g===e.name&&eQ().groupDragOver),onDragOver:s=>{s.preventDefault(),s.dataTransfer.dropEffect="move",y(e.name)},onDragEnd:e=>{e.preventDefault(),u?.(e.target,g),y(null)},children:[(0,a.jsx)(e1,{onClick:()=>_(e.name),name:e.name,collapsed:j[e.name]}),(0,a.jsx)(S.S,{in:!j[e.name]||f,children:e.items.map(e=>h(e))})]},e.name),i[14]=j,i[15]=g,i[16]=f,i[17]=_,i[18]=u,i[19]=h,i[20]=e):e=i[20],l=m.map(e),i[6]=j,i[7]=g,i[8]=f,i[9]=m,i[10]=_,i[11]=u,i[12]=h,i[13]=l}else l=i[13];return i[21]!==l?(o=(0,a.jsx)(a.Fragment,{children:l}),i[21]=l,i[22]=o):o=i[22],o};function e2(e){let s,t,a,n,l=(0,d.c)(14),{items:o,untaggedGroupName:i}=e,c=void 0===i?"Other":i;l[0]!==o?(s=new x.A(o,{keys:["name"],threshold:.2,ignoreLocation:!0}),l[0]=o,l[1]=s):s=l[1];let m=s,[h,u]=(0,r.useState)("");e:{let e;if(""===h){t=o;break e}l[2]!==m||l[3]!==h?(e=m.search(h).map(e5),l[2]=m,l[3]=h,l[4]=e):e=l[4],t=e}let p=t;if(l[5]!==p||l[6]!==c){let e,s={},t=[];p.forEach(e=>{e.tags?.length?e.tags.forEach(t=>{s[t]=s[t]??[],s[t].push(e)}):t.push(e)}),t.length&&(s[c]=t),l[8]!==c?(e=(e,s)=>e.name===c?1:s.name===c?-1:e.name.localeCompare(s.name),l[8]=c,l[9]=e):e=l[9],a=Object.entries(s).map(e3).sort(e),l[5]=p,l[6]=c,l[7]=a}else a=l[7];let f=a;return l[10]!==p||l[11]!==f||l[12]!==h?(n={filteredList:p,groupedFilteredList:f,q:h,setQ:u},l[10]=p,l[11]=f,l[12]=h,l[13]=n):n=l[13],n}function e3(e){let[s,t]=e;return{name:s,items:t}}function e5(e){return e.item}function e4(e){let s,t,n,o,i,c,h,u,x,b,v,_,g,y,M,D,T,L,F,O,P,$,K,U,R,J,X,ee,es,et,ea,er,en,el,eo,ei,ed,eh,eu,ep,eb,ej,ev,e_,eg,ey,eS,ek,eC,eA,ew,eI,eM,eE,eD,eT,eL,eF=(0,d.c)(163),{fixed:eO}=e,eP=void 0!==eO&&eO,eW=(0,ef.PH)();eF[0]===Symbol.for("react.memo_cache_sentinel")?(s={size:22},eF[0]=s):s=eF[0];let eH=(0,ef.GV)(s);eF[1]===Symbol.for("react.memo_cache_sentinel")?(t=[],eF[1]=t):t=eF[1],(0,r.useEffect)(se,t);let{data:e$,isLoading:eX,refetch:e3}=(0,ex.PY)();eF[2]!==e$?(n=e$??[],eF[2]=e$,eF[3]=n):n=eF[3];let e5=n,e4=(0,V.vY)(),ss=(0,ex.CI)(),{data:st,isLoading:sa,refetch:sr}=(0,V.L9)();eF[4]!==st?(o=st??[],eF[4]=st,eF[5]=o):o=eF[5];let sn=o,{pathname:sl,query:so}=(0,m.useRouter)();eF[6]===Symbol.for("react.memo_cache_sentinel")?(i={from:(0,f.withDefault)(f.NumberParam,-1),to:(0,f.withDefault)(f.NumberParam,-1)},eF[6]=i):i=eF[6];let[si]=(0,f.useQueryParams)(i);eF[7]===Symbol.for("react.memo_cache_sentinel")?(c=(0,f.withDefault)(f.StringParam,""),h={updateType:"pushIn",enableBatching:!0},eF[7]=c,eF[8]=h):(c=eF[7],h=eF[8]);let[sc]=(0,f.useQueryParam)("tq",c,h),{data:sd}=q.Ay.useMe();eF[9]===Symbol.for("react.memo_cache_sentinel")?(u={key:"isSearchExpanded",defaultValue:!0},eF[9]=u):u=eF[9];let[sm,sh]=(0,z.M)(u);eF[10]===Symbol.for("react.memo_cache_sentinel")?(x={key:"isDashboardsExpanded",defaultValue:!0},eF[10]=x):x=eF[10];let[su,sp]=(0,z.M)(x),{width:sx}=(0,ec.lW)();eF[11]===Symbol.for("react.memo_cache_sentinel")?(b={key:"isNavCollapsed",defaultValue:!1},eF[11]=b):b=eF[11];let[sf,sb]=(0,z.M)(b),sj=(sx??1e3)<900||sf,sv=sj?50:250;eF[12]!==sl||eF[13]!==so?(v=()=>{j().addAction("user navigated",{route:sl,query:JSON.stringify(so)})},_=[sl,so],eF[12]=sl,eF[13]=so,eF[14]=v,eF[15]=_):(v=eF[14],_=eF[15]),(0,r.useEffect)(v,_),eF[16]!==sd?(g=()=>{null!=sd&&(j().enableAdvancedNetworkCapture(),j().setGlobalAttributes({userEmail:sd.email,userName:sd.name,teamName:sd.team.name}))},y=[sd],eF[16]=sd,eF[17]=g,eF[18]=y):(g=eF[17],y=eF[18]),(0,r.useEffect)(g,y),eF[19]!==e5?(M={items:e5,untaggedGroupName:eK},eF[19]=e5,eF[20]=M):M=eF[20];let{q:s_,setQ:sg,filteredList:sy,groupedFilteredList:sS}=e2(M);eF[21]!==sn?(D={items:sn,untaggedGroupName:eU},eF[21]=sn,eF[22]=D):D=eF[22];let{q:sk,setQ:sN,filteredList:sC,groupedFilteredList:sA}=e2(D);eF[23]===Symbol.for("react.memo_cache_sentinel")?(T={key:"isDashboardsPresetsCollapsed",defaultValue:!1},eF[23]=T):T=eF[23];let[sw,sz]=(0,z.M)(T),sI=(0,r.useRef)(null),sM=(0,r.useRef)(null);eF[24]!==sc||eF[25]!==so.savedSearchId||eF[26]!==si.from||eF[27]!==si.to?(L=e=>(0,a.jsx)(l(),{href:`/search/${e.id}?${new URLSearchParams(-1!=si.from&&-1!=si.to?{from:si.from.toString(),to:si.to.toString(),tq:sc}:{}).toString()}`,tabIndex:0,className:p()(eQ().subMenuItem,e.id===so.savedSearchId&&eQ().subMenuItemActive),title:e.name,draggable:!0,"data-savedsearchid":e.id,children:(0,a.jsxs)(k.Y,{gap:2,children:[(0,a.jsx)("div",{className:"d-inline-block text-truncate",children:e.name}),Array.isArray(e.alerts)&&e.alerts.length>0?e.alerts.some(e9)?(0,a.jsx)(W.A,{size:14,className:"float-end text-danger ms-1","aria-label":"Has Alerts and is in ALERT state"}):(0,a.jsx)(E.A,{size:14,className:"float-end ms-1","aria-label":"Has Alerts and is in OK state"}):null]})},e.id),eF[24]=sc,eF[25]=so.savedSearchId,eF[26]=si.from,eF[27]=si.to,eF[28]=L):L=eF[28];let sE=L;eF[29]!==e5||eF[30]!==e3||eF[31]!==ss?(F=(e,s)=>{if(!e?.dataset.savedsearchid||null==s)return;let t=e5.find(s=>s.id===e.dataset.savedsearchid);t?.tags?.includes(s)||ss.mutate({id:e.dataset.savedsearchid,tags:s===eK?[]:[s]},{onSuccess:()=>{e3()}})},eF[29]=e5,eF[30]=e3,eF[31]=ss,eF[32]=F):F=eF[32];let sD=F;eF[33]!==so.dashboardId?(O=e=>(0,a.jsx)(l(),{href:`/dashboards/${e.id}`,tabIndex:0,className:p()(eQ().subMenuItem,{[eQ().subMenuItemActive]:e.id===so.dashboardId}),draggable:!0,"data-dashboardid":e.id,children:e.name},e.id),eF[33]=so.dashboardId,eF[34]=O):O=eF[34];let sT=O;eF[35]!==sn||eF[36]!==sr||eF[37]!==e4?(P=(e,s)=>{if(!e?.dataset.dashboardid||null==s)return;let t=sn.find(s=>s.id===e.dataset.dashboardid);t?.tags?.includes(s)||e4.mutate({id:e.dataset.dashboardid,tags:s===eU?[]:[s]},{onSuccess:()=>{sr()}})},eF[35]=sn,eF[36]=sr,eF[37]=e4,eF[38]=P):P=eF[38];let sL=P,[sF,sO]=(0,I.j)(!1),{close:sP,open:sW}=sO,{userPreferences:sH}=(0,eN.HW)(),{isUTC:sQ}=sH,[sB,sY]=(0,I.j)(!1),{open:sq,close:sG}=sY;eF[39]!==sj||eF[40]!==sl?($={isCollapsed:sj,pathname:sl},eF[39]=sj,eF[40]=sl,eF[41]=$):$=eF[41],eF[42]!==eP||eF[43]!==sv?(K=eP&&(0,a.jsx)("div",{className:eQ().navGhost,style:{width:sv+1,minWidth:sv+1}}),eF[42]=eP,eF[43]=sv,eF[44]=K):K=eF[44],eF[45]!==sG||eF[46]!==sB?(U=(0,a.jsx)(Z,{show:sB,onHide:sG}),eF[45]=sG,eF[46]=sB,eF[47]=U):U=eF[47],eF[48]!==eP||eF[49]!==sj?(R=p()(eQ().nav,{[eQ().navFixed]:eP,[eQ().navCollapsed]:sj}),eF[48]=eP,eF[49]=sj,eF[50]=R):R=eF[50],eF[51]!==sv?(J={width:sv},X={width:sv},eF[51]=sv,eF[52]=J,eF[53]=X):(J=eF[52],X=eF[53]);let sV=!sj;eF[54]!==sj||eF[55]!==sV?(ee=p()(eQ().header,{[eQ().headerExpanded]:sV,[eQ().headerCollapsed]:sj}),eF[54]=sj,eF[55]=sV,eF[56]=ee):ee=eF[56],eF[57]!==sj||eF[58]!==sQ||eF[59]!==eH||eF[60]!==eW?(es=(0,a.jsx)(l(),{href:"/search",className:eQ().logoLink,children:sj?(0,a.jsx)("div",{className:eQ().logoIconWrapper,children:eH}):(0,a.jsxs)(k.Y,{gap:"xs",align:"center",children:[eW,sQ&&(0,a.jsx)(N.E,{size:"xs",color:"gray",variant:"light",fw:"normal",title:"Showing time in UTC",children:"UTC"})]})}),eF[57]=sj,eF[58]=sQ,eF[59]=eH,eF[60]=eW,eF[61]=es):es=eF[61],eF[62]!==sj?(et=p()(eQ().collapseButton,{[eQ().collapseButtonCollapsed]:sj}),eF[62]=sj,eF[63]=et):et=eF[63],eF[64]!==sb?(ea=()=>sb(e8),eF[64]=sb,eF[65]=ea):ea=eF[65],eF[66]===Symbol.for("react.memo_cache_sentinel")?(er=(0,a.jsx)(H.A,{size:16}),eF[66]=er):er=eF[66],eF[67]!==et||eF[68]!==ea?(en=(0,a.jsx)(C.M,{variant:"transparent",size:"sm",className:et,title:"Collapse/Expand Navigation",onClick:ea,children:er}),eF[67]=et,eF[68]=ea,eF[69]=en):en=eF[69],eF[70]!==ee||eF[71]!==es||eF[72]!==en?(el=(0,a.jsxs)("div",{className:ee,children:[es,en]}),eF[70]=ee,eF[71]=es,eF[72]=en,eF[73]=el):el=eF[73],eF[74]!==X||eF[75]!==el?(eo=(0,a.jsx)("div",{style:X,children:el}),eF[74]=X,eF[75]=el,eF[76]=eo):eo=eF[76],eF[77]!==sv?(ei={width:sv},eF[77]=sv,eF[78]=ei):ei=eF[78],eF[79]===Symbol.for("react.memo_cache_sentinel")?(ed=(0,a.jsx)(Q.A,{size:16}),eF[79]=ed):ed=eF[79],eF[80]!==sm||eF[81]!==sh?(eh=G.VO?void 0:()=>sh(!sm),eF[80]=sm,eF[81]=sh,eF[82]=eh):eh=eF[82],eF[83]!==sm||eF[84]!==eh?(eu=(0,a.jsx)(eV,{label:"Search",icon:ed,href:"/search",isExpanded:sm,onToggle:eh}),eF[83]=sm,eF[84]=eh,eF[85]=eu):eu=eF[85],eF[86]!==sy||eF[87]!==sS||eF[88]!==sD||eF[89]!==sj||eF[90]!==eX||eF[91]!==sm||eF[92]!==e5||eF[93]!==sE||eF[94]!==s_||eF[95]!==sg?(ep=!sj&&(0,a.jsx)(S.S,{in:sm,children:(0,a.jsx)("div",{className:eQ().subMenu,children:eX?(0,a.jsx)(A.a,{variant:"dots",mx:"md",my:"xs",size:"sm"}):!G.VO&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(eZ,{placeholder:"Saved Searches",value:s_,onChange:sg,onEnterDown:()=>{sI?.current?.firstChild?.focus?.()}}),0===e5.length&&(0,a.jsx)("div",{className:eQ().emptyMessage,children:"No saved searches"}),(0,a.jsx)("div",{ref:sI,children:(0,a.jsx)(e0,{name:"saved-searches",groups:sS,renderLink:sE,forceExpandGroups:!!s_,onDragEnd:sD})}),s_&&0===sy.length?(0,a.jsxs)("div",{className:eQ().emptyMessage,children:["No results matching ",(0,a.jsx)("i",{children:s_})]}):null]})})}),eF[86]=sy,eF[87]=sS,eF[88]=sD,eF[89]=sj,eF[90]=eX,eF[91]=sm,eF[92]=e5,eF[93]=sE,eF[94]=s_,eF[95]=sg,eF[96]=ep):ep=eF[96],eF[97]===Symbol.for("react.memo_cache_sentinel")?(eb=eR.filter(e7).map(e6),eF[97]=eb):eb=eF[97],eF[98]===Symbol.for("react.memo_cache_sentinel")?(ej=(0,a.jsx)(B.A,{size:16}),eF[98]=ej):ej=eF[98],eF[99]!==su||eF[100]!==sp?(ev=()=>sp(!su),eF[99]=su,eF[100]=sp,eF[101]=ev):ev=eF[101],eF[102]!==su||eF[103]!==ev?(e_=(0,a.jsx)(eV,{label:"Dashboards",href:"/dashboards",icon:ej,isExpanded:su,onToggle:ev}),eF[102]=su,eF[103]=ev,eF[104]=e_):e_=eF[104],eF[105]!==sn||eF[106]!==sk||eF[107]!==sC||eF[108]!==sA||eF[109]!==sL||eF[110]!==sj||eF[111]!==su||eF[112]!==sa||eF[113]!==sw||eF[114]!==sl||eF[115]!==sT||eF[116]!==sN||eF[117]!==sz?(eg=!sj&&(0,a.jsx)(S.S,{in:su,children:(0,a.jsxs)("div",{className:eQ().subMenu,children:[(0,a.jsx)(eJ,{}),sa?(0,a.jsx)(A.a,{variant:"dots",mx:"md",my:"xs",size:"sm"}):!G.VO&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(eZ,{placeholder:"Saved Dashboards",value:sk,onChange:sN,onEnterDown:()=>{sM?.current?.firstChild?.focus?.()}}),(0,a.jsx)(e0,{name:"dashboards",groups:sA,renderLink:sT,forceExpandGroups:!!sk,onDragEnd:sL}),0===sn.length&&(0,a.jsx)("div",{className:eQ().emptyMessage,children:"No saved dashboards"}),sk&&0===sC.length?(0,a.jsxs)("div",{className:eQ().emptyMessage,children:["No results matching ",(0,a.jsx)("i",{children:sk})]}):null]}),(0,a.jsx)(e1,{name:"Presets",collapsed:sw,onClick:()=>sz(!sw)}),(0,a.jsxs)(S.S,{in:!sw,children:[(0,a.jsx)(l(),{href:"/clickhouse",tabIndex:0,className:p()(eQ().subMenuItem,{[eQ().subMenuItemActive]:sl.startsWith("/clickhouse")}),"data-testid":"nav-link-clickhouse-dashboard",children:"ClickHouse"}),(0,a.jsx)(l(),{href:"/services",tabIndex:0,className:p()(eQ().subMenuItem,{[eQ().subMenuItemActive]:sl.startsWith("/services")}),"data-testid":"nav-link-services-dashboard",children:"Services"}),G.TS&&(0,a.jsx)(l(),{href:"/kubernetes",tabIndex:0,className:p()(eQ().subMenuItem,{[eQ().subMenuItemActive]:sl.startsWith("/kubernetes")}),"data-testid":"nav-link-k8s-dashboard",children:"Kubernetes"})]})]})}),eF[105]=sn,eF[106]=sk,eF[107]=sC,eF[108]=sA,eF[109]=sL,eF[110]=sj,eF[111]=su,eF[112]=sa,eF[113]=sw,eF[114]=sl,eF[115]=sT,eF[116]=sN,eF[117]=sz,eF[118]=eg):eg=eF[118],eF[119]===Symbol.for("react.memo_cache_sentinel")?(ey=!G.VO&&(0,a.jsx)(eV,{label:"Team Settings",href:"/team",icon:(0,a.jsx)(Y.A,{size:16})}),eF[119]=ey):ey=eF[119],eF[120]!==ei||eF[121]!==eu||eF[122]!==ep||eF[123]!==e_||eF[124]!==eg?(eS=(0,a.jsxs)("div",{style:ei,className:eQ().navLinks,children:[eu,ep,eb,e_,eg,ey]}),eF[120]=ei,eF[121]=eu,eF[122]=ep,eF[123]=e_,eF[124]=eg,eF[125]=eS):eS=eF[125],eF[126]!==sj||eF[127]!==sv||eF[128]!==sq?(ek=!sj&&(0,a.jsxs)("div",{style:{width:sv},className:eQ().onboardingSection,children:[(0,a.jsx)(em,{onAddDataClick:sq}),(0,a.jsx)(eY,{})]}),eF[126]=sj,eF[127]=sv,eF[128]=sq,eF[129]=ek):ek=eF[129],eF[130]!==eS||eF[131]!==ek?(eC=(0,a.jsxs)(w.F,{type:"scroll",scrollbarSize:6,scrollHideDelay:100,classNames:eQ(),className:eQ().scrollContainer,children:[eS,ek]}),eF[130]=eS,eF[131]=ek,eF[132]=eC):eC=eF[132],eF[133]!==sv?(eA={width:sv},eF[133]=sv,eF[134]=eA):eA=eF[134],eF[135]!==sq?(ew=(0,a.jsx)(eG,{version:"2.17.0",onAddDataClick:sq}),eF[135]=sq,eF[136]=ew):ew=eF[136];let s$=sd?.name,sK=sd?.team?.name;return eF[137]!==sW||eF[138]!==s$||eF[139]!==sK?(eI=(0,a.jsx)(eq,{userName:s$,teamName:sK,onClickUserPreferences:sW,logoutUrl:G.VO?null:"/api/logout"}),eF[137]=sW,eF[138]=s$,eF[139]=sK,eF[140]=eI):eI=eF[140],eF[141]!==sd?(eM=sd&&sd.usageStatsEnabled&&(0,a.jsx)("img",{referrerPolicy:"no-referrer-when-downgrade",src:"https://static.scarf.sh/a.png?x-pxid=bbc99c42-7a75-4eee-9fb9-2b161fc4acd6"}),eF[141]=sd,eF[142]=eM):eM=eF[142],eF[143]!==eA||eF[144]!==ew||eF[145]!==eI||eF[146]!==eM?(eE=(0,a.jsxs)("div",{className:eQ().footer,style:eA,children:[ew,eI,eM]}),eF[143]=eA,eF[144]=ew,eF[145]=eI,eF[146]=eM,eF[147]=eE):eE=eF[147],eF[148]!==R||eF[149]!==J||eF[150]!==eo||eF[151]!==eC||eF[152]!==eE?(eD=(0,a.jsxs)("div",{className:R,style:J,children:[eo,eC,eE]}),eF[148]=R,eF[149]=J,eF[150]=eo,eF[151]=eC,eF[152]=eE,eF[153]=eD):eD=eF[153],eF[154]!==sF||eF[155]!==sP?(eT=(0,a.jsx)(ez,{opened:sF,onClose:sP}),eF[154]=sF,eF[155]=sP,eF[156]=eT):eT=eF[156],eF[157]!==$||eF[158]!==K||eF[159]!==U||eF[160]!==eD||eF[161]!==eT?(eL=(0,a.jsxs)(eB.Provider,{value:$,children:[K,U,eD,eT]}),eF[157]=$,eF[158]=K,eF[159]=U,eF[160]=eD,eF[161]=eT,eF[162]=eL):eL=eF[162],eL}function e6(e){return(0,a.jsx)(eV,{label:e.label,href:e.href,icon:e.icon,isBeta:e.isBeta},e.id)}function e7(e){return!e.cloudOnly||!G.VO}function e8(e){return!e}function e9(e){return e.state===v.Or.ALERT}function se(){let e;try{e=window.sessionStorage.getItem("hdx-login-redirect-url")}catch(e){console.error(e)}e&&(window.sessionStorage.removeItem("hdx-login-redirect-url"),h().push(e))}var ss=t(74862),st=t(54134),sa=t(42717),sr=t(9841),sn=t(84479),sl=t(80170),so=t(97702);t(86502);let si=e=>{let s,t,r,n,l=(0,d.c)(7),{children:o}=e,{actions:i}=(()=>{let e,s,t,r=(0,d.c)(43),n=(0,m.useRouter)();r[0]===Symbol.for("react.memo_cache_sentinel")?(e={size:16},r[0]=e):e=r[0];let l=(0,ef.GV)(e),{data:o}=(0,ex.PY)(),{data:i}=q.Ay.useDashboards();if(r[1]!==i||r[2]!==o||r[3]!==l||r[4]!==n){let e,t,c,d,m,h,u,p,x,f,b,j,v,_,g,y,S,k,N,C,A,w,z,I,M=i??[];s=[],(o??[]).forEach(e=>{s.push({id:e.id,group:"Saved searches",leftSection:(0,a.jsx)(st.A,{size:16}),label:e.name,keywords:["search","log","saved"],onClick:()=>{n.push(`/search/${e.id}`)}})}),M.forEach(e=>{s.push({id:e.id,group:"Dashboards",leftSection:(0,a.jsx)(sa.A,{size:16}),label:e.name,keywords:["dashboard"],onClick:()=>{n.push(`/dashboards/${e.id}`)}})}),r[6]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)(st.A,{size:16}),r[6]=e):e=r[6],r[7]===Symbol.for("react.memo_cache_sentinel")?(t=["log","events","logs"],r[7]=t):t=r[7],r[8]!==n?(c={id:"search",group:"Menu",leftSection:e,label:"Search",description:"Start a new search",keywords:t,onClick:()=>{n.push("/search")}},r[8]=n,r[9]=c):c=r[9],r[10]===Symbol.for("react.memo_cache_sentinel")?(d=(0,a.jsx)(sr.A,{size:16}),r[10]=d):d=r[10],r[11]===Symbol.for("react.memo_cache_sentinel")?(m=["graph","metrics"],r[11]=m):m=r[11],r[12]!==n?(h={id:"chart-explorer",group:"Menu",leftSection:d,label:"Chart Explorer",description:"Explore your data",keywords:m,onClick:()=>{n.push("/chart")}},r[12]=n,r[13]=h):h=r[13],r[14]===Symbol.for("react.memo_cache_sentinel")?(u=(0,a.jsx)(sn.A,{size:16}),r[14]=u):u=r[14],r[15]===Symbol.for("react.memo_cache_sentinel")?(p=["graph"],r[15]=p):p=r[15],r[16]!==n?(x={id:"new-dashboard",group:"Menu",leftSection:u,label:"New Dashboard",description:"Create a new dashboard",keywords:p,onClick:()=>{n.push("/dashboards")}},r[16]=n,r[17]=x):x=r[17],r[18]===Symbol.for("react.memo_cache_sentinel")?(f=(0,a.jsx)(D.A,{size:16}),r[18]=f):f=r[18],r[19]===Symbol.for("react.memo_cache_sentinel")?(b=["browser","web"],r[19]=b):b=r[19],r[20]!==n?(j={id:"sessions",group:"Menu",leftSection:f,label:"Client Sessions",description:"View client sessions",keywords:b,onClick:()=>{n.push("/sessions")}},r[20]=n,r[21]=j):j=r[21],r[22]===Symbol.for("react.memo_cache_sentinel")?(v=(0,a.jsx)(E.A,{size:16}),r[22]=v):v=r[22],r[23]!==n?(_={id:"alerts",group:"Menu",leftSection:v,label:"Alerts",description:"View and manage alerts",onClick:()=>{n.push("/alerts")}},r[23]=n,r[24]=_):_=r[24],r[25]===Symbol.for("react.memo_cache_sentinel")?(g=(0,a.jsx)(sl.A,{size:16}),r[25]=g):g=r[25],r[26]!==n?(y={id:"service-health",group:"Menu",label:"Service Health",leftSection:g,description:"HTTP, Database and Infrastructure metrics",onClick:()=>{n.push("/services")}},r[26]=n,r[27]=y):y=r[27],r[28]===Symbol.for("react.memo_cache_sentinel")?(S=(0,a.jsx)(Y.A,{size:16}),r[28]=S):S=r[28],r[29]!==n?(k={id:"team-settings",group:"Menu",leftSection:S,label:"Team Settings",onClick:()=>{n.push("/team")}},r[29]=n,r[30]=k):k=r[30],r[31]===Symbol.for("react.memo_cache_sentinel")?(N=(0,a.jsx)(so.A,{size:16}),r[31]=N):N=r[31],r[32]===Symbol.for("react.memo_cache_sentinel")?(C=["help","docs"],r[32]=C):C=r[32],r[33]!==n?(A={id:"documentation",group:"Menu",leftSection:N,label:"Documentation",keywords:C,onClick:()=>{n.push("https://clickhouse.com/docs/use-cases/observability/clickstack")}},r[33]=n,r[34]=A):A=r[34],r[35]===Symbol.for("react.memo_cache_sentinel")?(w=["account","profile"],r[35]=w):w=r[35],r[36]!==n?(z=()=>{n.push("https://hyperdx.io/register")},r[36]=n,r[37]=z):z=r[37],r[38]!==l||r[39]!==z?(I={id:"cloud",group:"Menu",leftSection:l,label:"HyperDX Cloud",description:"Ready to use HyperDX Cloud? Get started for free.",keywords:w,onClick:z},r[38]=l,r[39]=z,r[40]=I):I=r[40],s.push(c,h,x,j,_,y,k,A,I),r[1]=i,r[2]=o,r[3]=l,r[4]=n,r[5]=s}else s=r[5];let c=s;return r[41]!==c?(t={actions:c},r[41]=c,r[42]=t):t=r[42],t})();return l[0]===Symbol.for("react.memo_cache_sentinel")?(s={leftSection:(0,a.jsx)(F.A,{size:16}),placeholder:"Search"},l[0]=s):s=l[0],l[1]===Symbol.for("react.memo_cache_sentinel")?(t=[],l[1]=t):t=l[1],l[2]!==i?(r=(0,a.jsx)(ss.L,{shortcut:"mod + K",searchProps:s,nothingFound:"Nothing found",zIndex:200001,tagsToIgnore:t,highlightQuery:!0,actions:i,limit:7,scrollable:!0}),l[2]=i,l[3]=r):r=l[3],l[4]!==o||l[5]!==r?(n=(0,a.jsxs)("div",{className:"notranslate",translate:"no",children:[o,r]}),l[4]=o,l[5]=r,l[6]=n):n=l[6],n},sc=e=>(0,a.jsx)(si,{children:(0,a.jsxs)("div",{className:G.Ju?"app-layout-with-banner":"app-layout",children:[G.Ju&&(0,a.jsx)(o.a,{bg:"var(--color-text-primary)",children:(0,a.jsx)(i.o,{children:(0,a.jsxs)(c.E,{py:"xs",size:"sm",c:"var(--color-text-inverted)",children:["This is not recommended for production use and is lacking core ClickStack features such as alerts and saved searches. For a proper experience, visit the"," ",(0,a.jsx)("strong",{children:(0,a.jsx)(l(),{href:"https://clickhouse.com/docs/use-cases/observability/clickstack/getting-started",target:"_blank",rel:"noopener norefe\x03er",children:"ClickStack Docs"})})]})})}),(0,a.jsxs)("div",{className:"d-flex",style:{height:"100%",overflow:"hidden"},children:[(0,a.jsx)(e4,{}),(0,a.jsx)("div",{className:"w-100 min-w-0",style:{minWidth:0,overflow:"auto"},children:e})]})]})})},87095:(e,s,t)=>{"use strict";t.d(s,{CI:()=>x,PY:()=>c,V3:()=>u,c_:()=>b,rs:()=>m});var a=t(75155),r=t(12482),n=t(93251),l=t(16932),o=t(6876),i=t(98142);function c(){let e,s=(0,a.c)(1);return s[0]===Symbol.for("react.memo_cache_sentinel")?(e={queryKey:["saved-search"],queryFn:d},s[0]=e):e=s[0],(0,r.I)(e)}async function d(){return i.VO?[]:(0,o.Q5)("saved-search").json()}function m(e,s){let t,n,l,o,i=(0,a.c)(8),{id:c}=e;i[0]!==s?(t=void 0===s?{}:s,i[0]=s,i[1]=t):t=i[1];let d=t;return i[2]===Symbol.for("react.memo_cache_sentinel")?(n=["saved-search"],i[2]=n):n=i[2],i[3]!==c?(l=e=>e.find(e=>e.id===c),i[3]=c,i[4]=l):l=i[4],i[5]!==d||i[6]!==l?(o={queryKey:n,queryFn:h,select:l,...d},i[5]=d,i[6]=l,i[7]=o):o=i[7],(0,r.I)(o)}function h(){return i.VO?[]:(0,o.Q5)("saved-search").json()}function u(){let e,s=(0,a.c)(2),t=(0,n.jE)();return s[0]!==t?(e={mutationFn:p,onSuccess:()=>{t.invalidateQueries({queryKey:["saved-search"]})}},s[0]=t,s[1]=e):e=s[1],(0,l.n)(e)}function p(e){return(0,o.Q5)("saved-search",{method:"POST",json:e}).json()}function x(){let e,s=(0,a.c)(2),t=(0,n.jE)();return s[0]!==t?(e={mutationFn:f,onSuccess:()=>{t.invalidateQueries({queryKey:["saved-search"]})}},s[0]=t,s[1]=e):e=s[1],(0,l.n)(e)}function f(e){return(0,o.Q5)(`saved-search/${e.id}`,{method:"PATCH",json:e}).json()}function b(){let e,s=(0,a.c)(2),t=(0,n.jE)();return s[0]!==t?(e={mutationFn:j,onSuccess:()=>{t.invalidateQueries({queryKey:["saved-search"]})}},s[0]=t,s[1]=e):e=s[1],(0,l.n)(e)}function j(e){return(0,o.Q5)(`saved-search/${e}`,{method:"DELETE"}).json()}},97344:(e,s,t)=>{"use strict";t.d(s,{L9:()=>b,MZ:()=>v,mG:()=>x,pc:()=>g,vY:()=>u});var a=t(75155),r=t(55729),n=t(41038),l=t(60665),o=t(93251),i=t(16932),c=t(12482),d=t(92917),m=t(6876),h=t(98142);function u(){let e,s=(0,a.c)(2),t=(0,o.jE)();return s[0]!==t?(e={mutationFn:p,onSuccess:()=>{t.invalidateQueries({queryKey:["dashboards"]})}},s[0]=t,s[1]=e):e=s[1],(0,i.n)(e)}async function p(e){await (0,m.Q5)(`dashboards/${e.id}`,{method:"PATCH",json:e})}function x(){let e,s=(0,a.c)(2),t=(0,o.jE)();return s[0]!==t?(e={mutationFn:f,onSuccess:()=>{t.invalidateQueries({queryKey:["dashboards"]})}},s[0]=t,s[1]=e):e=s[1],(0,i.n)(e)}async function f(e){return(0,m.Q5)("dashboards",{method:"POST",json:e}).json()}function b(){let e,s=(0,a.c)(1);return s[0]===Symbol.for("react.memo_cache_sentinel")?(e={queryKey:["dashboards"],queryFn:j},s[0]=e):e=s[0],(0,c.I)(e)}async function j(){return h.VO?[]:(0,m.Q5)("dashboards").json()}function v(e){let s,t,o,i,m,h,p,x,f,b=(0,a.c)(23),{dashboardId:j,presetConfig:v}=e;b[0]!==v?(s=v??{id:"",name:"My New Dashboard",tiles:[],tags:[]},b[0]=v,b[1]=s):s=b[1];let g=s;b[2]===Symbol.for("react.memo_cache_sentinel")?(t=(0,n.os)(),b[2]=t):t=b[2];let[y,S]=(0,n.ZA)("dashboard",t),k=u();b[3]===Symbol.for("react.memo_cache_sentinel")?(o=["dashboards"],b[3]=o):o=b[3],b[4]!==j?(i=e=>e.find(e=>e.id===j),b[4]=j,b[5]=i):i=b[5];let N=null!=j;b[6]!==i||b[7]!==N?(m={queryKey:o,queryFn:_,select:i,enabled:N},b[6]=i,b[7]=N,b[8]=m):m=b[8];let{data:C,isFetching:A}=(0,c.I)(m),[w,z]=(0,r.useState)(!1),I=null==j;e:{if(I){h=y??g;break e}h=C}let M=h;b[9]!==I||b[10]!==S||b[11]!==k?(p=(e,s,t)=>{if(!I)return z(!0),k.mutate(e,{onSuccess:()=>{z(!1),s?.()},onError:e=>{z(!1),l.$e.show({color:"red",title:"Unable to save dashboard",message:e.message.slice(0,100),autoClose:5e3}),t?.()}});S(e),s?.()},b[9]=I,b[10]=S,b[11]=k,b[12]=p):p=b[12];let E=p;b[13]!==M||b[14]!==j?(x=null!=j?j:(0,d.s5)(`${JSON.stringify(M)}`),b[13]=M,b[14]=j,b[15]=x):x=b[15];let D=x;return b[16]!==M||b[17]!==D||b[18]!==A||b[19]!==I||b[20]!==w||b[21]!==E?(f={dashboard:M,setDashboard:E,dashboardHash:D,isLocalDashboard:I,isFetching:A,isSetting:w},b[16]=M,b[17]=D,b[18]=A,b[19]=I,b[20]=w,b[21]=E,b[22]=f):f=b[22],f}function _(){return(0,m.Q5)("dashboards").json()}function g(){let e,s=(0,a.c)(2),t=(0,o.jE)();return s[0]!==t?(e={mutationFn:y,onSuccess:()=>{t.invalidateQueries({queryKey:["dashboards"]})}},s[0]=t,s[1]=e):e=s[1],(0,i.n)(e)}function y(e){return(0,m.Q5)(`dashboards/${e}`,{method:"DELETE"}).json()}}}]); \ No newline at end of file diff --git a/out/_next/static/chunks/6514-b68c4b7e0ada11d1.js b/out/_next/static/chunks/6514-b68c4b7e0ada11d1.js new file mode 100644 index 0000000..9ae70e2 --- /dev/null +++ b/out/_next/static/chunks/6514-b68c4b7e0ada11d1.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6514],{43524:e=>{e.exports={navGhost:"AppNav_navGhost__eHfjO",nav:"AppNav_nav__aQ9CO",navFixed:"AppNav_navFixed__ZeKhY",navCollapsed:"AppNav_navCollapsed__lycT3",navLinks:"AppNav_navLinks__3ZFJ_",navItem:"AppNav_navItem__qtSLL",navItemIcon:"AppNav_navItemIcon__y86wX",header:"AppNav_header__2JQvX",headerExpanded:"AppNav_headerExpanded__yEAuu",headerCollapsed:"AppNav_headerCollapsed__qMGd8",logoLink:"AppNav_logoLink__FMsYw",logoIconWrapper:"AppNav_logoIconWrapper__OelwF",collapseButton:"AppNav_collapseButton__FDYcm",collapseButtonCollapsed:"AppNav_collapseButtonCollapsed__1j3qp",scrollContainer:"AppNav_scrollContainer__UQQtv",footer:"AppNav_footer__dHa_L",navItemActive:"AppNav_navItemActive__GN7le",navItemContent:"AppNav_navItemContent__YlStp",navItemBadge:"AppNav_navItemBadge__6VqCa",navItemToggle:"AppNav_navItemToggle__tfzhc",subMenu:"AppNav_subMenu__sdt7n",subMenuItem:"AppNav_subMenuItem___6SwX",subMenuItemActive:"AppNav_subMenuItemActive__jQhrk",groupLabel:"AppNav_groupLabel__rOCDt",groupDragOver:"AppNav_groupDragOver__7ZKjA",searchInput:"AppNav_searchInput__tW1sl",shortcutHint:"AppNav_shortcutHint__McknQ",shortcutHintCtrl:"AppNav_shortcutHintCtrl__nSE1_",emptyMessage:"AppNav_emptyMessage__s2J5J",userMenu:"AppNav_userMenu__7x8UA",userMenuCollapsed:"AppNav_userMenuCollapsed__YtJQm",userMenuInfo:"AppNav_userMenuInfo__GUaPj",userMenuName:"AppNav_userMenuName__7bXub",userMenuTeam:"AppNav_userMenuTeam__qL_0p",helpButton:"AppNav_helpButton__i5B5h",helpButtonCollapsed:"AppNav_helpButtonCollapsed__dXx2R",onboardingSection:"AppNav_onboardingSection__eOrci",scrollbar:"AppNav_scrollbar__YjKyG",thumb:"AppNav_thumb__IzI2H"}},56514:(e,s,t)=>{"use strict";t.d(s,{D:()=>sd});var a=t(6029),r=t(75155),n=t(55729),l=t(82203),o=t.n(l),i=t(3635),c=t(53061),d=t(43517),m=t(25062),h=t(74011),u=t(81278),p=t.n(u),x=t(75828),f=t.n(x),b=t(1885),j=t(6065),v=t(16162),_=t.n(v),g=t(82641),y=t(20158),k=t(96061),S=t(22599),N=t(43085),C=t(76013),A=t(94720),w=t(53993),z=t(22175),I=t(78341),M=t(71991),E=t(87104),D=t(86705),T=t(85318),L=t(16120),F=t(41279),O=t(70114),P=t(23474),W=t(53780),Q=t(56447),B=t(45519),H=t(46661),Y=t(95316),q=t(6876),G=t(98142),$=t(97344),V=t(27166),K=t(36517),U=t(74805),R=t(65234);function J(e){let s,t,l,o,i,c=(0,r.c)(12),{text:d,className:h,children:u}=e,[p,x]=(0,n.useState)(!1);return c[0]===Symbol.for("react.memo_cache_sentinel")?(s=()=>{x(!0),setTimeout(()=>x(!1),2e3)},c[0]=s):s=c[0],c[1]!==h?(t=f()("text-decoration-none",h),c[1]=h,c[2]=t):t=c[2],c[3]!==u||c[4]!==p?(l=u({isCopied:p}),c[3]=u,c[4]=p,c[5]=l):l=c[5],c[6]!==t||c[7]!==l?(o=(0,a.jsx)(m.$,{variant:"secondary",p:0,className:t,size:"xs",fullWidth:!0,children:l}),c[6]=t,c[7]=l,c[8]=o):o=c[8],c[9]!==o||c[10]!==d?(i=(0,a.jsx)(R.CopyToClipboard,{text:d,onCopy:s,children:o}),c[9]=o,c[10]=d,c[11]=i):i=c[11],i}function Z(e){let s,t,n=(0,r.c)(6),{label:l,value:o}=e,c=void 0===l?"":l;return n[0]!==c||n[1]!==o?(s=e=>{let{isCopied:s}=e;return(0,a.jsxs)("div",{className:f()("d-flex w-100 py-2 px-2 gap-2 rounded align-items-center justify-content-between cursor-pointer",{"text-success":s}),children:[(0,a.jsxs)("div",{className:"fs-7 d-flex text-truncate align-items-center",children:[c,(0,a.jsx)("pre",{className:"m-0 user-select-all d-inline text-truncate fs-7 lh-1",children:o})]}),(0,a.jsxs)(i.Y,{gap:2,wrap:"nowrap",className:f()("fs-7 text-end"),children:[s?(0,a.jsx)(K.A,{size:14}):(0,a.jsx)(U.A,{size:14}),s?"Copied!":"Copy"]})]})},n[0]=c,n[1]=o,n[2]=s):s=n[2],n[3]!==s||n[4]!==o?(t=(0,a.jsx)(J,{text:o,className:"d-flex mx-auto p-0 w-100",children:s}),n[3]=s,n[4]=o,n[5]=t):t=n[5],t}function X(e){let s,t,n,l,o,i,c,d,h,u,p,x,f,b,j,v,_,g,y=(0,r.c)(25),{show:k,onHide:S}=e,{data:N}=q.Ay.useTeam();return y[0]!==N?(s=null!=N&&(0,a.jsx)("div",{className:"mb-4",children:(0,a.jsx)(Z,{label:(0,a.jsxs)("span",{className:"text-muted me-2",children:["Your Ingestion API Key:"," "]}),value:N.apiKey})}),y[0]=N,y[1]=s):s=y[1],y[2]===Symbol.for("react.memo_cache_sentinel")?(t=(0,a.jsx)("div",{className:"fs-7 mb-4",children:"Click on a link below to view installation instructions for your application."}),n=(0,a.jsx)("div",{className:"fs-6 mb-2",children:"Backend"}),y[2]=t,y[3]=n):(t=y[2],n=y[3]),y[4]===Symbol.for("react.memo_cache_sentinel")?(l=(0,a.jsxs)("div",{className:"mb-2",children:[(0,a.jsx)("a",{href:"https://clickhouse.com/docs/use-cases/observability/clickstack/sdks/nodejs",target:"_blank",rel:"noreferrer",className:"text-link",children:"Node.js"}),(0,a.jsx)("span",{className:"ms-2 text-muted",children:"(Logs + Traces)"})]}),y[4]=l):l=y[4],y[5]===Symbol.for("react.memo_cache_sentinel")?(o=(0,a.jsxs)("div",{className:"mb-2",children:[(0,a.jsx)("a",{href:"https://clickhouse.com/docs/use-cases/observability/clickstack/sdks/golang",target:"_blank",rel:"noreferrer",className:"text-link",children:"Go"}),(0,a.jsx)("span",{className:"ms-2 text-muted",children:"(Logs + Traces)"})]}),y[5]=o):o=y[5],y[6]===Symbol.for("react.memo_cache_sentinel")?(i=(0,a.jsxs)("div",{className:"mb-2",children:[(0,a.jsx)("a",{href:"https://clickhouse.com/docs/use-cases/observability/clickstack/sdks/python",target:"_blank",rel:"noreferrer",className:"text-link",children:"Python"}),(0,a.jsx)("span",{className:"ms-2 text-muted",children:"(Logs + Traces)"})]}),y[6]=i):i=y[6],y[7]===Symbol.for("react.memo_cache_sentinel")?(c=(0,a.jsxs)("div",{className:"mb-2",children:[(0,a.jsx)("a",{href:"https://clickhouse.com/docs/use-cases/observability/clickstack/sdks/java",target:"_blank",rel:"noreferrer",className:"text-link",children:"Java"}),(0,a.jsx)("span",{className:"ms-2 text-muted",children:"(Logs + Traces)"})]}),y[7]=c):c=y[7],y[8]===Symbol.for("react.memo_cache_sentinel")?(d=(0,a.jsxs)("div",{className:"mb-2",children:[(0,a.jsx)("a",{href:"https://clickhouse.com/docs/use-cases/observability/clickstack/sdks/elixir",target:"_blank",rel:"noreferrer",className:"text-link",children:"Elixir"}),(0,a.jsx)("span",{className:"ms-2 text-muted",children:"(Logs)"})]}),y[8]=d):d=y[8],y[9]===Symbol.for("react.memo_cache_sentinel")?(u=(0,a.jsxs)("div",{className:"mb-2",children:[(0,a.jsx)("a",{href:"https://clickhouse.com/docs/use-cases/observability/clickstack/sdks/ruby-on-rails",target:"_blank",rel:"noreferrer",className:"text-link",children:"Ruby on Rails"}),(0,a.jsx)("span",{className:"ms-2 text-muted",children:"(Traces)"})]}),h=(0,a.jsx)("div",{className:"fs-6 mb-2 mt-4",children:"Platform"}),y[9]=h,y[10]=u):(h=y[9],u=y[10]),y[11]===Symbol.for("react.memo_cache_sentinel")?(p=(0,a.jsxs)("div",{className:"mb-2",children:[(0,a.jsx)("a",{href:"https://clickhouse.com/docs/use-cases/observability/clickstack/ingesting-data/kubernetes",target:"_blank",rel:"noreferrer",className:"text-link",children:"Kubernetes"}),(0,a.jsx)("span",{className:"ms-2 text-muted",children:"(Logs + Metrics)"})]}),x=(0,a.jsx)("div",{className:"fs-6 mb-2 mt-4",children:"Browser"}),y[11]=p,y[12]=x):(p=y[11],x=y[12]),y[13]===Symbol.for("react.memo_cache_sentinel")?(f=(0,a.jsxs)("div",{className:"mb-2",children:[(0,a.jsx)("a",{href:"https://clickhouse.com/docs/use-cases/observability/clickstack/sdks/browser",target:"_blank",rel:"noreferrer",className:"text-link",children:"JavaScript/TypeScript"}),(0,a.jsx)("span",{className:"ms-2 text-muted",children:"(Logs + Traces)"})]}),b=(0,a.jsx)("div",{className:"fs-6 mb-2 mt-4",children:"Data Collector"}),y[13]=f,y[14]=b):(f=y[13],b=y[14]),y[15]===Symbol.for("react.memo_cache_sentinel")?(j=(0,a.jsxs)("div",{className:"mb-2",children:[(0,a.jsx)("a",{href:"https://clickhouse.com/docs/use-cases/observability/clickstack/ingesting-data/opentelemetry#sending-otel-data",target:"_blank",rel:"noreferrer",className:"text-link",children:"OpenTelemetry"}),(0,a.jsx)("span",{className:"ms-2 text-muted",children:"(Logs + Traces)"})]}),y[15]=j):j=y[15],y[16]!==S?(v=(0,a.jsx)("div",{className:"mt-4",children:(0,a.jsx)(m.$,{variant:"secondary",onClick:()=>S(),children:"Cancel"})}),y[16]=S,y[17]=v):v=y[17],y[18]!==s||y[19]!==v?(_=(0,a.jsxs)("div",{className:"inter",children:[s,t,n,l,o,i,c,d,u,h,p,x,f,b,j,v]}),y[18]=s,y[19]=v,y[20]=_):_=y[20],y[21]!==S||y[22]!==k||y[23]!==_?(g=(0,a.jsx)(V.a,{opened:k,onClose:S,title:"Start Sending Telemetry",size:"lg",centered:!0,children:_}),y[21]=S,y[22]=k,y[23]=_,y[24]=g):g=y[24],g}var ee=t(34834),es=t(62801),et=t(8737),ea=t(58333),er=t(90515),en=t(88992),el=t(91021),eo=t(93108),ei=t(81973),ec=t(92917);let ed=Date.now(),em=e=>{let s,t,n,l,o,c,m,h,u,p,x,f,b,j,v,_,g,y,k,A,w,z,I,M=(0,r.c)(64),{onAddDataClick:E}=e,[D,T]=(0,ec.Mj)("onboardingChecklistCollapsed",!1),{data:L,isLoading:F}=q.Ay.useTeam(),{data:O,isLoading:W}=(0,eo.ZY)(),{data:Q,isLoading:B}=(0,ei.oE)();e:{let e,t;if(!L?.createdAt){s=!1;break e}M[0]===Symbol.for("react.memo_cache_sentinel")?(e=new Date(ed-2592e5),M[0]=e):e=M[0];let a=e;M[1]!==L.createdAt?(t=new Date(L.createdAt),M[1]=L.createdAt,M[2]=t):t=M[2],s=t>a}let H=s,Y=!1===F&&H,G=O?.[0];M[3]!==G?.id||M[4]!==Q?(t=Q?.filter(e=>e.connection===G?.id),M[3]=G?.id,M[4]=Q,M[5]=t):t=M[5];let $=t;M[6]===Symbol.for("react.memo_cache_sentinel")?(n={databaseName:"system",tableName:"tables"},M[6]=n):n=M[6],M[7]!==$?(l=$??[],M[7]=$,M[8]=l):l=M[8],M[9]!==l?(o=l.map(eh),M[9]=l,M[10]=o):o=M[10];let V=G?.id??"";M[11]!==o||M[12]!==V?(c={select:"sum(total_rows) as total_rows",from:n,where:"",filtersLogicalOperator:"OR",filters:o,connection:V},M[11]=o,M[12]=V,M[13]=c):c=M[13];let K=c;M[14]!==Y?(m={enabled:Y},M[14]=Y,M[15]=m):m=M[15];let{data:U,isLoading:R}=(0,el.HD)(K,m),J=U?.data?.[0]?.total_rows>0,Z=O&&O.length>0,X=Q&&Q.length>0,et=Z??!1,er=Z?void 0:"/team";M[16]!==W||M[17]!==er||M[18]!==et?(h={id:"connection",title:"Connect to ClickHouse",description:"Set up your database connection",isComplete:et,isLoading:W,href:er},M[16]=W,M[17]=er,M[18]=et,M[19]=h):h=M[19];let en=X??!1,em=X?void 0:"/team";M[20]!==B||M[21]!==en||M[22]!==em?(u={id:"sources",title:"Create Data Sources",description:"Configure where your data comes from",isComplete:en,isLoading:B,href:em},M[20]=B,M[21]=en,M[22]=em,M[23]=u):u=M[23];let ex=J?void 0:E;M[24]!==J||M[25]!==R||M[26]!==ex?(p={id:"data",title:"Add Data",description:"Start sending logs, metrics, or traces",isComplete:J,isLoading:R,onClick:ex},M[24]=J,M[25]=R,M[26]=ex,M[27]=p):p=M[27],M[28]!==h||M[29]!==u||M[30]!==p?(x=[h,u,p],M[28]=h,M[29]=u,M[30]=p,M[31]=x):x=M[31];let ef=x;M[32]!==ef?(f=ef.filter(eu),M[32]=ef,M[33]=f):f=M[33];let eb=f.length,ej=eb===ef.length;if(!Y)return null;let ev=D?0:"xs";M[34]===Symbol.for("react.memo_cache_sentinel")?(b=(0,a.jsx)(d.E,{size:"sm",fw:"bold",children:"Get Started"}),M[34]=b):b=M[34];let e_=ej?"green":"blue";M[35]!==eb||M[36]!==ef.length||M[37]!==e_?(j=(0,a.jsxs)(i.Y,{gap:"xs",align:"center",children:[b,(0,a.jsxs)(N.E,{size:"xs",color:e_,variant:"light",children:[eb,"/",ef.length]})]}),M[35]=eb,M[36]=ef.length,M[37]=e_,M[38]=j):j=M[38],M[39]!==D||M[40]!==T?(v=()=>T(!D),M[39]=D,M[40]=T,M[41]=v):v=M[41],M[42]!==D?(_=D?(0,a.jsx)(P.A,{size:12}):(0,a.jsx)(ea.A,{size:12}),M[42]=D,M[43]=_):_=M[43],M[44]!==v||M[45]!==_?(g=(0,a.jsx)(C.M,{variant:"subtle",size:"sm",onClick:v,children:_}),M[44]=v,M[45]=_,M[46]=g):g=M[46],M[47]!==ev||M[48]!==j||M[49]!==g?(y=(0,a.jsxs)(i.Y,{justify:"space-between",align:"center",mb:ev,children:[j,g]}),M[47]=ev,M[48]=j,M[49]=g,M[50]=y):y=M[50];let eg=!D;return M[51]!==ef?(k=ef.map(ep),M[51]=ef,M[52]=k):k=M[52],M[53]!==ej?(A=ej&&(0,a.jsx)(i.Y,{justify:"center",mt:"xs",p:"xs",children:(0,a.jsx)(d.E,{size:"sm",c:"green",fw:"bold",children:"\uD83C\uDF89 Great job! You're all set up."})}),M[53]=ej,M[54]=A):A=M[54],M[55]!==k||M[56]!==A?(w=(0,a.jsxs)(ee.B,{gap:"xs",children:[k,A]}),M[55]=k,M[56]=A,M[57]=w):w=M[57],M[58]!==eg||M[59]!==w?(z=(0,a.jsx)(S.S,{in:eg,children:w}),M[58]=eg,M[59]=w,M[60]=z):z=M[60],M[61]!==y||M[62]!==z?(I=(0,a.jsxs)(es.Z,{withBorder:!0,p:"xs",mb:"sm",radius:"md",children:[y,z]}),M[61]=y,M[62]=z,M[63]=I):I=M[63],I};function eh(e){return{type:"sql",condition:`table = '${e.from.tableName}' AND database = '${e.from.databaseName}'`}}function eu(e){return e.isComplete}function ep(e,s){let t=(0,a.jsxs)(i.Y,{gap:"sm",align:"center",w:"100%",children:[(0,a.jsx)("div",{style:{width:20,height:20,borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",border:e.isComplete?"1px solid var(--color-text-brand)":"1px solid var(--color-border)",backgroundColor:e.isComplete?"transparent":"var(--color-bg-muted)",color:e.isComplete?"var(--color-text-brand)":"var(--color-text)",flexShrink:0},children:e.isLoading?(0,a.jsx)(A.a,{size:"xs",color:"gray"}):e.isComplete?(0,a.jsx)(er.A,{size:16,style:{fontSize:12,fontWeight:"bold",paddingTop:1}}):(0,a.jsx)(d.E,{size:"xs",fw:"bold",children:s+1})}),(0,a.jsxs)("div",{style:{flex:1},children:[(0,a.jsx)(d.E,{size:"sm",fw:"500",style:{textDecoration:e.isComplete?"line-through":"none",opacity:e.isComplete?.8:1},children:e.title}),(0,a.jsx)(d.E,{size:"xs",c:"dimmed",children:e.description})]}),!e.isComplete&&(e.href||e.onClick)&&(0,a.jsx)(en.A,{size:12,style:{color:"var(--color-text-muted)"}})]});return e.href&&!e.isComplete?(0,a.jsx)(o(),{href:e.href,style:{textDecoration:"none"},children:(0,a.jsx)(et.N,{w:"100%",py:"xs",style:{borderRadius:6,cursor:"pointer",":hover":{backgroundColor:"var(--color-bg-muted)"}},children:t})},e.id):e.onClick&&!e.isComplete?(0,a.jsx)(et.N,{w:"100%",py:"xs",onClick:e.onClick,style:{borderRadius:6,cursor:"pointer",":hover":{backgroundColor:"var(--color-bg-hover)"}},children:t},e.id):(0,a.jsx)("div",{style:{},children:t},e.id)}var ex=t(87095),ef=t(36600),eb=t(92789),ej=t(38206),ev=t(87989),e_=t(63085),eg=t(97787),ey=t(23994),ek=t(31071),eS=t(58202),eN=t(57820);let eC=[{label:"System",value:"system"},{label:"Light",value:"light"},{label:"Dark",value:"dark"}],eA=Object.values(eS.Zj).map(e=>({label:e.displayName,value:e.name})),ew=e=>{let s,t,n,l,o,c,m=(0,r.c)(12),{label:h,description:u,children:p}=e;return m[0]===Symbol.for("react.memo_cache_sentinel")?(s={flex:1},m[0]=s):s=m[0],m[1]!==u?(t=u&&(0,a.jsx)(d.E,{size:"xs",mt:2,children:u}),m[1]=u,m[2]=t):t=m[2],m[3]!==h||m[4]!==t?(n=(0,a.jsxs)("div",{style:s,children:[h,t]}),m[3]=h,m[4]=t,m[5]=n):n=m[5],m[6]===Symbol.for("react.memo_cache_sentinel")?(l={flex:.8},m[6]=l):l=m[6],m[7]!==p?(o=(0,a.jsx)("div",{style:l,children:p}),m[7]=p,m[8]=o):o=m[8],m[9]!==n||m[10]!==o?(c=(0,a.jsxs)(i.Y,{align:"center",justify:"space-between",children:[n,o]}),m[9]=n,m[10]=o,m[11]=c):c=m[11],c},ez=e=>{let s,t,n,l,o,c,m,h,u,p,x,f,b,j,v=(0,r.c)(37),{opened:_,onClose:g}=e,{userPreferences:y,setUserPreference:k}=(0,eN.HW)(),{themeName:S,setTheme:C,isDev:A}=(0,ef.o3)();return v[0]===Symbol.for("react.memo_cache_sentinel")?(s=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{children:"Preferences"}),(0,a.jsx)(d.E,{size:"xs",mt:6,children:"Customize your experience"})]}),v[0]=s):s=v[0],v[1]===Symbol.for("react.memo_cache_sentinel")?(t=(0,a.jsx)(eb.c,{label:"Date and Time",labelPosition:"left"}),v[1]=t):t=v[1],v[2]!==k?(n=e=>e&&k({timeFormat:e}),v[2]=k,v[3]=n):n=v[3],v[4]===Symbol.for("react.memo_cache_sentinel")?(l=["12h","24h"],v[4]=l):l=v[4],v[5]!==n||v[6]!==y.timeFormat?(o=(0,a.jsx)(ew,{label:"Time format",children:(0,a.jsx)(ej.l,{value:y.timeFormat,onChange:n,data:l,allowDeselect:!1})}),v[5]=n,v[6]=y.timeFormat,v[7]=o):o=v[7],v[8]!==k?(c=e=>k({isUTC:e.currentTarget.checked}),v[8]=k,v[9]=c):c=v[9],v[10]!==c||v[11]!==y.isUTC?(m=(0,a.jsx)(ew,{label:"Use UTC time",children:(0,a.jsx)(ev.d,{size:"md",onLabel:"UTC",checked:y.isUTC,onChange:c})}),v[10]=c,v[11]=y.isUTC,v[12]=m):m=v[12],v[13]===Symbol.for("react.memo_cache_sentinel")?(h=(0,a.jsx)(eb.c,{label:(0,a.jsxs)(i.Y,{align:"center",gap:"xs",children:["Appearance",(0,a.jsx)(N.E,{variant:"light",fw:"normal",size:"xs",children:"Experimental"})]}),labelPosition:"left",mt:"sm"}),v[13]=h):h=v[13],v[14]!==k?(u=e=>e&&k({colorMode:e}),v[14]=k,v[15]=u):u=v[15],v[16]!==u||v[17]!==y.colorMode?(p=(0,a.jsx)(ew,{label:"Color Mode",description:"Use system setting, or choose light or dark",children:(0,a.jsx)(ej.l,{value:y.colorMode,onChange:u,data:eC,allowDeselect:!1})}),v[16]=u,v[17]=y.colorMode,v[18]=p):p=v[18],v[19]!==A||v[20]!==C||v[21]!==S?(x=A&&(0,a.jsx)(ew,{label:(0,a.jsxs)(i.Y,{gap:"xs",children:["Brand Theme",(0,a.jsx)(e_.m,{label:"Only available in local/dev mode. Changes logo, colors, and branding.",multiline:!0,w:220,children:(0,a.jsx)(N.E,{variant:"light",color:"violet",fw:"normal",size:"xs",leftSection:(0,a.jsx)(ey.A,{size:10}),children:"Dev Only"})})]}),description:"Switch between HyperDX and ClickStack branding",children:(0,a.jsx)(ej.l,{value:S,onChange:e=>{e&&(0,eS.tc)(e)&&C(e)},data:eA,allowDeselect:!1})}),v[19]=A,v[20]=C,v[21]=S,v[22]=x):x=v[22],v[23]!==k||v[24]!==S||v[25]!==y.font?(f="clickstack"!==S&&(0,a.jsx)(ew,{label:"Font",description:"If using custom font, make sure it's installed on your system",children:(0,a.jsx)(eg.j,{value:y.font,filter:eI,onChange:e=>k({font:e}),data:ek.Al})}),v[23]=k,v[24]=S,v[25]=y.font,v[26]=f):f=v[26],v[27]!==p||v[28]!==x||v[29]!==f||v[30]!==o||v[31]!==m?(b=(0,a.jsxs)(ee.B,{gap:"lg",children:[t,o,m,h,p,x,f]}),v[27]=p,v[28]=x,v[29]=f,v[30]=o,v[31]=m,v[32]=b):b=v[32],v[33]!==g||v[34]!==_||v[35]!==b?(j=(0,a.jsx)(V.a,{title:s,size:"lg",padding:"lg",keepMounted:!1,opened:_,onClose:g,children:b}),v[33]=g,v[34]=_,v[35]=b,v[36]=j):j=v[36],j};function eI(e){let{options:s}=e;return s}var eM=t(66992),eE=t(56513),eD=t(22623),eT=t(89533),eL=t(62861),eF=t(92334),eO=t(21604),eP=t(1146),eW=t(93938),eQ=t(43524),eB=t.n(eQ);let eH=n.createContext({isCollapsed:!1,pathname:"/"}),eY=()=>{let e,s,t=(0,r.c)(2);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)("span",{className:"fs-8",children:"Ready to deploy on ClickHouse Cloud?"}),t[0]=e):e=t[0],t[1]===Symbol.for("react.memo_cache_sentinel")?(s=(0,a.jsxs)("div",{className:"my-3 bg-muted rounded p-2 text-center",children:[e,(0,a.jsx)("div",{className:"mt-2 mb-2",children:(0,a.jsx)(m.$,{variant:"primary",size:"xs",component:"a",href:"https://clickhouse.com/docs/use-cases/observability/clickstack/getting-started#deploy-with-clickhouse-cloud",target:"_blank",rel:"noopener noreferrer",children:"Get Started for Free"})})]}),t[1]=s):s=t[1],s},eq=e=>{let s,t,l,c,m,h,u,p,x,b,j,v,_,g=(0,r.c)(29),{userName:y,teamName:k,logoutUrl:S,onClickUserPreferences:N}=e,C=void 0===y?"User":y,{isCollapsed:A}=n.useContext(eH);g[0]!==C?(s=C.split(" ").map(eV).join(""),g[0]=C,g[1]=s):s=g[1];let w=s,z=G.VO?"Local mode":C;return g[2]===Symbol.for("react.memo_cache_sentinel")?(t={transition:"fade-up"},g[2]=t):t=g[2],g[3]!==A?(l=f()(eB().userMenu,{[eB().userMenuCollapsed]:A}),g[3]=A,g[4]=l):l=g[4],g[5]!==w?(c=(0,a.jsx)(eM.e,{size:"sm",radius:"xl",color:"gray",children:w}),g[5]=w,g[6]=c):c=g[6],g[7]!==z||g[8]!==A||g[9]!==k?(m=!A&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(e_.m,{fz:"xs",color:"gray",ta:"center",label:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("strong",{children:z}),(0,a.jsx)("br",{}),k]}),openDelay:250,children:(0,a.jsxs)("div",{className:eB().userMenuInfo,children:[(0,a.jsx)(d.E,{size:"xs",fw:"bold",lh:1.1,className:eB().userMenuName,children:z}),(0,a.jsx)(d.E,{size:"xs",className:eB().userMenuTeam,children:k})]})}),(0,a.jsx)(O.A,{size:14})]}),g[7]=z,g[8]=A,g[9]=k,g[10]=m):m=g[10],g[11]!==c||g[12]!==m?(h=(0,a.jsxs)(i.Y,{gap:"xs",wrap:"nowrap",miw:0,children:[c,m]}),g[11]=c,g[12]=m,g[13]=h):h=g[13],g[14]!==l||g[15]!==h?(u=(0,a.jsx)(eE.W.Target,{children:(0,a.jsx)(eD.t,{"data-testid":"user-menu-trigger",className:l,children:h})}),g[14]=l,g[15]=h,g[16]=u):u=g[16],g[17]===Symbol.for("react.memo_cache_sentinel")?(p=G.VO?(0,a.jsx)(eE.W.Label,{fz:"xs",children:"Local mode"}):(0,a.jsx)(eE.W.Item,{"data-testid":"team-settings-menu-item",href:"/team",component:o(),leftSection:(0,a.jsx)(Y.A,{size:16}),children:"Team Settings"}),g[17]=p):p=g[17],g[18]===Symbol.for("react.memo_cache_sentinel")?(x=(0,a.jsx)(eT.A,{size:16}),g[18]=x):x=g[18],g[19]!==N?(b=(0,a.jsx)(eE.W.Item,{"data-testid":"user-preferences-menu-item",leftSection:x,onClick:N,children:"User Preferences"}),g[19]=N,g[20]=b):b=g[20],g[21]!==S?(j=S&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(eE.W.Divider,{}),(0,a.jsx)(eE.W.Item,{"data-testid":"logout-menu-item",color:"red",leftSection:(0,a.jsx)(eL.A,{size:16}),component:o(),href:S,children:"Logout"})]}),g[21]=S,g[22]=j):j=g[22],g[23]!==b||g[24]!==j?(v=(0,a.jsxs)(eE.W.Dropdown,{children:[p,b,j]}),g[23]=b,g[24]=j,g[25]=v):v=g[25],g[26]!==v||g[27]!==u?(_=(0,a.jsxs)(eE.W,{position:"top-start",transitionProps:t,children:[u,v]}),g[26]=v,g[27]=u,g[28]=_):_=g[28],_},eG=e=>{let s,t,l,o,c,m,h,u,p,x,b,j,v,_=(0,r.c)(25),{version:g,onAddDataClick:y}=e,{isCollapsed:k}=n.useContext(eH),[S,N]=(0,I.j)(!1),{close:C}=N;return _[0]!==k?(s=f()(eB().helpButton,{[eB().helpButtonCollapsed]:k}),_[0]=k,_[1]=s):s=_[1],_[2]===Symbol.for("react.memo_cache_sentinel")?(t={transition:"fade-up"},_[2]=t):t=_[2],_[3]===Symbol.for("react.memo_cache_sentinel")?(l=(0,a.jsx)(eE.W.Target,{children:(0,a.jsx)(et.N,{"data-testid":"help-menu-trigger",w:"100%",children:(0,a.jsx)(i.Y,{align:"center",justify:"center",h:28,children:(0,a.jsx)(eF.A,{size:16})})})}),_[3]=l):l=_[3],_[4]!==g?(o=g&&(0,a.jsxs)(d.E,{size:"xs",component:"span",children:["v",g]}),_[4]=g,_[5]=o):o=_[5],_[6]!==o?(c=(0,a.jsxs)(eE.W.Label,{children:["Help"," ",o]}),_[6]=o,_[7]=c):c=_[7],_[8]===Symbol.for("react.memo_cache_sentinel")?(m=(0,a.jsx)(eE.W.Item,{"data-testid":"documentation-menu-item",href:"https://clickhouse.com/docs/use-cases/observability/clickstack",component:"a",target:"_blank",rel:"noopener noreferrer",leftSection:(0,a.jsx)(eO.A,{size:16}),children:"Documentation"}),_[8]=m):m=_[8],_[9]===Symbol.for("react.memo_cache_sentinel")?(h=(0,a.jsx)(eE.W.Item,{"data-testid":"discord-menu-item",leftSection:(0,a.jsx)(eP.A,{size:16}),component:"a",href:"https://hyperdx.io/discord",target:"_blank",rel:"noopener noreferrer",children:"Discord Community"}),_[9]=h):h=_[9],_[10]===Symbol.for("react.memo_cache_sentinel")?(u=(0,a.jsx)(eW.A,{size:16}),_[10]=u):u=_[10],_[11]!==y?(p=(0,a.jsx)(eE.W.Item,{"data-testid":"setup-instructions-menu-item",leftSection:u,onClick:y,children:"Setup Instructions"}),_[11]=y,_[12]=p):p=_[12],_[13]!==p||_[14]!==c?(x=(0,a.jsxs)(eE.W,{withArrow:!0,position:"top-start",transitionProps:t,defaultOpened:!1,children:[l,(0,a.jsxs)(eE.W.Dropdown,{children:[c,m,h,p]})]}),_[13]=p,_[14]=c,_[15]=x):x=_[15],_[16]!==x||_[17]!==s?(b=(0,a.jsx)(eD.t,{className:s,children:x}),_[16]=x,_[17]=s,_[18]=b):b=_[18],_[19]!==C||_[20]!==S?(j=(0,a.jsx)(X,{show:S,onHide:C}),_[19]=C,_[20]=S,_[21]=j):j=_[21],_[22]!==b||_[23]!==j?(v=(0,a.jsxs)(a.Fragment,{children:[b,j]}),_[22]=b,_[23]=j,_[24]=v):v=_[24],v},e$=e=>{let s,t,l,i,c,d,m,h,u,p,x,b,j=(0,r.c)(37),{className:v,label:_,icon:g,href:y,isExpanded:k,onToggle:S,isBeta:C}=e,{pathname:A,isCollapsed:w}=n.useContext(eH);j[0]!==y?(s=y.replace(/^\//,"").replace(/\//g,"-")||"home",j[0]=y,j[1]=s):s=j[1];let z=`nav-link-${s}`;j[2]!==S?(t=e=>{e.preventDefault(),e.stopPropagation(),S?.()},j[2]=S,j[3]=t):t=j[3];let I=t;if(j[4]!==v||j[5]!==y||j[6]!==A||j[7]!==z){let e=A===y||A?.startsWith(y+"/");l=o(),i=z,c=y,d=f()(eB().navItem,{[eB().navItemActive]:e},v),j[4]=v,j[5]=y,j[6]=A,j[7]=z,j[8]=l,j[9]=i,j[10]=c,j[11]=d}else l=j[8],i=j[9],c=j[10],d=j[11];return j[12]!==g?(m=(0,a.jsx)("span",{className:eB().navItemIcon,children:g}),j[12]=g,j[13]=m):m=j[13],j[14]!==w||j[15]!==_?(h=!w&&(0,a.jsx)("span",{children:_}),j[14]=w,j[15]=_,j[16]=h):h=j[16],j[17]!==m||j[18]!==h?(u=(0,a.jsxs)("span",{className:eB().navItemContent,children:[m,h]}),j[17]=m,j[18]=h,j[19]=u):u=j[19],j[20]!==C||j[21]!==w?(p=!w&&C&&(0,a.jsx)(N.E,{size:"xs",color:"blue",variant:"light",className:eB().navItemBadge,children:"Beta"}),j[20]=C,j[21]=w,j[22]=p):p=j[22],j[23]!==I||j[24]!==w||j[25]!==k||j[26]!==S||j[27]!==z?(x=!w&&S&&(0,a.jsx)("button",{type:"button","data-testid":`${z}-toggle`,className:eB().navItemToggle,onClick:I,children:k?(0,a.jsx)(ea.A,{size:14,className:"text-muted-hover"}):(0,a.jsx)(P.A,{size:14,className:"text-muted-hover"})}),j[23]=I,j[24]=w,j[25]=k,j[26]=S,j[27]=z,j[28]=x):x=j[28],j[29]!==l||j[30]!==x||j[31]!==i||j[32]!==c||j[33]!==d||j[34]!==u||j[35]!==p?(b=(0,a.jsxs)(l,{"data-testid":i,href:c,className:d,children:[u,p,x]}),j[29]=l,j[30]=x,j[31]=i,j[32]=c,j[33]=d,j[34]=u,j[35]=p,j[36]=b):b=j[36],b};function eV(e){return e[0].toUpperCase()}let eK="Saved Searches",eU="Saved Dashboards",eR=[{id:"chart",label:"Chart Explorer",href:"/chart",icon:(0,a.jsx)(M.A,{size:16})},{id:"alerts",label:"Alerts",href:"/alerts",icon:(0,a.jsx)(E.A,{size:16}),cloudOnly:!0},{id:"sessions",label:"Client Sessions",href:"/sessions",icon:(0,a.jsx)(D.A,{size:16})},{id:"service-map",label:"Service Map",href:"/service-map",icon:(0,a.jsx)(T.A,{size:16}),isBeta:!0}];function eJ(){let e,s,t,n=(0,r.c)(6),l=(0,$.mG)();if(G.VO){let e;return n[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsxs)(m.$,{component:o(),href:"/dashboards","data-testid":"create-dashboard-button",variant:"transparent",color:"var(--color-text)",py:"0px",px:"sm",fw:400,children:[(0,a.jsx)("span",{className:"pe-2",children:"+"})," Create Dashboard"]}),n[0]=e):e=n[0],e}return n[1]!==l?(e=()=>l.mutate({name:"My Dashboard",tiles:[],tags:[]},{onSuccess:eZ}),n[1]=l,n[2]=e):e=n[2],n[3]===Symbol.for("react.memo_cache_sentinel")?(s=(0,a.jsx)("span",{className:"pe-2",children:"+"}),n[3]=s):s=n[3],n[4]!==e?(t=(0,a.jsxs)(m.$,{"data-testid":"create-dashboard-button",variant:"transparent",color:"var(--color-text)",py:"0px",px:"sm",fw:400,onClick:e,children:[s," Create Dashboard"]}),n[4]=e,n[5]=t):t=n[5],t}function eZ(e){p().push(`/dashboards/${e.id}`)}function eX(e){let s,t,n,l,o,i,c=(0,r.c)(15),{placeholder:d,value:m,onChange:h,onEnterDown:u}=e;c[0]===Symbol.for("react.memo_cache_sentinel")?(s=(0,a.jsxs)("div",{className:eB().shortcutHint,children:[window.navigator.platform?.toUpperCase().includes("MAC")?(0,a.jsx)(L.A,{size:8}):(0,a.jsx)("span",{className:eB().shortcutHintCtrl,children:"Ctrl"}),"\xa0K"]}),c[0]=s):s=c[0];let p=s;c[1]!==u?(t=e=>{"Enter"===e.key&&u?.()},c[1]=u,c[2]=t):t=c[2];let x=t;return c[3]!==h?(n=e=>h(e.currentTarget.value),c[3]=h,c[4]=n):n=c[4],c[5]===Symbol.for("react.memo_cache_sentinel")?(l=(0,a.jsx)(F.A,{size:16,className:"ps-1"}),c[5]=l):l=c[5],c[6]!==h||c[7]!==m?(o=m?(0,a.jsx)(y.J,{"data-testid":"nav-search-clear",tabIndex:-1,size:"xs",radius:"xl",onClick:()=>h("")}):p,c[6]=h,c[7]=m,c[8]=o):o=c[8],c[9]!==x||c[10]!==d||c[11]!==n||c[12]!==o||c[13]!==m?(i=(0,a.jsx)(k.p,{"data-testid":"nav-search-input",placeholder:d,value:m,onChange:n,leftSection:l,onKeyDown:x,rightSection:o,mt:8,mb:"sm",size:"xs",variant:"filled",radius:"xl",className:eB().searchInput}),c[9]=x,c[10]=d,c[11]=n,c[12]=o,c[13]=m,c[14]=i):i=c[14],i}let e1=e=>{let s,t,n,l=(0,r.c)(8),{name:o,collapsed:i,onClick:c}=e;return l[0]!==i?(s=i?(0,a.jsx)(O.A,{size:14}):(0,a.jsx)(P.A,{size:14}),l[0]=i,l[1]=s):s=l[1],l[2]!==o?(t=(0,a.jsx)("div",{children:o}),l[2]=o,l[3]=t):t=l[3],l[4]!==c||l[5]!==s||l[6]!==t?(n=(0,a.jsxs)("div",{className:eB().groupLabel,onClick:c,children:[s,t]}),l[4]=c,l[5]=s,l[6]=t,l[7]=n):n=l[7],n},e0=e=>{let s,t,l,o,i,c=(0,r.c)(23),{name:d,groups:m,renderLink:h,onDragEnd:u,forceExpandGroups:p}=e,x=void 0!==p&&p,b=`collapsedGroups-${d}`;c[0]===Symbol.for("react.memo_cache_sentinel")?(s={},c[0]=s):s=c[0],c[1]!==b?(t={key:b,defaultValue:s},c[1]=b,c[2]=t):t=c[2];let[j,v]=(0,z.M)(t);c[3]!==j||c[4]!==v?(l=e=>{v({...j,[e]:!j[e]})},c[3]=j,c[4]=v,c[5]=l):l=c[5];let _=l,[g,y]=(0,n.useState)(null);if(c[6]!==j||c[7]!==g||c[8]!==x||c[9]!==m||c[10]!==_||c[11]!==u||c[12]!==h){let e;c[14]!==j||c[15]!==g||c[16]!==x||c[17]!==_||c[18]!==u||c[19]!==h?(e=e=>(0,a.jsxs)("div",{className:f()(g===e.name&&eB().groupDragOver),onDragOver:s=>{s.preventDefault(),s.dataTransfer.dropEffect="move",y(e.name)},onDragEnd:e=>{e.preventDefault(),u?.(e.target,g),y(null)},children:[(0,a.jsx)(e1,{onClick:()=>_(e.name),name:e.name,collapsed:j[e.name]}),(0,a.jsx)(S.S,{in:!j[e.name]||x,children:e.items.map(e=>h(e))})]},e.name),c[14]=j,c[15]=g,c[16]=x,c[17]=_,c[18]=u,c[19]=h,c[20]=e):e=c[20],o=m.map(e),c[6]=j,c[7]=g,c[8]=x,c[9]=m,c[10]=_,c[11]=u,c[12]=h,c[13]=o}else o=c[13];return c[21]!==o?(i=(0,a.jsx)(a.Fragment,{children:o}),c[21]=o,c[22]=i):i=c[22],i};function e2(e){let s,t,a,l,o=(0,r.c)(14),{items:i,untaggedGroupName:c}=e,d=void 0===c?"Other":c;o[0]!==i?(s=new b.A(i,{keys:["name"],threshold:.2,ignoreLocation:!0}),o[0]=i,o[1]=s):s=o[1];let m=s,[h,u]=(0,n.useState)("");e:{let e;if(""===h){t=i;break e}o[2]!==m||o[3]!==h?(e=m.search(h).map(e4),o[2]=m,o[3]=h,o[4]=e):e=o[4],t=e}let p=t;if(o[5]!==p||o[6]!==d){let e,s={},t=[];p.forEach(e=>{e.tags?.length?e.tags.forEach(t=>{s[t]=s[t]??[],s[t].push(e)}):t.push(e)}),t.length&&(s[d]=t),o[8]!==d?(e=(e,s)=>e.name===d?1:s.name===d?-1:e.name.localeCompare(s.name),o[8]=d,o[9]=e):e=o[9],a=Object.entries(s).map(e3).sort(e),o[5]=p,o[6]=d,o[7]=a}else a=o[7];let x=a;return o[10]!==p||o[11]!==x||o[12]!==h?(l={filteredList:p,groupedFilteredList:x,q:h,setQ:u},o[10]=p,o[11]=x,o[12]=h,o[13]=l):l=o[13],l}function e3(e){let[s,t]=e;return{name:s,items:t}}function e4(e){return e.item}function e5(e){let s,t,l,c,d,m,h,p,x,b,v,g,y,k,M,D,T,L,F,O,P,V,K,U,R,J,Z,ee,es,et,ea,er,en,el,eo,ei,ed,eh,eu,ep,eb,ej,ev,e_,eg,ey,ek,eS,eC,eA,ew,eI,eM,eE,eD,eT,eL,eF=(0,r.c)(163),{fixed:eO}=e,eP=void 0!==eO&&eO,eW=(0,ef.PH)();eF[0]===Symbol.for("react.memo_cache_sentinel")?(s={size:22},eF[0]=s):s=eF[0];let eQ=(0,ef.GV)(s);eF[1]===Symbol.for("react.memo_cache_sentinel")?(t=[],eF[1]=t):t=eF[1],(0,n.useEffect)(se,t);let{data:eV,isLoading:eZ,refetch:e3}=(0,ex.PY)();eF[2]!==eV?(l=eV??[],eF[2]=eV,eF[3]=l):l=eF[3];let e4=l,e5=(0,$.vY)(),ss=(0,ex.CI)(),{data:st,isLoading:sa,refetch:sr}=(0,$.L9)();eF[4]!==st?(c=st??[],eF[4]=st,eF[5]=c):c=eF[5];let sn=c,{pathname:sl,query:so}=(0,u.useRouter)();eF[6]===Symbol.for("react.memo_cache_sentinel")?(d={from:(0,j.withDefault)(j.NumberParam,-1),to:(0,j.withDefault)(j.NumberParam,-1)},eF[6]=d):d=eF[6];let[si]=(0,j.useQueryParams)(d);eF[7]===Symbol.for("react.memo_cache_sentinel")?(m=(0,j.withDefault)(j.StringParam,""),h={updateType:"pushIn",enableBatching:!0},eF[7]=m,eF[8]=h):(m=eF[7],h=eF[8]);let[sc]=(0,j.useQueryParam)("tq",m,h),{data:sd}=q.Ay.useMe();eF[9]===Symbol.for("react.memo_cache_sentinel")?(p={key:"isSearchExpanded",defaultValue:!0},eF[9]=p):p=eF[9];let[sm,sh]=(0,z.M)(p);eF[10]===Symbol.for("react.memo_cache_sentinel")?(x={key:"isDashboardsExpanded",defaultValue:!0},eF[10]=x):x=eF[10];let[su,sp]=(0,z.M)(x),{width:sx}=(0,ec.lW)();eF[11]===Symbol.for("react.memo_cache_sentinel")?(b={key:"isNavCollapsed",defaultValue:!1},eF[11]=b):b=eF[11];let[sf,sb]=(0,z.M)(b),sj=(sx??1e3)<900||sf,sv=sj?50:250;eF[12]!==sl||eF[13]!==so?(v=()=>{_().addAction("user navigated",{route:sl,query:JSON.stringify(so)})},g=[sl,so],eF[12]=sl,eF[13]=so,eF[14]=v,eF[15]=g):(v=eF[14],g=eF[15]),(0,n.useEffect)(v,g),eF[16]!==sd?(y=()=>{null!=sd&&(_().enableAdvancedNetworkCapture(),_().setGlobalAttributes({userEmail:sd.email,userName:sd.name,teamName:sd.team.name}))},k=[sd],eF[16]=sd,eF[17]=y,eF[18]=k):(y=eF[17],k=eF[18]),(0,n.useEffect)(y,k),eF[19]!==e4?(M={items:e4,untaggedGroupName:eK},eF[19]=e4,eF[20]=M):M=eF[20];let{q:s_,setQ:sg,filteredList:sy,groupedFilteredList:sk}=e2(M);eF[21]!==sn?(D={items:sn,untaggedGroupName:eU},eF[21]=sn,eF[22]=D):D=eF[22];let{q:sS,setQ:sN,filteredList:sC,groupedFilteredList:sA}=e2(D);eF[23]===Symbol.for("react.memo_cache_sentinel")?(T={key:"isDashboardsPresetsCollapsed",defaultValue:!1},eF[23]=T):T=eF[23];let[sw,sz]=(0,z.M)(T),sI=(0,n.useRef)(null),sM=(0,n.useRef)(null);eF[24]!==sc||eF[25]!==so.savedSearchId||eF[26]!==si.from||eF[27]!==si.to?(L=e=>(0,a.jsx)(o(),{href:`/search/${e.id}?${new URLSearchParams(-1!=si.from&&-1!=si.to?{from:si.from.toString(),to:si.to.toString(),tq:sc}:{}).toString()}`,tabIndex:0,className:f()(eB().subMenuItem,e.id===so.savedSearchId&&eB().subMenuItemActive),title:e.name,draggable:!0,"data-savedsearchid":e.id,children:(0,a.jsxs)(i.Y,{gap:2,children:[(0,a.jsx)("div",{className:"d-inline-block text-truncate",children:e.name}),Array.isArray(e.alerts)&&e.alerts.length>0?e.alerts.some(e9)?(0,a.jsx)(W.A,{size:14,className:"float-end text-danger ms-1","aria-label":"Has Alerts and is in ALERT state"}):(0,a.jsx)(E.A,{size:14,className:"float-end ms-1","aria-label":"Has Alerts and is in OK state"}):null]})},e.id),eF[24]=sc,eF[25]=so.savedSearchId,eF[26]=si.from,eF[27]=si.to,eF[28]=L):L=eF[28];let sE=L;eF[29]!==e4||eF[30]!==e3||eF[31]!==ss?(F=(e,s)=>{if(!e?.dataset.savedsearchid||null==s)return;let t=e4.find(s=>s.id===e.dataset.savedsearchid);t?.tags?.includes(s)||ss.mutate({id:e.dataset.savedsearchid,tags:s===eK?[]:[s]},{onSuccess:()=>{e3()}})},eF[29]=e4,eF[30]=e3,eF[31]=ss,eF[32]=F):F=eF[32];let sD=F;eF[33]!==so.dashboardId?(O=e=>(0,a.jsx)(o(),{href:`/dashboards/${e.id}`,tabIndex:0,className:f()(eB().subMenuItem,{[eB().subMenuItemActive]:e.id===so.dashboardId}),draggable:!0,"data-dashboardid":e.id,children:e.name},e.id),eF[33]=so.dashboardId,eF[34]=O):O=eF[34];let sT=O;eF[35]!==sn||eF[36]!==sr||eF[37]!==e5?(P=(e,s)=>{if(!e?.dataset.dashboardid||null==s)return;let t=sn.find(s=>s.id===e.dataset.dashboardid);t?.tags?.includes(s)||e5.mutate({id:e.dataset.dashboardid,tags:s===eU?[]:[s]},{onSuccess:()=>{sr()}})},eF[35]=sn,eF[36]=sr,eF[37]=e5,eF[38]=P):P=eF[38];let sL=P,[sF,sO]=(0,I.j)(!1),{close:sP,open:sW}=sO,{userPreferences:sQ}=(0,eN.HW)(),{isUTC:sB}=sQ,[sH,sY]=(0,I.j)(!1),{open:sq,close:sG}=sY;eF[39]!==sj||eF[40]!==sl?(V={isCollapsed:sj,pathname:sl},eF[39]=sj,eF[40]=sl,eF[41]=V):V=eF[41],eF[42]!==eP||eF[43]!==sv?(K=eP&&(0,a.jsx)("div",{className:eB().navGhost,style:{width:sv+1,minWidth:sv+1}}),eF[42]=eP,eF[43]=sv,eF[44]=K):K=eF[44],eF[45]!==sG||eF[46]!==sH?(U=(0,a.jsx)(X,{show:sH,onHide:sG}),eF[45]=sG,eF[46]=sH,eF[47]=U):U=eF[47],eF[48]!==eP||eF[49]!==sj?(R=f()(eB().nav,{[eB().navFixed]:eP,[eB().navCollapsed]:sj}),eF[48]=eP,eF[49]=sj,eF[50]=R):R=eF[50],eF[51]!==sv?(J={width:sv},Z={width:sv},eF[51]=sv,eF[52]=J,eF[53]=Z):(J=eF[52],Z=eF[53]);let s$=!sj;eF[54]!==sj||eF[55]!==s$?(ee=f()(eB().header,{[eB().headerExpanded]:s$,[eB().headerCollapsed]:sj}),eF[54]=sj,eF[55]=s$,eF[56]=ee):ee=eF[56],eF[57]!==sj||eF[58]!==sB||eF[59]!==eQ||eF[60]!==eW?(es=(0,a.jsx)(o(),{href:"/search",className:eB().logoLink,children:sj?(0,a.jsx)("div",{className:eB().logoIconWrapper,children:eQ}):(0,a.jsxs)(i.Y,{gap:"xs",align:"center",children:[eW,sB&&(0,a.jsx)(N.E,{size:"xs",color:"gray",variant:"light",fw:"normal",title:"Showing time in UTC",children:"UTC"})]})}),eF[57]=sj,eF[58]=sB,eF[59]=eQ,eF[60]=eW,eF[61]=es):es=eF[61],eF[62]!==sj?(et=f()(eB().collapseButton,{[eB().collapseButtonCollapsed]:sj}),eF[62]=sj,eF[63]=et):et=eF[63],eF[64]!==sb?(ea=()=>sb(e8),eF[64]=sb,eF[65]=ea):ea=eF[65],eF[66]===Symbol.for("react.memo_cache_sentinel")?(er=(0,a.jsx)(Q.A,{size:16}),eF[66]=er):er=eF[66],eF[67]!==et||eF[68]!==ea?(en=(0,a.jsx)(C.M,{variant:"transparent",size:"sm",className:et,title:"Collapse/Expand Navigation",onClick:ea,children:er}),eF[67]=et,eF[68]=ea,eF[69]=en):en=eF[69],eF[70]!==ee||eF[71]!==es||eF[72]!==en?(el=(0,a.jsxs)("div",{className:ee,children:[es,en]}),eF[70]=ee,eF[71]=es,eF[72]=en,eF[73]=el):el=eF[73],eF[74]!==Z||eF[75]!==el?(eo=(0,a.jsx)("div",{style:Z,children:el}),eF[74]=Z,eF[75]=el,eF[76]=eo):eo=eF[76],eF[77]!==sv?(ei={width:sv},eF[77]=sv,eF[78]=ei):ei=eF[78],eF[79]===Symbol.for("react.memo_cache_sentinel")?(ed=(0,a.jsx)(B.A,{size:16}),eF[79]=ed):ed=eF[79],eF[80]!==sm||eF[81]!==sh?(eh=G.VO?void 0:()=>sh(!sm),eF[80]=sm,eF[81]=sh,eF[82]=eh):eh=eF[82],eF[83]!==sm||eF[84]!==eh?(eu=(0,a.jsx)(e$,{label:"Search",icon:ed,href:"/search",isExpanded:sm,onToggle:eh}),eF[83]=sm,eF[84]=eh,eF[85]=eu):eu=eF[85],eF[86]!==sy||eF[87]!==sk||eF[88]!==sD||eF[89]!==sj||eF[90]!==eZ||eF[91]!==sm||eF[92]!==e4||eF[93]!==sE||eF[94]!==s_||eF[95]!==sg?(ep=!sj&&(0,a.jsx)(S.S,{in:sm,children:(0,a.jsx)("div",{className:eB().subMenu,children:eZ?(0,a.jsx)(A.a,{variant:"dots",mx:"md",my:"xs",size:"sm"}):!G.VO&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(eX,{placeholder:"Saved Searches",value:s_,onChange:sg,onEnterDown:()=>{sI?.current?.firstChild?.focus?.()}}),0===e4.length&&(0,a.jsx)("div",{className:eB().emptyMessage,children:"No saved searches"}),(0,a.jsx)("div",{ref:sI,children:(0,a.jsx)(e0,{name:"saved-searches",groups:sk,renderLink:sE,forceExpandGroups:!!s_,onDragEnd:sD})}),s_&&0===sy.length?(0,a.jsxs)("div",{className:eB().emptyMessage,children:["No results matching ",(0,a.jsx)("i",{children:s_})]}):null]})})}),eF[86]=sy,eF[87]=sk,eF[88]=sD,eF[89]=sj,eF[90]=eZ,eF[91]=sm,eF[92]=e4,eF[93]=sE,eF[94]=s_,eF[95]=sg,eF[96]=ep):ep=eF[96],eF[97]===Symbol.for("react.memo_cache_sentinel")?(eb=eR.filter(e7).map(e6),eF[97]=eb):eb=eF[97],eF[98]===Symbol.for("react.memo_cache_sentinel")?(ej=(0,a.jsx)(H.A,{size:16}),eF[98]=ej):ej=eF[98],eF[99]!==su||eF[100]!==sp?(ev=()=>sp(!su),eF[99]=su,eF[100]=sp,eF[101]=ev):ev=eF[101],eF[102]!==su||eF[103]!==ev?(e_=(0,a.jsx)(e$,{label:"Dashboards",href:"/dashboards",icon:ej,isExpanded:su,onToggle:ev}),eF[102]=su,eF[103]=ev,eF[104]=e_):e_=eF[104],eF[105]!==sn||eF[106]!==sS||eF[107]!==sC||eF[108]!==sA||eF[109]!==sL||eF[110]!==sj||eF[111]!==su||eF[112]!==sa||eF[113]!==sw||eF[114]!==sl||eF[115]!==sT||eF[116]!==sN||eF[117]!==sz?(eg=!sj&&(0,a.jsx)(S.S,{in:su,children:(0,a.jsxs)("div",{className:eB().subMenu,children:[(0,a.jsx)(eJ,{}),sa?(0,a.jsx)(A.a,{variant:"dots",mx:"md",my:"xs",size:"sm"}):!G.VO&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(eX,{placeholder:"Saved Dashboards",value:sS,onChange:sN,onEnterDown:()=>{sM?.current?.firstChild?.focus?.()}}),(0,a.jsx)(e0,{name:"dashboards",groups:sA,renderLink:sT,forceExpandGroups:!!sS,onDragEnd:sL}),0===sn.length&&(0,a.jsx)("div",{className:eB().emptyMessage,children:"No saved dashboards"}),sS&&0===sC.length?(0,a.jsxs)("div",{className:eB().emptyMessage,children:["No results matching ",(0,a.jsx)("i",{children:sS})]}):null]}),(0,a.jsx)(e1,{name:"Presets",collapsed:sw,onClick:()=>sz(!sw)}),(0,a.jsxs)(S.S,{in:!sw,children:[(0,a.jsx)(o(),{href:"/clickhouse",tabIndex:0,className:f()(eB().subMenuItem,{[eB().subMenuItemActive]:sl.startsWith("/clickhouse")}),"data-testid":"nav-link-clickhouse-dashboard",children:"ClickHouse"}),(0,a.jsx)(o(),{href:"/services",tabIndex:0,className:f()(eB().subMenuItem,{[eB().subMenuItemActive]:sl.startsWith("/services")}),"data-testid":"nav-link-services-dashboard",children:"Services"}),G.TS&&(0,a.jsx)(o(),{href:"/kubernetes",tabIndex:0,className:f()(eB().subMenuItem,{[eB().subMenuItemActive]:sl.startsWith("/kubernetes")}),"data-testid":"nav-link-k8s-dashboard",children:"Kubernetes"})]})]})}),eF[105]=sn,eF[106]=sS,eF[107]=sC,eF[108]=sA,eF[109]=sL,eF[110]=sj,eF[111]=su,eF[112]=sa,eF[113]=sw,eF[114]=sl,eF[115]=sT,eF[116]=sN,eF[117]=sz,eF[118]=eg):eg=eF[118],eF[119]===Symbol.for("react.memo_cache_sentinel")?(ey=!G.VO&&(0,a.jsx)(e$,{label:"Team Settings",href:"/team",icon:(0,a.jsx)(Y.A,{size:16})}),eF[119]=ey):ey=eF[119],eF[120]!==ei||eF[121]!==eu||eF[122]!==ep||eF[123]!==e_||eF[124]!==eg?(ek=(0,a.jsxs)("div",{style:ei,className:eB().navLinks,children:[eu,ep,eb,e_,eg,ey]}),eF[120]=ei,eF[121]=eu,eF[122]=ep,eF[123]=e_,eF[124]=eg,eF[125]=ek):ek=eF[125],eF[126]!==sj||eF[127]!==sv||eF[128]!==sq?(eS=!sj&&(0,a.jsxs)("div",{style:{width:sv},className:eB().onboardingSection,children:[(0,a.jsx)(em,{onAddDataClick:sq}),(0,a.jsx)(eY,{})]}),eF[126]=sj,eF[127]=sv,eF[128]=sq,eF[129]=eS):eS=eF[129],eF[130]!==ek||eF[131]!==eS?(eC=(0,a.jsxs)(w.F,{type:"scroll",scrollbarSize:6,scrollHideDelay:100,classNames:eB(),className:eB().scrollContainer,children:[ek,eS]}),eF[130]=ek,eF[131]=eS,eF[132]=eC):eC=eF[132],eF[133]!==sv?(eA={width:sv},eF[133]=sv,eF[134]=eA):eA=eF[134],eF[135]!==sq?(ew=(0,a.jsx)(eG,{version:"2.20.0",onAddDataClick:sq}),eF[135]=sq,eF[136]=ew):ew=eF[136];let sV=sd?.name,sK=sd?.team?.name;return eF[137]!==sW||eF[138]!==sV||eF[139]!==sK?(eI=(0,a.jsx)(eq,{userName:sV,teamName:sK,onClickUserPreferences:sW,logoutUrl:G.VO?null:"/api/logout"}),eF[137]=sW,eF[138]=sV,eF[139]=sK,eF[140]=eI):eI=eF[140],eF[141]!==sd?(eM=sd&&sd.usageStatsEnabled&&(0,a.jsx)("img",{referrerPolicy:"no-referrer-when-downgrade",src:"https://static.scarf.sh/a.png?x-pxid=bbc99c42-7a75-4eee-9fb9-2b161fc4acd6"}),eF[141]=sd,eF[142]=eM):eM=eF[142],eF[143]!==eA||eF[144]!==ew||eF[145]!==eI||eF[146]!==eM?(eE=(0,a.jsxs)("div",{className:eB().footer,style:eA,children:[ew,eI,eM]}),eF[143]=eA,eF[144]=ew,eF[145]=eI,eF[146]=eM,eF[147]=eE):eE=eF[147],eF[148]!==R||eF[149]!==J||eF[150]!==eo||eF[151]!==eC||eF[152]!==eE?(eD=(0,a.jsxs)("div",{className:R,style:J,children:[eo,eC,eE]}),eF[148]=R,eF[149]=J,eF[150]=eo,eF[151]=eC,eF[152]=eE,eF[153]=eD):eD=eF[153],eF[154]!==sF||eF[155]!==sP?(eT=(0,a.jsx)(ez,{opened:sF,onClose:sP}),eF[154]=sF,eF[155]=sP,eF[156]=eT):eT=eF[156],eF[157]!==V||eF[158]!==K||eF[159]!==U||eF[160]!==eD||eF[161]!==eT?(eL=(0,a.jsxs)(eH.Provider,{value:V,children:[K,U,eD,eT]}),eF[157]=V,eF[158]=K,eF[159]=U,eF[160]=eD,eF[161]=eT,eF[162]=eL):eL=eF[162],eL}function e6(e){return(0,a.jsx)(e$,{label:e.label,href:e.href,icon:e.icon,isBeta:e.isBeta},e.id)}function e7(e){return!e.cloudOnly||!G.VO}function e8(e){return!e}function e9(e){return e.state===g.Or.ALERT}function se(){let e;try{e=window.sessionStorage.getItem("hdx-login-redirect-url")}catch(e){console.error(e)}e&&(window.sessionStorage.removeItem("hdx-login-redirect-url"),p().push(e))}var ss=t(74862),st=t(54134),sa=t(42717),sr=t(9841),sn=t(84479),sl=t(80170),so=t(97702);t(86502);let si=e=>{let s,t,n,l,o=(0,r.c)(7),{children:i}=e,{actions:c}=(()=>{let e,s,t,n=(0,r.c)(46),l=(0,u.useRouter)(),o=(0,ef.Kh)();n[0]===Symbol.for("react.memo_cache_sentinel")?(e={size:16},n[0]=e):e=n[0];let i=(0,ef.GV)(e),{data:c}=(0,ex.PY)(),{data:d}=q.Ay.useDashboards();if(n[1]!==o||n[2]!==d||n[3]!==c||n[4]!==i||n[5]!==l){let e,t,r,m,h,u,p,x,f,b,j,v,_,g,y,k,S,N,C,A,w,z,I,M,T=d??[];s=[],(c??[]).forEach(e=>{s.push({id:e.id,group:"Saved searches",leftSection:(0,a.jsx)(st.A,{size:16}),label:e.name,keywords:["search","log","saved"],onClick:()=>{l.push(`/search/${e.id}`)}})}),T.forEach(e=>{s.push({id:e.id,group:"Dashboards",leftSection:(0,a.jsx)(sa.A,{size:16}),label:e.name,keywords:["dashboard"],onClick:()=>{l.push(`/dashboards/${e.id}`)}})}),n[7]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)(st.A,{size:16}),n[7]=e):e=n[7],n[8]===Symbol.for("react.memo_cache_sentinel")?(t=["log","events","logs"],n[8]=t):t=n[8],n[9]!==l?(r={id:"search",group:"Menu",leftSection:e,label:"Search",description:"Start a new search",keywords:t,onClick:()=>{l.push("/search")}},n[9]=l,n[10]=r):r=n[10],n[11]===Symbol.for("react.memo_cache_sentinel")?(m=(0,a.jsx)(sr.A,{size:16}),n[11]=m):m=n[11],n[12]===Symbol.for("react.memo_cache_sentinel")?(h=["graph","metrics"],n[12]=h):h=n[12],n[13]!==l?(u={id:"chart-explorer",group:"Menu",leftSection:m,label:"Chart Explorer",description:"Explore your data",keywords:h,onClick:()=>{l.push("/chart")}},n[13]=l,n[14]=u):u=n[14],n[15]===Symbol.for("react.memo_cache_sentinel")?(p=(0,a.jsx)(sn.A,{size:16}),n[15]=p):p=n[15],n[16]===Symbol.for("react.memo_cache_sentinel")?(x=["graph"],n[16]=x):x=n[16],n[17]!==l?(f={id:"new-dashboard",group:"Menu",leftSection:p,label:"New Dashboard",description:"Create a new dashboard",keywords:x,onClick:()=>{l.push("/dashboards")}},n[17]=l,n[18]=f):f=n[18],n[19]===Symbol.for("react.memo_cache_sentinel")?(b=(0,a.jsx)(D.A,{size:16}),n[19]=b):b=n[19],n[20]===Symbol.for("react.memo_cache_sentinel")?(j=["browser","web"],n[20]=j):j=n[20],n[21]!==l?(v={id:"sessions",group:"Menu",leftSection:b,label:"Client Sessions",description:"View client sessions",keywords:j,onClick:()=>{l.push("/sessions")}},n[21]=l,n[22]=v):v=n[22],n[23]===Symbol.for("react.memo_cache_sentinel")?(_=(0,a.jsx)(E.A,{size:16}),n[23]=_):_=n[23],n[24]!==l?(g={id:"alerts",group:"Menu",leftSection:_,label:"Alerts",description:"View and manage alerts",onClick:()=>{l.push("/alerts")}},n[24]=l,n[25]=g):g=n[25],n[26]===Symbol.for("react.memo_cache_sentinel")?(y=(0,a.jsx)(sl.A,{size:16}),n[26]=y):y=n[26],n[27]!==l?(k={id:"service-health",group:"Menu",label:"Service Health",leftSection:y,description:"HTTP, Database and Infrastructure metrics",onClick:()=>{l.push("/services")}},n[27]=l,n[28]=k):k=n[28],n[29]===Symbol.for("react.memo_cache_sentinel")?(S=(0,a.jsx)(Y.A,{size:16}),n[29]=S):S=n[29],n[30]!==l?(N={id:"team-settings",group:"Menu",leftSection:S,label:"Team Settings",onClick:()=>{l.push("/team")}},n[30]=l,n[31]=N):N=n[31],n[32]===Symbol.for("react.memo_cache_sentinel")?(C=(0,a.jsx)(so.A,{size:16}),n[32]=C):C=n[32],n[33]===Symbol.for("react.memo_cache_sentinel")?(A=["help","docs"],n[33]=A):A=n[33],n[34]!==l?(w={id:"documentation",group:"Menu",leftSection:C,label:"Documentation",keywords:A,onClick:()=>{l.push("https://clickhouse.com/docs/use-cases/observability/clickstack")}},n[34]=l,n[35]=w):w=n[35];let L=`${o} Cloud`,F=`Ready to use ${o} Cloud? Get started for free.`;n[36]===Symbol.for("react.memo_cache_sentinel")?(z=["account","profile"],n[36]=z):z=n[36],n[37]!==l?(I=()=>{l.push("https://clickhouse.com/docs/use-cases/observability/clickstack/getting-started#deploy-with-clickhouse-cloud")},n[37]=l,n[38]=I):I=n[38],n[39]!==i||n[40]!==L||n[41]!==F||n[42]!==I?(M={id:"cloud",group:"Menu",leftSection:i,label:L,description:F,keywords:z,onClick:I},n[39]=i,n[40]=L,n[41]=F,n[42]=I,n[43]=M):M=n[43],s.push(r,u,f,v,g,k,N,w,M),n[1]=o,n[2]=d,n[3]=c,n[4]=i,n[5]=l,n[6]=s}else s=n[6];let m=s;return n[44]!==m?(t={actions:m},n[44]=m,n[45]=t):t=n[45],t})();return o[0]===Symbol.for("react.memo_cache_sentinel")?(s={leftSection:(0,a.jsx)(F.A,{size:16}),placeholder:"Search"},o[0]=s):s=o[0],o[1]===Symbol.for("react.memo_cache_sentinel")?(t=[],o[1]=t):t=o[1],o[2]!==c?(n=(0,a.jsx)(ss.L,{shortcut:"mod + K",searchProps:s,nothingFound:"Nothing found",zIndex:200001,tagsToIgnore:t,highlightQuery:!0,actions:c,limit:7,scrollable:!0}),o[2]=c,o[3]=n):n=o[3],o[4]!==i||o[5]!==n?(l=(0,a.jsxs)("div",{className:"notranslate",translate:"no",children:[i,n]}),o[4]=i,o[5]=n,o[6]=l):l=o[6],l};function sc(e){let s,t,l,u,p,x,f,b,j=(0,r.c)(14),{children:v}=e,[_,g]=(0,ec.Mj)("clickstack-banner-state","opened"),[y,k]=n.useState(!1);j[0]===Symbol.for("react.memo_cache_sentinel")?(s=()=>k(!0),t=[],j[0]=s,j[1]=t):(s=j[0],t=j[1]),n.useEffect(s,t);let S=y&&G.Ju&&"opened"===_,N=S?"app-layout-with-banner":"app-layout";return j[2]!==S||j[3]!==g?(l=S&&(0,a.jsxs)(i.Y,{bg:"var(--color-text-primary)",children:[(0,a.jsx)(c.o,{style:{flexGrow:1},children:(0,a.jsxs)(d.E,{py:"xs",size:"sm",c:"var(--color-text-inverted)",children:["This is not recommended for production use and is lacking core ClickStack features such as alerts and saved searches. For a proper experience, visit the"," ",(0,a.jsx)("strong",{children:(0,a.jsx)(o(),{href:"https://clickhouse.com/docs/use-cases/observability/clickstack/getting-started",target:"_blank",rel:"noopener noreferrer",children:"ClickStack Docs"})})]})}),(0,a.jsxs)(m.$,{onClick:()=>g("closed"),variant:"transparent",color:"var(--color-text-inverted)",children:[(0,a.jsx)(h.A,{})," "]})]}),j[2]=S,j[3]=g,j[4]=l):l=j[4],j[5]===Symbol.for("react.memo_cache_sentinel")?(u={height:"100%",overflow:"hidden"},p=(0,a.jsx)(e5,{}),j[5]=u,j[6]=p):(u=j[5],p=j[6]),j[7]===Symbol.for("react.memo_cache_sentinel")?(x={minWidth:0,overflow:"auto"},j[7]=x):x=j[7],j[8]!==v?(f=(0,a.jsxs)("div",{className:"d-flex",style:u,children:[p,(0,a.jsx)("div",{className:"w-100 min-w-0",style:x,children:v})]}),j[8]=v,j[9]=f):f=j[9],j[10]!==N||j[11]!==l||j[12]!==f?(b=(0,a.jsxs)("div",{className:N,children:[l,f]}),j[10]=N,j[11]=l,j[12]=f,j[13]=b):b=j[13],b}let sd=e=>(0,a.jsx)(si,{children:(0,a.jsx)(sc,{children:e})})},87095:(e,s,t)=>{"use strict";t.d(s,{CI:()=>x,PY:()=>c,V3:()=>u,c_:()=>b,rs:()=>m});var a=t(75155),r=t(12482),n=t(93251),l=t(16932),o=t(6876),i=t(98142);function c(){let e,s=(0,a.c)(1);return s[0]===Symbol.for("react.memo_cache_sentinel")?(e={queryKey:["saved-search"],queryFn:d},s[0]=e):e=s[0],(0,r.I)(e)}async function d(){return i.VO?[]:(0,o.Q5)("saved-search").json()}function m(e,s){let t,n,l,o,i=(0,a.c)(8),{id:c}=e;i[0]!==s?(t=void 0===s?{}:s,i[0]=s,i[1]=t):t=i[1];let d=t;return i[2]===Symbol.for("react.memo_cache_sentinel")?(n=["saved-search"],i[2]=n):n=i[2],i[3]!==c?(l=e=>e.find(e=>e.id===c),i[3]=c,i[4]=l):l=i[4],i[5]!==d||i[6]!==l?(o={queryKey:n,queryFn:h,select:l,...d},i[5]=d,i[6]=l,i[7]=o):o=i[7],(0,r.I)(o)}function h(){return i.VO?[]:(0,o.Q5)("saved-search").json()}function u(){let e,s=(0,a.c)(2),t=(0,n.jE)();return s[0]!==t?(e={mutationFn:p,onSuccess:()=>{t.invalidateQueries({queryKey:["saved-search"]})}},s[0]=t,s[1]=e):e=s[1],(0,l.n)(e)}function p(e){return(0,o.Q5)("saved-search",{method:"POST",json:e}).json()}function x(){let e,s=(0,a.c)(2),t=(0,n.jE)();return s[0]!==t?(e={mutationFn:f,onSuccess:()=>{t.invalidateQueries({queryKey:["saved-search"]})}},s[0]=t,s[1]=e):e=s[1],(0,l.n)(e)}function f(e){return(0,o.Q5)(`saved-search/${e.id}`,{method:"PATCH",json:e}).json()}function b(){let e,s=(0,a.c)(2),t=(0,n.jE)();return s[0]!==t?(e={mutationFn:j,onSuccess:()=>{t.invalidateQueries({queryKey:["saved-search"]})}},s[0]=t,s[1]=e):e=s[1],(0,l.n)(e)}function j(e){return(0,o.Q5)(`saved-search/${e}`,{method:"DELETE"}).json()}},97344:(e,s,t)=>{"use strict";t.d(s,{L9:()=>b,MZ:()=>v,mG:()=>x,pc:()=>g,vY:()=>u});var a=t(75155),r=t(55729),n=t(41038),l=t(60665),o=t(93251),i=t(16932),c=t(12482),d=t(92917),m=t(6876),h=t(98142);function u(){let e,s=(0,a.c)(2),t=(0,o.jE)();return s[0]!==t?(e={mutationFn:p,onSuccess:()=>{t.invalidateQueries({queryKey:["dashboards"]})}},s[0]=t,s[1]=e):e=s[1],(0,i.n)(e)}async function p(e){await (0,m.Q5)(`dashboards/${e.id}`,{method:"PATCH",json:e})}function x(){let e,s=(0,a.c)(2),t=(0,o.jE)();return s[0]!==t?(e={mutationFn:f,onSuccess:()=>{t.invalidateQueries({queryKey:["dashboards"]})}},s[0]=t,s[1]=e):e=s[1],(0,i.n)(e)}async function f(e){return(0,m.Q5)("dashboards",{method:"POST",json:e}).json()}function b(){let e,s=(0,a.c)(1);return s[0]===Symbol.for("react.memo_cache_sentinel")?(e={queryKey:["dashboards"],queryFn:j},s[0]=e):e=s[0],(0,c.I)(e)}async function j(){return h.VO?[]:(0,m.Q5)("dashboards").json()}function v(e){let s,t,o,i,m,h,p,x,f,b=(0,a.c)(23),{dashboardId:j,presetConfig:v}=e;b[0]!==v?(s=v??{id:"",name:"My New Dashboard",tiles:[],tags:[]},b[0]=v,b[1]=s):s=b[1];let g=s;b[2]===Symbol.for("react.memo_cache_sentinel")?(t=(0,n.os)(),b[2]=t):t=b[2];let[y,k]=(0,n.ZA)("dashboard",t),S=u();b[3]===Symbol.for("react.memo_cache_sentinel")?(o=["dashboards"],b[3]=o):o=b[3],b[4]!==j?(i=e=>e.find(e=>e.id===j),b[4]=j,b[5]=i):i=b[5];let N=null!=j;b[6]!==i||b[7]!==N?(m={queryKey:o,queryFn:_,select:i,enabled:N},b[6]=i,b[7]=N,b[8]=m):m=b[8];let{data:C,isFetching:A}=(0,c.I)(m),[w,z]=(0,r.useState)(!1),I=null==j;e:{if(I){h=y??g;break e}h=C}let M=h;b[9]!==I||b[10]!==k||b[11]!==S?(p=(e,s,t)=>{if(!I)return z(!0),S.mutate(e,{onSuccess:()=>{z(!1),s?.()},onError:e=>{z(!1),l.$e.show({color:"red",title:"Unable to save dashboard",message:e.message.slice(0,100),autoClose:5e3}),t?.()}});k(e),s?.()},b[9]=I,b[10]=k,b[11]=S,b[12]=p):p=b[12];let E=p;b[13]!==M||b[14]!==j?(x=null!=j?j:(0,d.s5)(`${JSON.stringify(M)}`),b[13]=M,b[14]=j,b[15]=x):x=b[15];let D=x;return b[16]!==M||b[17]!==D||b[18]!==A||b[19]!==I||b[20]!==w||b[21]!==E?(f={dashboard:M,setDashboard:E,dashboardHash:D,isLocalDashboard:I,isFetching:A,isSetting:w},b[16]=M,b[17]=D,b[18]=A,b[19]=I,b[20]=w,b[21]=E,b[22]=f):f=b[22],f}function _(){return(0,m.Q5)("dashboards").json()}function g(){let e,s=(0,a.c)(2),t=(0,o.jE)();return s[0]!==t?(e={mutationFn:y,onSuccess:()=>{t.invalidateQueries({queryKey:["dashboards"]})}},s[0]=t,s[1]=e):e=s[1],(0,i.n)(e)}function y(e){return(0,m.Q5)(`dashboards/${e}`,{method:"DELETE"}).json()}}}]); \ No newline at end of file diff --git a/out/_next/static/chunks/3999-487ca1292f0acaac.js b/out/_next/static/chunks/6747-5f252862c306208a.js similarity index 51% rename from out/_next/static/chunks/3999-487ca1292f0acaac.js rename to out/_next/static/chunks/6747-5f252862c306208a.js index b42442d..407d30d 100644 --- a/out/_next/static/chunks/3999-487ca1292f0acaac.js +++ b/out/_next/static/chunks/6747-5f252862c306208a.js @@ -1,3 +1,3 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3999],{291:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},620:(e,t,r)=>{var n=r(11229),o=r(16999),i=r(41016),a=r(62220),s=r(47508);function u(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t{var n=r(54703);e.exports=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(e){}}()},1775:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SimpleColumnTypes=t.ColumnTypeParseError=void 0,t.parseColumnType=n,t.parseDecimalType=o,t.parseEnumType=i,t.parseMapType=a,t.parseTupleType=s,t.parseArrayType=u,t.parseDateTimeType=l,t.parseDateTime64Type=c,t.parseFixedStringType=p,t.asNullableType=f,t.getElementsTypes=h;class r extends Error{constructor(e,t){super(e),Object.defineProperty(this,"args",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.args=t??{},Object.setPrototypeOf(this,r.prototype)}}function n(e){let n,h=e,O=!1;if(h.startsWith(y)&&(h=h.slice(y.length,-1)),h.startsWith(d)&&(h=h.slice(d.length,-1),O=!0),t.SimpleColumnTypes.includes(h))n={type:"Simple",columnType:h,sourceType:e};else if(h.startsWith(v))n=o({sourceType:e,columnType:h});else if(h.startsWith(x))n=c({sourceType:e,columnType:h});else if(h.startsWith(S))n=l({sourceType:e,columnType:h});else if(h.startsWith(j))n=p({sourceType:e,columnType:h});else if(h.startsWith(b)||h.startsWith(w))n=i({sourceType:e,columnType:h});else if(h.startsWith(m))n=u({sourceType:e,columnType:h});else if(h.startsWith(g))n=a({sourceType:e,columnType:h});else if(h.startsWith(_))n=s({sourceType:e,columnType:h});else throw new r("Unsupported column type",{columnType:h});return O?f(n,e):n}function o({columnType:e,sourceType:t}){if(!e.startsWith(v)||e.length76)throw new r("Invalid Decimal precision",{columnType:e,sourceType:t,precision:i});let a=parseInt(n[1],10);if(Number.isNaN(a)||a<0||a>i)throw new r("Invalid Decimal scale",{columnType:e,sourceType:t,precision:i,scale:a});return i>38?o=256:i>18?o=128:i>9&&(o=64),{type:"Decimal",params:{precision:i,scale:a,intSize:o},sourceType:t}}function i({columnType:e,sourceType:t}){let n;if(e.startsWith(b))e=e.slice(b.length,-1),n=8;else if(e.startsWith(w))e=e.slice(w.length,-1),n=16;else throw new r("Expected Enum to be either Enum8 or Enum16",{columnType:e,sourceType:t});if(e.length<6)throw new r("Invalid Enum type values",{columnType:e,sourceType:t});let o=[],i=[],a=!0,s=!1,u=1;for(let n=1;nN)&&(c(u,n),n+=2,u=n+1,a=!0,s=!1);if(c(u,e.length),o.length!==i.length)throw new r("Expected Enum to have the same number of names and indices",{columnType:e,sourceType:t,names:o,indices:i});let l={};for(let e=0;en(e)),sourceType:t}}function u({columnType:e,sourceType:t}){if(!e.startsWith(m)||e.length0;)if(e.startsWith(m))e=e.slice(m.length,-1),o++;else break;if(0===o||o>10)throw new r("Expected Array to have between 1 and 10 dimensions",{columnType:e});let i=n(e);if("Array"===i.type)throw new r("Unexpected Array as value type",{columnType:e,sourceType:t});return{type:"Array",value:i,dimensions:o,sourceType:t}}function l({columnType:e,sourceType:t}){if(e.startsWith(O)&&e.length>O.length+4)return{type:"DateTime",timezone:e.slice(O.length+1,-2),sourceType:t};if(e.startsWith(S)&&e.length===S.length)return{type:"DateTime",timezone:null,sourceType:t};throw new r("Invalid DateTime type",{columnType:e,sourceType:t})}function c({columnType:e,sourceType:t}){if(!e.startsWith(x)||e.length9)throw new r("Invalid DateTime64 precision",{columnType:e,sourceType:t,precision:n});let o=null;return e.length>x.length+2&&(o=e.slice(x.length+4,-2)),{type:"DateTime64",timezone:o,precision:n,sourceType:t}}function p({columnType:e,sourceType:t}){if(!e.startsWith(j)||e.length{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ClickHouseClient=void 0;let n=r(7117),o=r(42953);class i{constructor(e){Object.defineProperty(this,"clientClickHouseSettings",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"connectionParams",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"connection",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"makeResultSet",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"valuesEncoder",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sessionId",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"role",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"logWriter",{enumerable:!0,configurable:!0,writable:!0,value:void 0});const t=e?.log?.LoggerClass?new e.log.LoggerClass:new n.DefaultLogger,r=(0,o.prepareConfigWithURL)(e,t,e.impl.handle_specific_url_params??null);this.connectionParams=(0,o.getConnectionParams)(r,t),this.logWriter=this.connectionParams.log_writer,this.clientClickHouseSettings=this.connectionParams.clickhouse_settings,this.sessionId=e.session_id,this.role=e.role,this.connection=e.impl.make_connection(r,this.connectionParams),this.makeResultSet=e.impl.make_result_set,this.valuesEncoder=e.impl.values_encoder}async query(e){var t,r;let n=e.format??"JSON",o=(t=e.query,r=n,(t=a(t=t.trim()))+" \nFORMAT "+r),i=this.withClientQueryParams(e),{stream:s,query_id:u,response_headers:l}=await this.connection.query({query:o,...i});return this.makeResultSet(s,n,u,e=>{this.logWriter.error({err:e,module:"Client",message:"Error while processing the ResultSet.",args:{session_id:i.session_id,role:i.role,query:o,query_id:u}})},l)}async command(e){let t=a(e.query.trim());return await this.connection.command({query:t,...this.withClientQueryParams(e)})}async exec(e){let t=a(e.query.trim()),r="values"in e?e.values:void 0,n=e.decompress_response_stream??!0;return await this.connection.exec({query:t,values:r,decompress_response_stream:n,...this.withClientQueryParams(e)})}async insert(e){if(Array.isArray(e.values)&&0===e.values.length)return{executed:!1,query_id:"",response_headers:{}};let t=e.format||"JSONCompactEachRow";this.valuesEncoder.validateInsertValues(e.values,t);let r=function(e,t){let r="";if(void 0!==e.columns)if(Array.isArray(e.columns)&&e.columns.length>0)r=` (${e.columns.join(", ")})`;else{var n;null!=(n=e.columns)&&"object"==typeof n&&Object.prototype.hasOwnProperty.call(n,"except")&&e.columns.except.length>0&&(r=` (* EXCEPT (${e.columns.except.join(", ")}))`)}return`INSERT INTO ${e.table.trim()}${r} FORMAT ${t}`}(e,t);return{...await this.connection.insert({query:r,values:this.valuesEncoder.encodeValues(e.values,t),...this.withClientQueryParams(e)}),executed:!0}}async ping(e){return await this.connection.ping(e??{select:!1})}async close(){return await this.connection.close()}withClientQueryParams(e){return{clickhouse_settings:{...this.clientClickHouseSettings,...e.clickhouse_settings},query_params:e.query_params,abort_signal:e.abort_signal,query_id:e.query_id,session_id:e.session_id??this.sessionId,role:e.role??this.role,auth:e.auth,http_headers:e.http_headers}}}function a(e){let t=e.length;for(let r=t;r>0;r--)if(";"!==e[r-1]){t=r;break}return t!==e.length?e.slice(0,t):e}t.ClickHouseClient=i},3128:(e,t,r)=>{var n=r(4650),o=r(95345),i=r(291),a=r(46468),s=r(36704),u=r(22344);function l(e){var t=this.__data__=new n(e);this.size=t.size}l.prototype.clear=o,l.prototype.delete=i,l.prototype.get=a,l.prototype.has=s,l.prototype.set=u,e.exports=l},3540:e=>{e.exports=function(e){return function(t){return e(t)}}},3619:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},4650:(e,t,r)=>{var n=r(21895),o=r(15917),i=r(52182),a=r(5514),s=r(92786);function u(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TupleParam=t.isException=t.isRow=t.isProgressRow=t.SimpleColumnTypes=t.parseColumnType=t.SettingsMap=t.ClickHouseLogLevel=t.parseError=t.ClickHouseError=t.ResultSet=t.createClient=void 0;var n=r(98491);Object.defineProperty(t,"createClient",{enumerable:!0,get:function(){return n.createClient}});var o=r(29598);Object.defineProperty(t,"ResultSet",{enumerable:!0,get:function(){return o.ResultSet}});var i=r(7117);Object.defineProperty(t,"ClickHouseError",{enumerable:!0,get:function(){return i.ClickHouseError}}),Object.defineProperty(t,"parseError",{enumerable:!0,get:function(){return i.parseError}}),Object.defineProperty(t,"ClickHouseLogLevel",{enumerable:!0,get:function(){return i.ClickHouseLogLevel}}),Object.defineProperty(t,"SettingsMap",{enumerable:!0,get:function(){return i.SettingsMap}}),Object.defineProperty(t,"parseColumnType",{enumerable:!0,get:function(){return i.parseColumnType}}),Object.defineProperty(t,"SimpleColumnTypes",{enumerable:!0,get:function(){return i.SimpleColumnTypes}}),Object.defineProperty(t,"isProgressRow",{enumerable:!0,get:function(){return i.isProgressRow}}),Object.defineProperty(t,"isRow",{enumerable:!0,get:function(){return i.isRow}}),Object.defineProperty(t,"isException",{enumerable:!0,get:function(){return i.isException}}),Object.defineProperty(t,"TupleParam",{enumerable:!0,get:function(){return i.TupleParam}})},5461:(e,t,r)=>{var n=r(30147),o=r(63912),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols;e.exports=a?function(e){return null==e?[]:n(a(e=Object(e)),function(t){return i.call(e,t)})}:o},5514:(e,t,r)=>{var n=r(36592);e.exports=function(e){return n(this.__data__,e)>-1}},5549:e=>{e.exports=function(e){return e}},7018:e=>{e.exports=function(){return!1}},7117:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.enhanceStackTrace=t.getCurrentStackTrace=t.DefaultLogger=t.LogWriter=t.isJWTAuth=t.isCredentialsAuth=t.withHttpSettings=t.withCompressionHeaders=t.transformUrl=t.toSearchParams=t.sleep=t.isSuccessfulResponse=t.numberConfigURLValue=t.getConnectionParams=t.enumConfigURLValue=t.booleanConfigURLValue=t.validateStreamFormat=t.isNotStreamableJSONFamily=t.isStreamableJSONFamily=t.isSupportedRawFormat=t.encodeJSON=t.formatQueryParams=t.formatQuerySettings=t.parseColumnType=t.SimpleColumnTypes=t.SettingsMap=t.isException=t.isRow=t.isProgressRow=t.ClickHouseLogLevel=t.parseError=t.ClickHouseError=t.TupleParam=t.ClickHouseClient=void 0;var n=r(3040);Object.defineProperty(t,"ClickHouseClient",{enumerable:!0,get:function(){return n.ClickHouseClient}});var o=r(25701);Object.defineProperty(t,"TupleParam",{enumerable:!0,get:function(){return o.TupleParam}});var i=r(32744);Object.defineProperty(t,"ClickHouseError",{enumerable:!0,get:function(){return i.ClickHouseError}}),Object.defineProperty(t,"parseError",{enumerable:!0,get:function(){return i.parseError}});var a=r(14303);Object.defineProperty(t,"ClickHouseLogLevel",{enumerable:!0,get:function(){return a.ClickHouseLogLevel}});var s=r(99469);Object.defineProperty(t,"isProgressRow",{enumerable:!0,get:function(){return s.isProgressRow}}),Object.defineProperty(t,"isRow",{enumerable:!0,get:function(){return s.isRow}}),Object.defineProperty(t,"isException",{enumerable:!0,get:function(){return s.isException}});var u=r(71354);Object.defineProperty(t,"SettingsMap",{enumerable:!0,get:function(){return u.SettingsMap}});var l=r(14529);Object.defineProperty(t,"SimpleColumnTypes",{enumerable:!0,get:function(){return l.SimpleColumnTypes}}),Object.defineProperty(t,"parseColumnType",{enumerable:!0,get:function(){return l.parseColumnType}});var c=r(25701);Object.defineProperty(t,"formatQuerySettings",{enumerable:!0,get:function(){return c.formatQuerySettings}}),Object.defineProperty(t,"formatQueryParams",{enumerable:!0,get:function(){return c.formatQueryParams}}),Object.defineProperty(t,"encodeJSON",{enumerable:!0,get:function(){return c.encodeJSON}}),Object.defineProperty(t,"isSupportedRawFormat",{enumerable:!0,get:function(){return c.isSupportedRawFormat}}),Object.defineProperty(t,"isStreamableJSONFamily",{enumerable:!0,get:function(){return c.isStreamableJSONFamily}}),Object.defineProperty(t,"isNotStreamableJSONFamily",{enumerable:!0,get:function(){return c.isNotStreamableJSONFamily}}),Object.defineProperty(t,"validateStreamFormat",{enumerable:!0,get:function(){return c.validateStreamFormat}});var p=r(42953);Object.defineProperty(t,"booleanConfigURLValue",{enumerable:!0,get:function(){return p.booleanConfigURLValue}}),Object.defineProperty(t,"enumConfigURLValue",{enumerable:!0,get:function(){return p.enumConfigURLValue}}),Object.defineProperty(t,"getConnectionParams",{enumerable:!0,get:function(){return p.getConnectionParams}}),Object.defineProperty(t,"numberConfigURLValue",{enumerable:!0,get:function(){return p.numberConfigURLValue}});var f=r(44555);Object.defineProperty(t,"isSuccessfulResponse",{enumerable:!0,get:function(){return f.isSuccessfulResponse}}),Object.defineProperty(t,"sleep",{enumerable:!0,get:function(){return f.sleep}}),Object.defineProperty(t,"toSearchParams",{enumerable:!0,get:function(){return f.toSearchParams}}),Object.defineProperty(t,"transformUrl",{enumerable:!0,get:function(){return f.transformUrl}}),Object.defineProperty(t,"withCompressionHeaders",{enumerable:!0,get:function(){return f.withCompressionHeaders}}),Object.defineProperty(t,"withHttpSettings",{enumerable:!0,get:function(){return f.withHttpSettings}}),Object.defineProperty(t,"isCredentialsAuth",{enumerable:!0,get:function(){return f.isCredentialsAuth}}),Object.defineProperty(t,"isJWTAuth",{enumerable:!0,get:function(){return f.isJWTAuth}});var h=r(14303);Object.defineProperty(t,"LogWriter",{enumerable:!0,get:function(){return h.LogWriter}}),Object.defineProperty(t,"DefaultLogger",{enumerable:!0,get:function(){return h.DefaultLogger}});var d=r(32744);Object.defineProperty(t,"getCurrentStackTrace",{enumerable:!0,get:function(){return d.getCurrentStackTrace}}),Object.defineProperty(t,"enhanceStackTrace",{enumerable:!0,get:function(){return d.enhanceStackTrace}})},7131:(e,t,r)=>{e.exports=r(33946)(Object.keys,Object)},8546:(e,t,r)=>{var n=r(92812),o=r(23183);e.exports=function(e,t){return null!=e&&o(e,t,n)}},8947:(e,t,r)=>{var n=r(81597),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g;e.exports=n(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,function(e,r,n,o){t.push(n?o.replace(i,"$1"):r||e)}),t})},9541:(e,t,r)=>{e=r.nmd(e);var n=r(45516),o=r(7018),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,s=a&&a.exports===i?n.Buffer:void 0,u=s?s.isBuffer:void 0;e.exports=u||o},9841:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var n=(0,r(41495).A)("outline","chart-line","IconChartLine",[["path",{d:"M4 19l16 0",key:"svg-0"}],["path",{d:"M4 15l4 -6l4 2l4 -5l4 4",key:"svg-1"}]])},9929:(e,t,r)=>{e.exports=r(54703)(r(45516),"Promise")},10858:(e,t,r)=>{e.exports=r(33946)(Object.getPrototypeOf,Object)},11229:(e,t,r)=>{var n=r(81707);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},11720:(e,t,r)=>{var n=r(86414);e.exports=function(e){return n(this,e).get(e)}},12342:(e,t,r)=>{var n=r(25080),o=r(42209),i=r(91544),a=n?n.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||o(e)||!!(a&&e&&e[a])}},13011:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(92190),t)},13574:(e,t,r)=>{var n=r(25080),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=n?n.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),r=e[s];try{e[s]=void 0;var n=!0}catch(e){}var o=a.call(e);return n&&(t?e[s]=r:delete e[s]),o}},13920:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var n=typeof e;return!!(r=null==r?0x1fffffffffffff:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e{"use strict";var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.ClickHouseLogLevel=t.LogWriter=t.DefaultLogger=void 0;class o{trace({module:e,message:t,args:r}){let n=[a({module:e,message:t,level:"TRACE"})];r&&n.push("\nArguments:",r),console.debug(...n)}debug({module:e,message:t,args:r}){let n=[a({module:e,message:t,level:"DEBUG"})];r&&n.push("\nArguments:",r),console.debug(...n)}info({module:e,message:t,args:r}){let n=[a({module:e,message:t,level:"INFO"})];r&&n.push("\nArguments:",r),console.info(...n)}warn({module:e,message:t,args:r,err:n}){let o=[a({module:e,message:t,level:"WARN"})];r&&o.push("\nArguments:",r),n&&o.push("\nCaused by:",n),console.warn(...o)}error({module:e,message:t,args:r,err:n}){let o=[a({module:e,message:t,level:"ERROR"})];r&&o.push("\nArguments:",r),o.push("\nCaused by:",n),console.error(...o)}}t.DefaultLogger=o;class i{constructor(e,t,n){Object.defineProperty(this,"logger",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"module",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"logLevel",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.logLevel=n??r.OFF,this.info({message:`Log level is set to ${r[this.logLevel]}`})}trace(e){this.logLevel<=r.TRACE&&this.logger.trace({...e,module:e.module??this.module})}debug(e){this.logLevel<=r.DEBUG&&this.logger.debug({...e,module:e.module??this.module})}info(e){this.logLevel<=r.INFO&&this.logger.info({...e,module:e.module??this.module})}warn(e){this.logLevel<=r.WARN&&this.logger.warn({...e,module:e.module??this.module})}error(e){this.logLevel<=r.ERROR&&this.logger.error({...e,module:e.module??this.module})}}function a({level:e,module:t,message:r}){let n=new Date().toISOString();return`[${n}][${e}][@clickhouse/client][${t}] ${r}`}t.LogWriter=i,(n=r||(t.ClickHouseLogLevel=r={}))[n.TRACE=0]="TRACE",n[n.DEBUG=1]="DEBUG",n[n.INFO=2]="INFO",n[n.WARN=3]="WARN",n[n.ERROR=4]="ERROR",n[n.OFF=127]="OFF"},14529:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(1775),t)},15051:(e,t,r)=>{var n=r(29794),o=r(5461),i=r(87567);e.exports=function(e){return n(e,i,o)}},15565:(e,t,r)=>{var n=r(19515),o=r(24964),i=r(27288);e.exports=function(e){return i(o(e,void 0,n),e+"")}},15917:(e,t,r)=>{var n=r(36592),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0)&&(r==t.length-1?t.pop():o.call(t,r,1),--this.size,!0)}},16005:(e,t,r)=>{var n=r(69335),o=r(3540),i=r(73696),a=i&&i.isSet;e.exports=a?o(a):n},16153:(e,t,r)=>{var n=r(25080),o=r(88601),i=r(91544),a=r(50515),s=1/0,u=n?n.prototype:void 0,l=u?u.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return l?l.call(t):"";var r=t+"";return"0"==r&&1/t==-s?"-0":r}},16419:e=>{e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},16799:(e,t,r)=>{var n=r(98499),o=r(48039);e.exports=function(e){return null!=e&&o(e.length)&&!n(e)}},16875:(e,t,r)=>{var n=r(64022);e.exports=function(e){return n(e)?void 0:e}},16999:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=!!t,t}},17085:e=>{e.exports=function(e,t){for(var r=-1,n=Array(e);++r{var n=r(28676),o=r(85008),i=r(53576),a=r(40101),s=r(69504);e.exports=function(e,t,r){var u=e.constructor;switch(t){case"[object ArrayBuffer]":return n(e);case"[object Boolean]":case"[object Date]":return new u(+e);case"[object DataView]":return o(e,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(e,r);case"[object Map]":case"[object Set]":return new u;case"[object Number]":case"[object String]":return new u(e);case"[object RegExp]":return i(e);case"[object Symbol]":return a(e)}}},18482:(e,t,r)=>{var n=r(23356),o=r(23282),i=r(80244),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return i(e);var t=o(e),r=[];for(var s in e)"constructor"==s&&(t||!a.call(e,s))||r.push(s);return r}},19515:(e,t,r)=>{var n=r(83965);e.exports=function(e){return(null==e?0:e.length)?n(e,1):[]}},21895:e=>{e.exports=function(){this.__data__=[],this.size=0}},22344:(e,t,r)=>{var n=r(4650),o=r(50874),i=r(33276);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var a=r.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new i(a)}return r.set(e,t),this.size=r.size,this}},22346:(e,t,r)=>{var n=r(3128),o=r(58120),i=r(81014),a=r(46060),s=r(88447),u=r(28915),l=r(97722),c=r(87274),p=r(58489),f=r(15051),h=r(63127),d=r(53140),y=r(71388),v=r(17706),m=r(87568),g=r(91544),b=r(9541),w=r(37560),_=r(23356),S=r(16005),O=r(87567),x=r(70720),j="[object Arguments]",C="[object Function]",P="[object Object]",A={};A[j]=A["[object Array]"]=A["[object ArrayBuffer]"]=A["[object DataView]"]=A["[object Boolean]"]=A["[object Date]"]=A["[object Float32Array]"]=A["[object Float64Array]"]=A["[object Int8Array]"]=A["[object Int16Array]"]=A["[object Int32Array]"]=A["[object Map]"]=A["[object Number]"]=A[P]=A["[object RegExp]"]=A["[object Set]"]=A["[object String]"]=A["[object Symbol]"]=A["[object Uint8Array]"]=A["[object Uint8ClampedArray]"]=A["[object Uint16Array]"]=A["[object Uint32Array]"]=!0,A["[object Error]"]=A[C]=A["[object WeakMap]"]=!1,e.exports=function e(t,r,E,k,N,T){var R,I=1&r,M=2&r,q=4&r;if(E&&(R=N?E(t,k,N,T):E(t)),void 0!==R)return R;if(!_(t))return t;var L=g(t);if(L){if(R=y(t),!I)return l(t,R)}else{var U=d(t),D=U==C||"[object GeneratorFunction]"==U;if(b(t))return u(t,I);if(U==P||U==j||D&&!N){if(R=M||D?{}:m(t),!I)return M?p(t,s(R,t)):c(t,a(R,t))}else{if(!A[U])return N?t:{};R=v(t,U,I)}}T||(T=new n);var F=T.get(t);if(F)return F;T.set(t,R),S(t)?t.forEach(function(n){R.add(e(n,r,E,n,t,T))}):w(t)&&t.forEach(function(n,o){R.set(o,e(n,r,E,o,t,T))});var J=q?M?h:f:M?x:O,$=L?void 0:J(t);return o($||t,function(n,o){$&&(n=t[o=n]),i(R,o,e(n,r,E,o,t,T))}),R}},22599:(e,t,r)=>{"use strict";r.d(t,{S:()=>m});var n=r(6029),o=r(45089),i=r(55729),a=r(15862),s=r(80616),u=r(36504),l=r(60481),c=r(43016),p=r(56760),f=r(3465),h=r(56655);function d(e){return e?.current?e.current.scrollHeight:"auto"}let y="u">typeof window&&window.requestAnimationFrame,v={transitionDuration:200,transitionTimingFunction:"ease",animateOpacity:!0},m=(0,c.P9)((e,t)=>{let{children:r,in:c,transitionDuration:m,transitionTimingFunction:g,style:b,onTransitionEnd:w,animateOpacity:_,...S}=(0,s.Y)("Collapse",v,e),O=(0,a.xd)(),x=(0,o.I)(),j=O.respectReducedMotion&&x?0:m,C=function({transitionDuration:e,transitionTimingFunction:t="ease",onTransitionEnd:r=()=>{},opened:n}){let o=(0,i.useRef)(null),a={height:0,overflow:"hidden"},[s,u]=(0,i.useState)(n?{}:a),l=e=>{(0,p.flushSync)(()=>u(e))},c=e=>{l(t=>({...t,...e}))};function v(r){let n=e||function(e){if(!e||"string"==typeof e)return 0;let t=e/36;return Math.round((4+15*t**.25+t/5)*10)}(r);return{transition:`height ${n}ms ${t}, opacity ${n}ms ${t}`}}(0,f.C)(()=>{"function"==typeof y&&(n?y(()=>{c({willChange:"height",display:"block",overflow:"hidden"}),y(()=>{let e=d(o);c({...v(e),height:e})})}):y(()=>{let e=d(o);c({...v(e),willChange:"height",height:e}),y(()=>c({height:0,overflow:"hidden"}))}))},[n]);let m=e=>{if(e.target===o.current&&"height"===e.propertyName)if(n){let e=d(o);e===s.height?l({}):c({height:e}),r()}else 0===s.height&&(l(a),r())};return function({style:e={},refKey:t="ref",...r}={}){let a=r[t],u={"aria-hidden":!n,...r,[t]:(0,h.Px)(o,a),onTransitionEnd:m,style:{boxSizing:"border-box",...e,...s}};return i.version.startsWith("18")?n||(u.inert=""):u.inert=!n,u}}({opened:c,transitionDuration:j,transitionTimingFunction:g,onTransitionEnd:w});return 0===j?c?(0,n.jsx)(l.a,{...S,children:r}):null:(0,n.jsx)(l.a,{...C({style:{opacity:c||!_?1:0,transition:_?`opacity ${j}ms ${g}`:"none",...(0,u.X)(b,O)},ref:t,...S}),children:r})});m.displayName="@mantine/core/Collapse"},23079:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},23183:(e,t,r)=>{var n=r(25248),o=r(42209),i=r(91544),a=r(13920),s=r(48039),u=r(43092);e.exports=function(e,t,r){t=n(t,e);for(var l=-1,c=t.length,p=!1;++l{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},23356:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},24127:(e,t,r)=>{var n=r(25248),o=r(43092);e.exports=function(e,t){t=n(t,e);for(var r=0,i=t.length;null!=e&&r{e.exports=r(54703)(r(45516),"WeakMap")},24877:(e,t,r)=>{var n,o=r(62272),i=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!i&&i in e}},24964:(e,t,r)=>{var n=r(93248),o=Math.max;e.exports=function(e,t,r){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,s=o(i.length-t,0),u=Array(s);++a{e.exports=r(45516).Symbol},25248:(e,t,r)=>{var n=r(91544),o=r(25907),i=r(8947),a=r(60567);e.exports=function(e,t){return n(e)?e:o(e,t)?[e]:i(a(e))}},25701:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.formatQuerySettings=t.formatQueryParams=t.TupleParam=void 0,o(r(90327),t);var i=r(65086);Object.defineProperty(t,"TupleParam",{enumerable:!0,get:function(){return i.TupleParam}}),Object.defineProperty(t,"formatQueryParams",{enumerable:!0,get:function(){return i.formatQueryParams}});var a=r(57469);Object.defineProperty(t,"formatQuerySettings",{enumerable:!0,get:function(){return a.formatQuerySettings}})},25907:(e,t,r)=>{var n=r(91544),o=r(50515),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(n(e))return!1;var r=typeof e;return!!("number"==r||"symbol"==r||"boolean"==r||null==e||o(e))||a.test(e)||!i.test(e)||null!=t&&e in Object(t)}},26027:(e,t,r)=>{var n=r(81014),o=r(25248),i=r(13920),a=r(23356),s=r(43092);e.exports=function(e,t,r,u){if(!a(e))return e;t=o(t,e);for(var l=-1,c=t.length,p=c-1,f=e;null!=f&&++l{e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n{var n=r(86347);e.exports=r(43862)(n)},28340:(e,t,r)=>{var n=r(33573),o=r(48039),i=r(3619),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[n(e)]}},28506:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isStream=function(e){return null!=e&&"function"==typeof e.pipeThrough},t.getAsText=r;async function r(e){let t="",r=!1,n=new TextDecoder,o=e.getReader();for(;!r;){let{done:e,value:i}=await o.read(),a=n.decode(i,{stream:!0});if(a.length+t.length>0x1fffffe8)throw Error("The response length exceeds the maximum allowed size of V8 String: 536870888; consider limiting the amount of requested rows.");t+=a,r=e}return t+n.decode()}},28676:(e,t,r)=>{var n=r(50025);e.exports=function(e){var t=new e.constructor(e.byteLength);return new n(t).set(new n(e)),t}},28915:(e,t,r)=>{e=r.nmd(e);var n=r(45516),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?n.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var r=e.length,n=s?s(r):new e.constructor(r);return e.copy(n),n}},29594:(e,t,r)=>{var n=r(84536);e.exports=r(15565)(function(e,t){return null==e?{}:n(e,t)})},29598:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResultSet=void 0;let n=r(7117),o=r(83374);class i{constructor(e,t,r,n){Object.defineProperty(this,"_stream",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"format",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"query_id",{enumerable:!0,configurable:!0,writable:!0,value:r}),Object.defineProperty(this,"response_headers",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"isAlreadyConsumed",{enumerable:!0,configurable:!0,writable:!0,value:!1}),this.response_headers=void 0!==n?Object.freeze(n):{}}async text(){return this.markAsConsumed(),(0,o.getAsText)(this._stream)}async json(){if((0,n.isStreamableJSONFamily)(this.format)){let e=[],t=this.stream().getReader();for(;;){let{done:r,value:n}=await t.read();if(r)break;for(let t of n)e.push(t.json())}return e}if((0,n.isNotStreamableJSONFamily)(this.format))return JSON.parse(await (0,o.getAsText)(this._stream));throw Error(`Cannot decode ${this.format} as JSON`)}stream(){this.markAsConsumed(),(0,n.validateStreamFormat)(this.format);let e=[],t=0,r=new TextDecoder("utf-8"),o=new TransformStream({start(){},transform:(n,o)=>{let i;null===n&&o.terminate();let a=[],s=0;do if(-1===(i=n.indexOf(10,s))){let r=n.slice(s);e.push(r),t+=r.length,a.length>0&&o.enqueue(a)}else{let o;if(e.length>0){let a=new Uint8Array(t+i),s=0;e.forEach(e=>{a.set(e,s),s+=e.length});let u=n.slice(0,i);a.set(u,s),e=[],t=0,o=r.decode(a)}else o=r.decode(n.slice(s,i));a.push({text:o,json:()=>JSON.parse(o)}),s=i+1}while(-1!==i)}});return this._stream.pipeThrough(o,{preventClose:!1,preventAbort:!1,preventCancel:!1})}async close(){this.markAsConsumed(),await this._stream.cancel()}markAsConsumed(){if(this.isAlreadyConsumed)throw Error(a);this.isAlreadyConsumed=!0}}t.ResultSet=i;let a="Stream has been already consumed"},29778:(e,t,r)=>{var n=r(17085),o=r(42209),i=r(91544),a=r(9541),s=r(13920),u=r(43562),l=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=i(e),c=!r&&o(e),p=!r&&!c&&a(e),f=!r&&!c&&!p&&u(e),h=r||c||p||f,d=h?n(e.length,String):[],y=d.length;for(var v in e)(t||l.call(e,v))&&!(h&&("length"==v||p&&("offset"==v||"parent"==v)||f&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||s(v,y)))&&d.push(v);return d}},29794:(e,t,r)=>{var n=r(65517),o=r(91544);e.exports=function(e,t,r){var i=t(e);return o(e)?i:n(i,r(e))}},30110:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WebImpl=void 0;let n=r(13011),o=r(29598);t.WebImpl={make_connection:(e,t)=>new n.WebConnection({...t,fetch:e.fetch}),make_result_set:(e,t,r,n,i)=>new o.ResultSet(e,t,r,i),values_encoder:new(r(83374)).WebValuesEncoder}},30147:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,i=[];++r{e.exports=r(54703)(r(45516),"Set")},32744:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(82006),t)},33276:(e,t,r)=>{var n=r(95149),o=r(37175),i=r(11720),a=r(38684),s=r(35844);function u(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t{var n=r(25080),o=r(13574),i=r(23079),a=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},33863:e=>{e.exports=function(e){return function(){return e}}},33946:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},35844:(e,t,r)=>{var n=r(86414);e.exports=function(e,t){var r=n(this,e),o=r.size;return r.set(e,t),this.size+=+(r.size!=o),this}},36538:(e,t,r)=>{var n=r(51642).Buffer,o=/`/g,i=/\./g,a=/[\0\b\t\n\r\x1a\"\'\\]/g,s={"\0":"\\0","\b":"\\b"," ":"\\t","\n":"\\n","\r":"\\r","\x1a":"\\Z",'"':'\\"',"'":"\\'","\\":"\\\\"};function u(e){for(var t,r=a.lastIndex=0,n="";t=a.exec(e);)n+=e.slice(r,t.index)+s[t[0]],r=a.lastIndex;return 0===r?"'"+e+"'":r2)){var p=2===c?t.escapeId(r[l]):t.escape(r[l],n,o);u+=e.slice(a,i.index)+p,a=s.lastIndex,l++}}return 0===a?e:a{var n=r(66581);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return -1}},36704:e=>{e.exports=function(e){return this.__data__.has(e)}},36975:(e,t,r)=>{var n=r(33573),o=r(3619);e.exports=function(e){return o(e)&&"[object Arguments]"==n(e)}},37175:(e,t,r)=>{var n=r(86414);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=!!t,t}},37560:(e,t,r)=>{var n=r(83801),o=r(3540),i=r(73696),a=i&&i.isMap;e.exports=a?o(a):n},38684:(e,t,r)=>{var n=r(86414);e.exports=function(e){return n(this,e).has(e)}},40101:(e,t,r)=>{var n=r(25080),o=n?n.prototype:void 0,i=o?o.valueOf:void 0;e.exports=function(e){return i?Object(i.call(e)):{}}},41016:(e,t,r)=>{var n=r(81707),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(t,e)?t[e]:void 0}},41279:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var n=(0,r(41495).A)("outline","search","IconSearch",[["path",{d:"M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0",key:"svg-0"}],["path",{d:"M21 21l-6 -6",key:"svg-1"}]])},42209:(e,t,r)=>{var n=r(36975),o=r(3619),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable;e.exports=n(function(){return arguments}())?n:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")}},42953:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.prepareConfigWithURL=function(e,t,r){let n,s={...e};void 0!==s.additional_headers&&(t.warn({module:"Config",message:'"additional_headers" is deprecated. Use "http_headers" instead.'}),s.http_headers=s.additional_headers,delete s.additional_headers),void 0!==s.host?(t.warn({module:"Config",message:'"host" is deprecated. Use "url" instead.'}),n=i(s.host),delete s.host):n=i(s.url);let[u,l]=a(n,r),c=o(s,l,t);return void 0!==c.pathname&&(u.pathname=c.pathname),c.url=u,c},t.getConnectionParams=function(e,t){let r;if(void 0!==e.access_token){if(void 0!==e.username||void 0!==e.password)throw Error("Both access token and username/password are provided in the configuration. Please use only one authentication method.");r={access_token:e.access_token,type:"JWT"}}else r={username:e.username??"default",password:e.password??"",type:"Credentials"};return{auth:r,url:e.url,application_id:e.application,request_timeout:e.request_timeout??3e4,max_open_connections:e.max_open_connections??10,compression:{decompress_response:e.compression?.response??!1,compress_request:e.compression?.request??!1},database:e.database??"default",log_writer:new n.LogWriter(t,"Connection",e.log?.level),keep_alive:{enabled:e.keep_alive?.enabled??!0},clickhouse_settings:e.clickhouse_settings??{},http_headers:e.http_headers??{}}},t.mergeConfigs=o,t.createUrl=i,t.loadConfigOptionsFromURL=a,t.booleanConfigURLValue=s,t.numberConfigURLValue=u,t.enumConfigURLValue=l;let n=r(14303);function o(e,t,r){let n={...e};return!function e(t,n,o=[]){for(let i of Object.keys(n))if("object"==typeof n[i])e(t,n[i],o.concat(i));else{let e=t;for(let t of o)void 0===e[t]&&(e[t]={}),e=e[t];if(void 0!==e[i]){let e=o.concat(i).join(".");r.warn({module:"Config",message:`"${e}" is overridden by a URL parameter.`})}e[i]=n[i]}}(n,t),n}function i(e){let t;try{if(!("string"==typeof e||e instanceof URL))return new URL("http://localhost:8123");t=new URL(e)}catch(e){throw Error("ClickHouse URL is malformed. Expected format: http[s]://[username:password@]hostname:port[/database][?param1=value1¶m2=value2]",{cause:e})}if("http:"!==t.protocol&&"https:"!==t.protocol)throw Error(`ClickHouse URL protocol must be either http or https. Got: ${t.protocol}`);return t}function a(e,t){let r={};""!==e.username&&(r.username=decodeURIComponent(e.username)),""!==e.password&&(r.password=decodeURIComponent(e.password)),e.pathname.trim().length>1&&(r.database=e.pathname.slice(1));let o=[...e.searchParams.keys()];if(o.length>0){let i=new Set,a="clickhouse_setting_",c="http_header_";if(o.forEach(t=>{let o=!0,p=e.searchParams.get(t);if(t.startsWith(a)){let e=t.slice(a.length);void 0===r.clickhouse_settings&&(r.clickhouse_settings={}),r.clickhouse_settings[e]=p}else if(t.startsWith("ch_")){let e=t.slice(3);void 0===r.clickhouse_settings&&(r.clickhouse_settings={}),r.clickhouse_settings[e]=p}else if(t.startsWith(c)){let e=t.slice(c.length);void 0===r.http_headers&&(r.http_headers={}),r.http_headers[e]=p}else switch(t){case"application":r.application=p;break;case"pathname":r.pathname=p;break;case"session_id":r.session_id=p;break;case"request_timeout":r.request_timeout=u({key:t,value:p,min:0});break;case"max_open_connections":r.max_open_connections=u({key:t,value:p,min:1});break;case"compression_request":void 0===r.compression&&(r.compression={}),r.compression.request=s({key:t,value:p});break;case"compression_response":void 0===r.compression&&(r.compression={}),r.compression.response=s({key:t,value:p});break;case"log_level":void 0===r.log&&(r.log={}),r.log.level=l({key:t,value:p,enumObject:n.ClickHouseLogLevel});break;case"keep_alive_enabled":void 0===r.keep_alive&&(r.keep_alive={}),r.keep_alive.enabled=s({key:t,value:p});break;case"access_token":r.access_token=p;break;default:o=!1,i.add(t)}o&&e.searchParams.delete(t)}),null!==t){let n=t(r,e);r=n.config,i.size>0&&n.handled_params.forEach(e=>i.delete(e)),n.unknown_params.size>0&&n.unknown_params.forEach(e=>i.add(e))}if(i.size>0)throw Error(`Unknown URL parameters: ${Array.from(i).join(", ")}`)}return[new URL(`${e.protocol}//${e.host}`),r]}function s({key:e,value:t}){let r=t.trim();if("true"===r||"1"===r)return!0;if("false"===r||"0"===r)return!1;throw Error(`"${e}" has invalid boolean value: ${r}. Expected one of: 0, 1, true, false.`)}function u({key:e,value:t,min:r,max:n}){let o=t.trim(),i=Number(o);if(isNaN(i))throw Error(`"${e}" has invalid numeric value: ${o}`);if(void 0!==r&&in)throw Error(`"${e}" value ${o} is greater than max allowed ${n}`);return i}function l({key:e,value:t,enumObject:r}){let n=Object.keys(r).filter(e=>isNaN(Number(e))),o=t.trim();if(!n.includes(o)){let t=n.join(", ");throw Error(`"${e}" has invalid value: ${o}. Expected one of: ${t}.`)}return r[o]}},43085:(e,t,r)=>{"use strict";r.d(t,{E:()=>d});var n=r(6029);r(55729);var o=r(76),i=r(5618),a=r(66404),s=r(80616),u=r(37666),l=r(60481),c=r(63863),p={root:"m_347db0ec","root--dot":"m_fbd81e3d",label:"m_5add502a",section:"m_91fdda9b"};let f={},h=(0,i.V)((e,{radius:t,color:r,gradient:n,variant:i,size:s,autoContrast:u})=>{let l=e.variantColorResolver({color:r||e.primaryColor,theme:e,gradient:n,variant:i||"filled",autoContrast:u});return{root:{"--badge-height":(0,o.YC)(s,"badge-height"),"--badge-padding-x":(0,o.YC)(s,"badge-padding-x"),"--badge-fz":(0,o.YC)(s,"badge-fz"),"--badge-radius":void 0===t?void 0:(0,o.nJ)(t),"--badge-bg":r||i?l.background:void 0,"--badge-color":r||i?l.color:void 0,"--badge-bd":r||i?l.border:void 0,"--badge-dot-color":"dot"===i?(0,a.r)(r,e):void 0}}}),d=(0,c.v)((e,t)=>{let r=(0,s.Y)("Badge",f,e),{classNames:o,className:i,style:a,styles:c,unstyled:d,vars:y,radius:v,color:m,gradient:g,leftSection:b,rightSection:w,children:_,variant:S,fullWidth:O,autoContrast:x,circle:j,mod:C,...P}=r,A=(0,u.I)({name:"Badge",props:r,classes:p,className:i,style:a,classNames:o,styles:c,unstyled:d,vars:y,varsResolver:h});return(0,n.jsxs)(l.a,{variant:S,mod:[{block:O,circle:j,"with-right-section":!!w,"with-left-section":!!b},C],...A("root",{variant:S}),ref:t,...P,children:[b&&(0,n.jsx)("span",{...A("section"),"data-position":"left",children:b}),(0,n.jsx)("span",{...A("label"),children:_}),w&&(0,n.jsx)("span",{...A("section"),"data-position":"right",children:w})]})});d.classes=p,d.displayName="@mantine/core/Badge"},43092:(e,t,r)=>{var n=r(50515),o=1/0;e.exports=function(e){if("string"==typeof e||n(e))return e;var t=e+"";return"0"==t&&1/e==-o?"-0":t}},43233:(e,t,r)=>{var n=r(24127),o=r(26027),i=r(25248);e.exports=function(e,t,r){for(var a=-1,s=t.length,u={};++a{"use strict";var t="";e.exports=function e(r){if(!r)return"";var n="";return null!=r.start&&(n+=(r.parenthesized?"(":"")+r.start+" "),r.field&&r.field!==t&&(n+=r.field+":"),r.left&&(r.parenthesized&&!r.start&&(n+="("),n+=e(r.left),r.parenthesized&&!r.right&&(n+=")")),r.operator&&(r.left&&(n+=" "),r.operator!==t&&(n+=r.operator)),r.right&&(r.operator&&r.operator!==t&&(n+=" "),n+=e(r.right),r.parenthesized&&(n+=")")),(r.term||""===r.term&&r.quoted)&&(r.prefix&&(n+=r.prefix),r.quoted?(n+='"',n+=r.term,n+='"'):r.regex?(n+="/",n+=r.term,n+="/"):n+=r.term,null!=r.proximity&&(n+="~"+r.proximity),null!=r.boost&&(n+="^"+r.boost)),r.term_min&&("both"===r.inclusive||"left"===r.inclusive?n+="[":n+="{",n+=r.term_min,n+=" TO ",n+=r.term_max,"both"===r.inclusive||"right"===r.inclusive?n+="]":n+="}"),r.similarity&&(n+="~",.5!==r.similarity&&(n+=r.similarity)),n}},43562:(e,t,r)=>{var n=r(28340),o=r(3540),i=r(73696),a=i&&i.isTypedArray;e.exports=a?o(a):n},43701:(e,t,r)=>{var n=r(23282),o=r(7131),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return o(e);var t=[];for(var r in Object(e))i.call(e,r)&&"constructor"!=r&&t.push(r);return t}},43862:e=>{var t=Date.now;e.exports=function(e){var r=0,n=0;return function(){var o=t(),i=16-(o-n);if(n=o,i>0){if(++r>=800)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}},44555:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(70893),t),o(r(99496),t),o(r(75590),t)},45516:(e,t,r)=>{var n=r(97397),o="object"==typeof self&&self&&self.Object===Object&&self;e.exports=n||o||Function("return this")()},45749:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var n=(0,r(41495).A)("outline","clock","IconClock",[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M12 7v5l3 3",key:"svg-1"}]])},46060:(e,t,r)=>{var n=r(52634),o=r(87567);e.exports=function(e,t){return e&&n(t,o(t),e)}},46448:(e,t,r)=>{var n=r(24127),o=r(88165);e.exports=function(e,t){return t.length<2?e:n(e,o(t,0,-1))}},46468:e=>{e.exports=function(e){return this.__data__.get(e)}},47508:(e,t,r)=>{var n=r(81707);e.exports=function(e,t){var r=this.__data__;return this.size+=+!this.has(e),r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},48039:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff}},50025:(e,t,r)=>{e.exports=r(45516).Uint8Array},50515:(e,t,r)=>{var n=r(33573),o=r(3619);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==n(e)}},50874:(e,t,r)=>{e.exports=r(54703)(r(45516),"Map")},52182:(e,t,r)=>{var n=r(36592);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},52634:(e,t,r)=>{var n=r(81014),o=r(53325);e.exports=function(e,t,r,i){var a=!r;r||(r={});for(var s=-1,u=t.length;++s{var n=r(64593),o=r(50874),i=r(9929),a=r(31736),s=r(24490),u=r(33573),l=r(99048),c="[object Map]",p="[object Promise]",f="[object Set]",h="[object WeakMap]",d="[object DataView]",y=l(n),v=l(o),m=l(i),g=l(a),b=l(s),w=u;(n&&w(new n(new ArrayBuffer(1)))!=d||o&&w(new o)!=c||i&&w(i.resolve())!=p||a&&w(new a)!=f||s&&w(new s)!=h)&&(w=function(e){var t=u(e),r="[object Object]"==t?e.constructor:void 0,n=r?l(r):"";if(n)switch(n){case y:return d;case v:return c;case m:return p;case g:return f;case b:return h}return t}),e.exports=w},53325:(e,t,r)=>{var n=r(1278);e.exports=function(e,t,r){"__proto__"==t&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}},53576:e=>{var t=/\w*$/;e.exports=function(e){var r=new e.constructor(e.source,t.exec(e));return r.lastIndex=e.lastIndex,r}},54348:(e,t,r)=>{"use strict";var n=r(26387),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var r,i,a,s,u,l,c,p,f=!1;t||(t={}),a=t.debug||!1;try{if(u=n(),l=document.createRange(),c=document.getSelection(),(p=document.createElement("span")).textContent=e,p.ariaHidden="true",p.style.all="unset",p.style.position="fixed",p.style.top=0,p.style.clip="rect(0, 0, 0, 0)",p.style.whiteSpace="pre",p.style.webkitUserSelect="text",p.style.MozUserSelect="text",p.style.msUserSelect="text",p.style.userSelect="text",p.addEventListener("copy",function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),void 0===r.clipboardData){a&&console.warn("unable to use e.clipboardData"),a&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var n=o[t.format]||o.default;window.clipboardData.setData(n,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))}),document.body.appendChild(p),l.selectNodeContents(p),c.addRange(l),!document.execCommand("copy"))throw Error("copy command was unsuccessful");f=!0}catch(n){a&&console.error("unable to copy using execCommand: ",n),a&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),f=!0}catch(n){a&&console.error("unable to copy using clipboardData: ",n),a&&console.error("falling back to prompt"),r="message"in t?t.message:"Copy to clipboard: #{key}, Enter",i=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C",s=r.replace(/#{\s*key\s*}/g,i),window.prompt(s,e)}}finally{c&&("function"==typeof c.removeRange?c.removeRange(l):c.removeAllRanges()),p&&document.body.removeChild(p),u()}return f}},54703:(e,t,r)=>{var n=r(66046),o=r(72053);e.exports=function(e,t){var r=o(e,t);return n(r)?r:void 0}},55235:(e,t,r)=>{"use strict";var n=r(88688),o=r(80145);t.parse=n.parse.bind(n),t.toString=r(43353),t.term={escape:o.escape,unescape:o.unescape},t.phrase={escape:o.escapePhrase,unescape:o.unescapePhrase}},55765:(e,t,r)=>{var n=r(33276);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(o.Cache||n),r}o.Cache=n,e.exports=o},57469:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatQuerySettings=function(e){if("boolean"==typeof e)return e?"1":"0";if("number"==typeof e)return String(e);if("string"==typeof e)return e;if(e instanceof n.SettingsMap)return e.toString();throw Error(`Unsupported value in query settings: [${e}].`)};let n=r(71354)},58120:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r{var n=r(52634),o=r(63602);e.exports=function(e,t){return n(e,o(e),t)}},60567:(e,t,r)=>{var n=r(16153);e.exports=function(e){return null==e?"":n(e)}},62220:(e,t,r)=>{var n=r(81707),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:o.call(t,e)}},62272:(e,t,r)=>{e.exports=r(45516)["__core-js_shared__"]},63127:(e,t,r)=>{var n=r(29794),o=r(63602),i=r(70720);e.exports=function(e){return n(e,i,o)}},63602:(e,t,r)=>{var n=r(65517),o=r(10858),i=r(5461),a=r(63912);e.exports=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)n(t,i(e)),e=o(e);return t}:a},63912:e=>{e.exports=function(){return[]}},64022:(e,t,r)=>{var n=r(33573),o=r(10858),i=r(3619),a=Object.prototype,s=Function.prototype.toString,u=a.hasOwnProperty,l=s.call(Object);e.exports=function(e){if(!i(e)||"[object Object]"!=n(e))return!1;var t=o(e);if(null===t)return!0;var r=u.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&s.call(r)==l}},64593:(e,t,r)=>{e.exports=r(54703)(r(45516),"DataView")},65086:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TupleParam=void 0,t.formatQueryParams=n;class r{constructor(e){Object.defineProperty(this,"values",{enumerable:!0,configurable:!0,writable:!0,value:e})}}function n({value:e,wrapStringInQuotes:t,printNullAsKeyword:c}){if(null==e)return c?"NULL":"\\N";if(Number.isNaN(e))return"nan";if(e===1/0)return"+inf";if(e===-1/0)return"-inf";if("number"==typeof e)return String(e);if("boolean"==typeof e)return e?"1":"0";if("string"==typeof e){let r="";for(let t=0;tn({value:e,wrapStringInQuotes:!0,printNullAsKeyword:!0})).join(",")}]`;if(e instanceof Date){let t=Math.floor(e.getTime()/1e3).toString().padStart(10,"0"),r=e.getUTCMilliseconds();return 0===r?t:`${t}.${r.toString().padStart(3,"0")}`}if(e instanceof r)return`(${e.values.map(e=>n({value:e,wrapStringInQuotes:!0,printNullAsKeyword:!0})).join(",")})`;if(e instanceof Map)return o(e.entries());if("object"==typeof e)return o(Object.entries(e));throw Error(`Unsupported value in query parameters: [${e}].`)}function o(e){let t=[];for(let[r,o]of e)t.push(`${n({value:r,wrapStringInQuotes:!0,printNullAsKeyword:!0})}:${n({value:o,wrapStringInQuotes:!0,printNullAsKeyword:!0})}`);return`{${t.join(",")}}`}t.TupleParam=r;let i=9,a=10,s=13,u=39,l=92},65234:(e,t,r)=>{"use strict";var n=r(91293).CopyToClipboard;n.CopyToClipboard=n,e.exports=n},65517:e=>{e.exports=function(e,t){for(var r=-1,n=t.length,o=e.length;++r{var n=r(98499),o=r(24877),i=r(23356),a=r(99048),s=/^\[object .+?Constructor\]$/,u=Object.prototype,l=Function.prototype.toString,c=u.hasOwnProperty,p=RegExp("^"+l.call(c).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(n(e)?p:s).test(a(e))}},66581:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},69335:(e,t,r)=>{var n=r(53140),o=r(3619);e.exports=function(e){return o(e)&&"[object Set]"==n(e)}},69504:(e,t,r)=>{var n=r(28676);e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}},70720:(e,t,r)=>{var n=r(29778),o=r(18482),i=r(16799);e.exports=function(e){return i(e)?n(e,!0):o(e)}},70893:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.withCompressionHeaders=function({headers:e,enable_request_compression:t,enable_response_compression:r}){return{...e,...r?{"Accept-Encoding":"gzip"}:{},...t?{"Content-Encoding":"gzip"}:{}}},t.withHttpSettings=function(e,t){return{...t?{enable_http_compression:1}:{},...e}},t.isSuccessfulResponse=function(e){return!!(e&&200<=e&&e<300)},t.isJWTAuth=function(e){return null!==e&&"object"==typeof e&&"access_token"in e},t.isCredentialsAuth=function(e){return null!==e&&"object"==typeof e&&"username"in e&&"password"in e}},71354:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsMap=void 0;class r{constructor(e){Object.defineProperty(this,"record",{enumerable:!0,configurable:!0,writable:!0,value:e})}toString(){return`{${Object.entries(this.record).map(([e,t])=>`'${e}':'${t}'`).join(",")}}`}static from(e){return new this(e)}}t.SettingsMap=r},71388:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e){var r=e.length,n=new e.constructor(r);return r&&"string"==typeof e[0]&&t.call(e,"index")&&(n.index=e.index,n.input=e.input),n}},72053:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},73696:(e,t,r)=>{e=r.nmd(e);var n=r(97397),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&n.process,s=function(){try{var e=i&&i.require&&i.require("util").types;if(e)return e;return a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},75590:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.transformUrl=function({url:e,pathname:t,searchParams:r}){let n=new URL(e);return t&&("/"===n.pathname?n.pathname=t:n.pathname+=t),r&&(n.search=r?.toString()),n},t.toSearchParams=function({database:e,query:t,query_params:r,clickhouse_settings:o,session_id:i,query_id:a,role:s}){let u=[["query_id",a]];if(void 0!==r)for(let[e,t]of Object.entries(r)){let r=(0,n.formatQueryParams)({value:t});u.push([`param_${e}`,r])}if(void 0!==o)for(let[e,t]of Object.entries(o))void 0!==t&&u.push([e,(0,n.formatQuerySettings)(t)]);if(void 0!==e&&"default"!==e&&u.push(["database",e]),t&&u.push(["query",t]),i&&u.push(["session_id",i]),s){if("string"==typeof s)u.push(["role",s]);else if(Array.isArray(s))for(let e of s)u.push(["role",e])}return new URLSearchParams(u)};let n=r(25701)},75828:(e,t)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t{var n=r(88601),o=r(22346),i=r(87710),a=r(25248),s=r(52634),u=r(16875),l=r(15565),c=r(63127);e.exports=l(function(e,t){var r={};if(null==e)return r;var l=!1;t=n(t,function(t){return t=a(t,e),l||(l=t.length>1),t}),s(e,c(e),r),l&&(r=o(r,7,u));for(var p=t.length;p--;)i(r,t[p]);return r})},80145:(e,t)=>{function r(e){return"\\"+e}function n(e,t){return t}t.escape=function(e){return e.replace(/[\+\-\!\(\)\{\}\[\]\^\"\?\:\\\&\|\'\/\s\*\~]/g,r)},t.unescape=function(e){return e.replace(/\\([\+\-\!\(\)\{\}\[\]\^\"\?\:\\\&\|\'\/\s\*\~])/g,n)},t.escapePhrase=function(e){return e.replace(/"/g,r)},t.unescapePhrase=function(e){return e.replace(/\\(")/g,n)}},80244:e=>{e.exports=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}},80519:(e,t,r)=>{e.exports=r(36538)},81014:(e,t,r)=>{var n=r(53325),o=r(66581),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){var a=e[t];i.call(e,t)&&o(a,r)&&(void 0!==r||t in e)||n(e,t,r)}},81597:(e,t,r)=>{var n=r(55765);e.exports=function(e){var t=n(e,function(e){return 500===r.size&&r.clear(),e}),r=t.cache;return t}},81707:(e,t,r)=>{e.exports=r(54703)(Object,"create")},82006:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ClickHouseError=void 0,t.parseError=function(e){let t=e instanceof Error,o=(t?e.message:e).match(r),i=o?.groups;return i?new n(i):t?e:Error(e)},t.getCurrentStackTrace=function(){let e=Error().stack;return e?e.split("\n").slice(3).reverse().join("\n"):""},t.enhanceStackTrace=function(e,t){if(e.stack&&t){let r=e.stack.indexOf("\n"),n=e.stack.substring(0,r),o=e.stack.substring(r+1);e.stack=`${n} +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6747],{291:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},620:(e,t,r)=>{var n=r(11229),o=r(16999),i=r(41016),a=r(62220),s=r(47508);function u(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t{var n=r(54703);e.exports=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(e){}}()},1775:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SimpleColumnTypes=t.ColumnTypeParseError=void 0,t.parseColumnType=n,t.parseDecimalType=o,t.parseEnumType=i,t.parseMapType=a,t.parseTupleType=s,t.parseArrayType=u,t.parseDateTimeType=l,t.parseDateTime64Type=c,t.parseFixedStringType=p,t.asNullableType=f,t.getElementsTypes=h;class r extends Error{constructor(e,t){super(e),Object.defineProperty(this,"args",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.args=t??{},Object.setPrototypeOf(this,r.prototype)}}function n(e){let n,h=e,S=!1;if(h.startsWith(y)&&(h=h.slice(y.length,-1)),h.startsWith(d)&&(h=h.slice(d.length,-1),S=!0),t.SimpleColumnTypes.includes(h))n={type:"Simple",columnType:h,sourceType:e};else if(h.startsWith(v))n=o({sourceType:e,columnType:h});else if(h.startsWith(x))n=c({sourceType:e,columnType:h});else if(h.startsWith(O))n=l({sourceType:e,columnType:h});else if(h.startsWith(j))n=p({sourceType:e,columnType:h});else if(h.startsWith(b)||h.startsWith(w))n=i({sourceType:e,columnType:h});else if(h.startsWith(m))n=u({sourceType:e,columnType:h});else if(h.startsWith(g))n=a({sourceType:e,columnType:h});else if(h.startsWith(_))n=s({sourceType:e,columnType:h});else throw new r("Unsupported column type",{columnType:h});return S?f(n,e):n}function o({columnType:e,sourceType:t}){if(!e.startsWith(v)||e.length76)throw new r("Invalid Decimal precision",{columnType:e,sourceType:t,precision:i});let a=parseInt(n[1],10);if(Number.isNaN(a)||a<0||a>i)throw new r("Invalid Decimal scale",{columnType:e,sourceType:t,precision:i,scale:a});return i>38?o=256:i>18?o=128:i>9&&(o=64),{type:"Decimal",params:{precision:i,scale:a,intSize:o},sourceType:t}}function i({columnType:e,sourceType:t}){let n;if(e.startsWith(b))e=e.slice(b.length,-1),n=8;else if(e.startsWith(w))e=e.slice(w.length,-1),n=16;else throw new r("Expected Enum to be either Enum8 or Enum16",{columnType:e,sourceType:t});if(e.length<6)throw new r("Invalid Enum type values",{columnType:e,sourceType:t});let o=[],i=[],a=!0,s=!1,u=1;for(let n=1;nN)&&(c(u,n),n+=2,u=n+1,a=!0,s=!1);if(c(u,e.length),o.length!==i.length)throw new r("Expected Enum to have the same number of names and indices",{columnType:e,sourceType:t,names:o,indices:i});let l={};for(let e=0;en(e)),sourceType:t}}function u({columnType:e,sourceType:t}){if(!e.startsWith(m)||e.length0;)if(e.startsWith(m))e=e.slice(m.length,-1),o++;else break;if(0===o||o>10)throw new r("Expected Array to have between 1 and 10 dimensions",{columnType:e});let i=n(e);if("Array"===i.type)throw new r("Unexpected Array as value type",{columnType:e,sourceType:t});return{type:"Array",value:i,dimensions:o,sourceType:t}}function l({columnType:e,sourceType:t}){if(e.startsWith(S)&&e.length>S.length+4)return{type:"DateTime",timezone:e.slice(S.length+1,-2),sourceType:t};if(e.startsWith(O)&&e.length===O.length)return{type:"DateTime",timezone:null,sourceType:t};throw new r("Invalid DateTime type",{columnType:e,sourceType:t})}function c({columnType:e,sourceType:t}){if(!e.startsWith(x)||e.length9)throw new r("Invalid DateTime64 precision",{columnType:e,sourceType:t,precision:n});let o=null;return e.length>x.length+2&&(o=e.slice(x.length+4,-2)),{type:"DateTime64",timezone:o,precision:n,sourceType:t}}function p({columnType:e,sourceType:t}){if(!e.startsWith(j)||e.length{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ClickHouseClient=void 0;let n=r(7117),o=r(42953);class i{constructor(e){Object.defineProperty(this,"clientClickHouseSettings",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"connectionParams",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"connection",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"makeResultSet",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"valuesEncoder",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sessionId",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"role",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"logWriter",{enumerable:!0,configurable:!0,writable:!0,value:void 0});const t=e?.log?.LoggerClass?new e.log.LoggerClass:new n.DefaultLogger,r=(0,o.prepareConfigWithURL)(e,t,e.impl.handle_specific_url_params??null);this.connectionParams=(0,o.getConnectionParams)(r,t),this.logWriter=this.connectionParams.log_writer,this.clientClickHouseSettings=this.connectionParams.clickhouse_settings,this.sessionId=e.session_id,this.role=e.role,this.connection=e.impl.make_connection(r,this.connectionParams),this.makeResultSet=e.impl.make_result_set,this.valuesEncoder=e.impl.values_encoder}async query(e){var t,r;let n=e.format??"JSON",o=(t=e.query,r=n,(t=a(t=t.trim()))+" \nFORMAT "+r),i=this.withClientQueryParams(e),{stream:s,query_id:u,response_headers:l}=await this.connection.query({query:o,...i});return this.makeResultSet(s,n,u,e=>{this.logWriter.error({err:e,module:"Client",message:"Error while processing the ResultSet.",args:{session_id:i.session_id,role:i.role,query:o,query_id:u}})},l)}async command(e){let t=a(e.query.trim());return await this.connection.command({query:t,...this.withClientQueryParams(e)})}async exec(e){let t=a(e.query.trim()),r="values"in e?e.values:void 0,n=e.decompress_response_stream??!0;return await this.connection.exec({query:t,values:r,decompress_response_stream:n,...this.withClientQueryParams(e)})}async insert(e){if(Array.isArray(e.values)&&0===e.values.length)return{executed:!1,query_id:"",response_headers:{}};let t=e.format||"JSONCompactEachRow";this.valuesEncoder.validateInsertValues(e.values,t);let r=function(e,t){let r="";if(void 0!==e.columns)if(Array.isArray(e.columns)&&e.columns.length>0)r=` (${e.columns.join(", ")})`;else{var n;null!=(n=e.columns)&&"object"==typeof n&&Object.prototype.hasOwnProperty.call(n,"except")&&e.columns.except.length>0&&(r=` (* EXCEPT (${e.columns.except.join(", ")}))`)}return`INSERT INTO ${e.table.trim()}${r} FORMAT ${t}`}(e,t);return{...await this.connection.insert({query:r,values:this.valuesEncoder.encodeValues(e.values,t),...this.withClientQueryParams(e)}),executed:!0}}async ping(e){return await this.connection.ping(e??{select:!1})}async close(){return await this.connection.close()}withClientQueryParams(e){return{clickhouse_settings:{...this.clientClickHouseSettings,...e.clickhouse_settings},query_params:e.query_params,abort_signal:e.abort_signal,query_id:e.query_id,session_id:e.session_id??this.sessionId,role:e.role??this.role,auth:e.auth,http_headers:e.http_headers}}}function a(e){let t=e.length;for(let r=t;r>0;r--)if(";"!==e[r-1]){t=r;break}return t!==e.length?e.slice(0,t):e}t.ClickHouseClient=i},3128:(e,t,r)=>{var n=r(4650),o=r(95345),i=r(291),a=r(46468),s=r(36704),u=r(22344);function l(e){var t=this.__data__=new n(e);this.size=t.size}l.prototype.clear=o,l.prototype.delete=i,l.prototype.get=a,l.prototype.has=s,l.prototype.set=u,e.exports=l},3540:e=>{e.exports=function(e){return function(t){return e(t)}}},3619:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},4650:(e,t,r)=>{var n=r(21895),o=r(15917),i=r(52182),a=r(5514),s=r(92786);function u(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TupleParam=t.isException=t.isRow=t.isProgressRow=t.SimpleColumnTypes=t.parseColumnType=t.SettingsMap=t.ClickHouseLogLevel=t.parseError=t.ClickHouseError=t.ResultSet=t.createClient=void 0;var n=r(98491);Object.defineProperty(t,"createClient",{enumerable:!0,get:function(){return n.createClient}});var o=r(29598);Object.defineProperty(t,"ResultSet",{enumerable:!0,get:function(){return o.ResultSet}});var i=r(7117);Object.defineProperty(t,"ClickHouseError",{enumerable:!0,get:function(){return i.ClickHouseError}}),Object.defineProperty(t,"parseError",{enumerable:!0,get:function(){return i.parseError}}),Object.defineProperty(t,"ClickHouseLogLevel",{enumerable:!0,get:function(){return i.ClickHouseLogLevel}}),Object.defineProperty(t,"SettingsMap",{enumerable:!0,get:function(){return i.SettingsMap}}),Object.defineProperty(t,"parseColumnType",{enumerable:!0,get:function(){return i.parseColumnType}}),Object.defineProperty(t,"SimpleColumnTypes",{enumerable:!0,get:function(){return i.SimpleColumnTypes}}),Object.defineProperty(t,"isProgressRow",{enumerable:!0,get:function(){return i.isProgressRow}}),Object.defineProperty(t,"isRow",{enumerable:!0,get:function(){return i.isRow}}),Object.defineProperty(t,"isException",{enumerable:!0,get:function(){return i.isException}}),Object.defineProperty(t,"TupleParam",{enumerable:!0,get:function(){return i.TupleParam}})},5461:(e,t,r)=>{var n=r(30147),o=r(63912),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols;e.exports=a?function(e){return null==e?[]:n(a(e=Object(e)),function(t){return i.call(e,t)})}:o},5514:(e,t,r)=>{var n=r(36592);e.exports=function(e){return n(this.__data__,e)>-1}},5549:e=>{e.exports=function(e){return e}},7018:e=>{e.exports=function(){return!1}},7117:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.enhanceStackTrace=t.getCurrentStackTrace=t.DefaultLogger=t.LogWriter=t.isJWTAuth=t.isCredentialsAuth=t.withHttpSettings=t.withCompressionHeaders=t.transformUrl=t.toSearchParams=t.sleep=t.isSuccessfulResponse=t.numberConfigURLValue=t.getConnectionParams=t.enumConfigURLValue=t.booleanConfigURLValue=t.validateStreamFormat=t.isNotStreamableJSONFamily=t.isStreamableJSONFamily=t.isSupportedRawFormat=t.encodeJSON=t.formatQueryParams=t.formatQuerySettings=t.parseColumnType=t.SimpleColumnTypes=t.SettingsMap=t.isException=t.isRow=t.isProgressRow=t.ClickHouseLogLevel=t.parseError=t.ClickHouseError=t.TupleParam=t.ClickHouseClient=void 0;var n=r(3040);Object.defineProperty(t,"ClickHouseClient",{enumerable:!0,get:function(){return n.ClickHouseClient}});var o=r(25701);Object.defineProperty(t,"TupleParam",{enumerable:!0,get:function(){return o.TupleParam}});var i=r(32744);Object.defineProperty(t,"ClickHouseError",{enumerable:!0,get:function(){return i.ClickHouseError}}),Object.defineProperty(t,"parseError",{enumerable:!0,get:function(){return i.parseError}});var a=r(14303);Object.defineProperty(t,"ClickHouseLogLevel",{enumerable:!0,get:function(){return a.ClickHouseLogLevel}});var s=r(99469);Object.defineProperty(t,"isProgressRow",{enumerable:!0,get:function(){return s.isProgressRow}}),Object.defineProperty(t,"isRow",{enumerable:!0,get:function(){return s.isRow}}),Object.defineProperty(t,"isException",{enumerable:!0,get:function(){return s.isException}});var u=r(71354);Object.defineProperty(t,"SettingsMap",{enumerable:!0,get:function(){return u.SettingsMap}});var l=r(14529);Object.defineProperty(t,"SimpleColumnTypes",{enumerable:!0,get:function(){return l.SimpleColumnTypes}}),Object.defineProperty(t,"parseColumnType",{enumerable:!0,get:function(){return l.parseColumnType}});var c=r(25701);Object.defineProperty(t,"formatQuerySettings",{enumerable:!0,get:function(){return c.formatQuerySettings}}),Object.defineProperty(t,"formatQueryParams",{enumerable:!0,get:function(){return c.formatQueryParams}}),Object.defineProperty(t,"encodeJSON",{enumerable:!0,get:function(){return c.encodeJSON}}),Object.defineProperty(t,"isSupportedRawFormat",{enumerable:!0,get:function(){return c.isSupportedRawFormat}}),Object.defineProperty(t,"isStreamableJSONFamily",{enumerable:!0,get:function(){return c.isStreamableJSONFamily}}),Object.defineProperty(t,"isNotStreamableJSONFamily",{enumerable:!0,get:function(){return c.isNotStreamableJSONFamily}}),Object.defineProperty(t,"validateStreamFormat",{enumerable:!0,get:function(){return c.validateStreamFormat}});var p=r(42953);Object.defineProperty(t,"booleanConfigURLValue",{enumerable:!0,get:function(){return p.booleanConfigURLValue}}),Object.defineProperty(t,"enumConfigURLValue",{enumerable:!0,get:function(){return p.enumConfigURLValue}}),Object.defineProperty(t,"getConnectionParams",{enumerable:!0,get:function(){return p.getConnectionParams}}),Object.defineProperty(t,"numberConfigURLValue",{enumerable:!0,get:function(){return p.numberConfigURLValue}});var f=r(44555);Object.defineProperty(t,"isSuccessfulResponse",{enumerable:!0,get:function(){return f.isSuccessfulResponse}}),Object.defineProperty(t,"sleep",{enumerable:!0,get:function(){return f.sleep}}),Object.defineProperty(t,"toSearchParams",{enumerable:!0,get:function(){return f.toSearchParams}}),Object.defineProperty(t,"transformUrl",{enumerable:!0,get:function(){return f.transformUrl}}),Object.defineProperty(t,"withCompressionHeaders",{enumerable:!0,get:function(){return f.withCompressionHeaders}}),Object.defineProperty(t,"withHttpSettings",{enumerable:!0,get:function(){return f.withHttpSettings}}),Object.defineProperty(t,"isCredentialsAuth",{enumerable:!0,get:function(){return f.isCredentialsAuth}}),Object.defineProperty(t,"isJWTAuth",{enumerable:!0,get:function(){return f.isJWTAuth}});var h=r(14303);Object.defineProperty(t,"LogWriter",{enumerable:!0,get:function(){return h.LogWriter}}),Object.defineProperty(t,"DefaultLogger",{enumerable:!0,get:function(){return h.DefaultLogger}});var d=r(32744);Object.defineProperty(t,"getCurrentStackTrace",{enumerable:!0,get:function(){return d.getCurrentStackTrace}}),Object.defineProperty(t,"enhanceStackTrace",{enumerable:!0,get:function(){return d.enhanceStackTrace}})},7131:(e,t,r)=>{e.exports=r(33946)(Object.keys,Object)},8546:(e,t,r)=>{var n=r(92812),o=r(23183);e.exports=function(e,t){return null!=e&&o(e,t,n)}},8947:(e,t,r)=>{var n=r(81597),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g;e.exports=n(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,function(e,r,n,o){t.push(n?o.replace(i,"$1"):r||e)}),t})},9541:(e,t,r)=>{e=r.nmd(e);var n=r(45516),o=r(7018),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,s=a&&a.exports===i?n.Buffer:void 0,u=s?s.isBuffer:void 0;e.exports=u||o},9841:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var n=(0,r(41495).A)("outline","chart-line","IconChartLine",[["path",{d:"M4 19l16 0",key:"svg-0"}],["path",{d:"M4 15l4 -6l4 2l4 -5l4 4",key:"svg-1"}]])},9929:(e,t,r)=>{e.exports=r(54703)(r(45516),"Promise")},10858:(e,t,r)=>{e.exports=r(33946)(Object.getPrototypeOf,Object)},11229:(e,t,r)=>{var n=r(81707);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},11720:(e,t,r)=>{var n=r(86414);e.exports=function(e){return n(this,e).get(e)}},12342:(e,t,r)=>{var n=r(25080),o=r(42209),i=r(91544),a=n?n.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||o(e)||!!(a&&e&&e[a])}},13011:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(92190),t)},13574:(e,t,r)=>{var n=r(25080),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=n?n.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),r=e[s];try{e[s]=void 0;var n=!0}catch(e){}var o=a.call(e);return n&&(t?e[s]=r:delete e[s]),o}},13920:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var n=typeof e;return!!(r=null==r?0x1fffffffffffff:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e{"use strict";var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.ClickHouseLogLevel=t.LogWriter=t.DefaultLogger=void 0;class o{trace({module:e,message:t,args:r}){let n=[a({module:e,message:t,level:"TRACE"})];r&&n.push("\nArguments:",r),console.debug(...n)}debug({module:e,message:t,args:r}){let n=[a({module:e,message:t,level:"DEBUG"})];r&&n.push("\nArguments:",r),console.debug(...n)}info({module:e,message:t,args:r}){let n=[a({module:e,message:t,level:"INFO"})];r&&n.push("\nArguments:",r),console.info(...n)}warn({module:e,message:t,args:r,err:n}){let o=[a({module:e,message:t,level:"WARN"})];r&&o.push("\nArguments:",r),n&&o.push("\nCaused by:",n),console.warn(...o)}error({module:e,message:t,args:r,err:n}){let o=[a({module:e,message:t,level:"ERROR"})];r&&o.push("\nArguments:",r),o.push("\nCaused by:",n),console.error(...o)}}t.DefaultLogger=o;class i{constructor(e,t,n){Object.defineProperty(this,"logger",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"module",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"logLevel",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.logLevel=n??r.OFF,this.info({message:`Log level is set to ${r[this.logLevel]}`})}trace(e){this.logLevel<=r.TRACE&&this.logger.trace({...e,module:e.module??this.module})}debug(e){this.logLevel<=r.DEBUG&&this.logger.debug({...e,module:e.module??this.module})}info(e){this.logLevel<=r.INFO&&this.logger.info({...e,module:e.module??this.module})}warn(e){this.logLevel<=r.WARN&&this.logger.warn({...e,module:e.module??this.module})}error(e){this.logLevel<=r.ERROR&&this.logger.error({...e,module:e.module??this.module})}}function a({level:e,module:t,message:r}){let n=new Date().toISOString();return`[${n}][${e}][@clickhouse/client][${t}] ${r}`}t.LogWriter=i,(n=r||(t.ClickHouseLogLevel=r={}))[n.TRACE=0]="TRACE",n[n.DEBUG=1]="DEBUG",n[n.INFO=2]="INFO",n[n.WARN=3]="WARN",n[n.ERROR=4]="ERROR",n[n.OFF=127]="OFF"},14529:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(1775),t)},15051:(e,t,r)=>{var n=r(29794),o=r(5461),i=r(87567);e.exports=function(e){return n(e,i,o)}},15565:(e,t,r)=>{var n=r(19515),o=r(24964),i=r(27288);e.exports=function(e){return i(o(e,void 0,n),e+"")}},15917:(e,t,r)=>{var n=r(36592),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0)&&(r==t.length-1?t.pop():o.call(t,r,1),--this.size,!0)}},16005:(e,t,r)=>{var n=r(69335),o=r(3540),i=r(73696),a=i&&i.isSet;e.exports=a?o(a):n},16153:(e,t,r)=>{var n=r(25080),o=r(88601),i=r(91544),a=r(50515),s=1/0,u=n?n.prototype:void 0,l=u?u.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return l?l.call(t):"";var r=t+"";return"0"==r&&1/t==-s?"-0":r}},16419:e=>{e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},16799:(e,t,r)=>{var n=r(98499),o=r(48039);e.exports=function(e){return null!=e&&o(e.length)&&!n(e)}},16875:(e,t,r)=>{var n=r(64022);e.exports=function(e){return n(e)?void 0:e}},16999:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=!!t,t}},17085:e=>{e.exports=function(e,t){for(var r=-1,n=Array(e);++r{var n=r(28676),o=r(85008),i=r(53576),a=r(40101),s=r(69504);e.exports=function(e,t,r){var u=e.constructor;switch(t){case"[object ArrayBuffer]":return n(e);case"[object Boolean]":case"[object Date]":return new u(+e);case"[object DataView]":return o(e,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(e,r);case"[object Map]":case"[object Set]":return new u;case"[object Number]":case"[object String]":return new u(e);case"[object RegExp]":return i(e);case"[object Symbol]":return a(e)}}},18482:(e,t,r)=>{var n=r(23356),o=r(23282),i=r(80244),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return i(e);var t=o(e),r=[];for(var s in e)"constructor"==s&&(t||!a.call(e,s))||r.push(s);return r}},19515:(e,t,r)=>{var n=r(83965);e.exports=function(e){return(null==e?0:e.length)?n(e,1):[]}},21895:e=>{e.exports=function(){this.__data__=[],this.size=0}},22344:(e,t,r)=>{var n=r(4650),o=r(50874),i=r(33276);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var a=r.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new i(a)}return r.set(e,t),this.size=r.size,this}},22346:(e,t,r)=>{var n=r(3128),o=r(58120),i=r(81014),a=r(46060),s=r(88447),u=r(28915),l=r(97722),c=r(87274),p=r(58489),f=r(15051),h=r(63127),d=r(53140),y=r(71388),v=r(17706),m=r(87568),g=r(91544),b=r(9541),w=r(37560),_=r(23356),O=r(16005),S=r(87567),x=r(70720),j="[object Arguments]",C="[object Function]",P="[object Object]",A={};A[j]=A["[object Array]"]=A["[object ArrayBuffer]"]=A["[object DataView]"]=A["[object Boolean]"]=A["[object Date]"]=A["[object Float32Array]"]=A["[object Float64Array]"]=A["[object Int8Array]"]=A["[object Int16Array]"]=A["[object Int32Array]"]=A["[object Map]"]=A["[object Number]"]=A[P]=A["[object RegExp]"]=A["[object Set]"]=A["[object String]"]=A["[object Symbol]"]=A["[object Uint8Array]"]=A["[object Uint8ClampedArray]"]=A["[object Uint16Array]"]=A["[object Uint32Array]"]=!0,A["[object Error]"]=A[C]=A["[object WeakMap]"]=!1,e.exports=function e(t,r,E,k,N,T){var R,I=1&r,M=2&r,q=4&r;if(E&&(R=N?E(t,k,N,T):E(t)),void 0!==R)return R;if(!_(t))return t;var L=g(t);if(L){if(R=y(t),!I)return l(t,R)}else{var D=d(t),U=D==C||"[object GeneratorFunction]"==D;if(b(t))return u(t,I);if(D==P||D==j||U&&!N){if(R=M||U?{}:m(t),!I)return M?p(t,s(R,t)):c(t,a(R,t))}else{if(!A[D])return N?t:{};R=v(t,D,I)}}T||(T=new n);var F=T.get(t);if(F)return F;T.set(t,R),O(t)?t.forEach(function(n){R.add(e(n,r,E,n,t,T))}):w(t)&&t.forEach(function(n,o){R.set(o,e(n,r,E,o,t,T))});var J=q?M?h:f:M?x:S,$=L?void 0:J(t);return o($||t,function(n,o){$&&(n=t[o=n]),i(R,o,e(n,r,E,o,t,T))}),R}},22599:(e,t,r)=>{"use strict";r.d(t,{S:()=>m});var n=r(6029),o=r(45089),i=r(55729),a=r(15862),s=r(80616),u=r(36504),l=r(60481),c=r(43016),p=r(56760),f=r(3465),h=r(56655);function d(e){return e?.current?e.current.scrollHeight:"auto"}let y="u">typeof window&&window.requestAnimationFrame,v={transitionDuration:200,transitionTimingFunction:"ease",animateOpacity:!0},m=(0,c.P9)((e,t)=>{let{children:r,in:c,transitionDuration:m,transitionTimingFunction:g,style:b,onTransitionEnd:w,animateOpacity:_,...O}=(0,s.Y)("Collapse",v,e),S=(0,a.xd)(),x=(0,o.I)(),j=S.respectReducedMotion&&x?0:m,C=function({transitionDuration:e,transitionTimingFunction:t="ease",onTransitionEnd:r=()=>{},opened:n}){let o=(0,i.useRef)(null),a={height:0,overflow:"hidden"},[s,u]=(0,i.useState)(n?{}:a),l=e=>{(0,p.flushSync)(()=>u(e))},c=e=>{l(t=>({...t,...e}))};function v(r){let n=e||function(e){if(!e||"string"==typeof e)return 0;let t=e/36;return Math.round((4+15*t**.25+t/5)*10)}(r);return{transition:`height ${n}ms ${t}, opacity ${n}ms ${t}`}}(0,f.C)(()=>{"function"==typeof y&&(n?y(()=>{c({willChange:"height",display:"block",overflow:"hidden"}),y(()=>{let e=d(o);c({...v(e),height:e})})}):y(()=>{let e=d(o);c({...v(e),willChange:"height",height:e}),y(()=>c({height:0,overflow:"hidden"}))}))},[n]);let m=e=>{if(e.target===o.current&&"height"===e.propertyName)if(n){let e=d(o);e===s.height?l({}):c({height:e}),r()}else 0===s.height&&(l(a),r())};return function({style:e={},refKey:t="ref",...r}={}){let a=r[t],u={"aria-hidden":!n,...r,[t]:(0,h.Px)(o,a),onTransitionEnd:m,style:{boxSizing:"border-box",...e,...s}};return i.version.startsWith("18")?n||(u.inert=""):u.inert=!n,u}}({opened:c,transitionDuration:j,transitionTimingFunction:g,onTransitionEnd:w});return 0===j?c?(0,n.jsx)(l.a,{...O,children:r}):null:(0,n.jsx)(l.a,{...C({style:{opacity:c||!_?1:0,transition:_?`opacity ${j}ms ${g}`:"none",...(0,u.X)(b,S)},ref:t,...O}),children:r})});m.displayName="@mantine/core/Collapse"},23079:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},23183:(e,t,r)=>{var n=r(25248),o=r(42209),i=r(91544),a=r(13920),s=r(48039),u=r(43092);e.exports=function(e,t,r){t=n(t,e);for(var l=-1,c=t.length,p=!1;++l{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},23356:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},24127:(e,t,r)=>{var n=r(25248),o=r(43092);e.exports=function(e,t){t=n(t,e);for(var r=0,i=t.length;null!=e&&r{e.exports=r(54703)(r(45516),"WeakMap")},24877:(e,t,r)=>{var n,o=r(62272),i=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!i&&i in e}},24964:(e,t,r)=>{var n=r(93248),o=Math.max;e.exports=function(e,t,r){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,s=o(i.length-t,0),u=Array(s);++a{e.exports=r(45516).Symbol},25248:(e,t,r)=>{var n=r(91544),o=r(25907),i=r(8947),a=r(60567);e.exports=function(e,t){return n(e)?e:o(e,t)?[e]:i(a(e))}},25701:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.formatQuerySettings=t.formatQueryParams=t.TupleParam=void 0,o(r(90327),t);var i=r(65086);Object.defineProperty(t,"TupleParam",{enumerable:!0,get:function(){return i.TupleParam}}),Object.defineProperty(t,"formatQueryParams",{enumerable:!0,get:function(){return i.formatQueryParams}});var a=r(57469);Object.defineProperty(t,"formatQuerySettings",{enumerable:!0,get:function(){return a.formatQuerySettings}})},25907:(e,t,r)=>{var n=r(91544),o=r(50515),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(n(e))return!1;var r=typeof e;return!!("number"==r||"symbol"==r||"boolean"==r||null==e||o(e))||a.test(e)||!i.test(e)||null!=t&&e in Object(t)}},26027:(e,t,r)=>{var n=r(81014),o=r(25248),i=r(13920),a=r(23356),s=r(43092);e.exports=function(e,t,r,u){if(!a(e))return e;t=o(t,e);for(var l=-1,c=t.length,p=c-1,f=e;null!=f&&++l{e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n{var n=r(86347);e.exports=r(43862)(n)},28340:(e,t,r)=>{var n=r(33573),o=r(48039),i=r(3619),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[n(e)]}},28506:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isStream=function(e){return null!=e&&"function"==typeof e.pipeThrough},t.getAsText=r;async function r(e){let t="",r=!1,n=new TextDecoder,o=e.getReader();for(;!r;){let{done:e,value:i}=await o.read(),a=n.decode(i,{stream:!0});if(a.length+t.length>0x1fffffe8)throw Error("The response length exceeds the maximum allowed size of V8 String: 536870888; consider limiting the amount of requested rows.");t+=a,r=e}return t+n.decode()}},28676:(e,t,r)=>{var n=r(50025);e.exports=function(e){var t=new e.constructor(e.byteLength);return new n(t).set(new n(e)),t}},28915:(e,t,r)=>{e=r.nmd(e);var n=r(45516),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?n.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var r=e.length,n=s?s(r):new e.constructor(r);return e.copy(n),n}},29594:(e,t,r)=>{var n=r(84536);e.exports=r(15565)(function(e,t){return null==e?{}:n(e,t)})},29598:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResultSet=void 0;let n=r(7117),o=r(83374);class i{constructor(e,t,r,n){Object.defineProperty(this,"_stream",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"format",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"query_id",{enumerable:!0,configurable:!0,writable:!0,value:r}),Object.defineProperty(this,"response_headers",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"isAlreadyConsumed",{enumerable:!0,configurable:!0,writable:!0,value:!1}),this.response_headers=void 0!==n?Object.freeze(n):{}}async text(){return this.markAsConsumed(),(0,o.getAsText)(this._stream)}async json(){if((0,n.isStreamableJSONFamily)(this.format)){let e=[],t=this.stream().getReader();for(;;){let{done:r,value:n}=await t.read();if(r)break;for(let t of n)e.push(t.json())}return e}if((0,n.isNotStreamableJSONFamily)(this.format))return JSON.parse(await (0,o.getAsText)(this._stream));throw Error(`Cannot decode ${this.format} as JSON`)}stream(){this.markAsConsumed(),(0,n.validateStreamFormat)(this.format);let e=[],t=0,r=new TextDecoder("utf-8"),o=new TransformStream({start(){},transform:(n,o)=>{let i;null===n&&o.terminate();let a=[],s=0;do if(-1===(i=n.indexOf(10,s))){let r=n.slice(s);e.push(r),t+=r.length,a.length>0&&o.enqueue(a)}else{let o;if(e.length>0){let a=new Uint8Array(t+i),s=0;e.forEach(e=>{a.set(e,s),s+=e.length});let u=n.slice(0,i);a.set(u,s),e=[],t=0,o=r.decode(a)}else o=r.decode(n.slice(s,i));a.push({text:o,json:()=>JSON.parse(o)}),s=i+1}while(-1!==i)}});return this._stream.pipeThrough(o,{preventClose:!1,preventAbort:!1,preventCancel:!1})}async close(){this.markAsConsumed(),await this._stream.cancel()}markAsConsumed(){if(this.isAlreadyConsumed)throw Error(a);this.isAlreadyConsumed=!0}}t.ResultSet=i;let a="Stream has been already consumed"},29778:(e,t,r)=>{var n=r(17085),o=r(42209),i=r(91544),a=r(9541),s=r(13920),u=r(43562),l=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=i(e),c=!r&&o(e),p=!r&&!c&&a(e),f=!r&&!c&&!p&&u(e),h=r||c||p||f,d=h?n(e.length,String):[],y=d.length;for(var v in e)(t||l.call(e,v))&&!(h&&("length"==v||p&&("offset"==v||"parent"==v)||f&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||s(v,y)))&&d.push(v);return d}},29794:(e,t,r)=>{var n=r(65517),o=r(91544);e.exports=function(e,t,r){var i=t(e);return o(e)?i:n(i,r(e))}},30110:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WebImpl=void 0;let n=r(13011),o=r(29598);t.WebImpl={make_connection:(e,t)=>new n.WebConnection({...t,fetch:e.fetch}),make_result_set:(e,t,r,n,i)=>new o.ResultSet(e,t,r,i),values_encoder:new(r(83374)).WebValuesEncoder}},30147:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,i=[];++r{e.exports=r(54703)(r(45516),"Set")},32744:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(82006),t)},33276:(e,t,r)=>{var n=r(95149),o=r(37175),i=r(11720),a=r(38684),s=r(35844);function u(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t{var n=r(25080),o=r(13574),i=r(23079),a=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},33863:e=>{e.exports=function(e){return function(){return e}}},33946:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},35844:(e,t,r)=>{var n=r(86414);e.exports=function(e,t){var r=n(this,e),o=r.size;return r.set(e,t),this.size+=+(r.size!=o),this}},36538:(e,t,r)=>{var n=r(51642).Buffer,o=/`/g,i=/\./g,a=/[\0\b\t\n\r\x1a\"\'\\]/g,s={"\0":"\\0","\b":"\\b"," ":"\\t","\n":"\\n","\r":"\\r","\x1a":"\\Z",'"':'\\"',"'":"\\'","\\":"\\\\"};function u(e){for(var t,r=a.lastIndex=0,n="";t=a.exec(e);)n+=e.slice(r,t.index)+s[t[0]],r=a.lastIndex;return 0===r?"'"+e+"'":r2)){var p=2===c?t.escapeId(r[l]):t.escape(r[l],n,o);u+=e.slice(a,i.index)+p,a=s.lastIndex,l++}}return 0===a?e:a{var n=r(66581);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return -1}},36704:e=>{e.exports=function(e){return this.__data__.has(e)}},36975:(e,t,r)=>{var n=r(33573),o=r(3619);e.exports=function(e){return o(e)&&"[object Arguments]"==n(e)}},37175:(e,t,r)=>{var n=r(86414);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=!!t,t}},37560:(e,t,r)=>{var n=r(83801),o=r(3540),i=r(73696),a=i&&i.isMap;e.exports=a?o(a):n},38684:(e,t,r)=>{var n=r(86414);e.exports=function(e){return n(this,e).has(e)}},40101:(e,t,r)=>{var n=r(25080),o=n?n.prototype:void 0,i=o?o.valueOf:void 0;e.exports=function(e){return i?Object(i.call(e)):{}}},41016:(e,t,r)=>{var n=r(81707),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(t,e)?t[e]:void 0}},41279:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var n=(0,r(41495).A)("outline","search","IconSearch",[["path",{d:"M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0",key:"svg-0"}],["path",{d:"M21 21l-6 -6",key:"svg-1"}]])},42209:(e,t,r)=>{var n=r(36975),o=r(3619),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable;e.exports=n(function(){return arguments}())?n:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")}},42953:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.prepareConfigWithURL=function(e,t,r){let n,s={...e};void 0!==s.additional_headers&&(t.warn({module:"Config",message:'"additional_headers" is deprecated. Use "http_headers" instead.'}),s.http_headers=s.additional_headers,delete s.additional_headers),void 0!==s.host?(t.warn({module:"Config",message:'"host" is deprecated. Use "url" instead.'}),n=i(s.host),delete s.host):n=i(s.url);let[u,l]=a(n,r),c=o(s,l,t);return void 0!==c.pathname&&(u.pathname=c.pathname),c.url=u,c},t.getConnectionParams=function(e,t){let r;if(void 0!==e.access_token){if(void 0!==e.username||void 0!==e.password)throw Error("Both access token and username/password are provided in the configuration. Please use only one authentication method.");r={access_token:e.access_token,type:"JWT"}}else r={username:e.username??"default",password:e.password??"",type:"Credentials"};return{auth:r,url:e.url,application_id:e.application,request_timeout:e.request_timeout??3e4,max_open_connections:e.max_open_connections??10,compression:{decompress_response:e.compression?.response??!1,compress_request:e.compression?.request??!1},database:e.database??"default",log_writer:new n.LogWriter(t,"Connection",e.log?.level),keep_alive:{enabled:e.keep_alive?.enabled??!0},clickhouse_settings:e.clickhouse_settings??{},http_headers:e.http_headers??{}}},t.mergeConfigs=o,t.createUrl=i,t.loadConfigOptionsFromURL=a,t.booleanConfigURLValue=s,t.numberConfigURLValue=u,t.enumConfigURLValue=l;let n=r(14303);function o(e,t,r){let n={...e};return!function e(t,n,o=[]){for(let i of Object.keys(n))if("object"==typeof n[i])e(t,n[i],o.concat(i));else{let e=t;for(let t of o)void 0===e[t]&&(e[t]={}),e=e[t];if(void 0!==e[i]){let e=o.concat(i).join(".");r.warn({module:"Config",message:`"${e}" is overridden by a URL parameter.`})}e[i]=n[i]}}(n,t),n}function i(e){let t;try{if(!("string"==typeof e||e instanceof URL))return new URL("http://localhost:8123");t=new URL(e)}catch(e){throw Error("ClickHouse URL is malformed. Expected format: http[s]://[username:password@]hostname:port[/database][?param1=value1¶m2=value2]",{cause:e})}if("http:"!==t.protocol&&"https:"!==t.protocol)throw Error(`ClickHouse URL protocol must be either http or https. Got: ${t.protocol}`);return t}function a(e,t){let r={};""!==e.username&&(r.username=decodeURIComponent(e.username)),""!==e.password&&(r.password=decodeURIComponent(e.password)),e.pathname.trim().length>1&&(r.database=e.pathname.slice(1));let o=[...e.searchParams.keys()];if(o.length>0){let i=new Set,a="clickhouse_setting_",c="http_header_";if(o.forEach(t=>{let o=!0,p=e.searchParams.get(t);if(t.startsWith(a)){let e=t.slice(a.length);void 0===r.clickhouse_settings&&(r.clickhouse_settings={}),r.clickhouse_settings[e]=p}else if(t.startsWith("ch_")){let e=t.slice(3);void 0===r.clickhouse_settings&&(r.clickhouse_settings={}),r.clickhouse_settings[e]=p}else if(t.startsWith(c)){let e=t.slice(c.length);void 0===r.http_headers&&(r.http_headers={}),r.http_headers[e]=p}else switch(t){case"application":r.application=p;break;case"pathname":r.pathname=p;break;case"session_id":r.session_id=p;break;case"request_timeout":r.request_timeout=u({key:t,value:p,min:0});break;case"max_open_connections":r.max_open_connections=u({key:t,value:p,min:1});break;case"compression_request":void 0===r.compression&&(r.compression={}),r.compression.request=s({key:t,value:p});break;case"compression_response":void 0===r.compression&&(r.compression={}),r.compression.response=s({key:t,value:p});break;case"log_level":void 0===r.log&&(r.log={}),r.log.level=l({key:t,value:p,enumObject:n.ClickHouseLogLevel});break;case"keep_alive_enabled":void 0===r.keep_alive&&(r.keep_alive={}),r.keep_alive.enabled=s({key:t,value:p});break;case"access_token":r.access_token=p;break;default:o=!1,i.add(t)}o&&e.searchParams.delete(t)}),null!==t){let n=t(r,e);r=n.config,i.size>0&&n.handled_params.forEach(e=>i.delete(e)),n.unknown_params.size>0&&n.unknown_params.forEach(e=>i.add(e))}if(i.size>0)throw Error(`Unknown URL parameters: ${Array.from(i).join(", ")}`)}return[new URL(`${e.protocol}//${e.host}`),r]}function s({key:e,value:t}){let r=t.trim();if("true"===r||"1"===r)return!0;if("false"===r||"0"===r)return!1;throw Error(`"${e}" has invalid boolean value: ${r}. Expected one of: 0, 1, true, false.`)}function u({key:e,value:t,min:r,max:n}){let o=t.trim(),i=Number(o);if(isNaN(i))throw Error(`"${e}" has invalid numeric value: ${o}`);if(void 0!==r&&in)throw Error(`"${e}" value ${o} is greater than max allowed ${n}`);return i}function l({key:e,value:t,enumObject:r}){let n=Object.keys(r).filter(e=>isNaN(Number(e))),o=t.trim();if(!n.includes(o)){let t=n.join(", ");throw Error(`"${e}" has invalid value: ${o}. Expected one of: ${t}.`)}return r[o]}},43085:(e,t,r)=>{"use strict";r.d(t,{E:()=>d});var n=r(6029);r(55729);var o=r(76),i=r(5618),a=r(66404),s=r(80616),u=r(37666),l=r(60481),c=r(63863),p={root:"m_347db0ec","root--dot":"m_fbd81e3d",label:"m_5add502a",section:"m_91fdda9b"};let f={},h=(0,i.V)((e,{radius:t,color:r,gradient:n,variant:i,size:s,autoContrast:u})=>{let l=e.variantColorResolver({color:r||e.primaryColor,theme:e,gradient:n,variant:i||"filled",autoContrast:u});return{root:{"--badge-height":(0,o.YC)(s,"badge-height"),"--badge-padding-x":(0,o.YC)(s,"badge-padding-x"),"--badge-fz":(0,o.YC)(s,"badge-fz"),"--badge-radius":void 0===t?void 0:(0,o.nJ)(t),"--badge-bg":r||i?l.background:void 0,"--badge-color":r||i?l.color:void 0,"--badge-bd":r||i?l.border:void 0,"--badge-dot-color":"dot"===i?(0,a.r)(r,e):void 0}}}),d=(0,c.v)((e,t)=>{let r=(0,s.Y)("Badge",f,e),{classNames:o,className:i,style:a,styles:c,unstyled:d,vars:y,radius:v,color:m,gradient:g,leftSection:b,rightSection:w,children:_,variant:O,fullWidth:S,autoContrast:x,circle:j,mod:C,...P}=r,A=(0,u.I)({name:"Badge",props:r,classes:p,className:i,style:a,classNames:o,styles:c,unstyled:d,vars:y,varsResolver:h});return(0,n.jsxs)(l.a,{variant:O,mod:[{block:S,circle:j,"with-right-section":!!w,"with-left-section":!!b},C],...A("root",{variant:O}),ref:t,...P,children:[b&&(0,n.jsx)("span",{...A("section"),"data-position":"left",children:b}),(0,n.jsx)("span",{...A("label"),children:_}),w&&(0,n.jsx)("span",{...A("section"),"data-position":"right",children:w})]})});d.classes=p,d.displayName="@mantine/core/Badge"},43092:(e,t,r)=>{var n=r(50515),o=1/0;e.exports=function(e){if("string"==typeof e||n(e))return e;var t=e+"";return"0"==t&&1/e==-o?"-0":t}},43233:(e,t,r)=>{var n=r(24127),o=r(26027),i=r(25248);e.exports=function(e,t,r){for(var a=-1,s=t.length,u={};++a{"use strict";var t="";e.exports=function e(r){if(!r)return"";var n="";return null!=r.start&&(n+=(r.parenthesized?"(":"")+r.start+" "),r.field&&r.field!==t&&(n+=r.field+":"),r.left&&(r.parenthesized&&!r.start&&(n+="("),n+=e(r.left),r.parenthesized&&!r.right&&(n+=")")),r.operator&&(r.left&&(n+=" "),r.operator!==t&&(n+=r.operator)),r.right&&(r.operator&&r.operator!==t&&(n+=" "),n+=e(r.right),r.parenthesized&&(n+=")")),(r.term||""===r.term&&r.quoted)&&(r.prefix&&(n+=r.prefix),r.quoted?(n+='"',n+=r.term,n+='"'):r.regex?(n+="/",n+=r.term,n+="/"):n+=r.term,null!=r.proximity&&(n+="~"+r.proximity),null!=r.boost&&(n+="^"+r.boost)),r.term_min&&("both"===r.inclusive||"left"===r.inclusive?n+="[":n+="{",n+=r.term_min,n+=" TO ",n+=r.term_max,"both"===r.inclusive||"right"===r.inclusive?n+="]":n+="}"),r.similarity&&(n+="~",.5!==r.similarity&&(n+=r.similarity)),n}},43562:(e,t,r)=>{var n=r(28340),o=r(3540),i=r(73696),a=i&&i.isTypedArray;e.exports=a?o(a):n},43701:(e,t,r)=>{var n=r(23282),o=r(7131),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return o(e);var t=[];for(var r in Object(e))i.call(e,r)&&"constructor"!=r&&t.push(r);return t}},43862:e=>{var t=Date.now;e.exports=function(e){var r=0,n=0;return function(){var o=t(),i=16-(o-n);if(n=o,i>0){if(++r>=800)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}},44555:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(70893),t),o(r(99496),t),o(r(75590),t)},45516:(e,t,r)=>{var n=r(97397),o="object"==typeof self&&self&&self.Object===Object&&self;e.exports=n||o||Function("return this")()},45749:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var n=(0,r(41495).A)("outline","clock","IconClock",[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M12 7v5l3 3",key:"svg-1"}]])},46060:(e,t,r)=>{var n=r(52634),o=r(87567);e.exports=function(e,t){return e&&n(t,o(t),e)}},46448:(e,t,r)=>{var n=r(24127),o=r(88165);e.exports=function(e,t){return t.length<2?e:n(e,o(t,0,-1))}},46468:e=>{e.exports=function(e){return this.__data__.get(e)}},47508:(e,t,r)=>{var n=r(81707);e.exports=function(e,t){var r=this.__data__;return this.size+=+!this.has(e),r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},48039:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff}},50025:(e,t,r)=>{e.exports=r(45516).Uint8Array},50515:(e,t,r)=>{var n=r(33573),o=r(3619);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==n(e)}},50874:(e,t,r)=>{e.exports=r(54703)(r(45516),"Map")},52182:(e,t,r)=>{var n=r(36592);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},52634:(e,t,r)=>{var n=r(81014),o=r(53325);e.exports=function(e,t,r,i){var a=!r;r||(r={});for(var s=-1,u=t.length;++s{var n=r(64593),o=r(50874),i=r(9929),a=r(31736),s=r(24490),u=r(33573),l=r(99048),c="[object Map]",p="[object Promise]",f="[object Set]",h="[object WeakMap]",d="[object DataView]",y=l(n),v=l(o),m=l(i),g=l(a),b=l(s),w=u;(n&&w(new n(new ArrayBuffer(1)))!=d||o&&w(new o)!=c||i&&w(i.resolve())!=p||a&&w(new a)!=f||s&&w(new s)!=h)&&(w=function(e){var t=u(e),r="[object Object]"==t?e.constructor:void 0,n=r?l(r):"";if(n)switch(n){case y:return d;case v:return c;case m:return p;case g:return f;case b:return h}return t}),e.exports=w},53325:(e,t,r)=>{var n=r(1278);e.exports=function(e,t,r){"__proto__"==t&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}},53576:e=>{var t=/\w*$/;e.exports=function(e){var r=new e.constructor(e.source,t.exec(e));return r.lastIndex=e.lastIndex,r}},54348:(e,t,r)=>{"use strict";var n=r(26387),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var r,i,a,s,u,l,c,p,f=!1;t||(t={}),a=t.debug||!1;try{if(u=n(),l=document.createRange(),c=document.getSelection(),(p=document.createElement("span")).textContent=e,p.ariaHidden="true",p.style.all="unset",p.style.position="fixed",p.style.top=0,p.style.clip="rect(0, 0, 0, 0)",p.style.whiteSpace="pre",p.style.webkitUserSelect="text",p.style.MozUserSelect="text",p.style.msUserSelect="text",p.style.userSelect="text",p.addEventListener("copy",function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),void 0===r.clipboardData){a&&console.warn("unable to use e.clipboardData"),a&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var n=o[t.format]||o.default;window.clipboardData.setData(n,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))}),document.body.appendChild(p),l.selectNodeContents(p),c.addRange(l),!document.execCommand("copy"))throw Error("copy command was unsuccessful");f=!0}catch(n){a&&console.error("unable to copy using execCommand: ",n),a&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),f=!0}catch(n){a&&console.error("unable to copy using clipboardData: ",n),a&&console.error("falling back to prompt"),r="message"in t?t.message:"Copy to clipboard: #{key}, Enter",i=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C",s=r.replace(/#{\s*key\s*}/g,i),window.prompt(s,e)}}finally{c&&("function"==typeof c.removeRange?c.removeRange(l):c.removeAllRanges()),p&&document.body.removeChild(p),u()}return f}},54703:(e,t,r)=>{var n=r(66046),o=r(72053);e.exports=function(e,t){var r=o(e,t);return n(r)?r:void 0}},55235:(e,t,r)=>{"use strict";var n=r(88688),o=r(80145);t.parse=n.parse.bind(n),t.toString=r(43353),t.term={escape:o.escape,unescape:o.unescape},t.phrase={escape:o.escapePhrase,unescape:o.unescapePhrase}},55765:(e,t,r)=>{var n=r(33276);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(o.Cache||n),r}o.Cache=n,e.exports=o},57469:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatQuerySettings=function(e){if("boolean"==typeof e)return e?"1":"0";if("number"==typeof e)return String(e);if("string"==typeof e)return e;if(e instanceof n.SettingsMap)return e.toString();throw Error(`Unsupported value in query settings: [${e}].`)};let n=r(71354)},58120:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r{var n=r(52634),o=r(63602);e.exports=function(e,t){return n(e,o(e),t)}},60567:(e,t,r)=>{var n=r(16153);e.exports=function(e){return null==e?"":n(e)}},62220:(e,t,r)=>{var n=r(81707),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:o.call(t,e)}},62272:(e,t,r)=>{e.exports=r(45516)["__core-js_shared__"]},63127:(e,t,r)=>{var n=r(29794),o=r(63602),i=r(70720);e.exports=function(e){return n(e,i,o)}},63602:(e,t,r)=>{var n=r(65517),o=r(10858),i=r(5461),a=r(63912);e.exports=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)n(t,i(e)),e=o(e);return t}:a},63912:e=>{e.exports=function(){return[]}},64022:(e,t,r)=>{var n=r(33573),o=r(10858),i=r(3619),a=Object.prototype,s=Function.prototype.toString,u=a.hasOwnProperty,l=s.call(Object);e.exports=function(e){if(!i(e)||"[object Object]"!=n(e))return!1;var t=o(e);if(null===t)return!0;var r=u.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&s.call(r)==l}},64593:(e,t,r)=>{e.exports=r(54703)(r(45516),"DataView")},65086:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TupleParam=void 0,t.formatQueryParams=n;class r{constructor(e){Object.defineProperty(this,"values",{enumerable:!0,configurable:!0,writable:!0,value:e})}}function n({value:e,wrapStringInQuotes:t,printNullAsKeyword:c}){if(null==e)return c?"NULL":"\\N";if(Number.isNaN(e))return"nan";if(e===1/0)return"+inf";if(e===-1/0)return"-inf";if("number"==typeof e)return String(e);if("boolean"==typeof e)return e?"1":"0";if("string"==typeof e){let r="";for(let t=0;tn({value:e,wrapStringInQuotes:!0,printNullAsKeyword:!0})).join(",")}]`;if(e instanceof Date){let t=Math.floor(e.getTime()/1e3).toString().padStart(10,"0"),r=e.getUTCMilliseconds();return 0===r?t:`${t}.${r.toString().padStart(3,"0")}`}if(e instanceof r)return`(${e.values.map(e=>n({value:e,wrapStringInQuotes:!0,printNullAsKeyword:!0})).join(",")})`;if(e instanceof Map)return o(e.entries());if("object"==typeof e)return o(Object.entries(e));throw Error(`Unsupported value in query parameters: [${e}].`)}function o(e){let t=[];for(let[r,o]of e)t.push(`${n({value:r,wrapStringInQuotes:!0,printNullAsKeyword:!0})}:${n({value:o,wrapStringInQuotes:!0,printNullAsKeyword:!0})}`);return`{${t.join(",")}}`}t.TupleParam=r;let i=9,a=10,s=13,u=39,l=92},65234:(e,t,r)=>{"use strict";var n=r(91293).CopyToClipboard;n.CopyToClipboard=n,e.exports=n},65517:e=>{e.exports=function(e,t){for(var r=-1,n=t.length,o=e.length;++r{var n=r(98499),o=r(24877),i=r(23356),a=r(99048),s=/^\[object .+?Constructor\]$/,u=Object.prototype,l=Function.prototype.toString,c=u.hasOwnProperty,p=RegExp("^"+l.call(c).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(n(e)?p:s).test(a(e))}},66581:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},69335:(e,t,r)=>{var n=r(53140),o=r(3619);e.exports=function(e){return o(e)&&"[object Set]"==n(e)}},69504:(e,t,r)=>{var n=r(28676);e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}},70720:(e,t,r)=>{var n=r(29778),o=r(18482),i=r(16799);e.exports=function(e){return i(e)?n(e,!0):o(e)}},70893:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.withCompressionHeaders=function({headers:e,enable_request_compression:t,enable_response_compression:r}){return{...e,...r?{"Accept-Encoding":"gzip"}:{},...t?{"Content-Encoding":"gzip"}:{}}},t.withHttpSettings=function(e,t){return{...t?{enable_http_compression:1}:{},...e}},t.isSuccessfulResponse=function(e){return!!(e&&200<=e&&e<300)},t.isJWTAuth=function(e){return null!==e&&"object"==typeof e&&"access_token"in e},t.isCredentialsAuth=function(e){return null!==e&&"object"==typeof e&&"username"in e&&"password"in e}},71354:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsMap=void 0;class r{constructor(e){Object.defineProperty(this,"record",{enumerable:!0,configurable:!0,writable:!0,value:e})}toString(){return`{${Object.entries(this.record).map(([e,t])=>`'${e}':'${t}'`).join(",")}}`}static from(e){return new this(e)}}t.SettingsMap=r},71388:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e){var r=e.length,n=new e.constructor(r);return r&&"string"==typeof e[0]&&t.call(e,"index")&&(n.index=e.index,n.input=e.input),n}},72053:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},73696:(e,t,r)=>{e=r.nmd(e);var n=r(97397),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&n.process,s=function(){try{var e=i&&i.require&&i.require("util").types;if(e)return e;return a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},75590:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.transformUrl=function({url:e,pathname:t,searchParams:r}){let n=new URL(e);return t&&("/"===n.pathname?n.pathname=t:n.pathname+=t),r&&(n.search=r?.toString()),n},t.toSearchParams=function({database:e,query:t,query_params:r,clickhouse_settings:o,session_id:i,query_id:a,role:s}){let u=[["query_id",a]];if(void 0!==r)for(let[e,t]of Object.entries(r)){let r=(0,n.formatQueryParams)({value:t});u.push([`param_${e}`,r])}if(void 0!==o)for(let[e,t]of Object.entries(o))void 0!==t&&u.push([e,(0,n.formatQuerySettings)(t)]);if(void 0!==e&&"default"!==e&&u.push(["database",e]),t&&u.push(["query",t]),i&&u.push(["session_id",i]),s){if("string"==typeof s)u.push(["role",s]);else if(Array.isArray(s))for(let e of s)u.push(["role",e])}return new URLSearchParams(u)};let n=r(25701)},75828:(e,t)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t{var n=r(88601),o=r(22346),i=r(87710),a=r(25248),s=r(52634),u=r(16875),l=r(15565),c=r(63127);e.exports=l(function(e,t){var r={};if(null==e)return r;var l=!1;t=n(t,function(t){return t=a(t,e),l||(l=t.length>1),t}),s(e,c(e),r),l&&(r=o(r,7,u));for(var p=t.length;p--;)i(r,t[p]);return r})},80145:(e,t)=>{function r(e){return"\\"+e}function n(e,t){return t}t.escape=function(e){return e.replace(/[\+\-\!\(\)\{\}\[\]\^\"\?\:\\\&\|\'\/\s\*\~]/g,r)},t.unescape=function(e){return e.replace(/\\([\+\-\!\(\)\{\}\[\]\^\"\?\:\\\&\|\'\/\s\*\~])/g,n)},t.escapePhrase=function(e){return e.replace(/"/g,r)},t.unescapePhrase=function(e){return e.replace(/\\(")/g,n)}},80244:e=>{e.exports=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}},80519:(e,t,r)=>{e.exports=r(36538)},81014:(e,t,r)=>{var n=r(53325),o=r(66581),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){var a=e[t];i.call(e,t)&&o(a,r)&&(void 0!==r||t in e)||n(e,t,r)}},81597:(e,t,r)=>{var n=r(55765);e.exports=function(e){var t=n(e,function(e){return 500===r.size&&r.clear(),e}),r=t.cache;return t}},81707:(e,t,r)=>{e.exports=r(54703)(Object,"create")},82006:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ClickHouseError=void 0,t.parseError=function(e){let t=e instanceof Error,o=(t?e.message:e).match(r),i=o?.groups;return i?new n(i):t?e:Error(e)},t.getCurrentStackTrace=function(){let e=Error().stack;return e?e.split("\n").slice(3).reverse().join("\n"):""},t.enhanceStackTrace=function(e,t){if(e.stack&&t){let r=e.stack.indexOf("\n"),n=e.stack.substring(0,r),o=e.stack.substring(r+1);e.stack=`${n} ${t} -${o}`}return e};let r=/(Code|Error): (?\d+).*Exception: (?.+)\((?(?=.+[A-Z]{3})[A-Z0-9_]+?)\)/s;class n extends Error{constructor({message:e,code:t,type:r}){super(e),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"type",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=t,this.type=r,Object.setPrototypeOf(this,n.prototype)}}t.ClickHouseError=n},83374:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(28506),t),o(r(83866),t)},83801:(e,t,r)=>{var n=r(53140),o=r(3619);e.exports=function(e){return o(e)&&"[object Map]"==n(e)}},83866:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WebValuesEncoder=void 0;let n=r(7117),o=r(28506);class i{encodeValues(e,t){if(a(e),Array.isArray(e))return e.map(e=>(0,n.encodeJSON)(e,t)).join("");if("object"==typeof e)return(0,n.encodeJSON)(e,t);throw Error(`Cannot encode values of type ${typeof e} with ${t} format`)}validateInsertValues(e){if(a(e),!Array.isArray(e)&&"object"!=typeof e)throw Error(`Insert expected "values" to be an array or a JSON object, got: ${typeof e}`)}}function a(e){if((0,o.isStream)(e))throw Error("Streaming is not supported for inserts in the web version of the client")}t.WebValuesEncoder=i},83965:(e,t,r)=>{var n=r(65517),o=r(12342);e.exports=function e(t,r,i,a,s){var u=-1,l=t.length;for(i||(i=o),s||(s=[]);++u0&&i(c)?r>1?e(c,r-1,i,a,s):n(s,c):a||(s[s.length]=c)}return s}},84536:(e,t,r)=>{var n=r(43233),o=r(8546);e.exports=function(e,t){return n(e,t,function(t,r){return o(e,r)})}},85008:(e,t,r)=>{var n=r(28676);e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}},86347:(e,t,r)=>{var n=r(33863),o=r(1278),i=r(5549);e.exports=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:i},86414:(e,t,r)=>{var n=r(89139);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},87274:(e,t,r)=>{var n=r(52634),o=r(5461);e.exports=function(e,t){return n(e,o(e),t)}},87567:(e,t,r)=>{var n=r(29778),o=r(43701),i=r(16799);e.exports=function(e){return i(e)?n(e):o(e)}},87568:(e,t,r)=>{var n=r(91357),o=r(10858),i=r(23282);e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:n(o(e))}},87710:(e,t,r)=>{var n=r(25248),o=r(16419),i=r(46448),a=r(43092);e.exports=function(e,t){return t=n(t,e),null==(e=i(e,t))||delete e[a(o(t))]}},88165:e=>{e.exports=function(e,t,r){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(o);++n{var n=r(52634),o=r(70720);e.exports=function(e,t){return e&&n(t,o(t),e)}},88601:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r{"use strict";function t(e,r,n,o){this.message=e,this.expected=r,this.found=n,this.location=o,this.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,t)}function r(){this.constructor=t}r.prototype=Error.prototype,t.prototype=new r,t.buildMessage=function(e,t){var r={literal:function(e){return'"'+o(e.text)+'"'},class:function(e){var t,r="";for(t=0;t0){for(n=1,o=1;n":r[0],o.right=n),o},f=function(e,t,r){var n={left:e},r=0==r.length?null:null==r[0].right?r[0].left:r[0];return null!=r&&(n.operator=""==t?"":t[0],n.right=r),n},h=ey("(",!1),d=ey(")",!1),y=function(e,t){var r={field:null==e||""==e.label?"":e.label,fieldLocation:null==e||""==e.label?null:e.location};for(var n in t)r[n]=t[n];return r},v=/^[:]/,m=ev([":"],!1,!1),g=function(e,t,r,n){var o={term:t,quoted:!0,regex:!1,termLocation:eg(ec,el)};return""!=r&&(o.proximity=r),""!=n&&(o.boost=n),""!=e&&(o.prefix=e),o},b=function(e,t,r,n){var o={term:t.label,quoted:!1,regex:!1,termLocation:eg(ec,el)};return""!=r&&(o.similarity=r),""!=n&&(o.boost=n),""!=e&&(o.prefix=e),o},w=ey("\\",!1),_=function(e){return"\\"+e},S=ey(".",!1),O=/^[^ \t\r\n\f{}()"\/\^~[\]]/,x=ev([" "," ","\r","\n","\f","{","}","(",")",'"',"/","^","~","[","]"],!0,!1),j=/^[^: \t\r\n\f{}()"\^~[\]]/,C=ev([":"," "," ","\r","\n","\f","{","}","(",")",'"',"^","~","[","]"],!0,!1),P=ey('"',!1),A=ey("/",!1),E={type:"any"},k=ey("+",!1),N=ey("-",!1),T=ey("!",!1),R=ey("{",!1),I=ey("}",!1),M=ey("[",!1),q=ey("]",!1),L=ey("^",!1),U=ey("?",!1),D=ey(":",!1),F=ey("&",!1),J=ey("|",!1),$=ey("'",!1),W=ey("~",!1),B=ey("*",!1),H=ey(" ",!1),z=ey("0.",!1),V=/^[0-9]/,Q=ev([["0","9"]],!1,!1),Z=ey("TO",!1),G=function(e){return e},Y="OR NOT",K=ey("OR NOT",!1),X="AND NOT",ee=ey("AND NOT",!1),et=ey("OR",!1),er=ey("AND",!1),en=ey("NOT",!1),eo=ey("||",!1),ei=ey("&&",!1),ea={type:"other",description:"whitespace"},es=/^[ \t\r\n\f]/,eu=ev([" "," ","\r","\n","\f"],!1,!1),el=0,ec=0,ep=[{line:1,column:1}],ef=0,eh=[],ed=0;if("startRule"in r){if(!(r.startRule in u))throw Error("Can't start parsing from rule \""+r.startRule+'".');l=u[r.startRule]}function ey(e,t){return{type:"literal",text:e,ignoreCase:t}}function ev(e,t,r){return{type:"class",parts:e,inverted:t,ignoreCase:r}}function em(t){var r,n=ep[t];if(n)return n;for(r=t-1;!ep[r];)r--;for(n={line:(n=ep[r]).line,column:n.column};ref&&(ef=el,eh=[]),eh.push(e))}function ew(){var e,t,r,n;for(e=el,t=[],r=eL();r!==s;)t.push(r),r=eL();if(t!==s){if(r=[],(n=e_())!==s)for(;n!==s;)r.push(n),n=e_();else r=s;r!==s?(ec=e,e=t=r[0]):(el=e,e=s)}else el=e,e=s;if(e===s){for(e=el,t=[],r=eL();r!==s;)t.push(r),r=eL();t!==s&&(ec=e,t=c()),(e=t)===s&&(e=el,(t=eU())!==s&&(ec=e,t=c()),e=t)}return e}function e_(){var e,t,r,n,o,i;if((e=el,(t=eI())!==s&&(r=eU())!==s)?(ec=e,e=t={operator:t}):(el=e,e=s),e===s){if(e=el,(t=eI())!==s)if((r=eS())!==s){for(n=[],o=eI();o!==s;)n.push(o),o=eI();if(n!==s){for(o=[],i=e_();i!==s;)o.push(i),i=e_();o!==s?(ec=e,e=t=p(t,r,n,o)):(el=e,e=s)}else el=e,e=s}else el=e,e=s;else el=e,e=s;if(e===s&&((e=el,(t=eI())!==s&&(r=e_())!==s)?(ec=e,e=t=r):(el=e,e=s),e===s))if(e=el,(t=eS())!==s){for(r=[],n=eI();n!==s;)r.push(n),n=eI();if(r!==s){for(n=[],o=e_();o!==s;)n.push(o),o=e_();n!==s?(ec=e,e=t=f(t,r,n)):(el=e,e=s)}else el=e,e=s}else el=e,e=s}return e}function eS(){var t,r,n,o,i,a,u,l,c,p,f;if(t=el,(i=el,(a=ex())===s&&(a=null),a!==s&&(u=function(){var t,r,n,o,i,a,u,l;if(t=el,91===e.charCodeAt(el)?(r="[",el++):(r=s,0===ed&&eb(M)),r!==s)if((n=eC())!==s){for(o=[],i=eL();i!==s;)o.push(i),i=eL();if(o!==s)if("TO"===e.substr(el,2)?(i="TO",el+=2):(i=s,0===ed&&eb(Z)),i!==s){if(a=[],(u=eL())!==s)for(;u!==s;)a.push(u),u=eL();else a=s;a!==s&&(u=eC())!==s&&(93===e.charCodeAt(el)?(l="]",el++):(l=s,0===ed&&eb(q)),l!==s)?(ec=t,t=r={term_min:n,term_max:u,inclusive:"both"}):(el=t,t=s)}else el=t,t=s;else el=t,t=s}else el=t,t=s;else el=t,t=s;if(t===s){if(t=el,123===e.charCodeAt(el)?(r="{",el++):(r=s,0===ed&&eb(R)),r!==s)if((n=eC())!==s){for(o=[],i=eL();i!==s;)o.push(i),i=eL();if(o!==s)if("TO"===e.substr(el,2)?(i="TO",el+=2):(i=s,0===ed&&eb(Z)),i!==s){if(a=[],(u=eL())!==s)for(;u!==s;)a.push(u),u=eL();else a=s;a!==s&&(u=eC())!==s&&(125===e.charCodeAt(el)?(l="}",el++):(l=s,0===ed&&eb(I)),l!==s)?(ec=t,t=r={term_min:n,term_max:u,inclusive:"none"}):(el=t,t=s)}else el=t,t=s;else el=t,t=s}else el=t,t=s;else el=t,t=s;if(t===s){if(t=el,91===e.charCodeAt(el)?(r="[",el++):(r=s,0===ed&&eb(M)),r!==s)if((n=eC())!==s){for(o=[],i=eL();i!==s;)o.push(i),i=eL();if(o!==s)if("TO"===e.substr(el,2)?(i="TO",el+=2):(i=s,0===ed&&eb(Z)),i!==s){if(a=[],(u=eL())!==s)for(;u!==s;)a.push(u),u=eL();else a=s;a!==s&&(u=eC())!==s&&(125===e.charCodeAt(el)?(l="}",el++):(l=s,0===ed&&eb(I)),l!==s)?(ec=t,t=r={term_min:n,term_max:u,inclusive:"left"}):(el=t,t=s)}else el=t,t=s;else el=t,t=s}else el=t,t=s;else el=t,t=s;if(t===s)if(t=el,123===e.charCodeAt(el)?(r="{",el++):(r=s,0===ed&&eb(R)),r!==s)if((n=eC())!==s){for(o=[],i=eL();i!==s;)o.push(i),i=eL();if(o!==s)if("TO"===e.substr(el,2)?(i="TO",el+=2):(i=s,0===ed&&eb(Z)),i!==s){if(a=[],(u=eL())!==s)for(;u!==s;)a.push(u),u=eL();else a=s;a!==s&&(u=eC())!==s&&(93===e.charCodeAt(el)?(l="]",el++):(l=s,0===ed&&eb(q)),l!==s)?(ec=t,t=r={term_min:n,term_max:u,inclusive:"right"}):(el=t,t=s)}else el=t,t=s;else el=t,t=s}else el=t,t=s;else el=t,t=s}}return t}())!==s)?(ec=i,l=a,(c=u).field=null==l||""==l.label?"":l.label,c.fieldLocation=null==l||""==l.label?null:l.location,i=a=c):(el=i,i=s),i===s&&((i=el,(a=ex())!==s&&(u=eO())!==s)?(ec=i,p=a,(f=u).field=p.label,f.fieldLocation=p.location,i=a=f):(el=i,i=s),i===s&&(i=el,(a=ex())===s&&(a=null),a!==s&&(u=function(){var t,r,n,o,i,a,u,l,c,p,f,h,d,y;if(t=el,(r=eq())===s&&(r=null),r!==s)if((n=function(){var t,r,n,o;if(t=el,34===e.charCodeAt(el)?(r='"',el++):(r=s,0===ed&&eb(P)),r!==s){for(n=[],o=eE();o!==s;)n.push(o),o=eE();n!==s&&(34===e.charCodeAt(el)?(o='"',el++):(o=s,0===ed&&eb(P)),o!==s)?(ec=t,t=r=n.join("")):(el=t,t=s)}else el=t,t=s;return t}())!==s){if((l=el,126===e.charCodeAt(el)?(c="~",el++):(c=s,0===ed&&eb(W)),c!==s&&(p=eR())!==s)?(ec=l,l=c=p):(el=l,l=s),(o=l)===s&&(o=null),o!==s)if((i=eN())===s&&(i=null),i!==s){for(a=[],u=eL();u!==s;)a.push(u),u=eL();a!==s?(ec=t,t=r=g(r,n,o,i)):(el=t,t=s)}else el=t,t=s;else el=t,t=s}else el=t,t=s;else el=t,t=s;if(t===s)if(t=el,(r=eq())===s&&(r=null),r!==s)if((n=eP())!==s){if((f=el,126===e.charCodeAt(el)?(h="~",el++):(h=s,0===ed&&eb(W)),h!==s&&((d=eT())===s&&(d=null),d!==s))?(ec=f,f=h=""==(y=d)||null==y?.5:y):(el=f,f=s),(o=f)===s&&(o=null),o!==s)if((i=eN())===s&&(i=null),i!==s){for(a=[],u=eL();u!==s;)a.push(u),u=eL();a!==s?(ec=t,t=r=b(r,n,o,i)):(el=t,t=s)}else el=t,t=s;else el=t,t=s}else el=t,t=s;else el=t,t=s;return t}())!==s?(ec=i,i=a=y(a,u)):(el=i,i=s))),(r=i)!==s){for(n=[],o=eL();o!==s;)n.push(o),o=eL();n!==s?(ec=t,t=r):(el=t,t=s)}else el=t,t=s;return t===s&&(t=eO()),t}function eO(){var t,r,n,o,i,a,u,l;if(t=el,40===e.charCodeAt(el)?(r="(",el++):(r=s,0===ed&&eb(h)),r!==s){for(n=[],o=eL();o!==s;)n.push(o),o=eL();if(n!==s){if(o=[],(i=e_())!==s)for(;i!==s;)o.push(i),i=e_();else o=s;if(o!==s)if(41===e.charCodeAt(el)?(i=")",el++):(i=s,0===ed&&eb(d)),i!==s){for(a=[],u=eL();u!==s;)a.push(u),u=eL();a!==s?(ec=t,(l=o)[0].parenthesized=!0,t=r=l[0]):(el=t,t=s)}else el=t,t=s;else el=t,t=s}else el=t,t=s}else el=t,t=s;return t}function ex(){var t,r,n,o,i,a;if(t=el,(r=eP())!==s)if(v.test(e.charAt(el))?(n=e.charAt(el),el++):(n=s,0===ed&&eb(m)),n!==s){for(o=[],i=eL();i!==s;)o.push(i),i=eL();o!==s?(ec=t,t=r={label:(a=r).label,location:a.location}):(el=t,t=s)}else el=t,t=s;else el=t,t=s;return t}function ej(){var t,r,n;return t=el,92===e.charCodeAt(el)?(r="\\",el++):(r=s,0===ed&&eb(w)),r!==s&&(n=ek())!==s?(ec=t,t=r=_(n)):(el=t,t=s),t===s&&(46===e.charCodeAt(el)?(t=".",el++):(t=s,0===ed&&eb(S)),t===s&&(O.test(e.charAt(el))?(t=e.charAt(el),el++):(t=s,0===ed&&eb(x)))),t}function eC(){var e,t,r;if(e=el,t=[],(r=ej())!==s)for(;r!==s;)t.push(r),r=ej();else t=s;return t!==s&&(ec=e,t=t.join("")),t}function eP(){var e,t,r;if(e=el,t=[],(r=eA())!==s)for(;r!==s;)t.push(r),r=eA();else t=s;return t!==s&&(ec=e,t={label:t.join(""),location:eg(ec,el)}),t}function eA(){var t,r,n;return t=el,92===e.charCodeAt(el)?(r="\\",el++):(r=s,0===ed&&eb(w)),r!==s&&(n=ek())!==s?(ec=t,t=r=_(n)):(el=t,t=s),t===s&&(46===e.charCodeAt(el)?(t=".",el++):(t=s,0===ed&&eb(S)),t===s&&(j.test(e.charAt(el))?(t=e.charAt(el),el++):(t=s,0===ed&&eb(C)))),t}function eE(){var t,r,n;return(t=el,r=el,ed++,34===e.charCodeAt(el)?(n='"',el++):(n=s,0===ed&&eb(P)),n===s&&(92===e.charCodeAt(el)?(n="\\",el++):(n=s,0===ed&&eb(w))),ed--,n===s?r=void 0:(el=r,r=s),r!==s&&(e.length>el?(n=e.charAt(el),el++):(n=s,0===ed&&eb(E)),n!==s))?(ec=t,t=r=n):(el=t,t=s),t===s&&(t=el,92===e.charCodeAt(el)?(r="\\",el++):(r=s,0===ed&&eb(w)),r!==s&&(n=ek())!==s?(ec=t,t=r=_(n)):(el=t,t=s)),t}function ek(){var t;return 43===e.charCodeAt(el)?(t="+",el++):(t=s,0===ed&&eb(k)),t===s&&(45===e.charCodeAt(el)?(t="-",el++):(t=s,0===ed&&eb(N)),t===s&&(33===e.charCodeAt(el)?(t="!",el++):(t=s,0===ed&&eb(T)),t===s&&(40===e.charCodeAt(el)?(t="(",el++):(t=s,0===ed&&eb(h)),t===s&&(41===e.charCodeAt(el)?(t=")",el++):(t=s,0===ed&&eb(d)),t===s&&(123===e.charCodeAt(el)?(t="{",el++):(t=s,0===ed&&eb(R)),t===s&&(125===e.charCodeAt(el)?(t="}",el++):(t=s,0===ed&&eb(I)),t===s&&(91===e.charCodeAt(el)?(t="[",el++):(t=s,0===ed&&eb(M)),t===s&&(93===e.charCodeAt(el)?(t="]",el++):(t=s,0===ed&&eb(q)),t===s&&(94===e.charCodeAt(el)?(t="^",el++):(t=s,0===ed&&eb(L)),t===s&&(34===e.charCodeAt(el)?(t='"',el++):(t=s,0===ed&&eb(P)),t===s&&(63===e.charCodeAt(el)?(t="?",el++):(t=s,0===ed&&eb(U)),t===s&&(58===e.charCodeAt(el)?(t=":",el++):(t=s,0===ed&&eb(D)),t===s&&(92===e.charCodeAt(el)?(t="\\",el++):(t=s,0===ed&&eb(w)),t===s&&(38===e.charCodeAt(el)?(t="&",el++):(t=s,0===ed&&eb(F)),t===s&&(124===e.charCodeAt(el)?(t="|",el++):(t=s,0===ed&&eb(J)),t===s&&(39===e.charCodeAt(el)?(t="'",el++):(t=s,0===ed&&eb($)),t===s&&(47===e.charCodeAt(el)?(t="/",el++):(t=s,0===ed&&eb(A)),t===s&&(126===e.charCodeAt(el)?(t="~",el++):(t=s,0===ed&&eb(W)),t===s&&(42===e.charCodeAt(el)?(t="*",el++):(t=s,0===ed&&eb(B)),t===s&&(32===e.charCodeAt(el)?(t=" ",el++):(t=s,0===ed&&eb(H)))))))))))))))))))))),t}function eN(){var t,r,n,o;if(t=el,94===e.charCodeAt(el)?(r="^",el++):(r=s,0===ed&&eb(L)),r!==s){if((o=eT())===s&&(o=eR()),(n=o)!==s)ec=t,t=r=n;else el=t,t=s}else el=t,t=s;return t}function eT(){var t,r,n,o;if(t=el,"0."===e.substr(el,2)?(r="0.",el+=2):(r=s,0===ed&&eb(z)),r!==s){if(n=[],V.test(e.charAt(el))?(o=e.charAt(el),el++):(o=s,0===ed&&eb(Q)),o!==s)for(;o!==s;)n.push(o),V.test(e.charAt(el))?(o=e.charAt(el),el++):(o=s,0===ed&&eb(Q));else n=s;n!==s?(ec=t,t=r=parseFloat("0."+n.join(""))):(el=t,t=s)}else el=t,t=s;return t}function eR(){var t,r,n;if(t=el,r=[],V.test(e.charAt(el))?(n=e.charAt(el),el++):(n=s,0===ed&&eb(Q)),n!==s)for(;n!==s;)r.push(n),V.test(e.charAt(el))?(n=e.charAt(el),el++):(n=s,0===ed&&eb(Q));else r=s;return r!==s&&(ec=t,r=parseInt(r.join(""))),r}function eI(){var e,t,r,n,o;for(e=el,t=[],r=eL();r!==s;)t.push(r),r=eL();if(t!==s)if((r=eM())!==s){if(n=[],(o=eL())!==s)for(;o!==s;)n.push(o),o=eL();else n=s;n!==s?(ec=e,e=t=G(r)):(el=e,e=s)}else el=e,e=s;else el=e,e=s;if(e===s){for(e=el,t=[],r=eL();r!==s;)t.push(r),r=eL();t!==s&&(r=eM())!==s&&(n=eU())!==s?(ec=e,e=t=G(r)):(el=e,e=s)}return e}function eM(){var t;return e.substr(el,6)===Y?(t=Y,el+=6):(t=s,0===ed&&eb(K)),t===s&&(e.substr(el,7)===X?(t=X,el+=7):(t=s,0===ed&&eb(ee)),t===s&&("OR"===e.substr(el,2)?(t="OR",el+=2):(t=s,0===ed&&eb(et)),t===s&&("AND"===e.substr(el,3)?(t="AND",el+=3):(t=s,0===ed&&eb(er)),t===s&&("NOT"===e.substr(el,3)?(t="NOT",el+=3):(t=s,0===ed&&eb(en)),t===s&&("||"===e.substr(el,2)?(t="||",el+=2):(t=s,0===ed&&eb(eo)),t===s&&("&&"===e.substr(el,2)?(t="&&",el+=2):(t=s,0===ed&&eb(ei)))))))),t}function eq(){var t,r,n,o;for(t=el,r=[],n=eL();n!==s;)r.push(n),n=eL();return r!==s&&(43===e.charCodeAt(el)?(o="+",el++):(o=s,0===ed&&eb(k)),o===s&&(45===e.charCodeAt(el)?(o="-",el++):(o=s,0===ed&&eb(N)),o===s&&(33===e.charCodeAt(el)?(o="!",el++):(o=s,0===ed&&eb(T)))),(n=o)!==s)?(ec=t,t=r=G(n)):(el=t,t=s),t}function eL(){var t,r;if(ed++,t=[],es.test(e.charAt(el))?(r=e.charAt(el),el++):(r=s,0===ed&&eb(eu)),r!==s)for(;r!==s;)t.push(r),es.test(e.charAt(el))?(r=e.charAt(el),el++):(r=s,0===ed&&eb(eu));else t=s;return ed--,t===s&&(r=s,0===ed&&eb(ea)),t}function eU(){var t,r;return t=el,ed++,e.length>el?(r=e.charAt(el),el++):(r=s,0===ed&&eb(E)),ed--,r===s?t=void 0:(el=t,t=s),t}if((a=l())!==s&&el===e.length)return a;throw a!==s&&el{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},89766:function(e){var t;t=function(){function e(t,r,n){return this.id=++e.highestId,this.name=t,this.symbols=r,this.postprocess=n,this}function t(e,t,r,n){this.rule=e,this.dot=t,this.reference=r,this.data=[],this.wantedBy=n,this.isComplete=this.dot===e.symbols.length}function r(e,t){this.grammar=e,this.index=t,this.states=[],this.wants={},this.scannable=[],this.completed={}}function n(e,t){this.rules=e,this.start=t||this.rules[0].name;var r=this.byName={};this.rules.forEach(function(e){r.hasOwnProperty(e.name)||(r[e.name]=[]),r[e.name].push(e)})}function o(){this.reset("")}function i(e,t,i){if(e instanceof n)var a=e,i=t;else var a=n.fromCompiled(e,t);for(var s in this.grammar=a,this.options={keepHistory:!1,lexer:a.lexer||new o},i||{})this.options[s]=i[s];this.lexer=this.options.lexer,this.lexerState=void 0;var u=new r(a,0);this.table=[u],u.wants[a.start]=[],u.predict(a.start),u.process(),this.current=0}function a(e){var t=typeof e;if("string"===t)return e;if("object"===t)if(e.literal)return JSON.stringify(e.literal);else if(e instanceof RegExp)return e.toString();else if(e.type)return"%"+e.type;else if(e.test)return"<"+String(e.test)+">";else throw Error("Unknown symbol type: "+e)}return e.highestId=0,e.prototype.toString=function(e){var t=void 0===e?this.symbols.map(a).join(" "):this.symbols.slice(0,e).map(a).join(" ")+" ● "+this.symbols.slice(e).map(a).join(" ");return this.name+" → "+t},t.prototype.toString=function(){return"{"+this.rule.toString(this.dot)+"}, from: "+(this.reference||0)},t.prototype.nextState=function(e){var r=new t(this.rule,this.dot+1,this.reference,this.wantedBy);return r.left=this,r.right=e,r.isComplete&&(r.data=r.build(),r.right=void 0),r},t.prototype.build=function(){var e=[],t=this;do e.push(t.right.data),t=t.left;while(t.left);return e.reverse(),e},t.prototype.finish=function(){this.rule.postprocess&&(this.data=this.rule.postprocess(this.data,this.reference,i.fail))},r.prototype.process=function(e){for(var t=this.states,r=this.wants,n=this.completed,o=0;o0&&t.push(" ^ "+n+" more lines identical to this"),n=0,t.push(" "+a)),r=a}},i.prototype.getSymbolDisplay=function(e){var t=e,r=typeof t;if("string"===r)return t;if("object"===r)if(t.literal)return JSON.stringify(t.literal);else if(t instanceof RegExp)return"character matching "+t;else if(t.type)return t.type+" token";else if(t.test)return"token matching "+String(t.test);else throw Error("Unknown symbol type: "+t)},i.prototype.buildFirstStateStack=function(e,t){if(-1!==t.indexOf(e))return null;if(0===e.wantedBy.length)return[e];var r=e.wantedBy[0],n=[e].concat(t),o=this.buildFirstStateStack(r,n);return null===o?null:[e].concat(o)},i.prototype.save=function(){var e=this.table[this.current];return e.lexerState=this.lexerState,e},i.prototype.restore=function(e){var t=e.index;this.current=t,this.table[t]=e,this.table.splice(t+1),this.lexerState=e.lexerState,this.results=this.finish()},i.prototype.rewind=function(e){if(!this.options.keepHistory)throw Error("set option `keepHistory` to enable rewinding");this.restore(this.table[e])},i.prototype.finish=function(){var e=[],t=this.grammar.start;return this.table[this.table.length-1].states.forEach(function(r){r.rule.name===t&&r.dot===r.rule.symbols.length&&0===r.reference&&r.data!==i.fail&&e.push(r)}),e.map(function(e){return e.data})},{Parser:i,Grammar:n,Rule:e}},e.exports?e.exports=t():this.nearley=t()},90327:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StreamableFormats=t.SupportedRawFormats=t.SupportedJSONFormats=t.SingleDocumentJSONFormats=t.RecordsJSONFormats=t.StreamableJSONFormats=void 0,t.isNotStreamableJSONFamily=function(e){return t.SingleDocumentJSONFormats.includes(e)||t.RecordsJSONFormats.includes(e)},t.isStreamableJSONFamily=function(e){return t.StreamableJSONFormats.includes(e)},t.isSupportedRawFormat=function(e){return t.SupportedRawFormats.includes(e)},t.validateStreamFormat=function(e){if(!t.StreamableFormats.includes(e))throw Error(`${e} format is not streamable. Streamable formats: ${t.StreamableFormats.join(",")}`);return!0},t.encodeJSON=function(e,r){if(t.SupportedJSONFormats.includes(r))return JSON.stringify(e)+"\n";throw Error(`The client does not support JSON encoding in [${r}] format.`)},t.StreamableJSONFormats=["JSONEachRow","JSONStringsEachRow","JSONCompactEachRow","JSONCompactStringsEachRow","JSONCompactEachRowWithNames","JSONCompactEachRowWithNamesAndTypes","JSONCompactStringsEachRowWithNames","JSONCompactStringsEachRowWithNamesAndTypes","JSONEachRowWithProgress"],t.RecordsJSONFormats=["JSONObjectEachRow"],t.SingleDocumentJSONFormats=["JSON","JSONStrings","JSONCompact","JSONCompactStrings","JSONColumnsWithMetadata"],t.SupportedJSONFormats=[...t.RecordsJSONFormats,...t.SingleDocumentJSONFormats,...t.StreamableJSONFormats],t.SupportedRawFormats=["CSV","CSVWithNames","CSVWithNamesAndTypes","TabSeparated","TabSeparatedRaw","TabSeparatedWithNames","TabSeparatedWithNamesAndTypes","CustomSeparated","CustomSeparatedWithNames","CustomSeparatedWithNamesAndTypes","Parquet"],t.StreamableFormats=[...t.StreamableJSONFormats,...t.SupportedRawFormats]},91293:(e,t,r)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.CopyToClipboard=void 0;var o=s(r(55729)),i=s(r(54348)),a=["text","onCopy","options","children"];function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function l(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,a),n=o.default.Children.only(t);return o.default.cloneElement(n,l(l({},r),{},{onClick:this.onClick}))}}],function(e,t){for(var r=0;r{var n=r(23356),o=Object.create;e.exports=function(){function e(){}return function(t){if(!n(t))return{};if(o)return o(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}()},91544:e=>{e.exports=Array.isArray},91985:function(e){var t,r,n;t=this&&this.define,(n=(r={version:"2.14.4",areas:{},apis:{},nsdelim:".",inherit:function(e,t){for(var r in e)t.hasOwnProperty(r)||Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t},stringify:function(e,t){return void 0===e||"function"==typeof e?e+"":JSON.stringify(e,t||r.replace)},parse:function(e,t){try{return JSON.parse(e,t||r.revive)}catch(t){return e}},fn:function(e,t){for(var n in r.storeAPI[e]=t,r.apis)r.apis[n][e]=t},get:function(e,t){return e.getItem(t)},set:function(e,t,r){e.setItem(t,r)},remove:function(e,t){e.removeItem(t)},key:function(e,t){return e.key(t)},length:function(e){return e.length},clear:function(e){e.clear()},Store:function(e,t,n){var o=r.inherit(r.storeAPI,function(e,t,r){return 0==arguments.length?o.getAll():"function"==typeof t?o.transact(e,t,r):void 0!==t?o.set(e,t,r):"string"==typeof e||"number"==typeof e?o.get(e):"function"==typeof e?o.each(e):e?o.setAll(e,t):o.clear()});o._id=e;try{var i="__store2_test";t.setItem(i,"ok"),o._area=t,t.removeItem(i)}catch(e){o._area=r.storage("fake")}return o._ns=n||"",r.areas[e]||(r.areas[e]=o._area),r.apis[o._ns+o._id]||(r.apis[o._ns+o._id]=o),o},storeAPI:{area:function(e,t){var n=this[e];return n&&n.area||(n=r.Store(e,t,this._ns),this[e]||(this[e]=n)),n},namespace:function(e,t,n){if(n=n||this._delim||r.nsdelim,!e)return this._ns?this._ns.substring(0,this._ns.length-n.length):"";var o=this[e];if((!o||!o.namespace)&&((o=r.Store(this._id,this._area,this._ns+e+n))._delim=n,this[e]||(this[e]=o),!t))for(var i in r.areas)o.area(i,r.areas[i]);return o},isFake:function(e){return e?(this._real=this._area,this._area=r.storage("fake")):!1===e&&(this._area=this._real||this._area),"fake"===this._area.name},toString:function(){return"store"+(this._ns?"."+this.namespace():"")+"["+this._id+"]"},has:function(e){return this._area.has?this._area.has(this._in(e)):this._in(e)in this._area},size:function(){return this.keys().length},each:function(e,t){for(var n=0,o=r.length(this._area);nr.length(this._area)&&(o--,n--)}return t||this},keys:function(e){return this.each(function(e,t,r){r.push(e)},e||[])},get:function(e,t){var n,o=r.get(this._area,this._in(e));return"function"==typeof t&&(n=t,t=null),null!==o?r.parse(o,n):null!=t?t:o},getAll:function(e){return this.each(function(e,t,r){r[e]=t},e||{})},transact:function(e,t,r){var n=this.get(e,r),o=t(n);return this.set(e,void 0===o?n:o),this},set:function(e,t,n){var o,i=this.get(e);return null!=i&&!1===n?t:("function"==typeof n&&(o=n,n=void 0),r.set(this._area,this._in(e),r.stringify(t,o),n)||i)},setAll:function(e,t){var r,n;for(var o in e)n=e[o],this.set(o,n,t)!==n&&(r=!0);return r},add:function(e,t,n){var o=this.get(e);if(o instanceof Array)t=o.concat(t);else if(null!==o){var i=typeof o;if(i===typeof t&&"object"===i){for(var a in t)o[a]=t[a];t=o}else t=o+t}return r.set(this._area,this._in(e),r.stringify(t,n)),t},remove:function(e,t){var n=this.get(e,t);return r.remove(this._area,this._in(e)),n},clear:function(){return this._ns?this.each(function(e){r.remove(this._area,this._in(e))},1):r.clear(this._area),this},clearAll:function(){var e=this._area;for(var t in r.areas)r.areas.hasOwnProperty(t)&&(this._area=r.areas[t],this.clear());return this._area=e,this},_in:function(e){return"string"!=typeof e&&(e=r.stringify(e)),this._ns?this._ns+e:e},_out:function(e){return this._ns?e&&0===e.indexOf(this._ns)?e.substring(this._ns.length):void 0:e}},storage:function(e){return r.inherit(r.storageAPI,{items:{},name:e})},storageAPI:{length:0,has:function(e){return this.items.hasOwnProperty(e)},key:function(e){var t=0;for(var r in this.items)if(this.has(r)&&e===t++)return r},setItem:function(e,t){!this.has(e)&&this.length++,this.items[e]=t},removeItem:function(e){this.has(e)&&(delete this.items[e],this.length--)},getItem:function(e){return this.has(e)?this.items[e]:null},clear:function(){for(var e in this.items)this.removeItem(e)}}}).Store("local",function(){try{return localStorage}catch(e){}}())).local=n,n._=r,n.area("session",function(){try{return sessionStorage}catch(e){}}()),n.area("page",r.storage("page")),"function"==typeof t&&void 0!==t.amd?t("store2",[],function(){return n}):e.exports?e.exports=n:(this.store&&(r.conflict=this.store),this.store=n)},92190:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WebConnection=void 0;let n=r(7117),o=r(83374);class i{constructor(e){if(Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"defaultAuthHeader",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),"JWT"===e.auth.type)this.defaultAuthHeader=`Bearer ${e.auth.access_token}`;else if("Credentials"===e.auth.type)this.defaultAuthHeader=`Basic ${btoa(`${e.auth.username}:${e.auth.password}`)}`;else throw Error(`Unknown auth type: ${e.auth.type}`)}async query(e){let t=a(e.query_id),r=(0,n.withHttpSettings)(e.clickhouse_settings,this.params.compression.decompress_response),o=(0,n.toSearchParams)({database:this.params.database,clickhouse_settings:r,query_params:e.query_params,session_id:e.session_id,role:e.role,query_id:t}),i=await this.request({body:e.query,params:e,searchParams:o});return{query_id:t,stream:i.body||new ReadableStream,response_headers:s(i)}}async exec(e){let t=await this.runExec(e);return{query_id:t.query_id,stream:t.stream||new ReadableStream,response_headers:t.response_headers}}async command(e){let{stream:t,query_id:r,response_headers:n}=await this.runExec(e);return null!==t&&await t.cancel(),{query_id:r,response_headers:n}}async insert(e){let t=a(e.query_id),r=(0,n.toSearchParams)({database:this.params.database,clickhouse_settings:e.clickhouse_settings,query_params:e.query_params,query:e.query,session_id:e.session_id,role:e.role,query_id:t}),o=await this.request({body:e.values,params:e,searchParams:r});return null!==o.body&&await o.text(),{query_id:t,response_headers:s(o)}}async ping(){try{let e=await this.request({body:null,searchParams:(0,n.toSearchParams)({database:void 0,query:"SELECT 'ping'",query_id:a(void 0)}),method:"GET"});return null!==e.body&&await e.body.cancel(),{success:!0}}catch(e){if(e instanceof Error)return{success:!1,error:e};throw e}}async close(){}async request({body:e,params:t,searchParams:r,pathname:i,method:a}){let s=(0,n.transformUrl)({url:this.params.url,pathname:i,searchParams:r}).toString(),u=new AbortController,l=!1,c=setTimeout(()=>{l=!0,u.abort()},this.params.request_timeout),p=!1;t?.abort_signal!==void 0&&(t.abort_signal.onabort=()=>{p=!0,u.abort()});try{let r=(0,n.withCompressionHeaders)({headers:this.defaultHeadersWithOverride(t),enable_request_compression:!1,enable_response_compression:this.params.compression.decompress_response}),i=this.params.fetch??fetch,l=await i(s,{body:e,headers:r,keepalive:this.params.keep_alive.enabled,method:a??"POST",signal:u.signal});if(clearTimeout(c),(0,n.isSuccessfulResponse)(l.status))return l;return Promise.reject((0,n.parseError)(await (0,o.getAsText)(l.body||new ReadableStream)))}catch(e){if(clearTimeout(c),p)return Promise.reject(Error("The user aborted a request."));if(l)return Promise.reject(Error("Timeout error."));if(e instanceof Error)return Promise.reject((0,n.parseError)(e));throw e}}async runExec(e){let t=a(e.query_id),r=(0,n.toSearchParams)({database:this.params.database,clickhouse_settings:e.clickhouse_settings,query_params:e.query_params,session_id:e.session_id,role:e.role,query_id:t}),o=await this.request({body:e.query,params:e,searchParams:r});return{stream:o.body,response_headers:s(o),query_id:t}}defaultHeadersWithOverride(e){let t;return t=(0,n.isJWTAuth)(e?.auth)?`Bearer ${e?.auth.access_token}`:(0,n.isCredentialsAuth)(e?.auth)?`Basic ${btoa(`${e?.auth.username}:${e?.auth.password}`)}`:this.defaultAuthHeader,{...this.params.http_headers??{},...e?.http_headers??{},Authorization:t}}}function a(e){return e||crypto.randomUUID()}function s(e){let t={};return e.headers.forEach((e,r)=>{t[r]=e}),t}t.WebConnection=i},92786:(e,t,r)=>{var n=r(36592);e.exports=function(e,t){var r=this.__data__,o=n(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}},92812:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},93248:e=>{e.exports=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}},94061:(e,t,r)=>{e=r.nmd(e);var n,o=function(e){"use strict";var t=c(0x20000000000000),r="0123456789abcdefghijklmnopqrstuvwxyz",n="function"==typeof BigInt;function i(e,t,r,n){return void 0===e?i[0]:void 0!==t&&(10!=+t||r)?D(e,t,r,n):B(e)}function a(e,t){this.value=e,this.sign=t,this.isSmall=!1}function s(e){this.value=e,this.sign=e<0,this.isSmall=!0}function u(e){this.value=e}function l(e){return -0x20000000000000P(e,t))switch(r){case 0:return 0;case 1:return e[0];case 2:return e[0]+1e7*e[1];default:return e[0]+(e[1]+1e7*e[2])*1e7}return e}function f(e){for(var t=e.length;0===e[--t];);e.length=t+1}function h(e){for(var t=Array(e),r=-1;++r0?Math.floor(e):Math.ceil(e)}function y(e,t){var r,n,o=e.length,i=t.length,a=Array(o),s=0;for(n=0;n=1e7),a[n]=r-1e7*s;for(;n0&&a.push(s),a}function v(e,t){return e.length>=t.length?y(e,t):y(t,e)}function m(e,t){var r,n,o=e.length,i=Array(o);for(n=0;n0;)i[n++]=t%1e7,t=Math.floor(t/1e7);return i}function g(e,t){var r,n,o=e.length,i=t.length,a=Array(o),s=0;for(r=0;r0;)i[n++]=a%1e7,a=Math.floor(a/1e7);return i}function S(e,t){for(var r=[];t-- >0;)r.push(0);return r.concat(e)}function O(e,t,r){return e<1e7?new a(_(t,e),r):new a(w(t,c(e)),r)}function x(e){var t,r,n,o,i=e.length,a=h(i+i);for(n=0;n=0;--r)n=d((i=1e7*o+e[r])/t),o=i-n*t,s[r]=0|n;return[s,0|o]}function C(e,t){var r,o,l=B(t);if(n)return[new u(e.value/l.value),new u(e.value%l.value)];var y=e.value,v=l.value;if(0===v)throw Error("Cannot divide by zero");if(e.isSmall)return l.isSmall?[new s(d(y/v)),new s(y%v)]:[i[0],e];if(l.isSmall){if(1===v)return[e,i[0]];if(-1==v)return[e.negate(),i[0]];var m=Math.abs(v);if(m<1e7){r=p((o=j(y,m))[0]);var b=o[1];return(e.sign&&(b=-b),"number"==typeof r)?(e.sign!==l.sign&&(r=-r),[new s(r),new s(b)]):[new a(r,e.sign!==l.sign),new s(b)]}v=c(m)}var w=P(y,v);if(-1===w)return[i[0],e];if(0===w)return[i[e.sign===l.sign?1:-1],i[0]];r=(o=y.length+v.length<=200?function(e,t){var r,n,o,i,a,s,u,l=e.length,c=t.length,f=h(t.length),d=t[c-1],y=Math.ceil(1e7/(2*d)),v=_(e,y),m=_(t,y);for(v.length<=l&&v.push(0),m.push(0),d=m[c-1],n=l-c;n>=0;n--){for(r=1e7-1,v[n+c]!==d&&(r=Math.floor((1e7*v[n+c]+v[n+c-1])/d)),o=0,i=0,s=m.length,a=0;aP(c,t)){l.push(0);continue}n=c.length,o=1e7*c[n-1]+c[n-2],i=1e7*t[u-1]+t[u-2],n>u&&(o=(o+1)*1e7),r=Math.ceil(o/i);do{if(0>=P(a=_(t,r),c))break;r--}while(r);l.push(r),c=g(c,a)}return l.reverse(),[p(l),p(c)]}(y,v))[0];var S=e.sign!==l.sign,O=o[1],x=e.sign;return"number"==typeof r?(S&&(r=-r),r=new s(r)):r=new a(r,S),"number"==typeof O?(x&&(O=-O),O=new s(O)):O=new a(O,x),[r,O]}function P(e,t){if(e.length!==t.length)return e.length>t.length?1:-1;for(var r=e.length-1;r>=0;r--)if(e[r]!==t[r])return e[r]>t[r]?1:-1;return 0}function A(e){var t=e.abs();return!t.isUnit()&&(!!(t.equals(2)||t.equals(3)||t.equals(5))||!(t.isEven()||t.isDivisibleBy(3)||t.isDivisibleBy(5))&&(!!t.lesser(49)||void 0))}function E(e,t){for(var r,n,i,a=e.prev(),s=a,u=0;s.isEven();)s=s.divide(2),u++;e:for(n=0;n=0?r=g(o,i):(r=g(i,o),t=!t),"number"==typeof(r=p(r)))?(t&&(r=-r),new s(r)):new a(r,t))},a.prototype.minus=a.prototype.subtract,s.prototype.subtract=function(e){var t=B(e),r=this.value;if(r<0!==t.sign)return this.add(t.negate());var n=t.value;return t.isSmall?new s(r-n):b(n,Math.abs(r),r>=0)},s.prototype.minus=s.prototype.subtract,u.prototype.subtract=function(e){return new u(this.value-B(e).value)},u.prototype.minus=u.prototype.subtract,a.prototype.negate=function(){return new a(this.value,!this.sign)},s.prototype.negate=function(){var e=this.sign,t=new s(-this.value);return t.sign=!e,t},u.prototype.negate=function(){return new u(-this.value)},a.prototype.abs=function(){return new a(this.value,!1)},s.prototype.abs=function(){return new s(Math.abs(this.value))},u.prototype.abs=function(){return new u(this.value>=0?this.value:-this.value)},a.prototype.multiply=function(e){var t,r,n,o=B(e),s=this.value,u=o.value,l=this.sign!==o.sign;if(o.isSmall){if(0===u)return i[0];if(1===u)return this;if(-1===u)return this.negate();if((n=Math.abs(u))<1e7)return new a(_(s,n),l);u=c(n)}return -.012*(t=s.length)-.012*(r=u.length)+15e-6*t*r>0?new a(function e(t,r){var n=Math.max(t.length,r.length);if(n<=30)return w(t,r);n=Math.ceil(n/2);var o=t.slice(n),i=t.slice(0,n),a=r.slice(n),s=r.slice(0,n),u=e(i,s),l=e(o,a),c=e(v(i,o),v(s,a)),p=v(v(u,S(g(g(c,u),l),n)),S(l,2*n));return f(p),p}(s,u),l):new a(w(s,u),l)},a.prototype.times=a.prototype.multiply,s.prototype._multiplyBySmall=function(e){return l(e.value*this.value)?new s(e.value*this.value):O(Math.abs(e.value),c(Math.abs(this.value)),this.sign!==e.sign)},a.prototype._multiplyBySmall=function(e){return 0===e.value?i[0]:1===e.value?this:-1===e.value?this.negate():O(Math.abs(e.value),this.value,this.sign!==e.sign)},s.prototype.multiply=function(e){return B(e)._multiplyBySmall(this)},s.prototype.times=s.prototype.multiply,u.prototype.multiply=function(e){return new u(this.value*B(e).value)},u.prototype.times=u.prototype.multiply,a.prototype.square=function(){return new a(x(this.value),!1)},s.prototype.square=function(){var e=this.value*this.value;return l(e)?new s(e):new a(x(c(Math.abs(this.value))),!1)},u.prototype.square=function(e){return new u(this.value*this.value)},a.prototype.divmod=function(e){var t=C(this,e);return{quotient:t[0],remainder:t[1]}},u.prototype.divmod=s.prototype.divmod=a.prototype.divmod,a.prototype.divide=function(e){return C(this,e)[0]},u.prototype.over=u.prototype.divide=function(e){return new u(this.value/B(e).value)},s.prototype.over=s.prototype.divide=a.prototype.over=a.prototype.divide,a.prototype.mod=function(e){return C(this,e)[1]},u.prototype.mod=u.prototype.remainder=function(e){return new u(this.value%B(e).value)},s.prototype.remainder=s.prototype.mod=a.prototype.remainder=a.prototype.mod,a.prototype.pow=function(e){var t,r,n,o=B(e),a=this.value,u=o.value;if(0===u)return i[1];if(0===a)return i[0];if(1===a)return i[1];if(-1===a)return o.isEven()?i[1]:i[-1];if(o.sign)return i[0];if(!o.isSmall)throw Error("The exponent "+o.toString()+" is too large.");if(this.isSmall&&l(t=Math.pow(a,u)))return new s(d(t));for(r=this,n=i[1];!0&u&&(n=n.times(r),--u),0!==u;)u/=2,r=r.square();return n},s.prototype.pow=a.prototype.pow,u.prototype.pow=function(e){var t=B(e),r=this.value,n=t.value,o=BigInt(0),a=BigInt(1),s=BigInt(2);if(n===o)return i[1];if(r===o)return i[0];if(r===a)return i[1];if(r===BigInt(-1))return t.isEven()?i[1]:i[-1];if(t.isNegative())return new u(o);for(var l=this,c=i[1];(n&a)===a&&(c=c.times(l),--n),n!==o;)n/=s,l=l.square();return c},a.prototype.modPow=function(e,t){if(e=B(e),(t=B(t)).isZero())throw Error("Cannot take modPow with modulus 0");var r=i[1],n=this.mod(t);for(e.isNegative()&&(e=e.multiply(i[-1]),n=n.modInv(t));e.isPositive();){if(n.isZero())return i[0];e.isOdd()&&(r=r.multiply(n).mod(t)),e=e.divide(2),n=n.square().mod(t)}return r},u.prototype.modPow=s.prototype.modPow=a.prototype.modPow,a.prototype.compareAbs=function(e){var t=B(e),r=this.value,n=t.value;return t.isSmall?1:P(r,n)},s.prototype.compareAbs=function(e){var t=B(e),r=Math.abs(this.value),n=t.value;return t.isSmall?r===(n=Math.abs(n))?0:r>n?1:-1:-1},u.prototype.compareAbs=function(e){var t=this.value,r=B(e).value;return(t=t>=0?t:-t)===(r=r>=0?r:-r)?0:t>r?1:-1},a.prototype.compare=function(e){if(e===1/0)return -1;if(e===-1/0)return 1;var t=B(e),r=this.value,n=t.value;return this.sign!==t.sign?t.sign?1:-1:t.isSmall?this.sign?-1:1:P(r,n)*(this.sign?-1:1)},a.prototype.compareTo=a.prototype.compare,s.prototype.compare=function(e){if(e===1/0)return -1;if(e===-1/0)return 1;var t=B(e),r=this.value,n=t.value;return t.isSmall?r==n?0:r>n?1:-1:r<0!==t.sign?r<0?-1:1:r<0?1:-1},s.prototype.compareTo=s.prototype.compare,u.prototype.compare=function(e){if(e===1/0)return -1;if(e===-1/0)return 1;var t=this.value,r=B(e).value;return t===r?0:t>r?1:-1},u.prototype.compareTo=u.prototype.compare,a.prototype.equals=function(e){return 0===this.compare(e)},u.prototype.eq=u.prototype.equals=s.prototype.eq=s.prototype.equals=a.prototype.eq=a.prototype.equals,a.prototype.notEquals=function(e){return 0!==this.compare(e)},u.prototype.neq=u.prototype.notEquals=s.prototype.neq=s.prototype.notEquals=a.prototype.neq=a.prototype.notEquals,a.prototype.greater=function(e){return this.compare(e)>0},u.prototype.gt=u.prototype.greater=s.prototype.gt=s.prototype.greater=a.prototype.gt=a.prototype.greater,a.prototype.lesser=function(e){return 0>this.compare(e)},u.prototype.lt=u.prototype.lesser=s.prototype.lt=s.prototype.lesser=a.prototype.lt=a.prototype.lesser,a.prototype.greaterOrEquals=function(e){return this.compare(e)>=0},u.prototype.geq=u.prototype.greaterOrEquals=s.prototype.geq=s.prototype.greaterOrEquals=a.prototype.geq=a.prototype.greaterOrEquals,a.prototype.lesserOrEquals=function(e){return 0>=this.compare(e)},u.prototype.leq=u.prototype.lesserOrEquals=s.prototype.leq=s.prototype.lesserOrEquals=a.prototype.leq=a.prototype.lesserOrEquals,a.prototype.isEven=function(){return(1&this.value[0])==0},s.prototype.isEven=function(){return(1&this.value)==0},u.prototype.isEven=function(){return(this.value&BigInt(1))===BigInt(0)},a.prototype.isOdd=function(){return(1&this.value[0])==1},s.prototype.isOdd=function(){return(1&this.value)==1},u.prototype.isOdd=function(){return(this.value&BigInt(1))===BigInt(1)},a.prototype.isPositive=function(){return!this.sign},s.prototype.isPositive=function(){return this.value>0},u.prototype.isPositive=s.prototype.isPositive,a.prototype.isNegative=function(){return this.sign},s.prototype.isNegative=function(){return this.value<0},u.prototype.isNegative=s.prototype.isNegative,a.prototype.isUnit=function(){return!1},s.prototype.isUnit=function(){return 1===Math.abs(this.value)},u.prototype.isUnit=function(){return this.abs().value===BigInt(1)},a.prototype.isZero=function(){return!1},s.prototype.isZero=function(){return 0===this.value},u.prototype.isZero=function(){return this.value===BigInt(0)},a.prototype.isDivisibleBy=function(e){var t=B(e);return!t.isZero()&&(!!t.isUnit()||(0===t.compareAbs(2)?this.isEven():this.mod(t).isZero()))},u.prototype.isDivisibleBy=s.prototype.isDivisibleBy=a.prototype.isDivisibleBy,a.prototype.isPrime=function(e){var t=A(this);if(void 0!==t)return t;var r=this.abs(),n=r.bitLength();if(n<=64)return E(r,[2,3,5,7,11,13,17,19,23,29,31,37]);for(var i=Math.log(2)*n.toJSNumber(),a=Math.ceil(!0===e?2*Math.pow(i,2):i),s=[],u=0;u-0x20000000000000?new s(e-1):new a(t,!0)},u.prototype.prev=function(){return new u(this.value-BigInt(1))};for(var k=[1];2*k[k.length-1]<=1e7;)k.push(2*k[k.length-1]);var N=k.length,T=k[N-1];function R(e){return 1e7>=Math.abs(e)}function I(e,t,r){t=B(t);for(var n=e.isNegative(),i=t.isNegative(),a=n?e.not():e,s=i?t.not():t,u=0,l=0,c=null,p=null,f=[];!a.isZero()||!s.isZero();)u=(c=C(a,T))[1].toJSNumber(),n&&(u=T-1-u),l=(p=C(s,T))[1].toJSNumber(),i&&(l=T-1-l),a=c[0],s=p[0],f.push(r(u,l));for(var h=0!==r(+!!n,+!!i)?o(-1):o(0),d=f.length-1;d>=0;d-=1)h=h.multiply(T).add(o(f[d]));return h}a.prototype.shiftLeft=function(e){var t=B(e).toJSNumber();if(!R(t))throw Error(String(t)+" is too large for shifting.");if(t<0)return this.shiftRight(-t);var r=this;if(r.isZero())return r;for(;t>=N;)r=r.multiply(T),t-=N-1;return r.multiply(k[t])},u.prototype.shiftLeft=s.prototype.shiftLeft=a.prototype.shiftLeft,a.prototype.shiftRight=function(e){var t,r=B(e).toJSNumber();if(!R(r))throw Error(String(r)+" is too large for shifting.");if(r<0)return this.shiftLeft(-r);for(var n=this;r>=N;){if(n.isZero()||n.isNegative()&&n.isUnit())return n;n=(t=C(n,T))[1].isNegative()?t[0].prev():t[0],r-=N-1}return(t=C(n,k[r]))[1].isNegative()?t[0].prev():t[0]},u.prototype.shiftRight=s.prototype.shiftRight=a.prototype.shiftRight,a.prototype.not=function(){return this.negate().prev()},u.prototype.not=s.prototype.not=a.prototype.not,a.prototype.and=function(e){return I(this,e,function(e,t){return e&t})},u.prototype.and=s.prototype.and=a.prototype.and,a.prototype.or=function(e){return I(this,e,function(e,t){return e|t})},u.prototype.or=s.prototype.or=a.prototype.or,a.prototype.xor=function(e){return I(this,e,function(e,t){return e^t})},u.prototype.xor=s.prototype.xor=a.prototype.xor;function M(e){var t=e.value,r="number"==typeof t?0x40000000|t:"bigint"==typeof t?t|BigInt(0x40000000):t[0]+1e7*t[1]|0x40004000;return r&-r}function q(e,t){return e=B(e),t=B(t),e.greater(t)?e:t}function L(e,t){return e=B(e),t=B(t),e.lesser(t)?e:t}function U(e,t){if(e=B(e).abs(),t=B(t).abs(),e.equals(t))return e;if(e.isZero())return t;if(t.isZero())return e;for(var r,n,o=i[1];e.isEven()&&t.isEven();)r=L(M(e),M(t)),e=e.divide(r),t=t.divide(r),o=o.multiply(r);for(;e.isEven();)e=e.divide(M(e));do{for(;t.isEven();)t=t.divide(M(t));e.greater(t)&&(n=t,t=e,e=n),t=t.subtract(e)}while(!t.isZero());return o.isUnit()?e:e.multiply(o)}a.prototype.bitLength=function(){var e=this;return(0>e.compareTo(o(0))&&(e=e.negate().subtract(o(1))),0===e.compareTo(o(0)))?o(0):o(function e(t,r){if(0>=r.compareTo(t)){var n=e(t,r.square(r)),i=n.p,a=n.e,s=i.multiply(r);return 0>=s.compareTo(t)?{p:s,e:2*a+1}:{p:i,e:2*a}}return{p:o(1),e:0}}(e,o(2)).e).add(o(1))},u.prototype.bitLength=s.prototype.bitLength=a.prototype.bitLength;var D=function(e,t,n,o){n=n||r,e=String(e),o||(e=e.toLowerCase(),n=n.toLowerCase());var i,a=e.length,s=Math.abs(t),u={};for(i=0;i=s){if("1"===l&&1===s)continue;throw Error(l+" is not a valid digit in base "+t+".")}}t=B(t);var c=[],p="-"===e[0];for(i=+!!p;i"!==e[i]&&i=0;n--)o=o.add(e[n].times(a)),a=a.times(t);return r?o.negate():o}function J(e,t){if((t=o(t)).isZero()){if(e.isZero())return{value:[0],isNegative:!1};throw Error("Cannot convert nonzero numbers to base 0.")}if(t.equals(-1)){if(e.isZero())return{value:[0],isNegative:!1};if(e.isNegative())return{value:[].concat.apply([],Array.apply(null,Array(-e.toJSNumber())).map(Array.prototype.valueOf,[1,0])),isNegative:!1};var r=Array.apply(null,Array(e.toJSNumber()-1)).map(Array.prototype.valueOf,[0,1]);return r.unshift([1]),{value:[].concat.apply([],r),isNegative:!1}}var n=!1;if(e.isNegative()&&t.isPositive()&&(n=!0,e=e.abs()),t.isUnit())return e.isZero()?{value:[0],isNegative:!1}:{value:Array.apply(null,Array(e.toJSNumber())).map(Number.prototype.valueOf,1),isNegative:n};for(var i,a=[],s=e;s.isNegative()||s.compareAbs(t)>=0;){s=(i=s.divmod(t)).quotient;var u=i.remainder;u.isNegative()&&(u=t.minus(u).abs(),s=s.next()),a.push(u.toJSNumber())}return a.push(s.toJSNumber()),{value:a.reverse(),isNegative:n}}function $(e,t,n){var o=J(e,t);return(o.isNegative?"-":"")+o.value.map(function(e){var t;return e<(t=(t=n)||r).length?t[e]:"<"+e+">"}).join("")}function W(e){if(l(+e)){var t=+e;if(t===d(t))return n?new u(BigInt(t)):new s(t);throw Error("Invalid integer: "+e)}var r="-"===e[0];r&&(e=e.slice(1));var o=e.split(/e/i);if(o.length>2)throw Error("Invalid integer: "+o.join("e"));if(2===o.length){var i=o[1];if("+"===i[0]&&(i=i.slice(1)),(i*=1)!==d(i)||!l(i))throw Error("Invalid integer: "+i+" is not a valid exponent.");var c=o[0],p=c.indexOf(".");if(p>=0&&(i-=c.length-p-1,c=c.slice(0,p)+c.slice(p+1)),i<0)throw Error("Cannot include negative exponent part for integers");c+=Array(i+1).join("0"),e=c}if(!/^([0-9][0-9]*)$/.test(e))throw Error("Invalid integer: "+e);if(n)return new u(BigInt(r?"-"+e:e));for(var h=[],y=e.length,v=y-7;y>0;)h.push(+e.slice(v,y)),(v-=7)<0&&(v=0),y-=7;return f(h),new a(h,r)}function B(e){if("number"==typeof e){if(n)return new u(BigInt(e));if(l(e)){if(e!==d(e))throw Error(e+" is not an integer.");return new s(e)}return W(e.toString())}return"string"==typeof e?W(e):"bigint"==typeof e?new u(e):e}a.prototype.toArray=function(e){return J(this,e)},s.prototype.toArray=function(e){return J(this,e)},u.prototype.toArray=function(e){return J(this,e)},a.prototype.toString=function(e,t){if(void 0===e&&(e=10),10!==e||t)return $(this,e,t);for(var r,n=this.value,o=n.length,i=String(n[--o]);--o>=0;)r=String(n[o]),i+="0000000".slice(r.length)+r;return(this.sign?"-":"")+i},s.prototype.toString=function(e,t){return(void 0===e&&(e=10),10!=e||t)?$(this,e,t):String(this.value)},u.prototype.toString=s.prototype.toString,u.prototype.toJSON=a.prototype.toJSON=s.prototype.toJSON=function(){return this.toString()},a.prototype.valueOf=function(){return parseInt(this.toString(),10)},a.prototype.toJSNumber=a.prototype.valueOf,s.prototype.valueOf=function(){return this.value},s.prototype.toJSNumber=s.prototype.valueOf,u.prototype.valueOf=u.prototype.toJSNumber=function(){return parseInt(this.toString(),10)};for(var H=0;H<1e3;H++)i[H]=B(H),H>0&&(i[-H]=B(-H));return i.one=i[1],i.zero=i[0],i.minusOne=i[-1],i.max=q,i.min=L,i.gcd=U,i.lcm=function(e,t){return e=B(e).abs(),t=B(t).abs(),e.divide(U(e,t)).multiply(t)},i.isInstance=function(e){return e instanceof a||e instanceof s||e instanceof u},i.randBetween=function(e,t,r){e=B(e);var n=r||Math.random,o=L(e,t=B(t)),a=q(e,t).subtract(o).add(1);if(a.isSmall)return o.add(Math.floor(n()*a));for(var s=J(a,1e7).value,u=[],l=!0,c=0;c{var n=r(620),o=r(4650),i=r(50874);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},95345:(e,t,r)=>{var n=r(4650);e.exports=function(){this.__data__=new n,this.size=0}},97397:(e,t,r)=>{e.exports="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g},97722:e=>{e.exports=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createClient=function(e){return new i({impl:o.WebImpl,...e||{}})};let n=r(7117),o=r(30110);class i extends n.ClickHouseClient{query(e){return super.query(e)}}},98499:(e,t,r)=>{var n=r(33573),o=r(23356);e.exports=function(e){if(!o(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},99048:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},99469:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isProgressRow=function(e){return null!==e&&"object"==typeof e&&"progress"in e&&1===Object.keys(e).length},t.isRow=function(e){return null!==e&&"object"==typeof e&&"row"in e&&1===Object.keys(e).length},t.isException=function(e){return null!==e&&"object"==typeof e&&"exception"in e&&1===Object.keys(e).length}},99496:(e,t)=>{"use strict";async function r(e){await new Promise(t=>setTimeout(()=>{t(void 0)},e))}Object.defineProperty(t,"__esModule",{value:!0}),t.sleep=r}}]); \ No newline at end of file +${o}`}return e};let r=/(Code|Error): (?\d+).*Exception: (?.+)\((?(?=.+[A-Z]{3})[A-Z0-9_]+?)\)/s;class n extends Error{constructor({message:e,code:t,type:r}){super(e),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"type",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=t,this.type=r,Object.setPrototypeOf(this,n.prototype)}}t.ClickHouseError=n},83374:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(28506),t),o(r(83866),t)},83801:(e,t,r)=>{var n=r(53140),o=r(3619);e.exports=function(e){return o(e)&&"[object Map]"==n(e)}},83866:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WebValuesEncoder=void 0;let n=r(7117),o=r(28506);class i{encodeValues(e,t){if(a(e),Array.isArray(e))return e.map(e=>(0,n.encodeJSON)(e,t)).join("");if("object"==typeof e)return(0,n.encodeJSON)(e,t);throw Error(`Cannot encode values of type ${typeof e} with ${t} format`)}validateInsertValues(e){if(a(e),!Array.isArray(e)&&"object"!=typeof e)throw Error(`Insert expected "values" to be an array or a JSON object, got: ${typeof e}`)}}function a(e){if((0,o.isStream)(e))throw Error("Streaming is not supported for inserts in the web version of the client")}t.WebValuesEncoder=i},83965:(e,t,r)=>{var n=r(65517),o=r(12342);e.exports=function e(t,r,i,a,s){var u=-1,l=t.length;for(i||(i=o),s||(s=[]);++u0&&i(c)?r>1?e(c,r-1,i,a,s):n(s,c):a||(s[s.length]=c)}return s}},84536:(e,t,r)=>{var n=r(43233),o=r(8546);e.exports=function(e,t){return n(e,t,function(t,r){return o(e,r)})}},85008:(e,t,r)=>{var n=r(28676);e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}},86347:(e,t,r)=>{var n=r(33863),o=r(1278),i=r(5549);e.exports=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:i},86414:(e,t,r)=>{var n=r(89139);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},87274:(e,t,r)=>{var n=r(52634),o=r(5461);e.exports=function(e,t){return n(e,o(e),t)}},87567:(e,t,r)=>{var n=r(29778),o=r(43701),i=r(16799);e.exports=function(e){return i(e)?n(e):o(e)}},87568:(e,t,r)=>{var n=r(91357),o=r(10858),i=r(23282);e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:n(o(e))}},87710:(e,t,r)=>{var n=r(25248),o=r(16419),i=r(46448),a=r(43092),s=Object.prototype.hasOwnProperty;e.exports=function(e,t){t=n(t,e);var r=-1,u=t.length;if(!u)return!0;for(var l=null==e||"object"!=typeof e&&"function"!=typeof e;++r{e.exports=function(e,t,r){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(o);++n{var n=r(52634),o=r(70720);e.exports=function(e,t){return e&&n(t,o(t),e)}},88601:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r{"use strict";function t(e,r,n,o){this.message=e,this.expected=r,this.found=n,this.location=o,this.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,t)}function r(){this.constructor=t}r.prototype=Error.prototype,t.prototype=new r,t.buildMessage=function(e,t){var r={literal:function(e){return'"'+o(e.text)+'"'},class:function(e){var t,r="";for(t=0;t0){for(n=1,o=1;n":r[0],o.right=n),o},f=function(e,t,r){var n={left:e},r=0==r.length?null:null==r[0].right?r[0].left:r[0];return null!=r&&(n.operator=""==t?"":t[0],n.right=r),n},h=ey("(",!1),d=ey(")",!1),y=function(e,t){var r={field:null==e||""==e.label?"":e.label,fieldLocation:null==e||""==e.label?null:e.location};for(var n in t)r[n]=t[n];return r},v=/^[:]/,m=ev([":"],!1,!1),g=function(e,t,r,n){var o={term:t,quoted:!0,regex:!1,termLocation:eg(ec,el)};return""!=r&&(o.proximity=r),""!=n&&(o.boost=n),""!=e&&(o.prefix=e),o},b=function(e,t,r,n){var o={term:t.label,quoted:!1,regex:!1,termLocation:eg(ec,el)};return""!=r&&(o.similarity=r),""!=n&&(o.boost=n),""!=e&&(o.prefix=e),o},w=ey("\\",!1),_=function(e){return"\\"+e},O=ey(".",!1),S=/^[^ \t\r\n\f{}()"\/\^~[\]]/,x=ev([" "," ","\r","\n","\f","{","}","(",")",'"',"/","^","~","[","]"],!0,!1),j=/^[^: \t\r\n\f{}()"\^~[\]]/,C=ev([":"," "," ","\r","\n","\f","{","}","(",")",'"',"^","~","[","]"],!0,!1),P=ey('"',!1),A=ey("/",!1),E={type:"any"},k=ey("+",!1),N=ey("-",!1),T=ey("!",!1),R=ey("{",!1),I=ey("}",!1),M=ey("[",!1),q=ey("]",!1),L=ey("^",!1),D=ey("?",!1),U=ey(":",!1),F=ey("&",!1),J=ey("|",!1),$=ey("'",!1),W=ey("~",!1),B=ey("*",!1),H=ey(" ",!1),z=ey("0.",!1),V=/^[0-9]/,Q=ev([["0","9"]],!1,!1),Z=ey("TO",!1),G=function(e){return e},Y="OR NOT",K=ey("OR NOT",!1),X="AND NOT",ee=ey("AND NOT",!1),et=ey("OR",!1),er=ey("AND",!1),en=ey("NOT",!1),eo=ey("||",!1),ei=ey("&&",!1),ea={type:"other",description:"whitespace"},es=/^[ \t\r\n\f]/,eu=ev([" "," ","\r","\n","\f"],!1,!1),el=0,ec=0,ep=[{line:1,column:1}],ef=0,eh=[],ed=0;if("startRule"in r){if(!(r.startRule in u))throw Error("Can't start parsing from rule \""+r.startRule+'".');l=u[r.startRule]}function ey(e,t){return{type:"literal",text:e,ignoreCase:t}}function ev(e,t,r){return{type:"class",parts:e,inverted:t,ignoreCase:r}}function em(t){var r,n=ep[t];if(n)return n;for(r=t-1;!ep[r];)r--;for(n={line:(n=ep[r]).line,column:n.column};ref&&(ef=el,eh=[]),eh.push(e))}function ew(){var e,t,r,n;for(e=el,t=[],r=eL();r!==s;)t.push(r),r=eL();if(t!==s){if(r=[],(n=e_())!==s)for(;n!==s;)r.push(n),n=e_();else r=s;r!==s?(ec=e,e=t=r[0]):(el=e,e=s)}else el=e,e=s;if(e===s){for(e=el,t=[],r=eL();r!==s;)t.push(r),r=eL();t!==s&&(ec=e,t=c()),(e=t)===s&&(e=el,(t=eD())!==s&&(ec=e,t=c()),e=t)}return e}function e_(){var e,t,r,n,o,i;if((e=el,(t=eI())!==s&&(r=eD())!==s)?(ec=e,e=t={operator:t}):(el=e,e=s),e===s){if(e=el,(t=eI())!==s)if((r=eO())!==s){for(n=[],o=eI();o!==s;)n.push(o),o=eI();if(n!==s){for(o=[],i=e_();i!==s;)o.push(i),i=e_();o!==s?(ec=e,e=t=p(t,r,n,o)):(el=e,e=s)}else el=e,e=s}else el=e,e=s;else el=e,e=s;if(e===s&&((e=el,(t=eI())!==s&&(r=e_())!==s)?(ec=e,e=t=r):(el=e,e=s),e===s))if(e=el,(t=eO())!==s){for(r=[],n=eI();n!==s;)r.push(n),n=eI();if(r!==s){for(n=[],o=e_();o!==s;)n.push(o),o=e_();n!==s?(ec=e,e=t=f(t,r,n)):(el=e,e=s)}else el=e,e=s}else el=e,e=s}return e}function eO(){var t,r,n,o,i,a,u,l,c,p,f;if(t=el,(i=el,(a=ex())===s&&(a=null),a!==s&&(u=function(){var t,r,n,o,i,a,u,l;if(t=el,91===e.charCodeAt(el)?(r="[",el++):(r=s,0===ed&&eb(M)),r!==s)if((n=eC())!==s){for(o=[],i=eL();i!==s;)o.push(i),i=eL();if(o!==s)if("TO"===e.substr(el,2)?(i="TO",el+=2):(i=s,0===ed&&eb(Z)),i!==s){if(a=[],(u=eL())!==s)for(;u!==s;)a.push(u),u=eL();else a=s;a!==s&&(u=eC())!==s&&(93===e.charCodeAt(el)?(l="]",el++):(l=s,0===ed&&eb(q)),l!==s)?(ec=t,t=r={term_min:n,term_max:u,inclusive:"both"}):(el=t,t=s)}else el=t,t=s;else el=t,t=s}else el=t,t=s;else el=t,t=s;if(t===s){if(t=el,123===e.charCodeAt(el)?(r="{",el++):(r=s,0===ed&&eb(R)),r!==s)if((n=eC())!==s){for(o=[],i=eL();i!==s;)o.push(i),i=eL();if(o!==s)if("TO"===e.substr(el,2)?(i="TO",el+=2):(i=s,0===ed&&eb(Z)),i!==s){if(a=[],(u=eL())!==s)for(;u!==s;)a.push(u),u=eL();else a=s;a!==s&&(u=eC())!==s&&(125===e.charCodeAt(el)?(l="}",el++):(l=s,0===ed&&eb(I)),l!==s)?(ec=t,t=r={term_min:n,term_max:u,inclusive:"none"}):(el=t,t=s)}else el=t,t=s;else el=t,t=s}else el=t,t=s;else el=t,t=s;if(t===s){if(t=el,91===e.charCodeAt(el)?(r="[",el++):(r=s,0===ed&&eb(M)),r!==s)if((n=eC())!==s){for(o=[],i=eL();i!==s;)o.push(i),i=eL();if(o!==s)if("TO"===e.substr(el,2)?(i="TO",el+=2):(i=s,0===ed&&eb(Z)),i!==s){if(a=[],(u=eL())!==s)for(;u!==s;)a.push(u),u=eL();else a=s;a!==s&&(u=eC())!==s&&(125===e.charCodeAt(el)?(l="}",el++):(l=s,0===ed&&eb(I)),l!==s)?(ec=t,t=r={term_min:n,term_max:u,inclusive:"left"}):(el=t,t=s)}else el=t,t=s;else el=t,t=s}else el=t,t=s;else el=t,t=s;if(t===s)if(t=el,123===e.charCodeAt(el)?(r="{",el++):(r=s,0===ed&&eb(R)),r!==s)if((n=eC())!==s){for(o=[],i=eL();i!==s;)o.push(i),i=eL();if(o!==s)if("TO"===e.substr(el,2)?(i="TO",el+=2):(i=s,0===ed&&eb(Z)),i!==s){if(a=[],(u=eL())!==s)for(;u!==s;)a.push(u),u=eL();else a=s;a!==s&&(u=eC())!==s&&(93===e.charCodeAt(el)?(l="]",el++):(l=s,0===ed&&eb(q)),l!==s)?(ec=t,t=r={term_min:n,term_max:u,inclusive:"right"}):(el=t,t=s)}else el=t,t=s;else el=t,t=s}else el=t,t=s;else el=t,t=s}}return t}())!==s)?(ec=i,l=a,(c=u).field=null==l||""==l.label?"":l.label,c.fieldLocation=null==l||""==l.label?null:l.location,i=a=c):(el=i,i=s),i===s&&((i=el,(a=ex())!==s&&(u=eS())!==s)?(ec=i,p=a,(f=u).field=p.label,f.fieldLocation=p.location,i=a=f):(el=i,i=s),i===s&&(i=el,(a=ex())===s&&(a=null),a!==s&&(u=function(){var t,r,n,o,i,a,u,l,c,p,f,h,d,y;if(t=el,(r=eq())===s&&(r=null),r!==s)if((n=function(){var t,r,n,o;if(t=el,34===e.charCodeAt(el)?(r='"',el++):(r=s,0===ed&&eb(P)),r!==s){for(n=[],o=eE();o!==s;)n.push(o),o=eE();n!==s&&(34===e.charCodeAt(el)?(o='"',el++):(o=s,0===ed&&eb(P)),o!==s)?(ec=t,t=r=n.join("")):(el=t,t=s)}else el=t,t=s;return t}())!==s){if((l=el,126===e.charCodeAt(el)?(c="~",el++):(c=s,0===ed&&eb(W)),c!==s&&(p=eR())!==s)?(ec=l,l=c=p):(el=l,l=s),(o=l)===s&&(o=null),o!==s)if((i=eN())===s&&(i=null),i!==s){for(a=[],u=eL();u!==s;)a.push(u),u=eL();a!==s?(ec=t,t=r=g(r,n,o,i)):(el=t,t=s)}else el=t,t=s;else el=t,t=s}else el=t,t=s;else el=t,t=s;if(t===s)if(t=el,(r=eq())===s&&(r=null),r!==s)if((n=eP())!==s){if((f=el,126===e.charCodeAt(el)?(h="~",el++):(h=s,0===ed&&eb(W)),h!==s&&((d=eT())===s&&(d=null),d!==s))?(ec=f,f=h=""==(y=d)||null==y?.5:y):(el=f,f=s),(o=f)===s&&(o=null),o!==s)if((i=eN())===s&&(i=null),i!==s){for(a=[],u=eL();u!==s;)a.push(u),u=eL();a!==s?(ec=t,t=r=b(r,n,o,i)):(el=t,t=s)}else el=t,t=s;else el=t,t=s}else el=t,t=s;else el=t,t=s;return t}())!==s?(ec=i,i=a=y(a,u)):(el=i,i=s))),(r=i)!==s){for(n=[],o=eL();o!==s;)n.push(o),o=eL();n!==s?(ec=t,t=r):(el=t,t=s)}else el=t,t=s;return t===s&&(t=eS()),t}function eS(){var t,r,n,o,i,a,u,l;if(t=el,40===e.charCodeAt(el)?(r="(",el++):(r=s,0===ed&&eb(h)),r!==s){for(n=[],o=eL();o!==s;)n.push(o),o=eL();if(n!==s){if(o=[],(i=e_())!==s)for(;i!==s;)o.push(i),i=e_();else o=s;if(o!==s)if(41===e.charCodeAt(el)?(i=")",el++):(i=s,0===ed&&eb(d)),i!==s){for(a=[],u=eL();u!==s;)a.push(u),u=eL();a!==s?(ec=t,(l=o)[0].parenthesized=!0,t=r=l[0]):(el=t,t=s)}else el=t,t=s;else el=t,t=s}else el=t,t=s}else el=t,t=s;return t}function ex(){var t,r,n,o,i,a;if(t=el,(r=eP())!==s)if(v.test(e.charAt(el))?(n=e.charAt(el),el++):(n=s,0===ed&&eb(m)),n!==s){for(o=[],i=eL();i!==s;)o.push(i),i=eL();o!==s?(ec=t,t=r={label:(a=r).label,location:a.location}):(el=t,t=s)}else el=t,t=s;else el=t,t=s;return t}function ej(){var t,r,n;return t=el,92===e.charCodeAt(el)?(r="\\",el++):(r=s,0===ed&&eb(w)),r!==s&&(n=ek())!==s?(ec=t,t=r=_(n)):(el=t,t=s),t===s&&(46===e.charCodeAt(el)?(t=".",el++):(t=s,0===ed&&eb(O)),t===s&&(S.test(e.charAt(el))?(t=e.charAt(el),el++):(t=s,0===ed&&eb(x)))),t}function eC(){var e,t,r;if(e=el,t=[],(r=ej())!==s)for(;r!==s;)t.push(r),r=ej();else t=s;return t!==s&&(ec=e,t=t.join("")),t}function eP(){var e,t,r;if(e=el,t=[],(r=eA())!==s)for(;r!==s;)t.push(r),r=eA();else t=s;return t!==s&&(ec=e,t={label:t.join(""),location:eg(ec,el)}),t}function eA(){var t,r,n;return t=el,92===e.charCodeAt(el)?(r="\\",el++):(r=s,0===ed&&eb(w)),r!==s&&(n=ek())!==s?(ec=t,t=r=_(n)):(el=t,t=s),t===s&&(46===e.charCodeAt(el)?(t=".",el++):(t=s,0===ed&&eb(O)),t===s&&(j.test(e.charAt(el))?(t=e.charAt(el),el++):(t=s,0===ed&&eb(C)))),t}function eE(){var t,r,n;return(t=el,r=el,ed++,34===e.charCodeAt(el)?(n='"',el++):(n=s,0===ed&&eb(P)),n===s&&(92===e.charCodeAt(el)?(n="\\",el++):(n=s,0===ed&&eb(w))),ed--,n===s?r=void 0:(el=r,r=s),r!==s&&(e.length>el?(n=e.charAt(el),el++):(n=s,0===ed&&eb(E)),n!==s))?(ec=t,t=r=n):(el=t,t=s),t===s&&(t=el,92===e.charCodeAt(el)?(r="\\",el++):(r=s,0===ed&&eb(w)),r!==s&&(n=ek())!==s?(ec=t,t=r=_(n)):(el=t,t=s)),t}function ek(){var t;return 43===e.charCodeAt(el)?(t="+",el++):(t=s,0===ed&&eb(k)),t===s&&(45===e.charCodeAt(el)?(t="-",el++):(t=s,0===ed&&eb(N)),t===s&&(33===e.charCodeAt(el)?(t="!",el++):(t=s,0===ed&&eb(T)),t===s&&(40===e.charCodeAt(el)?(t="(",el++):(t=s,0===ed&&eb(h)),t===s&&(41===e.charCodeAt(el)?(t=")",el++):(t=s,0===ed&&eb(d)),t===s&&(123===e.charCodeAt(el)?(t="{",el++):(t=s,0===ed&&eb(R)),t===s&&(125===e.charCodeAt(el)?(t="}",el++):(t=s,0===ed&&eb(I)),t===s&&(91===e.charCodeAt(el)?(t="[",el++):(t=s,0===ed&&eb(M)),t===s&&(93===e.charCodeAt(el)?(t="]",el++):(t=s,0===ed&&eb(q)),t===s&&(94===e.charCodeAt(el)?(t="^",el++):(t=s,0===ed&&eb(L)),t===s&&(34===e.charCodeAt(el)?(t='"',el++):(t=s,0===ed&&eb(P)),t===s&&(63===e.charCodeAt(el)?(t="?",el++):(t=s,0===ed&&eb(D)),t===s&&(58===e.charCodeAt(el)?(t=":",el++):(t=s,0===ed&&eb(U)),t===s&&(92===e.charCodeAt(el)?(t="\\",el++):(t=s,0===ed&&eb(w)),t===s&&(38===e.charCodeAt(el)?(t="&",el++):(t=s,0===ed&&eb(F)),t===s&&(124===e.charCodeAt(el)?(t="|",el++):(t=s,0===ed&&eb(J)),t===s&&(39===e.charCodeAt(el)?(t="'",el++):(t=s,0===ed&&eb($)),t===s&&(47===e.charCodeAt(el)?(t="/",el++):(t=s,0===ed&&eb(A)),t===s&&(126===e.charCodeAt(el)?(t="~",el++):(t=s,0===ed&&eb(W)),t===s&&(42===e.charCodeAt(el)?(t="*",el++):(t=s,0===ed&&eb(B)),t===s&&(32===e.charCodeAt(el)?(t=" ",el++):(t=s,0===ed&&eb(H)))))))))))))))))))))),t}function eN(){var t,r,n,o;if(t=el,94===e.charCodeAt(el)?(r="^",el++):(r=s,0===ed&&eb(L)),r!==s){if((o=eT())===s&&(o=eR()),(n=o)!==s)ec=t,t=r=n;else el=t,t=s}else el=t,t=s;return t}function eT(){var t,r,n,o;if(t=el,"0."===e.substr(el,2)?(r="0.",el+=2):(r=s,0===ed&&eb(z)),r!==s){if(n=[],V.test(e.charAt(el))?(o=e.charAt(el),el++):(o=s,0===ed&&eb(Q)),o!==s)for(;o!==s;)n.push(o),V.test(e.charAt(el))?(o=e.charAt(el),el++):(o=s,0===ed&&eb(Q));else n=s;n!==s?(ec=t,t=r=parseFloat("0."+n.join(""))):(el=t,t=s)}else el=t,t=s;return t}function eR(){var t,r,n;if(t=el,r=[],V.test(e.charAt(el))?(n=e.charAt(el),el++):(n=s,0===ed&&eb(Q)),n!==s)for(;n!==s;)r.push(n),V.test(e.charAt(el))?(n=e.charAt(el),el++):(n=s,0===ed&&eb(Q));else r=s;return r!==s&&(ec=t,r=parseInt(r.join(""))),r}function eI(){var e,t,r,n,o;for(e=el,t=[],r=eL();r!==s;)t.push(r),r=eL();if(t!==s)if((r=eM())!==s){if(n=[],(o=eL())!==s)for(;o!==s;)n.push(o),o=eL();else n=s;n!==s?(ec=e,e=t=G(r)):(el=e,e=s)}else el=e,e=s;else el=e,e=s;if(e===s){for(e=el,t=[],r=eL();r!==s;)t.push(r),r=eL();t!==s&&(r=eM())!==s&&(n=eD())!==s?(ec=e,e=t=G(r)):(el=e,e=s)}return e}function eM(){var t;return e.substr(el,6)===Y?(t=Y,el+=6):(t=s,0===ed&&eb(K)),t===s&&(e.substr(el,7)===X?(t=X,el+=7):(t=s,0===ed&&eb(ee)),t===s&&("OR"===e.substr(el,2)?(t="OR",el+=2):(t=s,0===ed&&eb(et)),t===s&&("AND"===e.substr(el,3)?(t="AND",el+=3):(t=s,0===ed&&eb(er)),t===s&&("NOT"===e.substr(el,3)?(t="NOT",el+=3):(t=s,0===ed&&eb(en)),t===s&&("||"===e.substr(el,2)?(t="||",el+=2):(t=s,0===ed&&eb(eo)),t===s&&("&&"===e.substr(el,2)?(t="&&",el+=2):(t=s,0===ed&&eb(ei)))))))),t}function eq(){var t,r,n,o;for(t=el,r=[],n=eL();n!==s;)r.push(n),n=eL();return r!==s&&(43===e.charCodeAt(el)?(o="+",el++):(o=s,0===ed&&eb(k)),o===s&&(45===e.charCodeAt(el)?(o="-",el++):(o=s,0===ed&&eb(N)),o===s&&(33===e.charCodeAt(el)?(o="!",el++):(o=s,0===ed&&eb(T)))),(n=o)!==s)?(ec=t,t=r=G(n)):(el=t,t=s),t}function eL(){var t,r;if(ed++,t=[],es.test(e.charAt(el))?(r=e.charAt(el),el++):(r=s,0===ed&&eb(eu)),r!==s)for(;r!==s;)t.push(r),es.test(e.charAt(el))?(r=e.charAt(el),el++):(r=s,0===ed&&eb(eu));else t=s;return ed--,t===s&&(r=s,0===ed&&eb(ea)),t}function eD(){var t,r;return t=el,ed++,e.length>el?(r=e.charAt(el),el++):(r=s,0===ed&&eb(E)),ed--,r===s?t=void 0:(el=t,t=s),t}if((a=l())!==s&&el===e.length)return a;throw a!==s&&el{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},89766:function(e){var t;t=function(){function e(t,r,n){return this.id=++e.highestId,this.name=t,this.symbols=r,this.postprocess=n,this}function t(e,t,r,n){this.rule=e,this.dot=t,this.reference=r,this.data=[],this.wantedBy=n,this.isComplete=this.dot===e.symbols.length}function r(e,t){this.grammar=e,this.index=t,this.states=[],this.wants={},this.scannable=[],this.completed={}}function n(e,t){this.rules=e,this.start=t||this.rules[0].name;var r=this.byName={};this.rules.forEach(function(e){r.hasOwnProperty(e.name)||(r[e.name]=[]),r[e.name].push(e)})}function o(){this.reset("")}function i(e,t,i){if(e instanceof n)var a=e,i=t;else var a=n.fromCompiled(e,t);for(var s in this.grammar=a,this.options={keepHistory:!1,lexer:a.lexer||new o},i||{})this.options[s]=i[s];this.lexer=this.options.lexer,this.lexerState=void 0;var u=new r(a,0);this.table=[u],u.wants[a.start]=[],u.predict(a.start),u.process(),this.current=0}function a(e){var t=typeof e;if("string"===t)return e;if("object"===t)if(e.literal)return JSON.stringify(e.literal);else if(e instanceof RegExp)return e.toString();else if(e.type)return"%"+e.type;else if(e.test)return"<"+String(e.test)+">";else throw Error("Unknown symbol type: "+e)}return e.highestId=0,e.prototype.toString=function(e){var t=void 0===e?this.symbols.map(a).join(" "):this.symbols.slice(0,e).map(a).join(" ")+" ● "+this.symbols.slice(e).map(a).join(" ");return this.name+" → "+t},t.prototype.toString=function(){return"{"+this.rule.toString(this.dot)+"}, from: "+(this.reference||0)},t.prototype.nextState=function(e){var r=new t(this.rule,this.dot+1,this.reference,this.wantedBy);return r.left=this,r.right=e,r.isComplete&&(r.data=r.build(),r.right=void 0),r},t.prototype.build=function(){var e=[],t=this;do e.push(t.right.data),t=t.left;while(t.left);return e.reverse(),e},t.prototype.finish=function(){this.rule.postprocess&&(this.data=this.rule.postprocess(this.data,this.reference,i.fail))},r.prototype.process=function(e){for(var t=this.states,r=this.wants,n=this.completed,o=0;o0&&t.push(" ^ "+n+" more lines identical to this"),n=0,t.push(" "+a)),r=a}},i.prototype.getSymbolDisplay=function(e){var t=e,r=typeof t;if("string"===r)return t;if("object"===r)if(t.literal)return JSON.stringify(t.literal);else if(t instanceof RegExp)return"character matching "+t;else if(t.type)return t.type+" token";else if(t.test)return"token matching "+String(t.test);else throw Error("Unknown symbol type: "+t)},i.prototype.buildFirstStateStack=function(e,t){if(-1!==t.indexOf(e))return null;if(0===e.wantedBy.length)return[e];var r=e.wantedBy[0],n=[e].concat(t),o=this.buildFirstStateStack(r,n);return null===o?null:[e].concat(o)},i.prototype.save=function(){var e=this.table[this.current];return e.lexerState=this.lexerState,e},i.prototype.restore=function(e){var t=e.index;this.current=t,this.table[t]=e,this.table.splice(t+1),this.lexerState=e.lexerState,this.results=this.finish()},i.prototype.rewind=function(e){if(!this.options.keepHistory)throw Error("set option `keepHistory` to enable rewinding");this.restore(this.table[e])},i.prototype.finish=function(){var e=[],t=this.grammar.start;return this.table[this.table.length-1].states.forEach(function(r){r.rule.name===t&&r.dot===r.rule.symbols.length&&0===r.reference&&r.data!==i.fail&&e.push(r)}),e.map(function(e){return e.data})},{Parser:i,Grammar:n,Rule:e}},e.exports?e.exports=t():this.nearley=t()},90327:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StreamableFormats=t.SupportedRawFormats=t.SupportedJSONFormats=t.SingleDocumentJSONFormats=t.RecordsJSONFormats=t.StreamableJSONFormats=void 0,t.isNotStreamableJSONFamily=function(e){return t.SingleDocumentJSONFormats.includes(e)||t.RecordsJSONFormats.includes(e)},t.isStreamableJSONFamily=function(e){return t.StreamableJSONFormats.includes(e)},t.isSupportedRawFormat=function(e){return t.SupportedRawFormats.includes(e)},t.validateStreamFormat=function(e){if(!t.StreamableFormats.includes(e))throw Error(`${e} format is not streamable. Streamable formats: ${t.StreamableFormats.join(",")}`);return!0},t.encodeJSON=function(e,r){if(t.SupportedJSONFormats.includes(r))return JSON.stringify(e)+"\n";throw Error(`The client does not support JSON encoding in [${r}] format.`)},t.StreamableJSONFormats=["JSONEachRow","JSONStringsEachRow","JSONCompactEachRow","JSONCompactStringsEachRow","JSONCompactEachRowWithNames","JSONCompactEachRowWithNamesAndTypes","JSONCompactStringsEachRowWithNames","JSONCompactStringsEachRowWithNamesAndTypes","JSONEachRowWithProgress"],t.RecordsJSONFormats=["JSONObjectEachRow"],t.SingleDocumentJSONFormats=["JSON","JSONStrings","JSONCompact","JSONCompactStrings","JSONColumnsWithMetadata"],t.SupportedJSONFormats=[...t.RecordsJSONFormats,...t.SingleDocumentJSONFormats,...t.StreamableJSONFormats],t.SupportedRawFormats=["CSV","CSVWithNames","CSVWithNamesAndTypes","TabSeparated","TabSeparatedRaw","TabSeparatedWithNames","TabSeparatedWithNamesAndTypes","CustomSeparated","CustomSeparatedWithNames","CustomSeparatedWithNamesAndTypes","Parquet"],t.StreamableFormats=[...t.StreamableJSONFormats,...t.SupportedRawFormats]},91293:(e,t,r)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.CopyToClipboard=void 0;var o=s(r(55729)),i=s(r(54348)),a=["text","onCopy","options","children"];function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function l(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,a),n=o.default.Children.only(t);return o.default.cloneElement(n,l(l({},r),{},{onClick:this.onClick}))}}],function(e,t){for(var r=0;r{var n=r(23356),o=Object.create;e.exports=function(){function e(){}return function(t){if(!n(t))return{};if(o)return o(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}()},91544:e=>{e.exports=Array.isArray},91985:function(e){var t,r,n;t=this&&this.define,(n=(r={version:"2.14.4",areas:{},apis:{},nsdelim:".",inherit:function(e,t){for(var r in e)t.hasOwnProperty(r)||Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t},stringify:function(e,t){return void 0===e||"function"==typeof e?e+"":JSON.stringify(e,t||r.replace)},parse:function(e,t){try{return JSON.parse(e,t||r.revive)}catch(t){return e}},fn:function(e,t){for(var n in r.storeAPI[e]=t,r.apis)r.apis[n][e]=t},get:function(e,t){return e.getItem(t)},set:function(e,t,r){e.setItem(t,r)},remove:function(e,t){e.removeItem(t)},key:function(e,t){return e.key(t)},length:function(e){return e.length},clear:function(e){e.clear()},Store:function(e,t,n){var o=r.inherit(r.storeAPI,function(e,t,r){return 0==arguments.length?o.getAll():"function"==typeof t?o.transact(e,t,r):void 0!==t?o.set(e,t,r):"string"==typeof e||"number"==typeof e?o.get(e):"function"==typeof e?o.each(e):e?o.setAll(e,t):o.clear()});o._id=e;try{var i="__store2_test";t.setItem(i,"ok"),o._area=t,t.removeItem(i)}catch(e){o._area=r.storage("fake")}return o._ns=n||"",r.areas[e]||(r.areas[e]=o._area),r.apis[o._ns+o._id]||(r.apis[o._ns+o._id]=o),o},storeAPI:{area:function(e,t){var n=this[e];return n&&n.area||(n=r.Store(e,t,this._ns),this[e]||(this[e]=n)),n},namespace:function(e,t,n){if(n=n||this._delim||r.nsdelim,!e)return this._ns?this._ns.substring(0,this._ns.length-n.length):"";var o=this[e];if((!o||!o.namespace)&&((o=r.Store(this._id,this._area,this._ns+e+n))._delim=n,this[e]||(this[e]=o),!t))for(var i in r.areas)o.area(i,r.areas[i]);return o},isFake:function(e){return e?(this._real=this._area,this._area=r.storage("fake")):!1===e&&(this._area=this._real||this._area),"fake"===this._area.name},toString:function(){return"store"+(this._ns?"."+this.namespace():"")+"["+this._id+"]"},has:function(e){return this._area.has?this._area.has(this._in(e)):this._in(e)in this._area},size:function(){return this.keys().length},each:function(e,t){for(var n=0,o=r.length(this._area);nr.length(this._area)&&(o--,n--)}return t||this},keys:function(e){return this.each(function(e,t,r){r.push(e)},e||[])},get:function(e,t){var n,o=r.get(this._area,this._in(e));return"function"==typeof t&&(n=t,t=null),null!==o?r.parse(o,n):null!=t?t:o},getAll:function(e){return this.each(function(e,t,r){r[e]=t},e||{})},transact:function(e,t,r){var n=this.get(e,r),o=t(n);return this.set(e,void 0===o?n:o),this},set:function(e,t,n){var o,i=this.get(e);return null!=i&&!1===n?t:("function"==typeof n&&(o=n,n=void 0),r.set(this._area,this._in(e),r.stringify(t,o),n)||i)},setAll:function(e,t){var r,n;for(var o in e)n=e[o],this.set(o,n,t)!==n&&(r=!0);return r},add:function(e,t,n){var o=this.get(e);if(o instanceof Array)t=o.concat(t);else if(null!==o){var i=typeof o;if(i===typeof t&&"object"===i){for(var a in t)o[a]=t[a];t=o}else t=o+t}return r.set(this._area,this._in(e),r.stringify(t,n)),t},remove:function(e,t){var n=this.get(e,t);return r.remove(this._area,this._in(e)),n},clear:function(){return this._ns?this.each(function(e){r.remove(this._area,this._in(e))},1):r.clear(this._area),this},clearAll:function(){var e=this._area;for(var t in r.areas)r.areas.hasOwnProperty(t)&&(this._area=r.areas[t],this.clear());return this._area=e,this},_in:function(e){return"string"!=typeof e&&(e=r.stringify(e)),this._ns?this._ns+e:e},_out:function(e){return this._ns?e&&0===e.indexOf(this._ns)?e.substring(this._ns.length):void 0:e}},storage:function(e){return r.inherit(r.storageAPI,{items:{},name:e})},storageAPI:{length:0,has:function(e){return this.items.hasOwnProperty(e)},key:function(e){var t=0;for(var r in this.items)if(this.has(r)&&e===t++)return r},setItem:function(e,t){!this.has(e)&&this.length++,this.items[e]=t},removeItem:function(e){this.has(e)&&(delete this.items[e],this.length--)},getItem:function(e){return this.has(e)?this.items[e]:null},clear:function(){for(var e in this.items)this.removeItem(e)}}}).Store("local",function(){try{return localStorage}catch(e){}}())).local=n,n._=r,n.area("session",function(){try{return sessionStorage}catch(e){}}()),n.area("page",r.storage("page")),"function"==typeof t&&void 0!==t.amd?t("store2",[],function(){return n}):e.exports?e.exports=n:(this.store&&(r.conflict=this.store),this.store=n)},92190:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WebConnection=void 0;let n=r(7117),o=r(83374);class i{constructor(e){if(Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"defaultAuthHeader",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),"JWT"===e.auth.type)this.defaultAuthHeader=`Bearer ${e.auth.access_token}`;else if("Credentials"===e.auth.type)this.defaultAuthHeader=`Basic ${btoa(`${e.auth.username}:${e.auth.password}`)}`;else throw Error(`Unknown auth type: ${e.auth.type}`)}async query(e){let t=a(e.query_id),r=(0,n.withHttpSettings)(e.clickhouse_settings,this.params.compression.decompress_response),o=(0,n.toSearchParams)({database:this.params.database,clickhouse_settings:r,query_params:e.query_params,session_id:e.session_id,role:e.role,query_id:t}),i=await this.request({body:e.query,params:e,searchParams:o});return{query_id:t,stream:i.body||new ReadableStream,response_headers:s(i)}}async exec(e){let t=await this.runExec(e);return{query_id:t.query_id,stream:t.stream||new ReadableStream,response_headers:t.response_headers}}async command(e){let{stream:t,query_id:r,response_headers:n}=await this.runExec(e);return null!==t&&await t.cancel(),{query_id:r,response_headers:n}}async insert(e){let t=a(e.query_id),r=(0,n.toSearchParams)({database:this.params.database,clickhouse_settings:e.clickhouse_settings,query_params:e.query_params,query:e.query,session_id:e.session_id,role:e.role,query_id:t}),o=await this.request({body:e.values,params:e,searchParams:r});return null!==o.body&&await o.text(),{query_id:t,response_headers:s(o)}}async ping(){try{let e=await this.request({body:null,searchParams:(0,n.toSearchParams)({database:void 0,query:"SELECT 'ping'",query_id:a(void 0)}),method:"GET"});return null!==e.body&&await e.body.cancel(),{success:!0}}catch(e){if(e instanceof Error)return{success:!1,error:e};throw e}}async close(){}async request({body:e,params:t,searchParams:r,pathname:i,method:a}){let s=(0,n.transformUrl)({url:this.params.url,pathname:i,searchParams:r}).toString(),u=new AbortController,l=!1,c=setTimeout(()=>{l=!0,u.abort()},this.params.request_timeout),p=!1;t?.abort_signal!==void 0&&(t.abort_signal.onabort=()=>{p=!0,u.abort()});try{let r=(0,n.withCompressionHeaders)({headers:this.defaultHeadersWithOverride(t),enable_request_compression:!1,enable_response_compression:this.params.compression.decompress_response}),i=this.params.fetch??fetch,l=await i(s,{body:e,headers:r,keepalive:this.params.keep_alive.enabled,method:a??"POST",signal:u.signal});if(clearTimeout(c),(0,n.isSuccessfulResponse)(l.status))return l;return Promise.reject((0,n.parseError)(await (0,o.getAsText)(l.body||new ReadableStream)))}catch(e){if(clearTimeout(c),p)return Promise.reject(Error("The user aborted a request."));if(l)return Promise.reject(Error("Timeout error."));if(e instanceof Error)return Promise.reject((0,n.parseError)(e));throw e}}async runExec(e){let t=a(e.query_id),r=(0,n.toSearchParams)({database:this.params.database,clickhouse_settings:e.clickhouse_settings,query_params:e.query_params,session_id:e.session_id,role:e.role,query_id:t}),o=await this.request({body:e.query,params:e,searchParams:r});return{stream:o.body,response_headers:s(o),query_id:t}}defaultHeadersWithOverride(e){let t;return t=(0,n.isJWTAuth)(e?.auth)?`Bearer ${e?.auth.access_token}`:(0,n.isCredentialsAuth)(e?.auth)?`Basic ${btoa(`${e?.auth.username}:${e?.auth.password}`)}`:this.defaultAuthHeader,{...this.params.http_headers??{},...e?.http_headers??{},Authorization:t}}}function a(e){return e||crypto.randomUUID()}function s(e){let t={};return e.headers.forEach((e,r)=>{t[r]=e}),t}t.WebConnection=i},92786:(e,t,r)=>{var n=r(36592);e.exports=function(e,t){var r=this.__data__,o=n(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}},92789:(e,t,r)=>{"use strict";r.d(t,{c:()=>d});var n=r(6029);r(55729);var o=r(76),i=r(5618),a=r(66404),s=r(80616),u=r(37666),l=r(60481),c=r(43016),p={root:"m_3eebeb36",label:"m_9e365f20"};let f={orientation:"horizontal"},h=(0,i.V)((e,{color:t,variant:r,size:n})=>({root:{"--divider-color":t?(0,a.r)(t,e):void 0,"--divider-border-style":r,"--divider-size":(0,o.YC)(n,"divider-size")}})),d=(0,c.P9)((e,t)=>{let r=(0,s.Y)("Divider",f,e),{classNames:o,className:i,style:a,styles:c,unstyled:d,vars:y,color:v,orientation:m,label:g,labelPosition:b,mod:w,..._}=r,O=(0,u.I)({name:"Divider",classes:p,props:r,className:i,style:a,classNames:o,styles:c,unstyled:d,vars:y,varsResolver:h});return(0,n.jsx)(l.a,{ref:t,mod:[{orientation:m,"with-label":!!g},w],...O("root"),..._,role:"separator",children:g&&(0,n.jsx)(l.a,{component:"span",mod:{position:b},...O("label"),children:g})})});d.classes=p,d.displayName="@mantine/core/Divider"},92812:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},93248:e=>{e.exports=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}},94061:(e,t,r)=>{e=r.nmd(e);var n,o=function(e){"use strict";var t=c(0x20000000000000),r="0123456789abcdefghijklmnopqrstuvwxyz",n="function"==typeof BigInt;function i(e,t,r,n){return void 0===e?i[0]:void 0!==t&&(10!=+t||r)?U(e,t,r,n):B(e)}function a(e,t){this.value=e,this.sign=t,this.isSmall=!1}function s(e){this.value=e,this.sign=e<0,this.isSmall=!0}function u(e){this.value=e}function l(e){return -0x20000000000000P(e,t))switch(r){case 0:return 0;case 1:return e[0];case 2:return e[0]+1e7*e[1];default:return e[0]+(e[1]+1e7*e[2])*1e7}return e}function f(e){for(var t=e.length;0===e[--t];);e.length=t+1}function h(e){for(var t=Array(e),r=-1;++r0?Math.floor(e):Math.ceil(e)}function y(e,t){var r,n,o=e.length,i=t.length,a=Array(o),s=0;for(n=0;n=1e7),a[n]=r-1e7*s;for(;n0&&a.push(s),a}function v(e,t){return e.length>=t.length?y(e,t):y(t,e)}function m(e,t){var r,n,o=e.length,i=Array(o);for(n=0;n0;)i[n++]=t%1e7,t=Math.floor(t/1e7);return i}function g(e,t){var r,n,o=e.length,i=t.length,a=Array(o),s=0;for(r=0;r0;)i[n++]=a%1e7,a=Math.floor(a/1e7);return i}function O(e,t){for(var r=[];t-- >0;)r.push(0);return r.concat(e)}function S(e,t,r){return e<1e7?new a(_(t,e),r):new a(w(t,c(e)),r)}function x(e){var t,r,n,o,i=e.length,a=h(i+i);for(n=0;n=0;--r)n=d((i=1e7*o+e[r])/t),o=i-n*t,s[r]=0|n;return[s,0|o]}function C(e,t){var r,o,l=B(t);if(n)return[new u(e.value/l.value),new u(e.value%l.value)];var y=e.value,v=l.value;if(0===v)throw Error("Cannot divide by zero");if(e.isSmall)return l.isSmall?[new s(d(y/v)),new s(y%v)]:[i[0],e];if(l.isSmall){if(1===v)return[e,i[0]];if(-1==v)return[e.negate(),i[0]];var m=Math.abs(v);if(m<1e7){r=p((o=j(y,m))[0]);var b=o[1];return(e.sign&&(b=-b),"number"==typeof r)?(e.sign!==l.sign&&(r=-r),[new s(r),new s(b)]):[new a(r,e.sign!==l.sign),new s(b)]}v=c(m)}var w=P(y,v);if(-1===w)return[i[0],e];if(0===w)return[i[e.sign===l.sign?1:-1],i[0]];r=(o=y.length+v.length<=200?function(e,t){var r,n,o,i,a,s,u,l=e.length,c=t.length,f=h(t.length),d=t[c-1],y=Math.ceil(1e7/(2*d)),v=_(e,y),m=_(t,y);for(v.length<=l&&v.push(0),m.push(0),d=m[c-1],n=l-c;n>=0;n--){for(r=1e7-1,v[n+c]!==d&&(r=Math.floor((1e7*v[n+c]+v[n+c-1])/d)),o=0,i=0,s=m.length,a=0;aP(c,t)){l.push(0);continue}n=c.length,o=1e7*c[n-1]+c[n-2],i=1e7*t[u-1]+t[u-2],n>u&&(o=(o+1)*1e7),r=Math.ceil(o/i);do{if(0>=P(a=_(t,r),c))break;r--}while(r);l.push(r),c=g(c,a)}return l.reverse(),[p(l),p(c)]}(y,v))[0];var O=e.sign!==l.sign,S=o[1],x=e.sign;return"number"==typeof r?(O&&(r=-r),r=new s(r)):r=new a(r,O),"number"==typeof S?(x&&(S=-S),S=new s(S)):S=new a(S,x),[r,S]}function P(e,t){if(e.length!==t.length)return e.length>t.length?1:-1;for(var r=e.length-1;r>=0;r--)if(e[r]!==t[r])return e[r]>t[r]?1:-1;return 0}function A(e){var t=e.abs();return!t.isUnit()&&(!!(t.equals(2)||t.equals(3)||t.equals(5))||!(t.isEven()||t.isDivisibleBy(3)||t.isDivisibleBy(5))&&(!!t.lesser(49)||void 0))}function E(e,t){for(var r,n,i,a=e.prev(),s=a,u=0;s.isEven();)s=s.divide(2),u++;e:for(n=0;n=0?r=g(o,i):(r=g(i,o),t=!t),"number"==typeof(r=p(r)))?(t&&(r=-r),new s(r)):new a(r,t))},a.prototype.minus=a.prototype.subtract,s.prototype.subtract=function(e){var t=B(e),r=this.value;if(r<0!==t.sign)return this.add(t.negate());var n=t.value;return t.isSmall?new s(r-n):b(n,Math.abs(r),r>=0)},s.prototype.minus=s.prototype.subtract,u.prototype.subtract=function(e){return new u(this.value-B(e).value)},u.prototype.minus=u.prototype.subtract,a.prototype.negate=function(){return new a(this.value,!this.sign)},s.prototype.negate=function(){var e=this.sign,t=new s(-this.value);return t.sign=!e,t},u.prototype.negate=function(){return new u(-this.value)},a.prototype.abs=function(){return new a(this.value,!1)},s.prototype.abs=function(){return new s(Math.abs(this.value))},u.prototype.abs=function(){return new u(this.value>=0?this.value:-this.value)},a.prototype.multiply=function(e){var t,r,n,o=B(e),s=this.value,u=o.value,l=this.sign!==o.sign;if(o.isSmall){if(0===u)return i[0];if(1===u)return this;if(-1===u)return this.negate();if((n=Math.abs(u))<1e7)return new a(_(s,n),l);u=c(n)}return -.012*(t=s.length)-.012*(r=u.length)+15e-6*t*r>0?new a(function e(t,r){var n=Math.max(t.length,r.length);if(n<=30)return w(t,r);n=Math.ceil(n/2);var o=t.slice(n),i=t.slice(0,n),a=r.slice(n),s=r.slice(0,n),u=e(i,s),l=e(o,a),c=e(v(i,o),v(s,a)),p=v(v(u,O(g(g(c,u),l),n)),O(l,2*n));return f(p),p}(s,u),l):new a(w(s,u),l)},a.prototype.times=a.prototype.multiply,s.prototype._multiplyBySmall=function(e){return l(e.value*this.value)?new s(e.value*this.value):S(Math.abs(e.value),c(Math.abs(this.value)),this.sign!==e.sign)},a.prototype._multiplyBySmall=function(e){return 0===e.value?i[0]:1===e.value?this:-1===e.value?this.negate():S(Math.abs(e.value),this.value,this.sign!==e.sign)},s.prototype.multiply=function(e){return B(e)._multiplyBySmall(this)},s.prototype.times=s.prototype.multiply,u.prototype.multiply=function(e){return new u(this.value*B(e).value)},u.prototype.times=u.prototype.multiply,a.prototype.square=function(){return new a(x(this.value),!1)},s.prototype.square=function(){var e=this.value*this.value;return l(e)?new s(e):new a(x(c(Math.abs(this.value))),!1)},u.prototype.square=function(e){return new u(this.value*this.value)},a.prototype.divmod=function(e){var t=C(this,e);return{quotient:t[0],remainder:t[1]}},u.prototype.divmod=s.prototype.divmod=a.prototype.divmod,a.prototype.divide=function(e){return C(this,e)[0]},u.prototype.over=u.prototype.divide=function(e){return new u(this.value/B(e).value)},s.prototype.over=s.prototype.divide=a.prototype.over=a.prototype.divide,a.prototype.mod=function(e){return C(this,e)[1]},u.prototype.mod=u.prototype.remainder=function(e){return new u(this.value%B(e).value)},s.prototype.remainder=s.prototype.mod=a.prototype.remainder=a.prototype.mod,a.prototype.pow=function(e){var t,r,n,o=B(e),a=this.value,u=o.value;if(0===u)return i[1];if(0===a)return i[0];if(1===a)return i[1];if(-1===a)return o.isEven()?i[1]:i[-1];if(o.sign)return i[0];if(!o.isSmall)throw Error("The exponent "+o.toString()+" is too large.");if(this.isSmall&&l(t=Math.pow(a,u)))return new s(d(t));for(r=this,n=i[1];!0&u&&(n=n.times(r),--u),0!==u;)u/=2,r=r.square();return n},s.prototype.pow=a.prototype.pow,u.prototype.pow=function(e){var t=B(e),r=this.value,n=t.value,o=BigInt(0),a=BigInt(1),s=BigInt(2);if(n===o)return i[1];if(r===o)return i[0];if(r===a)return i[1];if(r===BigInt(-1))return t.isEven()?i[1]:i[-1];if(t.isNegative())return new u(o);for(var l=this,c=i[1];(n&a)===a&&(c=c.times(l),--n),n!==o;)n/=s,l=l.square();return c},a.prototype.modPow=function(e,t){if(e=B(e),(t=B(t)).isZero())throw Error("Cannot take modPow with modulus 0");var r=i[1],n=this.mod(t);for(e.isNegative()&&(e=e.multiply(i[-1]),n=n.modInv(t));e.isPositive();){if(n.isZero())return i[0];e.isOdd()&&(r=r.multiply(n).mod(t)),e=e.divide(2),n=n.square().mod(t)}return r},u.prototype.modPow=s.prototype.modPow=a.prototype.modPow,a.prototype.compareAbs=function(e){var t=B(e),r=this.value,n=t.value;return t.isSmall?1:P(r,n)},s.prototype.compareAbs=function(e){var t=B(e),r=Math.abs(this.value),n=t.value;return t.isSmall?r===(n=Math.abs(n))?0:r>n?1:-1:-1},u.prototype.compareAbs=function(e){var t=this.value,r=B(e).value;return(t=t>=0?t:-t)===(r=r>=0?r:-r)?0:t>r?1:-1},a.prototype.compare=function(e){if(e===1/0)return -1;if(e===-1/0)return 1;var t=B(e),r=this.value,n=t.value;return this.sign!==t.sign?t.sign?1:-1:t.isSmall?this.sign?-1:1:P(r,n)*(this.sign?-1:1)},a.prototype.compareTo=a.prototype.compare,s.prototype.compare=function(e){if(e===1/0)return -1;if(e===-1/0)return 1;var t=B(e),r=this.value,n=t.value;return t.isSmall?r==n?0:r>n?1:-1:r<0!==t.sign?r<0?-1:1:r<0?1:-1},s.prototype.compareTo=s.prototype.compare,u.prototype.compare=function(e){if(e===1/0)return -1;if(e===-1/0)return 1;var t=this.value,r=B(e).value;return t===r?0:t>r?1:-1},u.prototype.compareTo=u.prototype.compare,a.prototype.equals=function(e){return 0===this.compare(e)},u.prototype.eq=u.prototype.equals=s.prototype.eq=s.prototype.equals=a.prototype.eq=a.prototype.equals,a.prototype.notEquals=function(e){return 0!==this.compare(e)},u.prototype.neq=u.prototype.notEquals=s.prototype.neq=s.prototype.notEquals=a.prototype.neq=a.prototype.notEquals,a.prototype.greater=function(e){return this.compare(e)>0},u.prototype.gt=u.prototype.greater=s.prototype.gt=s.prototype.greater=a.prototype.gt=a.prototype.greater,a.prototype.lesser=function(e){return 0>this.compare(e)},u.prototype.lt=u.prototype.lesser=s.prototype.lt=s.prototype.lesser=a.prototype.lt=a.prototype.lesser,a.prototype.greaterOrEquals=function(e){return this.compare(e)>=0},u.prototype.geq=u.prototype.greaterOrEquals=s.prototype.geq=s.prototype.greaterOrEquals=a.prototype.geq=a.prototype.greaterOrEquals,a.prototype.lesserOrEquals=function(e){return 0>=this.compare(e)},u.prototype.leq=u.prototype.lesserOrEquals=s.prototype.leq=s.prototype.lesserOrEquals=a.prototype.leq=a.prototype.lesserOrEquals,a.prototype.isEven=function(){return(1&this.value[0])==0},s.prototype.isEven=function(){return(1&this.value)==0},u.prototype.isEven=function(){return(this.value&BigInt(1))===BigInt(0)},a.prototype.isOdd=function(){return(1&this.value[0])==1},s.prototype.isOdd=function(){return(1&this.value)==1},u.prototype.isOdd=function(){return(this.value&BigInt(1))===BigInt(1)},a.prototype.isPositive=function(){return!this.sign},s.prototype.isPositive=function(){return this.value>0},u.prototype.isPositive=s.prototype.isPositive,a.prototype.isNegative=function(){return this.sign},s.prototype.isNegative=function(){return this.value<0},u.prototype.isNegative=s.prototype.isNegative,a.prototype.isUnit=function(){return!1},s.prototype.isUnit=function(){return 1===Math.abs(this.value)},u.prototype.isUnit=function(){return this.abs().value===BigInt(1)},a.prototype.isZero=function(){return!1},s.prototype.isZero=function(){return 0===this.value},u.prototype.isZero=function(){return this.value===BigInt(0)},a.prototype.isDivisibleBy=function(e){var t=B(e);return!t.isZero()&&(!!t.isUnit()||(0===t.compareAbs(2)?this.isEven():this.mod(t).isZero()))},u.prototype.isDivisibleBy=s.prototype.isDivisibleBy=a.prototype.isDivisibleBy,a.prototype.isPrime=function(e){var t=A(this);if(void 0!==t)return t;var r=this.abs(),n=r.bitLength();if(n<=64)return E(r,[2,3,5,7,11,13,17,19,23,29,31,37]);for(var i=Math.log(2)*n.toJSNumber(),a=Math.ceil(!0===e?2*Math.pow(i,2):i),s=[],u=0;u-0x20000000000000?new s(e-1):new a(t,!0)},u.prototype.prev=function(){return new u(this.value-BigInt(1))};for(var k=[1];2*k[k.length-1]<=1e7;)k.push(2*k[k.length-1]);var N=k.length,T=k[N-1];function R(e){return 1e7>=Math.abs(e)}function I(e,t,r){t=B(t);for(var n=e.isNegative(),i=t.isNegative(),a=n?e.not():e,s=i?t.not():t,u=0,l=0,c=null,p=null,f=[];!a.isZero()||!s.isZero();)u=(c=C(a,T))[1].toJSNumber(),n&&(u=T-1-u),l=(p=C(s,T))[1].toJSNumber(),i&&(l=T-1-l),a=c[0],s=p[0],f.push(r(u,l));for(var h=0!==r(+!!n,+!!i)?o(-1):o(0),d=f.length-1;d>=0;d-=1)h=h.multiply(T).add(o(f[d]));return h}a.prototype.shiftLeft=function(e){var t=B(e).toJSNumber();if(!R(t))throw Error(String(t)+" is too large for shifting.");if(t<0)return this.shiftRight(-t);var r=this;if(r.isZero())return r;for(;t>=N;)r=r.multiply(T),t-=N-1;return r.multiply(k[t])},u.prototype.shiftLeft=s.prototype.shiftLeft=a.prototype.shiftLeft,a.prototype.shiftRight=function(e){var t,r=B(e).toJSNumber();if(!R(r))throw Error(String(r)+" is too large for shifting.");if(r<0)return this.shiftLeft(-r);for(var n=this;r>=N;){if(n.isZero()||n.isNegative()&&n.isUnit())return n;n=(t=C(n,T))[1].isNegative()?t[0].prev():t[0],r-=N-1}return(t=C(n,k[r]))[1].isNegative()?t[0].prev():t[0]},u.prototype.shiftRight=s.prototype.shiftRight=a.prototype.shiftRight,a.prototype.not=function(){return this.negate().prev()},u.prototype.not=s.prototype.not=a.prototype.not,a.prototype.and=function(e){return I(this,e,function(e,t){return e&t})},u.prototype.and=s.prototype.and=a.prototype.and,a.prototype.or=function(e){return I(this,e,function(e,t){return e|t})},u.prototype.or=s.prototype.or=a.prototype.or,a.prototype.xor=function(e){return I(this,e,function(e,t){return e^t})},u.prototype.xor=s.prototype.xor=a.prototype.xor;function M(e){var t=e.value,r="number"==typeof t?0x40000000|t:"bigint"==typeof t?t|BigInt(0x40000000):t[0]+1e7*t[1]|0x40004000;return r&-r}function q(e,t){return e=B(e),t=B(t),e.greater(t)?e:t}function L(e,t){return e=B(e),t=B(t),e.lesser(t)?e:t}function D(e,t){if(e=B(e).abs(),t=B(t).abs(),e.equals(t))return e;if(e.isZero())return t;if(t.isZero())return e;for(var r,n,o=i[1];e.isEven()&&t.isEven();)r=L(M(e),M(t)),e=e.divide(r),t=t.divide(r),o=o.multiply(r);for(;e.isEven();)e=e.divide(M(e));do{for(;t.isEven();)t=t.divide(M(t));e.greater(t)&&(n=t,t=e,e=n),t=t.subtract(e)}while(!t.isZero());return o.isUnit()?e:e.multiply(o)}a.prototype.bitLength=function(){var e=this;return(0>e.compareTo(o(0))&&(e=e.negate().subtract(o(1))),0===e.compareTo(o(0)))?o(0):o(function e(t,r){if(0>=r.compareTo(t)){var n=e(t,r.square(r)),i=n.p,a=n.e,s=i.multiply(r);return 0>=s.compareTo(t)?{p:s,e:2*a+1}:{p:i,e:2*a}}return{p:o(1),e:0}}(e,o(2)).e).add(o(1))},u.prototype.bitLength=s.prototype.bitLength=a.prototype.bitLength;var U=function(e,t,n,o){n=n||r,e=String(e),o||(e=e.toLowerCase(),n=n.toLowerCase());var i,a=e.length,s=Math.abs(t),u={};for(i=0;i=s){if("1"===l&&1===s)continue;throw Error(l+" is not a valid digit in base "+t+".")}}t=B(t);var c=[],p="-"===e[0];for(i=+!!p;i"!==e[i]&&i=0;n--)o=o.add(e[n].times(a)),a=a.times(t);return r?o.negate():o}function J(e,t){if((t=o(t)).isZero()){if(e.isZero())return{value:[0],isNegative:!1};throw Error("Cannot convert nonzero numbers to base 0.")}if(t.equals(-1)){if(e.isZero())return{value:[0],isNegative:!1};if(e.isNegative())return{value:[].concat.apply([],Array.apply(null,Array(-e.toJSNumber())).map(Array.prototype.valueOf,[1,0])),isNegative:!1};var r=Array.apply(null,Array(e.toJSNumber()-1)).map(Array.prototype.valueOf,[0,1]);return r.unshift([1]),{value:[].concat.apply([],r),isNegative:!1}}var n=!1;if(e.isNegative()&&t.isPositive()&&(n=!0,e=e.abs()),t.isUnit())return e.isZero()?{value:[0],isNegative:!1}:{value:Array.apply(null,Array(e.toJSNumber())).map(Number.prototype.valueOf,1),isNegative:n};for(var i,a=[],s=e;s.isNegative()||s.compareAbs(t)>=0;){s=(i=s.divmod(t)).quotient;var u=i.remainder;u.isNegative()&&(u=t.minus(u).abs(),s=s.next()),a.push(u.toJSNumber())}return a.push(s.toJSNumber()),{value:a.reverse(),isNegative:n}}function $(e,t,n){var o=J(e,t);return(o.isNegative?"-":"")+o.value.map(function(e){var t;return e<(t=(t=n)||r).length?t[e]:"<"+e+">"}).join("")}function W(e){if(l(+e)){var t=+e;if(t===d(t))return n?new u(BigInt(t)):new s(t);throw Error("Invalid integer: "+e)}var r="-"===e[0];r&&(e=e.slice(1));var o=e.split(/e/i);if(o.length>2)throw Error("Invalid integer: "+o.join("e"));if(2===o.length){var i=o[1];if("+"===i[0]&&(i=i.slice(1)),(i*=1)!==d(i)||!l(i))throw Error("Invalid integer: "+i+" is not a valid exponent.");var c=o[0],p=c.indexOf(".");if(p>=0&&(i-=c.length-p-1,c=c.slice(0,p)+c.slice(p+1)),i<0)throw Error("Cannot include negative exponent part for integers");c+=Array(i+1).join("0"),e=c}if(!/^([0-9][0-9]*)$/.test(e))throw Error("Invalid integer: "+e);if(n)return new u(BigInt(r?"-"+e:e));for(var h=[],y=e.length,v=y-7;y>0;)h.push(+e.slice(v,y)),(v-=7)<0&&(v=0),y-=7;return f(h),new a(h,r)}function B(e){if("number"==typeof e){if(n)return new u(BigInt(e));if(l(e)){if(e!==d(e))throw Error(e+" is not an integer.");return new s(e)}return W(e.toString())}return"string"==typeof e?W(e):"bigint"==typeof e?new u(e):e}a.prototype.toArray=function(e){return J(this,e)},s.prototype.toArray=function(e){return J(this,e)},u.prototype.toArray=function(e){return J(this,e)},a.prototype.toString=function(e,t){if(void 0===e&&(e=10),10!==e||t)return $(this,e,t);for(var r,n=this.value,o=n.length,i=String(n[--o]);--o>=0;)r=String(n[o]),i+="0000000".slice(r.length)+r;return(this.sign?"-":"")+i},s.prototype.toString=function(e,t){return(void 0===e&&(e=10),10!=e||t)?$(this,e,t):String(this.value)},u.prototype.toString=s.prototype.toString,u.prototype.toJSON=a.prototype.toJSON=s.prototype.toJSON=function(){return this.toString()},a.prototype.valueOf=function(){return parseInt(this.toString(),10)},a.prototype.toJSNumber=a.prototype.valueOf,s.prototype.valueOf=function(){return this.value},s.prototype.toJSNumber=s.prototype.valueOf,u.prototype.valueOf=u.prototype.toJSNumber=function(){return parseInt(this.toString(),10)};for(var H=0;H<1e3;H++)i[H]=B(H),H>0&&(i[-H]=B(-H));return i.one=i[1],i.zero=i[0],i.minusOne=i[-1],i.max=q,i.min=L,i.gcd=D,i.lcm=function(e,t){return e=B(e).abs(),t=B(t).abs(),e.divide(D(e,t)).multiply(t)},i.isInstance=function(e){return e instanceof a||e instanceof s||e instanceof u},i.randBetween=function(e,t,r){e=B(e);var n=r||Math.random,o=L(e,t=B(t)),a=q(e,t).subtract(o).add(1);if(a.isSmall)return o.add(Math.floor(n()*a));for(var s=J(a,1e7).value,u=[],l=!0,c=0;c{var n=r(620),o=r(4650),i=r(50874);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},95345:(e,t,r)=>{var n=r(4650);e.exports=function(){this.__data__=new n,this.size=0}},97397:(e,t,r)=>{e.exports="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g},97722:e=>{e.exports=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createClient=function(e){return new i({impl:o.WebImpl,...e||{}})};let n=r(7117),o=r(30110);class i extends n.ClickHouseClient{query(e){return super.query(e)}}},98499:(e,t,r)=>{var n=r(33573),o=r(23356);e.exports=function(e){if(!o(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},99048:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},99469:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isProgressRow=function(e){return null!==e&&"object"==typeof e&&"progress"in e&&1===Object.keys(e).length},t.isRow=function(e){return null!==e&&"object"==typeof e&&"row"in e&&1===Object.keys(e).length},t.isException=function(e){return null!==e&&"object"==typeof e&&"exception"in e&&1===Object.keys(e).length}},99496:(e,t)=>{"use strict";async function r(e){await new Promise(t=>setTimeout(()=>{t(void 0)},e))}Object.defineProperty(t,"__esModule",{value:!0}),t.sleep=r}}]); \ No newline at end of file diff --git a/out/_next/static/chunks/7386-8fea3f6843338cab.js b/out/_next/static/chunks/7386-8fea3f6843338cab.js deleted file mode 100644 index bc17bdd..0000000 --- a/out/_next/static/chunks/7386-8fea3f6843338cab.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7386],{5521:(e,t,r)=>{"use strict";function n(){for(var e,t,r=0,n="";rn,default:()=>o});let o=n},12143:(e,t,r)=>{"use strict";t.__esModule=!0,t.cloneElement=function(e,t){return t.style&&e.props.style&&(t.style=i(i({},e.props.style),t.style)),t.className&&e.props.className&&(t.className=e.props.className+" "+t.className),o.default.cloneElement(e,t)};var n,o=(n=r(55729))&&n.__esModule?n:{default:n};function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function i(e){for(var t=1;t{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}t.default=void 0;var o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=p(void 0);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var s=a?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(o,i,s):o[i]=e[i]}return o.default=e,r&&r.set(e,o),o}(r(55729)),a=f(r(56121)),i=f(r(84719)),s=r(62691),l=r(56937),u=f(r(84703)),c=["breakpoint","breakpoints","cols","layouts","margin","containerPadding","onBreakpointChange","onLayoutChange","onWidthChange"];function f(e){return e&&e.__esModule?e:{default:e}}function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(p=function(e){return e?r:t})(e)}function d(){return(d=Object.assign||function(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,c));return o.createElement(u.default,d({},n,{margin:S(t,this.state.breakpoint),containerPadding:S(r,this.state.breakpoint),onLayoutChange:this.onLayoutChange,layout:this.state.layout,cols:this.state.cols}))}}],a=[{key:"getDerivedStateFromProps",value:function(e,t){if(!(0,i.default)(e.layouts,t.layouts)){var r=t.breakpoint,n=t.cols;return{layout:(0,l.findOrGenerateResponsiveLayout)(e.layouts,e.breakpoints,r,r,n,e.compactType),layouts:e.layouts}}return null}}],r&&g(p.prototype,r),a&&g(p,a),Object.defineProperty(p,"prototype",{writable:!1}),p}(o.Component);t.default=j,O(j,"propTypes",{breakpoint:a.default.string,breakpoints:a.default.object,allowOverlap:a.default.bool,cols:a.default.object,margin:a.default.oneOfType([a.default.array,a.default.object]),containerPadding:a.default.oneOfType([a.default.array,a.default.object]),layouts:function(e,t){if("[object Object]"!==w(e[t]))throw Error("Layout property must be an object. Received: "+w(e[t]));Object.keys(e[t]).forEach(function(t){if(!(t in e.breakpoints))throw Error("Each key in layouts must align with a key in breakpoints.");(0,s.validateLayout)(e.layouts[t],"layouts."+t)})},width:a.default.number.isRequired,onBreakpointChange:a.default.func,onLayoutChange:a.default.func,onWidthChange:a.default.func}),O(j,"defaultProps",{breakpoints:{lg:1200,md:996,sm:768,xs:480,xxs:0},cols:{lg:12,md:10,sm:6,xs:4,xxs:2},containerPadding:{lg:null,md:null,sm:null,xs:null,xxs:null},layouts:{},margin:[10,10],allowOverlap:!1,onBreakpointChange:s.noop,onLayoutChange:s.noop,onWidthChange:s.noop})},16389:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){}},16807:(e,t)=>{"use strict";function r(e){var t=e.margin,r=e.containerPadding,n=e.containerWidth,o=e.cols;return(n-t[0]*(o-1)-2*r[0])/o}function n(e,t,r){return Number.isFinite(e)?Math.round(t*e+Math.max(0,e-1)*r):e}function o(e,t,r){return Math.max(Math.min(e,r),t)}Object.defineProperty(t,"__esModule",{value:!0}),t.calcGridColWidth=r,t.calcGridItemPosition=function(e,t,o,a,i,s){var l=e.margin,u=e.containerPadding,c=e.rowHeight,f=r(e),p={};return s&&s.resizing?(p.width=Math.round(s.resizing.width),p.height=Math.round(s.resizing.height)):(p.width=n(a,f,l[0]),p.height=n(i,c,l[1])),s&&s.dragging?(p.top=Math.round(s.dragging.top),p.left=Math.round(s.dragging.left)):(p.top=Math.round((c+l[1])*o+u[1]),p.left=Math.round((f+l[0])*t+u[0])),p},t.calcGridItemWHPx=n,t.calcWH=function(e,t,n,a,i){var s=e.margin,l=e.maxRows,u=e.cols,c=e.rowHeight,f=r(e),p=Math.round((t+s[0])/(f+s[0])),d=Math.round((n+s[1])/(c+s[1]));return{w:p=o(p,0,u-a),h:d=o(d,0,l-i)}},t.calcXY=function(e,t,n,a,i){var s=e.margin,l=e.cols,u=e.rowHeight,c=e.maxRows,f=r(e),p=Math.round((n-s[0])/(f+s[0])),d=Math.round((t-s[1])/(u+s[1]));return{x:p=o(p,0,l-a),y:d=o(d,0,c-i)}},t.clamp=o},17456:(e,t,r)=>{"use strict";r.d(t,{C:()=>b});var n=r(6029),o=r(26615);r(55729);var a=r(76),i=r(5618),s=r(66404),l=r(92096),u=r(35192),c=r(80616),f=r(37666),p=r(60481),d=r(43016),h={root:"m_e5262200",indicator:"m_760d1fb1",processing:"m_885901b1"};let y={position:"top-end",offset:0,inline:!1,withBorder:!1,disabled:!1,processing:!1},g=(0,i.V)((e,{color:t,position:r,offset:n,size:i,radius:c,zIndex:f,autoContrast:p})=>({root:{"--indicator-color":t?(0,s.r)(t,e):void 0,"--indicator-text-color":(0,u.v)(p,e)?(0,l.w)({color:t,theme:e,autoContrast:p}):void 0,"--indicator-size":(0,o.D)(i),"--indicator-radius":void 0===c?void 0:(0,a.nJ)(c),"--indicator-z-index":f?.toString(),...function(e="top-end",t=0){let r={"--indicator-top":void 0,"--indicator-bottom":void 0,"--indicator-left":void 0,"--indicator-right":void 0,"--indicator-translate-x":void 0,"--indicator-translate-y":void 0},n=(0,o.D)(t),[a,i]=e.split("-");return"top"===a&&(r["--indicator-top"]=n,r["--indicator-translate-y"]="-50%"),"middle"===a&&(r["--indicator-top"]="50%",r["--indicator-translate-y"]="-50%"),"bottom"===a&&(r["--indicator-bottom"]=n,r["--indicator-translate-y"]="50%"),"start"===i&&(r["--indicator-left"]=n,r["--indicator-translate-x"]="-50%"),"center"===i&&(r["--indicator-left"]="50%",r["--indicator-translate-x"]="-50%"),"end"===i&&(r["--indicator-right"]=n,r["--indicator-translate-x"]="50%"),r}(r,n)}})),b=(0,d.P9)((e,t)=>{let r=(0,c.Y)("Indicator",y,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:u,children:d,position:b,offset:m,inline:v,label:O,radius:w,color:S,withBorder:j,disabled:P,processing:D,zIndex:x,autoContrast:R,mod:_,...z}=r,k=(0,f.I)({name:"Indicator",classes:h,props:r,className:a,style:i,classNames:o,styles:s,unstyled:l,vars:u,varsResolver:g});return(0,n.jsxs)(p.a,{ref:t,...k("root"),mod:[{inline:v},_],...z,children:[!P&&(0,n.jsx)(p.a,{mod:{"with-label":!!O,"with-border":j,processing:D},...k("indicator"),children:O}),d]})});b.classes=h,b.displayName="@mantine/core/Indicator"},23763:(e,t,r)=>{"use strict";function n(){for(var e,t,r=0,n="";rn,default:()=>o});let o=n},23909:(e,t,r)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=p(void 0);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var s=a?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(o,i,s):o[i]=e[i]}return o.default=e,r&&r.set(e,o),o}(r(55729)),a=f(r(56121)),i=f(r(56760)),s=r(40712),l=r(99551),u=r(79725),c=f(r(16389));function f(e){return e&&e.__esModule?e:{default:e}}function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(p=function(e){return e?r:t})(e)}function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,o=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var a=[],i=!0,s=!1;try{for(o=o.call(e);!(i=(r=o.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){s=!0,n=e}finally{try{i||null==o.return||o.return()}finally{if(s)throw n}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return h(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return h(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r not mounted on DragStart!");var n=r.ownerDocument;if(!(e.props.disabled||!(t.target instanceof n.defaultView.Node)||e.props.handle&&!(0,s.matchesSelectorAndParentsTo)(t.target,e.props.handle,r)||e.props.cancel&&(0,s.matchesSelectorAndParentsTo)(t.target,e.props.cancel,r))){"touchstart"===t.type&&t.preventDefault();var o=(0,s.getTouchIdentifier)(t);e.setState({touchIdentifier:o});var a=(0,l.getControlPosition)(t,o,g(e));if(null!=a){var i=a.x,u=a.y,f=(0,l.createCoreData)(g(e),i,u);(0,c.default)("DraggableCore: handleDragStart: %j",f),(0,c.default)("calling",e.props.onStart),!1!==e.props.onStart(t,f)&&!1!==e.mounted&&(e.props.enableUserSelectHack&&(0,s.addUserSelectStyles)(n),e.setState({dragging:!0,lastX:i,lastY:u}),(0,s.addEvent)(n,w.move,e.handleDrag),(0,s.addEvent)(n,w.stop,e.handleDragStop))}}}),m(g(e),"handleDrag",function(t){var r=(0,l.getControlPosition)(t,e.state.touchIdentifier,g(e));if(null!=r){var n=r.x,o=r.y;if(Array.isArray(e.props.grid)){var a=n-e.state.lastX,i=o-e.state.lastY,s=d((0,l.snapToGrid)(e.props.grid,a,i),2);if(a=s[0],i=s[1],!a&&!i)return;n=e.state.lastX+a,o=e.state.lastY+i}var u=(0,l.createCoreData)(g(e),n,o);if((0,c.default)("DraggableCore: handleDrag: %j",u),!1===e.props.onDrag(t,u)||!1===e.mounted){try{e.handleDragStop(new MouseEvent("mouseup"))}catch(t){var f=document.createEvent("MouseEvents");f.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),e.handleDragStop(f)}return}e.setState({lastX:n,lastY:o})}}),m(g(e),"handleDragStop",function(t){if(e.state.dragging){var r=(0,l.getControlPosition)(t,e.state.touchIdentifier,g(e));if(null!=r){var n=r.x,o=r.y;if(Array.isArray(e.props.grid)){var a=n-e.state.lastX||0,i=o-e.state.lastY||0,u=d((0,l.snapToGrid)(e.props.grid,a,i),2);a=u[0],i=u[1],n=e.state.lastX+a,o=e.state.lastY+i}var f=(0,l.createCoreData)(g(e),n,o);if(!1===e.props.onStop(t,f)||!1===e.mounted)return!1;var p=e.findDOMNode();p&&e.props.enableUserSelectHack&&(0,s.removeUserSelectStyles)(p.ownerDocument),(0,c.default)("DraggableCore: handleDragStop: %j",f),e.setState({dragging:!1,lastX:NaN,lastY:NaN}),p&&((0,c.default)("DraggableCore: Removing handlers"),(0,s.removeEvent)(p.ownerDocument,w.move,e.handleDrag),(0,s.removeEvent)(p.ownerDocument,w.stop,e.handleDragStop))}}}),m(g(e),"onMouseDown",function(t){return w=O,e.handleDragStart(t)}),m(g(e),"onMouseUp",function(t){return w=O,e.handleDragStop(t)}),m(g(e),"onTouchStart",function(t){return w=v,e.handleDragStart(t)}),m(g(e),"onTouchEnd",function(t){return w=v,e.handleDragStop(t)}),e}return r=[{key:"componentDidMount",value:function(){this.mounted=!0;var e=this.findDOMNode();e&&(0,s.addEvent)(e,v.start,this.onTouchStart,{passive:!1})}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var e=this.findDOMNode();if(e){var t=e.ownerDocument;(0,s.removeEvent)(t,O.move,this.handleDrag),(0,s.removeEvent)(t,v.move,this.handleDrag),(0,s.removeEvent)(t,O.stop,this.handleDragStop),(0,s.removeEvent)(t,v.stop,this.handleDragStop),(0,s.removeEvent)(e,v.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,s.removeUserSelectStyles)(t)}}},{key:"findDOMNode",value:function(){var e,t,r;return null!=(e=this.props)&&e.nodeRef?null==(t=this.props)||null==(r=t.nodeRef)?void 0:r.current:i.default.findDOMNode(this)}},{key:"render",value:function(){return o.cloneElement(o.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}],function(e,t){for(var r=0;r{},25852:(e,t,r)=>{"use strict";t.default=void 0;var n=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=u(void 0);if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}(r(55729)),o=l(r(56121)),a=l(r(97327)),i=r(32848),s=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function l(e){return e&&e.__esModule?e:{default:e}}function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(u=function(e){return e?r:t})(e)}function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,s);return n.createElement(a.default,{axis:h,draggableOpts:l,handle:t,handleSize:r,height:this.state.height,lockAspectRatio:d,maxConstraints:f,minConstraints:u,onResizeStart:o,onResize:this.onResize,onResizeStop:i,resizeHandles:y,transformScale:b,width:this.state.width},n.createElement("div",c({},m,{style:p(p({},g),{},{width:this.state.width+"px",height:this.state.height+"px"})})))},t}(n.Component);t.default=h,h.propTypes=p(p({},i.resizableProps),{},{children:o.default.element})},28200:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var n=(0,r(41495).A)("outline","tags","IconTags",[["path",{d:"M3 8v4.172a2 2 0 0 0 .586 1.414l5.71 5.71a2.41 2.41 0 0 0 3.408 0l3.592 -3.592a2.41 2.41 0 0 0 0 -3.408l-5.71 -5.71a2 2 0 0 0 -1.414 -.586h-4.172a2 2 0 0 0 -2 2z",key:"svg-0"}],["path",{d:"M18 19l1.592 -1.592a4.82 4.82 0 0 0 0 -6.816l-4.592 -4.592",key:"svg-1"}],["path",{d:"M7 10h-.01",key:"svg-2"}]])},32848:(e,t,r)=>{"use strict";t.__esModule=!0,t.resizableProps=void 0;var n,o=(n=r(56121))&&n.__esModule?n:{default:n};r(45611),t.resizableProps={axis:o.default.oneOf(["both","x","y","none"]),className:o.default.string,children:o.default.element.isRequired,draggableOpts:o.default.shape({allowAnyClick:o.default.bool,cancel:o.default.string,children:o.default.node,disabled:o.default.bool,enableUserSelectHack:o.default.bool,offsetParent:o.default.node,grid:o.default.arrayOf(o.default.number),handle:o.default.string,nodeRef:o.default.object,onStart:o.default.func,onDrag:o.default.func,onStop:o.default.func,onMouseDown:o.default.func,scale:o.default.number}),height:function(){for(var e,t=arguments.length,r=Array(t),n=0;n{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=p(r(55729)),a=p(r(56121)),i=r(45611),s=r(50777),l=r(62691),u=r(16807),c=r(70435),f=p(r(5521));function p(e){return e&&e.__esModule?e:{default:e}}function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function h(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:this.props;return{cols:e.cols,containerPadding:e.containerPadding,containerWidth:e.containerWidth,margin:e.margin,maxRows:e.maxRows,rowHeight:e.rowHeight}}},{key:"createStyle",value:function(e){var t,r=this.props,n=r.usePercentages,o=r.containerWidth;return r.useCSSTransforms?t=(0,l.setTransform)(e):(t=(0,l.setTopLeft)(e),n&&(t.left=(0,l.perc)(e.left/o),t.width=(0,l.perc)(e.width/o))),t}},{key:"mixinDraggable",value:function(e,t){return o.default.createElement(i.DraggableCore,{disabled:!t,onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop,handle:this.props.handle,cancel:".react-resizable-handle"+(this.props.cancel?","+this.props.cancel:""),scale:this.props.transformScale,nodeRef:this.elementRef},e)}},{key:"mixinResizable",value:function(e,t,r){var n=this.props,a=n.cols,i=n.x,l=n.minW,c=n.minH,f=n.maxW,p=n.maxH,d=n.transformScale,h=n.resizeHandles,y=n.resizeHandle,g=this.getPositionParams(),b=(0,u.calcGridItemPosition)(g,0,0,a-i,0).width,m=(0,u.calcGridItemPosition)(g,0,0,l,c),v=(0,u.calcGridItemPosition)(g,0,0,f,p),O=[m.width,m.height],w=[Math.min(v.width,b),Math.min(v.height,1/0)];return o.default.createElement(s.Resizable,{draggableOpts:{disabled:!r},className:r?void 0:"react-resizable-hide",width:t.width,height:t.height,minConstraints:O,maxConstraints:w,onResizeStop:this.onResizeStop,onResizeStart:this.onResizeStart,onResize:this.onResize,transformScale:d,resizeHandles:h,handle:y},e)}},{key:"onResizeHandler",value:function(e,t,r){var n=t.node,o=t.size,a=this.props[r];if(a){var i=this.props,s=i.cols,l=i.x,c=i.y,f=i.i,p=i.maxH,d=i.minH,h=this.props,y=h.minW,g=h.maxW,b=(0,u.calcWH)(this.getPositionParams(),o.width,o.height,l,c),m=b.w,v=b.h;y=Math.max(y,1),g=Math.min(g,s-l),m=(0,u.clamp)(m,y,g),v=(0,u.clamp)(v,d,p),this.setState({resizing:"onResizeStop"===r?null:o}),a.call(this,f,m,v,{e:e,node:n,size:o})}}},{key:"render",value:function(){var e=this.props,t=e.x,r=e.y,n=e.w,a=e.h,i=e.isDraggable,s=e.isResizable,l=e.droppingPosition,c=e.useCSSTransforms,p=(0,u.calcGridItemPosition)(this.getPositionParams(),t,r,n,a,this.state),d=o.default.Children.only(this.props.children),y=o.default.cloneElement(d,{ref:this.elementRef,className:(0,f.default)("react-grid-item",d.props.className,this.props.className,{static:this.props.static,resizing:!!this.state.resizing,"react-draggable":i,"react-draggable-dragging":!!this.state.dragging,dropping:!!l,cssTransforms:c}),style:h(h(h({},this.props.style),d.props.style),this.createStyle(p))});return y=this.mixinResizable(y,p,s),y=this.mixinDraggable(y,i)}}],function(e,t){for(var r=0;re.w||r>e.maxW?Error("minWidth larger than item width/maxWidth"):void 0},maxW:function(e,t){var r=e[t];return"number"!=typeof r?Error("maxWidth not Number"):re.h||r>e.maxH?Error("minHeight larger than item height/maxHeight"):void 0},maxH:function(e,t){var r=e[t];return"number"!=typeof r?Error("maxHeight not Number"):r{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.addClassName=d,t.addEvent=function(e,t,r,n){if(e){var o=l({capture:!0},n);e.addEventListener?e.addEventListener(t,r,o):e.attachEvent?e.attachEvent("on"+t,r):e["on"+t]=r}},t.addUserSelectStyles=function(e){if(e){var t=e.getElementById("react-draggable-style-el");t||((t=e.createElement("style")).type="text/css",t.id="react-draggable-style-el",t.innerHTML=".react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n",t.innerHTML+=".react-draggable-transparent-selection *::selection {all: inherit;}\n",e.getElementsByTagName("head")[0].appendChild(t)),e.body&&d(e.body,"react-draggable-transparent-selection")}},t.createCSSTransform=function(e,t){var r=p(e,t,"px");return u({},(0,a.browserPrefixToKey)("transform",a.default),r)},t.createSVGTransform=function(e,t){return p(e,t,"")},t.getTouch=function(e,t){return e.targetTouches&&(0,o.findInArray)(e.targetTouches,function(e){return t===e.identifier})||e.changedTouches&&(0,o.findInArray)(e.changedTouches,function(e){return t===e.identifier})},t.getTouchIdentifier=function(e){return e.targetTouches&&e.targetTouches[0]?e.targetTouches[0].identifier:e.changedTouches&&e.changedTouches[0]?e.changedTouches[0].identifier:void 0},t.getTranslation=p,t.innerHeight=function(e){var t=e.clientHeight,r=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,o.int)(r.paddingTop),t-=(0,o.int)(r.paddingBottom)},t.innerWidth=function(e){var t=e.clientWidth,r=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,o.int)(r.paddingLeft),t-=(0,o.int)(r.paddingRight)},t.matchesSelector=f,t.matchesSelectorAndParentsTo=function(e,t,r){var n=e;do{if(f(n,t))return!0;if(n===r)break;n=n.parentNode}while(n);return!1},t.offsetXYFromParent=function(e,t,r){var n=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect();return{x:(e.clientX+t.scrollLeft-n.left)/r,y:(e.clientY+t.scrollTop-n.top)/r}},t.outerHeight=function(e){var t=e.clientHeight,r=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,o.int)(r.borderTopWidth),t+=(0,o.int)(r.borderBottomWidth)},t.outerWidth=function(e){var t=e.clientWidth,r=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,o.int)(r.borderLeftWidth),t+=(0,o.int)(r.borderRightWidth)},t.removeClassName=h,t.removeEvent=function(e,t,r,n){if(e){var o=l({capture:!0},n);e.removeEventListener?e.removeEventListener(t,r,o):e.detachEvent?e.detachEvent("on"+t,r):e["on"+t]=null}},t.removeUserSelectStyles=function(e){if(e)try{if(e.body&&h(e.body,"react-draggable-transparent-selection"),e.selection)e.selection.empty();else{var t=(e.defaultView||window).getSelection();t&&"Caret"!==t.type&&t.removeAllRanges()}}catch(e){}};var o=r(79725),a=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=i(void 0);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=a?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}return o.default=e,r&&r.set(e,o),o}(r(90099));function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(i=function(e){return e?r:t})(e)}function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function l(e){for(var t=1;t{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}t.default=function(e){var t;return t=function(t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");u.prototype=Object.create(t&&t.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),Object.defineProperty(u,"prototype",{writable:!1}),t&&f(u,t);var r,a,l=(r=function(){if("u"=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(t,s);return r&&!this.mounted?o.createElement("div",{className:(0,i.default)(this.props.className,"react-grid-layout"),style:this.props.style,ref:this.elementRef}):o.createElement(e,c({innerRef:this.elementRef},n,this.state))}}],function(e,t){for(var r=0;r{"use strict";var n=r(75534),o=n.default,a=n.DraggableCore;e.exports=o,e.exports.default=o,e.exports.DraggableCore=a},48080:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var n=(0,r(41495).A)("outline","upload","IconUpload",[["path",{d:"M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2",key:"svg-0"}],["path",{d:"M7 9l5 -5l5 5",key:"svg-1"}],["path",{d:"M12 4l0 12",key:"svg-2"}]])},50777:(e,t,r)=>{"use strict";e.exports=function(){throw Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable")},e.exports.Resizable=r(97327).default,e.exports.ResizableBox=r(25852).default},55533:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var n=(0,r(41495).A)("outline","filter-edit","IconFilterEdit",[["path",{d:"M10.97 20.344l-1.97 .656v-8.5l-4.48 -4.928a2 2 0 0 1 -.52 -1.345v-2.227h16v2.172a2 2 0 0 1 -.586 1.414l-4.414 4.414v1.5",key:"svg-0"}],["path",{d:"M18.42 15.61a2.1 2.1 0 0 1 2.97 2.97l-3.39 3.42h-3v-3l3.42 -3.39z",key:"svg-1"}]])},56937:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findOrGenerateResponsiveLayout=function(e,t,r,a,i,s){if(e[r])return(0,n.cloneLayout)(e[r]);for(var l=e[a],u=o(t),c=u.slice(u.indexOf(r)),f=0,p=c.length;fe[s]&&(n=s)}return n},t.getColsFromBreakpoint=function(e,t){if(!t[e])throw Error("ResponsiveReactGridLayout: `cols` entry for breakpoint "+e+" is missing!");return t[e]},t.sortBreakpoints=o;var n=r(62691);function o(e){return Object.keys(e).sort(function(t,r){return e[t]-e[r]})}},60751:e=>{e.exports=function(e,t,r){return e===t||e.className===t.className&&r(e.style,t.style)&&e.width===t.width&&e.autoSize===t.autoSize&&e.cols===t.cols&&e.draggableCancel===t.draggableCancel&&e.draggableHandle===t.draggableHandle&&r(e.verticalCompact,t.verticalCompact)&&r(e.compactType,t.compactType)&&r(e.layout,t.layout)&&r(e.margin,t.margin)&&r(e.containerPadding,t.containerPadding)&&e.rowHeight===t.rowHeight&&e.maxRows===t.maxRows&&e.isBounded===t.isBounded&&e.isDraggable===t.isDraggable&&e.isResizable===t.isResizable&&e.allowOverlap===t.allowOverlap&&e.preventCollision===t.preventCollision&&e.useCSSTransforms===t.useCSSTransforms&&e.transformScale===t.transformScale&&e.isDroppable===t.isDroppable&&r(e.resizeHandles,t.resizeHandles)&&r(e.resizeHandle,t.resizeHandle)&&e.onLayoutChange===t.onLayoutChange&&e.onDragStart===t.onDragStart&&e.onDrag===t.onDrag&&e.onDragStop===t.onDragStop&&e.onResizeStart===t.onResizeStart&&e.onResize===t.onResize&&e.onResizeStop===t.onResizeStop&&e.onDrop===t.onDrop&&r(e.droppingItem,t.droppingItem)&&r(e.innerRef,t.innerRef)}},62691:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bottom=l,t.childrenEqual=function(e,t){return(0,n.default)(o.default.Children.map(e,function(e){return null==e?void 0:e.key}),o.default.Children.map(t,function(e){return null==e?void 0:e.key}))},t.cloneLayout=u,t.cloneLayoutItem=f,t.collides=p,t.compact=d,t.compactItem=g,t.compactType=function(e){var t=e||{},r=t.verticalCompact,n=t.compactType;return!1===r?null:n},t.correctBounds=b,t.fastPositionEqual=function(e,t){return e.left===t.left&&e.top===t.top&&e.width===t.width&&e.height===t.height},t.fastRGLPropsEqual=void 0,t.getAllCollisions=O,t.getFirstCollision=v,t.getLayoutItem=m,t.getStatics=w,t.modifyLayout=c,t.moveElement=S,t.moveElementAwayFromCollision=j,t.noop=void 0,t.perc=function(e){return 100*e+"%"},t.setTopLeft=function(e){var t=e.top,r=e.left,n=e.width,o=e.height;return{top:"".concat(t,"px"),left:"".concat(r,"px"),width:"".concat(n,"px"),height:"".concat(o,"px"),position:"absolute"}},t.setTransform=function(e){var t=e.top,r=e.left,n=e.width,o=e.height,a="translate(".concat(r,"px,").concat(t,"px)");return{transform:a,WebkitTransform:a,MozTransform:a,msTransform:a,OTransform:a,width:"".concat(n,"px"),height:"".concat(o,"px"),position:"absolute"}},t.sortLayoutItems=P,t.sortLayoutItemsByColRow=x,t.sortLayoutItemsByRowCol=D,t.synchronizeLayoutWithChildren=function(e,t,r,n,a){e=e||[];var i=[];o.default.Children.forEach(t,function(t){if((null==t?void 0:t.key)!=null){var r=m(e,String(t.key));if(r)i.push(f(r));else{var n=t.props["data-grid"]||t.props._grid;n?i.push(f(s(s({},n),{},{i:t.key}))):i.push(f({w:1,h:1,x:0,y:l(i),i:String(t.key)}))}}});var u=b(i,{cols:r});return a?u:d(u,n,r)},t.validateLayout=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Layout",r=["x","y","w","h"];if(!Array.isArray(e))throw Error(t+" must be an array!");for(var n=0,o=e.length;nr&&(r=t);return r}function u(e){for(var t=Array(e.length),r=0,n=e.length;r=t.x+t.w)&&!(e.y+e.h<=t.y)&&!(e.y>=t.y+t.h)}function d(e,t,r){for(var n=w(e),o=P(e,t),a=Array(e.length),i=0,s=o.length;it.y+t.h)break;p(t,s)&&y(e,s,r+t[o],n)}}t[n]=r}function g(e,t,r,n,o){var a,i="horizontal"===r;if("vertical"===r)for(t.y=Math.min(l(e),t.y);t.y>0&&!v(e,t);)t.y--;else if(i)for(;t.x>0&&!v(e,t);)t.x--;for(;a=v(e,t);)i?y(o,t,a.x+a.w,"x"):y(o,t,a.y+a.h,"y"),i&&t.x+t.w>n&&(t.x=n-t.w,t.y++);return t.y=Math.max(t.y,0),t.x=Math.max(t.x,0),t}function b(e,t){for(var r=w(e),n=0,o=e.length;nt.cols&&(a.x=t.cols-a.w),a.x<0&&(a.x=0,a.w=t.cols),a.static)for(;v(r,a);)a.y++;else r.push(a)}return e}function m(e,t){for(var r=0,n=e.length;r=n:"horizontal"===i&&"number"==typeof r&&c>=r)&&(p=p.reverse());var d=O(p,t),h=d.length>0;if(h&&l)return u(e);if(h&&a)return R("Collision prevented on ".concat(t.i,", reverting.")),t.x=c,t.y=f,t.moved=!1,e;for(var y=0,g=d.length;yt.y||e.y===t.y&&e.x>t.x?1:e.y===t.y&&e.x===t.x?0:-1})}function x(e){return e.slice(0).sort(function(e,t){return e.x>t.x||e.x===t.x&&e.y>t.y?1:-1})}function R(){}t.noop=function(){}},70435:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resizeHandleType=t.resizeHandleAxesType=t.default=void 0;var n=a(r(56121)),o=a(r(55729));function a(e){return e&&e.__esModule?e:{default:e}}var i=n.default.arrayOf(n.default.oneOf(["s","w","e","n","sw","nw","se","ne"]));t.resizeHandleAxesType=i;var s=n.default.oneOfType([n.default.node,n.default.func]);t.resizeHandleType=s,t.default={className:n.default.string,style:n.default.object,width:n.default.number,autoSize:n.default.bool,cols:n.default.number,draggableCancel:n.default.string,draggableHandle:n.default.string,verticalCompact:function(e){e.verticalCompact},compactType:n.default.oneOf(["vertical","horizontal"]),layout:function(e){var t=e.layout;void 0!==t&&r(62691).validateLayout(t,"layout")},margin:n.default.arrayOf(n.default.number),containerPadding:n.default.arrayOf(n.default.number),rowHeight:n.default.number,maxRows:n.default.number,isBounded:n.default.bool,isDraggable:n.default.bool,isResizable:n.default.bool,allowOverlap:n.default.bool,preventCollision:n.default.bool,useCSSTransforms:n.default.bool,transformScale:n.default.number,isDroppable:n.default.bool,resizeHandles:i,resizeHandle:s,onLayoutChange:n.default.func,onDragStart:n.default.func,onDrag:n.default.func,onDragStop:n.default.func,onResizeStart:n.default.func,onResize:n.default.func,onResizeStop:n.default.func,onDrop:n.default.func,droppingItem:n.default.shape({i:n.default.string.isRequired,w:n.default.number.isRequired,h:n.default.number.isRequired}),children:function(e,t){var r=e[t],n={};o.default.Children.forEach(r,function(e){if((null==e?void 0:e.key)!=null){if(n[e.key])throw Error('Duplicate child key "'+e.key+'" found! This will cause problems in ReactGridLayout.');n[e.key]=!0}})},innerRef:n.default.any}},75534:(e,t,r)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"DraggableCore",{enumerable:!0,get:function(){return f.default}}),t.default=void 0;var o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=y(void 0);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var s=a?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(o,i,s):o[i]=e[i]}return o.default=e,r&&r.set(e,o),o}(r(55729)),a=h(r(56121)),i=h(r(56760)),s=h(r(23763)),l=r(40712),u=r(99551),c=r(79725),f=h(r(23909)),p=h(r(16389)),d=["axis","bounds","children","defaultPosition","defaultClassName","defaultClassNameDragging","defaultClassNameDragged","position","positionOffset","scale"];function h(e){return e&&e.__esModule?e:{default:e}}function y(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(y=function(e){return e?r:t})(e)}function g(){return(g=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=Array(t);rtypeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var a=[],i=!0,s=!1;try{for(o=o.call(e);!(i=(r=o.next()).done)&&(a.push(r.value),2!==a.length);i=!0);}catch(e){s=!0,n=e}finally{try{i||null==o.return||o.return()}finally{if(s)throw n}}return a}}(a,2)||function(e,t){if(e){if("string"==typeof e)return v(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return v(e,2)}}(a,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),c=l[0],f=l[1];o.x=c,o.y=f,o.slackX=t.state.slackX+(i-o.x),o.slackY=t.state.slackY+(s-o.y),n.x=o.x,n.y=o.y,n.deltaX=o.x-t.state.x,n.deltaY=o.y-t.state.y}if(!1===t.props.onDrag(e,n))return!1;t.setState(o)}),P(S(t),"onDragStop",function(e,r){if(!t.state.dragging||!1===t.props.onStop(e,(0,u.createDraggableData)(S(t),r)))return!1;(0,p.default)("Draggable: onDragStop: %j",r);var n={dragging:!1,slackX:0,slackY:0};if(t.props.position){var o=t.props.position,a=o.x,i=o.y;n.x=a,n.y=i}t.setState(n)}),t.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,prevPropsPosition:m({},e.position),slackX:0,slackY:0,isElementSVG:!1},e.position&&!(e.onDrag||e.onStop)&&console.warn("A `position` was applied to this , without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element."),t}return r=[{key:"componentDidMount",value:function(){void 0!==window.SVGElement&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}},{key:"componentWillUnmount",value:function(){this.setState({dragging:!1})}},{key:"findDOMNode",value:function(){var e,t,r;return null!=(e=null==(t=this.props)||null==(r=t.nodeRef)?void 0:r.current)?e:i.default.findDOMNode(this)}},{key:"render",value:function(){var e,t=this.props,r=(t.axis,t.bounds,t.children),n=t.defaultPosition,a=t.defaultClassName,i=t.defaultClassNameDragging,c=t.defaultClassNameDragged,p=t.position,h=t.positionOffset,y=(t.scale,function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(t,d)),b={},v=null,O=!p||this.state.dragging,w=p||n,S={x:(0,u.canDragX)(this)&&O?this.state.x:w.x,y:(0,u.canDragY)(this)&&O?this.state.y:w.y};this.state.isElementSVG?v=(0,l.createSVGTransform)(S,h):b=(0,l.createCSSTransform)(S,h);var j=(0,s.default)(r.props.className||"",a,(P(e={},i,this.state.dragging),P(e,c,this.state.dragged),e));return o.createElement(f.default,g({},y,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),o.cloneElement(o.Children.only(r),{className:j,style:m(m({},r.props.style),b),transform:v}))}}],a=[{key:"getDerivedStateFromProps",value:function(e,t){var r=e.position,n=t.prevPropsPosition;return r&&(!n||r.x!==n.x||r.y!==n.y)?((0,p.default)("Draggable: getDerivedStateFromProps %j",{position:r,prevPropsPosition:n}),{x:r.x,y:r.y,prevPropsPosition:m({},r)}):null}}],r&&O(h.prototype,r),a&&O(h,a),Object.defineProperty(h,"prototype",{writable:!1}),h}(o.Component);t.default=D,P(D,"displayName","Draggable"),P(D,"propTypes",m(m({},f.default.propTypes),{},{axis:a.default.oneOf(["both","x","y","none"]),bounds:a.default.oneOfType([a.default.shape({left:a.default.number,right:a.default.number,top:a.default.number,bottom:a.default.number}),a.default.string,a.default.oneOf([!1])]),defaultClassName:a.default.string,defaultClassNameDragging:a.default.string,defaultClassNameDragged:a.default.string,defaultPosition:a.default.shape({x:a.default.number,y:a.default.number}),positionOffset:a.default.shape({x:a.default.oneOfType([a.default.number,a.default.string]),y:a.default.oneOfType([a.default.number,a.default.string])}),position:a.default.shape({x:a.default.number,y:a.default.number}),className:c.dontSetMe,style:c.dontSetMe,transform:c.dontSetMe})),P(D,"defaultProps",m(m({},f.default.defaultProps),{},{axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1}))},78048:()=>{},78075:(e,t,r)=>{"use strict";r.d(t,{E:()=>y});var n=r(55729),o=r(95913),a=r(28171),i=r(24090),s=r(4308);function l(e,t){return e.filter(e=>!t.includes(e))}var u=class extends i.Q{#e;#t;#r;#n;#o;#a;#i;constructor(e,t,r){super(),this.#e=e,this.#r=[],this.#n=[],this.#t=[],this.setQueries(t)}onSubscribe(){1===this.listeners.size&&this.#n.forEach(e=>{e.subscribe(t=>{this.#s(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#n.forEach(e=>{e.destroy()})}setQueries(e,t,r){this.#r=e,o.j.batch(()=>{let e=this.#n,t=this.#l(this.#r);t.forEach(e=>e.observer.setOptions(e.defaultedQueryOptions,r));let n=t.map(e=>e.observer),o=n.map(e=>e.getCurrentResult()),a=n.some((t,r)=>t!==e[r]);e.length===n.length&&!a||(this.#n=n,this.#t=o,this.hasListeners()&&(l(e,n).forEach(e=>{e.destroy()}),l(n,e).forEach(e=>{e.subscribe(t=>{this.#s(e,t)})}),this.#u()))})}getCurrentResult(){return this.#t}getQueries(){return this.#n.map(e=>e.getCurrentQuery())}getObservers(){return this.#n}getOptimisticResult(e,t){let r=this.#l(e),n=r.map(e=>e.observer.getOptimisticResult(e.defaultedQueryOptions));return[n,e=>this.#c(e??n,t),()=>r.map((e,t)=>{let o=n[t];return e.defaultedQueryOptions.notifyOnChangeProps?o:e.observer.trackResult(o,e=>{r.forEach(t=>{t.observer.trackProp(e)})})})]}#c(e,t){return t?(this.#o&&this.#t===this.#i&&t===this.#a||(this.#a=t,this.#i=this.#t,this.#o=(0,s.BH)(this.#o,t(e))),this.#o):e}#l(e){let t=new Map(this.#n.map(e=>[e.options.queryHash,e])),r=e.map(e=>this.#e.defaultQueryOptions(e)),n=r.flatMap(e=>{let r=t.get(e.queryHash);return null!=r?[{defaultedQueryOptions:e,observer:r}]:[]}),o=new Set(n.map(e=>e.defaultedQueryOptions.queryHash)),i=r.filter(e=>!o.has(e.queryHash)),s=e=>{let t=this.#e.defaultQueryOptions(e);return this.#n.find(e=>e.options.queryHash===t.queryHash)??new a.$(this.#e,t)},l=i.map(e=>({defaultedQueryOptions:e,observer:s(e)}));return n.concat(l).sort((e,t)=>r.indexOf(e.defaultedQueryOptions)-r.indexOf(t.defaultedQueryOptions))}#s(e,t){let r=this.#n.indexOf(e);if(-1!==r){var n;let e;this.#t=(n=this.#t,(e=n.slice(0))[r]=t,e),this.#u()}}#u(){o.j.batch(()=>{this.listeners.forEach(e=>{e(this.#t)})})}},c=r(93251),f=r(29452),p=r(79890),d=r(88678),h=r(75407);function y({queries:e,...t},r){let i=(0,c.jE)(r),s=(0,f.w)(),l=(0,p.h)(),y=n.useMemo(()=>e.map(e=>{let t=i.defaultQueryOptions(e);return t._optimisticResults=s?"isRestoring":"optimistic",t}),[e,i,s]);y.forEach(e=>{(0,h.jv)(e),(0,d.LJ)(e,l)}),(0,d.wZ)(l);let[g]=n.useState(()=>new u(i,y,t)),[b,m,v]=g.getOptimisticResult(y,t.combine);n.useSyncExternalStore(n.useCallback(e=>s?()=>void 0:g.subscribe(o.j.batchCalls(e)),[g,s]),()=>g.getCurrentResult(),()=>g.getCurrentResult()),n.useEffect(()=>{g.setQueries(y,t,{listeners:!1})},[y,t,g]);let O=b.some((e,t)=>(0,h.EU)(y[t],e))?b.flatMap((e,t)=>{let r=y[t];if(r){let t=new a.$(i,r);if((0,h.EU)(r,e))return(0,h.iL)(r,t,l);(0,h.nE)(e,s)&&(0,h.iL)(r,t,l)}return[]}):[];if(O.length>0)throw Promise.all(O);let w=b.find((e,t)=>{let r=y[t];return r&&(0,d.$1)({result:e,errorResetBoundary:l,throwOnError:r.throwOnError,query:i.getQueryCache().get(r.queryHash)})});if(w?.error)throw w.error;return m(v())}},79725:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dontSetMe=function(e,t,r){if(e[t])return Error("Invalid prop ".concat(t," passed to ").concat(r," - do not set this, set it on the child."))},t.findInArray=function(e,t){for(var r=0,n=e.length;r{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=p(void 0);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var s=a?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(o,i,s):o[i]=e[i]}return o.default=e,r&&r.set(e,o),o}(r(55729)),a=f(r(84719)),i=f(r(5521)),s=r(62691),l=r(16807),u=f(r(34421)),c=f(r(70435));function f(e){return e&&e.__esModule?e:{default:e}}function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(p=function(e){return e?r:t})(e)}function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function h(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=Array(t);r0){var a=1/0,i=1/0;o.forEach(function(t){t.x>e.x&&(a=Math.min(a,t.x)),t.y>e.y&&(i=Math.min(i,t.y))}),Number.isFinite(a)&&(e.w=a-e.x),Number.isFinite(i)&&(e.h=i-e.y)}}return t||(e.w=r,e.h=n),e}))||function(e,t){var r,n,o=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var a=[],i=!0,s=!1;try{for(o=o.call(e);!(i=(r=o.next()).done)&&(a.push(r.value),2!==a.length);i=!0);}catch(e){s=!0,n=e}finally{try{i||null==o.return||o.return()}finally{if(s)throw n}}return a}}(a,2)||y(a,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),v=m[0],O=m[1];if(O){var w={w:O.w,h:O.h,x:O.x,y:O.y,static:!0,i:t};e.props.onResize(v,f,O,w,i,l),e.setState({layout:b?v:(0,s.compact)(v,(0,s.compactType)(e.props),d),activeDrag:w})}}),w(v(e),"onResizeStop",function(t,r,n,o){var a=o.e,i=o.node,l=e.state,u=l.layout,c=l.oldResizeItem,f=e.props,p=f.cols,d=f.allowOverlap,h=(0,s.getLayoutItem)(u,t);e.props.onResizeStop(u,c,h,null,a,i);var y=d?u:(0,s.compact)(u,(0,s.compactType)(e.props),p),g=e.state.oldLayout;e.setState({activeDrag:null,layout:y,oldResizeItem:null,oldLayout:null}),e.onLayoutMaybeChanged(y,g)}),w(v(e),"onDragOver",function(t){if(t.preventDefault(),t.stopPropagation(),j&&!(null!=(r=t.nativeEvent.target)&&r.classList.contains(S)))return!1;var r,n=e.props,a=n.droppingItem,i=n.onDropDragOver,s=n.margin,u=n.cols,c=n.rowHeight,f=n.maxRows,p=n.width,d=n.containerPadding,b=n.transformScale,m=null==i?void 0:i(t);if(!1===m)return e.state.droppingDOMNode&&e.removeDroppingPlaceholder(),!1;var v=h(h({},a),m),O=e.state.layout,w=t.nativeEvent,P=w.layerX,D=w.layerY,x={left:P/b,top:D/b,e:t};if(e.state.droppingDOMNode){if(e.state.droppingPosition){var R=e.state.droppingPosition,_=R.left,z=R.top;(_!=P||z!=D)&&e.setState({droppingPosition:x})}}else{var k=(0,l.calcXY)({cols:u,margin:s,maxRows:f,rowHeight:c,containerWidth:p,containerPadding:d||s},D,P,v.w,v.h);e.setState({droppingDOMNode:o.createElement("div",{key:v.i}),droppingPosition:x,layout:[].concat(function(e){if(Array.isArray(e))return g(e)}(O)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(O)||y(O)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[h(h({},v),{},{x:k.x,y:k.y,static:!1,isDraggable:!0})])})}}),w(v(e),"removeDroppingPlaceholder",function(){var t=e.props,r=t.droppingItem,n=t.cols,o=e.state.layout,a=(0,s.compact)(o.filter(function(e){return e.i!==r.i}),(0,s.compactType)(e.props),n);e.setState({layout:a,droppingDOMNode:null,activeDrag:null,droppingPosition:void 0})}),w(v(e),"onDragLeave",function(t){t.preventDefault(),t.stopPropagation(),e.dragEnterCounter--,0===e.dragEnterCounter&&e.removeDroppingPlaceholder()}),w(v(e),"onDragEnter",function(t){t.preventDefault(),t.stopPropagation(),e.dragEnterCounter++}),w(v(e),"onDrop",function(t){t.preventDefault(),t.stopPropagation();var r=e.props.droppingItem,n=e.state.layout,o=n.find(function(e){return e.i===r.i});e.dragEnterCounter=0,e.removeDroppingPlaceholder(),e.props.onDrop(n,o,t)}),e}return r=[{key:"componentDidMount",value:function(){this.setState({mounted:!0}),this.onLayoutMaybeChanged(this.state.layout,this.props.layout)}},{key:"shouldComponentUpdate",value:function(e,t){return this.props.children!==e.children||!(0,s.fastRGLPropsEqual)(this.props,e,a.default)||this.state.activeDrag!==t.activeDrag||this.state.mounted!==t.mounted||this.state.droppingPosition!==t.droppingPosition}},{key:"componentDidUpdate",value:function(e,t){if(!this.state.activeDrag){var r=this.state.layout,n=t.layout;this.onLayoutMaybeChanged(r,n)}}},{key:"containerHeight",value:function(){if(this.props.autoSize){var e=(0,s.bottom)(this.state.layout),t=this.props.containerPadding?this.props.containerPadding[1]:this.props.margin[1];return e*this.props.rowHeight+(e-1)*this.props.margin[1]+2*t+"px"}}},{key:"onLayoutMaybeChanged",value:function(e,t){t||(t=this.state.layout),(0,a.default)(t,e)||this.props.onLayoutChange(e)}},{key:"placeholder",value:function(){var e=this.state.activeDrag;if(!e)return null;var t=this.props,r=t.width,n=t.cols,a=t.margin,i=t.containerPadding,s=t.rowHeight,l=t.maxRows,c=t.useCSSTransforms,f=t.transformScale;return o.createElement(u.default,{w:e.w,h:e.h,x:e.x,y:e.y,i:e.i,className:"react-grid-placeholder",containerWidth:r,cols:n,margin:a,containerPadding:i||a,maxRows:l,rowHeight:s,isDraggable:!1,isResizable:!1,isBounded:!1,useCSSTransforms:c,transformScale:f},o.createElement("div",null))}},{key:"processGridItem",value:function(e,t){if(e&&e.key){var r=(0,s.getLayoutItem)(this.state.layout,String(e.key));if(!r)return null;var n=this.props,a=n.width,i=n.cols,l=n.margin,c=n.containerPadding,f=n.rowHeight,p=n.maxRows,d=n.isDraggable,h=n.isResizable,y=n.isBounded,g=n.useCSSTransforms,b=n.transformScale,m=n.draggableCancel,v=n.draggableHandle,O=n.resizeHandles,w=n.resizeHandle,S=this.state,j=S.mounted,P=S.droppingPosition,D="boolean"==typeof r.isDraggable?r.isDraggable:!r.static&&d,x="boolean"==typeof r.isResizable?r.isResizable:!r.static&&h,R=r.resizeHandles||O,_=D&&y&&!1!==r.isBounded;return o.createElement(u.default,{containerWidth:a,cols:i,margin:l,containerPadding:c||l,maxRows:p,rowHeight:f,cancel:m,handle:v,onDragStop:this.onDragStop,onDragStart:this.onDragStart,onDrag:this.onDrag,onResizeStart:this.onResizeStart,onResize:this.onResize,onResizeStop:this.onResizeStop,isDraggable:D,isResizable:x,isBounded:_,useCSSTransforms:g&&j,usePercentages:!j,transformScale:b,w:r.w,h:r.h,x:r.x,y:r.y,i:r.i,minH:r.minH,minW:r.minW,maxH:r.maxH,maxW:r.maxW,static:r.static,droppingPosition:t?P:void 0,resizeHandles:R,resizeHandle:w},e)}}},{key:"render",value:function(){var e=this,t=this.props,r=t.className,n=t.style,a=t.isDroppable,l=t.innerRef,u=(0,i.default)(S,r),c=h({height:this.containerHeight()},n);return o.createElement("div",{ref:l,className:u,style:c,onDrop:a?this.onDrop:s.noop,onDragLeave:a?this.onDragLeave:s.noop,onDragEnter:a?this.onDragEnter:s.noop,onDragOver:a?this.onDragOver:s.noop},o.Children.map(this.props.children,function(t){return e.processGridItem(t)}),a&&this.state.droppingDOMNode&&this.processGridItem(this.state.droppingDOMNode,!0),this.placeholder())}}],c=[{key:"getDerivedStateFromProps",value:function(e,t){var r;return t.activeDrag?null:((0,a.default)(e.layout,t.propsLayout)&&e.compactType===t.compactType?(0,s.childrenEqual)(e.children,t.children)||(r=t.layout):r=e.layout,r)?{layout:(0,s.synchronizeLayoutWithChildren)(r,e.children,e.cols,(0,s.compactType)(e),e.allowOverlap),compactType:e.compactType,children:e.children,propsLayout:e.layout}:null}}],r&&b(p.prototype,r),c&&b(p,c),Object.defineProperty(p,"prototype",{writable:!1}),p}(o.Component);t.default=P,w(P,"displayName","ReactGridLayout"),w(P,"propTypes",c.default),w(P,"defaultProps",{autoSize:!0,cols:12,className:"",style:{},draggableHandle:"",draggableCancel:"",containerPadding:null,rowHeight:150,maxRows:1/0,layout:[],margin:[10,10],isBounded:!1,isDraggable:!0,isResizable:!0,allowOverlap:!1,isDroppable:!1,useCSSTransforms:!0,transformScale:1,verticalCompact:!0,compactType:"vertical",preventCollision:!1,droppingItem:{i:"__dropping-elem__",h:1,w:1},resizeHandles:["se"],onLayoutChange:s.noop,onDragStart:s.noop,onDrag:s.noop,onDragStop:s.noop,onResizeStart:s.noop,onResize:s.noop,onResizeStop:s.noop,onDrop:s.noop,onDropDragOver:s.noop})},84719:(e,t,r)=>{e=r.nmd(e);var n,o,a,i="__lodash_hash_undefined__",s="[object Arguments]",l="[object Array]",u="[object Boolean]",c="[object Date]",f="[object Error]",p="[object Function]",d="[object Map]",h="[object Number]",y="[object Object]",g="[object Promise]",b="[object RegExp]",m="[object Set]",v="[object String]",O="[object WeakMap]",w="[object ArrayBuffer]",S="[object DataView]",j=/^\[object .+?Constructor\]$/,P=/^(?:0|[1-9]\d*)$/,D={};D["[object Float32Array]"]=D["[object Float64Array]"]=D["[object Int8Array]"]=D["[object Int16Array]"]=D["[object Int32Array]"]=D["[object Uint8Array]"]=D["[object Uint8ClampedArray]"]=D["[object Uint16Array]"]=D["[object Uint32Array]"]=!0,D[s]=D[l]=D[w]=D[u]=D[S]=D[c]=D[f]=D[p]=D[d]=D[h]=D[y]=D[b]=D[m]=D[v]=D[O]=!1;var x="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,R="object"==typeof self&&self&&self.Object===Object&&self,_=x||R||Function("return this")(),z=t&&!t.nodeType&&t,k=z&&e&&!e.nodeType&&e,C=k&&k.exports===z,E=C&&x.process,M=function(){try{return E&&E.binding&&E.binding("util")}catch(e){}}(),T=M&&M.isTypedArray;function H(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}function L(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}var W=Array.prototype,N=Function.prototype,A=Object.prototype,I=_["__core-js_shared__"],B=N.toString,q=A.hasOwnProperty,U=(n=/[^.]+$/.exec(I&&I.keys&&I.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",X=A.toString,Y=RegExp("^"+B.call(q).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),G=C?_.Buffer:void 0,F=_.Symbol,Q=_.Uint8Array,V=A.propertyIsEnumerable,$=W.splice,J=F?F.toStringTag:void 0,K=Object.getOwnPropertySymbols,Z=G?G.isBuffer:void 0,ee=(o=Object.keys,a=Object,function(e){return o(a(e))}),et=eD(_,"DataView"),er=eD(_,"Map"),en=eD(_,"Promise"),eo=eD(_,"Set"),ea=eD(_,"WeakMap"),ei=eD(Object,"create"),es=e_(et),el=e_(er),eu=e_(en),ec=e_(eo),ef=e_(ea),ep=F?F.prototype:void 0,ed=ep?ep.valueOf:void 0;function eh(e){var t=-1,r=null==e?0:e.length;for(this.clear();++ts))return!1;var u=a.get(e);if(u&&a.get(t))return u==t;var c=-1,f=!0,p=2&r?new eb:void 0;for(a.set(e,t),a.set(t,e);++c-1},ey.prototype.set=function(e,t){var r=this.__data__,n=ev(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},eg.prototype.clear=function(){this.size=0,this.__data__={hash:new eh,map:new(er||ey),string:new eh}},eg.prototype.delete=function(e){var t=eP(this,e).delete(e);return this.size-=!!t,t},eg.prototype.get=function(e){return eP(this,e).get(e)},eg.prototype.has=function(e){return eP(this,e).has(e)},eg.prototype.set=function(e,t){var r=eP(this,e),n=r.size;return r.set(e,t),this.size+=+(r.size!=n),this},eb.prototype.add=eb.prototype.push=function(e){return this.__data__.set(e,i),this},eb.prototype.has=function(e){return this.__data__.has(e)},em.prototype.clear=function(){this.__data__=new ey,this.size=0},em.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},em.prototype.get=function(e){return this.__data__.get(e)},em.prototype.has=function(e){return this.__data__.has(e)},em.prototype.set=function(e,t){var r=this.__data__;if(r instanceof ey){var n=r.__data__;if(!er||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new eg(n)}return r.set(e,t),this.size=r.size,this};var ex=K?function(e){return null==e?[]:function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,a=[];++r-1&&e%1==0&&e<=0x1fffffffffffff}function eH(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function eL(e){return null!=e&&"object"==typeof e}var eW=T?function(e){return T(e)}:function(e){return eL(e)&&eT(e.length)&&!!D[eO(e)]};function eN(e){return null!=e&&eT(e.length)&&!eM(e)?function(e,t){var r,n,o=eC(e),a=!o&&ek(e),i=!o&&!a&&eE(e),s=!o&&!a&&!i&&eW(e),l=o||a||i||s,u=l?function(e,t){for(var r=-1,n=Array(e);++r-1&&r%1==0&&r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.browserPrefixToKey=o,t.browserPrefixToStyle=function(e,t){return t?"-".concat(t.toLowerCase(),"-").concat(e):e},t.default=void 0,t.getPrefix=n;var r=["Moz","Webkit","O","ms"];function n(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";if("u"{"use strict";t.__esModule=!0,t.default=void 0;var n=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=l(void 0);if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}(r(55729)),o=r(45611),a=r(12143),i=r(32848),s=["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"];function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(l=function(e){return e?r:t})(e)}function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;tMath.abs((t-this.props.height)*i)?t=e/i:e=t*i}var s=e,l=t,u=this.slack||[0,0],c=u[0],f=u[1];return e+=c,t+=f,n&&(e=Math.max(n[0],e),t=Math.max(n[1],t)),o&&(e=Math.min(o[0],e),t=Math.min(o[1],t)),this.slack=[c+(s-e),f+(l-t)],[e,t]},r.resizeHandler=function(e,t){var r=this;return function(n,o){var a=o.node,i=o.deltaX,s=o.deltaY;"onResizeStart"===e&&r.resetData();var l=("both"===r.props.axis||"x"===r.props.axis)&&"n"!==t&&"s"!==t,u=("both"===r.props.axis||"y"===r.props.axis)&&"e"!==t&&"w"!==t;if(l||u){var c=t[0],f=t[t.length-1],p=a.getBoundingClientRect();null!=r.lastHandleRect&&("w"===f&&(i+=p.left-r.lastHandleRect.left),"n"===c&&(s+=p.top-r.lastHandleRect.top)),r.lastHandleRect=p,"w"===f&&(i=-i),"n"===c&&(s=-s);var d=r.props.width+(l?i/r.props.transformScale:0),h=r.props.height+(u?s/r.props.transformScale:0),y=r.runConstraints(d,h);d=y[0],h=y[1];var g=d!==r.props.width||h!==r.props.height,b="function"==typeof r.props[e]?r.props[e]:null;b&&!("onResize"===e&&!g)&&(null==n.persist||n.persist(),b(n,{node:a,size:{width:d,height:h},handle:t})),"onResizeStop"===e&&r.resetData()}}},r.renderResizeHandle=function(e,t){var r=this.props.handle;if(!r)return n.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+e,ref:t});if("function"==typeof r)return r(e,t);var o=f({ref:t},"string"==typeof r.type?{}:{handleAxis:e});return n.cloneElement(r,o)},r.render=function(){var e=this,t=this.props,r=t.children,i=t.className,l=t.draggableOpts,c=(t.width,t.height,t.handle,t.handleSize,t.lockAspectRatio,t.axis,t.minConstraints,t.maxConstraints,t.onResize,t.onResizeStop,t.onResizeStart,t.resizeHandles),p=(t.transformScale,function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}(t,s));return(0,a.cloneElement)(r,f(f({},p),{},{className:(i?i+" ":"")+"react-resizable",children:[].concat(r.props.children,c.map(function(t){var r,a=null!=(r=e.handleRefs[t])?r:e.handleRefs[t]=n.createRef();return n.createElement(o.DraggableCore,u({},l,{nodeRef:a,key:"resizableHandle-"+t,onStop:e.resizeHandler("onResizeStop",t),onStart:e.resizeHandler("onResizeStart",t),onDrag:e.resizeHandler("onResize",t)}),e.renderResizeHandle(t,a))}))}))},t}(n.Component);t.default=d,d.propTypes=i.resizableProps,d.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1}},99551:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canDragX=function(e){return"both"===e.props.axis||"x"===e.props.axis},t.canDragY=function(e){return"both"===e.props.axis||"y"===e.props.axis},t.createCoreData=function(e,t,r){var o=e.state,i=!(0,n.isNum)(o.lastX),s=a(e);return i?{node:s,deltaX:0,deltaY:0,lastX:t,lastY:r,x:t,y:r}:{node:s,deltaX:t-o.lastX,deltaY:r-o.lastY,lastX:o.lastX,lastY:o.lastY,x:t,y:r}},t.createDraggableData=function(e,t){var r=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/r,y:e.state.y+t.deltaY/r,deltaX:t.deltaX/r,deltaY:t.deltaY/r,lastX:e.state.x,lastY:e.state.y}},t.getBoundPosition=function(e,t,r){if(!e.props.bounds)return[t,r];var i=e.props.bounds;i="string"==typeof i?i:{left:(l=i).left,top:l.top,right:l.right,bottom:l.bottom};var s=a(e);if("string"==typeof i){var l,u,c=s.ownerDocument,f=c.defaultView;if(!((u="parent"===i?s.parentNode:c.querySelector(i))instanceof f.HTMLElement))throw Error('Bounds selector "'+i+'" could not find an element.');var p=f.getComputedStyle(s),d=f.getComputedStyle(u);i={left:-s.offsetLeft+(0,n.int)(d.paddingLeft)+(0,n.int)(p.marginLeft),top:-s.offsetTop+(0,n.int)(d.paddingTop)+(0,n.int)(p.marginTop),right:(0,o.innerWidth)(u)-(0,o.outerWidth)(s)-s.offsetLeft+(0,n.int)(d.paddingRight)-(0,n.int)(p.marginRight),bottom:(0,o.innerHeight)(u)-(0,o.outerHeight)(s)-s.offsetTop+(0,n.int)(d.paddingBottom)-(0,n.int)(p.marginBottom)}}return(0,n.isNum)(i.right)&&(t=Math.min(t,i.right)),(0,n.isNum)(i.bottom)&&(r=Math.min(r,i.bottom)),(0,n.isNum)(i.left)&&(t=Math.max(t,i.left)),(0,n.isNum)(i.top)&&(r=Math.max(r,i.top)),[t,r]},t.getControlPosition=function(e,t,r){var n="number"==typeof t?(0,o.getTouch)(e,t):null;if("number"==typeof t&&!n)return null;var i=a(r),s=r.props.offsetParent||i.offsetParent||i.ownerDocument.body;return(0,o.offsetXYFromParent)(n||e,s,r.props.scale)},t.snapToGrid=function(e,t,r){return[Math.round(t/e[0])*e[0],Math.round(r/e[1])*e[1]]};var n=r(79725),o=r(40712);function a(e){var t=e.findDOMNode();if(!t)throw Error(": Unmounted during event!");return t}},99789:(e,t,r)=>{e.exports=r(84703).default,e.exports.utils=r(62691),e.exports.Responsive=r(12917).default,e.exports.Responsive.utils=r(56937),e.exports.WidthProvider=r(44192).default}}]); \ No newline at end of file diff --git a/out/_next/static/chunks/9967-169389f981fa00e5.js b/out/_next/static/chunks/7493-2f5bf2042441f1d8.js similarity index 91% rename from out/_next/static/chunks/9967-169389f981fa00e5.js rename to out/_next/static/chunks/7493-2f5bf2042441f1d8.js index a17e337..079fdcd 100644 --- a/out/_next/static/chunks/9967-169389f981fa00e5.js +++ b/out/_next/static/chunks/7493-2f5bf2042441f1d8.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9967],{4140:a=>{"use strict";a.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},11088:(a,i,e)=>{"use strict";e.d(i,{X:()=>C});var t=e(6029),p=e(26615);e(55729);var n=e(76),o=e(5618),l=e(66404),c=e(80616),r=e(37666),s=e(60481),d=e(43016);let[m,v]=(0,e(36254).F)("Table component was not found in the tree");var x={table:"m_b23fa0ef",th:"m_4e7aa4f3",tr:"m_4e7aa4fd",td:"m_4e7aa4ef",tbody:"m_b2404537",thead:"m_b242d975",caption:"m_9e5a3ac7",scrollContainer:"m_a100c15",scrollContainerInner:"m_62259741"};function u(a,i){let e=`Table${a.charAt(0).toUpperCase()}${a.slice(1)}`,p=(0,d.P9)((p,n)=>{let o=(0,c.Y)(e,{},p),{classNames:l,className:r,style:d,styles:m,...x}=o,u=v();return(0,t.jsx)(s.a,{component:a,ref:n,...function(a,i){if(!i)return;let e={};return i.columnBorder&&a.withColumnBorders&&(e["data-with-column-border"]=!0),i.rowBorder&&a.withRowBorders&&(e["data-with-row-border"]=!0),i.striped&&a.striped&&(e["data-striped"]=a.striped),i.highlightOnHover&&a.highlightOnHover&&(e["data-hover"]=!0),i.captionSide&&a.captionSide&&(e["data-side"]=a.captionSide),i.stickyHeader&&a.stickyHeader&&(e["data-sticky"]=!0),e}(u,i),...u.getStyles(a,{className:r,classNames:l,style:d,styles:m,props:o}),...x})});return p.displayName=`@mantine/core/${e}`,p.classes=x,p}let f=u("th",{columnBorder:!0}),g=u("td",{columnBorder:!0}),h=u("tr",{rowBorder:!0,striped:!0,highlightOnHover:!0}),b=u("thead",{stickyHeader:!0}),y=u("tbody"),k=u("tfoot"),w=u("caption",{captionSide:!0});function j({data:a}){return(0,t.jsxs)(t.Fragment,{children:[a.caption&&(0,t.jsx)(w,{children:a.caption}),a.head&&(0,t.jsx)(b,{children:(0,t.jsx)(h,{children:a.head.map((a,i)=>(0,t.jsx)(f,{children:a},i))})}),a.body&&(0,t.jsx)(y,{children:a.body.map((a,i)=>(0,t.jsx)(h,{children:a.map((a,i)=>(0,t.jsx)(g,{children:a},i))},i))}),a.foot&&(0,t.jsx)(k,{children:(0,t.jsx)(h,{children:a.foot.map((a,i)=>(0,t.jsx)(f,{children:a},i))})})]})}j.displayName="@mantine/core/TableDataRenderer";var z=e(53993);let D={type:"scrollarea"},_=(0,o.V)((a,{minWidth:i,maxHeight:e,type:t})=>({scrollContainer:{"--table-min-width":(0,p.D)(i),"--table-max-height":(0,p.D)(e),"--table-overflow":"native"===t?"auto":void 0}})),O=(0,d.P9)((a,i)=>{let e=(0,c.Y)("TableScrollContainer",D,a),{classNames:p,className:n,style:o,styles:l,unstyled:d,vars:m,children:v,minWidth:u,maxHeight:f,type:g,scrollAreaProps:h,...b}=e,y=(0,r.I)({name:"TableScrollContainer",classes:x,props:e,className:n,style:o,classNames:p,styles:l,unstyled:d,vars:m,varsResolver:_,rootSelector:"scrollContainer"});return(0,t.jsx)(s.a,{component:"scrollarea"===g?z.F:"div",..."scrollarea"===g?f?{offsetScrollbars:"xy",...h}:{offsetScrollbars:"x",...h}:{},ref:i,...y("scrollContainer"),...b,children:(0,t.jsx)("div",{...y("scrollContainerInner"),children:v})})});O.classes=x,O.displayName="@mantine/core/TableScrollContainer";let E={withRowBorders:!0,verticalSpacing:7},P=(0,o.V)((a,{layout:i,captionSide:e,horizontalSpacing:t,verticalSpacing:o,borderColor:c,stripedColor:r,highlightOnHoverColor:s,striped:d,highlightOnHover:m,stickyHeaderOffset:v,stickyHeader:x})=>({table:{"--table-layout":i,"--table-caption-side":e,"--table-horizontal-spacing":(0,n.GY)(t),"--table-vertical-spacing":(0,n.GY)(o),"--table-border-color":c?(0,l.r)(c,a):void 0,"--table-striped-color":d&&r?(0,l.r)(r,a):void 0,"--table-highlight-on-hover-color":m&&s?(0,l.r)(s,a):void 0,"--table-sticky-header-offset":x?(0,p.D)(v):void 0}})),C=(0,d.P9)((a,i)=>{let e=(0,c.Y)("Table",E,a),{classNames:p,className:n,style:o,styles:l,unstyled:d,vars:v,horizontalSpacing:u,verticalSpacing:f,captionSide:g,stripedColor:h,highlightOnHoverColor:b,striped:y,highlightOnHover:k,withColumnBorders:w,withRowBorders:z,withTableBorder:D,borderColor:_,layout:O,variant:C,data:q,children:A,stickyHeader:F,stickyHeaderOffset:S,mod:T,tabularNums:R,...I}=e,M=(0,r.I)({name:"Table",props:e,className:n,style:o,classes:x,classNames:p,styles:l,unstyled:d,rootSelector:"table",vars:v,varsResolver:P});return(0,t.jsx)(m,{value:{getStyles:M,stickyHeader:F,striped:!0===y?"odd":y||void 0,highlightOnHover:k,withColumnBorders:w,withRowBorders:z,captionSide:g||"bottom"},children:(0,t.jsx)(s.a,{component:"table",variant:C,ref:i,mod:[{"data-with-table-border":D,"data-tabular-nums":R},T],...M("table"),...I,children:A||!!q&&(0,t.jsx)(j,{data:q})})})});C.classes=x,C.displayName="@mantine/core/Table",C.Td=g,C.Th=f,C.Tr=h,C.Thead=b,C.Tbody=y,C.Tfoot=k,C.Caption=w,C.ScrollContainer=O,C.DataRenderer=j},23950:(a,i,e)=>{"use strict";e.d(i,{mR:()=>aD});var t=e(6029),p=e(55729),n=e(56121);let o=new Map([["1km","application/vnd.1000minds.decision-model+xml"],["3dml","text/vnd.in3d.3dml"],["3ds","image/x-3ds"],["3g2","video/3gpp2"],["3gp","video/3gp"],["3gpp","video/3gpp"],["3mf","model/3mf"],["7z","application/x-7z-compressed"],["7zip","application/x-7z-compressed"],["123","application/vnd.lotus-1-2-3"],["aab","application/x-authorware-bin"],["aac","audio/x-acc"],["aam","application/x-authorware-map"],["aas","application/x-authorware-seg"],["abw","application/x-abiword"],["ac","application/vnd.nokia.n-gage.ac+xml"],["ac3","audio/ac3"],["acc","application/vnd.americandynamics.acc"],["ace","application/x-ace-compressed"],["acu","application/vnd.acucobol"],["acutc","application/vnd.acucorp"],["adp","audio/adpcm"],["aep","application/vnd.audiograph"],["afm","application/x-font-type1"],["afp","application/vnd.ibm.modcap"],["ahead","application/vnd.ahead.space"],["ai","application/pdf"],["aif","audio/x-aiff"],["aifc","audio/x-aiff"],["aiff","audio/x-aiff"],["air","application/vnd.adobe.air-application-installer-package+zip"],["ait","application/vnd.dvb.ait"],["ami","application/vnd.amiga.ami"],["amr","audio/amr"],["apk","application/vnd.android.package-archive"],["apng","image/apng"],["appcache","text/cache-manifest"],["application","application/x-ms-application"],["apr","application/vnd.lotus-approach"],["arc","application/x-freearc"],["arj","application/x-arj"],["asc","application/pgp-signature"],["asf","video/x-ms-asf"],["asm","text/x-asm"],["aso","application/vnd.accpac.simply.aso"],["asx","video/x-ms-asf"],["atc","application/vnd.acucorp"],["atom","application/atom+xml"],["atomcat","application/atomcat+xml"],["atomdeleted","application/atomdeleted+xml"],["atomsvc","application/atomsvc+xml"],["atx","application/vnd.antix.game-component"],["au","audio/x-au"],["avi","video/x-msvideo"],["avif","image/avif"],["aw","application/applixware"],["azf","application/vnd.airzip.filesecure.azf"],["azs","application/vnd.airzip.filesecure.azs"],["azv","image/vnd.airzip.accelerator.azv"],["azw","application/vnd.amazon.ebook"],["b16","image/vnd.pco.b16"],["bat","application/x-msdownload"],["bcpio","application/x-bcpio"],["bdf","application/x-font-bdf"],["bdm","application/vnd.syncml.dm+wbxml"],["bdoc","application/x-bdoc"],["bed","application/vnd.realvnc.bed"],["bh2","application/vnd.fujitsu.oasysprs"],["bin","application/octet-stream"],["blb","application/x-blorb"],["blorb","application/x-blorb"],["bmi","application/vnd.bmi"],["bmml","application/vnd.balsamiq.bmml+xml"],["bmp","image/bmp"],["book","application/vnd.framemaker"],["box","application/vnd.previewsystems.box"],["boz","application/x-bzip2"],["bpk","application/octet-stream"],["bpmn","application/octet-stream"],["bsp","model/vnd.valve.source.compiled-map"],["btif","image/prs.btif"],["buffer","application/octet-stream"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["c","text/x-c"],["c4d","application/vnd.clonk.c4group"],["c4f","application/vnd.clonk.c4group"],["c4g","application/vnd.clonk.c4group"],["c4p","application/vnd.clonk.c4group"],["c4u","application/vnd.clonk.c4group"],["c11amc","application/vnd.cluetrust.cartomobile-config"],["c11amz","application/vnd.cluetrust.cartomobile-config-pkg"],["cab","application/vnd.ms-cab-compressed"],["caf","audio/x-caf"],["cap","application/vnd.tcpdump.pcap"],["car","application/vnd.curl.car"],["cat","application/vnd.ms-pki.seccat"],["cb7","application/x-cbr"],["cba","application/x-cbr"],["cbr","application/x-cbr"],["cbt","application/x-cbr"],["cbz","application/x-cbr"],["cc","text/x-c"],["cco","application/x-cocoa"],["cct","application/x-director"],["ccxml","application/ccxml+xml"],["cdbcmsg","application/vnd.contact.cmsg"],["cda","application/x-cdf"],["cdf","application/x-netcdf"],["cdfx","application/cdfx+xml"],["cdkey","application/vnd.mediastation.cdkey"],["cdmia","application/cdmi-capability"],["cdmic","application/cdmi-container"],["cdmid","application/cdmi-domain"],["cdmio","application/cdmi-object"],["cdmiq","application/cdmi-queue"],["cdr","application/cdr"],["cdx","chemical/x-cdx"],["cdxml","application/vnd.chemdraw+xml"],["cdy","application/vnd.cinderella"],["cer","application/pkix-cert"],["cfs","application/x-cfs-compressed"],["cgm","image/cgm"],["chat","application/x-chat"],["chm","application/vnd.ms-htmlhelp"],["chrt","application/vnd.kde.kchart"],["cif","chemical/x-cif"],["cii","application/vnd.anser-web-certificate-issue-initiation"],["cil","application/vnd.ms-artgalry"],["cjs","application/node"],["cla","application/vnd.claymore"],["class","application/octet-stream"],["clkk","application/vnd.crick.clicker.keyboard"],["clkp","application/vnd.crick.clicker.palette"],["clkt","application/vnd.crick.clicker.template"],["clkw","application/vnd.crick.clicker.wordbank"],["clkx","application/vnd.crick.clicker"],["clp","application/x-msclip"],["cmc","application/vnd.cosmocaller"],["cmdf","chemical/x-cmdf"],["cml","chemical/x-cml"],["cmp","application/vnd.yellowriver-custom-menu"],["cmx","image/x-cmx"],["cod","application/vnd.rim.cod"],["coffee","text/coffeescript"],["com","application/x-msdownload"],["conf","text/plain"],["cpio","application/x-cpio"],["cpp","text/x-c"],["cpt","application/mac-compactpro"],["crd","application/x-mscardfile"],["crl","application/pkix-crl"],["crt","application/x-x509-ca-cert"],["crx","application/x-chrome-extension"],["cryptonote","application/vnd.rig.cryptonote"],["csh","application/x-csh"],["csl","application/vnd.citationstyles.style+xml"],["csml","chemical/x-csml"],["csp","application/vnd.commonspace"],["csr","application/octet-stream"],["css","text/css"],["cst","application/x-director"],["csv","text/csv"],["cu","application/cu-seeme"],["curl","text/vnd.curl"],["cww","application/prs.cww"],["cxt","application/x-director"],["cxx","text/x-c"],["dae","model/vnd.collada+xml"],["daf","application/vnd.mobius.daf"],["dart","application/vnd.dart"],["dataless","application/vnd.fdsn.seed"],["davmount","application/davmount+xml"],["dbf","application/vnd.dbf"],["dbk","application/docbook+xml"],["dcr","application/x-director"],["dcurl","text/vnd.curl.dcurl"],["dd2","application/vnd.oma.dd2+xml"],["ddd","application/vnd.fujixerox.ddd"],["ddf","application/vnd.syncml.dmddf+xml"],["dds","image/vnd.ms-dds"],["deb","application/x-debian-package"],["def","text/plain"],["deploy","application/octet-stream"],["der","application/x-x509-ca-cert"],["dfac","application/vnd.dreamfactory"],["dgc","application/x-dgc-compressed"],["dic","text/x-c"],["dir","application/x-director"],["dis","application/vnd.mobius.dis"],["disposition-notification","message/disposition-notification"],["dist","application/octet-stream"],["distz","application/octet-stream"],["djv","image/vnd.djvu"],["djvu","image/vnd.djvu"],["dll","application/octet-stream"],["dmg","application/x-apple-diskimage"],["dmn","application/octet-stream"],["dmp","application/vnd.tcpdump.pcap"],["dms","application/octet-stream"],["dna","application/vnd.dna"],["doc","application/msword"],["docm","application/vnd.ms-word.template.macroEnabled.12"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["dot","application/msword"],["dotm","application/vnd.ms-word.template.macroEnabled.12"],["dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"],["dp","application/vnd.osgi.dp"],["dpg","application/vnd.dpgraph"],["dra","audio/vnd.dra"],["drle","image/dicom-rle"],["dsc","text/prs.lines.tag"],["dssc","application/dssc+der"],["dtb","application/x-dtbook+xml"],["dtd","application/xml-dtd"],["dts","audio/vnd.dts"],["dtshd","audio/vnd.dts.hd"],["dump","application/octet-stream"],["dvb","video/vnd.dvb.file"],["dvi","application/x-dvi"],["dwd","application/atsc-dwd+xml"],["dwf","model/vnd.dwf"],["dwg","image/vnd.dwg"],["dxf","image/vnd.dxf"],["dxp","application/vnd.spotfire.dxp"],["dxr","application/x-director"],["ear","application/java-archive"],["ecelp4800","audio/vnd.nuera.ecelp4800"],["ecelp7470","audio/vnd.nuera.ecelp7470"],["ecelp9600","audio/vnd.nuera.ecelp9600"],["ecma","application/ecmascript"],["edm","application/vnd.novadigm.edm"],["edx","application/vnd.novadigm.edx"],["efif","application/vnd.picsel"],["ei6","application/vnd.pg.osasli"],["elc","application/octet-stream"],["emf","image/emf"],["eml","message/rfc822"],["emma","application/emma+xml"],["emotionml","application/emotionml+xml"],["emz","application/x-msmetafile"],["eol","audio/vnd.digital-winds"],["eot","application/vnd.ms-fontobject"],["eps","application/postscript"],["epub","application/epub+zip"],["es","application/ecmascript"],["es3","application/vnd.eszigno3+xml"],["esa","application/vnd.osgi.subsystem"],["esf","application/vnd.epson.esf"],["et3","application/vnd.eszigno3+xml"],["etx","text/x-setext"],["eva","application/x-eva"],["evy","application/x-envoy"],["exe","application/octet-stream"],["exi","application/exi"],["exp","application/express"],["exr","image/aces"],["ext","application/vnd.novadigm.ext"],["ez","application/andrew-inset"],["ez2","application/vnd.ezpix-album"],["ez3","application/vnd.ezpix-package"],["f","text/x-fortran"],["f4v","video/mp4"],["f77","text/x-fortran"],["f90","text/x-fortran"],["fbs","image/vnd.fastbidsheet"],["fcdt","application/vnd.adobe.formscentral.fcdt"],["fcs","application/vnd.isac.fcs"],["fdf","application/vnd.fdf"],["fdt","application/fdt+xml"],["fe_launch","application/vnd.denovo.fcselayout-link"],["fg5","application/vnd.fujitsu.oasysgp"],["fgd","application/x-director"],["fh","image/x-freehand"],["fh4","image/x-freehand"],["fh5","image/x-freehand"],["fh7","image/x-freehand"],["fhc","image/x-freehand"],["fig","application/x-xfig"],["fits","image/fits"],["flac","audio/x-flac"],["fli","video/x-fli"],["flo","application/vnd.micrografx.flo"],["flv","video/x-flv"],["flw","application/vnd.kde.kivio"],["flx","text/vnd.fmi.flexstor"],["fly","text/vnd.fly"],["fm","application/vnd.framemaker"],["fnc","application/vnd.frogans.fnc"],["fo","application/vnd.software602.filler.form+xml"],["for","text/x-fortran"],["fpx","image/vnd.fpx"],["frame","application/vnd.framemaker"],["fsc","application/vnd.fsc.weblaunch"],["fst","image/vnd.fst"],["ftc","application/vnd.fluxtime.clip"],["fti","application/vnd.anser-web-funds-transfer-initiation"],["fvt","video/vnd.fvt"],["fxp","application/vnd.adobe.fxp"],["fxpl","application/vnd.adobe.fxp"],["fzs","application/vnd.fuzzysheet"],["g2w","application/vnd.geoplan"],["g3","image/g3fax"],["g3w","application/vnd.geospace"],["gac","application/vnd.groove-account"],["gam","application/x-tads"],["gbr","application/rpki-ghostbusters"],["gca","application/x-gca-compressed"],["gdl","model/vnd.gdl"],["gdoc","application/vnd.google-apps.document"],["geo","application/vnd.dynageo"],["geojson","application/geo+json"],["gex","application/vnd.geometry-explorer"],["ggb","application/vnd.geogebra.file"],["ggt","application/vnd.geogebra.tool"],["ghf","application/vnd.groove-help"],["gif","image/gif"],["gim","application/vnd.groove-identity-message"],["glb","model/gltf-binary"],["gltf","model/gltf+json"],["gml","application/gml+xml"],["gmx","application/vnd.gmx"],["gnumeric","application/x-gnumeric"],["gpg","application/gpg-keys"],["gph","application/vnd.flographit"],["gpx","application/gpx+xml"],["gqf","application/vnd.grafeq"],["gqs","application/vnd.grafeq"],["gram","application/srgs"],["gramps","application/x-gramps-xml"],["gre","application/vnd.geometry-explorer"],["grv","application/vnd.groove-injector"],["grxml","application/srgs+xml"],["gsf","application/x-font-ghostscript"],["gsheet","application/vnd.google-apps.spreadsheet"],["gslides","application/vnd.google-apps.presentation"],["gtar","application/x-gtar"],["gtm","application/vnd.groove-tool-message"],["gtw","model/vnd.gtw"],["gv","text/vnd.graphviz"],["gxf","application/gxf"],["gxt","application/vnd.geonext"],["gz","application/gzip"],["gzip","application/gzip"],["h","text/x-c"],["h261","video/h261"],["h263","video/h263"],["h264","video/h264"],["hal","application/vnd.hal+xml"],["hbci","application/vnd.hbci"],["hbs","text/x-handlebars-template"],["hdd","application/x-virtualbox-hdd"],["hdf","application/x-hdf"],["heic","image/heic"],["heics","image/heic-sequence"],["heif","image/heif"],["heifs","image/heif-sequence"],["hej2","image/hej2k"],["held","application/atsc-held+xml"],["hh","text/x-c"],["hjson","application/hjson"],["hlp","application/winhlp"],["hpgl","application/vnd.hp-hpgl"],["hpid","application/vnd.hp-hpid"],["hps","application/vnd.hp-hps"],["hqx","application/mac-binhex40"],["hsj2","image/hsj2"],["htc","text/x-component"],["htke","application/vnd.kenameaapp"],["htm","text/html"],["html","text/html"],["hvd","application/vnd.yamaha.hv-dic"],["hvp","application/vnd.yamaha.hv-voice"],["hvs","application/vnd.yamaha.hv-script"],["i2g","application/vnd.intergeo"],["icc","application/vnd.iccprofile"],["ice","x-conference/x-cooltalk"],["icm","application/vnd.iccprofile"],["ico","image/x-icon"],["ics","text/calendar"],["ief","image/ief"],["ifb","text/calendar"],["ifm","application/vnd.shana.informed.formdata"],["iges","model/iges"],["igl","application/vnd.igloader"],["igm","application/vnd.insors.igm"],["igs","model/iges"],["igx","application/vnd.micrografx.igx"],["iif","application/vnd.shana.informed.interchange"],["img","application/octet-stream"],["imp","application/vnd.accpac.simply.imp"],["ims","application/vnd.ms-ims"],["in","text/plain"],["ini","text/plain"],["ink","application/inkml+xml"],["inkml","application/inkml+xml"],["install","application/x-install-instructions"],["iota","application/vnd.astraea-software.iota"],["ipfix","application/ipfix"],["ipk","application/vnd.shana.informed.package"],["irm","application/vnd.ibm.rights-management"],["irp","application/vnd.irepository.package+xml"],["iso","application/x-iso9660-image"],["itp","application/vnd.shana.informed.formtemplate"],["its","application/its+xml"],["ivp","application/vnd.immervision-ivp"],["ivu","application/vnd.immervision-ivu"],["jad","text/vnd.sun.j2me.app-descriptor"],["jade","text/jade"],["jam","application/vnd.jam"],["jar","application/java-archive"],["jardiff","application/x-java-archive-diff"],["java","text/x-java-source"],["jhc","image/jphc"],["jisp","application/vnd.jisp"],["jls","image/jls"],["jlt","application/vnd.hp-jlyt"],["jng","image/x-jng"],["jnlp","application/x-java-jnlp-file"],["joda","application/vnd.joost.joda-archive"],["jp2","image/jp2"],["jpe","image/jpeg"],["jpeg","image/jpeg"],["jpf","image/jpx"],["jpg","image/jpeg"],["jpg2","image/jp2"],["jpgm","video/jpm"],["jpgv","video/jpeg"],["jph","image/jph"],["jpm","video/jpm"],["jpx","image/jpx"],["js","application/javascript"],["json","application/json"],["json5","application/json5"],["jsonld","application/ld+json"],["jsonl","application/jsonl"],["jsonml","application/jsonml+json"],["jsx","text/jsx"],["jxr","image/jxr"],["jxra","image/jxra"],["jxrs","image/jxrs"],["jxs","image/jxs"],["jxsc","image/jxsc"],["jxsi","image/jxsi"],["jxss","image/jxss"],["kar","audio/midi"],["karbon","application/vnd.kde.karbon"],["kdb","application/octet-stream"],["kdbx","application/x-keepass2"],["key","application/x-iwork-keynote-sffkey"],["kfo","application/vnd.kde.kformula"],["kia","application/vnd.kidspiration"],["kml","application/vnd.google-earth.kml+xml"],["kmz","application/vnd.google-earth.kmz"],["kne","application/vnd.kinar"],["knp","application/vnd.kinar"],["kon","application/vnd.kde.kontour"],["kpr","application/vnd.kde.kpresenter"],["kpt","application/vnd.kde.kpresenter"],["kpxx","application/vnd.ds-keypoint"],["ksp","application/vnd.kde.kspread"],["ktr","application/vnd.kahootz"],["ktx","image/ktx"],["ktx2","image/ktx2"],["ktz","application/vnd.kahootz"],["kwd","application/vnd.kde.kword"],["kwt","application/vnd.kde.kword"],["lasxml","application/vnd.las.las+xml"],["latex","application/x-latex"],["lbd","application/vnd.llamagraphics.life-balance.desktop"],["lbe","application/vnd.llamagraphics.life-balance.exchange+xml"],["les","application/vnd.hhe.lesson-player"],["less","text/less"],["lgr","application/lgr+xml"],["lha","application/octet-stream"],["link66","application/vnd.route66.link66+xml"],["list","text/plain"],["list3820","application/vnd.ibm.modcap"],["listafp","application/vnd.ibm.modcap"],["litcoffee","text/coffeescript"],["lnk","application/x-ms-shortcut"],["log","text/plain"],["lostxml","application/lost+xml"],["lrf","application/octet-stream"],["lrm","application/vnd.ms-lrm"],["ltf","application/vnd.frogans.ltf"],["lua","text/x-lua"],["luac","application/x-lua-bytecode"],["lvp","audio/vnd.lucent.voice"],["lwp","application/vnd.lotus-wordpro"],["lzh","application/octet-stream"],["m1v","video/mpeg"],["m2a","audio/mpeg"],["m2v","video/mpeg"],["m3a","audio/mpeg"],["m3u","text/plain"],["m3u8","application/vnd.apple.mpegurl"],["m4a","audio/x-m4a"],["m4p","application/mp4"],["m4s","video/iso.segment"],["m4u","application/vnd.mpegurl"],["m4v","video/x-m4v"],["m13","application/x-msmediaview"],["m14","application/x-msmediaview"],["m21","application/mp21"],["ma","application/mathematica"],["mads","application/mads+xml"],["maei","application/mmt-aei+xml"],["mag","application/vnd.ecowin.chart"],["maker","application/vnd.framemaker"],["man","text/troff"],["manifest","text/cache-manifest"],["map","application/json"],["mar","application/octet-stream"],["markdown","text/markdown"],["mathml","application/mathml+xml"],["mb","application/mathematica"],["mbk","application/vnd.mobius.mbk"],["mbox","application/mbox"],["mc1","application/vnd.medcalcdata"],["mcd","application/vnd.mcd"],["mcurl","text/vnd.curl.mcurl"],["md","text/markdown"],["mdb","application/x-msaccess"],["mdi","image/vnd.ms-modi"],["mdx","text/mdx"],["me","text/troff"],["mesh","model/mesh"],["meta4","application/metalink4+xml"],["metalink","application/metalink+xml"],["mets","application/mets+xml"],["mfm","application/vnd.mfmp"],["mft","application/rpki-manifest"],["mgp","application/vnd.osgeo.mapguide.package"],["mgz","application/vnd.proteus.magazine"],["mid","audio/midi"],["midi","audio/midi"],["mie","application/x-mie"],["mif","application/vnd.mif"],["mime","message/rfc822"],["mj2","video/mj2"],["mjp2","video/mj2"],["mjs","application/javascript"],["mk3d","video/x-matroska"],["mka","audio/x-matroska"],["mkd","text/x-markdown"],["mks","video/x-matroska"],["mkv","video/x-matroska"],["mlp","application/vnd.dolby.mlp"],["mmd","application/vnd.chipnuts.karaoke-mmd"],["mmf","application/vnd.smaf"],["mml","text/mathml"],["mmr","image/vnd.fujixerox.edmics-mmr"],["mng","video/x-mng"],["mny","application/x-msmoney"],["mobi","application/x-mobipocket-ebook"],["mods","application/mods+xml"],["mov","video/quicktime"],["movie","video/x-sgi-movie"],["mp2","audio/mpeg"],["mp2a","audio/mpeg"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mp4a","audio/mp4"],["mp4s","application/mp4"],["mp4v","video/mp4"],["mp21","application/mp21"],["mpc","application/vnd.mophun.certificate"],["mpd","application/dash+xml"],["mpe","video/mpeg"],["mpeg","video/mpeg"],["mpg","video/mpeg"],["mpg4","video/mp4"],["mpga","audio/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["mpm","application/vnd.blueice.multipass"],["mpn","application/vnd.mophun.application"],["mpp","application/vnd.ms-project"],["mpt","application/vnd.ms-project"],["mpy","application/vnd.ibm.minipay"],["mqy","application/vnd.mobius.mqy"],["mrc","application/marc"],["mrcx","application/marcxml+xml"],["ms","text/troff"],["mscml","application/mediaservercontrol+xml"],["mseed","application/vnd.fdsn.mseed"],["mseq","application/vnd.mseq"],["msf","application/vnd.epson.msf"],["msg","application/vnd.ms-outlook"],["msh","model/mesh"],["msi","application/x-msdownload"],["msl","application/vnd.mobius.msl"],["msm","application/octet-stream"],["msp","application/octet-stream"],["msty","application/vnd.muvee.style"],["mtl","model/mtl"],["mts","model/vnd.mts"],["mus","application/vnd.musician"],["musd","application/mmt-usd+xml"],["musicxml","application/vnd.recordare.musicxml+xml"],["mvb","application/x-msmediaview"],["mvt","application/vnd.mapbox-vector-tile"],["mwf","application/vnd.mfer"],["mxf","application/mxf"],["mxl","application/vnd.recordare.musicxml"],["mxmf","audio/mobile-xmf"],["mxml","application/xv+xml"],["mxs","application/vnd.triscape.mxs"],["mxu","video/vnd.mpegurl"],["n-gage","application/vnd.nokia.n-gage.symbian.install"],["n3","text/n3"],["nb","application/mathematica"],["nbp","application/vnd.wolfram.player"],["nc","application/x-netcdf"],["ncx","application/x-dtbncx+xml"],["nfo","text/x-nfo"],["ngdat","application/vnd.nokia.n-gage.data"],["nitf","application/vnd.nitf"],["nlu","application/vnd.neurolanguage.nlu"],["nml","application/vnd.enliven"],["nnd","application/vnd.noblenet-directory"],["nns","application/vnd.noblenet-sealer"],["nnw","application/vnd.noblenet-web"],["npx","image/vnd.net-fpx"],["nq","application/n-quads"],["nsc","application/x-conference"],["nsf","application/vnd.lotus-notes"],["nt","application/n-triples"],["ntf","application/vnd.nitf"],["numbers","application/x-iwork-numbers-sffnumbers"],["nzb","application/x-nzb"],["oa2","application/vnd.fujitsu.oasys2"],["oa3","application/vnd.fujitsu.oasys3"],["oas","application/vnd.fujitsu.oasys"],["obd","application/x-msbinder"],["obgx","application/vnd.openblox.game+xml"],["obj","model/obj"],["oda","application/oda"],["odb","application/vnd.oasis.opendocument.database"],["odc","application/vnd.oasis.opendocument.chart"],["odf","application/vnd.oasis.opendocument.formula"],["odft","application/vnd.oasis.opendocument.formula-template"],["odg","application/vnd.oasis.opendocument.graphics"],["odi","application/vnd.oasis.opendocument.image"],["odm","application/vnd.oasis.opendocument.text-master"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogex","model/vnd.opengex"],["ogg","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["omdoc","application/omdoc+xml"],["onepkg","application/onenote"],["onetmp","application/onenote"],["onetoc","application/onenote"],["onetoc2","application/onenote"],["opf","application/oebps-package+xml"],["opml","text/x-opml"],["oprc","application/vnd.palm"],["opus","audio/ogg"],["org","text/x-org"],["osf","application/vnd.yamaha.openscoreformat"],["osfpvg","application/vnd.yamaha.openscoreformat.osfpvg+xml"],["osm","application/vnd.openstreetmap.data+xml"],["otc","application/vnd.oasis.opendocument.chart-template"],["otf","font/otf"],["otg","application/vnd.oasis.opendocument.graphics-template"],["oth","application/vnd.oasis.opendocument.text-web"],["oti","application/vnd.oasis.opendocument.image-template"],["otp","application/vnd.oasis.opendocument.presentation-template"],["ots","application/vnd.oasis.opendocument.spreadsheet-template"],["ott","application/vnd.oasis.opendocument.text-template"],["ova","application/x-virtualbox-ova"],["ovf","application/x-virtualbox-ovf"],["owl","application/rdf+xml"],["oxps","application/oxps"],["oxt","application/vnd.openofficeorg.extension"],["p","text/x-pascal"],["p7a","application/x-pkcs7-signature"],["p7b","application/x-pkcs7-certificates"],["p7c","application/pkcs7-mime"],["p7m","application/pkcs7-mime"],["p7r","application/x-pkcs7-certreqresp"],["p7s","application/pkcs7-signature"],["p8","application/pkcs8"],["p10","application/x-pkcs10"],["p12","application/x-pkcs12"],["pac","application/x-ns-proxy-autoconfig"],["pages","application/x-iwork-pages-sffpages"],["pas","text/x-pascal"],["paw","application/vnd.pawaafile"],["pbd","application/vnd.powerbuilder6"],["pbm","image/x-portable-bitmap"],["pcap","application/vnd.tcpdump.pcap"],["pcf","application/x-font-pcf"],["pcl","application/vnd.hp-pcl"],["pclxl","application/vnd.hp-pclxl"],["pct","image/x-pict"],["pcurl","application/vnd.curl.pcurl"],["pcx","image/x-pcx"],["pdb","application/x-pilot"],["pde","text/x-processing"],["pdf","application/pdf"],["pem","application/x-x509-user-cert"],["pfa","application/x-font-type1"],["pfb","application/x-font-type1"],["pfm","application/x-font-type1"],["pfr","application/font-tdpfr"],["pfx","application/x-pkcs12"],["pgm","image/x-portable-graymap"],["pgn","application/x-chess-pgn"],["pgp","application/pgp"],["php","application/x-httpd-php"],["php3","application/x-httpd-php"],["php4","application/x-httpd-php"],["phps","application/x-httpd-php-source"],["phtml","application/x-httpd-php"],["pic","image/x-pict"],["pkg","application/octet-stream"],["pki","application/pkixcmp"],["pkipath","application/pkix-pkipath"],["pkpass","application/vnd.apple.pkpass"],["pl","application/x-perl"],["plb","application/vnd.3gpp.pic-bw-large"],["plc","application/vnd.mobius.plc"],["plf","application/vnd.pocketlearn"],["pls","application/pls+xml"],["pm","application/x-perl"],["pml","application/vnd.ctc-posml"],["png","image/png"],["pnm","image/x-portable-anymap"],["portpkg","application/vnd.macports.portpkg"],["pot","application/vnd.ms-powerpoint"],["potm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["potx","application/vnd.openxmlformats-officedocument.presentationml.template"],["ppa","application/vnd.ms-powerpoint"],["ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"],["ppd","application/vnd.cups-ppd"],["ppm","image/x-portable-pixmap"],["pps","application/vnd.ms-powerpoint"],["ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],["ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"],["ppt","application/powerpoint"],["pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["pqa","application/vnd.palm"],["prc","application/x-pilot"],["pre","application/vnd.lotus-freelance"],["prf","application/pics-rules"],["provx","application/provenance+xml"],["ps","application/postscript"],["psb","application/vnd.3gpp.pic-bw-small"],["psd","application/x-photoshop"],["psf","application/x-font-linux-psf"],["pskcxml","application/pskc+xml"],["pti","image/prs.pti"],["ptid","application/vnd.pvi.ptid1"],["pub","application/x-mspublisher"],["pvb","application/vnd.3gpp.pic-bw-var"],["pwn","application/vnd.3m.post-it-notes"],["pya","audio/vnd.ms-playready.media.pya"],["pyv","video/vnd.ms-playready.media.pyv"],["qam","application/vnd.epson.quickanime"],["qbo","application/vnd.intu.qbo"],["qfx","application/vnd.intu.qfx"],["qps","application/vnd.publishare-delta-tree"],["qt","video/quicktime"],["qwd","application/vnd.quark.quarkxpress"],["qwt","application/vnd.quark.quarkxpress"],["qxb","application/vnd.quark.quarkxpress"],["qxd","application/vnd.quark.quarkxpress"],["qxl","application/vnd.quark.quarkxpress"],["qxt","application/vnd.quark.quarkxpress"],["ra","audio/x-realaudio"],["ram","audio/x-pn-realaudio"],["raml","application/raml+yaml"],["rapd","application/route-apd+xml"],["rar","application/x-rar"],["ras","image/x-cmu-raster"],["rcprofile","application/vnd.ipunplugged.rcprofile"],["rdf","application/rdf+xml"],["rdz","application/vnd.data-vision.rdz"],["relo","application/p2p-overlay+xml"],["rep","application/vnd.businessobjects"],["res","application/x-dtbresource+xml"],["rgb","image/x-rgb"],["rif","application/reginfo+xml"],["rip","audio/vnd.rip"],["ris","application/x-research-info-systems"],["rl","application/resource-lists+xml"],["rlc","image/vnd.fujixerox.edmics-rlc"],["rld","application/resource-lists-diff+xml"],["rm","audio/x-pn-realaudio"],["rmi","audio/midi"],["rmp","audio/x-pn-realaudio-plugin"],["rms","application/vnd.jcp.javame.midlet-rms"],["rmvb","application/vnd.rn-realmedia-vbr"],["rnc","application/relax-ng-compact-syntax"],["rng","application/xml"],["roa","application/rpki-roa"],["roff","text/troff"],["rp9","application/vnd.cloanto.rp9"],["rpm","audio/x-pn-realaudio-plugin"],["rpss","application/vnd.nokia.radio-presets"],["rpst","application/vnd.nokia.radio-preset"],["rq","application/sparql-query"],["rs","application/rls-services+xml"],["rsa","application/x-pkcs7"],["rsat","application/atsc-rsat+xml"],["rsd","application/rsd+xml"],["rsheet","application/urc-ressheet+xml"],["rss","application/rss+xml"],["rtf","text/rtf"],["rtx","text/richtext"],["run","application/x-makeself"],["rusd","application/route-usd+xml"],["rv","video/vnd.rn-realvideo"],["s","text/x-asm"],["s3m","audio/s3m"],["saf","application/vnd.yamaha.smaf-audio"],["sass","text/x-sass"],["sbml","application/sbml+xml"],["sc","application/vnd.ibm.secure-container"],["scd","application/x-msschedule"],["scm","application/vnd.lotus-screencam"],["scq","application/scvp-cv-request"],["scs","application/scvp-cv-response"],["scss","text/x-scss"],["scurl","text/vnd.curl.scurl"],["sda","application/vnd.stardivision.draw"],["sdc","application/vnd.stardivision.calc"],["sdd","application/vnd.stardivision.impress"],["sdkd","application/vnd.solent.sdkm+xml"],["sdkm","application/vnd.solent.sdkm+xml"],["sdp","application/sdp"],["sdw","application/vnd.stardivision.writer"],["sea","application/octet-stream"],["see","application/vnd.seemail"],["seed","application/vnd.fdsn.seed"],["sema","application/vnd.sema"],["semd","application/vnd.semd"],["semf","application/vnd.semf"],["senmlx","application/senml+xml"],["sensmlx","application/sensml+xml"],["ser","application/java-serialized-object"],["setpay","application/set-payment-initiation"],["setreg","application/set-registration-initiation"],["sfd-hdstx","application/vnd.hydrostatix.sof-data"],["sfs","application/vnd.spotfire.sfs"],["sfv","text/x-sfv"],["sgi","image/sgi"],["sgl","application/vnd.stardivision.writer-global"],["sgm","text/sgml"],["sgml","text/sgml"],["sh","application/x-sh"],["shar","application/x-shar"],["shex","text/shex"],["shf","application/shf+xml"],["shtml","text/html"],["sid","image/x-mrsid-image"],["sieve","application/sieve"],["sig","application/pgp-signature"],["sil","audio/silk"],["silo","model/mesh"],["sis","application/vnd.symbian.install"],["sisx","application/vnd.symbian.install"],["sit","application/x-stuffit"],["sitx","application/x-stuffitx"],["siv","application/sieve"],["skd","application/vnd.koan"],["skm","application/vnd.koan"],["skp","application/vnd.koan"],["skt","application/vnd.koan"],["sldm","application/vnd.ms-powerpoint.slide.macroenabled.12"],["sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"],["slim","text/slim"],["slm","text/slim"],["sls","application/route-s-tsid+xml"],["slt","application/vnd.epson.salt"],["sm","application/vnd.stepmania.stepchart"],["smf","application/vnd.stardivision.math"],["smi","application/smil"],["smil","application/smil"],["smv","video/x-smv"],["smzip","application/vnd.stepmania.package"],["snd","audio/basic"],["snf","application/x-font-snf"],["so","application/octet-stream"],["spc","application/x-pkcs7-certificates"],["spdx","text/spdx"],["spf","application/vnd.yamaha.smaf-phrase"],["spl","application/x-futuresplash"],["spot","text/vnd.in3d.spot"],["spp","application/scvp-vp-response"],["spq","application/scvp-vp-request"],["spx","audio/ogg"],["sql","application/x-sql"],["src","application/x-wais-source"],["srt","application/x-subrip"],["sru","application/sru+xml"],["srx","application/sparql-results+xml"],["ssdl","application/ssdl+xml"],["sse","application/vnd.kodak-descriptor"],["ssf","application/vnd.epson.ssf"],["ssml","application/ssml+xml"],["sst","application/octet-stream"],["st","application/vnd.sailingtracker.track"],["stc","application/vnd.sun.xml.calc.template"],["std","application/vnd.sun.xml.draw.template"],["stf","application/vnd.wt.stf"],["sti","application/vnd.sun.xml.impress.template"],["stk","application/hyperstudio"],["stl","model/stl"],["stpx","model/step+xml"],["stpxz","model/step-xml+zip"],["stpz","model/step+zip"],["str","application/vnd.pg.format"],["stw","application/vnd.sun.xml.writer.template"],["styl","text/stylus"],["stylus","text/stylus"],["sub","text/vnd.dvb.subtitle"],["sus","application/vnd.sus-calendar"],["susp","application/vnd.sus-calendar"],["sv4cpio","application/x-sv4cpio"],["sv4crc","application/x-sv4crc"],["svc","application/vnd.dvb.service"],["svd","application/vnd.svd"],["svg","image/svg+xml"],["svgz","image/svg+xml"],["swa","application/x-director"],["swf","application/x-shockwave-flash"],["swi","application/vnd.aristanetworks.swi"],["swidtag","application/swid+xml"],["sxc","application/vnd.sun.xml.calc"],["sxd","application/vnd.sun.xml.draw"],["sxg","application/vnd.sun.xml.writer.global"],["sxi","application/vnd.sun.xml.impress"],["sxm","application/vnd.sun.xml.math"],["sxw","application/vnd.sun.xml.writer"],["t","text/troff"],["t3","application/x-t3vm-image"],["t38","image/t38"],["taglet","application/vnd.mynfc"],["tao","application/vnd.tao.intent-module-archive"],["tap","image/vnd.tencent.tap"],["tar","application/x-tar"],["tcap","application/vnd.3gpp2.tcap"],["tcl","application/x-tcl"],["td","application/urc-targetdesc+xml"],["teacher","application/vnd.smart.teacher"],["tei","application/tei+xml"],["teicorpus","application/tei+xml"],["tex","application/x-tex"],["texi","application/x-texinfo"],["texinfo","application/x-texinfo"],["text","text/plain"],["tfi","application/thraud+xml"],["tfm","application/x-tex-tfm"],["tfx","image/tiff-fx"],["tga","image/x-tga"],["tgz","application/x-tar"],["thmx","application/vnd.ms-officetheme"],["tif","image/tiff"],["tiff","image/tiff"],["tk","application/x-tcl"],["tmo","application/vnd.tmobile-livetv"],["toml","application/toml"],["torrent","application/x-bittorrent"],["tpl","application/vnd.groove-tool-template"],["tpt","application/vnd.trid.tpt"],["tr","text/troff"],["tra","application/vnd.trueapp"],["trig","application/trig"],["trm","application/x-msterminal"],["ts","video/mp2t"],["tsd","application/timestamped-data"],["tsv","text/tab-separated-values"],["ttc","font/collection"],["ttf","font/ttf"],["ttl","text/turtle"],["ttml","application/ttml+xml"],["twd","application/vnd.simtech-mindmapper"],["twds","application/vnd.simtech-mindmapper"],["txd","application/vnd.genomatix.tuxedo"],["txf","application/vnd.mobius.txf"],["txt","text/plain"],["u8dsn","message/global-delivery-status"],["u8hdr","message/global-headers"],["u8mdn","message/global-disposition-notification"],["u8msg","message/global"],["u32","application/x-authorware-bin"],["ubj","application/ubjson"],["udeb","application/x-debian-package"],["ufd","application/vnd.ufdl"],["ufdl","application/vnd.ufdl"],["ulx","application/x-glulx"],["umj","application/vnd.umajin"],["unityweb","application/vnd.unity"],["uoml","application/vnd.uoml+xml"],["uri","text/uri-list"],["uris","text/uri-list"],["urls","text/uri-list"],["usdz","model/vnd.usdz+zip"],["ustar","application/x-ustar"],["utz","application/vnd.uiq.theme"],["uu","text/x-uuencode"],["uva","audio/vnd.dece.audio"],["uvd","application/vnd.dece.data"],["uvf","application/vnd.dece.data"],["uvg","image/vnd.dece.graphic"],["uvh","video/vnd.dece.hd"],["uvi","image/vnd.dece.graphic"],["uvm","video/vnd.dece.mobile"],["uvp","video/vnd.dece.pd"],["uvs","video/vnd.dece.sd"],["uvt","application/vnd.dece.ttml+xml"],["uvu","video/vnd.uvvu.mp4"],["uvv","video/vnd.dece.video"],["uvva","audio/vnd.dece.audio"],["uvvd","application/vnd.dece.data"],["uvvf","application/vnd.dece.data"],["uvvg","image/vnd.dece.graphic"],["uvvh","video/vnd.dece.hd"],["uvvi","image/vnd.dece.graphic"],["uvvm","video/vnd.dece.mobile"],["uvvp","video/vnd.dece.pd"],["uvvs","video/vnd.dece.sd"],["uvvt","application/vnd.dece.ttml+xml"],["uvvu","video/vnd.uvvu.mp4"],["uvvv","video/vnd.dece.video"],["uvvx","application/vnd.dece.unspecified"],["uvvz","application/vnd.dece.zip"],["uvx","application/vnd.dece.unspecified"],["uvz","application/vnd.dece.zip"],["vbox","application/x-virtualbox-vbox"],["vbox-extpack","application/x-virtualbox-vbox-extpack"],["vcard","text/vcard"],["vcd","application/x-cdlink"],["vcf","text/x-vcard"],["vcg","application/vnd.groove-vcard"],["vcs","text/x-vcalendar"],["vcx","application/vnd.vcx"],["vdi","application/x-virtualbox-vdi"],["vds","model/vnd.sap.vds"],["vhd","application/x-virtualbox-vhd"],["vis","application/vnd.visionary"],["viv","video/vnd.vivo"],["vlc","application/videolan"],["vmdk","application/x-virtualbox-vmdk"],["vob","video/x-ms-vob"],["vor","application/vnd.stardivision.writer"],["vox","application/x-authorware-bin"],["vrml","model/vrml"],["vsd","application/vnd.visio"],["vsf","application/vnd.vsf"],["vss","application/vnd.visio"],["vst","application/vnd.visio"],["vsw","application/vnd.visio"],["vtf","image/vnd.valve.source.texture"],["vtt","text/vtt"],["vtu","model/vnd.vtu"],["vxml","application/voicexml+xml"],["w3d","application/x-director"],["wad","application/x-doom"],["wadl","application/vnd.sun.wadl+xml"],["war","application/java-archive"],["wasm","application/wasm"],["wav","audio/x-wav"],["wax","audio/x-ms-wax"],["wbmp","image/vnd.wap.wbmp"],["wbs","application/vnd.criticaltools.wbs+xml"],["wbxml","application/wbxml"],["wcm","application/vnd.ms-works"],["wdb","application/vnd.ms-works"],["wdp","image/vnd.ms-photo"],["weba","audio/webm"],["webapp","application/x-web-app-manifest+json"],["webm","video/webm"],["webmanifest","application/manifest+json"],["webp","image/webp"],["wg","application/vnd.pmi.widget"],["wgt","application/widget"],["wks","application/vnd.ms-works"],["wm","video/x-ms-wm"],["wma","audio/x-ms-wma"],["wmd","application/x-ms-wmd"],["wmf","image/wmf"],["wml","text/vnd.wap.wml"],["wmlc","application/wmlc"],["wmls","text/vnd.wap.wmlscript"],["wmlsc","application/vnd.wap.wmlscriptc"],["wmv","video/x-ms-wmv"],["wmx","video/x-ms-wmx"],["wmz","application/x-msmetafile"],["woff","font/woff"],["woff2","font/woff2"],["word","application/msword"],["wpd","application/vnd.wordperfect"],["wpl","application/vnd.ms-wpl"],["wps","application/vnd.ms-works"],["wqd","application/vnd.wqd"],["wri","application/x-mswrite"],["wrl","model/vrml"],["wsc","message/vnd.wfa.wsc"],["wsdl","application/wsdl+xml"],["wspolicy","application/wspolicy+xml"],["wtb","application/vnd.webturbo"],["wvx","video/x-ms-wvx"],["x3d","model/x3d+xml"],["x3db","model/x3d+fastinfoset"],["x3dbz","model/x3d+binary"],["x3dv","model/x3d-vrml"],["x3dvz","model/x3d+vrml"],["x3dz","model/x3d+xml"],["x32","application/x-authorware-bin"],["x_b","model/vnd.parasolid.transmit.binary"],["x_t","model/vnd.parasolid.transmit.text"],["xaml","application/xaml+xml"],["xap","application/x-silverlight-app"],["xar","application/vnd.xara"],["xav","application/xcap-att+xml"],["xbap","application/x-ms-xbap"],["xbd","application/vnd.fujixerox.docuworks.binder"],["xbm","image/x-xbitmap"],["xca","application/xcap-caps+xml"],["xcs","application/calendar+xml"],["xdf","application/xcap-diff+xml"],["xdm","application/vnd.syncml.dm+xml"],["xdp","application/vnd.adobe.xdp+xml"],["xdssc","application/dssc+xml"],["xdw","application/vnd.fujixerox.docuworks"],["xel","application/xcap-el+xml"],["xenc","application/xenc+xml"],["xer","application/patch-ops-error+xml"],["xfdf","application/vnd.adobe.xfdf"],["xfdl","application/vnd.xfdl"],["xht","application/xhtml+xml"],["xhtml","application/xhtml+xml"],["xhvml","application/xv+xml"],["xif","image/vnd.xiff"],["xl","application/excel"],["xla","application/vnd.ms-excel"],["xlam","application/vnd.ms-excel.addin.macroEnabled.12"],["xlc","application/vnd.ms-excel"],["xlf","application/xliff+xml"],["xlm","application/vnd.ms-excel"],["xls","application/vnd.ms-excel"],["xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"],["xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xlt","application/vnd.ms-excel"],["xltm","application/vnd.ms-excel.template.macroEnabled.12"],["xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"],["xlw","application/vnd.ms-excel"],["xm","audio/xm"],["xml","application/xml"],["xns","application/xcap-ns+xml"],["xo","application/vnd.olpc-sugar"],["xop","application/xop+xml"],["xpi","application/x-xpinstall"],["xpl","application/xproc+xml"],["xpm","image/x-xpixmap"],["xpr","application/vnd.is-xpr"],["xps","application/vnd.ms-xpsdocument"],["xpw","application/vnd.intercon.formnet"],["xpx","application/vnd.intercon.formnet"],["xsd","application/xml"],["xsl","application/xml"],["xslt","application/xslt+xml"],["xsm","application/vnd.syncml+xml"],["xspf","application/xspf+xml"],["xul","application/vnd.mozilla.xul+xml"],["xvm","application/xv+xml"],["xvml","application/xv+xml"],["xwd","image/x-xwindowdump"],["xyz","chemical/x-xyz"],["xz","application/x-xz"],["yaml","text/yaml"],["yang","application/yang"],["yin","application/yin+xml"],["yml","text/yaml"],["ymp","text/x-suse-ymp"],["z","application/x-compress"],["z1","application/x-zmachine"],["z2","application/x-zmachine"],["z3","application/x-zmachine"],["z4","application/x-zmachine"],["z5","application/x-zmachine"],["z6","application/x-zmachine"],["z7","application/x-zmachine"],["z8","application/x-zmachine"],["zaz","application/vnd.zzazz.deck+xml"],["zip","application/zip"],["zir","application/vnd.zul"],["zirz","application/vnd.zul"],["zmm","application/vnd.handheld-entertainment+xml"],["zsh","text/x-scriptzsh"]]);function l(a,i,e){let t=function(a){let{name:i}=a;if(i&&-1!==i.lastIndexOf(".")&&!a.type){let e=i.split(".").pop().toLowerCase(),t=o.get(e);t&&Object.defineProperty(a,"type",{value:t,writable:!1,configurable:!1,enumerable:!0})}return a}(a),{webkitRelativePath:p}=a,n="string"==typeof i?i:"string"==typeof p&&p.length>0?p:`./${a.name}`;return"string"!=typeof t.path&&c(t,"path",n),void 0!==e&&Object.defineProperty(t,"handle",{value:e,writable:!1,configurable:!1,enumerable:!0}),c(t,"relativePath",n),t}function c(a,i,e){Object.defineProperty(a,i,{value:e,writable:!1,configurable:!1,enumerable:!0})}var r=(a,i,e)=>new Promise((t,p)=>{var n=a=>{try{l(e.next(a))}catch(a){p(a)}},o=a=>{try{l(e.throw(a))}catch(a){p(a)}},l=a=>a.done?t(a.value):Promise.resolve(a.value).then(n,o);l((e=e.apply(a,i)).next())});let s=[".DS_Store","Thumbs.db"];function d(a){return"object"==typeof a&&null!==a}function m(a){return a.filter(a=>-1===s.indexOf(a.name))}function v(a){if(null===a)return[];let i=[];for(let e=0;er(this,null,function*(){let i=yield a.getFile();return i.handle=a,l(i)}));let t=a.getAsFile();return t?Promise.resolve(l(t,null!=(e=null==i?void 0:i.fullPath)?e:void 0)):Promise.reject(`${a} is not a File`)}function f(a){return r(this,null,function*(){return a.isDirectory?g(a):function(a){return r(this,null,function*(){return new Promise((i,e)=>{a.file(e=>{i(l(e,a.fullPath))},a=>{e(a)})})})}(a)})}function g(a){let i=a.createReader();return new Promise((a,e)=>{let t=[];!function p(){i.readEntries(i=>r(this,null,function*(){if(i.length){let a=Promise.all(i.map(f));t.push(a),p()}else try{let i=yield Promise.all(t);a(i)}catch(a){e(a)}}),a=>{e(a)})}()})}var h=Object.defineProperty,b=Object.defineProperties,y=Object.getOwnPropertyDescriptors,k=Object.getOwnPropertySymbols,w=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable,z=(a,i,e)=>i in a?h(a,i,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[i]=e;let D=function(a,i){if(a&&i){let e=Array.isArray(i)?i:i.split(",");if(0===e.length)return!0;let t=a.name||"",p=(a.type||"").toLowerCase(),n=p.replace(/\/.*$/,"");return e.some(a=>{let i=a.trim().toLowerCase();return"."===i.charAt(0)?t.toLowerCase().endsWith(i):i.endsWith("/*")?n===i.replace(/\/.*$/,""):p===i})}return!0},_=a=>({code:"file-too-large",message:`File is larger than ${a} ${1===a?"byte":"bytes"}`}),O=a=>({code:"file-too-small",message:`File is smaller than ${a} ${1===a?"byte":"bytes"}`}),E={code:"too-many-files",message:"Too many files"};function P(a,i){let e="application/x-moz-file"===a.type||D(a,i);return[e,e?null:((a="")=>{let i=a.split(","),e=i.length>1?`one of ${i.join(", ")}`:i[0];return{code:"file-invalid-type",message:`File type must be ${e}`}})(i)]}function C(a,i,e){if(q(a.size)){if(q(i)&&q(e)){if(a.size>e)return[!1,_(e)];if(a.sizee)return[!1,_(e)]}return[!0,null]}function q(a){return null!=a}function A(a){return"function"==typeof a.isPropagationStopped?a.isPropagationStopped():void 0!==a.cancelBubble&&a.cancelBubble}function F(a){return a.dataTransfer?Array.prototype.some.call(a.dataTransfer.types,a=>"Files"===a||"application/x-moz-file"===a):!!a.target&&!!a.target.files}function S(a){a.preventDefault()}function T(...a){return(i,...e)=>a.some(a=>(!A(i)&&a&&a(i,...e),A(i)))}function R(a){return"audio/*"===a||"video/*"===a||"image/*"===a||"text/*"===a||"application/*"===a||/\w+\/[-+.\w]+/g.test(a)}function I(a){return/^.*\.[\w]+$/.test(a)}var M=Object.defineProperty,L=Object.defineProperties,N=Object.getOwnPropertyDescriptors,B=Object.getOwnPropertySymbols,V=Object.prototype.hasOwnProperty,$=Object.prototype.propertyIsEnumerable,Y=(a,i,e)=>i in a?M(a,i,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[i]=e,H=(a,i)=>{for(var e in i||(i={}))V.call(i,e)&&Y(a,e,i[e]);if(B)for(var e of B(i))$.call(i,e)&&Y(a,e,i[e]);return a},U=(a,i)=>{var e={};for(var t in a)V.call(a,t)&&0>i.indexOf(t)&&(e[t]=a[t]);if(null!=a&&B)for(var t of B(a))0>i.indexOf(t)&&$.call(a,t)&&(e[t]=a[t]);return e};let K=(0,p.forwardRef)((a,i)=>{var{children:e}=a;let t=J(U(a,["children"])),{open:n}=t,o=U(t,["open"]);return(0,p.useImperativeHandle)(i,()=>({open:n}),[n]),p.createElement(p.Fragment,null,e(L(H({},o),N({open:n}))))});K.displayName="Dropzone";let G={disabled:!1,getFilesFromEvent:function(a){return r(this,null,function*(){var i;if(d(a)&&d(a.dataTransfer))return function(a,i){return r(this,null,function*(){if(a.items){let e=v(a.items).filter(a=>"file"===a.kind);return"drop"!==i?e:m(function a(i){return i.reduce((i,e)=>[...i,...Array.isArray(e)?a(e):[e]],[])}((yield Promise.all(e.map(x)))))}return m(v(a.files).map(a=>l(a)))})}(a.dataTransfer,a.type);if(d(i=a)&&d(i.target))return v(a.target.files).map(a=>l(a));return Array.isArray(a)&&a.every(a=>"getFile"in a&&"function"==typeof a.getFile)?function(a){return r(this,null,function*(){return(yield Promise.all(a.map(a=>a.getFile()))).map(a=>l(a))})}(a):[]})},maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1,autoFocus:!1};K.defaultProps=G,K.propTypes={children:n.func,accept:n.objectOf(n.arrayOf(n.string)),multiple:n.bool,preventDropOnDocument:n.bool,noClick:n.bool,noKeyboard:n.bool,noDrag:n.bool,noDragEventsBubbling:n.bool,minSize:n.number,maxSize:n.number,maxFiles:n.number,disabled:n.bool,getFilesFromEvent:n.func,onFileDialogCancel:n.func,onFileDialogOpen:n.func,useFsAccessApi:n.bool,autoFocus:n.bool,onDragEnter:n.func,onDragLeave:n.func,onDragOver:n.func,onDrop:n.func,onDropAccepted:n.func,onDropRejected:n.func,onError:n.func,validator:n.func};let W={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function J(a={}){let{accept:i,disabled:e,getFilesFromEvent:t,maxSize:n,minSize:o,multiple:l,maxFiles:c,onDragEnter:r,onDragLeave:s,onDragOver:d,onDrop:m,onDropAccepted:v,onDropRejected:x,onFileDialogCancel:u,onFileDialogOpen:f,useFsAccessApi:g,autoFocus:h,preventDropOnDocument:D,noClick:_,noKeyboard:O,noDrag:M,noDragEventsBubbling:B,onError:V,validator:$}=H(H({},G),a),Y=(0,p.useMemo)(()=>(function(a){if(q(a))return Object.entries(a).reduce((a,[i,e])=>[...a,i,...e],[]).filter(a=>R(a)||I(a)).join(",")})(i),[i]),K=(0,p.useMemo)(()=>q(i)?[{description:"Files",accept:Object.entries(i).filter(([a,i])=>{let e=!0;return R(a)||(console.warn(`Skipped "${a}" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.`),e=!1),Array.isArray(i)&&i.every(I)||(console.warn(`Skipped "${a}" because an invalid file extension was provided.`),e=!1),e}).reduce((a,[i,e])=>b(((a,i)=>{for(var e in i||(i={}))w.call(i,e)&&z(a,e,i[e]);if(k)for(var e of k(i))j.call(i,e)&&z(a,e,i[e]);return a})({},a),y({[i]:e})),{})}]:i,[i]),Q=(0,p.useMemo)(()=>"function"==typeof f?f:Z,[f]),aa=(0,p.useMemo)(()=>"function"==typeof u?u:Z,[u]),ai=(0,p.useRef)(null),ae=(0,p.useRef)(null),[at,ap]=(0,p.useReducer)(X,W),{isFocused:an,isFileDialogActive:ao}=at,al=(0,p.useRef)("u">typeof window&&window.isSecureContext&&g&&"showOpenFilePicker"in window),ac=()=>{!al.current&&ao&&setTimeout(()=>{if(ae.current){let{files:a}=ae.current;a.length||(ap({type:"closeDialog"}),aa())}},300)};(0,p.useEffect)(()=>(window.addEventListener("focus",ac,!1),()=>{window.removeEventListener("focus",ac,!1)}),[ae,ao,aa,al]);let ar=(0,p.useRef)([]),as=a=>{ai.current&&ai.current.contains(a.target)||(a.preventDefault(),ar.current=[])};(0,p.useEffect)(()=>(D&&(document.addEventListener("dragover",S,!1),document.addEventListener("drop",as,!1)),()=>{D&&(document.removeEventListener("dragover",S),document.removeEventListener("drop",as))}),[ai,D]),(0,p.useEffect)(()=>(!e&&h&&ai.current&&ai.current.focus(),()=>{}),[ai,h,e]);let ad=(0,p.useCallback)(a=>{V?V(a):console.error(a)},[V]),am=(0,p.useCallback)(a=>{a.preventDefault(),a.persist(),aD(a),ar.current=[...ar.current,a.target],F(a)&&Promise.resolve(t(a)).then(i=>{if(A(a)&&!B)return;let e=i.length,t=e>0&&function({files:a,accept:i,minSize:e,maxSize:t,multiple:p,maxFiles:n,validator:o}){return(!!p||!(a.length>1))&&(!p||!(n>=1)||!(a.length>n))&&a.every(a=>{let[p]=P(a,i),[n]=C(a,e,t),l=o?o(a):null;return p&&n&&!l})}({files:i,accept:Y,minSize:o,maxSize:n,multiple:l,maxFiles:c,validator:$});ap({isDragAccept:t,isDragReject:e>0&&!t,isDragActive:!0,type:"setDraggedFiles"}),r&&r(a)}).catch(a=>ad(a))},[t,r,ad,B,Y,o,n,l,c,$]),av=(0,p.useCallback)(a=>{a.preventDefault(),a.persist(),aD(a);let i=F(a);if(i&&a.dataTransfer)try{a.dataTransfer.dropEffect="copy"}catch(a){}return i&&d&&d(a),!1},[d,B]),ax=(0,p.useCallback)(a=>{a.preventDefault(),a.persist(),aD(a);let i=ar.current.filter(a=>ai.current&&ai.current.contains(a)),e=i.indexOf(a.target);-1!==e&&i.splice(e,1),ar.current=i,!(i.length>0)&&(ap({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),F(a)&&s&&s(a))},[ai,s,B]),au=(0,p.useCallback)((a,i)=>{let e=[],t=[];a.forEach(a=>{let[i,p]=P(a,Y),[l,c]=C(a,o,n),r=$?$(a):null;if(i&&l&&!r)e.push(a);else{let i=[p,c];r&&(i=i.concat(r)),t.push({file:a,errors:i.filter(a=>a)})}}),(!l&&e.length>1||l&&c>=1&&e.length>c)&&(e.forEach(a=>{t.push({file:a,errors:[E]})}),e.splice(0)),ap({acceptedFiles:e,fileRejections:t,isDragReject:t.length>0,type:"setFiles"}),m&&m(e,t,i),t.length>0&&x&&x(t,i),e.length>0&&v&&v(e,i)},[ap,l,Y,o,n,c,m,v,x,$]),af=(0,p.useCallback)(a=>{a.preventDefault(),a.persist(),aD(a),ar.current=[],F(a)&&Promise.resolve(t(a)).then(i=>{(!A(a)||B)&&au(i,a)}).catch(a=>ad(a)),ap({type:"reset"})},[t,au,ad,B]),ag=(0,p.useCallback)(()=>{if(al.current){ap({type:"openDialog"}),Q(),window.showOpenFilePicker({multiple:l,types:K}).then(a=>t(a)).then(a=>{au(a,null),ap({type:"closeDialog"})}).catch(a=>{a instanceof DOMException&&("AbortError"===a.name||a.code===a.ABORT_ERR)?(aa(a),ap({type:"closeDialog"})):a instanceof DOMException&&("SecurityError"===a.name||a.code===a.SECURITY_ERR)?(al.current=!1,ae.current?(ae.current.value=null,ae.current.click()):ad(Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no was provided."))):ad(a)});return}ae.current&&(ap({type:"openDialog"}),Q(),ae.current.value=null,ae.current.click())},[ap,Q,aa,g,au,ad,K,l]),ah=(0,p.useCallback)(a=>{ai.current&&ai.current.isEqualNode(a.target)&&(" "===a.key||"Enter"===a.key||32===a.keyCode||13===a.keyCode)&&(a.preventDefault(),ag())},[ai,ag]),ab=(0,p.useCallback)(()=>{ap({type:"focus"})},[]),ay=(0,p.useCallback)(()=>{ap({type:"blur"})},[]),ak=(0,p.useCallback)(()=>{_||(function(a=window.navigator.userAgent){return -1!==a.indexOf("MSIE")||-1!==a.indexOf("Trident/")||-1!==a.indexOf("Edge/")}()?setTimeout(ag,0):ag())},[_,ag]),aw=a=>e?null:a,aj=a=>O?null:aw(a),az=a=>M?null:aw(a),aD=a=>{B&&a.stopPropagation()},a_=(0,p.useMemo)(()=>(a={})=>{var{refKey:i="ref",role:t,onKeyDown:p,onFocus:n,onBlur:o,onClick:l,onDragEnter:c,onDragOver:r,onDragLeave:s,onDrop:d}=a,m=U(a,["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"]);return H(H({onKeyDown:aj(T(p,ah)),onFocus:aj(T(n,ab)),onBlur:aj(T(o,ay)),onClick:aw(T(l,ak)),onDragEnter:az(T(c,am)),onDragOver:az(T(r,av)),onDragLeave:az(T(s,ax)),onDrop:az(T(d,af)),role:"string"==typeof t&&""!==t?t:"presentation",[i]:ai},e||O?{}:{tabIndex:0}),m)},[ai,ah,ab,ay,ak,am,av,ax,af,O,M,e]),aO=(0,p.useCallback)(a=>{a.stopPropagation()},[]),aE=(0,p.useMemo)(()=>(a={})=>{var{refKey:i="ref",onChange:e,onClick:t}=a,p=U(a,["refKey","onChange","onClick"]);return H(H({},{accept:Y,multiple:l,type:"file",style:{border:0,clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"},onChange:aw(T(e,af)),onClick:aw(T(t,aO)),tabIndex:-1,[i]:ae}),p)},[ae,i,l,af,e]);return L(H({},at),N({isFocused:an&&!e,getRootProps:a_,getInputProps:aE,rootRef:ai,inputRef:ae,open:aw(ag)}))}function X(a,i){switch(i.type){case"focus":return L(H({},a),N({isFocused:!0}));case"blur":return L(H({},a),N({isFocused:!1}));case"openDialog":return L(H({},W),N({isFileDialogActive:!0}));case"closeDialog":return L(H({},a),N({isFileDialogActive:!1}));case"setDraggedFiles":return L(H({},a),N({isDragActive:i.isDragActive,isDragAccept:i.isDragAccept,isDragReject:i.isDragReject}));case"setFiles":return L(H({},a),N({acceptedFiles:i.acceptedFiles,fileRejections:i.fileRejections,isDragReject:i.isDragReject}));case"reset":return H({},W);default:return a}}function Z(){}var Q=e(5618),aa=e(76),ai=e(43016),ae=e(80616),at=e(37666),ap=e(60481),an=e(61982),ao=e(56655);let[al,ac]=(0,e(36254).F)("Dropzone component was not found in tree");var ar=e(30342);function as(a){return"string"!=typeof a?"":a.charAt(0).toUpperCase()+a.slice(1)}function ad(a){let i=i=>{let{children:e,...n}=(0,ae.Y)(`Dropzone${as(a)}`,{},i),o=ac(),l=(0,ar.v)(e)?e:(0,t.jsx)("span",{children:e});return o[a]?(0,p.cloneElement)(l,n):null};return i.displayName=`@mantine/dropzone/${as(a)}`,i}let am=ad("accept"),av=ad("reject"),ax=ad("idle");var au={root:"m_d46a4834",inner:"m_b85f7144",fullScreen:"m_96f6e9ad",dropzone:"m_7946116d"};let af={loading:!1,multiple:!0,maxSize:1/0,autoFocus:!1,activateOnClick:!0,activateOnDrag:!0,dragEventsBubbling:!0,activateOnKeyboard:!0,useFsAccessApi:!0,variant:"light",rejectColor:"red"},ag=(0,Q.V)((a,{radius:i,variant:e,acceptColor:t,rejectColor:p})=>{let n=a.variantColorResolver({color:t||a.primaryColor,theme:a,variant:e}),o=a.variantColorResolver({color:p||"red",theme:a,variant:e});return{root:{"--dropzone-radius":(0,aa.nJ)(i),"--dropzone-accept-color":n.color,"--dropzone-accept-bg":n.background,"--dropzone-reject-color":o.color,"--dropzone-reject-bg":o.background}}}),ah=(0,ai.P9)((a,i)=>{let e=(0,ae.Y)("Dropzone",af,a),{classNames:p,className:n,style:o,styles:l,unstyled:c,vars:r,radius:s,disabled:d,loading:m,multiple:v,maxSize:x,accept:u,children:f,onDropAny:g,onDrop:h,onReject:b,openRef:y,name:k,maxFiles:w,autoFocus:j,activateOnClick:z,activateOnDrag:D,dragEventsBubbling:_,activateOnKeyboard:O,onDragEnter:E,onDragLeave:P,onDragOver:C,onFileDialogCancel:q,onFileDialogOpen:A,preventDropOnDocument:F,useFsAccessApi:S,getFilesFromEvent:T,validator:R,rejectColor:I,acceptColor:M,enablePointerEvents:L,loaderProps:N,inputProps:B,mod:V,...$}=e,Y=(0,at.I)({name:"Dropzone",classes:au,props:e,className:n,style:o,classNames:p,styles:l,unstyled:c,vars:r,varsResolver:ag}),{getRootProps:H,getInputProps:U,isDragAccept:K,isDragReject:G,isDragActive:W,open:X}=J({onDrop:g,onDropAccepted:h,onDropRejected:b,disabled:d||m,accept:Array.isArray(u)?u.reduce((a,i)=>({...a,[i]:[]}),{}):u,multiple:v,maxSize:x,maxFiles:w,autoFocus:j,noClick:!z,noDrag:!D,noDragEventsBubbling:!_,noKeyboard:!O,onDragEnter:E,onDragLeave:P,onDragOver:C,onFileDialogCancel:q,onFileDialogOpen:A,preventDropOnDocument:F,useFsAccessApi:S,validator:R,...T?{getFilesFromEvent:T}:null});(0,ao.bl)(y,X);let Z=W&&K,Q=W&&G,aa=!Z&&!Q;return(0,t.jsx)(al,{value:{accept:Z,reject:Q,idle:aa},children:(0,t.jsxs)(ap.a,{...H(),...Y("root",{focusable:!0}),...$,mod:[{accept:Z,reject:Q,idle:aa,disabled:d,loading:m,"activate-on-click":z},V],children:[(0,t.jsx)(an.p,{visible:m,overlayProps:{radius:s},unstyled:c,loaderProps:N}),(0,t.jsx)("input",{...U(B),name:k}),(0,t.jsx)("div",{...Y("inner"),ref:i,"data-enable-pointer-events":L||void 0,children:f})]})})});ah.classes=au,ah.displayName="@mantine/dropzone/Dropzone",ah.Accept=am,ah.Idle=ax,ah.Reject=av;var ab=e(69626),ay=e(35228),ak=e(33903),aw=e(78341);let aj={loading:!1,maxSize:1/0,activateOnClick:!1,activateOnDrag:!0,dragEventsBubbling:!0,activateOnKeyboard:!0,active:!0,zIndex:(0,ab.I)("max"),withinPortal:!0},az=(0,ai.P9)((a,i)=>{let e=(0,ae.Y)("DropzoneFullScreen",aj,a),{classNames:n,className:o,style:l,styles:c,unstyled:r,vars:s,active:d,onDrop:m,onReject:v,zIndex:x,withinPortal:u,portalProps:f,...g}=e,h=(0,at.I)({name:"DropzoneFullScreen",classes:au,props:e,className:o,style:l,classNames:n,styles:c,unstyled:r,rootSelector:"fullScreen"}),{resolvedClassNames:b,resolvedStyles:y}=(0,ay.Y)({classNames:n,styles:c,props:e}),[k,w]=(0,p.useState)(0),[j,{open:z,close:D}]=(0,aw.j)(!1),_=a=>{a.dataTransfer?.types.includes("Files")&&(w(a=>a+1),z())},O=()=>{w(a=>a-1)};return(0,p.useEffect)(()=>{0===k&&D()},[k]),(0,p.useEffect)(()=>{if(d)return document.addEventListener("dragenter",_,!1),document.addEventListener("dragleave",O,!1),()=>{document.removeEventListener("dragenter",_,!1),document.removeEventListener("dragleave",O,!1)}},[d]),(0,t.jsx)(ak.r,{...f,withinPortal:u,children:(0,t.jsx)(ap.a,{...h("fullScreen",{style:{opacity:+!!j,pointerEvents:j?"all":"none",zIndex:x}}),ref:i,children:(0,t.jsx)(ah,{...g,classNames:b,styles:y,unstyled:r,className:au.dropzone,onDrop:a=>{m?.(a),D(),w(0)},onReject:a=>{v?.(a),D(),w(0)}})})})});az.classes=au,az.displayName="@mantine/dropzone/DropzoneFullScreen",ah.FullScreen=az;let aD=ah},30597:(a,i,e)=>{"use strict";e.d(i,{A:()=>t});var t=(0,e(41495).A)("outline","file","IconFile",[["path",{d:"M14 3v4a1 1 0 0 0 1 1h4",key:"svg-0"}],["path",{d:"M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z",key:"svg-1"}]])},34955:(a,i,e)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var t={default:function(){return r},noSSR:function(){return c}};for(var p in t)Object.defineProperty(i,p,{enumerable:!0,get:t[p]});let n=e(14761);e(6029),e(55729);let o=n._(e(70628));function l(a){return{default:a?.default||a}}function c(a,i){return delete i.webpack,delete i.modules,a(i)}function r(a,i){let e=o.default,t={loading:({error:a,isLoading:i,pastDelay:e})=>null};a instanceof Promise?t.loader=()=>a:"function"==typeof a?t.loader=a:"object"==typeof a&&(t={...t,...a});let p=(t={...t,...i}).loader;return(t.loadableGenerated&&(t={...t,...t.loadableGenerated},delete t.loadableGenerated),"boolean"!=typeof t.ssr||t.ssr)?e({...t,loader:()=>null!=p?p().then(l):Promise.resolve(l(()=>null))}):(delete t.webpack,delete t.modules,c(e,t))}("function"==typeof i.default||"object"==typeof i.default&&null!==i.default)&&void 0===i.default.__esModule&&(Object.defineProperty(i.default,"__esModule",{value:!0}),Object.assign(i.default,i),a.exports=i.default)},48080:(a,i,e)=>{"use strict";e.d(i,{A:()=>t});var t=(0,e(41495).A)("outline","upload","IconUpload",[["path",{d:"M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2",key:"svg-0"}],["path",{d:"M7 9l5 -5l5 5",key:"svg-1"}],["path",{d:"M12 4l0 12",key:"svg-2"}]])},52789:(a,i,e)=>{"use strict";e.d(i,{u:()=>c});var t=e(1909);let p=(a,i,e)=>{if(a&&"reportValidity"in a){let p=(0,t.Jt)(e,i);a.setCustomValidity(p&&p.message||""),a.reportValidity()}},n=(a,i)=>{for(let e in i.fields){let t=i.fields[e];t&&t.ref&&"reportValidity"in t.ref?p(t.ref,e,a):t.refs&&t.refs.forEach(i=>p(i,e,a))}},o=(a,i)=>a.some(a=>a.startsWith(i+"."));var l=function(a,i){for(var e={};a.length;){var p=a[0],n=p.code,o=p.message,l=p.path.join(".");if(!e[l])if("unionErrors"in p){var c=p.unionErrors[0].errors[0];e[l]={message:c.message,type:c.code}}else e[l]={message:o,type:n};if("unionErrors"in p&&p.unionErrors.forEach(function(i){return i.errors.forEach(function(i){return a.push(i)})}),i){var r=e[l].types,s=r&&r[p.code];e[l]=(0,t.Gb)(l,i,e,n,s?[].concat(s,p.message):p.message)}a.shift()}return e},c=function(a,i,e){return void 0===e&&(e={}),function(p,c,r){try{return Promise.resolve(function(t,o){try{var l=Promise.resolve(a["sync"===e.mode?"parse":"parseAsync"](p,i)).then(function(a){return r.shouldUseNativeValidation&&n({},r),{errors:{},values:e.raw?p:a}})}catch(a){return o(a)}return l&&l.then?l.then(void 0,o):l}(0,function(a){if(Array.isArray(null==a?void 0:a.errors))return{values:{},errors:((a,i)=>{i.shouldUseNativeValidation&&n(a,i);let e={};for(let p in a){let n=(0,t.Jt)(i.fields,p),l=Object.assign(a[p]||{},{ref:n&&n.ref});if(o(i.names||Object.keys(a),p)){let a=Object.assign({},(0,t.Jt)(e,p));(0,t.hZ)(a,"root",l),(0,t.hZ)(e,p,a)}else(0,t.hZ)(e,p,l)}return e})(l(a.errors,!r.shouldUseNativeValidation&&"all"===r.criteriaMode),r)};throw a}))}catch(a){return Promise.reject(a)}}}},56121:(a,i,e)=>{a.exports=e(61847)()},59029:(a,i,e)=>{"use strict";e.d(i,{k:()=>c});var t=e(6029);e(55729);var p=e(80616),n=e(43016),o=e(94613);let l={},c=(0,n.P9)((a,i)=>{let e=(0,p.Y)("TextInput",l,a);return(0,t.jsx)(o.O,{component:"input",ref:i,...e,__staticSelector:"TextInput"})});c.classes=o.O.classes,c.displayName="@mantine/core/TextInput"},61847:(a,i,e)=>{"use strict";var t=e(4140);function p(){}function n(){}n.resetWarningCache=p,a.exports=function(){function a(a,i,e,p,n,o){if(o!==t){var l=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function i(){return a}a.isRequired=a;var e={array:a,bigint:a,bool:a,func:a,number:a,object:a,string:a,symbol:a,any:a,arrayOf:i,element:a,elementType:a,instanceOf:i,node:a,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:p};return e.PropTypes=e,e}},61982:(a,i,e)=>{"use strict";e.d(i,{p:()=>g});var t=e(6029);e(55729);var p=e(69626),n=e(5618),o=e(15862),l=e(80616),c=e(37666),r=e(60481),s=e(43016),d=e(94720),m=e(66152),v=e(56738),x={root:"m_6e45937b",loader:"m_e8eb006c",overlay:"m_df587f17"};let u={transitionProps:{transition:"fade",duration:0},overlayProps:{backgroundOpacity:.75},zIndex:(0,p.I)("overlay")},f=(0,n.V)((a,{zIndex:i})=>({root:{"--lo-z-index":i?.toString()}})),g=(0,s.P9)((a,i)=>{let e=(0,l.Y)("LoadingOverlay",u,a),{classNames:p,className:n,style:s,styles:g,unstyled:h,vars:b,transitionProps:y,loaderProps:k,overlayProps:w,visible:j,zIndex:z,...D}=e,_=(0,o.xd)(),O=(0,c.I)({name:"LoadingOverlay",classes:x,props:e,className:n,style:s,classNames:p,styles:g,unstyled:h,vars:b,varsResolver:f}),E={...u.overlayProps,...w};return(0,t.jsx)(v.e,{transition:"fade",...y,mounted:!!j,children:a=>(0,t.jsxs)(r.a,{...O("root",{style:a}),ref:i,...D,children:[(0,t.jsx)(d.a,{...O("loader"),unstyled:h,...k}),(0,t.jsx)(m.h,{...E,...O("overlay"),darkHidden:!0,unstyled:h,color:w?.color||_.white}),(0,t.jsx)(m.h,{...E,...O("overlay"),lightHidden:!0,unstyled:h,color:w?.color||_.colors.dark[5]})]})})});g.classes=x,g.displayName="@mantine/core/LoadingOverlay"},70628:(a,i,e)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"default",{enumerable:!0,get:function(){return m}});let t=e(14761)._(e(55729)),p=e(93522),n=[],o=[],l=!1;function c(a){let i=a(),e={loading:!0,loaded:null,error:null};return e.promise=i.then(a=>(e.loading=!1,e.loaded=a,a)).catch(a=>{throw e.loading=!1,e.error=a,a}),e}class r{constructor(a,i){this._loadFn=a,this._opts=i,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:a,_opts:i}=this;a.loading&&("number"==typeof i.delay&&(0===i.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},i.delay)),"number"==typeof i.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},i.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(a=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(a){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...a},this._callbacks.forEach(a=>a())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(a){return this._callbacks.add(a),()=>{this._callbacks.delete(a)}}}function s(a){return function(a,i){let e=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},i),n=null;function c(){if(!n){let i=new r(a,e);n={getCurrentValue:i.getCurrentValue.bind(i),subscribe:i.subscribe.bind(i),retry:i.retry.bind(i),promise:i.promise.bind(i)}}return n.promise()}if(!l){let a=e.webpack&&1?e.webpack():e.modules;a&&o.push(i=>{for(let e of a)if(i.includes(e))return c()})}function s(a,i){let o;c(),(o=t.default.useContext(p.LoadableContext))&&Array.isArray(e.modules)&&e.modules.forEach(a=>{o(a)});let l=t.default.useSyncExternalStore(n.subscribe,n.getCurrentValue,n.getCurrentValue);return t.default.useImperativeHandle(i,()=>({retry:n.retry}),[]),t.default.useMemo(()=>{var i;return l.loading||l.error?t.default.createElement(e.loading,{isLoading:l.loading,pastDelay:l.pastDelay,timedOut:l.timedOut,error:l.error,retry:n.retry}):l.loaded?t.default.createElement((i=l.loaded)&&i.default?i.default:i,a):null},[a,l])}return s.preload=()=>c(),s.displayName="LoadableComponent",t.default.forwardRef(s)}(c,a)}function d(a,i){let e=[];for(;a.length;){let t=a.pop();e.push(t(i))}return Promise.all(e).then(()=>{if(a.length)return d(a,i)})}s.preloadAll=()=>new Promise((a,i)=>{d(n).then(a,i)}),s.preloadReady=(a=[])=>new Promise(i=>{let e=()=>(l=!0,i());d(o,a).then(e,e)}),window.__NEXT_PRELOADREADY=s.preloadReady;let m=s},71024:(a,i,e)=>{a.exports=e(34955)},74011:(a,i,e)=>{"use strict";e.d(i,{A:()=>t});var t=(0,e(41495).A)("outline","x","IconX",[["path",{d:"M18 6l-12 12",key:"svg-0"}],["path",{d:"M6 6l12 12",key:"svg-1"}]])},83171:(a,i,e)=>{"use strict";e.d(i,{m:()=>v});var t=e(6029);e(55729);var p=e(76),n=e(5618),o=e(80616),l=e(37666),c=e(60481),r=e(43016),s={root:"m_7485cace"};let d={},m=(0,n.V)((a,{size:i,fluid:e})=>({root:{"--container-size":e?void 0:(0,p.YC)(i,"container-size")}})),v=(0,r.P9)((a,i)=>{let e=(0,o.Y)("Container",d,a),{classNames:p,className:n,style:r,styles:v,unstyled:x,vars:u,fluid:f,mod:g,...h}=e,b=(0,l.I)({name:"Container",classes:s,props:e,className:n,style:r,classNames:p,styles:v,unstyled:x,vars:u,varsResolver:m});return(0,t.jsx)(c.a,{ref:i,mod:[{fluid:f},g],...b("root"),...h})});v.classes=s,v.displayName="@mantine/core/Container"},93522:(a,i,e)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"LoadableContext",{enumerable:!0,get:function(){return t}});let t=e(14761)._(e(55729)).default.createContext(null)}}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7493],{4140:a=>{"use strict";a.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},11088:(a,i,e)=>{"use strict";e.d(i,{X:()=>C});var t=e(6029),p=e(26615);e(55729);var n=e(76),o=e(5618),l=e(66404),c=e(80616),r=e(37666),s=e(60481),d=e(43016);let[m,v]=(0,e(36254).F)("Table component was not found in the tree");var x={table:"m_b23fa0ef",th:"m_4e7aa4f3",tr:"m_4e7aa4fd",td:"m_4e7aa4ef",tbody:"m_b2404537",thead:"m_b242d975",caption:"m_9e5a3ac7",scrollContainer:"m_a100c15",scrollContainerInner:"m_62259741"};function u(a,i){let e=`Table${a.charAt(0).toUpperCase()}${a.slice(1)}`,p=(0,d.P9)((p,n)=>{let o=(0,c.Y)(e,{},p),{classNames:l,className:r,style:d,styles:m,...x}=o,u=v();return(0,t.jsx)(s.a,{component:a,ref:n,...function(a,i){if(!i)return;let e={};return i.columnBorder&&a.withColumnBorders&&(e["data-with-column-border"]=!0),i.rowBorder&&a.withRowBorders&&(e["data-with-row-border"]=!0),i.striped&&a.striped&&(e["data-striped"]=a.striped),i.highlightOnHover&&a.highlightOnHover&&(e["data-hover"]=!0),i.captionSide&&a.captionSide&&(e["data-side"]=a.captionSide),i.stickyHeader&&a.stickyHeader&&(e["data-sticky"]=!0),e}(u,i),...u.getStyles(a,{className:r,classNames:l,style:d,styles:m,props:o}),...x})});return p.displayName=`@mantine/core/${e}`,p.classes=x,p}let f=u("th",{columnBorder:!0}),g=u("td",{columnBorder:!0}),b=u("tr",{rowBorder:!0,striped:!0,highlightOnHover:!0}),h=u("thead",{stickyHeader:!0}),y=u("tbody"),k=u("tfoot"),w=u("caption",{captionSide:!0});function j({data:a}){return(0,t.jsxs)(t.Fragment,{children:[a.caption&&(0,t.jsx)(w,{children:a.caption}),a.head&&(0,t.jsx)(h,{children:(0,t.jsx)(b,{children:a.head.map((a,i)=>(0,t.jsx)(f,{children:a},i))})}),a.body&&(0,t.jsx)(y,{children:a.body.map((a,i)=>(0,t.jsx)(b,{children:a.map((a,i)=>(0,t.jsx)(g,{children:a},i))},i))}),a.foot&&(0,t.jsx)(k,{children:(0,t.jsx)(b,{children:a.foot.map((a,i)=>(0,t.jsx)(f,{children:a},i))})})]})}j.displayName="@mantine/core/TableDataRenderer";var z=e(53993);let D={type:"scrollarea"},_=(0,o.V)((a,{minWidth:i,maxHeight:e,type:t})=>({scrollContainer:{"--table-min-width":(0,p.D)(i),"--table-max-height":(0,p.D)(e),"--table-overflow":"native"===t?"auto":void 0}})),O=(0,d.P9)((a,i)=>{let e=(0,c.Y)("TableScrollContainer",D,a),{classNames:p,className:n,style:o,styles:l,unstyled:d,vars:m,children:v,minWidth:u,maxHeight:f,type:g,scrollAreaProps:b,...h}=e,y=(0,r.I)({name:"TableScrollContainer",classes:x,props:e,className:n,style:o,classNames:p,styles:l,unstyled:d,vars:m,varsResolver:_,rootSelector:"scrollContainer"});return(0,t.jsx)(s.a,{component:"scrollarea"===g?z.F:"div",..."scrollarea"===g?f?{offsetScrollbars:"xy",...b}:{offsetScrollbars:"x",...b}:{},ref:i,...y("scrollContainer"),...h,children:(0,t.jsx)("div",{...y("scrollContainerInner"),children:v})})});O.classes=x,O.displayName="@mantine/core/TableScrollContainer";let E={withRowBorders:!0,verticalSpacing:7},P=(0,o.V)((a,{layout:i,captionSide:e,horizontalSpacing:t,verticalSpacing:o,borderColor:c,stripedColor:r,highlightOnHoverColor:s,striped:d,highlightOnHover:m,stickyHeaderOffset:v,stickyHeader:x})=>({table:{"--table-layout":i,"--table-caption-side":e,"--table-horizontal-spacing":(0,n.GY)(t),"--table-vertical-spacing":(0,n.GY)(o),"--table-border-color":c?(0,l.r)(c,a):void 0,"--table-striped-color":d&&r?(0,l.r)(r,a):void 0,"--table-highlight-on-hover-color":m&&s?(0,l.r)(s,a):void 0,"--table-sticky-header-offset":x?(0,p.D)(v):void 0}})),C=(0,d.P9)((a,i)=>{let e=(0,c.Y)("Table",E,a),{classNames:p,className:n,style:o,styles:l,unstyled:d,vars:v,horizontalSpacing:u,verticalSpacing:f,captionSide:g,stripedColor:b,highlightOnHoverColor:h,striped:y,highlightOnHover:k,withColumnBorders:w,withRowBorders:z,withTableBorder:D,borderColor:_,layout:O,variant:C,data:q,children:F,stickyHeader:A,stickyHeaderOffset:S,mod:T,tabularNums:R,...I}=e,L=(0,r.I)({name:"Table",props:e,className:n,style:o,classes:x,classNames:p,styles:l,unstyled:d,rootSelector:"table",vars:v,varsResolver:P});return(0,t.jsx)(m,{value:{getStyles:L,stickyHeader:A,striped:!0===y?"odd":y||void 0,highlightOnHover:k,withColumnBorders:w,withRowBorders:z,captionSide:g||"bottom"},children:(0,t.jsx)(s.a,{component:"table",variant:C,ref:i,mod:[{"data-with-table-border":D,"data-tabular-nums":R},T],...L("table"),...I,children:F||!!q&&(0,t.jsx)(j,{data:q})})})});C.classes=x,C.displayName="@mantine/core/Table",C.Td=g,C.Th=f,C.Tr=b,C.Thead=h,C.Tbody=y,C.Tfoot=k,C.Caption=w,C.ScrollContainer=O,C.DataRenderer=j},23950:(a,i,e)=>{"use strict";e.d(i,{mR:()=>aD});var t=e(6029),p=e(55729),n=e(56121);let o=new Map([["1km","application/vnd.1000minds.decision-model+xml"],["3dml","text/vnd.in3d.3dml"],["3ds","image/x-3ds"],["3g2","video/3gpp2"],["3gp","video/3gp"],["3gpp","video/3gpp"],["3mf","model/3mf"],["7z","application/x-7z-compressed"],["7zip","application/x-7z-compressed"],["123","application/vnd.lotus-1-2-3"],["aab","application/x-authorware-bin"],["aac","audio/x-acc"],["aam","application/x-authorware-map"],["aas","application/x-authorware-seg"],["abw","application/x-abiword"],["ac","application/vnd.nokia.n-gage.ac+xml"],["ac3","audio/ac3"],["acc","application/vnd.americandynamics.acc"],["ace","application/x-ace-compressed"],["acu","application/vnd.acucobol"],["acutc","application/vnd.acucorp"],["adp","audio/adpcm"],["aep","application/vnd.audiograph"],["afm","application/x-font-type1"],["afp","application/vnd.ibm.modcap"],["ahead","application/vnd.ahead.space"],["ai","application/pdf"],["aif","audio/x-aiff"],["aifc","audio/x-aiff"],["aiff","audio/x-aiff"],["air","application/vnd.adobe.air-application-installer-package+zip"],["ait","application/vnd.dvb.ait"],["ami","application/vnd.amiga.ami"],["amr","audio/amr"],["apk","application/vnd.android.package-archive"],["apng","image/apng"],["appcache","text/cache-manifest"],["application","application/x-ms-application"],["apr","application/vnd.lotus-approach"],["arc","application/x-freearc"],["arj","application/x-arj"],["asc","application/pgp-signature"],["asf","video/x-ms-asf"],["asm","text/x-asm"],["aso","application/vnd.accpac.simply.aso"],["asx","video/x-ms-asf"],["atc","application/vnd.acucorp"],["atom","application/atom+xml"],["atomcat","application/atomcat+xml"],["atomdeleted","application/atomdeleted+xml"],["atomsvc","application/atomsvc+xml"],["atx","application/vnd.antix.game-component"],["au","audio/x-au"],["avi","video/x-msvideo"],["avif","image/avif"],["aw","application/applixware"],["azf","application/vnd.airzip.filesecure.azf"],["azs","application/vnd.airzip.filesecure.azs"],["azv","image/vnd.airzip.accelerator.azv"],["azw","application/vnd.amazon.ebook"],["b16","image/vnd.pco.b16"],["bat","application/x-msdownload"],["bcpio","application/x-bcpio"],["bdf","application/x-font-bdf"],["bdm","application/vnd.syncml.dm+wbxml"],["bdoc","application/x-bdoc"],["bed","application/vnd.realvnc.bed"],["bh2","application/vnd.fujitsu.oasysprs"],["bin","application/octet-stream"],["blb","application/x-blorb"],["blorb","application/x-blorb"],["bmi","application/vnd.bmi"],["bmml","application/vnd.balsamiq.bmml+xml"],["bmp","image/bmp"],["book","application/vnd.framemaker"],["box","application/vnd.previewsystems.box"],["boz","application/x-bzip2"],["bpk","application/octet-stream"],["bpmn","application/octet-stream"],["bsp","model/vnd.valve.source.compiled-map"],["btif","image/prs.btif"],["buffer","application/octet-stream"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["c","text/x-c"],["c4d","application/vnd.clonk.c4group"],["c4f","application/vnd.clonk.c4group"],["c4g","application/vnd.clonk.c4group"],["c4p","application/vnd.clonk.c4group"],["c4u","application/vnd.clonk.c4group"],["c11amc","application/vnd.cluetrust.cartomobile-config"],["c11amz","application/vnd.cluetrust.cartomobile-config-pkg"],["cab","application/vnd.ms-cab-compressed"],["caf","audio/x-caf"],["cap","application/vnd.tcpdump.pcap"],["car","application/vnd.curl.car"],["cat","application/vnd.ms-pki.seccat"],["cb7","application/x-cbr"],["cba","application/x-cbr"],["cbr","application/x-cbr"],["cbt","application/x-cbr"],["cbz","application/x-cbr"],["cc","text/x-c"],["cco","application/x-cocoa"],["cct","application/x-director"],["ccxml","application/ccxml+xml"],["cdbcmsg","application/vnd.contact.cmsg"],["cda","application/x-cdf"],["cdf","application/x-netcdf"],["cdfx","application/cdfx+xml"],["cdkey","application/vnd.mediastation.cdkey"],["cdmia","application/cdmi-capability"],["cdmic","application/cdmi-container"],["cdmid","application/cdmi-domain"],["cdmio","application/cdmi-object"],["cdmiq","application/cdmi-queue"],["cdr","application/cdr"],["cdx","chemical/x-cdx"],["cdxml","application/vnd.chemdraw+xml"],["cdy","application/vnd.cinderella"],["cer","application/pkix-cert"],["cfs","application/x-cfs-compressed"],["cgm","image/cgm"],["chat","application/x-chat"],["chm","application/vnd.ms-htmlhelp"],["chrt","application/vnd.kde.kchart"],["cif","chemical/x-cif"],["cii","application/vnd.anser-web-certificate-issue-initiation"],["cil","application/vnd.ms-artgalry"],["cjs","application/node"],["cla","application/vnd.claymore"],["class","application/octet-stream"],["clkk","application/vnd.crick.clicker.keyboard"],["clkp","application/vnd.crick.clicker.palette"],["clkt","application/vnd.crick.clicker.template"],["clkw","application/vnd.crick.clicker.wordbank"],["clkx","application/vnd.crick.clicker"],["clp","application/x-msclip"],["cmc","application/vnd.cosmocaller"],["cmdf","chemical/x-cmdf"],["cml","chemical/x-cml"],["cmp","application/vnd.yellowriver-custom-menu"],["cmx","image/x-cmx"],["cod","application/vnd.rim.cod"],["coffee","text/coffeescript"],["com","application/x-msdownload"],["conf","text/plain"],["cpio","application/x-cpio"],["cpp","text/x-c"],["cpt","application/mac-compactpro"],["crd","application/x-mscardfile"],["crl","application/pkix-crl"],["crt","application/x-x509-ca-cert"],["crx","application/x-chrome-extension"],["cryptonote","application/vnd.rig.cryptonote"],["csh","application/x-csh"],["csl","application/vnd.citationstyles.style+xml"],["csml","chemical/x-csml"],["csp","application/vnd.commonspace"],["csr","application/octet-stream"],["css","text/css"],["cst","application/x-director"],["csv","text/csv"],["cu","application/cu-seeme"],["curl","text/vnd.curl"],["cww","application/prs.cww"],["cxt","application/x-director"],["cxx","text/x-c"],["dae","model/vnd.collada+xml"],["daf","application/vnd.mobius.daf"],["dart","application/vnd.dart"],["dataless","application/vnd.fdsn.seed"],["davmount","application/davmount+xml"],["dbf","application/vnd.dbf"],["dbk","application/docbook+xml"],["dcr","application/x-director"],["dcurl","text/vnd.curl.dcurl"],["dd2","application/vnd.oma.dd2+xml"],["ddd","application/vnd.fujixerox.ddd"],["ddf","application/vnd.syncml.dmddf+xml"],["dds","image/vnd.ms-dds"],["deb","application/x-debian-package"],["def","text/plain"],["deploy","application/octet-stream"],["der","application/x-x509-ca-cert"],["dfac","application/vnd.dreamfactory"],["dgc","application/x-dgc-compressed"],["dic","text/x-c"],["dir","application/x-director"],["dis","application/vnd.mobius.dis"],["disposition-notification","message/disposition-notification"],["dist","application/octet-stream"],["distz","application/octet-stream"],["djv","image/vnd.djvu"],["djvu","image/vnd.djvu"],["dll","application/octet-stream"],["dmg","application/x-apple-diskimage"],["dmn","application/octet-stream"],["dmp","application/vnd.tcpdump.pcap"],["dms","application/octet-stream"],["dna","application/vnd.dna"],["doc","application/msword"],["docm","application/vnd.ms-word.template.macroEnabled.12"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["dot","application/msword"],["dotm","application/vnd.ms-word.template.macroEnabled.12"],["dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"],["dp","application/vnd.osgi.dp"],["dpg","application/vnd.dpgraph"],["dra","audio/vnd.dra"],["drle","image/dicom-rle"],["dsc","text/prs.lines.tag"],["dssc","application/dssc+der"],["dtb","application/x-dtbook+xml"],["dtd","application/xml-dtd"],["dts","audio/vnd.dts"],["dtshd","audio/vnd.dts.hd"],["dump","application/octet-stream"],["dvb","video/vnd.dvb.file"],["dvi","application/x-dvi"],["dwd","application/atsc-dwd+xml"],["dwf","model/vnd.dwf"],["dwg","image/vnd.dwg"],["dxf","image/vnd.dxf"],["dxp","application/vnd.spotfire.dxp"],["dxr","application/x-director"],["ear","application/java-archive"],["ecelp4800","audio/vnd.nuera.ecelp4800"],["ecelp7470","audio/vnd.nuera.ecelp7470"],["ecelp9600","audio/vnd.nuera.ecelp9600"],["ecma","application/ecmascript"],["edm","application/vnd.novadigm.edm"],["edx","application/vnd.novadigm.edx"],["efif","application/vnd.picsel"],["ei6","application/vnd.pg.osasli"],["elc","application/octet-stream"],["emf","image/emf"],["eml","message/rfc822"],["emma","application/emma+xml"],["emotionml","application/emotionml+xml"],["emz","application/x-msmetafile"],["eol","audio/vnd.digital-winds"],["eot","application/vnd.ms-fontobject"],["eps","application/postscript"],["epub","application/epub+zip"],["es","application/ecmascript"],["es3","application/vnd.eszigno3+xml"],["esa","application/vnd.osgi.subsystem"],["esf","application/vnd.epson.esf"],["et3","application/vnd.eszigno3+xml"],["etx","text/x-setext"],["eva","application/x-eva"],["evy","application/x-envoy"],["exe","application/octet-stream"],["exi","application/exi"],["exp","application/express"],["exr","image/aces"],["ext","application/vnd.novadigm.ext"],["ez","application/andrew-inset"],["ez2","application/vnd.ezpix-album"],["ez3","application/vnd.ezpix-package"],["f","text/x-fortran"],["f4v","video/mp4"],["f77","text/x-fortran"],["f90","text/x-fortran"],["fbs","image/vnd.fastbidsheet"],["fcdt","application/vnd.adobe.formscentral.fcdt"],["fcs","application/vnd.isac.fcs"],["fdf","application/vnd.fdf"],["fdt","application/fdt+xml"],["fe_launch","application/vnd.denovo.fcselayout-link"],["fg5","application/vnd.fujitsu.oasysgp"],["fgd","application/x-director"],["fh","image/x-freehand"],["fh4","image/x-freehand"],["fh5","image/x-freehand"],["fh7","image/x-freehand"],["fhc","image/x-freehand"],["fig","application/x-xfig"],["fits","image/fits"],["flac","audio/x-flac"],["fli","video/x-fli"],["flo","application/vnd.micrografx.flo"],["flv","video/x-flv"],["flw","application/vnd.kde.kivio"],["flx","text/vnd.fmi.flexstor"],["fly","text/vnd.fly"],["fm","application/vnd.framemaker"],["fnc","application/vnd.frogans.fnc"],["fo","application/vnd.software602.filler.form+xml"],["for","text/x-fortran"],["fpx","image/vnd.fpx"],["frame","application/vnd.framemaker"],["fsc","application/vnd.fsc.weblaunch"],["fst","image/vnd.fst"],["ftc","application/vnd.fluxtime.clip"],["fti","application/vnd.anser-web-funds-transfer-initiation"],["fvt","video/vnd.fvt"],["fxp","application/vnd.adobe.fxp"],["fxpl","application/vnd.adobe.fxp"],["fzs","application/vnd.fuzzysheet"],["g2w","application/vnd.geoplan"],["g3","image/g3fax"],["g3w","application/vnd.geospace"],["gac","application/vnd.groove-account"],["gam","application/x-tads"],["gbr","application/rpki-ghostbusters"],["gca","application/x-gca-compressed"],["gdl","model/vnd.gdl"],["gdoc","application/vnd.google-apps.document"],["geo","application/vnd.dynageo"],["geojson","application/geo+json"],["gex","application/vnd.geometry-explorer"],["ggb","application/vnd.geogebra.file"],["ggt","application/vnd.geogebra.tool"],["ghf","application/vnd.groove-help"],["gif","image/gif"],["gim","application/vnd.groove-identity-message"],["glb","model/gltf-binary"],["gltf","model/gltf+json"],["gml","application/gml+xml"],["gmx","application/vnd.gmx"],["gnumeric","application/x-gnumeric"],["gpg","application/gpg-keys"],["gph","application/vnd.flographit"],["gpx","application/gpx+xml"],["gqf","application/vnd.grafeq"],["gqs","application/vnd.grafeq"],["gram","application/srgs"],["gramps","application/x-gramps-xml"],["gre","application/vnd.geometry-explorer"],["grv","application/vnd.groove-injector"],["grxml","application/srgs+xml"],["gsf","application/x-font-ghostscript"],["gsheet","application/vnd.google-apps.spreadsheet"],["gslides","application/vnd.google-apps.presentation"],["gtar","application/x-gtar"],["gtm","application/vnd.groove-tool-message"],["gtw","model/vnd.gtw"],["gv","text/vnd.graphviz"],["gxf","application/gxf"],["gxt","application/vnd.geonext"],["gz","application/gzip"],["gzip","application/gzip"],["h","text/x-c"],["h261","video/h261"],["h263","video/h263"],["h264","video/h264"],["hal","application/vnd.hal+xml"],["hbci","application/vnd.hbci"],["hbs","text/x-handlebars-template"],["hdd","application/x-virtualbox-hdd"],["hdf","application/x-hdf"],["heic","image/heic"],["heics","image/heic-sequence"],["heif","image/heif"],["heifs","image/heif-sequence"],["hej2","image/hej2k"],["held","application/atsc-held+xml"],["hh","text/x-c"],["hjson","application/hjson"],["hlp","application/winhlp"],["hpgl","application/vnd.hp-hpgl"],["hpid","application/vnd.hp-hpid"],["hps","application/vnd.hp-hps"],["hqx","application/mac-binhex40"],["hsj2","image/hsj2"],["htc","text/x-component"],["htke","application/vnd.kenameaapp"],["htm","text/html"],["html","text/html"],["hvd","application/vnd.yamaha.hv-dic"],["hvp","application/vnd.yamaha.hv-voice"],["hvs","application/vnd.yamaha.hv-script"],["i2g","application/vnd.intergeo"],["icc","application/vnd.iccprofile"],["ice","x-conference/x-cooltalk"],["icm","application/vnd.iccprofile"],["ico","image/x-icon"],["ics","text/calendar"],["ief","image/ief"],["ifb","text/calendar"],["ifm","application/vnd.shana.informed.formdata"],["iges","model/iges"],["igl","application/vnd.igloader"],["igm","application/vnd.insors.igm"],["igs","model/iges"],["igx","application/vnd.micrografx.igx"],["iif","application/vnd.shana.informed.interchange"],["img","application/octet-stream"],["imp","application/vnd.accpac.simply.imp"],["ims","application/vnd.ms-ims"],["in","text/plain"],["ini","text/plain"],["ink","application/inkml+xml"],["inkml","application/inkml+xml"],["install","application/x-install-instructions"],["iota","application/vnd.astraea-software.iota"],["ipfix","application/ipfix"],["ipk","application/vnd.shana.informed.package"],["irm","application/vnd.ibm.rights-management"],["irp","application/vnd.irepository.package+xml"],["iso","application/x-iso9660-image"],["itp","application/vnd.shana.informed.formtemplate"],["its","application/its+xml"],["ivp","application/vnd.immervision-ivp"],["ivu","application/vnd.immervision-ivu"],["jad","text/vnd.sun.j2me.app-descriptor"],["jade","text/jade"],["jam","application/vnd.jam"],["jar","application/java-archive"],["jardiff","application/x-java-archive-diff"],["java","text/x-java-source"],["jhc","image/jphc"],["jisp","application/vnd.jisp"],["jls","image/jls"],["jlt","application/vnd.hp-jlyt"],["jng","image/x-jng"],["jnlp","application/x-java-jnlp-file"],["joda","application/vnd.joost.joda-archive"],["jp2","image/jp2"],["jpe","image/jpeg"],["jpeg","image/jpeg"],["jpf","image/jpx"],["jpg","image/jpeg"],["jpg2","image/jp2"],["jpgm","video/jpm"],["jpgv","video/jpeg"],["jph","image/jph"],["jpm","video/jpm"],["jpx","image/jpx"],["js","application/javascript"],["json","application/json"],["json5","application/json5"],["jsonld","application/ld+json"],["jsonl","application/jsonl"],["jsonml","application/jsonml+json"],["jsx","text/jsx"],["jxr","image/jxr"],["jxra","image/jxra"],["jxrs","image/jxrs"],["jxs","image/jxs"],["jxsc","image/jxsc"],["jxsi","image/jxsi"],["jxss","image/jxss"],["kar","audio/midi"],["karbon","application/vnd.kde.karbon"],["kdb","application/octet-stream"],["kdbx","application/x-keepass2"],["key","application/x-iwork-keynote-sffkey"],["kfo","application/vnd.kde.kformula"],["kia","application/vnd.kidspiration"],["kml","application/vnd.google-earth.kml+xml"],["kmz","application/vnd.google-earth.kmz"],["kne","application/vnd.kinar"],["knp","application/vnd.kinar"],["kon","application/vnd.kde.kontour"],["kpr","application/vnd.kde.kpresenter"],["kpt","application/vnd.kde.kpresenter"],["kpxx","application/vnd.ds-keypoint"],["ksp","application/vnd.kde.kspread"],["ktr","application/vnd.kahootz"],["ktx","image/ktx"],["ktx2","image/ktx2"],["ktz","application/vnd.kahootz"],["kwd","application/vnd.kde.kword"],["kwt","application/vnd.kde.kword"],["lasxml","application/vnd.las.las+xml"],["latex","application/x-latex"],["lbd","application/vnd.llamagraphics.life-balance.desktop"],["lbe","application/vnd.llamagraphics.life-balance.exchange+xml"],["les","application/vnd.hhe.lesson-player"],["less","text/less"],["lgr","application/lgr+xml"],["lha","application/octet-stream"],["link66","application/vnd.route66.link66+xml"],["list","text/plain"],["list3820","application/vnd.ibm.modcap"],["listafp","application/vnd.ibm.modcap"],["litcoffee","text/coffeescript"],["lnk","application/x-ms-shortcut"],["log","text/plain"],["lostxml","application/lost+xml"],["lrf","application/octet-stream"],["lrm","application/vnd.ms-lrm"],["ltf","application/vnd.frogans.ltf"],["lua","text/x-lua"],["luac","application/x-lua-bytecode"],["lvp","audio/vnd.lucent.voice"],["lwp","application/vnd.lotus-wordpro"],["lzh","application/octet-stream"],["m1v","video/mpeg"],["m2a","audio/mpeg"],["m2v","video/mpeg"],["m3a","audio/mpeg"],["m3u","text/plain"],["m3u8","application/vnd.apple.mpegurl"],["m4a","audio/x-m4a"],["m4p","application/mp4"],["m4s","video/iso.segment"],["m4u","application/vnd.mpegurl"],["m4v","video/x-m4v"],["m13","application/x-msmediaview"],["m14","application/x-msmediaview"],["m21","application/mp21"],["ma","application/mathematica"],["mads","application/mads+xml"],["maei","application/mmt-aei+xml"],["mag","application/vnd.ecowin.chart"],["maker","application/vnd.framemaker"],["man","text/troff"],["manifest","text/cache-manifest"],["map","application/json"],["mar","application/octet-stream"],["markdown","text/markdown"],["mathml","application/mathml+xml"],["mb","application/mathematica"],["mbk","application/vnd.mobius.mbk"],["mbox","application/mbox"],["mc1","application/vnd.medcalcdata"],["mcd","application/vnd.mcd"],["mcurl","text/vnd.curl.mcurl"],["md","text/markdown"],["mdb","application/x-msaccess"],["mdi","image/vnd.ms-modi"],["mdx","text/mdx"],["me","text/troff"],["mesh","model/mesh"],["meta4","application/metalink4+xml"],["metalink","application/metalink+xml"],["mets","application/mets+xml"],["mfm","application/vnd.mfmp"],["mft","application/rpki-manifest"],["mgp","application/vnd.osgeo.mapguide.package"],["mgz","application/vnd.proteus.magazine"],["mid","audio/midi"],["midi","audio/midi"],["mie","application/x-mie"],["mif","application/vnd.mif"],["mime","message/rfc822"],["mj2","video/mj2"],["mjp2","video/mj2"],["mjs","application/javascript"],["mk3d","video/x-matroska"],["mka","audio/x-matroska"],["mkd","text/x-markdown"],["mks","video/x-matroska"],["mkv","video/x-matroska"],["mlp","application/vnd.dolby.mlp"],["mmd","application/vnd.chipnuts.karaoke-mmd"],["mmf","application/vnd.smaf"],["mml","text/mathml"],["mmr","image/vnd.fujixerox.edmics-mmr"],["mng","video/x-mng"],["mny","application/x-msmoney"],["mobi","application/x-mobipocket-ebook"],["mods","application/mods+xml"],["mov","video/quicktime"],["movie","video/x-sgi-movie"],["mp2","audio/mpeg"],["mp2a","audio/mpeg"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mp4a","audio/mp4"],["mp4s","application/mp4"],["mp4v","video/mp4"],["mp21","application/mp21"],["mpc","application/vnd.mophun.certificate"],["mpd","application/dash+xml"],["mpe","video/mpeg"],["mpeg","video/mpeg"],["mpg","video/mpeg"],["mpg4","video/mp4"],["mpga","audio/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["mpm","application/vnd.blueice.multipass"],["mpn","application/vnd.mophun.application"],["mpp","application/vnd.ms-project"],["mpt","application/vnd.ms-project"],["mpy","application/vnd.ibm.minipay"],["mqy","application/vnd.mobius.mqy"],["mrc","application/marc"],["mrcx","application/marcxml+xml"],["ms","text/troff"],["mscml","application/mediaservercontrol+xml"],["mseed","application/vnd.fdsn.mseed"],["mseq","application/vnd.mseq"],["msf","application/vnd.epson.msf"],["msg","application/vnd.ms-outlook"],["msh","model/mesh"],["msi","application/x-msdownload"],["msl","application/vnd.mobius.msl"],["msm","application/octet-stream"],["msp","application/octet-stream"],["msty","application/vnd.muvee.style"],["mtl","model/mtl"],["mts","model/vnd.mts"],["mus","application/vnd.musician"],["musd","application/mmt-usd+xml"],["musicxml","application/vnd.recordare.musicxml+xml"],["mvb","application/x-msmediaview"],["mvt","application/vnd.mapbox-vector-tile"],["mwf","application/vnd.mfer"],["mxf","application/mxf"],["mxl","application/vnd.recordare.musicxml"],["mxmf","audio/mobile-xmf"],["mxml","application/xv+xml"],["mxs","application/vnd.triscape.mxs"],["mxu","video/vnd.mpegurl"],["n-gage","application/vnd.nokia.n-gage.symbian.install"],["n3","text/n3"],["nb","application/mathematica"],["nbp","application/vnd.wolfram.player"],["nc","application/x-netcdf"],["ncx","application/x-dtbncx+xml"],["nfo","text/x-nfo"],["ngdat","application/vnd.nokia.n-gage.data"],["nitf","application/vnd.nitf"],["nlu","application/vnd.neurolanguage.nlu"],["nml","application/vnd.enliven"],["nnd","application/vnd.noblenet-directory"],["nns","application/vnd.noblenet-sealer"],["nnw","application/vnd.noblenet-web"],["npx","image/vnd.net-fpx"],["nq","application/n-quads"],["nsc","application/x-conference"],["nsf","application/vnd.lotus-notes"],["nt","application/n-triples"],["ntf","application/vnd.nitf"],["numbers","application/x-iwork-numbers-sffnumbers"],["nzb","application/x-nzb"],["oa2","application/vnd.fujitsu.oasys2"],["oa3","application/vnd.fujitsu.oasys3"],["oas","application/vnd.fujitsu.oasys"],["obd","application/x-msbinder"],["obgx","application/vnd.openblox.game+xml"],["obj","model/obj"],["oda","application/oda"],["odb","application/vnd.oasis.opendocument.database"],["odc","application/vnd.oasis.opendocument.chart"],["odf","application/vnd.oasis.opendocument.formula"],["odft","application/vnd.oasis.opendocument.formula-template"],["odg","application/vnd.oasis.opendocument.graphics"],["odi","application/vnd.oasis.opendocument.image"],["odm","application/vnd.oasis.opendocument.text-master"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogex","model/vnd.opengex"],["ogg","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["omdoc","application/omdoc+xml"],["onepkg","application/onenote"],["onetmp","application/onenote"],["onetoc","application/onenote"],["onetoc2","application/onenote"],["opf","application/oebps-package+xml"],["opml","text/x-opml"],["oprc","application/vnd.palm"],["opus","audio/ogg"],["org","text/x-org"],["osf","application/vnd.yamaha.openscoreformat"],["osfpvg","application/vnd.yamaha.openscoreformat.osfpvg+xml"],["osm","application/vnd.openstreetmap.data+xml"],["otc","application/vnd.oasis.opendocument.chart-template"],["otf","font/otf"],["otg","application/vnd.oasis.opendocument.graphics-template"],["oth","application/vnd.oasis.opendocument.text-web"],["oti","application/vnd.oasis.opendocument.image-template"],["otp","application/vnd.oasis.opendocument.presentation-template"],["ots","application/vnd.oasis.opendocument.spreadsheet-template"],["ott","application/vnd.oasis.opendocument.text-template"],["ova","application/x-virtualbox-ova"],["ovf","application/x-virtualbox-ovf"],["owl","application/rdf+xml"],["oxps","application/oxps"],["oxt","application/vnd.openofficeorg.extension"],["p","text/x-pascal"],["p7a","application/x-pkcs7-signature"],["p7b","application/x-pkcs7-certificates"],["p7c","application/pkcs7-mime"],["p7m","application/pkcs7-mime"],["p7r","application/x-pkcs7-certreqresp"],["p7s","application/pkcs7-signature"],["p8","application/pkcs8"],["p10","application/x-pkcs10"],["p12","application/x-pkcs12"],["pac","application/x-ns-proxy-autoconfig"],["pages","application/x-iwork-pages-sffpages"],["pas","text/x-pascal"],["paw","application/vnd.pawaafile"],["pbd","application/vnd.powerbuilder6"],["pbm","image/x-portable-bitmap"],["pcap","application/vnd.tcpdump.pcap"],["pcf","application/x-font-pcf"],["pcl","application/vnd.hp-pcl"],["pclxl","application/vnd.hp-pclxl"],["pct","image/x-pict"],["pcurl","application/vnd.curl.pcurl"],["pcx","image/x-pcx"],["pdb","application/x-pilot"],["pde","text/x-processing"],["pdf","application/pdf"],["pem","application/x-x509-user-cert"],["pfa","application/x-font-type1"],["pfb","application/x-font-type1"],["pfm","application/x-font-type1"],["pfr","application/font-tdpfr"],["pfx","application/x-pkcs12"],["pgm","image/x-portable-graymap"],["pgn","application/x-chess-pgn"],["pgp","application/pgp"],["php","application/x-httpd-php"],["php3","application/x-httpd-php"],["php4","application/x-httpd-php"],["phps","application/x-httpd-php-source"],["phtml","application/x-httpd-php"],["pic","image/x-pict"],["pkg","application/octet-stream"],["pki","application/pkixcmp"],["pkipath","application/pkix-pkipath"],["pkpass","application/vnd.apple.pkpass"],["pl","application/x-perl"],["plb","application/vnd.3gpp.pic-bw-large"],["plc","application/vnd.mobius.plc"],["plf","application/vnd.pocketlearn"],["pls","application/pls+xml"],["pm","application/x-perl"],["pml","application/vnd.ctc-posml"],["png","image/png"],["pnm","image/x-portable-anymap"],["portpkg","application/vnd.macports.portpkg"],["pot","application/vnd.ms-powerpoint"],["potm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["potx","application/vnd.openxmlformats-officedocument.presentationml.template"],["ppa","application/vnd.ms-powerpoint"],["ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"],["ppd","application/vnd.cups-ppd"],["ppm","image/x-portable-pixmap"],["pps","application/vnd.ms-powerpoint"],["ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],["ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"],["ppt","application/powerpoint"],["pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["pqa","application/vnd.palm"],["prc","application/x-pilot"],["pre","application/vnd.lotus-freelance"],["prf","application/pics-rules"],["provx","application/provenance+xml"],["ps","application/postscript"],["psb","application/vnd.3gpp.pic-bw-small"],["psd","application/x-photoshop"],["psf","application/x-font-linux-psf"],["pskcxml","application/pskc+xml"],["pti","image/prs.pti"],["ptid","application/vnd.pvi.ptid1"],["pub","application/x-mspublisher"],["pvb","application/vnd.3gpp.pic-bw-var"],["pwn","application/vnd.3m.post-it-notes"],["pya","audio/vnd.ms-playready.media.pya"],["pyv","video/vnd.ms-playready.media.pyv"],["qam","application/vnd.epson.quickanime"],["qbo","application/vnd.intu.qbo"],["qfx","application/vnd.intu.qfx"],["qps","application/vnd.publishare-delta-tree"],["qt","video/quicktime"],["qwd","application/vnd.quark.quarkxpress"],["qwt","application/vnd.quark.quarkxpress"],["qxb","application/vnd.quark.quarkxpress"],["qxd","application/vnd.quark.quarkxpress"],["qxl","application/vnd.quark.quarkxpress"],["qxt","application/vnd.quark.quarkxpress"],["ra","audio/x-realaudio"],["ram","audio/x-pn-realaudio"],["raml","application/raml+yaml"],["rapd","application/route-apd+xml"],["rar","application/x-rar"],["ras","image/x-cmu-raster"],["rcprofile","application/vnd.ipunplugged.rcprofile"],["rdf","application/rdf+xml"],["rdz","application/vnd.data-vision.rdz"],["relo","application/p2p-overlay+xml"],["rep","application/vnd.businessobjects"],["res","application/x-dtbresource+xml"],["rgb","image/x-rgb"],["rif","application/reginfo+xml"],["rip","audio/vnd.rip"],["ris","application/x-research-info-systems"],["rl","application/resource-lists+xml"],["rlc","image/vnd.fujixerox.edmics-rlc"],["rld","application/resource-lists-diff+xml"],["rm","audio/x-pn-realaudio"],["rmi","audio/midi"],["rmp","audio/x-pn-realaudio-plugin"],["rms","application/vnd.jcp.javame.midlet-rms"],["rmvb","application/vnd.rn-realmedia-vbr"],["rnc","application/relax-ng-compact-syntax"],["rng","application/xml"],["roa","application/rpki-roa"],["roff","text/troff"],["rp9","application/vnd.cloanto.rp9"],["rpm","audio/x-pn-realaudio-plugin"],["rpss","application/vnd.nokia.radio-presets"],["rpst","application/vnd.nokia.radio-preset"],["rq","application/sparql-query"],["rs","application/rls-services+xml"],["rsa","application/x-pkcs7"],["rsat","application/atsc-rsat+xml"],["rsd","application/rsd+xml"],["rsheet","application/urc-ressheet+xml"],["rss","application/rss+xml"],["rtf","text/rtf"],["rtx","text/richtext"],["run","application/x-makeself"],["rusd","application/route-usd+xml"],["rv","video/vnd.rn-realvideo"],["s","text/x-asm"],["s3m","audio/s3m"],["saf","application/vnd.yamaha.smaf-audio"],["sass","text/x-sass"],["sbml","application/sbml+xml"],["sc","application/vnd.ibm.secure-container"],["scd","application/x-msschedule"],["scm","application/vnd.lotus-screencam"],["scq","application/scvp-cv-request"],["scs","application/scvp-cv-response"],["scss","text/x-scss"],["scurl","text/vnd.curl.scurl"],["sda","application/vnd.stardivision.draw"],["sdc","application/vnd.stardivision.calc"],["sdd","application/vnd.stardivision.impress"],["sdkd","application/vnd.solent.sdkm+xml"],["sdkm","application/vnd.solent.sdkm+xml"],["sdp","application/sdp"],["sdw","application/vnd.stardivision.writer"],["sea","application/octet-stream"],["see","application/vnd.seemail"],["seed","application/vnd.fdsn.seed"],["sema","application/vnd.sema"],["semd","application/vnd.semd"],["semf","application/vnd.semf"],["senmlx","application/senml+xml"],["sensmlx","application/sensml+xml"],["ser","application/java-serialized-object"],["setpay","application/set-payment-initiation"],["setreg","application/set-registration-initiation"],["sfd-hdstx","application/vnd.hydrostatix.sof-data"],["sfs","application/vnd.spotfire.sfs"],["sfv","text/x-sfv"],["sgi","image/sgi"],["sgl","application/vnd.stardivision.writer-global"],["sgm","text/sgml"],["sgml","text/sgml"],["sh","application/x-sh"],["shar","application/x-shar"],["shex","text/shex"],["shf","application/shf+xml"],["shtml","text/html"],["sid","image/x-mrsid-image"],["sieve","application/sieve"],["sig","application/pgp-signature"],["sil","audio/silk"],["silo","model/mesh"],["sis","application/vnd.symbian.install"],["sisx","application/vnd.symbian.install"],["sit","application/x-stuffit"],["sitx","application/x-stuffitx"],["siv","application/sieve"],["skd","application/vnd.koan"],["skm","application/vnd.koan"],["skp","application/vnd.koan"],["skt","application/vnd.koan"],["sldm","application/vnd.ms-powerpoint.slide.macroenabled.12"],["sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"],["slim","text/slim"],["slm","text/slim"],["sls","application/route-s-tsid+xml"],["slt","application/vnd.epson.salt"],["sm","application/vnd.stepmania.stepchart"],["smf","application/vnd.stardivision.math"],["smi","application/smil"],["smil","application/smil"],["smv","video/x-smv"],["smzip","application/vnd.stepmania.package"],["snd","audio/basic"],["snf","application/x-font-snf"],["so","application/octet-stream"],["spc","application/x-pkcs7-certificates"],["spdx","text/spdx"],["spf","application/vnd.yamaha.smaf-phrase"],["spl","application/x-futuresplash"],["spot","text/vnd.in3d.spot"],["spp","application/scvp-vp-response"],["spq","application/scvp-vp-request"],["spx","audio/ogg"],["sql","application/x-sql"],["src","application/x-wais-source"],["srt","application/x-subrip"],["sru","application/sru+xml"],["srx","application/sparql-results+xml"],["ssdl","application/ssdl+xml"],["sse","application/vnd.kodak-descriptor"],["ssf","application/vnd.epson.ssf"],["ssml","application/ssml+xml"],["sst","application/octet-stream"],["st","application/vnd.sailingtracker.track"],["stc","application/vnd.sun.xml.calc.template"],["std","application/vnd.sun.xml.draw.template"],["stf","application/vnd.wt.stf"],["sti","application/vnd.sun.xml.impress.template"],["stk","application/hyperstudio"],["stl","model/stl"],["stpx","model/step+xml"],["stpxz","model/step-xml+zip"],["stpz","model/step+zip"],["str","application/vnd.pg.format"],["stw","application/vnd.sun.xml.writer.template"],["styl","text/stylus"],["stylus","text/stylus"],["sub","text/vnd.dvb.subtitle"],["sus","application/vnd.sus-calendar"],["susp","application/vnd.sus-calendar"],["sv4cpio","application/x-sv4cpio"],["sv4crc","application/x-sv4crc"],["svc","application/vnd.dvb.service"],["svd","application/vnd.svd"],["svg","image/svg+xml"],["svgz","image/svg+xml"],["swa","application/x-director"],["swf","application/x-shockwave-flash"],["swi","application/vnd.aristanetworks.swi"],["swidtag","application/swid+xml"],["sxc","application/vnd.sun.xml.calc"],["sxd","application/vnd.sun.xml.draw"],["sxg","application/vnd.sun.xml.writer.global"],["sxi","application/vnd.sun.xml.impress"],["sxm","application/vnd.sun.xml.math"],["sxw","application/vnd.sun.xml.writer"],["t","text/troff"],["t3","application/x-t3vm-image"],["t38","image/t38"],["taglet","application/vnd.mynfc"],["tao","application/vnd.tao.intent-module-archive"],["tap","image/vnd.tencent.tap"],["tar","application/x-tar"],["tcap","application/vnd.3gpp2.tcap"],["tcl","application/x-tcl"],["td","application/urc-targetdesc+xml"],["teacher","application/vnd.smart.teacher"],["tei","application/tei+xml"],["teicorpus","application/tei+xml"],["tex","application/x-tex"],["texi","application/x-texinfo"],["texinfo","application/x-texinfo"],["text","text/plain"],["tfi","application/thraud+xml"],["tfm","application/x-tex-tfm"],["tfx","image/tiff-fx"],["tga","image/x-tga"],["tgz","application/x-tar"],["thmx","application/vnd.ms-officetheme"],["tif","image/tiff"],["tiff","image/tiff"],["tk","application/x-tcl"],["tmo","application/vnd.tmobile-livetv"],["toml","application/toml"],["torrent","application/x-bittorrent"],["tpl","application/vnd.groove-tool-template"],["tpt","application/vnd.trid.tpt"],["tr","text/troff"],["tra","application/vnd.trueapp"],["trig","application/trig"],["trm","application/x-msterminal"],["ts","video/mp2t"],["tsd","application/timestamped-data"],["tsv","text/tab-separated-values"],["ttc","font/collection"],["ttf","font/ttf"],["ttl","text/turtle"],["ttml","application/ttml+xml"],["twd","application/vnd.simtech-mindmapper"],["twds","application/vnd.simtech-mindmapper"],["txd","application/vnd.genomatix.tuxedo"],["txf","application/vnd.mobius.txf"],["txt","text/plain"],["u8dsn","message/global-delivery-status"],["u8hdr","message/global-headers"],["u8mdn","message/global-disposition-notification"],["u8msg","message/global"],["u32","application/x-authorware-bin"],["ubj","application/ubjson"],["udeb","application/x-debian-package"],["ufd","application/vnd.ufdl"],["ufdl","application/vnd.ufdl"],["ulx","application/x-glulx"],["umj","application/vnd.umajin"],["unityweb","application/vnd.unity"],["uoml","application/vnd.uoml+xml"],["uri","text/uri-list"],["uris","text/uri-list"],["urls","text/uri-list"],["usdz","model/vnd.usdz+zip"],["ustar","application/x-ustar"],["utz","application/vnd.uiq.theme"],["uu","text/x-uuencode"],["uva","audio/vnd.dece.audio"],["uvd","application/vnd.dece.data"],["uvf","application/vnd.dece.data"],["uvg","image/vnd.dece.graphic"],["uvh","video/vnd.dece.hd"],["uvi","image/vnd.dece.graphic"],["uvm","video/vnd.dece.mobile"],["uvp","video/vnd.dece.pd"],["uvs","video/vnd.dece.sd"],["uvt","application/vnd.dece.ttml+xml"],["uvu","video/vnd.uvvu.mp4"],["uvv","video/vnd.dece.video"],["uvva","audio/vnd.dece.audio"],["uvvd","application/vnd.dece.data"],["uvvf","application/vnd.dece.data"],["uvvg","image/vnd.dece.graphic"],["uvvh","video/vnd.dece.hd"],["uvvi","image/vnd.dece.graphic"],["uvvm","video/vnd.dece.mobile"],["uvvp","video/vnd.dece.pd"],["uvvs","video/vnd.dece.sd"],["uvvt","application/vnd.dece.ttml+xml"],["uvvu","video/vnd.uvvu.mp4"],["uvvv","video/vnd.dece.video"],["uvvx","application/vnd.dece.unspecified"],["uvvz","application/vnd.dece.zip"],["uvx","application/vnd.dece.unspecified"],["uvz","application/vnd.dece.zip"],["vbox","application/x-virtualbox-vbox"],["vbox-extpack","application/x-virtualbox-vbox-extpack"],["vcard","text/vcard"],["vcd","application/x-cdlink"],["vcf","text/x-vcard"],["vcg","application/vnd.groove-vcard"],["vcs","text/x-vcalendar"],["vcx","application/vnd.vcx"],["vdi","application/x-virtualbox-vdi"],["vds","model/vnd.sap.vds"],["vhd","application/x-virtualbox-vhd"],["vis","application/vnd.visionary"],["viv","video/vnd.vivo"],["vlc","application/videolan"],["vmdk","application/x-virtualbox-vmdk"],["vob","video/x-ms-vob"],["vor","application/vnd.stardivision.writer"],["vox","application/x-authorware-bin"],["vrml","model/vrml"],["vsd","application/vnd.visio"],["vsf","application/vnd.vsf"],["vss","application/vnd.visio"],["vst","application/vnd.visio"],["vsw","application/vnd.visio"],["vtf","image/vnd.valve.source.texture"],["vtt","text/vtt"],["vtu","model/vnd.vtu"],["vxml","application/voicexml+xml"],["w3d","application/x-director"],["wad","application/x-doom"],["wadl","application/vnd.sun.wadl+xml"],["war","application/java-archive"],["wasm","application/wasm"],["wav","audio/x-wav"],["wax","audio/x-ms-wax"],["wbmp","image/vnd.wap.wbmp"],["wbs","application/vnd.criticaltools.wbs+xml"],["wbxml","application/wbxml"],["wcm","application/vnd.ms-works"],["wdb","application/vnd.ms-works"],["wdp","image/vnd.ms-photo"],["weba","audio/webm"],["webapp","application/x-web-app-manifest+json"],["webm","video/webm"],["webmanifest","application/manifest+json"],["webp","image/webp"],["wg","application/vnd.pmi.widget"],["wgt","application/widget"],["wks","application/vnd.ms-works"],["wm","video/x-ms-wm"],["wma","audio/x-ms-wma"],["wmd","application/x-ms-wmd"],["wmf","image/wmf"],["wml","text/vnd.wap.wml"],["wmlc","application/wmlc"],["wmls","text/vnd.wap.wmlscript"],["wmlsc","application/vnd.wap.wmlscriptc"],["wmv","video/x-ms-wmv"],["wmx","video/x-ms-wmx"],["wmz","application/x-msmetafile"],["woff","font/woff"],["woff2","font/woff2"],["word","application/msword"],["wpd","application/vnd.wordperfect"],["wpl","application/vnd.ms-wpl"],["wps","application/vnd.ms-works"],["wqd","application/vnd.wqd"],["wri","application/x-mswrite"],["wrl","model/vrml"],["wsc","message/vnd.wfa.wsc"],["wsdl","application/wsdl+xml"],["wspolicy","application/wspolicy+xml"],["wtb","application/vnd.webturbo"],["wvx","video/x-ms-wvx"],["x3d","model/x3d+xml"],["x3db","model/x3d+fastinfoset"],["x3dbz","model/x3d+binary"],["x3dv","model/x3d-vrml"],["x3dvz","model/x3d+vrml"],["x3dz","model/x3d+xml"],["x32","application/x-authorware-bin"],["x_b","model/vnd.parasolid.transmit.binary"],["x_t","model/vnd.parasolid.transmit.text"],["xaml","application/xaml+xml"],["xap","application/x-silverlight-app"],["xar","application/vnd.xara"],["xav","application/xcap-att+xml"],["xbap","application/x-ms-xbap"],["xbd","application/vnd.fujixerox.docuworks.binder"],["xbm","image/x-xbitmap"],["xca","application/xcap-caps+xml"],["xcs","application/calendar+xml"],["xdf","application/xcap-diff+xml"],["xdm","application/vnd.syncml.dm+xml"],["xdp","application/vnd.adobe.xdp+xml"],["xdssc","application/dssc+xml"],["xdw","application/vnd.fujixerox.docuworks"],["xel","application/xcap-el+xml"],["xenc","application/xenc+xml"],["xer","application/patch-ops-error+xml"],["xfdf","application/vnd.adobe.xfdf"],["xfdl","application/vnd.xfdl"],["xht","application/xhtml+xml"],["xhtml","application/xhtml+xml"],["xhvml","application/xv+xml"],["xif","image/vnd.xiff"],["xl","application/excel"],["xla","application/vnd.ms-excel"],["xlam","application/vnd.ms-excel.addin.macroEnabled.12"],["xlc","application/vnd.ms-excel"],["xlf","application/xliff+xml"],["xlm","application/vnd.ms-excel"],["xls","application/vnd.ms-excel"],["xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"],["xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xlt","application/vnd.ms-excel"],["xltm","application/vnd.ms-excel.template.macroEnabled.12"],["xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"],["xlw","application/vnd.ms-excel"],["xm","audio/xm"],["xml","application/xml"],["xns","application/xcap-ns+xml"],["xo","application/vnd.olpc-sugar"],["xop","application/xop+xml"],["xpi","application/x-xpinstall"],["xpl","application/xproc+xml"],["xpm","image/x-xpixmap"],["xpr","application/vnd.is-xpr"],["xps","application/vnd.ms-xpsdocument"],["xpw","application/vnd.intercon.formnet"],["xpx","application/vnd.intercon.formnet"],["xsd","application/xml"],["xsl","application/xml"],["xslt","application/xslt+xml"],["xsm","application/vnd.syncml+xml"],["xspf","application/xspf+xml"],["xul","application/vnd.mozilla.xul+xml"],["xvm","application/xv+xml"],["xvml","application/xv+xml"],["xwd","image/x-xwindowdump"],["xyz","chemical/x-xyz"],["xz","application/x-xz"],["yaml","text/yaml"],["yang","application/yang"],["yin","application/yin+xml"],["yml","text/yaml"],["ymp","text/x-suse-ymp"],["z","application/x-compress"],["z1","application/x-zmachine"],["z2","application/x-zmachine"],["z3","application/x-zmachine"],["z4","application/x-zmachine"],["z5","application/x-zmachine"],["z6","application/x-zmachine"],["z7","application/x-zmachine"],["z8","application/x-zmachine"],["zaz","application/vnd.zzazz.deck+xml"],["zip","application/zip"],["zir","application/vnd.zul"],["zirz","application/vnd.zul"],["zmm","application/vnd.handheld-entertainment+xml"],["zsh","text/x-scriptzsh"]]);function l(a,i,e){let t=function(a){let{name:i}=a;if(i&&-1!==i.lastIndexOf(".")&&!a.type){let e=i.split(".").pop().toLowerCase(),t=o.get(e);t&&Object.defineProperty(a,"type",{value:t,writable:!1,configurable:!1,enumerable:!0})}return a}(a),{webkitRelativePath:p}=a,n="string"==typeof i?i:"string"==typeof p&&p.length>0?p:`./${a.name}`;return"string"!=typeof t.path&&c(t,"path",n),void 0!==e&&Object.defineProperty(t,"handle",{value:e,writable:!1,configurable:!1,enumerable:!0}),c(t,"relativePath",n),t}function c(a,i,e){Object.defineProperty(a,i,{value:e,writable:!1,configurable:!1,enumerable:!0})}var r=(a,i,e)=>new Promise((t,p)=>{var n=a=>{try{l(e.next(a))}catch(a){p(a)}},o=a=>{try{l(e.throw(a))}catch(a){p(a)}},l=a=>a.done?t(a.value):Promise.resolve(a.value).then(n,o);l((e=e.apply(a,i)).next())});let s=[".DS_Store","Thumbs.db"];function d(a){return"object"==typeof a&&null!==a}function m(a){return a.filter(a=>-1===s.indexOf(a.name))}function v(a){if(null===a)return[];let i=[];for(let e=0;er(this,null,function*(){let i=yield a.getFile();return i.handle=a,l(i)}));let t=a.getAsFile();return t?Promise.resolve(l(t,null!=(e=null==i?void 0:i.fullPath)?e:void 0)):Promise.reject(`${a} is not a File`)}function f(a){return r(this,null,function*(){return a.isDirectory?g(a):function(a){return r(this,null,function*(){return new Promise((i,e)=>{a.file(e=>{i(l(e,a.fullPath))},a=>{e(a)})})})}(a)})}function g(a){let i=a.createReader();return new Promise((a,e)=>{let t=[];!function p(){i.readEntries(i=>r(this,null,function*(){if(i.length){let a=Promise.all(i.map(f));t.push(a),p()}else try{let i=yield Promise.all(t);a(i)}catch(a){e(a)}}),a=>{e(a)})}()})}var b=Object.defineProperty,h=Object.defineProperties,y=Object.getOwnPropertyDescriptors,k=Object.getOwnPropertySymbols,w=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable,z=(a,i,e)=>i in a?b(a,i,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[i]=e;let D=function(a,i){if(a&&i){let e=Array.isArray(i)?i:i.split(",");if(0===e.length)return!0;let t=a.name||"",p=(a.type||"").toLowerCase(),n=p.replace(/\/.*$/,"");return e.some(a=>{let i=a.trim().toLowerCase();return"."===i.charAt(0)?t.toLowerCase().endsWith(i):i.endsWith("/*")?n===i.replace(/\/.*$/,""):p===i})}return!0},_=a=>({code:"file-too-large",message:`File is larger than ${a} ${1===a?"byte":"bytes"}`}),O=a=>({code:"file-too-small",message:`File is smaller than ${a} ${1===a?"byte":"bytes"}`}),E={code:"too-many-files",message:"Too many files"};function P(a,i){let e="application/x-moz-file"===a.type||D(a,i);return[e,e?null:((a="")=>{let i=a.split(","),e=i.length>1?`one of ${i.join(", ")}`:i[0];return{code:"file-invalid-type",message:`File type must be ${e}`}})(i)]}function C(a,i,e){if(q(a.size)){if(q(i)&&q(e)){if(a.size>e)return[!1,_(e)];if(a.sizee)return[!1,_(e)]}return[!0,null]}function q(a){return null!=a}function F(a){return"function"==typeof a.isPropagationStopped?a.isPropagationStopped():void 0!==a.cancelBubble&&a.cancelBubble}function A(a){return a.dataTransfer?Array.prototype.some.call(a.dataTransfer.types,a=>"Files"===a||"application/x-moz-file"===a):!!a.target&&!!a.target.files}function S(a){a.preventDefault()}function T(...a){return(i,...e)=>a.some(a=>(!F(i)&&a&&a(i,...e),F(i)))}function R(a){return"audio/*"===a||"video/*"===a||"image/*"===a||"text/*"===a||"application/*"===a||/\w+\/[-+.\w]+/g.test(a)}function I(a){return/^.*\.[\w]+$/.test(a)}var L=Object.defineProperty,M=Object.defineProperties,N=Object.getOwnPropertyDescriptors,B=Object.getOwnPropertySymbols,V=Object.prototype.hasOwnProperty,$=Object.prototype.propertyIsEnumerable,Y=(a,i,e)=>i in a?L(a,i,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[i]=e,H=(a,i)=>{for(var e in i||(i={}))V.call(i,e)&&Y(a,e,i[e]);if(B)for(var e of B(i))$.call(i,e)&&Y(a,e,i[e]);return a},U=(a,i)=>{var e={};for(var t in a)V.call(a,t)&&0>i.indexOf(t)&&(e[t]=a[t]);if(null!=a&&B)for(var t of B(a))0>i.indexOf(t)&&$.call(a,t)&&(e[t]=a[t]);return e};let K=(0,p.forwardRef)((a,i)=>{var{children:e}=a;let t=J(U(a,["children"])),{open:n}=t,o=U(t,["open"]);return(0,p.useImperativeHandle)(i,()=>({open:n}),[n]),p.createElement(p.Fragment,null,e(M(H({},o),N({open:n}))))});K.displayName="Dropzone";let G={disabled:!1,getFilesFromEvent:function(a){return r(this,null,function*(){var i;if(d(a)&&d(a.dataTransfer))return function(a,i){return r(this,null,function*(){if(a.items){let e=v(a.items).filter(a=>"file"===a.kind);return"drop"!==i?e:m(function a(i){return i.reduce((i,e)=>[...i,...Array.isArray(e)?a(e):[e]],[])}((yield Promise.all(e.map(x)))))}return m(v(a.files).map(a=>l(a)))})}(a.dataTransfer,a.type);if(d(i=a)&&d(i.target))return v(a.target.files).map(a=>l(a));return Array.isArray(a)&&a.every(a=>"getFile"in a&&"function"==typeof a.getFile)?function(a){return r(this,null,function*(){return(yield Promise.all(a.map(a=>a.getFile()))).map(a=>l(a))})}(a):[]})},maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1,autoFocus:!1};K.defaultProps=G,K.propTypes={children:n.func,accept:n.objectOf(n.arrayOf(n.string)),multiple:n.bool,preventDropOnDocument:n.bool,noClick:n.bool,noKeyboard:n.bool,noDrag:n.bool,noDragEventsBubbling:n.bool,minSize:n.number,maxSize:n.number,maxFiles:n.number,disabled:n.bool,getFilesFromEvent:n.func,onFileDialogCancel:n.func,onFileDialogOpen:n.func,useFsAccessApi:n.bool,autoFocus:n.bool,onDragEnter:n.func,onDragLeave:n.func,onDragOver:n.func,onDrop:n.func,onDropAccepted:n.func,onDropRejected:n.func,onError:n.func,validator:n.func};let W={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function J(a={}){let{accept:i,disabled:e,getFilesFromEvent:t,maxSize:n,minSize:o,multiple:l,maxFiles:c,onDragEnter:r,onDragLeave:s,onDragOver:d,onDrop:m,onDropAccepted:v,onDropRejected:x,onFileDialogCancel:u,onFileDialogOpen:f,useFsAccessApi:g,autoFocus:b,preventDropOnDocument:D,noClick:_,noKeyboard:O,noDrag:L,noDragEventsBubbling:B,onError:V,validator:$}=H(H({},G),a),Y=(0,p.useMemo)(()=>(function(a){if(q(a))return Object.entries(a).reduce((a,[i,e])=>[...a,i,...e],[]).filter(a=>R(a)||I(a)).join(",")})(i),[i]),K=(0,p.useMemo)(()=>q(i)?[{description:"Files",accept:Object.entries(i).filter(([a,i])=>{let e=!0;return R(a)||(console.warn(`Skipped "${a}" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.`),e=!1),Array.isArray(i)&&i.every(I)||(console.warn(`Skipped "${a}" because an invalid file extension was provided.`),e=!1),e}).reduce((a,[i,e])=>h(((a,i)=>{for(var e in i||(i={}))w.call(i,e)&&z(a,e,i[e]);if(k)for(var e of k(i))j.call(i,e)&&z(a,e,i[e]);return a})({},a),y({[i]:e})),{})}]:i,[i]),Q=(0,p.useMemo)(()=>"function"==typeof f?f:X,[f]),aa=(0,p.useMemo)(()=>"function"==typeof u?u:X,[u]),ai=(0,p.useRef)(null),ae=(0,p.useRef)(null),[at,ap]=(0,p.useReducer)(Z,W),{isFocused:an,isFileDialogActive:ao}=at,al=(0,p.useRef)("u">typeof window&&window.isSecureContext&&g&&"showOpenFilePicker"in window),ac=()=>{!al.current&&ao&&setTimeout(()=>{if(ae.current){let{files:a}=ae.current;a.length||(ap({type:"closeDialog"}),aa())}},300)};(0,p.useEffect)(()=>(window.addEventListener("focus",ac,!1),()=>{window.removeEventListener("focus",ac,!1)}),[ae,ao,aa,al]);let ar=(0,p.useRef)([]),as=a=>{ai.current&&ai.current.contains(a.target)||(a.preventDefault(),ar.current=[])};(0,p.useEffect)(()=>(D&&(document.addEventListener("dragover",S,!1),document.addEventListener("drop",as,!1)),()=>{D&&(document.removeEventListener("dragover",S),document.removeEventListener("drop",as))}),[ai,D]),(0,p.useEffect)(()=>(!e&&b&&ai.current&&ai.current.focus(),()=>{}),[ai,b,e]);let ad=(0,p.useCallback)(a=>{V?V(a):console.error(a)},[V]),am=(0,p.useCallback)(a=>{a.preventDefault(),a.persist(),aD(a),ar.current=[...ar.current,a.target],A(a)&&Promise.resolve(t(a)).then(i=>{if(F(a)&&!B)return;let e=i.length,t=e>0&&function({files:a,accept:i,minSize:e,maxSize:t,multiple:p,maxFiles:n,validator:o}){return(!!p||!(a.length>1))&&(!p||!(n>=1)||!(a.length>n))&&a.every(a=>{let[p]=P(a,i),[n]=C(a,e,t),l=o?o(a):null;return p&&n&&!l})}({files:i,accept:Y,minSize:o,maxSize:n,multiple:l,maxFiles:c,validator:$});ap({isDragAccept:t,isDragReject:e>0&&!t,isDragActive:!0,type:"setDraggedFiles"}),r&&r(a)}).catch(a=>ad(a))},[t,r,ad,B,Y,o,n,l,c,$]),av=(0,p.useCallback)(a=>{a.preventDefault(),a.persist(),aD(a);let i=A(a);if(i&&a.dataTransfer)try{a.dataTransfer.dropEffect="copy"}catch(a){}return i&&d&&d(a),!1},[d,B]),ax=(0,p.useCallback)(a=>{a.preventDefault(),a.persist(),aD(a);let i=ar.current.filter(a=>ai.current&&ai.current.contains(a)),e=i.indexOf(a.target);-1!==e&&i.splice(e,1),ar.current=i,!(i.length>0)&&(ap({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),A(a)&&s&&s(a))},[ai,s,B]),au=(0,p.useCallback)((a,i)=>{let e=[],t=[];a.forEach(a=>{let[i,p]=P(a,Y),[l,c]=C(a,o,n),r=$?$(a):null;if(i&&l&&!r)e.push(a);else{let i=[p,c];r&&(i=i.concat(r)),t.push({file:a,errors:i.filter(a=>a)})}}),(!l&&e.length>1||l&&c>=1&&e.length>c)&&(e.forEach(a=>{t.push({file:a,errors:[E]})}),e.splice(0)),ap({acceptedFiles:e,fileRejections:t,isDragReject:t.length>0,type:"setFiles"}),m&&m(e,t,i),t.length>0&&x&&x(t,i),e.length>0&&v&&v(e,i)},[ap,l,Y,o,n,c,m,v,x,$]),af=(0,p.useCallback)(a=>{a.preventDefault(),a.persist(),aD(a),ar.current=[],A(a)&&Promise.resolve(t(a)).then(i=>{(!F(a)||B)&&au(i,a)}).catch(a=>ad(a)),ap({type:"reset"})},[t,au,ad,B]),ag=(0,p.useCallback)(()=>{if(al.current){ap({type:"openDialog"}),Q(),window.showOpenFilePicker({multiple:l,types:K}).then(a=>t(a)).then(a=>{au(a,null),ap({type:"closeDialog"})}).catch(a=>{a instanceof DOMException&&("AbortError"===a.name||a.code===a.ABORT_ERR)?(aa(a),ap({type:"closeDialog"})):a instanceof DOMException&&("SecurityError"===a.name||a.code===a.SECURITY_ERR)?(al.current=!1,ae.current?(ae.current.value=null,ae.current.click()):ad(Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no was provided."))):ad(a)});return}ae.current&&(ap({type:"openDialog"}),Q(),ae.current.value=null,ae.current.click())},[ap,Q,aa,g,au,ad,K,l]),ab=(0,p.useCallback)(a=>{ai.current&&ai.current.isEqualNode(a.target)&&(" "===a.key||"Enter"===a.key||32===a.keyCode||13===a.keyCode)&&(a.preventDefault(),ag())},[ai,ag]),ah=(0,p.useCallback)(()=>{ap({type:"focus"})},[]),ay=(0,p.useCallback)(()=>{ap({type:"blur"})},[]),ak=(0,p.useCallback)(()=>{_||(function(a=window.navigator.userAgent){return -1!==a.indexOf("MSIE")||-1!==a.indexOf("Trident/")||-1!==a.indexOf("Edge/")}()?setTimeout(ag,0):ag())},[_,ag]),aw=a=>e?null:a,aj=a=>O?null:aw(a),az=a=>L?null:aw(a),aD=a=>{B&&a.stopPropagation()},a_=(0,p.useMemo)(()=>(a={})=>{var{refKey:i="ref",role:t,onKeyDown:p,onFocus:n,onBlur:o,onClick:l,onDragEnter:c,onDragOver:r,onDragLeave:s,onDrop:d}=a,m=U(a,["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"]);return H(H({onKeyDown:aj(T(p,ab)),onFocus:aj(T(n,ah)),onBlur:aj(T(o,ay)),onClick:aw(T(l,ak)),onDragEnter:az(T(c,am)),onDragOver:az(T(r,av)),onDragLeave:az(T(s,ax)),onDrop:az(T(d,af)),role:"string"==typeof t&&""!==t?t:"presentation",[i]:ai},e||O?{}:{tabIndex:0}),m)},[ai,ab,ah,ay,ak,am,av,ax,af,O,L,e]),aO=(0,p.useCallback)(a=>{a.stopPropagation()},[]),aE=(0,p.useMemo)(()=>(a={})=>{var{refKey:i="ref",onChange:e,onClick:t}=a,p=U(a,["refKey","onChange","onClick"]);return H(H({},{accept:Y,multiple:l,type:"file",style:{border:0,clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"},onChange:aw(T(e,af)),onClick:aw(T(t,aO)),tabIndex:-1,[i]:ae}),p)},[ae,i,l,af,e]);return M(H({},at),N({isFocused:an&&!e,getRootProps:a_,getInputProps:aE,rootRef:ai,inputRef:ae,open:aw(ag)}))}function Z(a,i){switch(i.type){case"focus":return M(H({},a),N({isFocused:!0}));case"blur":return M(H({},a),N({isFocused:!1}));case"openDialog":return M(H({},W),N({isFileDialogActive:!0}));case"closeDialog":return M(H({},a),N({isFileDialogActive:!1}));case"setDraggedFiles":return M(H({},a),N({isDragActive:i.isDragActive,isDragAccept:i.isDragAccept,isDragReject:i.isDragReject}));case"setFiles":return M(H({},a),N({acceptedFiles:i.acceptedFiles,fileRejections:i.fileRejections,isDragReject:i.isDragReject}));case"reset":return H({},W);default:return a}}function X(){}var Q=e(5618),aa=e(76),ai=e(43016),ae=e(80616),at=e(37666),ap=e(60481),an=e(61982),ao=e(56655);let[al,ac]=(0,e(36254).F)("Dropzone component was not found in tree");var ar=e(30342);function as(a){return"string"!=typeof a?"":a.charAt(0).toUpperCase()+a.slice(1)}function ad(a){let i=i=>{let{children:e,...n}=(0,ae.Y)(`Dropzone${as(a)}`,{},i),o=ac(),l=(0,ar.v)(e)?e:(0,t.jsx)("span",{children:e});return o[a]?(0,p.cloneElement)(l,n):null};return i.displayName=`@mantine/dropzone/${as(a)}`,i}let am=ad("accept"),av=ad("reject"),ax=ad("idle");var au={root:"m_d46a4834",inner:"m_b85f7144",fullScreen:"m_96f6e9ad",dropzone:"m_7946116d"};let af={loading:!1,multiple:!0,maxSize:1/0,autoFocus:!1,activateOnClick:!0,activateOnDrag:!0,dragEventsBubbling:!0,activateOnKeyboard:!0,useFsAccessApi:!0,variant:"light",rejectColor:"red"},ag=(0,Q.V)((a,{radius:i,variant:e,acceptColor:t,rejectColor:p})=>{let n=a.variantColorResolver({color:t||a.primaryColor,theme:a,variant:e}),o=a.variantColorResolver({color:p||"red",theme:a,variant:e});return{root:{"--dropzone-radius":(0,aa.nJ)(i),"--dropzone-accept-color":n.color,"--dropzone-accept-bg":n.background,"--dropzone-reject-color":o.color,"--dropzone-reject-bg":o.background}}}),ab=(0,ai.P9)((a,i)=>{let e=(0,ae.Y)("Dropzone",af,a),{classNames:p,className:n,style:o,styles:l,unstyled:c,vars:r,radius:s,disabled:d,loading:m,multiple:v,maxSize:x,accept:u,children:f,onDropAny:g,onDrop:b,onReject:h,openRef:y,name:k,maxFiles:w,autoFocus:j,activateOnClick:z,activateOnDrag:D,dragEventsBubbling:_,activateOnKeyboard:O,onDragEnter:E,onDragLeave:P,onDragOver:C,onFileDialogCancel:q,onFileDialogOpen:F,preventDropOnDocument:A,useFsAccessApi:S,getFilesFromEvent:T,validator:R,rejectColor:I,acceptColor:L,enablePointerEvents:M,loaderProps:N,inputProps:B,mod:V,...$}=e,Y=(0,at.I)({name:"Dropzone",classes:au,props:e,className:n,style:o,classNames:p,styles:l,unstyled:c,vars:r,varsResolver:ag}),{getRootProps:H,getInputProps:U,isDragAccept:K,isDragReject:G,isDragActive:W,open:Z}=J({onDrop:g,onDropAccepted:b,onDropRejected:h,disabled:d||m,accept:Array.isArray(u)?u.reduce((a,i)=>({...a,[i]:[]}),{}):u,multiple:v,maxSize:x,maxFiles:w,autoFocus:j,noClick:!z,noDrag:!D,noDragEventsBubbling:!_,noKeyboard:!O,onDragEnter:E,onDragLeave:P,onDragOver:C,onFileDialogCancel:q,onFileDialogOpen:F,preventDropOnDocument:A,useFsAccessApi:S,validator:R,...T?{getFilesFromEvent:T}:null});(0,ao.bl)(y,Z);let X=W&&K,Q=W&&G,aa=!X&&!Q;return(0,t.jsx)(al,{value:{accept:X,reject:Q,idle:aa},children:(0,t.jsxs)(ap.a,{...H(),...Y("root",{focusable:!0}),...$,mod:[{accept:X,reject:Q,idle:aa,disabled:d,loading:m,"activate-on-click":z},V],children:[(0,t.jsx)(an.p,{visible:m,overlayProps:{radius:s},unstyled:c,loaderProps:N}),(0,t.jsx)("input",{...U(B),name:k}),(0,t.jsx)("div",{...Y("inner"),ref:i,"data-enable-pointer-events":M||void 0,children:f})]})})});ab.classes=au,ab.displayName="@mantine/dropzone/Dropzone",ab.Accept=am,ab.Idle=ax,ab.Reject=av;var ah=e(69626),ay=e(35228),ak=e(33903),aw=e(78341);let aj={loading:!1,maxSize:1/0,activateOnClick:!1,activateOnDrag:!0,dragEventsBubbling:!0,activateOnKeyboard:!0,active:!0,zIndex:(0,ah.I)("max"),withinPortal:!0},az=(0,ai.P9)((a,i)=>{let e=(0,ae.Y)("DropzoneFullScreen",aj,a),{classNames:n,className:o,style:l,styles:c,unstyled:r,vars:s,active:d,onDrop:m,onReject:v,zIndex:x,withinPortal:u,portalProps:f,...g}=e,b=(0,at.I)({name:"DropzoneFullScreen",classes:au,props:e,className:o,style:l,classNames:n,styles:c,unstyled:r,rootSelector:"fullScreen"}),{resolvedClassNames:h,resolvedStyles:y}=(0,ay.Y)({classNames:n,styles:c,props:e}),[k,w]=(0,p.useState)(0),[j,{open:z,close:D}]=(0,aw.j)(!1),_=a=>{a.dataTransfer?.types.includes("Files")&&(w(a=>a+1),z())},O=()=>{w(a=>a-1)};return(0,p.useEffect)(()=>{0===k&&D()},[k]),(0,p.useEffect)(()=>{if(d)return document.addEventListener("dragenter",_,!1),document.addEventListener("dragleave",O,!1),()=>{document.removeEventListener("dragenter",_,!1),document.removeEventListener("dragleave",O,!1)}},[d]),(0,t.jsx)(ak.r,{...f,withinPortal:u,children:(0,t.jsx)(ap.a,{...b("fullScreen",{style:{opacity:+!!j,pointerEvents:j?"all":"none",zIndex:x}}),ref:i,children:(0,t.jsx)(ab,{...g,classNames:h,styles:y,unstyled:r,className:au.dropzone,onDrop:a=>{m?.(a),D(),w(0)},onReject:a=>{v?.(a),D(),w(0)}})})})});az.classes=au,az.displayName="@mantine/dropzone/DropzoneFullScreen",ab.FullScreen=az;let aD=ab},30597:(a,i,e)=>{"use strict";e.d(i,{A:()=>t});var t=(0,e(41495).A)("outline","file","IconFile",[["path",{d:"M14 3v4a1 1 0 0 0 1 1h4",key:"svg-0"}],["path",{d:"M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z",key:"svg-1"}]])},34955:(a,i,e)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var t={default:function(){return r},noSSR:function(){return c}};for(var p in t)Object.defineProperty(i,p,{enumerable:!0,get:t[p]});let n=e(14761);e(6029),e(55729);let o=n._(e(70628));function l(a){return{default:a?.default||a}}function c(a,i){return delete i.webpack,delete i.modules,a(i)}function r(a,i){let e=o.default,t={loading:({error:a,isLoading:i,pastDelay:e})=>null};a instanceof Promise?t.loader=()=>a:"function"==typeof a?t.loader=a:"object"==typeof a&&(t={...t,...a});let p=(t={...t,...i}).loader;return(t.loadableGenerated&&(t={...t,...t.loadableGenerated},delete t.loadableGenerated),"boolean"!=typeof t.ssr||t.ssr)?e({...t,loader:()=>null!=p?p().then(l):Promise.resolve(l(()=>null))}):(delete t.webpack,delete t.modules,c(e,t))}("function"==typeof i.default||"object"==typeof i.default&&null!==i.default)&&void 0===i.default.__esModule&&(Object.defineProperty(i.default,"__esModule",{value:!0}),Object.assign(i.default,i),a.exports=i.default)},48080:(a,i,e)=>{"use strict";e.d(i,{A:()=>t});var t=(0,e(41495).A)("outline","upload","IconUpload",[["path",{d:"M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2",key:"svg-0"}],["path",{d:"M7 9l5 -5l5 5",key:"svg-1"}],["path",{d:"M12 4l0 12",key:"svg-2"}]])},52789:(a,i,e)=>{"use strict";e.d(i,{u:()=>c});var t=e(1909);let p=(a,i,e)=>{if(a&&"reportValidity"in a){let p=(0,t.Jt)(e,i);a.setCustomValidity(p&&p.message||""),a.reportValidity()}},n=(a,i)=>{for(let e in i.fields){let t=i.fields[e];t&&t.ref&&"reportValidity"in t.ref?p(t.ref,e,a):t.refs&&t.refs.forEach(i=>p(i,e,a))}},o=(a,i)=>a.some(a=>a.startsWith(i+"."));var l=function(a,i){for(var e={};a.length;){var p=a[0],n=p.code,o=p.message,l=p.path.join(".");if(!e[l])if("unionErrors"in p){var c=p.unionErrors[0].errors[0];e[l]={message:c.message,type:c.code}}else e[l]={message:o,type:n};if("unionErrors"in p&&p.unionErrors.forEach(function(i){return i.errors.forEach(function(i){return a.push(i)})}),i){var r=e[l].types,s=r&&r[p.code];e[l]=(0,t.Gb)(l,i,e,n,s?[].concat(s,p.message):p.message)}a.shift()}return e},c=function(a,i,e){return void 0===e&&(e={}),function(p,c,r){try{return Promise.resolve(function(t,o){try{var l=Promise.resolve(a["sync"===e.mode?"parse":"parseAsync"](p,i)).then(function(a){return r.shouldUseNativeValidation&&n({},r),{errors:{},values:e.raw?p:a}})}catch(a){return o(a)}return l&&l.then?l.then(void 0,o):l}(0,function(a){if(Array.isArray(null==a?void 0:a.errors))return{values:{},errors:((a,i)=>{i.shouldUseNativeValidation&&n(a,i);let e={};for(let p in a){let n=(0,t.Jt)(i.fields,p),l=Object.assign(a[p]||{},{ref:n&&n.ref});if(o(i.names||Object.keys(a),p)){let a=Object.assign({},(0,t.Jt)(e,p));(0,t.hZ)(a,"root",l),(0,t.hZ)(e,p,a)}else(0,t.hZ)(e,p,l)}return e})(l(a.errors,!r.shouldUseNativeValidation&&"all"===r.criteriaMode),r)};throw a}))}catch(a){return Promise.reject(a)}}}},56121:(a,i,e)=>{a.exports=e(61847)()},59029:(a,i,e)=>{"use strict";e.d(i,{k:()=>c});var t=e(6029);e(55729);var p=e(80616),n=e(43016),o=e(94613);let l={},c=(0,n.P9)((a,i)=>{let e=(0,p.Y)("TextInput",l,a);return(0,t.jsx)(o.O,{component:"input",ref:i,...e,__staticSelector:"TextInput"})});c.classes=o.O.classes,c.displayName="@mantine/core/TextInput"},61847:(a,i,e)=>{"use strict";var t=e(4140);function p(){}function n(){}n.resetWarningCache=p,a.exports=function(){function a(a,i,e,p,n,o){if(o!==t){var l=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function i(){return a}a.isRequired=a;var e={array:a,bigint:a,bool:a,func:a,number:a,object:a,string:a,symbol:a,any:a,arrayOf:i,element:a,elementType:a,instanceOf:i,node:a,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:p};return e.PropTypes=e,e}},61982:(a,i,e)=>{"use strict";e.d(i,{p:()=>g});var t=e(6029);e(55729);var p=e(69626),n=e(5618),o=e(15862),l=e(80616),c=e(37666),r=e(60481),s=e(43016),d=e(94720),m=e(66152),v=e(56738),x={root:"m_6e45937b",loader:"m_e8eb006c",overlay:"m_df587f17"};let u={transitionProps:{transition:"fade",duration:0},overlayProps:{backgroundOpacity:.75},zIndex:(0,p.I)("overlay")},f=(0,n.V)((a,{zIndex:i})=>({root:{"--lo-z-index":i?.toString()}})),g=(0,s.P9)((a,i)=>{let e=(0,l.Y)("LoadingOverlay",u,a),{classNames:p,className:n,style:s,styles:g,unstyled:b,vars:h,transitionProps:y,loaderProps:k,overlayProps:w,visible:j,zIndex:z,...D}=e,_=(0,o.xd)(),O=(0,c.I)({name:"LoadingOverlay",classes:x,props:e,className:n,style:s,classNames:p,styles:g,unstyled:b,vars:h,varsResolver:f}),E={...u.overlayProps,...w};return(0,t.jsx)(v.e,{transition:"fade",...y,mounted:!!j,children:a=>(0,t.jsxs)(r.a,{...O("root",{style:a}),ref:i,...D,children:[(0,t.jsx)(d.a,{...O("loader"),unstyled:b,...k}),(0,t.jsx)(m.h,{...E,...O("overlay"),darkHidden:!0,unstyled:b,color:w?.color||_.white}),(0,t.jsx)(m.h,{...E,...O("overlay"),lightHidden:!0,unstyled:b,color:w?.color||_.colors.dark[5]})]})})});g.classes=x,g.displayName="@mantine/core/LoadingOverlay"},70628:(a,i,e)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"default",{enumerable:!0,get:function(){return m}});let t=e(14761)._(e(55729)),p=e(93522),n=[],o=[],l=!1;function c(a){let i=a(),e={loading:!0,loaded:null,error:null};return e.promise=i.then(a=>(e.loading=!1,e.loaded=a,a)).catch(a=>{throw e.loading=!1,e.error=a,a}),e}class r{constructor(a,i){this._loadFn=a,this._opts=i,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:a,_opts:i}=this;a.loading&&("number"==typeof i.delay&&(0===i.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},i.delay)),"number"==typeof i.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},i.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(a=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(a){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...a},this._callbacks.forEach(a=>a())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(a){return this._callbacks.add(a),()=>{this._callbacks.delete(a)}}}function s(a){return function(a,i){let e=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},i),n=null;function c(){if(!n){let i=new r(a,e);n={getCurrentValue:i.getCurrentValue.bind(i),subscribe:i.subscribe.bind(i),retry:i.retry.bind(i),promise:i.promise.bind(i)}}return n.promise()}if(!l){let a=e.webpack&&1?e.webpack():e.modules;a&&o.push(i=>{for(let e of a)if(i.includes(e))return c()})}function s(a,i){let o;c(),(o=t.default.useContext(p.LoadableContext))&&Array.isArray(e.modules)&&e.modules.forEach(a=>{o(a)});let l=t.default.useSyncExternalStore(n.subscribe,n.getCurrentValue,n.getCurrentValue);return t.default.useImperativeHandle(i,()=>({retry:n.retry}),[]),t.default.useMemo(()=>{var i;return l.loading||l.error?t.default.createElement(e.loading,{isLoading:l.loading,pastDelay:l.pastDelay,timedOut:l.timedOut,error:l.error,retry:n.retry}):l.loaded?t.default.createElement((i=l.loaded)&&i.default?i.default:i,a):null},[a,l])}return s.preload=()=>c(),s.displayName="LoadableComponent",t.default.forwardRef(s)}(c,a)}function d(a,i){let e=[];for(;a.length;){let t=a.pop();e.push(t(i))}return Promise.all(e).then(()=>{if(a.length)return d(a,i)})}s.preloadAll=()=>new Promise((a,i)=>{d(n).then(a,i)}),s.preloadReady=(a=[])=>new Promise(i=>{let e=()=>(l=!0,i());d(o,a).then(e,e)}),window.__NEXT_PRELOADREADY=s.preloadReady;let m=s},71024:(a,i,e)=>{a.exports=e(34955)},83171:(a,i,e)=>{"use strict";e.d(i,{m:()=>v});var t=e(6029);e(55729);var p=e(76),n=e(5618),o=e(80616),l=e(37666),c=e(60481),r=e(43016),s={root:"m_7485cace"};let d={},m=(0,n.V)((a,{size:i,fluid:e})=>({root:{"--container-size":e?void 0:(0,p.YC)(i,"container-size")}})),v=(0,r.P9)((a,i)=>{let e=(0,o.Y)("Container",d,a),{classNames:p,className:n,style:r,styles:v,unstyled:x,vars:u,fluid:f,mod:g,...b}=e,h=(0,l.I)({name:"Container",classes:s,props:e,className:n,style:r,classNames:p,styles:v,unstyled:x,vars:u,varsResolver:m});return(0,t.jsx)(c.a,{ref:i,mod:[{fluid:f},g],...h("root"),...b})});v.classes=s,v.displayName="@mantine/core/Container"},93522:(a,i,e)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"LoadableContext",{enumerable:!0,get:function(){return t}});let t=e(14761)._(e(55729)).default.createContext(null)}}]); \ No newline at end of file diff --git a/out/_next/static/chunks/7524-43d966707e8a68be.js b/out/_next/static/chunks/7524-43d966707e8a68be.js new file mode 100644 index 0000000..f157947 --- /dev/null +++ b/out/_next/static/chunks/7524-43d966707e8a68be.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7524],{5521:(e,t,r)=>{"use strict";function n(){for(var e,t,r=0,n="";rn,default:()=>o});let o=n},12143:(e,t,r)=>{"use strict";t.__esModule=!0,t.cloneElement=function(e,t){return t.style&&e.props.style&&(t.style=i(i({},e.props.style),t.style)),t.className&&e.props.className&&(t.className=e.props.className+" "+t.className),o.default.cloneElement(e,t)};var n,o=(n=r(55729))&&n.__esModule?n:{default:n};function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function i(e){for(var t=1;t{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}t.default=void 0;var o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=p(void 0);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var s=a?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(o,i,s):o[i]=e[i]}return o.default=e,r&&r.set(e,o),o}(r(55729)),a=f(r(56121)),i=f(r(84719)),s=r(62691),l=r(56937),u=f(r(84703)),c=["breakpoint","breakpoints","cols","layouts","margin","containerPadding","onBreakpointChange","onLayoutChange","onWidthChange"];function f(e){return e&&e.__esModule?e:{default:e}}function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(p=function(e){return e?r:t})(e)}function d(){return(d=Object.assign||function(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,c));return o.createElement(u.default,d({},n,{margin:S(t,this.state.breakpoint),containerPadding:S(r,this.state.breakpoint),onLayoutChange:this.onLayoutChange,layout:this.state.layout,cols:this.state.cols}))}}],a=[{key:"getDerivedStateFromProps",value:function(e,t){if(!(0,i.default)(e.layouts,t.layouts)){var r=t.breakpoint,n=t.cols;return{layout:(0,l.findOrGenerateResponsiveLayout)(e.layouts,e.breakpoints,r,r,n,e.compactType),layouts:e.layouts}}return null}}],r&&g(p.prototype,r),a&&g(p,a),Object.defineProperty(p,"prototype",{writable:!1}),p}(o.Component);t.default=j,O(j,"propTypes",{breakpoint:a.default.string,breakpoints:a.default.object,allowOverlap:a.default.bool,cols:a.default.object,margin:a.default.oneOfType([a.default.array,a.default.object]),containerPadding:a.default.oneOfType([a.default.array,a.default.object]),layouts:function(e,t){if("[object Object]"!==w(e[t]))throw Error("Layout property must be an object. Received: "+w(e[t]));Object.keys(e[t]).forEach(function(t){if(!(t in e.breakpoints))throw Error("Each key in layouts must align with a key in breakpoints.");(0,s.validateLayout)(e.layouts[t],"layouts."+t)})},width:a.default.number.isRequired,onBreakpointChange:a.default.func,onLayoutChange:a.default.func,onWidthChange:a.default.func}),O(j,"defaultProps",{breakpoints:{lg:1200,md:996,sm:768,xs:480,xxs:0},cols:{lg:12,md:10,sm:6,xs:4,xxs:2},containerPadding:{lg:null,md:null,sm:null,xs:null,xxs:null},layouts:{},margin:[10,10],allowOverlap:!1,onBreakpointChange:s.noop,onLayoutChange:s.noop,onWidthChange:s.noop})},16389:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){}},16807:(e,t)=>{"use strict";function r(e){var t=e.margin,r=e.containerPadding,n=e.containerWidth,o=e.cols;return(n-t[0]*(o-1)-2*r[0])/o}function n(e,t,r){return Number.isFinite(e)?Math.round(t*e+Math.max(0,e-1)*r):e}function o(e,t,r){return Math.max(Math.min(e,r),t)}Object.defineProperty(t,"__esModule",{value:!0}),t.calcGridColWidth=r,t.calcGridItemPosition=function(e,t,o,a,i,s){var l=e.margin,u=e.containerPadding,c=e.rowHeight,f=r(e),p={};return s&&s.resizing?(p.width=Math.round(s.resizing.width),p.height=Math.round(s.resizing.height)):(p.width=n(a,f,l[0]),p.height=n(i,c,l[1])),s&&s.dragging?(p.top=Math.round(s.dragging.top),p.left=Math.round(s.dragging.left)):(p.top=Math.round((c+l[1])*o+u[1]),p.left=Math.round((f+l[0])*t+u[0])),p},t.calcGridItemWHPx=n,t.calcWH=function(e,t,n,a,i){var s=e.margin,l=e.maxRows,u=e.cols,c=e.rowHeight,f=r(e),p=Math.round((t+s[0])/(f+s[0])),d=Math.round((n+s[1])/(c+s[1]));return{w:p=o(p,0,u-a),h:d=o(d,0,l-i)}},t.calcXY=function(e,t,n,a,i){var s=e.margin,l=e.cols,u=e.rowHeight,c=e.maxRows,f=r(e),p=Math.round((n-s[0])/(f+s[0])),d=Math.round((t-s[1])/(u+s[1]));return{x:p=o(p,0,l-a),y:d=o(d,0,c-i)}},t.clamp=o},17456:(e,t,r)=>{"use strict";r.d(t,{C:()=>b});var n=r(6029),o=r(26615);r(55729);var a=r(76),i=r(5618),s=r(66404),l=r(92096),u=r(35192),c=r(80616),f=r(37666),p=r(60481),d=r(43016),h={root:"m_e5262200",indicator:"m_760d1fb1",processing:"m_885901b1"};let y={position:"top-end",offset:0,inline:!1,withBorder:!1,disabled:!1,processing:!1},g=(0,i.V)((e,{color:t,position:r,offset:n,size:i,radius:c,zIndex:f,autoContrast:p})=>({root:{"--indicator-color":t?(0,s.r)(t,e):void 0,"--indicator-text-color":(0,u.v)(p,e)?(0,l.w)({color:t,theme:e,autoContrast:p}):void 0,"--indicator-size":(0,o.D)(i),"--indicator-radius":void 0===c?void 0:(0,a.nJ)(c),"--indicator-z-index":f?.toString(),...function(e="top-end",t=0){let r={"--indicator-top":void 0,"--indicator-bottom":void 0,"--indicator-left":void 0,"--indicator-right":void 0,"--indicator-translate-x":void 0,"--indicator-translate-y":void 0},n=(0,o.D)(t),[a,i]=e.split("-");return"top"===a&&(r["--indicator-top"]=n,r["--indicator-translate-y"]="-50%"),"middle"===a&&(r["--indicator-top"]="50%",r["--indicator-translate-y"]="-50%"),"bottom"===a&&(r["--indicator-bottom"]=n,r["--indicator-translate-y"]="50%"),"start"===i&&(r["--indicator-left"]=n,r["--indicator-translate-x"]="-50%"),"center"===i&&(r["--indicator-left"]="50%",r["--indicator-translate-x"]="-50%"),"end"===i&&(r["--indicator-right"]=n,r["--indicator-translate-x"]="50%"),r}(r,n)}})),b=(0,d.P9)((e,t)=>{let r=(0,c.Y)("Indicator",y,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:u,children:d,position:b,offset:m,inline:v,label:O,radius:w,color:S,withBorder:j,disabled:P,processing:D,zIndex:x,autoContrast:R,mod:_,...z}=r,k=(0,f.I)({name:"Indicator",classes:h,props:r,className:a,style:i,classNames:o,styles:s,unstyled:l,vars:u,varsResolver:g});return(0,n.jsxs)(p.a,{ref:t,...k("root"),mod:[{inline:v},_],...z,children:[!P&&(0,n.jsx)(p.a,{mod:{"with-label":!!O,"with-border":j,processing:D},...k("indicator"),children:O}),d]})});b.classes=h,b.displayName="@mantine/core/Indicator"},23763:(e,t,r)=>{"use strict";function n(){for(var e,t,r=0,n="";rn,default:()=>o});let o=n},23909:(e,t,r)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=p(void 0);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var s=a?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(o,i,s):o[i]=e[i]}return o.default=e,r&&r.set(e,o),o}(r(55729)),a=f(r(56121)),i=f(r(56760)),s=r(40712),l=r(99551),u=r(79725),c=f(r(16389));function f(e){return e&&e.__esModule?e:{default:e}}function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(p=function(e){return e?r:t})(e)}function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,o=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var a=[],i=!0,s=!1;try{for(o=o.call(e);!(i=(r=o.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){s=!0,n=e}finally{try{i||null==o.return||o.return()}finally{if(s)throw n}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return h(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return h(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r not mounted on DragStart!");var n=r.ownerDocument;if(!(e.props.disabled||!(t.target instanceof n.defaultView.Node)||e.props.handle&&!(0,s.matchesSelectorAndParentsTo)(t.target,e.props.handle,r)||e.props.cancel&&(0,s.matchesSelectorAndParentsTo)(t.target,e.props.cancel,r))){"touchstart"===t.type&&t.preventDefault();var o=(0,s.getTouchIdentifier)(t);e.setState({touchIdentifier:o});var a=(0,l.getControlPosition)(t,o,g(e));if(null!=a){var i=a.x,u=a.y,f=(0,l.createCoreData)(g(e),i,u);(0,c.default)("DraggableCore: handleDragStart: %j",f),(0,c.default)("calling",e.props.onStart),!1!==e.props.onStart(t,f)&&!1!==e.mounted&&(e.props.enableUserSelectHack&&(0,s.addUserSelectStyles)(n),e.setState({dragging:!0,lastX:i,lastY:u}),(0,s.addEvent)(n,w.move,e.handleDrag),(0,s.addEvent)(n,w.stop,e.handleDragStop))}}}),m(g(e),"handleDrag",function(t){var r=(0,l.getControlPosition)(t,e.state.touchIdentifier,g(e));if(null!=r){var n=r.x,o=r.y;if(Array.isArray(e.props.grid)){var a=n-e.state.lastX,i=o-e.state.lastY,s=d((0,l.snapToGrid)(e.props.grid,a,i),2);if(a=s[0],i=s[1],!a&&!i)return;n=e.state.lastX+a,o=e.state.lastY+i}var u=(0,l.createCoreData)(g(e),n,o);if((0,c.default)("DraggableCore: handleDrag: %j",u),!1===e.props.onDrag(t,u)||!1===e.mounted){try{e.handleDragStop(new MouseEvent("mouseup"))}catch(t){var f=document.createEvent("MouseEvents");f.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),e.handleDragStop(f)}return}e.setState({lastX:n,lastY:o})}}),m(g(e),"handleDragStop",function(t){if(e.state.dragging){var r=(0,l.getControlPosition)(t,e.state.touchIdentifier,g(e));if(null!=r){var n=r.x,o=r.y;if(Array.isArray(e.props.grid)){var a=n-e.state.lastX||0,i=o-e.state.lastY||0,u=d((0,l.snapToGrid)(e.props.grid,a,i),2);a=u[0],i=u[1],n=e.state.lastX+a,o=e.state.lastY+i}var f=(0,l.createCoreData)(g(e),n,o);if(!1===e.props.onStop(t,f)||!1===e.mounted)return!1;var p=e.findDOMNode();p&&e.props.enableUserSelectHack&&(0,s.removeUserSelectStyles)(p.ownerDocument),(0,c.default)("DraggableCore: handleDragStop: %j",f),e.setState({dragging:!1,lastX:NaN,lastY:NaN}),p&&((0,c.default)("DraggableCore: Removing handlers"),(0,s.removeEvent)(p.ownerDocument,w.move,e.handleDrag),(0,s.removeEvent)(p.ownerDocument,w.stop,e.handleDragStop))}}}),m(g(e),"onMouseDown",function(t){return w=O,e.handleDragStart(t)}),m(g(e),"onMouseUp",function(t){return w=O,e.handleDragStop(t)}),m(g(e),"onTouchStart",function(t){return w=v,e.handleDragStart(t)}),m(g(e),"onTouchEnd",function(t){return w=v,e.handleDragStop(t)}),e}return r=[{key:"componentDidMount",value:function(){this.mounted=!0;var e=this.findDOMNode();e&&(0,s.addEvent)(e,v.start,this.onTouchStart,{passive:!1})}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var e=this.findDOMNode();if(e){var t=e.ownerDocument;(0,s.removeEvent)(t,O.move,this.handleDrag),(0,s.removeEvent)(t,v.move,this.handleDrag),(0,s.removeEvent)(t,O.stop,this.handleDragStop),(0,s.removeEvent)(t,v.stop,this.handleDragStop),(0,s.removeEvent)(e,v.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,s.removeUserSelectStyles)(t)}}},{key:"findDOMNode",value:function(){var e,t,r;return null!=(e=this.props)&&e.nodeRef?null==(t=this.props)||null==(r=t.nodeRef)?void 0:r.current:i.default.findDOMNode(this)}},{key:"render",value:function(){return o.cloneElement(o.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}],function(e,t){for(var r=0;r{},25852:(e,t,r)=>{"use strict";t.default=void 0;var n=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=u(void 0);if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}(r(55729)),o=l(r(56121)),a=l(r(97327)),i=r(32848),s=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function l(e){return e&&e.__esModule?e:{default:e}}function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(u=function(e){return e?r:t})(e)}function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,s);return n.createElement(a.default,{axis:h,draggableOpts:l,handle:t,handleSize:r,height:this.state.height,lockAspectRatio:d,maxConstraints:f,minConstraints:u,onResizeStart:o,onResize:this.onResize,onResizeStop:i,resizeHandles:y,transformScale:b,width:this.state.width},n.createElement("div",c({},m,{style:p(p({},g),{},{width:this.state.width+"px",height:this.state.height+"px"})})))},t}(n.Component);t.default=h,h.propTypes=p(p({},i.resizableProps),{},{children:o.default.element})},28200:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var n=(0,r(41495).A)("outline","tags","IconTags",[["path",{d:"M3 8v4.172a2 2 0 0 0 .586 1.414l5.71 5.71a2.41 2.41 0 0 0 3.408 0l3.592 -3.592a2.41 2.41 0 0 0 0 -3.408l-5.71 -5.71a2 2 0 0 0 -1.414 -.586h-4.172a2 2 0 0 0 -2 2z",key:"svg-0"}],["path",{d:"M18 19l1.592 -1.592a4.82 4.82 0 0 0 0 -6.816l-4.592 -4.592",key:"svg-1"}],["path",{d:"M7 10h-.01",key:"svg-2"}]])},32848:(e,t,r)=>{"use strict";t.__esModule=!0,t.resizableProps=void 0;var n,o=(n=r(56121))&&n.__esModule?n:{default:n};r(45611),t.resizableProps={axis:o.default.oneOf(["both","x","y","none"]),className:o.default.string,children:o.default.element.isRequired,draggableOpts:o.default.shape({allowAnyClick:o.default.bool,cancel:o.default.string,children:o.default.node,disabled:o.default.bool,enableUserSelectHack:o.default.bool,offsetParent:o.default.node,grid:o.default.arrayOf(o.default.number),handle:o.default.string,nodeRef:o.default.object,onStart:o.default.func,onDrag:o.default.func,onStop:o.default.func,onMouseDown:o.default.func,scale:o.default.number}),height:function(){for(var e,t=arguments.length,r=Array(t),n=0;n{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=p(r(55729)),a=p(r(56121)),i=r(45611),s=r(50777),l=r(62691),u=r(16807),c=r(70435),f=p(r(5521));function p(e){return e&&e.__esModule?e:{default:e}}function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function h(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:this.props;return{cols:e.cols,containerPadding:e.containerPadding,containerWidth:e.containerWidth,margin:e.margin,maxRows:e.maxRows,rowHeight:e.rowHeight}}},{key:"createStyle",value:function(e){var t,r=this.props,n=r.usePercentages,o=r.containerWidth;return r.useCSSTransforms?t=(0,l.setTransform)(e):(t=(0,l.setTopLeft)(e),n&&(t.left=(0,l.perc)(e.left/o),t.width=(0,l.perc)(e.width/o))),t}},{key:"mixinDraggable",value:function(e,t){return o.default.createElement(i.DraggableCore,{disabled:!t,onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop,handle:this.props.handle,cancel:".react-resizable-handle"+(this.props.cancel?","+this.props.cancel:""),scale:this.props.transformScale,nodeRef:this.elementRef},e)}},{key:"mixinResizable",value:function(e,t,r){var n=this.props,a=n.cols,i=n.x,l=n.minW,c=n.minH,f=n.maxW,p=n.maxH,d=n.transformScale,h=n.resizeHandles,y=n.resizeHandle,g=this.getPositionParams(),b=(0,u.calcGridItemPosition)(g,0,0,a-i,0).width,m=(0,u.calcGridItemPosition)(g,0,0,l,c),v=(0,u.calcGridItemPosition)(g,0,0,f,p),O=[m.width,m.height],w=[Math.min(v.width,b),Math.min(v.height,1/0)];return o.default.createElement(s.Resizable,{draggableOpts:{disabled:!r},className:r?void 0:"react-resizable-hide",width:t.width,height:t.height,minConstraints:O,maxConstraints:w,onResizeStop:this.onResizeStop,onResizeStart:this.onResizeStart,onResize:this.onResize,transformScale:d,resizeHandles:h,handle:y},e)}},{key:"onResizeHandler",value:function(e,t,r){var n=t.node,o=t.size,a=this.props[r];if(a){var i=this.props,s=i.cols,l=i.x,c=i.y,f=i.i,p=i.maxH,d=i.minH,h=this.props,y=h.minW,g=h.maxW,b=(0,u.calcWH)(this.getPositionParams(),o.width,o.height,l,c),m=b.w,v=b.h;y=Math.max(y,1),g=Math.min(g,s-l),m=(0,u.clamp)(m,y,g),v=(0,u.clamp)(v,d,p),this.setState({resizing:"onResizeStop"===r?null:o}),a.call(this,f,m,v,{e:e,node:n,size:o})}}},{key:"render",value:function(){var e=this.props,t=e.x,r=e.y,n=e.w,a=e.h,i=e.isDraggable,s=e.isResizable,l=e.droppingPosition,c=e.useCSSTransforms,p=(0,u.calcGridItemPosition)(this.getPositionParams(),t,r,n,a,this.state),d=o.default.Children.only(this.props.children),y=o.default.cloneElement(d,{ref:this.elementRef,className:(0,f.default)("react-grid-item",d.props.className,this.props.className,{static:this.props.static,resizing:!!this.state.resizing,"react-draggable":i,"react-draggable-dragging":!!this.state.dragging,dropping:!!l,cssTransforms:c}),style:h(h(h({},this.props.style),d.props.style),this.createStyle(p))});return y=this.mixinResizable(y,p,s),y=this.mixinDraggable(y,i)}}],function(e,t){for(var r=0;re.w||r>e.maxW?Error("minWidth larger than item width/maxWidth"):void 0},maxW:function(e,t){var r=e[t];return"number"!=typeof r?Error("maxWidth not Number"):re.h||r>e.maxH?Error("minHeight larger than item height/maxHeight"):void 0},maxH:function(e,t){var r=e[t];return"number"!=typeof r?Error("maxHeight not Number"):r{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.addClassName=d,t.addEvent=function(e,t,r,n){if(e){var o=l({capture:!0},n);e.addEventListener?e.addEventListener(t,r,o):e.attachEvent?e.attachEvent("on"+t,r):e["on"+t]=r}},t.addUserSelectStyles=function(e){if(e){var t=e.getElementById("react-draggable-style-el");t||((t=e.createElement("style")).type="text/css",t.id="react-draggable-style-el",t.innerHTML=".react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n",t.innerHTML+=".react-draggable-transparent-selection *::selection {all: inherit;}\n",e.getElementsByTagName("head")[0].appendChild(t)),e.body&&d(e.body,"react-draggable-transparent-selection")}},t.createCSSTransform=function(e,t){var r=p(e,t,"px");return u({},(0,a.browserPrefixToKey)("transform",a.default),r)},t.createSVGTransform=function(e,t){return p(e,t,"")},t.getTouch=function(e,t){return e.targetTouches&&(0,o.findInArray)(e.targetTouches,function(e){return t===e.identifier})||e.changedTouches&&(0,o.findInArray)(e.changedTouches,function(e){return t===e.identifier})},t.getTouchIdentifier=function(e){return e.targetTouches&&e.targetTouches[0]?e.targetTouches[0].identifier:e.changedTouches&&e.changedTouches[0]?e.changedTouches[0].identifier:void 0},t.getTranslation=p,t.innerHeight=function(e){var t=e.clientHeight,r=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,o.int)(r.paddingTop),t-=(0,o.int)(r.paddingBottom)},t.innerWidth=function(e){var t=e.clientWidth,r=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,o.int)(r.paddingLeft),t-=(0,o.int)(r.paddingRight)},t.matchesSelector=f,t.matchesSelectorAndParentsTo=function(e,t,r){var n=e;do{if(f(n,t))return!0;if(n===r)break;n=n.parentNode}while(n);return!1},t.offsetXYFromParent=function(e,t,r){var n=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect();return{x:(e.clientX+t.scrollLeft-n.left)/r,y:(e.clientY+t.scrollTop-n.top)/r}},t.outerHeight=function(e){var t=e.clientHeight,r=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,o.int)(r.borderTopWidth),t+=(0,o.int)(r.borderBottomWidth)},t.outerWidth=function(e){var t=e.clientWidth,r=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,o.int)(r.borderLeftWidth),t+=(0,o.int)(r.borderRightWidth)},t.removeClassName=h,t.removeEvent=function(e,t,r,n){if(e){var o=l({capture:!0},n);e.removeEventListener?e.removeEventListener(t,r,o):e.detachEvent?e.detachEvent("on"+t,r):e["on"+t]=null}},t.removeUserSelectStyles=function(e){if(e)try{if(e.body&&h(e.body,"react-draggable-transparent-selection"),e.selection)e.selection.empty();else{var t=(e.defaultView||window).getSelection();t&&"Caret"!==t.type&&t.removeAllRanges()}}catch(e){}};var o=r(79725),a=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=i(void 0);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=a?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}return o.default=e,r&&r.set(e,o),o}(r(90099));function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(i=function(e){return e?r:t})(e)}function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function l(e){for(var t=1;t{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}t.default=function(e){var t;return t=function(t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");u.prototype=Object.create(t&&t.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),Object.defineProperty(u,"prototype",{writable:!1}),t&&f(u,t);var r,a,l=(r=function(){if("u"=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(t,s);return r&&!this.mounted?o.createElement("div",{className:(0,i.default)(this.props.className,"react-grid-layout"),style:this.props.style,ref:this.elementRef}):o.createElement(e,c({innerRef:this.elementRef},n,this.state))}}],function(e,t){for(var r=0;r{"use strict";var n=r(75534),o=n.default,a=n.DraggableCore;e.exports=o,e.exports.default=o,e.exports.DraggableCore=a},48080:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var n=(0,r(41495).A)("outline","upload","IconUpload",[["path",{d:"M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2",key:"svg-0"}],["path",{d:"M7 9l5 -5l5 5",key:"svg-1"}],["path",{d:"M12 4l0 12",key:"svg-2"}]])},50063:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var n=(0,r(41495).A)("outline","device-floppy","IconDeviceFloppy",[["path",{d:"M6 4h10l4 4v10a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2",key:"svg-0"}],["path",{d:"M12 14m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-1"}],["path",{d:"M14 4l0 4l-6 0l0 -4",key:"svg-2"}]])},50777:(e,t,r)=>{"use strict";e.exports=function(){throw Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable")},e.exports.Resizable=r(97327).default,e.exports.ResizableBox=r(25852).default},55533:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var n=(0,r(41495).A)("outline","filter-edit","IconFilterEdit",[["path",{d:"M10.97 20.344l-1.97 .656v-8.5l-4.48 -4.928a2 2 0 0 1 -.52 -1.345v-2.227h16v2.172a2 2 0 0 1 -.586 1.414l-4.414 4.414v1.5",key:"svg-0"}],["path",{d:"M18.42 15.61a2.1 2.1 0 0 1 2.97 2.97l-3.39 3.42h-3v-3l3.42 -3.39z",key:"svg-1"}]])},56937:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findOrGenerateResponsiveLayout=function(e,t,r,a,i,s){if(e[r])return(0,n.cloneLayout)(e[r]);for(var l=e[a],u=o(t),c=u.slice(u.indexOf(r)),f=0,p=c.length;fe[s]&&(n=s)}return n},t.getColsFromBreakpoint=function(e,t){if(!t[e])throw Error("ResponsiveReactGridLayout: `cols` entry for breakpoint "+e+" is missing!");return t[e]},t.sortBreakpoints=o;var n=r(62691);function o(e){return Object.keys(e).sort(function(t,r){return e[t]-e[r]})}},60751:e=>{e.exports=function(e,t,r){return e===t||e.className===t.className&&r(e.style,t.style)&&e.width===t.width&&e.autoSize===t.autoSize&&e.cols===t.cols&&e.draggableCancel===t.draggableCancel&&e.draggableHandle===t.draggableHandle&&r(e.verticalCompact,t.verticalCompact)&&r(e.compactType,t.compactType)&&r(e.layout,t.layout)&&r(e.margin,t.margin)&&r(e.containerPadding,t.containerPadding)&&e.rowHeight===t.rowHeight&&e.maxRows===t.maxRows&&e.isBounded===t.isBounded&&e.isDraggable===t.isDraggable&&e.isResizable===t.isResizable&&e.allowOverlap===t.allowOverlap&&e.preventCollision===t.preventCollision&&e.useCSSTransforms===t.useCSSTransforms&&e.transformScale===t.transformScale&&e.isDroppable===t.isDroppable&&r(e.resizeHandles,t.resizeHandles)&&r(e.resizeHandle,t.resizeHandle)&&e.onLayoutChange===t.onLayoutChange&&e.onDragStart===t.onDragStart&&e.onDrag===t.onDrag&&e.onDragStop===t.onDragStop&&e.onResizeStart===t.onResizeStart&&e.onResize===t.onResize&&e.onResizeStop===t.onResizeStop&&e.onDrop===t.onDrop&&r(e.droppingItem,t.droppingItem)&&r(e.innerRef,t.innerRef)}},62691:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bottom=l,t.childrenEqual=function(e,t){return(0,n.default)(o.default.Children.map(e,function(e){return null==e?void 0:e.key}),o.default.Children.map(t,function(e){return null==e?void 0:e.key}))},t.cloneLayout=u,t.cloneLayoutItem=f,t.collides=p,t.compact=d,t.compactItem=g,t.compactType=function(e){var t=e||{},r=t.verticalCompact,n=t.compactType;return!1===r?null:n},t.correctBounds=b,t.fastPositionEqual=function(e,t){return e.left===t.left&&e.top===t.top&&e.width===t.width&&e.height===t.height},t.fastRGLPropsEqual=void 0,t.getAllCollisions=O,t.getFirstCollision=v,t.getLayoutItem=m,t.getStatics=w,t.modifyLayout=c,t.moveElement=S,t.moveElementAwayFromCollision=j,t.noop=void 0,t.perc=function(e){return 100*e+"%"},t.setTopLeft=function(e){var t=e.top,r=e.left,n=e.width,o=e.height;return{top:"".concat(t,"px"),left:"".concat(r,"px"),width:"".concat(n,"px"),height:"".concat(o,"px"),position:"absolute"}},t.setTransform=function(e){var t=e.top,r=e.left,n=e.width,o=e.height,a="translate(".concat(r,"px,").concat(t,"px)");return{transform:a,WebkitTransform:a,MozTransform:a,msTransform:a,OTransform:a,width:"".concat(n,"px"),height:"".concat(o,"px"),position:"absolute"}},t.sortLayoutItems=P,t.sortLayoutItemsByColRow=x,t.sortLayoutItemsByRowCol=D,t.synchronizeLayoutWithChildren=function(e,t,r,n,a){e=e||[];var i=[];o.default.Children.forEach(t,function(t){if((null==t?void 0:t.key)!=null){var r=m(e,String(t.key));if(r)i.push(f(r));else{var n=t.props["data-grid"]||t.props._grid;n?i.push(f(s(s({},n),{},{i:t.key}))):i.push(f({w:1,h:1,x:0,y:l(i),i:String(t.key)}))}}});var u=b(i,{cols:r});return a?u:d(u,n,r)},t.validateLayout=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Layout",r=["x","y","w","h"];if(!Array.isArray(e))throw Error(t+" must be an array!");for(var n=0,o=e.length;nr&&(r=t);return r}function u(e){for(var t=Array(e.length),r=0,n=e.length;r=t.x+t.w)&&!(e.y+e.h<=t.y)&&!(e.y>=t.y+t.h)}function d(e,t,r){for(var n=w(e),o=P(e,t),a=Array(e.length),i=0,s=o.length;it.y+t.h)break;p(t,s)&&y(e,s,r+t[o],n)}}t[n]=r}function g(e,t,r,n,o){var a,i="horizontal"===r;if("vertical"===r)for(t.y=Math.min(l(e),t.y);t.y>0&&!v(e,t);)t.y--;else if(i)for(;t.x>0&&!v(e,t);)t.x--;for(;a=v(e,t);)i?y(o,t,a.x+a.w,"x"):y(o,t,a.y+a.h,"y"),i&&t.x+t.w>n&&(t.x=n-t.w,t.y++);return t.y=Math.max(t.y,0),t.x=Math.max(t.x,0),t}function b(e,t){for(var r=w(e),n=0,o=e.length;nt.cols&&(a.x=t.cols-a.w),a.x<0&&(a.x=0,a.w=t.cols),a.static)for(;v(r,a);)a.y++;else r.push(a)}return e}function m(e,t){for(var r=0,n=e.length;r=n:"horizontal"===i&&"number"==typeof r&&c>=r)&&(p=p.reverse());var d=O(p,t),h=d.length>0;if(h&&l)return u(e);if(h&&a)return R("Collision prevented on ".concat(t.i,", reverting.")),t.x=c,t.y=f,t.moved=!1,e;for(var y=0,g=d.length;yt.y||e.y===t.y&&e.x>t.x?1:e.y===t.y&&e.x===t.x?0:-1})}function x(e){return e.slice(0).sort(function(e,t){return e.x>t.x||e.x===t.x&&e.y>t.y?1:-1})}function R(){}t.noop=function(){}},70435:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resizeHandleType=t.resizeHandleAxesType=t.default=void 0;var n=a(r(56121)),o=a(r(55729));function a(e){return e&&e.__esModule?e:{default:e}}var i=n.default.arrayOf(n.default.oneOf(["s","w","e","n","sw","nw","se","ne"]));t.resizeHandleAxesType=i;var s=n.default.oneOfType([n.default.node,n.default.func]);t.resizeHandleType=s,t.default={className:n.default.string,style:n.default.object,width:n.default.number,autoSize:n.default.bool,cols:n.default.number,draggableCancel:n.default.string,draggableHandle:n.default.string,verticalCompact:function(e){e.verticalCompact},compactType:n.default.oneOf(["vertical","horizontal"]),layout:function(e){var t=e.layout;void 0!==t&&r(62691).validateLayout(t,"layout")},margin:n.default.arrayOf(n.default.number),containerPadding:n.default.arrayOf(n.default.number),rowHeight:n.default.number,maxRows:n.default.number,isBounded:n.default.bool,isDraggable:n.default.bool,isResizable:n.default.bool,allowOverlap:n.default.bool,preventCollision:n.default.bool,useCSSTransforms:n.default.bool,transformScale:n.default.number,isDroppable:n.default.bool,resizeHandles:i,resizeHandle:s,onLayoutChange:n.default.func,onDragStart:n.default.func,onDrag:n.default.func,onDragStop:n.default.func,onResizeStart:n.default.func,onResize:n.default.func,onResizeStop:n.default.func,onDrop:n.default.func,droppingItem:n.default.shape({i:n.default.string.isRequired,w:n.default.number.isRequired,h:n.default.number.isRequired}),children:function(e,t){var r=e[t],n={};o.default.Children.forEach(r,function(e){if((null==e?void 0:e.key)!=null){if(n[e.key])throw Error('Duplicate child key "'+e.key+'" found! This will cause problems in ReactGridLayout.');n[e.key]=!0}})},innerRef:n.default.any}},75534:(e,t,r)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"DraggableCore",{enumerable:!0,get:function(){return f.default}}),t.default=void 0;var o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=y(void 0);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var s=a?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(o,i,s):o[i]=e[i]}return o.default=e,r&&r.set(e,o),o}(r(55729)),a=h(r(56121)),i=h(r(56760)),s=h(r(23763)),l=r(40712),u=r(99551),c=r(79725),f=h(r(23909)),p=h(r(16389)),d=["axis","bounds","children","defaultPosition","defaultClassName","defaultClassNameDragging","defaultClassNameDragged","position","positionOffset","scale"];function h(e){return e&&e.__esModule?e:{default:e}}function y(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(y=function(e){return e?r:t})(e)}function g(){return(g=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=Array(t);rtypeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var a=[],i=!0,s=!1;try{for(o=o.call(e);!(i=(r=o.next()).done)&&(a.push(r.value),2!==a.length);i=!0);}catch(e){s=!0,n=e}finally{try{i||null==o.return||o.return()}finally{if(s)throw n}}return a}}(a,2)||function(e,t){if(e){if("string"==typeof e)return v(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return v(e,2)}}(a,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),c=l[0],f=l[1];o.x=c,o.y=f,o.slackX=t.state.slackX+(i-o.x),o.slackY=t.state.slackY+(s-o.y),n.x=o.x,n.y=o.y,n.deltaX=o.x-t.state.x,n.deltaY=o.y-t.state.y}if(!1===t.props.onDrag(e,n))return!1;t.setState(o)}),P(S(t),"onDragStop",function(e,r){if(!t.state.dragging||!1===t.props.onStop(e,(0,u.createDraggableData)(S(t),r)))return!1;(0,p.default)("Draggable: onDragStop: %j",r);var n={dragging:!1,slackX:0,slackY:0};if(t.props.position){var o=t.props.position,a=o.x,i=o.y;n.x=a,n.y=i}t.setState(n)}),t.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,prevPropsPosition:m({},e.position),slackX:0,slackY:0,isElementSVG:!1},e.position&&!(e.onDrag||e.onStop)&&console.warn("A `position` was applied to this , without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element."),t}return r=[{key:"componentDidMount",value:function(){void 0!==window.SVGElement&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}},{key:"componentWillUnmount",value:function(){this.setState({dragging:!1})}},{key:"findDOMNode",value:function(){var e,t,r;return null!=(e=null==(t=this.props)||null==(r=t.nodeRef)?void 0:r.current)?e:i.default.findDOMNode(this)}},{key:"render",value:function(){var e,t=this.props,r=(t.axis,t.bounds,t.children),n=t.defaultPosition,a=t.defaultClassName,i=t.defaultClassNameDragging,c=t.defaultClassNameDragged,p=t.position,h=t.positionOffset,y=(t.scale,function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(t,d)),b={},v=null,O=!p||this.state.dragging,w=p||n,S={x:(0,u.canDragX)(this)&&O?this.state.x:w.x,y:(0,u.canDragY)(this)&&O?this.state.y:w.y};this.state.isElementSVG?v=(0,l.createSVGTransform)(S,h):b=(0,l.createCSSTransform)(S,h);var j=(0,s.default)(r.props.className||"",a,(P(e={},i,this.state.dragging),P(e,c,this.state.dragged),e));return o.createElement(f.default,g({},y,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),o.cloneElement(o.Children.only(r),{className:j,style:m(m({},r.props.style),b),transform:v}))}}],a=[{key:"getDerivedStateFromProps",value:function(e,t){var r=e.position,n=t.prevPropsPosition;return r&&(!n||r.x!==n.x||r.y!==n.y)?((0,p.default)("Draggable: getDerivedStateFromProps %j",{position:r,prevPropsPosition:n}),{x:r.x,y:r.y,prevPropsPosition:m({},r)}):null}}],r&&O(h.prototype,r),a&&O(h,a),Object.defineProperty(h,"prototype",{writable:!1}),h}(o.Component);t.default=D,P(D,"displayName","Draggable"),P(D,"propTypes",m(m({},f.default.propTypes),{},{axis:a.default.oneOf(["both","x","y","none"]),bounds:a.default.oneOfType([a.default.shape({left:a.default.number,right:a.default.number,top:a.default.number,bottom:a.default.number}),a.default.string,a.default.oneOf([!1])]),defaultClassName:a.default.string,defaultClassNameDragging:a.default.string,defaultClassNameDragged:a.default.string,defaultPosition:a.default.shape({x:a.default.number,y:a.default.number}),positionOffset:a.default.shape({x:a.default.oneOfType([a.default.number,a.default.string]),y:a.default.oneOfType([a.default.number,a.default.string])}),position:a.default.shape({x:a.default.number,y:a.default.number}),className:c.dontSetMe,style:c.dontSetMe,transform:c.dontSetMe})),P(D,"defaultProps",m(m({},f.default.defaultProps),{},{axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1}))},78048:()=>{},78075:(e,t,r)=>{"use strict";r.d(t,{E:()=>y});var n=r(55729),o=r(95913),a=r(28171),i=r(24090),s=r(4308);function l(e,t){return e.filter(e=>!t.includes(e))}var u=class extends i.Q{#e;#t;#r;#n;#o;#a;#i;constructor(e,t,r){super(),this.#e=e,this.#r=[],this.#n=[],this.#t=[],this.setQueries(t)}onSubscribe(){1===this.listeners.size&&this.#n.forEach(e=>{e.subscribe(t=>{this.#s(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#n.forEach(e=>{e.destroy()})}setQueries(e,t,r){this.#r=e,o.j.batch(()=>{let e=this.#n,t=this.#l(this.#r);t.forEach(e=>e.observer.setOptions(e.defaultedQueryOptions,r));let n=t.map(e=>e.observer),o=n.map(e=>e.getCurrentResult()),a=n.some((t,r)=>t!==e[r]);e.length===n.length&&!a||(this.#n=n,this.#t=o,this.hasListeners()&&(l(e,n).forEach(e=>{e.destroy()}),l(n,e).forEach(e=>{e.subscribe(t=>{this.#s(e,t)})}),this.#u()))})}getCurrentResult(){return this.#t}getQueries(){return this.#n.map(e=>e.getCurrentQuery())}getObservers(){return this.#n}getOptimisticResult(e,t){let r=this.#l(e),n=r.map(e=>e.observer.getOptimisticResult(e.defaultedQueryOptions));return[n,e=>this.#c(e??n,t),()=>r.map((e,t)=>{let o=n[t];return e.defaultedQueryOptions.notifyOnChangeProps?o:e.observer.trackResult(o,e=>{r.forEach(t=>{t.observer.trackProp(e)})})})]}#c(e,t){return t?(this.#o&&this.#t===this.#i&&t===this.#a||(this.#a=t,this.#i=this.#t,this.#o=(0,s.BH)(this.#o,t(e))),this.#o):e}#l(e){let t=new Map(this.#n.map(e=>[e.options.queryHash,e])),r=e.map(e=>this.#e.defaultQueryOptions(e)),n=r.flatMap(e=>{let r=t.get(e.queryHash);return null!=r?[{defaultedQueryOptions:e,observer:r}]:[]}),o=new Set(n.map(e=>e.defaultedQueryOptions.queryHash)),i=r.filter(e=>!o.has(e.queryHash)),s=e=>{let t=this.#e.defaultQueryOptions(e);return this.#n.find(e=>e.options.queryHash===t.queryHash)??new a.$(this.#e,t)},l=i.map(e=>({defaultedQueryOptions:e,observer:s(e)}));return n.concat(l).sort((e,t)=>r.indexOf(e.defaultedQueryOptions)-r.indexOf(t.defaultedQueryOptions))}#s(e,t){let r=this.#n.indexOf(e);if(-1!==r){var n;let e;this.#t=(n=this.#t,(e=n.slice(0))[r]=t,e),this.#u()}}#u(){o.j.batch(()=>{this.listeners.forEach(e=>{e(this.#t)})})}},c=r(93251),f=r(29452),p=r(79890),d=r(88678),h=r(75407);function y({queries:e,...t},r){let i=(0,c.jE)(r),s=(0,f.w)(),l=(0,p.h)(),y=n.useMemo(()=>e.map(e=>{let t=i.defaultQueryOptions(e);return t._optimisticResults=s?"isRestoring":"optimistic",t}),[e,i,s]);y.forEach(e=>{(0,h.jv)(e),(0,d.LJ)(e,l)}),(0,d.wZ)(l);let[g]=n.useState(()=>new u(i,y,t)),[b,m,v]=g.getOptimisticResult(y,t.combine);n.useSyncExternalStore(n.useCallback(e=>s?()=>void 0:g.subscribe(o.j.batchCalls(e)),[g,s]),()=>g.getCurrentResult(),()=>g.getCurrentResult()),n.useEffect(()=>{g.setQueries(y,t,{listeners:!1})},[y,t,g]);let O=b.some((e,t)=>(0,h.EU)(y[t],e))?b.flatMap((e,t)=>{let r=y[t];if(r){let t=new a.$(i,r);if((0,h.EU)(r,e))return(0,h.iL)(r,t,l);(0,h.nE)(e,s)&&(0,h.iL)(r,t,l)}return[]}):[];if(O.length>0)throw Promise.all(O);let w=b.find((e,t)=>{let r=y[t];return r&&(0,d.$1)({result:e,errorResetBoundary:l,throwOnError:r.throwOnError,query:i.getQueryCache().get(r.queryHash)})});if(w?.error)throw w.error;return m(v())}},79725:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dontSetMe=function(e,t,r){if(e[t])return Error("Invalid prop ".concat(t," passed to ").concat(r," - do not set this, set it on the child."))},t.findInArray=function(e,t){for(var r=0,n=e.length;r{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=p(void 0);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var s=a?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(o,i,s):o[i]=e[i]}return o.default=e,r&&r.set(e,o),o}(r(55729)),a=f(r(84719)),i=f(r(5521)),s=r(62691),l=r(16807),u=f(r(34421)),c=f(r(70435));function f(e){return e&&e.__esModule?e:{default:e}}function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(p=function(e){return e?r:t})(e)}function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function h(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=Array(t);r0){var a=1/0,i=1/0;o.forEach(function(t){t.x>e.x&&(a=Math.min(a,t.x)),t.y>e.y&&(i=Math.min(i,t.y))}),Number.isFinite(a)&&(e.w=a-e.x),Number.isFinite(i)&&(e.h=i-e.y)}}return t||(e.w=r,e.h=n),e}))||function(e,t){var r,n,o=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var a=[],i=!0,s=!1;try{for(o=o.call(e);!(i=(r=o.next()).done)&&(a.push(r.value),2!==a.length);i=!0);}catch(e){s=!0,n=e}finally{try{i||null==o.return||o.return()}finally{if(s)throw n}}return a}}(a,2)||y(a,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),v=m[0],O=m[1];if(O){var w={w:O.w,h:O.h,x:O.x,y:O.y,static:!0,i:t};e.props.onResize(v,f,O,w,i,l),e.setState({layout:b?v:(0,s.compact)(v,(0,s.compactType)(e.props),d),activeDrag:w})}}),w(v(e),"onResizeStop",function(t,r,n,o){var a=o.e,i=o.node,l=e.state,u=l.layout,c=l.oldResizeItem,f=e.props,p=f.cols,d=f.allowOverlap,h=(0,s.getLayoutItem)(u,t);e.props.onResizeStop(u,c,h,null,a,i);var y=d?u:(0,s.compact)(u,(0,s.compactType)(e.props),p),g=e.state.oldLayout;e.setState({activeDrag:null,layout:y,oldResizeItem:null,oldLayout:null}),e.onLayoutMaybeChanged(y,g)}),w(v(e),"onDragOver",function(t){if(t.preventDefault(),t.stopPropagation(),j&&!(null!=(r=t.nativeEvent.target)&&r.classList.contains(S)))return!1;var r,n=e.props,a=n.droppingItem,i=n.onDropDragOver,s=n.margin,u=n.cols,c=n.rowHeight,f=n.maxRows,p=n.width,d=n.containerPadding,b=n.transformScale,m=null==i?void 0:i(t);if(!1===m)return e.state.droppingDOMNode&&e.removeDroppingPlaceholder(),!1;var v=h(h({},a),m),O=e.state.layout,w=t.nativeEvent,P=w.layerX,D=w.layerY,x={left:P/b,top:D/b,e:t};if(e.state.droppingDOMNode){if(e.state.droppingPosition){var R=e.state.droppingPosition,_=R.left,z=R.top;(_!=P||z!=D)&&e.setState({droppingPosition:x})}}else{var k=(0,l.calcXY)({cols:u,margin:s,maxRows:f,rowHeight:c,containerWidth:p,containerPadding:d||s},D,P,v.w,v.h);e.setState({droppingDOMNode:o.createElement("div",{key:v.i}),droppingPosition:x,layout:[].concat(function(e){if(Array.isArray(e))return g(e)}(O)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(O)||y(O)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[h(h({},v),{},{x:k.x,y:k.y,static:!1,isDraggable:!0})])})}}),w(v(e),"removeDroppingPlaceholder",function(){var t=e.props,r=t.droppingItem,n=t.cols,o=e.state.layout,a=(0,s.compact)(o.filter(function(e){return e.i!==r.i}),(0,s.compactType)(e.props),n);e.setState({layout:a,droppingDOMNode:null,activeDrag:null,droppingPosition:void 0})}),w(v(e),"onDragLeave",function(t){t.preventDefault(),t.stopPropagation(),e.dragEnterCounter--,0===e.dragEnterCounter&&e.removeDroppingPlaceholder()}),w(v(e),"onDragEnter",function(t){t.preventDefault(),t.stopPropagation(),e.dragEnterCounter++}),w(v(e),"onDrop",function(t){t.preventDefault(),t.stopPropagation();var r=e.props.droppingItem,n=e.state.layout,o=n.find(function(e){return e.i===r.i});e.dragEnterCounter=0,e.removeDroppingPlaceholder(),e.props.onDrop(n,o,t)}),e}return r=[{key:"componentDidMount",value:function(){this.setState({mounted:!0}),this.onLayoutMaybeChanged(this.state.layout,this.props.layout)}},{key:"shouldComponentUpdate",value:function(e,t){return this.props.children!==e.children||!(0,s.fastRGLPropsEqual)(this.props,e,a.default)||this.state.activeDrag!==t.activeDrag||this.state.mounted!==t.mounted||this.state.droppingPosition!==t.droppingPosition}},{key:"componentDidUpdate",value:function(e,t){if(!this.state.activeDrag){var r=this.state.layout,n=t.layout;this.onLayoutMaybeChanged(r,n)}}},{key:"containerHeight",value:function(){if(this.props.autoSize){var e=(0,s.bottom)(this.state.layout),t=this.props.containerPadding?this.props.containerPadding[1]:this.props.margin[1];return e*this.props.rowHeight+(e-1)*this.props.margin[1]+2*t+"px"}}},{key:"onLayoutMaybeChanged",value:function(e,t){t||(t=this.state.layout),(0,a.default)(t,e)||this.props.onLayoutChange(e)}},{key:"placeholder",value:function(){var e=this.state.activeDrag;if(!e)return null;var t=this.props,r=t.width,n=t.cols,a=t.margin,i=t.containerPadding,s=t.rowHeight,l=t.maxRows,c=t.useCSSTransforms,f=t.transformScale;return o.createElement(u.default,{w:e.w,h:e.h,x:e.x,y:e.y,i:e.i,className:"react-grid-placeholder",containerWidth:r,cols:n,margin:a,containerPadding:i||a,maxRows:l,rowHeight:s,isDraggable:!1,isResizable:!1,isBounded:!1,useCSSTransforms:c,transformScale:f},o.createElement("div",null))}},{key:"processGridItem",value:function(e,t){if(e&&e.key){var r=(0,s.getLayoutItem)(this.state.layout,String(e.key));if(!r)return null;var n=this.props,a=n.width,i=n.cols,l=n.margin,c=n.containerPadding,f=n.rowHeight,p=n.maxRows,d=n.isDraggable,h=n.isResizable,y=n.isBounded,g=n.useCSSTransforms,b=n.transformScale,m=n.draggableCancel,v=n.draggableHandle,O=n.resizeHandles,w=n.resizeHandle,S=this.state,j=S.mounted,P=S.droppingPosition,D="boolean"==typeof r.isDraggable?r.isDraggable:!r.static&&d,x="boolean"==typeof r.isResizable?r.isResizable:!r.static&&h,R=r.resizeHandles||O,_=D&&y&&!1!==r.isBounded;return o.createElement(u.default,{containerWidth:a,cols:i,margin:l,containerPadding:c||l,maxRows:p,rowHeight:f,cancel:m,handle:v,onDragStop:this.onDragStop,onDragStart:this.onDragStart,onDrag:this.onDrag,onResizeStart:this.onResizeStart,onResize:this.onResize,onResizeStop:this.onResizeStop,isDraggable:D,isResizable:x,isBounded:_,useCSSTransforms:g&&j,usePercentages:!j,transformScale:b,w:r.w,h:r.h,x:r.x,y:r.y,i:r.i,minH:r.minH,minW:r.minW,maxH:r.maxH,maxW:r.maxW,static:r.static,droppingPosition:t?P:void 0,resizeHandles:R,resizeHandle:w},e)}}},{key:"render",value:function(){var e=this,t=this.props,r=t.className,n=t.style,a=t.isDroppable,l=t.innerRef,u=(0,i.default)(S,r),c=h({height:this.containerHeight()},n);return o.createElement("div",{ref:l,className:u,style:c,onDrop:a?this.onDrop:s.noop,onDragLeave:a?this.onDragLeave:s.noop,onDragEnter:a?this.onDragEnter:s.noop,onDragOver:a?this.onDragOver:s.noop},o.Children.map(this.props.children,function(t){return e.processGridItem(t)}),a&&this.state.droppingDOMNode&&this.processGridItem(this.state.droppingDOMNode,!0),this.placeholder())}}],c=[{key:"getDerivedStateFromProps",value:function(e,t){var r;return t.activeDrag?null:((0,a.default)(e.layout,t.propsLayout)&&e.compactType===t.compactType?(0,s.childrenEqual)(e.children,t.children)||(r=t.layout):r=e.layout,r)?{layout:(0,s.synchronizeLayoutWithChildren)(r,e.children,e.cols,(0,s.compactType)(e),e.allowOverlap),compactType:e.compactType,children:e.children,propsLayout:e.layout}:null}}],r&&b(p.prototype,r),c&&b(p,c),Object.defineProperty(p,"prototype",{writable:!1}),p}(o.Component);t.default=P,w(P,"displayName","ReactGridLayout"),w(P,"propTypes",c.default),w(P,"defaultProps",{autoSize:!0,cols:12,className:"",style:{},draggableHandle:"",draggableCancel:"",containerPadding:null,rowHeight:150,maxRows:1/0,layout:[],margin:[10,10],isBounded:!1,isDraggable:!0,isResizable:!0,allowOverlap:!1,isDroppable:!1,useCSSTransforms:!0,transformScale:1,verticalCompact:!0,compactType:"vertical",preventCollision:!1,droppingItem:{i:"__dropping-elem__",h:1,w:1},resizeHandles:["se"],onLayoutChange:s.noop,onDragStart:s.noop,onDrag:s.noop,onDragStop:s.noop,onResizeStart:s.noop,onResize:s.noop,onResizeStop:s.noop,onDrop:s.noop,onDropDragOver:s.noop})},84719:(e,t,r)=>{e=r.nmd(e);var n,o,a,i="__lodash_hash_undefined__",s="[object Arguments]",l="[object Array]",u="[object Boolean]",c="[object Date]",f="[object Error]",p="[object Function]",d="[object Map]",h="[object Number]",y="[object Object]",g="[object Promise]",b="[object RegExp]",m="[object Set]",v="[object String]",O="[object WeakMap]",w="[object ArrayBuffer]",S="[object DataView]",j=/^\[object .+?Constructor\]$/,P=/^(?:0|[1-9]\d*)$/,D={};D["[object Float32Array]"]=D["[object Float64Array]"]=D["[object Int8Array]"]=D["[object Int16Array]"]=D["[object Int32Array]"]=D["[object Uint8Array]"]=D["[object Uint8ClampedArray]"]=D["[object Uint16Array]"]=D["[object Uint32Array]"]=!0,D[s]=D[l]=D[w]=D[u]=D[S]=D[c]=D[f]=D[p]=D[d]=D[h]=D[y]=D[b]=D[m]=D[v]=D[O]=!1;var x="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,R="object"==typeof self&&self&&self.Object===Object&&self,_=x||R||Function("return this")(),z=t&&!t.nodeType&&t,k=z&&e&&!e.nodeType&&e,C=k&&k.exports===z,E=C&&x.process,M=function(){try{return E&&E.binding&&E.binding("util")}catch(e){}}(),T=M&&M.isTypedArray;function H(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}function L(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}var W=Array.prototype,A=Function.prototype,N=Object.prototype,I=_["__core-js_shared__"],B=A.toString,q=N.hasOwnProperty,U=(n=/[^.]+$/.exec(I&&I.keys&&I.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",X=N.toString,Y=RegExp("^"+B.call(q).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),G=C?_.Buffer:void 0,F=_.Symbol,Q=_.Uint8Array,V=N.propertyIsEnumerable,$=W.splice,J=F?F.toStringTag:void 0,K=Object.getOwnPropertySymbols,Z=G?G.isBuffer:void 0,ee=(o=Object.keys,a=Object,function(e){return o(a(e))}),et=eD(_,"DataView"),er=eD(_,"Map"),en=eD(_,"Promise"),eo=eD(_,"Set"),ea=eD(_,"WeakMap"),ei=eD(Object,"create"),es=e_(et),el=e_(er),eu=e_(en),ec=e_(eo),ef=e_(ea),ep=F?F.prototype:void 0,ed=ep?ep.valueOf:void 0;function eh(e){var t=-1,r=null==e?0:e.length;for(this.clear();++ts))return!1;var u=a.get(e);if(u&&a.get(t))return u==t;var c=-1,f=!0,p=2&r?new eb:void 0;for(a.set(e,t),a.set(t,e);++c-1},ey.prototype.set=function(e,t){var r=this.__data__,n=ev(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},eg.prototype.clear=function(){this.size=0,this.__data__={hash:new eh,map:new(er||ey),string:new eh}},eg.prototype.delete=function(e){var t=eP(this,e).delete(e);return this.size-=!!t,t},eg.prototype.get=function(e){return eP(this,e).get(e)},eg.prototype.has=function(e){return eP(this,e).has(e)},eg.prototype.set=function(e,t){var r=eP(this,e),n=r.size;return r.set(e,t),this.size+=+(r.size!=n),this},eb.prototype.add=eb.prototype.push=function(e){return this.__data__.set(e,i),this},eb.prototype.has=function(e){return this.__data__.has(e)},em.prototype.clear=function(){this.__data__=new ey,this.size=0},em.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},em.prototype.get=function(e){return this.__data__.get(e)},em.prototype.has=function(e){return this.__data__.has(e)},em.prototype.set=function(e,t){var r=this.__data__;if(r instanceof ey){var n=r.__data__;if(!er||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new eg(n)}return r.set(e,t),this.size=r.size,this};var ex=K?function(e){return null==e?[]:function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,a=[];++r-1&&e%1==0&&e<=0x1fffffffffffff}function eH(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function eL(e){return null!=e&&"object"==typeof e}var eW=T?function(e){return T(e)}:function(e){return eL(e)&&eT(e.length)&&!!D[eO(e)]};function eA(e){return null!=e&&eT(e.length)&&!eM(e)?function(e,t){var r,n,o=eC(e),a=!o&&ek(e),i=!o&&!a&&eE(e),s=!o&&!a&&!i&&eW(e),l=o||a||i||s,u=l?function(e,t){for(var r=-1,n=Array(e);++r-1&&r%1==0&&r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.browserPrefixToKey=o,t.browserPrefixToStyle=function(e,t){return t?"-".concat(t.toLowerCase(),"-").concat(e):e},t.default=void 0,t.getPrefix=n;var r=["Moz","Webkit","O","ms"];function n(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";if("u"{"use strict";t.__esModule=!0,t.default=void 0;var n=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=l(void 0);if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}(r(55729)),o=r(45611),a=r(12143),i=r(32848),s=["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"];function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(l=function(e){return e?r:t})(e)}function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;tMath.abs((t-this.props.height)*i)?t=e/i:e=t*i}var s=e,l=t,u=this.slack||[0,0],c=u[0],f=u[1];return e+=c,t+=f,n&&(e=Math.max(n[0],e),t=Math.max(n[1],t)),o&&(e=Math.min(o[0],e),t=Math.min(o[1],t)),this.slack=[c+(s-e),f+(l-t)],[e,t]},r.resizeHandler=function(e,t){var r=this;return function(n,o){var a=o.node,i=o.deltaX,s=o.deltaY;"onResizeStart"===e&&r.resetData();var l=("both"===r.props.axis||"x"===r.props.axis)&&"n"!==t&&"s"!==t,u=("both"===r.props.axis||"y"===r.props.axis)&&"e"!==t&&"w"!==t;if(l||u){var c=t[0],f=t[t.length-1],p=a.getBoundingClientRect();null!=r.lastHandleRect&&("w"===f&&(i+=p.left-r.lastHandleRect.left),"n"===c&&(s+=p.top-r.lastHandleRect.top)),r.lastHandleRect=p,"w"===f&&(i=-i),"n"===c&&(s=-s);var d=r.props.width+(l?i/r.props.transformScale:0),h=r.props.height+(u?s/r.props.transformScale:0),y=r.runConstraints(d,h);d=y[0],h=y[1];var g=d!==r.props.width||h!==r.props.height,b="function"==typeof r.props[e]?r.props[e]:null;b&&!("onResize"===e&&!g)&&(null==n.persist||n.persist(),b(n,{node:a,size:{width:d,height:h},handle:t})),"onResizeStop"===e&&r.resetData()}}},r.renderResizeHandle=function(e,t){var r=this.props.handle;if(!r)return n.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+e,ref:t});if("function"==typeof r)return r(e,t);var o=f({ref:t},"string"==typeof r.type?{}:{handleAxis:e});return n.cloneElement(r,o)},r.render=function(){var e=this,t=this.props,r=t.children,i=t.className,l=t.draggableOpts,c=(t.width,t.height,t.handle,t.handleSize,t.lockAspectRatio,t.axis,t.minConstraints,t.maxConstraints,t.onResize,t.onResizeStop,t.onResizeStart,t.resizeHandles),p=(t.transformScale,function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}(t,s));return(0,a.cloneElement)(r,f(f({},p),{},{className:(i?i+" ":"")+"react-resizable",children:[].concat(r.props.children,c.map(function(t){var r,a=null!=(r=e.handleRefs[t])?r:e.handleRefs[t]=n.createRef();return n.createElement(o.DraggableCore,u({},l,{nodeRef:a,key:"resizableHandle-"+t,onStop:e.resizeHandler("onResizeStop",t),onStart:e.resizeHandler("onResizeStart",t),onDrag:e.resizeHandler("onResize",t)}),e.renderResizeHandle(t,a))}))}))},t}(n.Component);t.default=d,d.propTypes=i.resizableProps,d.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1}},99551:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canDragX=function(e){return"both"===e.props.axis||"x"===e.props.axis},t.canDragY=function(e){return"both"===e.props.axis||"y"===e.props.axis},t.createCoreData=function(e,t,r){var o=e.state,i=!(0,n.isNum)(o.lastX),s=a(e);return i?{node:s,deltaX:0,deltaY:0,lastX:t,lastY:r,x:t,y:r}:{node:s,deltaX:t-o.lastX,deltaY:r-o.lastY,lastX:o.lastX,lastY:o.lastY,x:t,y:r}},t.createDraggableData=function(e,t){var r=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/r,y:e.state.y+t.deltaY/r,deltaX:t.deltaX/r,deltaY:t.deltaY/r,lastX:e.state.x,lastY:e.state.y}},t.getBoundPosition=function(e,t,r){if(!e.props.bounds)return[t,r];var i=e.props.bounds;i="string"==typeof i?i:{left:(l=i).left,top:l.top,right:l.right,bottom:l.bottom};var s=a(e);if("string"==typeof i){var l,u,c=s.ownerDocument,f=c.defaultView;if(!((u="parent"===i?s.parentNode:c.querySelector(i))instanceof f.HTMLElement))throw Error('Bounds selector "'+i+'" could not find an element.');var p=f.getComputedStyle(s),d=f.getComputedStyle(u);i={left:-s.offsetLeft+(0,n.int)(d.paddingLeft)+(0,n.int)(p.marginLeft),top:-s.offsetTop+(0,n.int)(d.paddingTop)+(0,n.int)(p.marginTop),right:(0,o.innerWidth)(u)-(0,o.outerWidth)(s)-s.offsetLeft+(0,n.int)(d.paddingRight)-(0,n.int)(p.marginRight),bottom:(0,o.innerHeight)(u)-(0,o.outerHeight)(s)-s.offsetTop+(0,n.int)(d.paddingBottom)-(0,n.int)(p.marginBottom)}}return(0,n.isNum)(i.right)&&(t=Math.min(t,i.right)),(0,n.isNum)(i.bottom)&&(r=Math.min(r,i.bottom)),(0,n.isNum)(i.left)&&(t=Math.max(t,i.left)),(0,n.isNum)(i.top)&&(r=Math.max(r,i.top)),[t,r]},t.getControlPosition=function(e,t,r){var n="number"==typeof t?(0,o.getTouch)(e,t):null;if("number"==typeof t&&!n)return null;var i=a(r),s=r.props.offsetParent||i.offsetParent||i.ownerDocument.body;return(0,o.offsetXYFromParent)(n||e,s,r.props.scale)},t.snapToGrid=function(e,t,r){return[Math.round(t/e[0])*e[0],Math.round(r/e[1])*e[1]]};var n=r(79725),o=r(40712);function a(e){var t=e.findDOMNode();if(!t)throw Error(": Unmounted during event!");return t}},99789:(e,t,r)=>{e.exports=r(84703).default,e.exports.utils=r(62691),e.exports.Responsive=r(12917).default,e.exports.Responsive.utils=r(56937),e.exports.WidthProvider=r(44192).default}}]); \ No newline at end of file diff --git a/out/_next/static/chunks/4913-75c3c17d5340be2d.js b/out/_next/static/chunks/8462-b2415a0cc89e2373.js similarity index 70% rename from out/_next/static/chunks/4913-75c3c17d5340be2d.js rename to out/_next/static/chunks/8462-b2415a0cc89e2373.js index ee13642..5c51d4d 100644 --- a/out/_next/static/chunks/4913-75c3c17d5340be2d.js +++ b/out/_next/static/chunks/8462-b2415a0cc89e2373.js @@ -1 +1 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4913],{3562:(a,t,e)=>{e.d(t,{A:()=>n});var n=(0,e(41495).A)("outline","filter-off","IconFilterOff",[["path",{d:"M8 4h12v2.172a2 2 0 0 1 -.586 1.414l-3.914 3.914m-.5 3.5v4l-6 2v-8.5l-4.48 -4.928a2 2 0 0 1 -.52 -1.345v-2.227",key:"svg-0"}],["path",{d:"M3 3l18 18",key:"svg-1"}]])},28200:(a,t,e)=>{e.d(t,{A:()=>n});var n=(0,e(41495).A)("outline","tags","IconTags",[["path",{d:"M3 8v4.172a2 2 0 0 0 .586 1.414l5.71 5.71a2.41 2.41 0 0 0 3.408 0l3.592 -3.592a2.41 2.41 0 0 0 0 -3.408l-5.71 -5.71a2 2 0 0 0 -1.414 -.586h-4.172a2 2 0 0 0 -2 2z",key:"svg-0"}],["path",{d:"M18 19l1.592 -1.592a4.82 4.82 0 0 0 0 -6.816l-4.592 -4.592",key:"svg-1"}],["path",{d:"M7 10h-.01",key:"svg-2"}]])},28282:(a,t,e)=>{e.d(t,{A:()=>n});var n=(0,e(41495).A)("filled","pin-filled","IconPinFilled",[["path",{d:"M15.113 3.21l.094 .083l5.5 5.5a1 1 0 0 1 -1.175 1.59l-3.172 3.171l-1.424 3.797a1 1 0 0 1 -.158 .277l-.07 .08l-1.5 1.5a1 1 0 0 1 -1.32 .082l-.095 -.083l-2.793 -2.792l-3.793 3.792a1 1 0 0 1 -1.497 -1.32l.083 -.094l3.792 -3.793l-2.792 -2.793a1 1 0 0 1 -.083 -1.32l.083 -.094l1.5 -1.5a1 1 0 0 1 .258 -.187l.098 -.042l3.796 -1.425l3.171 -3.17a1 1 0 0 1 1.497 -1.26z",key:"svg-0"}]])},51058:(a,t,e)=>{e.d(t,{A:()=>n});var n=(0,e(41495).A)("outline","brand-slack","IconBrandSlack",[["path",{d:"M12 12v-6a2 2 0 0 1 4 0v6m0 -2a2 2 0 1 1 2 2h-6",key:"svg-0"}],["path",{d:"M12 12h6a2 2 0 0 1 0 4h-6m2 0a2 2 0 1 1 -2 2v-6",key:"svg-1"}],["path",{d:"M12 12v6a2 2 0 0 1 -4 0v-6m0 2a2 2 0 1 1 -2 -2h6",key:"svg-2"}],["path",{d:"M12 12h-6a2 2 0 0 1 0 -4h6m-2 0a2 2 0 1 1 2 -2v6",key:"svg-3"}]])},61982:(a,t,e)=>{e.d(t,{p:()=>u});var n=e(6029);e(55729);var i=e(69626),o=e(5618),s=e(15862),l=e(80616),r=e(37666),d=e(60481),c=e(43016),v=e(94720),h=e(66152),g=e(56738),p={root:"m_6e45937b",loader:"m_e8eb006c",overlay:"m_df587f17"};let y={transitionProps:{transition:"fade",duration:0},overlayProps:{backgroundOpacity:.75},zIndex:(0,i.I)("overlay")},m=(0,o.V)((a,{zIndex:t})=>({root:{"--lo-z-index":t?.toString()}})),u=(0,c.P9)((a,t)=>{let e=(0,l.Y)("LoadingOverlay",y,a),{classNames:i,className:o,style:c,styles:u,unstyled:x,vars:M,transitionProps:k,loaderProps:C,overlayProps:f,visible:P,zIndex:j,...L}=e,b=(0,s.xd)(),w=(0,r.I)({name:"LoadingOverlay",classes:p,props:e,className:o,style:c,classNames:i,styles:u,unstyled:x,vars:M,varsResolver:m}),z={...y.overlayProps,...f};return(0,n.jsx)(g.e,{transition:"fade",...k,mounted:!!P,children:a=>(0,n.jsxs)(d.a,{...w("root",{style:a}),ref:t,...L,children:[(0,n.jsx)(v.a,{...w("loader"),unstyled:x,...C}),(0,n.jsx)(h.h,{...z,...w("overlay"),darkHidden:!0,unstyled:x,color:f?.color||b.white}),(0,n.jsx)(h.h,{...z,...w("overlay"),lightHidden:!0,unstyled:x,color:f?.color||b.colors.dark[5]})]})})});u.classes=p,u.displayName="@mantine/core/LoadingOverlay"},64490:(a,t,e)=>{e.d(t,{A:()=>n});var n=(0,e(41495).A)("outline","pin","IconPin",[["path",{d:"M15 4.5l-4 4l-4 1.5l-1.5 1.5l7 7l1.5 -1.5l1.5 -4l4 -4",key:"svg-0"}],["path",{d:"M9 15l-4.5 4.5",key:"svg-1"}],["path",{d:"M14.5 4l5.5 5.5",key:"svg-2"}]])},68934:(a,t,e)=>{e.d(t,{C:()=>s});var n=e(55729),i=e(95913),o=e(93251);function s(a,t){let e=(0,o.jE)(t),s=e.getQueryCache();return n.useSyncExternalStore(n.useCallback(a=>s.subscribe(i.j.batchCalls(a)),[s]),()=>e.isFetching(a),()=>e.isFetching(a))}},78482:(a,t,e)=>{e.d(t,{d:()=>T});var n=e(6029),i=e(55729),o=e(80616),s=e(43016),l=e(3635),r=e(8737);let[d,c]=(0,e(36254).F)("Pagination.Root component was not found in tree");var v={root:"m_4addd315",control:"m_326d024a",dots:"m_4ad7767d"};let h={withPadding:!0},g=(0,s.P9)((a,t)=>{let{classNames:e,className:i,style:s,styles:l,vars:d,active:v,disabled:g,withPadding:p,mod:y,...m}=(0,o.Y)("PaginationControl",h,a),u=c(),x=g||u.disabled;return(0,n.jsx)(r.N,{ref:t,disabled:x,mod:[{active:v,disabled:x,"with-padding":p},y],...u.getStyles("control",{className:i,style:s,classNames:e,styles:l,active:!x}),...m})});g.classes=v,g.displayName="@mantine/core/PaginationControl";var p=e(60481);function y({style:a,children:t,path:e,...i}){return(0,n.jsx)("svg",{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",style:{width:"calc(var(--pagination-control-size) / 1.8)",height:"calc(var(--pagination-control-size) / 1.8)",...a},...i,children:(0,n.jsx)("path",{d:e,fill:"currentColor"})})}let m={icon:a=>(0,n.jsx)(y,{...a,path:"M2 8c0-.733.6-1.333 1.333-1.333.734 0 1.334.6 1.334 1.333s-.6 1.333-1.334 1.333C2.6 9.333 2 8.733 2 8zm9.333 0c0-.733.6-1.333 1.334-1.333C13.4 6.667 14 7.267 14 8s-.6 1.333-1.333 1.333c-.734 0-1.334-.6-1.334-1.333zM6.667 8c0-.733.6-1.333 1.333-1.333s1.333.6 1.333 1.333S8.733 9.333 8 9.333 6.667 8.733 6.667 8z"})},u=(0,s.P9)((a,t)=>{let{classNames:e,className:i,style:s,styles:l,vars:r,icon:d,...v}=(0,o.Y)("PaginationDots",m,a),h=c();return(0,n.jsx)(p.a,{ref:t,...h.getStyles("dots",{className:i,style:s,styles:l,classNames:e}),...v,children:(0,n.jsx)(d,{style:{width:"calc(var(--pagination-control-size) / 1.8)",height:"calc(var(--pagination-control-size) / 1.8)"}})})});u.classes=v,u.displayName="@mantine/core/PaginationDots";var x=e(61301);function M({icon:a,name:t,action:e,type:s}){let l={icon:a},r=(0,i.forwardRef)((a,i)=>{let{icon:r,...d}=(0,o.Y)(t,l,a),v=c(),h="next"===s?v.active===v.total:1===v.active;return(0,n.jsx)(g,{disabled:v.disabled||h,ref:i,onClick:v[e],withPadding:!1,...d,children:(0,n.jsx)(r,{className:"mantine-rotate-rtl",style:{width:"calc(var(--pagination-control-size) / 1.8)",height:"calc(var(--pagination-control-size) / 1.8)"}})})});return r.displayName=`@mantine/core/${t}`,(0,x.K)(r)}let k=M({icon:a=>(0,n.jsx)(y,{...a,path:"M8.781 8l-3.3-3.3.943-.943L10.667 8l-4.243 4.243-.943-.943 3.3-3.3z"}),name:"PaginationNext",action:"onNext",type:"next"}),C=M({icon:a=>(0,n.jsx)(y,{...a,path:"M7.219 8l3.3 3.3-.943.943L5.333 8l4.243-4.243.943.943-3.3 3.3z"}),name:"PaginationPrevious",action:"onPrevious",type:"previous"}),f=M({icon:a=>(0,n.jsx)(y,{...a,path:"M6.85355 3.85355C7.04882 3.65829 7.04882 3.34171 6.85355 3.14645C6.65829 2.95118 6.34171 2.95118 6.14645 3.14645L2.14645 7.14645C1.95118 7.34171 1.95118 7.65829 2.14645 7.85355L6.14645 11.8536C6.34171 12.0488 6.65829 12.0488 6.85355 11.8536C7.04882 11.6583 7.04882 11.3417 6.85355 11.1464L3.20711 7.5L6.85355 3.85355ZM12.8536 3.85355C13.0488 3.65829 13.0488 3.34171 12.8536 3.14645C12.6583 2.95118 12.3417 2.95118 12.1464 3.14645L8.14645 7.14645C7.95118 7.34171 7.95118 7.65829 8.14645 7.85355L12.1464 11.8536C12.3417 12.0488 12.6583 12.0488 12.8536 11.8536C13.0488 11.6583 13.0488 11.3417 12.8536 11.1464L9.20711 7.5L12.8536 3.85355Z"}),name:"PaginationFirst",action:"onFirst",type:"previous"}),P=M({icon:a=>(0,n.jsx)(y,{...a,path:"M2.14645 11.1464C1.95118 11.3417 1.95118 11.6583 2.14645 11.8536C2.34171 12.0488 2.65829 12.0488 2.85355 11.8536L6.85355 7.85355C7.04882 7.65829 7.04882 7.34171 6.85355 7.14645L2.85355 3.14645C2.65829 2.95118 2.34171 2.95118 2.14645 3.14645C1.95118 3.34171 1.95118 3.65829 2.14645 3.85355L5.79289 7.5L2.14645 11.1464ZM8.14645 11.1464C7.95118 11.3417 7.95118 11.6583 8.14645 11.8536C8.34171 12.0488 8.65829 12.0488 8.85355 11.8536L12.8536 7.85355C13.0488 7.65829 13.0488 7.34171 12.8536 7.14645L8.85355 3.14645C8.65829 2.95118 8.34171 2.95118 8.14645 3.14645C7.95118 3.34171 7.95118 3.65829 8.14645 3.85355L11.7929 7.5L8.14645 11.1464Z"}),name:"PaginationLast",action:"onLast",type:"next"});function j({dotsIcon:a}){let t=c(),e=t.range.map((e,i)=>"dots"===e?(0,n.jsx)(u,{icon:a},i):(0,n.jsx)(g,{active:e===t.active,"aria-current":e===t.active?"page":void 0,onClick:()=>t.onChange(e),disabled:t.disabled,...t.getItemProps?.(e),children:t.getItemProps?.(e)?.children??e},i));return(0,n.jsx)(n.Fragment,{children:e})}j.displayName="@mantine/core/PaginationItems";var L=e(3001);function b(a,t){return Array.from({length:t-a+1},(t,e)=>e+a)}let w="dots";var z=e(76),A=e(72448),I=e(5618),N=e(66404),F=e(92096),_=e(35192),Y=e(37666);let S={siblings:1,boundaries:1},O=(0,I.V)((a,{size:t,radius:e,color:n,autoContrast:i})=>({root:{"--pagination-control-radius":void 0===e?void 0:(0,z.nJ)(e),"--pagination-control-size":(0,z.YC)(t,"pagination-control-size"),"--pagination-control-fz":(0,z.ny)(t),"--pagination-active-bg":n?(0,N.r)(n,a):void 0,"--pagination-active-color":(0,_.v)(i,a)?(0,F.w)({color:n,theme:a,autoContrast:i}):void 0}})),E=(0,s.P9)((a,t)=>{let e=(0,o.Y)("PaginationRoot",S,a),{classNames:s,className:l,style:r,styles:c,unstyled:h,vars:g,total:y,value:m,defaultValue:u,onChange:x,disabled:M,siblings:k,boundaries:C,color:f,radius:P,onNextPage:j,onPreviousPage:z,onFirstPage:I,onLastPage:N,getItemProps:F,autoContrast:_,...E}=e,R=(0,Y.I)({name:"Pagination",classes:v,props:e,className:l,style:r,classNames:s,styles:c,unstyled:h,vars:g,varsResolver:O}),{range:T,setPage:V,next:Z,previous:B,active:D,first:H,last:J}=function({total:a,siblings:t=1,boundaries:e=1,page:n,initialPage:o=1,onChange:s}){let l=Math.max(Math.trunc(a),0),[r,d]=(0,L.Z)({value:n,onChange:s,defaultValue:o,finalValue:o}),c=a=>{a<=0?d(1):a>l?d(l):d(a)};return{range:(0,i.useMemo)(()=>{if(2*t+3+2*e>=l)return b(1,l);let a=Math.max(r-t,e),n=Math.min(r+t,l-e),i=a>e+2,o=nc(r+1),previous:()=>c(r-1),first:()=>c(1),last:()=>c(l)}}({page:m,initialPage:u,onChange:x,total:y,siblings:k,boundaries:C}),K=(0,A.T)(j,Z),Q=(0,A.T)(z,B),$=(0,A.T)(I,H),q=(0,A.T)(N,J);return(0,n.jsx)(d,{value:{total:y,range:T,active:D,disabled:M,getItemProps:F,onChange:V,onNext:K,onPrevious:Q,onFirst:$,onLast:q,getStyles:R},children:(0,n.jsx)(p.a,{ref:t,...R("root"),...E})})});E.classes=v,E.displayName="@mantine/core/PaginationRoot";let R={withControls:!0,withPages:!0,siblings:1,boundaries:1,gap:8},T=(0,s.P9)((a,t)=>{let{withEdges:e,withControls:i,getControlProps:s,nextIcon:r,previousIcon:d,lastIcon:c,firstIcon:v,dotsIcon:h,total:g,gap:p,hideWithOnePage:y,withPages:m,...u}=(0,o.Y)("Pagination",R,a);return g<=0||y&&1===g?null:(0,n.jsx)(E,{ref:t,total:g,...u,children:(0,n.jsxs)(l.Y,{gap:p,children:[e&&(0,n.jsx)(f,{icon:v,...s?.("first")}),i&&(0,n.jsx)(C,{icon:d,...s?.("previous")}),m&&(0,n.jsx)(j,{dotsIcon:h}),i&&(0,n.jsx)(k,{icon:r,...s?.("next")}),e&&(0,n.jsx)(P,{icon:c,...s?.("last")})]})})});T.classes=v,T.displayName="@mantine/core/Pagination",T.Root=E,T.Control=g,T.Dots=u,T.First=f,T.Last=P,T.Next=k,T.Previous=C,T.Items=j},83171:(a,t,e)=>{e.d(t,{m:()=>g});var n=e(6029);e(55729);var i=e(76),o=e(5618),s=e(80616),l=e(37666),r=e(60481),d=e(43016),c={root:"m_7485cace"};let v={},h=(0,o.V)((a,{size:t,fluid:e})=>({root:{"--container-size":e?void 0:(0,i.YC)(t,"container-size")}})),g=(0,d.P9)((a,t)=>{let e=(0,s.Y)("Container",v,a),{classNames:i,className:o,style:d,styles:g,unstyled:p,vars:y,fluid:m,mod:u,...x}=e,M=(0,l.I)({name:"Container",classes:c,props:e,className:o,style:d,classNames:i,styles:g,unstyled:p,vars:y,varsResolver:h});return(0,n.jsx)(r.a,{ref:t,mod:[{fluid:m},u],...M("root"),...x})});g.classes=c,g.displayName="@mantine/core/Container"},90586:(a,t,e)=>{e.d(t,{A:()=>n});var n=(0,e(41495).A)("outline","forms","IconForms",[["path",{d:"M12 3a3 3 0 0 0 -3 3v12a3 3 0 0 0 3 3",key:"svg-0"}],["path",{d:"M6 3a3 3 0 0 1 3 3v12a3 3 0 0 1 -3 3",key:"svg-1"}],["path",{d:"M13 7h7a1 1 0 0 1 1 1v8a1 1 0 0 1 -1 1h-7",key:"svg-2"}],["path",{d:"M5 7h-1a1 1 0 0 0 -1 1v8a1 1 0 0 0 1 1h1",key:"svg-3"}],["path",{d:"M17 12h.01",key:"svg-4"}],["path",{d:"M13 12h.01",key:"svg-5"}]])},93607:(a,t,e)=>{e.d(t,{A:()=>n});var n=(0,e(41495).A)("outline","shadow","IconShadow",[["path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",key:"svg-0"}],["path",{d:"M13 12h5",key:"svg-1"}],["path",{d:"M13 15h4",key:"svg-2"}],["path",{d:"M13 18h1",key:"svg-3"}],["path",{d:"M13 9h4",key:"svg-4"}],["path",{d:"M13 6h1",key:"svg-5"}]])},95009:(a,t,e)=>{e.d(t,{A:()=>n});var n=(0,e(41495).A)("outline","chart-bar-off","IconChartBarOff",[["path",{d:"M3 12m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v6a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z",key:"svg-0"}],["path",{d:"M12 8h2a1 1 0 0 1 1 1v2m0 4v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1v-10",key:"svg-1"}],["path",{d:"M15 11v-6a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v12m-1 3h-4a1 1 0 0 1 -1 -1v-4",key:"svg-2"}],["path",{d:"M4 20h14",key:"svg-3"}],["path",{d:"M3 3l18 18",key:"svg-4"}]])},96556:(a,t,e)=>{e.d(t,{A:()=>n});var n=(0,e(41495).A)("outline","exclamation-circle","IconExclamationCircle",[["path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",key:"svg-0"}],["path",{d:"M12 9v4",key:"svg-1"}],["path",{d:"M12 16v.01",key:"svg-2"}]])}}]); \ No newline at end of file +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8462],{3562:(a,t,e)=>{e.d(t,{A:()=>n});var n=(0,e(41495).A)("outline","filter-off","IconFilterOff",[["path",{d:"M8 4h12v2.172a2 2 0 0 1 -.586 1.414l-3.914 3.914m-.5 3.5v4l-6 2v-8.5l-4.48 -4.928a2 2 0 0 1 -.52 -1.345v-2.227",key:"svg-0"}],["path",{d:"M3 3l18 18",key:"svg-1"}]])},28200:(a,t,e)=>{e.d(t,{A:()=>n});var n=(0,e(41495).A)("outline","tags","IconTags",[["path",{d:"M3 8v4.172a2 2 0 0 0 .586 1.414l5.71 5.71a2.41 2.41 0 0 0 3.408 0l3.592 -3.592a2.41 2.41 0 0 0 0 -3.408l-5.71 -5.71a2 2 0 0 0 -1.414 -.586h-4.172a2 2 0 0 0 -2 2z",key:"svg-0"}],["path",{d:"M18 19l1.592 -1.592a4.82 4.82 0 0 0 0 -6.816l-4.592 -4.592",key:"svg-1"}],["path",{d:"M7 10h-.01",key:"svg-2"}]])},28282:(a,t,e)=>{e.d(t,{A:()=>n});var n=(0,e(41495).A)("filled","pin-filled","IconPinFilled",[["path",{d:"M15.113 3.21l.094 .083l5.5 5.5a1 1 0 0 1 -1.175 1.59l-3.172 3.171l-1.424 3.797a1 1 0 0 1 -.158 .277l-.07 .08l-1.5 1.5a1 1 0 0 1 -1.32 .082l-.095 -.083l-2.793 -2.792l-3.793 3.792a1 1 0 0 1 -1.497 -1.32l.083 -.094l3.792 -3.793l-2.792 -2.793a1 1 0 0 1 -.083 -1.32l.083 -.094l1.5 -1.5a1 1 0 0 1 .258 -.187l.098 -.042l3.796 -1.425l3.171 -3.17a1 1 0 0 1 1.497 -1.26z",key:"svg-0"}]])},51058:(a,t,e)=>{e.d(t,{A:()=>n});var n=(0,e(41495).A)("outline","brand-slack","IconBrandSlack",[["path",{d:"M12 12v-6a2 2 0 0 1 4 0v6m0 -2a2 2 0 1 1 2 2h-6",key:"svg-0"}],["path",{d:"M12 12h6a2 2 0 0 1 0 4h-6m2 0a2 2 0 1 1 -2 2v-6",key:"svg-1"}],["path",{d:"M12 12v6a2 2 0 0 1 -4 0v-6m0 2a2 2 0 1 1 -2 -2h6",key:"svg-2"}],["path",{d:"M12 12h-6a2 2 0 0 1 0 -4h6m-2 0a2 2 0 1 1 2 -2v6",key:"svg-3"}]])},61982:(a,t,e)=>{e.d(t,{p:()=>m});var n=e(6029);e(55729);var i=e(69626),o=e(5618),s=e(15862),l=e(80616),r=e(37666),d=e(60481),c=e(43016),v=e(94720),h=e(66152),g=e(56738),p={root:"m_6e45937b",loader:"m_e8eb006c",overlay:"m_df587f17"};let u={transitionProps:{transition:"fade",duration:0},overlayProps:{backgroundOpacity:.75},zIndex:(0,i.I)("overlay")},y=(0,o.V)((a,{zIndex:t})=>({root:{"--lo-z-index":t?.toString()}})),m=(0,c.P9)((a,t)=>{let e=(0,l.Y)("LoadingOverlay",u,a),{classNames:i,className:o,style:c,styles:m,unstyled:x,vars:C,transitionProps:M,loaderProps:k,overlayProps:f,visible:P,zIndex:j,...L}=e,b=(0,s.xd)(),w=(0,r.I)({name:"LoadingOverlay",classes:p,props:e,className:o,style:c,classNames:i,styles:m,unstyled:x,vars:C,varsResolver:y}),z={...u.overlayProps,...f};return(0,n.jsx)(g.e,{transition:"fade",...M,mounted:!!P,children:a=>(0,n.jsxs)(d.a,{...w("root",{style:a}),ref:t,...L,children:[(0,n.jsx)(v.a,{...w("loader"),unstyled:x,...k}),(0,n.jsx)(h.h,{...z,...w("overlay"),darkHidden:!0,unstyled:x,color:f?.color||b.white}),(0,n.jsx)(h.h,{...z,...w("overlay"),lightHidden:!0,unstyled:x,color:f?.color||b.colors.dark[5]})]})})});m.classes=p,m.displayName="@mantine/core/LoadingOverlay"},64490:(a,t,e)=>{e.d(t,{A:()=>n});var n=(0,e(41495).A)("outline","pin","IconPin",[["path",{d:"M15 4.5l-4 4l-4 1.5l-1.5 1.5l7 7l1.5 -1.5l1.5 -4l4 -4",key:"svg-0"}],["path",{d:"M9 15l-4.5 4.5",key:"svg-1"}],["path",{d:"M14.5 4l5.5 5.5",key:"svg-2"}]])},68934:(a,t,e)=>{e.d(t,{C:()=>s});var n=e(55729),i=e(95913),o=e(93251);function s(a,t){let e=(0,o.jE)(t),s=e.getQueryCache();return n.useSyncExternalStore(n.useCallback(a=>s.subscribe(i.j.batchCalls(a)),[s]),()=>e.isFetching(a),()=>e.isFetching(a))}},78482:(a,t,e)=>{e.d(t,{d:()=>V});var n=e(6029),i=e(55729),o=e(80616),s=e(43016),l=e(3635),r=e(8737);let[d,c]=(0,e(36254).F)("Pagination.Root component was not found in tree");var v={root:"m_4addd315",control:"m_326d024a",dots:"m_4ad7767d"};let h={withPadding:!0},g=(0,s.P9)((a,t)=>{let{classNames:e,className:i,style:s,styles:l,vars:d,active:v,disabled:g,withPadding:p,mod:u,...y}=(0,o.Y)("PaginationControl",h,a),m=c(),x=g||m.disabled;return(0,n.jsx)(r.N,{ref:t,disabled:x,mod:[{active:v,disabled:x,"with-padding":p},u],...m.getStyles("control",{className:i,style:s,classNames:e,styles:l,active:!x}),...y})});g.classes=v,g.displayName="@mantine/core/PaginationControl";var p=e(60481);function u({style:a,children:t,path:e,...i}){return(0,n.jsx)("svg",{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",style:{width:"calc(var(--pagination-control-size) / 1.8)",height:"calc(var(--pagination-control-size) / 1.8)",...a},...i,children:(0,n.jsx)("path",{d:e,fill:"currentColor"})})}let y={icon:a=>(0,n.jsx)(u,{...a,path:"M2 8c0-.733.6-1.333 1.333-1.333.734 0 1.334.6 1.334 1.333s-.6 1.333-1.334 1.333C2.6 9.333 2 8.733 2 8zm9.333 0c0-.733.6-1.333 1.334-1.333C13.4 6.667 14 7.267 14 8s-.6 1.333-1.333 1.333c-.734 0-1.334-.6-1.334-1.333zM6.667 8c0-.733.6-1.333 1.333-1.333s1.333.6 1.333 1.333S8.733 9.333 8 9.333 6.667 8.733 6.667 8z"})},m=(0,s.P9)((a,t)=>{let{classNames:e,className:i,style:s,styles:l,vars:r,icon:d,...v}=(0,o.Y)("PaginationDots",y,a),h=c();return(0,n.jsx)(p.a,{ref:t,...h.getStyles("dots",{className:i,style:s,styles:l,classNames:e}),...v,children:(0,n.jsx)(d,{style:{width:"calc(var(--pagination-control-size) / 1.8)",height:"calc(var(--pagination-control-size) / 1.8)"}})})});m.classes=v,m.displayName="@mantine/core/PaginationDots";var x=e(61301);function C({icon:a,name:t,action:e,type:s}){let l={icon:a},r=(0,i.forwardRef)((a,i)=>{let{icon:r,...d}=(0,o.Y)(t,l,a),v=c(),h="next"===s?v.active===v.total:1===v.active;return(0,n.jsx)(g,{disabled:v.disabled||h,ref:i,onClick:v[e],withPadding:!1,...d,children:(0,n.jsx)(r,{className:"mantine-rotate-rtl",style:{width:"calc(var(--pagination-control-size) / 1.8)",height:"calc(var(--pagination-control-size) / 1.8)"}})})});return r.displayName=`@mantine/core/${t}`,(0,x.K)(r)}let M=C({icon:a=>(0,n.jsx)(u,{...a,path:"M8.781 8l-3.3-3.3.943-.943L10.667 8l-4.243 4.243-.943-.943 3.3-3.3z"}),name:"PaginationNext",action:"onNext",type:"next"}),k=C({icon:a=>(0,n.jsx)(u,{...a,path:"M7.219 8l3.3 3.3-.943.943L5.333 8l4.243-4.243.943.943-3.3 3.3z"}),name:"PaginationPrevious",action:"onPrevious",type:"previous"}),f=C({icon:a=>(0,n.jsx)(u,{...a,path:"M6.85355 3.85355C7.04882 3.65829 7.04882 3.34171 6.85355 3.14645C6.65829 2.95118 6.34171 2.95118 6.14645 3.14645L2.14645 7.14645C1.95118 7.34171 1.95118 7.65829 2.14645 7.85355L6.14645 11.8536C6.34171 12.0488 6.65829 12.0488 6.85355 11.8536C7.04882 11.6583 7.04882 11.3417 6.85355 11.1464L3.20711 7.5L6.85355 3.85355ZM12.8536 3.85355C13.0488 3.65829 13.0488 3.34171 12.8536 3.14645C12.6583 2.95118 12.3417 2.95118 12.1464 3.14645L8.14645 7.14645C7.95118 7.34171 7.95118 7.65829 8.14645 7.85355L12.1464 11.8536C12.3417 12.0488 12.6583 12.0488 12.8536 11.8536C13.0488 11.6583 13.0488 11.3417 12.8536 11.1464L9.20711 7.5L12.8536 3.85355Z"}),name:"PaginationFirst",action:"onFirst",type:"previous"}),P=C({icon:a=>(0,n.jsx)(u,{...a,path:"M2.14645 11.1464C1.95118 11.3417 1.95118 11.6583 2.14645 11.8536C2.34171 12.0488 2.65829 12.0488 2.85355 11.8536L6.85355 7.85355C7.04882 7.65829 7.04882 7.34171 6.85355 7.14645L2.85355 3.14645C2.65829 2.95118 2.34171 2.95118 2.14645 3.14645C1.95118 3.34171 1.95118 3.65829 2.14645 3.85355L5.79289 7.5L2.14645 11.1464ZM8.14645 11.1464C7.95118 11.3417 7.95118 11.6583 8.14645 11.8536C8.34171 12.0488 8.65829 12.0488 8.85355 11.8536L12.8536 7.85355C13.0488 7.65829 13.0488 7.34171 12.8536 7.14645L8.85355 3.14645C8.65829 2.95118 8.34171 2.95118 8.14645 3.14645C7.95118 3.34171 7.95118 3.65829 8.14645 3.85355L11.7929 7.5L8.14645 11.1464Z"}),name:"PaginationLast",action:"onLast",type:"next"});function j({dotsIcon:a}){let t=c(),e=t.range.map((e,i)=>"dots"===e?(0,n.jsx)(m,{icon:a},i):(0,n.jsx)(g,{active:e===t.active,"aria-current":e===t.active?"page":void 0,onClick:()=>t.onChange(e),disabled:t.disabled,...t.getItemProps?.(e),children:t.getItemProps?.(e)?.children??e},i));return(0,n.jsx)(n.Fragment,{children:e})}j.displayName="@mantine/core/PaginationItems";var L=e(3001);function b(a,t){return Array.from({length:t-a+1},(t,e)=>e+a)}let w="dots";var z=e(76),A=e(72448),I=e(5618),N=e(66404),F=e(92096),_=e(35192),Y=e(37666);let S={siblings:1,boundaries:1},O=(0,I.V)((a,{size:t,radius:e,color:n,autoContrast:i})=>({root:{"--pagination-control-radius":void 0===e?void 0:(0,z.nJ)(e),"--pagination-control-size":(0,z.YC)(t,"pagination-control-size"),"--pagination-control-fz":(0,z.ny)(t),"--pagination-active-bg":n?(0,N.r)(n,a):void 0,"--pagination-active-color":(0,_.v)(i,a)?(0,F.w)({color:n,theme:a,autoContrast:i}):void 0}})),R=(0,s.P9)((a,t)=>{let e=(0,o.Y)("PaginationRoot",S,a),{classNames:s,className:l,style:r,styles:c,unstyled:h,vars:g,total:u,value:y,defaultValue:m,onChange:x,disabled:C,siblings:M,boundaries:k,color:f,radius:P,onNextPage:j,onPreviousPage:z,onFirstPage:I,onLastPage:N,getItemProps:F,autoContrast:_,...R}=e,T=(0,Y.I)({name:"Pagination",classes:v,props:e,className:l,style:r,classNames:s,styles:c,unstyled:h,vars:g,varsResolver:O}),{range:V,setPage:Z,next:E,previous:B,active:D,first:H,last:J}=function({total:a,siblings:t=1,boundaries:e=1,page:n,initialPage:o=1,onChange:s}){let l=Math.max(Math.trunc(a),0),[r,d]=(0,L.Z)({value:n,onChange:s,defaultValue:o,finalValue:o}),c=a=>{a<=0?d(1):a>l?d(l):d(a)};return{range:(0,i.useMemo)(()=>{if(2*t+3+2*e>=l)return b(1,l);let a=Math.max(r-t,e),n=Math.min(r+t,l-e),i=a>e+2,o=nc(r+1),previous:()=>c(r-1),first:()=>c(1),last:()=>c(l)}}({page:y,initialPage:m,onChange:x,total:u,siblings:M,boundaries:k}),K=(0,A.T)(j,E),Q=(0,A.T)(z,B),$=(0,A.T)(I,H),q=(0,A.T)(N,J);return(0,n.jsx)(d,{value:{total:u,range:V,active:D,disabled:C,getItemProps:F,onChange:Z,onNext:K,onPrevious:Q,onFirst:$,onLast:q,getStyles:T},children:(0,n.jsx)(p.a,{ref:t,...T("root"),...R})})});R.classes=v,R.displayName="@mantine/core/PaginationRoot";let T={withControls:!0,withPages:!0,siblings:1,boundaries:1,gap:8},V=(0,s.P9)((a,t)=>{let{withEdges:e,withControls:i,getControlProps:s,nextIcon:r,previousIcon:d,lastIcon:c,firstIcon:v,dotsIcon:h,total:g,gap:p,hideWithOnePage:u,withPages:y,...m}=(0,o.Y)("Pagination",T,a);return g<=0||u&&1===g?null:(0,n.jsx)(R,{ref:t,total:g,...m,children:(0,n.jsxs)(l.Y,{gap:p,children:[e&&(0,n.jsx)(f,{icon:v,...s?.("first")}),i&&(0,n.jsx)(k,{icon:d,...s?.("previous")}),y&&(0,n.jsx)(j,{dotsIcon:h}),i&&(0,n.jsx)(M,{icon:r,...s?.("next")}),e&&(0,n.jsx)(P,{icon:c,...s?.("last")})]})})});V.classes=v,V.displayName="@mantine/core/Pagination",V.Root=R,V.Control=g,V.Dots=m,V.First=f,V.Last=P,V.Next=M,V.Previous=k,V.Items=j},83171:(a,t,e)=>{e.d(t,{m:()=>g});var n=e(6029);e(55729);var i=e(76),o=e(5618),s=e(80616),l=e(37666),r=e(60481),d=e(43016),c={root:"m_7485cace"};let v={},h=(0,o.V)((a,{size:t,fluid:e})=>({root:{"--container-size":e?void 0:(0,i.YC)(t,"container-size")}})),g=(0,d.P9)((a,t)=>{let e=(0,s.Y)("Container",v,a),{classNames:i,className:o,style:d,styles:g,unstyled:p,vars:u,fluid:y,mod:m,...x}=e,C=(0,l.I)({name:"Container",classes:c,props:e,className:o,style:d,classNames:i,styles:g,unstyled:p,vars:u,varsResolver:h});return(0,n.jsx)(r.a,{ref:t,mod:[{fluid:y},m],...C("root"),...x})});g.classes=c,g.displayName="@mantine/core/Container"},90586:(a,t,e)=>{e.d(t,{A:()=>n});var n=(0,e(41495).A)("outline","forms","IconForms",[["path",{d:"M12 3a3 3 0 0 0 -3 3v12a3 3 0 0 0 3 3",key:"svg-0"}],["path",{d:"M6 3a3 3 0 0 1 3 3v12a3 3 0 0 1 -3 3",key:"svg-1"}],["path",{d:"M13 7h7a1 1 0 0 1 1 1v8a1 1 0 0 1 -1 1h-7",key:"svg-2"}],["path",{d:"M5 7h-1a1 1 0 0 0 -1 1v8a1 1 0 0 0 1 1h1",key:"svg-3"}],["path",{d:"M17 12h.01",key:"svg-4"}],["path",{d:"M13 12h.01",key:"svg-5"}]])},93607:(a,t,e)=>{e.d(t,{A:()=>n});var n=(0,e(41495).A)("outline","shadow","IconShadow",[["path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",key:"svg-0"}],["path",{d:"M13 12h5",key:"svg-1"}],["path",{d:"M13 15h4",key:"svg-2"}],["path",{d:"M13 18h1",key:"svg-3"}],["path",{d:"M13 9h4",key:"svg-4"}],["path",{d:"M13 6h1",key:"svg-5"}]])},95009:(a,t,e)=>{e.d(t,{A:()=>n});var n=(0,e(41495).A)("outline","chart-bar-off","IconChartBarOff",[["path",{d:"M3 12m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v6a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z",key:"svg-0"}],["path",{d:"M12 8h2a1 1 0 0 1 1 1v2m0 4v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1v-10",key:"svg-1"}],["path",{d:"M15 11v-6a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v12m-1 3h-4a1 1 0 0 1 -1 -1v-4",key:"svg-2"}],["path",{d:"M4 20h14",key:"svg-3"}],["path",{d:"M3 3l18 18",key:"svg-4"}]])}}]); \ No newline at end of file diff --git a/out/_next/static/chunks/8718-9a62d679fdd1c210.js b/out/_next/static/chunks/8718-9a62d679fdd1c210.js new file mode 100644 index 0000000..6920c96 --- /dev/null +++ b/out/_next/static/chunks/8718-9a62d679fdd1c210.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8718],{19336:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var r=(0,n(41495).A)("outline","markdown","IconMarkdown",[["path",{d:"M3 5m0 2a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2z",key:"svg-0"}],["path",{d:"M7 15v-6l2 2l2 -2v6",key:"svg-1"}],["path",{d:"M14 13l2 2l2 -2m-2 2v-6",key:"svg-2"}]])},20444:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){let n=null;if(!e||"string"!=typeof e)return n;let r=(0,i.default)(e),o="function"==typeof t;return r.forEach(e=>{if("declaration"!==e.type)return;let{property:r,value:i}=e;o?t(r,i,e):i&&((n=n||{})[r]=i)}),n};let i=r(n(47492))},27420:function(e,t,n){"use strict";var r=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n(20444)),i=n(72756);function o(e,t){var n={};return e&&"string"==typeof e&&(0,r.default)(e,function(e,r){e&&r&&(n[(0,i.camelCase)(e,t)]=r)}),n}o.default=o,e.exports=o},28392:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},l=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!o)return!1;for(r in e);return void 0===r||t.call(e,r)},a=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},u=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;else if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,s,c,f=arguments[0],p=1,d=arguments.length,h=!1;for("boolean"==typeof f&&(h=f,f=arguments[1]||{},p=2),(null==f||"object"!=typeof f&&"function"!=typeof f)&&(f={});p{"use strict";n.d(t,{A:()=>r});var r=(0,n(41495).A)("outline","chevron-left","IconChevronLeft",[["path",{d:"M15 6l-6 6l6 6",key:"svg-0"}]])},33824:(e,t,n)=>{var r=n(63958),i=n(82256),o=n(85033);e.exports=function(e,t){return e&&e.length?r(e,i(t,2),o):void 0}},42604:(e,t,n)=>{"use strict";n.d(t,{oz:()=>nI});var r={};n.r(r),n.d(r,{boolean:()=>g,booleanish:()=>y,commaOrSpaceSeparated:()=>w,commaSeparated:()=>b,number:()=>x,overloadedBoolean:()=>v,spaceSeparated:()=>k});var i={};n.r(i),n.d(i,{attentionMarkers:()=>tO,contentInitial:()=>tb,disable:()=>tC,document:()=>tk,flow:()=>tS,flowInitial:()=>tw,insideSpan:()=>tP,string:()=>tA,text:()=>tE});let o=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,l=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,a={};function u(e,t){return((t||a).jsx?l:o).test(e)}let s=/[ \t\n\f\r]/g;function c(e){return""===e.replace(s,"")}class f{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function p(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new f(n,r,t)}function d(e){return e.toLowerCase()}f.prototype.normal={},f.prototype.property={},f.prototype.space=void 0;class h{constructor(e,t){this.attribute=t,this.property=e}}h.prototype.attribute="",h.prototype.booleanish=!1,h.prototype.boolean=!1,h.prototype.commaOrSpaceSeparated=!1,h.prototype.commaSeparated=!1,h.prototype.defined=!1,h.prototype.mustUseProperty=!1,h.prototype.number=!1,h.prototype.overloadedBoolean=!1,h.prototype.property="",h.prototype.spaceSeparated=!1,h.prototype.space=void 0;let m=0,g=S(),y=S(),v=S(),x=S(),k=S(),b=S(),w=S();function S(){return 2**++m}let A=Object.keys(r);class E extends h{constructor(e,t,n,i){let o=-1;if(super(e,t),function(e,t,n){n&&(e[t]=n)}(this,"space",i),"number"==typeof n)for(;++o"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function C(e,t){return t in e?e[t]:t}function T(e,t){return C(e,t.toLowerCase())}let I=P({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:b,acceptCharset:k,accessKey:k,action:null,allow:null,allowFullScreen:g,allowPaymentRequest:g,allowUserMedia:g,alt:null,as:null,async:g,autoCapitalize:null,autoComplete:k,autoFocus:g,autoPlay:g,blocking:k,capture:null,charSet:null,checked:g,cite:null,className:k,cols:x,colSpan:null,content:null,contentEditable:y,controls:g,controlsList:k,coords:x|b,crossOrigin:null,data:null,dateTime:null,decoding:null,default:g,defer:g,dir:null,dirName:null,disabled:g,download:v,draggable:y,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:g,formTarget:null,headers:k,height:x,hidden:v,high:x,href:null,hrefLang:null,htmlFor:k,httpEquiv:k,id:null,imageSizes:null,imageSrcSet:null,inert:g,inputMode:null,integrity:null,is:null,isMap:g,itemId:null,itemProp:k,itemRef:k,itemScope:g,itemType:k,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:g,low:x,manifest:null,max:null,maxLength:x,media:null,method:null,min:null,minLength:x,multiple:g,muted:g,name:null,nonce:null,noModule:g,noValidate:g,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:g,optimum:x,pattern:null,ping:k,placeholder:null,playsInline:g,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:g,referrerPolicy:null,rel:k,required:g,reversed:g,rows:x,rowSpan:x,sandbox:k,scope:null,scoped:g,seamless:g,selected:g,shadowRootClonable:g,shadowRootDelegatesFocus:g,shadowRootMode:null,shape:null,size:x,sizes:null,slot:null,span:x,spellCheck:y,src:null,srcDoc:null,srcLang:null,srcSet:null,start:x,step:null,style:null,tabIndex:x,target:null,title:null,translate:null,type:null,typeMustMatch:g,useMap:null,value:y,width:x,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:k,axis:null,background:null,bgColor:null,border:x,borderColor:null,bottomMargin:x,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:g,declare:g,event:null,face:null,frame:null,frameBorder:null,hSpace:x,leftMargin:x,link:null,longDesc:null,lowSrc:null,marginHeight:x,marginWidth:x,noResize:g,noHref:g,noShade:g,noWrap:g,object:null,profile:null,prompt:null,rev:null,rightMargin:x,rules:null,scheme:null,scrolling:y,standby:null,summary:null,text:null,topMargin:x,valueType:null,version:null,vAlign:null,vLink:null,vSpace:x,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:g,disableRemotePlayback:g,prefix:null,property:null,results:x,security:null,unselectable:null},space:"html",transform:T}),L=P({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:w,accentHeight:x,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:x,amplitude:x,arabicForm:null,ascent:x,attributeName:null,attributeType:null,azimuth:x,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:x,by:null,calcMode:null,capHeight:x,className:k,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:x,diffuseConstant:x,direction:null,display:null,dur:null,divisor:x,dominantBaseline:null,download:g,dx:null,dy:null,edgeMode:null,editable:null,elevation:x,enableBackground:null,end:null,event:null,exponent:x,externalResourcesRequired:null,fill:null,fillOpacity:x,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:b,g2:b,glyphName:b,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:x,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:x,horizOriginX:x,horizOriginY:x,id:null,ideographic:x,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:x,k:x,k1:x,k2:x,k3:x,k4:x,kernelMatrix:w,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:x,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:x,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:x,overlineThickness:x,paintOrder:null,panose1:null,path:null,pathLength:x,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:k,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:x,pointsAtY:x,pointsAtZ:x,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:w,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:w,rev:w,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:w,requiredFeatures:w,requiredFonts:w,requiredFormats:w,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:x,specularExponent:x,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:x,strikethroughThickness:x,string:null,stroke:null,strokeDashArray:w,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:x,strokeOpacity:x,strokeWidth:null,style:null,surfaceScale:x,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:w,tabIndex:x,tableValues:null,target:null,targetX:x,targetY:x,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:w,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:x,underlineThickness:x,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:x,values:null,vAlphabetic:x,vMathematical:x,vectorEffect:null,vHanging:x,vIdeographic:x,version:null,vertAdvY:x,vertOriginX:x,vertOriginY:x,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:x,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:C}),D=P({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),j=P({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:T}),M=P({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),R=p([O,I,D,j,M],"html"),z=p([O,L,D,j,M],"svg"),F=/[A-Z]/g,N=/-[a-z]/g,_=/^data[-\w.:]+$/i;function B(e){return"-"+e.toLowerCase()}function U(e){return e.charAt(1).toUpperCase()}let H={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var V=n(27420);let q=K("end"),W=K("start");function K(e){return function(t){let n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function J(e){return e&&"object"==typeof e?"position"in e||"type"in e?Q(e.position):"start"in e||"end"in e?Q(e):"line"in e||"column"in e?Z(e):"":""}function Z(e){return X(e&&e.line)+":"+X(e&&e.column)}function Q(e){return Z(e&&e.start)+"-"+Z(e&&e.end)}function X(e){return e&&"number"==typeof e?e:1}class $ extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",i={},o=!1;if(t&&(i="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!i.cause&&e&&(o=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&"string"==typeof n){const e=n.indexOf(":");-1===e?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){const e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}const l=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=l?l.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=l?l.line:void 0,this.name=J(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=o&&i.cause&&"string"==typeof i.cause.stack?i.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}$.prototype.file="",$.prototype.name="",$.prototype.reason="",$.prototype.message="",$.prototype.stack="",$.prototype.column=void 0,$.prototype.line=void 0,$.prototype.ancestors=void 0,$.prototype.cause=void 0,$.prototype.fatal=void 0,$.prototype.place=void 0,$.prototype.ruleId=void 0,$.prototype.source=void 0;let Y={}.hasOwnProperty,G=new Map,ee=/[A-Z]/g,et=new Set(["table","tbody","thead","tfoot","tr"]),en=new Set(["td","th"]),er="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function ei(e,t,n){var r,i,o,l,a,u,s,f,p;let m,g,y,v,x,k,b,w,S,A,P;return"element"===t.type?(r=e,i=t,o=n,g=m=r.schema,"svg"===i.tagName.toLowerCase()&&"html"===m.space&&(r.schema=z),r.ancestors.push(i),y=eu(r,i.tagName,!1),v=function(e,t){let n,r,i={};for(r in t.properties)if("children"!==r&&Y.call(t.properties,r)){let o=function(e,t,n){let r=function(e,t){let n=d(t),r=t,i=h;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&_.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(N,U);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!N.test(e)){let n=e.replace(F,B);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=E}return new i(r,t)}(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){var i;let t;if(Array.isArray(n)&&(n=r.commaSeparated?(t={},(""===(i=n)[i.length-1]?[...i,""]:i).join((t.padRight?" ":"")+","+(!1===t.padLeft?"":" ")).trim()):n.join(" ").trim()),"style"===r.property){let t="object"==typeof n?n:function(e,t){try{return V(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};let t=new $("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw t.file=e.filePath||void 0,t.url=er+"#cannot-parse-style-attribute",t}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){let t,n={};for(t in e)Y.call(e,t)&&(n[function(e){let t=e.replace(ee,ec);return"ms-"===t.slice(0,3)&&(t="-"+t),t}(t)]=e[t]);return n}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?H[r.property]||r.property:r.attribute,n]}}(e,r,t.properties[r]);if(o){let[r,l]=o;e.tableCellAlignToStyle&&"align"===r&&"string"==typeof l&&en.has(t.tagName)?n=l:i[r]=l}}return n&&((i.style||(i.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=n),i}(r,i),x=ea(r,i),et.has(i.tagName)&&(x=x.filter(function(e){return"string"!=typeof e||!("object"==typeof e?"text"===e.type&&c(e.value):c(e))})),eo(r,v,y,i),el(v,x),r.ancestors.pop(),r.schema=m,r.create(i,y,v,o)):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}es(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?(l=e,a=t,u=n,b=k=l.schema,"svg"===a.name&&"html"===k.space&&(l.schema=z),l.ancestors.push(a),w=null===a.name?l.Fragment:eu(l,a.name,!0),S=function(e,t){let n={};for(let r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];t.type;let i=t.expression;i.type;let o=i.properties[0];o.type,Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else es(e,t.position);else{let i,o=r.name;if(r.value&&"object"==typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];t.type,i=e.evaluater.evaluateExpression(t.expression)}else es(e,t.position);else i=null===r.value||r.value;n[o]=i}return n}(l,a),A=ea(l,a),eo(l,S,w,a),el(S,A),l.ancestors.pop(),l.schema=k,l.create(a,w,S,u)):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);es(e,t.position)}(e,t):"root"===t.type?(s=e,f=t,p=n,el(P={},ea(s,f)),s.create(f,s.Fragment,P,p)):"text"===t.type?t.value:void 0}function eo(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function el(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function ea(e,t){let n=[],r=-1,i=e.passKeys?new Map:G;for(;++ro?0:o+t:t>o?o:t,n=n>0?n:0,r.length<1e4)(i=Array.from(r)).unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);l0?(eg(e,e.length,0,t),e):t}class ev{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return ethis.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){this.setCursor(Math.trunc(e));let r=this.right.splice(this.right.length-(t||0),1/0);return n&&ex(this.left,n),r.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),ex(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),ex(this.right,e.reverse())}setCursor(e){if(e!==this.left.length&&(!(e>this.left.length)||0!==this.right.length)&&(!(e<0)||0!==this.left.length))if(e-1&&e.test(String.fromCharCode(t))}}function eR(e,t,n,r){let i=r?r-1:1/0,o=0;return function(r){return eL(r)?(e.enter(n),function r(l){return eL(l)&&o++r))return;let a=i.events.length,u=a;for(;u--;)if("exit"===i.events[u][0]&&"chunkFlow"===i.events[u][1].type){if(e){n=i.events[u][1].end;break}e=!0}for(g(l),o=a;ot;){let t=o[n];i.containerState=t[1],t[0].exit.call(i,e)}o.length=t}function y(){t.write([null]),n=void 0,t=void 0,i.containerState._closeFlow=void 0}}},eN={tokenize:function(e,t,n){return eR(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},e_={partial:!0,tokenize:function(e,t,n){return function(t){return eL(t)?eR(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||eT(e)?t(e):n(e)}}},eB={resolve:function(e){return ek(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?i(t):eT(t)?e.check(eU,o,i)(t):(e.consume(t),r)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function o(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},eU={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),eR(e,i,"linePrefix")};function i(i){if(null===i||eT(i))return n(i);let o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}},eH={tokenize:function(e){let t=this,n=e.attempt(e_,function(r){return null===r?void e.consume(r):(e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n)},e.attempt(this.parser.constructs.flowInitial,r,eR(e,e.attempt(this.parser.constructs.flow,r,e.attempt(eB,r)),"linePrefix")));return n;function r(r){return null===r?void e.consume(r):(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n)}}},eV={resolveAll:eJ()},eq=eK("string"),eW=eK("text");function eK(e){return{resolveAll:eJ("text"===e?eZ:void 0),tokenize:function(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,o,l);return o;function o(e){return u(e)?i(e):l(e)}function l(e){return null===e?void t.consume(e):(t.enter("data"),t.consume(e),a)}function a(e){return u(e)?(t.exit("data"),i(e)):(t.consume(e),a)}function u(e){if(null===e)return!0;let t=r[e],i=-1;if(t)for(;++i=3&&(null===l||eT(l))?(e.exit("thematicBreak"),t(l)):n(l)}(l)}}},eX={continuation:{tokenize:function(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(e_,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,eR(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!eL(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(eY,t,i)(n))});function i(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,eR(e,e.attempt(eX,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){let r=this,i=r.events[r.events.length-1],o=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,l=0;return function(t){let i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:eP(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(eQ,n,a)(t):a(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),function t(i){return eP(i)&&++l<10?(e.consume(i),t):(!r.interrupt||l<2)&&(r.containerState.marker?i===r.containerState.marker:41===i||46===i)?(e.exit("listItemValue"),a(i)):n(i)}(t)}return n(t)};function a(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(e_,r.interrupt?n:u,e.attempt(e$,c,s))}function u(e){return r.containerState.initialBlankLine=!0,o++,c(e)}function s(t){return eL(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),c):n(t)}function c(n){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},e$={partial:!0,tokenize:function(e,t,n){let r=this;return eR(e,function(e){let i=r.events[r.events.length-1];return!eL(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},eY={partial:!0,tokenize:function(e,t,n){let r=this;return eR(e,function(e){let i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)}},eG={continuation:{tokenize:function(e,t,n){let r=this;return function(t){return eL(t)?eR(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):i(t)};function i(r){return e.attempt(eG,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){let r=this;return function(t){if(62===t){let n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return n(t)};function i(n){return eL(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}};function e0(e,t,n,r,i,o,l,a,u){let s=u||1/0,c=0;return function(t){return 60===t?(e.enter(r),e.enter(i),e.enter(o),e.consume(t),e.exit(o),f):null===t||32===t||41===t||eE(t)?n(t):(e.enter(r),e.enter(l),e.enter(a),e.enter("chunkString",{contentType:"string"}),h(t))};function f(n){return 62===n?(e.enter(o),e.consume(n),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),p(n))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(a),f(t)):null===t||60===t||eT(t)?n(t):(e.consume(t),92===t?d:p)}function d(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function h(i){return!c&&(null===i||41===i||eI(i))?(e.exit("chunkString"),e.exit(a),e.exit(l),e.exit(r),t(i)):c999||null===f||91===f||93===f&&!l||94===f&&!u&&"_hiddenFootnoteSupport"in a.parser.constructs?n(f):93===f?(e.exit(o),e.enter(i),e.consume(f),e.exit(i),e.exit(r),t):eT(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),s):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(t){return null===t||91===t||93===t||eT(t)||u++>999?(e.exit("chunkString"),s(t)):(e.consume(t),l||(l=!eL(t)),92===t?f:c)}function f(t){return 91===t||92===t||93===t?(e.consume(t),u++,c):c(t)}}function e2(e,t,n,r,i,o){let l;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),l=40===t?41:t,a):n(t)};function a(n){return n===l?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(o),u(n))}function u(t){return t===l?(e.exit(o),a(l)):null===t?n(t):eT(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),eR(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),s(t))}function s(t){return t===l||null===t||eT(t)?(e.exit("chunkString"),u(t)):(e.consume(t),92===t?c:s)}function c(t){return t===l||92===t?(e.consume(t),s):s(t)}}function e4(e,t){let n;return function r(i){return eT(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):eL(i)?eR(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}function e5(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}let e3={partial:!0,tokenize:function(e,t,n){return function(t){return eI(t)?e4(e,r)(t):n(t)};function r(t){return e2(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return eL(t)?eR(e,o,"whitespace")(t):o(t)}function o(e){return null===e||eT(e)?t(e):n(e)}}},e9={name:"codeIndented",tokenize:function(e,t,n){let r=this;return function(t){return e.enter("codeIndented"),eR(e,i,"linePrefix",5)(t)};function i(t){let i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?function t(n){return null===n?o(n):eT(n)?e.attempt(e6,t,o)(n):(e.enter("codeFlowValue"),function n(r){return null===r||eT(r)?(e.exit("codeFlowValue"),t(r)):(e.consume(r),n)}(n))}(t):n(t)}function o(n){return e.exit("codeIndented"),t(n)}}},e6={partial:!0,tokenize:function(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):eT(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):eR(e,o,"linePrefix",5)(t)}function o(e){let o=r.events[r.events.length-1];return o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(e):eT(e)?i(e):n(e)}}},e7={name:"setextUnderline",resolveTo:function(e,t){let n,r,i,o=e.length;for(;o--;)if("enter"===e[o][0]){if("content"===e[o][1].type){n=o;break}"paragraph"===e[o][1].type&&(r=o)}else"content"===e[o][1].type&&e.splice(o,1),i||"definition"!==e[o][1].type||(i=o);let l={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",l,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end={...e[i][1].end}):e[n][1]=l,e.push(["exit",l,t]),e},tokenize:function(e,t,n){let r,i=this;return function(t){var l;let a,u=i.events.length;for(;u--;)if("lineEnding"!==i.events[u][1].type&&"linePrefix"!==i.events[u][1].type&&"content"!==i.events[u][1].type){a="paragraph"===i.events[u][1].type;break}return!i.parser.lazy[i.now().line]&&(i.interrupt||a)?(e.enter("setextHeadingLine"),r=t,l=t,e.enter("setextHeadingLineSequence"),function t(n){return n===r?(e.consume(n),t):(e.exit("setextHeadingLineSequence"),eL(n)?eR(e,o,"lineSuffix")(n):o(n))}(l)):n(t)};function o(r){return null===r||eT(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}},e8=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],te=["pre","script","style","textarea"],tt={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(e_,t,n)}}},tn={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return eT(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):n(t)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},tr={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},ti={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){let r,i=this,o={partial:!0,tokenize:function(e,t,n){let o=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l};function l(t){return e.enter("codeFencedFence"),eL(t)?eR(e,u,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):u(t)}function u(t){return t===r?(e.enter("codeFencedFenceSequence"),function t(i){return i===r?(o++,e.consume(i),t):o>=a?(e.exit("codeFencedFenceSequence"),eL(i)?eR(e,s,"whitespace")(i):s(i)):n(i)}(t)):n(t)}function s(r){return null===r||eT(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}},l=0,a=0;return function(t){var o;let s;return o=t,l=(s=i.events[i.events.length-1])&&"linePrefix"===s[1].type?s[2].sliceSerialize(s[1],!0).length:0,r=o,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),function t(i){return i===r?(a++,e.consume(i),t):a<3?n(i):(e.exit("codeFencedFenceSequence"),eL(i)?eR(e,u,"whitespace")(i):u(i))}(o)};function u(o){return null===o||eT(o)?(e.exit("codeFencedFence"),i.interrupt?t(o):e.check(tr,c,h)(o)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||eT(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),u(i)):eL(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),eR(e,s,"whitespace")(i)):96===i&&i===r?n(i):(e.consume(i),t)}(o))}function s(t){return null===t||eT(t)?u(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||eT(i)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),u(i)):96===i&&i===r?n(i):(e.consume(i),t)}(t))}function c(t){return e.attempt(o,h,f)(t)}function f(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),p}function p(t){return l>0&&eL(t)?eR(e,d,"linePrefix",l+1)(t):d(t)}function d(t){return null===t||eT(t)?e.check(tr,c,h)(t):(e.enter("codeFlowValue"),function t(n){return null===n||eT(n)?(e.exit("codeFlowValue"),d(n)):(e.consume(n),t)}(t))}function h(n){return e.exit("codeFenced"),t(n)}}},to=document.createElement("i");function tl(e){let t="&"+e+";";to.innerHTML=t;let n=to.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}let ta={name:"characterReference",tokenize:function(e,t,n){let r,i,o=this,l=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),a};function a(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),r=31,i=eS,s(t))}function u(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,i=eO,s):(e.enter("characterReferenceValue"),r=7,i=eP,s(t))}function s(a){if(59===a&&l){let r=e.exit("characterReferenceValue");return i!==eS||tl(o.sliceSerialize(r))?(e.enter("characterReferenceMarker"),e.consume(a),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(a)}return i(a)&&l++1&&e[c][1].end.offset-e[c][1].start.offset>1?2:1;let f={...e[n][1].end},p={...e[c][1].start};tv(f,-a),tv(p,a),o={type:a>1?"strongSequence":"emphasisSequence",start:f,end:{...e[n][1].end}},l={type:a>1?"strongSequence":"emphasisSequence",start:{...e[c][1].start},end:p},i={type:a>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[c][1].start}},r={type:a>1?"strong":"emphasis",start:{...o.start},end:{...l.end}},e[n][1].end={...o.start},e[c][1].start={...l.end},u=[],e[n][1].end.offset-e[n][1].start.offset&&(u=ey(u,[["enter",e[n][1],t],["exit",e[n][1],t]])),u=ey(u,[["enter",r,t],["enter",o,t],["exit",o,t],["enter",i,t]]),u=ey(u,tc(t.parser.constructs.insideSpan.null,e.slice(n+1,c),t)),u=ey(u,[["exit",i,t],["enter",l,t],["exit",l,t],["exit",r,t]]),e[c][1].end.offset-e[c][1].start.offset?(s=2,u=ey(u,[["enter",e[c][1],t],["exit",e[c][1],t]])):s=0,eg(e,n-1,c-n+3,u),c=n+u.length-s-2;break}}for(c=-1;++co&&"whitespace"===e[i][1].type&&(i-=2),"atxHeadingSequence"===e[i][1].type&&(o===i-1||i-4>o&&"whitespace"===e[i-2][1].type)&&(i-=o+1===i?2:4),i>o&&(n={type:"atxHeadingText",start:e[o][1].start,end:e[i][1].end},r={type:"chunkText",start:e[o][1].start,end:e[i][1].end,contentType:"text"},eg(e,o,i-o+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e},tokenize:function(e,t,n){let r=0;return function(i){var o;return e.enter("atxHeading"),o=i,e.enter("atxHeadingSequence"),function i(o){return 35===o&&r++<6?(e.consume(o),i):null===o||eI(o)?(e.exit("atxHeadingSequence"),function n(r){return 35===r?(e.enter("atxHeadingSequence"),function t(r){return 35===r?(e.consume(r),t):(e.exit("atxHeadingSequence"),n(r))}(r)):null===r||eT(r)?(e.exit("atxHeading"),t(r)):eL(r)?eR(e,n,"whitespace")(r):(e.enter("atxHeadingText"),function t(r){return null===r||35===r||eI(r)?(e.exit("atxHeadingText"),n(r)):(e.consume(r),t)}(r))}(o)):n(o)}(o)}}},42:eQ,45:[e7,eQ],60:{concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},tokenize:function(e,t,n){let r,i,o,l,a,u=this;return function(t){var n;return n=t,e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(n),s};function s(l){return 33===l?(e.consume(l),c):47===l?(e.consume(l),i=!0,d):63===l?(e.consume(l),r=3,u.interrupt?t:D):ew(l)?(e.consume(l),o=String.fromCharCode(l),h):n(l)}function c(i){return 45===i?(e.consume(i),r=2,f):91===i?(e.consume(i),r=5,l=0,p):ew(i)?(e.consume(i),r=4,u.interrupt?t:D):n(i)}function f(r){return 45===r?(e.consume(r),u.interrupt?t:D):n(r)}function p(r){let i="CDATA[";return r===i.charCodeAt(l++)?(e.consume(r),l===i.length)?u.interrupt?t:A:p:n(r)}function d(t){return ew(t)?(e.consume(t),o=String.fromCharCode(t),h):n(t)}function h(l){if(null===l||47===l||62===l||eI(l)){let a=47===l,s=o.toLowerCase();return!a&&!i&&te.includes(s)?(r=1,u.interrupt?t(l):A(l)):e8.includes(o.toLowerCase())?(r=6,a)?(e.consume(l),m):u.interrupt?t(l):A(l):(r=7,u.interrupt&&!u.parser.lazy[u.now().line]?n(l):i?function t(n){return eL(n)?(e.consume(n),t):w(n)}(l):g(l))}return 45===l||eS(l)?(e.consume(l),o+=String.fromCharCode(l),h):n(l)}function m(r){return 62===r?(e.consume(r),u.interrupt?t:A):n(r)}function g(t){return 47===t?(e.consume(t),w):58===t||95===t||ew(t)?(e.consume(t),y):eL(t)?(e.consume(t),g):w(t)}function y(t){return 45===t||46===t||58===t||95===t||eS(t)?(e.consume(t),y):v(t)}function v(t){return 61===t?(e.consume(t),x):eL(t)?(e.consume(t),v):g(t)}function x(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),a=t,k):eL(t)?(e.consume(t),x):function t(n){return null===n||34===n||39===n||47===n||60===n||61===n||62===n||96===n||eI(n)?v(n):(e.consume(n),t)}(t)}function k(t){return t===a?(e.consume(t),a=null,b):null===t||eT(t)?n(t):(e.consume(t),k)}function b(e){return 47===e||62===e||eL(e)?g(e):n(e)}function w(t){return 62===t?(e.consume(t),S):n(t)}function S(t){return null===t||eT(t)?A(t):eL(t)?(e.consume(t),S):n(t)}function A(t){return 45===t&&2===r?(e.consume(t),C):60===t&&1===r?(e.consume(t),T):62===t&&4===r?(e.consume(t),j):63===t&&3===r?(e.consume(t),D):93===t&&5===r?(e.consume(t),L):eT(t)&&(6===r||7===r)?(e.exit("htmlFlowData"),e.check(tt,M,E)(t)):null===t||eT(t)?(e.exit("htmlFlowData"),E(t)):(e.consume(t),A)}function E(t){return e.check(tn,P,M)(t)}function P(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),O}function O(t){return null===t||eT(t)?E(t):(e.enter("htmlFlowData"),A(t))}function C(t){return 45===t?(e.consume(t),D):A(t)}function T(t){return 47===t?(e.consume(t),o="",I):A(t)}function I(t){if(62===t){let n=o.toLowerCase();return te.includes(n)?(e.consume(t),j):A(t)}return ew(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),I):A(t)}function L(t){return 93===t?(e.consume(t),D):A(t)}function D(t){return 62===t?(e.consume(t),j):45===t&&2===r?(e.consume(t),D):A(t)}function j(t){return null===t||eT(t)?(e.exit("htmlFlowData"),M(t)):(e.consume(t),j)}function M(n){return e.exit("htmlFlow"),t(n)}}},61:e7,95:eQ,96:ti,126:ti},tA={38:ta,92:tu},tE={[-5]:ts,[-4]:ts,[-3]:ts,33:tm,38:ta,42:ty,60:[{name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return ew(t)?(e.consume(t),o):64===t?n(t):a(t)}function o(t){return 43===t||45===t||46===t||eS(t)?(r=1,function t(n){return 58===n?(e.consume(n),r=0,l):(43===n||45===n||46===n||eS(n))&&r++<32?(e.consume(n),t):(r=0,a(n))}(t)):a(t)}function l(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||eE(r)?n(r):(e.consume(r),l)}function a(t){return 64===t?(e.consume(t),u):eA(t)?(e.consume(t),a):n(t)}function u(i){return eS(i)?function i(o){return 46===o?(e.consume(o),r=0,u):62===o?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(o),e.exit("autolinkMarker"),e.exit("autolink"),t):function t(o){if((45===o||eS(o))&&r++<63){let n=45===o?t:i;return e.consume(o),n}return n(o)}(o)}(i):n(i)}}},{name:"htmlText",tokenize:function(e,t,n){let r,i,o,l=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),a};function a(t){return 33===t?(e.consume(t),u):47===t?(e.consume(t),k):63===t?(e.consume(t),v):ew(t)?(e.consume(t),w):n(t)}function u(t){return 45===t?(e.consume(t),s):91===t?(e.consume(t),i=0,d):ew(t)?(e.consume(t),y):n(t)}function s(t){return 45===t?(e.consume(t),p):n(t)}function c(t){return null===t?n(t):45===t?(e.consume(t),f):eT(t)?(o=c,I(t)):(e.consume(t),c)}function f(t){return 45===t?(e.consume(t),p):c(t)}function p(e){return 62===e?T(e):45===e?f(e):c(e)}function d(t){let r="CDATA[";return t===r.charCodeAt(i++)?(e.consume(t),i===r.length?h:d):n(t)}function h(t){return null===t?n(t):93===t?(e.consume(t),m):eT(t)?(o=h,I(t)):(e.consume(t),h)}function m(t){return 93===t?(e.consume(t),g):h(t)}function g(t){return 62===t?T(t):93===t?(e.consume(t),g):h(t)}function y(t){return null===t||62===t?T(t):eT(t)?(o=y,I(t)):(e.consume(t),y)}function v(t){return null===t?n(t):63===t?(e.consume(t),x):eT(t)?(o=v,I(t)):(e.consume(t),v)}function x(e){return 62===e?T(e):v(e)}function k(t){return ew(t)?(e.consume(t),b):n(t)}function b(t){return 45===t||eS(t)?(e.consume(t),b):function t(n){return eT(n)?(o=t,I(n)):eL(n)?(e.consume(n),t):T(n)}(t)}function w(t){return 45===t||eS(t)?(e.consume(t),w):47===t||62===t||eI(t)?S(t):n(t)}function S(t){return 47===t?(e.consume(t),T):58===t||95===t||ew(t)?(e.consume(t),A):eT(t)?(o=S,I(t)):eL(t)?(e.consume(t),S):T(t)}function A(t){return 45===t||46===t||58===t||95===t||eS(t)?(e.consume(t),A):function t(n){return 61===n?(e.consume(n),E):eT(n)?(o=t,I(n)):eL(n)?(e.consume(n),t):S(n)}(t)}function E(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),r=t,P):eT(t)?(o=E,I(t)):eL(t)?(e.consume(t),E):(e.consume(t),O)}function P(t){return t===r?(e.consume(t),r=void 0,C):null===t?n(t):eT(t)?(o=P,I(t)):(e.consume(t),P)}function O(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||eI(t)?S(t):(e.consume(t),O)}function C(e){return 47===e||62===e||eI(e)?S(e):n(e)}function T(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function I(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),L}function L(t){return eL(t)?eR(e,D,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):D(t)}function D(t){return e.enter("htmlTextData"),o(t)}}}],91:tx,92:[{name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return eT(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},tu],93:tf,95:ty,96:{name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,i=3;if(("lineEnding"===e[3][1].type||"space"===e[i][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type)){for(t=i;++t13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(65535&n)==65535||(65535&n)==65534||n>1114111?"�":String.fromCodePoint(n)}let tL=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function tD(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){let e=n.charCodeAt(1),t=120===e||88===e;return tI(n.slice(t?2:1),t?16:10)}return tl(n)||e}let tj={}.hasOwnProperty;function tM(e){return{line:e.line,column:e.column,offset:e.offset}}function tR(e,t){if(e)throw Error("Cannot close `"+e.type+"` ("+J({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+J({start:t.start,end:t.end})+") is open");throw Error("Cannot close document, a token (`"+t.type+"`, "+J({start:t.start,end:t.end})+") is still open")}function tz(e){let t=this;t.parser=function(n){var r,o;let l,a,u,s;return"string"!=typeof(r={...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})&&(o=r,r=void 0),(function(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:r(y),autolinkProtocol:s,autolinkEmail:s,atxHeading:r(h),blockQuote:r(function(){return{type:"blockquote",children:[]}}),characterEscape:s,characterReference:s,codeFenced:r(d),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:r(d,i),codeText:r(function(){return{type:"inlineCode",value:""}},i),codeTextData:s,data:s,codeFlowValue:s,definition:r(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:r(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:r(m),hardBreakTrailing:r(m),htmlFlow:r(g,i),htmlFlowData:s,htmlText:r(g,i),htmlTextData:s,image:r(function(){return{type:"image",title:null,url:"",alt:null}}),label:i,link:r(y),listItem:r(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:r(v,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:r(v),paragraph:r(function(){return{type:"paragraph",children:[]}}),reference:function(){this.data.referenceType="collapsed"},referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:r(h),strong:r(function(){return{type:"strong",children:[]}}),thematicBreak:r(function(){return{type:"thematicBreak"}})},exit:{atxHeading:l(),atxHeadingSequence:function(e){let t=this.stack[this.stack.length-1];t.depth||(t.depth=this.sliceSerialize(e).length)},autolink:l(),autolinkEmail:function(e){c.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){c.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:l(),characterEscapeValue:c,characterReferenceMarkerHexadecimal:p,characterReferenceMarkerNumeric:p,characterReferenceValue:function(e){let t,n=this.sliceSerialize(e),r=this.data.characterReferenceType;r?(t=tI(n,"characterReferenceMarkerNumeric"===r?10:16),this.data.characterReferenceType=void 0):t=tl(n);let i=this.stack[this.stack.length-1];i.value+=t},characterReference:function(e){this.stack.pop().position.end=tM(e.end)},codeFenced:l(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){let e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){let e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:c,codeIndented:l(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:l(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:c,data:c,definition:l(),definitionDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=e5(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:l(),hardBreakEscape:l(f),hardBreakTrailing:l(f),htmlFlow:l(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:c,htmlText:l(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:c,image:l(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),label:function(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,"link"===n.type?n.children=e.children:n.alt=t},labelText:function(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=t.replace(tL,tD),n.identifier=e5(t).toLowerCase()},lineEnding:function(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){n.children[n.children.length-1].position.end=tM(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(s.call(this,e),c.call(this,e))},link:l(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=e5(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:l(function(){this.data.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:l(),thematicBreak:l()}};!function e(t,n){let r=-1;for(;++r0){let e=l.tokenStack[l.tokenStack.length-1];(e[1]||tR).call(l,void 0,e[0])}for(r.position={start:tM(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:tM(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},c=-1;++c-1){let e=n[0];"string"==typeof e?n[0]=e.slice(i):n.shift()}l>0&&n.push(e[o].slice(0,l))}return n}(l,e)}function p(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:o}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:o}}function d(e,t){t.restore()}function h(e,t){return function(n,i,o){var l;let c,f,d,h;return Array.isArray(n)?m(n):"tokenize"in n?m([n]):(l=n,function(e){let t=null!==e&&l[e],n=null!==e&&l.null;return m([...Array.isArray(t)?t:t?[t]:[],...Array.isArray(n)?n:n?[n]:[]])(e)});function m(e){return(c=e,f=0,0===e.length)?o:y(e[f])}function y(e){return function(n){let i,o,l,c,f;return(i=p(),o=s.previous,l=s.currentConstruct,c=s.events.length,f=Array.from(a),h={from:c,restore:function(){r=i,s.previous=o,s.currentConstruct=l,s.events.length=c,a=f,g()}},d=e,e.partial||(s.currentConstruct=e),e.name&&s.parser.constructs.disable.null.includes(e.name))?x(n):e.tokenize.call(t?Object.assign(Object.create(s),t):s,u,v,x)(n)}}function v(t){return e(d,h),i}function x(e){return(h.restore(),++f{var t;let n,r;return(t=new Map,n=(e,n)=>(t.set(n,e),e),r=i=>{if(t.has(i))return t.get(i);let[o,l]=e[i];switch(o){case 0:case -1:return n(l,i);case 1:{let e=n([],i);for(let t of l)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of l)e[r(t)]=r(n);return e}case 3:return n(new Date(l),i);case 4:{let{source:e,flags:t}=l;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of l)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of l)e.add(r(t));return e}case 7:{let{name:e,message:t}=l;return n(new tF[e](t),i)}case 8:return n(BigInt(l),i);case"BigInt":return n(Object(BigInt(l)),i);case"ArrayBuffer":return n(new Uint8Array(l).buffer,l);case"DataView":{let{buffer:e}=new Uint8Array(l);return n(new DataView(e),l)}}return n(new tF[o](l),i)})(0)},{toString:t_}={},{keys:tB}=Object,tU=e=>{let t=typeof e;if("object"!==t||!e)return[0,t];let n=t_.call(e).slice(8,-1);switch(n){case"Array":return[1,""];case"Object":return[2,""];case"Date":return[3,""];case"RegExp":return[4,""];case"Map":return[5,""];case"Set":return[6,""];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},tH=([e,t])=>0===e&&("function"===t||"symbol"===t),tV=(e,{json:t,lossy:n}={})=>{var r,i,o;let l,a,u=[];return(r=!(t||n),i=!!t,o=new Map,l=(e,t)=>{let n=u.push(e)-1;return o.set(t,n),n},a=e=>{if(o.has(e))return o.get(e);let[t,n]=tU(e);switch(t){case 0:{let i=e;switch(n){case"bigint":t=8,i=e.toString();break;case"function":case"symbol":if(r)throw TypeError("unable to serialize "+n);i=null;break;case"undefined":return l([-1],e)}return l([t,i],e)}case 1:{if(n){let t=e;return"DataView"===n?t=new Uint8Array(e.buffer):"ArrayBuffer"===n&&(t=new Uint8Array(e)),l([n,[...t]],e)}let r=[],i=l([t,r],e);for(let t of e)r.push(a(t));return i}case 2:{if(n)switch(n){case"BigInt":return l([n,e.toString()],e);case"Boolean":case"Number":case"String":return l([n,e.valueOf()],e)}if(i&&"toJSON"in e)return a(e.toJSON());let o=[],u=l([t,o],e);for(let t of tB(e))(r||!tH(tU(e[t])))&&o.push([a(t),a(e[t])]);return u}case 3:return l([t,e.toISOString()],e);case 4:{let{source:n,flags:r}=e;return l([t,{source:n,flags:r}],e)}case 5:{let n=[],i=l([t,n],e);for(let[t,i]of e)(r||!(tH(tU(t))||tH(tU(i))))&&n.push([a(t),a(i)]);return i}case 6:{let n=[],i=l([t,n],e);for(let t of e)(r||!tH(tU(t)))&&n.push(a(t));return i}}let{message:u}=e;return l([t,{name:n,message:u}],e)})(e),u},tq="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?tN(tV(e,t)):structuredClone(e):(e,t)=>tN(tV(e,t));function tW(e){let t=[],n=-1,r=0,i=0;for(;++n55295&&o<57344){let t=e.charCodeAt(n+1);o<56320&&t>56319&&t<57344?(l=String.fromCharCode(o,t),i=1):l="�"}else l=String.fromCharCode(o);l&&(t.push(e.slice(r,n),encodeURIComponent(l)),r=n+i+1,l=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function tK(e,t){let n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function tJ(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}let tZ=function(e){var t,n;if(null==e)return tX;if("function"==typeof e)return tQ(e);if("object"==typeof e){return Array.isArray(e)?function(e){let t=[],n=-1;for(;++n":"")+")"})}return u;function u(){var a;let u,s,c,d=t$;if((!i||f(t,n,r[r.length-1]||void 0))&&!1===(d=Array.isArray(a=o(t,r))?a:"number"==typeof a?[!0,a]:null==a?t$:[a])[0])return d;if("children"in t&&t.children&&t.children&&"skip"!==d[0])for(s=(l?t.children.length:-1)+p,c=r.concat(t);s>-1&&s1:t}function t1(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;9===t||32===t;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}let t2={blockquote:function(e,t){let n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){let n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){let n=t.value?t.value+"\n":"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o={type:"element",tagName:"pre",properties:{},children:[o=e.applyData(t,o)]},e.patch(t,o),o},delete:function(e,t){let n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){let n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){let n,r="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),o=tW(i.toLowerCase()),l=e.footnoteOrder.indexOf(i),a=e.footnoteCounts.get(i);void 0===a?(a=0,e.footnoteOrder.push(i),n=e.footnoteOrder.length):n=l+1,a+=1,e.footnoteCounts.set(i,a);let u={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+o,id:r+"fnref-"+o+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(n)}]};e.patch(t,u);let s={type:"element",tagName:"sup",properties:{},children:[u]};return e.patch(t,s),e.applyData(t,s)},heading:function(e,t){let n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){let n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return tG(e,t);let i={src:tW(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(i.title=r.title);let o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)},image:function(e,t){let n={src:tW(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){let n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);let r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return tG(e,t);let i={href:tW(r.url||"")};null!==r.title&&void 0!==r.title&&(i.title=r.title);let o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)},link:function(e,t){let n={href:tW(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){let r=e.all(t),i=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r0&&e.children.unshift({type:"text",value:" "}),e.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let a=-1;for(;++a0){let r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=W(t.children[1]),l=q(t.children[t.children.length-1]);o&&l&&(r.position={start:o,end:l}),i.push(r)}let o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)},tableCell:function(e,t){let n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){let r=n?n.children:void 0,i=0===(r?r.indexOf(t):1)?"th":"td",o=n&&"table"===n.type?n.align:void 0,l=o?o.length:t.children.length,a=-1,u=[];for(;++a0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(t1(t.slice(i),i>0,!1)),o.join("")}(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){let n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:t4,yaml:t4,definition:t4,footnoteDefinition:t4};function t4(){}let t5={}.hasOwnProperty,t3={};function t9(e,t){e.position&&(t.position=function(e){let t=W(e),n=q(e);if(t&&n)return{start:t,end:n}}(e))}function t6(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}),"element"===n.type&&i&&Object.assign(n.properties,tq(i)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function t7(e,t){let n=[],r=-1;for(t&&n.push({type:"text",value:"\n"});++r0&&n.push({type:"text",value:"\n"}),n}function t8(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function ne(e,t){let n,r,i,o,l=(n=t||t3,r=new Map,i=new Map,o={all:function(e){let t=[];if("children"in e){let n=e.children,r=-1;for(;++r0&&f.push({type:"text",value:" "});let e="string"==typeof n?n:n(u,c);"string"==typeof e&&(e={type:"text",value:e}),f.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+s+(c>1?"-"+c:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(u,c),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}let d=o[o.length-1];if(d&&"element"===d.type&&"p"===d.tagName){let e=d.children[d.children.length-1];e&&"text"===e.type?e.value+=" ":d.children.push({type:"text",value:" "}),d.children.push(...f)}else o.push(...f);let h={type:"element",tagName:"li",properties:{id:t+"fn-"+s},children:e.wrap(o,!0)};e.patch(i,h),a.push(h)}if(0!==a.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...tq(l),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:"\n"}]}}(l),s=Array.isArray(a)?{type:"root",children:a}:a||{type:"root",children:[]};return u&&s.children.push({type:"text",value:"\n"},u),s}function nt(e,t){return e&&"run"in e?async function(n,r){let i=ne(n,{file:r,...t});await e.run(i,r)}:function(n,r){return ne(n,{file:r,...e||t})}}function nn(e){if(e)throw e}var nr=n(28392);function ni(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}let no=function(e,t){let n;if(void 0!==t&&"string"!=typeof t)throw TypeError('"ext" argument must be a string');ns(e);let r=0,i=-1,o=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;o--;)if(47===e.codePointAt(o)){if(n){r=o+1;break}}else i<0&&(n=!0,i=o+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let l=-1,a=t.length-1;for(;o--;)if(47===e.codePointAt(o)){if(n){r=o+1;break}}else l<0&&(n=!0,l=o+1),a>-1&&(e.codePointAt(o)===t.codePointAt(a--)?a<0&&(i=o):(a=-1,i=l));return r===i?i=l:i<0&&(i=e.length),e.slice(r,i)},nl=function(e){let t;if(ns(e),0===e.length)return".";let n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},na=function(e){let t;ns(e);let n=e.length,r=-1,i=0,o=-1,l=0;for(;n--;){let a=e.codePointAt(n);if(47===a){if(t){i=n+1;break}continue}r<0&&(t=!0,r=n+1),46===a?o<0?o=n:1!==l&&(l=1):o>-1&&(l=-1)}return o<0||r<0||0===l||1===l&&o===r-1&&o===i+1?"":e.slice(o,r)},nu=function(...e){var t;let n,r,i,o=-1;for(;++o2){if((r=i.lastIndexOf("/"))!==i.length-1){r<0?(i="",o=0):o=(i=i.slice(0,r)).length-1-i.lastIndexOf("/"),l=u,a=0;continue}}else if(i.length>0){i="",o=0,l=u,a=0;continue}}t&&(i=i.length>0?i+"/..":"..",o=2)}else i.length>0?i+="/"+e.slice(l+1,u):i=e.slice(l+1,u),o=u-l-1;l=u,a=0}else 46===n&&a>-1?a++:a=-1}return i}(t,!n)).length||n||(r="."),r.length>0&&47===t.codePointAt(t.length-1)&&(r+="/"),n?"/"+r:r)};function ns(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}function nc(e){return!!(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}let nf=["history","path","basename","stem","extname","dirname"];class np{constructor(e){let t,n;t=e?nc(e)?{path:e}:"string"==typeof e||function(e){return!!(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":"/",this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++rt.length;l&&t.push(r);try{o=e.apply(this,t)}catch(e){if(l&&n)throw e;return r(e)}l||(o instanceof Promise?o.then(i,r):o instanceof Error?r(o):i(o))};function r(e,...i){n||(n=!0,t(e,...i))}function i(e){r(null,e)}})(a,i)(...l):r(null,...l)}(null,...t)},use:function(n){if("function"!=typeof n)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}()}copy(){let e=new nv,t=-1;for(;++t0){let[r,...o]=t,l=n[i][1];ni(l)&&ni(r)&&(r=nr(!0,l,r)),n[i]=[e,r,...o]}}}}let nx=new nv().freeze();function nk(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `parser`")}function nb(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `compiler`")}function nw(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function nS(e){if(!ni(e)||"string"!=typeof e.type)throw TypeError("Expected node, got `"+e+"`")}function nA(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function nE(e){var t;return(t=e)&&"object"==typeof t&&"message"in t&&"messages"in t?e:new np(e)}let nP=[],nO={allowDangerousHtml:!0},nC=/^(https?|ircs?|mailto|xmpp)$/i,nT=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function nI(e){var t;let n,r,i,o,l,a=(n=(t=e).rehypePlugins||nP,r=t.remarkPlugins||nP,i=t.remarkRehypeOptions?{...t.remarkRehypeOptions,...nO}:nO,nx().use(tz).use(r).use(nt,i).use(n)),u=(o=e.children||"",l=new np,"string"==typeof o&&(l.value=o),l);return function(e,t){let n=t.allowedElements,r=t.allowElement,i=t.components,o=t.disallowedElements,l=t.skipHtml,a=t.unwrapDisallowed,u=t.urlTransform||nL;for(let e of nT)Object.hasOwn(t,e.from)&&(e.from,e.to&&e.to,e.id);return tY(e,function(e,t,i){if("raw"===e.type&&i&&"number"==typeof t)return l?i.children.splice(t,1):i.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in ef)if(Object.hasOwn(ef,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=ef[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=u(String(n||""),t,e))}}if("element"===e.type){let l=n?!n.includes(e.tagName):!!o&&o.includes(e.tagName);if(!l&&r&&"number"==typeof t&&(l=!r(e,t,i)),l&&i&&"number"==typeof t)return a&&e.children?i.children.splice(t,1,...e.children):i.children.splice(t,1),t}}),function(e,t){var n,r,i,o;let l;if(!t||void 0===t.Fragment)throw TypeError("Expected `Fragment` in options");let a=t.filePath||void 0;if(t.development){if("function"!=typeof t.jsxDEV)throw TypeError("Expected `jsxDEV` in options when `development: true`");n=a,r=t.jsxDEV,l=function(e,t,i,o){let l=Array.isArray(i.children),a=W(e);return r(t,i,o,l,{columnNumber:a?a.column-1:void 0,fileName:n,lineNumber:a?a.line:void 0},void 0)}}else{if("function"!=typeof t.jsx)throw TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw TypeError("Expected `jsxs` in production options");i=t.jsx,o=t.jsxs,l=function(e,t,n,r){let l=Array.isArray(n.children)?o:i;return r?l(t,n,r):l(t,n)}}let u={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:l,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:a,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?z:R,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},s=ei(u,e,void 0);return s&&"string"!=typeof s?s:u.create(e,u.Fragment,{children:s||void 0},void 0)}(e,{Fragment:ep.Fragment,components:i,ignoreInvalidStyle:!0,jsx:ep.jsx,jsxs:ep.jsxs,passKeys:!0,passNode:!0})}(a.runSync(a.parse(u),u),e)}function nL(e){let t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return -1===t||-1!==i&&t>i||-1!==n&&t>n||-1!==r&&t>r||nC.test(e.slice(0,t))?e:""}},45381:(e,t,n)=>{"use strict";n.d(t,{r:()=>et});var r=n(32716),i=n(55729),o=n(16087),l=n.n(o),a=n(50212),u=n(3780),s=n(1815),c=n(93780),f=["points","className","baseLinePoints","connectNulls"];function p(){return(p=Object.assign?Object.assign.bind():function(e){for(var t=1;ttypeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return h(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return h(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&void 0!==arguments[0]?arguments[0]:[],t=[[]];return e.forEach(function(e){m(e)?t[t.length-1].push(e):t[t.length-1].length>0&&t.push([])}),m(e[0])&&t[t.length-1].push(e[0]),t[t.length-1].length<=0&&(t=t.slice(0,-1)),t},y=function(e,t){var n=g(e);t&&(n=[n.reduce(function(e,t){return[].concat(d(e),d(t))},[])]);var r=n.map(function(e){return e.reduce(function(e,t,n){return"".concat(e).concat(0===n?"M":"L").concat(t.x,",").concat(t.y)},"")}).join("");return 1===n.length?"".concat(r,"Z"):r},v=function(e,t,n){var r=y(e,n);return"".concat("Z"===r.slice(-1)?r.slice(0,-1):r,"L").concat(y(t.reverse(),n).slice(1))},x=function(e){var t=e.points,n=e.className,r=e.baseLinePoints,o=e.connectNulls,l=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,f);if(!t||!t.length)return null;var u=(0,a.A)("recharts-polygon",n);if(r&&r.length){var s=l.stroke&&"none"!==l.stroke,d=v(t,r,o);return i.createElement("g",{className:u},i.createElement("path",p({},(0,c.J9)(l,!0),{fill:"Z"===d.slice(-1)?l.fill:"none",stroke:"none",d:d})),s?i.createElement("path",p({},(0,c.J9)(l,!0),{fill:"none",d:y(t,o)})):null,s?i.createElement("path",p({},(0,c.J9)(l,!0),{fill:"none",d:y(r,o)})):null)}var h=y(t,o);return i.createElement("path",p({},(0,c.J9)(l,!0),{fill:"Z"===h.slice(-1)?l.fill:"none",className:u,d:h}))},k=n(25599),b=n(27281),w=n(31829);function S(e){return(S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function A(){return(A=Object.assign?Object.assign.bind():function(e){for(var t=1;t1e-5?"outer"===t?"start":"end":n<-1e-5?"outer"===t?"end":"start":"middle"}},{key:"renderAxisLine",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.radius,o=e.axisLine,l=e.axisLineType,a=P(P({},(0,c.J9)(this.props,!1)),{},{fill:"none"},(0,c.J9)(o,!1));if("circle"===l)return i.createElement(s.c,A({className:"recharts-polar-angle-axis-line"},a,{cx:t,cy:n,r:r}));var u=this.props.ticks.map(function(e){return(0,w.IZ)(t,n,r,e.coordinate)});return i.createElement(x,A({className:"recharts-polar-angle-axis-line"},a,{points:u}))}},{key:"renderTicks",value:function(){var e=this,t=this.props,n=t.ticks,o=t.tick,l=t.tickLine,s=t.tickFormatter,f=t.stroke,p=(0,c.J9)(this.props,!1),d=(0,c.J9)(o,!1),h=P(P({},p),{},{fill:"none"},(0,c.J9)(l,!1)),m=n.map(function(t,n){var c=e.getTickLineCoord(t),m=P(P(P({textAnchor:e.getTickTextAnchor(t)},p),{},{stroke:"none",fill:f},d),{},{index:n,payload:t,x:c.x2,y:c.y2});return i.createElement(u.W,A({className:(0,a.A)("recharts-polar-angle-axis-tick",(0,w.Zk)(o)),key:"tick-".concat(t.coordinate)},(0,b.XC)(e.props,t,n)),l&&i.createElement("line",A({className:"recharts-polar-angle-axis-tick-line"},h,c)),o&&r.renderTickItem(o,m,s?s(t.value,n):t.value))});return i.createElement(u.W,{className:"recharts-polar-angle-axis-ticks"},m)}},{key:"render",value:function(){var e=this.props,t=e.ticks,n=e.radius,r=e.axisLine;return!(n<=0)&&t&&t.length?i.createElement(u.W,{className:(0,a.A)("recharts-polar-angle-axis",this.props.className)},r&&this.renderAxisLine(),this.renderTicks()):null}}],n=[{key:"renderTickItem",value:function(e,t,n){return i.isValidElement(e)?i.cloneElement(e,t):l()(e)?e(t):i.createElement(k.E,A({},t,{className:"recharts-polar-angle-axis-tick-value"}),n)}}],t&&O(r.prototype,t),n&&O(r,n),Object.defineProperty(r,"prototype",{writable:!1}),r}(i.PureComponent);L(M,"displayName","PolarAngleAxis"),L(M,"axisType","angleAxis"),L(M,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var R=n(53470),z=n.n(R),F=n(33824),N=n.n(F),_=n(35555),B=["cx","cy","angle","ticks","axisLine"],U=["ticks","tick","angle","tickFormatter","stroke"];function H(e){return(H="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function V(){return(V=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function J(e,t){for(var n=0;n{"use strict";var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,l=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,u=/^\s+|\s+$/g;function s(e){return e?e.replace(u,""):""}e.exports=function(e,u){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];u=u||{};var c=1,f=1;function p(e){var t=e.match(n);t&&(c+=t.length);var r=e.lastIndexOf("\n");f=~r?e.length-r:f+e.length}function d(){var e={line:c,column:f};return function(t){return t.position=new h(e),g(r),t}}function h(e){this.start=e,this.end={line:c,column:f},this.source=u.source}function m(t){var n=Error(u.source+":"+c+":"+f+": "+t);if(n.reason=t,n.filename=u.source,n.line=c,n.column=f,n.source=e,u.silent);else throw n}function g(t){var n=t.exec(e);if(n){var r=n[0];return p(r),e=e.slice(r.length),n}}function y(e){var t;for(e=e||[];t=v();)!1!==t&&e.push(t);return e}function v(){var t=d();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;""!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return m("End of comment missing");var r=e.slice(2,n-2);return f+=2,p(r),e=e.slice(n),f+=2,t({type:"comment",comment:r})}}h.prototype.content=e,g(r);var x,k=[];for(y(k);x=function(){var e=d(),n=g(i);if(n){if(v(),!g(o))return m("property missing ':'");var r=g(l),u=e({type:"declaration",property:s(n[0].replace(t,"")),value:r?s(r[0].replace(t,"")):""});return g(a),u}}();)!1!==x&&(k.push(x),y(k));return k}},53353:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var r=(0,n(41495).A)("outline","chart-pie","IconChartPie",[["path",{d:"M10 3.2a9 9 0 1 0 10.8 10.8a1 1 0 0 0 -1 -1h-6.8a2 2 0 0 1 -2 -2v-7a.9 .9 0 0 0 -1 -.8",key:"svg-0"}],["path",{d:"M15 3.5a9 9 0 0 1 5.5 5.5h-4.5a1 1 0 0 1 -1 -1v-4.5",key:"svg-1"}]])},53470:(e,t,n)=>{var r=n(63958),i=n(59822),o=n(82256);e.exports=function(e,t){return e&&e.length?r(e,o(t,2),i):void 0}},65248:(e,t,n)=>{"use strict";n.d(t,{F:()=>N});var r=n(55729),i=n(92224),o=n(96485),l=n.n(o),a=n(97469),u=n.n(a),s=n(1250),c=n.n(s),f=n(16087),p=n.n(f),d=n(50212),h=n(3780),m=n(56464),g=n(25599),y=n(35555),v=n(78895),x=n(53259),k=n(93780),b=n(88859),w=n(31829),S=n(53645),A=n(1509),E=n(7571),P=n(27281),O=n(52797);function C(e){return(C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function T(){return(T=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?l()(e,"paddingAngle",0):0;if(n){var u=(0,S.Dj)(n.endAngle-n.startAngle,e.endAngle-e.startAngle),s=L(L({},e),{},{startAngle:a+r,endAngle:a+u(i)+r});o.push(s),a=s.endAngle}else{var c=e.endAngle,f=e.startAngle,d=(0,S.Dj)(0,c-f)(i),h=L(L({},e),{},{startAngle:a+r,endAngle:a+d+r});o.push(h),a=h.endAngle}}),r.createElement(h.W,null,e.renderSectorsStatically(o))})}},{key:"attachKeyboardHandlers",value:function(e){var t=this;e.onkeydown=function(e){if(!e.altKey)switch(e.key){case"ArrowLeft":var n=++t.state.sectorToFocus%t.sectorRefs.length;t.sectorRefs[n].focus(),t.setState({sectorToFocus:n});break;case"ArrowRight":var r=--t.state.sectorToFocus<0?t.sectorRefs.length-1:t.state.sectorToFocus%t.sectorRefs.length;t.sectorRefs[r].focus(),t.setState({sectorToFocus:r});break;case"Escape":t.sectorRefs[t.state.sectorToFocus].blur(),t.setState({sectorToFocus:0})}}}},{key:"renderSectors",value:function(){var e=this.props,t=e.sectors,n=e.isAnimationActive,r=this.state.prevSectors;return n&&t&&t.length&&(!r||!u()(r,t))?this.renderSectorsWithAnimation():this.renderSectorsStatically(t)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var e=this,t=this.props,n=t.hide,i=t.sectors,o=t.className,l=t.label,a=t.cx,u=t.cy,s=t.innerRadius,c=t.outerRadius,f=t.isAnimationActive,p=this.state.isAnimationFinished;if(n||!i||!i.length||!(0,S.Et)(a)||!(0,S.Et)(u)||!(0,S.Et)(s)||!(0,S.Et)(c))return null;var m=(0,d.A)("recharts-pie",o);return r.createElement(h.W,{tabIndex:this.props.rootTabIndex,className:m,ref:function(t){e.pieRef=t}},this.renderSectors(),l&&this.renderLabels(i),y.J.renderCallByParent(this.props,null,!1),(!f||p)&&v.Z.renderCallByParent(this.props,i,!1))}}],n=[{key:"getDerivedStateFromProps",value:function(e,t){return t.prevIsAnimationActive!==e.isAnimationActive?{prevIsAnimationActive:e.isAnimationActive,prevAnimationId:e.animationId,curSectors:e.sectors,prevSectors:[],isAnimationFinished:!0}:e.isAnimationActive&&e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curSectors:e.sectors,prevSectors:t.curSectors,isAnimationFinished:!0}:e.sectors!==t.curSectors?{curSectors:e.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(e,t){return e>t?"start":e=360?b:b-1)*f,O=l.reduce(function(e,t){var n=(0,A.kr)(t,k,0);return e+((0,S.Et)(n)?n:0)},0);return O>0&&(t=l.map(function(e,t){var r,i=(0,A.kr)(e,k,0),o=(0,A.kr)(e,d,t),l=((0,S.Et)(i)?i:0)/O,s=(r=t?n.endAngle+(0,S.sA)(v)*f*(0!==i):u)+(0,S.sA)(v)*((0!==i?g:0)+l*P),c=(r+s)/2,p=(y.innerRadius+y.outerRadius)/2,h=[{name:o,value:i,payload:e,dataKey:k,type:m}],x=(0,w.IZ)(y.cx,y.cy,p,c);return n=L(L(L({percent:l,cornerRadius:a,name:o,tooltipPayload:h,midAngle:c,middleRadius:p,tooltipPosition:x},e),y),{},{value:(0,A.kr)(e,k),startAngle:r,endAngle:s,payload:e,paddingAngle:(0,S.sA)(v)*f})})),L(L({},y),{},{sectors:t,data:l})})},69164:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var r=(0,n(41495).A)("outline","currency-dollar","IconCurrencyDollar",[["path",{d:"M16.7 8a3 3 0 0 0 -2.7 -2h-4a3 3 0 0 0 0 6h4a3 3 0 0 1 0 6h-4a3 3 0 0 1 -2.7 -2",key:"svg-0"}],["path",{d:"M12 3v3m0 12v3",key:"svg-1"}]])},72756:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,r=/-([a-z])/g,i=/^[^-]+$/,o=/^-(webkit|moz|ms|o|khtml)-/,l=/^-(ms)-/,a=function(e,t){return t.toUpperCase()},u=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){var s;return(void 0===t&&(t={}),!(s=e)||i.test(s)||n.test(s))?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(l,u):e.replace(o,u)).replace(r,a))}},81077:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var r=(0,n(41495).A)("outline","numbers","IconNumbers",[["path",{d:"M8 10v-7l-2 2",key:"svg-0"}],["path",{d:"M6 16a2 2 0 1 1 4 0c0 .591 -.601 1.46 -1 2l-3 3h4",key:"svg-1"}],["path",{d:"M15 14a2 2 0 1 0 2 -2a2 2 0 1 0 -2 -2",key:"svg-2"}],["path",{d:"M6.5 10h3",key:"svg-3"}]])},93003:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var r=(0,n(41495).A)("outline","percentage","IconPercentage",[["path",{d:"M17 17m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-0"}],["path",{d:"M7 7m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-1"}],["path",{d:"M6 18l12 -12",key:"svg-2"}]])}}]); \ No newline at end of file diff --git a/out/_next/static/chunks/8855-cf42fdc8b18f6cf0.js b/out/_next/static/chunks/8855-cf42fdc8b18f6cf0.js new file mode 100644 index 0000000..a9a516d --- /dev/null +++ b/out/_next/static/chunks/8855-cf42fdc8b18f6cf0.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8855],{3400:e=>{function t(e){var t={},r={},o=[];if(e.sinks().forEach(function i(a){if(Object.hasOwn(r,a))throw new n;Object.hasOwn(t,a)||(r[a]=!0,t[a]=!0,e.predecessors(a).forEach(i),delete r[a],o.push(a))}),Object.keys(t).length!==e.nodeCount())throw new n;return o}class n extends Error{constructor(){super(...arguments)}}e.exports=t,t.CycleException=n},3644:(e,t,n)=>{"use strict";let r=n(11280),o=n(21367).positionX;e.exports=function(e){var t;let n,i,a;t=e=r.asNonCompoundGraph(e),n=r.buildLayerMatrix(t),i=t.graph().ranksep,a=0,n.forEach(e=>{let n=e.reduce((e,n)=>{let r=t.node(n).height;return e>r?e:r},0);e.forEach(e=>t.node(e).y=a+n/2),a+=n+i}),Object.entries(o(e)).forEach(([t,n])=>e.node(t).x=n)}},4755:(e,t,n)=>{let r=n(11280);e.exports={run:function(e){var t,n,o;let i=r.addDummyNode(e,"root",{},"_root"),a=(n={},(t=e).children().forEach(e=>(function e(r,o){var i=t.children(r);i&&i.length&&i.forEach(t=>e(t,o+1)),n[r]=o})(e,1)),n),s=Object.values(a),u=r.applyWithChunking(Math.max,s)-1,l=2*u+1;e.graph().nestingRoot=i,e.edges().forEach(t=>e.edge(t).minlen*=l);let c=(o=e).edges().reduce((e,t)=>e+o.edge(t).weight,0)+1;e.children().forEach(t=>(function e(t,n,o,i,a,s,u){let l=t.children(u);if(!l.length){u!==n&&t.setEdge(n,u,{weight:0,minlen:o});return}let c=r.addBorderNode(t,"_bt"),h=r.addBorderNode(t,"_bb"),d=t.node(u);t.setParent(c,u),d.borderTop=c,t.setParent(h,u),d.borderBottom=h,l.forEach(r=>{e(t,n,o,i,a,s,r);let l=t.node(r),d=l.borderTop?l.borderTop:r,f=l.borderBottom?l.borderBottom:r,p=l.borderTop?i:2*i,g=d!==f?1:a-s[u]+1;t.setEdge(c,d,{weight:p,minlen:g,nestingEdge:!0}),t.setEdge(f,h,{weight:p,minlen:g,nestingEdge:!0})}),t.parent(u)||t.setEdge(n,c,{weight:0,minlen:a+s[u]})})(e,i,l,c,u,a,t)),e.graph().nodeRankFactor=l},cleanup:function(e){var t=e.graph();e.removeNode(t.nestingRoot),delete t.nestingRoot,e.edges().forEach(t=>{e.edge(t).nestingEdge&&e.removeEdge(t)})}}},7203:(e,t,n)=>{"use strict";e.exports=n(65675)},8210:(e,t,n)=>{var r=n(88885);e.exports=function(e){return r(e).filter(function(t){return t.length>1||1===t.length&&e.hasEdge(t[0],t[0])})}},11058:(e,t,n)=>{"use strict";n.d(t,{h:()=>h,n:()=>l});var r=n(55729),o=n(7203);let i=e=>{let t,n=new Set,r=(e,r)=>{let o="function"==typeof e?e(t):e;if(!Object.is(o,t)){let e=t;t=(null!=r?r:"object"!=typeof o||null===o)?o:Object.assign({},t,o),n.forEach(n=>n(t,e))}},o=()=>t,i={setState:r,getState:o,getInitialState:()=>a,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},a=t=e(r,o,i);return i},{useDebugValue:a}=r,{useSyncExternalStoreWithSelector:s}=o,u=e=>e;function l(e,t=u,n){let r=s(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return a(r),r}let c=(e,t)=>{let n=e?i(e):i,r=(e,r=t)=>l(n,e,r);return Object.assign(r,n),r},h=(e,t)=>e?c(e,t):c},11280:(e,t,n)=>{"use strict";let r=n(49010).Graph;function o(e,t,n,r){for(var o=r;e.hasNode(o);)o=u(r);return n.dummy=t,e.setNode(o,n),o}e.exports={addBorderNode:function(e,t,n,r){let i={width:0,height:0};return arguments.length>=4&&(i.rank=n,i.order=r),o(e,"border",i,t)},addDummyNode:o,applyWithChunking:i,asNonCompoundGraph:function(e){let t=new r({multigraph:e.isMultigraph()}).setGraph(e.graph());return e.nodes().forEach(n=>{e.children(n).length||t.setNode(n,e.node(n))}),e.edges().forEach(n=>{t.setEdge(n,e.edge(n))}),t},buildLayerMatrix:function(e){let t=l(a(e)+1).map(()=>[]);return e.nodes().forEach(n=>{let r=e.node(n),o=r.rank;void 0!==o&&(t[o][r.order]=n)}),t},intersectRect:function(e,t){let n,r,o=e.x,i=e.y,a=t.x-o,s=t.y-i,u=e.width/2,l=e.height/2;if(!a&&!s)throw Error("Not possible to find intersection inside of the rectangle");return Math.abs(s)*u>Math.abs(a)*l?(s<0&&(l=-l),n=l*a/s,r=l):(a<0&&(u=-u),n=u,r=u*s/a),{x:o+n,y:i+r}},mapValues:function(e,t){let n=t;return"string"==typeof t&&(n=e=>e[t]),Object.entries(e).reduce((e,[t,r])=>(e[t]=n(r,t),e),{})},maxRank:a,normalizeRanks:function(e){let t=i(Math.min,e.nodes().map(t=>{let n=e.node(t).rank;return void 0===n?Number.MAX_VALUE:n}));e.nodes().forEach(n=>{let r=e.node(n);Object.hasOwn(r,"rank")&&(r.rank-=t)})},notime:function(e,t){return t()},partition:function(e,t){let n={lhs:[],rhs:[]};return e.forEach(e=>{t(e)?n.lhs.push(e):n.rhs.push(e)}),n},pick:function(e,t){let n={};for(let r of t)void 0!==e[r]&&(n[r]=e[r]);return n},predecessorWeights:function(e){let t=e.nodes().map(t=>{let n={};return e.inEdges(t).forEach(t=>{n[t.v]=(n[t.v]||0)+e.edge(t).weight}),n});return c(e.nodes(),t)},range:l,removeEmptyRanks:function(e){let t=i(Math.min,e.nodes().map(t=>e.node(t).rank)),n=[];e.nodes().forEach(r=>{let o=e.node(r).rank-t;n[o]||(n[o]=[]),n[o].push(r)});let r=0,o=e.graph().nodeRankFactor;Array.from(n).forEach((t,n)=>{void 0===t&&n%o!=0?--r:void 0!==t&&r&&t.forEach(t=>e.node(t).rank+=r)})},simplify:function(e){let t=new r().setGraph(e.graph());return e.nodes().forEach(n=>t.setNode(n,e.node(n))),e.edges().forEach(n=>{let r=t.edge(n.v,n.w)||{weight:0,minlen:1},o=e.edge(n);t.setEdge(n.v,n.w,{weight:r.weight+o.weight,minlen:Math.max(r.minlen,o.minlen)})}),t},successorWeights:function(e){let t=e.nodes().map(t=>{let n={};return e.outEdges(t).forEach(t=>{n[t.w]=(n[t.w]||0)+e.edge(t).weight}),n});return c(e.nodes(),t)},time:function(e,t){let n=Date.now();try{return t()}finally{console.log(e+" time: "+(Date.now()-n)+"ms")}},uniqueId:u,zipObject:c};function i(e,t){if(!(t.length>65535))return e.apply(null,t);{let n=function(e,t=65535){let n=[];for(let r=0;re.apply(null,t)))}}function a(e){return i(Math.max,e.nodes().map(t=>{let n=e.node(t).rank;return void 0===n?5e-324:n}))}let s=0;function u(e){return e+""+ ++s}function l(e,t,n=1){null==t&&(t=e,e=0);let r=e=>et(e[n]=t[r],e),{})}},11426:(e,t,n)=>{e.exports={Graph:n(31866),version:n(57682)}},11844:(e,t,n)=>{"use strict";var r=n(91485),o=n(37039).slack,i=n(37039).longestPath,a=n(49010).alg.preorder,s=n(49010).alg.postorder,u=n(11280).simplify;function l(e){i(e=u(e));var t,n,o=r(e);for(d(o),c(o,e);t=f(o);)n=p(o,e,t),g(o,e,t,n)}function c(e,t){var n=s(e,e.nodes());(n=n.slice(0,n.length-1)).forEach(n=>{var r,o,i,a;return r=e,o=t,i=n,a=r.node(i).parent,void(r.edge(i,a).cutvalue=h(r,o,i))})}function h(e,t,n){var r=e.node(n).parent,o=!0,i=t.edge(n,r),a=0;return i||(o=!1,i=t.edge(r,n)),a=i.weight,t.nodeEdges(n).forEach(i=>{var s=i.v===n,u=s?i.w:i.v;if(u!==r){var l,c,h,d=s===o,f=t.edge(i).weight;if(a+=d?f:-f,l=e,c=n,h=u,l.hasEdge(c,h)){var p=e.edge(n,u).cutvalue;a+=d?-p:p}}}),a}function d(e,t){arguments.length<2&&(t=e.nodes()[0]),function e(t,n,r,o,i){var a=r,s=t.node(o);return n[o]=!0,t.neighbors(o).forEach(i=>{Object.hasOwn(n,i)||(r=e(t,n,r,i,o))}),s.low=a,s.lim=r++,i?s.parent=i:delete s.parent,r}(e,{},1,t)}function f(e){return e.edges().find(t=>e.edge(t).cutvalue<0)}function p(e,t,n){var r=n.v,i=n.w;t.hasEdge(r,i)||(r=n.w,i=n.v);var a=e.node(r),s=e.node(i),u=a,l=!1;return a.lim>s.lim&&(u=s,l=!0),t.edges().filter(t=>l===y(e,e.node(t.v),u)&&l!==y(e,e.node(t.w),u)).reduce((e,n)=>o(t,n)!i.node(e).parent),(u=(u=a(o,s)).slice(1)).forEach(e=>{var t=o.node(e).parent,n=i.edge(e,t),r=!1;n||(n=i.edge(t,e),r=!0),i.node(e).rank=i.node(t).rank+(r?n.minlen:-n.minlen)})}function y(e,t,n){return n.low<=t.lim&&t.lim<=n.lim}e.exports=l,l.initLowLimValues=d,l.initCutValues=c,l.calcCutValue=h,l.leaveEdge=f,l.enterEdge=p,l.exchangeEdges=g},12604:e=>{"use strict";function t(e){e.nodes().forEach(t=>n(e.node(t))),e.edges().forEach(t=>n(e.edge(t)))}function n(e){let t=e.width;e.width=e.height,e.height=t}function r(e){e.y=-e.y}function o(e){let t=e.x;e.x=e.y,e.y=t}e.exports={adjust:function(e){let n=e.graph().rankdir.toLowerCase();("lr"===n||"rl"===n)&&t(e)},undo:function(e){var n,i;let a=e.graph().rankdir.toLowerCase();("bt"===a||"rl"===a)&&((n=e).nodes().forEach(e=>r(n.node(e))),n.edges().forEach(e=>{let t=n.edge(e);t.points.forEach(r),Object.hasOwn(t,"y")&&r(t)})),("lr"===a||"rl"===a)&&((i=e).nodes().forEach(e=>o(i.node(e))),i.edges().forEach(e=>{let t=i.edge(e);t.points.forEach(o),Object.hasOwn(t,"x")&&o(t)}),t(e))}}},13402:(e,t,n)=>{var r=n(31866),o=n(51825);e.exports=function(e,t){var n,i=new r,a={},s=new o;function u(e){var r=e.v===n?e.w:e.v,o=s.priority(r);if(void 0!==o){var i=t(e);i0;){if(Object.hasOwn(a,n=s.removeMin()))i.setEdge(n,a[n]);else if(l)throw Error("Input graph is not connected: "+e);else l=!0;e.nodeEdges(n).forEach(u)}return i}},14105:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var r=(0,n(41495).A)("filled","calendar-filled","IconCalendarFilled",[["path",{d:"M16 2a1 1 0 0 1 .993 .883l.007 .117v1h1a3 3 0 0 1 2.995 2.824l.005 .176v12a3 3 0 0 1 -2.824 2.995l-.176 .005h-12a3 3 0 0 1 -2.995 -2.824l-.005 -.176v-12a3 3 0 0 1 2.824 -2.995l.176 -.005h1v-1a1 1 0 0 1 1.993 -.117l.007 .117v1h6v-1a1 1 0 0 1 1 -1zm3 7h-14v9.625c0 .705 .386 1.286 .883 1.366l.117 .009h12c.513 0 .936 -.53 .993 -1.215l.007 -.16v-9.625z",key:"svg-0"}],["path",{d:"M12 12a1 1 0 0 1 .993 .883l.007 .117v3a1 1 0 0 1 -1.993 .117l-.007 -.117v-2a1 1 0 0 1 -.117 -1.993l.117 -.007h1z",key:"svg-1"}]])},14134:(e,t,n)=>{let r=n(49010).Graph,o=n(11280);e.exports=function(e,t,n){let i=function(e){for(var t;e.hasNode(t=o.uniqueId("_root")););return t}(e),a=new r({compound:!0}).setGraph({root:i}).setDefaultNodeLabel(t=>e.node(t));return e.nodes().forEach(r=>{let o=e.node(r),s=e.parent(r);(o.rank===t||o.minRank<=t&&t<=o.maxRank)&&(a.setNode(r),a.setParent(r,s||i),e[n](r).forEach(t=>{let n=t.v===r?t.w:t.v,o=a.edge(n,r),i=void 0!==o?o.weight:0;a.setEdge(n,r,{weight:e.edge(t).weight+i})}),Object.hasOwn(o,"minRank")&&a.setNode(r,{borderLeft:o.borderLeft[t],borderRight:o.borderRight[t]}))}),a}},14570:(e,t,n)=>{var r=n(27660);e.exports=function(e,t){return r(e,t,"pre")}},19302:(e,t,n)=>{"use strict";let r=n(26736),o=n(91387),i=n(87905),a=n(11280).normalizeRanks,s=n(54598),u=n(11280).removeEmptyRanks,l=n(4755),c=n(49913),h=n(12604),d=n(83031),f=n(3644),p=n(11280),g=n(49010).Graph;e.exports=function(e,t){let n=t&&t.debugTiming?p.time:p.notime;n("layout",()=>{let O=n(" buildLayoutGraph",()=>{var t;let n,r;return t=e,n=new g({multigraph:!0,compound:!0}),r=M(t.graph()),n.setGraph(Object.assign({},m,k(r,y),p.pick(r,v))),t.nodes().forEach(e=>{let r=k(M(t.node(e)),w);Object.keys(x).forEach(e=>{void 0===r[e]&&(r[e]=x[e])}),n.setNode(e,r),n.setParent(e,t.parent(e))}),t.edges().forEach(e=>{let r=M(t.edge(e));n.setEdge(e,Object.assign({},_,k(r,b),p.pick(r,E)))}),n});n(" runLayout",()=>{var e,g,y;return e=O,g=n,y=t,void(g(" makeSpaceForEdgeLabels",()=>{var t;let n;return n=(t=e).graph(),void(n.ranksep/=2,t.edges().forEach(e=>{let r=t.edge(e);r.minlen*=2,"c"!==r.labelpos.toLowerCase()&&("TB"===n.rankdir||"BT"===n.rankdir?r.width+=r.labeloffset:r.height+=r.labeloffset)}))}),g(" removeSelfEdges",()=>{var t;(t=e).edges().forEach(e=>{if(e.v===e.w){var n=t.node(e.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e:e,label:t.edge(e)}),t.removeEdge(e)}})}),g(" acyclic",()=>r.run(e)),g(" nestingGraph.run",()=>l.run(e)),g(" rank",()=>i(p.asNonCompoundGraph(e))),g(" injectEdgeLabelProxies",()=>{var t;(t=e).edges().forEach(e=>{let n=t.edge(e);if(n.width&&n.height){let n=t.node(e.v),r={rank:(t.node(e.w).rank-n.rank)/2+n.rank,e:e};p.addDummyNode(t,"edge-proxy",r,"_ep")}})}),g(" removeEmptyRanks",()=>u(e)),g(" nestingGraph.cleanup",()=>l.cleanup(e)),g(" normalizeRanks",()=>a(e)),g(" assignRankMinMax",()=>{var t;let n;return n=0,void((t=e).nodes().forEach(e=>{let r=t.node(e);r.borderTop&&(r.minRank=t.node(r.borderTop).rank,r.maxRank=t.node(r.borderBottom).rank,n=Math.max(n,r.maxRank))}),t.graph().maxRank=n)}),g(" removeEdgeLabelProxies",()=>{var t;(t=e).nodes().forEach(e=>{let n=t.node(e);"edge-proxy"===n.dummy&&(t.edge(n.e).labelRank=n.rank,t.removeNode(e))})}),g(" normalize.run",()=>o.run(e)),g(" parentDummyChains",()=>s(e)),g(" addBorderSegments",()=>c(e)),g(" order",()=>d(e,y)),g(" insertSelfEdges",()=>{var t;return t=e,void p.buildLayerMatrix(t).forEach(e=>{var n=0;e.forEach((e,r)=>{var o=t.node(e);o.order=r+n,(o.selfEdges||[]).forEach(e=>{p.addDummyNode(t,"selfedge",{width:e.label.width,height:e.label.height,rank:o.rank,order:r+ ++n,e:e.e,label:e.label},"_se")}),delete o.selfEdges})})}),g(" adjustCoordinateSystem",()=>h.adjust(e)),g(" position",()=>f(e)),g(" positionSelfEdges",()=>{var t;(t=e).nodes().forEach(e=>{var n=t.node(e);if("selfedge"===n.dummy){var r=t.node(n.e.v),o=r.x+r.width/2,i=r.y,a=n.x-o,s=r.height/2;t.setEdge(n.e,n.label),t.removeNode(e),n.label.points=[{x:o+2*a/3,y:i-s},{x:o+5*a/6,y:i-s},{x:o+a,y:i},{x:o+5*a/6,y:i+s},{x:o+2*a/3,y:i+s}],n.label.x=n.x,n.label.y=n.y}})}),g(" removeBorderNodes",()=>{var t;(t=e).nodes().forEach(e=>{if(t.children(e).length){let n=t.node(e),r=t.node(n.borderTop),o=t.node(n.borderBottom),i=t.node(n.borderLeft[n.borderLeft.length-1]),a=t.node(n.borderRight[n.borderRight.length-1]);n.width=Math.abs(a.x-i.x),n.height=Math.abs(o.y-r.y),n.x=i.x+n.width/2,n.y=r.y+n.height/2}}),t.nodes().forEach(e=>{"border"===t.node(e).dummy&&t.removeNode(e)})}),g(" normalize.undo",()=>o.undo(e)),g(" fixupEdgeLabelCoords",()=>{var t;(t=e).edges().forEach(e=>{let n=t.edge(e);if(Object.hasOwn(n,"x"))switch(("l"===n.labelpos||"r"===n.labelpos)&&(n.width-=n.labeloffset),n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset}})}),g(" undoCoordinateSystem",()=>h.undo(e)),g(" translateGraph",()=>(function(e){let t=1/0,n=0,r=1/0,o=0,i=e.graph(),a=i.marginx||0,s=i.marginy||0;function u(e){let i=e.x,a=e.y,s=e.width,u=e.height;t=Math.min(t,i-s/2),n=Math.max(n,i+s/2),r=Math.min(r,a-u/2),o=Math.max(o,a+u/2)}e.nodes().forEach(t=>u(e.node(t))),e.edges().forEach(t=>{let n=e.edge(t);Object.hasOwn(n,"x")&&u(n)}),t-=a,r-=s,e.nodes().forEach(n=>{let o=e.node(n);o.x-=t,o.y-=r}),e.edges().forEach(n=>{let o=e.edge(n);o.points.forEach(e=>{e.x-=t,e.y-=r}),Object.hasOwn(o,"x")&&(o.x-=t),Object.hasOwn(o,"y")&&(o.y-=r)}),i.width=n-t+a,i.height=o-r+s})(e)),g(" assignNodeIntersects",()=>{var t;(t=e).edges().forEach(e=>{let n,r,o=t.edge(e),i=t.node(e.v),a=t.node(e.w);o.points?(n=o.points[0],r=o.points[o.points.length-1]):(o.points=[],n=a,r=i),o.points.unshift(p.intersectRect(i,n)),o.points.push(p.intersectRect(a,r))})}),g(" reversePoints",()=>{var t;(t=e).edges().forEach(e=>{let n=t.edge(e);n.reversed&&n.points.reverse()})}),g(" acyclic.undo",()=>r.undo(e)))}),n(" updateInputGraph",()=>{var t,n;return t=e,n=O,void(t.nodes().forEach(e=>{let r=t.node(e),o=n.node(e);r&&(r.x=o.x,r.y=o.y,r.rank=o.rank,n.children(e).length&&(r.width=o.width,r.height=o.height))}),t.edges().forEach(e=>{let r=t.edge(e),o=n.edge(e);r.points=o.points,Object.hasOwn(o,"x")&&(r.x=o.x,r.y=o.y)}),t.graph().width=n.graph().width,t.graph().height=n.graph().height)})})};let y=["nodesep","edgesep","ranksep","marginx","marginy"],m={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},v=["acyclicer","ranker","rankdir","align"],w=["width","height","rank"],x={width:0,height:0},b=["minlen","weight","width","height","labeloffset"],_={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},E=["labelpos"];function k(e,t){return p.mapValues(p.pick(e,t),Number)}function M(e){var t={};return e&&Object.entries(e).forEach(([e,n])=>{"string"==typeof e&&(e=e.toLowerCase()),t[e]=n}),t}},21367:(e,t,n)=>{"use strict";let r=n(49010).Graph,o=n(11280);function i(e,t){let n={};return t.length&&t.reduce(function(t,r){let o=0,i=0,a=t.length,u=r[r.length-1];return r.forEach((t,l)=>{let c=function(e,t){if(e.node(t).dummy)return e.predecessors(t).find(t=>e.node(t).dummy)}(e,t),h=c?e.node(c).order:a;(c||t===u)&&(r.slice(i,l+1).forEach(t=>{e.predecessors(t).forEach(r=>{let i=e.node(r),a=i.order;(a{l=t[r],e.node(l).dummy&&e.predecessors(l).forEach(t=>{let r=e.node(t);r.dummy&&(r.orderu)&&s(n,t,l)})})}return t.length&&t.reduce(function(t,n){let o=-1,i,a=0;return n.forEach((s,u)=>{if("border"===e.node(s).dummy){let t=e.predecessors(s);t.length&&(i=e.node(t[0]).order,r(n,a,u,o,i),a=u,o=i)}r(n,a,n.length,i,t.length)}),n}),n}function s(e,t,n){if(t>n){let e=t;t=n,n=e}let r=e[t];r||(e[t]=r={}),r[n]=!0}function u(e,t,n){if(t>n){let e=t;t=n,n=e}return!!e[t]&&Object.hasOwn(e[t],n)}function l(e,t,n,r){let o={},i={},a={};return t.forEach(e=>{e.forEach((e,t)=>{o[e]=e,i[e]=e,a[e]=t})}),t.forEach(e=>{let t=-1;e.forEach(e=>{let s=r(e);if(s.length){let r=((s=s.sort((e,t)=>a[e]-a[t])).length-1)/2;for(let l=Math.floor(r),c=Math.ceil(r);l<=c;++l){let r=s[l];i[e]===e&&t{let r,o,i=e.node(t),a=e.node(n);if(r=0+i.width/2,Object.hasOwn(i,"labelpos"))switch(i.labelpos.toLowerCase()){case"l":o=-i.width/2;break;case"r":o=i.width/2}if(o&&(r+=d?o:-o),o=0,r+=(i.dummy?h:c)/2,r+=(a.dummy?h:c)/2,r+=a.width/2,Object.hasOwn(a,"labelpos"))switch(a.labelpos.toLowerCase()){case"l":o=a.width/2;break;case"r":o=-a.width/2}return o&&(r+=d?o:-o),o=0,r}),s.forEach(e=>{let t;e.forEach(e=>{let n=u[e];if(f.setNode(n),t){var r=u[t],o=f.edge(r,n);f.setEdge(r,n,Math.max(g(a,e,t),o||0))}t=e})}),f),v=i?"borderLeft":"borderRight";function w(e,t){let n=m.nodes(),r=n.pop(),o={};for(;r;)o[r]?e(r):(o[r]=!0,n.push(r),n=n.concat(t(r))),r=n.pop()}return w(function(e){y[e]=m.inEdges(e).reduce((e,t)=>Math.max(e,y[t.v]+m.edge(t)),0)},m.predecessors.bind(m)),w(function(t){let n=m.outEdges(t).reduce((e,t)=>Math.min(e,y[t.w]-m.edge(t)),1/0),r=e.node(t);n!==1/0&&r.borderType!==v&&(y[t]=Math.max(y[t],n))},m.successors.bind(m)),Object.keys(o).forEach(e=>y[e]=y[n[e]]),y}function h(e,t){return Object.values(t).reduce((t,n)=>{let r=-1/0,o=1/0;Object.entries(n).forEach(([t,n])=>{var i,a;let s=(i=e,a=t,i.node(a).width/2);r=Math.max(n+s,r),o=Math.min(n-s,o)});let i=r-o;return i{["l","r"].forEach(a=>{let s=n+a,u=e[s];if(u===t)return;let l=Object.values(u),c=r-o.applyWithChunking(Math.min,l);"l"!==a&&(c=i-o.applyWithChunking(Math.max,l)),c&&(e[s]=o.mapValues(u,e=>e+c))})})}function f(e,t){return o.mapValues(e.ul,(n,r)=>{if(t)return e[t.toLowerCase()][r];{let t=Object.values(e).map(e=>e[r]).sort((e,t)=>e-t);return(t[1]+t[2])/2}})}e.exports={positionX:function(e){let t,n=o.buildLayerMatrix(e),r=Object.assign(i(e,n),a(e,n)),s={};["u","d"].forEach(i=>{t="u"===i?n:Object.values(n).reverse(),["l","r"].forEach(n=>{"r"===n&&(t=t.map(e=>Object.values(e).reverse()));let a=("u"===i?e.predecessors:e.successors).bind(e),u=l(e,t,r,a),h=c(e,t,u.root,u.align,"r"===n);"r"===n&&(h=o.mapValues(h,e=>-e)),s[i+n]=h})});let u=h(e,s);return d(s,u),f(s,e.graph().align)},findType1Conflicts:i,findType2Conflicts:a,addConflict:s,hasConflict:u,verticalAlignment:l,horizontalCompaction:c,alignCoordinates:d,findSmallestWidthAlignment:h,balance:f}},21848:e=>{e.exports="1.1.5"},23897:(e,t,n)=>{let r=n(11280);function o(e,t,n){let r;for(;t.length&&(r=t[t.length-1]).i<=n;)t.pop(),e.push(r.vs),n++;return n}e.exports=function(e,t){var n;let i=r.partition(e,e=>Object.hasOwn(e,"barycenter")),a=i.lhs,s=i.rhs.sort((e,t)=>t.i-e.i),u=[],l=0,c=0,h=0;a.sort((n=!!t,(e,t)=>e.barycentert.barycenter?1:n?t.i-e.i:e.i-t.i)),h=o(u,s,h),a.forEach(e=>{h+=e.vs.length,u.push(e.vs),l+=e.barycenter*e.weight,c+=e.weight,h=o(u,s,h)});let d={vs:u.flat(!0)};return c&&(d.barycenter=l/c,d.weight=c),d}},24650:(e,t,n)=>{"use strict";n.d(t,{A:()=>function e(t){if("string"==typeof t||"number"==typeof t)return""+t;let n="";if(Array.isArray(t))for(let r=0,o;r{class t{constructor(){let e={};e._next=e._prev=e,this._sentinel=e}dequeue(){let e=this._sentinel,t=e._prev;if(t!==e)return n(t),t}enqueue(e){let t=this._sentinel;e._prev&&e._next&&n(e),e._next=t._next,t._next._prev=e,t._next=e,e._prev=t}toString(){let e=[],t=this._sentinel,n=t._prev;for(;n!==t;)e.push(JSON.stringify(n,r)),n=n._prev;return"["+e.join(", ")+"]"}}function n(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function r(e,t){if("_next"!==e&&"_prev"!==e)return t}e.exports=t},26400:(e,t,n)=>{var r=n(31866);e.exports={write:function(e){var t,n,r={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:(t=e).nodes().map(function(e){var n=t.node(e),r=t.parent(e),o={v:e};return void 0!==n&&(o.value=n),void 0!==r&&(o.parent=r),o}),edges:(n=e).edges().map(function(e){var t=n.edge(e),r={v:e.v,w:e.w};return void 0!==e.name&&(r.name=e.name),void 0!==t&&(r.value=t),r})};return void 0!==e.graph()&&(r.value=structuredClone(e.graph())),r},read:function(e){var t=new r(e.options).setGraph(e.value);return e.nodes.forEach(function(e){t.setNode(e.v,e.value),e.parent&&t.setParent(e.v,e.parent)}),e.edges.forEach(function(e){t.setEdge({v:e.v,w:e.w,name:e.name},e.value)}),t}}},26736:(e,t,n)=>{"use strict";let r=n(51491),o=n(11280).uniqueId;e.exports={run:function(e){var t,n;let i,a,s;("greedy"===e.graph().acyclicer?r(e,(t=e,e=>t.edge(e).weight)):(i=[],a={},s={},(n=e).nodes().forEach(function e(t){Object.hasOwn(s,t)||(s[t]=!0,a[t]=!0,n.outEdges(t).forEach(t=>{Object.hasOwn(a,t.w)?i.push(t):e(t.w)}),delete a[t])}),i)).forEach(t=>{let n=e.edge(t);e.removeEdge(t),n.forwardName=t.name,n.reversed=!0,e.setEdge(t.w,t.v,n,o("rev"))})},undo:function(e){e.edges().forEach(t=>{let n=e.edge(t);if(n.reversed){e.removeEdge(t);let r=n.forwardName;delete n.reversed,delete n.forwardName,e.setEdge(t.w,t.v,n,r)}})}}},27133:(e,t,n)=>{"use strict";e.exports=n(85596)},27660:e=>{function t(e,t,n,o){for(var i=[[e,!1]];i.length>0;){var a=i.pop();a[1]?o.push(a[0]):Object.hasOwn(n,a[0])||(n[a[0]]=!0,i.push([a[0],!0]),r(t(a[0]),e=>i.push([e,!1])))}}function n(e,t,n,o){for(var i=[e];i.length>0;){var a=i.pop();Object.hasOwn(n,a)||(n[a]=!0,o.push(a),r(t(a),e=>i.push(e)))}}function r(e,t){for(var n=e.length;n--;)t(e[n],n,e);return e}e.exports=function(e,r,o){Array.isArray(r)||(r=[r]);var i=e.isDirected()?t=>e.successors(t):t=>e.neighbors(t),a="post"===o?t:n,s=[],u={};return r.forEach(t=>{if(!e.hasNode(t))throw Error("Graph does not have node: "+t);a(t,i,u,s)}),s}},31866:e=>{"use strict";class t{_isDirected=!0;_isMultigraph=!1;_isCompound=!1;_label;_defaultNodeLabelFn=()=>void 0;_defaultEdgeLabelFn=()=>void 0;_nodes={};_in={};_preds={};_out={};_sucs={};_edgeObjs={};_edgeLabels={};_nodeCount=0;_edgeCount=0;_parent;_children;constructor(e){e&&(this._isDirected=!Object.hasOwn(e,"directed")||e.directed,this._isMultigraph=!!Object.hasOwn(e,"multigraph")&&e.multigraph,this._isCompound=!!Object.hasOwn(e,"compound")&&e.compound),this._isCompound&&(this._parent={},this._children={},this._children["\0"]={})}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(e){return this._label=e,this}graph(){return this._label}setDefaultNodeLabel(e){return this._defaultNodeLabelFn=e,"function"!=typeof e&&(this._defaultNodeLabelFn=()=>e),this}nodeCount(){return this._nodeCount}nodes(){return Object.keys(this._nodes)}sources(){var e=this;return this.nodes().filter(t=>0===Object.keys(e._in[t]).length)}sinks(){var e=this;return this.nodes().filter(t=>0===Object.keys(e._out[t]).length)}setNodes(e,t){var n=arguments,r=this;return e.forEach(function(e){n.length>1?r.setNode(e,t):r.setNode(e)}),this}setNode(e,t){return Object.hasOwn(this._nodes,e)?arguments.length>1&&(this._nodes[e]=t):(this._nodes[e]=arguments.length>1?t:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]="\0",this._children[e]={},this._children["\0"][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount),this}node(e){return this._nodes[e]}hasNode(e){return Object.hasOwn(this._nodes,e)}removeNode(e){var t=this;if(Object.hasOwn(this._nodes,e)){var n=e=>t.removeEdge(t._edgeObjs[e]);delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],this.children(e).forEach(function(e){t.setParent(e)}),delete this._children[e]),Object.keys(this._in[e]).forEach(n),delete this._in[e],delete this._preds[e],Object.keys(this._out[e]).forEach(n),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this}setParent(e,t){if(!this._isCompound)throw Error("Cannot set parent in a non-compound graph");if(void 0===t)t="\0";else{t+="";for(var n=t;void 0!==n;n=this.parent(n))if(n===e)throw Error("Setting "+t+" as parent of "+e+" would create a cycle");this.setNode(t)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=t,this._children[t][e]=!0,this}_removeFromParentsChildList(e){delete this._children[this._parent[e]][e]}parent(e){if(this._isCompound){var t=this._parent[e];if("\0"!==t)return t}}children(e="\0"){if(this._isCompound){var t=this._children[e];if(t)return Object.keys(t)}else if("\0"===e)return this.nodes();else if(this.hasNode(e))return[]}predecessors(e){var t=this._preds[e];if(t)return Object.keys(t)}successors(e){var t=this._sucs[e];if(t)return Object.keys(t)}neighbors(e){var t=this.predecessors(e);if(t){let r=new Set(t);for(var n of this.successors(e))r.add(n);return Array.from(r.values())}}isLeaf(e){return 0===(this.isDirected()?this.successors(e):this.neighbors(e)).length}filterNodes(e){var t=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});t.setGraph(this.graph());var n=this;Object.entries(this._nodes).forEach(function([n,r]){e(n)&&t.setNode(n,r)}),Object.values(this._edgeObjs).forEach(function(e){t.hasNode(e.v)&&t.hasNode(e.w)&&t.setEdge(e,n.edge(e))});var r={};return this._isCompound&&t.nodes().forEach(e=>t.setParent(e,function e(o){var i=n.parent(o);return void 0===i||t.hasNode(i)?(r[o]=i,i):i in r?r[i]:e(i)}(e))),t}setDefaultEdgeLabel(e){return this._defaultEdgeLabelFn=e,"function"!=typeof e&&(this._defaultEdgeLabelFn=()=>e),this}edgeCount(){return this._edgeCount}edges(){return Object.values(this._edgeObjs)}setPath(e,t){var n=this,r=arguments;return e.reduce(function(e,o){return r.length>1?n.setEdge(e,o,t):n.setEdge(e,o),o}),this}setEdge(){var e,t,r,i,a=!1,s=arguments[0];"object"==typeof s&&null!==s&&"v"in s?(e=s.v,t=s.w,r=s.name,2==arguments.length&&(i=arguments[1],a=!0)):(e=s,t=arguments[1],r=arguments[3],arguments.length>2&&(i=arguments[2],a=!0)),e=""+e,t=""+t,void 0!==r&&(r=""+r);var u=o(this._isDirected,e,t,r);if(Object.hasOwn(this._edgeLabels,u))return a&&(this._edgeLabels[u]=i),this;if(void 0!==r&&!this._isMultigraph)throw Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(t),this._edgeLabels[u]=a?i:this._defaultEdgeLabelFn(e,t,r);var l=function(e,t,n,r){var o=""+t,i=""+n;if(!e&&o>i){var a=o;o=i,i=a}var s={v:o,w:i};return r&&(s.name=r),s}(this._isDirected,e,t,r);return e=l.v,t=l.w,Object.freeze(l),this._edgeObjs[u]=l,n(this._preds[t],e),n(this._sucs[e],t),this._in[t][u]=l,this._out[e][u]=l,this._edgeCount++,this}edge(e,t,n){var r=1==arguments.length?i(this._isDirected,arguments[0]):o(this._isDirected,e,t,n);return this._edgeLabels[r]}edgeAsObj(){let e=this.edge(...arguments);return"object"!=typeof e?{label:e}:e}hasEdge(e,t,n){var r=1==arguments.length?i(this._isDirected,arguments[0]):o(this._isDirected,e,t,n);return Object.hasOwn(this._edgeLabels,r)}removeEdge(e,t,n){var a=1==arguments.length?i(this._isDirected,arguments[0]):o(this._isDirected,e,t,n),s=this._edgeObjs[a];return s&&(e=s.v,t=s.w,delete this._edgeLabels[a],delete this._edgeObjs[a],r(this._preds[t],e),r(this._sucs[e],t),delete this._in[t][a],delete this._out[e][a],this._edgeCount--),this}inEdges(e,t){var n=this._in[e];if(n){var r=Object.values(n);return t?r.filter(e=>e.v===t):r}}outEdges(e,t){var n=this._out[e];if(n){var r=Object.values(n);return t?r.filter(e=>e.w===t):r}}nodeEdges(e,t){var n=this.inEdges(e,t);if(n)return n.concat(this.outEdges(e,t))}}function n(e,t){e[t]?e[t]++:e[t]=1}function r(e,t){--e[t]||delete e[t]}function o(e,t,n,r){var o=""+t,i=""+n;if(!e&&o>i){var a=o;o=i,i=a}return o+"\x01"+i+"\x01"+(void 0===r?"\0":r)}function i(e,t){return o(e,t.v,t.w,t.name)}e.exports=t},33208:e=>{e.exports=function(e,n,r){var o,i,a,s,u;return o=e,i=n||t,a=r||function(t){return e.outEdges(t)},s={},(u=o.nodes()).forEach(function(e){s[e]={},s[e][e]={distance:0},u.forEach(function(t){e!==t&&(s[e][t]={distance:1/0})}),a(e).forEach(function(t){var n=t.v===e?t.w:t.v,r=i(t);s[e][n]={distance:r,predecessor:e}})}),u.forEach(function(e){var t=s[e];u.forEach(function(n){var r=s[n];u.forEach(function(n){var o=r[e],i=t[n],a=r[n],s=o.distance+i.distance;s1},33536:e=>{e.exports=function(e,t=[]){return t.map(t=>{let n=e.inEdges(t);if(!n.length)return{v:t};{let r=n.reduce((t,n)=>{let r=e.edge(n),o=e.node(n.v);return{sum:t.sum+r.weight*o.order,weight:t.weight+r.weight}},{sum:0,weight:0});return{v:t,barycenter:r.sum/r.weight,weight:r.weight}}})}},36223:(e,t,n)=>{let r=n(11280),o=n(49010).Graph;e.exports={debugOrdering:function(e){let t=r.buildLayerMatrix(e),n=new o({compound:!0,multigraph:!0}).setGraph({});return e.nodes().forEach(t=>{n.setNode(t,{label:t}),n.setParent(t,"layer"+e.node(t).rank)}),e.edges().forEach(e=>n.setEdge(e.v,e.w,{},e.name)),t.forEach((e,t)=>{n.setNode("layer"+t,{rank:"same"}),e.reduce((e,t)=>(n.setEdge(e,t,{style:"invis"}),t))}),n}}},36973:(e,t,n)=>{var r=n(85199);e.exports=function(e,t,n){return e.nodes().reduce(function(o,i){return o[i]=r(e,i,t,n),o},{})}},37039:(e,t,n)=>{"use strict";let{applyWithChunking:r}=n(11280);e.exports={longestPath:function(e){var t={};e.sources().forEach(function n(o){var i=e.node(o);if(Object.hasOwn(t,o))return i.rank;t[o]=!0;var a=r(Math.min,e.outEdges(o).map(t=>null==t?1/0:n(t.w)-e.edge(t).minlen));return a===1/0&&(a=0),i.rank=a})},slack:function(e,t){return e.node(t.w).rank-e.node(t.v).rank-e.edge(t).minlen}}},44853:(e,t,n)=>{var r=n(27660);e.exports=function(e,t){return r(e,t,"post")}},49010:(e,t,n)=>{var r=n(11426);e.exports={Graph:r.Graph,json:n(26400),alg:n(56791),version:r.version}},49913:(e,t,n)=>{let r=n(11280);function o(e,t,n,o,i,a){let s=i[t][a-1],u=r.addDummyNode(e,"border",{width:0,height:0,rank:a,borderType:t},n);i[t][a]=u,e.setParent(u,o),s&&e.setEdge(s,u,{weight:1})}e.exports=function(e){e.children().forEach(function t(n){let r=e.children(n),i=e.node(n);if(r.length&&r.forEach(t),Object.hasOwn(i,"minRank")){i.borderLeft=[],i.borderRight=[];for(let t=i.minRank,r=i.maxRank+1;t{let r=n(49010).Graph,o=n(24913);e.exports=function(e,t){var n,u;let l,c,h,d,f;if(1>=e.nodeCount())return[];let p=(n=e,u=t||i,l=new r,c=0,h=0,n.nodes().forEach(e=>{l.setNode(e,{v:e,in:0,out:0})}),n.edges().forEach(e=>{let t=l.edge(e.v,e.w)||0,n=u(e);l.setEdge(e.v,e.w,t+n),h=Math.max(h,l.node(e.v).out+=n),c=Math.max(c,l.node(e.w).in+=n)}),d=(function(e){let t=[];for(let n=0;nnew o),f=c+1,l.nodes().forEach(e=>{s(d,f,l.node(e))}),{graph:l,buckets:d,zeroIdx:f});return(function(e,t,n){let r,o=[],i=t[t.length-1],s=t[0];for(;e.nodeCount();){for(;r=s.dequeue();)a(e,t,n,r);for(;r=i.dequeue();)a(e,t,n,r);if(e.nodeCount()){for(let i=t.length-2;i>0;--i)if(r=t[i].dequeue()){o=o.concat(a(e,t,n,r,!0));break}}}return o})(p.graph,p.buckets,p.zeroIdx).flatMap(t=>e.outEdges(t.v,t.w))};let i=()=>1;function a(e,t,n,r,o){let i=o?[]:void 0;return e.inEdges(r.v).forEach(r=>{let a=e.edge(r),u=e.node(r.v);o&&i.push({v:r.v,w:r.w}),u.out-=a,s(t,n,u)}),e.outEdges(r.v).forEach(r=>{let o=e.edge(r),i=r.w,a=e.node(i);a.in-=o,s(t,n,a)}),e.removeNode(r.v),i}function s(e,t,n){n.out?n.in?e[n.out-n.in+t].enqueue(n):e[e.length-1].enqueue(n):e[0].enqueue(n)}},51825:e=>{class t{_arr=[];_keyIndices={};size(){return this._arr.length}keys(){return this._arr.map(function(e){return e.key})}has(e){return Object.hasOwn(this._keyIndices,e)}priority(e){var t=this._keyIndices[e];if(void 0!==t)return this._arr[t].priority}min(){if(0===this.size())throw Error("Queue underflow");return this._arr[0].key}add(e,t){var n=this._keyIndices;if(!Object.hasOwn(n,e=String(e))){var r=this._arr,o=r.length;return n[e]=o,r.push({key:e,priority:t}),this._decrease(o),!0}return!1}removeMin(){this._swap(0,this._arr.length-1);var e=this._arr.pop();return delete this._keyIndices[e.key],this._heapify(0),e.key}decrease(e,t){var n=this._keyIndices[e];if(t>this._arr[n].priority)throw Error("New priority is greater than current priority. Key: "+e+" Old: "+this._arr[n].priority+" New: "+t);this._arr[n].priority=t,this._decrease(n)}_heapify(e){var t=this._arr,n=2*e,r=n+1,o=e;n>1].priority{e.exports=function(e){var t;let n,r,o=(n={},r=0,(t=e).children().forEach(function e(o){let i=r;t.children(o).forEach(e),n[o]={low:i,lim:r++}}),n);e.graph().dummyChains.forEach(t=>{let n=e.node(t),r=n.edgeObj,i=function(e,t,n,r){let o,i,a=[],s=[],u=Math.min(t[n].low,t[r].low),l=Math.max(t[n].lim,t[r].lim);o=n;do a.push(o=e.parent(o));while(o&&(t[o].low>u||l>t[o].lim));for(i=o,o=r;(o=e.parent(o))!==i;)s.push(o);return{path:a.concat(s.reverse()),lca:i}}(e,o,r.v,r.w),a=i.path,s=i.lca,u=0,l=a[0],c=!0;for(;t!==r.w;){if(n=e.node(t),c){for(;(l=a[u])!==s&&e.node(l).maxRank{e.exports=function(e,t,n){let r={},o;n.forEach(n=>{let i=e.parent(n),a,s;for(;i;){if((a=e.parent(i))?(s=r[a],r[a]=i):(s=o,o=i),s&&s!==i)return void t.setEdge(s,i);i=a}})}},55272:e=>{"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(o=r;0!=o--;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;0!=o--;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;0!=o--;){var r,o,i,a=i[o];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n}},56791:(e,t,n)=>{e.exports={components:n(57013),dijkstra:n(85199),dijkstraAll:n(36973),findCycles:n(8210),floydWarshall:n(33208),isAcyclic:n(61528),postorder:n(44853),preorder:n(14570),prim:n(13402),tarjan:n(88885),topsort:n(3400)}},56992:(e,t,n)=>{e.exports={graphlib:n(49010),layout:n(19302),debug:n(36223),util:{time:n(11280).time,notime:n(11280).notime},version:n(21848)}},57013:e=>{e.exports=function(e){var t,n={},r=[];return e.nodes().forEach(function(o){t=[],function r(o){Object.hasOwn(n,o)||(n[o]=!0,t.push(o),e.successors(o).forEach(r),e.predecessors(o).forEach(r))}(o),t.length&&r.push(t)}),r}},57537:(e,t,n)=>{"use strict";let r=n(11280);e.exports=function(e,t){let n={};return e.forEach((e,t)=>{let r=n[e.v]={indegree:0,in:[],out:[],vs:[e.v],i:t};void 0!==e.barycenter&&(r.barycenter=e.barycenter,r.weight=e.weight)}),t.edges().forEach(e=>{let t=n[e.v],r=n[e.w];void 0!==t&&void 0!==r&&(r.indegree++,t.out.push(n[e.w]))}),function(e){let t=[];for(;e.length;){let n=e.pop();t.push(n),n.in.reverse().forEach(function(e){return t=>{!t.merged&&(void 0===t.barycenter||void 0===e.barycenter||t.barycenter>=e.barycenter)&&function(e,t){let n=0,r=0;e.weight&&(n+=e.barycenter*e.weight,r+=e.weight),t.weight&&(n+=t.barycenter*t.weight,r+=t.weight),e.vs=t.vs.concat(e.vs),e.barycenter=n/r,e.weight=r,e.i=Math.min(t.i,e.i),t.merged=!0}(e,t)}}(n)),n.out.forEach(function(t){return n=>{n.in.push(t),0==--n.indegree&&e.push(n)}}(n))}return t.filter(e=>!e.merged).map(e=>r.pick(e,["vs","i","barycenter","weight"]))}(Object.values(n).filter(e=>!e.indegree))}},57682:e=>{e.exports="2.2.4"},57703:(e,t,n)=>{"use strict";n.d(t,{Do:()=>p,WZ:()=>h,TG:()=>g,ny:()=>d,yX:()=>y,xN:()=>m,Qc:()=>f,I$:()=>nG,aQ:()=>nQ,di:()=>nJ,kO:()=>n6,ET:()=>ro,rN:()=>ny,bi:()=>nI,_s:()=>t7,aE:()=>tP,Hm:()=>nA,tM:()=>tE,KE:()=>tZ,tn:()=>t_,xc:()=>tx,us:()=>t6,IO:()=>tL,e_:()=>nl,Fp:()=>nd,Mi:()=>tG,HF:()=>tO,Eo:()=>nn,b5:()=>nE,th:()=>nz,Tq:()=>tT,qX:()=>np,q1:()=>ns,oj:()=>nr,aZ:()=>tz,aW:()=>nj,uD:()=>t8,ih:()=>nC,Jo:()=>tN,U$:()=>t$,X6:()=>tW,oN:()=>nb,ah:()=>nm,R4:()=>t2,r8:()=>nR,ZO:()=>tb,bK:()=>tk,b$:()=>tj,uj:()=>ng,v5:()=>ni,Ue:()=>t5,Er:()=>na,oB:()=>tA,kf:()=>tU,mW:()=>tK,Q6:()=>ne,QE:()=>t9,kM:()=>tY,No:()=>nH,Ff:()=>tJ,zj:()=>t0,s_:()=>tQ,vS:()=>nT,qn:()=>nX,uL:()=>nB,YN:()=>t4});var r,o,i,a,s,u,l,c,h,d,f,p,g,y,m,v={value:()=>{}};function w(){for(var e,t=0,n=arguments.length,r={};t=0&&(t=e.slice(n+1),e=e.slice(0,n)),e&&!r.hasOwnProperty(e))throw Error("unknown type: "+e);return{type:e,name:t}}),i=-1,a=o.length;if(arguments.length<2){for(;++i0)for(var n,r,o=Array(n),i=0;it?1:e>=t?0:NaN}$.prototype={constructor:$,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};var D="http://www.w3.org/1999/xhtml";let V={svg:"http://www.w3.org/2000/svg",xhtml:D,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function R(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),V.hasOwnProperty(t)?{space:V[t],local:e}:e}function B(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function H(e,t){return e.style.getPropertyValue(t)||B(e).getComputedStyle(e,null).getPropertyValue(t)}function F(e){return e.trim().split(/^|\s+/)}function X(e){return e.classList||new Y(e)}function Y(e){this._node=e,this._names=F(e.getAttribute("class")||"")}function q(e,t){for(var n=X(e),r=-1,o=t.length;++rthis._names.indexOf(e)&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var ea=[null];function es(e,t){this._groups=e,this._parents=t}function eu(){return new es([[document.documentElement]],ea)}function el(e){return"string"==typeof e?new es([[document.querySelector(e)]],[document.documentElement]):new es([[e]],ea)}function ec(e,t){if(e=function(e){let t;for(;t=e.sourceEvent;)e=t;return e}(e),void 0===t&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,[(r=r.matrixTransform(t.getScreenCTM().inverse())).x,r.y]}if(t.getBoundingClientRect){var o=t.getBoundingClientRect();return[e.clientX-o.left-t.clientLeft,e.clientY-o.top-t.clientTop]}}return[e.pageX,e.pageY]}es.prototype=eu.prototype={constructor:es,select:function(e){"function"!=typeof e&&(e=E(e));for(var t=this._groups,n=t.length,r=Array(n),o=0;o=_&&(_=b+1);!(x=y[_])&&++_=0;)(r=o[i])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=I);for(var n=this._groups,r=n.length,o=Array(r),i=0;i1?this.each((null==t?function(e){return function(){this.style.removeProperty(e)}}:"function"==typeof t?function(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}:function(e,t,n){return function(){this.style.setProperty(e,t,n)}})(e,t,null==n?"":n)):H(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?function(e){return function(){delete this[e]}}:"function"==typeof t?function(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}:function(e,t){return function(){this[e]=t}})(e,t)):this.node()[e]},classed:function(e,t){var n=F(e+"");if(arguments.length<2){for(var r=X(this.node()),o=-1,i=n.length;++o=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}),a=i.length;if(arguments.length<2){var s=this.node().__on;if(s){for(var u,l=0,c=s.length;l()=>e;function ev(e,{sourceEvent:t,subject:n,target:r,identifier:o,active:i,x:a,y:s,dx:u,dy:l,dispatch:c}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:o,enumerable:!0,configurable:!0},active:{value:i,enumerable:!0,configurable:!0},x:{value:a,enumerable:!0,configurable:!0},y:{value:s,enumerable:!0,configurable:!0},dx:{value:u,enumerable:!0,configurable:!0},dy:{value:l,enumerable:!0,configurable:!0},_:{value:c}})}function ew(e){return!e.ctrlKey&&!e.button}function ex(){return this.parentNode}function eb(e,t){return null==t?{x:e.x,y:e.y}:t}function e_(){return navigator.maxTouchPoints||"ontouchstart"in this}function eE(){var e,t,n,r,o=ew,i=ex,a=eb,s=e_,u={},l=w("start","drag","end"),c=0,h=0;function d(e){e.on("mousedown.drag",f).filter(s).on("touchstart.drag",y).on("touchmove.drag",m,eh).on("touchend.drag touchcancel.drag",v).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function f(a,s){if(!r&&o.call(this,a,s)){var u=x(this,i.call(this,a,s),a,s,"mouse");u&&(el(a.view).on("mousemove.drag",p,ed).on("mouseup.drag",g,ed),eg(a.view),ef(a),n=!1,e=a.clientX,t=a.clientY,u("start",a))}}function p(r){if(ep(r),!n){var o=r.clientX-e,i=r.clientY-t;n=o*o+i*i>h}u.mouse("drag",r)}function g(e){el(e.view).on("mousemove.drag mouseup.drag",null),ey(e.view,n),ep(e),u.mouse("end",e)}function y(e,t){if(o.call(this,e,t)){var n,r,a=e.changedTouches,s=i.call(this,e,t),u=a.length;for(n=0;n=0&&t._call.call(void 0,e),t=t._next;--eA}finally{eA=0,function(){for(var e,t,n=eO,r=1/0;n;)n._call?(r>n._time&&(r=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:eO=t);ej=e,eH(r)}(),ez=0}}function eB(){var e=eL.now(),t=e-eN;t>1e3&&(e$-=t,eN=e)}function eH(e){!eA&&(eC&&(eC=clearTimeout(eC)),e-ez>24?(e<1/0&&(eC=setTimeout(eR,e-eL.now()-e$)),eS&&(eS=clearInterval(eS))):(eS||(eN=eL.now(),eS=setInterval(eB,1e3)),eA=1,eP(eR)))}function eF(e,t,n){var r=new eD;return t=null==t?0:+t,r.restart(n=>{r.stop(),e(n+t)},t,n),r}eD.prototype=eV.prototype={constructor:eD,restart:function(e,t,n){if("function"!=typeof e)throw TypeError("callback is not a function");n=(null==n?eT():+n)+(null==t?0:+t),this._next||ej===this||(ej?ej._next=this:eO=this,ej=this),this._call=e,this._time=n,eH()},stop:function(){this._call&&(this._call=null,this._time=1/0,eH())}};var eX=w("start","end","cancel","interrupt"),eY=[];function eq(e,t,n,r,o,i){var a=e.__transition;if(a){if(n in a)return}else e.__transition={};!function(e,t,n){var r,o=e.__transition;function i(u){var l,c,h,d;if(1!==n.state)return s();for(l in o)if((d=o[l]).name===n.name){if(3===d.state)return eF(i);4===d.state?(d.state=6,d.timer.stop(),d.on.call("interrupt",e,e.__data__,d.index,d.group),delete o[l]):+l0)throw Error("too late; already scheduled");return n}function eW(e,t){var n=eK(e,t);if(n.state>3)throw Error("too late; already running");return n}function eK(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw Error("transition not found");return n}function eU(e,t){var n,r,o,i=e.__transition,a=!0;if(i){for(o in t=null==t?null:t+"",i){if((n=i[o]).name!==t){a=!1;continue}r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete i[o]}a&&delete e.__transition}}var eZ=n(30669),eQ=180/Math.PI,eJ={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function e0(e,t,n,r,o,i){var a,s,u;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(u=e*n+t*r)&&(n-=e*u,r-=t*u),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,u/=s),e*r180?u+=360:u-s>180&&(s+=360),d.push({i:h.push(o(h)+"rotate(",null,r)-2,x:(0,eZ.A)(s,u)})):u&&h.push(o(h)+"rotate("+u+r),l=i.skewX,c=a.skewX,l!==c?d.push({i:h.push(o(h)+"skewX(",null,r)-2,x:(0,eZ.A)(l,c)}):c&&h.push(o(h)+"skewX("+c+r),!function(e,t,n,r,i,a){if(e!==n||t!==r){var s=i.push(o(i)+"scale(",null,",",null,")");a.push({i:s-4,x:(0,eZ.A)(e,n)},{i:s-2,x:(0,eZ.A)(t,r)})}else(1!==n||1!==r)&&i.push(o(i)+"scale("+n+","+r+")")}(i.scaleX,i.scaleY,a.scaleX,a.scaleY,h,d),i=a=null,function(e){for(var t,n=-1,r=d.length;++n=0&&(e=e.slice(0,t)),!e||"start"===e})?eG:eW,function(){var e=s(this,n),t=e.on;t!==i&&(a=(i=t).copy()).on(r,o),e.on=a}))},attr:function(e,t){var n=R(e),r="transform"===n?e5:e7;return this.attrTween(e,"function"==typeof t?(n.local?function(e,t,n){var r,o,i;return function(){var a,s,u=n(this);return null==u?void this.removeAttributeNS(e.space,e.local):(a=this.getAttributeNS(e.space,e.local))===(s=u+"")?null:a===r&&s===o?i:(o=s,i=t(r=a,u))}}:function(e,t,n){var r,o,i;return function(){var a,s,u=n(this);return null==u?void this.removeAttribute(e):(a=this.getAttribute(e))===(s=u+"")?null:a===r&&s===o?i:(o=s,i=t(r=a,u))}})(n,r,e3(this,"attr."+e,t)):null==t?(n.local?function(e){return function(){this.removeAttributeNS(e.space,e.local)}}:function(e){return function(){this.removeAttribute(e)}})(n):(n.local?function(e,t,n){var r,o,i=n+"";return function(){var a=this.getAttributeNS(e.space,e.local);return a===i?null:a===r?o:o=t(r=a,n)}}:function(e,t,n){var r,o,i=n+"";return function(){var a=this.getAttribute(e);return a===i?null:a===r?o:o=t(r=a,n)}})(n,r,t))},attrTween:function(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw Error();var r=R(e);return this.tween(n,(r.local?function(e,t){var n,r;function o(){var o=t.apply(this,arguments);return o!==r&&(n=(r=o)&&function(t){this.setAttributeNS(e.space,e.local,o.call(this,t))}),n}return o._value=t,o}:function(e,t){var n,r;function o(){var o=t.apply(this,arguments);return o!==r&&(n=(r=o)&&function(t){this.setAttribute(e,o.call(this,t))}),n}return o._value=t,o})(r,t))},style:function(e,t,n){var r,o,i,a,s,u,l,c,h,d,f,p,g,y,m,v,w,x,b,_,E,k="transform"==(e+="")?e2:e7;return null==t?this.styleTween(e,(r=e,function(){var e=H(this,r),t=(this.style.removeProperty(r),H(this,r));return e===t?null:e===o&&t===i?a:a=k(o=e,i=t)})).on("end.style."+e,te(e)):"function"==typeof t?this.styleTween(e,(s=e,u=e3(this,"style."+e,t),function(){var e=H(this,s),t=u(this),n=t+"";return null==t&&(this.style.removeProperty(s),n=t=H(this,s)),e===n?null:e===l&&n===c?h:(c=n,h=k(l=e,t))})).each((d=this._id,w="end."+(v="style."+(f=e)),function(){var e=eW(this,d),t=e.on,n=null==e.value[v]?m||(m=te(f)):void 0;(t!==p||y!==n)&&(g=(p=t).copy()).on(w,y=n),e.on=g})):this.styleTween(e,(x=e,E=t+"",function(){var e=H(this,x);return e===E?null:e===b?_:_=k(b=e,t)}),n).on("end.style."+e,null)},styleTween:function(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==t)return this.tween(r,null);if("function"!=typeof t)throw Error();return this.tween(r,function(e,t,n){var r,o;function i(){var i=t.apply(this,arguments);return i!==o&&(r=(o=i)&&function(t){this.style.setProperty(e,i.call(this,t),n)}),r}return i._value=t,i}(e,t,null==n?"":n))},text:function(e){var t,n;return this.tween("text","function"==typeof e?(t=e3(this,"text",e),function(){var e=t(this);this.textContent=null==e?"":e}):(n=null==e?"":e+"",function(){this.textContent=n}))},textTween:function(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(null==e)return this.tween(t,null);if("function"!=typeof e)throw Error();return this.tween(t,function(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&function(e){this.textContent=r.call(this,e)}),t}return r._value=e,r}(e))},remove:function(){var e;return this.on("end.remove",(e=this._id,function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}))},tween:function(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r,o=eK(this.node(),n).tween,i=0,a=o.length;i()=>e;function ta(e,{sourceEvent:t,target:n,transform:r,dispatch:o}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:o}})}function ts(e,t,n){this.k=e,this.x=t,this.y=n}ts.prototype={constructor:ts,scale:function(e){return 1===e?this:new ts(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new ts(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var tu=new ts(1,0,0);function tl(e){for(;!e.__zoom;)if(!(e=e.parentNode))return tu;return e.__zoom}function tc(e){e.stopImmediatePropagation()}function th(e){e.preventDefault(),e.stopImmediatePropagation()}function td(e){return(!e.ctrlKey||"wheel"===e.type)&&!e.button}function tf(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e).hasAttribute("viewBox")?[[(e=e.viewBox.baseVal).x,e.y],[e.x+e.width,e.y+e.height]]:[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]:[[0,0],[e.clientWidth,e.clientHeight]]}function tp(){return this.__zoom||tu}function tg(e){return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function ty(){return navigator.maxTouchPoints||"ontouchstart"in this}function tm(e,t,n){var r=e.invertX(t[0][0])-n[0][0],o=e.invertX(t[1][0])-n[1][0],i=e.invertY(t[0][1])-n[0][1],a=e.invertY(t[1][1])-n[1][1];return e.translate(o>r?(r+o)/2:Math.min(0,r)||Math.max(0,o),a>i?(i+a)/2:Math.min(0,i)||Math.max(0,a))}function tv(){var e,t,n,r=td,o=tf,i=tm,a=tg,s=ty,u=[0,1/0],l=[[-1/0,-1/0],[1/0,1/0]],c=250,h=eM,d=w("start","zoom","end"),f=0,p=10;function g(e){e.property("__zoom",tp).on("wheel.zoom",E,{passive:!1}).on("mousedown.zoom",k).on("dblclick.zoom",M).filter(s).on("touchstart.zoom",O).on("touchmove.zoom",j).on("touchend.zoom touchcancel.zoom",A).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function y(e,t){return(t=Math.max(u[0],Math.min(u[1],t)))===e.k?e:new ts(t,e.x,e.y)}function m(e,t,n){var r=t[0]-n[0]*e.k,o=t[1]-n[1]*e.k;return r===e.x&&o===e.y?e:new ts(e.k,r,o)}function v(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function x(e,t,n,r){e.on("start.zoom",function(){b(this,arguments).event(r).start()}).on("interrupt.zoom end.zoom",function(){b(this,arguments).event(r).end()}).tween("zoom",function(){var e=arguments,i=b(this,e).event(r),a=o.apply(this,e),s=null==n?v(a):"function"==typeof n?n.apply(this,e):n,u=Math.max(a[1][0]-a[0][0],a[1][1]-a[0][1]),l=this.__zoom,c="function"==typeof t?t.apply(this,e):t,d=h(l.invert(s).concat(u/l.k),c.invert(s).concat(u/c.k));return function(e){if(1===e)e=c;else{var t=d(e),n=u/t[2];e=new ts(n,s[0]-t[0]*n,s[1]-t[1]*n)}i.zoom(null,e)}})}function b(e,t,n){return!n&&e.__zooming||new _(e,t)}function _(e,t){this.that=e,this.args=t,this.active=0,this.sourceEvent=null,this.extent=o.apply(e,t),this.taps=0}function E(e,...t){if(r.apply(this,arguments)){var n=b(this,t).event(e),o=this.__zoom,s=Math.max(u[0],Math.min(u[1],o.k*Math.pow(2,a.apply(this,arguments)))),c=ec(e);if(n.wheel)(n.mouse[0][0]!==c[0]||n.mouse[0][1]!==c[1])&&(n.mouse[1]=o.invert(n.mouse[0]=c)),clearTimeout(n.wheel);else{if(o.k===s)return;n.mouse=[c,o.invert(c)],eU(this),n.start()}th(e),n.wheel=setTimeout(function(){n.wheel=null,n.end()},150),n.zoom("mouse",i(m(y(o,s),n.mouse[0],n.mouse[1]),n.extent,l))}}function k(e,...t){if(!n&&r.apply(this,arguments)){var o=e.currentTarget,a=b(this,t,!0).event(e),s=el(e.view).on("mousemove.zoom",function(e){if(th(e),!a.moved){var t=e.clientX-c,n=e.clientY-h;a.moved=t*t+n*n>f}a.event(e).zoom("mouse",i(m(a.that.__zoom,a.mouse[0]=ec(e,o),a.mouse[1]),a.extent,l))},!0).on("mouseup.zoom",function(e){s.on("mousemove.zoom mouseup.zoom",null),ey(e.view,a.moved),th(e),a.event(e).end()},!0),u=ec(e,o),c=e.clientX,h=e.clientY;eg(e.view),tc(e),a.mouse=[u,this.__zoom.invert(u)],eU(this),a.start()}}function M(e,...t){if(r.apply(this,arguments)){var n=this.__zoom,a=ec(e.changedTouches?e.changedTouches[0]:e,this),s=n.invert(a),u=n.k*(e.shiftKey?.5:2),h=i(m(y(n,u),a,s),o.apply(this,t),l);th(e),c>0?el(this).transition().duration(c).call(x,h,a,e):el(this).call(g.transform,h,a,e)}}function O(n,...o){if(r.apply(this,arguments)){var i,a,s,u,l=n.touches,c=l.length,h=b(this,o,n.changedTouches.length===c).event(n);for(tc(n),a=0;a"[React Flow]: Seems like you have not used zustand provider as an ancestor. Help: https://reactflow.dev/error#001",error002:()=>"It looks like you've created a new nodeTypes or edgeTypes object. If this wasn't on purpose please define the nodeTypes/edgeTypes outside of the component or memoize them.",error003:e=>`Node type "${e}" not found. Using fallback type "default".`,error004:()=>"The React Flow parent container needs a width and a height to render the graph.",error005:()=>"Only child nodes can use a parent extent.",error006:()=>"Can't create edge. An edge needs a source and a target.",error007:e=>`The old edge with id=${e} does not exist.`,error009:e=>`Marker type "${e}" doesn't exist.`,error008:(e,{id:t,sourceHandle:n,targetHandle:r})=>`Couldn't create edge for ${e} handle id: "${"source"===e?n:r}", edge id: ${t}.`,error010:()=>"Handle: No node id found. Make sure to only use a Handle inside a custom Node.",error011:e=>`Edge type "${e}" not found. Using fallback type "default".`,error012:e=>`Node with id "${e}" does not exist, it may have been removed. This can happen when a node is deleted before the "onNodeClick" handler is called.`,error013:(e="react")=>`It seems that you haven't loaded the styles. Please import '@xyflow/${e}/dist/style.css' or base.css to make sure everything is working properly.`,error014:()=>"useNodeConnections: No node ID found. Call useNodeConnections inside a custom Node or provide a node ID.",error015:()=>"It seems that you are trying to drag a node that is not initialized. Please use onNodesChange as explained in the docs."},tb=[[-1/0,-1/0],[1/0,1/0]],t_=["Enter"," ","Escape"],tE={"node.a11yDescription.default":"Press enter or space to select a node. Press delete to remove it and escape to cancel.","node.a11yDescription.keyboardDisabled":"Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.","node.a11yDescription.ariaLiveMessage":({direction:e,x:t,y:n})=>`Moved selected node ${e}. New position, x: ${t}, y: ${n}`,"edge.a11yDescription.default":"Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.","controls.ariaLabel":"Control Panel","controls.zoomIn.ariaLabel":"Zoom In","controls.zoomOut.ariaLabel":"Zoom Out","controls.fitView.ariaLabel":"Fit View","controls.interactive.ariaLabel":"Toggle Interactivity","minimap.ariaLabel":"Mini Map","handle.ariaLabel":"Handle"};(r=h||(h={})).Strict="strict",r.Loose="loose",(o=d||(d={})).Free="free",o.Vertical="vertical",o.Horizontal="horizontal",(i=f||(f={})).Partial="partial",i.Full="full";let tk={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null};(a=p||(p={})).Bezier="default",a.Straight="straight",a.Step="step",a.SmoothStep="smoothstep",a.SimpleBezier="simplebezier",(s=g||(g={})).Arrow="arrow",s.ArrowClosed="arrowclosed",(u=y||(y={})).Left="left",u.Top="top",u.Right="right",u.Bottom="bottom";let tM={[y.Left]:y.Right,[y.Right]:y.Left,[y.Top]:y.Bottom,[y.Bottom]:y.Top};function tO(e){return null===e?null:e?"valid":"invalid"}let tj=e=>"id"in e&&"source"in e&&"target"in e,tA=e=>"id"in e&&"position"in e&&!("source"in e)&&!("target"in e),tC=e=>"id"in e&&"internals"in e&&!("source"in e)&&!("target"in e),tS=(e,t=[0,0])=>{let{width:n,height:r}=t8(e),o=e.origin??t,i=n*o[0],a=r*o[1];return{x:e.position.x-i,y:e.position.y-a}},tN=(e,t={nodeOrigin:[0,0]})=>0===e.length?{x:0,y:0,width:0,height:0}:tX(e.reduce((e,n)=>{let r="string"==typeof n,o=t.nodeLookup||r?void 0:n;return t.nodeLookup&&(o=r?t.nodeLookup.get(n):tC(n)?n:t.nodeLookup.get(n.id)),tH(e,o?tq(o,t.nodeOrigin):{x:0,y:0,x2:0,y2:0})},{x:1/0,y:1/0,x2:-1/0,y2:-1/0})),tz=(e,t={})=>{let n={x:1/0,y:1/0,x2:-1/0,y2:-1/0},r=!1;return e.forEach(e=>{(void 0===t.filter||t.filter(e))&&(n=tH(n,tq(e)),r=!0)}),r?tX(n):{x:0,y:0,width:0,height:0}},t$=(e,t,[n,r,o]=[0,0,1],i=!1,a=!1)=>{let s={...tJ(t,[n,r,o]),width:t.width/o,height:t.height/o},u=[];for(let t of e.values()){let{measured:e,selectable:n=!0,hidden:r=!1}=t;if(a&&!n||r)continue;let o=e.width??t.width??t.initialWidth??null,l=e.height??t.height??t.initialHeight??null,c=tW(s,tY(t)),h=(o??0)*(l??0),d=i&&c>0;(!t.internals.handleBounds||d||c>=h||t.dragging)&&u.push(t)}return u};async function tL({nodes:e,width:t,height:n,panZoom:r,minZoom:o,maxZoom:i},a){let s,u;if(0===e.size)return Promise.resolve(!0);let l=t2(tz((s=new Map,u=a?.nodes?new Set(a.nodes.map(e=>e.id)):null,e.forEach(e=>{e.measured.width&&e.measured.height&&(a?.includeHiddenNodes||!e.hidden)&&(!u||u.has(e.id))&&s.set(e.id,e)}),s)),t,n,a?.minZoom??o,a?.maxZoom??i,a?.padding??.1);return await r.setViewport(l,{duration:a?.duration,ease:a?.ease,interpolate:a?.interpolate}),Promise.resolve(!0)}function tP({nodeId:e,nextPosition:t,nodeLookup:n,nodeOrigin:r=[0,0],nodeExtent:o,onError:i}){let a=n.get(e),s=a.parentId?n.get(a.parentId):void 0,{x:u,y:l}=s?s.internals.positionAbsolute:{x:0,y:0},c=a.origin??r,h=a.extent||o;if("parent"!==a.extent||a.expandParent)s&&t3(a.extent)&&(h=[[a.extent[0][0]+u,a.extent[0][1]+l],[a.extent[1][0]+u,a.extent[1][1]+l]]);else if(s){let e=s.measured.width,t=s.measured.height;e&&t&&(h=[[u,l],[u+e,l+t]])}else i?.("005",tx.error005());let d=t3(h)?tD(t,h,a.measured):t;return(void 0===a.measured.width||void 0===a.measured.height)&&i?.("015",tx.error015()),{position:{x:d.x-u+(a.measured.width??0)*c[0],y:d.y-l+(a.measured.height??0)*c[1]},positionAbsolute:d}}async function tT({nodesToRemove:e=[],edgesToRemove:t=[],nodes:n,edges:r,onBeforeDelete:o}){let i,a=new Set(e.map(e=>e.id)),s=[];for(let e of n){if(!1===e.deletable)continue;let t=a.has(e.id),n=!t&&e.parentId&&s.find(t=>t.id===e.parentId);(t||n)&&s.push(e)}let u=new Set(t.map(e=>e.id)),l=r.filter(e=>!1!==e.deletable),c=(i=new Set,s.forEach(e=>{i.add(e.id)}),l.filter(e=>i.has(e.source)||i.has(e.target)));for(let e of l)u.has(e.id)&&!c.find(t=>t.id===e.id)&&c.push(e);if(!o)return{edges:c,nodes:s};let h=await o({nodes:s,edges:c});return"boolean"==typeof h?h?{edges:c,nodes:s}:{edges:[],nodes:[]}:h}let tI=(e,t=0,n=1)=>Math.min(Math.max(e,t),n),tD=(e={x:0,y:0},t,n)=>({x:tI(e.x,t[0][0],t[1][0]-(n?.width??0)),y:tI(e.y,t[0][1],t[1][1]-(n?.height??0))});function tV(e,t,n){let{width:r,height:o}=t8(n),{x:i,y:a}=n.internals.positionAbsolute;return tD(e,[[i,a],[i+r,a+o]],t)}let tR=(e,t,n)=>en?-tI(Math.abs(e-n),1,t)/t:0,tB=(e,t,n=15,r=40)=>[tR(e.x,r,t.width-r)*n,tR(e.y,r,t.height-r)*n],tH=(e,t)=>({x:Math.min(e.x,t.x),y:Math.min(e.y,t.y),x2:Math.max(e.x2,t.x2),y2:Math.max(e.y2,t.y2)}),tF=({x:e,y:t,width:n,height:r})=>({x:e,y:t,x2:e+n,y2:t+r}),tX=({x:e,y:t,x2:n,y2:r})=>({x:e,y:t,width:n-e,height:r-t}),tY=(e,t=[0,0])=>{let{x:n,y:r}=tC(e)?e.internals.positionAbsolute:tS(e,t);return{x:n,y:r,width:e.measured?.width??e.width??e.initialWidth??0,height:e.measured?.height??e.height??e.initialHeight??0}},tq=(e,t=[0,0])=>{let{x:n,y:r}=tC(e)?e.internals.positionAbsolute:tS(e,t);return{x:n,y:r,x2:n+(e.measured?.width??e.width??e.initialWidth??0),y2:r+(e.measured?.height??e.height??e.initialHeight??0)}},tG=(e,t)=>tX(tH(tF(e),tF(t))),tW=(e,t)=>Math.ceil(Math.max(0,Math.min(e.x+e.width,t.x+t.width)-Math.max(e.x,t.x))*Math.max(0,Math.min(e.y+e.height,t.y+t.height)-Math.max(e.y,t.y))),tK=e=>tU(e.width)&&tU(e.height)&&tU(e.x)&&tU(e.y),tU=e=>!isNaN(e)&&isFinite(e),tZ=(e,t)=>{},tQ=(e,t=[1,1])=>({x:t[0]*Math.round(e.x/t[0]),y:t[1]*Math.round(e.y/t[1])}),tJ=({x:e,y:t},[n,r,o],i=!1,a=[1,1])=>{let s={x:(e-n)/o,y:(t-r)/o};return i?tQ(s,a):s},t0=({x:e,y:t},[n,r,o])=>({x:e*o+n,y:t*o+r});function t1(e,t){if("number"==typeof e)return Math.floor((t-t/(1+e))*.5);if("string"==typeof e&&e.endsWith("px")){let t=parseFloat(e);if(!Number.isNaN(t))return Math.floor(t)}if("string"==typeof e&&e.endsWith("%")){let n=parseFloat(e);if(!Number.isNaN(n))return Math.floor(t*n*.01)}return console.error(`[React Flow] The padding value "${e}" is invalid. Please provide a number or a string with a valid unit (px or %).`),0}let t2=(e,t,n,r,o,i)=>{let a=function(e,t,n){if("string"==typeof e||"number"==typeof e){let r=t1(e,n),o=t1(e,t);return{top:r,right:o,bottom:r,left:o,x:2*o,y:2*r}}if("object"==typeof e){let r=t1(e.top??e.y??0,n),o=t1(e.bottom??e.y??0,n),i=t1(e.left??e.x??0,t),a=t1(e.right??e.x??0,t);return{top:r,right:a,bottom:o,left:i,x:i+a,y:r+o}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}(i,t,n),s=tI(Math.min((t-a.x)/e.width,(n-a.y)/e.height),r,o),u=e.x+e.width/2,l=e.y+e.height/2,c=t/2-u*s,h=n/2-l*s,d=function(e,t,n,r,o,i){let{x:a,y:s}=t0(e,[t,n,r]),{x:u,y:l}=t0({x:e.x+e.width,y:e.y+e.height},[t,n,r]);return{left:Math.floor(a),top:Math.floor(s),right:Math.floor(o-u),bottom:Math.floor(i-l)}}(e,c,h,s,t,n),f={left:Math.min(d.left-a.left,0),top:Math.min(d.top-a.top,0),right:Math.min(d.right-a.right,0),bottom:Math.min(d.bottom-a.bottom,0)};return{x:c-f.left+f.right,y:h-f.top+f.bottom,zoom:s}},t5=()=>"u">typeof navigator&&navigator?.userAgent?.indexOf("Mac")>=0;function t3(e){return null!=e&&"parent"!==e}function t8(e){return{width:e.measured?.width??e.width??e.initialWidth??0,height:e.measured?.height??e.height??e.initialHeight??0}}function t9(e){return(e.measured?.width??e.width??e.initialWidth)!==void 0&&(e.measured?.height??e.height??e.initialHeight)!==void 0}function t6(e,t={width:0,height:0},n,r,o){let i={...e},a=r.get(n);if(a){let e=a.origin||o;i.x+=a.internals.positionAbsolute.x-(t.width??0)*e[0],i.y+=a.internals.positionAbsolute.y-(t.height??0)*e[1]}return i}function t7(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function t4(){let e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}function ne(e){return{...tE,...e||{}}}function nt(e,{snapGrid:t=[0,0],snapToGrid:n=!1,transform:r,containerBounds:o}){let{x:i,y:a}=ns(e),s=tJ({x:i-(o?.left??0),y:a-(o?.top??0)},r),{x:u,y:l}=n?tQ(s,t):s;return{xSnapped:u,ySnapped:l,...s}}let nn=e=>({width:e.offsetWidth,height:e.offsetHeight}),nr=e=>e?.getRootNode?.()||window?.document,no=["INPUT","SELECT","TEXTAREA"];function ni(e){let t=e.composedPath?.()?.[0]||e.target;return t?.nodeType===1&&(no.includes(t.nodeName)||t.hasAttribute("contenteditable")||!!t.closest(".nokey"))}let na=e=>"clientX"in e,ns=(e,t)=>{let n=na(e),r=n?e.clientX:e.touches?.[0].clientX,o=n?e.clientY:e.touches?.[0].clientY;return{x:r-(t?.left??0),y:o-(t?.top??0)}},nu=(e,t,n,r,o)=>{let i=t.querySelectorAll(`.${e}`);return i&&i.length?Array.from(i).map(t=>{let i=t.getBoundingClientRect();return{id:t.getAttribute("data-handleid"),type:e,nodeId:o,position:t.getAttribute("data-handlepos"),x:(i.left-n.left)/r,y:(i.top-n.top)/r,...nn(t)}}):null};function nl({sourceX:e,sourceY:t,targetX:n,targetY:r,sourceControlX:o,sourceControlY:i,targetControlX:a,targetControlY:s}){let u=.125*e+.375*o+.375*a+.125*n,l=.125*t+.375*i+.375*s+.125*r,c=Math.abs(u-e),h=Math.abs(l-t);return[u,l,c,h]}function nc(e,t){return e>=0?.5*e:25*t*Math.sqrt(-e)}function nh({pos:e,x1:t,y1:n,x2:r,y2:o,c:i}){switch(e){case y.Left:return[t-nc(t-r,i),n];case y.Right:return[t+nc(r-t,i),n];case y.Top:return[t,n-nc(n-o,i)];case y.Bottom:return[t,n+nc(o-n,i)]}}function nd({sourceX:e,sourceY:t,sourcePosition:n=y.Bottom,targetX:r,targetY:o,targetPosition:i=y.Top,curvature:a=.25}){let[s,u]=nh({pos:n,x1:e,y1:t,x2:r,y2:o,c:a}),[l,c]=nh({pos:i,x1:r,y1:o,x2:e,y2:t,c:a}),[h,d,f,p]=nl({sourceX:e,sourceY:t,targetX:r,targetY:o,sourceControlX:s,sourceControlY:u,targetControlX:l,targetControlY:c});return[`M${e},${t} C${s},${u} ${l},${c} ${r},${o}`,h,d,f,p]}function nf({sourceX:e,sourceY:t,targetX:n,targetY:r}){let o=Math.abs(n-e)/2,i=Math.abs(r-t)/2;return[n0}let ny=(e,t)=>{let n,r;return e.source&&e.target?(r=n=tj(e)?{...e}:{...e,id:(({source:e,sourceHandle:t,target:n,targetHandle:r})=>`xy-edge__${e}${t||""}-${n}${r||""}`)(e)},t.some(e=>e.source===r.source&&e.target===r.target&&(e.sourceHandle===r.sourceHandle||!e.sourceHandle&&!r.sourceHandle)&&(e.targetHandle===r.targetHandle||!e.targetHandle&&!r.targetHandle)))?t:(null===n.sourceHandle&&delete n.sourceHandle,null===n.targetHandle&&delete n.targetHandle,t.concat(n)):(tZ("006",tx.error006()),t)};function nm({sourceX:e,sourceY:t,targetX:n,targetY:r}){let[o,i,a,s]=nf({sourceX:e,sourceY:t,targetX:n,targetY:r});return[`M ${e},${t}L ${n},${r}`,o,i,a,s]}let nv={[y.Left]:{x:-1,y:0},[y.Right]:{x:1,y:0},[y.Top]:{x:0,y:-1},[y.Bottom]:{x:0,y:1}},nw=({source:e,sourcePosition:t=y.Bottom,target:n})=>t===y.Left||t===y.Right?e.xMath.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2));function nb({sourceX:e,sourceY:t,sourcePosition:n=y.Bottom,targetX:r,targetY:o,targetPosition:i=y.Top,borderRadius:a=5,centerX:s,centerY:u,offset:l=20,stepPosition:c=.5}){let[h,d,f,p,g]=function({source:e,sourcePosition:t=y.Bottom,target:n,targetPosition:r=y.Top,center:o,offset:i,stepPosition:a}){let s,u,l=nv[t],c=nv[r],h={x:e.x+l.x*i,y:e.y+l.y*i},d={x:n.x+c.x*i,y:n.y+c.y*i},f=nw({source:h,sourcePosition:t,target:d}),p=0!==f.x?"x":"y",g=f[p],m=[],v={x:0,y:0},w={x:0,y:0},[,,x,b]=nf({sourceX:e.x,sourceY:e.y,targetX:n.x,targetY:n.y});if(l[p]*c[p]==-1){"x"===p?(s=o.x??h.x+(d.x-h.x)*a,u=o.y??(h.y+d.y)/2):(s=o.x??(h.x+d.x)/2,u=o.y??h.y+(d.y-h.y)*a);let e=[{x:s,y:h.y},{x:s,y:d.y}],t=[{x:h.x,y:u},{x:d.x,y:u}];m=l[p]===g?"x"===p?e:t:"x"===p?t:e}else{let o=[{x:h.x,y:d.y}],a=[{x:d.x,y:h.y}];if(m="x"===p?l.x===g?a:o:l.y===g?o:a,t===r){let t=Math.abs(e[p]-n[p]);if(t<=i){let r=Math.min(i-1,i-t);l[p]===g?v[p]=(h[p]>e[p]?-1:1)*r:w[p]=(d[p]>n[p]?-1:1)*r}}if(t!==r){let e="x"===p?"y":"x",t=l[p]===c[e],n=h[e]>d[e],r=h[e]=Math.max(Math.abs(f.y-m[0].y),Math.abs(y.y-m[0].y))?(s=(f.x+y.x)/2,u=m[0].y):(s=m[0].x,u=(f.y+y.y)/2)}return[[e,{x:h.x+v.x,y:h.y+v.y},...m,{x:d.x+w.x,y:d.y+w.y},n],s,u,x,b]}({source:{x:e,y:t},sourcePosition:n,target:{x:r,y:o},targetPosition:i,center:{x:s,y:u},offset:l,stepPosition:c});return[h.reduce((e,t,n)=>e+(n>0&&ne.id===t):e[0])||null}function nj(e,t){if(!e)return"";if("string"==typeof e)return e;let n=t?`${t}__`:"";return`${n}${Object.keys(e).sort().map(t=>`${t}=${e[t]}`).join("&")}`}function nA(e,{id:t,defaultColor:n,defaultMarkerStart:r,defaultMarkerEnd:o}){let i=new Set;return e.reduce((e,a)=>([a.markerStart||r,a.markerEnd||o].forEach(r=>{if(r&&"object"==typeof r){let o=nj(r,t);i.has(o)||(e.push({id:o,color:r.color||n,...r}),i.add(o))}}),e),[]).sort((e,t)=>e.id.localeCompare(t.id))}function nC(e,t,n,r,o){let i=.5;"start"===o?i=0:"end"===o&&(i=1);let a=[(e.x+e.width*i)*t.zoom+t.x,e.y*t.zoom+t.y-r],s=[-100*i,-100];switch(n){case y.Right:a=[(e.x+e.width)*t.zoom+t.x+r,(e.y+e.height*i)*t.zoom+t.y],s=[0,-100*i];break;case y.Bottom:a[1]=(e.y+e.height)*t.zoom+t.y+r,s[1]=0;break;case y.Left:a=[e.x*t.zoom+t.x-r,(e.y+e.height*i)*t.zoom+t.y],s=[-100,-100*i]}return`translate(${a[0]}px, ${a[1]}px) translate(${s[0]}%, ${s[1]}%)`}let nS={left:0,center:50,right:100},nN={top:0,center:50,bottom:100};function nz(e,t,n,r="center",o="center"){return`translate(${e}px, ${t}px) scale(${1/n}) translate(${-(nS[r]??50)}%, ${-(nN[o]??50)}%)`}let n$={nodeOrigin:[0,0],nodeExtent:tb,elevateNodesOnSelect:!0,defaults:{}},nL={...n$,checkEquality:!0};function nP(e,t){let n={...e};for(let e in t)void 0!==t[e]&&(n[e]=t[e]);return n}function nT(e,t,n){let r=nP(n$,n);for(let n of e.values())if(n.parentId)nD(n,e,t,r);else{let e=tD(tS(n,r.nodeOrigin),t3(n.extent)?n.extent:r.nodeExtent,t8(n));n.internals.positionAbsolute=e}}function nI(e,t,n,r){let o=nP(nL,r),i={i:-1},a=e.length>0,s=new Map(t),u=1e3*!!o?.elevateNodesOnSelect;for(let l of(t.clear(),n.clear(),e)){let e=s.get(l.id);if(o.checkEquality&&l===e?.internals.userNode)t.set(l.id,e);else{let n=tD(tS(l,o.nodeOrigin),t3(l.extent)?l.extent:o.nodeExtent,t8(l));e={...o.defaults,...l,measured:{width:l.measured?.width,height:l.measured?.height},internals:{positionAbsolute:n,handleBounds:function(e,t){if(!e.handles)return e.measured?t?.internals.handleBounds:void 0;let n=[],r=[];for(let t of e.handles){let o={id:t.id,width:t.width??1,height:t.height??1,nodeId:e.id,x:t.x,y:t.y,position:t.position,type:t.type};"source"===t.type?n.push(o):"target"===t.type&&r.push(o)}return{source:n,target:r}}(l,e),z:nV(l,u),userNode:l}},t.set(l.id,e)}void 0!==e.measured&&void 0!==e.measured.width&&void 0!==e.measured.height||e.hidden||(a=!1),l.parentId&&nD(e,t,n,r,i)}return a}function nD(e,t,n,r,o){let{elevateNodesOnSelect:i,nodeOrigin:a,nodeExtent:s}=nP(n$,r),u=e.parentId,l=t.get(u);if(!l)return void console.warn(`Parent node ${u} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);!function(e,t){if(!e.parentId)return;let n=t.get(e.parentId);n?n.set(e.id,e):t.set(e.parentId,new Map([[e.id,e]]))}(e,n),o&&!l.parentId&&void 0===l.internals.rootParentIndex&&(l.internals.rootParentIndex=++o.i,l.internals.z=l.internals.z+10*o.i),o&&void 0!==l.internals.rootParentIndex&&(o.i=l.internals.rootParentIndex);let{x:c,y:h,z:d}=function(e,t,n,r,o){let{x:i,y:a}=t.internals.positionAbsolute,s=t8(e),u=tS(e,n),l=t3(e.extent)?tD(u,e.extent,s):u,c=tD({x:i+l.x,y:a+l.y},r,s);"parent"===e.extent&&(c=tV(c,s,t));let h=nV(e,o),d=t.internals.z??0;return{x:c.x,y:c.y,z:d>=h?d+1:h}}(e,l,a,s,1e3*!!i),{positionAbsolute:f}=e.internals,p=c!==f.x||h!==f.y;(p||d!==e.internals.z)&&t.set(e.id,{...e,internals:{...e.internals,positionAbsolute:p?{x:c,y:h}:f,z:d}})}function nV(e,t){return(tU(e.zIndex)?e.zIndex:0)+(e.selected?t:0)}function nR(e,t,n,r=[0,0]){let o=[],i=new Map;for(let n of e){let e=t.get(n.parentId);if(!e)continue;let r=tG(i.get(n.parentId)?.expandedRect??tY(e),n.rect);i.set(n.parentId,{expandedRect:r,parent:e})}return i.size>0&&i.forEach(({expandedRect:t,parent:i},a)=>{let s=i.internals.positionAbsolute,u=t8(i),l=i.origin??r,c=t.x0||h>0||p||g)&&(o.push({id:a,type:"position",position:{x:i.position.x-c+p,y:i.position.y-h+g}}),n.get(a)?.forEach(t=>{e.some(e=>e.id===t.id)||o.push({id:t.id,type:"position",position:{x:t.position.x+c,y:t.position.y+h}})})),(u.width0){let e=nR(h,t,n,o);u.push(...e)}return{changes:u,updatedInternals:s}}async function nH({delta:e,panZoom:t,transform:n,translateExtent:r,width:o,height:i}){if(!t||!e.x&&!e.y)return Promise.resolve(!1);let a=await t.setViewportConstrained({x:n[0]+e.x,y:n[1]+e.y,zoom:n[2]},[[0,0],[o,i]],r);return Promise.resolve(!!a&&(a.x!==n[0]||a.y!==n[1]||a.k!==n[2]))}function nF(e,t,n,r,o,i){let a=o,s=r.get(a)||new Map;r.set(a,s.set(n,t)),a=`${o}-${e}`;let u=r.get(a)||new Map;if(r.set(a,u.set(n,t)),i){a=`${o}-${e}-${i}`;let s=r.get(a)||new Map;r.set(a,s.set(n,t))}}function nX(e,t,n){for(let r of(e.clear(),t.clear(),n)){let{source:n,target:o,sourceHandle:i=null,targetHandle:a=null}=r,s={edgeId:r.id,source:n,target:o,sourceHandle:i,targetHandle:a},u=`${n}-${i}--${o}-${a}`;nF("source",s,`${o}-${a}--${n}-${i}`,e,n,i),nF("target",s,u,e,o,a),t.set(r.id,r)}}function nY(e,t,n){let r=e;do{if(r?.matches?.(t))return!0;if(r===n)break;r=r?.parentElement}while(r);return!1}function nq({nodeId:e,dragItems:t,nodeLookup:n,dragging:r=!0}){let o=[];for(let[e,i]of t){let t=n.get(e)?.internals.userNode;t&&o.push({...t,position:i.position,dragging:r})}if(!e)return[o[0],o];let i=n.get(e)?.internals.userNode;return[i?{...i,position:t.get(e)?.position||i.position,dragging:r}:o[0],o]}function nG({onNodeMouseDown:e,getStoreItems:t,onDragStart:n,onDrag:r,onDragStop:o}){let i={x:null,y:null},a=0,s=new Map,u=!1,l={x:0,y:0},c=null,h=!1,d=null,f=!1,p=!1,g=null;return{update:function({noDragClassName:y,handleSelector:m,domNode:v,isSelectable:w,nodeId:x,nodeClickDistance:b=0}){function _({x:e,y:n}){let{nodeLookup:o,nodeExtent:a,snapGrid:u,snapToGrid:l,nodeOrigin:c,onNodeDrag:h,onSelectionDrag:d,onError:f,updateNodePositions:y}=t();i={x:e,y:n};let m=!1,v=s.size>1,w=v&&a?tF(tz(s)):null,b=v&&l?function({dragItems:e,snapGrid:t,x:n,y:r}){let o=e.values().next().value;if(!o)return null;let i={x:n-o.distance.x,y:r-o.distance.y},a=tQ(i,t);return{x:a.x-i.x,y:a.y-i.y}}({dragItems:s,snapGrid:u,x:e,y:n}):null;for(let[t,r]of s){if(!o.has(t))continue;let i={x:e-r.distance.x,y:n-r.distance.y};l&&(i=b?{x:Math.round(i.x+b.x),y:Math.round(i.y+b.y)}:tQ(i,u));let s=null;if(v&&a&&!r.extent&&w){let{positionAbsolute:e}=r.internals,t=e.x-w.x+a[0][0],n=e.x+r.measured.width-w.x2+a[1][0];s=[[t,e.y-w.y+a[0][1]],[n,e.y+r.measured.height-w.y2+a[1][1]]]}let{position:h,positionAbsolute:d}=tP({nodeId:t,nextPosition:i,nodeLookup:o,nodeExtent:s||a,nodeOrigin:c,onError:f});m=m||r.position.x!==h.x||r.position.y!==h.y,r.position=h,r.internals.positionAbsolute=d}if(p=p||m,m&&(y(s,!0),g&&(r||h||!x&&d))){let[e,t]=nq({nodeId:x,dragItems:s,nodeLookup:o});r?.(g,s,e,t),h?.(g,e,t),x||d?.(g,t)}}async function E(){if(!c)return;let{transform:e,panBy:n,autoPanSpeed:r,autoPanOnNodeDrag:o}=t();if(!o){u=!1,cancelAnimationFrame(a);return}let[s,h]=tB(l,c,r);(0!==s||0!==h)&&(i.x=(i.x??0)-s/e[2],i.y=(i.y??0)-h/e[2],await n({x:s,y:h})&&_(i)),a=requestAnimationFrame(E)}function k(r){let{nodeLookup:o,multiSelectionActive:a,nodesDraggable:u,transform:l,snapGrid:d,snapToGrid:f,selectNodesOnDrag:p,onNodeDragStart:g,onSelectionDragStart:y,unselectNodesAndEdges:m}=t();h=!0,p&&w||a||!x||o.get(x)?.selected||m(),w&&p&&x&&e?.(x);let v=nt(r.sourceEvent,{transform:l,snapGrid:d,snapToGrid:f,containerBounds:c});if(i=v,(s=function(e,t,n,r){let o=new Map;for(let[i,a]of e)if((a.selected||a.id===r)&&(!a.parentId||!function e(t,n){if(!t.parentId)return!1;let r=n.get(t.parentId);return!!r&&(!!r.selected||e(r,n))}(a,e))&&(a.draggable||t&&void 0===a.draggable)){let t=e.get(i);t&&o.set(i,{id:i,position:t.position||{x:0,y:0},distance:{x:n.x-t.internals.positionAbsolute.x,y:n.y-t.internals.positionAbsolute.y},extent:t.extent,parentId:t.parentId,origin:t.origin,expandParent:t.expandParent,internals:{positionAbsolute:t.internals.positionAbsolute||{x:0,y:0}},measured:{width:t.measured.width??0,height:t.measured.height??0}})}return o}(o,u,v,x)).size>0&&(n||g||!x&&y)){let[e,t]=nq({nodeId:x,dragItems:s,nodeLookup:o});n?.(r.sourceEvent,s,e,t),g?.(r.sourceEvent,e,t),x||y?.(r.sourceEvent,t)}}d=el(v);let M=eE().clickDistance(b).on("start",e=>{let{domNode:n,nodeDragThreshold:r,transform:o,snapGrid:a,snapToGrid:s}=t();c=n?.getBoundingClientRect()||null,f=!1,p=!1,g=e.sourceEvent,0===r&&k(e),i=nt(e.sourceEvent,{transform:o,snapGrid:a,snapToGrid:s,containerBounds:c}),l=ns(e.sourceEvent,c)}).on("drag",e=>{let{autoPanOnNodeDrag:n,transform:r,snapGrid:o,snapToGrid:a,nodeDragThreshold:d,nodeLookup:p}=t(),y=nt(e.sourceEvent,{transform:r,snapGrid:o,snapToGrid:a,containerBounds:c});if(g=e.sourceEvent,("touchmove"===e.sourceEvent.type&&e.sourceEvent.touches.length>1||x&&!p.has(x))&&(f=!0),!f){if(!u&&n&&h&&(u=!0,E()),!h){let t=ns(e.sourceEvent,c),n=t.x-l.x,r=t.y-l.y;Math.sqrt(n*n+r*r)>d&&k(e)}(i.x!==y.xSnapped||i.y!==y.ySnapped)&&s&&h&&(l=ns(e.sourceEvent,c),_(y))}}).on("end",e=>{if(h&&!f&&(u=!1,h=!1,cancelAnimationFrame(a),s.size>0)){let{nodeLookup:n,updateNodePositions:r,onNodeDragStop:i,onSelectionDragStop:a}=t();if(p&&(r(s,!1),p=!1),o||i||!x&&a){let[t,r]=nq({nodeId:x,dragItems:s,nodeLookup:n,dragging:!1});o?.(e.sourceEvent,s,t,r),i?.(e.sourceEvent,t,r),x||a?.(e.sourceEvent,r)}}}).filter(e=>{let t=e.target;return!e.button&&(!y||!nY(t,`.${y}`,v))&&(!m||nY(t,m,v))});d.call(M)},destroy:function(){d?.on(".drag",null)}}}function nW(e,t,n,r,o,i=!1){let a=r.get(e);if(!a)return null;let s="strict"===o?a.internals.handleBounds?.[t]:[...a.internals.handleBounds?.source??[],...a.internals.handleBounds?.target??[]],u=(n?s?.find(e=>e.id===n):s?.[0])??null;return u&&i?{...u,...nM(a,u,u.position,!0)}:u}function nK(e,t){return e?e:t?.classList.contains("target")?"target":t?.classList.contains("source")?"source":null}let nU=()=>!0;function nZ(e,{handle:t,connectionMode:n,fromNodeId:r,fromHandleId:o,fromType:i,doc:a,lib:s,flowId:u,isValidConnection:l=nU,nodeLookup:c}){let d="target"===i,f=t?a.querySelector(`.${s}-flow__handle[data-id="${u}-${t?.nodeId}-${t?.id}-${t?.type}"]`):null,{x:p,y:g}=ns(e),y=a.elementFromPoint(p,g),m=y?.classList.contains(`${s}-flow__handle`)?y:f,v={handleDomNode:m,isValid:!1,connection:null,toHandle:null};if(m){let e=nK(void 0,m),t=m.getAttribute("data-nodeid"),i=m.getAttribute("data-handleid"),a=m.classList.contains("connectable"),s=m.classList.contains("connectableend");if(!t||!e)return v;let u={source:d?t:r,sourceHandle:d?i:o,target:d?r:t,targetHandle:d?o:i};v.connection=u,v.isValid=a&&s&&(n===h.Strict?d&&"source"===e||!d&&"target"===e:t!==r||i!==o)&&l(u),v.toHandle=nW(t,e,i,c,n,!0)}return v}let nQ={onPointerDown:function(e,{connectionMode:t,connectionRadius:n,handleId:r,nodeId:o,edgeUpdaterType:i,isTarget:a,domNode:s,nodeLookup:u,lib:l,autoPanOnConnect:c,flowId:h,panBy:d,cancelConnection:f,onConnectStart:p,onConnect:g,onConnectEnd:m,isValidConnection:v=nU,onReconnectEnd:w,updateConnection:x,getTransform:b,getFromHandle:_,autoPanSpeed:E,dragThreshold:k=1,handleDomNode:M}){let O,j=nr(e.target),A=0,{x:C,y:S}=ns(e),N=nK(i,M),z=s?.getBoundingClientRect(),$=!1;if(!z||!N)return;let L=nW(o,N,r,u,t);if(!L)return;let P=ns(e,z),T=!1,I=null,D=!1,V=null,R={...L,nodeId:o,type:N,position:L.position},B=u.get(o),H={inProgress:!0,isValid:null,from:nM(B,R,y.Left,!0),fromHandle:R,fromPosition:R.position,fromNode:B,to:P,toHandle:null,toPosition:tM[R.position],toNode:null};function F(){$=!0,x(H),p?.(e,{nodeId:o,handleId:r,handleType:N})}function X(e){var i,s;let f;if(!$){let{x:t,y:n}=ns(e),r=t-C,o=n-S;if(!(r*r+o*o>k*k))return;F()}if(!_()||!R)return void Y(e);let p=b();O=function(e,t,n,r){let o=[],i=1/0;for(let a of function(e,t,n){let r=[],o={x:e.x-n,y:e.y-n,width:2*n,height:2*n};for(let e of t.values())tW(o,tY(e))>0&&r.push(e);return r}(e,n,t+250))for(let n of[...a.internals.handleBounds?.source??[],...a.internals.handleBounds?.target??[]]){if(r.nodeId===n.nodeId&&r.type===n.type&&r.id===n.id)continue;let{x:s,y:u}=nM(a,n,n.position,!0),l=Math.sqrt(Math.pow(s-e.x,2)+Math.pow(u-e.y,2));l>t||(l1){let e="source"===r.type?"target":"source";return o.find(t=>t.type===e)??o[0]}return o[0]}(tJ(P=ns(e,z),p,!1,[1,1]),n,u,R),T||(!function e(){if(!c||!z)return;let[t,n]=tB(P,z,E);d({x:t,y:n}),A=requestAnimationFrame(e)}(),T=!0);let g=nZ(e,{handle:O,connectionMode:t,fromNodeId:o,fromHandleId:r,fromType:a?"target":"source",isValidConnection:v,doc:j,lib:l,flowId:h,nodeLookup:u});V=g.handleDomNode,I=g.connection,i=!!O,s=g.isValid,f=null,s?f=!0:i&&!s&&(f=!1),D=f;let y={...H,isValid:D,to:g.toHandle&&D?t0({x:g.toHandle.x,y:g.toHandle.y},p):P,toHandle:g.toHandle,toPosition:D&&g.toHandle?g.toHandle.position:tM[R.position],toNode:g.toHandle?u.get(g.toHandle.nodeId):null};D&&O&&H.toHandle&&y.toHandle&&H.toHandle.type===y.toHandle.type&&H.toHandle.nodeId===y.toHandle.nodeId&&H.toHandle.id===y.toHandle.id&&H.to.x===y.to.x&&H.to.y===y.to.y||(x(y),H=y)}function Y(e){if(!("touches"in e)||!(e.touches.length>0)){if($){(O||V)&&I&&D&&g?.(I);let{inProgress:t,...n}=H,r={...n,toPosition:H.toHandle?H.toPosition:null};m?.(e,r),i&&w?.(e,r)}f(),cancelAnimationFrame(A),T=!1,D=!1,I=null,V=null,j.removeEventListener("mousemove",X),j.removeEventListener("mouseup",Y),j.removeEventListener("touchmove",X),j.removeEventListener("touchend",Y)}}0===k&&F(),j.addEventListener("mousemove",X),j.addEventListener("mouseup",Y),j.addEventListener("touchmove",X),j.addEventListener("touchend",Y)},isValid:nZ};function nJ({domNode:e,panZoom:t,getTransform:n,getViewScale:r}){let o=el(e);return{update:function({translateExtent:e,width:i,height:a,zoomStep:s=1,pannable:u=!0,zoomable:l=!0,inversePan:c=!1}){let h=[0,0],d=tv().on("start",e=>{("mousedown"===e.sourceEvent.type||"touchstart"===e.sourceEvent.type)&&(h=[e.sourceEvent.clientX??e.sourceEvent.touches[0].clientX,e.sourceEvent.clientY??e.sourceEvent.touches[0].clientY])}).on("zoom",u?o=>{let s=n();if("mousemove"!==o.sourceEvent.type&&"touchmove"!==o.sourceEvent.type||!t)return;let u=[o.sourceEvent.clientX??o.sourceEvent.touches[0].clientX,o.sourceEvent.clientY??o.sourceEvent.touches[0].clientY],l=[u[0]-h[0],u[1]-h[1]];h=u;let d=r()*Math.max(s[2],Math.log(s[2]))*(c?-1:1),f={x:s[0]-l[0]*d,y:s[1]-l[1]*d};t.setViewportConstrained({x:f.x,y:f.y,zoom:s[2]},[[0,0],[i,a]],e)}:null).on("zoom.wheel",l?e=>{if("wheel"!==e.sourceEvent.type||!t)return;let r=n(),o=e.sourceEvent.ctrlKey&&t5()?10:1,i=-e.sourceEvent.deltaY*(1===e.sourceEvent.deltaMode?.05:e.sourceEvent.deltaMode?1:.002)*s,a=r[2]*Math.pow(2,i*o);t.scaleTo(a)}:null);o.call(d,{})},destroy:function(){o.on("zoom",null)},pointer:ec}}let n0=e=>({x:e.x,y:e.y,zoom:e.k}),n1=({x:e,y:t,zoom:n})=>tu.translate(e,t).scale(n),n2=(e,t)=>e.target.closest(`.${t}`),n5=(e,t)=>2===t&&Array.isArray(e)&&e.includes(2),n3=e=>((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2,n8=(e,t=0,n=n3,r=()=>{})=>{let o="number"==typeof t&&t>0;return o||r(),o?e.transition().duration(t).ease(n).on("end",r):e},n9=e=>{let t=e.ctrlKey&&t5()?10:1;return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*t};function n6({domNode:e,minZoom:t,maxZoom:n,paneClickDistance:r,translateExtent:o,viewport:i,onPanZoom:a,onPanZoomStart:s,onPanZoomEnd:u,onDraggingChange:l}){let c={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{x:0,y:0,zoom:0},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},h=e.getBoundingClientRect(),f=tv().clickDistance(!tU(r)||r<0?0:r).scaleExtent([t,n]).translateExtent(o),p=el(e).call(f);w({x:i.x,y:i.y,zoom:tI(i.zoom,t,n)},[[0,0],[h.width,h.height]],o);let g=p.on("wheel.zoom"),y=p.on("dblclick.zoom");function m(e,t){return p?new Promise(n=>{f?.interpolate(t?.interpolate==="linear"?tw.A:eM).transform(n8(p,t?.duration,t?.ease,()=>n(!0)),e)}):Promise.resolve(!1)}function v(){f.on("zoom",null)}async function w(e,t,n){let r=n1(e),o=f?.constrain()(r,t,n);return o&&await m(o),new Promise(e=>e(o))}return f.wheelDelta(n9),{update:function({noWheelClassName:e,noPanClassName:t,onPaneContextMenu:n,userSelectionActive:r,panOnScroll:o,panOnDrag:i,panOnScrollMode:h,panOnScrollSpeed:m,preventScrolling:w,zoomOnPinch:x,zoomOnScroll:b,zoomOnDoubleClick:_,zoomActivationKeyPressed:E,lib:k,onTransformChange:M,connectionInProgress:O}){r&&!c.isZoomingOrPanning&&v();let j=!o||E||r?function({noWheelClassName:e,preventScrolling:t,d3ZoomHandler:n}){return function(r,o){let i="wheel"===r.type,a=!t&&i&&!r.ctrlKey,s=n2(r,e);if(r.ctrlKey&&i&&s&&r.preventDefault(),a||s)return null;r.preventDefault(),n.call(this,r,o)}}({noWheelClassName:e,preventScrolling:w,d3ZoomHandler:g}):function({zoomPanValues:e,noWheelClassName:t,d3Selection:n,d3Zoom:r,panOnScrollMode:o,panOnScrollSpeed:i,zoomOnPinch:a,onPanZoomStart:s,onPanZoom:u,onPanZoomEnd:l}){return c=>{if(n2(c,t))return c.ctrlKey&&c.preventDefault(),!1;c.preventDefault(),c.stopImmediatePropagation();let h=n.property("__zoom").k||1;if(c.ctrlKey&&a){let e=ec(c),t=h*Math.pow(2,n9(c));r.scaleTo(n,t,e,c);return}let f=1===c.deltaMode?20:1,p=o===d.Vertical?0:c.deltaX*f,g=o===d.Horizontal?0:c.deltaY*f;!t5()&&c.shiftKey&&o!==d.Vertical&&(p=c.deltaY*f,g=0),r.translateBy(n,-(p/h)*i,-(g/h)*i,{internal:!0});let y=n0(n.property("__zoom"));clearTimeout(e.panScrollTimeout),e.isPanScrolling?(u?.(c,y),e.panScrollTimeout=setTimeout(()=>{l?.(c,y),e.isPanScrolling=!1},150)):(e.isPanScrolling=!0,s?.(c,y))}}({zoomPanValues:c,noWheelClassName:e,d3Selection:p,d3Zoom:f,panOnScrollMode:h,panOnScrollSpeed:m,zoomOnPinch:x,onPanZoomStart:s,onPanZoom:a,onPanZoomEnd:u});if(p.on("wheel.zoom",j,{passive:!1}),!r){let e=function({zoomPanValues:e,onDraggingChange:t,onPanZoomStart:n}){return r=>{if(r.sourceEvent?.internal)return;let o=n0(r.transform);e.mouseButton=r.sourceEvent?.button||0,e.isZoomingOrPanning=!0,e.prevViewport=o,r.sourceEvent?.type==="mousedown"&&t(!0),n&&n?.(r.sourceEvent,o)}}({zoomPanValues:c,onDraggingChange:l,onPanZoomStart:s});f.on("start",e);let t=function({zoomPanValues:e,panOnDrag:t,onPaneContextMenu:n,onTransformChange:r,onPanZoom:o}){return i=>{e.usedRightMouseButton=!!(n&&n5(t,e.mouseButton??0)),i.sourceEvent?.sync||r([i.transform.x,i.transform.y,i.transform.k]),o&&!i.sourceEvent?.internal&&o?.(i.sourceEvent,n0(i.transform))}}({zoomPanValues:c,panOnDrag:i,onPaneContextMenu:!!n,onPanZoom:a,onTransformChange:M});f.on("zoom",t);let r=function({zoomPanValues:e,panOnDrag:t,panOnScroll:n,onDraggingChange:r,onPanZoomEnd:o,onPaneContextMenu:i}){return a=>{if(!a.sourceEvent?.internal&&(e.isZoomingOrPanning=!1,i&&n5(t,e.mouseButton??0)&&!e.usedRightMouseButton&&a.sourceEvent&&i(a.sourceEvent),e.usedRightMouseButton=!1,r(!1),o)){let t=n0(a.transform);e.prevViewport=t,clearTimeout(e.timerId),e.timerId=setTimeout(()=>{o?.(a.sourceEvent,t)},150*!!n)}}}({zoomPanValues:c,panOnDrag:i,panOnScroll:o,onPaneContextMenu:n,onPanZoomEnd:u,onDraggingChange:l});f.on("end",r)}let A=function({zoomActivationKeyPressed:e,zoomOnScroll:t,zoomOnPinch:n,panOnDrag:r,panOnScroll:o,zoomOnDoubleClick:i,userSelectionActive:a,noWheelClassName:s,noPanClassName:u,lib:l,connectionInProgress:c}){return h=>{let d=e||t,f=n&&h.ctrlKey,p="wheel"===h.type;if(1===h.button&&"mousedown"===h.type&&(n2(h,`${l}-flow__node`)||n2(h,`${l}-flow__edge`)))return!0;if(!r&&!d&&!o&&!i&&!n||a||c&&!p||n2(h,s)&&p||n2(h,u)&&(!p||o&&p&&!e)||!n&&h.ctrlKey&&p)return!1;if(!n&&"touchstart"===h.type&&h.touches?.length>1)return h.preventDefault(),!1;if(!d&&!o&&!f&&p||!r&&("mousedown"===h.type||"touchstart"===h.type)||Array.isArray(r)&&!r.includes(h.button)&&"mousedown"===h.type)return!1;let g=Array.isArray(r)&&r.includes(h.button)||!h.button||h.button<=1;return(!h.ctrlKey||p)&&g}}({zoomActivationKeyPressed:E,panOnDrag:i,zoomOnScroll:b,panOnScroll:o,zoomOnDoubleClick:_,zoomOnPinch:x,userSelectionActive:r,noPanClassName:t,noWheelClassName:e,lib:k,connectionInProgress:O});f.filter(A),_?p.on("dblclick.zoom",y):p.on("dblclick.zoom",null)},destroy:v,setViewport:async function e(e,t){let n=n1(e);return await m(n,t),new Promise(e=>e(n))},setViewportConstrained:w,getViewport:function(){let e=p?tl(p.node()):{x:0,y:0,k:1};return{x:e.x,y:e.y,zoom:e.k}},scaleTo:function(e,t){return p?new Promise(n=>{f?.interpolate(t?.interpolate==="linear"?tw.A:eM).scaleTo(n8(p,t?.duration,t?.ease,()=>n(!0)),e)}):Promise.resolve(!1)},scaleBy:function(e,t){return p?new Promise(n=>{f?.interpolate(t?.interpolate==="linear"?tw.A:eM).scaleBy(n8(p,t?.duration,t?.ease,()=>n(!0)),e)}):Promise.resolve(!1)},setScaleExtent:function(e){f?.scaleExtent(e)},setTranslateExtent:function(e){f?.translateExtent(e)},syncViewport:function(e){if(p){let t=n1(e),n=p.property("__zoom");(n.k!==e.zoom||n.x!==e.x||n.y!==e.y)&&f?.transform(p,t,null,{sync:!0})}},setClickDistance:function(e){let t=!tU(e)||e<0?0:e;f?.clickDistance(t)}}}function n7(e){let t=e.includes("right")||e.includes("left"),n=e.includes("bottom")||e.includes("top");return{isHorizontal:t,isVertical:n,affectsX:e.includes("left"),affectsY:e.includes("top")}}function n4(e,t){return Math.max(0,t-e)}function re(e,t){return Math.max(0,e-t)}function rt(e,t,n){return Math.max(0,t-e,e-n)}(l=m||(m={})).Line="line",l.Handle="handle";let rn={width:0,height:0,x:0,y:0},rr={...rn,pointerX:0,pointerY:0,aspectRatio:1};function ro({domNode:e,nodeId:t,getStoreItems:n,onChange:r,onEnd:o}){let i=el(e),a={controlDirection:n7("bottom-right"),boundaries:{minWidth:0,minHeight:0,maxWidth:Number.MAX_VALUE,maxHeight:Number.MAX_VALUE},resizeDirection:void 0,keepAspectRatio:!1};return{update:function({controlPosition:e,boundaries:s,keepAspectRatio:u,resizeDirection:l,onResizeStart:c,onResize:h,onResizeEnd:d,shouldResize:f}){let p,g,y,m,v={...rn},w={...rr};a={boundaries:s,resizeDirection:l,keepAspectRatio:u,controlDirection:n7(e)};let x=null,b=[],_=!1,E=eE().on("start",e=>{let{nodeLookup:r,transform:o,snapGrid:i,snapToGrid:a,nodeOrigin:s,paneDomNode:u}=n();if(!(p=r.get(t)))return;x=u?.getBoundingClientRect()??null;let{xSnapped:l,ySnapped:h}=nt(e.sourceEvent,{transform:o,snapGrid:i,snapToGrid:a,containerBounds:x});if(w={...v={width:p.measured.width??0,height:p.measured.height??0,x:p.position.x??0,y:p.position.y??0},pointerX:l,pointerY:h,aspectRatio:v.width/v.height},g=void 0,p.parentId&&("parent"===p.extent||p.expandParent)){var d;y=(g=r.get(p.parentId))&&"parent"===p.extent?[[0,0],[(d=g).measured.width,d.measured.height]]:void 0}for(let[e,n]of(b=[],m=void 0,r))if(n.parentId===t&&(b.push({id:e,position:{...n.position},extent:n.extent}),"parent"===n.extent||n.expandParent)){let e=function(e,t,n){let r=t.position.x+e.position.x,o=t.position.y+e.position.y,i=e.measured.width??0,a=e.measured.height??0,s=n[0]*i,u=n[1]*a;return[[r-s,o-u],[r+i-s,o+a-u]]}(n,p,n.origin??s);m=m?[[Math.min(e[0][0],m[0][0]),Math.min(e[0][1],m[0][1])],[Math.max(e[1][0],m[1][0]),Math.max(e[1][1],m[1][1])]]:e}c?.(e,{...v})}).on("drag",e=>{let{transform:t,snapGrid:o,snapToGrid:i,nodeOrigin:s}=n(),u=nt(e.sourceEvent,{transform:t,snapGrid:o,snapToGrid:i,containerBounds:x}),l=[];if(!p)return;let{x:c,y:d,width:E,height:k}=v,M={},O=p.origin??s,{width:j,height:A,x:C,y:S}=function(e,t,n,r,o,i,a,s){var u,l,c,h;let{affectsX:d,affectsY:f}=t,{isHorizontal:p,isVertical:g}=t,y=p&&g,{xSnapped:m,ySnapped:v}=n,{minWidth:w,maxWidth:x,minHeight:b,maxHeight:_}=r,{x:E,y:k,width:M,height:O,aspectRatio:j}=e,A=Math.floor(p?m-e.pointerX:0),C=Math.floor(g?v-e.pointerY:0),S=M+(d?-A:A),N=O+(f?-C:C),z=-i[0]*M,$=-i[1]*O,L=rt(S,w,x),P=rt(N,b,_);if(a){let e=0,t=0;d&&A<0?e=n4(E+A+z,a[0][0]):!d&&A>0&&(e=re(E+S+z,a[1][0])),f&&C<0?t=n4(k+C+$,a[0][1]):!f&&C>0&&(t=re(k+N+$,a[1][1])),L=Math.max(L,e),P=Math.max(P,t)}if(s){let e=0,t=0;d&&A>0?e=re(E+A,s[0][0]):!d&&A<0&&(e=n4(E+S,s[1][0])),f&&C>0?t=re(k+C,s[0][1]):!f&&C<0&&(t=n4(k+N,s[1][1])),L=Math.max(L,e),P=Math.max(P,t)}if(o){if(p){(L=Math.max(L,rt(S/j,b,_)*j),a)&&(L=Math.max(L,(d||f)&&(!d||f||!y)?n4(k+$+(d?A:-A)/j,a[0][1])*j:re(k+$+S/j,a[1][1])*j));s&&(L=Math.max(L,(d||f)&&(!d||f||!y)?re(k+(d?A:-A)/j,s[0][1])*j:n4(k+S/j,s[1][1])*j))}if(g){(P=Math.max(P,rt(N*j,w,x)/j),a)&&(P=Math.max(P,(d||f)&&(!f||d||!y)?n4(E+(f?C:-C)*j+z,a[0][0])/j:re(E+N*j+z,a[1][0])/j));s&&(P=Math.max(P,(d||f)&&(!f||d||!y)?re(E+(f?C:-C)*j,s[0][0])/j:n4(E+N*j,s[1][0])/j))}}C+=C<0?P:-P,A+=A<0?L:-L,o&&(y?S>N*j?C=((u=d,l=f,u?!l:l)?-A:A)/j:A=((c=d,h=f,c?!h:h)?-C:C)*j:p?(C=A/j,f=d):(A=C*j,d=f));let T=d?E+A:E,I=f?k+C:k;return{width:M+(d?-A:A),height:O+(f?-C:C),x:i[0]*A*(d?-1:1)+T,y:i[1]*C*(f?-1:1)+I}}(w,a.controlDirection,u,a.boundaries,a.keepAspectRatio,O,y,m),N=j!==E,z=A!==k,$=C!==c&&N,L=S!==d&&z;if(!$&&!L&&!N&&!z)return;if(($||L||1===O[0]||1===O[1])&&(M.x=$?C:v.x,M.y=L?S:v.y,v.x=M.x,v.y=M.y,b.length>0)){let e=C-c,t=S-d;for(let n of b)n.position={x:n.position.x-e+O[0]*(j-E),y:n.position.y-t+O[1]*(A-k)},l.push(n)}if((N||z)&&(M.width=N&&(!a.resizeDirection||"horizontal"===a.resizeDirection)?j:v.width,M.height=z&&(!a.resizeDirection||"vertical"===a.resizeDirection)?A:v.height,v.width=M.width,v.height=M.height),g&&p.expandParent){let e=O[0]*(M.width??0);M.x&&M.x0?1:a<0?-1:0,s>0?1:s<0?-1:0];return a&&o&&(u[0]=-1*u[0]),s&&i&&(u[1]=-1*u[1]),u}({width:v.width,prevWidth:E,height:v.height,prevHeight:k,affectsX:a.controlDirection.affectsX,affectsY:a.controlDirection.affectsY}),T={...v,direction:P};!1!==f?.(e,T)&&(_=!0,h?.(e,T),r(M,l))}).on("end",e=>{_&&(d?.(e,{...v}),o?.({...v}),_=!1)});i.call(E)},destroy:function(){i.on(".drag",null)}}}},59705:(e,t,n)=>{"use strict";n.d(t,{$:()=>u});var r=n(6029);n(55729);var o=n(80616),i=n(60481),a=n(43016);let s={},u=(0,a.P9)((e,t)=>{let{w:n,h:a,miw:u,mih:l,...c}=(0,o.Y)("Space",s,e);return(0,r.jsx)(i.a,{ref:t,...c,w:n,miw:u??n,h:a,mih:l??a})});u.displayName="@mantine/core/Space"},61528:(e,t,n)=>{var r=n(3400);e.exports=function(e){try{r(e)}catch(e){if(e instanceof r.CycleException)return!1;throw e}return!0}},64762:(e,t,n)=>{let r=n(33536),o=n(57537),i=n(23897);e.exports=function e(t,n,a,s){var u,l;let c=t.children(n),h=t.node(n),d=h?h.borderLeft:void 0,f=h?h.borderRight:void 0,p={};d&&(c=c.filter(e=>e!==d&&e!==f));let g=r(t,c);g.forEach(n=>{if(t.children(n.v).length){var r,o;let i=e(t,n.v,a,s);p[n.v]=i,Object.hasOwn(i,"barycenter")&&(r=n,o=i,void 0!==r.barycenter?(r.barycenter=(r.barycenter*r.weight+o.barycenter*o.weight)/(r.weight+o.weight),r.weight+=o.weight):(r.barycenter=o.barycenter,r.weight=o.weight))}});let y=o(g,a);u=y,l=p,u.forEach(e=>{e.vs=e.vs.flatMap(e=>l[e]?l[e].vs:e)});let m=i(y,s);if(d&&(m.vs=[d,m.vs,f].flat(!0),t.predecessors(d).length)){let e=t.node(t.predecessors(d)[0]),n=t.node(t.predecessors(f)[0]);Object.hasOwn(m,"barycenter")||(m.barycenter=0,m.weight=0),m.barycenter=(m.barycenter*m.weight+e.order+n.order)/(m.weight+2),m.weight+=2}return m}},65675:(e,t,n)=>{"use strict";var r=n(55729),o=n(27133),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=o.useSyncExternalStore,s=r.useRef,u=r.useEffect,l=r.useMemo,c=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var h=s(null);if(null===h.current){var d={hasValue:!1,value:null};h.current=d}else d=h.current;var f=a(e,(h=l(function(){function e(e){if(!u){if(u=!0,a=e,e=r(e),void 0!==o&&d.hasValue){var t=d.value;if(o(t,e))return s=t}return s=e}if(t=s,i(a,e))return t;var n=r(e);return void 0!==o&&o(t,n)?(a=e,t):(a=e,s=n)}var a,s,u=!1,l=void 0===n?null:n;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]},[t,n,r,o]))[0],h[1]);return u(function(){d.hasValue=!0,d.value=f},[f]),c(f),f}},72864:(e,t,n)=>{"use strict";function r(e,t){if(Object.is(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(let[n,r]of e)if(!Object.is(r,t.get(n)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}let n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||!Object.is(e[r],t[r]))return!1;return!0}n.d(t,{x:()=>r})},75071:(e,t,n)=>{"use strict";n.d(t,{m:()=>E});var r=n(55729);let o="u">typeof window?r.useLayoutEffect:r.useEffect;function i(e,t){o(()=>{if(e)return window.addEventListener(e,t),()=>window.removeEventListener(e,t)},[e])}function a(e){return null===e||"object"!=typeof e?{}:Object.keys(e).reduce((t,n)=>{let r=e[n];return null!=r&&!1!==r&&(t[n]=r),t},{})}function s(e,t){if(null===t||"object"!=typeof t)return{};let n={...t};return Object.keys(t).forEach(t=>{t.includes(`${String(e)}.`)&&delete n[t]}),n}function u(e,t){return parseInt(e.substring(t.length+1).split(".")[0],10)}function l(e,t,n,r){if(void 0===t)return n;let o=`${String(e)}`,i=n;-1===r&&(i=s(`${o}.${t}`,i));let a={...i},l=new Set;return Object.entries(i).filter(([e])=>{if(!e.startsWith(`${o}.`))return!1;let n=u(e,o);return!Number.isNaN(n)&&n>=t}).forEach(([e,t])=>{let n=u(e,o),i=e.replace(`${o}.${n}`,`${o}.${n+r}`);a[i]=t,l.add(i),l.has(e)||delete a[e]}),a}function c(e){return"string"!=typeof e?[]:e.split(".")}function h(e,t){let n=c(e);if(0===n.length||"object"!=typeof t||null===t)return;let r=t[n[0]];for(let e=1;ee.startsWith(`${t}.`));return e[t]||r.some(t=>e[t])||!1}return n.some(t=>e[t])}function m(e,t){return e?`${e}-${t.toString()}`:t.toString()}let v=Symbol("root-rule");function w(e){let t=a(e);return{hasErrors:Object.keys(t).length>0,errors:t}}function x(e,t){return"function"==typeof e?w(e(t)):w(function e(t,n,r="",o={}){return"object"!=typeof t||null===t?o:Object.keys(t).reduce((o,i)=>{let a=t[i],s=`${""===r?"":`${r}.`}${i}`,u=h(s,n),l=!1;return"function"==typeof a&&(o[s]=a(u,n,s)),"object"==typeof a&&Array.isArray(u)&&(l=!0,u.forEach((t,r)=>e(a,n,`${s}.${r}`,o)),v in a&&(o[s]=a[v](u,n,s))),"object"==typeof a&&"object"==typeof u&&null!==u&&(l||e(a,n,s,o),v in a&&(o[s]=a[v](u,n,s))),o},o)}(e,t))}function b(e,t,n){if("string"!=typeof e)return{hasError:!1,error:null};let r=x(t,n),o=Object.keys(r.errors).find(t=>e.split(".").every((e,n)=>e===t.split(".")[n]));return{hasError:!!o,error:o?r.errors[o]:null}}function _(e,t){return!!t&&("boolean"==typeof t?t:!!Array.isArray(t)&&t.includes(e.replace(/[.][0-9]+/g,".__MANTINE_FORM_INDEX__")))}function E({name:e,mode:t="controlled",initialValues:n,initialErrors:o={},initialDirty:u={},initialTouched:c={},clearInputErrorOnChange:d=!0,validateInputOnChange:f=!1,validateInputOnBlur:v=!1,onValuesChange:w,transformValues:k=e=>e,enhanceGetInputProps:M,validate:O,onSubmitPreventDefault:j="always",touchTrigger:A="change"}={}){let C=function(e){let[t,n]=(0,r.useState)(a(e)),o=(0,r.useRef)(t),i=(0,r.useCallback)(e=>{n(t=>{let n=a("function"==typeof e?e(t):e);return o.current=n,n})},[]),s=(0,r.useCallback)(()=>i({}),[]),u=(0,r.useCallback)(e=>{void 0!==o.current[e]&&i(t=>{let n={...t};return delete n[e],n})},[t]),l=(0,r.useCallback)((e,t)=>{null==t||!1===t?u(e):o.current[e]!==t&&i(n=>({...n,[e]:t}))},[t]);return{errorsState:t,setErrors:i,clearErrors:s,setFieldError:l,clearFieldError:u}}(o),S=function({initialValues:e,onValuesChange:t,mode:n}){let o=(0,r.useRef)(!1),[i,a]=(0,r.useState)(e||{}),s=(0,r.useRef)(i),u=(0,r.useRef)(i),l=(0,r.useCallback)(({values:e,subscribers:n,updateState:r=!0,mergeWithPreviousValues:o=!0})=>{let i=s.current,u=e instanceof Function?e(s.current):e,l=o?{...i,...u}:u;s.current=l,r&&a(l),t?.(l,i),n?.filter(Boolean).forEach(e=>e({updatedValues:l,previousValues:i}))},[t]),c=(0,r.useCallback)(e=>{let t=h(e.path,s.current),n=e.value instanceof Function?e.value(t):e.value;if(t!==n){let t=s.current,r=p(e.path,n,s.current);l({values:r,updateState:e.updateState}),e.subscribers?.filter(Boolean).forEach(n=>n({path:e.path,updatedValues:r,previousValues:t}))}},[l]),d=(0,r.useCallback)(e=>{u.current=e},[]),f=(0,r.useCallback)((e,t)=>{o.current||(o.current=!0,l({values:e,updateState:"controlled"===n}),d(e),t())},[l]),g=(0,r.useCallback)(()=>{l({values:u.current,updateState:!0,mergeWithPreviousValues:!1})},[l]),y=(0,r.useCallback)(()=>s.current,[]),m=(0,r.useCallback)(()=>u.current,[]);return{initialized:o,stateValues:i,refValues:s,valuesSnapshot:u,setValues:l,setFieldValue:c,resetValues:g,setValuesSnapshot:d,initialize:f,getValues:y,getValuesSnapshot:m}}({initialValues:n,onValuesChange:w,mode:t}),N=function({initialDirty:e,initialTouched:t,mode:n,$values:o}){let[i,a]=(0,r.useState)(t),[u,l]=(0,r.useState)(e),c=(0,r.useRef)(t),d=(0,r.useRef)(e),f=(0,r.useCallback)(e=>{let t="function"==typeof e?e(c.current):e;c.current=t,"controlled"===n&&a(t)},[]),p=(0,r.useCallback)((e,t=!1)=>{let r="function"==typeof e?e(d.current):e;d.current=r,("controlled"===n||t)&&l(r)},[]),m=(0,r.useCallback)(()=>f({}),[]),v=(0,r.useCallback)(e=>{let t=e?{...o.refValues.current,...e}:o.refValues.current;o.setValuesSnapshot(t),p({})},[]),w=(0,r.useCallback)((e,t)=>{f(n=>y(n,e)===t?n:{...n,[e]:t})},[]),x=(0,r.useCallback)((e,t,n)=>{p(n=>y(n,e)===t?n:{...n,[e]:t},n)},[]),b=(0,r.useCallback)((e,t)=>{let n=y(d.current,e),r=!g(h(e,o.getValuesSnapshot()),t),i=s(e,d.current);i[e]=r,p(i,n!==r)},[]),_=(0,r.useCallback)(e=>y(c.current,e),[]),E=(0,r.useCallback)(e=>p(t=>{if("string"!=typeof e)return t;let n=s(e,t);return(delete n[e],g(n,t))?t:n}),[]),k=(0,r.useCallback)(e=>{if(e){let t=h(e,d.current);return"boolean"==typeof t?t:!g(h(e,o.refValues.current),h(e,o.valuesSnapshot.current))}return Object.keys(d.current).length>0?y(d.current):!g(o.refValues.current,o.valuesSnapshot.current)},[]),M=(0,r.useCallback)(()=>d.current,[]),O=(0,r.useCallback)(()=>c.current,[]);return{touchedState:i,dirtyState:u,touchedRef:c,dirtyRef:d,setTouched:f,setDirty:p,resetDirty:v,resetTouched:m,isTouched:_,setFieldTouched:w,setFieldDirty:x,setTouchedState:a,setDirtyState:l,clearFieldDirty:E,isDirty:k,getDirty:M,getTouched:O,setCalculatedFieldDirty:b}}({initialDirty:u,initialTouched:c,$values:S,mode:t}),z=function({$values:e,$errors:t,$status:n}){let o=(0,r.useCallback)((r,o)=>{n.clearFieldDirty(r),t.setErrors(e=>(function(e,{from:t,to:n},r){let o=`${e}.${t}`,i=`${e}.${n}`,a={...r},s=new Set;return Object.keys(r).forEach(e=>{let t,n;if(!s.has(e)&&(e.startsWith(o)?(t=e,n=e.replace(o,i)):e.startsWith(i)&&(t=e.replace(i,o),n=e),t&&n)){let e=a[t],r=a[n];void 0===r?delete a[t]:a[t]=r,void 0===e?delete a[n]:a[n]=e,s.add(t),s.add(n)}}),a})(r,o,e)),e.setValues({values:function(e,{from:t,to:n},r){let o=h(e,r);if(!Array.isArray(o))return r;let i=[...o],a=o[t];return i.splice(t,1),i.splice(n,0,a),p(e,i,r)}(r,o,e.refValues.current),updateState:!0})},[]),i=(0,r.useCallback)((r,o)=>{var i;let a;n.clearFieldDirty(r),t.setErrors(e=>l(r,o,e,-1)),e.setValues({values:Array.isArray(a=h(r,i=e.refValues.current))?p(r,a.filter((e,t)=>t!==o),i):i,updateState:!0})},[]);return{reorderListItem:o,removeListItem:i,insertListItem:(0,r.useCallback)((r,o,i)=>{n.clearFieldDirty(r),t.setErrors(e=>l(r,i,e,1)),e.setValues({values:function(e,t,n,r){let o=h(e,r);if(!Array.isArray(o))return r;let i=[...o];return i.splice("number"==typeof n?n:i.length,0,t),p(e,i,r)}(r,o,i,e.refValues.current),updateState:!0})},[]),replaceListItem:(0,r.useCallback)((t,r,o)=>{n.clearFieldDirty(t),e.setValues({values:function(e,t,n,r){let o=h(e,r);if(!Array.isArray(o)||o.length<=n)return r;let i=[...o];return i[n]=t,p(e,i,r)}(t,o,r,e.refValues.current),updateState:!0})},[])}}({$values:S,$errors:C,$status:N}),$=function({$status:e}){let t=(0,r.useRef)({}),n=(0,r.useCallback)((e,n)=>{(0,r.useEffect)(()=>(t.current[e]=t.current[e]||[],t.current[e].push(n),()=>{t.current[e]=t.current[e].filter(e=>e!==n)}),[n])},[]),o=(0,r.useCallback)(n=>t.current[n]?t.current[n].map(t=>r=>t({previousValue:h(n,r.previousValues),value:h(n,r.updatedValues),touched:e.isTouched(n),dirty:e.isDirty(n)})):[],[]);return{subscribers:t,watch:n,getFieldSubscribers:o}}({$status:N}),[L,P]=(0,r.useState)(0),[T,I]=(0,r.useState)({}),[D,V]=(0,r.useState)(!1),R=(0,r.useCallback)(()=>{S.resetValues(),C.clearErrors(),N.resetDirty(),N.resetTouched(),"uncontrolled"===t&&P(e=>e+1)},[]),B=(0,r.useCallback)(e=>{d&&C.clearErrors(),"uncontrolled"===t&&P(e=>e+1),Object.keys($.subscribers.current).forEach(t=>{h(t,S.refValues.current)!==h(t,e)&&$.getFieldSubscribers(t).forEach(t=>t({previousValues:e,updatedValues:S.refValues.current}))})},[d]),H=(0,r.useCallback)(e=>{let n=S.refValues.current;S.initialize(e,()=>"uncontrolled"===t&&P(e=>e+1)),B(n)},[B]),F=(0,r.useCallback)((e,n,r)=>{let o=_(e,f),i=n instanceof Function?n(h(e,S.refValues.current)):n;N.setCalculatedFieldDirty(e,i),"change"===A&&N.setFieldTouched(e,!0),!o&&d&&C.clearFieldError(e),S.setFieldValue({path:e,value:n,updateState:"controlled"===t,subscribers:[...$.getFieldSubscribers(e),o?t=>{let n=b(e,O,t.updatedValues);n.hasError?C.setFieldError(e,n.error):C.clearFieldError(e)}:null,r?.forceUpdate!==!1&&"controlled"!==t?()=>I(t=>({...t,[e]:(t[e]||0)+1})):null]})},[w,O]),X=(0,r.useCallback)(e=>{let n=S.refValues.current;S.setValues({values:e,updateState:"controlled"===t}),B(n)},[w,B]),Y=(0,r.useCallback)(()=>{let e=x(O,S.refValues.current);return C.setErrors(e.errors),e},[O]),q=(0,r.useCallback)(e=>{let t=b(e,O,S.refValues.current);return t.hasError?C.setFieldError(e,t.error):C.clearFieldError(e),t},[O]),G=(0,r.useCallback)(e=>{e.preventDefault(),R()},[]),W=(0,r.useCallback)(e=>e?!b(e,O,S.refValues.current).hasError:!x(O,S.refValues.current).hasErrors,[O]),K=(0,r.useCallback)(t=>document.querySelector(`[data-path="${m(e,t)}"]`),[]),U={watch:$.watch,initialized:S.initialized.current,values:S.stateValues,getValues:S.getValues,getInitialValues:S.getValuesSnapshot,setInitialValues:S.setValuesSnapshot,initialize:H,setValues:X,setFieldValue:F,submitting:D,setSubmitting:V,errors:C.errorsState,setErrors:C.setErrors,setFieldError:C.setFieldError,clearFieldError:C.clearFieldError,clearErrors:C.clearErrors,resetDirty:N.resetDirty,setTouched:N.setTouched,setDirty:N.setDirty,isTouched:N.isTouched,resetTouched:N.resetTouched,isDirty:N.isDirty,getTouched:N.getTouched,getDirty:N.getDirty,reorderListItem:z.reorderListItem,insertListItem:z.insertListItem,removeListItem:z.removeListItem,replaceListItem:z.replaceListItem,reset:R,validate:Y,validateField:q,getInputProps:(n,{type:r="input",withError:o=!0,withFocus:i=!0,...a}={})=>{var s;let u={onChange:(s=e=>F(n,e,{forceUpdate:!1}),e=>{if(e)if("function"==typeof e)s(e);else if("object"==typeof e&&"nativeEvent"in e){let{currentTarget:t}=e;t instanceof HTMLInputElement?"checkbox"===t.type?s(t.checked):s(t.value):(t instanceof HTMLTextAreaElement||t instanceof HTMLSelectElement)&&s(t.value)}else s(e);else s(e)}),"data-path":m(e,n)};return o&&(u.error=C.errorsState[n]),"checkbox"===r?u["controlled"===t?"checked":"defaultChecked"]=h(n,S.refValues.current):u["controlled"===t?"value":"defaultValue"]=h(n,S.refValues.current),i&&(u.onFocus=()=>N.setFieldTouched(n,!0),u.onBlur=()=>{if(_(n,v)){let e=b(n,O,S.refValues.current);e.hasError?C.setFieldError(n,e.error):C.clearFieldError(n)}}),Object.assign(u,M?.({inputProps:u,field:n,options:{type:r,withError:o,withFocus:i,...a},form:U}))},onSubmit:(e,t)=>n=>{"always"===j&&n?.preventDefault();let r=Y();if(r.hasErrors)"validation-failed"===j&&n?.preventDefault(),t?.(r.errors,S.refValues.current,n);else{let t=e?.(k(S.refValues.current),n);t instanceof Promise&&(V(!0),t.finally(()=>V(!1)))}},onReset:G,isValid:W,getTransformedValues:e=>k(e||S.refValues.current),key:e=>`${L}-${e}-${T[e]||0}`,getInputNode:K};return e&&function(e){if(!/^[0-9a-zA-Z-]+$/.test(e))throw Error(`[@mantine/use-form] Form name "${e}" is invalid, it should contain only letters, numbers and dashes`)}(e),i(`mantine-form:${e}:set-field-value`,e=>U.setFieldValue(e.detail.path,e.detail.value)),i(`mantine-form:${e}:set-values`,e=>U.setValues(e.detail)),i(`mantine-form:${e}:set-initial-values`,e=>U.setInitialValues(e.detail)),i(`mantine-form:${e}:set-errors`,e=>U.setErrors(e.detail)),i(`mantine-form:${e}:set-field-error`,e=>U.setFieldError(e.detail.path,e.detail.error)),i(`mantine-form:${e}:clear-field-error`,e=>U.clearFieldError(e.detail)),i(`mantine-form:${e}:clear-errors`,U.clearErrors),i(`mantine-form:${e}:reset`,U.reset),i(`mantine-form:${e}:validate`,U.validate),i(`mantine-form:${e}:validate-field`,e=>U.validateField(e.detail)),i(`mantine-form:${e}:reorder-list-item`,e=>U.reorderListItem(e.detail.path,e.detail.payload)),i(`mantine-form:${e}:remove-list-item`,e=>U.removeListItem(e.detail.path,e.detail.index)),i(`mantine-form:${e}:insert-list-item`,e=>U.insertListItem(e.detail.path,e.detail.item,e.detail.index)),i(`mantine-form:${e}:set-dirty`,e=>U.setDirty(e.detail)),i(`mantine-form:${e}:set-touched`,e=>U.setTouched(e.detail)),i(`mantine-form:${e}:reset-dirty`,e=>U.resetDirty(e.detail)),i(`mantine-form:${e}:reset-touched`,U.resetTouched),U}},75593:(e,t,n)=>{"use strict";let r=n(11280).zipObject;e.exports=function(e,t){let n=0;for(let o=1;ot)),i=t.flatMap(t=>e.outEdges(t).map(t=>({pos:o[t.w],weight:e.edge(t).weight})).sort((e,t)=>e.pos-t.pos)),a=1;for(;a{let t=e.pos+a;u[t]+=e.weight;let n=0;for(;t>0;)t%2&&(n+=u[t+1]),t=t-1>>1,u[t]+=e.weight;l+=e.weight*n}),l}(e,t[o-1],t[o]);return n}},78270:(e,t,n)=>{"use strict";let r=n(11280);e.exports=function(e){let t={},n=e.nodes().filter(t=>!e.children(t).length),o=n.map(t=>e.node(t).rank),i=r.applyWithChunking(Math.max,o),a=r.range(i+1).map(()=>[]);return n.sort((t,n)=>e.node(t).rank-e.node(n).rank).forEach(function n(r){t[r]||(t[r]=!0,a[e.node(r).rank].push(r),e.successors(r).forEach(n))}),a}},83031:(e,t,n)=>{"use strict";let r=n(78270),o=n(75593),i=n(64762),a=n(14134),s=n(54780),u=n(49010).Graph,l=n(11280);function c(e,t,n){return t.map(function(t){return a(e,t,n)})}function h(e,t){Object.values(t).forEach(t=>t.forEach((t,n)=>e.node(t).order=n))}e.exports=function e(t,n){if(n&&"function"==typeof n.customOrder)return void n.customOrder(t,e);let a=l.maxRank(t),d=c(t,l.range(1,a+1),"inEdges"),f=c(t,l.range(a-1,-1,-1),"outEdges"),p=r(t);if(h(t,p),n&&n.disableOptimalOrderHeuristic)return;let g=1/0,y;for(let e=0,n=0;n<4;++e,++n){(function(e,t){let n=new u;e.forEach(function(e){let r=e.graph().root,o=i(e,r,n,t);o.vs.forEach((t,n)=>e.node(t).order=n),s(e,n,o.vs)})})(e%2?d:f,e%4>=2),p=l.buildLayerMatrix(t);let r=o(t,p);r{var r=n(51825);e.exports=function(e,t,n,i){return function(e,t,n,o){var i,a,s={},u=new r,l=function(e){var t=e.v!==i?e.v:e.w,r=s[t],o=n(e),l=a.distance+o;if(o<0)throw Error("dijkstra does not allow negative edge weights. Bad edge: "+e+" Weight: "+o);l0&&(a=s[i=u.removeMin()]).distance!==1/0;)o(i).forEach(l);return s}(e,String(t),n||o,i||function(t){return e.outEdges(t)})};var o=()=>1},85596:(e,t,n)=>{"use strict";var r=n(55729),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useState,a=r.useEffect,s=r.useLayoutEffect,u=r.useDebugValue;function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var c="u"{"use strict";var r=n(37039).longestPath,o=n(91485),i=n(11844);e.exports=function(e){var t,n=e.graph().ranker;if(n instanceof Function)return n(e);switch(e.graph().ranker){case"network-simplex":default:i(e);break;case"tight-tree":r(t=e),o(t);break;case"longest-path":a(e);case"none":}};var a=r},88885:e=>{e.exports=function(e){var t=0,n=[],r={},o=[];return e.nodes().forEach(function(i){Object.hasOwn(r,i)||function i(a){var s=r[a]={onStack:!0,lowlink:t,index:t++};if(n.push(a),e.successors(a).forEach(function(e){Object.hasOwn(r,e)?r[e].onStack&&(s.lowlink=Math.min(s.lowlink,r[e].index)):(i(e),s.lowlink=Math.min(s.lowlink,r[e].lowlink))}),s.lowlink===s.index){var u,l=[];do r[u=n.pop()].onStack=!1,l.push(u);while(a!==u);o.push(l)}}(i)}),o}},91387:(e,t,n)=>{"use strict";let r=n(11280);e.exports={run:function(e){e.graph().dummyChains=[],e.edges().forEach(t=>(function(e,t){let n,o,i,a=t.v,s=e.node(a).rank,u=t.w,l=e.node(u).rank,c=t.name,h=e.edge(t),d=h.labelRank;if(l!==s+1){for(e.removeEdge(t),i=0,++s;s{let n,r=e.node(t),o=r.edgeLabel;for(e.setEdge(r.edgeObj,o);r.dummy;)n=e.successors(t)[0],e.removeNode(t),o.points.push({x:r.x,y:r.y}),"edge-label"===r.dummy&&(o.x=r.x,o.y=r.y,o.width=r.width,o.height=r.height),t=n,r=e.node(t)})}}},91485:(e,t,n)=>{"use strict";var r=n(49010).Graph,o=n(37039).slack;e.exports=function(e){var t,n,i,a,s=new r({directed:!1}),u=e.nodes()[0],l=e.nodeCount();for(s.setNode(u,{});t=s,n=e,t.nodes().forEach(function e(r){n.nodeEdges(r).forEach(i=>{var a=i.v,s=r===a?i.w:a;t.hasNode(s)||o(n,i)||(t.setNode(s,{}),t.setEdge(r,s,{}),e(s))})}),t.nodeCount(){let i=1/0;return(e.hasNode(r.v)!==e.hasNode(r.w)&&(i=o(t,r)),it.node(e).rank+=n)}(s,e,a);return s}}}]); \ No newline at end of file diff --git a/out/_next/static/chunks/1470-84964c609a7051b9.js b/out/_next/static/chunks/9207-cbd99653afd270a3.js similarity index 77% rename from out/_next/static/chunks/1470-84964c609a7051b9.js rename to out/_next/static/chunks/9207-cbd99653afd270a3.js index 122d1a3..5e4fb3c 100644 --- a/out/_next/static/chunks/1470-84964c609a7051b9.js +++ b/out/_next/static/chunks/9207-cbd99653afd270a3.js @@ -1 +1 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1470],{5653:(e,r,t)=>{t.d(r,{A:()=>n});var n=(0,t(41495).A)("outline","dots-vertical","IconDotsVertical",[["path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-0"}],["path",{d:"M12 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-1"}],["path",{d:"M12 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-2"}]])},20728:(e,r,t)=>{t.d(r,{m:()=>d});var n=t(6029);t(55729);var a=t(80616),o=t(43016),l=t(63531),u=t(48259),i=t(94613);function s({data:e}){if("group"in e){let r=e.items.map(e=>(0,n.jsx)(s,{data:e},e.value));return(0,n.jsx)("optgroup",{label:e.group,children:r})}let{value:r,label:t,...a}=e;return(0,n.jsx)("option",{value:e.value,...a,children:e.label},e.value)}s.displayName="@mantine/core/NativeSelectOption";let c={rightSectionPointerEvents:"none"},d=(0,o.P9)((e,r)=>{let{data:t,children:o,size:d,error:f,rightSection:v,unstyled:h,...g}=(0,a.Y)("NativeSelect",c,e),m=(0,l.d)(t).map((e,r)=>(0,n.jsx)(s,{data:e},r));return(0,n.jsx)(i.O,{component:"select",ref:r,...g,__staticSelector:"NativeSelect",size:d,pointer:!0,error:f,unstyled:h,rightSection:v||(0,n.jsx)(u.l,{size:d,error:f,unstyled:h}),children:o||m})});d.classes=i.O.classes,d.displayName="@mantine/core/NativeSelect"},32963:(e,r,t)=>{t.d(r,{A:()=>n});var n=(0,t(41495).A)("filled","info-circle-filled","IconInfoCircleFilled",[["path",{d:"M12 2c5.523 0 10 4.477 10 10a10 10 0 0 1 -19.995 .324l-.005 -.324l.004 -.28c.148 -5.393 4.566 -9.72 9.996 -9.72zm0 9h-1l-.117 .007a1 1 0 0 0 0 1.986l.117 .007v3l.007 .117a1 1 0 0 0 .876 .876l.117 .007h1l.117 -.007a1 1 0 0 0 .876 -.876l.007 -.117l-.007 -.117a1 1 0 0 0 -.764 -.857l-.112 -.02l-.117 -.006v-3l-.007 -.117a1 1 0 0 0 -.876 -.876l-.117 -.007zm.01 -3l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007z",key:"svg-0"}]])},51564:(e,r,t)=>{t.d(r,{Q:()=>en});var n,a,o,l,u,i=t(6029),s=t(55729),c=t(50212);function d(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>r.indexOf(n)&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);ar.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(t[n[a]]=e[n[a]]);return t}function f(){}function v(e){return!!(e||"").match(/\d/)}function h(e){return null==e}function g(e){return h(e)||"number"==typeof e&&isNaN(e)||"number"==typeof e&&!isFinite(e)}function m(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function p(e,r){void 0===r&&(r=!0);var t="-"===e[0],n=t&&r,a=(e=e.replace("-","")).split(".");return{beforeDecimal:a[0],afterDecimal:a[1]||"",hasNegation:t,addNegation:n}}function O(e,r,t){for(var n="",a=t?"0":"",o=0;o<=r-1;o++)n+=e[o]||a;return n}function b(e,r){return Array(r+1).join(e)}function S(e){var r=e+"",t="-"===r[0]?"-":"";t&&(r=r.substring(1));var n=r.split(/[eE]/g),a=n[0],o=n[1];if(!(o=Number(o)))return t+a;a=a.replace(".","");var l=1+o,u=a.length;return l<0?a="0."+b("0",Math.abs(l))+a:l>=u?a+=b("0",l-u):a=(a.substring(0,l)||"0")+"."+a.substring(l),t+a}function V(e,r,t){if(-1!==["","-"].indexOf(e))return e;var n=(-1!==e.indexOf(".")||t)&&r,a=p(e),o=a.beforeDecimal,l=a.afterDecimal,u=a.hasNegation,i=parseFloat("0."+(l||"0")),s=(l.length<=r?"0."+l:i.toFixed(r)).split("."),c=o;return o&&Number(s[0])&&(c=o.split("").reverse().reduce(function(e,r,t){return e.length>t?(Number(e[0])+Number(r)).toString()+e.substring(1,e.length):r+e},s[0])),(u?"-":"")+c+(n?".":"")+O(s[1]||"",r,t)}function y(e,r){if(e.value=e.value,null!==e){if(e.createTextRange){var t=e.createTextRange();return t.move("character",r),t.select(),!0}return e.selectionStart||0===e.selectionStart?(e.focus(),e.setSelectionRange(r,r),!0):(e.focus(),!1)}}(n=u||(u={})).event="event",n.props="prop";var C=(a=function(e,r){for(var t=0,n=0,a=e.length,o=r.length;e[t]===r[t]&&tt&&a-n>t;)n++;return{from:{start:t,end:a-n},to:{start:t,end:o-n}}},l=void 0,function(){for(var e=[],r=arguments.length;r--;)e[r]=arguments[r];return o&&e.length===o.length&&e.every(function(e,r){return e===o[r]})?l:(o=e,l=a.apply(void 0,e))}),N=function(e,r){var t=Math.min(e.selectionStart,r);return{from:{start:t,end:e.selectionEnd},to:{start:t,end:r}}};function x(e){return Math.max(e.selectionStart,e.selectionEnd)}function w(e){var r=e.currentValue,t=e.formattedValue,n=e.currentValueIndex,a=e.formattedValueIndex;return r[n]===t[a]}function P(e,r,t,n){var a=e.length;if(r=Math.min(Math.max(r,0),a),"left"===n){for(;r>=0&&!t[r];)r--;-1===r&&(r=t.indexOf(!0))}else{for(;r<=a&&!t[r];)r++;r>a&&(r=t.lastIndexOf(!0))}return -1===r&&(r=a),r}function j(e){for(var r=Array.from({length:e.length+1}).map(function(){return!0}),t=0,n=r.length;t0&&-1===f[g];)g--;var p=-1===g||-1===f[g]?0:f[g]+1;return p>m?m:n-ptypeof window?s.useLayoutEffect:s.useEffect)(function(){var e=X.current;if(M!==W.current.formattedValue&&e){var r=ee(W.current.formattedValue,M,et);e.value=M,J(e,r,M)}},[M]);var en=function(e,r,t){var n=r.target,a=Object.assign(Object.assign({},B.current?N(B.current,n.selectionEnd):C(M,e)),{lastValue:M}),o=i(e,a),l=q(o);if(o=i(l,void 0),m&&!m(K(l,o))){var u=r.target,s=ee(e,M,x(u));return u.value=M,J(u,s,M),!1}return er({formattedValue:l,numAsString:o,inputValue:e,event:r,source:t,input:r.target}),!0},ea=function(e,r){void 0===r&&(r=0),B.current={selectionStart:e.selectionStart,selectionEnd:e.selectionEnd+r}},eo=Object.assign({inputMode:G&&"u">typeof navigator&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))?"numeric":void 0},U,{type:r,value:M,onChange:function(e){en(e.target.value,e,u.event)&&p(e),B.current=void 0},onKeyDown:function(e){var r,t=e.target,n=e.key,a=t.selectionStart,o=t.selectionEnd,l=t.value;void 0===l&&(l=""),"ArrowLeft"===n||"Backspace"===n?r=Math.max(a-1,0):"ArrowRight"===n?r=Math.min(a+1,l.length):"Delete"===n&&(r=a);var u=0;"Delete"===n&&a===o&&(u=1);var i="ArrowLeft"===n||"ArrowRight"===n;if(void 0===r||a!==o&&!i){O(e),ea(t,u);return}var s=r;i?(s=H(l,r,"ArrowLeft"===n?"left":"right"))!==r&&e.preventDefault():"Delete"!==n||k(l[r])?"Backspace"!==n||k(l[r])||(s=H(l,r,"left")):s=H(l,r,"right"),s!==r&&J(t,s,l),O(e),ea(t,u)},onMouseUp:function(e){var r=e.target,t=function(){var e=r.selectionStart,t=r.selectionEnd,n=r.value;if(void 0===n&&(n=""),e===t){var a=H(n,e);a!==e&&J(r,a,n)}};t(),requestAnimationFrame(function(){t()}),b(e),ea(r)},onFocus:function(e){e.persist&&e.persist();var r=e.target,t=e.currentTarget;X.current=r,L.current.focusTimeout=setTimeout(function(){var n=r.selectionStart,a=r.selectionEnd,o=r.value;void 0===o&&(o="");var l=H(o,n);l!==n&&(0!==n||a!==o.length)&&J(r,l,o),S(Object.assign(Object.assign({},e),{currentTarget:t}))},0)},onBlur:function(e){X.current=null,clearTimeout(L.current.focusTimeout),clearTimeout(L.current.setCaretTimeout),V(e)}});return"text"===t?a?s.createElement(s.Fragment,null,a(M,U)||null):s.createElement("span",Object.assign({},U,{ref:o}),M):n?s.createElement(n,Object.assign({},eo,{ref:o})):s.createElement("input",Object.assign({},eo,{ref:o}))}function A(e,r){var t,n,a,o=r.decimalScale,l=r.fixedDecimalScale,u=r.prefix;void 0===u&&(u="");var i=r.suffix;void 0===i&&(i="");var s=r.allowNegative,c=r.thousandsGroupStyle;if(void 0===c&&(c="thousand"),""===e||"-"===e)return e;var d=k(r),f=d.thousandSeparator,v=d.decimalSeparator,h=0!==o&&-1!==e.indexOf(".")||o&&l,g=p(e,s),m=g.beforeDecimal,b=g.afterDecimal,S=g.addNegation;return void 0!==o&&(b=O(b,o,!!l)),f&&(t=m,n=function(e){switch(e){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;default:return/(\d)(?=(\d{3})+(?!\d))/g}}(c),a=-1===(a=t.search(/[1-9]/))?t.length:a,m=t.substring(0,a)+t.substring(a,t.length).replace(n,"$1"+f)),u&&(m=u+m),i&&(b+=i),S&&(m="-"+m),e=m+(h&&v||"")+b}function k(e){var r=e.decimalSeparator;void 0===r&&(r=".");var t=e.thousandSeparator,n=e.allowedDecimalSeparators;return!0===t&&(t=","),n||(n=[r,"."]),{decimalSeparator:r,thousandSeparator:t,allowedDecimalSeparators:n}}function D(e){var r,t,n,a,o,l,i,c,O,b,N,x,w,P,j,Q,T,D,U,I,_,M,F,Z,B,W,Y,$,G,z=((r=function(e){var r=k(e),t=r.thousandSeparator,n=r.decimalSeparator,a=e.prefix;void 0===a&&(a="");var o=e.allowNegative;if(void 0===o&&(o=!0),t===n)throw Error("\n Decimal separator can't be same as thousand separator.\n thousandSeparator: "+t+' (thousandSeparator = {true} is same as thousandSeparator = ",")\n decimalSeparator: '+n+" (default value for decimalSeparator is .)\n ");return a.startsWith("-")&&o&&(console.error("\n Prefix can't start with '-' when allowNegative is true.\n prefix: "+a+"\n allowNegative: "+o+"\n "),o=!1),Object.assign(Object.assign({},e),{allowNegative:o})}(r=e)).decimalSeparator,r.allowedDecimalSeparators,r.thousandsGroupStyle,t=r.suffix,n=r.allowNegative,a=r.allowLeadingZeros,void 0===(o=r.onKeyDown)&&(o=f),void 0===(l=r.onBlur)&&(l=f),i=r.thousandSeparator,c=r.decimalScale,O=r.fixedDecimalScale,void 0===(b=r.prefix)&&(b=""),N=r.defaultValue,x=r.value,w=r.valueIsNumericString,P=r.onValueChange,j=d(r,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),T=(Q=k(r)).decimalSeparator,D=Q.allowedDecimalSeparators,U=function(e){return A(e,r)},I=function(e,t){return function(e,r,t){void 0===r&&(r={from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""});var n,a,o,l,u=t.allowNegative,i=t.prefix;void 0===i&&(i="");var s=t.suffix;void 0===s&&(s="");var c=t.decimalScale,d=r.from,f=r.to,h=f.start,g=f.end,O=k(t),b=O.allowedDecimalSeparators,S=O.decimalSeparator,V=e[g]===S;if(v(e)&&(e===i||e===s)&&""===r.lastValue)return e;if(g-h==1&&-1!==b.indexOf(e[h])){var y=0===c?"":S;e=e.substring(0,h)+y+e.substring(h+1,e.length)}var C=function(e,r,t){var n=!1,a=!1;i.startsWith("-")?n=!1:e.startsWith("--")?(n=!1,a=!0):s.startsWith("-")&&e.length===s.length?n=!1:"-"===e[0]&&(n=!0);var o=+!!n;return a&&(o=2),o&&(e=e.substring(o),r-=o,t-=o),{value:e,start:r,end:t,hasNegation:n}},N=C(e,h,g),x=N.hasNegation;e=N.value,h=N.start,g=N.end;var w=C(r.lastValue,d.start,d.end),P=w.start,j=w.end,E=w.value,Q=e.substring(h,g);e.length&&E.length&&(P>E.length-s.length||jA?R=g:g>e.length-s.length&&(R=g),e=e.substring(0,R),void 0===(n=x?"-"+e:e)&&(n=""),a=RegExp("(-)(.)*(-)"),o=/(-)/.test(n),l=a.test(n),n=n.replace(/-/g,""),o&&!l&&u&&(n="-"+n);var D=(e=((e=n).match(RegExp("(^-)|[0-9]|"+m(S),"g"))||[]).join("")).indexOf(S),U=p(e=e.replace(RegExp(m(S),"g"),function(e,r){return r===D?".":""}),u),I=U.beforeDecimal,_=U.afterDecimal,M=U.addNegation;return f.end-f.starto)&&(!!(a>=i.start&&a=r)&&(void 0===t||e<=t)}let er={step:1,clampBehavior:"blur",allowDecimal:!0,allowNegative:!0,withKeyboardEvents:!0,allowLeadingZeros:!0,trimLeadingZeroesOnBlur:!0,startValue:0},et=(0,Z.V)((e,{size:r})=>({controls:{"--ni-chevron-size":(0,F.YC)(r,"ni-chevron-size")}})),en=(0,$.P9)((e,r)=>{let t=(0,Y.Y)("NumberInput",er,e),{className:n,classNames:a,styles:o,unstyled:l,vars:u,onChange:d,onValueChange:f,value:v,defaultValue:h,max:g,min:m,step:p,hideControls:O,rightSection:b,isAllowed:S,clampBehavior:V,onBlur:y,allowDecimal:C,decimalScale:N,onKeyDown:x,onKeyDownCapture:w,handlersRef:P,startValue:j,disabled:E,rightSectionPointerEvents:Q,allowNegative:T,readOnly:R,size:A,rightSectionWidth:k,stepHoldInterval:F,stepHoldDelay:Z,allowLeadingZeros:$,withKeyboardEvents:en,trimLeadingZeroesOnBlur:ea,...eo}=t,el=(0,W.I)({name:"NumberInput",classes:L,props:t,classNames:a,styles:o,unstyled:l,vars:u,varsResolver:et}),{resolvedClassNames:eu,resolvedStyles:ei}=(0,B.Y)({classNames:a,styles:o,props:t}),[es,ec]=(0,I.Z)({value:v,defaultValue:h,finalValue:"",onChange:d}),ed=void 0!==Z&&void 0!==F,ef=(0,s.useRef)(null),ev=(0,s.useRef)(null),eh=(0,s.useRef)(0),eg=e=>{let r=String(e).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return r?Math.max(0,(r[1]?r[1].length:0)-(r[2]?+r[2]:0)):0},em=e=>{ef.current&&void 0!==e&&ef.current.setSelectionRange(e,e)},ep=(0,s.useRef)(M.l);ep.current=()=>{let e;if(!H(es))return;let r=Math.max(eg(es),eg(p)),t=10**r;if(!J(es)&&("number"!=typeof es||Number.isNaN(es)))e=(0,U.q)(j,m,g);else if(void 0!==g){let r=(Math.round(Number(es)*t)+Math.round(p*t))/t;e=r<=g?r:g}else e=(Math.round(Number(es)*t)+Math.round(p*t))/t;let n=e.toFixed(r);ec(parseFloat(n)),f?.({floatValue:parseFloat(n),formattedValue:n,value:n},{source:"increment"}),setTimeout(()=>em(ef.current?.value.length),0)};let eO=(0,s.useRef)(M.l);eO.current=()=>{let e;if(!H(es))return;let r=void 0!==m?m:T?Number.MIN_SAFE_INTEGER:0,t=Math.max(eg(es),eg(p)),n=10**t;if(!J(es)&&"number"!=typeof es||Number.isNaN(es))e=(0,U.q)(j,r,g);else{let t=(Math.round(Number(es)*n)-Math.round(p*n))/n;e=void 0!==r&&tem(ef.current?.value.length),0)},(0,_.bl)(P,{increment:ep.current,decrement:eO.current});let eb=e=>{e?ep.current():eO.current(),eh.current+=1},eS=e=>{if(eb(e),ed){let r="number"==typeof F?F:F(eh.current);ev.current=window.setTimeout(()=>eS(e),r)}},eV=(e,r)=>{e.preventDefault(),ef.current?.focus(),eb(r),ed&&(ev.current=window.setTimeout(()=>eS(r),Z))},ey=()=>{ev.current&&window.clearTimeout(ev.current),ev.current=null,eh.current=0},eC=(0,i.jsxs)("div",{...el("controls"),children:[(0,i.jsx)(z.N,{...el("control"),tabIndex:-1,"aria-hidden":!0,disabled:E||"number"==typeof es&&void 0!==g&&es>=g,mod:{direction:"up"},onMouseDown:e=>e.preventDefault(),onPointerDown:e=>{eV(e,!0)},onPointerUp:ey,onPointerLeave:ey,children:(0,i.jsx)(X,{direction:"up"})}),(0,i.jsx)(z.N,{...el("control"),tabIndex:-1,"aria-hidden":!0,disabled:E||"number"==typeof es&&void 0!==m&&es<=m,mod:{direction:"down"},onMouseDown:e=>e.preventDefault(),onPointerDown:e=>{eV(e,!1)},onPointerUp:ey,onPointerLeave:ey,children:(0,i.jsx)(X,{direction:"down"})})]});return(0,i.jsx)(G.O,{component:D,allowNegative:T,className:(0,c.A)(L.root,n),size:A,...eo,readOnly:R,disabled:E,value:es,getInputRef:(0,_.pc)(r,ef),onValueChange:(e,r)=>{var t,n;"event"===r.source&&ec((t=e.floatValue,n=e.value,("number"==typeof t?!(tn.toString().replace(".","").length)||""===n||q.test(e.value)||$&&K.test(e.value))?e.value:e.floatValue),f?.(e,r)},rightSection:O||R||!H(es)?b:b||eC,classNames:eu,styles:ei,unstyled:l,__staticSelector:"NumberInput",decimalScale:C?N:0,onKeyDown:e=>{x?.(e),!R&&en&&("ArrowUp"===e.key&&(e.preventDefault(),ep.current()),"ArrowDown"===e.key&&(e.preventDefault(),eO.current()))},onKeyDownCapture:e=>{if(w?.(e),"Backspace"===e.key){let r=ef.current;0===r.selectionStart&&r.selectionStart===r.selectionEnd&&(e.preventDefault(),window.setTimeout(()=>em(0),0))}},rightSectionPointerEvents:Q??(E?"none":void 0),rightSectionWidth:k??`var(--ni-right-section-width-${A||"sm"})`,allowLeadingZeros:$,onBlur:e=>{let r,t,n=es;"blur"===V&&"number"==typeof n&&(n=(0,U.q)(n,m,g)),ea&&"string"==typeof n&&15>eg(n)&&(n=Number.isNaN(t=parseFloat(r=n.toString().replace(/^0+/,"")))?r:t>Number.MAX_SAFE_INTEGER?void 0!==g?String(g):r:(0,U.q)(t,m,g)),es!==n&&ec(n),y?.(e)},isAllowed:e=>"strict"===V?S?S(e)&&ee(e.floatValue,m,g):ee(e.floatValue,m,g):!S||S(e)})});en.classes={...G.O.classes,...L},en.displayName="@mantine/core/NumberInput"},52789:(e,r,t)=>{t.d(r,{u:()=>i});var n=t(1909);let a=(e,r,t)=>{if(e&&"reportValidity"in e){let a=(0,n.Jt)(t,r);e.setCustomValidity(a&&a.message||""),e.reportValidity()}},o=(e,r)=>{for(let t in r.fields){let n=r.fields[t];n&&n.ref&&"reportValidity"in n.ref?a(n.ref,t,e):n.refs&&n.refs.forEach(r=>a(r,t,e))}},l=(e,r)=>e.some(e=>e.startsWith(r+"."));var u=function(e,r){for(var t={};e.length;){var a=e[0],o=a.code,l=a.message,u=a.path.join(".");if(!t[u])if("unionErrors"in a){var i=a.unionErrors[0].errors[0];t[u]={message:i.message,type:i.code}}else t[u]={message:l,type:o};if("unionErrors"in a&&a.unionErrors.forEach(function(r){return r.errors.forEach(function(r){return e.push(r)})}),r){var s=t[u].types,c=s&&s[a.code];t[u]=(0,n.Gb)(u,r,t,o,c?[].concat(c,a.message):a.message)}e.shift()}return t},i=function(e,r,t){return void 0===t&&(t={}),function(a,i,s){try{return Promise.resolve(function(n,l){try{var u=Promise.resolve(e["sync"===t.mode?"parse":"parseAsync"](a,r)).then(function(e){return s.shouldUseNativeValidation&&o({},s),{errors:{},values:t.raw?a:e}})}catch(e){return l(e)}return u&&u.then?u.then(void 0,l):u}(0,function(e){if(Array.isArray(null==e?void 0:e.errors))return{values:{},errors:((e,r)=>{r.shouldUseNativeValidation&&o(e,r);let t={};for(let a in e){let o=(0,n.Jt)(r.fields,a),u=Object.assign(e[a]||{},{ref:o&&o.ref});if(l(r.names||Object.keys(e),a)){let e=Object.assign({},(0,n.Jt)(t,a));(0,n.hZ)(e,"root",u),(0,n.hZ)(t,a,e)}else(0,n.hZ)(t,a,u)}return t})(u(e.errors,!s.shouldUseNativeValidation&&"all"===s.criteriaMode),s)};throw e}))}catch(e){return Promise.reject(e)}}}},59589:(e,r,t)=>{t.d(r,{Pq:()=>c,cp:()=>i});var n=t(81422),a=t(55584);let o=(0,a.pn)({String:a._A.string,Number:a._A.number,"True False":a._A.bool,PropertyName:a._A.propertyName,Null:a._A.null,",":a._A.separator,"[ ]":a._A.squareBracket,"{ }":a._A.brace}),l=n.U1.deserialize({version:14,states:"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#CjOOQO'#Cp'#CpQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CrOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59U,59UO!iQPO,59UOVQPO,59QOqQPO'#CkO!nQPO,59^OOQO1G.k1G.kOVQPO'#ClO!vQPO,59aOOQO1G.p1G.pOOQO1G.l1G.lOOQO,59V,59VOOQO-E6i-E6iOOQO,59W,59WOOQO-E6j-E6j",stateData:"#O~OcOS~OQSORSOSSOTSOWQO]ROePO~OVXOeUO~O[[O~PVOg^O~Oh_OVfX~OVaO~OhbO[iX~O[dO~Oh_OVfa~OhbO[ia~O",goto:"!kjPPPPPPkPPkqwPPk{!RPPP!XP!ePP!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",nodeNames:"⚠ JsonText True False Null Number String } { Object Property PropertyName ] [ Array",maxTerm:25,nodeProps:[["isolate",-2,6,11,""],["openedBy",7,"{",12,"["],["closedBy",8,"}",13,"]"]],propSources:[o],skippedNodes:[0],repeatNodeCount:2,tokenData:"(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oc~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Oe~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zOh~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yOg~~'OO]~~'TO[~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",tokenizers:[0],topRules:{JsonText:[0,1]},tokenPrec:0});var u=t(26374);let i=()=>e=>{try{JSON.parse(e.state.doc.toString())}catch(o){var r,t;let n;if(!(o instanceof SyntaxError))throw o;let a=(r=o,t=e.state.doc,(n=r.message.match(/at position (\d+)/))?Math.min(+n[1],t.length):(n=r.message.match(/at line (\d+) column (\d+)/))?Math.min(t.line(+n[1]).from+ +n[2]-1,t.length):0);return[{from:a,message:o.message,severity:"error",to:a}]}return[]},s=u.bj.define({name:"json",parser:l.configure({props:[u.Oh.add({Object:(0,u.mz)({except:/^\s*\}/}),Array:(0,u.mz)({except:/^\s*\]/})}),u.b_.add({"Object Array":u.yd})]}),languageData:{closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/}});function c(){return new u.Yy(s)}},69580:(e,r,t)=>{t.d(r,{mh:()=>G,Q7:()=>L,l6:()=>en});var n=t(6029),a=t(1909),o=t(75177),l=t(47268),u=t(3001);t(55729);var i=t(80616);let[s,c]=(0,t(48930).e)(),d={};function f(e){let{value:r,defaultValue:t,onChange:a,multiple:o,children:l}=(0,i.Y)("ChipGroup",d,e),[c,f]=(0,u.Z)({value:r,defaultValue:t,finalValue:o?[]:null,onChange:a});return(0,n.jsx)(s,{value:{isChipSelected:e=>Array.isArray(c)?c.includes(e):e===c,onChange:e=>{let r=e.currentTarget.value;Array.isArray(c)?f(c.includes(r)?c.filter(e=>e!==r):[...c,r]):f(r)},multiple:o},children:l})}f.displayName="@mantine/core/ChipGroup";var v=t(60466),h=t(76),g=t(5618),m=t(37666),p=t(3389),O=t(60481),b=t(43016),S=t(39467),V={root:"m_f59ffda3",label:"m_be049a53","label--outline":"m_3904c1af","label--filled":"m_fa109255","label--light":"m_f7e165c3",iconWrapper:"m_9ac86df9",checkIcon:"m_d6d72580",input:"m_bde07329"};let y={type:"checkbox"},C=(0,g.V)((e,{size:r,radius:t,variant:n,color:a,autoContrast:o})=>{let l=e.variantColorResolver({color:a||e.primaryColor,theme:e,variant:n||"filled",autoContrast:o});return{root:{"--chip-fz":(0,h.ny)(r),"--chip-size":(0,h.YC)(r,"chip-size"),"--chip-radius":void 0===t?void 0:(0,h.nJ)(t),"--chip-checked-padding":(0,h.YC)(r,"chip-checked-padding"),"--chip-padding":(0,h.YC)(r,"chip-padding"),"--chip-icon-size":(0,h.YC)(r,"chip-icon-size"),"--chip-bg":a||n?l.background:void 0,"--chip-hover":a||n?l.hover:void 0,"--chip-color":a||n?l.color:void 0,"--chip-bd":a||n?l.border:void 0,"--chip-spacing":(0,h.YC)(r,"chip-spacing")}}}),N=(0,b.P9)((e,r)=>{let t=(0,i.Y)("Chip",y,e),{classNames:a,className:o,style:l,styles:s,unstyled:d,vars:f,id:h,checked:g,defaultChecked:b,onChange:N,value:x,wrapperProps:w,type:P,disabled:j,children:E,size:Q,variant:T,icon:R,rootRef:A,autoContrast:k,mod:D,...U}=t,I=(0,m.I)({name:"Chip",classes:V,props:t,className:o,style:l,classNames:a,styles:s,unstyled:d,vars:f,varsResolver:C}),_=c(),M=(0,v.B)(h),{styleProps:F,rest:Z}=(0,p.j)(U),[B,W]=(0,u.Z)({value:g,defaultValue:b,finalValue:!1,onChange:N}),Y=_?{checked:_.isChipSelected(x),onChange:e=>{_.onChange(e),N?.(e.currentTarget.checked)},type:_.multiple?"checkbox":"radio"}:{},$=Y.checked||B;return(0,n.jsxs)(O.a,{size:Q,variant:T,ref:A,mod:D,...I("root"),...F,...w,children:[(0,n.jsx)("input",{type:P,...I("input"),checked:$,onChange:e=>W(e.currentTarget.checked),id:M,disabled:j,ref:r,value:x,...Y,...Z}),(0,n.jsxs)("label",{htmlFor:M,"data-checked":$||void 0,"data-disabled":j||void 0,...I("label",{variant:T||"filled"}),children:[$&&(0,n.jsx)("span",{...I("iconWrapper"),children:R||(0,n.jsx)(S.S,{...I("checkIcon")})}),(0,n.jsx)("span",{children:E})]})]})});N.classes=V,N.displayName="@mantine/core/Chip",N.Group=f;var x=t(20728),w=t(51564),P=t(79975),j=t(18341),E=t(38206),Q=t(22746),T=t(87989);function R(){return(R=Object.assign?Object.assign.bind():function(e){for(var r=1;r=0||(a[t]=e[t]);return a}var k=["name","control","defaultValue","rules","shouldUnregister","onChange"],D=["value","onChange"],U=["name","control","defaultValue","rules","shouldUnregister","onChange"],I=["value","onChange"],_=function(e){var r,t=e.name,o=e.control,u=e.defaultValue,i=e.rules,s=e.shouldUnregister,c=e.onChange,d=A(e,U),f=(0,a.as)({name:t,control:o,defaultValue:u,rules:i,shouldUnregister:s}),v=f.field,h=v.value,g=v.onChange,m=A(v,I);return(0,n.jsx)(l.S,R({error:null==(r=f.fieldState.error)?void 0:r.message,value:h,checked:h,onChange:function(e){g(e),null==c||c(e)}},m,d))};_.Group=function(e){var r,t=e.name,l=e.control,u=e.defaultValue,i=e.rules,s=e.shouldUnregister,c=e.onChange,d=A(e,k),f=(0,a.as)({name:t,control:l,defaultValue:u,rules:i,shouldUnregister:s}),v=f.field,h=v.value,g=v.onChange,m=A(v,D);return(0,n.jsx)(o.$,R({error:null==(r=f.fieldState.error)?void 0:r.message,value:h,onChange:function(e){g(e),null==c||c(e)}},m,d))},_.Item=l.S;var M=["name","control","defaultValue","rules","shouldUnregister","onChange"],F=["value","onChange","ref"],Z=["name","control","defaultValue","rules","shouldUnregister","onChange"],B=["value","onChange"],W=function(e){var r=e.name,t=e.control,o=e.defaultValue,l=e.rules,u=e.shouldUnregister,i=e.onChange,s=A(e,Z),c=(0,a.as)({name:r,control:t,defaultValue:o,rules:l,shouldUnregister:u}).field,d=c.value,f=c.onChange,v=A(c,B);return(0,n.jsx)(N,R({value:d,checked:d,onChange:function(e){f(e),null==i||i(e)}},v,s))};W.Group=function(e){var r=e.name,t=e.control,o=e.defaultValue,l=e.rules,u=e.shouldUnregister,i=e.onChange,s=A(e,M),c=(0,a.as)({name:r,control:t,defaultValue:o,rules:l,shouldUnregister:u}).field,d=c.value,v=c.onChange,h=A(c,F);return(0,n.jsx)(f,R({value:d,onChange:function(e){v(e),null==i||i(e)}},h,s))},W.Item=N;var Y=["name","control","defaultValue","rules","shouldUnregister","onChange"],$=["value","onChange"];function G(e){var r,t=e.name,o=e.control,l=e.defaultValue,u=e.rules,i=e.shouldUnregister,s=e.onChange,c=A(e,Y),d=(0,a.as)({name:t,control:o,defaultValue:l,rules:u,shouldUnregister:i}),f=d.field,v=f.value,h=f.onChange,g=A(f,$);return(0,n.jsx)(x.m,R({value:v,onChange:function(e){h(e),null==s||s(e)},error:null==(r=d.fieldState.error)?void 0:r.message},g,c))}var z=["name","control","defaultValue","rules","shouldUnregister","onChange"],X=["value","onChange"];function L(e){var r,t=e.name,o=e.control,l=e.defaultValue,u=e.rules,i=e.shouldUnregister,s=e.onChange,c=A(e,z),d=(0,a.as)({name:t,control:o,defaultValue:l,rules:u,shouldUnregister:i}),f=d.field,v=f.value,h=f.onChange,g=A(f,X);return(0,n.jsx)(w.Q,R({value:v,onChange:function(e){h(e),null==s||s(e)},error:null==(r=d.fieldState.error)?void 0:r.message},g,c))}var q=["name","control","defaultValue","rules","shouldUnregister","onChange"],K=["value","onChange"],J=["name","control","defaultValue","rules","shouldUnregister","onChange"],H=["value","onChange"];function ee(e){var r=e.name,t=e.control,o=e.defaultValue,l=e.rules,u=e.shouldUnregister,i=e.onChange,s=A(e,J),c=(0,a.as)({name:r,control:t,defaultValue:o,rules:l,shouldUnregister:u}).field,d=c.value,f=c.onChange,v=A(c,H);return(0,n.jsx)(j.s,R({value:d,onChange:function(e){f(e),null==i||i(e)}},v,s))}ee.Group=function(e){var r,t=e.name,o=e.control,l=e.defaultValue,u=e.rules,i=e.shouldUnregister,s=e.onChange,c=A(e,q),d=(0,a.as)({name:t,control:o,defaultValue:l,rules:u,shouldUnregister:i}),f=d.field,v=f.value,h=f.onChange,g=A(f,K);return(0,n.jsx)(P.z,R({value:v,onChange:function(e){h(e),null==s||s(e)},error:null==(r=d.fieldState.error)?void 0:r.message},g,c))},ee.Item=j.s;var er=["name","control","defaultValue","rules","shouldUnregister","onChange"],et=["value","onChange"];function en(e){var r,t=e.name,o=e.control,l=e.defaultValue,u=e.rules,i=e.shouldUnregister,s=e.onChange,c=A(e,er),d=(0,a.as)({name:t,control:o,defaultValue:l,rules:u,shouldUnregister:i}),f=d.field,v=f.value,h=f.onChange,g=A(f,et);return(0,n.jsx)(E.l,R({value:v,onChange:function(e){h(e),null==s||s(e)},error:null==(r=d.fieldState.error)?void 0:r.message},g,c))}var ea=["name","control","defaultValue","rules","shouldUnregister","onChange"],eo=["value","onChange"],el=["name","control","defaultValue","rules","shouldUnregister","onChange"],eu=["value","onChange"];function ei(e){var r,t=e.name,o=e.control,l=e.defaultValue,u=e.rules,i=e.shouldUnregister,s=e.onChange,c=A(e,el),d=(0,a.as)({name:t,control:o,defaultValue:l,rules:u,shouldUnregister:i}),f=d.field,v=f.value,h=f.onChange,g=A(f,eu);return(0,n.jsx)(T.d,R({value:v,checked:v,onChange:function(e){h(e),null==s||s(e)},error:null==(r=d.fieldState.error)?void 0:r.message},g,c))}ei.Item=T.d,ei.Group=function(e){var r,t=e.name,o=e.control,l=e.defaultValue,u=e.rules,i=e.shouldUnregister,s=e.onChange,c=A(e,ea),d=(0,a.as)({name:t,control:o,defaultValue:l,rules:u,shouldUnregister:i}),f=d.field,v=f.value,h=f.onChange,g=A(f,eo);return(0,n.jsx)(Q.u,R({value:v,onChange:function(e){h(e),null==s||s(e)},error:null==(r=d.fieldState.error)?void 0:r.message},g,c))}}}]); \ No newline at end of file +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9207],{5653:(e,r,t)=>{t.d(r,{A:()=>n});var n=(0,t(41495).A)("outline","dots-vertical","IconDotsVertical",[["path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-0"}],["path",{d:"M12 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-1"}],["path",{d:"M12 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-2"}]])},20728:(e,r,t)=>{t.d(r,{m:()=>d});var n=t(6029);t(55729);var a=t(80616),o=t(43016),l=t(63531),u=t(48259),i=t(94613);function s({data:e}){if("group"in e){let r=e.items.map(e=>(0,n.jsx)(s,{data:e},e.value));return(0,n.jsx)("optgroup",{label:e.group,children:r})}let{value:r,label:t,...a}=e;return(0,n.jsx)("option",{value:e.value,...a,children:e.label},e.value)}s.displayName="@mantine/core/NativeSelectOption";let c={rightSectionPointerEvents:"none"},d=(0,o.P9)((e,r)=>{let{data:t,children:o,size:d,error:f,rightSection:v,unstyled:h,...g}=(0,a.Y)("NativeSelect",c,e),m=(0,l.d)(t).map((e,r)=>(0,n.jsx)(s,{data:e},r));return(0,n.jsx)(i.O,{component:"select",ref:r,...g,__staticSelector:"NativeSelect",size:d,pointer:!0,error:f,unstyled:h,rightSection:v||(0,n.jsx)(u.l,{size:d,error:f,unstyled:h}),children:o||m})});d.classes=i.O.classes,d.displayName="@mantine/core/NativeSelect"},32963:(e,r,t)=>{t.d(r,{A:()=>n});var n=(0,t(41495).A)("filled","info-circle-filled","IconInfoCircleFilled",[["path",{d:"M12 2c5.523 0 10 4.477 10 10a10 10 0 0 1 -19.995 .324l-.005 -.324l.004 -.28c.148 -5.393 4.566 -9.72 9.996 -9.72zm0 9h-1l-.117 .007a1 1 0 0 0 0 1.986l.117 .007v3l.007 .117a1 1 0 0 0 .876 .876l.117 .007h1l.117 -.007a1 1 0 0 0 .876 -.876l.007 -.117l-.007 -.117a1 1 0 0 0 -.764 -.857l-.112 -.02l-.117 -.006v-3l-.007 -.117a1 1 0 0 0 -.876 -.876l-.117 -.007zm.01 -3l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007z",key:"svg-0"}]])},51564:(e,r,t)=>{t.d(r,{Q:()=>en});var n,a,o,l,u,i=t(6029),s=t(55729),c=t(50212);function d(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>r.indexOf(n)&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);ar.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(t[n[a]]=e[n[a]]);return t}function f(){}function v(e){return!!(e||"").match(/\d/)}function h(e){return null==e}function g(e){return h(e)||"number"==typeof e&&isNaN(e)||"number"==typeof e&&!isFinite(e)}function m(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function p(e,r){void 0===r&&(r=!0);var t="-"===e[0],n=t&&r,a=(e=e.replace("-","")).split(".");return{beforeDecimal:a[0],afterDecimal:a[1]||"",hasNegation:t,addNegation:n}}function O(e,r,t){for(var n="",a=t?"0":"",o=0;o<=r-1;o++)n+=e[o]||a;return n}function b(e,r){return Array(r+1).join(e)}function S(e){var r=e+"",t="-"===r[0]?"-":"";t&&(r=r.substring(1));var n=r.split(/[eE]/g),a=n[0],o=n[1];if(!(o=Number(o)))return t+a;a=a.replace(".","");var l=1+o,u=a.length;return l<0?a="0."+b("0",Math.abs(l))+a:l>=u?a+=b("0",l-u):a=(a.substring(0,l)||"0")+"."+a.substring(l),t+a}function y(e,r,t){if(-1!==["","-"].indexOf(e))return e;var n=(-1!==e.indexOf(".")||t)&&r,a=p(e),o=a.beforeDecimal,l=a.afterDecimal,u=a.hasNegation,i=parseFloat("0."+(l||"0")),s=(l.length<=r?"0."+l:i.toFixed(r)).split("."),c=o;return o&&Number(s[0])&&(c=o.split("").reverse().reduce(function(e,r,t){return e.length>t?(Number(e[0])+Number(r)).toString()+e.substring(1,e.length):r+e},s[0])),(u?"-":"")+c+(n?".":"")+O(s[1]||"",r,t)}function V(e,r){if(e.value=e.value,null!==e){if(e.createTextRange){var t=e.createTextRange();return t.move("character",r),t.select(),!0}return e.selectionStart||0===e.selectionStart?(e.focus(),e.setSelectionRange(r,r),!0):(e.focus(),!1)}}(n=u||(u={})).event="event",n.props="prop";var C=(a=function(e,r){for(var t=0,n=0,a=e.length,o=r.length;e[t]===r[t]&&tt&&a-n>t;)n++;return{from:{start:t,end:a-n},to:{start:t,end:o-n}}},l=void 0,function(){for(var e=[],r=arguments.length;r--;)e[r]=arguments[r];return o&&e.length===o.length&&e.every(function(e,r){return e===o[r]})?l:(o=e,l=a.apply(void 0,e))}),x=function(e,r){var t=Math.min(e.selectionStart,r);return{from:{start:t,end:e.selectionEnd},to:{start:t,end:r}}};function N(e){return Math.max(e.selectionStart,e.selectionEnd)}function w(e){var r=e.currentValue,t=e.formattedValue,n=e.currentValueIndex,a=e.formattedValueIndex;return r[n]===t[a]}function P(e,r,t,n){var a=e.length;if(r=Math.min(Math.max(r,0),a),"left"===n){for(;r>=0&&!t[r];)r--;-1===r&&(r=t.indexOf(!0))}else{for(;r<=a&&!t[r];)r++;r>a&&(r=t.lastIndexOf(!0))}return -1===r&&(r=a),r}function j(e){for(var r=Array.from({length:e.length+1}).map(function(){return!0}),t=0,n=r.length;t0&&-1===f[g];)g--;var p=-1===g||-1===f[g]?0:f[g]+1;return p>m?m:n-ptypeof window?s.useLayoutEffect:s.useEffect)(function(){var e=X.current;if(M!==W.current.formattedValue&&e){var r=ee(W.current.formattedValue,M,et);e.value=M,J(e,r,M)}},[M]);var en=function(e,r,t){var n=r.target,a=Object.assign(Object.assign({},B.current?x(B.current,n.selectionEnd):C(M,e)),{lastValue:M}),o=i(e,a),l=q(o);if(o=i(l,void 0),m&&!m(K(l,o))){var u=r.target,s=ee(e,M,N(u));return u.value=M,J(u,s,M),!1}return er({formattedValue:l,numAsString:o,inputValue:e,event:r,source:t,input:r.target}),!0},ea=function(e,r){void 0===r&&(r=0),B.current={selectionStart:e.selectionStart,selectionEnd:e.selectionEnd+r}},eo=Object.assign({inputMode:G&&"u">typeof navigator&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))?"numeric":void 0},U,{type:r,value:M,onChange:function(e){en(e.target.value,e,u.event)&&p(e),B.current=void 0},onKeyDown:function(e){var r,t=e.target,n=e.key,a=t.selectionStart,o=t.selectionEnd,l=t.value;void 0===l&&(l=""),"ArrowLeft"===n||"Backspace"===n?r=Math.max(a-1,0):"ArrowRight"===n?r=Math.min(a+1,l.length):"Delete"===n&&(r=a);var u=0;"Delete"===n&&a===o&&(u=1);var i="ArrowLeft"===n||"ArrowRight"===n;if(void 0===r||a!==o&&!i){O(e),ea(t,u);return}var s=r;i?(s=H(l,r,"ArrowLeft"===n?"left":"right"))!==r&&e.preventDefault():"Delete"!==n||k(l[r])?"Backspace"!==n||k(l[r])||(s=H(l,r,"left")):s=H(l,r,"right"),s!==r&&J(t,s,l),O(e),ea(t,u)},onMouseUp:function(e){var r=e.target,t=function(){var e=r.selectionStart,t=r.selectionEnd,n=r.value;if(void 0===n&&(n=""),e===t){var a=H(n,e);a!==e&&J(r,a,n)}};t(),requestAnimationFrame(function(){t()}),b(e),ea(r)},onFocus:function(e){e.persist&&e.persist();var r=e.target,t=e.currentTarget;X.current=r,L.current.focusTimeout=setTimeout(function(){var n=r.selectionStart,a=r.selectionEnd,o=r.value;void 0===o&&(o="");var l=H(o,n);l!==n&&(0!==n||a!==o.length)&&J(r,l,o),S(Object.assign(Object.assign({},e),{currentTarget:t}))},0)},onBlur:function(e){X.current=null,clearTimeout(L.current.focusTimeout),clearTimeout(L.current.setCaretTimeout),y(e)}});return"text"===t?a?s.createElement(s.Fragment,null,a(M,U)||null):s.createElement("span",Object.assign({},U,{ref:o}),M):n?s.createElement(n,Object.assign({},eo,{ref:o})):s.createElement("input",Object.assign({},eo,{ref:o}))}function R(e,r){var t,n,a,o=r.decimalScale,l=r.fixedDecimalScale,u=r.prefix;void 0===u&&(u="");var i=r.suffix;void 0===i&&(i="");var s=r.allowNegative,c=r.thousandsGroupStyle;if(void 0===c&&(c="thousand"),""===e||"-"===e)return e;var d=k(r),f=d.thousandSeparator,v=d.decimalSeparator,h=0!==o&&-1!==e.indexOf(".")||o&&l,g=p(e,s),m=g.beforeDecimal,b=g.afterDecimal,S=g.addNegation;return void 0!==o&&(b=O(b,o,!!l)),f&&(t=m,n=function(e){switch(e){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;default:return/(\d)(?=(\d{3})+(?!\d))/g}}(c),a=-1===(a=t.search(/[1-9]/))?t.length:a,m=t.substring(0,a)+t.substring(a,t.length).replace(n,"$1"+f)),u&&(m=u+m),i&&(b+=i),S&&(m="-"+m),e=m+(h&&v||"")+b}function k(e){var r=e.decimalSeparator;void 0===r&&(r=".");var t=e.thousandSeparator,n=e.allowedDecimalSeparators;return!0===t&&(t=","),n||(n=[r,"."]),{decimalSeparator:r,thousandSeparator:t,allowedDecimalSeparators:n}}function D(e){var r,t,n,a,o,l,i,c,O,b,x,N,w,P,j,A,Q,D,U,I,_,M,F,Z,B,W,Y,$,G,z=((r=function(e){var r=k(e),t=r.thousandSeparator,n=r.decimalSeparator,a=e.prefix;void 0===a&&(a="");var o=e.allowNegative;if(void 0===o&&(o=!0),t===n)throw Error("\n Decimal separator can't be same as thousand separator.\n thousandSeparator: "+t+' (thousandSeparator = {true} is same as thousandSeparator = ",")\n decimalSeparator: '+n+" (default value for decimalSeparator is .)\n ");return a.startsWith("-")&&o&&(console.error("\n Prefix can't start with '-' when allowNegative is true.\n prefix: "+a+"\n allowNegative: "+o+"\n "),o=!1),Object.assign(Object.assign({},e),{allowNegative:o})}(r=e)).decimalSeparator,r.allowedDecimalSeparators,r.thousandsGroupStyle,t=r.suffix,n=r.allowNegative,a=r.allowLeadingZeros,void 0===(o=r.onKeyDown)&&(o=f),void 0===(l=r.onBlur)&&(l=f),i=r.thousandSeparator,c=r.decimalScale,O=r.fixedDecimalScale,void 0===(b=r.prefix)&&(b=""),x=r.defaultValue,N=r.value,w=r.valueIsNumericString,P=r.onValueChange,j=d(r,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),Q=(A=k(r)).decimalSeparator,D=A.allowedDecimalSeparators,U=function(e){return R(e,r)},I=function(e,t){return function(e,r,t){void 0===r&&(r={from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""});var n,a,o,l,u=t.allowNegative,i=t.prefix;void 0===i&&(i="");var s=t.suffix;void 0===s&&(s="");var c=t.decimalScale,d=r.from,f=r.to,h=f.start,g=f.end,O=k(t),b=O.allowedDecimalSeparators,S=O.decimalSeparator,y=e[g]===S;if(v(e)&&(e===i||e===s)&&""===r.lastValue)return e;if(g-h==1&&-1!==b.indexOf(e[h])){var V=0===c?"":S;e=e.substring(0,h)+V+e.substring(h+1,e.length)}var C=function(e,r,t){var n=!1,a=!1;i.startsWith("-")?n=!1:e.startsWith("--")?(n=!1,a=!0):s.startsWith("-")&&e.length===s.length?n=!1:"-"===e[0]&&(n=!0);var o=+!!n;return a&&(o=2),o&&(e=e.substring(o),r-=o,t-=o),{value:e,start:r,end:t,hasNegation:n}},x=C(e,h,g),N=x.hasNegation;e=x.value,h=x.start,g=x.end;var w=C(r.lastValue,d.start,d.end),P=w.start,j=w.end,E=w.value,A=e.substring(h,g);e.length&&E.length&&(P>E.length-s.length||jR?T=g:g>e.length-s.length&&(T=g),e=e.substring(0,T),void 0===(n=N?"-"+e:e)&&(n=""),a=RegExp("(-)(.)*(-)"),o=/(-)/.test(n),l=a.test(n),n=n.replace(/-/g,""),o&&!l&&u&&(n="-"+n);var D=(e=((e=n).match(RegExp("(^-)|[0-9]|"+m(S),"g"))||[]).join("")).indexOf(S),U=p(e=e.replace(RegExp(m(S),"g"),function(e,r){return r===D?".":""}),u),I=U.beforeDecimal,_=U.afterDecimal,M=U.addNegation;return f.end-f.starto)&&(!!(a>=i.start&&a=r)&&(void 0===t||e<=t)}let er={step:1,clampBehavior:"blur",allowDecimal:!0,allowNegative:!0,withKeyboardEvents:!0,allowLeadingZeros:!0,trimLeadingZeroesOnBlur:!0,startValue:0},et=(0,Z.V)((e,{size:r})=>({controls:{"--ni-chevron-size":(0,F.YC)(r,"ni-chevron-size")}})),en=(0,$.P9)((e,r)=>{let t=(0,Y.Y)("NumberInput",er,e),{className:n,classNames:a,styles:o,unstyled:l,vars:u,onChange:d,onValueChange:f,value:v,defaultValue:h,max:g,min:m,step:p,hideControls:O,rightSection:b,isAllowed:S,clampBehavior:y,onBlur:V,allowDecimal:C,decimalScale:x,onKeyDown:N,onKeyDownCapture:w,handlersRef:P,startValue:j,disabled:E,rightSectionPointerEvents:A,allowNegative:Q,readOnly:T,size:R,rightSectionWidth:k,stepHoldInterval:F,stepHoldDelay:Z,allowLeadingZeros:$,withKeyboardEvents:en,trimLeadingZeroesOnBlur:ea,...eo}=t,el=(0,W.I)({name:"NumberInput",classes:L,props:t,classNames:a,styles:o,unstyled:l,vars:u,varsResolver:et}),{resolvedClassNames:eu,resolvedStyles:ei}=(0,B.Y)({classNames:a,styles:o,props:t}),[es,ec]=(0,I.Z)({value:v,defaultValue:h,finalValue:"",onChange:d}),ed=void 0!==Z&&void 0!==F,ef=(0,s.useRef)(null),ev=(0,s.useRef)(null),eh=(0,s.useRef)(0),eg=e=>{let r=String(e).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return r?Math.max(0,(r[1]?r[1].length:0)-(r[2]?+r[2]:0)):0},em=e=>{ef.current&&void 0!==e&&ef.current.setSelectionRange(e,e)},ep=(0,s.useRef)(M.l);ep.current=()=>{let e;if(!H(es))return;let r=Math.max(eg(es),eg(p)),t=10**r;if(!J(es)&&("number"!=typeof es||Number.isNaN(es)))e=(0,U.q)(j,m,g);else if(void 0!==g){let r=(Math.round(Number(es)*t)+Math.round(p*t))/t;e=r<=g?r:g}else e=(Math.round(Number(es)*t)+Math.round(p*t))/t;let n=e.toFixed(r);ec(parseFloat(n)),f?.({floatValue:parseFloat(n),formattedValue:n,value:n},{source:"increment"}),setTimeout(()=>em(ef.current?.value.length),0)};let eO=(0,s.useRef)(M.l);eO.current=()=>{let e;if(!H(es))return;let r=void 0!==m?m:Q?Number.MIN_SAFE_INTEGER:0,t=Math.max(eg(es),eg(p)),n=10**t;if(!J(es)&&"number"!=typeof es||Number.isNaN(es))e=(0,U.q)(j,r,g);else{let t=(Math.round(Number(es)*n)-Math.round(p*n))/n;e=void 0!==r&&tem(ef.current?.value.length),0)},(0,_.bl)(P,{increment:ep.current,decrement:eO.current});let eb=e=>{e?ep.current():eO.current(),eh.current+=1},eS=e=>{if(eb(e),ed){let r="number"==typeof F?F:F(eh.current);ev.current=window.setTimeout(()=>eS(e),r)}},ey=(e,r)=>{e.preventDefault(),ef.current?.focus(),eb(r),ed&&(ev.current=window.setTimeout(()=>eS(r),Z))},eV=()=>{ev.current&&window.clearTimeout(ev.current),ev.current=null,eh.current=0},eC=(0,i.jsxs)("div",{...el("controls"),children:[(0,i.jsx)(z.N,{...el("control"),tabIndex:-1,"aria-hidden":!0,disabled:E||"number"==typeof es&&void 0!==g&&es>=g,mod:{direction:"up"},onMouseDown:e=>e.preventDefault(),onPointerDown:e=>{ey(e,!0)},onPointerUp:eV,onPointerLeave:eV,children:(0,i.jsx)(X,{direction:"up"})}),(0,i.jsx)(z.N,{...el("control"),tabIndex:-1,"aria-hidden":!0,disabled:E||"number"==typeof es&&void 0!==m&&es<=m,mod:{direction:"down"},onMouseDown:e=>e.preventDefault(),onPointerDown:e=>{ey(e,!1)},onPointerUp:eV,onPointerLeave:eV,children:(0,i.jsx)(X,{direction:"down"})})]});return(0,i.jsx)(G.O,{component:D,allowNegative:Q,className:(0,c.A)(L.root,n),size:R,...eo,readOnly:T,disabled:E,value:es,getInputRef:(0,_.pc)(r,ef),onValueChange:(e,r)=>{var t,n;"event"===r.source&&ec((t=e.floatValue,n=e.value,("number"==typeof t?!(tn.toString().replace(".","").length)||""===n||q.test(e.value)||$&&K.test(e.value))?e.value:e.floatValue),f?.(e,r)},rightSection:O||T||!H(es)?b:b||eC,classNames:eu,styles:ei,unstyled:l,__staticSelector:"NumberInput",decimalScale:C?x:0,onKeyDown:e=>{N?.(e),!T&&en&&("ArrowUp"===e.key&&(e.preventDefault(),ep.current()),"ArrowDown"===e.key&&(e.preventDefault(),eO.current()))},onKeyDownCapture:e=>{if(w?.(e),"Backspace"===e.key){let r=ef.current;0===r.selectionStart&&r.selectionStart===r.selectionEnd&&(e.preventDefault(),window.setTimeout(()=>em(0),0))}},rightSectionPointerEvents:A??(E?"none":void 0),rightSectionWidth:k??`var(--ni-right-section-width-${R||"sm"})`,allowLeadingZeros:$,onBlur:e=>{let r,t,n=es;"blur"===y&&"number"==typeof n&&(n=(0,U.q)(n,m,g)),ea&&"string"==typeof n&&15>eg(n)&&(n=Number.isNaN(t=parseFloat(r=n.toString().replace(/^0+/,"")))?r:t>Number.MAX_SAFE_INTEGER?void 0!==g?String(g):r:(0,U.q)(t,m,g)),es!==n&&ec(n),V?.(e)},isAllowed:e=>"strict"===y?S?S(e)&&ee(e.floatValue,m,g):ee(e.floatValue,m,g):!S||S(e)})});en.classes={...G.O.classes,...L},en.displayName="@mantine/core/NumberInput"},52789:(e,r,t)=>{t.d(r,{u:()=>i});var n=t(1909);let a=(e,r,t)=>{if(e&&"reportValidity"in e){let a=(0,n.Jt)(t,r);e.setCustomValidity(a&&a.message||""),e.reportValidity()}},o=(e,r)=>{for(let t in r.fields){let n=r.fields[t];n&&n.ref&&"reportValidity"in n.ref?a(n.ref,t,e):n.refs&&n.refs.forEach(r=>a(r,t,e))}},l=(e,r)=>e.some(e=>e.startsWith(r+"."));var u=function(e,r){for(var t={};e.length;){var a=e[0],o=a.code,l=a.message,u=a.path.join(".");if(!t[u])if("unionErrors"in a){var i=a.unionErrors[0].errors[0];t[u]={message:i.message,type:i.code}}else t[u]={message:l,type:o};if("unionErrors"in a&&a.unionErrors.forEach(function(r){return r.errors.forEach(function(r){return e.push(r)})}),r){var s=t[u].types,c=s&&s[a.code];t[u]=(0,n.Gb)(u,r,t,o,c?[].concat(c,a.message):a.message)}e.shift()}return t},i=function(e,r,t){return void 0===t&&(t={}),function(a,i,s){try{return Promise.resolve(function(n,l){try{var u=Promise.resolve(e["sync"===t.mode?"parse":"parseAsync"](a,r)).then(function(e){return s.shouldUseNativeValidation&&o({},s),{errors:{},values:t.raw?a:e}})}catch(e){return l(e)}return u&&u.then?u.then(void 0,l):u}(0,function(e){if(Array.isArray(null==e?void 0:e.errors))return{values:{},errors:((e,r)=>{r.shouldUseNativeValidation&&o(e,r);let t={};for(let a in e){let o=(0,n.Jt)(r.fields,a),u=Object.assign(e[a]||{},{ref:o&&o.ref});if(l(r.names||Object.keys(e),a)){let e=Object.assign({},(0,n.Jt)(t,a));(0,n.hZ)(e,"root",u),(0,n.hZ)(t,a,e)}else(0,n.hZ)(t,a,u)}return t})(u(e.errors,!s.shouldUseNativeValidation&&"all"===s.criteriaMode),s)};throw e}))}catch(e){return Promise.reject(e)}}}},59589:(e,r,t)=>{t.d(r,{Pq:()=>c,cp:()=>i});var n=t(81422),a=t(55584);let o=(0,a.pn)({String:a._A.string,Number:a._A.number,"True False":a._A.bool,PropertyName:a._A.propertyName,Null:a._A.null,",":a._A.separator,"[ ]":a._A.squareBracket,"{ }":a._A.brace}),l=n.U1.deserialize({version:14,states:"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#CjOOQO'#Cp'#CpQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CrOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59U,59UO!iQPO,59UOVQPO,59QOqQPO'#CkO!nQPO,59^OOQO1G.k1G.kOVQPO'#ClO!vQPO,59aOOQO1G.p1G.pOOQO1G.l1G.lOOQO,59V,59VOOQO-E6i-E6iOOQO,59W,59WOOQO-E6j-E6j",stateData:"#O~OcOS~OQSORSOSSOTSOWQO]ROePO~OVXOeUO~O[[O~PVOg^O~Oh_OVfX~OVaO~OhbO[iX~O[dO~Oh_OVfa~OhbO[ia~O",goto:"!kjPPPPPPkPPkqwPPk{!RPPP!XP!ePP!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",nodeNames:"⚠ JsonText True False Null Number String } { Object Property PropertyName ] [ Array",maxTerm:25,nodeProps:[["isolate",-2,6,11,""],["openedBy",7,"{",12,"["],["closedBy",8,"}",13,"]"]],propSources:[o],skippedNodes:[0],repeatNodeCount:2,tokenData:"(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oc~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Oe~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zOh~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yOg~~'OO]~~'TO[~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",tokenizers:[0],topRules:{JsonText:[0,1]},tokenPrec:0});var u=t(26374);let i=()=>e=>{try{JSON.parse(e.state.doc.toString())}catch(o){var r,t;let n;if(!(o instanceof SyntaxError))throw o;let a=(r=o,t=e.state.doc,(n=r.message.match(/at position (\d+)/))?Math.min(+n[1],t.length):(n=r.message.match(/at line (\d+) column (\d+)/))?Math.min(t.line(+n[1]).from+ +n[2]-1,t.length):0);return[{from:a,message:o.message,severity:"error",to:a}]}return[]},s=u.bj.define({name:"json",parser:l.configure({props:[u.Oh.add({Object:(0,u.mz)({except:/^\s*\}/}),Array:(0,u.mz)({except:/^\s*\]/})}),u.b_.add({"Object Array":u.yd})]}),languageData:{closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/}});function c(){return new u.Yy(s)}},69580:(e,r,t)=>{t.d(r,{mh:()=>G,Q7:()=>L,l6:()=>en});var n=t(6029),a=t(1909),o=t(75177),l=t(47268),u=t(3001);t(55729);var i=t(80616);let[s,c]=(0,t(48930).e)(),d={};function f(e){let{value:r,defaultValue:t,onChange:a,multiple:o,children:l}=(0,i.Y)("ChipGroup",d,e),[c,f]=(0,u.Z)({value:r,defaultValue:t,finalValue:o?[]:null,onChange:a});return(0,n.jsx)(s,{value:{isChipSelected:e=>Array.isArray(c)?c.includes(e):e===c,onChange:e=>{let r=e.currentTarget.value;Array.isArray(c)?f(c.includes(r)?c.filter(e=>e!==r):[...c,r]):f(r)},multiple:o},children:l})}f.displayName="@mantine/core/ChipGroup";var v=t(60466),h=t(76),g=t(5618),m=t(37666),p=t(3389),O=t(60481),b=t(43016),S=t(39467),y={root:"m_f59ffda3",label:"m_be049a53","label--outline":"m_3904c1af","label--filled":"m_fa109255","label--light":"m_f7e165c3",iconWrapper:"m_9ac86df9",checkIcon:"m_d6d72580",input:"m_bde07329"};let V={type:"checkbox"},C=(0,g.V)((e,{size:r,radius:t,variant:n,color:a,autoContrast:o})=>{let l=e.variantColorResolver({color:a||e.primaryColor,theme:e,variant:n||"filled",autoContrast:o});return{root:{"--chip-fz":(0,h.ny)(r),"--chip-size":(0,h.YC)(r,"chip-size"),"--chip-radius":void 0===t?void 0:(0,h.nJ)(t),"--chip-checked-padding":(0,h.YC)(r,"chip-checked-padding"),"--chip-padding":(0,h.YC)(r,"chip-padding"),"--chip-icon-size":(0,h.YC)(r,"chip-icon-size"),"--chip-bg":a||n?l.background:void 0,"--chip-hover":a||n?l.hover:void 0,"--chip-color":a||n?l.color:void 0,"--chip-bd":a||n?l.border:void 0,"--chip-spacing":(0,h.YC)(r,"chip-spacing")}}}),x=(0,b.P9)((e,r)=>{let t=(0,i.Y)("Chip",V,e),{classNames:a,className:o,style:l,styles:s,unstyled:d,vars:f,id:h,checked:g,defaultChecked:b,onChange:x,value:N,wrapperProps:w,type:P,disabled:j,children:E,size:A,variant:Q,icon:T,rootRef:R,autoContrast:k,mod:D,...U}=t,I=(0,m.I)({name:"Chip",classes:y,props:t,className:o,style:l,classNames:a,styles:s,unstyled:d,vars:f,varsResolver:C}),_=c(),M=(0,v.B)(h),{styleProps:F,rest:Z}=(0,p.j)(U),[B,W]=(0,u.Z)({value:g,defaultValue:b,finalValue:!1,onChange:x}),Y=_?{checked:_.isChipSelected(N),onChange:e=>{_.onChange(e),x?.(e.currentTarget.checked)},type:_.multiple?"checkbox":"radio"}:{},$=Y.checked||B;return(0,n.jsxs)(O.a,{size:A,variant:Q,ref:R,mod:D,...I("root"),...F,...w,children:[(0,n.jsx)("input",{type:P,...I("input"),checked:$,onChange:e=>W(e.currentTarget.checked),id:M,disabled:j,ref:r,value:N,...Y,...Z}),(0,n.jsxs)("label",{htmlFor:M,"data-checked":$||void 0,"data-disabled":j||void 0,...I("label",{variant:Q||"filled"}),children:[$&&(0,n.jsx)("span",{...I("iconWrapper"),children:T||(0,n.jsx)(S.S,{...I("checkIcon")})}),(0,n.jsx)("span",{children:E})]})]})});x.classes=y,x.displayName="@mantine/core/Chip",x.Group=f;var N=t(20728),w=t(51564),P=t(79975),j=t(18341),E=t(38206),A=t(22746),Q=t(87989);function T(){return(T=Object.assign?Object.assign.bind():function(e){for(var r=1;r=0||(a[t]=e[t]);return a}var k=["name","control","defaultValue","rules","shouldUnregister","onChange"],D=["value","onChange"],U=["name","control","defaultValue","rules","shouldUnregister","onChange"],I=["value","onChange"],_=function(e){var r,t=e.name,o=e.control,u=e.defaultValue,i=e.rules,s=e.shouldUnregister,c=e.onChange,d=R(e,U),f=(0,a.as)({name:t,control:o,defaultValue:u,rules:i,shouldUnregister:s}),v=f.field,h=v.value,g=v.onChange,m=R(v,I);return(0,n.jsx)(l.S,T({error:null==(r=f.fieldState.error)?void 0:r.message,value:h,checked:h,onChange:function(e){g(e),null==c||c(e)}},m,d))};_.Group=function(e){var r,t=e.name,l=e.control,u=e.defaultValue,i=e.rules,s=e.shouldUnregister,c=e.onChange,d=R(e,k),f=(0,a.as)({name:t,control:l,defaultValue:u,rules:i,shouldUnregister:s}),v=f.field,h=v.value,g=v.onChange,m=R(v,D);return(0,n.jsx)(o.$,T({error:null==(r=f.fieldState.error)?void 0:r.message,value:h,onChange:function(e){g(e),null==c||c(e)}},m,d))},_.Item=l.S;var M=["name","control","defaultValue","rules","shouldUnregister","onChange"],F=["value","onChange","ref"],Z=["name","control","defaultValue","rules","shouldUnregister","onChange"],B=["value","onChange"],W=function(e){var r=e.name,t=e.control,o=e.defaultValue,l=e.rules,u=e.shouldUnregister,i=e.onChange,s=R(e,Z),c=(0,a.as)({name:r,control:t,defaultValue:o,rules:l,shouldUnregister:u}).field,d=c.value,f=c.onChange,v=R(c,B);return(0,n.jsx)(x,T({value:d,checked:d,onChange:function(e){f(e),null==i||i(e)}},v,s))};W.Group=function(e){var r=e.name,t=e.control,o=e.defaultValue,l=e.rules,u=e.shouldUnregister,i=e.onChange,s=R(e,M),c=(0,a.as)({name:r,control:t,defaultValue:o,rules:l,shouldUnregister:u}).field,d=c.value,v=c.onChange,h=R(c,F);return(0,n.jsx)(f,T({value:d,onChange:function(e){v(e),null==i||i(e)}},h,s))},W.Item=x;var Y=["name","control","defaultValue","rules","shouldUnregister","onChange"],$=["value","onChange"];function G(e){var r,t=e.name,o=e.control,l=e.defaultValue,u=e.rules,i=e.shouldUnregister,s=e.onChange,c=R(e,Y),d=(0,a.as)({name:t,control:o,defaultValue:l,rules:u,shouldUnregister:i}),f=d.field,v=f.value,h=f.onChange,g=R(f,$);return(0,n.jsx)(N.m,T({value:v,onChange:function(e){h(e),null==s||s(e)},error:null==(r=d.fieldState.error)?void 0:r.message},g,c))}var z=["name","control","defaultValue","rules","shouldUnregister","onChange"],X=["value","onChange"];function L(e){var r,t=e.name,o=e.control,l=e.defaultValue,u=e.rules,i=e.shouldUnregister,s=e.onChange,c=R(e,z),d=(0,a.as)({name:t,control:o,defaultValue:l,rules:u,shouldUnregister:i}),f=d.field,v=f.value,h=f.onChange,g=R(f,X);return(0,n.jsx)(w.Q,T({value:v,onChange:function(e){h(e),null==s||s(e)},error:null==(r=d.fieldState.error)?void 0:r.message},g,c))}var q=["name","control","defaultValue","rules","shouldUnregister","onChange"],K=["value","onChange"],J=["name","control","defaultValue","rules","shouldUnregister","onChange"],H=["value","onChange"];function ee(e){var r=e.name,t=e.control,o=e.defaultValue,l=e.rules,u=e.shouldUnregister,i=e.onChange,s=R(e,J),c=(0,a.as)({name:r,control:t,defaultValue:o,rules:l,shouldUnregister:u}).field,d=c.value,f=c.onChange,v=R(c,H);return(0,n.jsx)(j.s,T({value:d,onChange:function(e){f(e),null==i||i(e)}},v,s))}ee.Group=function(e){var r,t=e.name,o=e.control,l=e.defaultValue,u=e.rules,i=e.shouldUnregister,s=e.onChange,c=R(e,q),d=(0,a.as)({name:t,control:o,defaultValue:l,rules:u,shouldUnregister:i}),f=d.field,v=f.value,h=f.onChange,g=R(f,K);return(0,n.jsx)(P.z,T({value:v,onChange:function(e){h(e),null==s||s(e)},error:null==(r=d.fieldState.error)?void 0:r.message},g,c))},ee.Item=j.s;var er=["name","control","defaultValue","rules","shouldUnregister","onChange"],et=["value","onChange"];function en(e){var r,t=e.name,o=e.control,l=e.defaultValue,u=e.rules,i=e.shouldUnregister,s=e.onChange,c=R(e,er),d=(0,a.as)({name:t,control:o,defaultValue:l,rules:u,shouldUnregister:i}),f=d.field,v=f.value,h=f.onChange,g=R(f,et);return(0,n.jsx)(E.l,T({value:v,onChange:function(e){h(e),null==s||s(e)},error:null==(r=d.fieldState.error)?void 0:r.message},g,c))}var ea=["name","control","defaultValue","rules","shouldUnregister","onChange"],eo=["value","onChange"],el=["name","control","defaultValue","rules","shouldUnregister","onChange"],eu=["value","onChange"];function ei(e){var r,t=e.name,o=e.control,l=e.defaultValue,u=e.rules,i=e.shouldUnregister,s=e.onChange,c=R(e,el),d=(0,a.as)({name:t,control:o,defaultValue:l,rules:u,shouldUnregister:i}),f=d.field,v=f.value,h=f.onChange,g=R(f,eu);return(0,n.jsx)(Q.d,T({value:v,checked:v,onChange:function(e){h(e),null==s||s(e)},error:null==(r=d.fieldState.error)?void 0:r.message},g,c))}ei.Item=Q.d,ei.Group=function(e){var r,t=e.name,o=e.control,l=e.defaultValue,u=e.rules,i=e.shouldUnregister,s=e.onChange,c=R(e,ea),d=(0,a.as)({name:t,control:o,defaultValue:l,rules:u,shouldUnregister:i}),f=d.field,v=f.value,h=f.onChange,g=R(f,eo);return(0,n.jsx)(A.u,T({value:v,onChange:function(e){h(e),null==s||s(e)},error:null==(r=d.fieldState.error)?void 0:r.message},g,c))}},96556:(e,r,t)=>{t.d(r,{A:()=>n});var n=(0,t(41495).A)("outline","exclamation-circle","IconExclamationCircle",[["path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",key:"svg-0"}],["path",{d:"M12 9v4",key:"svg-1"}],["path",{d:"M12 16v.01",key:"svg-2"}]])}}]); \ No newline at end of file diff --git a/out/_next/static/chunks/9979-14e2287668283e43.js b/out/_next/static/chunks/9979-14e2287668283e43.js new file mode 100644 index 0000000..e9fd151 --- /dev/null +++ b/out/_next/static/chunks/9979-14e2287668283e43.js @@ -0,0 +1,4 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9979],{1250:e=>{e.exports=function(e){return null==e}},1315:(e,t,r)=>{var n=r(80109);e.exports=function(e){return null==e?"":n(e)}},1470:(e,t,r)=>{e.exports=r(41798)(Object.getPrototypeOf,Object)},1509:(e,t,r)=>{"use strict";r.d(t,{s0:()=>nx,gH:()=>ng,YB:()=>nC,HQ:()=>n_,xi:()=>nk,Hj:()=>nG,BX:()=>nb,tA:()=>nm,DW:()=>nL,y2:()=>nB,nb:()=>nF,PW:()=>nA,Ay:()=>ny,vf:()=>nS,Mk:()=>nV,Ps:()=>nv,Mn:()=>nD,kA:()=>nz,Rh:()=>nE,w7:()=>nN,zb:()=>nq,kr:()=>nh,_L:()=>nj,KC:()=>nW,A1:()=>nO,W7:()=>nM,AQ:()=>n$,_f:()=>nT});var n,o,i,a,l,u,s,c={};r.r(c),r.d(c,{scaleBand:()=>f.A,scaleDiverging:()=>function e(){var t=Y(rd()(k));return t.copy=function(){return rc(t,e())},B.K.apply(t,arguments)},scaleDivergingLog:()=>function e(){var t=ei(rd()).domain([.1,1,10]);return t.copy=function(){return rc(t,e()).base(t.base())},B.K.apply(t,arguments)},scaleDivergingPow:()=>rh,scaleDivergingSqrt:()=>ry,scaleDivergingSymlog:()=>function e(){var t=eu(rd());return t.copy=function(){return rc(t,e()).constant(t.constant())},B.K.apply(t,arguments)},scaleIdentity:()=>function e(t){var r;function n(e){return null==e||isNaN(e*=1)?r:e}return n.invert=n,n.domain=n.range=function(e){return arguments.length?(t=Array.from(e,M),n):t.slice()},n.unknown=function(e){return arguments.length?(r=e,n):r},n.copy=function(){return e(t).unknown(r)},t=arguments.length?Array.from(t,M):[0,1],Y(n)},scaleImplicit:()=>es.h,scaleLinear:()=>J,scaleLog:()=>function e(){let t=ei(N()).domain([1,10]);return t.copy=()=>D(t,e()).base(t.base()),B.C.apply(t,arguments),t},scaleOrdinal:()=>es.A,scalePoint:()=>f.z,scalePow:()=>eh,scaleQuantile:()=>function e(){var t,r=[],n=[],o=[];function i(){var e=0,t=Math.max(1,n.length);for(o=Array(t-1);++e=1)return+r(e[n-1],n-1,e);var n,o=(n-1)*t,i=Math.floor(o),a=+r(e[i],i,e);return a+(r(e[i+1],i+1,e)-a)*(o-i)}}(r,e/t);return a}function a(e){return null==e||isNaN(e*=1)?t:n[A(o,e)]}return a.invertExtent=function(e){var t=n.indexOf(e);return t<0?[NaN,NaN]:[t>0?o[t-1]:r[0],tfunction e(){var t,r=0,n=1,o=1,i=[.5],a=[0,1];function l(e){return null!=e&&e<=e?a[A(i,e,0,o)]:t}function u(){var e=-1;for(i=Array(o);++e=o?[i[o-1],n]:[i[t-1],i[t]]},l.unknown=function(e){return arguments.length&&(t=e),l},l.thresholds=function(){return i.slice()},l.copy=function(){return e().domain([r,n]).range(a).unknown(t)},B.C.apply(Y(l),arguments)},scaleRadial:()=>function e(){var t,r=F(),n=[0,1],o=!1;function i(e){var n,i=Math.sign(n=r(e))*Math.sqrt(Math.abs(n));return isNaN(i)?t:o?Math.round(i):i}return i.invert=function(e){return r.invert(eg(e))},i.domain=function(e){return arguments.length?(r.domain(e),i):r.domain()},i.range=function(e){return arguments.length?(r.range((n=Array.from(e,M)).map(eg)),i):n.slice()},i.rangeRound=function(e){return i.range(e).round(!0)},i.round=function(e){return arguments.length?(o=!!e,i):o},i.clamp=function(e){return arguments.length?(r.clamp(e),i):r.clamp()},i.unknown=function(e){return arguments.length?(t=e,i):t},i.copy=function(){return e(r.domain(),n).round(o).clamp(r.clamp()).unknown(t)},B.C.apply(i,arguments),Y(i)},scaleSequential:()=>function e(){var t=Y(rs()(k));return t.copy=function(){return rc(t,e())},B.K.apply(t,arguments)},scaleSequentialLog:()=>function e(){var t=ei(rs()).domain([1,10]);return t.copy=function(){return rc(t,e()).base(t.base())},B.K.apply(t,arguments)},scaleSequentialPow:()=>rf,scaleSequentialQuantile:()=>function e(){var t=[],r=k;function n(e){if(null!=e&&!isNaN(e*=1))return r((A(t,e,1)-1)/(t.length-1))}return n.domain=function(e){if(!arguments.length)return t.slice();for(let r of(t=[],e))null==r||isNaN(r*=1)||t.push(r);return t.sort(b),n},n.interpolator=function(e){return arguments.length?(r=e,n):r},n.range=function(){return t.map((e,n)=>r(n/(t.length-1)))},n.quantiles=function(e){return Array.from({length:e+1},(r,n)=>(function(e,t,r){if(!(!(n=(e=Float64Array.from(function*(e,t){if(void 0===t)for(let t of e)null!=t&&(t*=1)>=t&&(yield t);else{let r=-1;for(let n of e)null!=(n=t(n,++r,e))&&(n*=1)>=n&&(yield n)}}(e,void 0))).length)||isNaN(t*=1))){if(t<=0||n<2)return em(e);if(t>=1)return ev(e);var n,o=(n-1)*t,i=Math.floor(o),a=ev((function e(t,r,n=0,o=1/0,i){if(r=Math.floor(r),n=Math.floor(Math.max(0,n)),o=Math.floor(Math.min(t.length-1,o)),!(n<=r&&r<=o))return t;for(i=void 0===i?eb:function(e=b){if(e===b)return eb;if("function"!=typeof e)throw TypeError("compare is not a function");return(t,r)=>{let n=e(t,r);return n||0===n?n:(0===e(r,r))-(0===e(t,t))}}(i);o>n;){if(o-n>600){let a=o-n+1,l=r-n+1,u=Math.log(a),s=.5*Math.exp(2*u/3),c=.5*Math.sqrt(u*s*(a-s)/a)*(l-a/2<0?-1:1),f=Math.max(n,Math.floor(r-l*s/a+c)),p=Math.min(o,Math.floor(r+(a-l)*s/a+c));e(t,r,f,p,i)}let a=t[r],l=n,u=o;for(ex(t,n,r),i(t[o],a)>0&&ex(t,n,o);li(t[l],a);)++l;for(;i(t[u],a)>0;)--u}0===i(t[n],a)?ex(t,n,u):ex(t,++u,o),u<=r&&(n=u+1),r<=u&&(o=u-1)}return t})(e,i).subarray(0,i+1));return a+(em(e.subarray(i+1))-a)*(o-i)}})(t,n/e))},n.copy=function(){return e(r).domain(t)},B.K.apply(n,arguments)},scaleSequentialSqrt:()=>rp,scaleSequentialSymlog:()=>function e(){var t=eu(rs());return t.copy=function(){return rc(t,e()).constant(t.constant())},B.K.apply(t,arguments)},scaleSqrt:()=>ey,scaleSymlog:()=>function e(){var t=eu(N());return t.copy=function(){return D(t,e()).constant(t.constant())},B.C.apply(t,arguments)},scaleThreshold:()=>function e(){var t,r=[.5],n=[0,1],o=1;function i(e){return null!=e&&e<=e?n[A(r,e,0,o)]:t}return i.domain=function(e){return arguments.length?(o=Math.min((r=Array.from(e)).length,n.length-1),i):r.slice()},i.range=function(e){return arguments.length?(n=Array.from(e),o=Math.min(r.length,n.length-1),i):n.slice()},i.invertExtent=function(e){var t=n.indexOf(e);return[r[t-1],r[t]]},i.unknown=function(e){return arguments.length?(t=e,i):t},i.copy=function(){return e().domain(r).range(n).unknown(t)},B.C.apply(i,arguments)},scaleTime:()=>rl,scaleUtc:()=>ru,tickFormat:()=>K});var f=r(49726);let p=Math.sqrt(50),d=Math.sqrt(10),h=Math.sqrt(2);function y(e,t,r){let n,o,i,a=(t-e)/Math.max(0,r),l=Math.floor(Math.log10(a)),u=a/Math.pow(10,l),s=u>=p?10:u>=d?5:u>=h?2:1;return(l<0?(n=Math.round(e*(i=Math.pow(10,-l)/s)),o=Math.round(t*i),n/it&&--o,i=-i):(n=Math.round(e/(i=Math.pow(10,l)*s)),o=Math.round(t/i),n*it&&--o),o0))return[];if(e===t)return[e];let n=t=o))return[];let l=i-o+1,u=Array(l);if(n)if(a<0)for(let e=0;et?1:e>=t?0:NaN}function x(e,t){return null==e||null==t?NaN:te?1:t>=e?0:NaN}function w(e){let t,r,n;function o(e,n,i=0,a=e.length){if(i>>1;0>r(e[t],n)?i=t+1:a=t}while(ib(e(t),r),n=(t,r)=>e(t)-r):(t=e===b||e===x?e:O,r=e,n=e),{left:o,center:function(e,t,r=0,i=e.length){let a=o(e,t,r,i-1);return a>r&&n(e[a-1],t)>-n(e[a],t)?a-1:a},right:function(e,n,o=0,i=e.length){if(o>>1;0>=r(e[t],n)?o=t+1:i=t}while(ot&&(r=e,e=t,t=r),s=function(r){return Math.max(e,Math.min(t,r))}),n=u>2?R:I,o=i=null,f}function f(t){return null==t||isNaN(t*=1)?r:(o||(o=n(a.map(e),l,u)))(e(s(t)))}return f.invert=function(r){return s(t((i||(i=n(l,a.map(e),P.A)))(r)))},f.domain=function(e){return arguments.length?(a=Array.from(e,M),c()):a.slice()},f.range=function(e){return arguments.length?(l=Array.from(e),c()):l.slice()},f.rangeRound=function(e){return l=Array.from(e),u=_,c()},f.clamp=function(e){return arguments.length?(s=!!e||k,c()):s!==k},f.interpolate=function(e){return arguments.length?(u=e,c()):u},f.unknown=function(e){return arguments.length?(r=e,f):r},function(r,n){return e=r,t=n,c()}}function F(){return N()(k,k)}var B=r(58905),L=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function z(e){var t;if(!(t=L.exec(e)))throw Error("invalid format: "+e);return new V({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function V(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function U(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function H(e){return(e=U(Math.abs(e)))?e[1]:NaN}function $(e,t){var r=U(e,t);if(!r)return e+"";var n=r[0],o=r[1];return o<0?"0."+Array(-o).join("0")+n:n.length>o+1?n.slice(0,o+1)+"."+n.slice(o+1):n+Array(o-n.length+2).join("0")}z.prototype=V.prototype,V.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};let G={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>$(100*e,t),r:$,s:function(e,t){var r=U(e,t);if(!r)return e+"";var o=r[0],i=r[1],a=i-(n=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,l=o.length;return a===l?o:a>l?o+Array(a-l+1).join("0"):a>0?o.slice(0,a)+"."+o.slice(a):"0."+Array(1-a).join("0")+U(e,Math.max(0,t+a-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function W(e){return e}var q=Array.prototype.map,X=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function K(e,t,r,n){var o,l,u=m(e,t,r);switch((n=z(null==n?",f":n)).type){case"s":var s=Math.max(Math.abs(e),Math.abs(t));return null!=n.precision||isNaN(l=Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(H(s)/3)))-H(Math.abs(u))))||(n.precision=l),a(n,s);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(l=Math.max(0,H(Math.abs(Math.max(Math.abs(e),Math.abs(t)))-(o=Math.abs(o=u)))-H(o))+1)||(n.precision=l-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(l=Math.max(0,-H(Math.abs(u))))||(n.precision=l-("%"===n.type)*2)}return i(n)}function Y(e){var t=e.domain;return e.ticks=function(e){var r=t();return g(r[0],r[r.length-1],null==e?10:e)},e.tickFormat=function(e,r){var n=t();return K(n[0],n[n.length-1],null==e?10:e,r)},e.nice=function(r){null==r&&(r=10);var n,o,i=t(),a=0,l=i.length-1,u=i[a],s=i[l],c=10;for(s0;){if((o=v(u,s,r))===n)return i[a]=u,i[l]=s,t(i);if(o>0)u=Math.floor(u/o)*o,s=Math.ceil(s/o)*o;else if(o<0)u=Math.ceil(u*o)/o,s=Math.floor(s*o)/o;else break;n=o}return e},e}function J(){var e=F();return e.copy=function(){return D(e,J())},B.C.apply(e,arguments),Y(e)}function Z(e,t){e=e.slice();var r,n=0,o=e.length-1,i=e[n],a=e[o];return a-e(-t,r)}function ei(e){let t,r,n=e(Q,ee),o=n.domain,a=10;function l(){var i,l;return t=(i=a)===Math.E?Math.log:10===i&&Math.log10||2===i&&Math.log2||(i=Math.log(i),e=>Math.log(e)/i),r=10===(l=a)?en:l===Math.E?Math.exp:e=>Math.pow(l,e),o()[0]<0?(t=eo(t),r=eo(r),e(et,er)):e(Q,ee),n}return n.base=function(e){return arguments.length?(a=+e,l()):a},n.domain=function(e){return arguments.length?(o(e),l()):o()},n.ticks=e=>{let n,i,l=o(),u=l[0],s=l[l.length-1],c=s0){for(;f<=p;++f)for(n=1;ns)break;h.push(i)}}else for(;f<=p;++f)for(n=a-1;n>=1;--n)if(!((i=f>0?n/r(-f):n*r(f))s)break;h.push(i)}2*h.length{if(null==e&&(e=10),null==o&&(o=10===a?"s":","),"function"!=typeof o&&(a%1||null!=(o=z(o)).precision||(o.trim=!0),o=i(o)),e===1/0)return o;let l=Math.max(1,a*e/n.ticks().length);return e=>{let n=e/r(Math.round(t(e)));return n*ao(Z(o(),{floor:e=>r(Math.floor(t(e))),ceil:e=>r(Math.ceil(t(e)))})),n}function ea(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function el(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function eu(e){var t=1,r=e(ea(1),el(t));return r.constant=function(r){return arguments.length?e(ea(t=+r),el(t)):t},Y(r)}i=(o=function(e){var t,r,o,i=void 0===e.grouping||void 0===e.thousands?W:(t=q.call(e.grouping,Number),r=e.thousands+"",function(e,n){for(var o=e.length,i=[],a=0,l=t[0],u=0;o>0&&l>0&&(u+l+1>n&&(l=Math.max(1,n-u)),i.push(e.substring(o-=l,o+l)),!((u+=l+1)>n));)l=t[a=(a+1)%t.length];return i.reverse().join(r)}),a=void 0===e.currency?"":e.currency[0]+"",l=void 0===e.currency?"":e.currency[1]+"",u=void 0===e.decimal?".":e.decimal+"",s=void 0===e.numerals?W:(o=q.call(e.numerals,String),function(e){return e.replace(/[0-9]/g,function(e){return o[+e]})}),c=void 0===e.percent?"%":e.percent+"",f=void 0===e.minus?"−":e.minus+"",p=void 0===e.nan?"NaN":e.nan+"";function d(e){var t=(e=z(e)).fill,r=e.align,o=e.sign,d=e.symbol,h=e.zero,y=e.width,g=e.comma,v=e.precision,m=e.trim,b=e.type;"n"===b?(g=!0,b="g"):G[b]||(void 0===v&&(v=12),m=!0,b="g"),(h||"0"===t&&"="===r)&&(h=!0,t="0",r="=");var x="$"===d?a:"#"===d&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",w="$"===d?l:/[%p]/.test(b)?c:"",O=G[b],S=/[defgprs%]/.test(b);function j(e){var a,l,c,d=x,j=w;if("c"===b)j=O(e)+j,e="";else{var A=(e*=1)<0||1/e<0;if(e=isNaN(e)?p:O(Math.abs(e),v),m&&(e=function(e){e:for(var t,r=e.length,n=1,o=-1;n0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),A&&0==+e&&"+"!==o&&(A=!1),d=(A?"("===o?o:f:"-"===o||"("===o?"":o)+d,j=("s"===b?X[8+n/3]:"")+j+(A&&"("===o?")":""),S){for(a=-1,l=e.length;++a(c=e.charCodeAt(a))||c>57){j=(46===c?u+e.slice(a+1):e.slice(a))+j,e=e.slice(0,a);break}}}g&&!h&&(e=i(e,1/0));var E=d.length+e.length+j.length,P=E>1)+d+e+j+P.slice(E);break;default:e=P+d+e+j}return s(e)}return v=void 0===v?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),j.toString=function(){return e+""},j}return{format:d,formatPrefix:function(e,t){var r=d(((e=z(e)).type="f",e)),n=3*Math.max(-8,Math.min(8,Math.floor(H(t)/3))),o=Math.pow(10,-n),i=X[8+n/3];return function(e){return r(o*e)+i}}}}({thousands:",",grouping:[3],currency:["$",""]})).format,a=o.formatPrefix;var es=r(41499);function ec(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function ef(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function ep(e){return e<0?-e*e:e*e}function ed(e){var t=e(k,k),r=1;return t.exponent=function(t){return arguments.length?1==(r=+t)?e(k,k):.5===r?e(ef,ep):e(ec(r),ec(1/r)):r},Y(t)}function eh(){var e=ed(N());return e.copy=function(){return D(e,eh()).exponent(e.exponent())},B.C.apply(e,arguments),e}function ey(){return eh.apply(null,arguments).exponent(.5)}function eg(e){return Math.sign(e)*e*e}function ev(e,t){let r;if(void 0===t)for(let t of e)null!=t&&(r=t)&&(r=t);else{let n=-1;for(let o of e)null!=(o=t(o,++n,e))&&(r=o)&&(r=o)}return r}function em(e,t){let r;if(void 0===t)for(let t of e)null!=t&&(r>t||void 0===r&&t>=t)&&(r=t);else{let n=-1;for(let o of e)null!=(o=t(o,++n,e))&&(r>o||void 0===r&&o>=o)&&(r=o)}return r}function eb(e,t){return(null==e||!(e>=e))-(null==t||!(t>=t))||(et))}function ex(e,t,r){let n=e[t];e[t]=e[r],e[r]=n}let ew=new Date,eO=new Date;function eS(e,t,r,n){function o(t){return e(t=0==arguments.length?new Date:new Date(+t)),t}return o.floor=t=>(e(t=new Date(+t)),t),o.ceil=r=>(e(r=new Date(r-1)),t(r,1),e(r),r),o.round=e=>{let t=o(e),r=o.ceil(e);return e-t(t(e=new Date(+e),null==r?1:Math.floor(r)),e),o.range=(r,n,i)=>{let a,l=[];if(r=o.ceil(r),i=null==i?1:Math.floor(i),!(r0))return l;do l.push(a=new Date(+r)),t(r,i),e(r);while(aeS(t=>{if(t>=t)for(;e(t),!r(t);)t.setTime(t-1)},(e,n)=>{if(e>=e)if(n<0)for(;++n<=0;)for(;t(e,-1),!r(e););else for(;--n>=0;)for(;t(e,1),!r(e););}),r&&(o.count=(t,n)=>(ew.setTime(+t),eO.setTime(+n),e(ew),e(eO),Math.floor(r(ew,eO))),o.every=e=>isFinite(e=Math.floor(e))&&e>0?e>1?o.filter(n?t=>n(t)%e==0:t=>o.count(0,t)%e==0):o:null),o}let ej=eS(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);ej.every=e=>isFinite(e=Math.floor(e))&&e>0?e>1?eS(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):ej:null,ej.range;let eA=eS(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+1e3*t)},(e,t)=>(t-e)/1e3,e=>e.getUTCSeconds());eA.range;let eE=eS(e=>{e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds())},(e,t)=>{e.setTime(+e+6e4*t)},(e,t)=>(t-e)/6e4,e=>e.getMinutes());eE.range;let eP=eS(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+6e4*t)},(e,t)=>(t-e)/6e4,e=>e.getUTCMinutes());eP.range;let e_=eS(e=>{e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds()-6e4*e.getMinutes())},(e,t)=>{e.setTime(+e+36e5*t)},(e,t)=>(t-e)/36e5,e=>e.getHours());e_.range;let eM=eS(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+36e5*t)},(e,t)=>(t-e)/36e5,e=>e.getUTCHours());eM.range;let eC=eS(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/864e5,e=>e.getDate()-1);eC.range;let ek=eS(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/864e5,e=>e.getUTCDate()-1);ek.range;let eT=eS(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/864e5,e=>Math.floor(e/864e5));function eI(e){return eS(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(e,t)=>{e.setDate(e.getDate()+7*t)},(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/6048e5)}eT.range;let eR=eI(0),eD=eI(1),eN=eI(2),eF=eI(3),eB=eI(4),eL=eI(5),ez=eI(6);function eV(e){return eS(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)},(e,t)=>(t-e)/6048e5)}eR.range,eD.range,eN.range,eF.range,eB.range,eL.range,ez.range;let eU=eV(0),eH=eV(1),e$=eV(2),eG=eV(3),eW=eV(4),eq=eV(5),eX=eV(6);eU.range,eH.range,e$.range,eG.range,eW.range,eq.range,eX.range;let eK=eS(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());eK.range;let eY=eS(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());eY.range;let eJ=eS(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());eJ.every=e=>isFinite(e=Math.floor(e))&&e>0?eS(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)}):null,eJ.range;let eZ=eS(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());function eQ(e,t,r,n,o,i){let a=[[eA,1,1e3],[eA,5,5e3],[eA,15,15e3],[eA,30,3e4],[i,1,6e4],[i,5,3e5],[i,15,9e5],[i,30,18e5],[o,1,36e5],[o,3,108e5],[o,6,216e5],[o,12,432e5],[n,1,864e5],[n,2,1728e5],[r,1,6048e5],[t,1,2592e6],[t,3,7776e6],[e,1,31536e6]];function l(t,r,n){let o=Math.abs(r-t)/n,i=w(([,,e])=>e).right(a,o);if(i===a.length)return e.every(m(t/31536e6,r/31536e6,n));if(0===i)return ej.every(Math.max(m(t,r,n),1));let[l,u]=a[o/a[i-1][2]isFinite(e=Math.floor(e))&&e>0?eS(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)}):null,eZ.range;let[e0,e1]=eQ(eZ,eY,eU,eT,eM,eP),[e2,e5]=eQ(eJ,eK,eR,eC,e_,eE);function e3(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function e6(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function e4(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}var e9={"-":"",_:" ",0:"0"},e7=/^\s*\d+/,e8=/^%/,te=/[\\^$*+?|[\]().{}]/g;function tt(e,t,r){var n=e<0?"-":"",o=(n?-e:e)+"",i=o.length;return n+(i[e.toLowerCase(),t]))}function ti(e,t,r){var n=e7.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function ta(e,t,r){var n=e7.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function tl(e,t,r){var n=e7.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function tu(e,t,r){var n=e7.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function ts(e,t,r){var n=e7.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function tc(e,t,r){var n=e7.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function tf(e,t,r){var n=e7.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function tp(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function td(e,t,r){var n=e7.exec(t.slice(r,r+1));return n?(e.q=3*n[0]-3,r+n[0].length):-1}function th(e,t,r){var n=e7.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function ty(e,t,r){var n=e7.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function tg(e,t,r){var n=e7.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function tv(e,t,r){var n=e7.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function tm(e,t,r){var n=e7.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function tb(e,t,r){var n=e7.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function tx(e,t,r){var n=e7.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function tw(e,t,r){var n=e7.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function tO(e,t,r){var n=e8.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function tS(e,t,r){var n=e7.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function tj(e,t,r){var n=e7.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function tA(e,t){return tt(e.getDate(),t,2)}function tE(e,t){return tt(e.getHours(),t,2)}function tP(e,t){return tt(e.getHours()%12||12,t,2)}function t_(e,t){return tt(1+eC.count(eJ(e),e),t,3)}function tM(e,t){return tt(e.getMilliseconds(),t,3)}function tC(e,t){return tM(e,t)+"000"}function tk(e,t){return tt(e.getMonth()+1,t,2)}function tT(e,t){return tt(e.getMinutes(),t,2)}function tI(e,t){return tt(e.getSeconds(),t,2)}function tR(e){var t=e.getDay();return 0===t?7:t}function tD(e,t){return tt(eR.count(eJ(e)-1,e),t,2)}function tN(e){var t=e.getDay();return t>=4||0===t?eB(e):eB.ceil(e)}function tF(e,t){return e=tN(e),tt(eB.count(eJ(e),e)+(4===eJ(e).getDay()),t,2)}function tB(e){return e.getDay()}function tL(e,t){return tt(eD.count(eJ(e)-1,e),t,2)}function tz(e,t){return tt(e.getFullYear()%100,t,2)}function tV(e,t){return tt((e=tN(e)).getFullYear()%100,t,2)}function tU(e,t){return tt(e.getFullYear()%1e4,t,4)}function tH(e,t){var r=e.getDay();return tt((e=r>=4||0===r?eB(e):eB.ceil(e)).getFullYear()%1e4,t,4)}function t$(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+tt(t/60|0,"0",2)+tt(t%60,"0",2)}function tG(e,t){return tt(e.getUTCDate(),t,2)}function tW(e,t){return tt(e.getUTCHours(),t,2)}function tq(e,t){return tt(e.getUTCHours()%12||12,t,2)}function tX(e,t){return tt(1+ek.count(eZ(e),e),t,3)}function tK(e,t){return tt(e.getUTCMilliseconds(),t,3)}function tY(e,t){return tK(e,t)+"000"}function tJ(e,t){return tt(e.getUTCMonth()+1,t,2)}function tZ(e,t){return tt(e.getUTCMinutes(),t,2)}function tQ(e,t){return tt(e.getUTCSeconds(),t,2)}function t0(e){var t=e.getUTCDay();return 0===t?7:t}function t1(e,t){return tt(eU.count(eZ(e)-1,e),t,2)}function t2(e){var t=e.getUTCDay();return t>=4||0===t?eW(e):eW.ceil(e)}function t5(e,t){return e=t2(e),tt(eW.count(eZ(e),e)+(4===eZ(e).getUTCDay()),t,2)}function t3(e){return e.getUTCDay()}function t6(e,t){return tt(eH.count(eZ(e)-1,e),t,2)}function t4(e,t){return tt(e.getUTCFullYear()%100,t,2)}function t9(e,t){return tt((e=t2(e)).getUTCFullYear()%100,t,2)}function t7(e,t){return tt(e.getUTCFullYear()%1e4,t,4)}function t8(e,t){var r=e.getUTCDay();return tt((e=r>=4||0===r?eW(e):eW.ceil(e)).getUTCFullYear()%1e4,t,4)}function re(){return"+0000"}function rt(){return"%"}function rr(e){return+e}function rn(e){return Math.floor(e/1e3)}function ro(e){return new Date(e)}function ri(e){return e instanceof Date?+e:+new Date(+e)}function ra(e,t,r,n,o,i,a,l,u,s){var c=F(),f=c.invert,p=c.domain,d=s(".%L"),h=s(":%S"),y=s("%I:%M"),g=s("%I %p"),v=s("%a %d"),m=s("%b %d"),b=s("%B"),x=s("%Y");function w(e){return(u(e)1)for(var r,n,o,i=1,a=e[t[0]],l=a.length;i=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:rr,s:rn,S:tI,u:tR,U:tD,V:tF,w:tB,W:tL,x:null,X:null,y:tz,Y:tU,Z:t$,"%":rt},x={a:function(e){return a[e.getUTCDay()]},A:function(e){return i[e.getUTCDay()]},b:function(e){return u[e.getUTCMonth()]},B:function(e){return l[e.getUTCMonth()]},c:null,d:tG,e:tG,f:tY,g:t9,G:t8,H:tW,I:tq,j:tX,L:tK,m:tJ,M:tZ,p:function(e){return o[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:rr,s:rn,S:tQ,u:t0,U:t1,V:t5,w:t3,W:t6,x:null,X:null,y:t4,Y:t7,Z:re,"%":rt},w={a:function(e,t,r){var n=d.exec(t.slice(r));return n?(e.w=h.get(n[0].toLowerCase()),r+n[0].length):-1},A:function(e,t,r){var n=f.exec(t.slice(r));return n?(e.w=p.get(n[0].toLowerCase()),r+n[0].length):-1},b:function(e,t,r){var n=v.exec(t.slice(r));return n?(e.m=m.get(n[0].toLowerCase()),r+n[0].length):-1},B:function(e,t,r){var n=y.exec(t.slice(r));return n?(e.m=g.get(n[0].toLowerCase()),r+n[0].length):-1},c:function(e,r,n){return j(e,t,r,n)},d:ty,e:ty,f:tw,g:tf,G:tc,H:tv,I:tv,j:tg,L:tx,m:th,M:tm,p:function(e,t,r){var n=s.exec(t.slice(r));return n?(e.p=c.get(n[0].toLowerCase()),r+n[0].length):-1},q:td,Q:tS,s:tj,S:tb,u:ta,U:tl,V:tu,w:ti,W:ts,x:function(e,t,n){return j(e,r,t,n)},X:function(e,t,r){return j(e,n,t,r)},y:tf,Y:tc,Z:tp,"%":tO};function O(e,t){return function(r){var n,o,i,a=[],l=-1,u=0,s=e.length;for(r instanceof Date||(r=new Date(+r));++l53)return null;"w"in i||(i.w=1),"Z"in i?(n=(o=(n=e6(e4(i.y,0,1))).getUTCDay())>4||0===o?eH.ceil(n):eH(n),n=ek.offset(n,(i.V-1)*7),i.y=n.getUTCFullYear(),i.m=n.getUTCMonth(),i.d=n.getUTCDate()+(i.w+6)%7):(n=(o=(n=e3(e4(i.y,0,1))).getDay())>4||0===o?eD.ceil(n):eD(n),n=eC.offset(n,(i.V-1)*7),i.y=n.getFullYear(),i.m=n.getMonth(),i.d=n.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:+("W"in i)),o="Z"in i?e6(e4(i.y,0,1)).getUTCDay():e3(e4(i.y,0,1)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,e6(i)):e3(i)}}function j(e,t,r,n){for(var o,i,a=0,l=t.length,u=r.length;a=u)return -1;if(37===(o=t.charCodeAt(a++))){if(!(i=w[(o=t.charAt(a++))in e9?t.charAt(a++):o])||(n=i(e,r,n))<0)return -1}else if(o!=r.charCodeAt(n++))return -1}return n}return b.x=O(r,b),b.X=O(n,b),b.c=O(t,b),x.x=O(r,x),x.X=O(n,x),x.c=O(t,x),{format:function(e){var t=O(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=S(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=O(e+="",x);return t.toString=function(){return e},t},utcParse:function(e){var t=S(e+="",!0);return t.toString=function(){return e},t}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]})).format,l.parse,s=l.utcFormat,l.utcParse;var rv=r(71947),rm=r(46554);function rb(e){for(var t=e.length,r=Array(t);--t>=0;)r[t]=t;return r}function rx(e,t){return e[t]}function rw(e){let t=[];return t.key=e,t}var rO=r(58327),rS=r.n(rO),rj=r(16597),rA=r.n(rj),rE=r(1250),rP=r.n(rE),r_=r(16087),rM=r.n(r_),rC=r(42190),rk=r.n(rC),rT=r(96485),rI=r.n(rT),rR=r(71226),rD=r.n(rR),rN=r(34120),rF=r.n(rN),rB=r(25153),rL=r.n(rB),rz=r(97469),rV=r.n(rz),rU=r(47222),rH=r.n(rU),r$=r(56650),rG=r.n(r$);function rW(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r=t?r.apply(void 0,o):e(t-a,rY(function(){for(var e=arguments.length,t=Array(e),n=0;ntypeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return rW(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return rW(e,void 0)}}(i)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat(t))}))})}(e.length,e)},rZ=function(e,t){for(var r=[],n=e;ntypeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||r9(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r4(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("u">typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(n=(a=l.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw i}}return r}}(e,t)||r9(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r9(e,t){if(e){if("string"==typeof e)return r7(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return r7(e,t)}}function r7(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);rn&&(o=n,i=r),[o,i]}function ne(e,t,r){if(e.lte(0))return new(rG())(0);var n=r3(e.toNumber()),o=new(rG())(10).pow(n),i=e.div(o),a=1!==n?.05:.1,l=new(rG())(Math.ceil(i.div(a).toNumber())).add(r).mul(a).mul(o);return t?l:new(rG())(Math.ceil(l))}function nt(e,t,r){var n=1,o=new(rG())(e);if(!o.isint()&&r){var i=Math.abs(e);i<1?(n=new(rG())(10).pow(r3(e)-1),o=new(rG())(Math.floor(o.div(n).toNumber())).mul(n)):i>1&&(o=new(rG())(Math.floor(e)))}else 0===e?o=new(rG())(Math.floor((t-1)/2)):r||(o=new(rG())(Math.floor(e)));var a=Math.floor((t-1)/2);return r0(rQ(function(e){return o.add(new(rG())(e-a).mul(n)).toNumber()}),rZ)(0,t)}var nr=r2(function(e){var t=r4(e,2),r=t[0],n=t[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,i=!(arguments.length>2)||void 0===arguments[2]||arguments[2],a=Math.max(o,2),l=r4(r8([r,n]),2),u=l[0],s=l[1];if(u===-1/0||s===1/0){var c=s===1/0?[u].concat(r6(rZ(0,o-1).map(function(){return 1/0}))):[].concat(r6(rZ(0,o-1).map(function(){return-1/0})),[s]);return r>n?r1(c):c}if(u===s)return nt(u,o,i);var f=function e(t,r,n,o){var i,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((r-t)/(n-1)))return{step:new(rG())(0),tickMin:new(rG())(0),tickMax:new(rG())(0)};var l=ne(new(rG())(r).sub(t).div(n-1),o,a),u=Math.ceil((i=t<=0&&r>=0?new(rG())(0):(i=new(rG())(t).add(r).div(2)).sub(new(rG())(i).mod(l))).sub(t).div(l).toNumber()),s=Math.ceil(new(rG())(r).sub(i).div(l).toNumber()),c=u+s+1;return c>n?e(t,r,n,o,a+1):(c0?s+(n-c):s,u=r>0?u:u+(n-c)),{step:l,tickMin:i.sub(new(rG())(u).mul(l)),tickMax:i.add(new(rG())(s).mul(l))})}(u,s,a,i),p=f.step,d=r5(f.tickMin,f.tickMax.add(new(rG())(.1).mul(p)),p);return r>n?r1(d):d});r2(function(e){var t=r4(e,2),r=t[0],n=t[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,i=!(arguments.length>2)||void 0===arguments[2]||arguments[2],a=Math.max(o,2),l=r4(r8([r,n]),2),u=l[0],s=l[1];if(u===-1/0||s===1/0)return[r,n];if(u===s)return nt(u,o,i);var c=ne(new(rG())(s).sub(u).div(a-1),i,0),f=r0(rQ(function(e){return new(rG())(u).add(new(rG())(e).mul(c)).toNumber()}),rZ)(0,a).filter(function(e){return e>=u&&e<=s});return r>n?r1(f):f});var nn=r2(function(e,t){var r=r4(e,2),n=r[0],o=r[1],i=!(arguments.length>2)||void 0===arguments[2]||arguments[2],a=r4(r8([n,o]),2),l=a[0],u=a[1];if(l===-1/0||u===1/0)return[n,o];if(l===u)return[l];var s=Math.max(t,2),c=ne(new(rG())(u).sub(l).div(s-1),i,0),f=[].concat(r6(r5(new(rG())(l),new(rG())(u).sub(new(rG())(.99).mul(c)),c)),[u]);return n>o?r1(f):f}),no=r(65219),ni=r(53645),na=r(93780),nl=r(65049);function nu(e){return(nu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ns(e){return function(e){if(Array.isArray(e))return nc(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return nc(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return nc(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function nc(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=-1,a=null!=(t=null==r?void 0:r.length)?t:0;if(a<=1)return 0;if(o&&"angleAxis"===o.axisType&&1e-6>=Math.abs(Math.abs(o.range[1]-o.range[0])-360))for(var l=o.range,u=0;u0?n[u-1].coordinate:n[a-1].coordinate,c=n[u].coordinate,f=u>=a-1?n[0].coordinate:n[u+1].coordinate,p=void 0;if((0,ni.sA)(c-s)!==(0,ni.sA)(f-c)){var d=[];if((0,ni.sA)(f-c)===(0,ni.sA)(l[1]-l[0])){p=f;var h=c+l[1]-l[0];d[0]=Math.min(h,(h+s)/2),d[1]=Math.max(h,(h+s)/2)}else{p=s;var y=f+l[1]-l[0];d[0]=Math.min(c,(y+c)/2),d[1]=Math.max(c,(y+c)/2)}var g=[Math.min(c,(p+c)/2),Math.max(c,(p+c)/2)];if(e>g[0]&&e<=g[1]||e>=d[0]&&e<=d[1]){i=n[u].index;break}}else{var v=Math.min(s,f),m=Math.max(s,f);if(e>(v+c)/2&&e<=(m+c)/2){i=n[u].index;break}}}else for(var b=0;b0&&b(r[b].coordinate+r[b-1].coordinate)/2&&e<=(r[b].coordinate+r[b+1].coordinate)/2||b===a-1&&e>(r[b].coordinate+r[b-1].coordinate)/2){i=r[b].index;break}return i},nv=function(e){var t,r,n=e.type.displayName,o=null!=(t=e.type)&&t.defaultProps?np(np({},e.type.defaultProps),e.props):e.props,i=o.stroke,a=o.fill;switch(n){case"Line":r=i;break;case"Area":case"Radar":r=i&&"none"!==i?i:a;break;default:r=a}return r},nm=function(e){var t=e.barSize,r=e.totalSize,n=e.stackGroups,o=void 0===n?{}:n;if(!o)return{};for(var i={},a=Object.keys(o),l=0,u=a.length;l=0});if(g&&g.length){var v=g[0].type.defaultProps,m=void 0!==v?np(np({},v),g[0].props):g[0].props,b=m.barSize,x=m[y];i[x]||(i[x]=[]);var w=rP()(b)?t:b;i[x].push({item:g[0],stackList:g.slice(1),barSize:rP()(w)?void 0:(0,ni.F4)(w,r,0)})}}return i},nb=function(e){var t,r=e.barGap,n=e.barCategoryGap,o=e.bandSize,i=e.sizeList,a=void 0===i?[]:i,l=e.maxBarSize,u=a.length;if(u<1)return null;var s=(0,ni.F4)(r,o,0,!0),c=[];if(a[0].barSize===+a[0].barSize){var f=!1,p=o/u,d=a.reduce(function(e,t){return e+t.barSize||0},0);(d+=(u-1)*s)>=o&&(d-=(u-1)*s,s=0),d>=o&&p>0&&(f=!0,p*=.9,d=u*p);var h={offset:((o-d)/2|0)-s,size:0};t=a.reduce(function(e,t){var r={item:t.item,position:{offset:h.offset+h.size+s,size:f?p:t.barSize}},n=[].concat(ns(e),[r]);return h=n[n.length-1].position,t.stackList&&t.stackList.length&&t.stackList.forEach(function(e){n.push({item:e,position:h})}),n},c)}else{var y=(0,ni.F4)(n,o,0,!0);o-2*y-(u-1)*s<=0&&(s=0);var g=(o-2*y-(u-1)*s)/u;g>1&&(g>>=0);var v=l===+l?Math.min(g,l):g;t=a.reduce(function(e,t,r){var n=[].concat(ns(e),[{item:t.item,position:{offset:y+(g+s)*r+(g-v)/2,size:v}}]);return t.stackList&&t.stackList.length&&t.stackList.forEach(function(e){n.push({item:e,position:n[n.length-1].position})}),n},c)}return t},nx=function(e,t,r,n){var o=r.children,i=r.width,a=r.margin,l=i-(a.left||0)-(a.right||0),u=(0,nl.g)({children:o,legendWidth:l});if(u){var s=n||{},c=s.width,f=s.height,p=u.align,d=u.verticalAlign,h=u.layout;if(("vertical"===h||"horizontal"===h&&"middle"===d)&&"center"!==p&&(0,ni.Et)(e[p]))return np(np({},e),{},nd({},p,e[p]+(c||0)));if(("horizontal"===h||"vertical"===h&&"center"===p)&&"middle"!==d&&(0,ni.Et)(e[d]))return np(np({},e),{},nd({},d,e[d]+(f||0)))}return e},nw=function(e,t,r,n,o){var i=t.props.children,a=(0,na.aS)(i,no.u).filter(function(e){var t;return t=e.props.direction,!!rP()(o)||("horizontal"===n?"yAxis"===o:"vertical"===n||"x"===t?"xAxis"===o:"y"!==t||"yAxis"===o)});if(a&&a.length){var l=a.map(function(e){return e.props.dataKey});return e.reduce(function(e,t){var n=nh(t,r);if(rP()(n))return e;var o=Array.isArray(n)?[rA()(n),rS()(n)]:[n,n],i=l.reduce(function(e,r){var n=nh(t,r,0),i=o[0]-Math.abs(Array.isArray(n)?n[0]:n),a=o[1]+Math.abs(Array.isArray(n)?n[1]:n);return[Math.min(i,e[0]),Math.max(a,e[1])]},[1/0,-1/0]);return[Math.min(i[0],e[0]),Math.max(i[1],e[1])]},[1/0,-1/0])}return null},nO=function(e,t,r,n,o){var i=t.map(function(t){return nw(e,t,r,o,n)}).filter(function(e){return!rP()(e)});return i&&i.length?i.reduce(function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]},[1/0,-1/0]):null},nS=function(e,t,r,n,o){var i=t.map(function(t){var i=t.props.dataKey;return"number"===r&&i&&nw(e,t,i,n)||ny(e,i,r,o)});if("number"===r)return i.reduce(function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]},[1/0,-1/0]);var a={};return i.reduce(function(e,t){for(var r=0,n=t.length;r=2?2*(0,ni.sA)(a[0]-a[1])*u:u,t&&(e.ticks||e.niceTicks))?(e.ticks||e.niceTicks).map(function(e){return{coordinate:n(o?o.indexOf(e):e)+u,value:e,offset:u}}).filter(function(e){return!rF()(e.coordinate)}):e.isCategorical&&e.categoricalDomain?e.categoricalDomain.map(function(e,t){return{coordinate:n(e)+u,value:e,index:t,offset:u}}):n.ticks&&!r?n.ticks(e.tickCount).map(function(e){return{coordinate:n(e)+u,value:e,offset:u}}):n.domain().map(function(e,t){return{coordinate:n(e)+u,value:o?o[e]:e,index:t,offset:u}})},nP=new WeakMap,n_=function(e,t){if("function"!=typeof t)return e;nP.has(e)||nP.set(e,new WeakMap);var r=nP.get(e);if(r.has(t))return r.get(t);var n=function(){e.apply(void 0,arguments),t.apply(void 0,arguments)};return r.set(t,n),n},nM=function(e,t,r){var n=e.scale,o=e.type,i=e.layout,a=e.axisType;if("auto"===n)return"radial"===i&&"radiusAxis"===a?{scale:f.A(),realScaleType:"band"}:"radial"===i&&"angleAxis"===a?{scale:J(),realScaleType:"linear"}:"category"===o&&t&&(t.indexOf("LineChart")>=0||t.indexOf("AreaChart")>=0||t.indexOf("ComposedChart")>=0&&!r)?{scale:f.z(),realScaleType:"point"}:"category"===o?{scale:f.A(),realScaleType:"band"}:{scale:J(),realScaleType:"linear"};if(rk()(n)){var l="scale".concat(rL()(n));return{scale:(c[l]||f.z)(),realScaleType:c[l]?l:"point"}}return rM()(n)?{scale:n}:{scale:f.z(),realScaleType:"point"}},nC=function(e){var t=e.domain();if(t&&!(t.length<=2)){var r=t.length,n=e.range(),o=Math.min(n[0],n[1])-1e-4,i=Math.max(n[0],n[1])+1e-4,a=e(t[0]),l=e(t[r-1]);(ai||li)&&e.domain([t[0],t[r-1]])}},nk=function(e,t){if(!e)return null;for(var r=0,n=e.length;rn)&&(o[1]=n),o[0]>n&&(o[0]=n),o[1]=0?(e[a][r][0]=o,e[a][r][1]=o+l,o=e[a][r][1]):(e[a][r][0]=i,e[a][r][1]=i+l,i=e[a][r][1])}},expand:function(e,t){if((n=e.length)>0){for(var r,n,o,i=0,a=e[0].length;i0){for(var r,n=0,o=e[t[0]],i=o.length;n0&&(n=(r=e[t[0]]).length)>0){for(var r,n,o,i=0,a=1;a=0?(e[i][r][0]=o,e[i][r][1]=o+a,o=e[i][r][1]):(e[i][r][0]=0,e[i][r][1]=0)}}},nR=function(e,t,r){var n=t.map(function(e){return e.props.dataKey}),o=nI[r];return(function(){var e=(0,rm.A)([]),t=rb,r=rg,n=rx;function o(o){var i,a,l=Array.from(e.apply(this,arguments),rw),u=l.length,s=-1;for(let e of o)for(i=0,++s;i=0?0:o<0?o:n}return r[0]},nz=function(e,t){var r,n=(null!=(r=e.type)&&r.defaultProps?np(np({},e.type.defaultProps),e.props):e.props).stackId;if((0,ni.vh)(n)){var o=t[n];if(o){var i=o.items.indexOf(e);return i>=0?o.stackedData[i]:null}}return null},nV=function(e,t,r){return Object.keys(e).reduce(function(n,o){var i=e[o].stackedData.reduce(function(e,n){var o=n.slice(t,r+1).reduce(function(e,t){return[rA()(t.concat([e[0]]).filter(ni.Et)),rS()(t.concat([e[1]]).filter(ni.Et))]},[1/0,-1/0]);return[Math.min(e[0],o[0]),Math.max(e[1],o[1])]},[1/0,-1/0]);return[Math.min(i[0],n[0]),Math.max(i[1],n[1])]},[1/0,-1/0]).map(function(e){return e===1/0||e===-1/0?0:e})},nU=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,nH=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,n$=function(e,t,r){if(rM()(e))return e(t,r);if(!Array.isArray(e))return t;var n=[];if((0,ni.Et)(e[0]))n[0]=r?e[0]:Math.min(e[0],t[0]);else if(nU.test(e[0])){var o=+nU.exec(e[0])[1];n[0]=t[0]-o}else rM()(e[0])?n[0]=e[0](t[0]):n[0]=t[0];if((0,ni.Et)(e[1]))n[1]=r?e[1]:Math.max(e[1],t[1]);else if(nH.test(e[1])){var i=+nH.exec(e[1])[1];n[1]=t[1]+i}else rM()(e[1])?n[1]=e[1](t[1]):n[1]=t[1];return n},nG=function(e,t,r){if(e&&e.scale&&e.scale.bandwidth){var n=e.scale.bandwidth();if(!r||n>0)return n}if(e&&t&&t.length>=2){for(var o=rH()(t,function(e){return e.coordinate}),i=1/0,a=1,l=o.length;a{var n=r(14880),o=r(81006),i=r(42206);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},1815:(e,t,r)=>{"use strict";r.d(t,{c:()=>u});var n=r(55729),o=r(50212),i=r(27281),a=r(93780);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var n=r(91878),o=r(27679);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==n(e)}},2274:(e,t,r)=>{var n=r(77058),o=r(6550),i=r(53198);e.exports=function(e,t,r){return t==t?i(e,t,r):n(e,o,r)}},2390:(e,t,r)=>{"use strict";r.d(t,{J:()=>d,M:()=>y});var n=r(55729),o=r(50212),i=r(92224),a=r(93780);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=Array(t);r=0?1:-1,u=r>=0?1:-1,s=+(n>=0&&r>=0||n<0&&r<0);if(a>0&&o instanceof Array){for(var c=[0,0,0,0],f=0;f<4;f++)c[f]=o[f]>a?a:o[f];i="M".concat(e,",").concat(t+l*c[0]),c[0]>0&&(i+="A ".concat(c[0],",").concat(c[0],",0,0,").concat(s,",").concat(e+u*c[0],",").concat(t)),i+="L ".concat(e+r-u*c[1],",").concat(t),c[1]>0&&(i+="A ".concat(c[1],",").concat(c[1],",0,0,").concat(s,",\n ").concat(e+r,",").concat(t+l*c[1])),i+="L ".concat(e+r,",").concat(t+n-l*c[2]),c[2]>0&&(i+="A ".concat(c[2],",").concat(c[2],",0,0,").concat(s,",\n ").concat(e+r-u*c[2],",").concat(t+n)),i+="L ".concat(e+u*c[3],",").concat(t+n),c[3]>0&&(i+="A ".concat(c[3],",").concat(c[3],",0,0,").concat(s,",\n ").concat(e,",").concat(t+n-l*c[3])),i+="Z"}else if(a>0&&o===+o&&o>0){var p=Math.min(a,o);i="M ".concat(e,",").concat(t+l*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(s,",").concat(e+u*p,",").concat(t,"\n L ").concat(e+r-u*p,",").concat(t,"\n A ").concat(p,",").concat(p,",0,0,").concat(s,",").concat(e+r,",").concat(t+l*p,"\n L ").concat(e+r,",").concat(t+n-l*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(s,",").concat(e+r-u*p,",").concat(t+n,"\n L ").concat(e+u*p,",").concat(t+n,"\n A ").concat(p,",").concat(p,",0,0,").concat(s,",").concat(e,",").concat(t+n-l*p," Z")}else i="M ".concat(e,",").concat(t," h ").concat(r," v ").concat(n," h ").concat(-r," Z");return i},d=function(e,t){if(!e||!t)return!1;var r=e.x,n=e.y,o=t.x,i=t.y,a=t.width,l=t.height;if(Math.abs(a)>0&&Math.abs(l)>0){var u=Math.min(o,o+a),s=Math.max(o,o+a),c=Math.min(i,i+l),f=Math.max(i,i+l);return r>=u&&r<=s&&n>=c&&n<=f}return!1},h={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},y=function(e){var t,r=f(f({},h),e),l=(0,n.useRef)(),c=function(e){if(Array.isArray(e))return e}(t=(0,n.useState)(-1))||function(e,t){var r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],u=!0,s=!1;try{i=(r=r.call(e)).next,!1;for(;!(u=(n=i.call(r)).done)&&(l.push(n.value),2!==l.length);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(t,2)||function(e,t){if(e){if("string"==typeof e)return s(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return s(e,2)}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),d=c[0],y=c[1];(0,n.useEffect)(function(){if(l.current&&l.current.getTotalLength)try{var e=l.current.getTotalLength();e&&y(e)}catch(e){}},[]);var g=r.x,v=r.y,m=r.width,b=r.height,x=r.radius,w=r.className,O=r.animationEasing,S=r.animationDuration,j=r.animationBegin,A=r.isAnimationActive,E=r.isUpdateAnimationActive;if(g!==+g||v!==+v||m!==+m||b!==+b||0===m||0===b)return null;var P=(0,o.A)("recharts-rectangle",w);return E?n.createElement(i.Ay,{canBegin:d>0,from:{width:m,height:b,x:g,y:v},to:{width:m,height:b,x:g,y:v},duration:S,animationEasing:O,isActive:E},function(e){var t=e.width,o=e.height,s=e.x,c=e.y;return n.createElement(i.Ay,{canBegin:d>0,from:"0px ".concat(-1===d?1:d,"px"),to:"".concat(d,"px 0px"),attributeName:"strokeDasharray",begin:j,duration:S,isActive:A,easing:O},n.createElement("path",u({},(0,a.J9)(r,!0),{className:P,d:p(s,c,t,o,x),ref:l})))}):n.createElement("path",u({},(0,a.J9)(r,!0),{className:P,d:p(g,v,m,b,x)}))}},2485:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var n=(0,r(41495).A)("outline","grip-vertical","IconGripVertical",[["path",{d:"M9 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-0"}],["path",{d:"M9 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-1"}],["path",{d:"M9 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-2"}],["path",{d:"M15 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-3"}],["path",{d:"M15 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-4"}],["path",{d:"M15 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-5"}]])},2549:(e,t,r)=>{"use strict";r.d(t,{DR:()=>b,pj:()=>O,rY:()=>_,yi:()=>P,Yp:()=>x,hj:()=>E,sk:()=>A,AF:()=>w,Nk:()=>j,$G:()=>S});var n=r(55729),o=r(73403),i=r(77336),a=r.n(i),l=r(17226),u=r.n(l),s=r(74153),c=r.n(s)()(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return"l"+e.left+"t"+e.top+"w"+e.width+"h"+e.height}),f=r(53645),p=(0,n.createContext)(void 0),d=(0,n.createContext)(void 0),h=(0,n.createContext)(void 0),y=(0,n.createContext)({}),g=(0,n.createContext)(void 0),v=(0,n.createContext)(0),m=(0,n.createContext)(0),b=function(e){var t=e.state,r=t.xAxisMap,o=t.yAxisMap,i=t.offset,a=e.clipPathId,l=e.children,u=e.width,s=e.height,f=c(i);return n.createElement(p.Provider,{value:r},n.createElement(d.Provider,{value:o},n.createElement(y.Provider,{value:i},n.createElement(h.Provider,{value:f},n.createElement(g.Provider,{value:a},n.createElement(v.Provider,{value:s},n.createElement(m.Provider,{value:u},l)))))))},x=function(){return(0,n.useContext)(g)},w=function(e){var t=(0,n.useContext)(p);null==t&&(0,o.A)(!1);var r=t[e];return null==r&&(0,o.A)(!1),r},O=function(){var e=(0,n.useContext)(p);return(0,f.lX)(e)},S=function(){var e=(0,n.useContext)(d);return a()(e,function(e){return u()(e.domain,Number.isFinite)})||(0,f.lX)(e)},j=function(e){var t=(0,n.useContext)(d);null==t&&(0,o.A)(!1);var r=t[e];return null==r&&(0,o.A)(!1),r},A=function(){return(0,n.useContext)(h)},E=function(){return(0,n.useContext)(y)},P=function(){return(0,n.useContext)(m)},_=function(){return(0,n.useContext)(v)}},2862:(e,t,r)=>{var n=r(98945),o=r(67972);e.exports=function(e,t,r){var i=t(e);return o(e)?i:n(i,r(e))}},2893:(e,t,r)=>{"use strict";r.d(t,{W:()=>g});var n=r(55729),o=r(50212),i=r(2549),a=r(46271),l=r(1509);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(s=function(){return!!e})()}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function p(e,t,r){return(t=d(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function d(e){var t=function(e,t){if("object"!=u(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=u(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==u(t)?t:t+""}function h(){return(h=Object.assign?Object.assign.bind():function(e){for(var t=1;t{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,i=[];++r{"use strict";r.d(t,{W:()=>u});var n=r(55729),o=r(50212),i=r(93780),a=["children","className"];function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,a),c=(0,o.A)("recharts-layer",u);return n.createElement("g",l({className:c},(0,i.J9)(s,!0),{ref:t}),r)})},3817:e=>{e.exports=function(e,t){for(var r=-1,n=Array(e);++r{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},4247:(e,t,r)=>{e.exports=r(41798)(Object.keys,Object)},4463:(e,t,r)=>{var n=r(36949),o=r(82256),i=r(99761),a=r(67972);e.exports=function(e,t){return(a(e)?n:i)(e,o(t,3))}},5599:(e,t,r)=>{var n=r(2862),o=r(79097),i=r(34635);e.exports=function(e){return n(e,i,o)}},5632:(e,t,r)=>{var n=r(2274);e.exports=function(e,t){return!!(null==e?0:e.length)&&n(e,t,0)>-1}},5688:(e,t,r)=>{"use strict";function n(e,t){for(var r in e)if(({}).hasOwnProperty.call(e,r)&&(!({}).hasOwnProperty.call(t,r)||e[r]!==t[r]))return!1;for(var n in t)if(({}).hasOwnProperty.call(t,n)&&!({}).hasOwnProperty.call(e,n))return!1;return!0}r.d(t,{b:()=>n})},6535:e=>{var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},6550:e=>{e.exports=function(e){return e!=e}},7334:(e,t,r)=>{var n=r(36856),o=r(43720),i=r(57868),a=i&&i.isTypedArray;e.exports=a?o(a):n},7571:(e,t,r)=>{"use strict";r.d(t,{R:()=>n});var n=function(e,t){for(var r=arguments.length,n=Array(r>2?r-2:0),o=2;o{e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},7913:function(e,t,r){(function(e,t){"use strict";var r=function(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)}(t);function n(e,t){return(n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var o={error:null},i=function(e){function t(){for(var t,r=arguments.length,n=Array(r),i=0;i{"use strict";r.d(t,{d:()=>C});var n=r(55729),o=r(16087),i=r.n(o),a=r(7571),l=r(53645),u=r(93780),s=r(1509),c=r(32347),f=r(46271),p=r(2549),d=["x1","y1","x2","y2","key"],h=["offset"];function y(e){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function v(e){for(var t=1;t=0)continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var x=function(e){var t=e.fill;if(!t||"none"===t)return null;var r=e.fillOpacity,o=e.x,i=e.y,a=e.width,l=e.height,u=e.ry;return n.createElement("rect",{x:o,y:i,ry:u,width:a,height:l,stroke:"none",fill:t,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function w(e,t){var r;if(n.isValidElement(e))r=n.cloneElement(e,t);else if(i()(e))r=e(t);else{var o=t.x1,a=t.y1,l=t.x2,s=t.y2,c=t.key,f=b(t,d),p=(0,u.J9)(f,!1),y=(p.offset,b(p,h));r=n.createElement("line",m({},y,{x1:o,y1:a,x2:l,y2:s,fill:"none",key:c}))}return r}function O(e){var t=e.x,r=e.width,o=e.horizontal,i=void 0===o||o,a=e.horizontalPoints;if(!i||!a||!a.length)return null;var l=a.map(function(n,o){return w(i,v(v({},e),{},{x1:t,y1:n,x2:t+r,y2:n,key:"line-".concat(o),index:o}))});return n.createElement("g",{className:"recharts-cartesian-grid-horizontal"},l)}function S(e){var t=e.y,r=e.height,o=e.vertical,i=void 0===o||o,a=e.verticalPoints;if(!i||!a||!a.length)return null;var l=a.map(function(n,o){return w(i,v(v({},e),{},{x1:n,y1:t,x2:n,y2:t+r,key:"line-".concat(o),index:o}))});return n.createElement("g",{className:"recharts-cartesian-grid-vertical"},l)}function j(e){var t=e.horizontalFill,r=e.fillOpacity,o=e.x,i=e.y,a=e.width,l=e.height,u=e.horizontalPoints,s=e.horizontal;if(!(void 0===s||s)||!t||!t.length)return null;var c=u.map(function(e){return Math.round(e+i-i)}).sort(function(e,t){return e-t});i!==c[0]&&c.unshift(0);var f=c.map(function(e,u){var s=c[u+1]?c[u+1]-e:i+l-e;if(s<=0)return null;var f=u%t.length;return n.createElement("rect",{key:"react-".concat(u),y:e,x:o,height:s,width:a,stroke:"none",fill:t[f],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return n.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}function A(e){var t=e.vertical,r=e.verticalFill,o=e.fillOpacity,i=e.x,a=e.y,l=e.width,u=e.height,s=e.verticalPoints;if(!(void 0===t||t)||!r||!r.length)return null;var c=s.map(function(e){return Math.round(e+i-i)}).sort(function(e,t){return e-t});i!==c[0]&&c.unshift(0);var f=c.map(function(e,t){var s=c[t+1]?c[t+1]-e:i+l-e;if(s<=0)return null;var f=t%r.length;return n.createElement("rect",{key:"react-".concat(t),x:e,y:a,width:s,height:u,stroke:"none",fill:r[f],fillOpacity:o,className:"recharts-cartesian-grid-bg"})});return n.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},f)}var E=function(e,t){var r=e.xAxis,n=e.width,o=e.height,i=e.offset;return(0,s.PW)((0,c.f)(v(v(v({},f.u.defaultProps),r),{},{ticks:(0,s.Rh)(r,!0),viewBox:{x:0,y:0,width:n,height:o}})),i.left,i.left+i.width,t)},P=function(e,t){var r=e.yAxis,n=e.width,o=e.height,i=e.offset;return(0,s.PW)((0,c.f)(v(v(v({},f.u.defaultProps),r),{},{ticks:(0,s.Rh)(r,!0),viewBox:{x:0,y:0,width:n,height:o}})),i.top,i.top+i.height,t)},_=[],M=[];function C(e){var t,r,o,u,s,c,f=(0,p.yi)(),d=(0,p.rY)(),h=(0,p.hj)(),g=v(v({},e),{},{stroke:null!=(t=e.stroke)?t:"#ccc",fill:null!=(r=e.fill)?r:"none",horizontal:null==(o=e.horizontal)||o,horizontalFill:null!=(u=e.horizontalFill)?u:M,vertical:null==(s=e.vertical)||s,verticalFill:null!=(c=e.verticalFill)?c:_,x:(0,l.Et)(e.x)?e.x:h.left,y:(0,l.Et)(e.y)?e.y:h.top,width:(0,l.Et)(e.width)?e.width:h.width,height:(0,l.Et)(e.height)?e.height:h.height}),b=g.x,w=g.y,C=g.width,k=g.height,T=g.syncWithTicks,I=g.horizontalValues,R=g.verticalValues,D=(0,p.pj)(),N=(0,p.$G)();if(!(0,l.Et)(C)||C<=0||!(0,l.Et)(k)||k<=0||!(0,l.Et)(b)||b!==+b||!(0,l.Et)(w)||w!==+w)return null;var F=g.verticalCoordinatesGenerator||E,B=g.horizontalCoordinatesGenerator||P,L=g.horizontalPoints,z=g.verticalPoints;if((!L||!L.length)&&i()(B)){var V=I&&I.length,U=B({yAxis:N?v(v({},N),{},{ticks:V?I:N.ticks}):void 0,width:f,height:d,offset:h},!!V||T);(0,a.R)(Array.isArray(U),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(y(U),"]")),Array.isArray(U)&&(L=U)}if((!z||!z.length)&&i()(F)){var H=R&&R.length,$=F({xAxis:D?v(v({},D),{},{ticks:H?R:D.ticks}):void 0,width:f,height:d,offset:h},!!H||T);(0,a.R)(Array.isArray($),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(y($),"]")),Array.isArray($)&&(z=$)}return n.createElement("g",{className:"recharts-cartesian-grid"},n.createElement(x,{fill:g.fill,fillOpacity:g.fillOpacity,x:g.x,y:g.y,width:g.width,height:g.height,ry:g.ry}),n.createElement(O,m({},g,{offset:h,horizontalPoints:L,xAxis:D,yAxis:N})),n.createElement(S,m({},g,{offset:h,verticalPoints:z,xAxis:D,yAxis:N})),n.createElement(j,m({},g,{horizontalPoints:L})),n.createElement(A,m({},g,{verticalPoints:z})))}C.displayName="CartesianGrid"},10321:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},10937:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r{"use strict";r.d(t,{h:()=>g});var n=r(55729),o=r(50212),i=r(93780),a=r(31829),l=r(53645);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t180),",").concat(+(i>c),",\n ").concat(p.x,",").concat(p.y,"\n ");if(n>0){var h=(0,a.IZ)(t,r,n,i),y=(0,a.IZ)(t,r,n,c);d+="L ".concat(y.x,",").concat(y.y,"\n A ").concat(n,",").concat(n,",0,\n ").concat(+(Math.abs(s)>180),",").concat(+(i<=c),",\n ").concat(h.x,",").concat(h.y," Z")}else d+="L ".concat(t,",").concat(r," Z");return d},h=function(e){var t=e.cx,r=e.cy,n=e.innerRadius,o=e.outerRadius,i=e.cornerRadius,a=e.forceCornerRadius,u=e.cornerIsExternal,s=e.startAngle,c=e.endAngle,f=(0,l.sA)(c-s),h=p({cx:t,cy:r,radius:o,angle:s,sign:f,cornerRadius:i,cornerIsExternal:u}),y=h.circleTangency,g=h.lineTangency,v=h.theta,m=p({cx:t,cy:r,radius:o,angle:c,sign:-f,cornerRadius:i,cornerIsExternal:u}),b=m.circleTangency,x=m.lineTangency,w=m.theta,O=u?Math.abs(s-c):Math.abs(s-c)-v-w;if(O<0)return a?"M ".concat(g.x,",").concat(g.y,"\n a").concat(i,",").concat(i,",0,0,1,").concat(2*i,",0\n a").concat(i,",").concat(i,",0,0,1,").concat(-(2*i),",0\n "):d({cx:t,cy:r,innerRadius:n,outerRadius:o,startAngle:s,endAngle:c});var S="M ".concat(g.x,",").concat(g.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(f<0),",").concat(y.x,",").concat(y.y,"\n A").concat(o,",").concat(o,",0,").concat(+(O>180),",").concat(+(f<0),",").concat(b.x,",").concat(b.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(f<0),",").concat(x.x,",").concat(x.y,"\n ");if(n>0){var j=p({cx:t,cy:r,radius:n,angle:s,sign:f,isExternal:!0,cornerRadius:i,cornerIsExternal:u}),A=j.circleTangency,E=j.lineTangency,P=j.theta,_=p({cx:t,cy:r,radius:n,angle:c,sign:-f,isExternal:!0,cornerRadius:i,cornerIsExternal:u}),M=_.circleTangency,C=_.lineTangency,k=_.theta,T=u?Math.abs(s-c):Math.abs(s-c)-P-k;if(T<0&&0===i)return"".concat(S,"L").concat(t,",").concat(r,"Z");S+="L".concat(C.x,",").concat(C.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(f<0),",").concat(M.x,",").concat(M.y,"\n A").concat(n,",").concat(n,",0,").concat(+(T>180),",").concat(+(f>0),",").concat(A.x,",").concat(A.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(f<0),",").concat(E.x,",").concat(E.y,"Z")}else S+="L".concat(t,",").concat(r,"Z");return S},y={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},g=function(e){var t,r=f(f({},y),e),a=r.cx,u=r.cy,c=r.innerRadius,p=r.outerRadius,g=r.cornerRadius,v=r.forceCornerRadius,m=r.cornerIsExternal,b=r.startAngle,x=r.endAngle,w=r.className;if(p0&&360>Math.abs(b-x)?h({cx:a,cy:u,innerRadius:c,outerRadius:p,cornerRadius:Math.min(j,S/2),forceCornerRadius:v,cornerIsExternal:m,startAngle:b,endAngle:x}):d({cx:a,cy:u,innerRadius:c,outerRadius:p,startAngle:b,endAngle:x}),n.createElement("path",s({},(0,i.J9)(r,!0),{className:O,d:t,role:"img"}))}},11273:(e,t,r)=>{var n=r(26047),o=r(6535),i=r(50947);e.exports=function(e){return o(e)?i(e):n(e)}},11550:e=>{var t=Math.ceil,r=Math.max;e.exports=function(e,n,o,i){for(var a=-1,l=r(t((n-e)/(o||1)),0),u=Array(l);l--;)u[i?l:++a]=e,e+=o;return u}},11737:(e,t,r)=>{var n=r(48598),o=r(4247),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return o(e);var t=[];for(var r in Object(e))i.call(e,r)&&"constructor"!=r&&t.push(r);return t}},11986:(e,t,r)=>{var n=r(24548),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,l=n?n.toStringTag:void 0;e.exports=function(e){var t=i.call(e,l),r=e[l];try{e[l]=void 0;var n=!0}catch(e){}var o=a.call(e);return n&&(t?e[l]=r:delete e[l]),o}},13140:(e,t,r)=>{e.exports=r(42648)["__core-js_shared__"]},13297:(e,t,r)=>{"use strict";r.d(t,{G:()=>F});var n=r(55729),o=r(50212),i=r(92224),a=r(16087),l=r.n(a),u=r(58327),s=r.n(u),c=r(1250),f=r.n(c),p=r(34120),d=r.n(p),h=r(97469),y=r.n(h),g=r(56464),v=r(1815),m=r(3780),b=r(78895),x=r(88859),w=r(53645),O=r(1509),S=r(93780),j=["layout","type","stroke","connectNulls","isRange","ref"],A=["key"];function E(e){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function P(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function _(){return(_=Object.assign?Object.assign.bind():function(e){for(var t=1;t0||!y()(l,n)||!y()(u,o))?this.renderAreaWithAnimation(e,t):this.renderAreaStatically(n,o,e,t)}},{key:"render",value:function(){var e,t=this.props,r=t.hide,i=t.dot,a=t.points,l=t.className,u=t.top,s=t.left,c=t.xAxis,p=t.yAxis,d=t.width,h=t.height,y=t.isAnimationActive,g=t.id;if(r||!a||!a.length)return null;var v=this.state.isAnimationFinished,x=1===a.length,w=(0,o.A)("recharts-area",l),O=c&&c.allowDataOverflow,j=p&&p.allowDataOverflow,A=O||j,E=f()(g)?this.id:g,P=null!=(e=(0,S.J9)(i,!1))?e:{r:3,strokeWidth:2},_=P.r,M=P.strokeWidth,C=((0,S.sT)(i)?i:{}).clipDot,k=void 0===C||C,T=2*(void 0===_?3:_)+(void 0===M?2:M);return n.createElement(m.W,{className:w},O||j?n.createElement("defs",null,n.createElement("clipPath",{id:"clipPath-".concat(E)},n.createElement("rect",{x:O?s:s-d/2,y:j?u:u-h/2,width:O?d:2*d,height:j?h:2*h})),!k&&n.createElement("clipPath",{id:"clipPath-dots-".concat(E)},n.createElement("rect",{x:s-T/2,y:u-T/2,width:d+T,height:h+T}))):null,x?null:this.renderArea(A,E),(i||x)&&this.renderDots(A,k,E),(!y||v)&&b.Z.renderCallByParent(this.props,a))}}],r=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curPoints:e.points,curBaseLine:e.baseLine,prevPoints:t.curPoints,prevBaseLine:t.curBaseLine}:e.points!==t.curPoints||e.baseLine!==t.curBaseLine?{curPoints:e.points,curBaseLine:e.baseLine}:null}}],t&&k(a.prototype,t),r&&k(a,r),Object.defineProperty(a,"prototype",{writable:!1}),a}(n.PureComponent);D(F,"displayName","Area"),D(F,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!x.m.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),D(F,"getBaseValue",function(e,t,r,n){var o=e.layout,i=e.baseValue,a=t.props.baseValue,l=null!=a?a:i;if((0,w.Et)(l)&&"number"==typeof l)return l;var u="horizontal"===o?n:r,s=u.scale.domain();if("number"===u.type){var c=Math.max(s[0],s[1]),f=Math.min(s[0],s[1]);return"dataMin"===l?f:"dataMax"===l||c<0?c:Math.max(Math.min(s[0],s[1]),0)}return"dataMin"===l?s[0]:"dataMax"===l?s[1]:s[0]}),D(F,"getComposedData",function(e){var t,r=e.props,n=e.item,o=e.xAxis,i=e.yAxis,a=e.xAxisTicks,l=e.yAxisTicks,u=e.bandSize,s=e.dataKey,c=e.stackedData,f=e.dataStartIndex,p=e.displayedData,d=e.offset,h=r.layout,y=c&&c.length,g=F.getBaseValue(r,n,o,i),v="horizontal"===h,m=!1,b=p.map(function(e,t){y?r=c[f+t]:Array.isArray(r=(0,O.kr)(e,s))?m=!0:r=[g,r];var r,n=null==r[1]||y&&null==(0,O.kr)(e,s);return v?{x:(0,O.nb)({axis:o,ticks:a,bandSize:u,entry:e,index:t}),y:n?null:i.scale(r[1]),value:r,payload:e}:{x:n?null:o.scale(r[1]),y:(0,O.nb)({axis:i,ticks:l,bandSize:u,entry:e,index:t}),value:r,payload:e}});return t=y||m?b.map(function(e){var t=Array.isArray(e.value)?e.value[0]:null;return v?{x:e.x,y:null!=t&&null!=e.y?i.scale(t):null}:{x:null!=t?o.scale(t):null,y:e.y}}):v?i.scale(g):o.scale(g),C({points:b,baseLine:t,layout:h,isRange:m},d)}),D(F,"renderDotItem",function(e,t){var r;if(n.isValidElement(e))r=n.cloneElement(e,t);else if(l()(e))r=e(t);else{var i=(0,o.A)("recharts-area-dot","boolean"!=typeof e?e.className:""),a=t.key,u=P(t,A);r=n.createElement(v.c,_({},u,{key:a,className:i}))}return r})},13318:(e,t,r)=>{var n=r(99820),o=r(21115);e.exports=function(e,t,r,i){var a=r.length,l=a,u=!i;if(null==e)return!l;for(e=Object(e);a--;){var s=r[a];if(u&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++a{e.exports=r(75011)(r(42648),"Promise")},14290:(e,t,r)=>{var n=r(95479);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},14616:(e,t,r)=>{var n=r(15812),o=r(64763),i=r(83622);e.exports=n&&1/i(new n([,-0]))[1]==1/0?function(e){return new n(e)}:o},14693:(e,t,r)=>{"use strict";r.d(t,{y:()=>z});var n=r(55729),o=r(50212),i=r(92224),a=r(97469),l=r.n(a),u=r(1250),s=r.n(u),c=r(3780),f=r(65219),p=r(53259),d=r(78895),h=r(53645),y=r(93780),g=r(88859),v=r(1509),m=r(27281),b=r(73403),x=r(52797),w=["x","y"];function O(e){return(O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function S(){return(S=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,w),i=parseInt("".concat(r),10),a=parseInt("".concat(n),10),l=parseInt("".concat(t.height||o.height),10),u=parseInt("".concat(t.width||o.width),10);return A(A(A(A(A({},t),o),i?{x:i}:{}),a?{y:a}:{}),{},{height:l,width:u,name:t.name,radius:t.radius})}function P(e){return n.createElement(x.yp,S({shapeType:"rectangle",propTransformer:E,activeClassName:"recharts-active-bar"},e))}var _=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(r,n){if("number"==typeof e)return e;var o="number"==typeof r;return o?e(r,n):(o||(0,b.A)(!1),t)}},M=["value","background"];function C(e){return(C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function k(){return(k=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(t,M);if(!l)return null;var s=I(I(I(I(I({},u),{},{fill:"#eee"},l),a),(0,m.XC)(e.props,t,r)),{},{onAnimationStart:e.handleAnimationStart,onAnimationEnd:e.handleAnimationEnd,dataKey:o,index:r,className:"recharts-bar-background-rectangle"});return n.createElement(P,k({key:"background-bar-".concat(r),option:e.props.background,isActive:r===i},s))})}},{key:"renderErrorBar",value:function(e,t){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,o=r.data,i=r.xAxis,a=r.yAxis,l=r.layout,u=r.children,s=(0,y.aS)(u,f.u);if(!s)return null;var p="vertical"===l?o[0].height/2:o[0].width/2,d=function(e,t){var r=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:r,errorVal:(0,v.kr)(e,t)}};return n.createElement(c.W,{clipPath:e?"url(#clipPath-".concat(t,")"):null},s.map(function(e){return n.cloneElement(e,{key:"error-bar-".concat(t,"-").concat(e.props.dataKey),data:o,xAxis:i,yAxis:a,layout:l,offset:p,dataPointFormatter:d})}))}},{key:"render",value:function(){var e=this.props,t=e.hide,r=e.data,i=e.className,a=e.xAxis,l=e.yAxis,u=e.left,f=e.top,p=e.width,h=e.height,y=e.isAnimationActive,g=e.background,v=e.id;if(t||!r||!r.length)return null;var m=this.state.isAnimationFinished,b=(0,o.A)("recharts-bar",i),x=a&&a.allowDataOverflow,w=l&&l.allowDataOverflow,O=x||w,S=s()(v)?this.id:v;return n.createElement(c.W,{className:b},x||w?n.createElement("defs",null,n.createElement("clipPath",{id:"clipPath-".concat(S)},n.createElement("rect",{x:x?u:u-p/2,y:w?f:f-h/2,width:x?p:2*p,height:w?h:2*h}))):null,n.createElement(c.W,{className:"recharts-bar-rectangles",clipPath:O?"url(#clipPath-".concat(S,")"):null},g?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(O,S),(!y||m)&&d.Z.renderCallByParent(this.props,r))}}],r=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curData:e.data,prevData:t.curData}:e.data!==t.curData?{curData:e.data}:null}}],t&&R(a.prototype,t),r&&R(a,r),Object.defineProperty(a,"prototype",{writable:!1}),a}(n.PureComponent);B(z,"displayName","Bar"),B(z,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!g.m.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),B(z,"getComposedData",function(e){var t=e.props,r=e.item,n=e.barPosition,o=e.bandSize,i=e.xAxis,a=e.yAxis,l=e.xAxisTicks,u=e.yAxisTicks,s=e.stackedData,c=e.dataStartIndex,f=e.displayedData,d=e.offset,g=(0,v.xi)(n,r);if(!g)return null;var m=t.layout,b=r.type.defaultProps,x=void 0!==b?I(I({},b),r.props):r.props,w=x.dataKey,O=x.children,S=x.minPointSize,j="horizontal"===m?a:i,A=s?j.scale.domain():null,E=(0,v.DW)({numericAxis:j}),P=(0,y.aS)(O,p.f),M=f.map(function(e,t){s?f=(0,v._f)(s[c+t],A):Array.isArray(f=(0,v.kr)(e,w))||(f=[E,f]);var n=_(S,z.defaultProps.minPointSize)(f[1],t);if("horizontal"===m){var f,p,d,y,b,x,O,j=[a.scale(f[0]),a.scale(f[1])],M=j[0],C=j[1];p=(0,v.y2)({axis:i,ticks:l,bandSize:o,offset:g.offset,entry:e,index:t}),d=null!=(O=null!=C?C:M)?O:void 0,y=g.size;var k=M-C;if(b=Number.isNaN(k)?0:k,x={x:p,y:a.y,width:y,height:a.height},Math.abs(n)>0&&Math.abs(b)0&&Math.abs(y){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=!!t,t}},14880:(e,t,r)=>{var n=r(26841),o=r(14811),i=r(82204),a=r(29640),l=r(83200);function u(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t{var n=r(67184),o=r(51032);e.exports=function(e,t,r){var i=!0,a=!0;if("function"!=typeof e)throw TypeError("Expected a function");return o(r)&&(i="leading"in r?!!r.leading:i,a="trailing"in r?!!r.trailing:a),n(e,t,{leading:i,maxWait:t,trailing:a})}},15683:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var n=(0,r(41495).A)("outline","bolt-off","IconBoltOff",[["path",{d:"M3 3l18 18",key:"svg-0"}],["path",{d:"M15.212 15.21l-4.212 5.79v-7h-6l3.79 -5.21m1.685 -2.32l2.525 -3.47v6m1 1h5l-2.104 2.893",key:"svg-1"}]])},15812:(e,t,r)=>{e.exports=r(75011)(r(42648),"Set")},16087:(e,t,r)=>{var n=r(91878),o=r(51032);e.exports=function(e){if(!o(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},16232:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var n=(0,r(41495).A)("outline","arrows-diagonal","IconArrowsDiagonal",[["path",{d:"M16 4l4 0l0 4",key:"svg-0"}],["path",{d:"M14 10l6 -6",key:"svg-1"}],["path",{d:"M8 20l-4 0l0 -4",key:"svg-2"}],["path",{d:"M4 20l6 -6",key:"svg-3"}]])},16597:(e,t,r)=>{var n=r(63958),o=r(85033),i=r(70777);e.exports=function(e){return e&&e.length?n(e,i,o):void 0}},16878:(e,t,r)=>{"use strict";e.exports=r(29610)},17226:(e,t,r)=>{var n=r(78824),o=r(98420),i=r(82256),a=r(67972),l=r(43001);e.exports=function(e,t,r){var u=a(e)?n:o;return r&&l(e,t,r)&&(t=void 0),u(e,i(t,3))}},17340:(e,t,r)=>{var n=r(77058),o=r(82256),i=r(26780),a=Math.max;e.exports=function(e,t,r){var l=null==e?0:e.length;if(!l)return -1;var u=null==r?0:i(r);return u<0&&(u=a(l+u,0)),n(e,o(t,3),u)}},17466:(e,t,r)=>{var n=r(36949),o=r(29707),i=r(82256),a=r(99761),l=r(85524),u=r(43720),s=r(70687),c=r(70777),f=r(67972);e.exports=function(e,t,r){t=t.length?n(t,function(e){return f(e)?function(t){return o(t,1===e.length?e[0]:e)}:e}):[c];var p=-1;return t=n(t,u(i)),l(a(e,function(e,r,o){return{criteria:n(t,function(t){return t(e)}),index:++p,value:e}}),function(e,t){return s(e,t,r)})}},18896:function(e,t){var r,n;void 0===(n="function"==typeof(r=function e(){var t,r="u">typeof self?self:"u">typeof window?window:void 0!==r?r:{},n=!r.document&&!!r.postMessage,o=r.IS_PAPA_WORKER||!1,i={},a=0,l={};function u(e){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},(function(e){var t=b(e);t.chunkSize=parseInt(t.chunkSize),e.step||e.chunk||(t.chunkSize=null),this._handle=new d(t),(this._handle.streamer=this)._config=t}).call(this,e),this.parseChunk=function(e,t){var n=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0=this._config.preview,o)r.postMessage({results:i,workerId:l.WORKER_ID,finished:n});else if(w(this._config.chunk)&&!t){if(this._config.chunk(i,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=i=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(i.data),this._completeResults.errors=this._completeResults.errors.concat(i.errors),this._completeResults.meta=i.meta),this._completed||!n||!w(this._config.complete)||i&&i.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),n||i&&i.meta.paused||this._nextChunk(),i}this._halted=!0},this._sendError=function(e){w(this._config.error)?this._config.error(e):o&&this._config.error&&r.postMessage({workerId:l.WORKER_ID,error:e,finished:!1})}}function s(e){var t;(e=e||{}).chunkSize||(e.chunkSize=l.RemoteChunkSize),u.call(this,e),this._nextChunk=n?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(e){this._input=e,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(t=new XMLHttpRequest,this._config.withCredentials&&(t.withCredentials=this._config.withCredentials),n||(t.onload=x(this._chunkLoaded,this),t.onerror=x(this._chunkError,this)),t.open(this._config.downloadRequestBody?"POST":"GET",this._input,!n),this._config.downloadRequestHeaders){var e,r,o=this._config.downloadRequestHeaders;for(r in o)t.setRequestHeader(r,o[r])}this._config.chunkSize&&(e=this._start+this._config.chunkSize-1,t.setRequestHeader("Range","bytes="+this._start+"-"+e));try{t.send(this._config.downloadRequestBody)}catch(e){this._chunkError(e.message)}n&&0===t.status&&this._chunkError()}},this._chunkLoaded=function(){let e;4===t.readyState&&(t.status<200||400<=t.status?this._chunkError():(this._start+=this._config.chunkSize||t.responseText.length,this._finished=!this._config.chunkSize||this._start>=(null!==(e=(e=t).getResponseHeader("Content-Range"))?parseInt(e.substring(e.lastIndexOf("/")+1)):-1),this.parseChunk(t.responseText)))},this._chunkError=function(e){e=t.statusText||e,this._sendError(Error(e))}}function c(e){(e=e||{}).chunkSize||(e.chunkSize=l.LocalChunkSize),u.call(this,e);var t,r,n="u">typeof FileReader;this.stream=function(e){this._input=e,r=e.slice||e.webkitSlice||e.mozSlice,n?((t=new FileReader).onload=x(this._chunkLoaded,this),t.onerror=x(this._chunkError,this)):t=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount=this._input.size,this.parseChunk(e.target.result)},this._chunkError=function(){this._sendError(t.error)}}function f(e){var t;u.call(this,e=e||{}),this.stream=function(e){return t=e,this._nextChunk()},this._nextChunk=function(){var e,r;if(!this._finished)return t=(e=this._config.chunkSize)?(r=t.substring(0,e),t.substring(e)):(r=t,""),this._finished=!t,this.parseChunk(r)}}function p(e){u.call(this,e=e||{});var t=[],r=!0,n=!1;this.pause=function(){u.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){u.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(e){this._input=e,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){n&&1===t.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):r=!0},this._streamData=x(function(e){try{t.push("string"==typeof e?e:e.toString(this._config.encoding)),r&&(r=!1,this._checkIsFinished(),this.parseChunk(t.shift()))}catch(e){this._streamError(e)}},this),this._streamError=x(function(e){this._streamCleanUp(),this._sendError(e)},this),this._streamEnd=x(function(){this._streamCleanUp(),n=!0,this._streamData("")},this),this._streamCleanUp=x(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function d(e){var t,r,n,o,i=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,a=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,u=this,s=0,c=0,f=!1,p=!1,d=[],g={data:[],errors:[],meta:{}};function v(t){return"greedy"===e.skipEmptyLines?""===t.join("").trim():1===t.length&&0===t[0].length}function m(){if(g&&n&&(O("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+l.DefaultDelimiter+"'"),n=!1),e.skipEmptyLines&&(g.data=g.data.filter(function(e){return!v(e)})),x()){if(g)if(Array.isArray(g.data[0])){for(var t,r=0;x()&&r(e.dynamicTypingFunction&&void 0===e.dynamicTyping[t]&&(e.dynamicTyping[t]=e.dynamicTypingFunction(t)),!0===(e.dynamicTyping[t]||e.dynamicTyping))?"true"===r||"TRUE"===r||"false"!==r&&"FALSE"!==r&&((e=>{if(i.test(e)&&-0x20000000000000<(e=parseFloat(e))&&e<0x20000000000000)return 1})(r)?parseFloat(r):a.test(r)?new Date(r):""===r?null:r):r)(l=e.header?o>=d.length?"__parsed_extra":d[o]:l,u=e.transform?e.transform(u,l):u);"__parsed_extra"===l?(n[l]=n[l]||[],n[l].push(u)):n[l]=u}return e.header&&(o>d.length?O("FieldMismatch","TooManyFields","Too many fields: expected "+d.length+" fields but parsed "+o,c+r):oe.preview?r.abort():(g.data=g.data[0],o(g,u))))}),this.parse=function(o,i,a){var u=e.quoteChar||'"',u=(e.newline||(e.newline=this.guessLineEndings(o,u)),n=!1,e.delimiter?w(e.delimiter)&&(e.delimiter=e.delimiter(o),g.meta.delimiter=e.delimiter):((u=((t,r,n,o,i)=>{var a,u,s,c;i=i||[","," ","|",";",l.RECORD_SEP,l.UNIT_SEP];for(var f=0;f=r.length/2?"\r\n":"\r"}}function h(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function y(e){var t=(e=e||{}).delimiter,r=e.newline,n=e.comments,o=e.step,i=e.preview,a=e.fastMode,u=null,s=!1,c=null==e.quoteChar?'"':e.quoteChar,f=c;if(void 0!==e.escapeChar&&(f=e.escapeChar),("string"!=typeof t||-1=i)return B(!0);break}j.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:S.length,index:p}),T++}}else if(n&&0===A.length&&l.substring(p,p+x)===n){if(-1===C)return B();p=C+b,C=l.indexOf(r,p),M=l.indexOf(t,p)}else if(-1!==M&&(M=i)return B(!0)}return N();function R(e){S.push(e),E=p}function D(e){return -1!==e&&(e=l.substring(T+1,e))&&""===e.trim()?e.length:0}function N(e){return g||(void 0===e&&(e=l.substring(p)),A.push(e),p=v,R(A),O&&L()),B()}function F(e){p=e,R(A),A=[],C=l.indexOf(r,p)}function B(n){if(e.header&&!y&&S.length&&!s){var o=S[0],i=Object.create(null),a=new Set(o);let t=!1;for(let r=0;r{if("object"==typeof t){if("string"!=typeof t.delimiter||l.BAD_DELIMITERS.filter(function(e){return -1!==t.delimiter.indexOf(e)}).length||(o=t.delimiter),("boolean"==typeof t.quotes||"function"==typeof t.quotes||Array.isArray(t.quotes))&&(r=t.quotes),"boolean"!=typeof t.skipEmptyLines&&"string"!=typeof t.skipEmptyLines||(s=t.skipEmptyLines),"string"==typeof t.newline&&(i=t.newline),"string"==typeof t.quoteChar&&(a=t.quoteChar),"boolean"==typeof t.header&&(n=t.header),Array.isArray(t.columns)){if(0===t.columns.length)throw Error("Option columns is empty");c=t.columns}void 0!==t.escapeChar&&(u=t.escapeChar+a),t.escapeFormulae instanceof RegExp?f=t.escapeFormulae:"boolean"==typeof t.escapeFormulae&&t.escapeFormulae&&(f=/^[=+\-@\t\r].*$/)}})(),RegExp(h(a),"g"));if("string"==typeof e&&(e=JSON.parse(e)),Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return d(null,e,s);if("object"==typeof e[0])return d(c||Object.keys(e[0]),e,s)}else if("object"==typeof e)return"string"==typeof e.data&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields||c),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:"object"==typeof e.data[0]?Object.keys(e.data[0]):[]),Array.isArray(e.data[0])||"object"==typeof e.data[0]||(e.data=[e.data])),d(e.fields||[],e.data||[],s);throw Error("Unable to serialize unrecognized input");function d(e,t,r){var a="",l=("string"==typeof e&&(e=JSON.parse(e)),"string"==typeof t&&(t=JSON.parse(t)),Array.isArray(e)&&0{for(var r=0;r{var n=r(91341),o=r(42206),i=r(13722),a=r(15812),l=r(42878),u=r(91878),s=r(64004),c="[object Map]",f="[object Promise]",p="[object Set]",d="[object WeakMap]",h="[object DataView]",y=s(n),g=s(o),v=s(i),m=s(a),b=s(l),x=u;(n&&x(new n(new ArrayBuffer(1)))!=h||o&&x(new o)!=c||i&&x(i.resolve())!=f||a&&x(new a)!=p||l&&x(new l)!=d)&&(x=function(e){var t=u(e),r="[object Object]"==t?e.constructor:void 0,n=r?s(r):"";if(n)switch(n){case y:return h;case g:return c;case v:return f;case m:return p;case b:return d}return t}),e.exports=x},20595:e=>{e.exports=function(){this.__data__=[],this.size=0}},20812:(e,t,r)=>{var n=r(26139);e.exports=function(e,t){return function(r,o){if(null==r)return r;if(!n(r))return e(r,o);for(var i=r.length,a=t?i:-1,l=Object(r);(t?a--:++a{var n=r(73253),o=r(27679);e.exports=function e(t,r,i,a,l){return t===r||(null!=t&&null!=r&&(o(t)||o(r))?n(t,r,i,a,e,l):t!=t&&r!=r)}},21440:(e,t,r)=>{"use strict";function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;tm});var o=r(55729),i=r(56760);function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;ttypeof ResizeObserver?t=new ResizeObserver(function(e){e.forEach(function(e){n._measureElement(e.target,e)})}):null)},{disconnect:function(){var e;return null==(e=r())?void 0:e.disconnect()},observe:function(e){var t;return null==(t=r())?void 0:t.observe(e,{box:"border-box"})},unobserve:function(e){var t;return null==(t=r())?void 0:t.unobserve(e)}}),this.range=null,this.setOptions=function(e){Object.entries(e).forEach(function(t){var r=t[0];void 0===t[1]&&delete e[r]}),n.options=a({debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:s,rangeExtractor:c,onChange:function(){},measureElement:d,initialRect:{width:0,height:0},scrollMargin:0,scrollingDelay:150,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1},e)},this.notify=function(e){null==n.options.onChange||n.options.onChange(n,e)},this.maybeNotify=l(function(){return n.calculateRange(),[n.isScrolling,n.range?n.range.startIndex:null,n.range?n.range.endIndex:null]},function(e){n.notify(e)},{key:!1,debug:function(){return n.options.debug},initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=function(){n.unsubs.filter(Boolean).forEach(function(e){return e()}),n.unsubs=[],n.scrollElement=null},this._didMount=function(){return n.measureElementCache.forEach(n.observer.observe),function(){n.observer.disconnect(),n.cleanup()}},this._willUpdate=function(){var e=n.options.getScrollElement();n.scrollElement!==e&&(n.cleanup(),n.scrollElement=e,n._scrollToOffset(n.scrollOffset,{adjustments:void 0,behavior:void 0}),n.unsubs.push(n.options.observeElementRect(n,function(e){n.scrollRect=e,n.maybeNotify()})),n.unsubs.push(n.options.observeElementOffset(n,function(e){n.scrollAdjustments=0,n.scrollOffset!==e&&(null!==n.isScrollingTimeoutId&&(clearTimeout(n.isScrollingTimeoutId),n.isScrollingTimeoutId=null),n.isScrolling=!0,n.scrollDirection=n.scrollOffset=0;i--){var a=e[i];if(!r.has(a.lane)){var l=o.get(a.lane);if(null==l||a.end>l.end?o.set(a.lane,a):a.end0?Math.min.apply(Math,n.pendingMeasuredCacheIndexes):0;n.pendingMeasuredCacheIndexes=[];for(var u=n.measurementsCache.slice(0,l),s=l;s0&&t>0?function(e){for(var t=e.measurements,r=e.outerSize,n=e.scrollOffset,o=t.length-1,i=g(0,o,function(e){return t[e].start},n),a=i;a=n.scrollOffset+r?"end":"start"),"start"===t||("end"===t?e-=r:"center"===t&&(e-=r/2));var o=n.options.horizontal?"scrollWidth":"scrollHeight";return Math.max(Math.min((n.scrollElement?"document"in n.scrollElement?n.scrollElement.document.documentElement[o]:n.scrollElement[o]:0)-n.getSize(),e),0)},this.getOffsetForIndex=function(e,t){void 0===t&&(t="auto"),e=Math.max(0,Math.min(e,n.options.count-1));var r=u(n.getMeasurements()[e]);if("auto"===t)if(r.end>=n.scrollOffset+n.getSize()-n.options.scrollPaddingEnd)t="end";else{if(!(r.start<=n.scrollOffset+n.options.scrollPaddingStart))return[n.scrollOffset,t];t="start"}var o="end"===t?r.end+n.options.scrollPaddingEnd:r.start-n.options.scrollPaddingStart;return[n.getOffsetForAlignment(o,t),t]},this.isDynamicMode=function(){return n.measureElementCache.size>0},this.cancelScrollToIndex=function(){null!==n.scrollToIndexTimeoutId&&(clearTimeout(n.scrollToIndexTimeoutId),n.scrollToIndexTimeoutId=null)},this.scrollToOffset=function(e,t){var r=void 0===t?{}:t,o=r.align,i=r.behavior;n.cancelScrollToIndex(),"smooth"===i&&n.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),n._scrollToOffset(n.getOffsetForAlignment(e,void 0===o?"start":o),{adjustments:void 0,behavior:i})},this.scrollToIndex=function(e,t){var r=void 0===t?{}:t,o=r.align,i=r.behavior;e=Math.max(0,Math.min(e,n.options.count-1)),n.cancelScrollToIndex(),"smooth"===i&&n.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");var a=n.getOffsetForIndex(e,void 0===o?"auto":o),l=a[0],u=a[1];n._scrollToOffset(l,{adjustments:void 0,behavior:i}),"smooth"!==i&&n.isDynamicMode()&&(n.scrollToIndexTimeoutId=setTimeout(function(){(n.scrollToIndexTimeoutId=null,n.measureElementCache.has(n.options.getItemKey(e)))&&1>Math.abs(n.getOffsetForIndex(e,u)[0]-n.scrollOffset)||n.scrollToIndex(e,{align:u,behavior:i})}))},this.scrollBy=function(e,t){var r=(void 0===t?{}:t).behavior;n.cancelScrollToIndex(),"smooth"===r&&n.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),n._scrollToOffset(n.scrollOffset+e,{adjustments:void 0,behavior:r})},this.getTotalSize=function(){var e;return((null==(e=n.getMeasurements()[n.options.count-1])?void 0:e.end)||n.options.paddingStart)-n.options.scrollMargin+n.options.paddingEnd},this._scrollToOffset=function(e,t){var r=t.adjustments,o=t.behavior;n.options.scrollToFn(e,{behavior:o,adjustments:r},n)},this.measure=function(){n.itemSizeCache=new Map,n.notify(!1)},this.setOptions(e),this.scrollRect=this.options.initialRect,this.scrollOffset=this.options.initialOffset,this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(function(e){n.itemSizeCache.set(e.key,e.size)}),this.maybeNotify()},g=function(e,t,r,n){for(;e<=t;){var o=(e+t)/2|0,i=r(o);if(in))return o;t=o-1}}return e>0?e-1:0},v="u">typeof document?o.useLayoutEffect:o.useEffect;function m(e){var t,r,a,l;return t=n({observeElementRect:f,observeElementOffset:p,scrollToFn:h},e),r=o.useReducer(function(){return{}},{})[1],a=n({},t,{onChange:function(e,n){n?(0,i.flushSync)(r):r(),null==t.onChange||t.onChange(e,n)}}),(l=o.useState(function(){return new y(a)})[0]).setOptions(a),o.useEffect(function(){return l._didMount()},[]),v(function(){return l._willUpdate()}),l}},21865:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(30669),o=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,i=RegExp(o.source,"g");function a(e,t){var r,a,l,u,s,c=o.lastIndex=i.lastIndex=0,f=-1,p=[],d=[];for(e+="",t+="";(l=o.exec(e))&&(u=i.exec(t));)(s=u.index)>c&&(s=t.slice(c,s),p[f]?p[f]+=s:p[++f]=s),(l=l[0])===(u=u[0])?p[f]?p[f]+=u:p[++f]=u:(p[++f]=null,d.push({i:f,x:(0,n.A)(l,u)})),c=i.lastIndex;return c{e.exports=function(e,t){return null==e?void 0:e[t]}},23891:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff}},24548:(e,t,r)=>{e.exports=r(42648).Symbol},24602:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var n=(0,r(41495).A)("outline","text-wrap","IconTextWrap",[["path",{d:"M4 6l16 0",key:"svg-0"}],["path",{d:"M4 18l5 0",key:"svg-1"}],["path",{d:"M4 12h13a3 3 0 0 1 0 6h-4l2 -2m0 4l-2 -2",key:"svg-2"}]])},25153:(e,t,r)=>{e.exports=r(27290)("toUpperCase")},25599:(e,t,r)=>{"use strict";r.d(t,{E:()=>F});var n=r(55729),o=r(1250),i=r.n(o),a=r(50212),l=r(53645),u=r(88859),s=r(93780),c=r(90505);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],u=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return d(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return d(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r=0)continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function M(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],u=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return C(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return C(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r0&&void 0!==arguments[0]?arguments[0]:[];return e.reduce(function(e,t){var i=t.word,a=t.width,l=e[e.length-1];return l&&(null==n||o||l.width+a+ra||t.reduce(function(e,t){return e.width>t.width?e:t}).width>Number(n),t]},y=0,g=u.length-1,v=0;y<=g&&v<=u.length-1;){var m=Math.floor((y+g)/2),b=M(h(m-1),2),x=b[0],w=b[1],O=M(h(m),1)[0];if(x||O||(y=m+1),x&&O&&(g=m-1),!x&&O){i=w;break}v++}return i||d},R=function(e){return[{words:i()(e)?[]:e.toString().split(k)}]},D=function(e){var t=e.width,r=e.scaleToFit,n=e.children,o=e.style,i=e.breakAll,a=e.maxLines;if((t||r)&&!u.m.isSsr){var l=T({breakAll:i,children:n,style:o});if(!l)return R(n);var s=l.wordsWithComputedWidth,c=l.spaceWidth;return I({breakAll:i,children:n,maxLines:a,style:o},s,c,t,r)}return R(n)},N="#808080",F=function(e){var t,r=e.x,o=void 0===r?0:r,i=e.y,u=void 0===i?0:i,c=e.lineHeight,f=void 0===c?"1em":c,p=e.capHeight,d=void 0===p?"0.71em":p,h=e.scaleToFit,y=void 0!==h&&h,g=e.textAnchor,v=e.verticalAnchor,m=e.fill,b=void 0===m?N:m,x=_(e,A),w=(0,n.useMemo)(function(){return D({breakAll:x.breakAll,children:x.children,maxLines:x.maxLines,scaleToFit:y,style:x.style,width:x.width})},[x.breakAll,x.children,x.maxLines,y,x.style,x.width]),O=x.dx,S=x.dy,M=x.angle,C=x.className,k=x.breakAll,T=_(x,E);if(!(0,l.vh)(o)||!(0,l.vh)(u))return null;var I=o+((0,l.Et)(O)?O:0),R=u+((0,l.Et)(S)?S:0);switch(void 0===v?"end":v){case"start":t=j("calc(".concat(d,")"));break;case"middle":t=j("calc(".concat((w.length-1)/2," * -").concat(f," + (").concat(d," / 2))"));break;default:t=j("calc(".concat(w.length-1," * -").concat(f,")"))}var F=[];if(y){var B=w[0].width,L=x.width;F.push("scale(".concat(((0,l.Et)(L)?L/B:1)/B,")"))}return M&&F.push("rotate(".concat(M,", ").concat(I,", ").concat(R,")")),F.length&&(T.transform=F.join(" ")),n.createElement("text",P({},(0,s.J9)(T,!0),{x:I,y:R,className:(0,a.A)("recharts-text",C),textAnchor:void 0===g?"start":g,fill:b.includes("url")?N:b}),w.map(function(e,r){var o=e.words.join(k?"":" ");return n.createElement("tspan",{x:I,dy:0===r?t:f,key:"".concat(o,"-").concat(r)},o)}))}},26047:e=>{e.exports=function(e){return e.split("")}},26111:(e,t,r)=>{var n=r(2223);e.exports=function(e,t){if(e!==t){var r=void 0!==e,o=null===e,i=e==e,a=n(e),l=void 0!==t,u=null===t,s=t==t,c=n(t);if(!u&&!c&&!a&&e>t||a&&l&&s&&!u&&!c||o&&l&&s||!r&&s||!i)return 1;if(!o&&!a&&!c&&e{var n=r(16087),o=r(23891);e.exports=function(e){return null!=e&&o(e.length)&&!n(e)}},26780:(e,t,r)=>{var n=r(91545);e.exports=function(e){var t=n(e),r=t%1;return t==t?r?t-r:t:0}},26841:(e,t,r)=>{var n=r(68295);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},27281:(e,t,r)=>{"use strict";r.d(t,{QQ:()=>l,VU:()=>s,XC:()=>p,_U:()=>f,j2:()=>c});var n=r(55729),o=r(51032),i=r.n(o);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var l=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],u=["points","pathLength"],s={svg:["viewBox","children"],polygon:u,polyline:u},c=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],f=function(e,t){if(!e||"function"==typeof e||"boolean"==typeof e)return null;var r=e;if((0,n.isValidElement)(e)&&(r=e.props),!i()(r))return null;var o={};return Object.keys(r).forEach(function(e){c.includes(e)&&(o[e]=t||function(t){return r[e](r,t)})}),o},p=function(e,t,r){if(!i()(e)||"object"!==a(e))return null;var n=null;return Object.keys(e).forEach(function(o){var i=e[o];c.includes(o)&&"function"==typeof i&&(n||(n={}),n[o]=function(e){return i(t,r,e),null})}),n}},27290:(e,t,r)=>{var n=r(64239),o=r(6535),i=r(11273),a=r(1315);e.exports=function(e){return function(t){var r=o(t=a(t))?i(t):void 0,l=r?r[0]:t.charAt(0),u=r?n(r,1).join(""):t.slice(1);return l[e]()+u}}},27457:(e,t,r)=>{e.exports="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g},27679:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},27798:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var n=(0,r(41495).A)("outline","bolt","IconBolt",[["path",{d:"M13 3l0 7l6 0l-8 11l0 -7l-6 0l8 -11",key:"svg-0"}]])},28263:(e,t,r)=>{var n=r(21115),o=r(96485),i=r(52726),a=r(28343),l=r(80461),u=r(79888),s=r(35912);e.exports=function(e,t){return a(e)&&l(t)?u(s(e),t):function(r){var a=o(r,e);return void 0===a&&a===t?i(r,e):n(t,a,3)}}},28343:(e,t,r)=>{var n=r(67972),o=r(2223),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(n(e))return!1;var r=typeof e;return!!("number"==r||"symbol"==r||"boolean"==r||null==e||o(e))||a.test(e)||!i.test(e)||null!=t&&e in Object(t)}},28816:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=e=>()=>e},29054:e=>{e.exports=function(){return!1}},29610:(e,t)=>{"use strict";var r=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),u=Symbol.for("react.context"),s=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy");Symbol.for("react.offscreen");Symbol.for("react.module.reference"),t.isFragment=function(e){return function(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case o:case a:case i:case f:case p:return e;default:switch(e=e&&e.$$typeof){case s:case u:case c:case h:case d:case l:return e;default:return t}}case n:return t}}}(e)===o}},29640:(e,t,r)=>{var n=r(68295),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:o.call(t,e)}},29692:(e,t,r)=>{var n=r(33044),o=r(34635);e.exports=function(e,t){return e&&n(e,t,o)}},29707:(e,t,r)=>{var n=r(48916),o=r(35912);e.exports=function(e,t){t=n(t,e);for(var r=0,i=t.length;null!=e&&r{var n=r(48916),o=r(49757),i=r(67972),a=r(32132),l=r(23891),u=r(35912);e.exports=function(e,t,r){t=n(t,e);for(var s=-1,c=t.length,f=!1;++s{"use strict";function n(e,t){return e*=1,t*=1,function(r){return e*(1-r)+t*r}}r.d(t,{A:()=>n})},30988:(e,t,r)=>{"use strict";function n(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function o(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function i(){}r.d(t,{Ay:()=>b,Qh:()=>O});var a="\\s*([+-]?\\d+)\\s*",l="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",u="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",s=/^#([0-9a-f]{3,8})$/,c=RegExp(`^rgb\\(${a},${a},${a}\\)$`),f=RegExp(`^rgb\\(${u},${u},${u}\\)$`),p=RegExp(`^rgba\\(${a},${a},${a},${l}\\)$`),d=RegExp(`^rgba\\(${u},${u},${u},${l}\\)$`),h=RegExp(`^hsl\\(${l},${u},${u}\\)$`),y=RegExp(`^hsla\\(${l},${u},${u},${l}\\)$`),g={aliceblue:0xf0f8ff,antiquewhite:0xfaebd7,aqua:65535,aquamarine:8388564,azure:0xf0ffff,beige:0xf5f5dc,bisque:0xffe4c4,black:0,blanchedalmond:0xffebcd,blue:255,blueviolet:9055202,brown:0xa52a2a,burlywood:0xdeb887,cadetblue:6266528,chartreuse:8388352,chocolate:0xd2691e,coral:0xff7f50,cornflowerblue:6591981,cornsilk:0xfff8dc,crimson:0xdc143c,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:0xb8860b,darkgray:0xa9a9a9,darkgreen:25600,darkgrey:0xa9a9a9,darkkhaki:0xbdb76b,darkmagenta:9109643,darkolivegreen:5597999,darkorange:0xff8c00,darkorchid:0x9932cc,darkred:9109504,darksalmon:0xe9967a,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:0xff1493,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:0xb22222,floralwhite:0xfffaf0,forestgreen:2263842,fuchsia:0xff00ff,gainsboro:0xdcdcdc,ghostwhite:0xf8f8ff,gold:0xffd700,goldenrod:0xdaa520,gray:8421504,green:32768,greenyellow:0xadff2f,grey:8421504,honeydew:0xf0fff0,hotpink:0xff69b4,indianred:0xcd5c5c,indigo:4915330,ivory:0xfffff0,khaki:0xf0e68c,lavender:0xe6e6fa,lavenderblush:0xfff0f5,lawngreen:8190976,lemonchiffon:0xfffacd,lightblue:0xadd8e6,lightcoral:0xf08080,lightcyan:0xe0ffff,lightgoldenrodyellow:0xfafad2,lightgray:0xd3d3d3,lightgreen:9498256,lightgrey:0xd3d3d3,lightpink:0xffb6c1,lightsalmon:0xffa07a,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:0xb0c4de,lightyellow:0xffffe0,lime:65280,limegreen:3329330,linen:0xfaf0e6,magenta:0xff00ff,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:0xba55d3,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:0xc71585,midnightblue:1644912,mintcream:0xf5fffa,mistyrose:0xffe4e1,moccasin:0xffe4b5,navajowhite:0xffdead,navy:128,oldlace:0xfdf5e6,olive:8421376,olivedrab:7048739,orange:0xffa500,orangered:0xff4500,orchid:0xda70d6,palegoldenrod:0xeee8aa,palegreen:0x98fb98,paleturquoise:0xafeeee,palevioletred:0xdb7093,papayawhip:0xffefd5,peachpuff:0xffdab9,peru:0xcd853f,pink:0xffc0cb,plum:0xdda0dd,powderblue:0xb0e0e6,purple:8388736,rebeccapurple:6697881,red:0xff0000,rosybrown:0xbc8f8f,royalblue:4286945,saddlebrown:9127187,salmon:0xfa8072,sandybrown:0xf4a460,seagreen:3050327,seashell:0xfff5ee,sienna:0xa0522d,silver:0xc0c0c0,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:0xfffafa,springgreen:65407,steelblue:4620980,tan:0xd2b48c,teal:32896,thistle:0xd8bfd8,tomato:0xff6347,turquoise:4251856,violet:0xee82ee,wheat:0xf5deb3,white:0xffffff,whitesmoke:0xf5f5f5,yellow:0xffff00,yellowgreen:0x9acd32};function v(){return this.rgb().formatHex()}function m(){return this.rgb().formatRgb()}function b(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=s.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?x(t):3===r?new S(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?w(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?w(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=c.exec(e))?new S(t[1],t[2],t[3],1):(t=f.exec(e))?new S(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=p.exec(e))?w(t[1],t[2],t[3],t[4]):(t=d.exec(e))?w(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=h.exec(e))?M(t[1],t[2]/100,t[3]/100,1):(t=y.exec(e))?M(t[1],t[2]/100,t[3]/100,t[4]):g.hasOwnProperty(e)?x(g[e]):"transparent"===e?new S(NaN,NaN,NaN,0):null}function x(e){return new S(e>>16&255,e>>8&255,255&e,1)}function w(e,t,r,n){return n<=0&&(e=t=r=NaN),new S(e,t,r,n)}function O(e,t,r,n){var o;return 1==arguments.length?((o=e)instanceof i||(o=b(o)),o)?new S((o=o.rgb()).r,o.g,o.b,o.opacity):new S:new S(e,t,r,null==n?1:n)}function S(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function j(){return`#${_(this.r)}${_(this.g)}${_(this.b)}`}function A(){let e=E(this.opacity);return`${1===e?"rgb(":"rgba("}${P(this.r)}, ${P(this.g)}, ${P(this.b)}${1===e?")":`, ${e})`}`}function E(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function P(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function _(e){return((e=P(e))<16?"0":"")+e.toString(16)}function M(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new k(e,t,r,n)}function C(e){if(e instanceof k)return new k(e.h,e.s,e.l,e.opacity);if(e instanceof i||(e=b(e)),!e)return new k;if(e instanceof k)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),a=Math.max(t,r,n),l=NaN,u=a-o,s=(a+o)/2;return u?(l=t===a?(r-n)/u+(r0&&s<1?0:l,new k(l,u,s,e.opacity)}function k(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function T(e){return(e=(e||0)%360)<0?e+360:e}function I(e){return Math.max(0,Math.min(1,e||0))}function R(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}n(i,b,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:v,formatHex:v,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return C(this).formatHsl()},formatRgb:m,toString:m}),n(S,O,o(i,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new S(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new S(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new S(P(this.r),P(this.g),P(this.b),E(this.opacity))},displayable(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:j,formatHex:j,formatHex8:function(){return`#${_(this.r)}${_(this.g)}${_(this.b)}${_((isNaN(this.opacity)?1:this.opacity)*255)}`},formatRgb:A,toString:A})),n(k,function(e,t,r,n){return 1==arguments.length?C(e):new k(e,t,r,null==n?1:n)},o(i,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new k(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new k(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,o=2*r-n;return new S(R(e>=240?e-240:e+120,o,n),R(e,o,n),R(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new k(T(this.h),I(this.s),I(this.l),E(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=E(this.opacity);return`${1===e?"hsl(":"hsla("}${T(this.h)}, ${100*I(this.s)}%, ${100*I(this.l)}%${1===e?")":`, ${e})`}`}}))},31292:(e,t,r)=>{"use strict";r.d(t,{m:()=>U});var n=r(55729),o=r(47222),i=r.n(o),a=r(1250),l=r.n(a),u=r(50212),s=r(53645);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(){return(f=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=Array(t);rtypeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],u=!0,s=!1;try{i=(r=r.call(e)).next,!1;for(;!(u=(n=i.call(r)).done)&&(l.push(n.value),2!==l.length);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(d,2)||function(e,t){if(e){if("string"==typeof e)return p(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return p(e,2)}}(d,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();u=m[0],f=m[1]}else u=d}return n.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(t),style:o},(0,s.vh)(f)?n.createElement("span",{className:"recharts-tooltip-item-name"},f):null,(0,s.vh)(f)?n.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,n.createElement("span",{className:"recharts-tooltip-item-value"},u),n.createElement("span",{className:"recharts-tooltip-item-unit"},e.unit||""))});return n.createElement("ul",{className:"recharts-tooltip-item-list",style:{padding:0,margin:0}},e)}return null}())};function v(e){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m(e,t,r){var n;return(n=function(e,t){if("object"!=v(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=v(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==v(n)?n:n+"")in e)?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var b="recharts-tooltip-wrapper",x={visibility:"hidden"};function w(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.key,o=e.offsetTopLeft,i=e.position,a=e.reverseDirection,l=e.tooltipDimension,u=e.viewBox,c=e.viewBoxDimension;if(i&&(0,s.Et)(i[n]))return i[n];var f=r[n]-l-o,p=r[n]+o;return t[n]?a[n]?f:p:a[n]?fu[n]+c?Math.max(f,u[n]):Math.max(p,u[n])}function O(e){return(O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function S(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function j(e){for(var t=1;t1||Math.abs(e.height-this.state.lastBoundingBox.height)>1)&&this.setState({lastBoundingBox:{width:e.width,height:e.height}})}else(-1!==this.state.lastBoundingBox.width||-1!==this.state.lastBoundingBox.height)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var e,t;this.props.active&&this.updateBBox(),this.state.dismissed&&((null==(e=this.props.coordinate)?void 0:e.x)!==this.state.dismissedAtCoordinate.x||(null==(t=this.props.coordinate)?void 0:t.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var e,t,r,o,i,a,l,c,f,p,d,h,y,g,v,O,S,A,E,P=this,_=this.props,M=_.active,C=_.allowEscapeViewBox,k=_.animationDuration,T=_.animationEasing,I=_.children,R=_.coordinate,D=_.hasPayload,N=_.isAnimationActive,F=_.offset,B=_.position,L=_.reverseDirection,z=_.useTranslate3d,V=_.viewBox,U=_.wrapperStyle,H=(h=(e={allowEscapeViewBox:C,coordinate:R,offsetTopLeft:F,position:B,reverseDirection:L,tooltipBox:this.state.lastBoundingBox,useTranslate3d:z,viewBox:V}).allowEscapeViewBox,y=e.coordinate,g=e.offsetTopLeft,v=e.position,O=e.reverseDirection,S=e.tooltipBox,A=e.useTranslate3d,E=e.viewBox,S.height>0&&S.width>0&&y?(r=(t={translateX:p=w({allowEscapeViewBox:h,coordinate:y,key:"x",offsetTopLeft:g,position:v,reverseDirection:O,tooltipDimension:S.width,viewBox:E,viewBoxDimension:E.width}),translateY:d=w({allowEscapeViewBox:h,coordinate:y,key:"y",offsetTopLeft:g,position:v,reverseDirection:O,tooltipDimension:S.height,viewBox:E,viewBoxDimension:E.height}),useTranslate3d:A}).translateX,o=t.translateY,f={transform:t.useTranslate3d?"translate3d(".concat(r,"px, ").concat(o,"px, 0)"):"translate(".concat(r,"px, ").concat(o,"px)")}):f=x,{cssProperties:f,cssClasses:(a=(i={translateX:p,translateY:d,coordinate:y}).coordinate,l=i.translateX,c=i.translateY,(0,u.A)(b,m(m(m(m({},"".concat(b,"-right"),(0,s.Et)(l)&&a&&(0,s.Et)(a.x)&&l>=a.x),"".concat(b,"-left"),(0,s.Et)(l)&&a&&(0,s.Et)(a.x)&&l=a.y),"".concat(b,"-top"),(0,s.Et)(c)&&a&&(0,s.Et)(a.y)&&c0;return n.createElement(C,{allowEscapeViewBox:i,animationDuration:a,animationEasing:l,isAnimationActive:f,active:o,coordinate:s,hasPayload:O,offset:p,position:y,reverseDirection:v,useTranslate3d:m,viewBox:b,wrapperStyle:x},(e=D(D({},this.props),{},{payload:w}),n.isValidElement(u)?n.cloneElement(u,e):"function"==typeof u?n.createElement(u,e):n.createElement(g,e)))}}],function(e,t){for(var r=0;r{"use strict";r.d(t,{IZ:()=>g,Kg:()=>y,Zk:()=>S,lY:()=>v,pr:()=>m,yy:()=>O});var n=r(1250),o=r.n(n),i=r(55729),a=r(16087),l=r.n(a),u=r(53645),s=r(1509);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function p(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=Array(t);r2&&void 0!==arguments[2]?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(e-(r.left||0)-(r.right||0)),Math.abs(t-(r.top||0)-(r.bottom||0)))/2},m=function(e,t,r,n,i){var a=e.width,l=e.height,c=e.startAngle,f=e.endAngle,y=(0,u.F4)(e.cx,a,a/2),g=(0,u.F4)(e.cy,l,l/2),m=v(a,l,r),b=(0,u.F4)(e.innerRadius,m,0),x=(0,u.F4)(e.outerRadius,m,.8*m);return Object.keys(t).reduce(function(e,r){var a,l=t[r],u=l.domain,v=l.reversed;if(o()(l.range))"angleAxis"===n?a=[c,f]:"radiusAxis"===n&&(a=[b,x]),v&&(a=[a[1],a[0]]);else{var m,w=function(e){if(Array.isArray(e))return e}(m=a=l.range)||function(e,t){var r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],u=!0,s=!1;try{i=(r=r.call(e)).next,!1;for(;!(u=(n=i.call(r)).done)&&(l.push(n.value),2!==l.length);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(m,2)||function(e,t){if(e){if("string"==typeof e)return h(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return h(e,2)}}(m,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();c=w[0],f=w[1]}var O=(0,s.W7)(l,i),S=O.realScaleType,j=O.scale;j.domain(u).range(a),(0,s.YB)(j);var A=(0,s.w7)(j,p(p({},l),{},{realScaleType:S})),E=p(p(p({},l),A),{},{range:a,radius:x,realScaleType:S,scale:j,cx:y,cy:g,innerRadius:b,outerRadius:x,startAngle:c,endAngle:f});return p(p({},e),{},d({},r,E))},{})},b=function(e,t){var r=e.x,n=e.y;return Math.sqrt(Math.pow(r-t.x,2)+Math.pow(n-t.y,2))},x=function(e,t){var r=e.x,n=e.y,o=t.cx,i=t.cy,a=b({x:r,y:n},{x:o,y:i});if(a<=0)return{radius:a};var l=Math.acos((r-o)/a);return n>i&&(l=2*Math.PI-l),{radius:a,angle:180*l/Math.PI,angleInRadian:l}},w=function(e){var t=e.startAngle,r=e.endAngle,n=Math.min(Math.floor(t/360),Math.floor(r/360));return{startAngle:t-360*n,endAngle:r-360*n}},O=function(e,t){var r,n=x({x:e.x,y:e.y},t),o=n.radius,i=n.angle,a=t.innerRadius,l=t.outerRadius;if(ol)return!1;if(0===o)return!0;var u=w(t),s=u.startAngle,c=u.endAngle,f=i;if(s<=c){for(;f>c;)f-=360;for(;f=s&&f<=c}else{for(;f>s;)f-=360;for(;f=c&&f<=s}return r?p(p({},t),{},{radius:o,angle:f+360*Math.min(Math.floor(t.startAngle/360),Math.floor(t.endAngle/360))}):null},S=function(e){return(0,i.isValidElement)(e)||l()(e)||"boolean"==typeof e?"":e.className}},32132:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var n=typeof e;return!!(r=null==r?0x1fffffffffffff:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e{var n,o=r(13140),i=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!i&&i in e}},32202:(e,t,r)=>{var n=r(91696),o=r(41053),i=r(60042);function a(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++t{e.exports=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}},32347:(e,t,r)=>{"use strict";r.d(t,{f:()=>h});var n=r(16087),o=r.n(n),i=r(53645),a=r(90505),l=r(88859),u=r(83687);function s(e,t,r){if(t<1)return[];if(1===t&&void 0===r)return e;for(var n=[],o=0;oe*o)return!1;var i=r();return e*(t-e*i/2-n)>=0&&e*(t+e*i/2-o)<=0}function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function d(e){for(var t=1;t=2?(0,i.sA)(v[1].coordinate-v[0].coordinate):1,M=(n="width"===A,f=m.x,p=m.y,h=m.width,y=m.height,1===_?{start:n?f:p,end:n?f+h:p+y}:{start:n?f+h:p+y,end:n?f:p});return"equidistantPreserveStart"===w?function(e,t,r,n,o){for(var i,a=(n||[]).slice(),l=t.start,u=t.end,f=0,p=1,d=l;p<=a.length;)if(i=function(){var t,i=null==n?void 0:n[f];if(void 0===i)return{v:s(n,p)};var a=f,h=function(){return void 0===t&&(t=r(i,a)),t},y=i.coordinate,g=0===f||c(e,y,h,d,u);g||(f=0,d=l,p+=1),g&&(d=y+e*(h()/2+o),f+=p)}())return i.v;return[]}(_,M,P,v,b):("preserveStart"===w||"preserveStartEnd"===w?function(e,t,r,n,o,i){var a=(n||[]).slice(),l=a.length,u=t.start,s=t.end;if(i){var f=n[l-1],p=r(f,l-1),h=e*(f.coordinate+e*p/2-s);a[l-1]=f=d(d({},f),{},{tickCoord:h>0?f.coordinate-h*e:f.coordinate}),c(e,f.tickCoord,function(){return p},u,s)&&(s=f.tickCoord-e*(p/2+o),a[l-1]=d(d({},f),{},{isShow:!0}))}for(var y=i?l-1:l,g=function(t){var n,i=a[t],l=function(){return void 0===n&&(n=r(i,t)),n};if(0===t){var f=e*(i.coordinate-e*l()/2-u);a[t]=i=d(d({},i),{},{tickCoord:f<0?i.coordinate-f*e:i.coordinate})}else a[t]=i=d(d({},i),{},{tickCoord:i.coordinate});c(e,i.tickCoord,l,u,s)&&(u=i.tickCoord+e*(l()/2+o),a[t]=d(d({},i),{},{isShow:!0}))},v=0;v0?s.coordinate-p*e:s.coordinate})}else i[t]=s=d(d({},s),{},{tickCoord:s.coordinate});c(e,s.tickCoord,f,l,u)&&(u=s.tickCoord-e*(f()/2+o),i[t]=d(d({},s),{},{isShow:!0}))},f=a-1;f>=0;f--)s(f);return i}(_,M,P,v,b)).filter(function(e){return e.isShow})}},32716:(e,t,r)=>{"use strict";r.d(t,{gu:()=>tc});var n,o,i=r(55729),a=r(1250),l=r.n(a),u=r(16087),s=r.n(u),c=r(87904),f=r.n(c),p=r(96485),d=r.n(p),h=r(47222),y=r.n(h),g=r(15019),v=r.n(g),m=r(50212),b=r(73403),x=r(55426),w=r(3780),O=r(31292),S=r(64370),j=r(1815),A=r(2390),E=r(93780),P=r(49726),_=r(25599),M=r(1509),C=r(53645);function k(e){return(k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function T(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function I(e){for(var t=1;t0&&t.handleDrag(e.changedTouches[0])}),G(t,"handleDragEnd",function(){t.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var e=t.props,r=e.endIndex,n=e.onDragEnd,o=e.startIndex;null==n||n({endIndex:r,startIndex:o})}),t.detachDragEndListener()}),G(t,"handleLeaveWrapper",function(){(t.state.isTravellerMoving||t.state.isSlideMoving)&&(t.leaveTimer=window.setTimeout(t.handleDragEnd,t.props.leaveTimeOut))}),G(t,"handleEnterSlideOrTraveller",function(){t.setState({isTextActive:!0})}),G(t,"handleLeaveSlideOrTraveller",function(){t.setState({isTextActive:!1})}),G(t,"handleSlideDragStart",function(e){var r=X(e)?e.changedTouches[0]:e;t.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:r.pageX}),t.attachDragEndListener()}),t.travellerDragStartHandlers={startX:t.handleTravellerDragStart.bind(t,"startX"),endX:t.handleTravellerDragStart.bind(t,"endX")},t.state={},t}if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");return n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&$(n,e),t=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(e){var t=e.startX,r=e.endX,o=this.state.scaleValues,i=this.props,a=i.gap,l=i.data.length-1,u=Math.min(t,r),s=Math.max(t,r),c=n.getIndexInRange(o,u),f=n.getIndexInRange(o,s);return{startIndex:c-c%a,endIndex:f===l?l:f-f%a}}},{key:"getTextOfTick",value:function(e){var t=this.props,r=t.data,n=t.tickFormatter,o=t.dataKey,i=(0,M.kr)(r[e],o,e);return s()(n)?n(i,e):i}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(e){var t=this.state,r=t.slideMoveStartX,n=t.startX,o=t.endX,i=this.props,a=i.x,l=i.width,u=i.travellerWidth,s=i.startIndex,c=i.endIndex,f=i.onChange,p=e.pageX-r;p>0?p=Math.min(p,a+l-u-o,a+l-u-n):p<0&&(p=Math.max(p,a-n,a-o));var d=this.getIndex({startX:n+p,endX:o+p});(d.startIndex!==s||d.endIndex!==c)&&f&&f(d),this.setState({startX:n+p,endX:o+p,slideMoveStartX:e.pageX})}},{key:"handleTravellerDragStart",value:function(e,t){var r=X(t)?t.changedTouches[0]:t;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:e,brushMoveStartX:r.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(e){var t=this.state,r=t.brushMoveStartX,n=t.movingTravellerId,o=t.endX,i=t.startX,a=this.state[n],l=this.props,u=l.x,s=l.width,c=l.travellerWidth,f=l.onChange,p=l.gap,d=l.data,h={startX:this.state.startX,endX:this.state.endX},y=e.pageX-r;y>0?y=Math.min(y,u+s-c-a):y<0&&(y=Math.max(y,u-a)),h[n]=a+y;var g=this.getIndex(h),v=g.startIndex,m=g.endIndex,b=function(){var e=d.length-1;return"startX"===n&&(o>i?v%p==0:m%p==0)||!!(oi?m%p==0:v%p==0)||!!(o>i)&&m===e};this.setState(G(G({},n,a+y),"brushMoveStartX",e.pageX),function(){f&&b()&&f(g)})}},{key:"handleTravellerMoveKeyboard",value:function(e,t){var r=this,n=this.state,o=n.scaleValues,i=n.startX,a=n.endX,l=this.state[t],u=o.indexOf(l);if(-1!==u){var s=u+e;if(-1!==s&&!(s>=o.length)){var c=o[s];"startX"===t&&c>=a||"endX"===t&&c<=i||this.setState(G({},t,c),function(){r.props.onChange(r.getIndex({startX:r.state.startX,endX:r.state.endX}))})}}}},{key:"renderBackground",value:function(){var e=this.props,t=e.x,r=e.y,n=e.width,o=e.height,a=e.fill,l=e.stroke;return i.createElement("rect",{stroke:l,fill:a,x:t,y:r,width:n,height:o})}},{key:"renderPanorama",value:function(){var e=this.props,t=e.x,r=e.y,n=e.width,o=e.height,a=e.data,l=e.children,u=e.padding,s=i.Children.only(l);return s?i.cloneElement(s,{x:t,y:r,width:n,height:o,margin:u,compact:!0,data:a}):null}},{key:"renderTravellerLayer",value:function(e,t){var r,o,a=this,l=this.props,u=l.y,s=l.travellerWidth,c=l.height,f=l.traveller,p=l.ariaLabel,d=l.data,h=l.startIndex,y=l.endIndex,g=Math.max(e,this.props.x),v=z(z({},(0,E.J9)(this.props,!1)),{},{x:g,y:u,width:s,height:c}),m=p||"Min value: ".concat(null==(r=d[h])?void 0:r.name,", Max value: ").concat(null==(o=d[y])?void 0:o.name);return i.createElement(w.W,{tabIndex:0,role:"slider","aria-label":m,"aria-valuenow":e,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[t],onTouchStart:this.travellerDragStartHandlers[t],onKeyDown:function(e){["ArrowLeft","ArrowRight"].includes(e.key)&&(e.preventDefault(),e.stopPropagation(),a.handleTravellerMoveKeyboard("ArrowRight"===e.key?1:-1,t))},onFocus:function(){a.setState({isTravellerFocused:!0})},onBlur:function(){a.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},n.renderTraveller(f,v))}},{key:"renderSlide",value:function(e,t){var r=this.props,n=r.y,o=r.height,a=r.stroke,l=r.travellerWidth,u=Math.min(e,t)+l,s=Math.max(Math.abs(t-e)-l,0);return i.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:a,fillOpacity:.2,x:u,y:n,width:s,height:o})}},{key:"renderText",value:function(){var e=this.props,t=e.startIndex,r=e.endIndex,n=e.y,o=e.height,a=e.travellerWidth,l=e.stroke,u=this.state,s=u.startX,c=u.endX,f={pointerEvents:"none",fill:l};return i.createElement(w.W,{className:"recharts-brush-texts"},i.createElement(_.E,B({textAnchor:"end",verticalAnchor:"middle",x:Math.min(s,c)-5,y:n+o/2},f),this.getTextOfTick(t)),i.createElement(_.E,B({textAnchor:"start",verticalAnchor:"middle",x:Math.max(s,c)+a+5,y:n+o/2},f),this.getTextOfTick(r)))}},{key:"render",value:function(){var e=this.props,t=e.data,r=e.className,n=e.children,o=e.x,a=e.y,l=e.width,u=e.height,s=e.alwaysShowText,c=this.state,f=c.startX,p=c.endX,d=c.isTextActive,h=c.isSlideMoving,y=c.isTravellerMoving,g=c.isTravellerFocused;if(!t||!t.length||!(0,C.Et)(o)||!(0,C.Et)(a)||!(0,C.Et)(l)||!(0,C.Et)(u)||l<=0||u<=0)return null;var v=(0,m.A)("recharts-brush",r),b=1===i.Children.count(n),x=N("userSelect","none");return i.createElement(w.W,{className:v,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:x},this.renderBackground(),b&&this.renderPanorama(),this.renderSlide(f,p),this.renderTravellerLayer(f,"startX"),this.renderTravellerLayer(p,"endX"),(d||h||y||g||s)&&this.renderText())}}],r=[{key:"renderDefaultTraveller",value:function(e){var t=e.x,r=e.y,n=e.width,o=e.height,a=e.stroke,l=Math.floor(r+o/2)-1;return i.createElement(i.Fragment,null,i.createElement("rect",{x:t,y:r,width:n,height:o,fill:a,stroke:"none"}),i.createElement("line",{x1:t+1,y1:l,x2:t+n-1,y2:l,fill:"none",stroke:"#fff"}),i.createElement("line",{x1:t+1,y1:l+2,x2:t+n-1,y2:l+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(e,t){return i.isValidElement(e)?i.cloneElement(e,t):s()(e)?e(t):n.renderDefaultTraveller(t)}},{key:"getDerivedStateFromProps",value:function(e,t){var r=e.data,n=e.width,o=e.x,i=e.travellerWidth,a=e.updateId,l=e.startIndex,u=e.endIndex;if(r!==t.prevData||a!==t.prevUpdateId)return z({prevData:r,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:n},r&&r.length?q({data:r,width:n,x:o,travellerWidth:i,startIndex:l,endIndex:u}):{scale:null,scaleValues:null});if(t.scale&&(n!==t.prevWidth||o!==t.prevX||i!==t.prevTravellerWidth)){t.scale.range([o,o+n-i]);var s=t.scale.domain().map(function(e){return t.scale(e)});return{prevData:r,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:n,startX:t.scale(e.startIndex),endX:t.scale(e.endIndex),scaleValues:s}}return null}},{key:"getIndexInRange",value:function(e,t){for(var r=e.length,n=0,o=r-1;o-n>1;){var i=Math.floor((n+o)/2);e[i]>t?o=i:n=i}return t>=e[o]?o:n}}],t&&V(n.prototype,t),r&&V(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n}(i.PureComponent);G(K,"displayName","Brush"),G(K,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var Y=r(90505),J=r(65049),Z=r(35555),Q=r(47374),ee=r(83687),et=r(7571);function er(){return(er=Object.assign?Object.assign.bind():function(e){for(var t=1;ttypeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return eg(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return eg(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function eg(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r=0)continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,ek));return(0,C.Et)(r)&&(0,C.Et)(o)&&(0,C.Et)(f)&&(0,C.Et)(d)&&(0,C.Et)(l)&&(0,C.Et)(s)?i.createElement("path",eT({},(0,E.J9)(y,!0),{className:(0,m.A)("recharts-cross",h),d:"M".concat(r,",").concat(l,"v").concat(d,"M").concat(s,",").concat(o,"h").concat(f)})):null};function eD(e){var t=e.cx,r=e.cy,n=e.radius,o=e.startAngle,i=e.endAngle;return{points:[(0,em.IZ)(t,r,n,o),(0,em.IZ)(t,r,n,i)],cx:t,cy:r,radius:n,startAngle:o,endAngle:i}}var eN=r(11107);function eF(e){return(eF="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function eB(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function eL(e){for(var t=1;ttypeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],u=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||eZ(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function eq(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function eX(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(eX=function(){return!!e})()}function eK(e){return(eK=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function eY(e,t){return(eY=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function eJ(e){return function(e){if(Array.isArray(e))return eQ(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||eZ(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function eZ(e,t){if(e){if("string"==typeof e)return eQ(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return eQ(e,t)}}function eQ(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r0?i:e&&e.length&&(0,C.Et)(n)&&(0,C.Et)(o)?e.slice(n,o+1):[]};function te(e){return"number"===e?[0,"auto"]:void 0}var tt=function(e,t,r,n){var o=e.graphicalItems,i=e.tooltipAxis,a=e8(t,e);return r<0||!o||!o.length||r>=a.length?null:o.reduce(function(o,l){var u,s,c=null!=(u=l.props.data)?u:t;if(c&&e.dataStartIndex+e.dataEndIndex!==0&&e.dataEndIndex-e.dataStartIndex>=r&&(c=c.slice(e.dataStartIndex,e.dataEndIndex+1)),i.dataKey&&!i.allowDuplicatedCategory){var f=void 0===c?a:c;s=(0,C.eP)(f,i.dataKey,n)}else s=c&&c[r]||a[r];return s?[].concat(eJ(o),[(0,M.zb)(l,s)]):o},[])},tr=function(e,t,r,n){var o=n||{x:e.chartX,y:e.chartY},i="horizontal"===r?o.x:"vertical"===r?o.y:"centric"===r?o.angle:o.radius,a=e.orderedTooltipTicks,l=e.tooltipAxis,u=e.tooltipTicks,s=(0,M.gH)(i,a,u,l);if(s>=0&&u){var c=u[s]&&u[s].value,f=tt(e,t,s,c),p=e7(r,a,s,o);return{activeTooltipIndex:s,activeLabel:c,activePayload:f,activeCoordinate:p}}return null},tn=function(e,t){var r=t.axes,n=t.graphicalItems,o=t.axisType,i=t.axisIdKey,a=t.stackGroups,u=t.dataStartIndex,s=t.dataEndIndex,c=e.layout,p=e.children,d=e.stackOffset,h=(0,M._L)(c,o);return r.reduce(function(t,r){var y=void 0!==r.type.defaultProps?e1(e1({},r.type.defaultProps),r.props):r.props,g=y.type,v=y.dataKey,m=y.allowDataOverflow,b=y.allowDuplicatedCategory,x=y.scale,w=y.ticks,O=y.includeHidden,S=y[i];if(t[S])return t;var j=e8(e.data,{graphicalItems:n.filter(function(e){var t;return(i in e.props?e.props[i]:null==(t=e.type.defaultProps)?void 0:t[i])===S}),dataStartIndex:u,dataEndIndex:s}),A=j.length;(function(e,t,r){if("number"===r&&!0===t&&Array.isArray(e)){var n=null==e?void 0:e[0],o=null==e?void 0:e[1];if(n&&o&&(0,C.Et)(n)&&(0,C.Et)(o))return!0}return!1})(y.domain,m,g)&&(_=(0,M.AQ)(y.domain,null,m),h&&("number"===g||"auto"!==x)&&(T=(0,M.Ay)(j,v,"category")));var E=te(g);if(!_||0===_.length){var P,_,k,T,I,R=null!=(I=y.domain)?I:E;if(v){if(_=(0,M.Ay)(j,v,g),"category"===g&&h){var D=(0,C.CG)(_);b&&D?(k=_,_=f()(0,A)):b||(_=(0,M.KC)(R,_,r).reduce(function(e,t){return e.indexOf(t)>=0?e:[].concat(eJ(e),[t])},[]))}else if("category"===g)_=b?_.filter(function(e){return""!==e&&!l()(e)}):(0,M.KC)(R,_,r).reduce(function(e,t){return e.indexOf(t)>=0||""===t||l()(t)?e:[].concat(eJ(e),[t])},[]);else if("number"===g){var N=(0,M.A1)(j,n.filter(function(e){var t,r,n=i in e.props?e.props[i]:null==(t=e.type.defaultProps)?void 0:t[i],o="hide"in e.props?e.props.hide:null==(r=e.type.defaultProps)?void 0:r.hide;return n===S&&(O||!o)}),v,o,c);N&&(_=N)}h&&("number"===g||"auto"!==x)&&(T=(0,M.Ay)(j,v,"category"))}else _=h?f()(0,A):a&&a[S]&&a[S].hasStack&&"number"===g?"expand"===d?[0,1]:(0,M.Mk)(a[S].stackGroups,u,s):(0,M.vf)(j,n.filter(function(e){var t=i in e.props?e.props[i]:e.type.defaultProps[i],r="hide"in e.props?e.props.hide:e.type.defaultProps.hide;return t===S&&(O||!r)}),g,c,!0);"number"===g?(_=ev(p,_,S,o,w),R&&(_=(0,M.AQ)(R,_,m))):"category"===g&&R&&_.every(function(e){return R.indexOf(e)>=0})&&(_=R)}return e1(e1({},t),{},e2({},S,e1(e1({},y),{},{axisType:o,domain:_,categoricalDomain:T,duplicateDomain:k,originalDomain:null!=(P=y.domain)?P:E,isCategorical:h,layout:c})))},{})},to=function(e,t){var r=t.graphicalItems,n=t.Axis,o=t.axisType,i=t.axisIdKey,a=t.stackGroups,l=t.dataStartIndex,u=t.dataEndIndex,s=e.layout,c=e.children,p=e8(e.data,{graphicalItems:r,dataStartIndex:l,dataEndIndex:u}),h=p.length,y=(0,M._L)(s,o),g=-1;return r.reduce(function(e,t){var v,m=(void 0!==t.type.defaultProps?e1(e1({},t.type.defaultProps),t.props):t.props)[i],b=te("number");return e[m]?e:(g++,v=y?f()(0,h):a&&a[m]&&a[m].hasStack?ev(c,v=(0,M.Mk)(a[m].stackGroups,l,u),m,o):ev(c,v=(0,M.AQ)(b,(0,M.vf)(p,r.filter(function(e){var t,r,n=i in e.props?e.props[i]:null==(t=e.type.defaultProps)?void 0:t[i],o="hide"in e.props?e.props.hide:null==(r=e.type.defaultProps)?void 0:r.hide;return n===m&&!o}),"number",s),n.defaultProps.allowDataOverflow),m,o),e1(e1({},e),{},e2({},m,e1(e1({axisType:o},n.defaultProps),{},{hide:!0,orientation:d()(e3,"".concat(o,".").concat(g%2),null),domain:v,originalDomain:b,isCategorical:y,layout:s}))))},{})},ti=function(e,t){var r=t.axisType,n=void 0===r?"xAxis":r,o=t.AxisComp,i=t.graphicalItems,a=t.stackGroups,l=t.dataStartIndex,u=t.dataEndIndex,s=e.children,c="".concat(n,"Id"),f=(0,E.aS)(s,o),p={};return f&&f.length?p=tn(e,{axes:f,graphicalItems:i,axisType:n,axisIdKey:c,stackGroups:a,dataStartIndex:l,dataEndIndex:u}):i&&i.length&&(p=to(e,{Axis:o,graphicalItems:i,axisType:n,axisIdKey:c,stackGroups:a,dataStartIndex:l,dataEndIndex:u})),p},ta=function(e){var t=(0,C.lX)(e),r=(0,M.Rh)(t,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:y()(r,function(e){return e.coordinate}),tooltipAxis:t,tooltipAxisBandSize:(0,M.Hj)(t,r)}},tl=function(e){var t=e.children,r=e.defaultShowTooltip,n=(0,E.BU)(t,K),o=0,i=0;return e.data&&0!==e.data.length&&(i=e.data.length-1),n&&n.props&&(n.props.startIndex>=0&&(o=n.props.startIndex),n.props.endIndex>=0&&(i=n.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:o,dataEndIndex:i,activeTooltipIndex:-1,isTooltipActive:!!r}},tu=function(e){return"horizontal"===e?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===e?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===e?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},ts=function(e,t){var r=e.props,n=e.graphicalItems,o=e.xAxisMap,i=void 0===o?{}:o,a=e.yAxisMap,l=void 0===a?{}:a,u=r.width,s=r.height,c=r.children,f=r.margin||{},p=(0,E.BU)(c,K),h=(0,E.BU)(c,S.s),y=Object.keys(l).reduce(function(e,t){var r=l[t],n=r.orientation;return r.mirror||r.hide?e:e1(e1({},e),{},e2({},n,e[n]+r.width))},{left:f.left||0,right:f.right||0}),g=Object.keys(i).reduce(function(e,t){var r=i[t],n=r.orientation;return r.mirror||r.hide?e:e1(e1({},e),{},e2({},n,d()(e,"".concat(n))+r.height))},{top:f.top||0,bottom:f.bottom||0}),v=e1(e1({},g),y),m=v.bottom;p&&(v.bottom+=p.props.height||K.defaultProps.height),h&&t&&(v=(0,M.s0)(v,n,r,t));var b=u-v.left-v.right,x=s-v.top-v.bottom;return e1(e1({brushBottom:m},v),{},{width:Math.max(b,0),height:Math.max(x,0)})},tc=function(e){var t=e.chartName,r=e.GraphicalChild,n=e.defaultTooltipEventType,o=void 0===n?"axis":n,a=e.validateTooltipEventTypes,u=void 0===a?["axis"]:a,c=e.axisComponents,f=e.legendContent,p=e.formatAxisMap,h=e.defaultProps,y=function(e,t){var r=t.graphicalItems,n=t.stackGroups,o=t.offset,i=t.updateId,a=t.dataStartIndex,u=t.dataEndIndex,s=e.barSize,f=e.layout,p=e.barGap,d=e.barCategoryGap,h=e.maxBarSize,y=tu(f),g=y.numericAxisName,v=y.cateAxisName,m=!!r&&!!r.length&&r.some(function(e){var t=(0,E.Mn)(e&&e.type);return t&&t.indexOf("Bar")>=0}),x=[];return r.forEach(function(r,y){var w=e8(e.data,{graphicalItems:[r],dataStartIndex:a,dataEndIndex:u}),O=void 0!==r.type.defaultProps?e1(e1({},r.type.defaultProps),r.props):r.props,S=O.dataKey,j=O.maxBarSize,A=O["".concat(g,"Id")],P=O["".concat(v,"Id")],_=c.reduce(function(e,r){var n=t["".concat(r.axisType,"Map")],o=O["".concat(r.axisType,"Id")];n&&n[o]||"zAxis"===r.axisType||(0,b.A)(!1);var i=n[o];return e1(e1({},e),{},e2(e2({},r.axisType,i),"".concat(r.axisType,"Ticks"),(0,M.Rh)(i)))},{}),C=_[v],k=_["".concat(v,"Ticks")],T=n&&n[A]&&n[A].hasStack&&(0,M.kA)(r,n[A].stackGroups),I=(0,E.Mn)(r.type).indexOf("Bar")>=0,R=(0,M.Hj)(C,k),D=[],N=m&&(0,M.tA)({barSize:s,stackGroups:n,totalSize:"xAxis"===v?_[v].width:"yAxis"===v?_[v].height:void 0});if(I){var F,B,L=l()(j)?h:j,z=null!=(F=null!=(B=(0,M.Hj)(C,k,!0))?B:L)?F:0;D=(0,M.BX)({barGap:p,barCategoryGap:d,bandSize:z!==R?z:R,sizeList:N[P],maxBarSize:L}),z!==R&&(D=D.map(function(e){return e1(e1({},e),{},{position:e1(e1({},e.position),{},{offset:e.position.offset-z/2})})}))}var V=r&&r.type&&r.type.getComposedData;V&&x.push({props:e1(e1({},V(e1(e1({},_),{},{displayedData:w,props:e,dataKey:S,item:r,bandSize:R,barPosition:D,offset:o,stackedData:T,layout:f,dataStartIndex:a,dataEndIndex:u}))),{},e2(e2(e2({key:r.key||"item-".concat(y)},g,_[g]),v,_[v]),"animationId",i)),childIndex:(0,E.AW)(r,e.children),item:r})}),x},g=function(e,n){var o=e.props,i=e.dataStartIndex,a=e.dataEndIndex,l=e.updateId;if(!(0,E.Me)({props:o}))return null;var u=o.children,s=o.layout,f=o.stackOffset,d=o.data,h=o.reverseStackOrder,g=tu(s),v=g.numericAxisName,m=g.cateAxisName,b=(0,E.aS)(u,r),x=(0,M.Mn)(d,b,"".concat(v,"Id"),"".concat(m,"Id"),f,h),w=c.reduce(function(e,t){var r="".concat(t.axisType,"Map");return e1(e1({},e),{},e2({},r,ti(o,e1(e1({},t),{},{graphicalItems:b,stackGroups:t.axisType===v&&x,dataStartIndex:i,dataEndIndex:a}))))},{}),O=ts(e1(e1({},w),{},{props:o,graphicalItems:b}),null==n?void 0:n.legendBBox);Object.keys(w).forEach(function(e){w[e]=p(o,w[e],O,e.replace("Map",""),t)});var S=ta(w["".concat(m,"Map")]),j=y(o,e1(e1({},w),{},{dataStartIndex:i,dataEndIndex:a,updateId:l,graphicalItems:b,stackGroups:x,offset:O}));return e1(e1({formattedGraphicalItems:j,graphicalItems:b,offset:O,stackGroups:x},S),w)},S=function(e){var r;function n(e){var r,o,a,u,c;if(!(this instanceof n))throw TypeError("Cannot call a class as a function");return u=n,c=[e],u=eK(u),e2(a=function(e,t){if(t&&("object"===e$(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");var r=e;if(void 0===r)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(this,eX()?Reflect.construct(u,c||[],eK(this).constructor):u.apply(this,c)),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),e2(a,"accessibilityManager",new eP),e2(a,"handleLegendBBoxUpdate",function(e){if(e){var t=a.state,r=t.dataStartIndex,n=t.dataEndIndex,o=t.updateId;a.setState(e1({legendBBox:e},g({props:a.props,dataStartIndex:r,dataEndIndex:n,updateId:o},e1(e1({},a.state),{},{legendBBox:e}))))}}),e2(a,"handleReceiveSyncEvent",function(e,t,r){a.props.syncId===e&&(r!==a.eventEmitterSymbol||"function"==typeof a.props.syncMethod)&&a.applySyncEvent(t)}),e2(a,"handleBrushChange",function(e){var t=e.startIndex,r=e.endIndex;if(t!==a.state.dataStartIndex||r!==a.state.dataEndIndex){var n=a.state.updateId;a.setState(function(){return e1({dataStartIndex:t,dataEndIndex:r},g({props:a.props,dataStartIndex:t,dataEndIndex:r,updateId:n},a.state))}),a.triggerSyncEvent({dataStartIndex:t,dataEndIndex:r})}}),e2(a,"handleMouseEnter",function(e){var t=a.getMouseInfo(e);if(t){var r=e1(e1({},t),{},{isTooltipActive:!0});a.setState(r),a.triggerSyncEvent(r);var n=a.props.onMouseEnter;s()(n)&&n(r,e)}}),e2(a,"triggeredAfterMouseMove",function(e){var t=a.getMouseInfo(e),r=t?e1(e1({},t),{},{isTooltipActive:!0}):{isTooltipActive:!1};a.setState(r),a.triggerSyncEvent(r);var n=a.props.onMouseMove;s()(n)&&n(r,e)}),e2(a,"handleItemMouseEnter",function(e){a.setState(function(){return{isTooltipActive:!0,activeItem:e,activePayload:e.tooltipPayload,activeCoordinate:e.tooltipPosition||{x:e.cx,y:e.cy}}})}),e2(a,"handleItemMouseLeave",function(){a.setState(function(){return{isTooltipActive:!1}})}),e2(a,"handleMouseMove",function(e){e.persist(),a.throttleTriggeredAfterMouseMove(e)}),e2(a,"handleMouseLeave",function(e){a.throttleTriggeredAfterMouseMove.cancel();var t={isTooltipActive:!1};a.setState(t),a.triggerSyncEvent(t);var r=a.props.onMouseLeave;s()(r)&&r(t,e)}),e2(a,"handleOuterEvent",function(e){var t,r=(0,E.X_)(e),n=d()(a.props,"".concat(r));r&&s()(n)&&n(null!=(t=/.*touch.*/i.test(r)?a.getMouseInfo(e.changedTouches[0]):a.getMouseInfo(e))?t:{},e)}),e2(a,"handleClick",function(e){var t=a.getMouseInfo(e);if(t){var r=e1(e1({},t),{},{isTooltipActive:!0});a.setState(r),a.triggerSyncEvent(r);var n=a.props.onClick;s()(n)&&n(r,e)}}),e2(a,"handleMouseDown",function(e){var t=a.props.onMouseDown;s()(t)&&t(a.getMouseInfo(e),e)}),e2(a,"handleMouseUp",function(e){var t=a.props.onMouseUp;s()(t)&&t(a.getMouseInfo(e),e)}),e2(a,"handleTouchMove",function(e){null!=e.changedTouches&&e.changedTouches.length>0&&a.throttleTriggeredAfterMouseMove(e.changedTouches[0])}),e2(a,"handleTouchStart",function(e){null!=e.changedTouches&&e.changedTouches.length>0&&a.handleMouseDown(e.changedTouches[0])}),e2(a,"handleTouchEnd",function(e){null!=e.changedTouches&&e.changedTouches.length>0&&a.handleMouseUp(e.changedTouches[0])}),e2(a,"triggerSyncEvent",function(e){void 0!==a.props.syncId&&ew.emit(eO,a.props.syncId,e,a.eventEmitterSymbol)}),e2(a,"applySyncEvent",function(e){var t=a.props,r=t.layout,n=t.syncMethod,o=a.state.updateId,i=e.dataStartIndex,l=e.dataEndIndex;if(void 0!==e.dataStartIndex||void 0!==e.dataEndIndex)a.setState(e1({dataStartIndex:i,dataEndIndex:l},g({props:a.props,dataStartIndex:i,dataEndIndex:l,updateId:o},a.state)));else if(void 0!==e.activeTooltipIndex){var u=e.chartX,s=e.chartY,c=e.activeTooltipIndex,f=a.state,p=f.offset,d=f.tooltipTicks;if(!p)return;if("function"==typeof n)c=n(d,e);else if("value"===n){c=-1;for(var h=0;h=0){if(c.dataKey&&!c.allowDuplicatedCategory){var k="function"==typeof c.dataKey?function(e){return"function"==typeof c.dataKey?c.dataKey(e.payload):null}:"payload.".concat(c.dataKey.toString());I=(0,C.eP)(g,k,p),R=v&&m&&(0,C.eP)(m,k,p)}else I=null==g?void 0:g[f],R=v&&m&&m[f];if(j||S){var T=void 0!==e.props.activeIndex?e.props.activeIndex:f;return[(0,i.cloneElement)(e,e1(e1(e1({},n.props),P),{},{activeIndex:T})),null,null]}if(!l()(I))return[_].concat(eJ(a.renderActivePoints({item:n,activePoint:I,basePoint:R,childIndex:f,isRange:v})))}else{var I,R,D,N=(null!=(D=a.getItemByXY(a.state.activeCoordinate))?D:{graphicalItem:_}).graphicalItem,F=N.item,B=void 0===F?e:F,L=N.childIndex,z=e1(e1(e1({},n.props),P),{},{activeIndex:L});return[(0,i.cloneElement)(B,z),null,null]}return v?[_,null,null]:[_,null]}),e2(a,"renderCustomized",function(e,t,r){return(0,i.cloneElement)(e,e1(e1({key:"recharts-customized-".concat(r)},a.props),a.state))}),e2(a,"renderMap",{CartesianGrid:{handler:e9,once:!0},ReferenceArea:{handler:a.renderReferenceElement},ReferenceLine:{handler:e9},ReferenceDot:{handler:a.renderReferenceElement},XAxis:{handler:e9},YAxis:{handler:e9},Brush:{handler:a.renderBrush,once:!0},Bar:{handler:a.renderGraphicChild},Line:{handler:a.renderGraphicChild},Area:{handler:a.renderGraphicChild},Radar:{handler:a.renderGraphicChild},RadialBar:{handler:a.renderGraphicChild},Scatter:{handler:a.renderGraphicChild},Pie:{handler:a.renderGraphicChild},Funnel:{handler:a.renderGraphicChild},Tooltip:{handler:a.renderCursor,once:!0},PolarGrid:{handler:a.renderPolarGrid,once:!0},PolarAngleAxis:{handler:a.renderPolarAxis},PolarRadiusAxis:{handler:a.renderPolarAxis},Customized:{handler:a.renderCustomized}}),a.clipPathId="".concat(null!=(r=e.id)?r:(0,C.NF)("recharts"),"-clip"),a.throttleTriggeredAfterMouseMove=v()(a.triggeredAfterMouseMove,null!=(o=e.throttleDelay)?o:1e3/60),a.state={},a}if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");return n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&eY(n,e),r=[{key:"componentDidMount",value:function(){var e,t;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:null!=(e=this.props.margin.left)?e:0,top:null!=(t=this.props.margin.top)?t:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var e=this.props,t=e.children,r=e.data,n=e.height,o=e.layout,i=(0,E.BU)(t,O.m);if(i){var a=i.props.defaultIndex;if("number"==typeof a&&!(a<0)&&!(a>this.state.tooltipTicks.length-1)){var l=this.state.tooltipTicks[a]&&this.state.tooltipTicks[a].value,u=tt(this.state,r,a,l),s=this.state.tooltipTicks[a].coordinate,c=(this.state.offset.top+n)/2,f="horizontal"===o?{x:s,y:c}:{y:s,x:c},p=this.state.formattedGraphicalItems.find(function(e){return"Scatter"===e.item.type.name});p&&(f=e1(e1({},f),p.props.points[a].tooltipPosition),u=p.props.points[a].tooltipPayload);var d={activeTooltipIndex:a,isTooltipActive:!0,activeLabel:l,activePayload:u,activeCoordinate:f};this.setState(d),this.renderCursor(i),this.accessibilityManager.setIndex(a)}}}},{key:"getSnapshotBeforeUpdate",value:function(e,t){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==t.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==e.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==e.margin){var r,n;this.accessibilityManager.setDetails({offset:{left:null!=(r=this.props.margin.left)?r:0,top:null!=(n=this.props.margin.top)?n:0}})}return null}},{key:"componentDidUpdate",value:function(e){(0,E.OV)([(0,E.BU)(e.children,O.m)],[(0,E.BU)(this.props.children,O.m)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var e=(0,E.BU)(this.props.children,O.m);if(e&&"boolean"==typeof e.props.shared){var t=e.props.shared?"axis":"item";return u.indexOf(t)>=0?t:o}return o}},{key:"getMouseInfo",value:function(e){if(!this.container)return null;var t=this.container,r=t.getBoundingClientRect(),n=(0,Y.A3)(r),o={chartX:Math.round(e.pageX-n.left),chartY:Math.round(e.pageY-n.top)},i=r.width/t.offsetWidth||1,a=this.inRange(o.chartX,o.chartY,i);if(!a)return null;var l=this.state,u=l.xAxisMap,s=l.yAxisMap;if("axis"!==this.getTooltipEventType()&&u&&s){var c=(0,C.lX)(u).scale,f=(0,C.lX)(s).scale,p=c&&c.invert?c.invert(o.chartX):null,d=f&&f.invert?f.invert(o.chartY):null;return e1(e1({},o),{},{xValue:p,yValue:d})}var h=tr(this.state,this.props.data,this.props.layout,a);return h?e1(e1({},o),h):null}},{key:"inRange",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=this.props.layout,o=e/r,i=t/r;if("horizontal"===n||"vertical"===n){var a=this.state.offset;return o>=a.left&&o<=a.left+a.width&&i>=a.top&&i<=a.top+a.height?{x:o,y:i}:null}var l=this.state,u=l.angleAxisMap,s=l.radiusAxisMap;if(u&&s){var c=(0,C.lX)(u);return(0,em.yy)({x:o,y:i},c)}return null}},{key:"parseEventsOfWrapper",value:function(){var e=this.props.children,t=this.getTooltipEventType(),r=(0,E.BU)(e,O.m),n={};return r&&"axis"===t&&(n="click"===r.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}),e1(e1({},(0,eS._U)(this.props,this.handleOuterEvent)),n)}},{key:"addListener",value:function(){ew.on(eO,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){ew.removeListener(eO,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(e,t,r){for(var n=this.state.formattedGraphicalItems,o=0,i=n.length;o{var n=r(82256),o=r(26139),i=r(34635);e.exports=function(e){return function(t,r,a){var l=Object(t);if(!o(t)){var u=n(r,3);t=i(t),r=function(e){return u(l[e],e,l)}}var s=e(t,r,a);return s>-1?l[u?t[s]:s]:void 0}}},33044:(e,t,r)=>{e.exports=r(66400)()},33048:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},33958:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var n=(0,r(41495).A)("filled","caret-down-filled","IconCaretDownFilled",[["path",{d:"M18 9c.852 0 1.297 .986 .783 1.623l-.076 .084l-6 6a1 1 0 0 1 -1.32 .083l-.094 -.083l-6 -6l-.083 -.094l-.054 -.077l-.054 -.096l-.017 -.036l-.027 -.067l-.032 -.108l-.01 -.053l-.01 -.06l-.004 -.057v-.118l.005 -.058l.009 -.06l.01 -.052l.032 -.108l.027 -.067l.07 -.132l.065 -.09l.073 -.081l.094 -.083l.077 -.054l.096 -.054l.036 -.017l.067 -.027l.108 -.032l.053 -.01l.06 -.01l.057 -.004l12.059 -.002z",key:"svg-0"}]])},34120:(e,t,r)=>{var n=r(99110);e.exports=function(e){return n(e)&&e!=+e}},34635:(e,t,r)=>{var n=r(50086),o=r(11737),i=r(26139);e.exports=function(e){return i(e)?n(e):o(e)}},34945:(e,t,r)=>{var n=r(80461),o=r(34635);e.exports=function(e){for(var t=o(e),r=t.length;r--;){var i=t[r],a=e[i];t[r]=[i,a,n(a)]}return t}},35555:(e,t,r)=>{"use strict";r.d(t,{J:()=>A});var n=r(55729),o=r(1250),i=r.n(o),a=r(16087),l=r.n(a),u=r(51032),s=r.n(u),c=r(50212),f=r(25599),p=r(93780),d=r(53645),h=r(31829);function y(e){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var g=["offset"];function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r=0?1:-1;"insideStart"===l?(o=m+j*s,a=w):"insideEnd"===l?(o=b-j*s,a=!w):"end"===l&&(o=b+j*s,a=w),a=S<=0?a:!a;var A=(0,h.IZ)(p,y,O,o),E=(0,h.IZ)(p,y,O,o+(a?1:-1)*359),P="M".concat(A.x,",").concat(A.y,"\n A").concat(O,",").concat(O,",0,1,").concat(+!a,",\n ").concat(E.x,",").concat(E.y),_=i()(e.id)?(0,d.NF)("recharts-radial-line-"):e.id;return n.createElement("text",x({},r,{dominantBaseline:"central",className:(0,c.A)("recharts-radial-bar-label",f)}),n.createElement("defs",null,n.createElement("path",{id:_,d:P})),n.createElement("textPath",{xlinkHref:"#".concat(_)},t))},S=function(e){var t=e.viewBox,r=e.offset,n=e.position,o=t.cx,i=t.cy,a=t.innerRadius,l=t.outerRadius,u=(t.startAngle+t.endAngle)/2;if("outside"===n){var s=(0,h.IZ)(o,i,l+r,u),c=s.x;return{x:c,y:s.y,textAnchor:c>=o?"start":"end",verticalAnchor:"middle"}}if("center"===n)return{x:o,y:i,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===n)return{x:o,y:i,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===n)return{x:o,y:i,textAnchor:"middle",verticalAnchor:"end"};var f=(0,h.IZ)(o,i,(a+l)/2,u);return{x:f.x,y:f.y,textAnchor:"middle",verticalAnchor:"middle"}},j=function(e){var t=e.viewBox,r=e.parentViewBox,n=e.offset,o=e.position,i=t.x,a=t.y,l=t.width,u=t.height,c=u>=0?1:-1,f=c*n,p=c>0?"end":"start",h=c>0?"start":"end",y=l>=0?1:-1,g=y*n,v=y>0?"end":"start",m=y>0?"start":"end";if("top"===o)return b(b({},{x:i+l/2,y:a-c*n,textAnchor:"middle",verticalAnchor:p}),r?{height:Math.max(a-r.y,0),width:l}:{});if("bottom"===o)return b(b({},{x:i+l/2,y:a+u+f,textAnchor:"middle",verticalAnchor:h}),r?{height:Math.max(r.y+r.height-(a+u),0),width:l}:{});if("left"===o){var x={x:i-g,y:a+u/2,textAnchor:v,verticalAnchor:"middle"};return b(b({},x),r?{width:Math.max(x.x-r.x,0),height:u}:{})}if("right"===o){var w={x:i+l+g,y:a+u/2,textAnchor:m,verticalAnchor:"middle"};return b(b({},w),r?{width:Math.max(r.x+r.width-w.x,0),height:u}:{})}var O=r?{width:l,height:u}:{};return"insideLeft"===o?b({x:i+g,y:a+u/2,textAnchor:m,verticalAnchor:"middle"},O):"insideRight"===o?b({x:i+l-g,y:a+u/2,textAnchor:v,verticalAnchor:"middle"},O):"insideTop"===o?b({x:i+l/2,y:a+f,textAnchor:"middle",verticalAnchor:h},O):"insideBottom"===o?b({x:i+l/2,y:a+u-f,textAnchor:"middle",verticalAnchor:p},O):"insideTopLeft"===o?b({x:i+g,y:a+f,textAnchor:m,verticalAnchor:h},O):"insideTopRight"===o?b({x:i+l-g,y:a+f,textAnchor:v,verticalAnchor:h},O):"insideBottomLeft"===o?b({x:i+g,y:a+u-f,textAnchor:m,verticalAnchor:p},O):"insideBottomRight"===o?b({x:i+l-g,y:a+u-f,textAnchor:v,verticalAnchor:p},O):s()(o)&&((0,d.Et)(o.x)||(0,d._3)(o.x))&&((0,d.Et)(o.y)||(0,d._3)(o.y))?b({x:i+(0,d.F4)(o.x,l),y:a+(0,d.F4)(o.y,u),textAnchor:"end",verticalAnchor:"end"},O):b({x:i+l/2,y:a+u/2,textAnchor:"middle",verticalAnchor:"middle"},O)};function A(e){var t,r=e.offset,o=b({offset:void 0===r?5:r},function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,g)),a=o.viewBox,u=o.position,s=o.value,h=o.children,y=o.content,v=o.className,m=o.textBreakAll;if(!a||i()(s)&&i()(h)&&!(0,n.isValidElement)(y)&&!l()(y))return null;if((0,n.isValidElement)(y))return(0,n.cloneElement)(y,o);if(l()(y)){if(t=(0,n.createElement)(y,o),(0,n.isValidElement)(t))return t}else t=w(o);var A="cx"in a&&(0,d.Et)(a.cx),E=(0,p.J9)(o,!0);if(A&&("insideStart"===u||"insideEnd"===u||"end"===u))return O(o,t,E);var P=A?S(o):j(o);return n.createElement(f.E,x({className:(0,c.A)("recharts-label",void 0===v?"":v)},E,P,{breakAll:m}),t)}A.displayName="Label";var E=function(e){var t=e.cx,r=e.cy,n=e.angle,o=e.startAngle,i=e.endAngle,a=e.r,l=e.radius,u=e.innerRadius,s=e.outerRadius,c=e.x,f=e.y,p=e.top,h=e.left,y=e.width,g=e.height,v=e.clockWise,m=e.labelViewBox;if(m)return m;if((0,d.Et)(y)&&(0,d.Et)(g)){if((0,d.Et)(c)&&(0,d.Et)(f))return{x:c,y:f,width:y,height:g};if((0,d.Et)(p)&&(0,d.Et)(h))return{x:p,y:h,width:y,height:g}}return(0,d.Et)(c)&&(0,d.Et)(f)?{x:c,y:f,width:0,height:0}:(0,d.Et)(t)&&(0,d.Et)(r)?{cx:t,cy:r,startAngle:o||n||0,endAngle:i||n||0,innerRadius:u||0,outerRadius:s||l||a||0,clockWise:v}:e.viewBox?e.viewBox:{}};A.parseViewBox=E,A.renderCallByParent=function(e,t){var r,o,i=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(!e||!e.children&&i&&!e.label)return null;var a=e.children,u=E(e),c=(0,p.aS)(a,A).map(function(e,r){return(0,n.cloneElement)(e,{viewBox:t||u,key:"label-".concat(r)})});if(!i)return c;return[(r=e.label,o=t||u,!r?null:!0===r?n.createElement(A,{key:"label-implicit",viewBox:o}):(0,d.vh)(r)?n.createElement(A,{key:"label-implicit",viewBox:o,value:r}):(0,n.isValidElement)(r)?r.type===A?(0,n.cloneElement)(r,{key:"label-implicit",viewBox:o}):n.createElement(A,{key:"label-implicit",content:r,viewBox:o}):l()(r)?n.createElement(A,{key:"label-implicit",content:r,viewBox:o}):s()(r)?n.createElement(A,x({viewBox:o},r,{key:"label-implicit"})):null)].concat(function(e){if(Array.isArray(e))return v(e)}(c)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(c)||function(e,t){if(e){if("string"==typeof e)return v(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return v(e,void 0)}}(c)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}},35912:(e,t,r)=>{var n=r(2223),o=1/0;e.exports=function(e){if("string"==typeof e||n(e))return e;var t=e+"";return"0"==t&&1/e==-o?"-0":t}},36856:(e,t,r)=>{var n=r(91878),o=r(23891),i=r(27679),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[n(e)]}},36949:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r{"use strict";function n(e,t){return"function"==typeof e?e(t):e}function o(e,t){return r=>{t.setState(t=>({...t,[e]:n(r,t[e])}))}}function i(e){return e instanceof Function}function a(e,t,r){let n,o=[];return()=>{let i,a;r.key&&r.debug&&(i=Date.now());let l=e();if(!(l.length!==o.length||l.some((e,t)=>o[t]!==e)))return n;if(o=l,r.key&&r.debug&&(a=Date.now()),n=t(...l),null==r||null==r.onChange||r.onChange(n),r.key&&r.debug&&null!=r&&r.debug()){let e=Math.round((Date.now()-i)*100)/100,t=Math.round((Date.now()-a)*100)/100,n=t/16,o=(e,t)=>{for(e=String(e);e.length{let e=[],t=r=>{r.subHeaders&&r.subHeaders.length&&r.subHeaders.map(t),e.push(r)};return t(o),e},getContext:()=>({table:e,header:o,column:t})};return e._features.forEach(t=>{Object.assign(o,null==t.createHeader?void 0:t.createHeader(o,e))}),o}function u(e,t,r,n){var o,i;let a=0,u=function(e,t){void 0===t&&(t=1),a=Math.max(a,t),e.filter(e=>e.getIsVisible()).forEach(e=>{var r;null!=(r=e.columns)&&r.length&&u(e.columns,t+1)},0)};u(e);let s=[],c=(e,t)=>{let o={depth:t,id:[n,`${t}`].filter(Boolean).join("_"),headers:[]},i=[];e.forEach(e=>{let a,u=[...i].reverse()[0],s=e.column.depth===o.depth,c=!1;if(s&&e.column.parent?a=e.column.parent:(a=e.column,c=!0),u&&(null==u?void 0:u.column)===a)u.subHeaders.push(e);else{let o=l(r,a,{id:[n,t,a.id,null==e?void 0:e.id].filter(Boolean).join("_"),isPlaceholder:c,placeholderId:c?`${i.filter(e=>e.column===a).length}`:void 0,depth:t,index:i.length});o.subHeaders.push(e),i.push(o)}o.headers.push(e),e.headerGroup=o}),s.push(o),t>0&&c(i,t-1)};c(t.map((e,t)=>l(r,e,{depth:a,index:t})),a-1),s.reverse();let f=e=>e.filter(e=>e.column.getIsVisible()).map(e=>{let t=0,r=0,n=[0];return e.subHeaders&&e.subHeaders.length?(n=[],f(e.subHeaders).forEach(e=>{let{colSpan:r,rowSpan:o}=e;t+=r,n.push(o)})):t=1,r+=Math.min(...n),e.colSpan=t,e.rowSpan=r,{colSpan:t,rowSpan:r}});return f(null!=(o=null==(i=s[0])?void 0:i.headers)?o:[]),s}r.d(t,{HT:()=>z,ZR:()=>B});let s={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},c=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),f=null;function p(e){return"touchstart"===e.type}let d=(e,t,r)=>{var n;let o=r.toLowerCase();return!!(null==(n=e.getValue(t))?void 0:n.toLowerCase().includes(o))};d.autoRemove=e=>S(e);let h=(e,t,r)=>{var n;return!!(null==(n=e.getValue(t))?void 0:n.includes(r))};h.autoRemove=e=>S(e);let y=(e,t,r)=>{var n;return(null==(n=e.getValue(t))?void 0:n.toLowerCase())===r.toLowerCase()};y.autoRemove=e=>S(e);let g=(e,t,r)=>{var n;return null==(n=e.getValue(t))?void 0:n.includes(r)};g.autoRemove=e=>S(e)||!(null!=e&&e.length);let v=(e,t,r)=>!r.some(r=>{var n;return!(null!=(n=e.getValue(t))&&n.includes(r))});v.autoRemove=e=>S(e)||!(null!=e&&e.length);let m=(e,t,r)=>r.some(r=>{var n;return null==(n=e.getValue(t))?void 0:n.includes(r)});m.autoRemove=e=>S(e)||!(null!=e&&e.length);let b=(e,t,r)=>e.getValue(t)===r;b.autoRemove=e=>S(e);let x=(e,t,r)=>e.getValue(t)==r;x.autoRemove=e=>S(e);let w=(e,t,r)=>{let[n,o]=r,i=e.getValue(t);return i>=n&&i<=o};w.resolveFilterValue=e=>{let[t,r]=e,n="number"!=typeof t?parseFloat(t):t,o="number"!=typeof r?parseFloat(r):r,i=null===t||Number.isNaN(n)?-1/0:n,a=null===r||Number.isNaN(o)?1/0:o;if(i>a){let e=i;i=a,a=e}return[i,a]},w.autoRemove=e=>S(e)||S(e[0])&&S(e[1]);let O={includesString:d,includesStringSensitive:h,equalsString:y,arrIncludes:g,arrIncludesAll:v,arrIncludesSome:m,equals:b,weakEquals:x,inNumberRange:w};function S(e){return null==e||""===e}function j(e,t,r){return!!e&&!!e.autoRemove&&e.autoRemove(t,r)||void 0===t||"string"==typeof t&&!t}let A={sum:(e,t,r)=>r.reduce((t,r)=>{let n=r.getValue(e);return t+("number"==typeof n?n:0)},0),min:(e,t,r)=>{let n;return r.forEach(t=>{let r=t.getValue(e);null!=r&&(n>r||void 0===n&&r>=r)&&(n=r)}),n},max:(e,t,r)=>{let n;return r.forEach(t=>{let r=t.getValue(e);null!=r&&(n=r)&&(n=r)}),n},extent:(e,t,r)=>{let n,o;return r.forEach(t=>{let r=t.getValue(e);null!=r&&(void 0===n?r>=r&&(n=o=r):(n>r&&(n=r),o{let r=0,n=0;if(t.forEach(t=>{let o=t.getValue(e);null!=o&&(o*=1)>=o&&(++r,n+=o)}),r)return n/r},median:(e,t)=>{if(!t.length)return;let r=0,n=0;return t.forEach(t=>{let o=t.getValue(e);"number"==typeof o&&(r=Math.min(r,o),n=Math.max(n,o))}),(r+n)/2},unique:(e,t)=>Array.from(new Set(t.map(t=>t.getValue(e))).values()),uniqueCount:(e,t)=>new Set(t.map(t=>t.getValue(e))).size,count:(e,t)=>t.length},E=()=>({pageIndex:0,pageSize:10}),P=()=>({left:[],right:[]}),_=(e,t,r,n)=>{var o;let i=n.getRow(t);r?(i.getCanMultiSelect()||Object.keys(e).forEach(t=>delete e[t]),i.getCanSelect()&&(e[t]=!0)):delete e[t],null!=(o=i.subRows)&&o.length&&i.getCanSelectSubRows()&&i.subRows.forEach(t=>_(e,t.id,r,n))};function M(e,t){let r=e.getState().rowSelection,n=[],o={},i=function(e,t){return e.map(e=>{var t;let a=C(e,r);if(a&&(n.push(e),o[e.id]=e),null!=(t=e.subRows)&&t.length&&(e={...e,subRows:i(e.subRows)}),a)return e}).filter(Boolean)};return{rows:i(t.rows),flatRows:n,rowsById:o}}function C(e,t){var r;return null!=(r=t[e.id])&&r}function k(e,t,r){if(e.subRows&&e.subRows.length){let r=!0,n=!1;return e.subRows.forEach(e=>{(!n||r)&&(C(e,t)?n=!0:r=!1)}),r?"all":!!n&&"some"}return!1}let T=/([0-9]+)/gm;function I(e,t){return e===t?0:e>t?1:-1}function R(e){return"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"==typeof e?e:""}function D(e,t){let r=e.split(T).filter(Boolean),n=t.split(T).filter(Boolean);for(;r.length&&n.length;){let e=r.shift(),t=n.shift(),o=parseInt(e,10),i=parseInt(t,10),a=[o,i].sort();if(isNaN(a[0])){if(e>t)return 1;if(t>e)return -1;continue}if(isNaN(a[1]))return isNaN(o)?-1:1;if(o>i)return 1;if(i>o)return -1}return r.length-n.length}let N={alphanumeric:(e,t,r)=>D(R(e.getValue(r)).toLowerCase(),R(t.getValue(r)).toLowerCase()),alphanumericCaseSensitive:(e,t,r)=>D(R(e.getValue(r)),R(t.getValue(r))),text:(e,t,r)=>I(R(e.getValue(r)).toLowerCase(),R(t.getValue(r)).toLowerCase()),textCaseSensitive:(e,t,r)=>I(R(e.getValue(r)),R(t.getValue(r))),datetime:(e,t,r)=>{let n=e.getValue(r),o=t.getValue(r);return n>o?1:nI(e.getValue(r),t.getValue(r))},F=[{createTable:e=>({getHeaderGroups:a(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,r,n,o)=>{var i,a;let l=null!=(i=null==n?void 0:n.map(e=>r.find(t=>t.id===e)).filter(Boolean))?i:[],s=null!=(a=null==o?void 0:o.map(e=>r.find(t=>t.id===e)).filter(Boolean))?a:[];return u(t,[...l,...r.filter(e=>!(null!=n&&n.includes(e.id))&&!(null!=o&&o.includes(e.id))),...s],e)},{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getCenterHeaderGroups:a(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,r,n,o)=>u(t,r=r.filter(e=>!(null!=n&&n.includes(e.id))&&!(null!=o&&o.includes(e.id))),e,"center"),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeftHeaderGroups:a(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,r,n)=>{var o;return u(t,null!=(o=null==n?void 0:n.map(e=>r.find(t=>t.id===e)).filter(Boolean))?o:[],e,"left")},{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getRightHeaderGroups:a(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,r,n)=>{var o;return u(t,null!=(o=null==n?void 0:n.map(e=>r.find(t=>t.id===e)).filter(Boolean))?o:[],e,"right")},{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getFooterGroups:a(()=>[e.getHeaderGroups()],e=>[...e].reverse(),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeftFooterGroups:a(()=>[e.getLeftHeaderGroups()],e=>[...e].reverse(),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getCenterFooterGroups:a(()=>[e.getCenterHeaderGroups()],e=>[...e].reverse(),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getRightFooterGroups:a(()=>[e.getRightHeaderGroups()],e=>[...e].reverse(),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getFlatHeaders:a(()=>[e.getHeaderGroups()],e=>e.map(e=>e.headers).flat(),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeftFlatHeaders:a(()=>[e.getLeftHeaderGroups()],e=>e.map(e=>e.headers).flat(),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getCenterFlatHeaders:a(()=>[e.getCenterHeaderGroups()],e=>e.map(e=>e.headers).flat(),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getRightFlatHeaders:a(()=>[e.getRightHeaderGroups()],e=>e.map(e=>e.headers).flat(),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getCenterLeafHeaders:a(()=>[e.getCenterFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeftLeafHeaders:a(()=>[e.getLeftFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getRightLeafHeaders:a(()=>[e.getRightFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeafHeaders:a(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(e,t,r)=>{var n,o,i,a,l,u;return[...null!=(n=null==(o=e[0])?void 0:o.headers)?n:[],...null!=(i=null==(a=t[0])?void 0:a.headers)?i:[],...null!=(l=null==(u=r[0])?void 0:u.headers)?l:[]].map(e=>e.getLeafHeaders()).flat()},{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}})})},{getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:o("columnVisibility",e)}),createColumn:(e,t)=>({toggleVisibility:r=>{e.getCanHide()&&t.setColumnVisibility(t=>({...t,[e.id]:null!=r?r:!e.getIsVisible()}))},getIsVisible:()=>{var r,n;return null==(r=null==(n=t.getState().columnVisibility)?void 0:n[e.id])||r},getCanHide:()=>{var r,n;return(null==(r=e.columnDef.enableHiding)||r)&&(null==(n=t.options.enableHiding)||n)},getToggleVisibilityHandler:()=>t=>{null==e.toggleVisibility||e.toggleVisibility(t.target.checked)}}),createRow:(e,t)=>({_getAllVisibleCells:a(()=>[e.getAllCells(),t.getState().columnVisibility],e=>e.filter(e=>e.column.getIsVisible()),{key:"row._getAllVisibleCells",debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),getVisibleCells:a(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(e,t,r)=>[...e,...t,...r],{key:!1,debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}})}),createTable:e=>{let t=(t,r)=>a(()=>[r(),r().filter(e=>e.getIsVisible()).map(e=>e.id).join("_")],e=>e.filter(e=>null==e.getIsVisible?void 0:e.getIsVisible()),{key:t,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}});return{getVisibleFlatColumns:t("getVisibleFlatColumns",()=>e.getAllFlatColumns()),getVisibleLeafColumns:t("getVisibleLeafColumns",()=>e.getAllLeafColumns()),getLeftVisibleLeafColumns:t("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),getRightVisibleLeafColumns:t("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),getCenterVisibleLeafColumns:t("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),setColumnVisibility:t=>null==e.options.onColumnVisibilityChange?void 0:e.options.onColumnVisibilityChange(t),resetColumnVisibility:t=>{var r;e.setColumnVisibility(t?{}:null!=(r=e.initialState.columnVisibility)?r:{})},toggleAllColumnsVisible:t=>{var r;t=null!=(r=t)?r:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((e,r)=>({...e,[r.id]:t||!(null!=r.getCanHide&&r.getCanHide())}),{}))},getIsAllColumnsVisible:()=>!e.getAllLeafColumns().some(e=>!(null!=e.getIsVisible&&e.getIsVisible())),getIsSomeColumnsVisible:()=>e.getAllLeafColumns().some(e=>null==e.getIsVisible?void 0:e.getIsVisible()),getToggleAllColumnsVisibilityHandler:()=>t=>{var r;e.toggleAllColumnsVisible(null==(r=t.target)?void 0:r.checked)}}}},{getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:o("columnOrder",e)}),createTable:e=>({setColumnOrder:t=>null==e.options.onColumnOrderChange?void 0:e.options.onColumnOrderChange(t),resetColumnOrder:t=>{var r;e.setColumnOrder(t?[]:null!=(r=e.initialState.columnOrder)?r:[])},_getOrderColumnsFn:a(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(e,t,r)=>n=>{let o=[];if(null!=e&&e.length){let t=[...e],r=[...n];for(;r.length&&t.length;){let e=t.shift(),n=r.findIndex(t=>t.id===e);n>-1&&o.push(r.splice(n,1)[0])}o=[...o,...r]}else o=n;var i=o;if(!(null!=t&&t.length)||!r)return i;let a=i.filter(e=>!t.includes(e.id));return"remove"===r?a:[...t.map(e=>i.find(t=>t.id===e)).filter(Boolean),...a]},{key:!1})})},{getInitialState:e=>({columnPinning:P(),...e}),getDefaultOptions:e=>({onColumnPinningChange:o("columnPinning",e)}),createColumn:(e,t)=>({pin:r=>{let n=e.getLeafColumns().map(e=>e.id).filter(Boolean);t.setColumnPinning(e=>{var t,o,i,a,l,u;return"right"===r?{left:(null!=(i=null==e?void 0:e.left)?i:[]).filter(e=>!(null!=n&&n.includes(e))),right:[...(null!=(a=null==e?void 0:e.right)?a:[]).filter(e=>!(null!=n&&n.includes(e))),...n]}:"left"===r?{left:[...(null!=(l=null==e?void 0:e.left)?l:[]).filter(e=>!(null!=n&&n.includes(e))),...n],right:(null!=(u=null==e?void 0:e.right)?u:[]).filter(e=>!(null!=n&&n.includes(e)))}:{left:(null!=(t=null==e?void 0:e.left)?t:[]).filter(e=>!(null!=n&&n.includes(e))),right:(null!=(o=null==e?void 0:e.right)?o:[]).filter(e=>!(null!=n&&n.includes(e)))}})},getCanPin:()=>e.getLeafColumns().some(e=>{var r,n;return(null==(r=e.columnDef.enablePinning)||r)&&(null==(n=t.options.enablePinning)||n)}),getIsPinned:()=>{let r=e.getLeafColumns().map(e=>e.id),{left:n,right:o}=t.getState().columnPinning,i=r.some(e=>null==n?void 0:n.includes(e)),a=r.some(e=>null==o?void 0:o.includes(e));return i?"left":!!a&&"right"},getPinnedIndex:()=>{var r,n,o;let i=e.getIsPinned();return i?null!=(r=null==(n=t.getState().columnPinning)||null==(o=n[i])?void 0:o.indexOf(e.id))?r:-1:0}}),createRow:(e,t)=>({getCenterVisibleCells:a(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(e,t,r)=>{let n=[...null!=t?t:[],...null!=r?r:[]];return e.filter(e=>!n.includes(e.column.id))},{key:"row.getCenterVisibleCells",debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),getLeftVisibleCells:a(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,,],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.column.id===t)).filter(Boolean).map(e=>({...e,position:"left"})),{key:"row.getLeftVisibleCells",debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),getRightVisibleCells:a(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.column.id===t)).filter(Boolean).map(e=>({...e,position:"right"})),{key:"row.getRightVisibleCells",debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}})}),createTable:e=>({setColumnPinning:t=>null==e.options.onColumnPinningChange?void 0:e.options.onColumnPinningChange(t),resetColumnPinning:t=>{var r,n;return e.setColumnPinning(t?P():null!=(r=null==(n=e.initialState)?void 0:n.columnPinning)?r:P())},getIsSomeColumnsPinned:t=>{var r,n,o;let i=e.getState().columnPinning;return t?!!(null==(r=i[t])?void 0:r.length):!!((null==(n=i.left)?void 0:n.length)||(null==(o=i.right)?void 0:o.length))},getLeftLeafColumns:a(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),getRightLeafColumns:a(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),getCenterLeafColumns:a(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(e,t,r)=>{let n=[...null!=t?t:[],...null!=r?r:[]];return e.filter(e=>!n.includes(e.id))},{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}})})},{getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],globalFilter:void 0,...e}),getDefaultOptions:e=>({onColumnFiltersChange:o("columnFilters",e),onGlobalFilterChange:o("globalFilter",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100,globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var r,n;let o=null==(r=e.getCoreRowModel().flatRows[0])||null==(n=r._getAllCellsByColumnId()[t.id])?void 0:n.getValue();return"string"==typeof o||"number"==typeof o}}),createColumn:(e,t)=>({getAutoFilterFn:()=>{let r=t.getCoreRowModel().flatRows[0],n=null==r?void 0:r.getValue(e.id);return"string"==typeof n?O.includesString:"number"==typeof n?O.inNumberRange:"boolean"==typeof n||null!==n&&"object"==typeof n?O.equals:Array.isArray(n)?O.arrIncludes:O.weakEquals},getFilterFn:()=>{var r,n;return i(e.columnDef.filterFn)?e.columnDef.filterFn:"auto"===e.columnDef.filterFn?e.getAutoFilterFn():null!=(r=null==(n=t.options.filterFns)?void 0:n[e.columnDef.filterFn])?r:O[e.columnDef.filterFn]},getCanFilter:()=>{var r,n,o;return(null==(r=e.columnDef.enableColumnFilter)||r)&&(null==(n=t.options.enableColumnFilters)||n)&&(null==(o=t.options.enableFilters)||o)&&!!e.accessorFn},getCanGlobalFilter:()=>{var r,n,o,i;return(null==(r=e.columnDef.enableGlobalFilter)||r)&&(null==(n=t.options.enableGlobalFilter)||n)&&(null==(o=t.options.enableFilters)||o)&&(null==(i=null==t.options.getColumnCanGlobalFilter?void 0:t.options.getColumnCanGlobalFilter(e))||i)&&!!e.accessorFn},getIsFiltered:()=>e.getFilterIndex()>-1,getFilterValue:()=>{var r,n;return null==(r=t.getState().columnFilters)||null==(n=r.find(t=>t.id===e.id))?void 0:n.value},getFilterIndex:()=>{var r,n;return null!=(r=null==(n=t.getState().columnFilters)?void 0:n.findIndex(t=>t.id===e.id))?r:-1},setFilterValue:r=>{t.setColumnFilters(t=>{var o,i;let a=e.getFilterFn(),l=null==t?void 0:t.find(t=>t.id===e.id),u=n(r,l?l.value:void 0);if(j(a,u,e))return null!=(o=null==t?void 0:t.filter(t=>t.id!==e.id))?o:[];let s={id:e.id,value:u};return l?null!=(i=null==t?void 0:t.map(t=>t.id===e.id?s:t))?i:[]:null!=t&&t.length?[...t,s]:[s]})},_getFacetedRowModel:t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),getFacetedRowModel:()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),_getFacetedUniqueValues:t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),getFacetedUniqueValues:()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,_getFacetedMinMaxValues:t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),getFacetedMinMaxValues:()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}),createRow:(e,t)=>({columnFilters:{},columnFiltersMeta:{}}),createTable:e=>({getGlobalAutoFilterFn:()=>O.includesString,getGlobalFilterFn:()=>{var t,r;let{globalFilterFn:n}=e.options;return i(n)?n:"auto"===n?e.getGlobalAutoFilterFn():null!=(t=null==(r=e.options.filterFns)?void 0:r[n])?t:O[n]},setColumnFilters:t=>{let r=e.getAllLeafColumns();null==e.options.onColumnFiltersChange||e.options.onColumnFiltersChange(e=>{var o;return null==(o=n(t,e))?void 0:o.filter(e=>{let t=r.find(t=>t.id===e.id);return!(t&&j(t.getFilterFn(),e.value,t))&&!0})})},setGlobalFilter:t=>{null==e.options.onGlobalFilterChange||e.options.onGlobalFilterChange(t)},resetGlobalFilter:t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)},resetColumnFilters:t=>{var r,n;e.setColumnFilters(t?[]:null!=(r=null==(n=e.initialState)?void 0:n.columnFilters)?r:[])},getPreFilteredRowModel:()=>e.getCoreRowModel(),getFilteredRowModel:()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel)?e.getPreFilteredRowModel():e._getFilteredRowModel(),_getGlobalFacetedRowModel:e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),getGlobalFacetedRowModel:()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),_getGlobalFacetedUniqueValues:e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),getGlobalFacetedUniqueValues:()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,_getGlobalFacetedMinMaxValues:e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),getGlobalFacetedMinMaxValues:()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}})},{getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto"}),getDefaultOptions:e=>({onSortingChange:o("sorting",e),isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,t)=>({getAutoSortingFn:()=>{let r=t.getFilteredRowModel().flatRows.slice(10),n=!1;for(let t of r){let r=null==t?void 0:t.getValue(e.id);if("[object Date]"===Object.prototype.toString.call(r))return N.datetime;if("string"==typeof r&&(n=!0,r.split(T).length>1))return N.alphanumeric}return n?N.text:N.basic},getAutoSortDir:()=>{let r=t.getFilteredRowModel().flatRows[0];return"string"==typeof(null==r?void 0:r.getValue(e.id))?"asc":"desc"},getSortingFn:()=>{var r,n;if(!e)throw Error();return i(e.columnDef.sortingFn)?e.columnDef.sortingFn:"auto"===e.columnDef.sortingFn?e.getAutoSortingFn():null!=(r=null==(n=t.options.sortingFns)?void 0:n[e.columnDef.sortingFn])?r:N[e.columnDef.sortingFn]},toggleSorting:(r,n)=>{let o=e.getNextSortingOrder(),i=null!=r;t.setSorting(a=>{let l,u=null==a?void 0:a.find(t=>t.id===e.id),s=null==a?void 0:a.findIndex(t=>t.id===e.id),c=[],f=i?r:"desc"===o;if("toggle"!=(l=null!=a&&a.length&&e.getCanMultiSort()&&n?u?"toggle":"add":null!=a&&a.length&&s!==a.length-1?"replace":u?"toggle":"replace")||i||o||(l="remove"),"add"===l){var p;(c=[...a,{id:e.id,desc:f}]).splice(0,c.length-(null!=(p=t.options.maxMultiSortColCount)?p:Number.MAX_SAFE_INTEGER))}else c="toggle"===l?a.map(t=>t.id===e.id?{...t,desc:f}:t):"remove"===l?a.filter(t=>t.id!==e.id):[{id:e.id,desc:f}];return c})},getFirstSortDir:()=>{var r,n;return(null!=(r=null!=(n=e.columnDef.sortDescFirst)?n:t.options.sortDescFirst)?r:"desc"===e.getAutoSortDir())?"desc":"asc"},getNextSortingOrder:r=>{var n,o;let i=e.getFirstSortDir(),a=e.getIsSorted();return a?(a===i||null!=(n=t.options.enableSortingRemoval)&&!n||!!r&&null!=(o=t.options.enableMultiRemove)&&!o)&&("desc"===a?"asc":"desc"):i},getCanSort:()=>{var r,n;return(null==(r=e.columnDef.enableSorting)||r)&&(null==(n=t.options.enableSorting)||n)&&!!e.accessorFn},getCanMultiSort:()=>{var r,n;return null!=(r=null!=(n=e.columnDef.enableMultiSort)?n:t.options.enableMultiSort)?r:!!e.accessorFn},getIsSorted:()=>{var r;let n=null==(r=t.getState().sorting)?void 0:r.find(t=>t.id===e.id);return!!n&&(n.desc?"desc":"asc")},getSortIndex:()=>{var r,n;return null!=(r=null==(n=t.getState().sorting)?void 0:n.findIndex(t=>t.id===e.id))?r:-1},clearSorting:()=>{t.setSorting(t=>null!=t&&t.length?t.filter(t=>t.id!==e.id):[])},getToggleSortingHandler:()=>{let r=e.getCanSort();return n=>{r&&(null==n.persist||n.persist(),null==e.toggleSorting||e.toggleSorting(void 0,!!e.getCanMultiSort()&&(null==t.options.isMultiSortEvent?void 0:t.options.isMultiSortEvent(n))))}}}),createTable:e=>({setSorting:t=>null==e.options.onSortingChange?void 0:e.options.onSortingChange(t),resetSorting:t=>{var r,n;e.setSorting(t?[]:null!=(r=null==(n=e.initialState)?void 0:n.sorting)?r:[])},getPreSortedRowModel:()=>e.getGroupedRowModel(),getSortedRowModel:()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel)?e.getPreSortedRowModel():e._getSortedRowModel()})},{getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,r;return null!=(t=null==(r=e.getValue())||null==r.toString?void 0:r.toString())?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:o("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>({toggleGrouping:()=>{t.setGrouping(t=>null!=t&&t.includes(e.id)?t.filter(t=>t!==e.id):[...null!=t?t:[],e.id])},getCanGroup:()=>{var r,n,o,i;return null!=(r=null==(n=null!=(o=null==(i=e.columnDef.enableGrouping)||i)?o:t.options.enableGrouping)||n)?r:!!e.accessorFn},getIsGrouped:()=>{var r;return null==(r=t.getState().grouping)?void 0:r.includes(e.id)},getGroupedIndex:()=>{var r;return null==(r=t.getState().grouping)?void 0:r.indexOf(e.id)},getToggleGroupingHandler:()=>{let t=e.getCanGroup();return()=>{t&&e.toggleGrouping()}},getAutoAggregationFn:()=>{let r=t.getCoreRowModel().flatRows[0],n=null==r?void 0:r.getValue(e.id);return"number"==typeof n?A.sum:"[object Date]"===Object.prototype.toString.call(n)?A.extent:void 0},getAggregationFn:()=>{var r,n;if(!e)throw Error();return i(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:"auto"===e.columnDef.aggregationFn?e.getAutoAggregationFn():null!=(r=null==(n=t.options.aggregationFns)?void 0:n[e.columnDef.aggregationFn])?r:A[e.columnDef.aggregationFn]}}),createTable:e=>({setGrouping:t=>null==e.options.onGroupingChange?void 0:e.options.onGroupingChange(t),resetGrouping:t=>{var r,n;e.setGrouping(t?[]:null!=(r=null==(n=e.initialState)?void 0:n.grouping)?r:[])},getPreGroupedRowModel:()=>e.getFilteredRowModel(),getGroupedRowModel:()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel)?e.getPreGroupedRowModel():e._getGroupedRowModel()}),createRow:e=>({getIsGrouped:()=>!!e.groupingColumnId,_groupingValuesCache:{}}),createCell:(e,t,r,n)=>({getIsGrouped:()=>t.getIsGrouped()&&t.id===r.groupingColumnId,getIsPlaceholder:()=>!e.getIsGrouped()&&t.getIsGrouped(),getIsAggregated:()=>{var t;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!(null!=(t=r.subRows)&&t.length)}})},{getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:o("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,r=!1;return{_autoResetExpanded:()=>{var n,o;if(!t)return void e._queue(()=>{t=!0});if(null!=(n=null!=(o=e.options.autoResetAll)?o:e.options.autoResetExpanded)?n:!e.options.manualExpanding){if(r)return;r=!0,e._queue(()=>{e.resetExpanded(),r=!1})}},setExpanded:t=>null==e.options.onExpandedChange?void 0:e.options.onExpandedChange(t),toggleAllRowsExpanded:t=>{(null!=t?t:!e.getIsAllRowsExpanded())?e.setExpanded(!0):e.setExpanded({})},resetExpanded:t=>{var r,n;e.setExpanded(t?{}:null!=(r=null==(n=e.initialState)?void 0:n.expanded)?r:{})},getCanSomeRowsExpand:()=>e.getRowModel().flatRows.some(e=>e.getCanExpand()),getToggleAllRowsExpandedHandler:()=>t=>{null==t.persist||t.persist(),e.toggleAllRowsExpanded()},getIsSomeRowsExpanded:()=>{let t=e.getState().expanded;return!0===t||Object.values(t).some(Boolean)},getIsAllRowsExpanded:()=>{let t=e.getState().expanded;return"boolean"==typeof t?!0===t:!(!Object.keys(t).length||e.getRowModel().flatRows.some(e=>!e.getIsExpanded()))},getExpandedDepth:()=>{let t=0;return(!0===e.getState().expanded?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(e=>{let r=e.split(".");t=Math.max(t,r.length)}),t},getPreExpandedRowModel:()=>e.getSortedRowModel(),getExpandedRowModel:()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel)?e.getPreExpandedRowModel():e._getExpandedRowModel()}},createRow:(e,t)=>({toggleExpanded:r=>{t.setExpanded(n=>{var o;let i=!0===n||!!(null!=n&&n[e.id]),a={};if(!0===n?Object.keys(t.getRowModel().rowsById).forEach(e=>{a[e]=!0}):a=n,r=null!=(o=r)?o:!i,!i&&r)return{...a,[e.id]:!0};if(i&&!r){let{[e.id]:t,...r}=a;return r}return n})},getIsExpanded:()=>{var r;let n=t.getState().expanded;return!!(null!=(r=null==t.options.getIsRowExpanded?void 0:t.options.getIsRowExpanded(e))?r:!0===n||(null==n?void 0:n[e.id]))},getCanExpand:()=>{var r,n,o;return null!=(r=null==t.options.getRowCanExpand?void 0:t.options.getRowCanExpand(e))?r:(null==(n=t.options.enableExpanding)||n)&&!!(null!=(o=e.subRows)&&o.length)},getToggleExpandedHandler:()=>{let t=e.getCanExpand();return()=>{t&&e.toggleExpanded()}}})},{getInitialState:e=>({...e,pagination:{...E(),...null==e?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:o("pagination",e)}),createTable:e=>{let t=!1,r=!1;return{_autoResetPageIndex:()=>{var n,o;if(!t)return void e._queue(()=>{t=!0});if(null!=(n=null!=(o=e.options.autoResetAll)?o:e.options.autoResetPageIndex)?n:!e.options.manualPagination){if(r)return;r=!0,e._queue(()=>{e.resetPageIndex(),r=!1})}},setPagination:t=>null==e.options.onPaginationChange?void 0:e.options.onPaginationChange(e=>n(t,e)),resetPagination:t=>{var r;e.setPagination(t?E():null!=(r=e.initialState.pagination)?r:E())},setPageIndex:t=>{e.setPagination(r=>{let o=n(t,r.pageIndex);return o=Math.max(0,Math.min(o,void 0===e.options.pageCount||-1===e.options.pageCount?Number.MAX_SAFE_INTEGER:e.options.pageCount-1)),{...r,pageIndex:o}})},resetPageIndex:t=>{var r,n,o;e.setPageIndex(t?0:null!=(r=null==(n=e.initialState)||null==(o=n.pagination)?void 0:o.pageIndex)?r:0)},resetPageSize:t=>{var r,n,o;e.setPageSize(t?10:null!=(r=null==(n=e.initialState)||null==(o=n.pagination)?void 0:o.pageSize)?r:10)},setPageSize:t=>{e.setPagination(e=>{let r=Math.max(1,n(t,e.pageSize)),o=Math.floor(e.pageSize*e.pageIndex/r);return{...e,pageIndex:o,pageSize:r}})},setPageCount:t=>e.setPagination(r=>{var o;let i=n(t,null!=(o=e.options.pageCount)?o:-1);return"number"==typeof i&&(i=Math.max(-1,i)),{...r,pageCount:i}}),getPageOptions:a(()=>[e.getPageCount()],e=>{let t=[];return e&&e>0&&(t=[...Array(e)].fill(null).map((e,t)=>t)),t},{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getCanPreviousPage:()=>e.getState().pagination.pageIndex>0,getCanNextPage:()=>{let{pageIndex:t}=e.getState().pagination,r=e.getPageCount();return -1===r||0!==r&&te.setPageIndex(e=>e-1),nextPage:()=>e.setPageIndex(e=>e+1),getPrePaginationRowModel:()=>e.getExpandedRowModel(),getPaginationRowModel:()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel)?e.getPrePaginationRowModel():e._getPaginationRowModel(),getPageCount:()=>{var t;return null!=(t=e.options.pageCount)?t:Math.ceil(e.getPrePaginationRowModel().rows.length/e.getState().pagination.pageSize)}}}},{getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:o("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>({setRowSelection:t=>null==e.options.onRowSelectionChange?void 0:e.options.onRowSelectionChange(t),resetRowSelection:t=>{var r;return e.setRowSelection(t?{}:null!=(r=e.initialState.rowSelection)?r:{})},toggleAllRowsSelected:t=>{e.setRowSelection(r=>{t=void 0!==t?t:!e.getIsAllRowsSelected();let n={...r},o=e.getPreGroupedRowModel().flatRows;return t?o.forEach(e=>{e.getCanSelect()&&(n[e.id]=!0)}):o.forEach(e=>{delete n[e.id]}),n})},toggleAllPageRowsSelected:t=>e.setRowSelection(r=>{let n=void 0!==t?t:!e.getIsAllPageRowsSelected(),o={...r};return e.getRowModel().rows.forEach(t=>{_(o,t.id,n,e)}),o}),getPreSelectedRowModel:()=>e.getCoreRowModel(),getSelectedRowModel:a(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,r)=>Object.keys(t).length?M(e,r):{rows:[],flatRows:[],rowsById:{}},{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getFilteredSelectedRowModel:a(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,r)=>Object.keys(t).length?M(e,r):{rows:[],flatRows:[],rowsById:{}},{key:"getFilteredSelectedRowModel",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getGroupedSelectedRowModel:a(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,r)=>Object.keys(t).length?M(e,r):{rows:[],flatRows:[],rowsById:{}},{key:"getGroupedSelectedRowModel",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getIsAllRowsSelected:()=>{let t=e.getFilteredRowModel().flatRows,{rowSelection:r}=e.getState(),n=!!(t.length&&Object.keys(r).length);return n&&t.some(e=>e.getCanSelect()&&!r[e.id])&&(n=!1),n},getIsAllPageRowsSelected:()=>{let t=e.getPaginationRowModel().flatRows,{rowSelection:r}=e.getState(),n=!!t.length;return n&&t.some(e=>e.getCanSelect()&&!r[e.id])&&(n=!1),n},getIsSomeRowsSelected:()=>{var t;let r=Object.keys(null!=(t=e.getState().rowSelection)?t:{}).length;return r>0&&r{let t=e.getPaginationRowModel().flatRows;return!e.getIsAllPageRowsSelected()&&t.some(e=>e.getIsSelected()||e.getIsSomeSelected())},getToggleAllRowsSelectedHandler:()=>t=>{e.toggleAllRowsSelected(t.target.checked)},getToggleAllPageRowsSelectedHandler:()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}}),createRow:(e,t)=>({toggleSelected:r=>{let n=e.getIsSelected();t.setRowSelection(o=>{if(r=void 0!==r?r:!n,n===r)return o;let i={...o};return _(i,e.id,r,t),i})},getIsSelected:()=>{let{rowSelection:r}=t.getState();return C(e,r)},getIsSomeSelected:()=>{let{rowSelection:r}=t.getState();return"some"===k(e,r)},getIsAllSubRowsSelected:()=>{let{rowSelection:r}=t.getState();return"all"===k(e,r)},getCanSelect:()=>{var r;return"function"==typeof t.options.enableRowSelection?t.options.enableRowSelection(e):null==(r=t.options.enableRowSelection)||r},getCanSelectSubRows:()=>{var r;return"function"==typeof t.options.enableSubRowSelection?t.options.enableSubRowSelection(e):null==(r=t.options.enableSubRowSelection)||r},getCanMultiSelect:()=>{var r;return"function"==typeof t.options.enableMultiRowSelection?t.options.enableMultiRowSelection(e):null==(r=t.options.enableMultiRowSelection)||r},getToggleSelectedHandler:()=>{let t=e.getCanSelect();return r=>{var n;t&&e.toggleSelected(null==(n=r.target)?void 0:n.checked)}}})},{getDefaultColumnDef:()=>s,getInitialState:e=>({columnSizing:{},columnSizingInfo:c(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",onColumnSizingChange:o("columnSizing",e),onColumnSizingInfoChange:o("columnSizingInfo",e)}),createColumn:(e,t)=>({getSize:()=>{var r,n,o;let i=t.getState().columnSizing[e.id];return Math.min(Math.max(null!=(r=e.columnDef.minSize)?r:s.minSize,null!=(n=null!=i?i:e.columnDef.size)?n:s.size),null!=(o=e.columnDef.maxSize)?o:s.maxSize)},getStart:r=>{let n=r?"left"===r?t.getLeftVisibleLeafColumns():t.getRightVisibleLeafColumns():t.getVisibleLeafColumns(),o=n.findIndex(t=>t.id===e.id);if(o>0){let e=n[o-1];return e.getStart(r)+e.getSize()}return 0},resetSize:()=>{t.setColumnSizing(t=>{let{[e.id]:r,...n}=t;return n})},getCanResize:()=>{var r,n;return(null==(r=e.columnDef.enableResizing)||r)&&(null==(n=t.options.enableColumnResizing)||n)},getIsResizing:()=>t.getState().columnSizingInfo.isResizingColumn===e.id}),createHeader:(e,t)=>({getSize:()=>{let t=0,r=e=>{if(e.subHeaders.length)e.subHeaders.forEach(r);else{var n;t+=null!=(n=e.column.getSize())?n:0}};return r(e),t},getStart:()=>{if(e.index>0){let t=e.headerGroup.headers[e.index-1];return t.getStart()+t.getSize()}return 0},getResizeHandler:()=>{let r=t.getColumn(e.column.id),n=null==r?void 0:r.getCanResize();return o=>{if(!r||!n||(null==o.persist||o.persist(),p(o)&&o.touches&&o.touches.length>1))return;let i=e.getSize(),a=e?e.getLeafHeaders().map(e=>[e.column.id,e.column.getSize()]):[[r.id,r.getSize()]],l=p(o)?Math.round(o.touches[0].clientX):o.clientX,u={},s=(e,r)=>{"number"==typeof r&&(t.setColumnSizingInfo(e=>{var t,n;let o=r-(null!=(t=null==e?void 0:e.startOffset)?t:0),i=Math.max(o/(null!=(n=null==e?void 0:e.startSize)?n:0),-.999999);return e.columnSizingStart.forEach(e=>{let[t,r]=e;u[t]=Math.round(100*Math.max(r+r*i,0))/100}),{...e,deltaOffset:o,deltaPercentage:i}}),("onChange"===t.options.columnResizeMode||"end"===e)&&t.setColumnSizing(e=>({...e,...u})))},c=e=>{s("end",e),t.setColumnSizingInfo(e=>({...e,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},d={moveHandler:e=>s("move",e.clientX),upHandler:e=>{document.removeEventListener("mousemove",d.moveHandler),document.removeEventListener("mouseup",d.upHandler),c(e.clientX)}},h={moveHandler:e=>(e.cancelable&&(e.preventDefault(),e.stopPropagation()),s("move",e.touches[0].clientX),!1),upHandler:e=>{var t;document.removeEventListener("touchmove",h.moveHandler),document.removeEventListener("touchend",h.upHandler),e.cancelable&&(e.preventDefault(),e.stopPropagation()),c(null==(t=e.touches[0])?void 0:t.clientX)}},y=!!function(){if("boolean"==typeof f)return f;let e=!1;try{let t=()=>{};window.addEventListener("test",t,{get passive(){return e=!0,!1}}),window.removeEventListener("test",t)}catch(t){e=!1}return f=e}()&&{passive:!1};p(o)?(document.addEventListener("touchmove",h.moveHandler,y),document.addEventListener("touchend",h.upHandler,y)):(document.addEventListener("mousemove",d.moveHandler,y),document.addEventListener("mouseup",d.upHandler,y)),t.setColumnSizingInfo(e=>({...e,startOffset:l,startSize:i,deltaOffset:0,deltaPercentage:0,columnSizingStart:a,isResizingColumn:r.id}))}}}),createTable:e=>({setColumnSizing:t=>null==e.options.onColumnSizingChange?void 0:e.options.onColumnSizingChange(t),setColumnSizingInfo:t=>null==e.options.onColumnSizingInfoChange?void 0:e.options.onColumnSizingInfoChange(t),resetColumnSizing:t=>{var r;e.setColumnSizing(t?{}:null!=(r=e.initialState.columnSizing)?r:{})},resetHeaderSizeInfo:t=>{var r;e.setColumnSizingInfo(t?c():null!=(r=e.initialState.columnSizingInfo)?r:c())},getTotalSize:()=>{var t,r;return null!=(t=null==(r=e.getHeaderGroups()[0])?void 0:r.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},getLeftTotalSize:()=>{var t,r;return null!=(t=null==(r=e.getLeftHeaderGroups()[0])?void 0:r.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},getCenterTotalSize:()=>{var t,r;return null!=(t=null==(r=e.getCenterHeaderGroups()[0])?void 0:r.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},getRightTotalSize:()=>{var t,r;return null!=(t=null==(r=e.getRightHeaderGroups()[0])?void 0:r.headers.reduce((e,t)=>e+t.getSize(),0))?t:0}})}];function B(e){var t;(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...");let r={_features:F},o=r._features.reduce((e,t)=>Object.assign(e,null==t.getDefaultOptions?void 0:t.getDefaultOptions(r)),{}),i={...null!=(t=e.initialState)?t:{}};r._features.forEach(e=>{var t;i=null!=(t=null==e.getInitialState?void 0:e.getInitialState(i))?t:i});let l=[],u=!1,s={_features:F,options:{...o,...e},initialState:i,_queue:e=>{l.push(e),u||(u=!0,Promise.resolve().then(()=>{for(;l.length;)l.shift()();u=!1}).catch(e=>setTimeout(()=>{throw e})))},reset:()=>{r.setState(r.initialState)},setOptions:e=>{var t;t=n(e,r.options),r.options=r.options.mergeOptions?r.options.mergeOptions(o,t):{...o,...t}},getState:()=>r.options.state,setState:e=>{null==r.options.onStateChange||r.options.onStateChange(e)},_getRowId:(e,t,n)=>{var o;return null!=(o=null==r.options.getRowId?void 0:r.options.getRowId(e,t,n))?o:`${n?[n.id,t].join("."):t}`},getCoreRowModel:()=>(r._getCoreRowModel||(r._getCoreRowModel=r.options.getCoreRowModel(r)),r._getCoreRowModel()),getRowModel:()=>r.getPaginationRowModel(),getRow:e=>{let t=r.getRowModel().rowsById[e];if(!t)throw Error();return t},_getDefaultColumnDef:a(()=>[r.options.defaultColumn],e=>{var t;return e=null!=(t=e)?t:{},{header:e=>{let t=e.header.column.columnDef;return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>{var t,r;return null!=(t=null==(r=e.renderValue())||null==r.toString?void 0:r.toString())?t:null},...r._features.reduce((e,t)=>Object.assign(e,null==t.getDefaultColumnDef?void 0:t.getDefaultColumnDef()),{}),...e}},{debug:()=>{var e;return null!=(e=r.options.debugAll)?e:r.options.debugColumns},key:!1}),_getColumnDefs:()=>r.options.columns,getAllColumns:a(()=>[r._getColumnDefs()],e=>{let t=function(e,n,o){return void 0===o&&(o=0),e.map(e=>{let i=function(e,t,r,n){var o,i;let l,u={...e._getDefaultColumnDef(),...t},s=u.accessorKey,c=null!=(o=null!=(i=u.id)?i:s?s.replace(".","_"):void 0)?o:"string"==typeof u.header?u.header:void 0;if(u.accessorFn?l=u.accessorFn:s&&(l=s.includes(".")?e=>{let t=e;for(let e of s.split(".")){var r;t=null==(r=t)?void 0:r[e]}return t}:e=>e[u.accessorKey]),!c)throw Error();let f={id:`${String(c)}`,accessorFn:l,parent:n,depth:r,columnDef:u,columns:[],getFlatColumns:a(()=>[!0],()=>{var e;return[f,...null==(e=f.columns)?void 0:e.flatMap(e=>e.getFlatColumns())]},{key:"column.getFlatColumns",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),getLeafColumns:a(()=>[e._getOrderColumnsFn()],e=>{var t;return null!=(t=f.columns)&&t.length?e(f.columns.flatMap(e=>e.getLeafColumns())):[f]},{key:"column.getLeafColumns",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}})};return f=e._features.reduce((t,r)=>Object.assign(t,null==r.createColumn?void 0:r.createColumn(f,e)),f)}(r,e,o,n);return i.columns=e.columns?t(e.columns,i,o+1):[],i})};return t(e)},{key:!1,debug:()=>{var e;return null!=(e=r.options.debugAll)?e:r.options.debugColumns}}),getAllFlatColumns:a(()=>[r.getAllColumns()],e=>e.flatMap(e=>e.getFlatColumns()),{key:!1,debug:()=>{var e;return null!=(e=r.options.debugAll)?e:r.options.debugColumns}}),_getAllFlatColumnsById:a(()=>[r.getAllFlatColumns()],e=>e.reduce((e,t)=>(e[t.id]=t,e),{}),{key:!1,debug:()=>{var e;return null!=(e=r.options.debugAll)?e:r.options.debugColumns}}),getAllLeafColumns:a(()=>[r.getAllColumns(),r._getOrderColumnsFn()],(e,t)=>t(e.flatMap(e=>e.getLeafColumns())),{key:!1,debug:()=>{var e;return null!=(e=r.options.debugAll)?e:r.options.debugColumns}}),getColumn:e=>r._getAllFlatColumnsById()[e]};return Object.assign(r,s),r._features.forEach(e=>Object.assign(r,null==e.createTable?void 0:e.createTable(r))),r}let L=(e,t,r,n,o,i)=>{let l={id:t,index:n,original:r,depth:o,_valuesCache:{},_uniqueValuesCache:{},getValue:t=>{if(l._valuesCache.hasOwnProperty(t))return l._valuesCache[t];let r=e.getColumn(t);if(null!=r&&r.accessorFn)return l._valuesCache[t]=r.accessorFn(l.original,n),l._valuesCache[t]},getUniqueValues:t=>{if(l._uniqueValuesCache.hasOwnProperty(t))return l._uniqueValuesCache[t];let r=e.getColumn(t);if(null!=r&&r.accessorFn)return r.columnDef.getUniqueValues?l._uniqueValuesCache[t]=r.columnDef.getUniqueValues(l.original,n):l._uniqueValuesCache[t]=[l.getValue(t)],l._uniqueValuesCache[t]},renderValue:t=>{var r;return null!=(r=l.getValue(t))?r:e.options.renderFallbackValue},subRows:null!=i?i:[],getLeafRows:()=>{var e,t;let r,n;return e=l.subRows,t=e=>e.subRows,r=[],(n=e=>{e.forEach(e=>{r.push(e);let o=t(e);null!=o&&o.length&&n(o)})})(e),r},getAllCells:a(()=>[e.getAllLeafColumns()],t=>t.map(t=>{var r;let n;return r=t.id,n={id:`${l.id}_${t.id}`,row:l,column:t,getValue:()=>l.getValue(r),renderValue:()=>{var t;return null!=(t=n.getValue())?t:e.options.renderFallbackValue},getContext:a(()=>[e,t,l,n],(e,t,r,n)=>({table:e,column:t,row:r,cell:n,getValue:n.getValue,renderValue:n.renderValue}),{key:!1,debug:()=>e.options.debugAll})},e._features.forEach(r=>{Object.assign(n,null==r.createCell?void 0:r.createCell(n,t,l,e))},{}),n}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugRows}}),_getAllCellsByColumnId:a(()=>[l.getAllCells()],e=>e.reduce((e,t)=>(e[t.column.id]=t,e),{}),{key:"row.getAllCellsByColumnId",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugRows}})};for(let t=0;ta(()=>[e.options.data],t=>{let r={rows:[],flatRows:[],rowsById:{}},n=function(t,o,i){void 0===o&&(o=0);let a=[];for(let u=0;u{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}})}},40387:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var n=(0,r(41495).A)("outline","download","IconDownload",[["path",{d:"M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2",key:"svg-0"}],["path",{d:"M7 11l5 5l5 -5",key:"svg-1"}],["path",{d:"M12 4l0 12",key:"svg-2"}]])},40684:(e,t,r)=>{"use strict";r.d(t,{u:()=>h});var n=r(50212),o=r(55729),i=r(15019),a=r.n(i),l=r(53645),u=r(7571),s=r(93780);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function p(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=Array(t);rtypeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],u=!0,s=!1;try{i=(r=r.call(e)).next,!1;for(;!(u=(n=i.call(r)).done)&&(l.push(n.value),2!==l.length);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(r,2)||function(e,t){if(e){if("string"==typeof e)return d(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return d(e,2)}}(r,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),T=k[0],I=k[1],R=(0,o.useCallback)(function(e,t){I(function(r){var n=Math.round(e),o=Math.round(t);return r.containerWidth===n&&r.containerHeight===o?r:{containerWidth:n,containerHeight:o}})},[]);(0,o.useEffect)(function(){var e=function(e){var t,r=e[0].contentRect,n=r.width,o=r.height;R(n,o),null==(t=C.current)||t.call(C,n,o)};j>0&&(e=a()(e,j,{trailing:!0,leading:!1}));var t=new ResizeObserver(e),r=M.current.getBoundingClientRect();return R(r.width,r.height),t.observe(M.current),function(){t.disconnect()}},[R,j]);var D=(0,o.useMemo)(function(){var e=T.containerWidth,t=T.containerHeight;if(e<0||t<0)return null;(0,u.R)((0,l._3)(y)||(0,l._3)(v),"The width(%s) and height(%s) are both fixed numbers,\n maybe you don't need to use a ResponsiveContainer.",y,v),(0,u.R)(!i||i>0,"The aspect(%s) must be greater than zero.",i);var r=(0,l._3)(y)?e:y,n=(0,l._3)(v)?t:v;i&&i>0&&(r?n=r/i:n&&(r=n*i),w&&n>w&&(n=w)),(0,u.R)(r>0||n>0,"The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.",r,n,y,v,b,x,i);var a=!Array.isArray(O)&&(0,s.Mn)(O.type).endsWith("Chart");return o.Children.map(O,function(e){return o.isValidElement(e)?(0,o.cloneElement)(e,p({width:r,height:n},a?{style:p({height:"100%",width:"100%",maxHeight:n,maxWidth:r},e.props.style)}:{})):e})},[i,O,v,w,x,b,T,y]);return o.createElement("div",{id:A?"".concat(A):void 0,className:(0,n.A)("recharts-responsive-container",E),style:p(p({},void 0===_?{}:_),{},{width:y,height:v,minWidth:b,minHeight:x,maxHeight:w}),ref:M},D)})},41053:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},41499:(e,t,r)=>{"use strict";r.d(t,{A:()=>function e(){var t=new n,r=[],o=[],i=l;function u(e){let n=t.get(e);if(void 0===n){if(i!==l)return i;t.set(e,n=r.push(e)-1)}return o[n%o.length]}return u.domain=function(e){if(!arguments.length)return r.slice();for(let o of(r=[],t=new n,e))t.has(o)||t.set(o,r.push(o)-1);return u},u.range=function(e){return arguments.length?(o=Array.from(e),u):o.slice()},u.unknown=function(e){return arguments.length?(i=e,u):i},u.copy=function(){return e(r,o).unknown(i)},a.C.apply(u,arguments),u},h:()=>l});class n extends Map{constructor(e,t=i){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,r]of e)this.set(t,r)}get(e){return super.get(o(this,e))}has(e){return super.has(o(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},r){let n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},r){let n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}(this,e))}}function o({_intern:e,_key:t},r){let n=t(r);return e.has(n)?e.get(n):r}function i(e){return null!==e&&"object"==typeof e?e.valueOf():e}var a=r(58905);let l=Symbol("implicit")},41798:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},42130:(e,t,r)=>{"use strict";r.d(t,{A:()=>function e(t,r){var u,s,c=typeof r;return null==r||"boolean"===c?(0,l.A)(r):("number"===c?i.A:"string"===c?(s=(0,n.Ay)(r))?(r=s,o.Ay):a.A:r instanceof n.Ay?o.Ay:r instanceof Date?function(e,t){var r=new Date;return e*=1,t*=1,function(n){return r.setTime(e*(1-n)+t*n),r}}:!ArrayBuffer.isView(u=r)||u instanceof DataView?Array.isArray(r)?function(t,r){var n,o=r?r.length:0,i=t?Math.min(o,t.length):0,a=Array(i),l=Array(o);for(n=0;n{var n=r(91878),o=r(67972),i=r(27679);e.exports=function(e){return"string"==typeof e||!o(e)&&i(e)&&"[object String]"==n(e)}},42206:(e,t,r)=>{e.exports=r(75011)(r(42648),"Map")},42648:(e,t,r)=>{var n=r(27457),o="object"==typeof self&&self&&self.Object===Object&&self;e.exports=n||o||Function("return this")()},42878:(e,t,r)=>{e.exports=r(75011)(r(42648),"WeakMap")},43001:(e,t,r)=>{var n=r(10321),o=r(26139),i=r(32132),a=r(51032);e.exports=function(e,t,r){if(!a(r))return!1;var l=typeof t;return("number"==l?!!(o(r)&&i(t,r.length)):"string"==l&&t in r)&&n(r[t],e)}},43248:(e,t,r)=>{var n=r(32202),o=r(5632),i=r(63660),a=r(87746),l=r(14616),u=r(83622);e.exports=function(e,t,r){var s=-1,c=o,f=e.length,p=!0,d=[],h=d;if(r)p=!1,c=i;else if(f>=200){var y=t?null:l(e);if(y)return u(y);p=!1,c=a,h=new n}else h=t?[]:d;t:for(;++s{var n=r(13318),o=r(34945),i=r(79888);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?i(t[0][0],t[0][1]):function(r){return r===e||n(r,e,t)}}},43720:e=>{e.exports=function(e){return function(t){return e(t)}}},44361:e=>{var t=/\s/;e.exports=function(e){for(var r=e.length;r--&&t.test(e.charAt(r)););return r}},44409:(e,t,r)=>{e=r.nmd(e);var n=r(42648),o=r(29054),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,l=a&&a.exports===i?n.Buffer:void 0,u=l?l.isBuffer:void 0;e.exports=u||o},44457:e=>{e.exports=function(e,t,r){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(o);++n{var n=r(51856);e.exports=function(e,t){var r;return n(e,function(e,n,o){return!(r=t(e,n,o))}),!!r}},45005:(e,t,r)=>{"use strict";r.d(t,{n:()=>T});var n=r(6029),o=r(60466),i=r(3001),a=r(26615);r(55729);var l=r(6406),u=r(76),s=r(5618),c=r(80616),f=r(37666),p=r(60481),d=r(43016),h=r(36254);let[y,g]=(0,h.F)("Accordion component was not found in the tree");var v=r(89876),m=r(66062),b=r(8737);let[x,w]=(0,h.F)("Accordion.Item component was not found in the tree");var O={root:"m_9bdbb667",panel:"m_df78851f",content:"m_4ba554d4",itemTitle:"m_8fa820a0",control:"m_4ba585b8","control--default":"m_6939a5e9","control--contained":"m_4271d21b",label:"m_df3ffa0f",chevron:"m_3f35ae96",icon:"m_9bd771fe",item:"m_9bd7b098","item--default":"m_fe19b709","item--contained":"m_1f921b3b","item--filled":"m_2cdf939a","item--separated":"m_9f59b069"};let S={},j=(0,d.P9)((e,t)=>{let{classNames:r,className:o,style:i,styles:a,vars:l,chevron:u,icon:s,onClick:f,onKeyDown:d,children:h,disabled:y,mod:v,...x}=(0,c.Y)("AccordionControl",S,e),{value:O}=w(),j=g(),A=j.isItemActive(O),E="number"==typeof j.order,P=`h${j.order}`,_=(0,n.jsxs)(b.N,{...x,...j.getStyles("control",{className:o,classNames:r,style:i,styles:a,variant:j.variant}),unstyled:j.unstyled,mod:["accordion-control",{active:A,"chevron-position":j.chevronPosition,disabled:y},v],ref:t,onClick:e=>{f?.(e),j.onChange(O)},type:"button",disabled:y,"aria-expanded":A,"aria-controls":j.getRegionId(O),id:j.getControlId(O),onKeyDown:(0,m.Y)({siblingSelector:"[data-accordion-control]",parentSelector:"[data-accordion]",activateOnFocus:!1,loop:j.loop,orientation:"vertical",onKeyDown:d}),children:[(0,n.jsx)(p.a,{component:"span",mod:{rotate:!j.disableChevronRotation&&A,position:j.chevronPosition},...j.getStyles("chevron",{classNames:r,styles:a}),children:u||j.chevron}),(0,n.jsx)("span",{...j.getStyles("label",{classNames:r,styles:a}),children:h}),s&&(0,n.jsx)(p.a,{component:"span",mod:{"chevron-position":j.chevronPosition},...j.getStyles("icon",{classNames:r,styles:a}),children:s})]});return E?(0,n.jsx)(P,{...j.getStyles("itemTitle",{classNames:r,styles:a}),children:_}):_});j.displayName="@mantine/core/AccordionControl",j.classes=O;let A={},E=(0,d.P9)((e,t)=>{let{classNames:r,className:o,style:i,styles:a,vars:l,value:u,mod:s,...f}=(0,c.Y)("AccordionItem",A,e),d=g();return(0,n.jsx)(x,{value:{value:u},children:(0,n.jsx)(p.a,{ref:t,mod:[{active:d.isItemActive(u)},s],...d.getStyles("item",{className:o,classNames:r,styles:a,style:i,variant:d.variant}),...f})})});E.displayName="@mantine/core/AccordionItem",E.classes=O;var P=r(22599);let _={},M=(0,d.P9)((e,t)=>{let{classNames:r,className:o,style:i,styles:a,vars:l,children:u,...s}=(0,c.Y)("AccordionPanel",_,e),{value:f}=w(),p=g();return(0,n.jsx)(P.S,{ref:t,...p.getStyles("panel",{className:o,classNames:r,style:i,styles:a}),...s,in:p.isItemActive(f),transitionDuration:p.transitionDuration??200,role:"region",id:p.getRegionId(f),"aria-labelledby":p.getControlId(f),children:(0,n.jsx)("div",{...p.getStyles("content",{classNames:r,styles:a}),children:u})})});M.displayName="@mantine/core/AccordionPanel",M.classes=O;let C={multiple:!1,disableChevronRotation:!1,chevronPosition:"right",variant:"default",chevron:(0,n.jsx)(v.U,{})},k=(0,s.V)((e,{transitionDuration:t,chevronSize:r,radius:n})=>({root:{"--accordion-transition-duration":void 0===t?void 0:`${t}ms`,"--accordion-chevron-size":void 0===r?void 0:(0,a.D)(r),"--accordion-radius":void 0===n?void 0:(0,u.nJ)(n)}}));function T(e){let t=(0,c.Y)("Accordion",C,e),{classNames:r,className:a,style:u,styles:s,unstyled:d,vars:h,children:g,multiple:v,value:m,defaultValue:b,onChange:x,id:w,loop:S,transitionDuration:j,disableChevronRotation:A,chevronPosition:E,chevronSize:P,order:_,chevron:M,variant:T,radius:I,...R}=t,D=(0,o.B)(w),[N,F]=(0,i.Z)({value:m,defaultValue:b,finalValue:v?[]:null,onChange:x}),B=(0,f.I)({name:"Accordion",classes:O,props:t,className:a,style:u,classNames:r,styles:s,unstyled:d,vars:h,varsResolver:k});return(0,n.jsx)(y,{value:{isItemActive:e=>Array.isArray(N)?N.includes(e):e===N,onChange:e=>{F(Array.isArray(N)?N.includes(e)?N.filter(t=>t!==e):[...N,e]:e===N?null:e)},getControlId:(0,l.r)(`${D}-control`,"Accordion.Item component was rendered with invalid value or without value"),getRegionId:(0,l.r)(`${D}-panel`,"Accordion.Item component was rendered with invalid value or without value"),transitionDuration:j,disableChevronRotation:A,chevronPosition:E,order:_,chevron:M,loop:S,getStyles:B,variant:T,unstyled:d},children:(0,n.jsx)(p.a,{...B("root"),id:D,...R,variant:T,"data-accordion":!0,children:g})})}T.extend=e=>e,T.withProps=(0,d.LE)(T),T.classes=O,T.displayName="@mantine/core/Accordion",T.Item=E,T.Panel=M,T.Control=j,T.Chevron=v.U},45556:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var n=(0,r(41495).A)("outline","chart-bar","IconChartBar",[["path",{d:"M3 13a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v6a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z",key:"svg-0"}],["path",{d:"M15 9a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v10a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z",key:"svg-1"}],["path",{d:"M9 5a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v14a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z",key:"svg-2"}],["path",{d:"M4 20h14",key:"svg-3"}]])},46181:(e,t,r)=>{"use strict";r.d(t,{a:()=>O});var n=r(6029);r(55729);var o=r(76),i=r(5618),a=r(80616),l=r(37666),u=r(60481),s=r(43016),c=r(20158),f=r(48930);let[p,d]=(0,f.e)(),[h,y]=(0,f.e)();var g={root:"m_7cda1cd6","root--default":"m_44da308b","root--contrast":"m_e3a01f8",label:"m_1e0e6180",remove:"m_ae386778",group:"m_1dcfd90b"};let v={},m=(0,i.V)((e,{gap:t},{size:r})=>({group:{"--pg-gap":void 0!==t?(0,o.YC)(t):(0,o.YC)(r,"pg-gap")}})),b=(0,s.P9)((e,t)=>{let r=(0,a.Y)("PillGroup",v,e),{classNames:o,className:i,style:s,styles:c,unstyled:f,vars:p,size:y,disabled:b,...x}=r,w=d(),O=w?.size||y||void 0,S=(0,l.I)({name:"PillGroup",classes:g,props:r,className:i,style:s,classNames:o,styles:c,unstyled:f,vars:p,varsResolver:m,stylesCtx:{size:O},rootSelector:"group"});return(0,n.jsx)(h,{value:{size:O,disabled:b},children:(0,n.jsx)(u.a,{ref:t,size:O,...S("group"),...x})})});b.classes=g,b.displayName="@mantine/core/PillGroup";let x={variant:"default"},w=(0,i.V)((e,{radius:t},{size:r})=>({root:{"--pill-fz":(0,o.YC)(r,"pill-fz"),"--pill-height":(0,o.YC)(r,"pill-height"),"--pill-radius":void 0===t?void 0:(0,o.nJ)(t)}})),O=(0,s.P9)((e,t)=>{let r=(0,a.Y)("Pill",x,e),{classNames:o,className:i,style:s,styles:f,unstyled:p,vars:h,variant:v,children:m,withRemoveButton:b,onRemove:O,removeButtonProps:S,radius:j,size:A,disabled:E,mod:P,..._}=r,M=y(),C=d(),k=A||M?.size||void 0,T=C?.variant==="filled"?"contrast":v||"default",I=(0,l.I)({name:"Pill",classes:g,props:r,className:i,style:s,classNames:o,styles:f,unstyled:p,vars:h,varsResolver:w,stylesCtx:{size:k}});return(0,n.jsxs)(u.a,{component:"span",ref:t,variant:T,size:k,...I("root",{variant:T}),mod:[{"with-remove":b&&!E,disabled:E||M?.disabled},P],..._,children:[(0,n.jsx)("span",{...I("label"),children:m}),b&&(0,n.jsx)(c.J,{variant:"transparent",radius:j,tabIndex:-1,"aria-hidden":!0,unstyled:p,...S,...I("remove",{className:S?.className,style:S?.style}),onMouseDown:e=>{e.preventDefault(),e.stopPropagation(),S?.onMouseDown?.(e)},onClick:e=>{e.stopPropagation(),O?.(),S?.onClick?.(e)}})]})});O.classes=g,O.displayName="@mantine/core/Pill",O.Group=b},46271:(e,t,r)=>{"use strict";r.d(t,{u:()=>k});var n=r(55729),o=r(16087),i=r.n(o),a=r(96485),l=r.n(a),u=r(50212),s=r(5688),c=r(3780),f=r(25599),p=r(35555),d=r(53645),h=r(27281),y=r(93780),g=r(32347),v=["viewBox"],m=["viewBox"],b=["ticks"];function x(e){return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function w(){return(w=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function A(e,t){for(var r=0;r0?this.props:h)),o<=0||a<=0||!y||!y.length)?null:n.createElement(c.W,{className:(0,u.A)("recharts-cartesian-axis",s),ref:function(t){e.layerReference=t}},r&&this.renderAxisLine(),this.renderTicks(y,this.state.fontSize,this.state.letterSpacing),p.J.renderCallByParent(this.props))}}],r=[{key:"renderTickItem",value:function(e,t,r){return n.isValidElement(e)?n.cloneElement(e,t):i()(e)?e(t):n.createElement(f.E,w({},t,{className:"recharts-cartesian-axis-tick-value"}),r)}}],t&&A(o.prototype,t),r&&A(o,r),Object.defineProperty(o,"prototype",{writable:!1}),o}(n.Component);M(k,"displayName","CartesianAxis"),M(k,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"})},46371:(e,t,r)=>{var n=r(91878),o=r(27679);e.exports=function(e){return o(e)&&"[object Arguments]"==n(e)}},46554:(e,t,r)=>{"use strict";function n(e){return function(){return e}}r.d(t,{A:()=>n})},47122:(e,t,r)=>{"use strict";r.d(t,{h:()=>g});var n=r(55729),o=r(50212),i=r(2549),a=r(46271),l=r(1509);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(s=function(){return!!e})()}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function p(e,t,r){return(t=d(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function d(e){var t=function(e,t){if("object"!=u(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=u(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==u(t)?t:t+""}function h(){return(h=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var n=r(80193),o=r(17466),i=r(90371),a=r(43001);e.exports=i(function(e,t){if(null==e)return[];var r=t.length;return r>1&&a(e,t[0],t[1])?t=[]:r>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),o(e,n(t,1),[])})},47374:(e,t,r)=>{"use strict";r.d(t,{R:()=>n});var n=function(e,t){var r=e.alwaysShow,n=e.ifOverflow;return r&&(n="extendDomain"),n===t}},47803:(e,t,r)=>{"use strict";r.d(t,{i:()=>u});let n=Math.PI,o=2*n,i=o-1e-6;function a(e){this._+=e[0];for(let t=1,r=e.length;t=0))throw Error(`invalid digits: ${e}`);if(t>15)return a;let r=10**t;return function(e){this._+=e[0];for(let t=1,n=e.length;t1e-6)if(Math.abs(f*u-s*c)>1e-6&&i){let d=r-a,h=o-l,y=u*u+s*s,g=Math.sqrt(y),v=Math.sqrt(p),m=i*Math.tan((n-Math.acos((y+p-(d*d+h*h))/(2*g*v)))/2),b=m/v,x=m/g;Math.abs(b-1)>1e-6&&this._append`L${e+b*c},${t+b*f}`,this._append`A${i},${i},0,0,${+(f*d>c*h)},${this._x1=e+x*u},${this._y1=t+x*s}`}else this._append`L${this._x1=e},${this._y1=t}`}arc(e,t,r,a,l,u){if(e*=1,t*=1,r*=1,u=!!u,r<0)throw Error(`negative radius: ${r}`);let s=r*Math.cos(a),c=r*Math.sin(a),f=e+s,p=t+c,d=1^u,h=u?a-l:l-a;null===this._x1?this._append`M${f},${p}`:(Math.abs(this._x1-f)>1e-6||Math.abs(this._y1-p)>1e-6)&&this._append`L${f},${p}`,r&&(h<0&&(h=h%o+o),h>i?this._append`A${r},${r},0,1,${d},${e-s},${t-c}A${r},${r},0,1,${d},${this._x1=f},${this._y1=p}`:h>1e-6&&this._append`A${r},${r},0,${+(h>=n)},${d},${this._x1=e+r*Math.cos(l)},${this._y1=t+r*Math.sin(l)}`)}rect(e,t,r,n){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${r*=1}v${+n}h${-r}Z`}toString(){return this._}}function u(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(null==r)t=null;else{let e=Math.floor(r);if(!(e>=0))throw RangeError(`invalid digits: ${r}`);t=e}return e},()=>new l(t)}l.prototype},48598:e=>{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},48916:(e,t,r)=>{var n=r(67972),o=r(28343),i=r(97655),a=r(1315);e.exports=function(e,t){return n(e)?e:o(e,t)?[e]:i(a(e))}},48936:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},49109:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var n=(0,r(41495).A)("filled","caret-up-filled","IconCaretUpFilled",[["path",{d:"M11.293 7.293a1 1 0 0 1 1.32 -.083l.094 .083l6 6l.083 .094l.054 .077l.054 .096l.017 .036l.027 .067l.032 .108l.01 .053l.01 .06l.004 .057l.002 .059l-.002 .059l-.005 .058l-.009 .06l-.01 .052l-.032 .108l-.027 .067l-.07 .132l-.065 .09l-.073 .081l-.094 .083l-.077 .054l-.096 .054l-.036 .017l-.067 .027l-.108 .032l-.053 .01l-.06 .01l-.057 .004l-.059 .002h-12c-.852 0 -1.297 -.986 -.783 -1.623l.076 -.084l6 -6z",key:"svg-0"}]])},49726:(e,t,r)=>{"use strict";r.d(t,{A:()=>i,z:()=>a});var n=r(58905),o=r(41499);function i(){var e,t,r=(0,o.A)().unknown(void 0),a=r.domain,l=r.range,u=0,s=1,c=!1,f=0,p=0,d=.5;function h(){var r=a().length,n=s{var n=r(46371),o=r(27679),i=Object.prototype,a=i.hasOwnProperty,l=i.propertyIsEnumerable;e.exports=n(function(){return arguments}())?n:function(e){return o(e)&&a.call(e,"callee")&&!l.call(e,"callee")}},50086:(e,t,r)=>{var n=r(3817),o=r(49757),i=r(67972),a=r(44409),l=r(32132),u=r(7334),s=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=i(e),c=!r&&o(e),f=!r&&!c&&a(e),p=!r&&!c&&!f&&u(e),d=r||c||f||p,h=d?n(e.length,String):[],y=h.length;for(var g in e)(t||s.call(e,g))&&!(d&&("length"==g||f&&("offset"==g||"parent"==g)||p&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||l(g,y)))&&h.push(g);return h}},50934:(e,t,r)=>{var n=r(32202),o=r(10937),i=r(87746);e.exports=function(e,t,r,a,l,u){var s=1&r,c=e.length,f=t.length;if(c!=f&&!(s&&f>c))return!1;var p=u.get(e),d=u.get(t);if(p&&d)return p==t&&d==e;var h=-1,y=!0,g=2&r?new n:void 0;for(u.set(e,t),u.set(t,e);++h{var t="\\ud800-\\udfff",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",n="\\ud83c[\\udffb-\\udfff]",o="[^"+t+"]",i="(?:\\ud83c[\\udde6-\\uddff]){2}",a="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:"+r+"|"+n+")?",u="[\\ufe0e\\ufe0f]?",s="(?:\\u200d(?:"+[o,i,a].join("|")+")"+u+l+")*",c=RegExp(n+"(?="+n+")|"+("(?:"+[o+r+"?",r,i,a,"["+t+"]"].join("|"))+")"+(u+l+s),"g");e.exports=function(e){return e.match(c)||[]}},50962:(e,t,r)=>{var n=r(75011);e.exports=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(e){}}()},51032:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},51856:(e,t,r)=>{var n=r(29692);e.exports=r(20812)(n)},52726:(e,t,r)=>{var n=r(48936),o=r(30051);e.exports=function(e,t){return null!=e&&o(e,t,n)}},52797:(e,t,r)=>{"use strict";r.d(t,{yp:()=>T,GG:()=>L,NE:()=>I,nZ:()=>R,xQ:()=>D});var n=r(55729),o=r(16087),i=r.n(o),a=r(65866),l=r.n(a),u=r(96989),s=r.n(u),c=r(97469),f=r.n(c),p=r(2390),d=r(50212),h=r(92224),y=r(93780);function g(e){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function v(){return(v=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=Array(t);rtypeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],u=!0,s=!1;try{i=(r=r.call(e)).next,!1;for(;!(u=(n=i.call(r)).done)&&(l.push(n.value),2!==l.length);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(t,2)||function(e,t){if(e){if("string"==typeof e)return m(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return m(e,2)}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),a=i[0],l=i[1];(0,n.useEffect)(function(){if(o.current&&o.current.getTotalLength)try{var e=o.current.getTotalLength();e&&l(e)}catch(e){}},[]);var u=r.x,s=r.y,c=r.upperWidth,f=r.lowerWidth,p=r.height,g=r.className,b=r.animationEasing,S=r.animationDuration,j=r.animationBegin,A=r.isUpdateAnimationActive;if(u!==+u||s!==+s||c!==+c||f!==+f||p!==+p||0===c&&0===f||0===p)return null;var E=(0,d.A)("recharts-trapezoid",g);return A?n.createElement(h.Ay,{canBegin:a>0,from:{upperWidth:0,lowerWidth:0,height:p,x:u,y:s},to:{upperWidth:c,lowerWidth:f,height:p,x:u,y:s},duration:S,animationEasing:b,isActive:A},function(e){var t=e.upperWidth,i=e.lowerWidth,l=e.height,u=e.x,s=e.y;return n.createElement(h.Ay,{canBegin:a>0,from:"0px ".concat(-1===a?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:j,duration:S,easing:b},n.createElement("path",v({},(0,y.J9)(r,!0),{className:E,d:w(u,s,t,i,l),ref:o})))}):n.createElement("g",null,n.createElement("path",v({},(0,y.J9)(r,!0),{className:E,d:w(u,s,c,f,p)})))},j=r(11107),A=r(3780),E=r(54460),P=["option","shapeType","propTransformer","activeClassName","isActive"];function _(e){return(_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function M(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function C(e){for(var t=1;t=0)continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,P);if((0,n.isValidElement)(r))t=(0,n.cloneElement)(r,C(C({},f),(0,n.isValidElement)(r)?r.props:r));else if(i()(r))t=r(f);else if(l()(r)&&!s()(r)){var p=(void 0===a?function(e,t){return C(C({},t),e)}:a)(r,f);t=n.createElement(k,{shapeType:o,elementProps:p})}else t=n.createElement(k,{shapeType:o,elementProps:f});return c?n.createElement(A.W,{className:void 0===u?"recharts-active-shape":u},t):t}function I(e,t){return null!=t&&"trapezoids"in e.props}function R(e,t){return null!=t&&"sectors"in e.props}function D(e,t){return null!=t&&"points"in e.props}function N(e,t){var r,n,o=e.x===(null==t||null==(r=t.labelViewBox)?void 0:r.x)||e.x===t.x,i=e.y===(null==t||null==(n=t.labelViewBox)?void 0:n.y)||e.y===t.y;return o&&i}function F(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function B(e,t){var r=e.x===t.x,n=e.y===t.y,o=e.z===t.z;return r&&n&&o}function L(e){var t,r,n,o=e.activeTooltipItem,i=e.graphicalItem,a=e.itemData,l=(I(i,o)?t="trapezoids":R(i,o)?t="sectors":D(i,o)&&(t="points"),t),u=I(i,o)?null==(r=o.tooltipPayload)||null==(r=r[0])||null==(r=r.payload)?void 0:r.payload:R(i,o)?null==(n=o.tooltipPayload)||null==(n=n[0])||null==(n=n.payload)?void 0:n.payload:D(i,o)?o.payload:{},s=a.filter(function(e,t){var r=f()(u,e),n=i.props[l].filter(function(e){var t;return(I(i,o)?t=N:R(i,o)?t=F:D(i,o)&&(t=B),t)(e,o)}),a=i.props[l].indexOf(n[n.length-1]);return r&&t===a});return a.indexOf(s[s.length-1])}},53198:e=>{e.exports=function(e,t,r){for(var n=r-1,o=e.length;++n{"use strict";r.d(t,{f:()=>n});var n=function(e){return null};n.displayName="Cell"},53272:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}},53645:(e,t,r)=>{"use strict";r.d(t,{CG:()=>b,Dj:()=>x,Et:()=>d,F4:()=>v,NF:()=>g,_3:()=>p,eP:()=>w,lX:()=>m,sA:()=>f,vh:()=>h});var n=r(42190),o=r.n(n),i=r(34120),a=r.n(i),l=r(96485),u=r.n(l),s=r(99110),c=r.n(s),f=function(e){return 0===e?0:e>0?1:-1},p=function(e){return o()(e)&&e.indexOf("%")===e.length-1},d=function(e){return c()(e)&&!a()(e)},h=function(e){return d(e)||o()(e)},y=0,g=function(e){var t=++y;return"".concat(e||"").concat(t)},v=function(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!d(e)&&!o()(e))return n;if(p(e)){var l=e.indexOf("%");r=t*parseFloat(e.slice(0,l))/100}else r=+e;return a()(r)&&(r=n),i&&r>t&&(r=t),r},m=function(e){if(!e)return null;var t=Object.keys(e);return t&&t.length?e[t[0]]:null},b=function(e){if(!Array.isArray(e))return!1;for(var t=e.length,r={},n=0;n{"use strict";r.d(t,{i:()=>I});var n=r(55729),o=r(25153),i=r.n(o);let a=Math.cos,l=Math.sin,u=Math.sqrt,s=Math.PI,c=2*s,f={draw(e,t){let r=u(t/s);e.moveTo(r,0),e.arc(0,0,r,0,c)}},p=u(1/3),d=2*p,h=l(s/10)/l(7*s/10),y=l(c/10)*h,g=-a(c/10)*h,v=u(3),m=u(3)/2,b=1/u(12),x=(b/2+1)*3;var w=r(46554),O=r(47803);u(3),u(3);var S=r(50212),j=r(93780);function A(e){return(A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var E=["type","size","sizeType"];function P(){return(P=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,E)),{},{type:o,size:l,sizeType:s}),p=c.className,d=c.cx,h=c.cy,y=(0,j.J9)(c,!0);return d===+d&&h===+h&&l===+l?n.createElement("path",P({},y,{className:(0,S.A)("recharts-symbols",p),transform:"translate(".concat(d,", ").concat(h,")"),d:(t=C["symbol".concat(i()(o))]||f,(function(e,t){let r=null,n=(0,O.i)(o);function o(){let o;if(r||(r=o=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),o)return r=null,o+""||null}return e="function"==typeof e?e:(0,w.A)(e||f),t="function"==typeof t?t:(0,w.A)(void 0===t?64:+t),o.type=function(t){return arguments.length?(e="function"==typeof t?t:(0,w.A)(t),o):e},o.size=function(e){return arguments.length?(t="function"==typeof e?e:(0,w.A)(+e),o):t},o.context=function(e){return arguments.length?(r=null==e?null:e,o):r},o})().type(t).size(T(l,s,o))())})):null};I.registerSymbol=function(e,t){C["symbol".concat(i()(e))]=t}},55426:(e,t,r)=>{"use strict";r.d(t,{u:()=>u});var n=r(55729),o=r(50212),i=r(93780),a=["children","width","height","viewBox","className","style","title","desc"];function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,a),y=s||{width:r,height:u,x:0,y:0},g=(0,o.A)("recharts-surface",c);return n.createElement("svg",l({},(0,i.J9)(h,!0,"svg"),{className:g,width:r,height:u,style:f,viewBox:"".concat(y.x," ").concat(y.y," ").concat(y.width," ").concat(y.height)}),n.createElement("title",null,p),n.createElement("desc",null,d),t)}},55888:(e,t,r)=>{var n=r(32260),o=Math.max;e.exports=function(e,t,r){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,l=o(i.length-t,0),u=Array(l);++a{e.exports=r(61847)()},56464:(e,t,r)=>{"use strict";r.d(t,{I:()=>q});var n=r(55729);function o(){}function i(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function a(e){this._context=e}function l(e){this._context=e}function u(e){this._context=e}a.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:i(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:i(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},l.prototype={areaStart:o,areaEnd:o,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:i(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},u.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:i(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};class s{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}}function c(e){this._context=e}function f(e){this._context=e}function p(e){return new f(e)}c.prototype={areaStart:o,areaEnd:o,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e*=1,t*=1,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function d(e,t,r){var n=e._x1-e._x0,o=t-e._x1,i=(e._y1-e._y0)/(n||o<0&&-0),a=(r-e._y1)/(o||n<0&&-0);return((i<0?-1:1)+(a<0?-1:1))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs((i*o+a*n)/(n+o)))||0}function h(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function y(e,t,r){var n=e._x0,o=e._y0,i=e._x1,a=e._y1,l=(i-n)/3;e._context.bezierCurveTo(n+l,o+l*t,i-l,a-l*r,i,a)}function g(e){this._context=e}function v(e){this._context=new m(e)}function m(e){this._context=e}function b(e){this._context=e}function x(e){var t,r,n=e.length-1,o=Array(n),i=Array(n),a=Array(n);for(o[0]=0,i[0]=2,a[0]=e[0]+2*e[1],t=1;t=0;--t)o[t]=(a[t]-o[t+1])/i[t];for(t=0,i[n-1]=(e[n]+o[n-1])/2;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}}this._x=e,this._y=t}};var O=r(71947),S=r(46554),j=r(47803);function A(e){return e[0]}function E(e){return e[1]}function P(e,t){var r=(0,S.A)(!0),n=null,o=p,i=null,a=(0,j.i)(l);function l(l){var u,s,c,f=(l=(0,O.A)(l)).length,p=!1;for(null==n&&(i=o(c=a())),u=0;u<=f;++u)!(u=f;--p)l.point(v[p],m[p]);l.lineEnd(),l.areaEnd()}g&&(v[c]=+e(d,c,s),m[c]=+t(d,c,s),l.point(n?+n(d,c,s):v[c],r?+r(d,c,s):m[c]))}if(h)return l=null,h+""||null}function c(){return P().defined(o).curve(a).context(i)}return e="function"==typeof e?e:void 0===e?A:(0,S.A)(+e),t="function"==typeof t?t:void 0===t?(0,S.A)(0):(0,S.A)(+t),r="function"==typeof r?r:void 0===r?E:(0,S.A)(+r),s.x=function(t){return arguments.length?(e="function"==typeof t?t:(0,S.A)(+t),n=null,s):e},s.x0=function(t){return arguments.length?(e="function"==typeof t?t:(0,S.A)(+t),s):e},s.x1=function(e){return arguments.length?(n=null==e?null:"function"==typeof e?e:(0,S.A)(+e),s):n},s.y=function(e){return arguments.length?(t="function"==typeof e?e:(0,S.A)(+e),r=null,s):t},s.y0=function(e){return arguments.length?(t="function"==typeof e?e:(0,S.A)(+e),s):t},s.y1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:(0,S.A)(+e),s):r},s.lineX0=s.lineY0=function(){return c().x(e).y(t)},s.lineY1=function(){return c().x(e).y(r)},s.lineX1=function(){return c().x(n).y(t)},s.defined=function(e){return arguments.length?(o="function"==typeof e?e:(0,S.A)(!!e),s):o},s.curve=function(e){return arguments.length?(a=e,null!=i&&(l=a(i)),s):a},s.context=function(e){return arguments.length?(null==e?i=l=null:l=a(i=e),s):i},s}var M=r(25153),C=r.n(M),k=r(16087),T=r.n(k),I=r(50212),R=r(27281),D=r(93780),N=r(53645);function F(e){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function B(){return(B=Object.assign?Object.assign.bind():function(e){for(var t=1;t(u=(a=Math.ceil(p/7))>u?a+1:u+1)&&(i=u,n.length=1),n.reverse();i--;)n.push(0);n.reverse()}for((u=s.length)-(i=c.length)<0&&(i=u,n=c,c=s,s=n),r=0;i;)r=(s[--i]=s[i]+c[i]+r)/1e7|0,s[i]%=1e7;for(r&&(s.unshift(r),++o),u=s.length;0==s[--u];)s.pop();return t.d=s,t.e=o,l?E(t,p):t}function v(e,t,r){if(e!==~~e||er)throw Error(s+e)}function m(e){var t,r,n,o=e.length-1,i="",a=e[0];if(o>0){for(i+=a,t=1;te.e^this.s<0?1:-1;for(t=0,r=(n=this.d.length)<(o=e.d.length)?n:o;te.d[t]^this.s<0?1:-1;return n===o?0:n>o^this.s<0?1:-1},y.decimalPlaces=y.dp=function(){var e=this.d.length-1,t=(e-this.e)*7;if(e=this.d[e])for(;e%10==0;e/=10)t--;return t<0?0:t},y.dividedBy=y.div=function(e){return b(this,new this.constructor(e))},y.dividedToIntegerBy=y.idiv=function(e){var t=this.constructor;return E(b(this,new t(e),0,1),t.precision)},y.equals=y.eq=function(e){return!this.cmp(e)},y.exponent=function(){return w(this)},y.greaterThan=y.gt=function(e){return this.cmp(e)>0},y.greaterThanOrEqualTo=y.gte=function(e){return this.cmp(e)>=0},y.isInteger=y.isint=function(){return this.e>this.d.length-2},y.isNegative=y.isneg=function(){return this.s<0},y.isPositive=y.ispos=function(){return this.s>0},y.isZero=function(){return 0===this.s},y.lessThan=y.lt=function(e){return 0>this.cmp(e)},y.lessThanOrEqualTo=y.lte=function(e){return 1>this.cmp(e)},y.logarithm=y.log=function(e){var t,r=this.constructor,n=r.precision,o=n+5;if(void 0===e)e=new r(10);else if((e=new r(e)).s<1||e.eq(i))throw Error(u+"NaN");if(this.s<1)throw Error(u+(this.s?"NaN":"-Infinity"));return this.eq(i)?new r(0):(l=!1,t=b(j(this,o),j(e,o),o),l=!0,E(t,n))},y.minus=y.sub=function(e){return e=new this.constructor(e),this.s==e.s?P(this,e):g(this,(e.s=-e.s,e))},y.modulo=y.mod=function(e){var t,r=this.constructor,n=r.precision;if(!(e=new r(e)).s)throw Error(u+"NaN");return this.s?(l=!1,t=b(this,e,0,1).times(e),l=!0,this.minus(t)):E(new r(this),n)},y.naturalExponential=y.exp=function(){return x(this)},y.naturalLogarithm=y.ln=function(){return j(this)},y.negated=y.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},y.plus=y.add=function(e){return e=new this.constructor(e),this.s==e.s?g(this,e):P(this,(e.s=-e.s,e))},y.precision=y.sd=function(e){var t,r,n;if(void 0!==e&&!!e!==e&&1!==e&&0!==e)throw Error(s+e);if(t=w(this)+1,r=7*(n=this.d.length-1)+1,n=this.d[n]){for(;n%10==0;n/=10)r--;for(n=this.d[0];n>=10;n/=10)r++}return e&&t>r?t:r},y.squareRoot=y.sqrt=function(){var e,t,r,n,o,i,a,s=this.constructor;if(this.s<1){if(!this.s)return new s(0);throw Error(u+"NaN")}for(e=w(this),l=!1,0==(o=Math.sqrt(+this))||o==1/0?(((t=m(this.d)).length+e)%2==0&&(t+="0"),o=Math.sqrt(t),e=f((e+1)/2)-(e<0||e%2),n=new s(t=o==1/0?"5e"+e:(t=o.toExponential()).slice(0,t.indexOf("e")+1)+e)):n=new s(o.toString()),o=a=(r=s.precision)+3;;)if(n=(i=n).plus(b(this,i,a+2)).times(.5),m(i.d).slice(0,a)===(t=m(n.d)).slice(0,a)){if(t=t.slice(a-3,a+1),o==a&&"4999"==t){if(E(i,r+1,0),i.times(i).eq(this)){n=i;break}}else if("9999"!=t)break;a+=4}return l=!0,E(n,r)},y.times=y.mul=function(e){var t,r,n,o,i,a,u,s,c,f=this.constructor,p=this.d,d=(e=new f(e)).d;if(!this.s||!e.s)return new f(0);for(e.s*=this.s,r=this.e+e.e,(s=p.length)<(c=d.length)&&(i=p,p=d,d=i,a=s,s=c,c=a),i=[],n=a=s+c;n--;)i.push(0);for(n=c;--n>=0;){for(t=0,o=s+n;o>n;)u=i[o]+d[n]*p[o-n-1]+t,i[o--]=u%1e7|0,t=u/1e7|0;i[o]=(i[o]+t)%1e7|0}for(;!i[--a];)i.pop();return t?++r:i.shift(),e.d=i,e.e=r,l?E(e,f.precision):e},y.toDecimalPlaces=y.todp=function(e,t){var r=this,n=r.constructor;return(r=new n(r),void 0===e)?r:(v(e,0,1e9),void 0===t?t=n.rounding:v(t,0,8),E(r,e+w(r)+1,t))},y.toExponential=function(e,t){var r,n=this,o=n.constructor;return void 0===e?r=_(n,!0):(v(e,0,1e9),void 0===t?t=o.rounding:v(t,0,8),r=_(n=E(new o(n),e+1,t),!0,e+1)),r},y.toFixed=function(e,t){var r,n,o=this.constructor;return void 0===e?_(this):(v(e,0,1e9),void 0===t?t=o.rounding:v(t,0,8),r=_((n=E(new o(this),e+w(this)+1,t)).abs(),!1,e+w(n)+1),this.isneg()&&!this.isZero()?"-"+r:r)},y.toInteger=y.toint=function(){var e=this.constructor;return E(new e(this),w(this)+1,e.rounding)},y.toNumber=function(){return+this},y.toPower=y.pow=function(e){var t,r,n,o,a,s,c=this,p=c.constructor,d=+(e=new p(e));if(!e.s)return new p(i);if(!(c=new p(c)).s){if(e.s<1)throw Error(u+"Infinity");return c}if(c.eq(i))return c;if(n=p.precision,e.eq(i))return E(c,n);if(s=(t=e.e)>=(r=e.d.length-1),a=c.s,s){if((r=d<0?-d:d)<=0x1fffffffffffff){for(o=new p(i),t=Math.ceil(n/7+4),l=!1;r%2&&M((o=o.times(c)).d,t),0!==(r=f(r/2));)M((c=c.times(c)).d,t);return l=!0,e.s<0?new p(i).div(o):E(o,n)}}else if(a<0)throw Error(u+"NaN");return a=a<0&&1&e.d[Math.max(t,r)]?-1:1,c.s=1,l=!1,o=e.times(j(c,n+12)),l=!0,(o=x(o)).s=a,o},y.toPrecision=function(e,t){var r,n,o=this,i=o.constructor;return void 0===e?(r=w(o),n=_(o,r<=i.toExpNeg||r>=i.toExpPos)):(v(e,1,1e9),void 0===t?t=i.rounding:v(t,0,8),r=w(o=E(new i(o),e,t)),n=_(o,e<=r||r<=i.toExpNeg,e)),n},y.toSignificantDigits=y.tosd=function(e,t){var r=this.constructor;return void 0===e?(e=r.precision,t=r.rounding):(v(e,1,1e9),void 0===t?t=r.rounding:v(t,0,8)),E(new r(this),e,t)},y.toString=y.valueOf=y.val=y.toJSON=function(){var e=w(this),t=this.constructor;return _(this,e<=t.toExpNeg||e>=t.toExpPos)};var b=function(){function e(e,t){var r,n=0,o=e.length;for(e=e.slice();o--;)r=e[o]*t+n,e[o]=r%1e7|0,n=r/1e7|0;return n&&e.unshift(n),e}function t(e,t,r,n){var o,i;if(r!=n)i=r>n?1:-1;else for(o=i=0;ot[o]?1:-1;break}return i}function r(e,t,r){for(var n=0;r--;)e[r]-=n,n=+(e[r]1;)e.shift()}return function(n,o,i,a){var l,s,c,f,p,d,h,y,g,v,m,b,x,O,S,j,A,P,_=n.constructor,M=n.s==o.s?1:-1,C=n.d,k=o.d;if(!n.s)return new _(n);if(!o.s)throw Error(u+"Division by zero");for(c=0,s=n.e-o.e,A=k.length,S=C.length,y=(h=new _(M)).d=[];k[c]==(C[c]||0);)++c;if(k[c]>(C[c]||0)&&--s,(b=null==i?i=_.precision:a?i+(w(n)-w(o))+1:i)<0)return new _(0);if(b=b/7+2|0,c=0,1==A)for(f=0,k=k[0],b++;(c1&&(k=e(k,f),C=e(C,f),A=k.length,S=C.length),O=A,v=(g=C.slice(0,A)).length;v=1e7/2&&++j;do f=0,(l=t(k,g,A,v))<0?(m=g[0],A!=v&&(m=1e7*m+(g[1]||0)),(f=m/j|0)>1?(f>=1e7&&(f=1e7-1),d=(p=e(k,f)).length,v=g.length,1==(l=t(p,g,d,v))&&(f--,r(p,A16)throw Error(c+w(e));if(!e.s)return new d(i);for(null==t?(l=!1,u=h):u=t,a=new d(.03125);e.abs().gte(.1);)e=e.times(a),f+=5;for(u+=Math.log(p(2,f))/Math.LN10*2+5|0,r=n=o=new d(i),d.precision=u;;){if(n=E(n.times(e),u),r=r.times(++s),m((a=o.plus(b(n,r,u))).d).slice(0,u)===m(o.d).slice(0,u)){for(;f--;)o=E(o.times(o),u);return d.precision=h,null==t?(l=!0,E(o,h)):o}o=a}}function w(e){for(var t=7*e.e,r=e.d[0];r>=10;r/=10)t++;return t}function O(e,t,r){if(t>e.LN10.sd())throw l=!0,r&&(e.precision=r),Error(u+"LN10 precision limit exceeded");return E(new e(e.LN10),t)}function S(e){for(var t="";e--;)t+="0";return t}function j(e,t){var r,n,o,a,s,c,f,p,d,h=1,y=e,g=y.d,v=y.constructor,x=v.precision;if(y.s<1)throw Error(u+(y.s?"NaN":"-Infinity"));if(y.eq(i))return new v(0);if(null==t?(l=!1,p=x):p=t,y.eq(10))return null==t&&(l=!0),O(v,p);if(v.precision=p+=10,n=(r=m(g)).charAt(0),!(15e14>Math.abs(a=w(y))))return f=O(v,p+2,x).times(a+""),y=j(new v(n+"."+r.slice(1)),p-10).plus(f),v.precision=x,null==t?(l=!0,E(y,x)):y;for(;n<7&&1!=n||1==n&&r.charAt(1)>3;)n=(r=m((y=y.times(e)).d)).charAt(0),h++;for(a=w(y),n>1?(y=new v("0."+r),a++):y=new v(n+"."+r.slice(1)),c=s=y=b(y.minus(i),y.plus(i),p),d=E(y.times(y),p),o=3;;){if(s=E(s.times(d),p),m((f=c.plus(b(s,new v(o),p))).d).slice(0,p)===m(c.d).slice(0,p))return c=c.times(2),0!==a&&(c=c.plus(O(v,p+2,x).times(a+""))),c=b(c,new v(h),p),v.precision=x,null==t?(l=!0,E(c,x)):c;c=f,o+=2}}function A(e,t){var r,n,o;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;48===t.charCodeAt(n);)++n;for(o=t.length;48===t.charCodeAt(o-1);)--o;if(t=t.slice(n,o)){if(o-=n,e.e=f((r=r-n-1)/7),e.d=[],n=(r+1)%7,r<0&&(n+=7),nh||e.e<-h))throw Error(c+r)}else e.s=0,e.e=0,e.d=[0];return e}function E(e,t,r){var n,o,i,a,u,s,d,y,g=e.d;for(a=1,i=g[0];i>=10;i/=10)a++;if((n=t-a)<0)n+=7,o=t,d=g[y=0];else{if((y=Math.ceil((n+1)/7))>=(i=g.length))return e;for(a=1,d=i=g[y];i>=10;i/=10)a++;n%=7,o=n-7+a}if(void 0!==r&&(u=d/(i=p(10,a-o-1))%10|0,s=t<0||void 0!==g[y+1]||d%i,s=r<4?(u||s)&&(0==r||r==(e.s<0?3:2)):u>5||5==u&&(4==r||s||6==r&&(n>0?o>0?d/p(10,a-o):0:g[y-1])%10&1||r==(e.s<0?8:7))),t<1||!g[0])return s?(i=w(e),g.length=1,t=t-i-1,g[0]=p(10,(7-t%7)%7),e.e=f(-t/7)||0):(g.length=1,g[0]=e.e=e.s=0),e;if(0==n?(g.length=y,i=1,y--):(g.length=y+1,i=p(10,7-n),g[y]=o>0?(d/p(10,a-o)%p(10,o)|0)*i:0),s)for(;;)if(0==y){1e7==(g[0]+=i)&&(g[0]=1,++e.e);break}else{if(g[y]+=i,1e7!=g[y])break;g[y--]=0,i=1}for(n=g.length;0===g[--n];)g.pop();if(l&&(e.e>h||e.e<-h))throw Error(c+w(e));return e}function P(e,t){var r,n,o,i,a,u,s,c,f,p,d=e.constructor,h=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),l?E(t,h):t;if(s=e.d,p=t.d,n=t.e,c=e.e,s=s.slice(),a=c-n){for((f=a<0)?(r=s,a=-a,u=p.length):(r=p,n=c,u=s.length),a>(o=Math.max(Math.ceil(h/7),u)+2)&&(a=o,r.length=1),r.reverse(),o=a;o--;)r.push(0);r.reverse()}else{for((f=(o=s.length)<(u=p.length))&&(u=o),o=0;o0;--o)s[u++]=0;for(o=p.length;o>a;){if(s[--o]0?i=i.charAt(0)+"."+i.slice(1)+S(n):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+S(-o-1)+i,r&&(n=r-a)>0&&(i+=S(n))):o>=a?(i+=S(o+1-a),r&&(n=r-o-1)>0&&(i=i+"."+S(n))):((n=o+1)0&&(o+1===a&&(i+="."),i+=S(n))),e.s<0?"-"+i:i}function M(e,t){if(e.length>t)return e.length=t,!0}function C(e){if(!e||"object"!=typeof e)throw Error(u+"Object expected");var t,r,n,o=["precision",1,1e9,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t=o[t+1]&&n<=o[t+2])this[r]=n;else throw Error(s+r+": "+n);if(void 0!==(n=e[r="LN10"]))if(n==Math.LN10)this[r]=new this(n);else throw Error(s+r+": "+n);return this}(a=function e(t){var r,n,o;function i(e){if(!(this instanceof i))return new i(e);if(this.constructor=i,e instanceof i){this.s=e.s,this.e=e.e,this.d=(e=e.d)?e.slice():e;return}if("number"==typeof e){if(0*e!=0)throw Error(s+e);if(e>0)this.s=1;else if(e<0)e=-e,this.s=-1;else{this.s=0,this.e=0,this.d=[0];return}if(e===~~e&&e<1e7){this.e=0,this.d=[e];return}return A(this,e.toString())}if("string"!=typeof e)throw Error(s+e);if(45===e.charCodeAt(0)?(e=e.slice(1),this.s=-1):this.s=1,d.test(e))A(this,e);else throw Error(s+e)}if(i.prototype=y,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=e,i.config=i.set=C,void 0===t&&(t={}),t)for(r=0,o=["precision","rounding","toExpNeg","toExpPos","LN10"];r{"use strict";r.d(t,{Q:()=>u});var n=r(32716),o=r(13297),i=r(2893),a=r(47122),l=r(83687),u=(0,n.gu)({chartName:"AreaChart",GraphicalChild:o.G,axisComponents:[{axisType:"xAxis",AxisComp:i.W},{axisType:"yAxis",AxisComp:a.h}],formatAxisMap:l.pr})},57868:(e,t,r)=>{e=r.nmd(e);var n=r(27457),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&n.process,l=function(){try{var e=i&&i.require&&i.require("util").types;if(e)return e;return a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=l},57876:e=>{e.exports=function(){return[]}},58327:(e,t,r)=>{var n=r(63958),o=r(59822),i=r(70777);e.exports=function(e){return e&&e.length?n(e,i,o):void 0}},58905:(e,t,r)=>{"use strict";function n(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function o(e,t){switch(arguments.length){case 0:break;case 1:"function"==typeof e?this.interpolator(e):this.range(e);break;default:this.domain(e),"function"==typeof t?this.interpolator(t):this.range(t)}return this}r.d(t,{C:()=>n,K:()=>o})},59822:e=>{e.exports=function(e,t){return e>t}},59914:(e,t,r)=>{var n=r(16087),o=r(32169),i=r(51032),a=r(64004),l=/^\[object .+?Constructor\]$/,u=Object.prototype,s=Function.prototype.toString,c=u.hasOwnProperty,f=RegExp("^"+s.call(c).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(n(e)?f:l).test(a(e))}},60042:e=>{e.exports=function(e){return this.__data__.has(e)}},61847:(e,t,r)=>{"use strict";var n=r(4140);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,i,a){if(a!==n){var l=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return r.PropTypes=r,r}},62173:(e,t,r)=>{var n=r(81006);e.exports=function(){this.__data__=new n,this.size=0}},62533:(e,t,r)=>{var n=r(42648);e.exports=function(){return n.Date.now()}},63087:(e,t,r)=>{var n=r(10937),o=r(82256),i=r(44605),a=r(67972),l=r(43001);e.exports=function(e,t,r){var u=a(e)?n:i;return r&&l(e,t,r)&&(t=void 0),u(e,o(t,3))}},63660:e=>{e.exports=function(e,t,r){for(var n=-1,o=null==e?0:e.length;++n{var n=r(2223);e.exports=function(e,t,r){for(var o=-1,i=e.length;++o{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},64239:(e,t,r)=>{var n=r(44457);e.exports=function(e,t,r){var o=e.length;return r=void 0===r?o:r,!t&&r>=o?e:n(e,t,r)}},64370:(e,t,r)=>{"use strict";r.d(t,{s:()=>I});var n=r(55729),o=r(16087),i=r.n(o),a=r(50212),l=r(7571),u=r(55426),s=r(54460),c=r(27281);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(){return(p=Object.assign?Object.assign.bind():function(e){for(var t=1;t');var x=t.inactive?d:t.color;return n.createElement("li",p({className:m,style:y,key:"legend-item-".concat(r)},(0,c.XC)(e.props,t,r)),n.createElement(u.u,{width:o,height:o,viewBox:h,style:g},e.renderIcon(t)),n.createElement("span",{className:"recharts-legend-item-text",style:{color:x}},s?s(b,t,r):b))})}},{key:"render",value:function(){var e=this.props,t=e.payload,r=e.layout,o=e.align;return t&&t.length?n.createElement("ul",{className:"recharts-default-legend",style:{padding:0,margin:0,textAlign:"horizontal"===r?o:"left"}},this.renderItems()):null}}],function(e,t){for(var r=0;r1||Math.abs(t.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=t.width,this.lastBoundingBox.height=t.height,e&&e(t)):(-1!==this.lastBoundingBox.width||-1!==this.lastBoundingBox.height)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,e&&e(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?A({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(e){var t,r,n=this.props,o=n.layout,i=n.align,a=n.verticalAlign,l=n.margin,u=n.chartWidth,s=n.chartHeight;return e&&(void 0!==e.left&&null!==e.left||void 0!==e.right&&null!==e.right)||(t="center"===i&&"vertical"===o?{left:((u||0)-this.getBBoxSnapshot().width)/2}:"right"===i?{right:l&&l.right||0}:{left:l&&l.left||0}),e&&(void 0!==e.top&&null!==e.top||void 0!==e.bottom&&null!==e.bottom)||(r="middle"===a?{top:((s||0)-this.getBBoxSnapshot().height)/2}:"bottom"===a?{bottom:l&&l.bottom||0}:{top:l&&l.top||0}),A(A({},t),r)}},{key:"render",value:function(){var e=this,t=this.props,r=t.content,o=t.width,i=t.height,a=t.wrapperStyle,l=t.payloadUniqBy,u=t.payload,s=A(A({position:"absolute",width:o||"auto",height:i||"auto"},this.getDefaultPosition(a)),a);return n.createElement("div",{className:"recharts-legend-wrapper",style:s,ref:function(t){e.wrapperNode=t}},function(e,t){if(n.isValidElement(e))return n.cloneElement(e,t);if("function"==typeof e)return n.createElement(e,t);t.ref;var r=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(t,S);return n.createElement(b,r)}(r,A(A({},this.props),{},{payload:(0,w.s)(u,l,T)})))}}],r=[{key:"getWithHeight",value:function(e,t){var r=A(A({},this.defaultProps),e.props).layout;return"vertical"===r&&(0,x.Et)(e.props.height)?{height:e.props.height}:"horizontal"===r?{width:e.props.width||t}:null}}],t&&E(o.prototype,t),r&&E(o,r),Object.defineProperty(o,"prototype",{writable:!1}),o}(n.PureComponent);C(I,"displayName","Legend"),C(I,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"})},64434:(e,t,r)=>{var n=r(24548),o=r(49757),i=r(67972),a=n?n.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||o(e)||!!(a&&e&&e[a])}},64763:e=>{e.exports=function(){}},64961:(e,t,r)=>{var n=r(74153);e.exports=function(e){var t=n(e,function(e){return 500===r.size&&r.clear(),e}),r=t.cache;return t}},65049:(e,t,r)=>{"use strict";r.d(t,{g:()=>s});var n=r(64370),o=r(1509),i=r(93780);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function u(e){for(var t=1;t{"use strict";r.d(t,{u:()=>g});var n=r(55729),o=r(73403),i=r(3780),a=r(93780),l=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=Array(t);r=0)continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,l),v=(0,a.J9)(g,!1);"x"===this.props.direction&&"number"!==h.type&&(0,o.A)(!1);var m=p.map(function(e){var o,a,l=d(e,f),p=l.x,g=l.y,m=l.value,b=l.errorVal;if(!b)return null;var x=[];if(Array.isArray(b)){var w=function(e){if(Array.isArray(e))return e}(b)||function(e,t){var r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],u=!0,s=!1;try{i=(r=r.call(e)).next,!1;for(;!(u=(n=i.call(r)).done)&&(l.push(n.value),2!==l.length);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(b,2)||function(e,t){if(e){if("string"==typeof e)return c(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return c(e,2)}}(b,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();o=w[0],a=w[1]}else o=a=b;if("vertical"===r){var O=h.scale,S=g+t,j=S+u,A=S-u,E=O(m-o),P=O(m+a);x.push({x1:P,y1:j,x2:P,y2:A}),x.push({x1:E,y1:S,x2:P,y2:S}),x.push({x1:E,y1:j,x2:E,y2:A})}else if("horizontal"===r){var _=y.scale,M=p+t,C=M-u,k=M+u,T=_(m-o),I=_(m+a);x.push({x1:C,y1:I,x2:k,y2:I}),x.push({x1:M,y1:T,x2:M,y2:I}),x.push({x1:C,y1:T,x2:k,y2:T})}return n.createElement(i.W,s({className:"recharts-errorBar",key:"bar-".concat(x.map(function(e){return"".concat(e.x1,"-").concat(e.x2,"-").concat(e.y1,"-").concat(e.y2)}))},v),x.map(function(e){return n.createElement("line",s({},e,{key:"line-".concat(e.x1,"-").concat(e.x2,"-").concat(e.y1,"-").concat(e.y2)}))}))});return n.createElement(i.W,{className:"recharts-errorBars"},m)}}],function(e,t){for(var r=0;r{var n=r(83684);e.exports=function(e){return n(this.__data__,e)>-1}},65866:(e,t,r)=>{var n=r(91878),o=r(1470),i=r(27679),a=Object.prototype,l=Function.prototype.toString,u=a.hasOwnProperty,s=l.call(Object);e.exports=function(e){if(!i(e)||"[object Object]"!=n(e))return!1;var t=o(e);if(null===t)return!0;var r=u.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&l.call(r)==s}},66400:e=>{e.exports=function(e){return function(t,r,n){for(var o=-1,i=Object(t),a=n(t),l=a.length;l--;){var u=a[e?l:++o];if(!1===r(i[u],u,i))break}return t}}},66507:(e,t,r)=>{var n=r(14290);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=!!t,t}},67184:(e,t,r)=>{var n=r(51032),o=r(62533),i=r(95187),a=Math.max,l=Math.min;e.exports=function(e,t,r){var u,s,c,f,p,d,h=0,y=!1,g=!1,v=!0;if("function"!=typeof e)throw TypeError("Expected a function");function m(t){var r=u,n=s;return u=s=void 0,h=t,f=e.apply(n,r)}function b(e){var r=e-d,n=e-h;return void 0===d||r>=t||r<0||g&&n>=c}function x(){var e,r,n,i=o();if(b(i))return w(i);p=setTimeout(x,(e=i-d,r=i-h,n=t-e,g?l(n,c-r):n))}function w(e){return(p=void 0,v&&u)?m(e):(u=s=void 0,f)}function O(){var e,r=o(),n=b(r);if(u=arguments,s=this,d=r,n){if(void 0===p)return h=e=d,p=setTimeout(x,t),y?m(e):f;if(g)return clearTimeout(p),p=setTimeout(x,t),m(d)}return void 0===p&&(p=setTimeout(x,t)),f}return t=i(t)||0,n(r)&&(y=!!r.leading,c=(g="maxWait"in r)?a(i(r.maxWait)||0,t):c,v="trailing"in r?!!r.trailing:v),O.cancel=function(){void 0!==p&&clearTimeout(p),h=0,u=d=s=p=void 0},O.flush=function(){return void 0===p?f:w(o())},O}},67872:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var n=(0,r(41495).A)("outline","arrow-down","IconArrowDown",[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M18 13l-6 6",key:"svg-1"}],["path",{d:"M6 13l6 6",key:"svg-2"}]])},67972:e=>{e.exports=Array.isArray},68295:(e,t,r)=>{e.exports=r(75011)(Object,"create")},68899:(e,t,r)=>{var n=r(82256),o=r(43248);e.exports=function(e,t){return e&&e.length?o(e,n(t,2)):[]}},69347:e=>{e.exports=function(e){return function(){return e}}},69804:(e,t,r)=>{var n=r(14290);e.exports=function(e){return n(this,e).get(e)}},70430:(e,t,r)=>{var n=r(33048),o=r(79342),i=r(28343),a=r(35912);e.exports=function(e){return i(e)?n(a(e)):o(e)}},70687:(e,t,r)=>{var n=r(26111);e.exports=function(e,t,r){for(var o=-1,i=e.criteria,a=t.criteria,l=i.length,u=r.length;++o=u)return s;return s*("desc"==r[o]?-1:1)}}return e.index-t.index}},70777:e=>{e.exports=function(e){return e}},71226:(e,t,r)=>{var n=r(80193),o=r(4463);e.exports=function(e,t){return n(o(e,t),1)}},71596:(e,t,r)=>{var n=r(5599),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,i,a,l){var u=1&r,s=n(e),c=s.length;if(c!=n(t).length&&!u)return!1;for(var f=c;f--;){var p=s[f];if(!(u?p in t:o.call(t,p)))return!1}var d=l.get(e),h=l.get(t);if(d&&h)return d==t&&h==e;var y=!0;l.set(e,t),l.set(t,e);for(var g=u;++f{"use strict";function n(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}r.d(t,{A:()=>n}),Array.prototype.slice},73253:(e,t,r)=>{var n=r(99820),o=r(50934),i=r(96263),a=r(71596),l=r(19344),u=r(67972),s=r(44409),c=r(7334),f="[object Arguments]",p="[object Array]",d="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,y,g,v){var m=u(e),b=u(t),x=m?p:l(e),w=b?p:l(t);x=x==f?d:x,w=w==f?d:w;var O=x==d,S=w==d,j=x==w;if(j&&s(e)){if(!s(t))return!1;m=!0,O=!1}if(j&&!O)return v||(v=new n),m||c(e)?o(e,t,r,y,g,v):i(e,t,x,r,y,g,v);if(!(1&r)){var A=O&&h.call(e,"__wrapped__"),E=S&&h.call(t,"__wrapped__");if(A||E){var P=A?e.value():e,_=E?t.value():t;return v||(v=new n),g(P,_,r,y,v)}}return!!j&&(v||(v=new n),a(e,t,r,y,g,v))}},73403:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});function n(e,t){if(!e)throw Error("Invariant failed")}},74153:(e,t,r)=>{var n=r(91696);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(o.Cache||n),r}o.Cache=n,e.exports=o},74229:(e,t,r)=>{var n=r(11550),o=r(43001),i=r(91545);e.exports=function(e){return function(t,r,a){return a&&"number"!=typeof a&&o(t,r,a)&&(r=a=void 0),t=i(t),void 0===r?(r=t,t=0):r=i(r),a=void 0===a?t{var n=r(83217),o=r(29692),i=r(82256);e.exports=function(e,t){var r={};return t=i(t,3),o(e,function(e,o,i){n(r,o,t(e,o,i))}),r}},75011:(e,t,r)=>{var n=r(59914),o=r(22241);e.exports=function(e,t){var r=o(e,t);return n(r)?r:void 0}},75115:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>l});var n=r(30988);function o(e,t,r,n,o){var i=e*e,a=i*e;return((1-3*e+3*i-a)*t+(4-6*i+3*a)*r+(1+3*e+3*i-3*a)*n+a*o)/6}var i=r(28816);function a(e,t){var r=t-e;return r?function(t){return e+t*r}:(0,i.A)(isNaN(e)?t:e)}let l=function e(t){var r,o=1==(r=+t)?a:function(e,t){var n,o,a;return t-e?(n=e,o=t,n=Math.pow(n,a=r),o=Math.pow(o,a)-n,a=1/a,function(e){return Math.pow(n+e*o,a)}):(0,i.A)(isNaN(e)?t:e)};function l(e,t){var r=o((e=(0,n.Qh)(e)).r,(t=(0,n.Qh)(t)).r),i=o(e.g,t.g),l=o(e.b,t.b),u=a(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=l(t),e.opacity=u(t),e+""}}return l.gamma=e,l}(1);function u(e){return function(t){var r,o,i=t.length,a=Array(i),l=Array(i),u=Array(i);for(r=0;r=1?(r=1,t-1):Math.floor(r*t),i=e[n],a=e[n+1],l=n>0?e[n-1]:2*i-a,u=n{var n=r(83684);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},75768:e=>{e.exports=function(e){return this.__data__.get(e)}},77058:e=>{e.exports=function(e,t,r,n){for(var o=e.length,i=r+(n?1:-1);n?i--:++i{e.exports=r(32811)(r(17340))},77852:(e,t,r)=>{var n=r(88615);e.exports=r(89605)(n)},78824:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r{"use strict";r.d(t,{Z:()=>A});var n=r(55729),o=r(1250),i=r.n(o),a=r(51032),l=r.n(a),u=r(16087),s=r.n(u),c=r(7863),f=r.n(c),p=r(35555),d=r(3780),h=r(93780),y=r(1509);function g(e){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var v=["valueAccessor"],m=["data","dataKey","clockWise","id","textBreakAll"];function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r=0)continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var j=function(e){return Array.isArray(e.value)?f()(e.value):e.value};function A(e){var t=e.valueAccessor,r=void 0===t?j:t,o=S(e,v),a=o.data,l=o.dataKey,u=o.clockWise,s=o.id,c=o.textBreakAll,f=S(o,m);return a&&a.length?n.createElement(d.W,{className:"recharts-label-list"},a.map(function(e,t){var o=i()(l)?r(e,t):(0,y.kr)(e&&e.payload,l),a=i()(s)?{}:{id:"".concat(s,"-").concat(t)};return n.createElement(p.J,x({},(0,h.J9)(e,!0),f,a,{parentViewBox:e.parentViewBox,value:o,textBreakAll:c,viewBox:p.J.parseViewBox(i()(u)?e:O(O({},e),{},{clockWise:u})),key:"label-".concat(t),index:t}))})):null}A.displayName="LabelList",A.renderCallByParent=function(e,t){var r,o=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(!e||!e.children&&o&&!e.label)return null;var i=e.children,a=(0,h.aS)(i,A).map(function(e,r){return(0,n.cloneElement)(e,{data:t,key:"labelList-".concat(r)})});return o?[(r=e.label,!r?null:!0===r?n.createElement(A,{key:"labelList-implicit",data:t}):n.isValidElement(r)||s()(r)?n.createElement(A,{key:"labelList-implicit",data:t,content:r}):l()(r)?n.createElement(A,x({data:t},r,{key:"labelList-implicit"})):null)].concat(function(e){if(Array.isArray(e))return b(e)}(a)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(a)||function(e,t){if(e){if("string"==typeof e)return b(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return b(e,void 0)}}(a)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()):a}},79097:(e,t,r)=>{var n=r(3439),o=r(57876),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols;e.exports=a?function(e){return null==e?[]:n(a(e=Object(e)),function(t){return i.call(e,t)})}:o},79220:(e,t,r)=>{"use strict";r.d(t,{Kv:()=>i,N4:()=>a});var n=r(55729),o=r(39696);function i(e,t){var r,o,i;let a;return e?"function"==typeof(o=r=e)&&(a=Object.getPrototypeOf(o)).prototype&&a.prototype.isReactComponent||"function"==typeof r||"object"==typeof(i=r)&&"symbol"==typeof i.$$typeof&&["react.memo","react.forward_ref"].includes(i.$$typeof.description)?n.createElement(e,t):e:null}function a(e){let t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[r]=n.useState(()=>({current:(0,o.ZR)(t)})),[i,a]=n.useState(()=>r.current.initialState);return r.current.setOptions(t=>({...t,...e,state:{...i,...e.state},onStateChange:t=>{a(t),null==e.onStateChange||e.onStateChange(t)}})),r.current}},79342:(e,t,r)=>{var n=r(29707);e.exports=function(e){return function(t){return n(t,e)}}},79888:e=>{e.exports=function(e,t){return function(r){return null!=r&&r[e]===t&&(void 0!==t||e in Object(r))}}},80109:(e,t,r)=>{var n=r(24548),o=r(36949),i=r(67972),a=r(2223),l=1/0,u=n?n.prototype:void 0,s=u?u.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return s?s.call(t):"";var r=t+"";return"0"==r&&1/t==-l?"-0":r}},80193:(e,t,r)=>{var n=r(98945),o=r(64434);e.exports=function e(t,r,i,a,l){var u=-1,s=t.length;for(i||(i=o),l||(l=[]);++u0&&i(c)?r>1?e(c,r-1,i,a,l):n(l,c):a||(l[l.length]=c)}return l}},80461:(e,t,r)=>{var n=r(51032);e.exports=function(e){return e==e&&!n(e)}},81006:(e,t,r)=>{var n=r(20595),o=r(91009),i=r(75578),a=r(65622),l=r(87326);function u(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},82204:(e,t,r)=>{var n=r(68295),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(t,e)?t[e]:void 0}},82256:(e,t,r)=>{var n=r(43702),o=r(28263),i=r(70777),a=r(67972),l=r(70430);e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?a(e)?o(e[0],e[1]):n(e):l(e)}},83200:(e,t,r)=>{var n=r(68295);e.exports=function(e,t){var r=this.__data__;return this.size+=+!this.has(e),r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},83217:(e,t,r)=>{var n=r(50962);e.exports=function(e,t,r){"__proto__"==t&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}},83622:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}},83684:(e,t,r)=>{var n=r(10321);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return -1}},83687:(e,t,r)=>{"use strict";r.d(t,{P2:()=>w,bx:()=>O,pr:()=>v,sl:()=>m,vh:()=>b});var n=r(74789),o=r.n(n),i=r(17226),a=r.n(i),l=r(1509),u=r(93780),s=r(53645),c=r(14693);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){for(var r=0;r0&&(_=Math.min((e||0)-(M[t-1]||0),_))}),Number.isFinite(_)){var C=_/P,k="vertical"===b.layout?r.height:r.width;if("gap"===b.padding&&(u=C*k/2),"no-gap"===b.padding){var T=(0,s.F4)(e.barCategoryGap,C*k),I=C*k/2;u=I-T-(I-T)/k*T}}}c="xAxis"===n?[r.left+(S.left||0)+(u||0),r.left+r.width-(S.right||0)-(u||0)]:"yAxis"===n?"horizontal"===f?[r.top+r.height-(S.bottom||0),r.top+(S.top||0)]:[r.top+(S.top||0)+(u||0),r.top+r.height-(S.bottom||0)-(u||0)]:b.range,A&&(c=[c[1],c[0]]);var R=(0,l.W7)(b,o,v),D=R.scale,N=R.realScaleType;D.domain(w).range(c),(0,l.YB)(D);var F=(0,l.w7)(D,h(h({},b),{},{realScaleType:N}));"xAxis"===n?(m="top"===x&&!j||"bottom"===x&&j,p=r.left,d=g[E]-m*b.height):"yAxis"===n&&(m="left"===x&&!j||"right"===x&&j,p=g[E]-m*b.width,d=r.top);var B=h(h(h({},b),F),{},{realScaleType:N,x:p,y:d,scale:D,width:"xAxis"===n?r.width:b.width,height:"yAxis"===n?r.height:b.height});return B.bandSize=(0,l.Hj)(B,F),b.hide||"xAxis"!==n?b.hide||(g[E]+=(m?-1:1)*B.width):g[E]+=(m?-1:1)*B.height,h(h({},i),{},y({},a,B))},{})},m=function(e,t){var r=e.x,n=e.y,o=t.x,i=t.y;return{x:Math.min(r,o),y:Math.min(n,i),width:Math.abs(o-r),height:Math.abs(i-n)}},b=function(e){return m({x:e.x1,y:e.y1},{x:e.x2,y:e.y2})},x=function(){var e,t;function r(e){if(!(this instanceof r))throw TypeError("Cannot call a class as a function");this.scale=e}return e=[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.bandAware,n=t.position;if(void 0!==e){if(n)switch(n){case"start":default:return this.scale(e);case"middle":var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+o;case"end":var i=this.bandwidth?this.bandwidth():0;return this.scale(e)+i}if(r){var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+a}return this.scale(e)}}},{key:"isInRange",value:function(e){var t=this.range(),r=t[0],n=t[t.length-1];return r<=n?e>=r&&e<=n:e>=n&&e<=r}}],t=[{key:"create",value:function(e){return new r(e)}}],e&&p(r.prototype,e),t&&p(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}();y(x,"EPS",1e-4);var w=function(e){var t=Object.keys(e).reduce(function(t,r){return h(h({},t),{},y({},r,x.create(e[r])))},{});return h(h({},t),{},{apply:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.bandAware,i=r.position;return o()(e,function(e,r){return t[r].apply(e,{bandAware:n,position:i})})},isInRange:function(e){return a()(e,function(e,r){return t[r].isInRange(e)})}})},O=function(e){var t=e.width,r=e.height,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=(n%180+180)%180*Math.PI/180,i=Math.atan(r/t);return Math.abs(o>i&&o{var n=r(14290);e.exports=function(e,t){var r=n(this,e),o=r.size;return r.set(e,t),this.size+=+(r.size!=o),this}},85033:e=>{e.exports=function(e,t){return e{var n=r(14290);e.exports=function(e){return n(this,e).has(e)}},85524:e=>{e.exports=function(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}},87326:(e,t,r)=>{var n=r(83684);e.exports=function(e,t){var r=this.__data__,o=n(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}},87383:(e,t,r)=>{"use strict";r.d(t,{jG:()=>l});var n=r(18896),o=r.n(n),i=r(55729);"function"==typeof SuppressedError&&SuppressedError;var a={Link:"link",Button:"button"};function l(){return{CSVDownloader:function(){var e=this,t=function(t){var r=t.children,n=t.data,l=void 0===n?{}:n,u=t.filename,s=t.type,c=void 0===s?a.Link:s,f=t.style,p=void 0===f?{}:f,d=t.className,h=void 0===d?"":d,y=t.bom,g=void 0!==y&&y,v=t.config,m=void 0===v?{}:v,b=function(){var t,r,n;return t=void 0,r=void 0,n=function(){var e,t,r,n,i,a;return function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(l){return function(u){var s=[l,u];if(r)throw TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]{e.exports=function(e,t){return e.has(t)}},87904:(e,t,r)=>{e.exports=r(74229)()},88140:(e,t,r)=>{"use strict";r.d(t,{T:()=>A});var n=r(55729),o=r(16087),i=r.n(o),a=r(50212),l=r(3780),u=r(35555),s=r(83687),c=r(47374),f=r(53645),p=r(7571),d=r(2390),h=r(93780);function y(){return(y=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var n=r(69347),o=r(50962),i=r(70777);e.exports=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:i},88859:(e,t,r)=>{"use strict";r.d(t,{m:()=>n});var n={isSsr:!("u">typeof window&&window.document&&window.document.createElement&&window.setTimeout),get:function(e){return n[e]},set:function(e,t){if("string"==typeof e)n[e]=t;else{var r=Object.keys(e);r&&r.length&&r.forEach(function(t){n[t]=e[t]})}}}},89511:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},89605:e=>{var t=Date.now;e.exports=function(e){var r=0,n=0;return function(){var o=t(),i=16-(o-n);if(n=o,i>0){if(++r>=800)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}},90371:(e,t,r)=>{var n=r(70777),o=r(55888),i=r(77852);e.exports=function(e,t){return i(o(e,t,n),e+"")}},90505:(e,t,r)=>{"use strict";r.d(t,{A3:()=>f,Pu:()=>c});var n=r(88859);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function a(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};if(null==e||n.m.isSsr)return{width:0,height:0};var o=(Object.keys(t=a({},r)).forEach(function(e){t[e]||delete t[e]}),t),i=JSON.stringify({text:e,copyStyle:o});if(l.widthCache[i])return l.widthCache[i];try{var c=document.getElementById(s);c||((c=document.createElement("span")).setAttribute("id",s),c.setAttribute("aria-hidden","true"),document.body.appendChild(c));var f=a(a({},u),o);Object.assign(c.style,f),c.textContent="".concat(e);var p=c.getBoundingClientRect(),d={width:p.width,height:p.height};return l.widthCache[i]=d,++l.cacheCount>2e3&&(l.cacheCount=0,l.widthCache={}),d}catch(e){return{width:0,height:0}}},f=function(e){return{top:e.top+window.scrollY-document.documentElement.clientTop,left:e.left+window.scrollX-document.documentElement.clientLeft}}},91009:(e,t,r)=>{var n=r(83684),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0)&&(r==t.length-1?t.pop():o.call(t,r,1),--this.size,!0)}},91341:(e,t,r)=>{e.exports=r(75011)(r(42648),"DataView")},91449:(e,t,r)=>{var n=r(44361),o=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(o,""):e}},91545:(e,t,r)=>{var n=r(95187),o=1/0;e.exports=function(e){return e?(e=n(e))===o||e===-o?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},91696:(e,t,r)=>{var n=r(1609),o=r(66507),i=r(69804),a=r(85496),l=r(84880);function u(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t{var n=r(24548),o=r(11986),i=r(82123),a=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},92205:(e,t,r)=>{"use strict";r.d(t,{E:()=>u});var n=r(32716),o=r(14693),i=r(2893),a=r(47122),l=r(83687),u=(0,n.gu)({chartName:"BarChart",GraphicalChild:o.y,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:i.W},{axisType:"yAxis",AxisComp:a.h}],formatAxisMap:l.pr})},92224:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>eN});var n=r(55729),o=r(56121),i=r.n(o),a=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty;function s(e,t){return function(r,n,o){return e(r,n,o)&&t(r,n,o)}}function c(e){return function(t,r,n){if(!t||!r||"object"!=typeof t||"object"!=typeof r)return e(t,r,n);var o=n.cache,i=o.get(t),a=o.get(r);if(i&&a)return i===r&&a===t;o.set(t,r),o.set(r,t);var l=e(t,r,n);return o.delete(t),o.delete(r),l}}function f(e){return a(e).concat(l(e))}var p=Object.hasOwn||function(e,t){return u.call(e,t)};function d(e,t){return e||t?e===t:e===t||e!=e&&t!=t}var h="_owner",y=Object.getOwnPropertyDescriptor,g=Object.keys;function v(e,t,r){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function m(e,t){return d(e.getTime(),t.getTime())}function b(e,t,r){if(e.size!==t.size)return!1;for(var n,o,i={},a=e.entries(),l=0;(n=a.next())&&!n.done;){for(var u=t.entries(),s=!1,c=0;(o=u.next())&&!o.done;){var f=n.value,p=f[0],d=f[1],h=o.value,y=h[0],g=h[1];!s&&!i[c]&&(s=r.equals(p,y,l,c,e,t,r)&&r.equals(d,g,p,y,e,t,r))&&(i[c]=!0),c++}if(!s)return!1;l++}return!0}function x(e,t,r){var n,o=g(e),i=o.length;if(g(t).length!==i)return!1;for(;i-- >0;)if((n=o[i])===h&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!p(t,n)||!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function w(e,t,r){var n,o,i,a=f(e),l=a.length;if(f(t).length!==l)return!1;for(;l-- >0;)if((n=a[l])===h&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!p(t,n)||!r.equals(e[n],t[n],n,n,e,t,r)||(o=y(e,n),i=y(t,n),(o||i)&&(!o||!i||o.configurable!==i.configurable||o.enumerable!==i.enumerable||o.writable!==i.writable)))return!1;return!0}function O(e,t){return d(e.valueOf(),t.valueOf())}function S(e,t){return e.source===t.source&&e.flags===t.flags}function j(e,t,r){if(e.size!==t.size)return!1;for(var n,o,i={},a=e.values();(n=a.next())&&!n.done;){for(var l=t.values(),u=!1,s=0;(o=l.next())&&!o.done;)!u&&!i[s]&&(u=r.equals(n.value,o.value,n.value,o.value,e,t,r))&&(i[s]=!0),s++;if(!u)return!1}return!0}function A(e,t){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}var E=Array.isArray,P="function"==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView:null,_=Object.assign,M=Object.prototype.toString.call.bind(Object.prototype.toString),C=k();function k(e){void 0===e&&(e={});var t,r,n,o,i,a,l,u,f,p=e.circular,d=e.createInternalComparator,h=e.createState,y=e.strict,g=(r=(t=function(e){var t=e.circular,r=e.createCustomConfig,n=e.strict,o={areArraysEqual:n?w:v,areDatesEqual:m,areMapsEqual:n?s(b,w):b,areObjectsEqual:n?w:x,arePrimitiveWrappersEqual:O,areRegExpsEqual:S,areSetsEqual:n?s(j,w):j,areTypedArraysEqual:n?w:A};if(r&&(o=_({},o,r(o))),t){var i=c(o.areArraysEqual),a=c(o.areMapsEqual),l=c(o.areObjectsEqual),u=c(o.areSetsEqual);o=_({},o,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:l,areSetsEqual:u})}return o}(e)).areArraysEqual,n=t.areDatesEqual,o=t.areMapsEqual,i=t.areObjectsEqual,a=t.arePrimitiveWrappersEqual,l=t.areRegExpsEqual,u=t.areSetsEqual,f=t.areTypedArraysEqual,function(e,t,s){if(e===t)return!0;if(null==e||null==t||"object"!=typeof e||"object"!=typeof t)return e!=e&&t!=t;var c=e.constructor;if(c!==t.constructor)return!1;if(c===Object)return i(e,t,s);if(E(e))return r(e,t,s);if(null!=P&&P(e))return f(e,t,s);if(c===Date)return n(e,t,s);if(c===RegExp)return l(e,t,s);if(c===Map)return o(e,t,s);if(c===Set)return u(e,t,s);var p=M(e);return"[object Date]"===p?n(e,t,s):"[object RegExp]"===p?l(e,t,s):"[object Map]"===p?o(e,t,s):"[object Set]"===p?u(e,t,s):"[object Object]"===p?"function"!=typeof e.then&&"function"!=typeof t.then&&i(e,t,s):"[object Arguments]"===p?i(e,t,s):("[object Boolean]"===p||"[object Number]"===p||"[object String]"===p)&&a(e,t,s)}),C=d?d(g):function(e,t,r,n,o,i,a){return g(e,t,a)};return function(e){var t=e.circular,r=e.comparator,n=e.createState,o=e.equals,i=e.strict;if(n)return function(e,a){var l=n(),u=l.cache;return r(e,a,{cache:void 0===u?t?new WeakMap:void 0:u,equals:o,meta:l.meta,strict:i})};if(t)return function(e,t){return r(e,t,{cache:new WeakMap,equals:o,meta:void 0,strict:i})};var a={cache:void 0,equals:o,meta:void 0,strict:i};return function(e,t){return r(e,t,a)}}({circular:void 0!==p&&p,comparator:g,createState:h,equals:C,strict:void 0!==y&&y})}function T(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=-1;requestAnimationFrame(function n(o){if(r<0&&(r=o),o-r>t)e(o),r=-1;else{var i;i=n,"u">typeof requestAnimationFrame&&requestAnimationFrame(i)}})}function I(e){return(I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);re.length)&&(t=e.length);for(var r=0,n=Array(t);rtypeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],u=!0,s=!1;try{i=(r=r.call(e)).next,!1;for(;!(u=(n=i.call(r)).done)&&(l.push(n.value),4!==l.length);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(c,4)||H(c,4)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();i=f[0],a=f[1],l=f[2],u=f[3]}else U(!1,"[configBezier]: arguments should be one of oneOf 'linear', 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', instead received %s",n)}U([i,l,a,u].every(function(e){return"number"==typeof e&&e>=0&&e<=1}),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",n);var p=q(i,l),d=q(a,u),h=(e=i,t=l,function(r){var n;return W([].concat(function(e){if(Array.isArray(e))return $(e)}(n=G(e,t).map(function(e,t){return e*t}).slice(1))||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||H(n)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[0]),r)}),y=function(e){for(var t=e>1?1:e,r=t,n=0;n<8;++n){var o,i=p(r)-t,a=h(r);if(1e-4>Math.abs(i-t)||a<1e-4)break;r=(o=r-i/a)>1?1:o<0?0:o}return d(r)};return y.isStepper=!1,y},K=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.stiff,r=void 0===t?100:t,n=e.damping,o=void 0===n?8:n,i=e.dt,a=void 0===i?17:i,l=function(e,t,n){var i=n+(-(e-t)*r-n*o)*a/1e3,l=n*a/1e3+e;return 1e-4>Math.abs(l-t)&&1e-4>Math.abs(i)?[t,0]:[l,i]};return l.isStepper=!0,l.dt=a,l},Y=function(){for(var e=arguments.length,t=Array(e),r=0;rtypeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||er(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Q(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ee(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=Array(t);rtypeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],u=!0,s=!1;try{i=(r=r.call(e)).next,!1;for(;!(u=(n=i.call(r)).done)&&(l.push(n.value),2!==l.length);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(n,2)||er(n,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),i=o[0],a=o[1];return ee(ee({},r),{},{from:i,velocity:a})}return r},r);return n<1?z(function(e,t){return ei(t)?ee(ee({},t),{},{velocity:eo(t.velocity,o[e].velocity,n),from:eo(t.from,o[e].from,n)}):t},r):e(t,o,n-1)};let el=function(e,t,r,n,o){var i,a,l=[Object.keys(e),Object.keys(t)].reduce(function(e,t){return e.filter(function(e){return t.includes(e)})}),u=l.reduce(function(r,n){return ee(ee({},r),{},et({},n,[e[n],t[n]]))},{}),s=l.reduce(function(r,n){return ee(ee({},r),{},et({},n,{from:e[n],velocity:0,to:t[n]}))},{}),c=-1,f=function(){return null};return f=r.isStepper?function(n){i||(i=n);var a=(n-i)/r.dt;s=ea(r,s,a),o(ee(ee(ee({},e),t),z(function(e,t){return t.from},s))),i=n,Object.values(s).filter(ei).length&&(c=requestAnimationFrame(f))}:function(i){a||(a=i);var l=(i-a)/n,s=z(function(e,t){return eo.apply(void 0,Z(t).concat([r(l)]))},u);if(o(ee(ee(ee({},e),t),s)),l<1)c=requestAnimationFrame(f);else{var p=z(function(e,t){return eo.apply(void 0,Z(t).concat([r(1)]))},u);o(ee(ee(ee({},e),t),p))}},function(){return requestAnimationFrame(f),function(){cancelAnimationFrame(c)}}};function eu(e){return(eu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var es=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function ec(e){return function(e){if(Array.isArray(e))return ef(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return ef(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ef(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ef(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r0?r[o-1]:n,p=s||Object.keys(u);if("function"==typeof l||"spring"===l)return[].concat(ec(e),[t.runJSAnimation.bind(t,{from:f.style,to:u,duration:i,easing:l}),i]);var d=V(p,i,l),h=ed(ed(ed({},f.style),u),{},{transition:d});return[].concat(ec(e),[h,i,c]).filter(L)},[a,Math.max(void 0===l?0:l,n)])),[e.onAnimationEnd]))}},{key:"runAnimation",value:function(e){this.manager||(this.manager=(t=function(){return null},r=!1,n=function e(n){if(!r){if(Array.isArray(n)){if(!n.length)return;var o=function(e){if(Array.isArray(e))return e}(n)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return R(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return R(e,void 0)}}(n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),i=o[0],a=o.slice(1);return"number"==typeof i?void T(e.bind(null,a),i):(e(i),void T(e.bind(null,a)))}"object"===I(n)&&t(n),"function"==typeof n&&n()}},{stop:function(){r=!0},start:function(e){r=!1,n(e)},subscribe:function(e){return t=e,function(){t=function(){return null}}}}));var t,r,n,o=e.begin,i=e.duration,a=e.attributeName,l=e.to,u=e.easing,s=e.onAnimationStart,c=e.onAnimationEnd,f=e.steps,p=e.children,d=this.manager;if(this.unSubscribe=d.subscribe(this.handleStyleChange),"function"==typeof u||"function"==typeof p||"spring"===u)return void this.runJSAnimation(e);if(f.length>1)return void this.runStepAnimation(e);var h=a?eh({},a,l):l,y=V(Object.keys(h),i,u);d.start([s,o,ed(ed({},h),{},{transition:y}),i,c])}},{key:"render",value:function(){var e=this.props,t=e.children,r=(e.begin,e.duration),o=(e.attributeName,e.easing,e.isActive),i=(e.steps,e.from,e.to,e.canBegin,e.onAnimationEnd,e.shouldReAnimate,e.onAnimationReStart,function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,es)),a=n.Children.count(t),l=this.state.style;if("function"==typeof t)return t(l);if(!o||0===a||r<=0)return t;var u=function(e){var t=e.props,r=t.style,o=t.className;return(0,n.cloneElement)(e,ed(ed({},i),{},{style:ed(ed({},void 0===r?{}:r),l),className:o}))};return 1===a?u(n.Children.only(t)):n.createElement("div",null,n.Children.map(t,function(e){return u(e)}))}}],function(e,t){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:{},t=e.steps,r=e.duration;return t&&t.length?t.reduce(function(e,t){return e+(Number.isFinite(t.duration)&&t.duration>0?t.duration:0)},0):Number.isFinite(r)?r:0},eR=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");i.prototype=Object.create(e&&e.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),e&&e_(i,e);var t,r,o=(t=function(){if("u"=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(t,eS));return n.createElement(eO.Ay,eA({},o,{onEnter:this.handleEnter,onExit:this.handleExit,timeout:this.parseTimeout()}),function(){return n.createElement(ex,e.state,n.Children.only(r))})}}],function(e,t){for(var r=0;r{e.exports=r(42648).Uint8Array},93463:(e,t,r)=>{"use strict";r.d(t,{e:()=>C});var n=r(55729),o=r(16087),i=r.n(o),a=r(63087),l=r.n(a),u=r(50212),s=r(3780),c=r(35555),f=r(47374),p=r(53645),d=r(83687),h=r(7571),y=r(93780),g=r(2549);function v(e){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(m=function(){return!!e})()}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function x(e,t){return(x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function w(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function O(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=Array(t);rtypeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],u=!0,s=!1;try{i=(r=r.call(e)).next,!1;for(;!(u=(n=i.call(r)).done)&&(l.push(n.value),2!==l.length);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(j,2)||function(e,t){if(e){if("string"==typeof e)return A(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return A(e,2)}}(j,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),M=E[0],C=M.x,k=M.y,T=E[1],I=T.x,R=T.y,D=O(O({clipPath:(0,f.R)(e,"hidden")?"url(#".concat(b,")"):void 0},(0,y.J9)(e,!0)),{},{x1:C,y1:k,x2:I,y2:R});return n.createElement(s.W,{className:(0,u.A)("recharts-reference-line",v)},P(l,D),c.J.renderCallByParent(e,(0,d.vh)({x1:C,y1:k,x2:I,y2:R})))}var C=function(e){var t;function r(){var e,t;if(!(this instanceof r))throw TypeError("Cannot call a class as a function");return e=r,t=arguments,e=b(e),function(e,t){if(t&&("object"===v(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");var r=e;if(void 0===r)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(this,m()?Reflect.construct(e,t||[],b(this).constructor):e.apply(this,t))}if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");return r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&x(r,e),t=[{key:"render",value:function(){return n.createElement(M,this.props)}}],function(e,t){for(var r=0;r{"use strict";r.d(t,{s:()=>l});var n=r(68899),o=r.n(n),i=r(16087),a=r.n(i);function l(e,t,r){return!0===t?o()(e,r):a()(t)?o()(e,t):e}},93780:(e,t,r)=>{"use strict";r.d(t,{AW:()=>B,BU:()=>_,J9:()=>I,Me:()=>M,Mn:()=>S,OV:()=>R,X_:()=>F,aS:()=>P,ee:()=>N,sT:()=>k});var n=r(96485),o=r.n(n),i=r(1250),a=r.n(i),l=r(42190),u=r.n(l),s=r(16087),c=r.n(s),f=r(51032),p=r.n(f),d=r(55729),h=r(16878),y=r(53645),g=r(5688),v=r(27281),m=["children"],b=["children"];function x(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function w(e){return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var O={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},S=function(e){return"string"==typeof e?e:e?e.displayName||e.name||"Component":""},j=null,A=null,E=function e(t){if(t===j&&Array.isArray(A))return A;var r=[];return d.Children.forEach(t,function(t){a()(t)||((0,h.isFragment)(t)?r=r.concat(e(t.props.children)):r.push(t))}),A=r,j=t,r};function P(e,t){var r=[],n=[];return n=Array.isArray(t)?t.map(function(e){return S(e)}):[S(t)],E(e).forEach(function(e){var t=o()(e,"type.displayName")||o()(e,"type.name");-1!==n.indexOf(t)&&r.push(e)}),r}function _(e,t){var r=P(e,t);return r&&r[0]}var M=function(e){if(!e||!e.props)return!1;var t=e.props,r=t.width,n=t.height;return!!(0,y.Et)(r)&&!(r<=0)&&!!(0,y.Et)(n)&&!(n<=0)},C=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],k=function(e){return e&&"object"===w(e)&&"clipDot"in e},T=function(e,t,r,n){var o,i=null!=(o=null===v.VU||void 0===v.VU?void 0:v.VU[n])?o:[];return!c()(e)&&(n&&i.includes(t)||v.QQ.includes(t))||r&&v.j2.includes(t)},I=function(e,t,r){if(!e||"function"==typeof e||"boolean"==typeof e)return null;var n=e;if((0,d.isValidElement)(e)&&(n=e.props),!p()(n))return null;var o={};return Object.keys(n).forEach(function(e){var i;T(null==(i=n)?void 0:i[e],e,t,r)&&(o[e]=n[e])}),o},R=function e(t,r){if(t===r)return!0;var n=d.Children.count(t);if(n!==d.Children.count(r))return!1;if(0===n)return!0;if(1===n)return D(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var o=0;o=0)r.push(e);else if(e){var i=S(e.type),a=t[i]||{},l=a.handler,s=a.once;if(l&&(!s||!n[i])){var c=l(e,i,o);r.push(c),n[i]=!0}}}),r},F=function(e){var t=e&&e.type;return t&&O[t]?O[t]:null},B=function(e,t){return E(t).indexOf(e)}},95099:(e,t,r)=>{"use strict";r.d(t,{q:()=>l});var n=r(28171),o=r(43379),i=class extends n.${constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e,t){super.setOptions({...e,behavior:(0,o.PL)()},t)}getOptimisticResult(e){return e.behavior=(0,o.PL)(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){let{state:r}=e,n=super.createResult(e,t),{isFetching:i,isRefetching:a,isError:l,isRefetchError:u}=n,s=r.fetchMeta?.fetchMore?.direction,c=l&&"forward"===s,f=i&&"forward"===s,p=l&&"backward"===s,d=i&&"backward"===s;return{...n,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:(0,o.rB)(t,r.data),hasPreviousPage:(0,o.RQ)(t,r.data),isFetchNextPageError:c,isFetchingNextPage:f,isFetchPreviousPageError:p,isFetchingPreviousPage:d,isRefetchError:u&&!c&&!p,isRefetching:a&&!f&&!d}}},a=r(34185);function l(e,t){return(0,a.t)(e,i,t)}},95187:(e,t,r)=>{var n=r(91449),o=r(51032),i=r(2223),a=0/0,l=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,s=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return a;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var r=u.test(e);return r||s.test(e)?c(e.slice(2),r?2:8):l.test(e)?a:+e}},95479:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},95801:e=>{"use strict";var t=Object.prototype.hasOwnProperty,r="~";function n(){}function o(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function i(e,t,n,i,a){if("function"!=typeof n)throw TypeError("The listener must be a function");var l=new o(n,i||e,a),u=r?r+t:t;return e._events[u]?e._events[u].fn?e._events[u]=[e._events[u],l]:e._events[u].push(l):(e._events[u]=l,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new n:delete e._events[t]}function l(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1)),l.prototype.eventNames=function(){var e,n,o=[];if(0===this._eventsCount)return o;for(n in e=this._events)t.call(e,n)&&o.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},l.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var o=0,i=n.length,a=Array(i);o{var n=r(24548),o=r(92277),i=r(10321),a=r(50934),l=r(53272),u=r(83622),s=n?n.prototype:void 0,c=s?s.valueOf:void 0;e.exports=function(e,t,r,n,s,f,p){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":if(e.byteLength!=t.byteLength||!f(new o(e),new o(t)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var d=l;case"[object Set]":var h=1&n;if(d||(d=u),e.size!=t.size&&!h)break;var y=p.get(e);if(y)return y==t;n|=2,p.set(e,t);var g=a(d(e),d(t),n,s,f,p);return p.delete(e),g;case"[object Symbol]":if(c)return c.call(e)==c.call(t)}return!1}},96485:(e,t,r)=>{var n=r(29707);e.exports=function(e,t,r){var o=null==e?void 0:n(e,t);return void 0===o?r:o}},96972:e=>{e.exports=function(e){return this.__data__.has(e)}},96989:(e,t,r)=>{var n=r(91878),o=r(27679);e.exports=function(e){return!0===e||!1===e||o(e)&&"[object Boolean]"==n(e)}},97469:(e,t,r)=>{var n=r(21115);e.exports=function(e,t){return n(e,t)}},97655:(e,t,r)=>{var n=r(64961),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g;e.exports=n(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,function(e,r,n,o){t.push(n?o.replace(i,"$1"):r||e)}),t})},97767:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var n=(0,r(41495).A)("outline","arrow-up","IconArrowUp",[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M18 11l-6 -6",key:"svg-1"}],["path",{d:"M6 11l6 -6",key:"svg-2"}]])},98420:(e,t,r)=>{var n=r(51856);e.exports=function(e,t){var r=!0;return n(e,function(e,n,o){return r=!!t(e,n,o)}),r}},98612:(e,t,r)=>{var n=r(81006),o=r(42206),i=r(91696);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var a=r.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new i(a)}return r.set(e,t),this.size=r.size,this}},98945:e=>{e.exports=function(e,t){for(var r=-1,n=t.length,o=e.length;++r{var n=r(91878),o=r(27679);e.exports=function(e){return"number"==typeof e||o(e)&&"[object Number]"==n(e)}},99761:(e,t,r)=>{var n=r(51856),o=r(26139);e.exports=function(e,t){var r=-1,i=o(e)?Array(e.length):[];return n(e,function(e,n,o){i[++r]=t(e,n,o)}),i}},99820:(e,t,r)=>{var n=r(81006),o=r(62173),i=r(89511),a=r(75768),l=r(96972),u=r(98612);function s(e){var t=this.__data__=new n(e);this.size=t.size}s.prototype.clear=o,s.prototype.delete=i,s.prototype.get=a,s.prototype.has=l,s.prototype.set=u,e.exports=s}}]); \ No newline at end of file diff --git a/out/_next/static/chunks/9979-25cce956b8228ba9.js b/out/_next/static/chunks/9979-25cce956b8228ba9.js deleted file mode 100644 index cb6a37c..0000000 --- a/out/_next/static/chunks/9979-25cce956b8228ba9.js +++ /dev/null @@ -1,4 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9979],{831:(e,t,n)=>{var r=n(68988),o=n(22180);e.exports=function(e,t){return e&&e.length?o(e,r(t,2)):[]}},1509:(e,t,n)=>{"use strict";n.d(t,{s0:()=>rx,gH:()=>rg,YB:()=>rk,HQ:()=>rM,xi:()=>r_,Hj:()=>r$,BX:()=>rb,tA:()=>rm,DW:()=>rL,y2:()=>rB,nb:()=>rF,PW:()=>rj,Ay:()=>ry,vf:()=>rS,Mk:()=>rV,Ps:()=>rv,Mn:()=>rD,kA:()=>rz,Rh:()=>rE,w7:()=>rN,zb:()=>rq,kr:()=>rh,_L:()=>rA,KC:()=>rW,A1:()=>rO,W7:()=>rC,AQ:()=>rG,_f:()=>rT});var r,o,i,a,l,u,s,c={};n.r(c),n.d(c,{scaleBand:()=>f.A,scaleDiverging:()=>function e(){var t=Y(nd()(_));return t.copy=function(){return nc(t,e())},B.K.apply(t,arguments)},scaleDivergingLog:()=>function e(){var t=ei(nd()).domain([.1,1,10]);return t.copy=function(){return nc(t,e()).base(t.base())},B.K.apply(t,arguments)},scaleDivergingPow:()=>nh,scaleDivergingSqrt:()=>ny,scaleDivergingSymlog:()=>function e(){var t=eu(nd());return t.copy=function(){return nc(t,e()).constant(t.constant())},B.K.apply(t,arguments)},scaleIdentity:()=>function e(t){var n;function r(e){return null==e||isNaN(e*=1)?n:e}return r.invert=r,r.domain=r.range=function(e){return arguments.length?(t=Array.from(e,C),r):t.slice()},r.unknown=function(e){return arguments.length?(n=e,r):n},r.copy=function(){return e(t).unknown(n)},t=arguments.length?Array.from(t,C):[0,1],Y(r)},scaleImplicit:()=>es.h,scaleLinear:()=>J,scaleLog:()=>function e(){let t=ei(N()).domain([1,10]);return t.copy=()=>D(t,e()).base(t.base()),B.C.apply(t,arguments),t},scaleOrdinal:()=>es.A,scalePoint:()=>f.z,scalePow:()=>eh,scaleQuantile:()=>function e(){var t,n=[],r=[],o=[];function i(){var e=0,t=Math.max(1,r.length);for(o=Array(t-1);++e=1)return+n(e[r-1],r-1,e);var r,o=(r-1)*t,i=Math.floor(o),a=+n(e[i],i,e);return a+(n(e[i+1],i+1,e)-a)*(o-i)}}(n,e/t);return a}function a(e){return null==e||isNaN(e*=1)?t:r[j(o,e)]}return a.invertExtent=function(e){var t=r.indexOf(e);return t<0?[NaN,NaN]:[t>0?o[t-1]:n[0],tfunction e(){var t,n=0,r=1,o=1,i=[.5],a=[0,1];function l(e){return null!=e&&e<=e?a[j(i,e,0,o)]:t}function u(){var e=-1;for(i=Array(o);++e=o?[i[o-1],r]:[i[t-1],i[t]]},l.unknown=function(e){return arguments.length&&(t=e),l},l.thresholds=function(){return i.slice()},l.copy=function(){return e().domain([n,r]).range(a).unknown(t)},B.C.apply(Y(l),arguments)},scaleRadial:()=>function e(){var t,n=F(),r=[0,1],o=!1;function i(e){var r,i=Math.sign(r=n(e))*Math.sqrt(Math.abs(r));return isNaN(i)?t:o?Math.round(i):i}return i.invert=function(e){return n.invert(eg(e))},i.domain=function(e){return arguments.length?(n.domain(e),i):n.domain()},i.range=function(e){return arguments.length?(n.range((r=Array.from(e,C)).map(eg)),i):r.slice()},i.rangeRound=function(e){return i.range(e).round(!0)},i.round=function(e){return arguments.length?(o=!!e,i):o},i.clamp=function(e){return arguments.length?(n.clamp(e),i):n.clamp()},i.unknown=function(e){return arguments.length?(t=e,i):t},i.copy=function(){return e(n.domain(),r).round(o).clamp(n.clamp()).unknown(t)},B.C.apply(i,arguments),Y(i)},scaleSequential:()=>function e(){var t=Y(ns()(_));return t.copy=function(){return nc(t,e())},B.K.apply(t,arguments)},scaleSequentialLog:()=>function e(){var t=ei(ns()).domain([1,10]);return t.copy=function(){return nc(t,e()).base(t.base())},B.K.apply(t,arguments)},scaleSequentialPow:()=>nf,scaleSequentialQuantile:()=>function e(){var t=[],n=_;function r(e){if(null!=e&&!isNaN(e*=1))return n((j(t,e,1)-1)/(t.length-1))}return r.domain=function(e){if(!arguments.length)return t.slice();for(let n of(t=[],e))null==n||isNaN(n*=1)||t.push(n);return t.sort(b),r},r.interpolator=function(e){return arguments.length?(n=e,r):n},r.range=function(){return t.map((e,r)=>n(r/(t.length-1)))},r.quantiles=function(e){return Array.from({length:e+1},(n,r)=>(function(e,t,n){if(!(!(r=(e=Float64Array.from(function*(e,t){if(void 0===t)for(let t of e)null!=t&&(t*=1)>=t&&(yield t);else{let n=-1;for(let r of e)null!=(r=t(r,++n,e))&&(r*=1)>=r&&(yield r)}}(e,void 0))).length)||isNaN(t*=1))){if(t<=0||r<2)return em(e);if(t>=1)return ev(e);var r,o=(r-1)*t,i=Math.floor(o),a=ev((function e(t,n,r=0,o=1/0,i){if(n=Math.floor(n),r=Math.floor(Math.max(0,r)),o=Math.floor(Math.min(t.length-1,o)),!(r<=n&&n<=o))return t;for(i=void 0===i?eb:function(e=b){if(e===b)return eb;if("function"!=typeof e)throw TypeError("compare is not a function");return(t,n)=>{let r=e(t,n);return r||0===r?r:(0===e(n,n))-(0===e(t,t))}}(i);o>r;){if(o-r>600){let a=o-r+1,l=n-r+1,u=Math.log(a),s=.5*Math.exp(2*u/3),c=.5*Math.sqrt(u*s*(a-s)/a)*(l-a/2<0?-1:1),f=Math.max(r,Math.floor(n-l*s/a+c)),p=Math.min(o,Math.floor(n+(a-l)*s/a+c));e(t,n,f,p,i)}let a=t[n],l=r,u=o;for(ex(t,r,n),i(t[o],a)>0&&ex(t,r,o);li(t[l],a);)++l;for(;i(t[u],a)>0;)--u}0===i(t[r],a)?ex(t,r,u):ex(t,++u,o),u<=n&&(r=u+1),n<=u&&(o=u-1)}return t})(e,i).subarray(0,i+1));return a+(em(e.subarray(i+1))-a)*(o-i)}})(t,r/e))},r.copy=function(){return e(n).domain(t)},B.K.apply(r,arguments)},scaleSequentialSqrt:()=>np,scaleSequentialSymlog:()=>function e(){var t=eu(ns());return t.copy=function(){return nc(t,e()).constant(t.constant())},B.K.apply(t,arguments)},scaleSqrt:()=>ey,scaleSymlog:()=>function e(){var t=eu(N());return t.copy=function(){return D(t,e()).constant(t.constant())},B.C.apply(t,arguments)},scaleThreshold:()=>function e(){var t,n=[.5],r=[0,1],o=1;function i(e){return null!=e&&e<=e?r[j(n,e,0,o)]:t}return i.domain=function(e){return arguments.length?(o=Math.min((n=Array.from(e)).length,r.length-1),i):n.slice()},i.range=function(e){return arguments.length?(r=Array.from(e),o=Math.min(n.length,r.length-1),i):r.slice()},i.invertExtent=function(e){var t=r.indexOf(e);return[n[t-1],n[t]]},i.unknown=function(e){return arguments.length?(t=e,i):t},i.copy=function(){return e().domain(n).range(r).unknown(t)},B.C.apply(i,arguments)},scaleTime:()=>nl,scaleUtc:()=>nu,tickFormat:()=>K});var f=n(49726);let p=Math.sqrt(50),d=Math.sqrt(10),h=Math.sqrt(2);function y(e,t,n){let r,o,i,a=(t-e)/Math.max(0,n),l=Math.floor(Math.log10(a)),u=a/Math.pow(10,l),s=u>=p?10:u>=d?5:u>=h?2:1;return(l<0?(r=Math.round(e*(i=Math.pow(10,-l)/s)),o=Math.round(t*i),r/it&&--o,i=-i):(r=Math.round(e/(i=Math.pow(10,l)*s)),o=Math.round(t/i),r*it&&--o),o0))return[];if(e===t)return[e];let r=t=o))return[];let l=i-o+1,u=Array(l);if(r)if(a<0)for(let e=0;et?1:e>=t?0:NaN}function x(e,t){return null==e||null==t?NaN:te?1:t>=e?0:NaN}function w(e){let t,n,r;function o(e,r,i=0,a=e.length){if(i>>1;0>n(e[t],r)?i=t+1:a=t}while(ib(e(t),n),r=(t,n)=>e(t)-n):(t=e===b||e===x?e:O,n=e,r=e),{left:o,center:function(e,t,n=0,i=e.length){let a=o(e,t,n,i-1);return a>n&&r(e[a-1],t)>-r(e[a],t)?a-1:a},right:function(e,r,o=0,i=e.length){if(o>>1;0>=n(e[t],r)?o=t+1:i=t}while(ot&&(n=e,e=t,t=n),s=function(n){return Math.max(e,Math.min(t,n))}),r=u>2?R:I,o=i=null,f}function f(t){return null==t||isNaN(t*=1)?n:(o||(o=r(a.map(e),l,u)))(e(s(t)))}return f.invert=function(n){return s(t((i||(i=r(l,a.map(e),P.A)))(n)))},f.domain=function(e){return arguments.length?(a=Array.from(e,C),c()):a.slice()},f.range=function(e){return arguments.length?(l=Array.from(e),c()):l.slice()},f.rangeRound=function(e){return l=Array.from(e),u=M,c()},f.clamp=function(e){return arguments.length?(s=!!e||_,c()):s!==_},f.interpolate=function(e){return arguments.length?(u=e,c()):u},f.unknown=function(e){return arguments.length?(n=e,f):n},function(n,r){return e=n,t=r,c()}}function F(){return N()(_,_)}var B=n(58905),L=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function z(e){var t;if(!(t=L.exec(e)))throw Error("invalid format: "+e);return new V({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function V(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function U(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function H(e){return(e=U(Math.abs(e)))?e[1]:NaN}function G(e,t){var n=U(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+Array(o-r.length+2).join("0")}z.prototype=V.prototype,V.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};let $={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>G(100*e,t),r:G,s:function(e,t){var n=U(e,t);if(!n)return e+"";var o=n[0],i=n[1],a=i-(r=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,l=o.length;return a===l?o:a>l?o+Array(a-l+1).join("0"):a>0?o.slice(0,a)+"."+o.slice(a):"0."+Array(1-a).join("0")+U(e,Math.max(0,t+a-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function W(e){return e}var q=Array.prototype.map,X=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function K(e,t,n,r){var o,l,u=m(e,t,n);switch((r=z(null==r?",f":r)).type){case"s":var s=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(l=Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(H(s)/3)))-H(Math.abs(u))))||(r.precision=l),a(r,s);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(l=Math.max(0,H(Math.abs(Math.max(Math.abs(e),Math.abs(t)))-(o=Math.abs(o=u)))-H(o))+1)||(r.precision=l-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(l=Math.max(0,-H(Math.abs(u))))||(r.precision=l-("%"===r.type)*2)}return i(r)}function Y(e){var t=e.domain;return e.ticks=function(e){var n=t();return g(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return K(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,o,i=t(),a=0,l=i.length-1,u=i[a],s=i[l],c=10;for(s0;){if((o=v(u,s,n))===r)return i[a]=u,i[l]=s,t(i);if(o>0)u=Math.floor(u/o)*o,s=Math.ceil(s/o)*o;else if(o<0)u=Math.ceil(u*o)/o,s=Math.floor(s*o)/o;else break;r=o}return e},e}function J(){var e=F();return e.copy=function(){return D(e,J())},B.C.apply(e,arguments),Y(e)}function Z(e,t){e=e.slice();var n,r=0,o=e.length-1,i=e[r],a=e[o];return a-e(-t,n)}function ei(e){let t,n,r=e(Q,ee),o=r.domain,a=10;function l(){var i,l;return t=(i=a)===Math.E?Math.log:10===i&&Math.log10||2===i&&Math.log2||(i=Math.log(i),e=>Math.log(e)/i),n=10===(l=a)?er:l===Math.E?Math.exp:e=>Math.pow(l,e),o()[0]<0?(t=eo(t),n=eo(n),e(et,en)):e(Q,ee),r}return r.base=function(e){return arguments.length?(a=+e,l()):a},r.domain=function(e){return arguments.length?(o(e),l()):o()},r.ticks=e=>{let r,i,l=o(),u=l[0],s=l[l.length-1],c=s0){for(;f<=p;++f)for(r=1;rs)break;h.push(i)}}else for(;f<=p;++f)for(r=a-1;r>=1;--r)if(!((i=f>0?r/n(-f):r*n(f))s)break;h.push(i)}2*h.length{if(null==e&&(e=10),null==o&&(o=10===a?"s":","),"function"!=typeof o&&(a%1||null!=(o=z(o)).precision||(o.trim=!0),o=i(o)),e===1/0)return o;let l=Math.max(1,a*e/r.ticks().length);return e=>{let r=e/n(Math.round(t(e)));return r*ao(Z(o(),{floor:e=>n(Math.floor(t(e))),ceil:e=>n(Math.ceil(t(e)))})),r}function ea(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function el(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function eu(e){var t=1,n=e(ea(1),el(t));return n.constant=function(n){return arguments.length?e(ea(t=+n),el(t)):t},Y(n)}i=(o=function(e){var t,n,o,i=void 0===e.grouping||void 0===e.thousands?W:(t=q.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var o=e.length,i=[],a=0,l=t[0],u=0;o>0&&l>0&&(u+l+1>r&&(l=Math.max(1,r-u)),i.push(e.substring(o-=l,o+l)),!((u+=l+1)>r));)l=t[a=(a+1)%t.length];return i.reverse().join(n)}),a=void 0===e.currency?"":e.currency[0]+"",l=void 0===e.currency?"":e.currency[1]+"",u=void 0===e.decimal?".":e.decimal+"",s=void 0===e.numerals?W:(o=q.call(e.numerals,String),function(e){return e.replace(/[0-9]/g,function(e){return o[+e]})}),c=void 0===e.percent?"%":e.percent+"",f=void 0===e.minus?"−":e.minus+"",p=void 0===e.nan?"NaN":e.nan+"";function d(e){var t=(e=z(e)).fill,n=e.align,o=e.sign,d=e.symbol,h=e.zero,y=e.width,g=e.comma,v=e.precision,m=e.trim,b=e.type;"n"===b?(g=!0,b="g"):$[b]||(void 0===v&&(v=12),m=!0,b="g"),(h||"0"===t&&"="===n)&&(h=!0,t="0",n="=");var x="$"===d?a:"#"===d&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",w="$"===d?l:/[%p]/.test(b)?c:"",O=$[b],S=/[defgprs%]/.test(b);function A(e){var a,l,c,d=x,A=w;if("c"===b)A=O(e)+A,e="";else{var j=(e*=1)<0||1/e<0;if(e=isNaN(e)?p:O(Math.abs(e),v),m&&(e=function(e){e:for(var t,n=e.length,r=1,o=-1;r0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),j&&0==+e&&"+"!==o&&(j=!1),d=(j?"("===o?o:f:"-"===o||"("===o?"":o)+d,A=("s"===b?X[8+r/3]:"")+A+(j&&"("===o?")":""),S){for(a=-1,l=e.length;++a(c=e.charCodeAt(a))||c>57){A=(46===c?u+e.slice(a+1):e.slice(a))+A,e=e.slice(0,a);break}}}g&&!h&&(e=i(e,1/0));var E=d.length+e.length+A.length,P=E>1)+d+e+A+P.slice(E);break;default:e=P+d+e+A}return s(e)}return v=void 0===v?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),A.toString=function(){return e+""},A}return{format:d,formatPrefix:function(e,t){var n=d(((e=z(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(H(t)/3))),o=Math.pow(10,-r),i=X[8+r/3];return function(e){return n(o*e)+i}}}}({thousands:",",grouping:[3],currency:["$",""]})).format,a=o.formatPrefix;var es=n(41499);function ec(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function ef(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function ep(e){return e<0?-e*e:e*e}function ed(e){var t=e(_,_),n=1;return t.exponent=function(t){return arguments.length?1==(n=+t)?e(_,_):.5===n?e(ef,ep):e(ec(n),ec(1/n)):n},Y(t)}function eh(){var e=ed(N());return e.copy=function(){return D(e,eh()).exponent(e.exponent())},B.C.apply(e,arguments),e}function ey(){return eh.apply(null,arguments).exponent(.5)}function eg(e){return Math.sign(e)*e*e}function ev(e,t){let n;if(void 0===t)for(let t of e)null!=t&&(n=t)&&(n=t);else{let r=-1;for(let o of e)null!=(o=t(o,++r,e))&&(n=o)&&(n=o)}return n}function em(e,t){let n;if(void 0===t)for(let t of e)null!=t&&(n>t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let o of e)null!=(o=t(o,++r,e))&&(n>o||void 0===n&&o>=o)&&(n=o)}return n}function eb(e,t){return(null==e||!(e>=e))-(null==t||!(t>=t))||(et))}function ex(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}let ew=new Date,eO=new Date;function eS(e,t,n,r){function o(t){return e(t=0==arguments.length?new Date:new Date(+t)),t}return o.floor=t=>(e(t=new Date(+t)),t),o.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),o.round=e=>{let t=o(e),n=o.ceil(e);return e-t(t(e=new Date(+e),null==n?1:Math.floor(n)),e),o.range=(n,r,i)=>{let a,l=[];if(n=o.ceil(n),i=null==i?1:Math.floor(i),!(n0))return l;do l.push(a=new Date(+n)),t(n,i),e(n);while(aeS(t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},(e,r)=>{if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}),n&&(o.count=(t,r)=>(ew.setTime(+t),eO.setTime(+r),e(ew),e(eO),Math.floor(n(ew,eO))),o.every=e=>isFinite(e=Math.floor(e))&&e>0?e>1?o.filter(r?t=>r(t)%e==0:t=>o.count(0,t)%e==0):o:null),o}let eA=eS(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);eA.every=e=>isFinite(e=Math.floor(e))&&e>0?e>1?eS(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):eA:null,eA.range;let ej=eS(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+1e3*t)},(e,t)=>(t-e)/1e3,e=>e.getUTCSeconds());ej.range;let eE=eS(e=>{e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds())},(e,t)=>{e.setTime(+e+6e4*t)},(e,t)=>(t-e)/6e4,e=>e.getMinutes());eE.range;let eP=eS(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+6e4*t)},(e,t)=>(t-e)/6e4,e=>e.getUTCMinutes());eP.range;let eM=eS(e=>{e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds()-6e4*e.getMinutes())},(e,t)=>{e.setTime(+e+36e5*t)},(e,t)=>(t-e)/36e5,e=>e.getHours());eM.range;let eC=eS(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+36e5*t)},(e,t)=>(t-e)/36e5,e=>e.getUTCHours());eC.range;let ek=eS(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/864e5,e=>e.getDate()-1);ek.range;let e_=eS(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/864e5,e=>e.getUTCDate()-1);e_.range;let eT=eS(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/864e5,e=>Math.floor(e/864e5));function eI(e){return eS(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(e,t)=>{e.setDate(e.getDate()+7*t)},(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/6048e5)}eT.range;let eR=eI(0),eD=eI(1),eN=eI(2),eF=eI(3),eB=eI(4),eL=eI(5),ez=eI(6);function eV(e){return eS(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)},(e,t)=>(t-e)/6048e5)}eR.range,eD.range,eN.range,eF.range,eB.range,eL.range,ez.range;let eU=eV(0),eH=eV(1),eG=eV(2),e$=eV(3),eW=eV(4),eq=eV(5),eX=eV(6);eU.range,eH.range,eG.range,e$.range,eW.range,eq.range,eX.range;let eK=eS(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());eK.range;let eY=eS(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());eY.range;let eJ=eS(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());eJ.every=e=>isFinite(e=Math.floor(e))&&e>0?eS(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)}):null,eJ.range;let eZ=eS(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());function eQ(e,t,n,r,o,i){let a=[[ej,1,1e3],[ej,5,5e3],[ej,15,15e3],[ej,30,3e4],[i,1,6e4],[i,5,3e5],[i,15,9e5],[i,30,18e5],[o,1,36e5],[o,3,108e5],[o,6,216e5],[o,12,432e5],[r,1,864e5],[r,2,1728e5],[n,1,6048e5],[t,1,2592e6],[t,3,7776e6],[e,1,31536e6]];function l(t,n,r){let o=Math.abs(n-t)/r,i=w(([,,e])=>e).right(a,o);if(i===a.length)return e.every(m(t/31536e6,n/31536e6,r));if(0===i)return eA.every(Math.max(m(t,n,r),1));let[l,u]=a[o/a[i-1][2]isFinite(e=Math.floor(e))&&e>0?eS(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)}):null,eZ.range;let[e0,e1]=eQ(eZ,eY,eU,eT,eC,eP),[e2,e5]=eQ(eJ,eK,eR,ek,eM,eE);function e3(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function e8(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function e9(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var e6={"-":"",_:" ",0:"0"},e4=/^\s*\d+/,e7=/^%/,te=/[\\^$*+?|[\]().{}]/g;function tt(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i[e.toLowerCase(),t]))}function ti(e,t,n){var r=e4.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function ta(e,t,n){var r=e4.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function tl(e,t,n){var r=e4.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function tu(e,t,n){var r=e4.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function ts(e,t,n){var r=e4.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function tc(e,t,n){var r=e4.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function tf(e,t,n){var r=e4.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function tp(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function td(e,t,n){var r=e4.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function th(e,t,n){var r=e4.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function ty(e,t,n){var r=e4.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function tg(e,t,n){var r=e4.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function tv(e,t,n){var r=e4.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function tm(e,t,n){var r=e4.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function tb(e,t,n){var r=e4.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function tx(e,t,n){var r=e4.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function tw(e,t,n){var r=e4.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function tO(e,t,n){var r=e7.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function tS(e,t,n){var r=e4.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function tA(e,t,n){var r=e4.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function tj(e,t){return tt(e.getDate(),t,2)}function tE(e,t){return tt(e.getHours(),t,2)}function tP(e,t){return tt(e.getHours()%12||12,t,2)}function tM(e,t){return tt(1+ek.count(eJ(e),e),t,3)}function tC(e,t){return tt(e.getMilliseconds(),t,3)}function tk(e,t){return tC(e,t)+"000"}function t_(e,t){return tt(e.getMonth()+1,t,2)}function tT(e,t){return tt(e.getMinutes(),t,2)}function tI(e,t){return tt(e.getSeconds(),t,2)}function tR(e){var t=e.getDay();return 0===t?7:t}function tD(e,t){return tt(eR.count(eJ(e)-1,e),t,2)}function tN(e){var t=e.getDay();return t>=4||0===t?eB(e):eB.ceil(e)}function tF(e,t){return e=tN(e),tt(eB.count(eJ(e),e)+(4===eJ(e).getDay()),t,2)}function tB(e){return e.getDay()}function tL(e,t){return tt(eD.count(eJ(e)-1,e),t,2)}function tz(e,t){return tt(e.getFullYear()%100,t,2)}function tV(e,t){return tt((e=tN(e)).getFullYear()%100,t,2)}function tU(e,t){return tt(e.getFullYear()%1e4,t,4)}function tH(e,t){var n=e.getDay();return tt((e=n>=4||0===n?eB(e):eB.ceil(e)).getFullYear()%1e4,t,4)}function tG(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+tt(t/60|0,"0",2)+tt(t%60,"0",2)}function t$(e,t){return tt(e.getUTCDate(),t,2)}function tW(e,t){return tt(e.getUTCHours(),t,2)}function tq(e,t){return tt(e.getUTCHours()%12||12,t,2)}function tX(e,t){return tt(1+e_.count(eZ(e),e),t,3)}function tK(e,t){return tt(e.getUTCMilliseconds(),t,3)}function tY(e,t){return tK(e,t)+"000"}function tJ(e,t){return tt(e.getUTCMonth()+1,t,2)}function tZ(e,t){return tt(e.getUTCMinutes(),t,2)}function tQ(e,t){return tt(e.getUTCSeconds(),t,2)}function t0(e){var t=e.getUTCDay();return 0===t?7:t}function t1(e,t){return tt(eU.count(eZ(e)-1,e),t,2)}function t2(e){var t=e.getUTCDay();return t>=4||0===t?eW(e):eW.ceil(e)}function t5(e,t){return e=t2(e),tt(eW.count(eZ(e),e)+(4===eZ(e).getUTCDay()),t,2)}function t3(e){return e.getUTCDay()}function t8(e,t){return tt(eH.count(eZ(e)-1,e),t,2)}function t9(e,t){return tt(e.getUTCFullYear()%100,t,2)}function t6(e,t){return tt((e=t2(e)).getUTCFullYear()%100,t,2)}function t4(e,t){return tt(e.getUTCFullYear()%1e4,t,4)}function t7(e,t){var n=e.getUTCDay();return tt((e=n>=4||0===n?eW(e):eW.ceil(e)).getUTCFullYear()%1e4,t,4)}function ne(){return"+0000"}function nt(){return"%"}function nn(e){return+e}function nr(e){return Math.floor(e/1e3)}function no(e){return new Date(e)}function ni(e){return e instanceof Date?+e:+new Date(+e)}function na(e,t,n,r,o,i,a,l,u,s){var c=F(),f=c.invert,p=c.domain,d=s(".%L"),h=s(":%S"),y=s("%I:%M"),g=s("%I %p"),v=s("%a %d"),m=s("%b %d"),b=s("%B"),x=s("%Y");function w(e){return(u(e)1)for(var n,r,o,i=1,a=e[t[0]],l=a.length;i=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:nn,s:nr,S:tI,u:tR,U:tD,V:tF,w:tB,W:tL,x:null,X:null,y:tz,Y:tU,Z:tG,"%":nt},x={a:function(e){return a[e.getUTCDay()]},A:function(e){return i[e.getUTCDay()]},b:function(e){return u[e.getUTCMonth()]},B:function(e){return l[e.getUTCMonth()]},c:null,d:t$,e:t$,f:tY,g:t6,G:t7,H:tW,I:tq,j:tX,L:tK,m:tJ,M:tZ,p:function(e){return o[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:nn,s:nr,S:tQ,u:t0,U:t1,V:t5,w:t3,W:t8,x:null,X:null,y:t9,Y:t4,Z:ne,"%":nt},w={a:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=h.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=v.exec(t.slice(n));return r?(e.m=m.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=y.exec(t.slice(n));return r?(e.m=g.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return A(e,t,n,r)},d:ty,e:ty,f:tw,g:tf,G:tc,H:tv,I:tv,j:tg,L:tx,m:th,M:tm,p:function(e,t,n){var r=s.exec(t.slice(n));return r?(e.p=c.get(r[0].toLowerCase()),n+r[0].length):-1},q:td,Q:tS,s:tA,S:tb,u:ta,U:tl,V:tu,w:ti,W:ts,x:function(e,t,r){return A(e,n,t,r)},X:function(e,t,n){return A(e,r,t,n)},y:tf,Y:tc,Z:tp,"%":tO};function O(e,t){return function(n){var r,o,i,a=[],l=-1,u=0,s=e.length;for(n instanceof Date||(n=new Date(+n));++l53)return null;"w"in i||(i.w=1),"Z"in i?(r=(o=(r=e8(e9(i.y,0,1))).getUTCDay())>4||0===o?eH.ceil(r):eH(r),r=e_.offset(r,(i.V-1)*7),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(r=(o=(r=e3(e9(i.y,0,1))).getDay())>4||0===o?eD.ceil(r):eD(r),r=ek.offset(r,(i.V-1)*7),i.y=r.getFullYear(),i.m=r.getMonth(),i.d=r.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:+("W"in i)),o="Z"in i?e8(e9(i.y,0,1)).getUTCDay():e3(e9(i.y,0,1)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,e8(i)):e3(i)}}function A(e,t,n,r){for(var o,i,a=0,l=t.length,u=n.length;a=u)return -1;if(37===(o=t.charCodeAt(a++))){if(!(i=w[(o=t.charAt(a++))in e6?t.charAt(a++):o])||(r=i(e,n,r))<0)return -1}else if(o!=n.charCodeAt(r++))return -1}return r}return b.x=O(n,b),b.X=O(r,b),b.c=O(t,b),x.x=O(n,x),x.X=O(r,x),x.c=O(t,x),{format:function(e){var t=O(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=S(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=O(e+="",x);return t.toString=function(){return e},t},utcParse:function(e){var t=S(e+="",!0);return t.toString=function(){return e},t}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]})).format,l.parse,s=l.utcFormat,l.utcParse;var nv=n(71947),nm=n(46554);function nb(e){for(var t=e.length,n=Array(t);--t>=0;)n[t]=t;return n}function nx(e,t){return e[t]}function nw(e){let t=[];return t.key=e,t}var nO=n(38867),nS=n.n(nO),nA=n(84905),nj=n.n(nA),nE=n(38822),nP=n.n(nE),nM=n(98499),nC=n.n(nM),nk=n(84450),n_=n.n(nk),nT=n(60449),nI=n.n(nT),nR=n(35342),nD=n.n(nR),nN=n(51068),nF=n.n(nN),nB=n(6797),nL=n.n(nB),nz=n(83817),nV=n.n(nz),nU=n(26194),nH=n.n(nU),nG=n(56650),n$=n.n(nG);function nW(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=t?n.apply(void 0,o):e(t-a,nY(function(){for(var e=arguments.length,t=Array(e),r=0;rtypeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return nW(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nW(e,void 0)}}(i)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat(t))}))})}(e.length,e)},nZ=function(e,t){for(var n=[],r=e;rtypeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||n6(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n9(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("u">typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw i}}return n}}(e,t)||n6(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n6(e,t){if(e){if("string"==typeof e)return n4(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return n4(e,t)}}function n4(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nr&&(o=r,i=n),[o,i]}function re(e,t,n){if(e.lte(0))return new(n$())(0);var r=n3(e.toNumber()),o=new(n$())(10).pow(r),i=e.div(o),a=1!==r?.05:.1,l=new(n$())(Math.ceil(i.div(a).toNumber())).add(n).mul(a).mul(o);return t?l:new(n$())(Math.ceil(l))}function rt(e,t,n){var r=1,o=new(n$())(e);if(!o.isint()&&n){var i=Math.abs(e);i<1?(r=new(n$())(10).pow(n3(e)-1),o=new(n$())(Math.floor(o.div(r).toNumber())).mul(r)):i>1&&(o=new(n$())(Math.floor(e)))}else 0===e?o=new(n$())(Math.floor((t-1)/2)):n||(o=new(n$())(Math.floor(e)));var a=Math.floor((t-1)/2);return n0(nQ(function(e){return o.add(new(n$())(e-a).mul(r)).toNumber()}),nZ)(0,t)}var rn=n2(function(e){var t=n9(e,2),n=t[0],r=t[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,i=!(arguments.length>2)||void 0===arguments[2]||arguments[2],a=Math.max(o,2),l=n9(n7([n,r]),2),u=l[0],s=l[1];if(u===-1/0||s===1/0){var c=s===1/0?[u].concat(n8(nZ(0,o-1).map(function(){return 1/0}))):[].concat(n8(nZ(0,o-1).map(function(){return-1/0})),[s]);return n>r?n1(c):c}if(u===s)return rt(u,o,i);var f=function e(t,n,r,o){var i,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((n-t)/(r-1)))return{step:new(n$())(0),tickMin:new(n$())(0),tickMax:new(n$())(0)};var l=re(new(n$())(n).sub(t).div(r-1),o,a),u=Math.ceil((i=t<=0&&n>=0?new(n$())(0):(i=new(n$())(t).add(n).div(2)).sub(new(n$())(i).mod(l))).sub(t).div(l).toNumber()),s=Math.ceil(new(n$())(n).sub(i).div(l).toNumber()),c=u+s+1;return c>r?e(t,n,r,o,a+1):(c0?s+(r-c):s,u=n>0?u:u+(r-c)),{step:l,tickMin:i.sub(new(n$())(u).mul(l)),tickMax:i.add(new(n$())(s).mul(l))})}(u,s,a,i),p=f.step,d=n5(f.tickMin,f.tickMax.add(new(n$())(.1).mul(p)),p);return n>r?n1(d):d});n2(function(e){var t=n9(e,2),n=t[0],r=t[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,i=!(arguments.length>2)||void 0===arguments[2]||arguments[2],a=Math.max(o,2),l=n9(n7([n,r]),2),u=l[0],s=l[1];if(u===-1/0||s===1/0)return[n,r];if(u===s)return rt(u,o,i);var c=re(new(n$())(s).sub(u).div(a-1),i,0),f=n0(nQ(function(e){return new(n$())(u).add(new(n$())(e).mul(c)).toNumber()}),nZ)(0,a).filter(function(e){return e>=u&&e<=s});return n>r?n1(f):f});var rr=n2(function(e,t){var n=n9(e,2),r=n[0],o=n[1],i=!(arguments.length>2)||void 0===arguments[2]||arguments[2],a=n9(n7([r,o]),2),l=a[0],u=a[1];if(l===-1/0||u===1/0)return[r,o];if(l===u)return[l];var s=Math.max(t,2),c=re(new(n$())(u).sub(l).div(s-1),i,0),f=[].concat(n8(n5(new(n$())(l),new(n$())(u).sub(new(n$())(.99).mul(c)),c)),[u]);return r>o?n1(f):f}),ro=n(65219),ri=n(53645),ra=n(93780),rl=n(65049);function ru(e){return(ru="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function rs(e){return function(e){if(Array.isArray(e))return rc(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return rc(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rc(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=-1,a=null!=(t=null==n?void 0:n.length)?t:0;if(a<=1)return 0;if(o&&"angleAxis"===o.axisType&&1e-6>=Math.abs(Math.abs(o.range[1]-o.range[0])-360))for(var l=o.range,u=0;u0?r[u-1].coordinate:r[a-1].coordinate,c=r[u].coordinate,f=u>=a-1?r[0].coordinate:r[u+1].coordinate,p=void 0;if((0,ri.sA)(c-s)!==(0,ri.sA)(f-c)){var d=[];if((0,ri.sA)(f-c)===(0,ri.sA)(l[1]-l[0])){p=f;var h=c+l[1]-l[0];d[0]=Math.min(h,(h+s)/2),d[1]=Math.max(h,(h+s)/2)}else{p=s;var y=f+l[1]-l[0];d[0]=Math.min(c,(y+c)/2),d[1]=Math.max(c,(y+c)/2)}var g=[Math.min(c,(p+c)/2),Math.max(c,(p+c)/2)];if(e>g[0]&&e<=g[1]||e>=d[0]&&e<=d[1]){i=r[u].index;break}}else{var v=Math.min(s,f),m=Math.max(s,f);if(e>(v+c)/2&&e<=(m+c)/2){i=r[u].index;break}}}else for(var b=0;b0&&b(n[b].coordinate+n[b-1].coordinate)/2&&e<=(n[b].coordinate+n[b+1].coordinate)/2||b===a-1&&e>(n[b].coordinate+n[b-1].coordinate)/2){i=n[b].index;break}return i},rv=function(e){var t,n,r=e.type.displayName,o=null!=(t=e.type)&&t.defaultProps?rp(rp({},e.type.defaultProps),e.props):e.props,i=o.stroke,a=o.fill;switch(r){case"Line":n=i;break;case"Area":case"Radar":n=i&&"none"!==i?i:a;break;default:n=a}return n},rm=function(e){var t=e.barSize,n=e.totalSize,r=e.stackGroups,o=void 0===r?{}:r;if(!o)return{};for(var i={},a=Object.keys(o),l=0,u=a.length;l=0});if(g&&g.length){var v=g[0].type.defaultProps,m=void 0!==v?rp(rp({},v),g[0].props):g[0].props,b=m.barSize,x=m[y];i[x]||(i[x]=[]);var w=nP()(b)?t:b;i[x].push({item:g[0],stackList:g.slice(1),barSize:nP()(w)?void 0:(0,ri.F4)(w,n,0)})}}return i},rb=function(e){var t,n=e.barGap,r=e.barCategoryGap,o=e.bandSize,i=e.sizeList,a=void 0===i?[]:i,l=e.maxBarSize,u=a.length;if(u<1)return null;var s=(0,ri.F4)(n,o,0,!0),c=[];if(a[0].barSize===+a[0].barSize){var f=!1,p=o/u,d=a.reduce(function(e,t){return e+t.barSize||0},0);(d+=(u-1)*s)>=o&&(d-=(u-1)*s,s=0),d>=o&&p>0&&(f=!0,p*=.9,d=u*p);var h={offset:((o-d)/2|0)-s,size:0};t=a.reduce(function(e,t){var n={item:t.item,position:{offset:h.offset+h.size+s,size:f?p:t.barSize}},r=[].concat(rs(e),[n]);return h=r[r.length-1].position,t.stackList&&t.stackList.length&&t.stackList.forEach(function(e){r.push({item:e,position:h})}),r},c)}else{var y=(0,ri.F4)(r,o,0,!0);o-2*y-(u-1)*s<=0&&(s=0);var g=(o-2*y-(u-1)*s)/u;g>1&&(g>>=0);var v=l===+l?Math.min(g,l):g;t=a.reduce(function(e,t,n){var r=[].concat(rs(e),[{item:t.item,position:{offset:y+(g+s)*n+(g-v)/2,size:v}}]);return t.stackList&&t.stackList.length&&t.stackList.forEach(function(e){r.push({item:e,position:r[r.length-1].position})}),r},c)}return t},rx=function(e,t,n,r){var o=n.children,i=n.width,a=n.margin,l=i-(a.left||0)-(a.right||0),u=(0,rl.g)({children:o,legendWidth:l});if(u){var s=r||{},c=s.width,f=s.height,p=u.align,d=u.verticalAlign,h=u.layout;if(("vertical"===h||"horizontal"===h&&"middle"===d)&&"center"!==p&&(0,ri.Et)(e[p]))return rp(rp({},e),{},rd({},p,e[p]+(c||0)));if(("horizontal"===h||"vertical"===h&&"center"===p)&&"middle"!==d&&(0,ri.Et)(e[d]))return rp(rp({},e),{},rd({},d,e[d]+(f||0)))}return e},rw=function(e,t,n,r,o){var i=t.props.children,a=(0,ra.aS)(i,ro.u).filter(function(e){var t;return t=e.props.direction,!!nP()(o)||("horizontal"===r?"yAxis"===o:"vertical"===r||"x"===t?"xAxis"===o:"y"!==t||"yAxis"===o)});if(a&&a.length){var l=a.map(function(e){return e.props.dataKey});return e.reduce(function(e,t){var r=rh(t,n);if(nP()(r))return e;var o=Array.isArray(r)?[nj()(r),nS()(r)]:[r,r],i=l.reduce(function(e,n){var r=rh(t,n,0),i=o[0]-Math.abs(Array.isArray(r)?r[0]:r),a=o[1]+Math.abs(Array.isArray(r)?r[1]:r);return[Math.min(i,e[0]),Math.max(a,e[1])]},[1/0,-1/0]);return[Math.min(i[0],e[0]),Math.max(i[1],e[1])]},[1/0,-1/0])}return null},rO=function(e,t,n,r,o){var i=t.map(function(t){return rw(e,t,n,o,r)}).filter(function(e){return!nP()(e)});return i&&i.length?i.reduce(function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]},[1/0,-1/0]):null},rS=function(e,t,n,r,o){var i=t.map(function(t){var i=t.props.dataKey;return"number"===n&&i&&rw(e,t,i,r)||ry(e,i,n,o)});if("number"===n)return i.reduce(function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]},[1/0,-1/0]);var a={};return i.reduce(function(e,t){for(var n=0,r=t.length;n=2?2*(0,ri.sA)(a[0]-a[1])*u:u,t&&(e.ticks||e.niceTicks))?(e.ticks||e.niceTicks).map(function(e){return{coordinate:r(o?o.indexOf(e):e)+u,value:e,offset:u}}).filter(function(e){return!nF()(e.coordinate)}):e.isCategorical&&e.categoricalDomain?e.categoricalDomain.map(function(e,t){return{coordinate:r(e)+u,value:e,index:t,offset:u}}):r.ticks&&!n?r.ticks(e.tickCount).map(function(e){return{coordinate:r(e)+u,value:e,offset:u}}):r.domain().map(function(e,t){return{coordinate:r(e)+u,value:o?o[e]:e,index:t,offset:u}})},rP=new WeakMap,rM=function(e,t){if("function"!=typeof t)return e;rP.has(e)||rP.set(e,new WeakMap);var n=rP.get(e);if(n.has(t))return n.get(t);var r=function(){e.apply(void 0,arguments),t.apply(void 0,arguments)};return n.set(t,r),r},rC=function(e,t,n){var r=e.scale,o=e.type,i=e.layout,a=e.axisType;if("auto"===r)return"radial"===i&&"radiusAxis"===a?{scale:f.A(),realScaleType:"band"}:"radial"===i&&"angleAxis"===a?{scale:J(),realScaleType:"linear"}:"category"===o&&t&&(t.indexOf("LineChart")>=0||t.indexOf("AreaChart")>=0||t.indexOf("ComposedChart")>=0&&!n)?{scale:f.z(),realScaleType:"point"}:"category"===o?{scale:f.A(),realScaleType:"band"}:{scale:J(),realScaleType:"linear"};if(n_()(r)){var l="scale".concat(nL()(r));return{scale:(c[l]||f.z)(),realScaleType:c[l]?l:"point"}}return nC()(r)?{scale:r}:{scale:f.z(),realScaleType:"point"}},rk=function(e){var t=e.domain();if(t&&!(t.length<=2)){var n=t.length,r=e.range(),o=Math.min(r[0],r[1])-1e-4,i=Math.max(r[0],r[1])+1e-4,a=e(t[0]),l=e(t[n-1]);(ai||li)&&e.domain([t[0],t[n-1]])}},r_=function(e,t){if(!e)return null;for(var n=0,r=e.length;nr)&&(o[1]=r),o[0]>r&&(o[0]=r),o[1]=0?(e[a][n][0]=o,e[a][n][1]=o+l,o=e[a][n][1]):(e[a][n][0]=i,e[a][n][1]=i+l,i=e[a][n][1])}},expand:function(e,t){if((r=e.length)>0){for(var n,r,o,i=0,a=e[0].length;i0){for(var n,r=0,o=e[t[0]],i=o.length;r0&&(r=(n=e[t[0]]).length)>0){for(var n,r,o,i=0,a=1;a=0?(e[i][n][0]=o,e[i][n][1]=o+a,o=e[i][n][1]):(e[i][n][0]=0,e[i][n][1]=0)}}},rR=function(e,t,n){var r=t.map(function(e){return e.props.dataKey}),o=rI[n];return(function(){var e=(0,nm.A)([]),t=nb,n=ng,r=nx;function o(o){var i,a,l=Array.from(e.apply(this,arguments),nw),u=l.length,s=-1;for(let e of o)for(i=0,++s;i=0?0:o<0?o:r}return n[0]},rz=function(e,t){var n,r=(null!=(n=e.type)&&n.defaultProps?rp(rp({},e.type.defaultProps),e.props):e.props).stackId;if((0,ri.vh)(r)){var o=t[r];if(o){var i=o.items.indexOf(e);return i>=0?o.stackedData[i]:null}}return null},rV=function(e,t,n){return Object.keys(e).reduce(function(r,o){var i=e[o].stackedData.reduce(function(e,r){var o=r.slice(t,n+1).reduce(function(e,t){return[nj()(t.concat([e[0]]).filter(ri.Et)),nS()(t.concat([e[1]]).filter(ri.Et))]},[1/0,-1/0]);return[Math.min(e[0],o[0]),Math.max(e[1],o[1])]},[1/0,-1/0]);return[Math.min(i[0],r[0]),Math.max(i[1],r[1])]},[1/0,-1/0]).map(function(e){return e===1/0||e===-1/0?0:e})},rU=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,rH=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,rG=function(e,t,n){if(nC()(e))return e(t,n);if(!Array.isArray(e))return t;var r=[];if((0,ri.Et)(e[0]))r[0]=n?e[0]:Math.min(e[0],t[0]);else if(rU.test(e[0])){var o=+rU.exec(e[0])[1];r[0]=t[0]-o}else nC()(e[0])?r[0]=e[0](t[0]):r[0]=t[0];if((0,ri.Et)(e[1]))r[1]=n?e[1]:Math.max(e[1],t[1]);else if(rH.test(e[1])){var i=+rH.exec(e[1])[1];r[1]=t[1]+i}else nC()(e[1])?r[1]=e[1](t[1]):r[1]=t[1];return r},r$=function(e,t,n){if(e&&e.scale&&e.scale.bandwidth){var r=e.scale.bandwidth();if(!n||r>0)return r}if(e&&t&&t.length>=2){for(var o=nH()(t,function(e){return e.coordinate}),i=1/0,a=1,l=o.length;a{e.exports=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}},1905:(e,t,n)=>{var r=n(53325),o=n(34024),i=n(68988);e.exports=function(e,t){var n={};return t=i(t,3),o(e,function(e,o,i){r(n,o,t(e,o,i))}),n}},2055:(e,t,n)=>{"use strict";n.d(t,{y:()=>z});var r=n(55729),o=n(50212),i=n(92224),a=n(83817),l=n.n(a),u=n(38822),s=n.n(u),c=n(3780),f=n(65219),p=function(e){return null};p.displayName="Cell";var d=n(78895),h=n(53645),y=n(93780),g=n(88859),v=n(1509),m=n(27281),b=n(73403),x=n(52797),w=["x","y"];function O(e){return(O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function S(){return(S=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,w),i=parseInt("".concat(n),10),a=parseInt("".concat(r),10),l=parseInt("".concat(t.height||o.height),10),u=parseInt("".concat(t.width||o.width),10);return j(j(j(j(j({},t),o),i?{x:i}:{}),a?{y:a}:{}),{},{height:l,width:u,name:t.name,radius:t.radius})}function P(e){return r.createElement(x.yp,S({shapeType:"rectangle",propTransformer:E,activeClassName:"recharts-active-bar"},e))}var M=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(n,r){if("number"==typeof e)return e;var o="number"==typeof n;return o?e(n,r):(o||(0,b.A)(!1),t)}},C=["value","background"];function k(e){return(k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _(){return(_=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,C);if(!l)return null;var s=I(I(I(I(I({},u),{},{fill:"#eee"},l),a),(0,m.XC)(e.props,t,n)),{},{onAnimationStart:e.handleAnimationStart,onAnimationEnd:e.handleAnimationEnd,dataKey:o,index:n,className:"recharts-bar-background-rectangle"});return r.createElement(P,_({key:"background-bar-".concat(n),option:e.props.background,isActive:n===i},s))})}},{key:"renderErrorBar",value:function(e,t){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,o=n.data,i=n.xAxis,a=n.yAxis,l=n.layout,u=n.children,s=(0,y.aS)(u,f.u);if(!s)return null;var p="vertical"===l?o[0].height/2:o[0].width/2,d=function(e,t){var n=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:n,errorVal:(0,v.kr)(e,t)}};return r.createElement(c.W,{clipPath:e?"url(#clipPath-".concat(t,")"):null},s.map(function(e){return r.cloneElement(e,{key:"error-bar-".concat(t,"-").concat(e.props.dataKey),data:o,xAxis:i,yAxis:a,layout:l,offset:p,dataPointFormatter:d})}))}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.data,i=e.className,a=e.xAxis,l=e.yAxis,u=e.left,f=e.top,p=e.width,h=e.height,y=e.isAnimationActive,g=e.background,v=e.id;if(t||!n||!n.length)return null;var m=this.state.isAnimationFinished,b=(0,o.A)("recharts-bar",i),x=a&&a.allowDataOverflow,w=l&&l.allowDataOverflow,O=x||w,S=s()(v)?this.id:v;return r.createElement(c.W,{className:b},x||w?r.createElement("defs",null,r.createElement("clipPath",{id:"clipPath-".concat(S)},r.createElement("rect",{x:x?u:u-p/2,y:w?f:f-h/2,width:x?p:2*p,height:w?h:2*h}))):null,r.createElement(c.W,{className:"recharts-bar-rectangles",clipPath:O?"url(#clipPath-".concat(S,")"):null},g?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(O,S),(!y||m)&&d.Z.renderCallByParent(this.props,n))}}],n=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curData:e.data,prevData:t.curData}:e.data!==t.curData?{curData:e.data}:null}}],t&&R(a.prototype,t),n&&R(a,n),Object.defineProperty(a,"prototype",{writable:!1}),a}(r.PureComponent);B(z,"displayName","Bar"),B(z,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!g.m.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),B(z,"getComposedData",function(e){var t=e.props,n=e.item,r=e.barPosition,o=e.bandSize,i=e.xAxis,a=e.yAxis,l=e.xAxisTicks,u=e.yAxisTicks,s=e.stackedData,c=e.dataStartIndex,f=e.displayedData,d=e.offset,g=(0,v.xi)(r,n);if(!g)return null;var m=t.layout,b=n.type.defaultProps,x=void 0!==b?I(I({},b),n.props):n.props,w=x.dataKey,O=x.children,S=x.minPointSize,A="horizontal"===m?a:i,j=s?A.scale.domain():null,E=(0,v.DW)({numericAxis:A}),P=(0,y.aS)(O,p),C=f.map(function(e,t){s?f=(0,v._f)(s[c+t],j):Array.isArray(f=(0,v.kr)(e,w))||(f=[E,f]);var r=M(S,z.defaultProps.minPointSize)(f[1],t);if("horizontal"===m){var f,p,d,y,b,x,O,A=[a.scale(f[0]),a.scale(f[1])],C=A[0],k=A[1];p=(0,v.y2)({axis:i,ticks:l,bandSize:o,offset:g.offset,entry:e,index:t}),d=null!=(O=null!=k?k:C)?O:void 0,y=g.size;var _=C-k;if(b=Number.isNaN(_)?0:_,x={x:p,y:a.y,width:y,height:a.height},Math.abs(r)>0&&Math.abs(b)0&&Math.abs(y){var r=n(3128),o=n(29090),i=n(31835),a=n(96024),l=n(53140),u=n(91544),s=n(9541),c=n(43562),f="[object Arguments]",p="[object Array]",d="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,y,g,v){var m=u(e),b=u(t),x=m?p:l(e),w=b?p:l(t);x=x==f?d:x,w=w==f?d:w;var O=x==d,S=w==d,A=x==w;if(A&&s(e)){if(!s(t))return!1;m=!0,O=!1}if(A&&!O)return v||(v=new r),m||c(e)?o(e,t,n,y,g,v):i(e,t,x,n,y,g,v);if(!(1&n)){var j=O&&h.call(e,"__wrapped__"),E=S&&h.call(t,"__wrapped__");if(j||E){var P=j?e.value():e,M=E?t.value():t;return v||(v=new r),g(P,M,n,y,v)}}return!!A&&(v||(v=new r),a(e,t,n,y,g,v))}},2390:(e,t,n)=>{"use strict";n.d(t,{J:()=>d,M:()=>y});var r=n(55729),o=n(50212),i=n(92224),a=n(93780);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n=0?1:-1,u=n>=0?1:-1,s=+(r>=0&&n>=0||r<0&&n<0);if(a>0&&o instanceof Array){for(var c=[0,0,0,0],f=0;f<4;f++)c[f]=o[f]>a?a:o[f];i="M".concat(e,",").concat(t+l*c[0]),c[0]>0&&(i+="A ".concat(c[0],",").concat(c[0],",0,0,").concat(s,",").concat(e+u*c[0],",").concat(t)),i+="L ".concat(e+n-u*c[1],",").concat(t),c[1]>0&&(i+="A ".concat(c[1],",").concat(c[1],",0,0,").concat(s,",\n ").concat(e+n,",").concat(t+l*c[1])),i+="L ".concat(e+n,",").concat(t+r-l*c[2]),c[2]>0&&(i+="A ".concat(c[2],",").concat(c[2],",0,0,").concat(s,",\n ").concat(e+n-u*c[2],",").concat(t+r)),i+="L ".concat(e+u*c[3],",").concat(t+r),c[3]>0&&(i+="A ".concat(c[3],",").concat(c[3],",0,0,").concat(s,",\n ").concat(e,",").concat(t+r-l*c[3])),i+="Z"}else if(a>0&&o===+o&&o>0){var p=Math.min(a,o);i="M ".concat(e,",").concat(t+l*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(s,",").concat(e+u*p,",").concat(t,"\n L ").concat(e+n-u*p,",").concat(t,"\n A ").concat(p,",").concat(p,",0,0,").concat(s,",").concat(e+n,",").concat(t+l*p,"\n L ").concat(e+n,",").concat(t+r-l*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(s,",").concat(e+n-u*p,",").concat(t+r,"\n L ").concat(e+u*p,",").concat(t+r,"\n A ").concat(p,",").concat(p,",0,0,").concat(s,",").concat(e,",").concat(t+r-l*p," Z")}else i="M ".concat(e,",").concat(t," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return i},d=function(e,t){if(!e||!t)return!1;var n=e.x,r=e.y,o=t.x,i=t.y,a=t.width,l=t.height;if(Math.abs(a)>0&&Math.abs(l)>0){var u=Math.min(o,o+a),s=Math.max(o,o+a),c=Math.min(i,i+l),f=Math.max(i,i+l);return n>=u&&n<=s&&r>=c&&r<=f}return!1},h={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},y=function(e){var t,n=f(f({},h),e),l=(0,r.useRef)(),c=function(e){if(Array.isArray(e))return e}(t=(0,r.useState)(-1))||function(e,t){var n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],u=!0,s=!1;try{i=(n=n.call(e)).next,!1;for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),2!==l.length);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(t,2)||function(e,t){if(e){if("string"==typeof e)return s(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,2)}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),d=c[0],y=c[1];(0,r.useEffect)(function(){if(l.current&&l.current.getTotalLength)try{var e=l.current.getTotalLength();e&&y(e)}catch(e){}},[]);var g=n.x,v=n.y,m=n.width,b=n.height,x=n.radius,w=n.className,O=n.animationEasing,S=n.animationDuration,A=n.animationBegin,j=n.isAnimationActive,E=n.isUpdateAnimationActive;if(g!==+g||v!==+v||m!==+m||b!==+b||0===m||0===b)return null;var P=(0,o.A)("recharts-rectangle",w);return E?r.createElement(i.Ay,{canBegin:d>0,from:{width:m,height:b,x:g,y:v},to:{width:m,height:b,x:g,y:v},duration:S,animationEasing:O,isActive:E},function(e){var t=e.width,o=e.height,s=e.x,c=e.y;return r.createElement(i.Ay,{canBegin:d>0,from:"0px ".concat(-1===d?1:d,"px"),to:"".concat(d,"px 0px"),attributeName:"strokeDasharray",begin:A,duration:S,isActive:j,easing:O},r.createElement("path",u({},(0,a.J9)(n,!0),{className:P,d:p(s,c,t,o,x),ref:l})))}):r.createElement("path",u({},(0,a.J9)(n,!0),{className:P,d:p(g,v,m,b,x)}))}},2485:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var r=(0,n(41495).A)("outline","grip-vertical","IconGripVertical",[["path",{d:"M9 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-0"}],["path",{d:"M9 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-1"}],["path",{d:"M9 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-2"}],["path",{d:"M15 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-3"}],["path",{d:"M15 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-4"}],["path",{d:"M15 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-5"}]])},2549:(e,t,n)=>{"use strict";n.d(t,{DR:()=>b,pj:()=>O,rY:()=>M,yi:()=>P,Yp:()=>x,hj:()=>E,sk:()=>j,AF:()=>w,Nk:()=>A,$G:()=>S});var r=n(55729),o=n(73403),i=n(43724),a=n.n(i),l=n(57174),u=n.n(l),s=n(55765),c=n.n(s)()(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return"l"+e.left+"t"+e.top+"w"+e.width+"h"+e.height}),f=n(53645),p=(0,r.createContext)(void 0),d=(0,r.createContext)(void 0),h=(0,r.createContext)(void 0),y=(0,r.createContext)({}),g=(0,r.createContext)(void 0),v=(0,r.createContext)(0),m=(0,r.createContext)(0),b=function(e){var t=e.state,n=t.xAxisMap,o=t.yAxisMap,i=t.offset,a=e.clipPathId,l=e.children,u=e.width,s=e.height,f=c(i);return r.createElement(p.Provider,{value:n},r.createElement(d.Provider,{value:o},r.createElement(y.Provider,{value:i},r.createElement(h.Provider,{value:f},r.createElement(g.Provider,{value:a},r.createElement(v.Provider,{value:s},r.createElement(m.Provider,{value:u},l)))))))},x=function(){return(0,r.useContext)(g)},w=function(e){var t=(0,r.useContext)(p);null==t&&(0,o.A)(!1);var n=t[e];return null==n&&(0,o.A)(!1),n},O=function(){var e=(0,r.useContext)(p);return(0,f.lX)(e)},S=function(){var e=(0,r.useContext)(d);return a()(e,function(e){return u()(e.domain,Number.isFinite)})||(0,f.lX)(e)},A=function(e){var t=(0,r.useContext)(d);null==t&&(0,o.A)(!1);var n=t[e];return null==n&&(0,o.A)(!1),n},j=function(){return(0,r.useContext)(h)},E=function(){return(0,r.useContext)(y)},P=function(){return(0,r.useContext)(m)},M=function(){return(0,r.useContext)(v)}},2603:(e,t,n)=>{var r=n(88165);e.exports=function(e,t,n){var o=e.length;return n=void 0===n?o:n,!t&&n>=o?e:r(e,t,n)}},2882:e=>{e.exports=function(e){return e!=e}},2893:(e,t,n)=>{"use strict";n.d(t,{W:()=>g});var r=n(55729),o=n(50212),i=n(2549),a=n(46271),l=n(1509);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(s=function(){return!!e})()}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function p(e,t,n){return(t=d(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e){var t=function(e,t){if("object"!=u(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=u(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==u(t)?t:t+""}function h(){return(h=Object.assign?Object.assign.bind():function(e){for(var t=1;t{"use strict";n.d(t,{W:()=>u});var r=n(55729),o=n(50212),i=n(93780),a=["children","className"];function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,a),c=(0,o.A)("recharts-layer",u);return r.createElement("g",l({className:c},(0,i.J9)(s,!0),{ref:t}),n)})},4140:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},5586:e=>{var t=Math.ceil,n=Math.max;e.exports=function(e,r,o,i){for(var a=-1,l=n(t((r-e)/(o||1)),0),u=Array(l);l--;)u[i?l:++a]=e,e+=o;return u}},5688:(e,t,n)=>{"use strict";function r(e,t){for(var n in e)if(({}).hasOwnProperty.call(e,n)&&(!({}).hasOwnProperty.call(t,n)||e[n]!==t[n]))return!1;for(var r in t)if(({}).hasOwnProperty.call(t,r)&&!({}).hasOwnProperty.call(e,r))return!1;return!0}n.d(t,{b:()=>r})},6797:(e,t,n)=>{e.exports=n(95486)("toUpperCase")},6802:(e,t,n)=>{var r=n(3128),o=n(7855);e.exports=function(e,t,n,i){var a=n.length,l=a,u=!i;if(null==e)return!l;for(e=Object(e);a--;){var s=n[a];if(u&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++a{e.exports=n(24233)()},7571:(e,t,n)=>{"use strict";n.d(t,{R:()=>r});var r=function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o{var r=n(2193),o=n(3619);e.exports=function e(t,n,i,a,l){return t===n||(null!=t&&null!=n&&(o(t)||o(n))?r(t,n,i,a,e,l):t!=t&&n!=n)}},7913:function(e,t,n){(function(e,t){"use strict";var n=function(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}(t);function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var o={error:null},i=function(e){function t(){for(var t,n=arguments.length,r=Array(n),i=0;i{"use strict";n.d(t,{d:()=>k});var r=n(55729),o=n(98499),i=n.n(o),a=n(7571),l=n(53645),u=n(93780),s=n(1509),c=n(32347),f=n(46271),p=n(2549),d=["x1","y1","x2","y2","key"],h=["offset"];function y(e){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function v(e){for(var t=1;t=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var x=function(e){var t=e.fill;if(!t||"none"===t)return null;var n=e.fillOpacity,o=e.x,i=e.y,a=e.width,l=e.height,u=e.ry;return r.createElement("rect",{x:o,y:i,ry:u,width:a,height:l,stroke:"none",fill:t,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function w(e,t){var n;if(r.isValidElement(e))n=r.cloneElement(e,t);else if(i()(e))n=e(t);else{var o=t.x1,a=t.y1,l=t.x2,s=t.y2,c=t.key,f=b(t,d),p=(0,u.J9)(f,!1),y=(p.offset,b(p,h));n=r.createElement("line",m({},y,{x1:o,y1:a,x2:l,y2:s,fill:"none",key:c}))}return n}function O(e){var t=e.x,n=e.width,o=e.horizontal,i=void 0===o||o,a=e.horizontalPoints;if(!i||!a||!a.length)return null;var l=a.map(function(r,o){return w(i,v(v({},e),{},{x1:t,y1:r,x2:t+n,y2:r,key:"line-".concat(o),index:o}))});return r.createElement("g",{className:"recharts-cartesian-grid-horizontal"},l)}function S(e){var t=e.y,n=e.height,o=e.vertical,i=void 0===o||o,a=e.verticalPoints;if(!i||!a||!a.length)return null;var l=a.map(function(r,o){return w(i,v(v({},e),{},{x1:r,y1:t,x2:r,y2:t+n,key:"line-".concat(o),index:o}))});return r.createElement("g",{className:"recharts-cartesian-grid-vertical"},l)}function A(e){var t=e.horizontalFill,n=e.fillOpacity,o=e.x,i=e.y,a=e.width,l=e.height,u=e.horizontalPoints,s=e.horizontal;if(!(void 0===s||s)||!t||!t.length)return null;var c=u.map(function(e){return Math.round(e+i-i)}).sort(function(e,t){return e-t});i!==c[0]&&c.unshift(0);var f=c.map(function(e,u){var s=c[u+1]?c[u+1]-e:i+l-e;if(s<=0)return null;var f=u%t.length;return r.createElement("rect",{key:"react-".concat(u),y:e,x:o,height:s,width:a,stroke:"none",fill:t[f],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return r.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}function j(e){var t=e.vertical,n=e.verticalFill,o=e.fillOpacity,i=e.x,a=e.y,l=e.width,u=e.height,s=e.verticalPoints;if(!(void 0===t||t)||!n||!n.length)return null;var c=s.map(function(e){return Math.round(e+i-i)}).sort(function(e,t){return e-t});i!==c[0]&&c.unshift(0);var f=c.map(function(e,t){var s=c[t+1]?c[t+1]-e:i+l-e;if(s<=0)return null;var f=t%n.length;return r.createElement("rect",{key:"react-".concat(t),x:e,y:a,width:s,height:u,stroke:"none",fill:n[f],fillOpacity:o,className:"recharts-cartesian-grid-bg"})});return r.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},f)}var E=function(e,t){var n=e.xAxis,r=e.width,o=e.height,i=e.offset;return(0,s.PW)((0,c.f)(v(v(v({},f.u.defaultProps),n),{},{ticks:(0,s.Rh)(n,!0),viewBox:{x:0,y:0,width:r,height:o}})),i.left,i.left+i.width,t)},P=function(e,t){var n=e.yAxis,r=e.width,o=e.height,i=e.offset;return(0,s.PW)((0,c.f)(v(v(v({},f.u.defaultProps),n),{},{ticks:(0,s.Rh)(n,!0),viewBox:{x:0,y:0,width:r,height:o}})),i.top,i.top+i.height,t)},M=[],C=[];function k(e){var t,n,o,u,s,c,f=(0,p.yi)(),d=(0,p.rY)(),h=(0,p.hj)(),g=v(v({},e),{},{stroke:null!=(t=e.stroke)?t:"#ccc",fill:null!=(n=e.fill)?n:"none",horizontal:null==(o=e.horizontal)||o,horizontalFill:null!=(u=e.horizontalFill)?u:C,vertical:null==(s=e.vertical)||s,verticalFill:null!=(c=e.verticalFill)?c:M,x:(0,l.Et)(e.x)?e.x:h.left,y:(0,l.Et)(e.y)?e.y:h.top,width:(0,l.Et)(e.width)?e.width:h.width,height:(0,l.Et)(e.height)?e.height:h.height}),b=g.x,w=g.y,k=g.width,_=g.height,T=g.syncWithTicks,I=g.horizontalValues,R=g.verticalValues,D=(0,p.pj)(),N=(0,p.$G)();if(!(0,l.Et)(k)||k<=0||!(0,l.Et)(_)||_<=0||!(0,l.Et)(b)||b!==+b||!(0,l.Et)(w)||w!==+w)return null;var F=g.verticalCoordinatesGenerator||E,B=g.horizontalCoordinatesGenerator||P,L=g.horizontalPoints,z=g.verticalPoints;if((!L||!L.length)&&i()(B)){var V=I&&I.length,U=B({yAxis:N?v(v({},N),{},{ticks:V?I:N.ticks}):void 0,width:f,height:d,offset:h},!!V||T);(0,a.R)(Array.isArray(U),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(y(U),"]")),Array.isArray(U)&&(L=U)}if((!z||!z.length)&&i()(F)){var H=R&&R.length,G=F({xAxis:D?v(v({},D),{},{ticks:H?R:D.ticks}):void 0,width:f,height:d,offset:h},!!H||T);(0,a.R)(Array.isArray(G),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(y(G),"]")),Array.isArray(G)&&(z=G)}return r.createElement("g",{className:"recharts-cartesian-grid"},r.createElement(x,{fill:g.fill,fillOpacity:g.fillOpacity,x:g.x,y:g.y,width:g.width,height:g.height,ry:g.ry}),r.createElement(O,m({},g,{offset:h,horizontalPoints:L,xAxis:D,yAxis:N})),r.createElement(S,m({},g,{offset:h,verticalPoints:z,xAxis:D,yAxis:N})),r.createElement(A,m({},g,{horizontalPoints:L})),r.createElement(j,m({},g,{verticalPoints:z})))}k.displayName="CartesianGrid"},9819:e=>{var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},10656:(e,t,n)=>{var r=n(16799);e.exports=function(e,t){return function(n,o){if(null==n)return n;if(!r(n))return e(n,o);for(var i=n.length,a=t?i:-1,l=Object(n);(t?a--:++a{var r=n(7855),o=n(60449),i=n(8546),a=n(25907),l=n(28617),u=n(20764),s=n(43092);e.exports=function(e,t){return a(e)&&l(t)?u(s(e),t):function(n){var a=o(n,e);return void 0===a&&a===t?i(n,e):r(t,a,3)}}},11061:(e,t,n)=>{var r=n(22479),o=1/0;e.exports=function(e){return e?(e=r(e))===o||e===-o?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},11107:(e,t,n)=>{"use strict";n.d(t,{h:()=>g});var r=n(55729),o=n(50212),i=n(93780),a=n(31829),l=n(53645);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t180),",").concat(+(i>c),",\n ").concat(p.x,",").concat(p.y,"\n ");if(r>0){var h=(0,a.IZ)(t,n,r,i),y=(0,a.IZ)(t,n,r,c);d+="L ".concat(y.x,",").concat(y.y,"\n A ").concat(r,",").concat(r,",0,\n ").concat(+(Math.abs(s)>180),",").concat(+(i<=c),",\n ").concat(h.x,",").concat(h.y," Z")}else d+="L ".concat(t,",").concat(n," Z");return d},h=function(e){var t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,i=e.cornerRadius,a=e.forceCornerRadius,u=e.cornerIsExternal,s=e.startAngle,c=e.endAngle,f=(0,l.sA)(c-s),h=p({cx:t,cy:n,radius:o,angle:s,sign:f,cornerRadius:i,cornerIsExternal:u}),y=h.circleTangency,g=h.lineTangency,v=h.theta,m=p({cx:t,cy:n,radius:o,angle:c,sign:-f,cornerRadius:i,cornerIsExternal:u}),b=m.circleTangency,x=m.lineTangency,w=m.theta,O=u?Math.abs(s-c):Math.abs(s-c)-v-w;if(O<0)return a?"M ".concat(g.x,",").concat(g.y,"\n a").concat(i,",").concat(i,",0,0,1,").concat(2*i,",0\n a").concat(i,",").concat(i,",0,0,1,").concat(-(2*i),",0\n "):d({cx:t,cy:n,innerRadius:r,outerRadius:o,startAngle:s,endAngle:c});var S="M ".concat(g.x,",").concat(g.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(f<0),",").concat(y.x,",").concat(y.y,"\n A").concat(o,",").concat(o,",0,").concat(+(O>180),",").concat(+(f<0),",").concat(b.x,",").concat(b.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(f<0),",").concat(x.x,",").concat(x.y,"\n ");if(r>0){var A=p({cx:t,cy:n,radius:r,angle:s,sign:f,isExternal:!0,cornerRadius:i,cornerIsExternal:u}),j=A.circleTangency,E=A.lineTangency,P=A.theta,M=p({cx:t,cy:n,radius:r,angle:c,sign:-f,isExternal:!0,cornerRadius:i,cornerIsExternal:u}),C=M.circleTangency,k=M.lineTangency,_=M.theta,T=u?Math.abs(s-c):Math.abs(s-c)-P-_;if(T<0&&0===i)return"".concat(S,"L").concat(t,",").concat(n,"Z");S+="L".concat(k.x,",").concat(k.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(f<0),",").concat(C.x,",").concat(C.y,"\n A").concat(r,",").concat(r,",0,").concat(+(T>180),",").concat(+(f>0),",").concat(j.x,",").concat(j.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(f<0),",").concat(E.x,",").concat(E.y,"Z")}else S+="L".concat(t,",").concat(n,"Z");return S},y={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},g=function(e){var t,n=f(f({},y),e),a=n.cx,u=n.cy,c=n.innerRadius,p=n.outerRadius,g=n.cornerRadius,v=n.forceCornerRadius,m=n.cornerIsExternal,b=n.startAngle,x=n.endAngle,w=n.className;if(p0&&360>Math.abs(b-x)?h({cx:a,cy:u,innerRadius:c,outerRadius:p,cornerRadius:Math.min(A,S/2),forceCornerRadius:v,cornerIsExternal:m,startAngle:b,endAngle:x}):d({cx:a,cy:u,innerRadius:c,outerRadius:p,startAngle:b,endAngle:x}),r.createElement("path",s({},(0,i.J9)(n,!0),{className:O,d:t,role:"img"}))}},12364:(e,t,n)=>{var r=n(23356),o=n(23169),i=n(22479),a=Math.max,l=Math.min;e.exports=function(e,t,n){var u,s,c,f,p,d,h=0,y=!1,g=!1,v=!0;if("function"!=typeof e)throw TypeError("Expected a function");function m(t){var n=u,r=s;return u=s=void 0,h=t,f=e.apply(r,n)}function b(e){var n=e-d,r=e-h;return void 0===d||n>=t||n<0||g&&r>=c}function x(){var e,n,r,i=o();if(b(i))return w(i);p=setTimeout(x,(e=i-d,n=i-h,r=t-e,g?l(r,c-n):r))}function w(e){return(p=void 0,v&&u)?m(e):(u=s=void 0,f)}function O(){var e,n=o(),r=b(n);if(u=arguments,s=this,d=n,r){if(void 0===p)return h=e=d,p=setTimeout(x,t),y?m(e):f;if(g)return clearTimeout(p),p=setTimeout(x,t),m(d)}return void 0===p&&(p=setTimeout(x,t)),f}return t=i(t)||0,r(n)&&(y=!!n.leading,c=(g="maxWait"in n)?a(i(n.maxWait)||0,t):c,v="trailing"in n?!!n.trailing:v),O.cancel=function(){void 0!==p&&clearTimeout(p),h=0,u=d=s=p=void 0},O.flush=function(){return void 0===p?f:w(o())},O}},13297:(e,t,n)=>{"use strict";n.d(t,{G:()=>F});var r=n(55729),o=n(50212),i=n(92224),a=n(98499),l=n.n(a),u=n(38867),s=n.n(u),c=n(38822),f=n.n(c),p=n(51068),d=n.n(p),h=n(83817),y=n.n(h),g=n(56464),v=n(24196),m=n(3780),b=n(78895),x=n(88859),w=n(53645),O=n(1509),S=n(93780),A=["layout","type","stroke","connectNulls","isRange","ref"],j=["key"];function E(e){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function P(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function M(){return(M=Object.assign?Object.assign.bind():function(e){for(var t=1;t0||!y()(l,r)||!y()(u,o))?this.renderAreaWithAnimation(e,t):this.renderAreaStatically(r,o,e,t)}},{key:"render",value:function(){var e,t=this.props,n=t.hide,i=t.dot,a=t.points,l=t.className,u=t.top,s=t.left,c=t.xAxis,p=t.yAxis,d=t.width,h=t.height,y=t.isAnimationActive,g=t.id;if(n||!a||!a.length)return null;var v=this.state.isAnimationFinished,x=1===a.length,w=(0,o.A)("recharts-area",l),O=c&&c.allowDataOverflow,A=p&&p.allowDataOverflow,j=O||A,E=f()(g)?this.id:g,P=null!=(e=(0,S.J9)(i,!1))?e:{r:3,strokeWidth:2},M=P.r,C=P.strokeWidth,k=((0,S.sT)(i)?i:{}).clipDot,_=void 0===k||k,T=2*(void 0===M?3:M)+(void 0===C?2:C);return r.createElement(m.W,{className:w},O||A?r.createElement("defs",null,r.createElement("clipPath",{id:"clipPath-".concat(E)},r.createElement("rect",{x:O?s:s-d/2,y:A?u:u-h/2,width:O?d:2*d,height:A?h:2*h})),!_&&r.createElement("clipPath",{id:"clipPath-dots-".concat(E)},r.createElement("rect",{x:s-T/2,y:u-T/2,width:d+T,height:h+T}))):null,x?null:this.renderArea(j,E),(i||x)&&this.renderDots(j,_,E),(!y||v)&&b.Z.renderCallByParent(this.props,a))}}],n=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curPoints:e.points,curBaseLine:e.baseLine,prevPoints:t.curPoints,prevBaseLine:t.curBaseLine}:e.points!==t.curPoints||e.baseLine!==t.curBaseLine?{curPoints:e.points,curBaseLine:e.baseLine}:null}}],t&&_(a.prototype,t),n&&_(a,n),Object.defineProperty(a,"prototype",{writable:!1}),a}(r.PureComponent);D(F,"displayName","Area"),D(F,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!x.m.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),D(F,"getBaseValue",function(e,t,n,r){var o=e.layout,i=e.baseValue,a=t.props.baseValue,l=null!=a?a:i;if((0,w.Et)(l)&&"number"==typeof l)return l;var u="horizontal"===o?r:n,s=u.scale.domain();if("number"===u.type){var c=Math.max(s[0],s[1]),f=Math.min(s[0],s[1]);return"dataMin"===l?f:"dataMax"===l||c<0?c:Math.max(Math.min(s[0],s[1]),0)}return"dataMin"===l?s[0]:"dataMax"===l?s[1]:s[0]}),D(F,"getComposedData",function(e){var t,n=e.props,r=e.item,o=e.xAxis,i=e.yAxis,a=e.xAxisTicks,l=e.yAxisTicks,u=e.bandSize,s=e.dataKey,c=e.stackedData,f=e.dataStartIndex,p=e.displayedData,d=e.offset,h=n.layout,y=c&&c.length,g=F.getBaseValue(n,r,o,i),v="horizontal"===h,m=!1,b=p.map(function(e,t){y?n=c[f+t]:Array.isArray(n=(0,O.kr)(e,s))?m=!0:n=[g,n];var n,r=null==n[1]||y&&null==(0,O.kr)(e,s);return v?{x:(0,O.nb)({axis:o,ticks:a,bandSize:u,entry:e,index:t}),y:r?null:i.scale(n[1]),value:n,payload:e}:{x:r?null:o.scale(n[1]),y:(0,O.nb)({axis:i,ticks:l,bandSize:u,entry:e,index:t}),value:n,payload:e}});return t=y||m?b.map(function(e){var t=Array.isArray(e.value)?e.value[0]:null;return v?{x:e.x,y:null!=t&&null!=e.y?i.scale(t):null}:{x:null!=t?o.scale(t):null,y:e.y}}):v?i.scale(g):o.scale(g),k({points:b,baseLine:t,layout:h,isRange:m},d)}),D(F,"renderDotItem",function(e,t){var n;if(r.isValidElement(e))n=r.cloneElement(e,t);else if(l()(e))n=e(t);else{var i=(0,o.A)("recharts-area-dot","boolean"!=typeof e?e.className:""),a=t.key,u=P(t,j);n=r.createElement(v.c,M({},u,{key:a,className:i}))}return n})},13731:(e,t,n)=>{var r=n(98501),o=n(68988),i=n(56073),a=n(91544),l=n(48877);e.exports=function(e,t,n){var u=a(e)?r:i;return n&&l(e,t,n)&&(t=void 0),u(e,o(t,3))}},13917:e=>{e.exports=function(e,t){return e{"use strict";n.d(t,{A:()=>r});var r=(0,n(41495).A)("outline","bolt-off","IconBoltOff",[["path",{d:"M3 3l18 18",key:"svg-0"}],["path",{d:"M15.212 15.21l-4.212 5.79v-7h-6l3.79 -5.21m1.685 -2.32l2.525 -3.47v6m1 1h5l-2.104 2.893",key:"svg-1"}]])},16232:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var r=(0,n(41495).A)("outline","arrows-diagonal","IconArrowsDiagonal",[["path",{d:"M16 4l4 0l0 4",key:"svg-0"}],["path",{d:"M14 10l6 -6",key:"svg-1"}],["path",{d:"M8 20l-4 0l0 -4",key:"svg-2"}],["path",{d:"M4 20l6 -6",key:"svg-3"}]])},16878:(e,t,n)=>{"use strict";e.exports=n(29610)},17877:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},18053:(e,t,n)=>{var r=n(49355),o=n(9819),i=n(90199);e.exports=function(e){return o(e)?i(e):r(e)}},18896:function(e,t){var n,r;void 0===(r="function"==typeof(n=function e(){var t,n="u">typeof self?self:"u">typeof window?window:void 0!==n?n:{},r=!n.document&&!!n.postMessage,o=n.IS_PAPA_WORKER||!1,i={},a=0,l={};function u(e){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},(function(e){var t=b(e);t.chunkSize=parseInt(t.chunkSize),e.step||e.chunk||(t.chunkSize=null),this._handle=new d(t),(this._handle.streamer=this)._config=t}).call(this,e),this.parseChunk=function(e,t){var r=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0=this._config.preview,o)n.postMessage({results:i,workerId:l.WORKER_ID,finished:r});else if(w(this._config.chunk)&&!t){if(this._config.chunk(i,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=i=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(i.data),this._completeResults.errors=this._completeResults.errors.concat(i.errors),this._completeResults.meta=i.meta),this._completed||!r||!w(this._config.complete)||i&&i.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),r||i&&i.meta.paused||this._nextChunk(),i}this._halted=!0},this._sendError=function(e){w(this._config.error)?this._config.error(e):o&&this._config.error&&n.postMessage({workerId:l.WORKER_ID,error:e,finished:!1})}}function s(e){var t;(e=e||{}).chunkSize||(e.chunkSize=l.RemoteChunkSize),u.call(this,e),this._nextChunk=r?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(e){this._input=e,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(t=new XMLHttpRequest,this._config.withCredentials&&(t.withCredentials=this._config.withCredentials),r||(t.onload=x(this._chunkLoaded,this),t.onerror=x(this._chunkError,this)),t.open(this._config.downloadRequestBody?"POST":"GET",this._input,!r),this._config.downloadRequestHeaders){var e,n,o=this._config.downloadRequestHeaders;for(n in o)t.setRequestHeader(n,o[n])}this._config.chunkSize&&(e=this._start+this._config.chunkSize-1,t.setRequestHeader("Range","bytes="+this._start+"-"+e));try{t.send(this._config.downloadRequestBody)}catch(e){this._chunkError(e.message)}r&&0===t.status&&this._chunkError()}},this._chunkLoaded=function(){let e;4===t.readyState&&(t.status<200||400<=t.status?this._chunkError():(this._start+=this._config.chunkSize||t.responseText.length,this._finished=!this._config.chunkSize||this._start>=(null!==(e=(e=t).getResponseHeader("Content-Range"))?parseInt(e.substring(e.lastIndexOf("/")+1)):-1),this.parseChunk(t.responseText)))},this._chunkError=function(e){e=t.statusText||e,this._sendError(Error(e))}}function c(e){(e=e||{}).chunkSize||(e.chunkSize=l.LocalChunkSize),u.call(this,e);var t,n,r="u">typeof FileReader;this.stream=function(e){this._input=e,n=e.slice||e.webkitSlice||e.mozSlice,r?((t=new FileReader).onload=x(this._chunkLoaded,this),t.onerror=x(this._chunkError,this)):t=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount=this._input.size,this.parseChunk(e.target.result)},this._chunkError=function(){this._sendError(t.error)}}function f(e){var t;u.call(this,e=e||{}),this.stream=function(e){return t=e,this._nextChunk()},this._nextChunk=function(){var e,n;if(!this._finished)return t=(e=this._config.chunkSize)?(n=t.substring(0,e),t.substring(e)):(n=t,""),this._finished=!t,this.parseChunk(n)}}function p(e){u.call(this,e=e||{});var t=[],n=!0,r=!1;this.pause=function(){u.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){u.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(e){this._input=e,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){r&&1===t.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):n=!0},this._streamData=x(function(e){try{t.push("string"==typeof e?e:e.toString(this._config.encoding)),n&&(n=!1,this._checkIsFinished(),this.parseChunk(t.shift()))}catch(e){this._streamError(e)}},this),this._streamError=x(function(e){this._streamCleanUp(),this._sendError(e)},this),this._streamEnd=x(function(){this._streamCleanUp(),r=!0,this._streamData("")},this),this._streamCleanUp=x(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function d(e){var t,n,r,o,i=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,a=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,u=this,s=0,c=0,f=!1,p=!1,d=[],g={data:[],errors:[],meta:{}};function v(t){return"greedy"===e.skipEmptyLines?""===t.join("").trim():1===t.length&&0===t[0].length}function m(){if(g&&r&&(O("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+l.DefaultDelimiter+"'"),r=!1),e.skipEmptyLines&&(g.data=g.data.filter(function(e){return!v(e)})),x()){if(g)if(Array.isArray(g.data[0])){for(var t,n=0;x()&&n(e.dynamicTypingFunction&&void 0===e.dynamicTyping[t]&&(e.dynamicTyping[t]=e.dynamicTypingFunction(t)),!0===(e.dynamicTyping[t]||e.dynamicTyping))?"true"===n||"TRUE"===n||"false"!==n&&"FALSE"!==n&&((e=>{if(i.test(e)&&-0x20000000000000<(e=parseFloat(e))&&e<0x20000000000000)return 1})(n)?parseFloat(n):a.test(n)?new Date(n):""===n?null:n):n)(l=e.header?o>=d.length?"__parsed_extra":d[o]:l,u=e.transform?e.transform(u,l):u);"__parsed_extra"===l?(r[l]=r[l]||[],r[l].push(u)):r[l]=u}return e.header&&(o>d.length?O("FieldMismatch","TooManyFields","Too many fields: expected "+d.length+" fields but parsed "+o,c+n):oe.preview?n.abort():(g.data=g.data[0],o(g,u))))}),this.parse=function(o,i,a){var u=e.quoteChar||'"',u=(e.newline||(e.newline=this.guessLineEndings(o,u)),r=!1,e.delimiter?w(e.delimiter)&&(e.delimiter=e.delimiter(o),g.meta.delimiter=e.delimiter):((u=((t,n,r,o,i)=>{var a,u,s,c;i=i||[","," ","|",";",l.RECORD_SEP,l.UNIT_SEP];for(var f=0;f=n.length/2?"\r\n":"\r"}}function h(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function y(e){var t=(e=e||{}).delimiter,n=e.newline,r=e.comments,o=e.step,i=e.preview,a=e.fastMode,u=null,s=!1,c=null==e.quoteChar?'"':e.quoteChar,f=c;if(void 0!==e.escapeChar&&(f=e.escapeChar),("string"!=typeof t||-1=i)return B(!0);break}A.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:S.length,index:p}),T++}}else if(r&&0===j.length&&l.substring(p,p+x)===r){if(-1===k)return B();p=k+b,k=l.indexOf(n,p),C=l.indexOf(t,p)}else if(-1!==C&&(C=i)return B(!0)}return N();function R(e){S.push(e),E=p}function D(e){return -1!==e&&(e=l.substring(T+1,e))&&""===e.trim()?e.length:0}function N(e){return g||(void 0===e&&(e=l.substring(p)),j.push(e),p=v,R(j),O&&L()),B()}function F(e){p=e,R(j),j=[],k=l.indexOf(n,p)}function B(r){if(e.header&&!y&&S.length&&!s){var o=S[0],i=Object.create(null),a=new Set(o);let t=!1;for(let n=0;n{if("object"==typeof t){if("string"!=typeof t.delimiter||l.BAD_DELIMITERS.filter(function(e){return -1!==t.delimiter.indexOf(e)}).length||(o=t.delimiter),("boolean"==typeof t.quotes||"function"==typeof t.quotes||Array.isArray(t.quotes))&&(n=t.quotes),"boolean"!=typeof t.skipEmptyLines&&"string"!=typeof t.skipEmptyLines||(s=t.skipEmptyLines),"string"==typeof t.newline&&(i=t.newline),"string"==typeof t.quoteChar&&(a=t.quoteChar),"boolean"==typeof t.header&&(r=t.header),Array.isArray(t.columns)){if(0===t.columns.length)throw Error("Option columns is empty");c=t.columns}void 0!==t.escapeChar&&(u=t.escapeChar+a),t.escapeFormulae instanceof RegExp?f=t.escapeFormulae:"boolean"==typeof t.escapeFormulae&&t.escapeFormulae&&(f=/^[=+\-@\t\r].*$/)}})(),RegExp(h(a),"g"));if("string"==typeof e&&(e=JSON.parse(e)),Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return d(null,e,s);if("object"==typeof e[0])return d(c||Object.keys(e[0]),e,s)}else if("object"==typeof e)return"string"==typeof e.data&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields||c),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:"object"==typeof e.data[0]?Object.keys(e.data[0]):[]),Array.isArray(e.data[0])||"object"==typeof e.data[0]||(e.data=[e.data])),d(e.fields||[],e.data||[],s);throw Error("Unable to serialize unrecognized input");function d(e,t,n){var a="",l=("string"==typeof e&&(e=JSON.parse(e)),"string"==typeof t&&(t=JSON.parse(t)),Array.isArray(e)&&0{for(var n=0;n{var r=n(50515);e.exports=function(e,t,n){for(var o=-1,i=e.length;++o{e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},21248:(e,t,n)=>{e.exports=n(83588)()},21440:(e,t,n)=>{"use strict";function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;tm});var o=n(55729),i=n(56760);function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;ttypeof ResizeObserver?t=new ResizeObserver(function(e){e.forEach(function(e){r._measureElement(e.target,e)})}):null)},{disconnect:function(){var e;return null==(e=n())?void 0:e.disconnect()},observe:function(e){var t;return null==(t=n())?void 0:t.observe(e,{box:"border-box"})},unobserve:function(e){var t;return null==(t=n())?void 0:t.unobserve(e)}}),this.range=null,this.setOptions=function(e){Object.entries(e).forEach(function(t){var n=t[0];void 0===t[1]&&delete e[n]}),r.options=a({debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:s,rangeExtractor:c,onChange:function(){},measureElement:d,initialRect:{width:0,height:0},scrollMargin:0,scrollingDelay:150,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1},e)},this.notify=function(e){null==r.options.onChange||r.options.onChange(r,e)},this.maybeNotify=l(function(){return r.calculateRange(),[r.isScrolling,r.range?r.range.startIndex:null,r.range?r.range.endIndex:null]},function(e){r.notify(e)},{key:!1,debug:function(){return r.options.debug},initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=function(){r.unsubs.filter(Boolean).forEach(function(e){return e()}),r.unsubs=[],r.scrollElement=null},this._didMount=function(){return r.measureElementCache.forEach(r.observer.observe),function(){r.observer.disconnect(),r.cleanup()}},this._willUpdate=function(){var e=r.options.getScrollElement();r.scrollElement!==e&&(r.cleanup(),r.scrollElement=e,r._scrollToOffset(r.scrollOffset,{adjustments:void 0,behavior:void 0}),r.unsubs.push(r.options.observeElementRect(r,function(e){r.scrollRect=e,r.maybeNotify()})),r.unsubs.push(r.options.observeElementOffset(r,function(e){r.scrollAdjustments=0,r.scrollOffset!==e&&(null!==r.isScrollingTimeoutId&&(clearTimeout(r.isScrollingTimeoutId),r.isScrollingTimeoutId=null),r.isScrolling=!0,r.scrollDirection=r.scrollOffset=0;i--){var a=e[i];if(!n.has(a.lane)){var l=o.get(a.lane);if(null==l||a.end>l.end?o.set(a.lane,a):a.end0?Math.min.apply(Math,r.pendingMeasuredCacheIndexes):0;r.pendingMeasuredCacheIndexes=[];for(var u=r.measurementsCache.slice(0,l),s=l;s0&&t>0?function(e){for(var t=e.measurements,n=e.outerSize,r=e.scrollOffset,o=t.length-1,i=g(0,o,function(e){return t[e].start},r),a=i;a=r.scrollOffset+n?"end":"start"),"start"===t||("end"===t?e-=n:"center"===t&&(e-=n/2));var o=r.options.horizontal?"scrollWidth":"scrollHeight";return Math.max(Math.min((r.scrollElement?"document"in r.scrollElement?r.scrollElement.document.documentElement[o]:r.scrollElement[o]:0)-r.getSize(),e),0)},this.getOffsetForIndex=function(e,t){void 0===t&&(t="auto"),e=Math.max(0,Math.min(e,r.options.count-1));var n=u(r.getMeasurements()[e]);if("auto"===t)if(n.end>=r.scrollOffset+r.getSize()-r.options.scrollPaddingEnd)t="end";else{if(!(n.start<=r.scrollOffset+r.options.scrollPaddingStart))return[r.scrollOffset,t];t="start"}var o="end"===t?n.end+r.options.scrollPaddingEnd:n.start-r.options.scrollPaddingStart;return[r.getOffsetForAlignment(o,t),t]},this.isDynamicMode=function(){return r.measureElementCache.size>0},this.cancelScrollToIndex=function(){null!==r.scrollToIndexTimeoutId&&(clearTimeout(r.scrollToIndexTimeoutId),r.scrollToIndexTimeoutId=null)},this.scrollToOffset=function(e,t){var n=void 0===t?{}:t,o=n.align,i=n.behavior;r.cancelScrollToIndex(),"smooth"===i&&r.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),r._scrollToOffset(r.getOffsetForAlignment(e,void 0===o?"start":o),{adjustments:void 0,behavior:i})},this.scrollToIndex=function(e,t){var n=void 0===t?{}:t,o=n.align,i=n.behavior;e=Math.max(0,Math.min(e,r.options.count-1)),r.cancelScrollToIndex(),"smooth"===i&&r.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");var a=r.getOffsetForIndex(e,void 0===o?"auto":o),l=a[0],u=a[1];r._scrollToOffset(l,{adjustments:void 0,behavior:i}),"smooth"!==i&&r.isDynamicMode()&&(r.scrollToIndexTimeoutId=setTimeout(function(){(r.scrollToIndexTimeoutId=null,r.measureElementCache.has(r.options.getItemKey(e)))&&1>Math.abs(r.getOffsetForIndex(e,u)[0]-r.scrollOffset)||r.scrollToIndex(e,{align:u,behavior:i})}))},this.scrollBy=function(e,t){var n=(void 0===t?{}:t).behavior;r.cancelScrollToIndex(),"smooth"===n&&r.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),r._scrollToOffset(r.scrollOffset+e,{adjustments:void 0,behavior:n})},this.getTotalSize=function(){var e;return((null==(e=r.getMeasurements()[r.options.count-1])?void 0:e.end)||r.options.paddingStart)-r.options.scrollMargin+r.options.paddingEnd},this._scrollToOffset=function(e,t){var n=t.adjustments,o=t.behavior;r.options.scrollToFn(e,{behavior:o,adjustments:n},r)},this.measure=function(){r.itemSizeCache=new Map,r.notify(!1)},this.setOptions(e),this.scrollRect=this.options.initialRect,this.scrollOffset=this.options.initialOffset,this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(function(e){r.itemSizeCache.set(e.key,e.size)}),this.maybeNotify()},g=function(e,t,n,r){for(;e<=t;){var o=(e+t)/2|0,i=n(o);if(ir))return o;t=o-1}}return e>0?e-1:0},v="u">typeof document?o.useLayoutEffect:o.useEffect;function m(e){var t,n,a,l;return t=r({observeElementRect:f,observeElementOffset:p,scrollToFn:h},e),n=o.useReducer(function(){return{}},{})[1],a=r({},t,{onChange:function(e,r){r?(0,i.flushSync)(n):n(),null==t.onChange||t.onChange(e,r)}}),(l=o.useState(function(){return new y(a)})[0]).setOptions(a),o.useEffect(function(){return l._didMount()},[]),v(function(){return l._willUpdate()}),l}},21865:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(30669),o=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,i=RegExp(o.source,"g");function a(e,t){var n,a,l,u,s,c=o.lastIndex=i.lastIndex=0,f=-1,p=[],d=[];for(e+="",t+="";(l=o.exec(e))&&(u=i.exec(t));)(s=u.index)>c&&(s=t.slice(c,s),p[f]?p[f]+=s:p[++f]=s),(l=l[0])===(u=u[0])?p[f]?p[f]+=u:p[++f]=u:(p[++f]=null,d.push({i:f,x:(0,r.A)(l,u)})),c=i.lastIndex;return c{var r=n(22926),o=n(68668),i=n(86152),a=n(82694),l=n(79860),u=n(48546);e.exports=function(e,t,n){var s=-1,c=o,f=e.length,p=!0,d=[],h=d;if(n)p=!1,c=i;else if(f>=200){var y=t?null:l(e);if(y)return u(y);p=!1,c=a,h=new r}else h=t?[]:d;t:for(;++s{var r=n(86301),o=n(23356),i=n(50515),a=0/0,l=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,s=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return a;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=u.test(e);return n||s.test(e)?c(e.slice(2),n?2:8):l.test(e)?a:+e}},22926:(e,t,n)=>{var r=n(33276),o=n(91353),i=n(36022);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t{var r=n(45516);e.exports=function(){return r.Date.now()}},24196:(e,t,n)=>{"use strict";n.d(t,{c:()=>u});var r=n(55729),o=n(50212),i=n(27281),a=n(93780);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var r=n(5586),o=n(48877),i=n(11061);e.exports=function(e){return function(t,n,a){return a&&"number"!=typeof a&&o(t,n,a)&&(n=a=void 0),t=i(t),void 0===n?(n=t,t=0):n=i(n),a=void 0===a?t{"use strict";n.d(t,{A:()=>r});var r=(0,n(41495).A)("outline","text-wrap","IconTextWrap",[["path",{d:"M4 6l16 0",key:"svg-0"}],["path",{d:"M4 18l5 0",key:"svg-1"}],["path",{d:"M4 12h13a3 3 0 0 1 0 6h-4l2 -2m0 4l-2 -2",key:"svg-2"}]])},25599:(e,t,n)=>{"use strict";n.d(t,{E:()=>F});var r=n(55729),o=n(38822),i=n.n(o),a=n(50212),l=n(53645),u=n(88859),s=n(93780),c=n(90505);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],u=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function C(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],u=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return k(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return k(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&void 0!==arguments[0]?arguments[0]:[];return e.reduce(function(e,t){var i=t.word,a=t.width,l=e[e.length-1];return l&&(null==r||o||l.width+a+na||t.reduce(function(e,t){return e.width>t.width?e:t}).width>Number(r),t]},y=0,g=u.length-1,v=0;y<=g&&v<=u.length-1;){var m=Math.floor((y+g)/2),b=C(h(m-1),2),x=b[0],w=b[1],O=C(h(m),1)[0];if(x||O||(y=m+1),x&&O&&(g=m-1),!x&&O){i=w;break}v++}return i||d},R=function(e){return[{words:i()(e)?[]:e.toString().split(_)}]},D=function(e){var t=e.width,n=e.scaleToFit,r=e.children,o=e.style,i=e.breakAll,a=e.maxLines;if((t||n)&&!u.m.isSsr){var l=T({breakAll:i,children:r,style:o});if(!l)return R(r);var s=l.wordsWithComputedWidth,c=l.spaceWidth;return I({breakAll:i,children:r,maxLines:a,style:o},s,c,t,n)}return R(r)},N="#808080",F=function(e){var t,n=e.x,o=void 0===n?0:n,i=e.y,u=void 0===i?0:i,c=e.lineHeight,f=void 0===c?"1em":c,p=e.capHeight,d=void 0===p?"0.71em":p,h=e.scaleToFit,y=void 0!==h&&h,g=e.textAnchor,v=e.verticalAnchor,m=e.fill,b=void 0===m?N:m,x=M(e,j),w=(0,r.useMemo)(function(){return D({breakAll:x.breakAll,children:x.children,maxLines:x.maxLines,scaleToFit:y,style:x.style,width:x.width})},[x.breakAll,x.children,x.maxLines,y,x.style,x.width]),O=x.dx,S=x.dy,C=x.angle,k=x.className,_=x.breakAll,T=M(x,E);if(!(0,l.vh)(o)||!(0,l.vh)(u))return null;var I=o+((0,l.Et)(O)?O:0),R=u+((0,l.Et)(S)?S:0);switch(void 0===v?"end":v){case"start":t=A("calc(".concat(d,")"));break;case"middle":t=A("calc(".concat((w.length-1)/2," * -").concat(f," + (").concat(d," / 2))"));break;default:t=A("calc(".concat(w.length-1," * -").concat(f,")"))}var F=[];if(y){var B=w[0].width,L=x.width;F.push("scale(".concat(((0,l.Et)(L)?L/B:1)/B,")"))}return C&&F.push("rotate(".concat(C,", ").concat(I,", ").concat(R,")")),F.length&&(T.transform=F.join(" ")),r.createElement("text",P({},(0,s.J9)(T,!0),{x:I,y:R,className:(0,a.A)("recharts-text",k),textAnchor:void 0===g?"start":g,fill:b.includes("url")?N:b}),w.map(function(e,n){var o=e.words.join(_?"":" ");return r.createElement("tspan",{x:I,dy:0===n?t:f,key:"".concat(o,"-").concat(n)},o)}))}},26194:(e,t,n)=>{var r=n(83965),o=n(37390),i=n(45895),a=n(48877);e.exports=i(function(e,t){if(null==e)return[];var n=t.length;return n>1&&a(e,t[0],t[1])?t=[]:n>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),o(e,r(t,1),[])})},27281:(e,t,n)=>{"use strict";n.d(t,{QQ:()=>l,VU:()=>s,XC:()=>p,_U:()=>f,j2:()=>c});var r=n(55729),o=n(23356),i=n.n(o);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var l=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],u=["points","pathLength"],s={svg:["viewBox","children"],polygon:u,polyline:u},c=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],f=function(e,t){if(!e||"function"==typeof e||"boolean"==typeof e)return null;var n=e;if((0,r.isValidElement)(e)&&(n=e.props),!i()(n))return null;var o={};return Object.keys(n).forEach(function(e){c.includes(e)&&(o[e]=t||function(t){return n[e](n,t)})}),o},p=function(e,t,n){if(!i()(e)||"object"!==a(e))return null;var r=null;return Object.keys(e).forEach(function(o){var i=e[o];c.includes(o)&&"function"==typeof i&&(r||(r={}),r[o]=function(e){return i(t,n,e),null})}),r}},27798:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var r=(0,n(41495).A)("outline","bolt","IconBolt",[["path",{d:"M13 3l0 7l6 0l-8 11l0 -7l-6 0l8 -11",key:"svg-0"}]])},28469:(e,t,n)=>{var r=n(28617),o=n(87567);e.exports=function(e){for(var t=o(e),n=t.length;n--;){var i=t[n],a=e[i];t[n]=[i,a,r(a)]}return t}},28617:(e,t,n)=>{var r=n(23356);e.exports=function(e){return e==e&&!r(e)}},28816:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=e=>()=>e},29090:(e,t,n)=>{var r=n(22926),o=n(98501),i=n(82694);e.exports=function(e,t,n,a,l,u){var s=1&n,c=e.length,f=t.length;if(c!=f&&!(s&&f>c))return!1;var p=u.get(e),d=u.get(t);if(p&&d)return p==t&&d==e;var h=-1,y=!0,g=2&n?new r:void 0;for(u.set(e,t),u.set(t,e);++h{var r=n(50956);e.exports=function(e,t){var n=!0;return r(e,function(e,r,o){return n=!!t(e,r,o)}),n}},29610:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),u=Symbol.for("react.context"),s=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy");Symbol.for("react.offscreen");Symbol.for("react.module.reference"),t.isFragment=function(e){return function(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case a:case i:case f:case p:return e;default:switch(e=e&&e.$$typeof){case s:case u:case c:case h:case d:case l:return e;default:return t}}case r:return t}}}(e)===o}},30669:(e,t,n)=>{"use strict";function r(e,t){return e*=1,t*=1,function(n){return e*(1-n)+t*n}}n.d(t,{A:()=>r})},30988:(e,t,n)=>{"use strict";function r(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function o(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function i(){}n.d(t,{Ay:()=>b,Qh:()=>O});var a="\\s*([+-]?\\d+)\\s*",l="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",u="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",s=/^#([0-9a-f]{3,8})$/,c=RegExp(`^rgb\\(${a},${a},${a}\\)$`),f=RegExp(`^rgb\\(${u},${u},${u}\\)$`),p=RegExp(`^rgba\\(${a},${a},${a},${l}\\)$`),d=RegExp(`^rgba\\(${u},${u},${u},${l}\\)$`),h=RegExp(`^hsl\\(${l},${u},${u}\\)$`),y=RegExp(`^hsla\\(${l},${u},${u},${l}\\)$`),g={aliceblue:0xf0f8ff,antiquewhite:0xfaebd7,aqua:65535,aquamarine:8388564,azure:0xf0ffff,beige:0xf5f5dc,bisque:0xffe4c4,black:0,blanchedalmond:0xffebcd,blue:255,blueviolet:9055202,brown:0xa52a2a,burlywood:0xdeb887,cadetblue:6266528,chartreuse:8388352,chocolate:0xd2691e,coral:0xff7f50,cornflowerblue:6591981,cornsilk:0xfff8dc,crimson:0xdc143c,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:0xb8860b,darkgray:0xa9a9a9,darkgreen:25600,darkgrey:0xa9a9a9,darkkhaki:0xbdb76b,darkmagenta:9109643,darkolivegreen:5597999,darkorange:0xff8c00,darkorchid:0x9932cc,darkred:9109504,darksalmon:0xe9967a,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:0xff1493,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:0xb22222,floralwhite:0xfffaf0,forestgreen:2263842,fuchsia:0xff00ff,gainsboro:0xdcdcdc,ghostwhite:0xf8f8ff,gold:0xffd700,goldenrod:0xdaa520,gray:8421504,green:32768,greenyellow:0xadff2f,grey:8421504,honeydew:0xf0fff0,hotpink:0xff69b4,indianred:0xcd5c5c,indigo:4915330,ivory:0xfffff0,khaki:0xf0e68c,lavender:0xe6e6fa,lavenderblush:0xfff0f5,lawngreen:8190976,lemonchiffon:0xfffacd,lightblue:0xadd8e6,lightcoral:0xf08080,lightcyan:0xe0ffff,lightgoldenrodyellow:0xfafad2,lightgray:0xd3d3d3,lightgreen:9498256,lightgrey:0xd3d3d3,lightpink:0xffb6c1,lightsalmon:0xffa07a,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:0xb0c4de,lightyellow:0xffffe0,lime:65280,limegreen:3329330,linen:0xfaf0e6,magenta:0xff00ff,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:0xba55d3,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:0xc71585,midnightblue:1644912,mintcream:0xf5fffa,mistyrose:0xffe4e1,moccasin:0xffe4b5,navajowhite:0xffdead,navy:128,oldlace:0xfdf5e6,olive:8421376,olivedrab:7048739,orange:0xffa500,orangered:0xff4500,orchid:0xda70d6,palegoldenrod:0xeee8aa,palegreen:0x98fb98,paleturquoise:0xafeeee,palevioletred:0xdb7093,papayawhip:0xffefd5,peachpuff:0xffdab9,peru:0xcd853f,pink:0xffc0cb,plum:0xdda0dd,powderblue:0xb0e0e6,purple:8388736,rebeccapurple:6697881,red:0xff0000,rosybrown:0xbc8f8f,royalblue:4286945,saddlebrown:9127187,salmon:0xfa8072,sandybrown:0xf4a460,seagreen:3050327,seashell:0xfff5ee,sienna:0xa0522d,silver:0xc0c0c0,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:0xfffafa,springgreen:65407,steelblue:4620980,tan:0xd2b48c,teal:32896,thistle:0xd8bfd8,tomato:0xff6347,turquoise:4251856,violet:0xee82ee,wheat:0xf5deb3,white:0xffffff,whitesmoke:0xf5f5f5,yellow:0xffff00,yellowgreen:0x9acd32};function v(){return this.rgb().formatHex()}function m(){return this.rgb().formatRgb()}function b(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=s.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?x(t):3===n?new S(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?w(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?w(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=c.exec(e))?new S(t[1],t[2],t[3],1):(t=f.exec(e))?new S(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=p.exec(e))?w(t[1],t[2],t[3],t[4]):(t=d.exec(e))?w(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=h.exec(e))?C(t[1],t[2]/100,t[3]/100,1):(t=y.exec(e))?C(t[1],t[2]/100,t[3]/100,t[4]):g.hasOwnProperty(e)?x(g[e]):"transparent"===e?new S(NaN,NaN,NaN,0):null}function x(e){return new S(e>>16&255,e>>8&255,255&e,1)}function w(e,t,n,r){return r<=0&&(e=t=n=NaN),new S(e,t,n,r)}function O(e,t,n,r){var o;return 1==arguments.length?((o=e)instanceof i||(o=b(o)),o)?new S((o=o.rgb()).r,o.g,o.b,o.opacity):new S:new S(e,t,n,null==r?1:r)}function S(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function A(){return`#${M(this.r)}${M(this.g)}${M(this.b)}`}function j(){let e=E(this.opacity);return`${1===e?"rgb(":"rgba("}${P(this.r)}, ${P(this.g)}, ${P(this.b)}${1===e?")":`, ${e})`}`}function E(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function P(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function M(e){return((e=P(e))<16?"0":"")+e.toString(16)}function C(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new _(e,t,n,r)}function k(e){if(e instanceof _)return new _(e.h,e.s,e.l,e.opacity);if(e instanceof i||(e=b(e)),!e)return new _;if(e instanceof _)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),a=Math.max(t,n,r),l=NaN,u=a-o,s=(a+o)/2;return u?(l=t===a?(n-r)/u+(n0&&s<1?0:l,new _(l,u,s,e.opacity)}function _(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function T(e){return(e=(e||0)%360)<0?e+360:e}function I(e){return Math.max(0,Math.min(1,e||0))}function R(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}r(i,b,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:v,formatHex:v,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return k(this).formatHsl()},formatRgb:m,toString:m}),r(S,O,o(i,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new S(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new S(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new S(P(this.r),P(this.g),P(this.b),E(this.opacity))},displayable(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:A,formatHex:A,formatHex8:function(){return`#${M(this.r)}${M(this.g)}${M(this.b)}${M((isNaN(this.opacity)?1:this.opacity)*255)}`},formatRgb:j,toString:j})),r(_,function(e,t,n,r){return 1==arguments.length?k(e):new _(e,t,n,null==r?1:r)},o(i,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new _(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new _(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new S(R(e>=240?e-240:e+120,o,r),R(e,o,r),R(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new _(T(this.h),I(this.s),I(this.l),E(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=E(this.opacity);return`${1===e?"hsl(":"hsla("}${T(this.h)}, ${100*I(this.s)}%, ${100*I(this.l)}%${1===e?")":`, ${e})`}`}}))},31292:(e,t,n)=>{"use strict";n.d(t,{m:()=>U});var r=n(55729),o=n(26194),i=n.n(o),a=n(38822),l=n.n(a),u=n(50212),s=n(53645);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(){return(f=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);ntypeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],u=!0,s=!1;try{i=(n=n.call(e)).next,!1;for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),2!==l.length);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(d,2)||function(e,t){if(e){if("string"==typeof e)return p(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(e,2)}}(d,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();u=m[0],f=m[1]}else u=d}return r.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(t),style:o},(0,s.vh)(f)?r.createElement("span",{className:"recharts-tooltip-item-name"},f):null,(0,s.vh)(f)?r.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,r.createElement("span",{className:"recharts-tooltip-item-value"},u),r.createElement("span",{className:"recharts-tooltip-item-unit"},e.unit||""))});return r.createElement("ul",{className:"recharts-tooltip-item-list",style:{padding:0,margin:0}},e)}return null}())};function v(e){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m(e,t,n){var r;return(r=function(e,t){if("object"!=v(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=v(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==v(r)?r:r+"")in e)?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b="recharts-tooltip-wrapper",x={visibility:"hidden"};function w(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,o=e.offsetTopLeft,i=e.position,a=e.reverseDirection,l=e.tooltipDimension,u=e.viewBox,c=e.viewBoxDimension;if(i&&(0,s.Et)(i[r]))return i[r];var f=n[r]-l-o,p=n[r]+o;return t[r]?a[r]?f:p:a[r]?fu[r]+c?Math.max(f,u[r]):Math.max(p,u[r])}function O(e){return(O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function A(e){for(var t=1;t1||Math.abs(e.height-this.state.lastBoundingBox.height)>1)&&this.setState({lastBoundingBox:{width:e.width,height:e.height}})}else(-1!==this.state.lastBoundingBox.width||-1!==this.state.lastBoundingBox.height)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var e,t;this.props.active&&this.updateBBox(),this.state.dismissed&&((null==(e=this.props.coordinate)?void 0:e.x)!==this.state.dismissedAtCoordinate.x||(null==(t=this.props.coordinate)?void 0:t.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var e,t,n,o,i,a,l,c,f,p,d,h,y,g,v,O,S,j,E,P=this,M=this.props,C=M.active,k=M.allowEscapeViewBox,_=M.animationDuration,T=M.animationEasing,I=M.children,R=M.coordinate,D=M.hasPayload,N=M.isAnimationActive,F=M.offset,B=M.position,L=M.reverseDirection,z=M.useTranslate3d,V=M.viewBox,U=M.wrapperStyle,H=(h=(e={allowEscapeViewBox:k,coordinate:R,offsetTopLeft:F,position:B,reverseDirection:L,tooltipBox:this.state.lastBoundingBox,useTranslate3d:z,viewBox:V}).allowEscapeViewBox,y=e.coordinate,g=e.offsetTopLeft,v=e.position,O=e.reverseDirection,S=e.tooltipBox,j=e.useTranslate3d,E=e.viewBox,S.height>0&&S.width>0&&y?(n=(t={translateX:p=w({allowEscapeViewBox:h,coordinate:y,key:"x",offsetTopLeft:g,position:v,reverseDirection:O,tooltipDimension:S.width,viewBox:E,viewBoxDimension:E.width}),translateY:d=w({allowEscapeViewBox:h,coordinate:y,key:"y",offsetTopLeft:g,position:v,reverseDirection:O,tooltipDimension:S.height,viewBox:E,viewBoxDimension:E.height}),useTranslate3d:j}).translateX,o=t.translateY,f={transform:t.useTranslate3d?"translate3d(".concat(n,"px, ").concat(o,"px, 0)"):"translate(".concat(n,"px, ").concat(o,"px)")}):f=x,{cssProperties:f,cssClasses:(a=(i={translateX:p,translateY:d,coordinate:y}).coordinate,l=i.translateX,c=i.translateY,(0,u.A)(b,m(m(m(m({},"".concat(b,"-right"),(0,s.Et)(l)&&a&&(0,s.Et)(a.x)&&l>=a.x),"".concat(b,"-left"),(0,s.Et)(l)&&a&&(0,s.Et)(a.x)&&l=a.y),"".concat(b,"-top"),(0,s.Et)(c)&&a&&(0,s.Et)(a.y)&&c0;return r.createElement(k,{allowEscapeViewBox:i,animationDuration:a,animationEasing:l,isAnimationActive:f,active:o,coordinate:s,hasPayload:O,offset:p,position:y,reverseDirection:v,useTranslate3d:m,viewBox:b,wrapperStyle:x},(e=D(D({},this.props),{},{payload:w}),r.isValidElement(u)?r.cloneElement(u,e):"function"==typeof u?r.createElement(u,e):r.createElement(g,e)))}}],function(e,t){for(var n=0;n{"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i(e){for(var t=1;tl,Kg:()=>a,yy:()=>f}),n(38822),n(55729),n(98499);var a=Math.PI/180,l=function(e,t,n,r){return{x:e+Math.cos(-a*r)*n,y:t+Math.sin(-a*r)*n}},u=function(e,t){var n=e.x,r=e.y;return Math.sqrt(Math.pow(n-t.x,2)+Math.pow(r-t.y,2))},s=function(e,t){var n=e.x,r=e.y,o=t.cx,i=t.cy,a=u({x:n,y:r},{x:o,y:i});if(a<=0)return{radius:a};var l=Math.acos((n-o)/a);return r>i&&(l=2*Math.PI-l),{radius:a,angle:180*l/Math.PI,angleInRadian:l}},c=function(e){var t=e.startAngle,n=e.endAngle,r=Math.min(Math.floor(t/360),Math.floor(n/360));return{startAngle:t-360*r,endAngle:n-360*r}},f=function(e,t){var n,r=s({x:e.x,y:e.y},t),o=r.radius,a=r.angle,l=t.innerRadius,u=t.outerRadius;if(ou)return!1;if(0===o)return!0;var f=c(t),p=f.startAngle,d=f.endAngle,h=a;if(p<=d){for(;h>d;)h-=360;for(;h=p&&h<=d}else{for(;h>p;)h-=360;for(;h=d&&h<=p}return n?i(i({},t),{},{radius:o,angle:h+360*Math.min(Math.floor(t.startAngle/360),Math.floor(t.endAngle/360))}):null}},31835:(e,t,n)=>{var r=n(25080),o=n(50025),i=n(66581),a=n(29090),l=n(45852),u=n(48546),s=r?r.prototype:void 0,c=s?s.valueOf:void 0;e.exports=function(e,t,n,r,s,f,p){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":if(e.byteLength!=t.byteLength||!f(new o(e),new o(t)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var d=l;case"[object Set]":var h=1&r;if(d||(d=u),e.size!=t.size&&!h)break;var y=p.get(e);if(y)return y==t;r|=2,p.set(e,t);var g=a(d(e),d(t),r,s,f,p);return p.delete(e),g;case"[object Symbol]":if(c)return c.call(e)==c.call(t)}return!1}},32347:(e,t,n)=>{"use strict";n.d(t,{f:()=>h});var r=n(98499),o=n.n(r),i=n(53645),a=n(90505),l=n(88859),u=n(83687);function s(e,t,n){if(t<1)return[];if(1===t&&void 0===n)return e;for(var r=[],o=0;oe*o)return!1;var i=n();return e*(t-e*i/2-r)>=0&&e*(t+e*i/2-o)<=0}function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function d(e){for(var t=1;t=2?(0,i.sA)(v[1].coordinate-v[0].coordinate):1,C=(r="width"===j,f=m.x,p=m.y,h=m.width,y=m.height,1===M?{start:r?f:p,end:r?f+h:p+y}:{start:r?f+h:p+y,end:r?f:p});return"equidistantPreserveStart"===w?function(e,t,n,r,o){for(var i,a=(r||[]).slice(),l=t.start,u=t.end,f=0,p=1,d=l;p<=a.length;)if(i=function(){var t,i=null==r?void 0:r[f];if(void 0===i)return{v:s(r,p)};var a=f,h=function(){return void 0===t&&(t=n(i,a)),t},y=i.coordinate,g=0===f||c(e,y,h,d,u);g||(f=0,d=l,p+=1),g&&(d=y+e*(h()/2+o),f+=p)}())return i.v;return[]}(M,C,P,v,b):("preserveStart"===w||"preserveStartEnd"===w?function(e,t,n,r,o,i){var a=(r||[]).slice(),l=a.length,u=t.start,s=t.end;if(i){var f=r[l-1],p=n(f,l-1),h=e*(f.coordinate+e*p/2-s);a[l-1]=f=d(d({},f),{},{tickCoord:h>0?f.coordinate-h*e:f.coordinate}),c(e,f.tickCoord,function(){return p},u,s)&&(s=f.tickCoord-e*(p/2+o),a[l-1]=d(d({},f),{},{isShow:!0}))}for(var y=i?l-1:l,g=function(t){var r,i=a[t],l=function(){return void 0===r&&(r=n(i,t)),r};if(0===t){var f=e*(i.coordinate-e*l()/2-u);a[t]=i=d(d({},i),{},{tickCoord:f<0?i.coordinate-f*e:i.coordinate})}else a[t]=i=d(d({},i),{},{tickCoord:i.coordinate});c(e,i.tickCoord,l,u,s)&&(u=i.tickCoord+e*(l()/2+o),a[t]=d(d({},i),{},{isShow:!0}))},v=0;v0?s.coordinate-p*e:s.coordinate})}else i[t]=s=d(d({},s),{},{tickCoord:s.coordinate});c(e,s.tickCoord,f,l,u)&&(u=s.tickCoord-e*(f()/2+o),i[t]=d(d({},s),{},{isShow:!0}))},f=a-1;f>=0;f--)s(f);return i}(M,C,P,v,b)).filter(function(e){return e.isShow})}},32716:(e,t,n)=>{"use strict";n.d(t,{gu:()=>tc});var r,o,i=n(55729),a=n(38822),l=n.n(a),u=n(98499),s=n.n(u),c=n(7071),f=n.n(c),p=n(60449),d=n.n(p),h=n(26194),y=n.n(h),g=n(47687),v=n.n(g),m=n(50212),b=n(73403),x=n(55426),w=n(3780),O=n(31292),S=n(64370),A=n(24196),j=n(2390),E=n(93780),P=n(49726),M=n(25599),C=n(1509),k=n(53645);function _(e){return(_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function T(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function I(e){for(var t=1;t0&&t.handleDrag(e.changedTouches[0])}),$(t,"handleDragEnd",function(){t.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var e=t.props,n=e.endIndex,r=e.onDragEnd,o=e.startIndex;null==r||r({endIndex:n,startIndex:o})}),t.detachDragEndListener()}),$(t,"handleLeaveWrapper",function(){(t.state.isTravellerMoving||t.state.isSlideMoving)&&(t.leaveTimer=window.setTimeout(t.handleDragEnd,t.props.leaveTimeOut))}),$(t,"handleEnterSlideOrTraveller",function(){t.setState({isTextActive:!0})}),$(t,"handleLeaveSlideOrTraveller",function(){t.setState({isTextActive:!1})}),$(t,"handleSlideDragStart",function(e){var n=X(e)?e.changedTouches[0]:e;t.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:n.pageX}),t.attachDragEndListener()}),t.travellerDragStartHandlers={startX:t.handleTravellerDragStart.bind(t,"startX"),endX:t.handleTravellerDragStart.bind(t,"endX")},t.state={},t}if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");return r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&G(r,e),t=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(e){var t=e.startX,n=e.endX,o=this.state.scaleValues,i=this.props,a=i.gap,l=i.data.length-1,u=Math.min(t,n),s=Math.max(t,n),c=r.getIndexInRange(o,u),f=r.getIndexInRange(o,s);return{startIndex:c-c%a,endIndex:f===l?l:f-f%a}}},{key:"getTextOfTick",value:function(e){var t=this.props,n=t.data,r=t.tickFormatter,o=t.dataKey,i=(0,C.kr)(n[e],o,e);return s()(r)?r(i,e):i}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(e){var t=this.state,n=t.slideMoveStartX,r=t.startX,o=t.endX,i=this.props,a=i.x,l=i.width,u=i.travellerWidth,s=i.startIndex,c=i.endIndex,f=i.onChange,p=e.pageX-n;p>0?p=Math.min(p,a+l-u-o,a+l-u-r):p<0&&(p=Math.max(p,a-r,a-o));var d=this.getIndex({startX:r+p,endX:o+p});(d.startIndex!==s||d.endIndex!==c)&&f&&f(d),this.setState({startX:r+p,endX:o+p,slideMoveStartX:e.pageX})}},{key:"handleTravellerDragStart",value:function(e,t){var n=X(t)?t.changedTouches[0]:t;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:e,brushMoveStartX:n.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(e){var t=this.state,n=t.brushMoveStartX,r=t.movingTravellerId,o=t.endX,i=t.startX,a=this.state[r],l=this.props,u=l.x,s=l.width,c=l.travellerWidth,f=l.onChange,p=l.gap,d=l.data,h={startX:this.state.startX,endX:this.state.endX},y=e.pageX-n;y>0?y=Math.min(y,u+s-c-a):y<0&&(y=Math.max(y,u-a)),h[r]=a+y;var g=this.getIndex(h),v=g.startIndex,m=g.endIndex,b=function(){var e=d.length-1;return"startX"===r&&(o>i?v%p==0:m%p==0)||!!(oi?m%p==0:v%p==0)||!!(o>i)&&m===e};this.setState($($({},r,a+y),"brushMoveStartX",e.pageX),function(){f&&b()&&f(g)})}},{key:"handleTravellerMoveKeyboard",value:function(e,t){var n=this,r=this.state,o=r.scaleValues,i=r.startX,a=r.endX,l=this.state[t],u=o.indexOf(l);if(-1!==u){var s=u+e;if(-1!==s&&!(s>=o.length)){var c=o[s];"startX"===t&&c>=a||"endX"===t&&c<=i||this.setState($({},t,c),function(){n.props.onChange(n.getIndex({startX:n.state.startX,endX:n.state.endX}))})}}}},{key:"renderBackground",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,a=e.fill,l=e.stroke;return i.createElement("rect",{stroke:l,fill:a,x:t,y:n,width:r,height:o})}},{key:"renderPanorama",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,a=e.data,l=e.children,u=e.padding,s=i.Children.only(l);return s?i.cloneElement(s,{x:t,y:n,width:r,height:o,margin:u,compact:!0,data:a}):null}},{key:"renderTravellerLayer",value:function(e,t){var n,o,a=this,l=this.props,u=l.y,s=l.travellerWidth,c=l.height,f=l.traveller,p=l.ariaLabel,d=l.data,h=l.startIndex,y=l.endIndex,g=Math.max(e,this.props.x),v=z(z({},(0,E.J9)(this.props,!1)),{},{x:g,y:u,width:s,height:c}),m=p||"Min value: ".concat(null==(n=d[h])?void 0:n.name,", Max value: ").concat(null==(o=d[y])?void 0:o.name);return i.createElement(w.W,{tabIndex:0,role:"slider","aria-label":m,"aria-valuenow":e,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[t],onTouchStart:this.travellerDragStartHandlers[t],onKeyDown:function(e){["ArrowLeft","ArrowRight"].includes(e.key)&&(e.preventDefault(),e.stopPropagation(),a.handleTravellerMoveKeyboard("ArrowRight"===e.key?1:-1,t))},onFocus:function(){a.setState({isTravellerFocused:!0})},onBlur:function(){a.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},r.renderTraveller(f,v))}},{key:"renderSlide",value:function(e,t){var n=this.props,r=n.y,o=n.height,a=n.stroke,l=n.travellerWidth,u=Math.min(e,t)+l,s=Math.max(Math.abs(t-e)-l,0);return i.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:a,fillOpacity:.2,x:u,y:r,width:s,height:o})}},{key:"renderText",value:function(){var e=this.props,t=e.startIndex,n=e.endIndex,r=e.y,o=e.height,a=e.travellerWidth,l=e.stroke,u=this.state,s=u.startX,c=u.endX,f={pointerEvents:"none",fill:l};return i.createElement(w.W,{className:"recharts-brush-texts"},i.createElement(M.E,B({textAnchor:"end",verticalAnchor:"middle",x:Math.min(s,c)-5,y:r+o/2},f),this.getTextOfTick(t)),i.createElement(M.E,B({textAnchor:"start",verticalAnchor:"middle",x:Math.max(s,c)+a+5,y:r+o/2},f),this.getTextOfTick(n)))}},{key:"render",value:function(){var e=this.props,t=e.data,n=e.className,r=e.children,o=e.x,a=e.y,l=e.width,u=e.height,s=e.alwaysShowText,c=this.state,f=c.startX,p=c.endX,d=c.isTextActive,h=c.isSlideMoving,y=c.isTravellerMoving,g=c.isTravellerFocused;if(!t||!t.length||!(0,k.Et)(o)||!(0,k.Et)(a)||!(0,k.Et)(l)||!(0,k.Et)(u)||l<=0||u<=0)return null;var v=(0,m.A)("recharts-brush",n),b=1===i.Children.count(r),x=N("userSelect","none");return i.createElement(w.W,{className:v,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:x},this.renderBackground(),b&&this.renderPanorama(),this.renderSlide(f,p),this.renderTravellerLayer(f,"startX"),this.renderTravellerLayer(p,"endX"),(d||h||y||g||s)&&this.renderText())}}],n=[{key:"renderDefaultTraveller",value:function(e){var t=e.x,n=e.y,r=e.width,o=e.height,a=e.stroke,l=Math.floor(n+o/2)-1;return i.createElement(i.Fragment,null,i.createElement("rect",{x:t,y:n,width:r,height:o,fill:a,stroke:"none"}),i.createElement("line",{x1:t+1,y1:l,x2:t+r-1,y2:l,fill:"none",stroke:"#fff"}),i.createElement("line",{x1:t+1,y1:l+2,x2:t+r-1,y2:l+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(e,t){return i.isValidElement(e)?i.cloneElement(e,t):s()(e)?e(t):r.renderDefaultTraveller(t)}},{key:"getDerivedStateFromProps",value:function(e,t){var n=e.data,r=e.width,o=e.x,i=e.travellerWidth,a=e.updateId,l=e.startIndex,u=e.endIndex;if(n!==t.prevData||a!==t.prevUpdateId)return z({prevData:n,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:r},n&&n.length?q({data:n,width:r,x:o,travellerWidth:i,startIndex:l,endIndex:u}):{scale:null,scaleValues:null});if(t.scale&&(r!==t.prevWidth||o!==t.prevX||i!==t.prevTravellerWidth)){t.scale.range([o,o+r-i]);var s=t.scale.domain().map(function(e){return t.scale(e)});return{prevData:n,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:r,startX:t.scale(e.startIndex),endX:t.scale(e.endIndex),scaleValues:s}}return null}},{key:"getIndexInRange",value:function(e,t){for(var n=e.length,r=0,o=n-1;o-r>1;){var i=Math.floor((r+o)/2);e[i]>t?o=i:r=i}return t>=e[o]?o:r}}],t&&V(r.prototype,t),n&&V(r,n),Object.defineProperty(r,"prototype",{writable:!1}),r}(i.PureComponent);$(K,"displayName","Brush"),$(K,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var Y=n(90505),J=n(65049),Z=n(35555),Q=n(47374),ee=n(83687),et=n(7571);function en(){return(en=Object.assign?Object.assign.bind():function(e){for(var t=1;ttypeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return eg(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return eg(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function eg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,e_));return(0,k.Et)(n)&&(0,k.Et)(o)&&(0,k.Et)(f)&&(0,k.Et)(d)&&(0,k.Et)(l)&&(0,k.Et)(s)?i.createElement("path",eT({},(0,E.J9)(y,!0),{className:(0,m.A)("recharts-cross",h),d:"M".concat(n,",").concat(l,"v").concat(d,"M").concat(s,",").concat(o,"h").concat(f)})):null};function eD(e){var t=e.cx,n=e.cy,r=e.radius,o=e.startAngle,i=e.endAngle;return{points:[(0,em.IZ)(t,n,r,o),(0,em.IZ)(t,n,r,i)],cx:t,cy:n,radius:r,startAngle:o,endAngle:i}}var eN=n(11107);function eF(e){return(eF="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function eB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function eL(e){for(var t=1;ttypeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],u=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||eZ(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function eq(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function eX(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(eX=function(){return!!e})()}function eK(e){return(eK=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function eY(e,t){return(eY=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function eJ(e){return function(e){if(Array.isArray(e))return eQ(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||eZ(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function eZ(e,t){if(e){if("string"==typeof e)return eQ(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return eQ(e,t)}}function eQ(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0?i:e&&e.length&&(0,k.Et)(r)&&(0,k.Et)(o)?e.slice(r,o+1):[]};function te(e){return"number"===e?[0,"auto"]:void 0}var tt=function(e,t,n,r){var o=e.graphicalItems,i=e.tooltipAxis,a=e7(t,e);return n<0||!o||!o.length||n>=a.length?null:o.reduce(function(o,l){var u,s,c=null!=(u=l.props.data)?u:t;if(c&&e.dataStartIndex+e.dataEndIndex!==0&&e.dataEndIndex-e.dataStartIndex>=n&&(c=c.slice(e.dataStartIndex,e.dataEndIndex+1)),i.dataKey&&!i.allowDuplicatedCategory){var f=void 0===c?a:c;s=(0,k.eP)(f,i.dataKey,r)}else s=c&&c[n]||a[n];return s?[].concat(eJ(o),[(0,C.zb)(l,s)]):o},[])},tn=function(e,t,n,r){var o=r||{x:e.chartX,y:e.chartY},i="horizontal"===n?o.x:"vertical"===n?o.y:"centric"===n?o.angle:o.radius,a=e.orderedTooltipTicks,l=e.tooltipAxis,u=e.tooltipTicks,s=(0,C.gH)(i,a,u,l);if(s>=0&&u){var c=u[s]&&u[s].value,f=tt(e,t,s,c),p=e4(n,a,s,o);return{activeTooltipIndex:s,activeLabel:c,activePayload:f,activeCoordinate:p}}return null},tr=function(e,t){var n=t.axes,r=t.graphicalItems,o=t.axisType,i=t.axisIdKey,a=t.stackGroups,u=t.dataStartIndex,s=t.dataEndIndex,c=e.layout,p=e.children,d=e.stackOffset,h=(0,C._L)(c,o);return n.reduce(function(t,n){var y=void 0!==n.type.defaultProps?e1(e1({},n.type.defaultProps),n.props):n.props,g=y.type,v=y.dataKey,m=y.allowDataOverflow,b=y.allowDuplicatedCategory,x=y.scale,w=y.ticks,O=y.includeHidden,S=y[i];if(t[S])return t;var A=e7(e.data,{graphicalItems:r.filter(function(e){var t;return(i in e.props?e.props[i]:null==(t=e.type.defaultProps)?void 0:t[i])===S}),dataStartIndex:u,dataEndIndex:s}),j=A.length;(function(e,t,n){if("number"===n&&!0===t&&Array.isArray(e)){var r=null==e?void 0:e[0],o=null==e?void 0:e[1];if(r&&o&&(0,k.Et)(r)&&(0,k.Et)(o))return!0}return!1})(y.domain,m,g)&&(M=(0,C.AQ)(y.domain,null,m),h&&("number"===g||"auto"!==x)&&(T=(0,C.Ay)(A,v,"category")));var E=te(g);if(!M||0===M.length){var P,M,_,T,I,R=null!=(I=y.domain)?I:E;if(v){if(M=(0,C.Ay)(A,v,g),"category"===g&&h){var D=(0,k.CG)(M);b&&D?(_=M,M=f()(0,j)):b||(M=(0,C.KC)(R,M,n).reduce(function(e,t){return e.indexOf(t)>=0?e:[].concat(eJ(e),[t])},[]))}else if("category"===g)M=b?M.filter(function(e){return""!==e&&!l()(e)}):(0,C.KC)(R,M,n).reduce(function(e,t){return e.indexOf(t)>=0||""===t||l()(t)?e:[].concat(eJ(e),[t])},[]);else if("number"===g){var N=(0,C.A1)(A,r.filter(function(e){var t,n,r=i in e.props?e.props[i]:null==(t=e.type.defaultProps)?void 0:t[i],o="hide"in e.props?e.props.hide:null==(n=e.type.defaultProps)?void 0:n.hide;return r===S&&(O||!o)}),v,o,c);N&&(M=N)}h&&("number"===g||"auto"!==x)&&(T=(0,C.Ay)(A,v,"category"))}else M=h?f()(0,j):a&&a[S]&&a[S].hasStack&&"number"===g?"expand"===d?[0,1]:(0,C.Mk)(a[S].stackGroups,u,s):(0,C.vf)(A,r.filter(function(e){var t=i in e.props?e.props[i]:e.type.defaultProps[i],n="hide"in e.props?e.props.hide:e.type.defaultProps.hide;return t===S&&(O||!n)}),g,c,!0);"number"===g?(M=ev(p,M,S,o,w),R&&(M=(0,C.AQ)(R,M,m))):"category"===g&&R&&M.every(function(e){return R.indexOf(e)>=0})&&(M=R)}return e1(e1({},t),{},e2({},S,e1(e1({},y),{},{axisType:o,domain:M,categoricalDomain:T,duplicateDomain:_,originalDomain:null!=(P=y.domain)?P:E,isCategorical:h,layout:c})))},{})},to=function(e,t){var n=t.graphicalItems,r=t.Axis,o=t.axisType,i=t.axisIdKey,a=t.stackGroups,l=t.dataStartIndex,u=t.dataEndIndex,s=e.layout,c=e.children,p=e7(e.data,{graphicalItems:n,dataStartIndex:l,dataEndIndex:u}),h=p.length,y=(0,C._L)(s,o),g=-1;return n.reduce(function(e,t){var v,m=(void 0!==t.type.defaultProps?e1(e1({},t.type.defaultProps),t.props):t.props)[i],b=te("number");return e[m]?e:(g++,v=y?f()(0,h):a&&a[m]&&a[m].hasStack?ev(c,v=(0,C.Mk)(a[m].stackGroups,l,u),m,o):ev(c,v=(0,C.AQ)(b,(0,C.vf)(p,n.filter(function(e){var t,n,r=i in e.props?e.props[i]:null==(t=e.type.defaultProps)?void 0:t[i],o="hide"in e.props?e.props.hide:null==(n=e.type.defaultProps)?void 0:n.hide;return r===m&&!o}),"number",s),r.defaultProps.allowDataOverflow),m,o),e1(e1({},e),{},e2({},m,e1(e1({axisType:o},r.defaultProps),{},{hide:!0,orientation:d()(e3,"".concat(o,".").concat(g%2),null),domain:v,originalDomain:b,isCategorical:y,layout:s}))))},{})},ti=function(e,t){var n=t.axisType,r=void 0===n?"xAxis":n,o=t.AxisComp,i=t.graphicalItems,a=t.stackGroups,l=t.dataStartIndex,u=t.dataEndIndex,s=e.children,c="".concat(r,"Id"),f=(0,E.aS)(s,o),p={};return f&&f.length?p=tr(e,{axes:f,graphicalItems:i,axisType:r,axisIdKey:c,stackGroups:a,dataStartIndex:l,dataEndIndex:u}):i&&i.length&&(p=to(e,{Axis:o,graphicalItems:i,axisType:r,axisIdKey:c,stackGroups:a,dataStartIndex:l,dataEndIndex:u})),p},ta=function(e){var t=(0,k.lX)(e),n=(0,C.Rh)(t,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:y()(n,function(e){return e.coordinate}),tooltipAxis:t,tooltipAxisBandSize:(0,C.Hj)(t,n)}},tl=function(e){var t=e.children,n=e.defaultShowTooltip,r=(0,E.BU)(t,K),o=0,i=0;return e.data&&0!==e.data.length&&(i=e.data.length-1),r&&r.props&&(r.props.startIndex>=0&&(o=r.props.startIndex),r.props.endIndex>=0&&(i=r.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:o,dataEndIndex:i,activeTooltipIndex:-1,isTooltipActive:!!n}},tu=function(e){return"horizontal"===e?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===e?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===e?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},ts=function(e,t){var n=e.props,r=e.graphicalItems,o=e.xAxisMap,i=void 0===o?{}:o,a=e.yAxisMap,l=void 0===a?{}:a,u=n.width,s=n.height,c=n.children,f=n.margin||{},p=(0,E.BU)(c,K),h=(0,E.BU)(c,S.s),y=Object.keys(l).reduce(function(e,t){var n=l[t],r=n.orientation;return n.mirror||n.hide?e:e1(e1({},e),{},e2({},r,e[r]+n.width))},{left:f.left||0,right:f.right||0}),g=Object.keys(i).reduce(function(e,t){var n=i[t],r=n.orientation;return n.mirror||n.hide?e:e1(e1({},e),{},e2({},r,d()(e,"".concat(r))+n.height))},{top:f.top||0,bottom:f.bottom||0}),v=e1(e1({},g),y),m=v.bottom;p&&(v.bottom+=p.props.height||K.defaultProps.height),h&&t&&(v=(0,C.s0)(v,r,n,t));var b=u-v.left-v.right,x=s-v.top-v.bottom;return e1(e1({brushBottom:m},v),{},{width:Math.max(b,0),height:Math.max(x,0)})},tc=function(e){var t=e.chartName,n=e.GraphicalChild,r=e.defaultTooltipEventType,o=void 0===r?"axis":r,a=e.validateTooltipEventTypes,u=void 0===a?["axis"]:a,c=e.axisComponents,f=e.legendContent,p=e.formatAxisMap,h=e.defaultProps,y=function(e,t){var n=t.graphicalItems,r=t.stackGroups,o=t.offset,i=t.updateId,a=t.dataStartIndex,u=t.dataEndIndex,s=e.barSize,f=e.layout,p=e.barGap,d=e.barCategoryGap,h=e.maxBarSize,y=tu(f),g=y.numericAxisName,v=y.cateAxisName,m=!!n&&!!n.length&&n.some(function(e){var t=(0,E.Mn)(e&&e.type);return t&&t.indexOf("Bar")>=0}),x=[];return n.forEach(function(n,y){var w=e7(e.data,{graphicalItems:[n],dataStartIndex:a,dataEndIndex:u}),O=void 0!==n.type.defaultProps?e1(e1({},n.type.defaultProps),n.props):n.props,S=O.dataKey,A=O.maxBarSize,j=O["".concat(g,"Id")],P=O["".concat(v,"Id")],M=c.reduce(function(e,n){var r=t["".concat(n.axisType,"Map")],o=O["".concat(n.axisType,"Id")];r&&r[o]||"zAxis"===n.axisType||(0,b.A)(!1);var i=r[o];return e1(e1({},e),{},e2(e2({},n.axisType,i),"".concat(n.axisType,"Ticks"),(0,C.Rh)(i)))},{}),k=M[v],_=M["".concat(v,"Ticks")],T=r&&r[j]&&r[j].hasStack&&(0,C.kA)(n,r[j].stackGroups),I=(0,E.Mn)(n.type).indexOf("Bar")>=0,R=(0,C.Hj)(k,_),D=[],N=m&&(0,C.tA)({barSize:s,stackGroups:r,totalSize:"xAxis"===v?M[v].width:"yAxis"===v?M[v].height:void 0});if(I){var F,B,L=l()(A)?h:A,z=null!=(F=null!=(B=(0,C.Hj)(k,_,!0))?B:L)?F:0;D=(0,C.BX)({barGap:p,barCategoryGap:d,bandSize:z!==R?z:R,sizeList:N[P],maxBarSize:L}),z!==R&&(D=D.map(function(e){return e1(e1({},e),{},{position:e1(e1({},e.position),{},{offset:e.position.offset-z/2})})}))}var V=n&&n.type&&n.type.getComposedData;V&&x.push({props:e1(e1({},V(e1(e1({},M),{},{displayedData:w,props:e,dataKey:S,item:n,bandSize:R,barPosition:D,offset:o,stackedData:T,layout:f,dataStartIndex:a,dataEndIndex:u}))),{},e2(e2(e2({key:n.key||"item-".concat(y)},g,M[g]),v,M[v]),"animationId",i)),childIndex:(0,E.AW)(n,e.children),item:n})}),x},g=function(e,r){var o=e.props,i=e.dataStartIndex,a=e.dataEndIndex,l=e.updateId;if(!(0,E.Me)({props:o}))return null;var u=o.children,s=o.layout,f=o.stackOffset,d=o.data,h=o.reverseStackOrder,g=tu(s),v=g.numericAxisName,m=g.cateAxisName,b=(0,E.aS)(u,n),x=(0,C.Mn)(d,b,"".concat(v,"Id"),"".concat(m,"Id"),f,h),w=c.reduce(function(e,t){var n="".concat(t.axisType,"Map");return e1(e1({},e),{},e2({},n,ti(o,e1(e1({},t),{},{graphicalItems:b,stackGroups:t.axisType===v&&x,dataStartIndex:i,dataEndIndex:a}))))},{}),O=ts(e1(e1({},w),{},{props:o,graphicalItems:b}),null==r?void 0:r.legendBBox);Object.keys(w).forEach(function(e){w[e]=p(o,w[e],O,e.replace("Map",""),t)});var S=ta(w["".concat(m,"Map")]),A=y(o,e1(e1({},w),{},{dataStartIndex:i,dataEndIndex:a,updateId:l,graphicalItems:b,stackGroups:x,offset:O}));return e1(e1({formattedGraphicalItems:A,graphicalItems:b,offset:O,stackGroups:x},S),w)},S=function(e){var n;function r(e){var n,o,a,u,c;if(!(this instanceof r))throw TypeError("Cannot call a class as a function");return u=r,c=[e],u=eK(u),e2(a=function(e,t){if(t&&("object"===eG(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");var n=e;if(void 0===n)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(this,eX()?Reflect.construct(u,c||[],eK(this).constructor):u.apply(this,c)),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),e2(a,"accessibilityManager",new eP),e2(a,"handleLegendBBoxUpdate",function(e){if(e){var t=a.state,n=t.dataStartIndex,r=t.dataEndIndex,o=t.updateId;a.setState(e1({legendBBox:e},g({props:a.props,dataStartIndex:n,dataEndIndex:r,updateId:o},e1(e1({},a.state),{},{legendBBox:e}))))}}),e2(a,"handleReceiveSyncEvent",function(e,t,n){a.props.syncId===e&&(n!==a.eventEmitterSymbol||"function"==typeof a.props.syncMethod)&&a.applySyncEvent(t)}),e2(a,"handleBrushChange",function(e){var t=e.startIndex,n=e.endIndex;if(t!==a.state.dataStartIndex||n!==a.state.dataEndIndex){var r=a.state.updateId;a.setState(function(){return e1({dataStartIndex:t,dataEndIndex:n},g({props:a.props,dataStartIndex:t,dataEndIndex:n,updateId:r},a.state))}),a.triggerSyncEvent({dataStartIndex:t,dataEndIndex:n})}}),e2(a,"handleMouseEnter",function(e){var t=a.getMouseInfo(e);if(t){var n=e1(e1({},t),{},{isTooltipActive:!0});a.setState(n),a.triggerSyncEvent(n);var r=a.props.onMouseEnter;s()(r)&&r(n,e)}}),e2(a,"triggeredAfterMouseMove",function(e){var t=a.getMouseInfo(e),n=t?e1(e1({},t),{},{isTooltipActive:!0}):{isTooltipActive:!1};a.setState(n),a.triggerSyncEvent(n);var r=a.props.onMouseMove;s()(r)&&r(n,e)}),e2(a,"handleItemMouseEnter",function(e){a.setState(function(){return{isTooltipActive:!0,activeItem:e,activePayload:e.tooltipPayload,activeCoordinate:e.tooltipPosition||{x:e.cx,y:e.cy}}})}),e2(a,"handleItemMouseLeave",function(){a.setState(function(){return{isTooltipActive:!1}})}),e2(a,"handleMouseMove",function(e){e.persist(),a.throttleTriggeredAfterMouseMove(e)}),e2(a,"handleMouseLeave",function(e){a.throttleTriggeredAfterMouseMove.cancel();var t={isTooltipActive:!1};a.setState(t),a.triggerSyncEvent(t);var n=a.props.onMouseLeave;s()(n)&&n(t,e)}),e2(a,"handleOuterEvent",function(e){var t,n=(0,E.X_)(e),r=d()(a.props,"".concat(n));n&&s()(r)&&r(null!=(t=/.*touch.*/i.test(n)?a.getMouseInfo(e.changedTouches[0]):a.getMouseInfo(e))?t:{},e)}),e2(a,"handleClick",function(e){var t=a.getMouseInfo(e);if(t){var n=e1(e1({},t),{},{isTooltipActive:!0});a.setState(n),a.triggerSyncEvent(n);var r=a.props.onClick;s()(r)&&r(n,e)}}),e2(a,"handleMouseDown",function(e){var t=a.props.onMouseDown;s()(t)&&t(a.getMouseInfo(e),e)}),e2(a,"handleMouseUp",function(e){var t=a.props.onMouseUp;s()(t)&&t(a.getMouseInfo(e),e)}),e2(a,"handleTouchMove",function(e){null!=e.changedTouches&&e.changedTouches.length>0&&a.throttleTriggeredAfterMouseMove(e.changedTouches[0])}),e2(a,"handleTouchStart",function(e){null!=e.changedTouches&&e.changedTouches.length>0&&a.handleMouseDown(e.changedTouches[0])}),e2(a,"handleTouchEnd",function(e){null!=e.changedTouches&&e.changedTouches.length>0&&a.handleMouseUp(e.changedTouches[0])}),e2(a,"triggerSyncEvent",function(e){void 0!==a.props.syncId&&ew.emit(eO,a.props.syncId,e,a.eventEmitterSymbol)}),e2(a,"applySyncEvent",function(e){var t=a.props,n=t.layout,r=t.syncMethod,o=a.state.updateId,i=e.dataStartIndex,l=e.dataEndIndex;if(void 0!==e.dataStartIndex||void 0!==e.dataEndIndex)a.setState(e1({dataStartIndex:i,dataEndIndex:l},g({props:a.props,dataStartIndex:i,dataEndIndex:l,updateId:o},a.state)));else if(void 0!==e.activeTooltipIndex){var u=e.chartX,s=e.chartY,c=e.activeTooltipIndex,f=a.state,p=f.offset,d=f.tooltipTicks;if(!p)return;if("function"==typeof r)c=r(d,e);else if("value"===r){c=-1;for(var h=0;h=0){if(c.dataKey&&!c.allowDuplicatedCategory){var _="function"==typeof c.dataKey?function(e){return"function"==typeof c.dataKey?c.dataKey(e.payload):null}:"payload.".concat(c.dataKey.toString());I=(0,k.eP)(g,_,p),R=v&&m&&(0,k.eP)(m,_,p)}else I=null==g?void 0:g[f],R=v&&m&&m[f];if(A||S){var T=void 0!==e.props.activeIndex?e.props.activeIndex:f;return[(0,i.cloneElement)(e,e1(e1(e1({},r.props),P),{},{activeIndex:T})),null,null]}if(!l()(I))return[M].concat(eJ(a.renderActivePoints({item:r,activePoint:I,basePoint:R,childIndex:f,isRange:v})))}else{var I,R,D,N=(null!=(D=a.getItemByXY(a.state.activeCoordinate))?D:{graphicalItem:M}).graphicalItem,F=N.item,B=void 0===F?e:F,L=N.childIndex,z=e1(e1(e1({},r.props),P),{},{activeIndex:L});return[(0,i.cloneElement)(B,z),null,null]}return v?[M,null,null]:[M,null]}),e2(a,"renderCustomized",function(e,t,n){return(0,i.cloneElement)(e,e1(e1({key:"recharts-customized-".concat(n)},a.props),a.state))}),e2(a,"renderMap",{CartesianGrid:{handler:e6,once:!0},ReferenceArea:{handler:a.renderReferenceElement},ReferenceLine:{handler:e6},ReferenceDot:{handler:a.renderReferenceElement},XAxis:{handler:e6},YAxis:{handler:e6},Brush:{handler:a.renderBrush,once:!0},Bar:{handler:a.renderGraphicChild},Line:{handler:a.renderGraphicChild},Area:{handler:a.renderGraphicChild},Radar:{handler:a.renderGraphicChild},RadialBar:{handler:a.renderGraphicChild},Scatter:{handler:a.renderGraphicChild},Pie:{handler:a.renderGraphicChild},Funnel:{handler:a.renderGraphicChild},Tooltip:{handler:a.renderCursor,once:!0},PolarGrid:{handler:a.renderPolarGrid,once:!0},PolarAngleAxis:{handler:a.renderPolarAxis},PolarRadiusAxis:{handler:a.renderPolarAxis},Customized:{handler:a.renderCustomized}}),a.clipPathId="".concat(null!=(n=e.id)?n:(0,k.NF)("recharts"),"-clip"),a.throttleTriggeredAfterMouseMove=v()(a.triggeredAfterMouseMove,null!=(o=e.throttleDelay)?o:1e3/60),a.state={},a}if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");return r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&eY(r,e),n=[{key:"componentDidMount",value:function(){var e,t;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:null!=(e=this.props.margin.left)?e:0,top:null!=(t=this.props.margin.top)?t:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var e=this.props,t=e.children,n=e.data,r=e.height,o=e.layout,i=(0,E.BU)(t,O.m);if(i){var a=i.props.defaultIndex;if("number"==typeof a&&!(a<0)&&!(a>this.state.tooltipTicks.length-1)){var l=this.state.tooltipTicks[a]&&this.state.tooltipTicks[a].value,u=tt(this.state,n,a,l),s=this.state.tooltipTicks[a].coordinate,c=(this.state.offset.top+r)/2,f="horizontal"===o?{x:s,y:c}:{y:s,x:c},p=this.state.formattedGraphicalItems.find(function(e){return"Scatter"===e.item.type.name});p&&(f=e1(e1({},f),p.props.points[a].tooltipPosition),u=p.props.points[a].tooltipPayload);var d={activeTooltipIndex:a,isTooltipActive:!0,activeLabel:l,activePayload:u,activeCoordinate:f};this.setState(d),this.renderCursor(i),this.accessibilityManager.setIndex(a)}}}},{key:"getSnapshotBeforeUpdate",value:function(e,t){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==t.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==e.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==e.margin){var n,r;this.accessibilityManager.setDetails({offset:{left:null!=(n=this.props.margin.left)?n:0,top:null!=(r=this.props.margin.top)?r:0}})}return null}},{key:"componentDidUpdate",value:function(e){(0,E.OV)([(0,E.BU)(e.children,O.m)],[(0,E.BU)(this.props.children,O.m)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var e=(0,E.BU)(this.props.children,O.m);if(e&&"boolean"==typeof e.props.shared){var t=e.props.shared?"axis":"item";return u.indexOf(t)>=0?t:o}return o}},{key:"getMouseInfo",value:function(e){if(!this.container)return null;var t=this.container,n=t.getBoundingClientRect(),r=(0,Y.A3)(n),o={chartX:Math.round(e.pageX-r.left),chartY:Math.round(e.pageY-r.top)},i=n.width/t.offsetWidth||1,a=this.inRange(o.chartX,o.chartY,i);if(!a)return null;var l=this.state,u=l.xAxisMap,s=l.yAxisMap;if("axis"!==this.getTooltipEventType()&&u&&s){var c=(0,k.lX)(u).scale,f=(0,k.lX)(s).scale,p=c&&c.invert?c.invert(o.chartX):null,d=f&&f.invert?f.invert(o.chartY):null;return e1(e1({},o),{},{xValue:p,yValue:d})}var h=tn(this.state,this.props.data,this.props.layout,a);return h?e1(e1({},o),h):null}},{key:"inRange",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=this.props.layout,o=e/n,i=t/n;if("horizontal"===r||"vertical"===r){var a=this.state.offset;return o>=a.left&&o<=a.left+a.width&&i>=a.top&&i<=a.top+a.height?{x:o,y:i}:null}var l=this.state,u=l.angleAxisMap,s=l.radiusAxisMap;if(u&&s){var c=(0,k.lX)(u);return(0,em.yy)({x:o,y:i},c)}return null}},{key:"parseEventsOfWrapper",value:function(){var e=this.props.children,t=this.getTooltipEventType(),n=(0,E.BU)(e,O.m),r={};return n&&"axis"===t&&(r="click"===n.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}),e1(e1({},(0,eS._U)(this.props,this.handleOuterEvent)),r)}},{key:"addListener",value:function(){ew.on(eO,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){ew.removeListener(eO,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(e,t,n){for(var r=this.state.formattedGraphicalItems,o=0,i=r.length;o{var r=n(90843);e.exports=function(e,t,n){for(var o=-1,i=e.criteria,a=t.criteria,l=i.length,u=n.length;++o=u)return s;return s*("desc"==n[o]?-1:1)}}return e.index-t.index}},33958:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var r=(0,n(41495).A)("filled","caret-down-filled","IconCaretDownFilled",[["path",{d:"M18 9c.852 0 1.297 .986 .783 1.623l-.076 .084l-6 6a1 1 0 0 1 -1.32 .083l-.094 -.083l-6 -6l-.083 -.094l-.054 -.077l-.054 -.096l-.017 -.036l-.027 -.067l-.032 -.108l-.01 -.053l-.01 -.06l-.004 -.057v-.118l.005 -.058l.009 -.06l.01 -.052l.032 -.108l.027 -.067l.07 -.132l.065 -.09l.073 -.081l.094 -.083l.077 -.054l.096 -.054l.036 -.017l.067 -.027l.108 -.032l.053 -.01l.06 -.01l.057 -.004l12.059 -.002z",key:"svg-0"}]])},34024:(e,t,n)=>{var r=n(21248),o=n(87567);e.exports=function(e,t){return e&&r(e,t,o)}},35342:(e,t,n)=>{var r=n(83965),o=n(93803);e.exports=function(e,t){return r(o(e,t),1)}},35555:(e,t,n)=>{"use strict";n.d(t,{J:()=>j});var r=n(55729),o=n(38822),i=n.n(o),a=n(98499),l=n.n(a),u=n(23356),s=n.n(u),c=n(50212),f=n(25599),p=n(93780),d=n(53645),h=n(31829);function y(e){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var g=["offset"];function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=0?1:-1;"insideStart"===l?(o=m+A*s,a=w):"insideEnd"===l?(o=b-A*s,a=!w):"end"===l&&(o=b+A*s,a=w),a=S<=0?a:!a;var j=(0,h.IZ)(p,y,O,o),E=(0,h.IZ)(p,y,O,o+(a?1:-1)*359),P="M".concat(j.x,",").concat(j.y,"\n A").concat(O,",").concat(O,",0,1,").concat(+!a,",\n ").concat(E.x,",").concat(E.y),M=i()(e.id)?(0,d.NF)("recharts-radial-line-"):e.id;return r.createElement("text",x({},n,{dominantBaseline:"central",className:(0,c.A)("recharts-radial-bar-label",f)}),r.createElement("defs",null,r.createElement("path",{id:M,d:P})),r.createElement("textPath",{xlinkHref:"#".concat(M)},t))},S=function(e){var t=e.viewBox,n=e.offset,r=e.position,o=t.cx,i=t.cy,a=t.innerRadius,l=t.outerRadius,u=(t.startAngle+t.endAngle)/2;if("outside"===r){var s=(0,h.IZ)(o,i,l+n,u),c=s.x;return{x:c,y:s.y,textAnchor:c>=o?"start":"end",verticalAnchor:"middle"}}if("center"===r)return{x:o,y:i,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===r)return{x:o,y:i,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===r)return{x:o,y:i,textAnchor:"middle",verticalAnchor:"end"};var f=(0,h.IZ)(o,i,(a+l)/2,u);return{x:f.x,y:f.y,textAnchor:"middle",verticalAnchor:"middle"}},A=function(e){var t=e.viewBox,n=e.parentViewBox,r=e.offset,o=e.position,i=t.x,a=t.y,l=t.width,u=t.height,c=u>=0?1:-1,f=c*r,p=c>0?"end":"start",h=c>0?"start":"end",y=l>=0?1:-1,g=y*r,v=y>0?"end":"start",m=y>0?"start":"end";if("top"===o)return b(b({},{x:i+l/2,y:a-c*r,textAnchor:"middle",verticalAnchor:p}),n?{height:Math.max(a-n.y,0),width:l}:{});if("bottom"===o)return b(b({},{x:i+l/2,y:a+u+f,textAnchor:"middle",verticalAnchor:h}),n?{height:Math.max(n.y+n.height-(a+u),0),width:l}:{});if("left"===o){var x={x:i-g,y:a+u/2,textAnchor:v,verticalAnchor:"middle"};return b(b({},x),n?{width:Math.max(x.x-n.x,0),height:u}:{})}if("right"===o){var w={x:i+l+g,y:a+u/2,textAnchor:m,verticalAnchor:"middle"};return b(b({},w),n?{width:Math.max(n.x+n.width-w.x,0),height:u}:{})}var O=n?{width:l,height:u}:{};return"insideLeft"===o?b({x:i+g,y:a+u/2,textAnchor:m,verticalAnchor:"middle"},O):"insideRight"===o?b({x:i+l-g,y:a+u/2,textAnchor:v,verticalAnchor:"middle"},O):"insideTop"===o?b({x:i+l/2,y:a+f,textAnchor:"middle",verticalAnchor:h},O):"insideBottom"===o?b({x:i+l/2,y:a+u-f,textAnchor:"middle",verticalAnchor:p},O):"insideTopLeft"===o?b({x:i+g,y:a+f,textAnchor:m,verticalAnchor:h},O):"insideTopRight"===o?b({x:i+l-g,y:a+f,textAnchor:v,verticalAnchor:h},O):"insideBottomLeft"===o?b({x:i+g,y:a+u-f,textAnchor:m,verticalAnchor:p},O):"insideBottomRight"===o?b({x:i+l-g,y:a+u-f,textAnchor:v,verticalAnchor:p},O):s()(o)&&((0,d.Et)(o.x)||(0,d._3)(o.x))&&((0,d.Et)(o.y)||(0,d._3)(o.y))?b({x:i+(0,d.F4)(o.x,l),y:a+(0,d.F4)(o.y,u),textAnchor:"end",verticalAnchor:"end"},O):b({x:i+l/2,y:a+u/2,textAnchor:"middle",verticalAnchor:"middle"},O)};function j(e){var t,n=e.offset,o=b({offset:void 0===n?5:n},function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,g)),a=o.viewBox,u=o.position,s=o.value,h=o.children,y=o.content,v=o.className,m=o.textBreakAll;if(!a||i()(s)&&i()(h)&&!(0,r.isValidElement)(y)&&!l()(y))return null;if((0,r.isValidElement)(y))return(0,r.cloneElement)(y,o);if(l()(y)){if(t=(0,r.createElement)(y,o),(0,r.isValidElement)(t))return t}else t=w(o);var j="cx"in a&&(0,d.Et)(a.cx),E=(0,p.J9)(o,!0);if(j&&("insideStart"===u||"insideEnd"===u||"end"===u))return O(o,t,E);var P=j?S(o):A(o);return r.createElement(f.E,x({className:(0,c.A)("recharts-label",void 0===v?"":v)},E,P,{breakAll:m}),t)}j.displayName="Label";var E=function(e){var t=e.cx,n=e.cy,r=e.angle,o=e.startAngle,i=e.endAngle,a=e.r,l=e.radius,u=e.innerRadius,s=e.outerRadius,c=e.x,f=e.y,p=e.top,h=e.left,y=e.width,g=e.height,v=e.clockWise,m=e.labelViewBox;if(m)return m;if((0,d.Et)(y)&&(0,d.Et)(g)){if((0,d.Et)(c)&&(0,d.Et)(f))return{x:c,y:f,width:y,height:g};if((0,d.Et)(p)&&(0,d.Et)(h))return{x:p,y:h,width:y,height:g}}return(0,d.Et)(c)&&(0,d.Et)(f)?{x:c,y:f,width:0,height:0}:(0,d.Et)(t)&&(0,d.Et)(n)?{cx:t,cy:n,startAngle:o||r||0,endAngle:i||r||0,innerRadius:u||0,outerRadius:s||l||a||0,clockWise:v}:e.viewBox?e.viewBox:{}};j.parseViewBox=E,j.renderCallByParent=function(e,t){var n,o,i=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(!e||!e.children&&i&&!e.label)return null;var a=e.children,u=E(e),c=(0,p.aS)(a,j).map(function(e,n){return(0,r.cloneElement)(e,{viewBox:t||u,key:"label-".concat(n)})});if(!i)return c;return[(n=e.label,o=t||u,!n?null:!0===n?r.createElement(j,{key:"label-implicit",viewBox:o}):(0,d.vh)(n)?r.createElement(j,{key:"label-implicit",viewBox:o,value:n}):(0,r.isValidElement)(n)?n.type===j?(0,r.cloneElement)(n,{key:"label-implicit",viewBox:o}):r.createElement(j,{key:"label-implicit",content:n,viewBox:o}):l()(n)?r.createElement(j,{key:"label-implicit",content:n,viewBox:o}):s()(n)?r.createElement(j,x({viewBox:o},n,{key:"label-implicit"})):null)].concat(function(e){if(Array.isArray(e))return v(e)}(c)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(c)||function(e,t){if(e){if("string"==typeof e)return v(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return v(e,void 0)}}(c)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}},36022:e=>{e.exports=function(e){return this.__data__.has(e)}},36647:(e,t,n)=>{var r=n(68988),o=n(16799),i=n(87567);e.exports=function(e){return function(t,n,a){var l=Object(t);if(!o(t)){var u=r(n,3);t=i(t),n=function(e){return u(l[e],e,l)}}var s=e(t,n,a);return s>-1?l[u?t[s]:s]:void 0}}},37390:(e,t,n)=>{var r=n(88601),o=n(24127),i=n(68988),a=n(93733),l=n(1864),u=n(3540),s=n(33883),c=n(5549),f=n(91544);e.exports=function(e,t,n){t=t.length?r(t,function(e){return f(e)?function(t){return o(t,1===e.length?e[0]:e)}:e}):[c];var p=-1;return t=r(t,u(i)),l(a(e,function(e,n,o){return{criteria:r(t,function(t){return t(e)}),index:++p,value:e}}),function(e,t){return s(e,t,n)})}},38302:e=>{e.exports=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i{e.exports=function(e){return null==e}},38867:(e,t,n)=>{var r=n(19962),o=n(70930),i=n(5549);e.exports=function(e){return e&&e.length?r(e,i,o):void 0}},39696:(e,t,n)=>{"use strict";function r(e,t){return"function"==typeof e?e(t):e}function o(e,t){return n=>{t.setState(t=>({...t,[e]:r(n,t[e])}))}}function i(e){return e instanceof Function}function a(e,t,n){let r,o=[];return()=>{let i,a;n.key&&n.debug&&(i=Date.now());let l=e();if(!(l.length!==o.length||l.some((e,t)=>o[t]!==e)))return r;if(o=l,n.key&&n.debug&&(a=Date.now()),r=t(...l),null==n||null==n.onChange||n.onChange(r),n.key&&n.debug&&null!=n&&n.debug()){let e=Math.round((Date.now()-i)*100)/100,t=Math.round((Date.now()-a)*100)/100,r=t/16,o=(e,t)=>{for(e=String(e);e.length{let e=[],t=n=>{n.subHeaders&&n.subHeaders.length&&n.subHeaders.map(t),e.push(n)};return t(o),e},getContext:()=>({table:e,header:o,column:t})};return e._features.forEach(t=>{Object.assign(o,null==t.createHeader?void 0:t.createHeader(o,e))}),o}function u(e,t,n,r){var o,i;let a=0,u=function(e,t){void 0===t&&(t=1),a=Math.max(a,t),e.filter(e=>e.getIsVisible()).forEach(e=>{var n;null!=(n=e.columns)&&n.length&&u(e.columns,t+1)},0)};u(e);let s=[],c=(e,t)=>{let o={depth:t,id:[r,`${t}`].filter(Boolean).join("_"),headers:[]},i=[];e.forEach(e=>{let a,u=[...i].reverse()[0],s=e.column.depth===o.depth,c=!1;if(s&&e.column.parent?a=e.column.parent:(a=e.column,c=!0),u&&(null==u?void 0:u.column)===a)u.subHeaders.push(e);else{let o=l(n,a,{id:[r,t,a.id,null==e?void 0:e.id].filter(Boolean).join("_"),isPlaceholder:c,placeholderId:c?`${i.filter(e=>e.column===a).length}`:void 0,depth:t,index:i.length});o.subHeaders.push(e),i.push(o)}o.headers.push(e),e.headerGroup=o}),s.push(o),t>0&&c(i,t-1)};c(t.map((e,t)=>l(n,e,{depth:a,index:t})),a-1),s.reverse();let f=e=>e.filter(e=>e.column.getIsVisible()).map(e=>{let t=0,n=0,r=[0];return e.subHeaders&&e.subHeaders.length?(r=[],f(e.subHeaders).forEach(e=>{let{colSpan:n,rowSpan:o}=e;t+=n,r.push(o)})):t=1,n+=Math.min(...r),e.colSpan=t,e.rowSpan=n,{colSpan:t,rowSpan:n}});return f(null!=(o=null==(i=s[0])?void 0:i.headers)?o:[]),s}n.d(t,{HT:()=>z,ZR:()=>B});let s={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},c=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),f=null;function p(e){return"touchstart"===e.type}let d=(e,t,n)=>{var r;let o=n.toLowerCase();return!!(null==(r=e.getValue(t))?void 0:r.toLowerCase().includes(o))};d.autoRemove=e=>S(e);let h=(e,t,n)=>{var r;return!!(null==(r=e.getValue(t))?void 0:r.includes(n))};h.autoRemove=e=>S(e);let y=(e,t,n)=>{var r;return(null==(r=e.getValue(t))?void 0:r.toLowerCase())===n.toLowerCase()};y.autoRemove=e=>S(e);let g=(e,t,n)=>{var r;return null==(r=e.getValue(t))?void 0:r.includes(n)};g.autoRemove=e=>S(e)||!(null!=e&&e.length);let v=(e,t,n)=>!n.some(n=>{var r;return!(null!=(r=e.getValue(t))&&r.includes(n))});v.autoRemove=e=>S(e)||!(null!=e&&e.length);let m=(e,t,n)=>n.some(n=>{var r;return null==(r=e.getValue(t))?void 0:r.includes(n)});m.autoRemove=e=>S(e)||!(null!=e&&e.length);let b=(e,t,n)=>e.getValue(t)===n;b.autoRemove=e=>S(e);let x=(e,t,n)=>e.getValue(t)==n;x.autoRemove=e=>S(e);let w=(e,t,n)=>{let[r,o]=n,i=e.getValue(t);return i>=r&&i<=o};w.resolveFilterValue=e=>{let[t,n]=e,r="number"!=typeof t?parseFloat(t):t,o="number"!=typeof n?parseFloat(n):n,i=null===t||Number.isNaN(r)?-1/0:r,a=null===n||Number.isNaN(o)?1/0:o;if(i>a){let e=i;i=a,a=e}return[i,a]},w.autoRemove=e=>S(e)||S(e[0])&&S(e[1]);let O={includesString:d,includesStringSensitive:h,equalsString:y,arrIncludes:g,arrIncludesAll:v,arrIncludesSome:m,equals:b,weakEquals:x,inNumberRange:w};function S(e){return null==e||""===e}function A(e,t,n){return!!e&&!!e.autoRemove&&e.autoRemove(t,n)||void 0===t||"string"==typeof t&&!t}let j={sum:(e,t,n)=>n.reduce((t,n)=>{let r=n.getValue(e);return t+("number"==typeof r?r:0)},0),min:(e,t,n)=>{let r;return n.forEach(t=>{let n=t.getValue(e);null!=n&&(r>n||void 0===r&&n>=n)&&(r=n)}),r},max:(e,t,n)=>{let r;return n.forEach(t=>{let n=t.getValue(e);null!=n&&(r=n)&&(r=n)}),r},extent:(e,t,n)=>{let r,o;return n.forEach(t=>{let n=t.getValue(e);null!=n&&(void 0===r?n>=n&&(r=o=n):(r>n&&(r=n),o{let n=0,r=0;if(t.forEach(t=>{let o=t.getValue(e);null!=o&&(o*=1)>=o&&(++n,r+=o)}),n)return r/n},median:(e,t)=>{if(!t.length)return;let n=0,r=0;return t.forEach(t=>{let o=t.getValue(e);"number"==typeof o&&(n=Math.min(n,o),r=Math.max(r,o))}),(n+r)/2},unique:(e,t)=>Array.from(new Set(t.map(t=>t.getValue(e))).values()),uniqueCount:(e,t)=>new Set(t.map(t=>t.getValue(e))).size,count:(e,t)=>t.length},E=()=>({pageIndex:0,pageSize:10}),P=()=>({left:[],right:[]}),M=(e,t,n,r)=>{var o;let i=r.getRow(t);n?(i.getCanMultiSelect()||Object.keys(e).forEach(t=>delete e[t]),i.getCanSelect()&&(e[t]=!0)):delete e[t],null!=(o=i.subRows)&&o.length&&i.getCanSelectSubRows()&&i.subRows.forEach(t=>M(e,t.id,n,r))};function C(e,t){let n=e.getState().rowSelection,r=[],o={},i=function(e,t){return e.map(e=>{var t;let a=k(e,n);if(a&&(r.push(e),o[e.id]=e),null!=(t=e.subRows)&&t.length&&(e={...e,subRows:i(e.subRows)}),a)return e}).filter(Boolean)};return{rows:i(t.rows),flatRows:r,rowsById:o}}function k(e,t){var n;return null!=(n=t[e.id])&&n}function _(e,t,n){if(e.subRows&&e.subRows.length){let n=!0,r=!1;return e.subRows.forEach(e=>{(!r||n)&&(k(e,t)?r=!0:n=!1)}),n?"all":!!r&&"some"}return!1}let T=/([0-9]+)/gm;function I(e,t){return e===t?0:e>t?1:-1}function R(e){return"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"==typeof e?e:""}function D(e,t){let n=e.split(T).filter(Boolean),r=t.split(T).filter(Boolean);for(;n.length&&r.length;){let e=n.shift(),t=r.shift(),o=parseInt(e,10),i=parseInt(t,10),a=[o,i].sort();if(isNaN(a[0])){if(e>t)return 1;if(t>e)return -1;continue}if(isNaN(a[1]))return isNaN(o)?-1:1;if(o>i)return 1;if(i>o)return -1}return n.length-r.length}let N={alphanumeric:(e,t,n)=>D(R(e.getValue(n)).toLowerCase(),R(t.getValue(n)).toLowerCase()),alphanumericCaseSensitive:(e,t,n)=>D(R(e.getValue(n)),R(t.getValue(n))),text:(e,t,n)=>I(R(e.getValue(n)).toLowerCase(),R(t.getValue(n)).toLowerCase()),textCaseSensitive:(e,t,n)=>I(R(e.getValue(n)),R(t.getValue(n))),datetime:(e,t,n)=>{let r=e.getValue(n),o=t.getValue(n);return r>o?1:rI(e.getValue(n),t.getValue(n))},F=[{createTable:e=>({getHeaderGroups:a(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,o)=>{var i,a;let l=null!=(i=null==r?void 0:r.map(e=>n.find(t=>t.id===e)).filter(Boolean))?i:[],s=null!=(a=null==o?void 0:o.map(e=>n.find(t=>t.id===e)).filter(Boolean))?a:[];return u(t,[...l,...n.filter(e=>!(null!=r&&r.includes(e.id))&&!(null!=o&&o.includes(e.id))),...s],e)},{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getCenterHeaderGroups:a(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,o)=>u(t,n=n.filter(e=>!(null!=r&&r.includes(e.id))&&!(null!=o&&o.includes(e.id))),e,"center"),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeftHeaderGroups:a(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,r)=>{var o;return u(t,null!=(o=null==r?void 0:r.map(e=>n.find(t=>t.id===e)).filter(Boolean))?o:[],e,"left")},{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getRightHeaderGroups:a(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,r)=>{var o;return u(t,null!=(o=null==r?void 0:r.map(e=>n.find(t=>t.id===e)).filter(Boolean))?o:[],e,"right")},{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getFooterGroups:a(()=>[e.getHeaderGroups()],e=>[...e].reverse(),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeftFooterGroups:a(()=>[e.getLeftHeaderGroups()],e=>[...e].reverse(),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getCenterFooterGroups:a(()=>[e.getCenterHeaderGroups()],e=>[...e].reverse(),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getRightFooterGroups:a(()=>[e.getRightHeaderGroups()],e=>[...e].reverse(),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getFlatHeaders:a(()=>[e.getHeaderGroups()],e=>e.map(e=>e.headers).flat(),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeftFlatHeaders:a(()=>[e.getLeftHeaderGroups()],e=>e.map(e=>e.headers).flat(),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getCenterFlatHeaders:a(()=>[e.getCenterHeaderGroups()],e=>e.map(e=>e.headers).flat(),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getRightFlatHeaders:a(()=>[e.getRightHeaderGroups()],e=>e.map(e=>e.headers).flat(),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getCenterLeafHeaders:a(()=>[e.getCenterFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeftLeafHeaders:a(()=>[e.getLeftFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getRightLeafHeaders:a(()=>[e.getRightFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeafHeaders:a(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(e,t,n)=>{var r,o,i,a,l,u;return[...null!=(r=null==(o=e[0])?void 0:o.headers)?r:[],...null!=(i=null==(a=t[0])?void 0:a.headers)?i:[],...null!=(l=null==(u=n[0])?void 0:u.headers)?l:[]].map(e=>e.getLeafHeaders()).flat()},{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}})})},{getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:o("columnVisibility",e)}),createColumn:(e,t)=>({toggleVisibility:n=>{e.getCanHide()&&t.setColumnVisibility(t=>({...t,[e.id]:null!=n?n:!e.getIsVisible()}))},getIsVisible:()=>{var n,r;return null==(n=null==(r=t.getState().columnVisibility)?void 0:r[e.id])||n},getCanHide:()=>{var n,r;return(null==(n=e.columnDef.enableHiding)||n)&&(null==(r=t.options.enableHiding)||r)},getToggleVisibilityHandler:()=>t=>{null==e.toggleVisibility||e.toggleVisibility(t.target.checked)}}),createRow:(e,t)=>({_getAllVisibleCells:a(()=>[e.getAllCells(),t.getState().columnVisibility],e=>e.filter(e=>e.column.getIsVisible()),{key:"row._getAllVisibleCells",debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),getVisibleCells:a(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(e,t,n)=>[...e,...t,...n],{key:!1,debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}})}),createTable:e=>{let t=(t,n)=>a(()=>[n(),n().filter(e=>e.getIsVisible()).map(e=>e.id).join("_")],e=>e.filter(e=>null==e.getIsVisible?void 0:e.getIsVisible()),{key:t,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}});return{getVisibleFlatColumns:t("getVisibleFlatColumns",()=>e.getAllFlatColumns()),getVisibleLeafColumns:t("getVisibleLeafColumns",()=>e.getAllLeafColumns()),getLeftVisibleLeafColumns:t("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),getRightVisibleLeafColumns:t("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),getCenterVisibleLeafColumns:t("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),setColumnVisibility:t=>null==e.options.onColumnVisibilityChange?void 0:e.options.onColumnVisibilityChange(t),resetColumnVisibility:t=>{var n;e.setColumnVisibility(t?{}:null!=(n=e.initialState.columnVisibility)?n:{})},toggleAllColumnsVisible:t=>{var n;t=null!=(n=t)?n:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((e,n)=>({...e,[n.id]:t||!(null!=n.getCanHide&&n.getCanHide())}),{}))},getIsAllColumnsVisible:()=>!e.getAllLeafColumns().some(e=>!(null!=e.getIsVisible&&e.getIsVisible())),getIsSomeColumnsVisible:()=>e.getAllLeafColumns().some(e=>null==e.getIsVisible?void 0:e.getIsVisible()),getToggleAllColumnsVisibilityHandler:()=>t=>{var n;e.toggleAllColumnsVisible(null==(n=t.target)?void 0:n.checked)}}}},{getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:o("columnOrder",e)}),createTable:e=>({setColumnOrder:t=>null==e.options.onColumnOrderChange?void 0:e.options.onColumnOrderChange(t),resetColumnOrder:t=>{var n;e.setColumnOrder(t?[]:null!=(n=e.initialState.columnOrder)?n:[])},_getOrderColumnsFn:a(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(e,t,n)=>r=>{let o=[];if(null!=e&&e.length){let t=[...e],n=[...r];for(;n.length&&t.length;){let e=t.shift(),r=n.findIndex(t=>t.id===e);r>-1&&o.push(n.splice(r,1)[0])}o=[...o,...n]}else o=r;var i=o;if(!(null!=t&&t.length)||!n)return i;let a=i.filter(e=>!t.includes(e.id));return"remove"===n?a:[...t.map(e=>i.find(t=>t.id===e)).filter(Boolean),...a]},{key:!1})})},{getInitialState:e=>({columnPinning:P(),...e}),getDefaultOptions:e=>({onColumnPinningChange:o("columnPinning",e)}),createColumn:(e,t)=>({pin:n=>{let r=e.getLeafColumns().map(e=>e.id).filter(Boolean);t.setColumnPinning(e=>{var t,o,i,a,l,u;return"right"===n?{left:(null!=(i=null==e?void 0:e.left)?i:[]).filter(e=>!(null!=r&&r.includes(e))),right:[...(null!=(a=null==e?void 0:e.right)?a:[]).filter(e=>!(null!=r&&r.includes(e))),...r]}:"left"===n?{left:[...(null!=(l=null==e?void 0:e.left)?l:[]).filter(e=>!(null!=r&&r.includes(e))),...r],right:(null!=(u=null==e?void 0:e.right)?u:[]).filter(e=>!(null!=r&&r.includes(e)))}:{left:(null!=(t=null==e?void 0:e.left)?t:[]).filter(e=>!(null!=r&&r.includes(e))),right:(null!=(o=null==e?void 0:e.right)?o:[]).filter(e=>!(null!=r&&r.includes(e)))}})},getCanPin:()=>e.getLeafColumns().some(e=>{var n,r;return(null==(n=e.columnDef.enablePinning)||n)&&(null==(r=t.options.enablePinning)||r)}),getIsPinned:()=>{let n=e.getLeafColumns().map(e=>e.id),{left:r,right:o}=t.getState().columnPinning,i=n.some(e=>null==r?void 0:r.includes(e)),a=n.some(e=>null==o?void 0:o.includes(e));return i?"left":!!a&&"right"},getPinnedIndex:()=>{var n,r,o;let i=e.getIsPinned();return i?null!=(n=null==(r=t.getState().columnPinning)||null==(o=r[i])?void 0:o.indexOf(e.id))?n:-1:0}}),createRow:(e,t)=>({getCenterVisibleCells:a(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(e,t,n)=>{let r=[...null!=t?t:[],...null!=n?n:[]];return e.filter(e=>!r.includes(e.column.id))},{key:"row.getCenterVisibleCells",debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),getLeftVisibleCells:a(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,,],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.column.id===t)).filter(Boolean).map(e=>({...e,position:"left"})),{key:"row.getLeftVisibleCells",debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),getRightVisibleCells:a(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.column.id===t)).filter(Boolean).map(e=>({...e,position:"right"})),{key:"row.getRightVisibleCells",debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}})}),createTable:e=>({setColumnPinning:t=>null==e.options.onColumnPinningChange?void 0:e.options.onColumnPinningChange(t),resetColumnPinning:t=>{var n,r;return e.setColumnPinning(t?P():null!=(n=null==(r=e.initialState)?void 0:r.columnPinning)?n:P())},getIsSomeColumnsPinned:t=>{var n,r,o;let i=e.getState().columnPinning;return t?!!(null==(n=i[t])?void 0:n.length):!!((null==(r=i.left)?void 0:r.length)||(null==(o=i.right)?void 0:o.length))},getLeftLeafColumns:a(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),getRightLeafColumns:a(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),getCenterLeafColumns:a(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(e,t,n)=>{let r=[...null!=t?t:[],...null!=n?n:[]];return e.filter(e=>!r.includes(e.id))},{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}})})},{getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],globalFilter:void 0,...e}),getDefaultOptions:e=>({onColumnFiltersChange:o("columnFilters",e),onGlobalFilterChange:o("globalFilter",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100,globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n,r;let o=null==(n=e.getCoreRowModel().flatRows[0])||null==(r=n._getAllCellsByColumnId()[t.id])?void 0:r.getValue();return"string"==typeof o||"number"==typeof o}}),createColumn:(e,t)=>({getAutoFilterFn:()=>{let n=t.getCoreRowModel().flatRows[0],r=null==n?void 0:n.getValue(e.id);return"string"==typeof r?O.includesString:"number"==typeof r?O.inNumberRange:"boolean"==typeof r||null!==r&&"object"==typeof r?O.equals:Array.isArray(r)?O.arrIncludes:O.weakEquals},getFilterFn:()=>{var n,r;return i(e.columnDef.filterFn)?e.columnDef.filterFn:"auto"===e.columnDef.filterFn?e.getAutoFilterFn():null!=(n=null==(r=t.options.filterFns)?void 0:r[e.columnDef.filterFn])?n:O[e.columnDef.filterFn]},getCanFilter:()=>{var n,r,o;return(null==(n=e.columnDef.enableColumnFilter)||n)&&(null==(r=t.options.enableColumnFilters)||r)&&(null==(o=t.options.enableFilters)||o)&&!!e.accessorFn},getCanGlobalFilter:()=>{var n,r,o,i;return(null==(n=e.columnDef.enableGlobalFilter)||n)&&(null==(r=t.options.enableGlobalFilter)||r)&&(null==(o=t.options.enableFilters)||o)&&(null==(i=null==t.options.getColumnCanGlobalFilter?void 0:t.options.getColumnCanGlobalFilter(e))||i)&&!!e.accessorFn},getIsFiltered:()=>e.getFilterIndex()>-1,getFilterValue:()=>{var n,r;return null==(n=t.getState().columnFilters)||null==(r=n.find(t=>t.id===e.id))?void 0:r.value},getFilterIndex:()=>{var n,r;return null!=(n=null==(r=t.getState().columnFilters)?void 0:r.findIndex(t=>t.id===e.id))?n:-1},setFilterValue:n=>{t.setColumnFilters(t=>{var o,i;let a=e.getFilterFn(),l=null==t?void 0:t.find(t=>t.id===e.id),u=r(n,l?l.value:void 0);if(A(a,u,e))return null!=(o=null==t?void 0:t.filter(t=>t.id!==e.id))?o:[];let s={id:e.id,value:u};return l?null!=(i=null==t?void 0:t.map(t=>t.id===e.id?s:t))?i:[]:null!=t&&t.length?[...t,s]:[s]})},_getFacetedRowModel:t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),getFacetedRowModel:()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),_getFacetedUniqueValues:t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),getFacetedUniqueValues:()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,_getFacetedMinMaxValues:t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),getFacetedMinMaxValues:()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}),createRow:(e,t)=>({columnFilters:{},columnFiltersMeta:{}}),createTable:e=>({getGlobalAutoFilterFn:()=>O.includesString,getGlobalFilterFn:()=>{var t,n;let{globalFilterFn:r}=e.options;return i(r)?r:"auto"===r?e.getGlobalAutoFilterFn():null!=(t=null==(n=e.options.filterFns)?void 0:n[r])?t:O[r]},setColumnFilters:t=>{let n=e.getAllLeafColumns();null==e.options.onColumnFiltersChange||e.options.onColumnFiltersChange(e=>{var o;return null==(o=r(t,e))?void 0:o.filter(e=>{let t=n.find(t=>t.id===e.id);return!(t&&A(t.getFilterFn(),e.value,t))&&!0})})},setGlobalFilter:t=>{null==e.options.onGlobalFilterChange||e.options.onGlobalFilterChange(t)},resetGlobalFilter:t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)},resetColumnFilters:t=>{var n,r;e.setColumnFilters(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.columnFilters)?n:[])},getPreFilteredRowModel:()=>e.getCoreRowModel(),getFilteredRowModel:()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel)?e.getPreFilteredRowModel():e._getFilteredRowModel(),_getGlobalFacetedRowModel:e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),getGlobalFacetedRowModel:()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),_getGlobalFacetedUniqueValues:e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),getGlobalFacetedUniqueValues:()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,_getGlobalFacetedMinMaxValues:e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),getGlobalFacetedMinMaxValues:()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}})},{getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto"}),getDefaultOptions:e=>({onSortingChange:o("sorting",e),isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,t)=>({getAutoSortingFn:()=>{let n=t.getFilteredRowModel().flatRows.slice(10),r=!1;for(let t of n){let n=null==t?void 0:t.getValue(e.id);if("[object Date]"===Object.prototype.toString.call(n))return N.datetime;if("string"==typeof n&&(r=!0,n.split(T).length>1))return N.alphanumeric}return r?N.text:N.basic},getAutoSortDir:()=>{let n=t.getFilteredRowModel().flatRows[0];return"string"==typeof(null==n?void 0:n.getValue(e.id))?"asc":"desc"},getSortingFn:()=>{var n,r;if(!e)throw Error();return i(e.columnDef.sortingFn)?e.columnDef.sortingFn:"auto"===e.columnDef.sortingFn?e.getAutoSortingFn():null!=(n=null==(r=t.options.sortingFns)?void 0:r[e.columnDef.sortingFn])?n:N[e.columnDef.sortingFn]},toggleSorting:(n,r)=>{let o=e.getNextSortingOrder(),i=null!=n;t.setSorting(a=>{let l,u=null==a?void 0:a.find(t=>t.id===e.id),s=null==a?void 0:a.findIndex(t=>t.id===e.id),c=[],f=i?n:"desc"===o;if("toggle"!=(l=null!=a&&a.length&&e.getCanMultiSort()&&r?u?"toggle":"add":null!=a&&a.length&&s!==a.length-1?"replace":u?"toggle":"replace")||i||o||(l="remove"),"add"===l){var p;(c=[...a,{id:e.id,desc:f}]).splice(0,c.length-(null!=(p=t.options.maxMultiSortColCount)?p:Number.MAX_SAFE_INTEGER))}else c="toggle"===l?a.map(t=>t.id===e.id?{...t,desc:f}:t):"remove"===l?a.filter(t=>t.id!==e.id):[{id:e.id,desc:f}];return c})},getFirstSortDir:()=>{var n,r;return(null!=(n=null!=(r=e.columnDef.sortDescFirst)?r:t.options.sortDescFirst)?n:"desc"===e.getAutoSortDir())?"desc":"asc"},getNextSortingOrder:n=>{var r,o;let i=e.getFirstSortDir(),a=e.getIsSorted();return a?(a===i||null!=(r=t.options.enableSortingRemoval)&&!r||!!n&&null!=(o=t.options.enableMultiRemove)&&!o)&&("desc"===a?"asc":"desc"):i},getCanSort:()=>{var n,r;return(null==(n=e.columnDef.enableSorting)||n)&&(null==(r=t.options.enableSorting)||r)&&!!e.accessorFn},getCanMultiSort:()=>{var n,r;return null!=(n=null!=(r=e.columnDef.enableMultiSort)?r:t.options.enableMultiSort)?n:!!e.accessorFn},getIsSorted:()=>{var n;let r=null==(n=t.getState().sorting)?void 0:n.find(t=>t.id===e.id);return!!r&&(r.desc?"desc":"asc")},getSortIndex:()=>{var n,r;return null!=(n=null==(r=t.getState().sorting)?void 0:r.findIndex(t=>t.id===e.id))?n:-1},clearSorting:()=>{t.setSorting(t=>null!=t&&t.length?t.filter(t=>t.id!==e.id):[])},getToggleSortingHandler:()=>{let n=e.getCanSort();return r=>{n&&(null==r.persist||r.persist(),null==e.toggleSorting||e.toggleSorting(void 0,!!e.getCanMultiSort()&&(null==t.options.isMultiSortEvent?void 0:t.options.isMultiSortEvent(r))))}}}),createTable:e=>({setSorting:t=>null==e.options.onSortingChange?void 0:e.options.onSortingChange(t),resetSorting:t=>{var n,r;e.setSorting(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.sorting)?n:[])},getPreSortedRowModel:()=>e.getGroupedRowModel(),getSortedRowModel:()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel)?e.getPreSortedRowModel():e._getSortedRowModel()})},{getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return null!=(t=null==(n=e.getValue())||null==n.toString?void 0:n.toString())?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:o("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>({toggleGrouping:()=>{t.setGrouping(t=>null!=t&&t.includes(e.id)?t.filter(t=>t!==e.id):[...null!=t?t:[],e.id])},getCanGroup:()=>{var n,r,o,i;return null!=(n=null==(r=null!=(o=null==(i=e.columnDef.enableGrouping)||i)?o:t.options.enableGrouping)||r)?n:!!e.accessorFn},getIsGrouped:()=>{var n;return null==(n=t.getState().grouping)?void 0:n.includes(e.id)},getGroupedIndex:()=>{var n;return null==(n=t.getState().grouping)?void 0:n.indexOf(e.id)},getToggleGroupingHandler:()=>{let t=e.getCanGroup();return()=>{t&&e.toggleGrouping()}},getAutoAggregationFn:()=>{let n=t.getCoreRowModel().flatRows[0],r=null==n?void 0:n.getValue(e.id);return"number"==typeof r?j.sum:"[object Date]"===Object.prototype.toString.call(r)?j.extent:void 0},getAggregationFn:()=>{var n,r;if(!e)throw Error();return i(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:"auto"===e.columnDef.aggregationFn?e.getAutoAggregationFn():null!=(n=null==(r=t.options.aggregationFns)?void 0:r[e.columnDef.aggregationFn])?n:j[e.columnDef.aggregationFn]}}),createTable:e=>({setGrouping:t=>null==e.options.onGroupingChange?void 0:e.options.onGroupingChange(t),resetGrouping:t=>{var n,r;e.setGrouping(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.grouping)?n:[])},getPreGroupedRowModel:()=>e.getFilteredRowModel(),getGroupedRowModel:()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel)?e.getPreGroupedRowModel():e._getGroupedRowModel()}),createRow:e=>({getIsGrouped:()=>!!e.groupingColumnId,_groupingValuesCache:{}}),createCell:(e,t,n,r)=>({getIsGrouped:()=>t.getIsGrouped()&&t.id===n.groupingColumnId,getIsPlaceholder:()=>!e.getIsGrouped()&&t.getIsGrouped(),getIsAggregated:()=>{var t;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!(null!=(t=n.subRows)&&t.length)}})},{getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:o("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;return{_autoResetExpanded:()=>{var r,o;if(!t)return void e._queue(()=>{t=!0});if(null!=(r=null!=(o=e.options.autoResetAll)?o:e.options.autoResetExpanded)?r:!e.options.manualExpanding){if(n)return;n=!0,e._queue(()=>{e.resetExpanded(),n=!1})}},setExpanded:t=>null==e.options.onExpandedChange?void 0:e.options.onExpandedChange(t),toggleAllRowsExpanded:t=>{(null!=t?t:!e.getIsAllRowsExpanded())?e.setExpanded(!0):e.setExpanded({})},resetExpanded:t=>{var n,r;e.setExpanded(t?{}:null!=(n=null==(r=e.initialState)?void 0:r.expanded)?n:{})},getCanSomeRowsExpand:()=>e.getRowModel().flatRows.some(e=>e.getCanExpand()),getToggleAllRowsExpandedHandler:()=>t=>{null==t.persist||t.persist(),e.toggleAllRowsExpanded()},getIsSomeRowsExpanded:()=>{let t=e.getState().expanded;return!0===t||Object.values(t).some(Boolean)},getIsAllRowsExpanded:()=>{let t=e.getState().expanded;return"boolean"==typeof t?!0===t:!(!Object.keys(t).length||e.getRowModel().flatRows.some(e=>!e.getIsExpanded()))},getExpandedDepth:()=>{let t=0;return(!0===e.getState().expanded?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(e=>{let n=e.split(".");t=Math.max(t,n.length)}),t},getPreExpandedRowModel:()=>e.getSortedRowModel(),getExpandedRowModel:()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel)?e.getPreExpandedRowModel():e._getExpandedRowModel()}},createRow:(e,t)=>({toggleExpanded:n=>{t.setExpanded(r=>{var o;let i=!0===r||!!(null!=r&&r[e.id]),a={};if(!0===r?Object.keys(t.getRowModel().rowsById).forEach(e=>{a[e]=!0}):a=r,n=null!=(o=n)?o:!i,!i&&n)return{...a,[e.id]:!0};if(i&&!n){let{[e.id]:t,...n}=a;return n}return r})},getIsExpanded:()=>{var n;let r=t.getState().expanded;return!!(null!=(n=null==t.options.getIsRowExpanded?void 0:t.options.getIsRowExpanded(e))?n:!0===r||(null==r?void 0:r[e.id]))},getCanExpand:()=>{var n,r,o;return null!=(n=null==t.options.getRowCanExpand?void 0:t.options.getRowCanExpand(e))?n:(null==(r=t.options.enableExpanding)||r)&&!!(null!=(o=e.subRows)&&o.length)},getToggleExpandedHandler:()=>{let t=e.getCanExpand();return()=>{t&&e.toggleExpanded()}}})},{getInitialState:e=>({...e,pagination:{...E(),...null==e?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:o("pagination",e)}),createTable:e=>{let t=!1,n=!1;return{_autoResetPageIndex:()=>{var r,o;if(!t)return void e._queue(()=>{t=!0});if(null!=(r=null!=(o=e.options.autoResetAll)?o:e.options.autoResetPageIndex)?r:!e.options.manualPagination){if(n)return;n=!0,e._queue(()=>{e.resetPageIndex(),n=!1})}},setPagination:t=>null==e.options.onPaginationChange?void 0:e.options.onPaginationChange(e=>r(t,e)),resetPagination:t=>{var n;e.setPagination(t?E():null!=(n=e.initialState.pagination)?n:E())},setPageIndex:t=>{e.setPagination(n=>{let o=r(t,n.pageIndex);return o=Math.max(0,Math.min(o,void 0===e.options.pageCount||-1===e.options.pageCount?Number.MAX_SAFE_INTEGER:e.options.pageCount-1)),{...n,pageIndex:o}})},resetPageIndex:t=>{var n,r,o;e.setPageIndex(t?0:null!=(n=null==(r=e.initialState)||null==(o=r.pagination)?void 0:o.pageIndex)?n:0)},resetPageSize:t=>{var n,r,o;e.setPageSize(t?10:null!=(n=null==(r=e.initialState)||null==(o=r.pagination)?void 0:o.pageSize)?n:10)},setPageSize:t=>{e.setPagination(e=>{let n=Math.max(1,r(t,e.pageSize)),o=Math.floor(e.pageSize*e.pageIndex/n);return{...e,pageIndex:o,pageSize:n}})},setPageCount:t=>e.setPagination(n=>{var o;let i=r(t,null!=(o=e.options.pageCount)?o:-1);return"number"==typeof i&&(i=Math.max(-1,i)),{...n,pageCount:i}}),getPageOptions:a(()=>[e.getPageCount()],e=>{let t=[];return e&&e>0&&(t=[...Array(e)].fill(null).map((e,t)=>t)),t},{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getCanPreviousPage:()=>e.getState().pagination.pageIndex>0,getCanNextPage:()=>{let{pageIndex:t}=e.getState().pagination,n=e.getPageCount();return -1===n||0!==n&&te.setPageIndex(e=>e-1),nextPage:()=>e.setPageIndex(e=>e+1),getPrePaginationRowModel:()=>e.getExpandedRowModel(),getPaginationRowModel:()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel)?e.getPrePaginationRowModel():e._getPaginationRowModel(),getPageCount:()=>{var t;return null!=(t=e.options.pageCount)?t:Math.ceil(e.getPrePaginationRowModel().rows.length/e.getState().pagination.pageSize)}}}},{getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:o("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>({setRowSelection:t=>null==e.options.onRowSelectionChange?void 0:e.options.onRowSelectionChange(t),resetRowSelection:t=>{var n;return e.setRowSelection(t?{}:null!=(n=e.initialState.rowSelection)?n:{})},toggleAllRowsSelected:t=>{e.setRowSelection(n=>{t=void 0!==t?t:!e.getIsAllRowsSelected();let r={...n},o=e.getPreGroupedRowModel().flatRows;return t?o.forEach(e=>{e.getCanSelect()&&(r[e.id]=!0)}):o.forEach(e=>{delete r[e.id]}),r})},toggleAllPageRowsSelected:t=>e.setRowSelection(n=>{let r=void 0!==t?t:!e.getIsAllPageRowsSelected(),o={...n};return e.getRowModel().rows.forEach(t=>{M(o,t.id,r,e)}),o}),getPreSelectedRowModel:()=>e.getCoreRowModel(),getSelectedRowModel:a(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?C(e,n):{rows:[],flatRows:[],rowsById:{}},{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getFilteredSelectedRowModel:a(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?C(e,n):{rows:[],flatRows:[],rowsById:{}},{key:"getFilteredSelectedRowModel",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getGroupedSelectedRowModel:a(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?C(e,n):{rows:[],flatRows:[],rowsById:{}},{key:"getGroupedSelectedRowModel",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getIsAllRowsSelected:()=>{let t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState(),r=!!(t.length&&Object.keys(n).length);return r&&t.some(e=>e.getCanSelect()&&!n[e.id])&&(r=!1),r},getIsAllPageRowsSelected:()=>{let t=e.getPaginationRowModel().flatRows,{rowSelection:n}=e.getState(),r=!!t.length;return r&&t.some(e=>e.getCanSelect()&&!n[e.id])&&(r=!1),r},getIsSomeRowsSelected:()=>{var t;let n=Object.keys(null!=(t=e.getState().rowSelection)?t:{}).length;return n>0&&n{let t=e.getPaginationRowModel().flatRows;return!e.getIsAllPageRowsSelected()&&t.some(e=>e.getIsSelected()||e.getIsSomeSelected())},getToggleAllRowsSelectedHandler:()=>t=>{e.toggleAllRowsSelected(t.target.checked)},getToggleAllPageRowsSelectedHandler:()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}}),createRow:(e,t)=>({toggleSelected:n=>{let r=e.getIsSelected();t.setRowSelection(o=>{if(n=void 0!==n?n:!r,r===n)return o;let i={...o};return M(i,e.id,n,t),i})},getIsSelected:()=>{let{rowSelection:n}=t.getState();return k(e,n)},getIsSomeSelected:()=>{let{rowSelection:n}=t.getState();return"some"===_(e,n)},getIsAllSubRowsSelected:()=>{let{rowSelection:n}=t.getState();return"all"===_(e,n)},getCanSelect:()=>{var n;return"function"==typeof t.options.enableRowSelection?t.options.enableRowSelection(e):null==(n=t.options.enableRowSelection)||n},getCanSelectSubRows:()=>{var n;return"function"==typeof t.options.enableSubRowSelection?t.options.enableSubRowSelection(e):null==(n=t.options.enableSubRowSelection)||n},getCanMultiSelect:()=>{var n;return"function"==typeof t.options.enableMultiRowSelection?t.options.enableMultiRowSelection(e):null==(n=t.options.enableMultiRowSelection)||n},getToggleSelectedHandler:()=>{let t=e.getCanSelect();return n=>{var r;t&&e.toggleSelected(null==(r=n.target)?void 0:r.checked)}}})},{getDefaultColumnDef:()=>s,getInitialState:e=>({columnSizing:{},columnSizingInfo:c(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",onColumnSizingChange:o("columnSizing",e),onColumnSizingInfoChange:o("columnSizingInfo",e)}),createColumn:(e,t)=>({getSize:()=>{var n,r,o;let i=t.getState().columnSizing[e.id];return Math.min(Math.max(null!=(n=e.columnDef.minSize)?n:s.minSize,null!=(r=null!=i?i:e.columnDef.size)?r:s.size),null!=(o=e.columnDef.maxSize)?o:s.maxSize)},getStart:n=>{let r=n?"left"===n?t.getLeftVisibleLeafColumns():t.getRightVisibleLeafColumns():t.getVisibleLeafColumns(),o=r.findIndex(t=>t.id===e.id);if(o>0){let e=r[o-1];return e.getStart(n)+e.getSize()}return 0},resetSize:()=>{t.setColumnSizing(t=>{let{[e.id]:n,...r}=t;return r})},getCanResize:()=>{var n,r;return(null==(n=e.columnDef.enableResizing)||n)&&(null==(r=t.options.enableColumnResizing)||r)},getIsResizing:()=>t.getState().columnSizingInfo.isResizingColumn===e.id}),createHeader:(e,t)=>({getSize:()=>{let t=0,n=e=>{if(e.subHeaders.length)e.subHeaders.forEach(n);else{var r;t+=null!=(r=e.column.getSize())?r:0}};return n(e),t},getStart:()=>{if(e.index>0){let t=e.headerGroup.headers[e.index-1];return t.getStart()+t.getSize()}return 0},getResizeHandler:()=>{let n=t.getColumn(e.column.id),r=null==n?void 0:n.getCanResize();return o=>{if(!n||!r||(null==o.persist||o.persist(),p(o)&&o.touches&&o.touches.length>1))return;let i=e.getSize(),a=e?e.getLeafHeaders().map(e=>[e.column.id,e.column.getSize()]):[[n.id,n.getSize()]],l=p(o)?Math.round(o.touches[0].clientX):o.clientX,u={},s=(e,n)=>{"number"==typeof n&&(t.setColumnSizingInfo(e=>{var t,r;let o=n-(null!=(t=null==e?void 0:e.startOffset)?t:0),i=Math.max(o/(null!=(r=null==e?void 0:e.startSize)?r:0),-.999999);return e.columnSizingStart.forEach(e=>{let[t,n]=e;u[t]=Math.round(100*Math.max(n+n*i,0))/100}),{...e,deltaOffset:o,deltaPercentage:i}}),("onChange"===t.options.columnResizeMode||"end"===e)&&t.setColumnSizing(e=>({...e,...u})))},c=e=>{s("end",e),t.setColumnSizingInfo(e=>({...e,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},d={moveHandler:e=>s("move",e.clientX),upHandler:e=>{document.removeEventListener("mousemove",d.moveHandler),document.removeEventListener("mouseup",d.upHandler),c(e.clientX)}},h={moveHandler:e=>(e.cancelable&&(e.preventDefault(),e.stopPropagation()),s("move",e.touches[0].clientX),!1),upHandler:e=>{var t;document.removeEventListener("touchmove",h.moveHandler),document.removeEventListener("touchend",h.upHandler),e.cancelable&&(e.preventDefault(),e.stopPropagation()),c(null==(t=e.touches[0])?void 0:t.clientX)}},y=!!function(){if("boolean"==typeof f)return f;let e=!1;try{let t=()=>{};window.addEventListener("test",t,{get passive(){return e=!0,!1}}),window.removeEventListener("test",t)}catch(t){e=!1}return f=e}()&&{passive:!1};p(o)?(document.addEventListener("touchmove",h.moveHandler,y),document.addEventListener("touchend",h.upHandler,y)):(document.addEventListener("mousemove",d.moveHandler,y),document.addEventListener("mouseup",d.upHandler,y)),t.setColumnSizingInfo(e=>({...e,startOffset:l,startSize:i,deltaOffset:0,deltaPercentage:0,columnSizingStart:a,isResizingColumn:n.id}))}}}),createTable:e=>({setColumnSizing:t=>null==e.options.onColumnSizingChange?void 0:e.options.onColumnSizingChange(t),setColumnSizingInfo:t=>null==e.options.onColumnSizingInfoChange?void 0:e.options.onColumnSizingInfoChange(t),resetColumnSizing:t=>{var n;e.setColumnSizing(t?{}:null!=(n=e.initialState.columnSizing)?n:{})},resetHeaderSizeInfo:t=>{var n;e.setColumnSizingInfo(t?c():null!=(n=e.initialState.columnSizingInfo)?n:c())},getTotalSize:()=>{var t,n;return null!=(t=null==(n=e.getHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},getLeftTotalSize:()=>{var t,n;return null!=(t=null==(n=e.getLeftHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},getCenterTotalSize:()=>{var t,n;return null!=(t=null==(n=e.getCenterHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},getRightTotalSize:()=>{var t,n;return null!=(t=null==(n=e.getRightHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0}})}];function B(e){var t;(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...");let n={_features:F},o=n._features.reduce((e,t)=>Object.assign(e,null==t.getDefaultOptions?void 0:t.getDefaultOptions(n)),{}),i={...null!=(t=e.initialState)?t:{}};n._features.forEach(e=>{var t;i=null!=(t=null==e.getInitialState?void 0:e.getInitialState(i))?t:i});let l=[],u=!1,s={_features:F,options:{...o,...e},initialState:i,_queue:e=>{l.push(e),u||(u=!0,Promise.resolve().then(()=>{for(;l.length;)l.shift()();u=!1}).catch(e=>setTimeout(()=>{throw e})))},reset:()=>{n.setState(n.initialState)},setOptions:e=>{var t;t=r(e,n.options),n.options=n.options.mergeOptions?n.options.mergeOptions(o,t):{...o,...t}},getState:()=>n.options.state,setState:e=>{null==n.options.onStateChange||n.options.onStateChange(e)},_getRowId:(e,t,r)=>{var o;return null!=(o=null==n.options.getRowId?void 0:n.options.getRowId(e,t,r))?o:`${r?[r.id,t].join("."):t}`},getCoreRowModel:()=>(n._getCoreRowModel||(n._getCoreRowModel=n.options.getCoreRowModel(n)),n._getCoreRowModel()),getRowModel:()=>n.getPaginationRowModel(),getRow:e=>{let t=n.getRowModel().rowsById[e];if(!t)throw Error();return t},_getDefaultColumnDef:a(()=>[n.options.defaultColumn],e=>{var t;return e=null!=(t=e)?t:{},{header:e=>{let t=e.header.column.columnDef;return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>{var t,n;return null!=(t=null==(n=e.renderValue())||null==n.toString?void 0:n.toString())?t:null},...n._features.reduce((e,t)=>Object.assign(e,null==t.getDefaultColumnDef?void 0:t.getDefaultColumnDef()),{}),...e}},{debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugColumns},key:!1}),_getColumnDefs:()=>n.options.columns,getAllColumns:a(()=>[n._getColumnDefs()],e=>{let t=function(e,r,o){return void 0===o&&(o=0),e.map(e=>{let i=function(e,t,n,r){var o,i;let l,u={...e._getDefaultColumnDef(),...t},s=u.accessorKey,c=null!=(o=null!=(i=u.id)?i:s?s.replace(".","_"):void 0)?o:"string"==typeof u.header?u.header:void 0;if(u.accessorFn?l=u.accessorFn:s&&(l=s.includes(".")?e=>{let t=e;for(let e of s.split(".")){var n;t=null==(n=t)?void 0:n[e]}return t}:e=>e[u.accessorKey]),!c)throw Error();let f={id:`${String(c)}`,accessorFn:l,parent:r,depth:n,columnDef:u,columns:[],getFlatColumns:a(()=>[!0],()=>{var e;return[f,...null==(e=f.columns)?void 0:e.flatMap(e=>e.getFlatColumns())]},{key:"column.getFlatColumns",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),getLeafColumns:a(()=>[e._getOrderColumnsFn()],e=>{var t;return null!=(t=f.columns)&&t.length?e(f.columns.flatMap(e=>e.getLeafColumns())):[f]},{key:"column.getLeafColumns",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}})};return f=e._features.reduce((t,n)=>Object.assign(t,null==n.createColumn?void 0:n.createColumn(f,e)),f)}(n,e,o,r);return i.columns=e.columns?t(e.columns,i,o+1):[],i})};return t(e)},{key:!1,debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugColumns}}),getAllFlatColumns:a(()=>[n.getAllColumns()],e=>e.flatMap(e=>e.getFlatColumns()),{key:!1,debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugColumns}}),_getAllFlatColumnsById:a(()=>[n.getAllFlatColumns()],e=>e.reduce((e,t)=>(e[t.id]=t,e),{}),{key:!1,debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugColumns}}),getAllLeafColumns:a(()=>[n.getAllColumns(),n._getOrderColumnsFn()],(e,t)=>t(e.flatMap(e=>e.getLeafColumns())),{key:!1,debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugColumns}}),getColumn:e=>n._getAllFlatColumnsById()[e]};return Object.assign(n,s),n._features.forEach(e=>Object.assign(n,null==e.createTable?void 0:e.createTable(n))),n}let L=(e,t,n,r,o,i)=>{let l={id:t,index:r,original:n,depth:o,_valuesCache:{},_uniqueValuesCache:{},getValue:t=>{if(l._valuesCache.hasOwnProperty(t))return l._valuesCache[t];let n=e.getColumn(t);if(null!=n&&n.accessorFn)return l._valuesCache[t]=n.accessorFn(l.original,r),l._valuesCache[t]},getUniqueValues:t=>{if(l._uniqueValuesCache.hasOwnProperty(t))return l._uniqueValuesCache[t];let n=e.getColumn(t);if(null!=n&&n.accessorFn)return n.columnDef.getUniqueValues?l._uniqueValuesCache[t]=n.columnDef.getUniqueValues(l.original,r):l._uniqueValuesCache[t]=[l.getValue(t)],l._uniqueValuesCache[t]},renderValue:t=>{var n;return null!=(n=l.getValue(t))?n:e.options.renderFallbackValue},subRows:null!=i?i:[],getLeafRows:()=>{var e,t;let n,r;return e=l.subRows,t=e=>e.subRows,n=[],(r=e=>{e.forEach(e=>{n.push(e);let o=t(e);null!=o&&o.length&&r(o)})})(e),n},getAllCells:a(()=>[e.getAllLeafColumns()],t=>t.map(t=>{var n;let r;return n=t.id,r={id:`${l.id}_${t.id}`,row:l,column:t,getValue:()=>l.getValue(n),renderValue:()=>{var t;return null!=(t=r.getValue())?t:e.options.renderFallbackValue},getContext:a(()=>[e,t,l,r],(e,t,n,r)=>({table:e,column:t,row:n,cell:r,getValue:r.getValue,renderValue:r.renderValue}),{key:!1,debug:()=>e.options.debugAll})},e._features.forEach(n=>{Object.assign(r,null==n.createCell?void 0:n.createCell(r,t,l,e))},{}),r}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugRows}}),_getAllCellsByColumnId:a(()=>[l.getAllCells()],e=>e.reduce((e,t)=>(e[t.column.id]=t,e),{}),{key:"row.getAllCellsByColumnId",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugRows}})};for(let t=0;ta(()=>[e.options.data],t=>{let n={rows:[],flatRows:[],rowsById:{}},r=function(t,o,i){void 0===o&&(o=0);let a=[];for(let u=0;u{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}})}},40387:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var r=(0,n(41495).A)("outline","download","IconDownload",[["path",{d:"M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2",key:"svg-0"}],["path",{d:"M7 11l5 5l5 -5",key:"svg-1"}],["path",{d:"M12 4l0 12",key:"svg-2"}]])},40684:(e,t,n)=>{"use strict";n.d(t,{u:()=>h});var r=n(50212),o=n(55729),i=n(47687),a=n.n(i),l=n(53645),u=n(7571),s=n(93780);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function p(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);ntypeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],u=!0,s=!1;try{i=(n=n.call(e)).next,!1;for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),2!==l.length);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(n,2)||function(e,t){if(e){if("string"==typeof e)return d(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d(e,2)}}(n,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),T=_[0],I=_[1],R=(0,o.useCallback)(function(e,t){I(function(n){var r=Math.round(e),o=Math.round(t);return n.containerWidth===r&&n.containerHeight===o?n:{containerWidth:r,containerHeight:o}})},[]);(0,o.useEffect)(function(){var e=function(e){var t,n=e[0].contentRect,r=n.width,o=n.height;R(r,o),null==(t=k.current)||t.call(k,r,o)};A>0&&(e=a()(e,A,{trailing:!0,leading:!1}));var t=new ResizeObserver(e),n=C.current.getBoundingClientRect();return R(n.width,n.height),t.observe(C.current),function(){t.disconnect()}},[R,A]);var D=(0,o.useMemo)(function(){var e=T.containerWidth,t=T.containerHeight;if(e<0||t<0)return null;(0,u.R)((0,l._3)(y)||(0,l._3)(v),"The width(%s) and height(%s) are both fixed numbers,\n maybe you don't need to use a ResponsiveContainer.",y,v),(0,u.R)(!i||i>0,"The aspect(%s) must be greater than zero.",i);var n=(0,l._3)(y)?e:y,r=(0,l._3)(v)?t:v;i&&i>0&&(n?r=n/i:r&&(n=r*i),w&&r>w&&(r=w)),(0,u.R)(n>0||r>0,"The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.",n,r,y,v,b,x,i);var a=!Array.isArray(O)&&(0,s.Mn)(O.type).endsWith("Chart");return o.Children.map(O,function(e){return o.isValidElement(e)?(0,o.cloneElement)(e,p({width:n,height:r},a?{style:p({height:"100%",width:"100%",maxHeight:r,maxWidth:n},e.props.style)}:{})):e})},[i,O,v,w,x,b,T,y]);return o.createElement("div",{id:j?"".concat(j):void 0,className:(0,r.A)("recharts-responsive-container",E),style:p(p({},void 0===M?{}:M),{},{width:y,height:v,minWidth:b,minHeight:x,maxHeight:w}),ref:C},D)})},41499:(e,t,n)=>{"use strict";n.d(t,{A:()=>function e(){var t=new r,n=[],o=[],i=l;function u(e){let r=t.get(e);if(void 0===r){if(i!==l)return i;t.set(e,r=n.push(e)-1)}return o[r%o.length]}return u.domain=function(e){if(!arguments.length)return n.slice();for(let o of(n=[],t=new r,e))t.has(o)||t.set(o,n.push(o)-1);return u},u.range=function(e){return arguments.length?(o=Array.from(e),u):o.slice()},u.unknown=function(e){return arguments.length?(i=e,u):i},u.copy=function(){return e(n,o).unknown(i)},a.C.apply(u,arguments),u},h:()=>l});class r extends Map{constructor(e,t=i){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,n]of e)this.set(t,n)}get(e){return super.get(o(this,e))}has(e){return super.has(o(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},n){let r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}(this,e))}}function o({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):n}function i(e){return null!==e&&"object"==typeof e?e.valueOf():e}var a=n(58905);let l=Symbol("implicit")},42130:(e,t,n)=>{"use strict";n.d(t,{A:()=>function e(t,n){var u,s,c=typeof n;return null==n||"boolean"===c?(0,l.A)(n):("number"===c?i.A:"string"===c?(s=(0,r.Ay)(n))?(n=s,o.Ay):a.A:n instanceof r.Ay?o.Ay:n instanceof Date?function(e,t){var n=new Date;return e*=1,t*=1,function(r){return n.setTime(e*(1-r)+t*r),n}}:!ArrayBuffer.isView(u=n)||u instanceof DataView?Array.isArray(n)?function(t,n){var r,o=n?n.length:0,i=t?Math.min(o,t.length):0,a=Array(i),l=Array(o);for(r=0;r{e.exports=n(36647)(n(76560))},45005:(e,t,n)=>{"use strict";n.d(t,{n:()=>T});var r=n(6029),o=n(60466),i=n(3001),a=n(26615);n(55729);var l=n(6406),u=n(76),s=n(5618),c=n(80616),f=n(37666),p=n(60481),d=n(43016),h=n(36254);let[y,g]=(0,h.F)("Accordion component was not found in the tree");var v=n(89876),m=n(66062),b=n(8737);let[x,w]=(0,h.F)("Accordion.Item component was not found in the tree");var O={root:"m_9bdbb667",panel:"m_df78851f",content:"m_4ba554d4",itemTitle:"m_8fa820a0",control:"m_4ba585b8","control--default":"m_6939a5e9","control--contained":"m_4271d21b",label:"m_df3ffa0f",chevron:"m_3f35ae96",icon:"m_9bd771fe",item:"m_9bd7b098","item--default":"m_fe19b709","item--contained":"m_1f921b3b","item--filled":"m_2cdf939a","item--separated":"m_9f59b069"};let S={},A=(0,d.P9)((e,t)=>{let{classNames:n,className:o,style:i,styles:a,vars:l,chevron:u,icon:s,onClick:f,onKeyDown:d,children:h,disabled:y,mod:v,...x}=(0,c.Y)("AccordionControl",S,e),{value:O}=w(),A=g(),j=A.isItemActive(O),E="number"==typeof A.order,P=`h${A.order}`,M=(0,r.jsxs)(b.N,{...x,...A.getStyles("control",{className:o,classNames:n,style:i,styles:a,variant:A.variant}),unstyled:A.unstyled,mod:["accordion-control",{active:j,"chevron-position":A.chevronPosition,disabled:y},v],ref:t,onClick:e=>{f?.(e),A.onChange(O)},type:"button",disabled:y,"aria-expanded":j,"aria-controls":A.getRegionId(O),id:A.getControlId(O),onKeyDown:(0,m.Y)({siblingSelector:"[data-accordion-control]",parentSelector:"[data-accordion]",activateOnFocus:!1,loop:A.loop,orientation:"vertical",onKeyDown:d}),children:[(0,r.jsx)(p.a,{component:"span",mod:{rotate:!A.disableChevronRotation&&j,position:A.chevronPosition},...A.getStyles("chevron",{classNames:n,styles:a}),children:u||A.chevron}),(0,r.jsx)("span",{...A.getStyles("label",{classNames:n,styles:a}),children:h}),s&&(0,r.jsx)(p.a,{component:"span",mod:{"chevron-position":A.chevronPosition},...A.getStyles("icon",{classNames:n,styles:a}),children:s})]});return E?(0,r.jsx)(P,{...A.getStyles("itemTitle",{classNames:n,styles:a}),children:M}):M});A.displayName="@mantine/core/AccordionControl",A.classes=O;let j={},E=(0,d.P9)((e,t)=>{let{classNames:n,className:o,style:i,styles:a,vars:l,value:u,mod:s,...f}=(0,c.Y)("AccordionItem",j,e),d=g();return(0,r.jsx)(x,{value:{value:u},children:(0,r.jsx)(p.a,{ref:t,mod:[{active:d.isItemActive(u)},s],...d.getStyles("item",{className:o,classNames:n,styles:a,style:i,variant:d.variant}),...f})})});E.displayName="@mantine/core/AccordionItem",E.classes=O;var P=n(22599);let M={},C=(0,d.P9)((e,t)=>{let{classNames:n,className:o,style:i,styles:a,vars:l,children:u,...s}=(0,c.Y)("AccordionPanel",M,e),{value:f}=w(),p=g();return(0,r.jsx)(P.S,{ref:t,...p.getStyles("panel",{className:o,classNames:n,style:i,styles:a}),...s,in:p.isItemActive(f),transitionDuration:p.transitionDuration??200,role:"region",id:p.getRegionId(f),"aria-labelledby":p.getControlId(f),children:(0,r.jsx)("div",{...p.getStyles("content",{classNames:n,styles:a}),children:u})})});C.displayName="@mantine/core/AccordionPanel",C.classes=O;let k={multiple:!1,disableChevronRotation:!1,chevronPosition:"right",variant:"default",chevron:(0,r.jsx)(v.U,{})},_=(0,s.V)((e,{transitionDuration:t,chevronSize:n,radius:r})=>({root:{"--accordion-transition-duration":void 0===t?void 0:`${t}ms`,"--accordion-chevron-size":void 0===n?void 0:(0,a.D)(n),"--accordion-radius":void 0===r?void 0:(0,u.nJ)(r)}}));function T(e){let t=(0,c.Y)("Accordion",k,e),{classNames:n,className:a,style:u,styles:s,unstyled:d,vars:h,children:g,multiple:v,value:m,defaultValue:b,onChange:x,id:w,loop:S,transitionDuration:A,disableChevronRotation:j,chevronPosition:E,chevronSize:P,order:M,chevron:C,variant:T,radius:I,...R}=t,D=(0,o.B)(w),[N,F]=(0,i.Z)({value:m,defaultValue:b,finalValue:v?[]:null,onChange:x}),B=(0,f.I)({name:"Accordion",classes:O,props:t,className:a,style:u,classNames:n,styles:s,unstyled:d,vars:h,varsResolver:_});return(0,r.jsx)(y,{value:{isItemActive:e=>Array.isArray(N)?N.includes(e):e===N,onChange:e=>{F(Array.isArray(N)?N.includes(e)?N.filter(t=>t!==e):[...N,e]:e===N?null:e)},getControlId:(0,l.r)(`${D}-control`,"Accordion.Item component was rendered with invalid value or without value"),getRegionId:(0,l.r)(`${D}-panel`,"Accordion.Item component was rendered with invalid value or without value"),transitionDuration:A,disableChevronRotation:j,chevronPosition:E,order:M,chevron:C,loop:S,getStyles:B,variant:T,unstyled:d},children:(0,r.jsx)(p.a,{...B("root"),id:D,...R,variant:T,"data-accordion":!0,children:g})})}T.extend=e=>e,T.withProps=(0,d.LE)(T),T.classes=O,T.displayName="@mantine/core/Accordion",T.Item=E,T.Panel=C,T.Control=A,T.Chevron=v.U},45556:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var r=(0,n(41495).A)("outline","chart-bar","IconChartBar",[["path",{d:"M3 13a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v6a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z",key:"svg-0"}],["path",{d:"M15 9a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v10a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z",key:"svg-1"}],["path",{d:"M9 5a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v14a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z",key:"svg-2"}],["path",{d:"M4 20h14",key:"svg-3"}]])},45852:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}},45895:(e,t,n)=>{var r=n(5549),o=n(24964),i=n(27288);e.exports=function(e,t){return i(o(e,t,r),e+"")}},46181:(e,t,n)=>{"use strict";n.d(t,{a:()=>O});var r=n(6029);n(55729);var o=n(76),i=n(5618),a=n(80616),l=n(37666),u=n(60481),s=n(43016),c=n(20158),f=n(48930);let[p,d]=(0,f.e)(),[h,y]=(0,f.e)();var g={root:"m_7cda1cd6","root--default":"m_44da308b","root--contrast":"m_e3a01f8",label:"m_1e0e6180",remove:"m_ae386778",group:"m_1dcfd90b"};let v={},m=(0,i.V)((e,{gap:t},{size:n})=>({group:{"--pg-gap":void 0!==t?(0,o.YC)(t):(0,o.YC)(n,"pg-gap")}})),b=(0,s.P9)((e,t)=>{let n=(0,a.Y)("PillGroup",v,e),{classNames:o,className:i,style:s,styles:c,unstyled:f,vars:p,size:y,disabled:b,...x}=n,w=d(),O=w?.size||y||void 0,S=(0,l.I)({name:"PillGroup",classes:g,props:n,className:i,style:s,classNames:o,styles:c,unstyled:f,vars:p,varsResolver:m,stylesCtx:{size:O},rootSelector:"group"});return(0,r.jsx)(h,{value:{size:O,disabled:b},children:(0,r.jsx)(u.a,{ref:t,size:O,...S("group"),...x})})});b.classes=g,b.displayName="@mantine/core/PillGroup";let x={variant:"default"},w=(0,i.V)((e,{radius:t},{size:n})=>({root:{"--pill-fz":(0,o.YC)(n,"pill-fz"),"--pill-height":(0,o.YC)(n,"pill-height"),"--pill-radius":void 0===t?void 0:(0,o.nJ)(t)}})),O=(0,s.P9)((e,t)=>{let n=(0,a.Y)("Pill",x,e),{classNames:o,className:i,style:s,styles:f,unstyled:p,vars:h,variant:v,children:m,withRemoveButton:b,onRemove:O,removeButtonProps:S,radius:A,size:j,disabled:E,mod:P,...M}=n,C=y(),k=d(),_=j||C?.size||void 0,T=k?.variant==="filled"?"contrast":v||"default",I=(0,l.I)({name:"Pill",classes:g,props:n,className:i,style:s,classNames:o,styles:f,unstyled:p,vars:h,varsResolver:w,stylesCtx:{size:_}});return(0,r.jsxs)(u.a,{component:"span",ref:t,variant:T,size:_,...I("root",{variant:T}),mod:[{"with-remove":b&&!E,disabled:E||C?.disabled},P],...M,children:[(0,r.jsx)("span",{...I("label"),children:m}),b&&(0,r.jsx)(c.J,{variant:"transparent",radius:A,tabIndex:-1,"aria-hidden":!0,unstyled:p,...S,...I("remove",{className:S?.className,style:S?.style}),onMouseDown:e=>{e.preventDefault(),e.stopPropagation(),S?.onMouseDown?.(e)},onClick:e=>{e.stopPropagation(),O?.(),S?.onClick?.(e)}})]})});O.classes=g,O.displayName="@mantine/core/Pill",O.Group=b},46271:(e,t,n)=>{"use strict";n.d(t,{u:()=>_});var r=n(55729),o=n(98499),i=n.n(o),a=n(60449),l=n.n(a),u=n(50212),s=n(5688),c=n(3780),f=n(25599),p=n(35555),d=n(53645),h=n(27281),y=n(93780),g=n(32347),v=["viewBox"],m=["viewBox"],b=["ticks"];function x(e){return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function w(){return(w=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function j(e,t){for(var n=0;n0?this.props:h)),o<=0||a<=0||!y||!y.length)?null:r.createElement(c.W,{className:(0,u.A)("recharts-cartesian-axis",s),ref:function(t){e.layerReference=t}},n&&this.renderAxisLine(),this.renderTicks(y,this.state.fontSize,this.state.letterSpacing),p.J.renderCallByParent(this.props))}}],n=[{key:"renderTickItem",value:function(e,t,n){return r.isValidElement(e)?r.cloneElement(e,t):i()(e)?e(t):r.createElement(f.E,w({},t,{className:"recharts-cartesian-axis-tick-value"}),n)}}],t&&j(o.prototype,t),n&&j(o,n),Object.defineProperty(o,"prototype",{writable:!1}),o}(r.Component);C(_,"displayName","CartesianAxis"),C(_,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"})},46554:(e,t,n)=>{"use strict";function r(e){return function(){return e}}n.d(t,{A:()=>r})},47122:(e,t,n)=>{"use strict";n.d(t,{h:()=>g});var r=n(55729),o=n(50212),i=n(2549),a=n(46271),l=n(1509);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(s=function(){return!!e})()}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function p(e,t,n){return(t=d(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e){var t=function(e,t){if("object"!=u(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=u(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==u(t)?t:t+""}function h(){return(h=Object.assign?Object.assign.bind():function(e){for(var t=1;t{"use strict";n.d(t,{R:()=>r});var r=function(e,t){var n=e.alwaysShow,r=e.ifOverflow;return n&&(r="extendDomain"),r===t}},47687:(e,t,n)=>{var r=n(12364),o=n(23356);e.exports=function(e,t,n){var i=!0,a=!0;if("function"!=typeof e)throw TypeError("Expected a function");return o(n)&&(i="leading"in n?!!n.leading:i,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:i,maxWait:t,trailing:a})}},47803:(e,t,n)=>{"use strict";n.d(t,{i:()=>u});let r=Math.PI,o=2*r,i=o-1e-6;function a(e){this._+=e[0];for(let t=1,n=e.length;t=0))throw Error(`invalid digits: ${e}`);if(t>15)return a;let n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t1e-6)if(Math.abs(f*u-s*c)>1e-6&&i){let d=n-a,h=o-l,y=u*u+s*s,g=Math.sqrt(y),v=Math.sqrt(p),m=i*Math.tan((r-Math.acos((y+p-(d*d+h*h))/(2*g*v)))/2),b=m/v,x=m/g;Math.abs(b-1)>1e-6&&this._append`L${e+b*c},${t+b*f}`,this._append`A${i},${i},0,0,${+(f*d>c*h)},${this._x1=e+x*u},${this._y1=t+x*s}`}else this._append`L${this._x1=e},${this._y1=t}`}arc(e,t,n,a,l,u){if(e*=1,t*=1,n*=1,u=!!u,n<0)throw Error(`negative radius: ${n}`);let s=n*Math.cos(a),c=n*Math.sin(a),f=e+s,p=t+c,d=1^u,h=u?a-l:l-a;null===this._x1?this._append`M${f},${p}`:(Math.abs(this._x1-f)>1e-6||Math.abs(this._y1-p)>1e-6)&&this._append`L${f},${p}`,n&&(h<0&&(h=h%o+o),h>i?this._append`A${n},${n},0,1,${d},${e-s},${t-c}A${n},${n},0,1,${d},${this._x1=f},${this._y1=p}`:h>1e-6&&this._append`A${n},${n},0,${+(h>=r)},${d},${this._x1=e+n*Math.cos(l)},${this._y1=t+n*Math.sin(l)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n*=1}v${+r}h${-n}Z`}toString(){return this._}}function u(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(null==n)t=null;else{let e=Math.floor(n);if(!(e>=0))throw RangeError(`invalid digits: ${n}`);t=e}return e},()=>new l(t)}l.prototype},48546:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}},48877:(e,t,n)=>{var r=n(66581),o=n(16799),i=n(13920),a=n(23356);e.exports=function(e,t,n){if(!a(n))return!1;var l=typeof t;return("number"==l?!!(o(n)&&i(t,n.length)):"string"==l&&t in n)&&r(n[t],e)}},49109:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var r=(0,n(41495).A)("filled","caret-up-filled","IconCaretUpFilled",[["path",{d:"M11.293 7.293a1 1 0 0 1 1.32 -.083l.094 .083l6 6l.083 .094l.054 .077l.054 .096l.017 .036l.027 .067l.032 .108l.01 .053l.01 .06l.004 .057l.002 .059l-.002 .059l-.005 .058l-.009 .06l-.01 .052l-.032 .108l-.027 .067l-.07 .132l-.065 .09l-.073 .081l-.094 .083l-.077 .054l-.096 .054l-.036 .017l-.067 .027l-.108 .032l-.053 .01l-.06 .01l-.057 .004l-.059 .002h-12c-.852 0 -1.297 -.986 -.783 -1.623l.076 -.084l6 -6z",key:"svg-0"}]])},49355:e=>{e.exports=function(e){return e.split("")}},49726:(e,t,n)=>{"use strict";n.d(t,{A:()=>i,z:()=>a});var r=n(58905),o=n(41499);function i(){var e,t,n=(0,o.A)().unknown(void 0),a=n.domain,l=n.range,u=0,s=1,c=!1,f=0,p=0,d=.5;function h(){var n=a().length,r=s{var r=n(34024);e.exports=n(10656)(r)},51068:(e,t,n)=>{var r=n(97554);e.exports=function(e){return r(e)&&e!=+e}},52797:(e,t,n)=>{"use strict";n.d(t,{yp:()=>T,GG:()=>L,NE:()=>I,nZ:()=>R,xQ:()=>D});var r=n(55729),o=n(98499),i=n.n(o),a=n(64022),l=n.n(a),u=n(59513),s=n.n(u),c=n(83817),f=n.n(c),p=n(2390),d=n(50212),h=n(92224),y=n(93780);function g(e){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function v(){return(v=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);ntypeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],u=!0,s=!1;try{i=(n=n.call(e)).next,!1;for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),2!==l.length);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(t,2)||function(e,t){if(e){if("string"==typeof e)return m(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return m(e,2)}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),a=i[0],l=i[1];(0,r.useEffect)(function(){if(o.current&&o.current.getTotalLength)try{var e=o.current.getTotalLength();e&&l(e)}catch(e){}},[]);var u=n.x,s=n.y,c=n.upperWidth,f=n.lowerWidth,p=n.height,g=n.className,b=n.animationEasing,S=n.animationDuration,A=n.animationBegin,j=n.isUpdateAnimationActive;if(u!==+u||s!==+s||c!==+c||f!==+f||p!==+p||0===c&&0===f||0===p)return null;var E=(0,d.A)("recharts-trapezoid",g);return j?r.createElement(h.Ay,{canBegin:a>0,from:{upperWidth:0,lowerWidth:0,height:p,x:u,y:s},to:{upperWidth:c,lowerWidth:f,height:p,x:u,y:s},duration:S,animationEasing:b,isActive:j},function(e){var t=e.upperWidth,i=e.lowerWidth,l=e.height,u=e.x,s=e.y;return r.createElement(h.Ay,{canBegin:a>0,from:"0px ".concat(-1===a?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:A,duration:S,easing:b},r.createElement("path",v({},(0,y.J9)(n,!0),{className:E,d:w(u,s,t,i,l),ref:o})))}):r.createElement("g",null,r.createElement("path",v({},(0,y.J9)(n,!0),{className:E,d:w(u,s,c,f,p)})))},A=n(11107),j=n(3780),E=n(54460),P=["option","shapeType","propTransformer","activeClassName","isActive"];function M(e){return(M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function k(e){for(var t=1;t=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,P);if((0,r.isValidElement)(n))t=(0,r.cloneElement)(n,k(k({},f),(0,r.isValidElement)(n)?n.props:n));else if(i()(n))t=n(f);else if(l()(n)&&!s()(n)){var p=(void 0===a?function(e,t){return k(k({},t),e)}:a)(n,f);t=r.createElement(_,{shapeType:o,elementProps:p})}else t=r.createElement(_,{shapeType:o,elementProps:f});return c?r.createElement(j.W,{className:void 0===u?"recharts-active-shape":u},t):t}function I(e,t){return null!=t&&"trapezoids"in e.props}function R(e,t){return null!=t&&"sectors"in e.props}function D(e,t){return null!=t&&"points"in e.props}function N(e,t){var n,r,o=e.x===(null==t||null==(n=t.labelViewBox)?void 0:n.x)||e.x===t.x,i=e.y===(null==t||null==(r=t.labelViewBox)?void 0:r.y)||e.y===t.y;return o&&i}function F(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function B(e,t){var n=e.x===t.x,r=e.y===t.y,o=e.z===t.z;return n&&r&&o}function L(e){var t,n,r,o=e.activeTooltipItem,i=e.graphicalItem,a=e.itemData,l=(I(i,o)?t="trapezoids":R(i,o)?t="sectors":D(i,o)&&(t="points"),t),u=I(i,o)?null==(n=o.tooltipPayload)||null==(n=n[0])||null==(n=n.payload)?void 0:n.payload:R(i,o)?null==(r=o.tooltipPayload)||null==(r=r[0])||null==(r=r.payload)?void 0:r.payload:D(i,o)?o.payload:{},s=a.filter(function(e,t){var n=f()(u,e),r=i.props[l].filter(function(e){var t;return(I(i,o)?t=N:R(i,o)?t=F:D(i,o)&&(t=B),t)(e,o)}),a=i.props[l].indexOf(r[r.length-1]);return n&&t===a});return a.indexOf(s[s.length-1])}},53645:(e,t,n)=>{"use strict";n.d(t,{CG:()=>b,Dj:()=>x,Et:()=>d,F4:()=>v,NF:()=>g,_3:()=>p,eP:()=>w,lX:()=>m,sA:()=>f,vh:()=>h});var r=n(84450),o=n.n(r),i=n(51068),a=n.n(i),l=n(60449),u=n.n(l),s=n(97554),c=n.n(s),f=function(e){return 0===e?0:e>0?1:-1},p=function(e){return o()(e)&&e.indexOf("%")===e.length-1},d=function(e){return c()(e)&&!a()(e)},h=function(e){return d(e)||o()(e)},y=0,g=function(e){var t=++y;return"".concat(e||"").concat(t)},v=function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!d(e)&&!o()(e))return r;if(p(e)){var l=e.indexOf("%");n=t*parseFloat(e.slice(0,l))/100}else n=+e;return a()(n)&&(n=r),i&&n>t&&(n=t),n},m=function(e){if(!e)return null;var t=Object.keys(e);return t&&t.length?e[t[0]]:null},b=function(e){if(!Array.isArray(e))return!1;for(var t=e.length,n={},r=0;r{"use strict";n.d(t,{i:()=>I});var r=n(55729),o=n(6797),i=n.n(o);let a=Math.cos,l=Math.sin,u=Math.sqrt,s=Math.PI,c=2*s,f={draw(e,t){let n=u(t/s);e.moveTo(n,0),e.arc(0,0,n,0,c)}},p=u(1/3),d=2*p,h=l(s/10)/l(7*s/10),y=l(c/10)*h,g=-a(c/10)*h,v=u(3),m=u(3)/2,b=1/u(12),x=(b/2+1)*3;var w=n(46554),O=n(47803);u(3),u(3);var S=n(50212),A=n(93780);function j(e){return(j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var E=["type","size","sizeType"];function P(){return(P=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,E)),{},{type:o,size:l,sizeType:s}),p=c.className,d=c.cx,h=c.cy,y=(0,A.J9)(c,!0);return d===+d&&h===+h&&l===+l?r.createElement("path",P({},y,{className:(0,S.A)("recharts-symbols",p),transform:"translate(".concat(d,", ").concat(h,")"),d:(t=k["symbol".concat(i()(o))]||f,(function(e,t){let n=null,r=(0,O.i)(o);function o(){let o;if(n||(n=o=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),o)return n=null,o+""||null}return e="function"==typeof e?e:(0,w.A)(e||f),t="function"==typeof t?t:(0,w.A)(void 0===t?64:+t),o.type=function(t){return arguments.length?(e="function"==typeof t?t:(0,w.A)(t),o):e},o.size=function(e){return arguments.length?(t="function"==typeof e?e:(0,w.A)(+e),o):t},o.context=function(e){return arguments.length?(n=null==e?null:e,o):n},o})().type(t).size(T(l,s,o))())})):null};I.registerSymbol=function(e,t){k["symbol".concat(i()(e))]=t}},55426:(e,t,n)=>{"use strict";n.d(t,{u:()=>u});var r=n(55729),o=n(50212),i=n(93780),a=["children","width","height","viewBox","className","style","title","desc"];function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,a),y=s||{width:n,height:u,x:0,y:0},g=(0,o.A)("recharts-surface",c);return r.createElement("svg",l({},(0,i.J9)(h,!0,"svg"),{className:g,width:n,height:u,style:f,viewBox:"".concat(y.x," ").concat(y.y," ").concat(y.width," ").concat(y.height)}),r.createElement("title",null,p),r.createElement("desc",null,d),t)}},56073:(e,t,n)=>{var r=n(50956);e.exports=function(e,t){var n;return r(e,function(e,r,o){return!(n=t(e,r,o))}),!!n}},56121:(e,t,n)=>{e.exports=n(61847)()},56464:(e,t,n)=>{"use strict";n.d(t,{I:()=>q});var r=n(55729);function o(){}function i(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function a(e){this._context=e}function l(e){this._context=e}function u(e){this._context=e}a.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:i(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:i(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},l.prototype={areaStart:o,areaEnd:o,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:i(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},u.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:i(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};class s{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}}function c(e){this._context=e}function f(e){this._context=e}function p(e){return new f(e)}c.prototype={areaStart:o,areaEnd:o,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e*=1,t*=1,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function d(e,t,n){var r=e._x1-e._x0,o=t-e._x1,i=(e._y1-e._y0)/(r||o<0&&-0),a=(n-e._y1)/(o||r<0&&-0);return((i<0?-1:1)+(a<0?-1:1))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs((i*o+a*r)/(r+o)))||0}function h(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function y(e,t,n){var r=e._x0,o=e._y0,i=e._x1,a=e._y1,l=(i-r)/3;e._context.bezierCurveTo(r+l,o+l*t,i-l,a-l*n,i,a)}function g(e){this._context=e}function v(e){this._context=new m(e)}function m(e){this._context=e}function b(e){this._context=e}function x(e){var t,n,r=e.length-1,o=Array(r),i=Array(r),a=Array(r);for(o[0]=0,i[0]=2,a[0]=e[0]+2*e[1],t=1;t=0;--t)o[t]=(a[t]-o[t+1])/i[t];for(t=0,i[r-1]=(e[r]+o[r-1])/2;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};var O=n(71947),S=n(46554),A=n(47803);function j(e){return e[0]}function E(e){return e[1]}function P(e,t){var n=(0,S.A)(!0),r=null,o=p,i=null,a=(0,A.i)(l);function l(l){var u,s,c,f=(l=(0,O.A)(l)).length,p=!1;for(null==r&&(i=o(c=a())),u=0;u<=f;++u)!(u=f;--p)l.point(v[p],m[p]);l.lineEnd(),l.areaEnd()}g&&(v[c]=+e(d,c,s),m[c]=+t(d,c,s),l.point(r?+r(d,c,s):v[c],n?+n(d,c,s):m[c]))}if(h)return l=null,h+""||null}function c(){return P().defined(o).curve(a).context(i)}return e="function"==typeof e?e:void 0===e?j:(0,S.A)(+e),t="function"==typeof t?t:void 0===t?(0,S.A)(0):(0,S.A)(+t),n="function"==typeof n?n:void 0===n?E:(0,S.A)(+n),s.x=function(t){return arguments.length?(e="function"==typeof t?t:(0,S.A)(+t),r=null,s):e},s.x0=function(t){return arguments.length?(e="function"==typeof t?t:(0,S.A)(+t),s):e},s.x1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:(0,S.A)(+e),s):r},s.y=function(e){return arguments.length?(t="function"==typeof e?e:(0,S.A)(+e),n=null,s):t},s.y0=function(e){return arguments.length?(t="function"==typeof e?e:(0,S.A)(+e),s):t},s.y1=function(e){return arguments.length?(n=null==e?null:"function"==typeof e?e:(0,S.A)(+e),s):n},s.lineX0=s.lineY0=function(){return c().x(e).y(t)},s.lineY1=function(){return c().x(e).y(n)},s.lineX1=function(){return c().x(r).y(t)},s.defined=function(e){return arguments.length?(o="function"==typeof e?e:(0,S.A)(!!e),s):o},s.curve=function(e){return arguments.length?(a=e,null!=i&&(l=a(i)),s):a},s.context=function(e){return arguments.length?(null==e?i=l=null:l=a(i=e),s):i},s}var C=n(6797),k=n.n(C),_=n(98499),T=n.n(_),I=n(50212),R=n(27281),D=n(93780),N=n(53645);function F(e){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function B(){return(B=Object.assign?Object.assign.bind():function(e){for(var t=1;t(u=(a=Math.ceil(p/7))>u?a+1:u+1)&&(i=u,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for((u=s.length)-(i=c.length)<0&&(i=u,r=c,c=s,s=r),n=0;i;)n=(s[--i]=s[i]+c[i]+n)/1e7|0,s[i]%=1e7;for(n&&(s.unshift(n),++o),u=s.length;0==s[--u];)s.pop();return t.d=s,t.e=o,l?E(t,p):t}function v(e,t,n){if(e!==~~e||en)throw Error(s+e)}function m(e){var t,n,r,o=e.length-1,i="",a=e[0];if(o>0){for(i+=a,t=1;te.e^this.s<0?1:-1;for(t=0,n=(r=this.d.length)<(o=e.d.length)?r:o;te.d[t]^this.s<0?1:-1;return r===o?0:r>o^this.s<0?1:-1},y.decimalPlaces=y.dp=function(){var e=this.d.length-1,t=(e-this.e)*7;if(e=this.d[e])for(;e%10==0;e/=10)t--;return t<0?0:t},y.dividedBy=y.div=function(e){return b(this,new this.constructor(e))},y.dividedToIntegerBy=y.idiv=function(e){var t=this.constructor;return E(b(this,new t(e),0,1),t.precision)},y.equals=y.eq=function(e){return!this.cmp(e)},y.exponent=function(){return w(this)},y.greaterThan=y.gt=function(e){return this.cmp(e)>0},y.greaterThanOrEqualTo=y.gte=function(e){return this.cmp(e)>=0},y.isInteger=y.isint=function(){return this.e>this.d.length-2},y.isNegative=y.isneg=function(){return this.s<0},y.isPositive=y.ispos=function(){return this.s>0},y.isZero=function(){return 0===this.s},y.lessThan=y.lt=function(e){return 0>this.cmp(e)},y.lessThanOrEqualTo=y.lte=function(e){return 1>this.cmp(e)},y.logarithm=y.log=function(e){var t,n=this.constructor,r=n.precision,o=r+5;if(void 0===e)e=new n(10);else if((e=new n(e)).s<1||e.eq(i))throw Error(u+"NaN");if(this.s<1)throw Error(u+(this.s?"NaN":"-Infinity"));return this.eq(i)?new n(0):(l=!1,t=b(A(this,o),A(e,o),o),l=!0,E(t,r))},y.minus=y.sub=function(e){return e=new this.constructor(e),this.s==e.s?P(this,e):g(this,(e.s=-e.s,e))},y.modulo=y.mod=function(e){var t,n=this.constructor,r=n.precision;if(!(e=new n(e)).s)throw Error(u+"NaN");return this.s?(l=!1,t=b(this,e,0,1).times(e),l=!0,this.minus(t)):E(new n(this),r)},y.naturalExponential=y.exp=function(){return x(this)},y.naturalLogarithm=y.ln=function(){return A(this)},y.negated=y.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},y.plus=y.add=function(e){return e=new this.constructor(e),this.s==e.s?g(this,e):P(this,(e.s=-e.s,e))},y.precision=y.sd=function(e){var t,n,r;if(void 0!==e&&!!e!==e&&1!==e&&0!==e)throw Error(s+e);if(t=w(this)+1,n=7*(r=this.d.length-1)+1,r=this.d[r]){for(;r%10==0;r/=10)n--;for(r=this.d[0];r>=10;r/=10)n++}return e&&t>n?t:n},y.squareRoot=y.sqrt=function(){var e,t,n,r,o,i,a,s=this.constructor;if(this.s<1){if(!this.s)return new s(0);throw Error(u+"NaN")}for(e=w(this),l=!1,0==(o=Math.sqrt(+this))||o==1/0?(((t=m(this.d)).length+e)%2==0&&(t+="0"),o=Math.sqrt(t),e=f((e+1)/2)-(e<0||e%2),r=new s(t=o==1/0?"5e"+e:(t=o.toExponential()).slice(0,t.indexOf("e")+1)+e)):r=new s(o.toString()),o=a=(n=s.precision)+3;;)if(r=(i=r).plus(b(this,i,a+2)).times(.5),m(i.d).slice(0,a)===(t=m(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),o==a&&"4999"==t){if(E(i,n+1,0),i.times(i).eq(this)){r=i;break}}else if("9999"!=t)break;a+=4}return l=!0,E(r,n)},y.times=y.mul=function(e){var t,n,r,o,i,a,u,s,c,f=this.constructor,p=this.d,d=(e=new f(e)).d;if(!this.s||!e.s)return new f(0);for(e.s*=this.s,n=this.e+e.e,(s=p.length)<(c=d.length)&&(i=p,p=d,d=i,a=s,s=c,c=a),i=[],r=a=s+c;r--;)i.push(0);for(r=c;--r>=0;){for(t=0,o=s+r;o>r;)u=i[o]+d[r]*p[o-r-1]+t,i[o--]=u%1e7|0,t=u/1e7|0;i[o]=(i[o]+t)%1e7|0}for(;!i[--a];)i.pop();return t?++n:i.shift(),e.d=i,e.e=n,l?E(e,f.precision):e},y.toDecimalPlaces=y.todp=function(e,t){var n=this,r=n.constructor;return(n=new r(n),void 0===e)?n:(v(e,0,1e9),void 0===t?t=r.rounding:v(t,0,8),E(n,e+w(n)+1,t))},y.toExponential=function(e,t){var n,r=this,o=r.constructor;return void 0===e?n=M(r,!0):(v(e,0,1e9),void 0===t?t=o.rounding:v(t,0,8),n=M(r=E(new o(r),e+1,t),!0,e+1)),n},y.toFixed=function(e,t){var n,r,o=this.constructor;return void 0===e?M(this):(v(e,0,1e9),void 0===t?t=o.rounding:v(t,0,8),n=M((r=E(new o(this),e+w(this)+1,t)).abs(),!1,e+w(r)+1),this.isneg()&&!this.isZero()?"-"+n:n)},y.toInteger=y.toint=function(){var e=this.constructor;return E(new e(this),w(this)+1,e.rounding)},y.toNumber=function(){return+this},y.toPower=y.pow=function(e){var t,n,r,o,a,s,c=this,p=c.constructor,d=+(e=new p(e));if(!e.s)return new p(i);if(!(c=new p(c)).s){if(e.s<1)throw Error(u+"Infinity");return c}if(c.eq(i))return c;if(r=p.precision,e.eq(i))return E(c,r);if(s=(t=e.e)>=(n=e.d.length-1),a=c.s,s){if((n=d<0?-d:d)<=0x1fffffffffffff){for(o=new p(i),t=Math.ceil(r/7+4),l=!1;n%2&&C((o=o.times(c)).d,t),0!==(n=f(n/2));)C((c=c.times(c)).d,t);return l=!0,e.s<0?new p(i).div(o):E(o,r)}}else if(a<0)throw Error(u+"NaN");return a=a<0&&1&e.d[Math.max(t,n)]?-1:1,c.s=1,l=!1,o=e.times(A(c,r+12)),l=!0,(o=x(o)).s=a,o},y.toPrecision=function(e,t){var n,r,o=this,i=o.constructor;return void 0===e?(n=w(o),r=M(o,n<=i.toExpNeg||n>=i.toExpPos)):(v(e,1,1e9),void 0===t?t=i.rounding:v(t,0,8),n=w(o=E(new i(o),e,t)),r=M(o,e<=n||n<=i.toExpNeg,e)),r},y.toSignificantDigits=y.tosd=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(v(e,1,1e9),void 0===t?t=n.rounding:v(t,0,8)),E(new n(this),e,t)},y.toString=y.valueOf=y.val=y.toJSON=function(){var e=w(this),t=this.constructor;return M(this,e<=t.toExpNeg||e>=t.toExpPos)};var b=function(){function e(e,t){var n,r=0,o=e.length;for(e=e.slice();o--;)n=e[o]*t+r,e[o]=n%1e7|0,r=n/1e7|0;return r&&e.unshift(r),e}function t(e,t,n,r){var o,i;if(n!=r)i=n>r?1:-1;else for(o=i=0;ot[o]?1:-1;break}return i}function n(e,t,n){for(var r=0;n--;)e[n]-=r,r=+(e[n]1;)e.shift()}return function(r,o,i,a){var l,s,c,f,p,d,h,y,g,v,m,b,x,O,S,A,j,P,M=r.constructor,C=r.s==o.s?1:-1,k=r.d,_=o.d;if(!r.s)return new M(r);if(!o.s)throw Error(u+"Division by zero");for(c=0,s=r.e-o.e,j=_.length,S=k.length,y=(h=new M(C)).d=[];_[c]==(k[c]||0);)++c;if(_[c]>(k[c]||0)&&--s,(b=null==i?i=M.precision:a?i+(w(r)-w(o))+1:i)<0)return new M(0);if(b=b/7+2|0,c=0,1==j)for(f=0,_=_[0],b++;(c1&&(_=e(_,f),k=e(k,f),j=_.length,S=k.length),O=j,v=(g=k.slice(0,j)).length;v=1e7/2&&++A;do f=0,(l=t(_,g,j,v))<0?(m=g[0],j!=v&&(m=1e7*m+(g[1]||0)),(f=m/A|0)>1?(f>=1e7&&(f=1e7-1),d=(p=e(_,f)).length,v=g.length,1==(l=t(p,g,d,v))&&(f--,n(p,j16)throw Error(c+w(e));if(!e.s)return new d(i);for(null==t?(l=!1,u=h):u=t,a=new d(.03125);e.abs().gte(.1);)e=e.times(a),f+=5;for(u+=Math.log(p(2,f))/Math.LN10*2+5|0,n=r=o=new d(i),d.precision=u;;){if(r=E(r.times(e),u),n=n.times(++s),m((a=o.plus(b(r,n,u))).d).slice(0,u)===m(o.d).slice(0,u)){for(;f--;)o=E(o.times(o),u);return d.precision=h,null==t?(l=!0,E(o,h)):o}o=a}}function w(e){for(var t=7*e.e,n=e.d[0];n>=10;n/=10)t++;return t}function O(e,t,n){if(t>e.LN10.sd())throw l=!0,n&&(e.precision=n),Error(u+"LN10 precision limit exceeded");return E(new e(e.LN10),t)}function S(e){for(var t="";e--;)t+="0";return t}function A(e,t){var n,r,o,a,s,c,f,p,d,h=1,y=e,g=y.d,v=y.constructor,x=v.precision;if(y.s<1)throw Error(u+(y.s?"NaN":"-Infinity"));if(y.eq(i))return new v(0);if(null==t?(l=!1,p=x):p=t,y.eq(10))return null==t&&(l=!0),O(v,p);if(v.precision=p+=10,r=(n=m(g)).charAt(0),!(15e14>Math.abs(a=w(y))))return f=O(v,p+2,x).times(a+""),y=A(new v(r+"."+n.slice(1)),p-10).plus(f),v.precision=x,null==t?(l=!0,E(y,x)):y;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=m((y=y.times(e)).d)).charAt(0),h++;for(a=w(y),r>1?(y=new v("0."+n),a++):y=new v(r+"."+n.slice(1)),c=s=y=b(y.minus(i),y.plus(i),p),d=E(y.times(y),p),o=3;;){if(s=E(s.times(d),p),m((f=c.plus(b(s,new v(o),p))).d).slice(0,p)===m(c.d).slice(0,p))return c=c.times(2),0!==a&&(c=c.plus(O(v,p+2,x).times(a+""))),c=b(c,new v(h),p),v.precision=x,null==t?(l=!0,E(c,x)):c;c=f,o+=2}}function j(e,t){var n,r,o;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;48===t.charCodeAt(r);)++r;for(o=t.length;48===t.charCodeAt(o-1);)--o;if(t=t.slice(r,o)){if(o-=r,e.e=f((n=n-r-1)/7),e.d=[],r=(n+1)%7,n<0&&(r+=7),rh||e.e<-h))throw Error(c+n)}else e.s=0,e.e=0,e.d=[0];return e}function E(e,t,n){var r,o,i,a,u,s,d,y,g=e.d;for(a=1,i=g[0];i>=10;i/=10)a++;if((r=t-a)<0)r+=7,o=t,d=g[y=0];else{if((y=Math.ceil((r+1)/7))>=(i=g.length))return e;for(a=1,d=i=g[y];i>=10;i/=10)a++;r%=7,o=r-7+a}if(void 0!==n&&(u=d/(i=p(10,a-o-1))%10|0,s=t<0||void 0!==g[y+1]||d%i,s=n<4?(u||s)&&(0==n||n==(e.s<0?3:2)):u>5||5==u&&(4==n||s||6==n&&(r>0?o>0?d/p(10,a-o):0:g[y-1])%10&1||n==(e.s<0?8:7))),t<1||!g[0])return s?(i=w(e),g.length=1,t=t-i-1,g[0]=p(10,(7-t%7)%7),e.e=f(-t/7)||0):(g.length=1,g[0]=e.e=e.s=0),e;if(0==r?(g.length=y,i=1,y--):(g.length=y+1,i=p(10,7-r),g[y]=o>0?(d/p(10,a-o)%p(10,o)|0)*i:0),s)for(;;)if(0==y){1e7==(g[0]+=i)&&(g[0]=1,++e.e);break}else{if(g[y]+=i,1e7!=g[y])break;g[y--]=0,i=1}for(r=g.length;0===g[--r];)g.pop();if(l&&(e.e>h||e.e<-h))throw Error(c+w(e));return e}function P(e,t){var n,r,o,i,a,u,s,c,f,p,d=e.constructor,h=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),l?E(t,h):t;if(s=e.d,p=t.d,r=t.e,c=e.e,s=s.slice(),a=c-r){for((f=a<0)?(n=s,a=-a,u=p.length):(n=p,r=c,u=s.length),a>(o=Math.max(Math.ceil(h/7),u)+2)&&(a=o,n.length=1),n.reverse(),o=a;o--;)n.push(0);n.reverse()}else{for((f=(o=s.length)<(u=p.length))&&(u=o),o=0;o0;--o)s[u++]=0;for(o=p.length;o>a;){if(s[--o]0?i=i.charAt(0)+"."+i.slice(1)+S(r):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+S(-o-1)+i,n&&(r=n-a)>0&&(i+=S(r))):o>=a?(i+=S(o+1-a),n&&(r=n-o-1)>0&&(i=i+"."+S(r))):((r=o+1)0&&(o+1===a&&(i+="."),i+=S(r))),e.s<0?"-"+i:i}function C(e,t){if(e.length>t)return e.length=t,!0}function k(e){if(!e||"object"!=typeof e)throw Error(u+"Object expected");var t,n,r,o=["precision",1,1e9,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t=o[t+1]&&r<=o[t+2])this[n]=r;else throw Error(s+n+": "+r);if(void 0!==(r=e[n="LN10"]))if(r==Math.LN10)this[n]=new this(r);else throw Error(s+n+": "+r);return this}(a=function e(t){var n,r,o;function i(e){if(!(this instanceof i))return new i(e);if(this.constructor=i,e instanceof i){this.s=e.s,this.e=e.e,this.d=(e=e.d)?e.slice():e;return}if("number"==typeof e){if(0*e!=0)throw Error(s+e);if(e>0)this.s=1;else if(e<0)e=-e,this.s=-1;else{this.s=0,this.e=0,this.d=[0];return}if(e===~~e&&e<1e7){this.e=0,this.d=[e];return}return j(this,e.toString())}if("string"!=typeof e)throw Error(s+e);if(45===e.charCodeAt(0)?(e=e.slice(1),this.s=-1):this.s=1,d.test(e))j(this,e);else throw Error(s+e)}if(i.prototype=y,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=e,i.config=i.set=k,void 0===t&&(t={}),t)for(n=0,o=["precision","rounding","toExpNeg","toExpPos","LN10"];n{"use strict";n.d(t,{Q:()=>u});var r=n(32716),o=n(13297),i=n(2893),a=n(47122),l=n(83687),u=(0,r.gu)({chartName:"AreaChart",GraphicalChild:o.G,axisComponents:[{axisType:"xAxis",AxisComp:i.W},{axisType:"yAxis",AxisComp:a.h}],formatAxisMap:l.pr})},57140:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},57174:(e,t,n)=>{var r=n(83420),o=n(29496),i=n(68988),a=n(91544),l=n(48877);e.exports=function(e,t,n){var u=a(e)?r:o;return n&&l(e,t,n)&&(t=void 0),u(e,i(t,3))}},58905:(e,t,n)=>{"use strict";function r(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function o(e,t){switch(arguments.length){case 0:break;case 1:"function"==typeof e?this.interpolator(e):this.range(e);break;default:this.domain(e),"function"==typeof t?this.interpolator(t):this.range(t)}return this}n.d(t,{C:()=>r,K:()=>o})},59513:(e,t,n)=>{var r=n(33573),o=n(3619);e.exports=function(e){return!0===e||!1===e||o(e)&&"[object Boolean]"==r(e)}},60449:(e,t,n)=>{var r=n(24127);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},61847:(e,t,n)=>{"use strict";var r=n(4140);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var l=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},63778:(e,t,n)=>{var r=n(57140),o=n(88274),i=n(25907),a=n(43092);e.exports=function(e){return i(e)?r(a(e)):o(e)}},64370:(e,t,n)=>{"use strict";n.d(t,{s:()=>I});var r=n(55729),o=n(98499),i=n.n(o),a=n(50212),l=n(7571),u=n(55426),s=n(54460),c=n(27281);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(){return(p=Object.assign?Object.assign.bind():function(e){for(var t=1;t');var x=t.inactive?d:t.color;return r.createElement("li",p({className:m,style:y,key:"legend-item-".concat(n)},(0,c.XC)(e.props,t,n)),r.createElement(u.u,{width:o,height:o,viewBox:h,style:g},e.renderIcon(t)),r.createElement("span",{className:"recharts-legend-item-text",style:{color:x}},s?s(b,t,n):b))})}},{key:"render",value:function(){var e=this.props,t=e.payload,n=e.layout,o=e.align;return t&&t.length?r.createElement("ul",{className:"recharts-default-legend",style:{padding:0,margin:0,textAlign:"horizontal"===n?o:"left"}},this.renderItems()):null}}],function(e,t){for(var n=0;n1||Math.abs(t.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=t.width,this.lastBoundingBox.height=t.height,e&&e(t)):(-1!==this.lastBoundingBox.width||-1!==this.lastBoundingBox.height)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,e&&e(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?j({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(e){var t,n,r=this.props,o=r.layout,i=r.align,a=r.verticalAlign,l=r.margin,u=r.chartWidth,s=r.chartHeight;return e&&(void 0!==e.left&&null!==e.left||void 0!==e.right&&null!==e.right)||(t="center"===i&&"vertical"===o?{left:((u||0)-this.getBBoxSnapshot().width)/2}:"right"===i?{right:l&&l.right||0}:{left:l&&l.left||0}),e&&(void 0!==e.top&&null!==e.top||void 0!==e.bottom&&null!==e.bottom)||(n="middle"===a?{top:((s||0)-this.getBBoxSnapshot().height)/2}:"bottom"===a?{bottom:l&&l.bottom||0}:{top:l&&l.top||0}),j(j({},t),n)}},{key:"render",value:function(){var e=this,t=this.props,n=t.content,o=t.width,i=t.height,a=t.wrapperStyle,l=t.payloadUniqBy,u=t.payload,s=j(j({position:"absolute",width:o||"auto",height:i||"auto"},this.getDefaultPosition(a)),a);return r.createElement("div",{className:"recharts-legend-wrapper",style:s,ref:function(t){e.wrapperNode=t}},function(e,t){if(r.isValidElement(e))return r.cloneElement(e,t);if("function"==typeof e)return r.createElement(e,t);t.ref;var n=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,S);return r.createElement(b,n)}(n,j(j({},this.props),{},{payload:(0,w.s)(u,l,T)})))}}],n=[{key:"getWithHeight",value:function(e,t){var n=j(j({},this.defaultProps),e.props).layout;return"vertical"===n&&(0,x.Et)(e.props.height)?{height:e.props.height}:"horizontal"===n?{width:e.props.width||t}:null}}],t&&E(o.prototype,t),n&&E(o,n),Object.defineProperty(o,"prototype",{writable:!1}),o}(r.PureComponent);k(I,"displayName","Legend"),k(I,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"})},65049:(e,t,n)=>{"use strict";n.d(t,{g:()=>s});var r=n(64370),o=n(1509),i=n(93780);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e){for(var t=1;t{"use strict";n.d(t,{u:()=>g});var r=n(55729),o=n(73403),i=n(3780),a=n(93780),l=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,l),v=(0,a.J9)(g,!1);"x"===this.props.direction&&"number"!==h.type&&(0,o.A)(!1);var m=p.map(function(e){var o,a,l=d(e,f),p=l.x,g=l.y,m=l.value,b=l.errorVal;if(!b)return null;var x=[];if(Array.isArray(b)){var w=function(e){if(Array.isArray(e))return e}(b)||function(e,t){var n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],u=!0,s=!1;try{i=(n=n.call(e)).next,!1;for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),2!==l.length);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(b,2)||function(e,t){if(e){if("string"==typeof e)return c(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(e,2)}}(b,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();o=w[0],a=w[1]}else o=a=b;if("vertical"===n){var O=h.scale,S=g+t,A=S+u,j=S-u,E=O(m-o),P=O(m+a);x.push({x1:P,y1:A,x2:P,y2:j}),x.push({x1:E,y1:S,x2:P,y2:S}),x.push({x1:E,y1:A,x2:E,y2:j})}else if("horizontal"===n){var M=y.scale,C=p+t,k=C-u,_=C+u,T=M(m-o),I=M(m+a);x.push({x1:k,y1:I,x2:_,y2:I}),x.push({x1:C,y1:T,x2:C,y2:I}),x.push({x1:k,y1:T,x2:_,y2:T})}return r.createElement(i.W,s({className:"recharts-errorBar",key:"bar-".concat(x.map(function(e){return"".concat(e.x1,"-").concat(e.x2,"-").concat(e.y1,"-").concat(e.y2)}))},v),x.map(function(e){return r.createElement("line",s({},e,{key:"line-".concat(e.x1,"-").concat(e.x2,"-").concat(e.y1,"-").concat(e.y2)}))}))});return r.createElement(i.W,{className:"recharts-errorBars"},m)}}],function(e,t){for(var n=0;n{var r=n(38302),o=n(2882),i=n(91994);e.exports=function(e,t,n){return t==t?i(e,t,n):r(e,o,n)}},67290:(e,t,n)=>{var r=n(6802),o=n(28469),i=n(20764);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?i(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},67872:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var r=(0,n(41495).A)("outline","arrow-down","IconArrowDown",[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M18 13l-6 6",key:"svg-1"}],["path",{d:"M6 13l6 6",key:"svg-2"}]])},68668:(e,t,n)=>{var r=n(66678);e.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},68988:(e,t,n)=>{var r=n(67290),o=n(10931),i=n(5549),a=n(91544),l=n(63778);e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?a(e)?o(e[0],e[1]):r(e):l(e)}},70930:e=>{e.exports=function(e,t){return e>t}},71947:(e,t,n)=>{"use strict";function r(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}n.d(t,{A:()=>r}),Array.prototype.slice},73403:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});function r(e,t){if(!e)throw Error("Invariant failed")}},75115:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>l});var r=n(30988);function o(e,t,n,r,o){var i=e*e,a=i*e;return((1-3*e+3*i-a)*t+(4-6*i+3*a)*n+(1+3*e+3*i-3*a)*r+a*o)/6}var i=n(28816);function a(e,t){var n=t-e;return n?function(t){return e+t*n}:(0,i.A)(isNaN(e)?t:e)}let l=function e(t){var n,o=1==(n=+t)?a:function(e,t){var r,o,a;return t-e?(r=e,o=t,r=Math.pow(r,a=n),o=Math.pow(o,a)-r,a=1/a,function(e){return Math.pow(r+e*o,a)}):(0,i.A)(isNaN(e)?t:e)};function l(e,t){var n=o((e=(0,r.Qh)(e)).r,(t=(0,r.Qh)(t)).r),i=o(e.g,t.g),l=o(e.b,t.b),u=a(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=i(t),e.b=l(t),e.opacity=u(t),e+""}}return l.gamma=e,l}(1);function u(e){return function(t){var n,o,i=t.length,a=Array(i),l=Array(i),u=Array(i);for(n=0;n=1?(n=1,t-1):Math.floor(n*t),i=e[r],a=e[r+1],l=r>0?e[r-1]:2*i-a,u=r{var r=n(38302),o=n(68988),i=n(98888),a=Math.max;e.exports=function(e,t,n){var l=null==e?0:e.length;if(!l)return -1;var u=null==n?0:i(n);return u<0&&(u=a(l+u,0)),r(e,o(t,3),u)}},78383:e=>{e.exports=function(){}},78895:(e,t,n)=>{"use strict";n.d(t,{Z:()=>j});var r=n(55729),o=n(38822),i=n.n(o),a=n(23356),l=n.n(a),u=n(98499),s=n.n(u),c=n(16419),f=n.n(c),p=n(35555),d=n(3780),h=n(93780),y=n(1509);function g(e){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var v=["valueAccessor"],m=["data","dataKey","clockWise","id","textBreakAll"];function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var A=function(e){return Array.isArray(e.value)?f()(e.value):e.value};function j(e){var t=e.valueAccessor,n=void 0===t?A:t,o=S(e,v),a=o.data,l=o.dataKey,u=o.clockWise,s=o.id,c=o.textBreakAll,f=S(o,m);return a&&a.length?r.createElement(d.W,{className:"recharts-label-list"},a.map(function(e,t){var o=i()(l)?n(e,t):(0,y.kr)(e&&e.payload,l),a=i()(s)?{}:{id:"".concat(s,"-").concat(t)};return r.createElement(p.J,x({},(0,h.J9)(e,!0),f,a,{parentViewBox:e.parentViewBox,value:o,textBreakAll:c,viewBox:p.J.parseViewBox(i()(u)?e:O(O({},e),{},{clockWise:u})),key:"label-".concat(t),index:t}))})):null}j.displayName="LabelList",j.renderCallByParent=function(e,t){var n,o=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(!e||!e.children&&o&&!e.label)return null;var i=e.children,a=(0,h.aS)(i,j).map(function(e,n){return(0,r.cloneElement)(e,{data:t,key:"labelList-".concat(n)})});return o?[(n=e.label,!n?null:!0===n?r.createElement(j,{key:"labelList-implicit",data:t}):r.isValidElement(n)||s()(n)?r.createElement(j,{key:"labelList-implicit",data:t,content:n}):l()(n)?r.createElement(j,x({data:t},n,{key:"labelList-implicit"})):null)].concat(function(e){if(Array.isArray(e))return b(e)}(a)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(a)||function(e,t){if(e){if("string"==typeof e)return b(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return b(e,void 0)}}(a)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()):a}},79220:(e,t,n)=>{"use strict";n.d(t,{Kv:()=>i,N4:()=>a});var r=n(55729),o=n(39696);function i(e,t){var n,o,i;let a;return e?"function"==typeof(o=n=e)&&(a=Object.getPrototypeOf(o)).prototype&&a.prototype.isReactComponent||"function"==typeof n||"object"==typeof(i=n)&&"symbol"==typeof i.$$typeof&&["react.memo","react.forward_ref"].includes(i.$$typeof.description)?r.createElement(e,t):e:null}function a(e){let t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=r.useState(()=>({current:(0,o.ZR)(t)})),[i,a]=r.useState(()=>n.current.initialState);return n.current.setOptions(t=>({...t,...e,state:{...i,...e.state},onStateChange:t=>{a(t),null==e.onStateChange||e.onStateChange(t)}})),n.current}},79860:(e,t,n)=>{var r=n(31736),o=n(78383),i=n(48546);e.exports=r&&1/i(new r([,-0]))[1]==1/0?function(e){return new r(e)}:o},82694:e=>{e.exports=function(e,t){return e.has(t)}},83420:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n{e.exports=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),l=a.length;l--;){var u=a[e?l:++o];if(!1===n(i[u],u,i))break}return t}}},83687:(e,t,n)=>{"use strict";n.d(t,{P2:()=>w,bx:()=>O,pr:()=>v,sl:()=>m,vh:()=>b});var r=n(1905),o=n.n(r),i=n(57174),a=n.n(i),l=n(1509),u=n(93780),s=n(53645),c=n(2055);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){for(var n=0;n0&&(M=Math.min((e||0)-(C[t-1]||0),M))}),Number.isFinite(M)){var k=M/P,_="vertical"===b.layout?n.height:n.width;if("gap"===b.padding&&(u=k*_/2),"no-gap"===b.padding){var T=(0,s.F4)(e.barCategoryGap,k*_),I=k*_/2;u=I-T-(I-T)/_*T}}}c="xAxis"===r?[n.left+(S.left||0)+(u||0),n.left+n.width-(S.right||0)-(u||0)]:"yAxis"===r?"horizontal"===f?[n.top+n.height-(S.bottom||0),n.top+(S.top||0)]:[n.top+(S.top||0)+(u||0),n.top+n.height-(S.bottom||0)-(u||0)]:b.range,j&&(c=[c[1],c[0]]);var R=(0,l.W7)(b,o,v),D=R.scale,N=R.realScaleType;D.domain(w).range(c),(0,l.YB)(D);var F=(0,l.w7)(D,h(h({},b),{},{realScaleType:N}));"xAxis"===r?(m="top"===x&&!A||"bottom"===x&&A,p=n.left,d=g[E]-m*b.height):"yAxis"===r&&(m="left"===x&&!A||"right"===x&&A,p=g[E]-m*b.width,d=n.top);var B=h(h(h({},b),F),{},{realScaleType:N,x:p,y:d,scale:D,width:"xAxis"===r?n.width:b.width,height:"yAxis"===r?n.height:b.height});return B.bandSize=(0,l.Hj)(B,F),b.hide||"xAxis"!==r?b.hide||(g[E]+=(m?-1:1)*B.width):g[E]+=(m?-1:1)*B.height,h(h({},i),{},y({},a,B))},{})},m=function(e,t){var n=e.x,r=e.y,o=t.x,i=t.y;return{x:Math.min(n,o),y:Math.min(r,i),width:Math.abs(o-n),height:Math.abs(i-r)}},b=function(e){return m({x:e.x1,y:e.y1},{x:e.x2,y:e.y2})},x=function(){var e,t;function n(e){if(!(this instanceof n))throw TypeError("Cannot call a class as a function");this.scale=e}return e=[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.bandAware,r=t.position;if(void 0!==e){if(r)switch(r){case"start":default:return this.scale(e);case"middle":var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+o;case"end":var i=this.bandwidth?this.bandwidth():0;return this.scale(e)+i}if(n){var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+a}return this.scale(e)}}},{key:"isInRange",value:function(e){var t=this.range(),n=t[0],r=t[t.length-1];return n<=r?e>=n&&e<=r:e>=r&&e<=n}}],t=[{key:"create",value:function(e){return new n(e)}}],e&&p(n.prototype,e),t&&p(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}();y(x,"EPS",1e-4);var w=function(e){var t=Object.keys(e).reduce(function(t,n){return h(h({},t),{},y({},n,x.create(e[n])))},{});return h(h({},t),{},{apply:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.bandAware,i=n.position;return o()(e,function(e,n){return t[n].apply(e,{bandAware:r,position:i})})},isInRange:function(e){return a()(e,function(e,n){return t[n].isInRange(e)})}})},O=function(e){var t=e.width,n=e.height,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=(r%180+180)%180*Math.PI/180,i=Math.atan(n/t);return Math.abs(o>i&&o{var r=n(7855);e.exports=function(e,t){return r(e,t)}},84450:(e,t,n)=>{var r=n(33573),o=n(91544),i=n(3619);e.exports=function(e){return"string"==typeof e||!o(e)&&i(e)&&"[object String]"==r(e)}},84905:(e,t,n)=>{var r=n(19962),o=n(13917),i=n(5549);e.exports=function(e){return e&&e.length?r(e,i,o):void 0}},86152:e=>{e.exports=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r{var r=n(17877),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},87383:(e,t,n)=>{"use strict";n.d(t,{jG:()=>l});var r=n(18896),o=n.n(r),i=n(55729);"function"==typeof SuppressedError&&SuppressedError;var a={Link:"link",Button:"button"};function l(){return{CSVDownloader:function(){var e=this,t=function(t){var n=t.children,r=t.data,l=void 0===r?{}:r,u=t.filename,s=t.type,c=void 0===s?a.Link:s,f=t.style,p=void 0===f?{}:f,d=t.className,h=void 0===d?"":d,y=t.bom,g=void 0!==y&&y,v=t.config,m=void 0===v?{}:v,b=function(){var t,n,r;return t=void 0,n=void 0,r=function(){var e,t,n,r,i,a;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(l){return function(u){var s=[l,u];if(n)throw TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]{"use strict";n.d(t,{T:()=>j});var r=n(55729),o=n(98499),i=n.n(o),a=n(50212),l=n(3780),u=n(35555),s=n(83687),c=n(47374),f=n(53645),p=n(7571),d=n(2390),h=n(93780);function y(){return(y=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var r=n(24127);e.exports=function(e){return function(t){return r(t,e)}}},88859:(e,t,n)=>{"use strict";n.d(t,{m:()=>r});var r={isSsr:!("u">typeof window&&window.document&&window.document.createElement&&window.setTimeout),get:function(e){return r[e]},set:function(e,t){if("string"==typeof e)r[e]=t;else{var n=Object.keys(e);n&&n.length&&n.forEach(function(t){r[t]=e[t]})}}}},90199:e=>{var t="\\ud800-\\udfff",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",r="\\ud83c[\\udffb-\\udfff]",o="[^"+t+"]",i="(?:\\ud83c[\\udde6-\\uddff]){2}",a="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:"+n+"|"+r+")?",u="[\\ufe0e\\ufe0f]?",s="(?:\\u200d(?:"+[o,i,a].join("|")+")"+u+l+")*",c=RegExp(r+"(?="+r+")|"+("(?:"+[o+n+"?",n,i,a,"["+t+"]"].join("|"))+")"+(u+l+s),"g");e.exports=function(e){return e.match(c)||[]}},90505:(e,t,n)=>{"use strict";n.d(t,{A3:()=>f,Pu:()=>c});var r=n(88859);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function a(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};if(null==e||r.m.isSsr)return{width:0,height:0};var o=(Object.keys(t=a({},n)).forEach(function(e){t[e]||delete t[e]}),t),i=JSON.stringify({text:e,copyStyle:o});if(l.widthCache[i])return l.widthCache[i];try{var c=document.getElementById(s);c||((c=document.createElement("span")).setAttribute("id",s),c.setAttribute("aria-hidden","true"),document.body.appendChild(c));var f=a(a({},u),o);Object.assign(c.style,f),c.textContent="".concat(e);var p=c.getBoundingClientRect(),d={width:p.width,height:p.height};return l.widthCache[i]=d,++l.cacheCount>2e3&&(l.cacheCount=0,l.widthCache={}),d}catch(e){return{width:0,height:0}}},f=function(e){return{top:e.top+window.scrollY-document.documentElement.clientTop,left:e.left+window.scrollX-document.documentElement.clientLeft}}},90843:(e,t,n)=>{var r=n(50515);e.exports=function(e,t){if(e!==t){var n=void 0!==e,o=null===e,i=e==e,a=r(e),l=void 0!==t,u=null===t,s=t==t,c=r(t);if(!u&&!c&&!a&&e>t||a&&l&&s&&!u&&!c||o&&l&&s||!n&&s||!i)return 1;if(!o&&!a&&!c&&e{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},91994:e=>{e.exports=function(e,t,n){for(var r=n-1,o=e.length;++r{"use strict";n.d(t,{E:()=>u});var r=n(32716),o=n(2055),i=n(2893),a=n(47122),l=n(83687),u=(0,r.gu)({chartName:"BarChart",GraphicalChild:o.y,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:i.W},{axisType:"yAxis",AxisComp:a.h}],formatAxisMap:l.pr})},92224:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>eN});var r=n(55729),o=n(56121),i=n.n(o),a=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty;function s(e,t){return function(n,r,o){return e(n,r,o)&&t(n,r,o)}}function c(e){return function(t,n,r){if(!t||!n||"object"!=typeof t||"object"!=typeof n)return e(t,n,r);var o=r.cache,i=o.get(t),a=o.get(n);if(i&&a)return i===n&&a===t;o.set(t,n),o.set(n,t);var l=e(t,n,r);return o.delete(t),o.delete(n),l}}function f(e){return a(e).concat(l(e))}var p=Object.hasOwn||function(e,t){return u.call(e,t)};function d(e,t){return e||t?e===t:e===t||e!=e&&t!=t}var h="_owner",y=Object.getOwnPropertyDescriptor,g=Object.keys;function v(e,t,n){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function m(e,t){return d(e.getTime(),t.getTime())}function b(e,t,n){if(e.size!==t.size)return!1;for(var r,o,i={},a=e.entries(),l=0;(r=a.next())&&!r.done;){for(var u=t.entries(),s=!1,c=0;(o=u.next())&&!o.done;){var f=r.value,p=f[0],d=f[1],h=o.value,y=h[0],g=h[1];!s&&!i[c]&&(s=n.equals(p,y,l,c,e,t,n)&&n.equals(d,g,p,y,e,t,n))&&(i[c]=!0),c++}if(!s)return!1;l++}return!0}function x(e,t,n){var r,o=g(e),i=o.length;if(g(t).length!==i)return!1;for(;i-- >0;)if((r=o[i])===h&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!p(t,r)||!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function w(e,t,n){var r,o,i,a=f(e),l=a.length;if(f(t).length!==l)return!1;for(;l-- >0;)if((r=a[l])===h&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!p(t,r)||!n.equals(e[r],t[r],r,r,e,t,n)||(o=y(e,r),i=y(t,r),(o||i)&&(!o||!i||o.configurable!==i.configurable||o.enumerable!==i.enumerable||o.writable!==i.writable)))return!1;return!0}function O(e,t){return d(e.valueOf(),t.valueOf())}function S(e,t){return e.source===t.source&&e.flags===t.flags}function A(e,t,n){if(e.size!==t.size)return!1;for(var r,o,i={},a=e.values();(r=a.next())&&!r.done;){for(var l=t.values(),u=!1,s=0;(o=l.next())&&!o.done;)!u&&!i[s]&&(u=n.equals(r.value,o.value,r.value,o.value,e,t,n))&&(i[s]=!0),s++;if(!u)return!1}return!0}function j(e,t){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}var E=Array.isArray,P="function"==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView:null,M=Object.assign,C=Object.prototype.toString.call.bind(Object.prototype.toString),k=_();function _(e){void 0===e&&(e={});var t,n,r,o,i,a,l,u,f,p=e.circular,d=e.createInternalComparator,h=e.createState,y=e.strict,g=(n=(t=function(e){var t=e.circular,n=e.createCustomConfig,r=e.strict,o={areArraysEqual:r?w:v,areDatesEqual:m,areMapsEqual:r?s(b,w):b,areObjectsEqual:r?w:x,arePrimitiveWrappersEqual:O,areRegExpsEqual:S,areSetsEqual:r?s(A,w):A,areTypedArraysEqual:r?w:j};if(n&&(o=M({},o,n(o))),t){var i=c(o.areArraysEqual),a=c(o.areMapsEqual),l=c(o.areObjectsEqual),u=c(o.areSetsEqual);o=M({},o,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:l,areSetsEqual:u})}return o}(e)).areArraysEqual,r=t.areDatesEqual,o=t.areMapsEqual,i=t.areObjectsEqual,a=t.arePrimitiveWrappersEqual,l=t.areRegExpsEqual,u=t.areSetsEqual,f=t.areTypedArraysEqual,function(e,t,s){if(e===t)return!0;if(null==e||null==t||"object"!=typeof e||"object"!=typeof t)return e!=e&&t!=t;var c=e.constructor;if(c!==t.constructor)return!1;if(c===Object)return i(e,t,s);if(E(e))return n(e,t,s);if(null!=P&&P(e))return f(e,t,s);if(c===Date)return r(e,t,s);if(c===RegExp)return l(e,t,s);if(c===Map)return o(e,t,s);if(c===Set)return u(e,t,s);var p=C(e);return"[object Date]"===p?r(e,t,s):"[object RegExp]"===p?l(e,t,s):"[object Map]"===p?o(e,t,s):"[object Set]"===p?u(e,t,s):"[object Object]"===p?"function"!=typeof e.then&&"function"!=typeof t.then&&i(e,t,s):"[object Arguments]"===p?i(e,t,s):("[object Boolean]"===p||"[object Number]"===p||"[object String]"===p)&&a(e,t,s)}),k=d?d(g):function(e,t,n,r,o,i,a){return g(e,t,a)};return function(e){var t=e.circular,n=e.comparator,r=e.createState,o=e.equals,i=e.strict;if(r)return function(e,a){var l=r(),u=l.cache;return n(e,a,{cache:void 0===u?t?new WeakMap:void 0:u,equals:o,meta:l.meta,strict:i})};if(t)return function(e,t){return n(e,t,{cache:new WeakMap,equals:o,meta:void 0,strict:i})};var a={cache:void 0,equals:o,meta:void 0,strict:i};return function(e,t){return n(e,t,a)}}({circular:void 0!==p&&p,comparator:g,createState:h,equals:k,strict:void 0!==y&&y})}function T(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=-1;requestAnimationFrame(function r(o){if(n<0&&(n=o),o-n>t)e(o),n=-1;else{var i;i=r,"u">typeof requestAnimationFrame&&requestAnimationFrame(i)}})}function I(e){return(I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ntypeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],u=!0,s=!1;try{i=(n=n.call(e)).next,!1;for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),4!==l.length);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(c,4)||H(c,4)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();i=f[0],a=f[1],l=f[2],u=f[3]}else U(!1,"[configBezier]: arguments should be one of oneOf 'linear', 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', instead received %s",r)}U([i,l,a,u].every(function(e){return"number"==typeof e&&e>=0&&e<=1}),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",r);var p=q(i,l),d=q(a,u),h=(e=i,t=l,function(n){var r;return W([].concat(function(e){if(Array.isArray(e))return G(e)}(r=$(e,t).map(function(e,t){return e*t}).slice(1))||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||H(r)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[0]),n)}),y=function(e){for(var t=e>1?1:e,n=t,r=0;r<8;++r){var o,i=p(n)-t,a=h(n);if(1e-4>Math.abs(i-t)||a<1e-4)break;n=(o=n-i/a)>1?1:o<0?0:o}return d(n)};return y.isStepper=!1,y},K=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.stiff,n=void 0===t?100:t,r=e.damping,o=void 0===r?8:r,i=e.dt,a=void 0===i?17:i,l=function(e,t,r){var i=r+(-(e-t)*n-r*o)*a/1e3,l=r*a/1e3+e;return 1e-4>Math.abs(l-t)&&1e-4>Math.abs(i)?[t,0]:[l,i]};return l.isStepper=!0,l.dt=a,l},Y=function(){for(var e=arguments.length,t=Array(e),n=0;ntypeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||en(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ee(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);ntypeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],u=!0,s=!1;try{i=(n=n.call(e)).next,!1;for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),2!==l.length);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(r,2)||en(r,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),i=o[0],a=o[1];return ee(ee({},n),{},{from:i,velocity:a})}return n},n);return r<1?z(function(e,t){return ei(t)?ee(ee({},t),{},{velocity:eo(t.velocity,o[e].velocity,r),from:eo(t.from,o[e].from,r)}):t},n):e(t,o,r-1)};let el=function(e,t,n,r,o){var i,a,l=[Object.keys(e),Object.keys(t)].reduce(function(e,t){return e.filter(function(e){return t.includes(e)})}),u=l.reduce(function(n,r){return ee(ee({},n),{},et({},r,[e[r],t[r]]))},{}),s=l.reduce(function(n,r){return ee(ee({},n),{},et({},r,{from:e[r],velocity:0,to:t[r]}))},{}),c=-1,f=function(){return null};return f=n.isStepper?function(r){i||(i=r);var a=(r-i)/n.dt;s=ea(n,s,a),o(ee(ee(ee({},e),t),z(function(e,t){return t.from},s))),i=r,Object.values(s).filter(ei).length&&(c=requestAnimationFrame(f))}:function(i){a||(a=i);var l=(i-a)/r,s=z(function(e,t){return eo.apply(void 0,Z(t).concat([n(l)]))},u);if(o(ee(ee(ee({},e),t),s)),l<1)c=requestAnimationFrame(f);else{var p=z(function(e,t){return eo.apply(void 0,Z(t).concat([n(1)]))},u);o(ee(ee(ee({},e),t),p))}},function(){return requestAnimationFrame(f),function(){cancelAnimationFrame(c)}}};function eu(e){return(eu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var es=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function ec(e){return function(e){if(Array.isArray(e))return ef(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return ef(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ef(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ef(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0?n[o-1]:r,p=s||Object.keys(u);if("function"==typeof l||"spring"===l)return[].concat(ec(e),[t.runJSAnimation.bind(t,{from:f.style,to:u,duration:i,easing:l}),i]);var d=V(p,i,l),h=ed(ed(ed({},f.style),u),{},{transition:d});return[].concat(ec(e),[h,i,c]).filter(L)},[a,Math.max(void 0===l?0:l,r)])),[e.onAnimationEnd]))}},{key:"runAnimation",value:function(e){this.manager||(this.manager=(t=function(){return null},n=!1,r=function e(r){if(!n){if(Array.isArray(r)){if(!r.length)return;var o=function(e){if(Array.isArray(e))return e}(r)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return R(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return R(e,void 0)}}(r)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),i=o[0],a=o.slice(1);return"number"==typeof i?void T(e.bind(null,a),i):(e(i),void T(e.bind(null,a)))}"object"===I(r)&&t(r),"function"==typeof r&&r()}},{stop:function(){n=!0},start:function(e){n=!1,r(e)},subscribe:function(e){return t=e,function(){t=function(){return null}}}}));var t,n,r,o=e.begin,i=e.duration,a=e.attributeName,l=e.to,u=e.easing,s=e.onAnimationStart,c=e.onAnimationEnd,f=e.steps,p=e.children,d=this.manager;if(this.unSubscribe=d.subscribe(this.handleStyleChange),"function"==typeof u||"function"==typeof p||"spring"===u)return void this.runJSAnimation(e);if(f.length>1)return void this.runStepAnimation(e);var h=a?eh({},a,l):l,y=V(Object.keys(h),i,u);d.start([s,o,ed(ed({},h),{},{transition:y}),i,c])}},{key:"render",value:function(){var e=this.props,t=e.children,n=(e.begin,e.duration),o=(e.attributeName,e.easing,e.isActive),i=(e.steps,e.from,e.to,e.canBegin,e.onAnimationEnd,e.shouldReAnimate,e.onAnimationReStart,function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,es)),a=r.Children.count(t),l=this.state.style;if("function"==typeof t)return t(l);if(!o||0===a||n<=0)return t;var u=function(e){var t=e.props,n=t.style,o=t.className;return(0,r.cloneElement)(e,ed(ed({},i),{},{style:ed(ed({},void 0===n?{}:n),l),className:o}))};return 1===a?u(r.Children.only(t)):r.createElement("div",null,r.Children.map(t,function(e){return u(e)}))}}],function(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=e.steps,n=e.duration;return t&&t.length?t.reduce(function(e,t){return e+(Number.isFinite(t.duration)&&t.duration>0?t.duration:0)},0):Number.isFinite(n)?n:0},eR=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");i.prototype=Object.create(e&&e.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),e&&eM(i,e);var t,n,o=(t=function(){if("u"=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,eS));return r.createElement(eO.Ay,ej({},o,{onEnter:this.handleEnter,onExit:this.handleExit,timeout:this.parseTimeout()}),function(){return r.createElement(ex,e.state,r.Children.only(n))})}}],function(e,t){for(var n=0;n{"use strict";n.d(t,{e:()=>k});var r=n(55729),o=n(98499),i=n.n(o),a=n(13731),l=n.n(a),u=n(50212),s=n(3780),c=n(35555),f=n(47374),p=n(53645),d=n(83687),h=n(7571),y=n(93780),g=n(2549);function v(e){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(m=function(){return!!e})()}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function x(e,t){return(x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function O(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);ntypeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],u=!0,s=!1;try{i=(n=n.call(e)).next,!1;for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),2!==l.length);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(A,2)||function(e,t){if(e){if("string"==typeof e)return j(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return j(e,2)}}(A,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),C=E[0],k=C.x,_=C.y,T=E[1],I=T.x,R=T.y,D=O(O({clipPath:(0,f.R)(e,"hidden")?"url(#".concat(b,")"):void 0},(0,y.J9)(e,!0)),{},{x1:k,y1:_,x2:I,y2:R});return r.createElement(s.W,{className:(0,u.A)("recharts-reference-line",v)},P(l,D),c.J.renderCallByParent(e,(0,d.vh)({x1:k,y1:_,x2:I,y2:R})))}var k=function(e){var t;function n(){var e,t;if(!(this instanceof n))throw TypeError("Cannot call a class as a function");return e=n,t=arguments,e=b(e),function(e,t){if(t&&("object"===v(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");var n=e;if(void 0===n)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(this,m()?Reflect.construct(e,t||[],b(this).constructor):e.apply(this,t))}if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");return n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&x(n,e),t=[{key:"render",value:function(){return r.createElement(C,this.props)}}],function(e,t){for(var n=0;n{"use strict";n.d(t,{s:()=>l});var r=n(831),o=n.n(r),i=n(98499),a=n.n(i);function l(e,t,n){return!0===t?o()(e,n):a()(t)?o()(e,t):e}},93733:(e,t,n)=>{var r=n(50956),o=n(16799);e.exports=function(e,t){var n=-1,i=o(e)?Array(e.length):[];return r(e,function(e,r,o){i[++n]=t(e,r,o)}),i}},93780:(e,t,n)=>{"use strict";n.d(t,{AW:()=>B,BU:()=>M,J9:()=>I,Me:()=>C,Mn:()=>S,OV:()=>R,X_:()=>F,aS:()=>P,ee:()=>N,sT:()=>_});var r=n(60449),o=n.n(r),i=n(38822),a=n.n(i),l=n(84450),u=n.n(l),s=n(98499),c=n.n(s),f=n(23356),p=n.n(f),d=n(55729),h=n(16878),y=n(53645),g=n(5688),v=n(27281),m=["children"],b=["children"];function x(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function w(e){return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var O={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},S=function(e){return"string"==typeof e?e:e?e.displayName||e.name||"Component":""},A=null,j=null,E=function e(t){if(t===A&&Array.isArray(j))return j;var n=[];return d.Children.forEach(t,function(t){a()(t)||((0,h.isFragment)(t)?n=n.concat(e(t.props.children)):n.push(t))}),j=n,A=t,n};function P(e,t){var n=[],r=[];return r=Array.isArray(t)?t.map(function(e){return S(e)}):[S(t)],E(e).forEach(function(e){var t=o()(e,"type.displayName")||o()(e,"type.name");-1!==r.indexOf(t)&&n.push(e)}),n}function M(e,t){var n=P(e,t);return n&&n[0]}var C=function(e){if(!e||!e.props)return!1;var t=e.props,n=t.width,r=t.height;return!!(0,y.Et)(n)&&!(n<=0)&&!!(0,y.Et)(r)&&!(r<=0)},k=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],_=function(e){return e&&"object"===w(e)&&"clipDot"in e},T=function(e,t,n,r){var o,i=null!=(o=null===v.VU||void 0===v.VU?void 0:v.VU[r])?o:[];return!c()(e)&&(r&&i.includes(t)||v.QQ.includes(t))||n&&v.j2.includes(t)},I=function(e,t,n){if(!e||"function"==typeof e||"boolean"==typeof e)return null;var r=e;if((0,d.isValidElement)(e)&&(r=e.props),!p()(r))return null;var o={};return Object.keys(r).forEach(function(e){var i;T(null==(i=r)?void 0:i[e],e,t,n)&&(o[e]=r[e])}),o},R=function e(t,n){if(t===n)return!0;var r=d.Children.count(t);if(r!==d.Children.count(n))return!1;if(0===r)return!0;if(1===r)return D(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var o=0;o=0)n.push(e);else if(e){var i=S(e.type),a=t[i]||{},l=a.handler,s=a.once;if(l&&(!s||!r[i])){var c=l(e,i,o);n.push(c),r[i]=!0}}}),n},F=function(e){var t=e&&e.type;return t&&O[t]?O[t]:null},B=function(e,t){return E(t).indexOf(e)}},93803:(e,t,n)=>{var r=n(88601),o=n(68988),i=n(93733),a=n(91544);e.exports=function(e,t){return(a(e)?r:i)(e,o(t,3))}},95099:(e,t,n)=>{"use strict";n.d(t,{q:()=>l});var r=n(28171),o=n(43379),i=class extends r.${constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e,t){super.setOptions({...e,behavior:(0,o.PL)()},t)}getOptimisticResult(e){return e.behavior=(0,o.PL)(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){let{state:n}=e,r=super.createResult(e,t),{isFetching:i,isRefetching:a,isError:l,isRefetchError:u}=r,s=n.fetchMeta?.fetchMore?.direction,c=l&&"forward"===s,f=i&&"forward"===s,p=l&&"backward"===s,d=i&&"backward"===s;return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:(0,o.rB)(t,n.data),hasPreviousPage:(0,o.RQ)(t,n.data),isFetchNextPageError:c,isFetchingNextPage:f,isFetchPreviousPageError:p,isFetchingPreviousPage:d,isRefetchError:u&&!c&&!p,isRefetching:a&&!f&&!d}}},a=n(34185);function l(e,t){return(0,a.t)(e,i,t)}},95486:(e,t,n)=>{var r=n(2603),o=n(9819),i=n(18053),a=n(60567);e.exports=function(e){return function(t){var n=o(t=a(t))?i(t):void 0,l=n?n[0]:t.charAt(0),u=n?r(n,1).join(""):t.slice(1);return l[e]()+u}}},95801:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n="~";function r(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function i(e,t,r,i,a){if("function"!=typeof r)throw TypeError("The listener must be a function");var l=new o(r,i||e,a),u=n?n+t:t;return e._events[u]?e._events[u].fn?e._events[u]=[e._events[u],l]:e._events[u].push(l):(e._events[u]=l,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function l(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1)),l.prototype.eventNames=function(){var e,r,o=[];if(0===this._eventsCount)return o;for(r in e=this._events)t.call(e,r)&&o.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},l.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var o=0,i=r.length,a=Array(i);o{var r=n(15051),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,a,l){var u=1&n,s=r(e),c=s.length;if(c!=r(t).length&&!u)return!1;for(var f=c;f--;){var p=s[f];if(!(u?p in t:o.call(t,p)))return!1}var d=l.get(e),h=l.get(t);if(d&&h)return d==t&&h==e;var y=!0;l.set(e,t),l.set(t,e);for(var g=u;++f{var r=n(33573),o=n(3619);e.exports=function(e){return"number"==typeof e||o(e)&&"[object Number]"==r(e)}},97767:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var r=(0,n(41495).A)("outline","arrow-up","IconArrowUp",[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M18 11l-6 -6",key:"svg-1"}],["path",{d:"M6 11l6 -6",key:"svg-2"}]])},98501:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n{var r=n(11061);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}}}]); \ No newline at end of file diff --git a/out/_next/static/chunks/pages/_app-8462689fae175bdd.js b/out/_next/static/chunks/pages/_app-8462689fae175bdd.js new file mode 100644 index 0000000..c83d76b --- /dev/null +++ b/out/_next/static/chunks/pages/_app-8462689fae175bdd.js @@ -0,0 +1,25 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[636],{17:e=>{"use strict";e.exports=Object},76:(e,t,r)=>{"use strict";r.d(t,{GY:()=>a,YC:()=>o,dh:()=>l,ks:()=>c,nJ:()=>s,ny:()=>u});var n=r(90324),i=r(26615);function o(e,t="size",r=!0){if(void 0!==e)return(0,n.t)(e)?r?(0,i.D)(e):e:`var(--${t}-${e})`}function a(e){return o(e,"mantine-spacing")}function s(e){return void 0===e?"var(--mantine-radius-default)":o(e,"mantine-radius")}function u(e){return o(e,"mantine-font-size")}function c(e){return o(e,"mantine-line-height",!1)}function l(e){if(e)return o(e,"mantine-shadow",!1)}},226:(e,t)=>{"use strict";function r(e){return function(t){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=o.width,s=a&&e.matchPatterns[a]||e.matchPatterns[e.defaultMatchWidth],u=t.match(s);if(!u)return null;var c=u[0],l=a&&e.parsePatterns[a]||e.parsePatterns[e.defaultParseWidth],f=Array.isArray(l)?i(l,function(e){return e.test(c)}):n(l,function(e){return e.test(c)});return r=e.valueCallback?e.valueCallback(f):f,{value:r=o.valueCallback?o.valueCallback(r):r,rest:t.slice(c.length)}}}function n(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function i(e,t){for(var r=0;r{"use strict";r.d(t,{Y:()=>o});var n=r(55729),i=r(9825);function o(e,t){let r="number"==typeof t?t:t.delay,o="number"!=typeof t&&t.flushOnUnmount,a=(0,i.c)(e),s=(0,n.useRef)(0),u=(0,n.useRef)(()=>{}),c=Object.assign((0,n.useCallback)((...e)=>{window.clearTimeout(s.current);let t=()=>{0!==s.current&&(s.current=0,a(...e))};u.current=t,c.flush=t,s.current=window.setTimeout(t,r)},[a,r]),{flush:u.current});return(0,n.useEffect)(()=>()=>{window.clearTimeout(s.current),o&&c.flush()},[c,o]),c}},299:(e,t,r)=>{"use strict";function n(e,t){if(null==e)throw TypeError("assign requires that input parameter not be null or undefined");for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}r.d(t,{A:()=>n})},387:(e,t,r)=>{"use strict";r.d(t,{R0:()=>M,jC:()=>E,lr:()=>w,vM:()=>x});var n=r(75155),i=r(55729),o=r(81278),a=r(29326),s=r(97895),u=r(43465),c=r(43407),l=r(28180),f=r(22497),d=r(41038),h=r(6065),p=r(76089),m=r(13759),y=r(57820),g=r(92917);let b="Live Tail",v=1e3,_=(e,t)=>`${(0,p.Yq)(e[0],{isUTC:t,format:"normal",clock:"24h"})} - ${(0,p.Yq)(e[1],{isUTC:t,format:"normal",clock:"24h"})}`;function S(e){return""===e||e.includes(b)}function E(e){let t=(0,a.A)(new Date);return[(0,s.A)(t,e),t]}function w(e,t){return(0,m.c0)(e,t)}function T(e,t){let[r,n]=w(e,t);if(null!=r&&null!=n)return[r,n]}function x({defaultValue:e=b,defaultTimeRange:t=[-1,-1],isLiveEnabled:r=!0}){let n=(0,o.useRouter)().isReady,s=(0,g.ZC)(n),{userPreferences:{isUTC:c}}=(0,y.HW)(),[l,f]=(0,i.useState)(void 0),[d,p]=(0,h.useQueryParams)({from:(0,h.withDefault)(h.NumberParam,void 0),to:(0,h.withDefault)(h.NumberParam,void 0)},{updateType:"pushIn",enableBatching:!0}),m=(0,i.useMemo)(()=>({from:d.from??t[0],to:d.to??t[1]}),[d,t]),[E,x]=(0,h.useQueryParam)("tq",(0,h.withDefault)(h.StringParam,""),{updateType:"pushIn",enableBatching:!0}),A=(0,g.ZC)(E);(0,i.useEffect)(()=>{if(n&&!s)if(""!=E)f(E);else if(null!=d.from&&null!=d.to){let e=_([new Date(d.from),new Date(d.to)],c);f(e),x(e)}else f(e)},[d,e,E,n,c,s,x,f]);let[O,M]=(0,i.useState)(void 0),[R,C]=(0,i.useState)(void 0),I=n&&-1!=m.from&&-1!=m.to?_([new Date(m.from),new Date(m.to)],c):void 0,N=(0,i.useRef)(void 0);(0,i.useEffect)(()=>{if(n&&!S(E)&&A!=E){let e=T(E,c);N.current=e,null!=e&&null==d.from&&null==d.to&&p({from:e[0].getTime(),to:e[1].getTime()})}},[n,E,c,d,p,A]);let P=(0,i.useMemo)(()=>{if(n&&-1!=m.from&&-1!=m.to)return[new Date(m.from),new Date(m.to)];if(n&&-1==m.from&&-1==m.to&&null!=O)return O;if(n&&-1==m.from&&-1==m.to&&null==O&&null!=R)return R;{if(n&&-1==m.from&&-1==m.to&&null==O&&null==R&&!S(E)&&null!=N.current)return N.current;if(!(n&&-1==m.from&&-1==m.to&&null==O&&null==R&&S(E)))return[new Date,new Date];let e=(0,a.A)(new Date);return[(0,u.A)(e,{minutes:15}),e]}},[n,m,O,R,E]),k=(0,i.useMemo)(()=>n&&r&&-1==m.from&&-1==m.to&&(""==E||E.includes(b)),[n,r,m,E]),D=()=>{let e=(0,a.A)(new Date);M([(0,u.A)(e,{minutes:15}),e])};(0,i.useEffect)(()=>{let e;return k&&(D(),e=setInterval(D,v)),()=>{null!=e&&(clearInterval(e),e=void 0)}},[k]);let L=(0,i.useCallback)(e=>{if(!1===k&&e)C(void 0),p({from:void 0,to:void 0}),f(b),x(b),D();else if(k&&!1===e&&null!=O){let[e,t]=O;C(O),p({from:e.getTime(),to:t.getTime()}),M(void 0);let r=_([e,t],c);f(r),x(r)}},[k,p,f,O,c,x]);return{isReady:n,isLive:k,displayedTimeInputValue:l??I??e,setDisplayedTimeInputValue:f,searchedTimeRange:P,onSearch:(0,i.useCallback)(e=>{let[t,r]=w(e,c);if(null!=t&&null!=r)if(p({from:t.getTime(),to:r.getTime()}),-1===e.toLowerCase().indexOf("past")){let e=_([t,r],c);f(e),x(e)}else x(e)},[c,p,f,x]),onTimeRangeSelect:(0,i.useCallback)((e,t)=>{p({from:e.getTime(),to:t.getTime()});let r=_([e,t],c);f(r),x(r)},[c,p,f,x]),setIsLive:L}}let A=(e,t)=>{let r=(0,c.A)({start:e,end:t}),n=(0,l.A)(r);return`Past ${n}`},O={from:d.YC,to:d.YC};function M(e){let t,r,a,s,u,c,l,h,p=(0,n.c)(35),{initialDisplayValue:m,initialTimeRange:g,showRelativeInterval:b,setDisplayedTimeInputValue:v,updateInput:S}=e,E=(0,o.useRouter)().isReady,{userPreferences:T}=(0,y.HW)(),{isUTC:x}=T;p[0]!==m||p[1]!==g||p[2]!==x?(t=()=>m??_(g,x),p[0]=m,p[1]=g,p[2]=x,p[3]=t):t=p[3];let[M,C]=(0,i.useState)(t),I=v??C;p[4]===Symbol.for("react.memo_cache_sentinel")?(r={history:"push"},p[4]=r):r=p[4];let[N,P]=(0,d.ab)(O,r),{from:k,to:D}=N;p[5]!==k||p[6]!==g||p[7]!==D?(a=null!=k&&null!=D?[new Date(k),new Date(D)]:g,p[5]=k,p[6]=g,p[7]=D,p[8]=a):a=p[8];let[L,j]=(0,i.useState)(a);p[9]!==x||p[10]!==P?(s=e=>{let[t,r]=w(e,x);null!=t&&null!=r&&P({from:t.getTime(),to:r.getTime()})},p[9]=x,p[10]=P,p[11]=s):s=p[11];let U=s;p[12]!==I||p[13]!==k||p[14]!==m||p[15]!==g||p[16]!==E||p[17]!==x||p[18]!==b||p[19]!==D||p[20]!==S?(u=()=>{if(null!=k&&null!=D&&E){let e=new Date(k),t=new Date(D);if((0,f.A)(e)&&(0,f.A)(t)){j([e,t]);let r=b&&A(e,t)||_([e,t],x);!1!==S&&I(r)}}else if(null==k&&null==D&&E){j(g);let e=_(g,x);!1!==S&&(b?I(m??e):I(e))}},c=[E,x,k,D,m,g,b,I,S],p[12]=I,p[13]=k,p[14]=m,p[15]=g,p[16]=E,p[17]=x,p[18]=b,p[19]=D,p[20]=S,p[21]=u,p[22]=c):(u=p[21],c=p[22]),(0,i.useEffect)(u,c),p[23]!==I||p[24]!==x||p[25]!==P?(l=(e,t,r)=>{P({from:e.getTime(),to:t.getTime()}),j([e,t]);let n=_([e,t],x);null!==r&&I(r??n)},p[23]=I,p[24]=x,p[25]=P,p[26]=l):l=p[26];let B=l;return p[27]!==M||p[28]!==k||p[29]!==E||p[30]!==U||p[31]!==L||p[32]!==B||p[33]!==D?(h={from:k,to:D,isReady:E,displayedTimeInputValue:M,setDisplayedTimeInputValue:R,searchedTimeRange:L,onSearch:U,onTimeRangeSelect:B},p[27]=M,p[28]=k,p[29]=E,p[30]=U,p[31]=L,p[32]=B,p[33]=D,p[34]=h):h=p[34],h}function R(){}},872:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=_;var n=p(r(73858)),i=p(r(46531)),o=p(r(3514)),a=p(r(15179)),s=p(r(94229)),u=p(r(83605)),c=r(75520),l=p(r(78229)),f=p(r(42462)),d=r(31055),h=p(r(29771));function p(e){return e&&e.__esModule?e:{default:e}}var m=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,y=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,g=/^'([^]*?)'?$/,b=/''/g,v=/[a-zA-Z]/;function _(e,t,r){(0,f.default)(2,arguments);var p,g,b,_,E,w,T,x,A,O,M,R,C,I,N,P,k,D,L=String(t),j=(0,d.getDefaultOptions)(),U=null!=(p=null!=(g=null==r?void 0:r.locale)?g:j.locale)?p:h.default,B=(0,l.default)(null!=(b=null!=(_=null!=(E=null!=(w=null==r?void 0:r.firstWeekContainsDate)?w:null==r||null==(T=r.locale)||null==(x=T.options)?void 0:x.firstWeekContainsDate)?E:j.firstWeekContainsDate)?_:null==(A=j.locale)||null==(O=A.options)?void 0:O.firstWeekContainsDate)?b:1);if(!(B>=1&&B<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var F=(0,l.default)(null!=(M=null!=(R=null!=(C=null!=(I=null==r?void 0:r.weekStartsOn)?I:null==r||null==(N=r.locale)||null==(P=N.options)?void 0:P.weekStartsOn)?C:j.weekStartsOn)?R:null==(k=j.locale)||null==(D=k.options)?void 0:D.weekStartsOn)?M:0);if(!(F>=0&&F<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!U.localize)throw RangeError("locale must contain localize property");if(!U.formatLong)throw RangeError("locale must contain formatLong property");var z=(0,o.default)(e);if(!(0,n.default)(z))throw RangeError("Invalid time value");var $=(0,u.default)(z),V=(0,i.default)(z,$),Y={firstWeekContainsDate:B,weekStartsOn:F,locale:U,_originalDate:z};return L.match(y).map(function(e){var t=e[0];return"p"===t||"P"===t?(0,s.default[t])(e,U.formatLong):e}).join("").match(m).map(function(n){if("''"===n)return"'";var i=n[0];if("'"===i)return S(n);var o=a.default[i];if(o)return!(null!=r&&r.useAdditionalWeekYearTokens)&&(0,c.isProtectedWeekYearToken)(n)&&(0,c.throwProtectedError)(n,t,String(e)),!(null!=r&&r.useAdditionalDayOfYearTokens)&&(0,c.isProtectedDayOfYearToken)(n)&&(0,c.throwProtectedError)(n,t,String(e)),o(V,n,U.localize,Y);if(i.match(v))throw RangeError("Format string contains an unescaped latin alphabet character `"+i+"`");return n}).join("")}function S(e){var t=e.match(g);return t?t[1].replace(b,"'"):e}e.exports=t.default},1404:(e,t,r)=>{"use strict";var n=r(29143);Object.defineProperty(t,"__esModule",{value:!0}),t.allEnv=void 0;let i=r(18e3);t.allEnv=function(){return(0,i.isBrowser)()?window.__ENV:n.env}},1827:(e,t,r)=>{"use strict";r.d(t,{D:()=>n,e:()=>i}),r(55729),r(6029);let[n,i]=(0,r(48930).e)({offsetBottom:!1,offsetTop:!1,describedBy:void 0,getStyles:null,inputId:void 0,labelId:void 0})},1983:(e,t,r)=>{"use strict";function n(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}r.d(t,{A:()=>n})},2068:(e,t,r)=>{"use strict";var n=r(16638);e.exports=function(e){return n(e)||0===e?e:e<0?-1:1}},2091:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(r(66918));function i(e){return e&&e.__esModule?e:{default:e}}var o={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},a={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},s={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"};t.default={date:(0,n.default)({formats:o,defaultWidth:"full"}),time:(0,n.default)({formats:a,defaultWidth:"full"}),dateTime:(0,n.default)({formats:s,defaultWidth:"full"})},e.exports=t.default},2301:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ZodError=t.quotelessJson=t.ZodIssueCode=void 0;let n=r(27176);t.ZodIssueCode=n.util.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),t.quotelessJson=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class i extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){let t=e||function(e){return e.message},r={_errors:[]},n=e=>{for(let i of e.issues)if("invalid_union"===i.code)i.unionErrors.map(n);else if("invalid_return_type"===i.code)n(i.returnTypeError);else if("invalid_arguments"===i.code)n(i.argumentsError);else if(0===i.path.length)r._errors.push(t(i));else{let e=r,n=0;for(;ne.message){let t={},r=[];for(let n of this.issues)if(n.path.length>0){let r=n.path[0];t[r]=t[r]||[],t[r].push(e(n))}else r.push(e(n));return{formErrors:r,fieldErrors:t}}get formErrors(){return this.flatten()}}t.ZodError=i,i.create=e=>new i(e)},2663:(e,t,r)=>{"use strict";r.d(t,{t:()=>o});var n=r(24090),i=r(4308),o=new class extends n.Q{#e=!0;#t;#r;constructor(){super(),this.#r=e=>{if(!i.S$&&window.addEventListener){let t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#t||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#r=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}}},3001:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(55729);function i({value:e,defaultValue:t,finalValue:r,onChange:i=()=>{}}){let[o,a]=(0,n.useState)(void 0!==t?t:r),s=(e,...t)=>{a(e),i?.(e,...t)};return void 0!==e?[e,i,!0]:[o,s,!1]}},3140:(e,t,r)=>{"use strict";var n,i=r(17),o=r(74002),a=r(61924),s=r(44451),u=r(43339),c=r(69497),l=r(72206),f=r(7016),d=r(33923),h=r(91925),p=r(37025),m=r(75739),y=r(41605),g=r(41167),b=r(2068),v=Function,_=function(e){try{return v('"use strict"; return ('+e+").constructor;")()}catch(e){}},S=r(27654),E=r(3194),w=function(){throw new l},T=S?function(){try{return arguments.callee,w}catch(e){try{return S(arguments,"callee").get}catch(e){return w}}}():w,x=r(72562)(),A=r(50865),O=r(61429),M=r(92709),R=r(57379),C=r(95185),I={},N="u">typeof Uint8Array&&A?A(Uint8Array):n,P={__proto__:null,"%AggregateError%":"u"typeof Map&&x&&A?A(new Map()[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":i,"%Object.getOwnPropertyDescriptor%":S,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"u"typeof Set&&x&&A?A(new Set()[Symbol.iterator]()):n,"%SharedArrayBuffer%":"u"1&&"boolean"!=typeof t)throw new l('"allowMissing" argument must be a boolean');if(null===V(/^%?[^%]*%?$/,e))throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=H(e),n=r.length>0?r[0]:"",i=W("%"+n+"%",t),o=i.name,a=i.value,s=!1,u=i.alias;u&&(n=u[0],F(r,B([0,1],u)));for(var f=1,d=!0;f=r.length){var y=S(a,h);a=(d=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:a[h]}else d=U(a,h),a=a[h];d&&!s&&(P[o]=a)}}return a}},3194:e=>{"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}e.exports=t},3387:e=>{"use strict";e.exports=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]},3389:(e,t,r)=>{"use strict";r.d(t,{j:()=>i});var n=r(93778);function i(e){let{m:t,mx:r,my:i,mt:o,mb:a,ml:s,mr:u,me:c,ms:l,p:f,px:d,py:h,pt:p,pb:m,pl:y,pr:g,pe:b,ps:v,bd:_,bg:S,c:E,opacity:w,ff:T,fz:x,fw:A,lts:O,ta:M,lh:R,fs:C,tt:I,td:N,w:P,miw:k,maw:D,h:L,mih:j,mah:U,bgsz:B,bgp:F,bgr:z,bga:$,pos:V,top:Y,left:q,bottom:H,right:W,inset:G,display:Z,flex:K,hiddenFrom:X,visibleFrom:J,lightHidden:Q,darkHidden:ee,sx:et,...er}=e;return{styleProps:(0,n.J)({m:t,mx:r,my:i,mt:o,mb:a,ml:s,mr:u,me:c,ms:l,p:f,px:d,py:h,pt:p,pb:m,pl:y,pr:g,pe:b,ps:v,bd:_,bg:S,c:E,opacity:w,ff:T,fz:x,fw:A,lts:O,ta:M,lh:R,fs:C,tt:I,td:N,w:P,miw:k,maw:D,h:L,mih:j,mah:U,bgsz:B,bgp:F,bgr:z,bga:$,pos:V,top:Y,left:q,bottom:H,right:W,inset:G,display:Z,flex:K,hiddenFrom:X,visibleFrom:J,lightHidden:Q,darkHidden:ee,sx:et}),rest:er}}r(55729),r(6029)},3458:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3465:(e,t,r)=>{"use strict";r.d(t,{C:()=>i});var n=r(55729);function i(e,t){let r=(0,n.useRef)(!1);(0,n.useEffect)(()=>()=>{r.current=!1},[]),(0,n.useEffect)(()=>{if(r.current)return e();r.current=!0},t)}},3514:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=i(r(42462));function i(e){return e&&e.__esModule?e:{default:e}}function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e){(0,n.default)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===o(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):(("string"==typeof e||"[object String]"===t)&&"u">typeof console&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(Error().stack)),new Date(NaN))}e.exports=t.default},3635:(e,t,r)=>{"use strict";r.d(t,{Y:()=>m});var n=r(6029),i=r(55729),o=r(76),a=r(5618),s=r(80616),u=r(37666),c=r(60481),l=r(43016);function f(e){return i.Children.toArray(e).filter(Boolean)}var d={root:"m_4081bf90"};let h={preventGrowOverflow:!0,gap:"md",align:"center",justify:"flex-start",wrap:"wrap"},p=(0,a.V)((e,{grow:t,preventGrowOverflow:r,gap:n,align:i,justify:a,wrap:s},{childWidth:u})=>({root:{"--group-child-width":t&&r?u:void 0,"--group-gap":(0,o.GY)(n),"--group-align":i,"--group-justify":a,"--group-wrap":s}})),m=(0,l.P9)((e,t)=>{let r=(0,s.Y)("Group",h,e),{classNames:i,className:a,style:l,styles:m,unstyled:y,children:g,gap:b,align:v,justify:_,wrap:S,grow:E,preventGrowOverflow:w,vars:T,variant:x,__size:A,mod:O,...M}=r,R=f(g),C=R.length,I=(0,o.GY)(b??"md"),N={childWidth:`calc(${100/C}% - (${I} - ${I} / ${C}))`},P=(0,u.I)({name:"Group",props:r,stylesCtx:N,className:a,style:l,classes:d,classNames:i,styles:m,unstyled:y,vars:T,varsResolver:p});return(0,n.jsx)(c.a,{...P("root"),ref:t,variant:x,mod:[{grow:E},O],size:A,...M,children:R})});m.classes=d,m.displayName="@mantine/core/Group"},4308:(e,t,r)=>{"use strict";r.d(t,{BH:()=>m,Cp:()=>p,EN:()=>h,Eh:()=>c,F$:()=>d,MK:()=>l,S$:()=>n,ZM:()=>A,ZZ:()=>T,Zw:()=>o,d2:()=>u,f8:()=>y,gn:()=>a,hT:()=>x,j3:()=>s,lQ:()=>i,nJ:()=>f,pl:()=>S,rX:()=>E,y9:()=>w,yy:()=>_});var n="u"=0&&e!==1/0}function s(e,t){return Math.max(e+(t||0)-Date.now(),0)}function u(e,t){return"function"==typeof e?e(t):e}function c(e,t){return"function"==typeof e?e(t):e}function l(e,t){let{type:r="all",exact:n,fetchStatus:i,predicate:o,queryKey:a,stale:s}=e;if(a){if(n){if(t.queryHash!==d(a,t.options))return!1}else if(!p(t.queryKey,a))return!1}if("all"!==r){let e=t.isActive();if("active"===r&&!e||"inactive"===r&&e)return!1}return("boolean"!=typeof s||t.isStale()===s)&&(!i||i===t.state.fetchStatus)&&(!o||!!o(t))}function f(e,t){let{exact:r,status:n,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(r){if(h(t.options.mutationKey)!==h(o))return!1}else if(!p(t.options.mutationKey,o))return!1}return(!n||t.state.status===n)&&(!i||!!i(t))}function d(e,t){return(t?.queryKeyHashFn||h)(e)}function h(e){return JSON.stringify(e,(e,t)=>b(t)?Object.keys(t).sort().reduce((e,r)=>(e[r]=t[r],e),{}):t)}function p(e,t){return e===t||typeof e==typeof t&&!!e&&!!t&&"object"==typeof e&&"object"==typeof t&&!Object.keys(t).some(r=>!p(e[r],t[r]))}function m(e,t){if(e===t)return e;let r=g(e)&&g(t);if(r||b(e)&&b(t)){let n=r?e:Object.keys(e),i=n.length,o=r?t:Object.keys(t),a=o.length,s=r?[]:{},u=0;for(let i=0;i{setTimeout(t,e)})}function S(e,t,r){return"function"==typeof r.structuralSharing?r.structuralSharing(e,t):!1!==r.structuralSharing?m(e,t):t}function E(e){return e}function w(e,t,r=0){let n=[...e,t];return r&&n.length>r?n.slice(1):n}function T(e,t,r=0){let n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var x=Symbol();function A(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==x?e.queryFn:()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`))}},4404:(e,t,r)=>{"use strict";var n=Array.prototype.slice,i=r(33492),o=Object.keys,a=o?function(e){return o(e)}:r(40174),s=Object.keys;a.shim=function(){return Object.keys?!function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2)&&(Object.keys=function(e){return i(e)?s(n.call(e)):s(e)}):Object.keys=a,Object.keys||a},e.exports=a},5440:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=r(55729).createContext(null)},5618:(e,t,r)=>{"use strict";function n(e){return e}r.d(t,{V:()=>n})},6027:(e,t,r)=>{"use strict";r.d(t,{E:()=>o,q:()=>i});var n={};function i(){return n}function o(e){n=e}},6065:(e,t,r)=>{"use strict";let n,i,o;r.d(t,{NumberParam:()=>a.hc,QueryParamProvider:()=>O,StringParam:()=>a.fr,useQueryParam:()=>U,useQueryParams:()=>D,withDefault:()=>a.IQ});var a=r(28730),s=r(55729);class u{constructor(){this.paramsMap=new Map,this.registeredParams=new Map}set(e,t,r,n){this.paramsMap.set(e,{stringified:t,decoded:r,decode:n})}has(e,t,r){if(!this.paramsMap.has(e))return!1;let n=this.paramsMap.get(e);return!!n&&n.stringified===t&&(null==r||n.decode===r)}get(e){var t;if(this.paramsMap.has(e))return null==(t=this.paramsMap.get(e))?void 0:t.decoded}registerParams(e){for(let t of e){let e=this.registeredParams.get(t)||0;this.registeredParams.set(t,e+1)}}unregisterParams(e){for(let t of e){let e=(this.registeredParams.get(t)||0)-1;e<=0?(this.registeredParams.delete(t),this.paramsMap.has(t)&&this.paramsMap.delete(t)):this.registeredParams.set(t,e)}}clear(){this.paramsMap.clear(),this.registeredParams.clear()}}let c=new u;function l(e,t){var r,n,i;let o={},s=!1,u=Object.keys(e),c=u;if(t.includeKnownParams||!1!==t.includeKnownParams&&0===u.length){let e=Object.keys(null!=(r=t.params)?r:{});c.push(...e)}for(let r of c){let u=e[r];if(null!=u&&"object"==typeof u){o[r]=u;continue}s=!0,o[r]=null!=(i=null==(n=t.params)?void 0:n[r])?i:a.fr}return s?o:e}function f(e,t,r,n){var i;if(!r||!t.length)return e;let o={...e},a=!1;for(let e of t)Object.prototype.hasOwnProperty.call(o,e)||(o[e]=null!=(i=r[e])?i:n,a=!0);return a?o:e}let d=Object.prototype.hasOwnProperty;function h(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function p(e,t,r){var n,i;if(h(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;let o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(let a=0;ae.split("\0")))}function v(e,t){var r;let n={};for(let i in e)(null==(r=t[i])?void 0:r.urlName)!=null?n[t[i].urlName]=e[i]:n[i]=e[i];return n}let _={},S=(e,t,r)=>{if(n===t&&o===e&&i===r)return _;n=t,o=e;let a=e(null!=t?t:"");i=r;let s=b(r);for(let[e,t]of Object.entries(a)){(null==s?void 0:s[e])&&(delete a[e],a[e=s[e]]=t);let r=_[e];p(t,r)&&(a[e]=r)}return _=a,a};function E(e,t){null==t&&(t={});let r={...e,...t};return t.params&&e.params&&(r.params={...e.params,...t.params}),r}let w={adapter:{},options:{searchStringToObject:a.eR,objectToSearchString:a.oO,updateType:"pushIn",includeKnownParams:void 0,includeAllParams:!1,removeDefaultsFromUrl:!1,enableBatching:!1,skipUpdateWhenNoChange:!0}},T=s.createContext(w);function x(){let e=s.useContext(T);if(void 0===e||e===w)throw Error("useQueryParams must be used within a QueryParamProvider");return e}function A({children:e,adapter:t,options:r}){let{adapter:n,options:i}=s.useContext(T),o=s.useMemo(()=>({adapter:null!=t?t:n,options:E(i,r)}),[t,r,n,i]);return s.createElement(T.Provider,{value:o},e)}function O({children:e,adapter:t,options:r}){let n=t;return n?s.createElement(n,null,t=>s.createElement(A,{adapter:t,options:r},e)):s.createElement(A,{options:r},e)}function M(e,t){var r;for(let n in e)(null==(r=t[n])?void 0:r.default)!==void 0&&void 0!==e[n]&&t[n].encode(t[n].default)===e[n]&&(e[n]=void 0)}function R({changes:e,updateType:t,currentSearchString:r,paramConfigMap:n,options:i}){let o,s,u,{searchStringToObject:l,objectToSearchString:d}=i;null==t&&(t=i.updateType);let h=S(l,r),p=f(n,Object.keys(e),i.params);return s="function"==typeof e?e(m(h,p,c)):e,o=(0,a.Vl)(p,s),i.removeDefaultsFromUrl&&M(o,p),o=v(o,p),(null==(u=d("push"===t||"replace"===t?o:{...h,...o}))?void 0:u.length)&&"?"!==u[0]&&(u=`?${u}`),null!=u?u:""}function C({searchString:e,adapter:t,navigate:r,updateType:n}){let i={...t.location,search:e};r&&("string"==typeof n&&n.startsWith("replace")?t.replace(i):t.push(i))}let I=e=>e(),N=e=>setTimeout(()=>e(),0),P=[];function k(e,{immediate:t}={}){P.push(e);let r=t?I:N;1===P.length&&r(()=>{let t,r=P.slice();P.length=0;let n=r[0].currentSearchString;for(let e=0;eE(n,u),[n,u]),h=l(o,d),p=S(d.searchStringToObject,r.location.search,g(h));d.includeAllParams&&(h=f(h,Object.keys(p),d.params,a.fr));let m=i(p,h,c),b=Object.keys(h).join("\0");(0,s.useEffect)(()=>{let e=b.split("\0");return c.registerParams(e),()=>{c.unregisterParams(e)}},[b]);let v={adapter:r,paramConfigMap:h,options:d},_=(0,s.useRef)(v);null==_.current&&(_.current=v),(0,s.useEffect)(()=>{_.current.adapter=r,_.current.paramConfigMap=h,_.current.options=d},[r,h,d]);let[w]=(0,s.useState)(()=>(e,t)=>{let{adapter:r,paramConfigMap:n,options:i}=_.current;null==t&&(t=i.updateType),k({changes:e,updateType:t,currentSearchString:r.location.search,paramConfigMap:n,options:i,adapter:r},{immediate:!i.enableBatching})});return[m,w]}var L=D;function j(e,t){let r;return{paramConfigMap:r=void 0===e?{}:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,"inherit"])):e,options:t}}let U=(e,t,r)=>{let[n,i]=L((0,s.useMemo)(()=>({[e]:null!=t?t:"inherit"}),[e,t]),r);return[n[e],(0,s.useCallback)((t,r)=>"function"==typeof t?i(r=>{let n=t(r[e]);return{[e]:n}},r):i({[e]:t},r),[e,i])]}},6338:(e,t)=>{"use strict";function r(e){return function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.match(e.matchPattern);if(!n)return null;var i=n[0],o=t.match(e.parsePattern);if(!o)return null;var a=e.valueCallback?e.valueCallback(o[0]):o[0];return{value:a=r.valueCallback?r.valueCallback(a):a,rest:t.slice(i.length)}}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r,e.exports=t.default},6385:module=>{var __dirname="/";!function(){var __webpack_modules__={950:function(__unused_webpack_module,exports){var indexOf=function(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0;rtypeof __nccwpck_require__&&(__nccwpck_require__.ab=__dirname+"/");var __nested_webpack_exports__={};__webpack_modules__[950](0,__nested_webpack_exports__),module.exports=__nested_webpack_exports__}()},6406:(e,t,r)=>{"use strict";function n(e,t){return r=>{if("string"!=typeof r||0===r.trim().length)throw Error(t);return`${e}-${r}`}}r.d(t,{r:()=>n})},6663:(e,t,r)=>{"use strict";let n;r.d(t,{qt:()=>eE,tm:()=>ti,Sj:()=>p,Ml:()=>W,n:()=>X,Lr:()=>z,WF:()=>$,eN:()=>ew,hw:()=>e_,aP:()=>V,Xi:()=>ev,jv:()=>er,k1:()=>ey,Vb:()=>eh,kY:()=>o,CZ:()=>ec,Jv:()=>ei,Ih:()=>el,DN:()=>ef,Ut:()=>es,Tq:()=>eS,WM:()=>ep,iS:()=>Z,PQ:()=>H,l1:()=>eb,rS:()=>F,bv:()=>Q,Ii:()=>eg,_c:()=>eT,$i:()=>em,EV:()=>ex,b8:()=>ea,lK:()=>p,Kz:()=>eu,ND:()=>U,K5:()=>Y,BG:()=>ey,y0:()=>eo,aR:()=>p,_Z:()=>q,fZ:()=>ee,_:()=>G,a0:()=>K,bz:()=>eB,YO:()=>eV,o:()=>eP,zM:()=>ek,au:()=>tn,Ie:()=>eO,p6:()=>eD,fm:()=>k,gM:()=>eW,QZ:()=>e4,k5:()=>e2,fH:()=>eQ,Nl:()=>eR,E$:()=>eG,fn:()=>eM,RZ:()=>e0,eu:()=>e1,Tj:()=>eX,oi:()=>eN,fc:()=>e6,Zm:()=>ez,ch:()=>eU,me:()=>e8,ai:()=>eI,Ik:()=>eY,yN:()=>tr,p7:()=>tt,lq:()=>e5,Di:()=>te,Tk:()=>e7,vk:()=>e9,iv:()=>e3,g1:()=>eK,hZ:()=>eJ,re:()=>eq,Yj:()=>eC,HR:()=>eL,Gu:()=>e4,PV:()=>eZ,Vx:()=>ej,KC:()=>eH,L5:()=>eF,rI:()=>e$});var i,o,a=r(64892),s=r(78974),u=r(19086);!function(e){e.errToObj=e=>"string"==typeof e?{message:e}:e||{},e.toString=e=>"string"==typeof e?e:e?.message}(i||(i={}));var c=r(8722),l=r(45859);class f{constructor(e,t,r,n){this._cachedPath=[],this.parent=e,this.data=t,this._path=r,this._key=n}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}let d=(e,t)=>{if((0,c.fn)(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let t=new a.G(e.common.issues);return this._error=t,this._error}}};function h(e){if(!e)return{};let{errorMap:t,invalid_type_error:r,required_error:n,description:i}=e;if(t&&(r||n))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:i}:{errorMap:(t,i)=>{let{message:o}=e;return"invalid_enum_value"===t.code?{message:o??i.defaultError}:void 0===i.data?{message:o??n??i.defaultError}:"invalid_type"!==t.code?{message:i.defaultError}:{message:o??r??i.defaultError}},description:i}}class p{get description(){return this._def.description}_getType(e){return(0,l.CR)(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:(0,l.CR)(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new c.MY,ctx:{common:e.parent.common,data:e.data,parsedType:(0,l.CR)(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if((0,c.xP)(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){return Promise.resolve(this._parse(e))}parse(e,t){let r=this.safeParse(e,t);if(r.success)return r.data;throw r.error}safeParse(e,t){let r={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,l.CR)(e)},n=this._parseSync({data:e,path:r.path,parent:r});return d(r,n)}"~validate"(e){let t={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,l.CR)(e)};if(!this["~standard"].async)try{let r=this._parseSync({data:e,path:[],parent:t});return(0,c.fn)(r)?{value:r.value}:{issues:t.common.issues}}catch(e){e?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then(e=>(0,c.fn)(e)?{value:e.value}:{issues:t.common.issues})}async parseAsync(e,t){let r=await this.safeParseAsync(e,t);if(r.success)return r.data;throw r.error}async safeParseAsync(e,t){let r={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,l.CR)(e)},n=this._parse({data:e,path:r.path,parent:r});return d(r,await ((0,c.xP)(n)?n:Promise.resolve(n)))}refine(e,t){let r=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement((t,n)=>{let i=e(t),o=()=>n.addIssue({code:a.eq.custom,...r(t)});return"u">typeof Promise&&i instanceof Promise?i.then(e=>!!e||(o(),!1)):!!i||(o(),!1)})}refinement(e,t){return this._refinement((r,n)=>!!e(r)||(n.addIssue("function"==typeof t?t(r,n):t),!1))}_refinement(e){return new ey({schema:this,typeName:o.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:e=>this["~validate"](e)}}optional(){return eg.create(this,this._def)}nullable(){return eb.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return X.create(this)}promise(){return em.create(this,this._def)}or(e){return ee.create([this,e],this._def)}and(e){return ei.create(this,e,this._def)}transform(e){return new ey({...h(this._def),schema:this,typeName:o.ZodEffects,effect:{type:"transform",transform:e}})}default(e){let t="function"==typeof e?e:()=>e;return new ev({...h(this._def),innerType:this,defaultValue:t,typeName:o.ZodDefault})}brand(){return new ew({typeName:o.ZodBranded,type:this,...h(this._def)})}catch(e){let t="function"==typeof e?e:()=>e;return new e_({...h(this._def),innerType:this,catchValue:t,typeName:o.ZodCatch})}describe(e){return new this.constructor({...this._def,description:e})}pipe(e){return eT.create(this,e)}readonly(){return ex.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let m=/^c[^\s-]{8,}$/i,y=/^[0-9a-z]+$/,g=/^[0-9A-HJKMNP-TV-Z]{26}$/i,b=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,v=/^[a-z0-9_-]{21}$/i,_=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,S=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,E=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,w="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",T=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,x=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,A=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,O=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,M=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,R=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,C="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",I=RegExp(`^${C}$`);function N(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`);let r=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${r}`}function P(e){return RegExp(`^${N(e)}$`)}function k(e){let t=`${C}T${N(e)}`,r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,RegExp(`^${t}$`)}function D(e,t){return!!(("v4"===t||!t)&&T.test(e)||("v6"===t||!t)&&A.test(e))}function L(e,t){if(!_.test(e))return!1;try{let[r]=e.split(".");if(!r)return!1;let n=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),i=JSON.parse(atob(n));if("object"!=typeof i||null===i||"typ"in i&&i?.typ!=="JWT"||!i.alg||t&&i.alg!==t)return!1;return!0}catch{return!1}}function j(e,t){return!!(("v4"===t||!t)&&x.test(e)||("v6"===t||!t)&&O.test(e))}class U extends p{_parse(e){let t;if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==l.Zp.string){let t=this._getOrReturnCtx(e);return(0,c.zn)(t,{code:a.eq.invalid_type,expected:l.Zp.string,received:t.parsedType}),c.uY}let r=new c.MY;for(let i of this._def.checks)if("min"===i.kind)e.data.lengthi.value&&(t=this._getOrReturnCtx(e,t),(0,c.zn)(t,{code:a.eq.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if("length"===i.kind){let n=e.data.length>i.value,o=e.data.lengthe.test(t),{validation:t,code:a.eq.invalid_string,...i.errToObj(r)})}_addCheck(e){return new U({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...i.errToObj(e)})}url(e){return this._addCheck({kind:"url",...i.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...i.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...i.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...i.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...i.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...i.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...i.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...i.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...i.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...i.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...i.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...i.errToObj(e)})}datetime(e){return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===e?.precision?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...i.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:void 0===e?.precision?null:e?.precision,...i.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...i.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...i.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t?.position,...i.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...i.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...i.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...i.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...i.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...i.errToObj(t)})}nonempty(e){return this.min(1,i.errToObj(e))}trim(){return new U({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new U({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new U({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>"datetime"===e.kind)}get isDate(){return!!this._def.checks.find(e=>"date"===e.kind)}get isTime(){return!!this._def.checks.find(e=>"time"===e.kind)}get isDuration(){return!!this._def.checks.find(e=>"duration"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>"emoji"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isNANOID(){return!!this._def.checks.find(e=>"nanoid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>"cuid2"===e.kind)}get isULID(){return!!this._def.checks.find(e=>"ulid"===e.kind)}get isIP(){return!!this._def.checks.find(e=>"ip"===e.kind)}get isCIDR(){return!!this._def.checks.find(e=>"cidr"===e.kind)}get isBase64(){return!!this._def.checks.find(e=>"base64"===e.kind)}get isBase64url(){return!!this._def.checks.find(e=>"base64url"===e.kind)}get minLength(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.valuen?r:n;return Number.parseInt(e.toFixed(i).replace(".",""))%Number.parseInt(t.toFixed(i).replace(".",""))/10**i}U.create=e=>new U({checks:[],typeName:o.ZodString,coerce:e?.coerce??!1,...h(e)});class F extends p{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){let t;if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==l.Zp.number){let t=this._getOrReturnCtx(e);return(0,c.zn)(t,{code:a.eq.invalid_type,expected:l.Zp.number,received:t.parsedType}),c.uY}let r=new c.MY;for(let n of this._def.checks)"int"===n.kind?l.ZS.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),(0,c.zn)(t,{code:a.eq.invalid_type,expected:"integer",received:"float",message:n.message}),r.dirty()):"min"===n.kind?(n.inclusive?e.datan.value:e.data>=n.value)&&(t=this._getOrReturnCtx(e,t),(0,c.zn)(t,{code:a.eq.too_big,maximum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),r.dirty()):"multipleOf"===n.kind?0!==B(e.data,n.value)&&(t=this._getOrReturnCtx(e,t),(0,c.zn)(t,{code:a.eq.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):"finite"===n.kind?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),(0,c.zn)(t,{code:a.eq.not_finite,message:n.message}),r.dirty()):l.ZS.assertNever(n);return{status:r.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,i.toString(t))}gt(e,t){return this.setLimit("min",e,!1,i.toString(t))}lte(e,t){return this.setLimit("max",e,!0,i.toString(t))}lt(e,t){return this.setLimit("max",e,!1,i.toString(t))}setLimit(e,t,r,n){return new F({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:i.toString(n)}]})}_addCheck(e){return new F({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:i.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:i.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:i.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:i.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:i.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:i.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:i.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:i.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:i.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value"int"===e.kind||"multipleOf"===e.kind&&l.ZS.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let r of this._def.checks)if("finite"===r.kind||"int"===r.kind||"multipleOf"===r.kind)return!0;else"min"===r.kind?(null===t||r.value>t)&&(t=r.value):"max"===r.kind&&(null===e||r.valuenew F({checks:[],typeName:o.ZodNumber,coerce:e?.coerce||!1,...h(e)});class z extends p{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){let t;if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==l.Zp.bigint)return this._getInvalidInput(e);let r=new c.MY;for(let n of this._def.checks)"min"===n.kind?(n.inclusive?e.datan.value:e.data>=n.value)&&(t=this._getOrReturnCtx(e,t),(0,c.zn)(t,{code:a.eq.too_big,type:"bigint",maximum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty()):"multipleOf"===n.kind?e.data%n.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),(0,c.zn)(t,{code:a.eq.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):l.ZS.assertNever(n);return{status:r.value,value:e.data}}_getInvalidInput(e){let t=this._getOrReturnCtx(e);return(0,c.zn)(t,{code:a.eq.invalid_type,expected:l.Zp.bigint,received:t.parsedType}),c.uY}gte(e,t){return this.setLimit("min",e,!0,i.toString(t))}gt(e,t){return this.setLimit("min",e,!1,i.toString(t))}lte(e,t){return this.setLimit("max",e,!0,i.toString(t))}lt(e,t){return this.setLimit("max",e,!1,i.toString(t))}setLimit(e,t,r,n){return new z({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:i.toString(n)}]})}_addCheck(e){return new z({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:i.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:i.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:i.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:i.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:i.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.valuenew z({checks:[],typeName:o.ZodBigInt,coerce:e?.coerce??!1,...h(e)});class $ extends p{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==l.Zp.boolean){let t=this._getOrReturnCtx(e);return(0,c.zn)(t,{code:a.eq.invalid_type,expected:l.Zp.boolean,received:t.parsedType}),c.uY}return(0,c.OK)(e.data)}}$.create=e=>new $({typeName:o.ZodBoolean,coerce:e?.coerce||!1,...h(e)});class V extends p{_parse(e){let t;if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==l.Zp.date){let t=this._getOrReturnCtx(e);return(0,c.zn)(t,{code:a.eq.invalid_type,expected:l.Zp.date,received:t.parsedType}),c.uY}if(Number.isNaN(e.data.getTime())){let t=this._getOrReturnCtx(e);return(0,c.zn)(t,{code:a.eq.invalid_date}),c.uY}let r=new c.MY;for(let n of this._def.checks)"min"===n.kind?e.data.getTime()n.value&&(t=this._getOrReturnCtx(e,t),(0,c.zn)(t,{code:a.eq.too_big,message:n.message,inclusive:!0,exact:!1,maximum:n.value,type:"date"}),r.dirty()):l.ZS.assertNever(n);return{status:r.value,value:new Date(e.data.getTime())}}_addCheck(e){return new V({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:i.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:i.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.valuenew V({checks:[],coerce:e?.coerce||!1,typeName:o.ZodDate,...h(e)});class Y extends p{_parse(e){if(this._getType(e)!==l.Zp.symbol){let t=this._getOrReturnCtx(e);return(0,c.zn)(t,{code:a.eq.invalid_type,expected:l.Zp.symbol,received:t.parsedType}),c.uY}return(0,c.OK)(e.data)}}Y.create=e=>new Y({typeName:o.ZodSymbol,...h(e)});class q extends p{_parse(e){if(this._getType(e)!==l.Zp.undefined){let t=this._getOrReturnCtx(e);return(0,c.zn)(t,{code:a.eq.invalid_type,expected:l.Zp.undefined,received:t.parsedType}),c.uY}return(0,c.OK)(e.data)}}q.create=e=>new q({typeName:o.ZodUndefined,...h(e)});class H extends p{_parse(e){if(this._getType(e)!==l.Zp.null){let t=this._getOrReturnCtx(e);return(0,c.zn)(t,{code:a.eq.invalid_type,expected:l.Zp.null,received:t.parsedType}),c.uY}return(0,c.OK)(e.data)}}H.create=e=>new H({typeName:o.ZodNull,...h(e)});class W extends p{constructor(){super(...arguments),this._any=!0}_parse(e){return(0,c.OK)(e.data)}}W.create=e=>new W({typeName:o.ZodAny,...h(e)});class G extends p{constructor(){super(...arguments),this._unknown=!0}_parse(e){return(0,c.OK)(e.data)}}G.create=e=>new G({typeName:o.ZodUnknown,...h(e)});class Z extends p{_parse(e){let t=this._getOrReturnCtx(e);return(0,c.zn)(t,{code:a.eq.invalid_type,expected:l.Zp.never,received:t.parsedType}),c.uY}}Z.create=e=>new Z({typeName:o.ZodNever,...h(e)});class K extends p{_parse(e){if(this._getType(e)!==l.Zp.undefined){let t=this._getOrReturnCtx(e);return(0,c.zn)(t,{code:a.eq.invalid_type,expected:l.Zp.void,received:t.parsedType}),c.uY}return(0,c.OK)(e.data)}}K.create=e=>new K({typeName:o.ZodVoid,...h(e)});class X extends p{_parse(e){let{ctx:t,status:r}=this._processInputParams(e),n=this._def;if(t.parsedType!==l.Zp.array)return(0,c.zn)(t,{code:a.eq.invalid_type,expected:l.Zp.array,received:t.parsedType}),c.uY;if(null!==n.exactLength){let e=t.data.length>n.exactLength.value,i=t.data.lengthn.maxLength.value&&((0,c.zn)(t,{code:a.eq.too_big,maximum:n.maxLength.value,type:"array",inclusive:!0,exact:!1,message:n.maxLength.message}),r.dirty()),t.common.async)return Promise.all([...t.data].map((e,r)=>n.type._parseAsync(new f(t,e,t.path,r)))).then(e=>c.MY.mergeArray(r,e));let i=[...t.data].map((e,r)=>n.type._parseSync(new f(t,e,t.path,r)));return c.MY.mergeArray(r,i)}get element(){return this._def.type}min(e,t){return new X({...this._def,minLength:{value:e,message:i.toString(t)}})}max(e,t){return new X({...this._def,maxLength:{value:e,message:i.toString(t)}})}length(e,t){return new X({...this._def,exactLength:{value:e,message:i.toString(t)}})}nonempty(e){return this.min(1,e)}}function J(e){if(e instanceof Q){let t={};for(let r in e.shape){let n=e.shape[r];t[r]=eg.create(J(n))}return new Q({...e._def,shape:()=>t})}if(e instanceof X)return new X({...e._def,type:J(e.element)});if(e instanceof eg)return eg.create(J(e.unwrap()));if(e instanceof eb)return eb.create(J(e.unwrap()));if(e instanceof eo)return eo.create(e.items.map(e=>J(e)));else return e}X.create=(e,t)=>new X({type:e,minLength:null,maxLength:null,exactLength:null,typeName:o.ZodArray,...h(t)});class Q extends p{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;let e=this._def.shape(),t=l.ZS.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==l.Zp.object){let t=this._getOrReturnCtx(e);return(0,c.zn)(t,{code:a.eq.invalid_type,expected:l.Zp.object,received:t.parsedType}),c.uY}let{status:t,ctx:r}=this._processInputParams(e),{shape:n,keys:i}=this._getCached(),o=[];if(!(this._def.catchall instanceof Z&&"strip"===this._def.unknownKeys))for(let e in r.data)i.includes(e)||o.push(e);let s=[];for(let e of i){let t=n[e],i=r.data[e];s.push({key:{status:"valid",value:e},value:t._parse(new f(r,i,r.path,e)),alwaysSet:e in r.data})}if(this._def.catchall instanceof Z){let e=this._def.unknownKeys;if("passthrough"===e)for(let e of o)s.push({key:{status:"valid",value:e},value:{status:"valid",value:r.data[e]}});else if("strict"===e)o.length>0&&((0,c.zn)(r,{code:a.eq.unrecognized_keys,keys:o}),t.dirty());else if("strip"===e);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let e=this._def.catchall;for(let t of o){let n=r.data[t];s.push({key:{status:"valid",value:t},value:e._parse(new f(r,n,r.path,t)),alwaysSet:t in r.data})}}return r.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of s){let r=await t.key,n=await t.value;e.push({key:r,value:n,alwaysSet:t.alwaysSet})}return e}).then(e=>c.MY.mergeObjectSync(t,e)):c.MY.mergeObjectSync(t,s)}get shape(){return this._def.shape()}strict(e){return i.errToObj,new Q({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,r)=>{let n=this._def.errorMap?.(t,r).message??r.defaultError;return"unrecognized_keys"===t.code?{message:i.errToObj(e).message??n}:{message:n}}}:{}})}strip(){return new Q({...this._def,unknownKeys:"strip"})}passthrough(){return new Q({...this._def,unknownKeys:"passthrough"})}extend(e){return new Q({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new Q({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:o.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new Q({...this._def,catchall:e})}pick(e){let t={};for(let r of l.ZS.objectKeys(e))e[r]&&this.shape[r]&&(t[r]=this.shape[r]);return new Q({...this._def,shape:()=>t})}omit(e){let t={};for(let r of l.ZS.objectKeys(this.shape))e[r]||(t[r]=this.shape[r]);return new Q({...this._def,shape:()=>t})}deepPartial(){return J(this)}partial(e){let t={};for(let r of l.ZS.objectKeys(this.shape)){let n=this.shape[r];e&&!e[r]?t[r]=n:t[r]=n.optional()}return new Q({...this._def,shape:()=>t})}required(e){let t={};for(let r of l.ZS.objectKeys(this.shape))if(e&&!e[r])t[r]=this.shape[r];else{let e=this.shape[r];for(;e instanceof eg;)e=e._def.innerType;t[r]=e}return new Q({...this._def,shape:()=>t})}keyof(){return ed(l.ZS.objectKeys(this.shape))}}Q.create=(e,t)=>new Q({shape:()=>e,unknownKeys:"strip",catchall:Z.create(),typeName:o.ZodObject,...h(t)}),Q.strictCreate=(e,t)=>new Q({shape:()=>e,unknownKeys:"strict",catchall:Z.create(),typeName:o.ZodObject,...h(t)}),Q.lazycreate=(e,t)=>new Q({shape:e,unknownKeys:"strip",catchall:Z.create(),typeName:o.ZodObject,...h(t)});class ee extends p{_parse(e){let{ctx:t}=this._processInputParams(e),r=this._def.options;function n(e){for(let t of e)if("valid"===t.result.status)return t.result;for(let r of e)if("dirty"===r.result.status)return t.common.issues.push(...r.ctx.common.issues),r.result;let r=e.map(e=>new a.G(e.ctx.common.issues));return(0,c.zn)(t,{code:a.eq.invalid_union,unionErrors:r}),c.uY}if(t.common.async)return Promise.all(r.map(async e=>{let r={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:r}),ctx:r}})).then(n);{let e,n=[];for(let i of r){let r={...t,common:{...t.common,issues:[]},parent:null},o=i._parseSync({data:t.data,path:t.path,parent:r});if("valid"===o.status)return o;"dirty"!==o.status||e||(e={result:o,ctx:r}),r.common.issues.length&&n.push(r.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let i=n.map(e=>new a.G(e));return(0,c.zn)(t,{code:a.eq.invalid_union,unionErrors:i}),c.uY}}get options(){return this._def.options}}ee.create=(e,t)=>new ee({options:e,typeName:o.ZodUnion,...h(t)});let et=e=>{if(e instanceof el)return et(e.schema);if(e instanceof ey)return et(e.innerType());if(e instanceof ef)return[e.value];if(e instanceof eh)return e.options;if(e instanceof ep)return l.ZS.objectValues(e.enum);else if(e instanceof ev)return et(e._def.innerType);else if(e instanceof q)return[void 0];else if(e instanceof H)return[null];else if(e instanceof eg)return[void 0,...et(e.unwrap())];else if(e instanceof eb)return[null,...et(e.unwrap())];else if(e instanceof ew)return et(e.unwrap());else if(e instanceof ex)return et(e.unwrap());else if(e instanceof e_)return et(e._def.innerType);else return[]};class er extends p{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==l.Zp.object)return(0,c.zn)(t,{code:a.eq.invalid_type,expected:l.Zp.object,received:t.parsedType}),c.uY;let r=this.discriminator,n=t.data[r],i=this.optionsMap.get(n);return i?t.common.async?i._parseAsync({data:t.data,path:t.path,parent:t}):i._parseSync({data:t.data,path:t.path,parent:t}):((0,c.zn)(t,{code:a.eq.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),c.uY)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,r){let n=new Map;for(let r of t){let t=et(r.shape[e]);if(!t.length)throw Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let i of t){if(n.has(i))throw Error(`Discriminator property ${String(e)} has duplicate value ${String(i)}`);n.set(i,r)}}return new er({typeName:o.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:n,...h(r)})}}function en(e,t){let r=(0,l.CR)(e),n=(0,l.CR)(t);if(e===t)return{valid:!0,data:e};if(r===l.Zp.object&&n===l.Zp.object){let r=l.ZS.objectKeys(t),n=l.ZS.objectKeys(e).filter(e=>-1!==r.indexOf(e)),i={...e,...t};for(let r of n){let n=en(e[r],t[r]);if(!n.valid)return{valid:!1};i[r]=n.data}return{valid:!0,data:i}}if(r===l.Zp.array&&n===l.Zp.array){if(e.length!==t.length)return{valid:!1};let r=[];for(let n=0;n{if((0,c.G4)(e)||(0,c.G4)(n))return c.uY;let i=en(e.value,n.value);return i.valid?(((0,c.DM)(e)||(0,c.DM)(n))&&t.dirty(),{status:t.value,value:i.data}):((0,c.zn)(r,{code:a.eq.invalid_intersection_types}),c.uY)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([e,t])=>n(e,t)):n(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}ei.create=(e,t,r)=>new ei({left:e,right:t,typeName:o.ZodIntersection,...h(r)});class eo extends p{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==l.Zp.array)return(0,c.zn)(r,{code:a.eq.invalid_type,expected:l.Zp.array,received:r.parsedType}),c.uY;if(r.data.lengththis._def.items.length&&((0,c.zn)(r,{code:a.eq.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let n=[...r.data].map((e,t)=>{let n=this._def.items[t]||this._def.rest;return n?n._parse(new f(r,e,r.path,t)):null}).filter(e=>!!e);return r.common.async?Promise.all(n).then(e=>c.MY.mergeArray(t,e)):c.MY.mergeArray(t,n)}get items(){return this._def.items}rest(e){return new eo({...this._def,rest:e})}}eo.create=(e,t)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new eo({items:e,typeName:o.ZodTuple,rest:null,...h(t)})};class ea extends p{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==l.Zp.object)return(0,c.zn)(r,{code:a.eq.invalid_type,expected:l.Zp.object,received:r.parsedType}),c.uY;let n=[],i=this._def.keyType,o=this._def.valueType;for(let e in r.data)n.push({key:i._parse(new f(r,e,r.path,e)),value:o._parse(new f(r,r.data[e],r.path,e)),alwaysSet:e in r.data});return r.common.async?c.MY.mergeObjectAsync(t,n):c.MY.mergeObjectSync(t,n)}get element(){return this._def.valueType}static create(e,t,r){return new ea(t instanceof p?{keyType:e,valueType:t,typeName:o.ZodRecord,...h(r)}:{keyType:U.create(),valueType:e,typeName:o.ZodRecord,...h(t)})}}class es extends p{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==l.Zp.map)return(0,c.zn)(r,{code:a.eq.invalid_type,expected:l.Zp.map,received:r.parsedType}),c.uY;let n=this._def.keyType,i=this._def.valueType,o=[...r.data.entries()].map(([e,t],o)=>({key:n._parse(new f(r,e,r.path,[o,"key"])),value:i._parse(new f(r,t,r.path,[o,"value"]))}));if(r.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let r of o){let n=await r.key,i=await r.value;if("aborted"===n.status||"aborted"===i.status)return c.uY;("dirty"===n.status||"dirty"===i.status)&&t.dirty(),e.set(n.value,i.value)}return{status:t.value,value:e}})}{let e=new Map;for(let r of o){let n=r.key,i=r.value;if("aborted"===n.status||"aborted"===i.status)return c.uY;("dirty"===n.status||"dirty"===i.status)&&t.dirty(),e.set(n.value,i.value)}return{status:t.value,value:e}}}}es.create=(e,t,r)=>new es({valueType:t,keyType:e,typeName:o.ZodMap,...h(r)});class eu extends p{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==l.Zp.set)return(0,c.zn)(r,{code:a.eq.invalid_type,expected:l.Zp.set,received:r.parsedType}),c.uY;let n=this._def;null!==n.minSize&&r.data.sizen.maxSize.value&&((0,c.zn)(r,{code:a.eq.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),t.dirty());let i=this._def.valueType;function o(e){let r=new Set;for(let n of e){if("aborted"===n.status)return c.uY;"dirty"===n.status&&t.dirty(),r.add(n.value)}return{status:t.value,value:r}}let s=[...r.data.values()].map((e,t)=>i._parse(new f(r,e,r.path,t)));return r.common.async?Promise.all(s).then(e=>o(e)):o(s)}min(e,t){return new eu({...this._def,minSize:{value:e,message:i.toString(t)}})}max(e,t){return new eu({...this._def,maxSize:{value:e,message:i.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}eu.create=(e,t)=>new eu({valueType:e,minSize:null,maxSize:null,typeName:o.ZodSet,...h(t)});class ec extends p{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==l.Zp.function)return(0,c.zn)(t,{code:a.eq.invalid_type,expected:l.Zp.function,received:t.parsedType}),c.uY;function r(e,r){return(0,c.y7)({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,(0,s.$W)(),u.A].filter(e=>!!e),issueData:{code:a.eq.invalid_arguments,argumentsError:r}})}function n(e,r){return(0,c.y7)({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,(0,s.$W)(),u.A].filter(e=>!!e),issueData:{code:a.eq.invalid_return_type,returnTypeError:r}})}let i={errorMap:t.common.contextualErrorMap},o=t.data;if(this._def.returns instanceof em){let e=this;return(0,c.OK)(async function(...t){let s=new a.G([]),u=await e._def.args.parseAsync(t,i).catch(e=>{throw s.addIssue(r(t,e)),s}),c=await Reflect.apply(o,this,u);return await e._def.returns._def.type.parseAsync(c,i).catch(e=>{throw s.addIssue(n(c,e)),s})})}{let e=this;return(0,c.OK)(function(...t){let s=e._def.args.safeParse(t,i);if(!s.success)throw new a.G([r(t,s.error)]);let u=Reflect.apply(o,this,s.data),c=e._def.returns.safeParse(u,i);if(!c.success)throw new a.G([n(u,c.error)]);return c.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new ec({...this._def,args:eo.create(e).rest(G.create())})}returns(e){return new ec({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,r){return new ec({args:e||eo.create([]).rest(G.create()),returns:t||G.create(),typeName:o.ZodFunction,...h(r)})}}class el extends p{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}el.create=(e,t)=>new el({getter:e,typeName:o.ZodLazy,...h(t)});class ef extends p{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return(0,c.zn)(t,{received:t.data,code:a.eq.invalid_literal,expected:this._def.value}),c.uY}return{status:"valid",value:e.data}}get value(){return this._def.value}}function ed(e,t){return new eh({values:e,typeName:o.ZodEnum,...h(t)})}ef.create=(e,t)=>new ef({value:e,typeName:o.ZodLiteral,...h(t)});class eh extends p{_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),r=this._def.values;return(0,c.zn)(t,{expected:l.ZS.joinValues(r),received:t.parsedType,code:a.eq.invalid_type}),c.uY}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){let t=this._getOrReturnCtx(e),r=this._def.values;return(0,c.zn)(t,{received:t.data,code:a.eq.invalid_enum_value,options:r}),c.uY}return(0,c.OK)(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return eh.create(e,{...this._def,...t})}exclude(e,t=this._def){return eh.create(this.options.filter(t=>!e.includes(t)),{...this._def,...t})}}eh.create=ed;class ep extends p{_parse(e){let t=l.ZS.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==l.Zp.string&&r.parsedType!==l.Zp.number){let e=l.ZS.objectValues(t);return(0,c.zn)(r,{expected:l.ZS.joinValues(e),received:r.parsedType,code:a.eq.invalid_type}),c.uY}if(this._cache||(this._cache=new Set(l.ZS.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){let e=l.ZS.objectValues(t);return(0,c.zn)(r,{received:r.data,code:a.eq.invalid_enum_value,options:e}),c.uY}return(0,c.OK)(e.data)}get enum(){return this._def.values}}ep.create=(e,t)=>new ep({values:e,typeName:o.ZodNativeEnum,...h(t)});class em extends p{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==l.Zp.promise&&!1===t.common.async)return(0,c.zn)(t,{code:a.eq.invalid_type,expected:l.Zp.promise,received:t.parsedType}),c.uY;let r=t.parsedType===l.Zp.promise?t.data:Promise.resolve(t.data);return(0,c.OK)(r.then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}em.create=(e,t)=>new em({type:e,typeName:o.ZodPromise,...h(t)});class ey extends p{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===o.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:r}=this._processInputParams(e),n=this._def.effect||null,i={addIssue:e=>{(0,c.zn)(r,e),e.fatal?t.abort():t.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),"preprocess"===n.type){let e=n.transform(r.data,i);if(r.common.async)return Promise.resolve(e).then(async e=>{if("aborted"===t.value)return c.uY;let n=await this._def.schema._parseAsync({data:e,path:r.path,parent:r});return"aborted"===n.status?c.uY:"dirty"===n.status||"dirty"===t.value?(0,c.jm)(n.value):n});{if("aborted"===t.value)return c.uY;let n=this._def.schema._parseSync({data:e,path:r.path,parent:r});return"aborted"===n.status?c.uY:"dirty"===n.status||"dirty"===t.value?(0,c.jm)(n.value):n}}if("refinement"===n.type){let e=e=>{let t=n.refinement(e,i);if(r.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(r=>"aborted"===r.status?c.uY:("dirty"===r.status&&t.dirty(),e(r.value).then(()=>({status:t.value,value:r.value}))));{let n=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===n.status?c.uY:("dirty"===n.status&&t.dirty(),e(n.value),{status:t.value,value:n.value})}}if("transform"===n.type)if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(e=>(0,c.fn)(e)?Promise.resolve(n.transform(e.value,i)).then(e=>({status:t.value,value:e})):c.uY);else{let e=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!(0,c.fn)(e))return c.uY;let o=n.transform(e.value,i);if(o instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:o}}l.ZS.assertNever(n)}}ey.create=(e,t,r)=>new ey({schema:e,typeName:o.ZodEffects,effect:t,...h(r)}),ey.createWithPreprocess=(e,t,r)=>new ey({schema:t,effect:{type:"preprocess",transform:e},typeName:o.ZodEffects,...h(r)});class eg extends p{_parse(e){return this._getType(e)===l.Zp.undefined?(0,c.OK)(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}eg.create=(e,t)=>new eg({innerType:e,typeName:o.ZodOptional,...h(t)});class eb extends p{_parse(e){return this._getType(e)===l.Zp.null?(0,c.OK)(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}eb.create=(e,t)=>new eb({innerType:e,typeName:o.ZodNullable,...h(t)});class ev extends p{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return t.parsedType===l.Zp.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}ev.create=(e,t)=>new ev({innerType:e,typeName:o.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...h(t)});class e_ extends p{_parse(e){let{ctx:t}=this._processInputParams(e),r={...t,common:{...t.common,issues:[]}},n=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return(0,c.xP)(n)?n.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new a.G(r.common.issues)},input:r.data})})):{status:"valid",value:"valid"===n.status?n.value:this._def.catchValue({get error(){return new a.G(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}e_.create=(e,t)=>new e_({innerType:e,typeName:o.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...h(t)});class eS extends p{_parse(e){if(this._getType(e)!==l.Zp.nan){let t=this._getOrReturnCtx(e);return(0,c.zn)(t,{code:a.eq.invalid_type,expected:l.Zp.nan,received:t.parsedType}),c.uY}return{status:"valid",value:e.data}}}eS.create=e=>new eS({typeName:o.ZodNaN,...h(e)});let eE=Symbol("zod_brand");class ew extends p{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return this._def.type._parse({data:r,path:t.path,parent:t})}unwrap(){return this._def.type}}class eT extends p{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?c.uY:"dirty"===e.status?(t.dirty(),(0,c.jm)(e.value)):this._def.out._parseAsync({data:e.value,path:r.path,parent:r})})();{let e=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?c.uY:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:r.path,parent:r})}}static create(e,t){return new eT({in:e,out:t,typeName:o.ZodPipeline})}}class ex extends p{_parse(e){let t=this._def.innerType._parse(e),r=e=>((0,c.fn)(e)&&(e.value=Object.freeze(e.value)),e);return(0,c.xP)(t)?t.then(e=>r(e)):r(t)}unwrap(){return this._def.innerType}}function eA(e,t){let r="function"==typeof e?e(t):"string"==typeof e?{message:e}:e;return"string"==typeof r?{message:r}:r}function eO(e,t={},r){return e?W.create().superRefine((n,i)=>{let o=e(n);if(o instanceof Promise)return o.then(e=>{if(!e){let e=eA(t,n),o=e.fatal??r??!0;i.addIssue({code:"custom",...e,fatal:o})}});if(!o){let e=eA(t,n),o=e.fatal??r??!0;i.addIssue({code:"custom",...e,fatal:o})}}):W.create()}ex.create=(e,t)=>new ex({innerType:e,typeName:o.ZodReadonly,...h(t)});let eM={object:Q.lazycreate};!function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"}(o||(o={}));let eR=(e,t={message:`Input not instance of ${e.name}`})=>eO(t=>t instanceof e,t),eC=U.create,eI=F.create,eN=eS.create,eP=z.create,ek=$.create,eD=V.create,eL=Y.create,ej=q.create,eU=H.create,eB=W.create,eF=G.create,ez=Z.create,e$=K.create,eV=X.create,eY=Q.create,eq=Q.strictCreate,eH=ee.create,eW=er.create,eG=ei.create,eZ=eo.create,eK=ea.create,eX=es.create,eJ=eu.create,eQ=ec.create,e0=el.create,e1=ef.create,e2=eh.create,e6=ep.create,e3=em.create,e4=ey.create,e5=eg.create,e8=eb.create,e9=ey.createWithPreprocess,e7=eT.create,te=()=>eC().optional(),tt=()=>eI().optional(),tr=()=>ek().optional(),tn={string:e=>U.create({...e,coerce:!0}),number:e=>F.create({...e,coerce:!0}),boolean:e=>$.create({...e,coerce:!0}),bigint:e=>z.create({...e,coerce:!0}),date:e=>V.create({...e,coerce:!0})},ti=c.uY},7016:e=>{"use strict";e.exports=URIError},7686:e=>{e.exports={style:{fontFamily:"'IBM Plex Mono', 'IBM Plex Mono Fallback'",fontStyle:"normal"},className:"__className_713f3f",variable:"__variable_713f3f"}},7978:e=>{"use strict";e.exports="u">typeof Reflect&&Reflect&&Reflect.apply},8722:(e,t,r)=>{"use strict";r.d(t,{DM:()=>h,G4:()=>d,I3:()=>a,MY:()=>u,OK:()=>f,fn:()=>p,jm:()=>l,uY:()=>c,xP:()=>m,y7:()=>o,zn:()=>s});var n=r(78974),i=r(19086);let o=e=>{let{data:t,path:r,errorMaps:n,issueData:i}=e,o=[...r,...i.path||[]],a={...i,path:o};if(void 0!==i.message)return{...i,path:o,message:i.message};let s="";for(let e of n.filter(e=>!!e).slice().reverse())s=e(a,{data:t,defaultError:s}).message;return{...i,path:o,message:s}},a=[];function s(e,t){let r=(0,n.$W)(),a=o({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===i.A?void 0:i.A].filter(e=>!!e)});e.common.issues.push(a)}class u{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){let r=[];for(let n of t){if("aborted"===n.status)return c;"dirty"===n.status&&e.dirty(),r.push(n.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,t){let r=[];for(let e of t){let t=await e.key,n=await e.value;r.push({key:t,value:n})}return u.mergeObjectSync(e,r)}static mergeObjectSync(e,t){let r={};for(let n of t){let{key:t,value:i}=n;if("aborted"===t.status||"aborted"===i.status)return c;"dirty"===t.status&&e.dirty(),"dirty"===i.status&&e.dirty(),"__proto__"!==t.value&&(void 0!==i.value||n.alwaysSet)&&(r[t.value]=i.value)}return{status:e.value,value:r}}}let c=Object.freeze({status:"aborted"}),l=e=>({status:"dirty",value:e}),f=e=>({status:"valid",value:e}),d=e=>"aborted"===e.status,h=e=>"dirty"===e.status,p=e=>"valid"===e.status,m=e=>"u">typeof Promise&&e instanceof Promise},8737:(e,t,r)=>{"use strict";r.d(t,{N:()=>l});var n=r(6029);r(55729);var i=r(80616),o=r(37666),a=r(60481),s=r(63863),u={root:"m_87cf2631"};let c={__staticSelector:"UnstyledButton"},l=(0,s.v)((e,t)=>{let r=(0,i.Y)("UnstyledButton",c,e),{className:s,component:l="button",__staticSelector:f,unstyled:d,classNames:h,styles:p,style:m,...y}=r,g=(0,o.I)({name:f,props:r,classes:u,className:s,style:m,classNames:h,styles:p,unstyled:d});return(0,n.jsx)(a.a,{...g("root",{focusable:!0}),component:l,ref:t,type:"button"===l?"button":void 0,...y})});l.classes=u,l.displayName="@mantine/core/UnstyledButton"},8804:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var n=r(6027),i=r(96442),o=r(91715),a=r(77561),s=r(97895),u=r(41742),c=r(79849),l=r(89250),f=r(80577);function d(e,t,r){(0,l.A)(2,arguments);var d,h,p,m,y,g,b,v,_,S,E,w=(0,u.A)(e),T=(0,u.A)(t),x=(0,n.q)(),A=null!=(d=null!=(h=null==r?void 0:r.locale)?h:x.locale)?d:a.A,O=(0,f.A)(null!=(p=null!=(m=null!=(y=null!=(g=null==r?void 0:r.weekStartsOn)?g:null==r||null==(b=r.locale)||null==(v=b.options)?void 0:v.weekStartsOn)?y:x.weekStartsOn)?m:null==(_=x.locale)||null==(S=_.options)?void 0:S.weekStartsOn)?p:0);if(!A.localize)throw RangeError("locale must contain localize property");if(!A.formatLong)throw RangeError("locale must contain formatLong property");if(!A.formatRelative)throw RangeError("locale must contain formatRelative property");var M=(0,i.A)(w,T);if(isNaN(M))throw RangeError("Invalid time value");E=M<-6?"other":M<-1?"lastWeek":M<0?"yesterday":M<1?"today":M<2?"tomorrow":M<7?"nextWeek":"other";var R=(0,s.A)(w,(0,c.A)(w)),C=(0,s.A)(T,(0,c.A)(T)),I=A.formatRelative(E,R,C,{locale:A,weekStartsOn:O});return(0,o.A)(w,I,{locale:A,weekStartsOn:O})}},9069:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getRedirectError:function(){return a},getRedirectStatusCodeFromError:function(){return f},getRedirectTypeFromError:function(){return l},getURLFromRedirectError:function(){return c},permanentRedirect:function(){return u},redirect:function(){return s}});let n=r(84732),i=r(54918),o;function a(e,t,r=n.RedirectStatusCode.TemporaryRedirect){let o=Object.defineProperty(Error(i.REDIRECT_ERROR_CODE),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return o.digest=`${i.REDIRECT_ERROR_CODE};${t};${e};${r};`,o}function s(e,t){throw a(e,t??=o?.getStore()?.isAction?i.RedirectType.push:i.RedirectType.replace,n.RedirectStatusCode.TemporaryRedirect)}function u(e,t=i.RedirectType.replace){throw a(e,t,n.RedirectStatusCode.PermanentRedirect)}function c(e){return(0,i.isRedirectError)(e)?e.digest.split(";").slice(2,-2).join(";"):null}function l(e){if(!(0,i.isRedirectError)(e))throw Object.defineProperty(Error("Not a redirect error"),"__NEXT_ERROR_CODE",{value:"E260",enumerable:!1,configurable:!0});return e.digest.split(";",2)[1]}function f(e){if(!(0,i.isRedirectError)(e))throw Object.defineProperty(Error("Not a redirect error"),"__NEXT_ERROR_CODE",{value:"E260",enumerable:!1,configurable:!0});return Number(e.digest.split(";").at(-2))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9617:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var n=a(r(872)),i=a(r(10275)),o=a(r(88015));function a(e){return e&&e.__esModule?e:{default:e}}var s=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function u(e,t,r){var a=String(t),u=r||{},c=a.match(s);if(c){var l=(0,o.default)(e,u);a=c.reduce(function(e,t){if("'"===t[0])return e;var r=e.indexOf(t),n="'"===e[r-1],o=e.replace(t,"'"+i.default[t[0]](l,t,null,u)+"'");return n?o.substring(0,r-1)+o.substring(r+1):o},a)}return(0,n.default)(e,a,u)}e.exports=t.default},9825:(e,t,r)=>{"use strict";r.d(t,{c:()=>i});var n=r(55729);function i(e){let t=(0,n.useRef)(e);return(0,n.useEffect)(()=>{t.current=e}),(0,n.useMemo)(()=>(...e)=>t.current?.(...e),[])}},9953:(e,t,r)=>{"use strict";r.d(t,{A:()=>U});var n=r(6029),i=r(55729),o=r(3001),a=r(74003);function s(e,t,r="ltr"){let n=(0,i.useRef)(null),o=(0,i.useRef)(!1),u=(0,i.useRef)(!1),c=(0,i.useRef)(0),[l,f]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{o.current=!0},[]),(0,i.useEffect)(()=>{let i=n.current,s=({x:t,y:n})=>{cancelAnimationFrame(c.current),c.current=requestAnimationFrame(()=>{if(o.current&&i){i.style.userSelect="none";let o=i.getBoundingClientRect();if(o.width&&o.height){let i=(0,a.q)((t-o.left)/o.width,0,1);e({x:"ltr"===r?i:1-i,y:(0,a.q)((n-o.top)/o.height,0,1)})}}})},l=()=>{document.addEventListener("mousemove",y),document.addEventListener("mouseup",p),document.addEventListener("touchmove",b),document.addEventListener("touchend",p)},d=()=>{document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",p),document.removeEventListener("touchmove",b),document.removeEventListener("touchend",p)},h=()=>{!u.current&&o.current&&(u.current=!0,"function"==typeof t?.onScrubStart&&t.onScrubStart(),f(!0),l())},p=()=>{u.current&&o.current&&(u.current=!1,f(!1),d(),setTimeout(()=>{"function"==typeof t?.onScrubEnd&&t.onScrubEnd()},0))},m=e=>{h(),e.preventDefault(),y(e)},y=e=>s({x:e.clientX,y:e.clientY}),g=e=>{e.cancelable&&e.preventDefault(),h(),b(e)},b=e=>{e.cancelable&&e.preventDefault(),s({x:e.changedTouches[0].clientX,y:e.changedTouches[0].clientY})};return i?.addEventListener("mousedown",m),i?.addEventListener("touchstart",g,{passive:!1}),()=>{i&&(i.removeEventListener("mousedown",m),i.removeEventListener("touchstart",g))}},[r,e]),{ref:n,active:l}}var u=r(56655),c=r(26615),l=r(76);function f(e,t){return 0===t.length?e:t.reduce((t,r)=>Math.abs(r-e){let{getStyles:c}=v();return(0,n.jsx)(_.a,{tabIndex:-1,variant:r,size:e,ref:u,...c("root"),...s})});S.displayName="@mantine/core/SliderRoot";var E=r(56738);let w=(0,i.forwardRef)(({max:e,min:t,value:r,position:o,label:a,dragging:s,onMouseDown:u,onKeyDownCapture:c,labelTransitionProps:l,labelAlwaysOn:f,thumbLabel:d,onFocus:h,onBlur:p,showLabelOnHover:m,isHovered:y,children:g=null,disabled:b},S)=>{let{getStyles:w}=v(),[T,x]=(0,i.useState)(!1),A=f||s||T||m&&y;return(0,n.jsxs)(_.a,{tabIndex:0,role:"slider","aria-label":d,"aria-valuemax":e,"aria-valuemin":t,"aria-valuenow":r,ref:S,__vars:{"--slider-thumb-offset":`${o}%`},...w("thumb",{focusable:!0}),mod:{dragging:s,disabled:b},onFocus:e=>{x(!0),"function"==typeof h&&h(e)},onBlur:e=>{x(!1),"function"==typeof p&&p(e)},onTouchStart:u,onMouseDown:u,onKeyDownCapture:c,onClick:e=>e.stopPropagation(),children:[g,(0,n.jsx)(E.e,{mounted:null!=a&&!!A,transition:"fade",duration:0,...l,children:e=>(0,n.jsx)("div",{...w("label",{style:e}),children:a})})]})});function T({value:e,min:t,max:r}){return Math.min(Math.max((e-t)/(r-t)*100,0),100)}function x({mark:e,offset:t,value:r,inverted:n=!1}){return n?"number"==typeof t&&e.value<=t||e.value>=r:"number"==typeof t?e.value>=t&&e.value<=r:e.value<=r}function A({marks:e,min:t,max:r,disabled:o,value:a,offset:s,inverted:u}){let{getStyles:c}=v();if(!e)return null;let l=e.map((e,l)=>(0,i.createElement)(_.a,{...c("markWrapper"),__vars:{"--mark-offset":`${T({value:e.value,min:t,max:r})}%`},key:l},(0,n.jsx)(_.a,{...c("mark"),mod:{filled:x({mark:e,value:a,offset:s,inverted:u}),disabled:o}}),e.label&&(0,n.jsx)("div",{...c("markLabel"),children:e.label})));return(0,n.jsx)("div",{children:l})}function O({filled:e,children:t,offset:r,disabled:i,marksOffset:o,inverted:a,containerProps:s,...u}){let{getStyles:c}=v();return(0,n.jsx)(_.a,{...c("trackContainer"),mod:{disabled:i},...s,children:(0,n.jsxs)(_.a,{...c("track"),mod:{inverted:a,disabled:i},children:[(0,n.jsx)(_.a,{mod:{inverted:a,disabled:i},__vars:{"--slider-bar-width":`calc(${e}% + var(--slider-size))`,"--slider-bar-offset":`calc(${r}% - var(--slider-size))`},...c("bar")}),t,(0,n.jsx)(A,{...u,offset:o,disabled:i,inverted:a})]})})}function M({value:e,containerWidth:t,min:r,max:n,step:i,precision:o}){let a=(t?Math.min(Math.max(e,0),t)/t:e)*(n-r),s=Math.max((0!==a?Math.round(a/i)*i:0)+r,r);return void 0!==o?Number(s.toFixed(o)):s}function R(e,t){return parseFloat(e.toFixed(t))}function C(e){if(!e)return 0;let t=e.toString().split(".");return t.length>1?t[1].length:0}function I(e,t){let r=[...t].sort((e,t)=>e.value-t.value).find(t=>t.value>e);return r?r.value:e}function N(e,t){let r=[...t].sort((e,t)=>t.value-e.value).find(t=>t.valuee.value-t.value);return t.length>0?t[0].value:0}function k(e){let t=[...e].sort((e,t)=>e.value-t.value);return t.length>0?t[t.length-1].value:100}w.displayName="@mantine/core/SliderThumb",A.displayName="@mantine/core/SliderMarks",O.displayName="@mantine/core/SliderTrack";var D={root:"m_dd36362e",label:"m_c9357328",thumb:"m_c9a9a60a",trackContainer:"m_a8645c2",track:"m_c9ade57f",bar:"m_38aeed47",markWrapper:"m_b7b0423a",mark:"m_dd33bc19",markLabel:"m_68c77a5b"};let L={radius:"xl",min:0,max:100,step:1,marks:[],label:e=>e,labelTransitionProps:{transition:"fade",duration:0},labelAlwaysOn:!1,thumbLabel:"",showLabelOnHover:!0,disabled:!1,scale:e=>e},j=(0,d.V)((e,{size:t,color:r,thumbSize:n,radius:i})=>({root:{"--slider-size":(0,l.YC)(t,"slider-size"),"--slider-color":r?(0,h.r)(r,e):void 0,"--slider-radius":void 0===i?void 0:(0,l.nJ)(i),"--slider-thumb-size":void 0!==n?(0,c.D)(n):"calc(var(--slider-size) * 2)"}})),U=(0,y.P9)((e,t)=>{let r=(0,p.Y)("Slider",L,e),{classNames:c,styles:l,value:d,onChange:h,onChangeEnd:y,size:v,min:_,max:E,step:x,precision:A,defaultValue:U,name:B,marks:F,label:z,labelTransitionProps:$,labelAlwaysOn:V,thumbLabel:Y,showLabelOnHover:q,thumbChildren:H,disabled:W,unstyled:G,scale:Z,inverted:K,className:X,style:J,vars:Q,hiddenInputProps:ee,restrictToMarks:et,thumbProps:er,...en}=r,ei=(0,m.I)({name:"Slider",props:r,classes:D,classNames:c,className:X,styles:l,style:J,vars:Q,varsResolver:j,unstyled:G}),{dir:eo}=(0,g.jH)(),[ea,es]=(0,i.useState)(!1),[eu,ec]=(0,o.Z)({value:"number"==typeof d?(0,a.q)(d,_,E):d,defaultValue:"number"==typeof U?(0,a.q)(U,_,E):U,finalValue:(0,a.q)(0,_,E),onChange:h}),el=(0,i.useRef)(eu),ef=(0,i.useRef)(y);(0,i.useEffect)(()=>{ef.current=y},[y]);let ed=(0,i.useRef)(null),eh=(0,i.useRef)(null),ep=T({value:eu,min:_,max:E}),em=Z(eu),ey="function"==typeof z?z(em):z,eg=A??C(x),{ref:eb,active:ev}=s((0,i.useCallback)(({x:e})=>{if(!W){let t=M({value:e,min:_,max:E,step:x,precision:eg});ec(et&&F?.length?f(t,F.map(e=>e.value)):t),el.current=t}},[W,_,E,x,eg,ec,F,et]),{onScrubEnd:(0,i.useCallback)(()=>{if(!W&&ef.current){let e=et&&F?.length?f(el.current,F.map(e=>e.value)):el.current;ef.current(e)}},[W,F,et])},eo),e_=(0,i.useCallback)(e=>{!W&&ef.current&&ef.current(e)},[W]),eS=e=>{if(!W)switch(e.key){case"ArrowUp":{if(e.preventDefault(),eh.current?.focus(),et&&F){let e=I(eu,F);ec(e),e_(e);break}let t=R(Math.min(Math.max(eu+x,_),E),eg);ec(t),e_(t);break}case"ArrowRight":{if(e.preventDefault(),eh.current?.focus(),et&&F){let e="rtl"===eo?N(eu,F):I(eu,F);ec(e),e_(e);break}let t=R(Math.min(Math.max("rtl"===eo?eu-x:eu+x,_),E),eg);ec(t),e_(t);break}case"ArrowDown":{if(e.preventDefault(),eh.current?.focus(),et&&F){let e=N(eu,F);ec(e),e_(e);break}let t=R(Math.min(Math.max(eu-x,_),E),eg);ec(t),e_(t);break}case"ArrowLeft":{if(e.preventDefault(),eh.current?.focus(),et&&F){let e="rtl"===eo?I(eu,F):N(eu,F);ec(e),e_(e);break}let t=R(Math.min(Math.max("rtl"===eo?eu+x:eu-x,_),E),eg);ec(t),e_(t);break}case"Home":if(e.preventDefault(),eh.current?.focus(),et&&F){ec(P(F)),e_(P(F));break}ec(_),e_(_);break;case"End":if(e.preventDefault(),eh.current?.focus(),et&&F){ec(k(F)),e_(k(F));break}ec(E),e_(E)}};return(0,n.jsx)(b,{value:{getStyles:ei},children:(0,n.jsxs)(S,{...en,ref:(0,u.pc)(t,ed),onKeyDownCapture:eS,onMouseDownCapture:()=>ed.current?.focus(),size:v,disabled:W,children:[(0,n.jsx)(O,{inverted:K,offset:0,filled:ep,marks:F,min:_,max:E,value:em,disabled:W,containerProps:{ref:eb,onMouseEnter:q?()=>es(!0):void 0,onMouseLeave:q?()=>es(!1):void 0},children:(0,n.jsx)(w,{max:E,min:_,value:em,position:ep,dragging:ev,label:ey,ref:eh,labelTransitionProps:$,labelAlwaysOn:V,thumbLabel:Y,showLabelOnHover:q,isHovered:ea,disabled:W,...er,children:H})}),(0,n.jsx)("input",{type:"hidden",name:B,value:em,...ee})]})})});U.classes=D,U.displayName="@mantine/core/Slider"},10060:(e,t,r)=>{"use strict";r.d(t,{A:()=>f});var n=r(41742),i=r(81839),o=r(33901),a=r(89250),s=r(80577),u=r(6027);function c(e,t){(0,a.A)(1,arguments);var r,n,c,l,f,d,h,p,m=(0,u.q)(),y=(0,s.A)(null!=(r=null!=(n=null!=(c=null!=(l=null==t?void 0:t.firstWeekContainsDate)?l:null==t||null==(f=t.locale)||null==(d=f.options)?void 0:d.firstWeekContainsDate)?c:m.firstWeekContainsDate)?n:null==(h=m.locale)||null==(p=h.options)?void 0:p.firstWeekContainsDate)?r:1),g=(0,o.A)(e,t),b=new Date(0);return b.setUTCFullYear(g,0,y),b.setUTCHours(0,0,0,0),(0,i.A)(b,t)}var l=6048e5;function f(e,t){(0,a.A)(1,arguments);var r=(0,n.A)(e);return Math.round(((0,i.A)(r,t).getTime()-c(r,t).getTime())/l)+1}},10275:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(r(80780)),i=o(r(11827));function o(e){return e&&e.__esModule?e:{default:e}}var a=6e4;function s(e,t){var r=e?(0,i.default)(e,t,!0)/a:t.getTimezoneOffset();if(Number.isNaN(r))throw RangeError("Invalid time zone specified: "+e);return r}function u(e,t){for(var r=e<0?"-":"",n=Math.abs(e).toString();n.length0?"-":"+",i=Math.abs(e);return n+u(Math.floor(i/60),2)+r+u(Math.floor(i%60),2)}function l(e,t){return e%60==0?(e>0?"-":"+")+u(Math.abs(e)/60,2):c(e,t)}function f(e,t){var r=e>0?"-":"+",n=Math.abs(e),i=Math.floor(n/60),o=n%60;if(0===o)return r+String(i);var a=t||"";return r+String(i)+a+u(o,2)}t.default={X:function(e,t,r,n){var i=s(n.timeZone,n._originalDate||e);if(0===i)return"Z";switch(t){case"X":return l(i);case"XXXX":case"XX":return c(i);default:return c(i,":")}},x:function(e,t,r,n){var i=s(n.timeZone,n._originalDate||e);switch(t){case"x":return l(i);case"xxxx":case"xx":return c(i);default:return c(i,":")}},O:function(e,t,r,n){var i=s(n.timeZone,n._originalDate||e);switch(t){case"O":case"OO":case"OOO":return"GMT"+f(i,":");default:return"GMT"+c(i,":")}},z:function(e,t,r,i){var o=i._originalDate||e;switch(t){case"z":case"zz":case"zzz":return(0,n.default)("short",o,i);default:return(0,n.default)("long",o,i)}}},e.exports=t.default},10342:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(56343),i=r(89250),o=r(80577);function a(e,t){(0,i.A)(2,arguments);var r=(0,o.A)(t);return(0,n.A)(e,-r)}},10372:()=>{},11255:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(41742),i=r(89250);function o(e,t){(0,i.A)(2,arguments);var r=(0,n.A)(e),o=(0,n.A)(t),a=r.getTime()-o.getTime();return a<0?-1:a>0?1:a}},11370:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(34405),i=r(89250),o=r(23714);function a(e,t,r){(0,i.A)(2,arguments);var a=(0,n.A)(e,t)/1e3;return(0,o.u)(null==r?void 0:r.roundingMethod)(a)}},11460:(e,t,r)=>{"use strict";var n=r(93529),i=r(74818),o=r(97598),a=r(48203),s=r(84781),u=i(a(),Object);n(u,{getPolyfill:a,implementation:o,shim:s}),e.exports=u},11689:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(41742),i=r(89250);function o(e){(0,i.A)(1,arguments);var t=(0,n.A)(e);return t.setHours(23,59,59,999),t}},11827:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=f;var n=o(r(47462)),i=o(r(26193));function o(e){return e&&e.__esModule?e:{default:e}}var a=36e5,s=6e4,u=/^(Z)$/,c=/^([+-]\d{2})$/,l=/^([+-]\d{2}):?(\d{2})$/;function f(e,t,r){if(!e||(n=u.exec(e)))return 0;if(n=c.exec(e))return m(o=parseInt(n[1],10))?-(o*a):NaN;if(n=l.exec(e)){var n,i,o=parseInt(n[1],10),f=parseInt(n[2],10);return m(o,f)?(i=Math.abs(o)*a+f*s,o>0?-i:i):NaN}if(g(e)){t=new Date(t||Date.now());var y=h(r?t:d(t),e);return-(r?y:p(t,y,e))}return NaN}function d(e){return(0,i.default)(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}function h(e,t){var r=(0,n.default)(e,t),o=(0,i.default)(r[0],r[1]-1,r[2],r[3]%24,r[4],r[5],0).getTime(),a=e.getTime(),s=a%1e3;return o-(a-=s>=0?s:1e3+s)}function p(e,t,r){var n=e.getTime()-t,i=h(new Date(n),r);if(t===i)return t;var o=h(new Date(n-=i-t),r);return i===o?i:Math.max(i,o)}function m(e,t){return -23<=e&&e<=23&&(null==t||0<=t&&t<=59)}var y={};function g(e){if(y[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),y[e]=!0,!0}catch(e){return!1}}e.exports=t.default},12436:e=>{e.exports={focusRing:"focus_focusRing__UFS1R"}},12896:(e,t,r)=>{"use strict";r.d(t,{v:()=>i});var n=r(66404);function i(e,t){let r={from:e?.from||t.defaultGradient.from,to:e?.to||t.defaultGradient.to,deg:e?.deg??t.defaultGradient.deg??0},i=(0,n.r)(r.from,t),o=(0,n.r)(r.to,t);return`linear-gradient(${r.deg}deg, ${i} 0%, ${o} 100%)`}},13202:(e,t,r)=>{"use strict";let n=r(62701);e.exports="function"==typeof n.randomUUID?n.randomUUID:r(60769)},13448:(e,t,r)=>{"use strict";r.d(t,{$:()=>s,s:()=>a});var n=r(95913),i=r(77332),o=r(43064),a=class extends i.k{#n;#i;#o;constructor(e){super(),this.mutationId=e.mutationId,this.#i=e.mutationCache,this.#n=[],this.state=e.state||s(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#n.includes(e)||(this.#n.push(e),this.clearGcTimeout(),this.#i.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#n=this.#n.filter(t=>t!==e),this.scheduleGc(),this.#i.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#n.length||("pending"===this.state.status?this.scheduleGc():this.#i.remove(this))}continue(){return this.#o?.continue()??this.execute(this.state.variables)}async execute(e){this.#o=(0,o.II)({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(Error("No mutationFn found")),onFail:(e,t)=>{this.#a({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#a({type:"pause"})},onContinue:()=>{this.#a({type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#i.canRun(this)});let t="pending"===this.state.status,r=!this.#o.canStart();try{if(!t){this.#a({type:"pending",variables:e,isPaused:r}),await this.#i.config.onMutate?.(e,this);let t=await this.options.onMutate?.(e);t!==this.state.context&&this.#a({type:"pending",context:t,variables:e,isPaused:r})}let n=await this.#o.start();return await this.#i.config.onSuccess?.(n,e,this.state.context,this),await this.options.onSuccess?.(n,e,this.state.context),await this.#i.config.onSettled?.(n,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(n,null,e,this.state.context),this.#a({type:"success",data:n}),n}catch(t){try{throw await this.#i.config.onError?.(t,e,this.state.context,this),await this.options.onError?.(t,e,this.state.context),await this.#i.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,t,e,this.state.context),t}finally{this.#a({type:"error",error:t})}}finally{this.#i.runNext(this)}}#a(e){let t=t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),n.j.batch(()=>{this.#n.forEach(t=>{t.onMutationUpdate(e)}),this.#i.notify({mutation:this,type:"updated",action:e})})}};function s(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}},13525:(e,t,r)=>{"use strict";r.d(t,{E:()=>o});var n=r(55729),i=r(3465);function o({opened:e,shouldReturnFocus:t=!0}){let r=(0,n.useRef)(null),o=()=>{r.current&&"focus"in r.current&&"function"==typeof r.current.focus&&r.current?.focus({preventScroll:!0})};return(0,i.C)(()=>{let n=-1,i=e=>{"Tab"===e.key&&window.clearTimeout(n)};return document.addEventListener("keydown",i),e?r.current=document.activeElement:t&&(n=window.setTimeout(o,10)),()=>{window.clearTimeout(n),document.removeEventListener("keydown",i)}},[e,t]),o}},13634:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(41742),i=r(89250);function o(e){(0,i.A)(1,arguments);var t=(0,n.A)(e);return t.setHours(0,0,0,0),t}},13759:(e,t,r)=>{"use strict";function n(e,t){e.assign("day",t.getDate()),e.assign("month",t.getMonth()+1),e.assign("year",t.getFullYear())}function i(e,t){e.assign("hour",t.getHours()),e.assign("minute",t.getMinutes()),e.assign("second",t.getSeconds()),e.assign("millisecond",t.getMilliseconds()),e.assign("meridiem",12>t.getHours()?t9.AM:t9.PM)}function o(e,t){e.imply("day",t.getDate()),e.imply("month",t.getMonth()+1),e.imply("year",t.getFullYear())}function a(e,t){e.imply("hour",t.getHours()),e.imply("minute",t.getMinutes()),e.imply("second",t.getSeconds()),e.imply("millisecond",t.getMilliseconds()),e.imply("meridiem",12>t.getHours()?t9.AM:t9.PM)}r.d(t,{eh:()=>rl,U$:()=>rc,e2:()=>ra,pA:()=>ro,gw:()=>rs,ad:()=>rf,zG:()=>ru,c0:()=>ri}),function(e){e[e.AM=0]="AM",e[e.PM=1]="PM"}(t9||(t9={})),function(e){e[e.SUNDAY=0]="SUNDAY",e[e.MONDAY=1]="MONDAY",e[e.TUESDAY=2]="TUESDAY",e[e.WEDNESDAY=3]="WEDNESDAY",e[e.THURSDAY=4]="THURSDAY",e[e.FRIDAY=5]="FRIDAY",e[e.SATURDAY=6]="SATURDAY"}(t7||(t7={})),function(e){e[e.JANUARY=1]="JANUARY",e[e.FEBRUARY=2]="FEBRUARY",e[e.MARCH=3]="MARCH",e[e.APRIL=4]="APRIL",e[e.MAY=5]="MAY",e[e.JUNE=6]="JUNE",e[e.JULY=7]="JULY",e[e.AUGUST=8]="AUGUST",e[e.SEPTEMBER=9]="SEPTEMBER",e[e.OCTOBER=10]="OCTOBER",e[e.NOVEMBER=11]="NOVEMBER",e[e.DECEMBER=12]="DECEMBER"}(re||(re={}));let s={ACDT:630,ACST:570,ADT:-180,AEDT:660,AEST:600,AFT:270,AKDT:-480,AKST:-540,ALMT:360,AMST:-180,AMT:-240,ANAST:720,ANAT:720,AQTT:300,ART:-180,AST:-240,AWDT:540,AWST:480,AZOST:0,AZOT:-60,AZST:300,AZT:240,BNT:480,BOT:-240,BRST:-120,BRT:-180,BST:60,BTT:360,CAST:480,CAT:120,CCT:390,CDT:-300,CEST:120,CET:{timezoneOffsetDuringDst:120,timezoneOffsetNonDst:60,dstStart:e=>c(e,re.MARCH,t7.SUNDAY,2),dstEnd:e=>c(e,re.OCTOBER,t7.SUNDAY,3)},CHADT:825,CHAST:765,CKT:-600,CLST:-180,CLT:-240,COT:-300,CST:-360,CT:{timezoneOffsetDuringDst:-300,timezoneOffsetNonDst:-360,dstStart:e=>u(e,re.MARCH,t7.SUNDAY,2,2),dstEnd:e=>u(e,re.NOVEMBER,t7.SUNDAY,1,2)},CVT:-60,CXT:420,ChST:600,DAVT:420,EASST:-300,EAST:-360,EAT:180,ECT:-300,EDT:-240,EEST:180,EET:120,EGST:0,EGT:-60,EST:-300,ET:{timezoneOffsetDuringDst:-240,timezoneOffsetNonDst:-300,dstStart:e=>u(e,re.MARCH,t7.SUNDAY,2,2),dstEnd:e=>u(e,re.NOVEMBER,t7.SUNDAY,1,2)},FJST:780,FJT:720,FKST:-180,FKT:-240,FNT:-120,GALT:-360,GAMT:-540,GET:240,GFT:-180,GILT:720,GMT:0,GST:240,GYT:-240,HAA:-180,HAC:-300,HADT:-540,HAE:-240,HAP:-420,HAR:-360,HAST:-600,HAT:-90,HAY:-480,HKT:480,HLV:-210,HNA:-240,HNC:-360,HNE:-300,HNP:-480,HNR:-420,HNT:-150,HNY:-540,HOVT:420,ICT:420,IDT:180,IOT:360,IRDT:270,IRKST:540,IRKT:540,IRST:210,IST:330,JST:540,KGT:360,KRAST:480,KRAT:480,KST:540,KUYT:240,LHDT:660,LHST:630,LINT:840,MAGST:720,MAGT:720,MART:-510,MAWT:300,MDT:-360,MESZ:120,MEZ:60,MHT:720,MMT:390,MSD:240,MSK:180,MST:-420,MT:{timezoneOffsetDuringDst:-360,timezoneOffsetNonDst:-420,dstStart:e=>u(e,re.MARCH,t7.SUNDAY,2,2),dstEnd:e=>u(e,re.NOVEMBER,t7.SUNDAY,1,2)},MUT:240,MVT:300,MYT:480,NCT:660,NDT:-90,NFT:690,NOVST:420,NOVT:360,NPT:345,NST:-150,NUT:-660,NZDT:780,NZST:720,OMSST:420,OMST:420,PDT:-420,PET:-300,PETST:720,PETT:720,PGT:600,PHOT:780,PHT:480,PKT:300,PMDT:-120,PMST:-180,PONT:660,PST:-480,PT:{timezoneOffsetDuringDst:-420,timezoneOffsetNonDst:-480,dstStart:e=>u(e,re.MARCH,t7.SUNDAY,2,2),dstEnd:e=>u(e,re.NOVEMBER,t7.SUNDAY,1,2)},PWT:540,PYST:-180,PYT:-240,RET:240,SAMT:240,SAST:120,SBT:660,SCT:240,SGT:480,SRT:-180,SST:-660,TAHT:-600,TFT:300,TJT:300,TKT:780,TLT:540,TMT:300,TVT:720,ULAT:480,UTC:0,UYST:-120,UYT:-180,UZT:300,VET:-210,VLAST:660,VLAT:660,VUT:660,WAST:120,WAT:60,WEST:60,WESZ:60,WET:0,WEZ:0,WFT:720,WGST:-120,WGT:-180,WIB:420,WIT:540,WITA:480,WST:780,WT:0,YAKST:600,YAKT:600,YAPT:600,YEKST:360,YEKT:360};function u(e,t,r,n,i=0){let o=0,a=0;for(;an.dstStart(t.getFullYear())&&!(t>n.dstEnd(t.getFullYear()))?n.timezoneOffsetDuringDst:n.timezoneOffsetNonDst}let f={day:0,second:0,millisecond:0};function d(e,t){let r=new Date(e);if(t.y&&(t.year=t.y,delete t.y),t.mo&&(t.month=t.mo,delete t.mo),t.M&&(t.month=t.M,delete t.M),t.w&&(t.week=t.w,delete t.w),t.d&&(t.day=t.d,delete t.d),t.h&&(t.hour=t.h,delete t.h),t.m&&(t.minute=t.m,delete t.m),t.s&&(t.second=t.s,delete t.s),t.ms&&(t.millisecond=t.ms,delete t.ms),"year"in t){let e=Math.floor(t.year);r.setFullYear(r.getFullYear()+e);let n=t.year-e;n>0&&(t.month=t?.month??0,t.month+=12*n)}if("quarter"in t){let e=Math.floor(t.quarter);r.setMonth(r.getMonth()+3*e)}if("month"in t){let e=Math.floor(t.month);r.setMonth(r.getMonth()+e);let n=t.month-e;n>0&&(t.week=t?.week??0,t.week+=4*n)}if("week"in t){let e=Math.floor(t.week);r.setDate(r.getDate()+7*e);let n=t.week-e;n>0&&(t.day=t?.day??0,t.day+=Math.round(7*n))}if("day"in t){let e=Math.floor(t.day);r.setDate(r.getDate()+e);let n=t.day-e;n>0&&(t.hour=t?.hour??0,t.hour+=Math.round(24*n))}if("hour"in t){let e=Math.floor(t.hour);r.setHours(r.getHours()+e);let n=t.hour-e;n>0&&(t.minute=t?.minute??0,t.minute+=Math.round(60*n))}if("minute"in t){let e=Math.floor(t.minute);r.setMinutes(r.getMinutes()+e);let n=t.minute-e;n>0&&(t.second=t?.second??0,t.second+=Math.round(60*n))}if("second"in t){let e=Math.floor(t.second);r.setSeconds(r.getSeconds()+e);let n=t.second-e;n>0&&(t.millisecond=t?.millisecond??0,t.millisecond+=Math.round(1e3*n))}if("millisecond"in t){let e=Math.floor(t.millisecond);r.setMilliseconds(r.getMilliseconds()+e)}return r}function h(e){let t={};for(let r in e)t[r]=-e[r];return t}class p{instant;timezoneOffset;constructor(e,t){this.instant=e??new Date,this.timezoneOffset=t??null}static fromDate(e){return new p(e)}static fromInput(e,t){if(e instanceof Date)return p.fromDate(e);let r=e?.instant??new Date,n=l(e?.timezone,r,t);return new p(r,n)}getDateWithAdjustedTimezone(){let e=new Date(this.instant);return null!==this.timezoneOffset&&e.setMinutes(e.getMinutes()-this.getSystemTimezoneAdjustmentMinute(this.instant)),e}getSystemTimezoneAdjustmentMinute(e,t){(!e||0>e.getTime())&&(e=new Date);let r=-e.getTimezoneOffset(),n=t??this.timezoneOffset??r;return r-n}getTimezoneOffset(){return this.timezoneOffset??-this.instant.getTimezoneOffset()}}class m{knownValues;impliedValues;reference;_tags=new Set;constructor(e,t){if(this.reference=e,this.knownValues={},this.impliedValues={},t)for(const e in t)this.knownValues[e]=t[e];const r=e.getDateWithAdjustedTimezone();this.imply("day",r.getDate()),this.imply("month",r.getMonth()+1),this.imply("year",r.getFullYear()),this.imply("hour",12),this.imply("minute",0),this.imply("second",0),this.imply("millisecond",0)}static createRelativeFromReference(e,t=f){let r=d(e.getDateWithAdjustedTimezone(),t),o=new m(e);return o.addTag("result/relativeDate"),"hour"in t||"minute"in t||"second"in t||"millisecond"in t?(o.addTag("result/relativeDateAndTime"),i(o,r),n(o,r),o.assign("timezoneOffset",e.getTimezoneOffset())):(a(o,r),o.imply("timezoneOffset",e.getTimezoneOffset()),"day"in t?(o.assign("day",r.getDate()),o.assign("month",r.getMonth()+1),o.assign("year",r.getFullYear()),o.assign("weekday",r.getDay())):"week"in t?(o.assign("day",r.getDate()),o.assign("month",r.getMonth()+1),o.assign("year",r.getFullYear()),o.imply("weekday",r.getDay())):(o.imply("day",r.getDate()),"month"in t?(o.assign("month",r.getMonth()+1),o.assign("year",r.getFullYear())):(o.imply("month",r.getMonth()+1),"year"in t?o.assign("year",r.getFullYear()):o.imply("year",r.getFullYear())))),o}get(e){return e in this.knownValues?this.knownValues[e]:e in this.impliedValues?this.impliedValues[e]:null}isCertain(e){return e in this.knownValues}getCertainComponents(){return Object.keys(this.knownValues)}imply(e,t){return e in this.knownValues||(this.impliedValues[e]=t),this}assign(e,t){return this.knownValues[e]=t,delete this.impliedValues[e],this}addDurationAsImplied(e){let t=d(this.dateWithoutTimezoneAdjustment(),e);return("day"in e||"week"in e||"month"in e||"year"in e)&&(this.delete(["day","weekday","month","year"]),this.imply("day",t.getDate()),this.imply("weekday",t.getDay()),this.imply("month",t.getMonth()+1),this.imply("year",t.getFullYear())),("second"in e||"minute"in e||"hour"in e)&&(this.delete(["second","minute","hour"]),this.imply("second",t.getSeconds()),this.imply("minute",t.getMinutes()),this.imply("hour",t.getHours())),this}delete(e){for(let t of("string"==typeof e&&(e=[e]),e))delete this.knownValues[t],delete this.impliedValues[t]}clone(){let e=new m(this.reference);for(let t in e.knownValues={},e.impliedValues={},this.knownValues)e.knownValues[t]=this.knownValues[t];for(let t in this.impliedValues)e.impliedValues[t]=this.impliedValues[t];return e}isOnlyDate(){return!this.isCertain("hour")&&!this.isCertain("minute")&&!this.isCertain("second")}isOnlyTime(){return!this.isCertain("weekday")&&!this.isCertain("day")&&!this.isCertain("month")&&!this.isCertain("year")}isOnlyWeekdayComponent(){return this.isCertain("weekday")&&!this.isCertain("day")&&!this.isCertain("month")}isDateWithUnknownYear(){return this.isCertain("month")&&!this.isCertain("year")}isValidDate(){let e=this.dateWithoutTimezoneAdjustment();return e.getFullYear()===this.get("year")&&e.getMonth()===this.get("month")-1&&e.getDate()===this.get("day")&&(null==this.get("hour")||e.getHours()==this.get("hour"))&&(null==this.get("minute")||e.getMinutes()==this.get("minute"))}toString(){return`[ParsingComponents { + tags: ${JSON.stringify(Array.from(this._tags).sort())}, + knownValues: ${JSON.stringify(this.knownValues)}, + impliedValues: ${JSON.stringify(this.impliedValues)}}, + reference: ${JSON.stringify(this.reference)}]`}date(){let e=this.dateWithoutTimezoneAdjustment(),t=this.reference.getSystemTimezoneAdjustmentMinute(e,this.get("timezoneOffset"));return new Date(e.getTime()+6e4*t)}addTag(e){return this._tags.add(e),this}addTags(e){for(let t of e)this._tags.add(t);return this}tags(){return new Set(this._tags)}dateWithoutTimezoneAdjustment(){let e=new Date(this.get("year"),this.get("month")-1,this.get("day"),this.get("hour"),this.get("minute"),this.get("second"),this.get("millisecond"));return e.setFullYear(this.get("year")),e}}class y{refDate;index;text;reference;start;end;constructor(e,t,r,n,i){this.reference=e,this.refDate=e.instant,this.index=t,this.text=r,this.start=n||new m(e),this.end=i}clone(){let e=new y(this.reference,this.index,this.text);return e.start=this.start?this.start.clone():null,e.end=this.end?this.end.clone():null,e}date(){return this.start.date()}addTag(e){return this.start.addTag(e),this.end&&this.end.addTag(e),this}addTags(e){return this.start.addTags(e),this.end&&this.end.addTags(e),this}tags(){let e=new Set(this.start.tags());if(this.end)for(let t of this.end.tags())e.add(t);return e}toString(){let e=Array.from(this.tags()).sort();return`[ParsingResult {index: ${this.index}, text: '${this.text}', tags: ${JSON.stringify(e)} ...}]`}}function g(e,t,r="\\s{0,5},?\\s{0,5}"){let n=t.replace(/\((?!\?)/g,"(?:");return`${e}${n}(?:${r}${n}){0,10}`}function b(e){return e instanceof Array?[...e]:e instanceof Map?Array.from(e.keys()):Object.keys(e)}function v(e){let t=b(e).sort((e,t)=>t.length-e.length).join("|").replace(/\./g,"\\.");return`(?:${t})`}function _(e){return e<100&&(e>50?e+=1900:e+=2e3),e}function S(e,t,r){let n=new Date(e);n.setMonth(r-1),n.setDate(t);let i=d(n,{year:1}),o=d(n,{year:-1});return Math.abs(i.getTime()-e.getTime())31)return t.index=t.index+t[Z].length,null;if(r.start.assign("month",n),r.start.assign("day",i),t[J]){let e=k(t[J]);r.start.assign("year",e)}else{let t=S(e.refDate,i,n);r.start.imply("year",t)}if(t[K]){let e=N(t[K]);r.end=r.start.clone(),r.end.assign("day",e)}return r}}let ee=RegExp(`(${v(T)})(?:-|/|\\s*,?\\s*)(${I})(?!\\s*(?:am|pm))\\s*(?:(?:to|\\-)\\s*(${I})\\s*)?(?:(?:-|/|\\s*,\\s*|\\s+)(${P}))?(?=\\W|$)(?!\\:\\d)`,"i"),et=1,er=2,en=3,ei=4;class eo extends V{shouldSkipYearLikeDate;constructor(e){super(),this.shouldSkipYearLikeDate=e}innerPattern(){return ee}innerExtract(e,t){let r=T[t[et].toLowerCase()],n=N(t[er]);if(n>31||this.shouldSkipYearLikeDate&&!t[en]&&!t[ei]&&t[er].match(/^2[0-5]$/))return null;let i=e.createParsingComponents({day:n,month:r}).addTag("parser/ENMonthNameMiddleEndianParser");if(t[ei]){let e=k(t[ei]);i.assign("year",e)}else{let t=S(e.refDate,n,r);i.imply("year",t)}if(!t[en])return i;let o=N(t[en]),a=e.createParsingResult(t.index,t[0]);return a.start=i,a.end=i.clone(),a.end.assign("day",o),a}}let ea=RegExp(`((?:in)\\s*)?(${v(T)})\\s*(?:(?:,|-|of)?\\s*(${P})?)?(?=[^\\s\\w]|\\s+[^0-9]|\\s+$|$)`,"i"),es=1,eu=2,ec=3;class el extends V{innerPattern(){return ea}innerExtract(e,t){let r=t[eu].toLowerCase();if(t[0].length<=3&&!w[r])return null;let n=e.createParsingResult(t.index+(t[es]||"").length,t.index+t[0].length);n.start.imply("day",1),n.start.addTag("parser/ENMonthNameParser");let i=T[r];if(n.start.assign("month",i),t[ec]){let e=k(t[ec]);n.start.assign("year",e)}else{let t=S(e.refDate,1,i);n.start.imply("year",t)}return n}}let ef=RegExp(`([0-9]{4})[-\\.\\/\\s](?:(${v(T)})|([0-9]{1,2}))[-\\.\\/\\s]([0-9]{1,2})(?=\\W|$)`,"i"),ed=1,eh=2,ep=3,em=4;class ey extends V{strictMonthDateOrder;constructor(e){super(),this.strictMonthDateOrder=e}innerPattern(){return ef}innerExtract(e,t){let r=parseInt(t[ed]),n=parseInt(t[em]),i=t[ep]?parseInt(t[ep]):T[t[eh].toLowerCase()];if(i<1||i>12){if(this.strictMonthDateOrder)return null;n>=1&&n<=12&&([i,n]=[n,i])}return n<1||n>31?null:{day:n,month:i,year:r}}}let eg=RegExp("([0-9]|0[1-9]|1[012])/([0-9]{4})","i"),eb=1,ev=2;class e_ extends V{innerPattern(){return eg}innerExtract(e,t){let r=parseInt(t[ev]),n=parseInt(t[eb]);return e.createParsingComponents().imply("day",1).assign("month",n).assign("year",r)}}function eS(e,t,r,n){return RegExp(`${e}${t}(\\d{1,4})(?:(?:\\.|:|:)(\\d{1,2})(?:(?::|:)(\\d{2})(?:\\.(\\d{1,6}))?)?)?(?:\\s*(a\\.m\\.|p\\.m\\.|am?|pm?))?${r}`,n)}function eE(e,t){return RegExp(`^(${e})(\\d{1,4})(?:(?:\\.|\\:|\\:)(\\d{1,2})(?:(?:\\.|\\:|\\:)(\\d{1,2})(?:\\.(\\d{1,6}))?)?)?(?:\\s*(a\\.m\\.|p\\.m\\.|am?|pm?))?${t}`,"i")}let ew=2,eT=3,ex=4,eA=5,eO=6;class eM{strictMode;constructor(e=!1){this.strictMode=e}patternFlags(){return"i"}primaryPatternLeftBoundary(){return"(^|\\s|T|\\b)"}primarySuffix(){return"(?!/)(?=\\W|$)"}followingSuffix(){return"(?!/)(?=\\W|$)"}pattern(e){return this.getPrimaryTimePatternThroughCache()}extract(e,t){let r=this.extractPrimaryTimeComponents(e,t);if(!r)return t[0].match(/^\d{4}/)?t.index+=4:t.index+=t[0].length,null;let n=t.index+t[1].length,i=t[0].substring(t[1].length),o=e.createParsingResult(n,i,r);t.index+=t[0].length;let a=e.text.substring(t.index),s=this.getFollowingTimePatternThroughCache().exec(a);return i.match(/^\d{3,4}/)&&s&&(s[0].match(/^\s*([+-])\s*\d{2,4}$/)||s[0].match(/^\s*([+-])\s*\d{2}\W\d{2}/))?null:!s||s[0].match(/^\s*([+-])\s*\d{3,4}$/)?this.checkAndReturnWithoutFollowingPattern(o):(o.end=this.extractFollowingTimeComponents(e,s,o),o.end&&(o.text+=s[0]),this.checkAndReturnWithFollowingPattern(o))}extractPrimaryTimeComponents(e,t,r=!1){let n=e.createParsingComponents(),i=0,o=null,a=parseInt(t[ew]);if(a>100){if(4==t[ew].length&&null==t[eT]&&!t[eO]||this.strictMode||null!=t[eT])return null;i=a%100,a=Math.floor(a/100)}if(a>24)return null;if(null!=t[eT]){if(1==t[eT].length&&!t[eO])return null;i=parseInt(t[eT])}if(i>=60)return null;if(a>12&&(o=t9.PM),null!=t[eO]){if(a>12)return null;let e=t[eO][0].toLowerCase();"a"==e&&(o=t9.AM,12==a&&(a=0)),"p"==e&&(o=t9.PM,12!=a&&(a+=12))}if(n.assign("hour",a),n.assign("minute",i),null!==o?n.assign("meridiem",o):a<12?n.imply("meridiem",t9.AM):n.imply("meridiem",t9.PM),null!=t[eA]){let e=parseInt(t[eA].substring(0,3));if(e>=1e3)return null;n.assign("millisecond",e)}if(null!=t[ex]){let e=parseInt(t[ex]);if(e>=60)return null;n.assign("second",e)}return n}extractFollowingTimeComponents(e,t,r){let n=e.createParsingComponents();if(null!=t[eA]){let e=parseInt(t[eA].substring(0,3));if(e>=1e3)return null;n.assign("millisecond",e)}if(null!=t[ex]){let e=parseInt(t[ex]);if(e>=60)return null;n.assign("second",e)}let i=parseInt(t[ew]),o=0,a=-1;if(null!=t[eT]?o=parseInt(t[eT]):i>100&&(o=i%100,i=Math.floor(i/100)),o>=60||i>24)return null;if(i>=12&&(a=t9.PM),null!=t[eO]){if(i>12)return null;let e=t[eO][0].toLowerCase();"a"==e&&(a=t9.AM,12==i&&(i=0,n.isCertain("day")||n.imply("day",n.get("day")+1))),"p"==e&&(a=t9.PM,12!=i&&(i+=12)),r.start.isCertain("meridiem")||(a==t9.AM?(r.start.imply("meridiem",t9.AM),12==r.start.get("hour")&&r.start.assign("hour",0)):(r.start.imply("meridiem",t9.PM),12!=r.start.get("hour")&&r.start.assign("hour",r.start.get("hour")+12)))}return n.assign("hour",i),n.assign("minute",o),a>=0?n.assign("meridiem",a):r.start.isCertain("meridiem")&&r.start.get("hour")>12?r.start.get("hour")-12>i?n.imply("meridiem",t9.AM):i<=12&&(n.assign("hour",i+12),n.assign("meridiem",t9.PM)):i>12?n.imply("meridiem",t9.PM):i<=12&&n.imply("meridiem",t9.AM),n.date().getTime()24)return null}return e}checkAndReturnWithFollowingPattern(e){if(e.text.match(/^\d+-\d+$/))return null;let t=e.text.match(/[^\d:.](\d[\d.]+)\s*-\s*(\d[\d.]+)$/);if(t){if(this.strictMode)return null;let e=t[1],r=t[2];if(r.includes(".")&&!r.match(/\d(\.\d{2})+$/))return null;let n=parseInt(r),i=parseInt(e);if(n>24||i>24)return null}return e}cachedPrimaryPrefix=null;cachedPrimarySuffix=null;cachedPrimaryTimePattern=null;getPrimaryTimePatternThroughCache(){let e=this.primaryPrefix(),t=this.primarySuffix();return this.cachedPrimaryPrefix===e&&this.cachedPrimarySuffix===t||(this.cachedPrimaryTimePattern=eS(this.primaryPatternLeftBoundary(),e,t,this.patternFlags()),this.cachedPrimaryPrefix=e,this.cachedPrimarySuffix=t),this.cachedPrimaryTimePattern}cachedFollowingPhase=null;cachedFollowingSuffix=null;cachedFollowingTimePatten=null;getFollowingTimePatternThroughCache(){let e=this.followingPhase(),t=this.followingSuffix();return this.cachedFollowingPhase===e&&this.cachedFollowingSuffix===t||(this.cachedFollowingTimePatten=eE(e,t),this.cachedFollowingPhase=e,this.cachedFollowingSuffix=t),this.cachedFollowingTimePatten}}class eR extends eM{constructor(e){super(e)}followingPhase(){return"\\s*(?:\\-|\\–|\\~|\\〜|to|until|through|till|\\?)\\s*"}primaryPrefix(){return"(?:(?:at|from)\\s*)??"}primarySuffix(){return"(?:\\s*(?:o\\W*clock|at\\s*night|in\\s*the\\s*(?:morning|afternoon)))?(?!/)(?=\\W|$)"}extractPrimaryTimeComponents(e,t){let r=super.extractPrimaryTimeComponents(e,t);if(!r)return r;if(t[0].endsWith("night")){let e=r.get("hour");e>=6&&e<12?(r.assign("hour",r.get("hour")+12),r.assign("meridiem",t9.PM)):e<6&&r.assign("meridiem",t9.AM)}if(t[0].endsWith("afternoon")){r.assign("meridiem",t9.PM);let e=r.get("hour");e>=0&&e<=6&&r.assign("hour",r.get("hour")+12)}return t[0].endsWith("morning")&&(r.assign("meridiem",t9.AM),12>r.get("hour")&&r.assign("hour",r.get("hour"))),r.addTag("parser/ENTimeExpressionParser")}extractFollowingTimeComponents(e,t,r){let n=super.extractFollowingTimeComponents(e,t,r);return n&&n.addTag("parser/ENTimeExpressionParser"),n}}let eC=RegExp(`(${B})\\s{0,5}(?:ago|before|earlier)(?=\\W|$)`,"i"),eI=RegExp(`(${F})\\s{0,5}(?:ago|before|earlier)(?=\\W|$)`,"i");class eN extends V{strictMode;constructor(e){super(),this.strictMode=e}innerPattern(){return this.strictMode?eI:eC}innerExtract(e,t){let r=z(t[1]);return r?m.createRelativeFromReference(e.reference,h(r)):null}}let eP=RegExp(`(${B})\\s{0,5}(?:later|after|from now|henceforth|forward|out)(?=(?:\\W|$))`,"i"),ek=RegExp(`(${F})\\s{0,5}(later|after|from now)(?=\\W|$)`,"i"),eD=1;class eL extends V{strictMode;constructor(e){super(),this.strictMode=e}innerPattern(){return this.strictMode?ek:eP}innerExtract(e,t){let r=z(t[eD]);return r?m.createRelativeFromReference(e.reference,r):null}}class ej{refine(e,t){return t.filter(t=>this.isValid(e,t))}}class eU{refine(e,t){if(t.length<2)return t;let r=[],n=t[0],i=null;for(let o=1;o{console.log(`${this.constructor.name} merged ${t} and ${r} into ${o}`)}),n=o}else r.push(n),n=i}return null!=n&&r.push(n),r}}class eB extends eU{shouldMergeResults(e,t,r){return!t.end&&!r.end&&null!=e.match(this.patternBetween())}mergeResults(e,t,r){if(t.start.isOnlyWeekdayComponent()||r.start.isOnlyWeekdayComponent()||(r.start.getCertainComponents().forEach(e=>{t.start.isCertain(e)||t.start.imply(e,r.start.get(e))}),t.start.getCertainComponents().forEach(e=>{r.start.isCertain(e)||r.start.imply(e,t.start.get(e))})),t.start.date()>r.start.date()){let e=t.start.date(),n=r.start.date();r.start.isOnlyWeekdayComponent()&&d(n,{day:7})>e?(n=d(n,{day:7}),r.start.imply("day",n.getDate()),r.start.imply("month",n.getMonth()+1),r.start.imply("year",n.getFullYear())):t.start.isOnlyWeekdayComponent()&&d(e,{day:-7})e?(n=d(n,{year:1}),r.start.imply("year",n.getFullYear())):t.start.isDateWithUnknownYear()&&d(e,{year:-1})r.get("hour")&&(t.isCertain("hour")?r.assign("hour",r.get("hour")+12):r.imply("hour",r.get("hour")+12)),r.addTags(e.tags()),r.addTags(t.tags()),r}class eV extends eU{shouldMergeResults(e,t,r){return(t.start.isOnlyDate()&&r.start.isOnlyTime()||r.start.isOnlyDate()&&t.start.isOnlyTime())&&null!=e.match(this.patternBetween())}mergeResults(e,t,r){let n=t.start.isOnlyDate()?ez(t,r):ez(r,t);return n.index=t.index,n.text=t.text+e+r.text,n}}class eY extends eV{patternBetween(){return RegExp("^\\s*(T|at|after|before|on|of|,|-|\\.|∙|:)?\\s*$")}}let eq=RegExp("^\\s*,?\\s*\\(?([A-Z]{2,4})\\)?(?=\\W|$)","i");class eH{timezoneOverrides;constructor(e){this.timezoneOverrides=e}refine(e,t){let r=e.option.timezones??{};return t.forEach(t=>{let n=e.text.substring(t.index+t.text.length),i=eq.exec(n);if(!i)return;let o=i[1].toUpperCase(),a=l(o,t.start.date()??t.refDate??new Date,{...this.timezoneOverrides,...r});if(null==a)return;e.debug(()=>{console.log(`Extracting timezone: '${o}' into: ${a} for: ${t.start}`)});let s=t.start.get("timezoneOffset");!(null!==s&&a!=s&&(t.start.isCertain("timezoneOffset")||o!=i[1]))&&(!t.start.isOnlyDate()||o==i[1])&&(t.text+=i[0],t.start.isCertain("timezoneOffset")||t.start.assign("timezoneOffset",a),null==t.end||t.end.isCertain("timezoneOffset")||t.end.assign("timezoneOffset",a))}),t}}let eW=RegExp("^\\s*(?:\\(?(?:GMT|UTC)\\s?)?([+-])(\\d{1,2})(?::?(\\d{2}))?\\)?","i"),eG=1,eZ=2,eK=3;class eX{refine(e,t){return t.forEach(function(t){if(t.start.isCertain("timezoneOffset"))return;let r=e.text.substring(t.index+t.text.length),n=eW.exec(r);if(!n)return;e.debug(()=>{console.log(`Extracting timezone: '${n[0]}' into : ${t}`)});let i=60*parseInt(n[eZ])+parseInt(n[eK]||"0");i>840||("-"===n[eG]&&(i=-i),null!=t.end&&t.end.assign("timezoneOffset",i),t.start.assign("timezoneOffset",i),t.text+=n[0])}),t}}class eJ{refine(e,t){if(t.length<2)return t;let r=[],n=t[0];for(let i=1;i=n.index+n.text.length){r.push(n),n=o;continue}let a=null,s=null;o.text.length>n.text.length?(a=o,s=n):(a=n,s=o),e.debug(()=>{console.log(`${this.constructor.name} remove ${s} by ${a}`)}),n=a}return null!=n&&r.push(n),r}}class eQ{refine(e,t){return e.option.forwardDate&&t.forEach(t=>{let r=e.reference.getDateWithAdjustedTimezone();if(t.start.isOnlyTime()&&e.reference.instant>t.start.date()){let r=e.reference.getDateWithAdjustedTimezone(),n=new Date(r);n.setDate(n.getDate()+1),o(t.start,n),e.debug(()=>{console.log(`${this.constructor.name} adjusted ${t} time from the ref date (${r}) to the following day (${n})`)}),t.end&&t.end.isOnlyTime()&&(o(t.end,n),t.start.date()>t.end.date()&&(n.setDate(n.getDate()+1),o(t.end,n)))}if(t.start.isOnlyWeekdayComponent()&&r>t.start.date()){let n=t.start.get("weekday")-r.getDay();if(n<=0&&(n+=7),r=d(r,{day:n}),o(t.start,r),e.debug(()=>{console.log(`${this.constructor.name} adjusted ${t} weekday (${t.start})`)}),t.end&&t.end.isOnlyWeekdayComponent()){let n=t.end.get("weekday")-r.getDay();n<=0&&(n+=7),r=d(r,{day:n}),o(t.end,r),e.debug(()=>{console.log(`${this.constructor.name} adjusted ${t} weekday (${t.end})`)})}}if(t.start.isDateWithUnknownYear()&&r>t.start.date())for(let n=0;n<3&&r>t.start.date();n++)t.start.imply("year",t.start.get("year")+1),e.debug(()=>{console.log(`${this.constructor.name} adjusted ${t} year (${t.start})`)}),t.end&&!t.end.isCertain("year")&&(t.end.imply("year",t.end.get("year")+1),e.debug(()=>{console.log(`${this.constructor.name} adjusted ${t} month (${t.start})`)}))}),t}}class e0 extends ej{strictMode;constructor(e){super(),this.strictMode=e}isValid(e,t){return t.text.replace(" ","").match(/^\d*(\.\d*)?$/)?(e.debug(()=>{console.log(`Removing unlikely result '${t.text}'`)}),!1):t.start.isValidDate()?t.end&&!t.end.isValidDate()?(e.debug(()=>{console.log(`Removing invalid result: ${t} (${t.end})`)}),!1):!this.strictMode||this.isStrictModeValid(e,t):(e.debug(()=>{console.log(`Removing invalid result: ${t} (${t.start})`)}),!1)}isStrictModeValid(e,t){return!t.start.isOnlyWeekdayComponent()||(e.debug(()=>{console.log(`(Strict) Removing weekday only component: ${t} (${t.end})`)}),!1)}}let e1=RegExp("([0-9]{4})\\-([0-9]{1,2})\\-([0-9]{1,2})(?:T([0-9]{1,2}):([0-9]{1,2})(?::([0-9]{1,2})(?:\\.(\\d{1,4}))?)?(Z|([+-]\\d{2}):?(\\d{2})?)?)?(?=\\W|$)","i"),e2=1,e6=2,e3=3,e4=4,e5=5,e8=6,e9=7,e7=8,te=9,tt=10;class tr extends V{innerPattern(){return e1}innerExtract(e,t){let r=e.createParsingComponents({year:parseInt(t[e2]),month:parseInt(t[e6]),day:parseInt(t[e3])});if(null!=t[e4]&&(r.assign("hour",parseInt(t[e4])),r.assign("minute",parseInt(t[e5])),null!=t[e8]&&r.assign("second",parseInt(t[e8])),null!=t[e9]&&r.assign("millisecond",parseInt(t[e9])),null!=t[e7])){let e=0;if(t[te]){let r=parseInt(t[te]),n=0;null!=t[tt]&&(n=parseInt(t[tt])),(e=60*r)<0?e-=n:e+=n}r.assign("timezoneOffset",e)}return r.addTag("parser/ISOFormatParser")}}class tn extends eU{mergeResults(e,t,r){let n=r.clone();return n.index=t.index,n.text=t.text+e+n.text,n.start.assign("weekday",t.start.get("weekday")),n.end&&n.end.assign("weekday",t.start.get("weekday")),n}shouldMergeResults(e,t,r){return t.start.isOnlyWeekdayComponent()&&!t.start.isCertain("hour")&&r.start.isCertain("day")&&null!=e.match(/^,?\s*$/)}}function ti(e,t=!1){return e.parsers.unshift(new tr),e.refiners.unshift(new tn),e.refiners.unshift(new eX),e.refiners.unshift(new eJ),e.refiners.push(new eH),e.refiners.push(new eJ),e.refiners.push(new eQ),e.refiners.push(new e0(t)),e}function to(e){let t=e.getDateWithAdjustedTimezone(),r=new m(e,{});return n(r,t),i(r,t),r.assign("timezoneOffset",e.getTimezoneOffset()),r.addTag("casualReference/now"),r}function ta(e){let t=e.getDateWithAdjustedTimezone(),r=new m(e,{});return n(r,t),a(r,t),r.delete("meridiem"),r.addTag("casualReference/today"),r}function ts(e){return tc(e,1).addTag("casualReference/yesterday")}function tu(e){return tl(e,1).addTag("casualReference/tomorrow")}function tc(e,t){return tl(e,-t)}function tl(e,t){let r=e.getDateWithAdjustedTimezone(),i=new m(e,{}),o=new Date(r.getTime());return o.setDate(o.getDate()+t),n(i,o),a(i,o),i.delete("meridiem"),i}function tf(e,t=22){let r=e.getDateWithAdjustedTimezone(),i=new m(e,{});return n(i,r),i.imply("hour",t),i.imply("meridiem",t9.PM),i.addTag("casualReference/tonight"),i}function td(e,t=20){let r=new m(e,{});return r.imply("meridiem",t9.PM),r.imply("hour",t),r.addTag("casualReference/evening"),r}function th(e){let t=new m(e,{});return e.getDateWithAdjustedTimezone().getHours()>2&&t.addDurationAsImplied({day:1}),t.assign("hour",0),t.imply("minute",0),t.imply("second",0),t.imply("millisecond",0),t.addTag("casualReference/midnight"),t}function tp(e,t=6){let r=new m(e,{});return r.imply("meridiem",t9.AM),r.imply("hour",t),r.imply("minute",0),r.imply("second",0),r.imply("millisecond",0),r.addTag("casualReference/morning"),r}function tm(e,t=15){let r=new m(e,{});return r.imply("meridiem",t9.PM),r.imply("hour",t),r.imply("minute",0),r.imply("second",0),r.imply("millisecond",0),r.addTag("casualReference/afternoon"),r}function ty(e){let t=new m(e,{});return t.imply("meridiem",t9.AM),t.assign("hour",12),t.imply("minute",0),t.imply("second",0),t.imply("millisecond",0),t.addTag("casualReference/noon"),t}let tg=/(now|today|tonight|tomorrow|overmorrow|tmr|tmrw|yesterday|last\s*night)(?=\W|$)/i;class tb extends V{innerPattern(e){return tg}innerExtract(e,t){let r=e.refDate,i=t[0].toLowerCase(),o=e.createParsingComponents();switch(i){case"now":o=to(e.reference);break;case"today":o=ta(e.reference);break;case"yesterday":o=ts(e.reference);break;case"tomorrow":case"tmr":case"tmrw":o=tu(e.reference);break;case"tonight":o=tf(e.reference);break;case"overmorrow":o=tl(e.reference,2);break;default:if(i.match(/last\s*night/)){if(r.getHours()>6){let e=new Date(r.getTime());e.setDate(e.getDate()-1),r=e}n(o,r),o.imply("hour",0)}}return o.addTag("parser/ENCasualDateParser"),o}}let tv=/(?:this)?\s{0,3}(morning|afternoon|evening|night|midnight|midday|noon)(?=\W|$)/i;class t_ extends V{innerPattern(){return tv}innerExtract(e,t){let r=null;switch(t[1].toLowerCase()){case"afternoon":r=tm(e.reference);break;case"evening":case"night":r=td(e.reference);break;case"midnight":r=th(e.reference);break;case"morning":r=tp(e.reference);break;case"noon":case"midday":r=ty(e.reference)}return r&&r.addTag("parser/ENCasualTimeParser"),r}}function tS(e,t,r){let n=tE(e.getDateWithAdjustedTimezone(),t,r),i=new m(e);return(i=i.addDurationAsImplied({day:n})).assign("weekday",t),i}function tE(e,t,r){let n=e.getDay();switch(r){case"this":return tT(e,t);case"last":return tx(e,t);case"next":if(n==t7.SUNDAY)return t==t7.SUNDAY?7:t;if(n==t7.SATURDAY){if(t==t7.SATURDAY)return 7;if(t==t7.SUNDAY)return 8;return 1+t}if(t=0&&(r-=7),r}let tA=RegExp(`(?:(?:\\,|\\(|\\()\\s*)?(?:on\\s*?)?(?:(this|last|past|next)\\s*)?(${v(E)}|weekend|weekday)(?:\\s*(?:\\,|\\)|\\)))?(?:\\s*(this|last|past|next)\\s*week)?(?=\\W|$)`,"i"),tO=1,tM=2,tR=3;class tC extends V{innerPattern(){return tA}innerExtract(e,t){let r,n=t[tO],i=t[tR],o=n||i;o=(o=o||"").toLowerCase();let a=null;"last"==o||"past"==o?a="last":"next"==o?a="next":"this"==o&&(a="this");let s=t[tM].toLowerCase();if(void 0!==E[s])r=E[s];else if("weekend"==s)r="last"==a?t7.SUNDAY:t7.SATURDAY;else{if("weekday"!=s)return null;let t=e.reference.getDateWithAdjustedTimezone().getDay();t==t7.SUNDAY||t==t7.SATURDAY?r="last"==a?t7.FRIDAY:t7.MONDAY:(r=t-1,r=(r="last"==a?r-1:r+1)%5+1)}return tS(e.reference,r,a)}}let tI=RegExp(`(this|last|past|next|after\\s*this)\\s*(${v(M)})(?=\\s*)(?=\\W|$)`,"i"),tN=1,tP=2;class tk extends V{innerPattern(){return tI}innerExtract(e,t){let r=t[tN].toLowerCase(),n=t[tP].toLowerCase(),i=M[n];if("next"==r||r.startsWith("after")){let t={};return t[i]=1,m.createRelativeFromReference(e.reference,t)}if("last"==r||"past"==r){let t={};return t[i]=-1,m.createRelativeFromReference(e.reference,t)}let o=e.createParsingComponents(),a=new Date(e.reference.instant.getTime());return n.match(/week/i)?(a.setDate(a.getDate()-a.getDay()),o.imply("day",a.getDate()),o.imply("month",a.getMonth()+1),o.imply("year",a.getFullYear())):n.match(/month/i)?(a.setDate(1),o.imply("day",a.getDate()),o.assign("year",a.getFullYear()),o.assign("month",a.getMonth()+1)):n.match(/year/i)&&(a.setDate(1),a.setMonth(0),o.imply("day",a.getDate()),o.imply("month",a.getMonth()+1),o.assign("year",a.getFullYear())),o}}let tD=RegExp("([^\\d]|^)([0-3]{0,1}[0-9]{1})[\\/\\.\\-]([0-3]{0,1}[0-9]{1})(?:[\\/\\.\\-]([0-9]{4}|[0-9]{2}))?(\\W|$)","i"),tL=1,tj=5,tU=2,tB=3,tF=4;class tz{groupNumberMonth;groupNumberDay;constructor(e){this.groupNumberMonth=e?tB:tU,this.groupNumberDay=e?tU:tB}pattern(){return tD}extract(e,t){let r=t.index+t[tL].length,n=t.index+t[0].length-t[tj].length;if(r>0&&e.text.substring(0,r).match("\\d/?$")||ni.indexOf("/"))return;let o=e.createParsingResult(r,i),a=parseInt(t[this.groupNumberMonth]),s=parseInt(t[this.groupNumberDay]);if((a<1||a>12)&&a>12)if(!(s>=1)||!(s<=12)||!(a<=31))return null;else[s,a]=[a,s];if(s<1||s>31)return null;if(o.start.assign("day",s),o.start.assign("month",a),t[tF]){let e=_(parseInt(t[tF]));o.start.assign("year",e)}else{let t=S(e.refDate,s,a);o.start.imply("year",t)}return o.addTag("parser/SlashDateFormatParser")}}let t$=RegExp(`(this|last|past|next|after|\\+|-)\\s*(${B})(?=\\W|$)`,"i"),tV=RegExp(`(this|last|past|next|after|\\+|-)\\s*(${F})(?=\\W|$)`,"i");class tY extends V{allowAbbreviations;constructor(e=!0){super(),this.allowAbbreviations=e}innerPattern(){return this.allowAbbreviations?t$:tV}innerExtract(e,t){let r=t[1].toLowerCase(),n=z(t[2]);if(!n)return null;switch(r){case"last":case"past":case"-":n=h(n)}return m.createRelativeFromReference(e.reference,n)}}function tq(e){return null!=e.text.match(/^[+-]/i)}function tH(e){return null!=e.text.match(/^-/i)}class tW extends eU{shouldMergeResults(e,t,r){return!!e.match(/^\s*$/i)&&(tq(r)||tH(r))}mergeResults(e,t,r,n){let i=z(r.text);tH(r)&&(i=h(i));let o=m.createRelativeFromReference(p.fromDate(t.start.date()),i);return new y(t.reference,t.index,`${t.text}${e}${r.text}`,o)}}function tG(e){return null!=e.text.match(/\s+(before|from)$/i)}function tZ(e){return null!=e.text.match(/\s+(after|since)$/i)}class tK extends eU{patternBetween(){return/^\s*$/i}shouldMergeResults(e,t,r){return!!e.match(this.patternBetween())&&(!!tG(t)||!!tZ(t))&&!!r.start.get("day")&&!!r.start.get("month")&&!!r.start.get("year")}mergeResults(e,t,r){let n=z(t.text);tG(t)&&(n=h(n));let i=m.createRelativeFromReference(p.fromDate(r.start.date()),n);return new y(r.reference,t.index,`${t.text}${e}${r.text}`,i)}}let tX=RegExp(`^\\s*(${P})`,"i"),tJ=1;class tQ{refine(e,t){return t.forEach(function(t){if(!t.start.isDateWithUnknownYear())return;let r=e.text.substring(t.index+t.text.length),n=tX.exec(r);if(!n||n[0].trim().length<=3)return;e.debug(()=>{console.log(`Extracting year: '${n[0]}' into : ${t}`)});let i=k(n[tJ]);null!=t.end&&t.end.assign("year",i),t.start.assign("year",i),t.text+=n[0]}),t}}class t0 extends ej{constructor(){super()}isValid(e,t){let r=t.text.trim();return r===e.text.trim()||("may"!==r.toLowerCase()||e.text.substring(0,t.index).trim().match(/\b(in)$/i)?!r.toLowerCase().endsWith("the second")||(e.text.substring(t.index+t.text.length).trim().length>0&&e.debug(()=>{console.log(`Removing unlikely result: ${t}`)}),!1):(e.debug(()=>{console.log(`Removing unlikely result: ${t}`)}),!1))}}class t1{createCasualConfiguration(e=!1){let t=this.createConfiguration(!1,e);return t.parsers.push(new tb),t.parsers.push(new t_),t.parsers.push(new el),t.parsers.push(new tk),t.parsers.push(new tY),t.refiners.push(new t0),t}createConfiguration(e=!0,t=!1){let r=ti({parsers:[new tz(t),new W(e),new Q,new eo(t),new tC,new e_,new eR(e),new eN(e),new eL(e)],refiners:[new eY]},e);return r.parsers.unshift(new ey(e)),r.refiners.unshift(new tK),r.refiners.unshift(new tW),r.refiners.unshift(new eJ),r.refiners.push(new eY),r.refiners.push(new tQ),r.refiners.push(new eF),r}}class t2{parsers;refiners;defaultConfig=new t1;constructor(e){e=e||this.defaultConfig.createCasualConfiguration(),this.parsers=[...e.parsers],this.refiners=[...e.refiners]}clone(){return new t2({parsers:[...this.parsers],refiners:[...this.refiners]})}parseDate(e,t,r){let n=this.parse(e,t,r);return n.length>0?n[0].start.date():null}parse(e,t,r){let n=new t6(e,t,r),i=[];return this.parsers.forEach(e=>{let t=t2.executeParser(n,e);i=i.concat(t)}),i.sort((e,t)=>e.index-t.index),this.refiners.forEach(function(e){i=e.refine(n,i)}),i}static executeParser(e,t){let r=[],n=t.pattern(e),i=e.text,o=e.text,a=n.exec(o);for(;a;){let s=a.index+i.length-o.length;a.index=s;let u=t.extract(e,a);if(!u){o=i.substring(a.index+1),a=n.exec(o);continue}let c=null;u instanceof y?c=u:u instanceof m?(c=e.createParsingResult(a.index,a[0])).start=u:c=e.createParsingResult(a.index,a[0],u);let l=c.index,f=c.text;e.debug(()=>console.log(`${t.constructor.name} extracted (at index=${l}) '${f}'`)),r.push(c),o=i.substring(l+f.length),a=n.exec(o)}return r}}class t6{text;option;reference;refDate;constructor(e,t,r){this.text=e,this.option=r??{},this.reference=p.fromInput(t,this.option.timezones),this.refDate=this.reference.instant}createParsingComponents(e){return e instanceof m?e:new m(this.reference,e)}createParsingResult(e,t,r,n){let i="string"==typeof t?t:this.text.substring(e,t),o=r?this.createParsingComponents(r):null,a=n?this.createParsingComponents(n):null;return new y(this.reference,e,i,o,a)}debug(e){this.option.debug&&(this.option.debug instanceof Function?this.option.debug(e):this.option.debug.debug(e))}}let t3=new t1,t4=new t2(t3.createCasualConfiguration(!1));new t2(t3.createConfiguration(!0,!1)),new t2(t3.createCasualConfiguration(!0));let t5=t4;function t8(e,t,r){return t5.parse(e,t,r)}var t9,t7,re,rt=r(67264),rr=r.n(rt);function rn(e){if(!e)return null;let t=new Date,r=e.date();if(e.isCertain("hour")||e.isCertain("minute")||e.isCertain("second")||e.isCertain("millisecond")||(t.setHours(e.get("hour")||0),t.setMinutes(e.get("minute")||0),t.setSeconds(e.get("second")||0),t.setMilliseconds(e.get("millisecond")||0)),r>t){let n=t.getTime()+rr()("1d");if(r.getTime()<=n)return t;e.isCertain("year")||r.setFullYear(r.getFullYear()-1)}return r}function ri(e,t=!1){let r=t8(e,t?{timezone:0}:{});if(0===r.length)return[null,null];let n=1===r.length?r[0]:r[1],i=rn(n.start),o=rn(n.end)||new Date;return o&&i&&o"divider"!==t&&t[1]===e);return t?t[0]:void 0}let rc=["30s","1m","5m","15m","30m","1h","3h","6h","12h"],rl={"30s":{seconds:30},"1m":{minutes:1},"5m":{minutes:5},"15m":{minutes:15},"30m":{minutes:30},"1h":{hours:1},"3h":{hours:3},"6h":{hours:6},"12h":{hours:12}},rf=e=>{if(!e)return null;let t=t5.parse(e)[0];return rn(t?.start)}},14274:(e,t,r)=>{"use strict";var n=r(80656);e.exports=Function.prototype.bind||n},14292:(e,t,r)=>{"use strict";var n=r(74818),i=r(93529),o=r(78030),a=r(56315),s=r(62397),u=n(a(),Number);i(u,{getPolyfill:a,implementation:o,shim:s}),e.exports=u},14333:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(53362);let i={y:function(e,t){var r=e.getUTCFullYear(),i=r>0?r:1-r;return(0,n.A)("yy"===t?i%100:i,t.length)},M:function(e,t){var r=e.getUTCMonth();return"M"===t?String(r+1):(0,n.A)(r+1,2)},d:function(e,t){return(0,n.A)(e.getUTCDate(),t.length)},a:function(e,t){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];default:return"am"===r?"a.m.":"p.m."}},h:function(e,t){return(0,n.A)(e.getUTCHours()%12||12,t.length)},H:function(e,t){return(0,n.A)(e.getUTCHours(),t.length)},m:function(e,t){return(0,n.A)(e.getUTCMinutes(),t.length)},s:function(e,t){return(0,n.A)(e.getUTCSeconds(),t.length)},S:function(e,t){var r=t.length,i=Math.floor(e.getUTCMilliseconds()*Math.pow(10,r-3));return(0,n.A)(i,t.length)}}},15179:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=l(r(89680)),i=l(r(42503)),o=l(r(32358)),a=l(r(24708)),s=l(r(47961)),u=l(r(32454)),c=l(r(48577));function l(e){return e&&e.__esModule?e:{default:e}}var f="midnight",d="noon",h="morning",p="afternoon",m="evening",y="night";function g(e,t){var r=e>0?"-":"+",n=Math.abs(e),i=Math.floor(n/60),o=n%60;if(0===o)return r+String(i);var a=t||"";return r+String(i)+a+(0,u.default)(o,2)}function b(e,t){return e%60==0?(e>0?"-":"+")+(0,u.default)(Math.abs(e)/60,2):v(e,t)}function v(e,t){var r=t||"",n=e>0?"-":"+",i=Math.abs(e);return n+(0,u.default)(Math.floor(i/60),2)+r+(0,u.default)(i%60,2)}t.default={G:function(e,t,r){var n=+(e.getUTCFullYear()>0);switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if("yo"===t){var n=e.getUTCFullYear(),i=n>0?n:1-n;return r.ordinalNumber(i,{unit:"year"})}return c.default.y(e,t)},Y:function(e,t,r,n){var i=(0,s.default)(e,n),o=i>0?i:1-i;if("YY"===t){var a=o%100;return(0,u.default)(a,2)}return"Yo"===t?r.ordinalNumber(o,{unit:"year"}):(0,u.default)(o,t.length)},R:function(e,t){var r=(0,o.default)(e);return(0,u.default)(r,t.length)},u:function(e,t){var r=e.getUTCFullYear();return(0,u.default)(r,t.length)},Q:function(e,t,r){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return(0,u.default)(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return(0,u.default)(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){var n=e.getUTCMonth();switch(t){case"M":case"MM":return c.default.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){var n=e.getUTCMonth();switch(t){case"L":return String(n+1);case"LL":return(0,u.default)(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){var i=(0,a.default)(e,n);return"wo"===t?r.ordinalNumber(i,{unit:"week"}):(0,u.default)(i,t.length)},I:function(e,t,r){var n=(0,i.default)(e);return"Io"===t?r.ordinalNumber(n,{unit:"week"}):(0,u.default)(n,t.length)},d:function(e,t,r){return"do"===t?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):c.default.d(e,t)},D:function(e,t,r){var i=(0,n.default)(e);return"Do"===t?r.ordinalNumber(i,{unit:"dayOfYear"}):(0,u.default)(i,t.length)},E:function(e,t,r){var n=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){var i=e.getUTCDay(),o=(i-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return(0,u.default)(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){var i=e.getUTCDay(),o=(i-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return(0,u.default)(o,t.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,r){var n=e.getUTCDay(),i=0===n?7:n;switch(t){case"i":return String(i);case"ii":return(0,u.default)(i,t.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(e,t,r){var n,i=e.getUTCHours();switch(n=12===i?d:0===i?f:i/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(e,t,r){var n,i=e.getUTCHours();switch(n=i>=17?m:i>=12?p:i>=4?h:y,t){case"B":case"BB":case"BBB":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(e,t,r){if("ho"===t){var n=e.getUTCHours()%12;return 0===n&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return c.default.h(e,t)},H:function(e,t,r){return"Ho"===t?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):c.default.H(e,t)},K:function(e,t,r){var n=e.getUTCHours()%12;return"Ko"===t?r.ordinalNumber(n,{unit:"hour"}):(0,u.default)(n,t.length)},k:function(e,t,r){var n=e.getUTCHours();return(0===n&&(n=24),"ko"===t)?r.ordinalNumber(n,{unit:"hour"}):(0,u.default)(n,t.length)},m:function(e,t,r){return"mo"===t?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):c.default.m(e,t)},s:function(e,t,r){return"so"===t?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):c.default.s(e,t)},S:function(e,t){return c.default.S(e,t)},X:function(e,t,r,n){var i=(n._originalDate||e).getTimezoneOffset();if(0===i)return"Z";switch(t){case"X":return b(i);case"XXXX":case"XX":return v(i);default:return v(i,":")}},x:function(e,t,r,n){var i=(n._originalDate||e).getTimezoneOffset();switch(t){case"x":return b(i);case"xxxx":case"xx":return v(i);default:return v(i,":")}},O:function(e,t,r,n){var i=(n._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+g(i,":");default:return"GMT"+v(i,":")}},z:function(e,t,r,n){var i=(n._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+g(i,":");default:return"GMT"+v(i,":")}},t:function(e,t,r,n){var i=Math.floor((n._originalDate||e).getTime()/1e3);return(0,u.default)(i,t.length)},T:function(e,t,r,n){var i=(n._originalDate||e).getTime();return(0,u.default)(i,t.length)}},e.exports=t.default},15242:(e,t,r)=>{"use strict";r.d(t,{o:()=>i,x:()=>o}),r(55729);var n=r(36254);r(6029);let[i,o]=(0,n.F)("ModalBase component was not found in tree")},15811:(e,t,r)=>{"use strict";function n(e="mantine-"){return`${e}${Math.random().toString(36).slice(2,11)}`}r.d(t,{z:()=>n})},15862:(e,t,r)=>{"use strict";r.d(t,{nW:()=>m,xd:()=>p});var n=r(6029),i=r(55729),o=r(47766),a=r(27202);let s="[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color",u="[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }";function c(e){return!(e<0)&&!(e>9)&&parseInt(e.toString(),10)===e}function l(e){if(!(e.primaryColor in e.colors))throw Error(s);if("object"==typeof e.primaryShade&&(!c(e.primaryShade.dark)||!c(e.primaryShade.light))||"number"==typeof e.primaryShade&&!c(e.primaryShade))throw Error(u)}function f(e,t){if(!t)return l(e),e;let r=(0,a.$)(e,t);return t.fontFamily&&!t.headings?.fontFamily&&(r.headings.fontFamily=t.fontFamily),l(r),r}let d=(0,i.createContext)(null),h=()=>(0,i.useContext)(d)||o.S;function p(){let e=(0,i.useContext)(d);if(!e)throw Error("@mantine/core: MantineProvider was not found in component tree, make sure you have it in your app");return e}function m({theme:e,children:t,inherit:r=!0}){let a=h(),s=(0,i.useMemo)(()=>f(r?a:o.S,e),[e,a,r]);return(0,n.jsx)(d.Provider,{value:s,children:t})}m.displayName="@mantine/core/MantineThemeProvider"},16162:function(e,t,r){var n=r(29143);!function(t,r){e.exports=r()}(0,function(){"use strict";let e;var t,i,o="u">typeof globalThis?globalThis:"u">typeof window?window:void 0!==r.g?r.g:"u">typeof self?self:{};function a(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function s(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){if(this instanceof e){var r=[null];return r.push.apply(r,arguments),new(Function.bind.apply(t,r))}return t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}var u={},c={},l=function(e,t){return(l=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function f(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}l(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var d=function(){return(d=Object.assign||function(e){for(var t,r=1,n=arguments.length;rt.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);it.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}function p(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a}function m(e,t){return function(r,n){t(r,n,e)}}function y(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function g(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}u((n=n.apply(e,t||[])).next())})}function b(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(u){return function(s){if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function E(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function w(){for(var e=[],t=0;t1||s(e,t)})})}function s(e,t){try{!function(e){e.value instanceof A?Promise.resolve(e.value.v).then(u,c):l(o[0][2],e)}(i[e](t))}catch(e){l(o[0][3],e)}}function u(e){s("next",e)}function c(e){s("throw",e)}function l(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function M(e){var t,r;return t={},n("next"),n("throw",function(e){throw e}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,i){t[n]=e[n]?function(t){return(r=!r)?{value:A(e[n](t)),done:!1}:i?i(t):t}:i}}function R(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=S(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise(function(n,i){!function(e,t,r,n){Promise.resolve(n).then(function(t){e({value:t,done:r})},t)}(n,i,(t=e[r](t)).done,t.value)})}}}function C(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var I=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function N(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&v(t,e,r);return I(t,e),t}function P(e){return e&&e.__esModule?e:{default:e}}function k(e,t,r,n){if("a"===r&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function D(e,t,r,n,i){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!i)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(e,r):i?i.value=r:t.set(e,r),r}function L(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function j(e,t,r){if(null!=t){var n;if("object"!=typeof t&&"function"!=typeof t)throw TypeError("Object expected.");if(r){if(!Symbol.asyncDispose)throw TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose]}if("function"!=typeof n)throw TypeError("Object not disposable.");e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var U="function"==typeof SuppressedError?SuppressedError:function(e,t,r){var n=Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function B(e){function t(t){e.error=e.hasError?new U(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}return function r(){for(;e.stack.length;){var n=e.stack.pop();try{var i=n.dispose&&n.dispose.call(n.value);if(n.async)return Promise.resolve(i).then(r,function(e){return t(e),r()})}catch(e){t(e)}}if(e.hasError)throw e.error}()}var F={__extends:f,__assign:d,__rest:h,__decorate:p,__param:m,__metadata:y,__awaiter:g,__generator:b,__createBinding:v,__exportStar:_,__values:S,__read:E,__spread:w,__spreadArrays:T,__spreadArray:x,__await:A,__asyncGenerator:O,__asyncDelegator:M,__asyncValues:R,__makeTemplateObject:C,__importStar:N,__importDefault:P,__classPrivateFieldGet:k,__classPrivateFieldSet:D,__classPrivateFieldIn:L,__addDisposableResource:j,__disposeResources:B},z=s(Object.freeze({__proto__:null,__addDisposableResource:j,get __assign(){return d},__asyncDelegator:M,__asyncGenerator:O,__asyncValues:R,__await:A,__awaiter:g,__classPrivateFieldGet:k,__classPrivateFieldIn:L,__classPrivateFieldSet:D,__createBinding:v,__decorate:p,__disposeResources:B,__esDecorate:function(e,t,r,n,i,o){function a(e){if(void 0!==e&&"function"!=typeof e)throw TypeError("Function expected");return e}for(var s,u=n.kind,c="getter"===u?"get":"setter"===u?"set":"value",l=!t&&e?n.static?e:e.prototype:null,f=t||(l?Object.getOwnPropertyDescriptor(l,n.name):{}),d=!1,h=r.length-1;h>=0;h--){var p={};for(var m in n)p[m]="access"===m?{}:n[m];for(var m in n.access)p.access[m]=n.access[m];p.addInitializer=function(e){if(d)throw TypeError("Cannot add initializers after decoration has completed");o.push(a(e||null))};var y=(0,r[h])("accessor"===u?{get:f.get,set:f.set}:f[c],p);if("accessor"===u){if(void 0===y)continue;if(null===y||"object"!=typeof y)throw TypeError("Object expected");(s=a(y.get))&&(f.get=s),(s=a(y.set))&&(f.set=s),(s=a(y.init))&&i.unshift(s)}else(s=a(y))&&("field"===u?i.unshift(s):f[c]=s)}l&&Object.defineProperty(l,n.name,f),d=!0},__exportStar:_,__extends:f,__generator:b,__importDefault:P,__importStar:N,__makeTemplateObject:C,__metadata:y,__param:m,__propKey:function(e){return"symbol"==typeof e?e:"".concat(e)},__read:E,__rest:h,__runInitializers:function(e,t,r){for(var n=arguments.length>2,i=0;i0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},ee=function(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},ei=function(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i=n?i.bind(t):function(){}}return eJ.ALL&&(e=J.ALL),t=t||{},{error:r("error",J.ERROR),warn:r("warn",J.WARN),info:r("info",J.INFO),debug:r("debug",J.DEBUG),verbose:r("verbose",J.VERBOSE)}}(null!=(i=r.logLevel)?i:J.INFO,e);if(s&&!r.suppressOverrideMessage){var c=null!=(o=Error().stack)?o:"";s.warn("Current logger will be overwritten from "+c),u.warn("Current logger will overwrite one already registered from "+c)}return Z("diag",u,t,!0)},t.disable=function(){X("diag",t)},t.createComponentLogger=function(e){return new et(e)},t.verbose=e("verbose"),t.debug=e("debug"),t.info=e("info"),t.warn=e("warn"),t.error=e("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e}(),ea=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},es=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},eu=function(){function e(e){this._entries=e?new Map(e):new Map}return e.prototype.getEntry=function(e){var t=this._entries.get(e);if(t)return Object.assign({},t)},e.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(e){var t=ea(e,2);return[t[0],t[1]]})},e.prototype.setEntry=function(t,r){var n=new e(this._entries);return n._entries.set(t,r),n},e.prototype.removeEntry=function(t){var r=new e(this._entries);return r._entries.delete(t),r},e.prototype.removeEntries=function(){for(var t,r,n=[],i=0;i0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},eB=function(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},e$=function(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i512||(this._internalState=e.split(",").reverse().reduce(function(e,t){var r=t.trim(),n=r.indexOf("=");if(-1!==n){var i=r.slice(0,n),o=r.slice(n+1,t.length);(function(e){return tc.test(e)})(i)&&function(e){return tl.test(e)&&!tf.test(e)}(o)&&e.set(i,o)}return e},new Map),this._internalState.size>32&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,32))))},e.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},e.prototype._clone=function(){var t=new e;return t._internalState=new Map(this._internalState),t},e}(),th=eq.getInstance(),tp=eo.instance(),tm=new(function(){function e(){}return e.prototype.getMeter=function(e,t,r){return eM},e}()),ty="metrics",tg=(function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalMeterProvider=function(e){return Z(ty,e,eo.instance())},e.prototype.getMeterProvider=function(){return K(ty)||tm},e.prototype.getMeter=function(e,t,r){return this.getMeterProvider().getMeter(e,t,r)},e.prototype.disable=function(){X(ty,eo.instance())},e})().getInstance(),tb=function(){function e(){}return e.prototype.inject=function(e,t){},e.prototype.extract=function(e,t){return e},e.prototype.fields=function(){return[]},e}(),tv=eh("OpenTelemetry Baggage Key");function t_(e){return e.getValue(tv)||void 0}function tS(){return t_(eq.getInstance().active())}function tE(e,t){return e.setValue(tv,t)}function tw(e){return e.deleteValue(tv)}var tT,tx="propagation",tA=new tb,tO=(function(){function e(){this.createBaggage=ef,this.getBaggage=t_,this.getActiveBaggage=tS,this.setBaggage=tE,this.deleteBaggage=tw}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalPropagator=function(e){return Z(tx,e,eo.instance())},e.prototype.inject=function(e,t,r){return void 0===r&&(r=ej),this._getGlobalPropagator().inject(e,t,r)},e.prototype.extract=function(e,t,r){return void 0===r&&(r=eL),this._getGlobalPropagator().extract(e,t,r)},e.prototype.fields=function(){return this._getGlobalPropagator().fields()},e.prototype.disable=function(){X(tx,eo.instance())},e.prototype._getGlobalPropagator=function(){return K(tx)||tA},e})().getInstance(),tM="trace",tR=(function(){function e(){this._proxyTracerProvider=new ts,this.wrapSpanContext=e9,this.isSpanContextValid=e8,this.deleteSpan=e0,this.getSpan=eX,this.getActiveSpan=eJ,this.getSpanContext=e2,this.setSpan=eQ,this.setSpanContext=e1}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalTracerProvider=function(e){var t=Z(tM,this._proxyTracerProvider,eo.instance());return t&&this._proxyTracerProvider.setDelegate(e),t},e.prototype.getTracerProvider=function(){return K(tM)||this._proxyTracerProvider},e.prototype.getTracer=function(e,t){return this.getTracerProvider().getTracer(e,t)},e.prototype.disable=function(){X(tM,eo.instance()),this._proxyTracerProvider=new ts},e})().getInstance(),tC={context:th,diag:tp,metrics:tg,propagation:tO,trace:tR},tI=s(Object.freeze({__proto__:null,DiagConsoleLogger:eg,get DiagLogLevel(){return J},INVALID_SPANID:eH,INVALID_SPAN_CONTEXT:eG,INVALID_TRACEID:eW,ProxyTracer:to,ProxyTracerProvider:ts,ROOT_CONTEXT:em,get SamplingDecision(){return e7},get SpanKind(){return te},get SpanStatusCode(){return tt},get TraceFlags(){return eD},get ValueType(){return ep},baggageEntryMetadataFromString:ed,context:th,createContextKey:eh,createNoopMeter:function(){return eM},createTraceState:function(e){return new td(e)},default:tC,defaultTextMapGetter:eL,defaultTextMapSetter:ej,diag:tp,isSpanContextValid:e8,isValidSpanId:e5,isValidTraceId:e4,metrics:tg,propagation:tO,trace:tR})),tN={};function tP(e){for(var t={},r=e.length,n=0;n",license:"Apache-2.0",version:"0.1.0",homepage:"https://www.hyperdx.io",repository:{type:"git",url:"https://github.com/hyperdxio/hyperdx-js.git"},publishConfig:{access:"public"},files:["build/*"],main:"build/src/index.js",scripts:{clean:"rimraf coverage build tmp",prebuild:"npm run clean",build:"tsc -p tsconfig.release.json",postbuild:"npm run build:types","build:types":"tsc -d -p tsconfig.release.json --declarationMap --emitDeclarationOnly","build:watch":"tsc -w -p tsconfig.json",lint:"eslint . --ext .ts --ext .mts","ci:lint":"yarn lint && yarn tsc --noEmit",prettier:"prettier --config .prettierrc --write ."},dependencies:{"@opentelemetry/core":"^1.24.1","@opentelemetry/instrumentation":"^0.51.1","@opentelemetry/semantic-conventions":"^1.24.1","json-stringify-safe":"^5.0.1",shimmer:"^1.2.1",tslib:"^2.5.3"},devDependencies:{"@opentelemetry/api":"^1.8.0","@sentry/node":"7.x","@sentry/types-v7":"npm:@sentry/types@7.x","@sentry/types-v8":"npm:@sentry/types@8.x"},peerDependencies:{"@opentelemetry/api":"^1.3.0"},keywords:["sentry","exception","instrumentation","nodejs","opentelemetry","tracing"]},d2={},d6={exports:{}};!function(e,t){function r(e,t){var r=[],n=[];return null==t&&(t=function(e,t){return r[0]===t?"[Circular ~]":"[Circular ~."+n.slice(0,r.indexOf(t)).join(".")+"]"}),function(i,o){if(r.length>0){var a=r.indexOf(this);~a?r.splice(a+1):r.push(this),~a?n.splice(a,1/0,i):n.push(i),~r.indexOf(o)&&(o=t.call(this,i,o))}else r.push(o);return null==e?o:e.call(this,i,o)}}(e.exports=function(e,t,n,i){return JSON.stringify(e,r(t,i),n)}).getSerialize=r}(d6);var d3,d4,d5=d6.exports,d8=a(d5);function d9(){return d4||(d4=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getEventProcessor=e.getSpanNameFromEvent=e.isSentryEventAnException=e.extractSpanEventsFromException=e.extractSemAttrsFromEvent=e.SEMATTRS_SENTRY_VERSION=e.SEMATTRS_EXCEPTION_THREAD_ID=e.SEMATTRS_EXCEPTION_TAGS=e.SEMATTRS_EXCEPTION_PARSED_STACKTRACE=e.SEMATTRS_EXCEPTION_MODULES=e.SEMATTRS_EXCEPTION_MODULE=e.SEMATTRS_EXCEPTION_MECHANISM=void 0;let t=z.__importStar(tI),r=(tT||(tT=1,Object.defineProperty(tN,"__esModule",{value:!0}),tN.ExceptionEventName=void 0,tN.ExceptionEventName="exception"),tN),n=d0,i=d1,o=function(){if(d3)return d2;d3=1,Object.defineProperty(d2,"__esModule",{value:!0}),d2.jsonToString=void 0;let e=tI,t=z.__importDefault(d5);return d2.jsonToString=r=>{try{return JSON.stringify(r)}catch(n){return e.diag.error("Failed to stringify json",n),(0,t.default)(r)}},d2}(),a=t.default.trace.getTracer(i.name,i.version);e.SEMATTRS_EXCEPTION_MECHANISM="exception.mechanism",e.SEMATTRS_EXCEPTION_MODULE="exception.module",e.SEMATTRS_EXCEPTION_MODULES="exception.modules",e.SEMATTRS_EXCEPTION_PARSED_STACKTRACE="exception.parsed_stacktrace",e.SEMATTRS_EXCEPTION_TAGS="exception.tags",e.SEMATTRS_EXCEPTION_THREAD_ID="exception.thread_id",e.SEMATTRS_SENTRY_VERSION="sentry.version",e.extractSemAttrsFromEvent=(t,r,i)=>{var a,s,u,c,l,f;return{...i&&{[e.SEMATTRS_SENTRY_VERSION]:i},...t.modules&&{[e.SEMATTRS_EXCEPTION_MODULES]:(0,o.jsonToString)(t.modules)},[e.SEMATTRS_EXCEPTION_TAGS]:(0,o.jsonToString)({culture:null==(a=t.contexts)?void 0:a.culture,dist:t.dist,environment:t.environment,mechanism:r.mechanism,release:t.release}),...(null==(s=t.contexts)?void 0:s.app)&&{"app.build_type":t.contexts.app.build_type,"app.id":t.contexts.app.app_identifier,"app.memory":t.contexts.app.app_memory,"app.name":t.contexts.app.app_name,"app.start_time":t.contexts.app.app_start_time,"app.version":t.contexts.app.app_version},...(null==(u=t.contexts)?void 0:u.response)&&{[n.SEMATTRS_HTTP_STATUS_CODE]:t.contexts.response.status_code,[n.SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH]:t.contexts.response.body_size,...(t.contexts.response.headers&&Object.entries(t.contexts.response.headers).reduce((e,[t,r])=>(e[`http.response.header.${t}`]=r,e)),{})},...(null==(c=t.contexts)?void 0:c.cloud_resource)&&{"cloud.provider":t.contexts.cloud_resource["cloud.provider"],"cloud.account.id":t.contexts.cloud_resource["cloud.account.id"],"cloud.region":t.contexts.cloud_resource["cloud.region"],"cloud.availability_zone":t.contexts.cloud_resource["cloud.availability_zone"],"cloud.platform":t.contexts.cloud_resource["cloud.platform"],"host.id":t.contexts.cloud_resource["host.id"],"host.type":t.contexts.cloud_resource["host.type"]},...(null==(l=t.contexts)?void 0:l.os)&&{"os.build_id":t.contexts.os.build,"os.kernel_version":t.contexts.os.kernel_version,"os.type":t.contexts.os.name,"os.version":t.contexts.os.version},...(null==(f=t.contexts)?void 0:f.device)&&{"device.id":t.contexts.device.device_unique_identifier,"device.manufacturer":t.contexts.device.manufacturer,"device.model.identifier":t.contexts.device.model_id,"device.model.name":t.contexts.device.model,"device.type":t.contexts.device.device_type,"device.battery_level":t.contexts.device.battery_level,"device.battery_status":t.contexts.device.battery_status,"device.orientation":t.contexts.device.orientation,"device.brand":t.contexts.device.brand,"device.sreen_resolution":t.contexts.device.screen_resolution,"device.screen_height_pixels":t.contexts.device.screen_height_pixels,"device.screen_width_pixels":t.contexts.device.screen_width_pixels,"device.screen_density":t.contexts.device.screen_density,"device.screen_dpi":t.contexts.device.screen_dpi,"device.online":t.contexts.device.online,"device.charging":t.contexts.device.charging,"device.supports_vibration":t.contexts.device.supports_vibration,"device.supports_accelerometer":t.contexts.device.supports_accelerometer,"device.supports_gyroscope":t.contexts.device.supports_gyroscope,"device.supports_audio":t.contexts.device.supports_audio,"device.supports_location_service":t.contexts.device.supports_location_service,"device.boot_time":t.contexts.device.boot_time,"device.low_memory":t.contexts.device.low_memory,"device.simulator":t.contexts.device.simulator,"device.memory_size":t.contexts.device.memory_size,"device.free_memory":t.contexts.device.free_memory,"device.usable_memory":t.contexts.device.usable_memory,"device.storage_size":t.contexts.device.storage_size,"device.free_storage":t.contexts.device.free_storage,"device.external_storage_size":t.contexts.device.external_storage_size,"device.external_free_storage":t.contexts.device.external_free_storage,"host.cpu.model.name":t.contexts.device.cpu_description,"host.cpu.count":t.contexts.device.processor_count,"host.cpu.frequency":t.contexts.device.processor_frequency},...t.server_name&&{"host.name":t.server_name}}},e.extractSpanEventsFromException=t=>({[n.SEMATTRS_EXCEPTION_MESSAGE]:t.value,[e.SEMATTRS_EXCEPTION_PARSED_STACKTRACE]:(0,o.jsonToString)(t.stacktrace),[n.SEMATTRS_EXCEPTION_TYPE]:t.type,...t.mechanism&&{[e.SEMATTRS_EXCEPTION_MECHANISM]:(0,o.jsonToString)(t.mechanism)},...t.module&&{[e.SEMATTRS_EXCEPTION_MODULE]:t.module},...t.thread_id&&{[e.SEMATTRS_EXCEPTION_THREAD_ID]:t.thread_id}}),e.isSentryEventAnException=e=>{var t,r;return(null==(r=null==(t=e.exception)?void 0:t.values)?void 0:r.length)>0},e.getSpanNameFromEvent=e=>{var t;return e.message?e.message:[null==(t=e.exception)?void 0:t.values[0].type,e.transaction].join(" ")},e.getEventProcessor=(n,i)=>(o,s,u,c)=>{try{if(t.diag.debug("Received Sentry event",o),(0,e.isSentryEventAnException)(o)){let l=n;null==l&&(l=a,t.diag.debug("Using default tracer")),(({customAttributes:n,event:i,hint:o,sentryVersion:a,span:s,spanStatus:u,tracer:c})=>{var l,f;let d=s,h=!1,p=1e3*i.timestamp,m=(0,e.extractSemAttrsFromEvent)(i,o,a);for(let o of(null==d&&(h=!0,d=c.startSpan((0,e.getSpanNameFromEvent)(i),{attributes:{...n,...m},startTime:p,kind:t.SpanKind.INTERNAL})),d.setStatus({code:u}),null!=(f=null==(l=i.exception)?void 0:l.values)?f:[]))d.addEvent(r.ExceptionEventName,(0,e.extractSpanEventsFromException)(o));h&&d.end(p)})({customAttributes:c,event:o,hint:s,sentryVersion:i,span:u,spanStatus:t.SpanStatusCode.ERROR,tracer:l})}}catch(e){t.diag.error("Error processing event",e)}return o}}($)),$}var d7={},he=function(){function e(){}return e.prototype.emit=function(e){},e}(),ht=new(function(){function e(){}return e.prototype.getLogger=function(e,t,r){return new he},e}()),hr="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof r.g?r.g:{},hn=Symbol.for("io.opentelemetry.js.api.logs"),hi=hr,ho=(function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalLoggerProvider=function(e){return hi[hn]?this.getLoggerProvider():(hi[hn]=function(e,t,r){return function(e){return 1===e?t:r}}(0,e,ht),e)},e.prototype.getLoggerProvider=function(){var e,t;return null!=(t=null==(e=hi[hn])?void 0:e.call(hi,1))?t:ht},e.prototype.getLogger=function(e,t,r){return this.getLoggerProvider().getLogger(e,t,r)},e.prototype.disable=function(){delete hi[hn]},e})().getInstance();function ha(e){void 0===e&&(e=[]);for(var t=[],r=0,n=e.length;r0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]({name:"HyperDX",setupOnce(){},setup(e){var r;if(!e.on)return;let n=e.getSdkMetadata(),i=(0,t.getEventProcessor)(void 0,null==(r=n.sdk)?void 0:r.version);e.on("beforeSendEvent",(e,t)=>{i(e,t)})}}),e.hyperdxIntegration=e._hyperdxIntegration}(hA)),hA);class i extends t.InstrumentationBase{constructor(e={}){super(r.name,r.version,e)}setConfig(e={}){this._config=Object.assign({},e)}getConfig(){return this._config}init(){return[new t.InstrumentationNodeModuleDefinition("@sentry/node",[">=7.30.0 <9"],t=>(e.diag.debug(`Detected Sentry installed with SDK version: ${t.SDK_VERSION}`),this._wrap(t,"init",r=>(...i)=>{let o=r.apply(this,i);try{t.addIntegration instanceof Function?(t.addIntegration((0,n.hyperdxIntegration)()),e.diag.debug("Added HyperDX Sentry integration")):e.diag.error("Sentry SDK does not support addIntegration method")}catch(t){e.diag.error("Error adding HyperDX Sentry integration",t)}return o}),t),e=>{})]}}return d7.SentryNodeInstrumentation=i,d7}var hM,hR={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});let t=z;t.__exportStar(d9(),e),t.__exportStar(hO(),e),t.__exportStar((hM||(hM=1,Object.defineProperty(hR,"__esModule",{value:!0})),hR),e)}(c);var hC={},hI={},hN={},hP={},hk={};Object.defineProperty(hk,"__esModule",{value:!0});let hD=Object.prototype.toString;function hL(e,t){return hD.call(e)===`[object ${t}]`}function hj(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function hU(e){return hL(e,"Object")}function hB(e,t){try{return e instanceof t}catch(e){return!1}}hk.isDOMError=function(e){return hL(e,"DOMError")},hk.isDOMException=function(e){return hL(e,"DOMException")},hk.isElement=function(e){return"u">typeof Element&&hB(e,Element)},hk.isError=function(e){switch(hD.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return hB(e,Error)}},hk.isErrorEvent=function(e){return hL(e,"ErrorEvent")},hk.isEvent=function(e){return"u">typeof Event&&hB(e,Event)},hk.isInstanceOf=hB,hk.isParameterizedString=hj,hk.isPlainObject=hU,hk.isPrimitive=function(e){return null===e||hj(e)||"object"!=typeof e&&"function"!=typeof e},hk.isRegExp=function(e){return hL(e,"RegExp")},hk.isString=function(e){return hL(e,"String")},hk.isSyntheticEvent=function(e){return hU(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e},hk.isThenable=function(e){return!!(e&&e.then&&"function"==typeof e.then)},hk.isVueViewModel=function(e){return!("object"!=typeof e||null===e||!e.__isVue&&!e._isVue)};var hF={};Object.defineProperty(hF,"__esModule",{value:!0});let hz=hk;function h$(e,t,r=!1){return!!hz.isString(e)&&(hz.isRegExp(t)?t.test(e):!!hz.isString(t)&&(r?e===t:e.includes(t)))}hF.isMatchingPattern=h$,hF.safeJoin=function(e,t){if(!Array.isArray(e))return"";let r=[];for(let t=0;tn&&(t=n);let i=Math.max(t-60,0);i<5&&(i=0);let o=Math.min(i+140,n);return o>n-5&&(o=n),o===n&&(i=Math.max(o-140,0)),r=r.slice(i,o),i>0&&(r=`'{snip} ${r}`),oh$(e,t,r))},hF.truncate=function(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`},Object.defineProperty(hP,"__esModule",{value:!0});let hV=hk,hY=hF;function hq(e,t,r,n,i,o,a,s){if(o.length>=r+1)return o;let u=[...o];if(hV.isInstanceOf(n[i],Error)){hH(a,s);let o=e(t,n[i]),c=u.length;hW(o,i,c,s),u=hq(e,t,r,n[i],i,[o,...u],o,c)}return Array.isArray(n.errors)&&n.errors.forEach((n,o)=>{if(hV.isInstanceOf(n,Error)){hH(a,s);let c=e(t,n),l=u.length;hW(c,`errors[${o}]`,l,s),u=hq(e,t,r,n,i,[c,...u],c,l)}}),u}function hH(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,..."AggregateError"===e.type&&{is_exception_group:!0},exception_id:t}}function hW(e,t,r,n){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:r,parent_id:n}}hP.applyAggregateErrorsToEvent=function(e,t,r=250,n,i,o,a){var s,u;if(!(o.exception&&o.exception.values&&a&&hV.isInstanceOf(a.originalException,Error)))return;let c=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;c&&(o.exception.values=(s=hq(e,t,i,a.originalException,n,o.exception.values,c,0),u=r,s.map(e=>(e.value&&(e.value=hY.truncate(e.value,u)),e))))};var hG={},hZ={},hK={};Object.defineProperty(hK,"__esModule",{value:!0}),hK.SDK_VERSION="8.7.0",Object.defineProperty(hZ,"__esModule",{value:!0});let hX=hK,hJ=globalThis;hZ.GLOBAL_OBJ=hJ,hZ.getGlobalSingleton=function(e,t,r){let n=r||hJ,i=n.__SENTRY__=n.__SENTRY__||{},o=i[hX.SDK_VERSION]=i[hX.SDK_VERSION]||{};return o[e]||(o[e]=t())},Object.defineProperty(hG,"__esModule",{value:!0});let hQ=hk,h0=hZ.GLOBAL_OBJ;function h1(e,t){let r,n,i,o,a,s=e,u=[];if(!s||!s.tagName)return"";if(h0.HTMLElement&&s instanceof HTMLElement&&s.dataset){if(s.dataset.sentryComponent)return s.dataset.sentryComponent;if(s.dataset.sentryElement)return s.dataset.sentryElement}u.push(s.tagName.toLowerCase());let c=t&&t.length?t.filter(e=>s.getAttribute(e)).map(e=>[e,s.getAttribute(e)]):null;if(c&&c.length)c.forEach(e=>{u.push(`[${e[0]}="${e[1]}"]`)});else if(s.id&&u.push(`#${s.id}`),(r=s.className)&&hQ.isString(r))for(n=r.split(/\s+/),a=0;a";try{let r,n=e,i=5,o=[],a=0,s=0,u=" > ",c=u.length,l=Array.isArray(t)?t:t.keyAttrs,f=!Array.isArray(t)&&t.maxStringLength||80;for(;n&&a++1&&s+o.length*c+r.length>=f));)o.push(r),s+=r.length,n=n.parentNode;return o.reverse().join(u)}catch(e){return""}};var h2={},h6={};Object.defineProperty(h6,"__esModule",{value:!0}),h6.DEBUG_BUILD="u"{let n=h9[e];r[e]=t[e],t[e]=n});try{return e()}finally{n.forEach(e=>{t[e]=r[e]})}}let pe=function(){let e=!1,t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return h4.DEBUG_BUILD?h8.forEach(r=>{t[r]=(...t)=>{e&&h7(()=>{h5.GLOBAL_OBJ.console[r](`Sentry Logger [${r}]:`,...t)})}}):h8.forEach(e=>{t[e]=()=>{}}),t}();h3.CONSOLE_LEVELS=h8,h3.consoleSandbox=h7,h3.logger=pe,h3.originalConsoleMethods=h9,Object.defineProperty(h2,"__esModule",{value:!0});let pt=h6,pr=h3,pn=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function pi(e){let t=pn.exec(e);if(!t)return void pr.consoleSandbox(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});let[r,n,i="",o,a="",s]=t.slice(1),u="",c=s,l=c.split("/");if(l.length>1&&(u=l.slice(0,-1).join("/"),c=l.pop()),c){let e=c.match(/^\d+/);e&&(c=e[0])}return po({host:o,pass:i,path:u,projectId:c,port:a,protocol:r,publicKey:n})}function po(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}h2.dsnFromString=pi,h2.dsnToString=function(e,t=!1){let{host:r,path:n,pass:i,port:o,projectId:a,protocol:s,publicKey:u}=e;return`${s}://${u}${t&&i?`:${i}`:""}@${r}${o?`:${o}`:""}/${n?`${n}/`:n}${a}`},h2.makeDsn=function(e){let t="string"==typeof e?pi(e):po(e);if(t&&function(e){if(!pt.DEBUG_BUILD)return!0;let{port:t,projectId:r,protocol:n}=e;return!(["protocol","publicKey","host","projectId"].find(t=>!e[t]&&(pr.logger.error(`Invalid Sentry Dsn: ${t} missing`),!0))||(r.match(/^\d+$/)?!function(e){return"http"===e||"https"===e}(n)?(pr.logger.error(`Invalid Sentry Dsn: Invalid protocol ${n}`),1):t&&isNaN(parseInt(t,10))&&(pr.logger.error(`Invalid Sentry Dsn: Invalid port ${t}`),1):(pr.logger.error(`Invalid Sentry Dsn: Invalid projectId ${r}`),1)))}(t))return t};var pa={};Object.defineProperty(pa,"__esModule",{value:!0});class ps extends Error{constructor(e,t="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}}pa.SentryError=ps;var pu={},pc={};Object.defineProperty(pc,"__esModule",{value:!0});let pl=hG,pf=h6,pd=hk,ph=h3,pp=hF;function pm(e,t,r){try{Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0})}catch(r){pf.DEBUG_BUILD&&ph.logger.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function py(e,t){try{let r=t.prototype||{};e.prototype=t.prototype=r,pm(e,"__sentry_original__",t)}catch(e){}}function pg(e){if(pd.isError(e))return{message:e.message,name:e.name,stack:e.stack,...pv(e)};if(pd.isEvent(e)){let t={type:e.type,target:pb(e.target),currentTarget:pb(e.currentTarget),...pv(e)};return"u">typeof CustomEvent&&pd.isInstanceOf(e,CustomEvent)&&(t.detail=e.detail),t}return e}function pb(e){try{return pd.isElement(e)?pl.htmlTreeAsString(e):Object.prototype.toString.call(e)}catch(e){return""}}function pv(e){if("object"==typeof e&&null!==e){let t={};for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}return{}}function p_(e,t){if(function(e){if(!pd.isPlainObject(e))return!1;try{let t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch(e){return!0}}(e)){let r=t.get(e);if(void 0!==r)return r;let n={};for(let r of(t.set(e,n),Object.keys(e)))void 0!==e[r]&&(n[r]=p_(e[r],t));return n}if(Array.isArray(e)){let r=t.get(e);if(void 0!==r)return r;let n=[];return t.set(e,n),e.forEach(e=>{n.push(p_(e,t))}),n}return e}pc.addNonEnumerableProperty=pm,pc.convertToPlainObject=pg,pc.dropUndefinedKeys=function(e){return p_(e,new Map)},pc.extractExceptionKeysForMessage=function(e,t=40){let r=Object.keys(pg(e));if(r.sort(),!r.length)return"[object has no keys]";if(r[0].length>=t)return pp.truncate(r[0],t);for(let e=r.length;e>0;e--){let n=r.slice(0,e).join(", ");if(!(n.length>t))return e===r.length?n:pp.truncate(n,t)}return""},pc.fill=function(e,t,r){if(!(t in e))return;let n=e[t],i=r(n);"function"==typeof i&&py(i,n),e[t]=i},pc.getOriginalFunction=function(e){return e.__sentry_original__},pc.markFunctionWrapped=py,pc.objectify=function(e){let t;switch(!0){case null==e:t=new String(e);break;case"symbol"==typeof e||"bigint"==typeof e:t=Object(e);break;case pd.isPrimitive(e):t=new e.constructor(e);break;default:t=e}return t},pc.urlEncode=function(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")};var pS={},pE={};Object.defineProperty(pE,"__esModule",{value:!0});let pw=50,pT="?",px=/\(error: (.*)\)/,pA=/captureMessage|captureException/;function pO(...e){let t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,r=0,n=0)=>{let i=[],o=e.split("\n");for(let e=r;e1024)continue;let a=px.test(r)?r.replace(px,"$1"):r;if(!a.match(/\S*Error: /)){for(let e of t){let t=e(a);if(t){i.push(t);break}}if(i.length>=pw+n)break}}return pM(i.slice(n))}}function pM(e){if(!e.length)return[];let t=Array.from(e);return/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop(),t.reverse(),pA.test(t[t.length-1].function||"")&&(t.pop(),pA.test(t[t.length-1].function||"")&&t.pop()),t.slice(0,pw).map(e=>({...e,filename:e.filename||t[t.length-1].filename,function:e.function||pT}))}let pR="";pE.UNKNOWN_FUNCTION=pT,pE.createStackParser=pO,pE.getFunctionName=function(e){try{return e&&"function"==typeof e&&e.name||pR}catch(e){return pR}},pE.stackParserFromStackParserOptions=function(e){return Array.isArray(e)?pO(...e):e},pE.stripSentryFramesAndReverse=pM,Object.defineProperty(pS,"__esModule",{value:!0});let pC=h6,pI=h3,pN=pE,pP={},pk={};pS.addHandler=function(e,t){pP[e]=pP[e]||[],pP[e].push(t)},pS.maybeInstrument=function(e,t){pk[e]||(t(),pk[e]=!0)},pS.resetInstrumentationHandlers=function(){Object.keys(pP).forEach(e=>{pP[e]=void 0})},pS.triggerHandlers=function(e,t){let r=e&&pP[e];if(r)for(let n of r)try{n(t)}catch(t){pC.DEBUG_BUILD&&pI.logger.error(`Error while triggering instrumentation handler. +Type: ${e} +Name: ${pN.getFunctionName(n)} +Error:`,t)}},Object.defineProperty(pu,"__esModule",{value:!0});let pD=h3,pL=pc,pj=hZ,pU=pS;function pB(){"console"in pj.GLOBAL_OBJ&&pD.CONSOLE_LEVELS.forEach(function(e){e in pj.GLOBAL_OBJ.console&&pL.fill(pj.GLOBAL_OBJ.console,e,function(t){return pD.originalConsoleMethods[e]=t,function(...t){let r={args:t,level:e};pU.triggerHandlers("console",r);let n=pD.originalConsoleMethods[e];n&&n.apply(pj.GLOBAL_OBJ.console,t)}})})}pu.addConsoleInstrumentationHandler=function(e){let t="console";pU.addHandler(t,e),pU.maybeInstrument(t,pB)};var pF={},pz={};Object.defineProperty(pz,"__esModule",{value:!0});let p$=h6,pV=h3,pY=hZ.GLOBAL_OBJ;function pq(){if(!("fetch"in pY))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function pH(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}pz.isNativeFunction=pH,pz.supportsDOMError=function(){try{return new DOMError(""),!0}catch(e){return!1}},pz.supportsDOMException=function(){try{return new DOMException(""),!0}catch(e){return!1}},pz.supportsErrorEvent=function(){try{return new ErrorEvent(""),!0}catch(e){return!1}},pz.supportsFetch=pq,pz.supportsNativeFetch=function(){if("string"==typeof EdgeRuntime)return!0;if(!pq())return!1;if(pH(pY.fetch))return!0;let e=!1,t=pY.document;if(t&&"function"==typeof t.createElement)try{let r=t.createElement("iframe");r.hidden=!0,t.head.appendChild(r),r.contentWindow&&r.contentWindow.fetch&&(e=pH(r.contentWindow.fetch)),t.head.removeChild(r)}catch(e){p$.DEBUG_BUILD&&pV.logger.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e},pz.supportsReferrerPolicy=function(){if(!pq())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(e){return!1}},pz.supportsReportingObserver=function(){return"ReportingObserver"in pY};var pW={};Object.defineProperty(pW,"__esModule",{value:!0});let pG=hZ,pZ=1e3;function pK(){return Date.now()/pZ}let pX=function(){let{performance:e}=pG.GLOBAL_OBJ;if(!e||!e.now)return pK;let t=Date.now()-e.now(),r=null==e.timeOrigin?t:e.timeOrigin;return()=>(r+e.now())/pZ}();pW._browserPerformanceTimeOriginMode=void 0;let pJ=(()=>{let{performance:e}=pG.GLOBAL_OBJ;if(!e||!e.now)return void(pW._browserPerformanceTimeOriginMode="none");let t=36e5,r=e.now(),n=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+r-n):t,o=i{let t={...i,endTimestamp:1e3*p1.timestampInSeconds(),response:e};return p6.triggerHandlers("fetch",t),e},e=>{let t={...i,endTimestamp:1e3*p1.timestampInSeconds(),error:e};throw p6.triggerHandlers("fetch",t),e})}})}function p4(e,t){return!!e&&"object"==typeof e&&!!e[t]}function p5(e){return"string"==typeof e?e:e?p4(e,"url")?e.url:e.toString?e.toString():"":""}function p8(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){let[t,r]=e;return{url:p5(t),method:p4(r,"method")?String(r.method).toUpperCase():"GET"}}let t=e[0];return{url:p5(t),method:p4(t,"method")?String(t.method).toUpperCase():"GET"}}pF.addFetchInstrumentationHandler=function(e){let t="fetch";p6.addHandler(t,e),p6.maybeInstrument(t,p3)},pF.parseFetchArgs=p8;var p9={};Object.defineProperty(p9,"__esModule",{value:!0});let p7=hZ,me=pS,mt=null;function mr(){mt=p7.GLOBAL_OBJ.onerror,p7.GLOBAL_OBJ.onerror=function(e,t,r,n,i){let o={column:n,error:i,line:r,msg:e,url:t};return me.triggerHandlers("error",o),!(!mt||mt.__SENTRY_LOADER__)&&mt.apply(this,arguments)},p7.GLOBAL_OBJ.onerror.__SENTRY_INSTRUMENTED__=!0}p9.addGlobalErrorInstrumentationHandler=function(e){let t="error";me.addHandler(t,e),me.maybeInstrument(t,mr)};var mn={};Object.defineProperty(mn,"__esModule",{value:!0});let mi=hZ,mo=pS,ma=null;function ms(){ma=mi.GLOBAL_OBJ.onunhandledrejection,mi.GLOBAL_OBJ.onunhandledrejection=function(e){let t=e;return mo.triggerHandlers("unhandledrejection",t),!(ma&&!ma.__SENTRY_LOADER__)||ma.apply(this,arguments)},mi.GLOBAL_OBJ.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}mn.addGlobalUnhandledRejectionInstrumentationHandler=function(e){let t="unhandledrejection";mo.addHandler(t,e),mo.maybeInstrument(t,ms)};var mu={},mc={exports:{}},ml={};Object.defineProperty(ml,"__esModule",{value:!0}),ml.getSDKSource=function(){return"npm"},ml.isBrowserBundle=function(){return"u">typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__},function(e,t){Object.defineProperty(t,"__esModule",{value:!0});let r=ml;function i(e,t){return e.require(t)}t.dynamicRequire=i,t.isNodeEnv=function(){return!r.isBrowserBundle()&&"[object process]"===Object.prototype.toString.call(void 0!==n?n:0)},t.loadModule=function(t){let r;try{r=i(e,t)}catch(e){}try{let{cwd:n}=i(e,"process");r=i(e,`${n()}/node_modules/${t}`)}catch(e){}return r}}(mc,mc.exports);var mf=mc.exports;Object.defineProperty(mu,"__esModule",{value:!0});let md=mf,mh=hZ;mu.isBrowser=function(){return"u">typeof window&&(!md.isNodeEnv()||void 0!==mh.GLOBAL_OBJ.process&&"renderer"===mh.GLOBAL_OBJ.process.type)};var mp={};Object.defineProperty(mp,"__esModule",{value:!0}),mp.memoBuilder=function(){let e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(r){if(e)return!!t.has(r)||(t.add(r),!1);for(let e=0;emg.snipLine(e,0)),t.context_line=mg.snipLine(e[Math.min(n-1,i)],t.colno||0),t.post_context=e.slice(Math.min(i+1,n),i+1+r).map(e=>mg.snipLine(e,0))},mm.addExceptionMechanism=function(e,t){let r=mv(e);if(!r)return;let n=r.mechanism;if(r.mechanism={type:"generic",handled:!0,...n,...t},t&&"data"in t){let e={...n&&n.data,...t.data};r.mechanism.data=e}},mm.addExceptionTypeValue=function(e,t,r){let n=e.exception=e.exception||{},i=n.values=n.values||[],o=i[0]=i[0]||{};o.value||(o.value=t||""),o.type||(o.type=r||"Error")},mm.arrayify=function(e){return Array.isArray(e)?e:[e]},mm.checkOrSetAlreadyCaught=function(e){if(e&&e.__sentry_captured__)return!0;try{my.addNonEnumerableProperty(e,"__sentry_captured__",!0)}catch(e){}return!1},mm.getEventDescription=function(e){let{message:t,event_id:r}=e;if(t)return t;let n=mv(e);return n?n.type&&n.value?`${n.type}: ${n.value}`:n.type||n.value||r||"":r||""},mm.parseSemver=function(e){let t=e.match(m_)||[],r=parseInt(t[1],10),n=parseInt(t[2],10),i=parseInt(t[3],10);return{buildmetadata:t[5],major:isNaN(r)?void 0:r,minor:isNaN(n)?void 0:n,patch:isNaN(i)?void 0:i,prerelease:t[4]}},mm.uuid4=function(){let e=mb.GLOBAL_OBJ,t=e.crypto||e.msCrypto,r=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(r=()=>{let e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch(e){}return"10000000100040008000100000000000".replace(/[018]/g,e=>(e^(15&r())>>e/4).toString(16))};var mS={};Object.defineProperty(mS,"__esModule",{value:!0});let mE=hk,mw=mp,mT=pc,mx=pE;function mA(e,t=100,r=1/0){try{return mO("",e,t,r)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function mO(e,t,r=1/0,n=1/0,i=mw.memoBuilder()){let[a,s]=i;if(null==t||["number","boolean","string"].includes(typeof t)&&!Number.isNaN(t))return t;let u=function(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if(void 0!==o&&t===o)return"[Global]";if("u">typeof window&&t===window)return"[Window]";if("u">typeof document&&t===document)return"[Document]";if(mE.isVueViewModel(t))return"[VueViewModel]";if(mE.isSyntheticEvent(t))return"[SyntheticEvent]";if("number"==typeof t&&t!=t)return"[NaN]";if("function"==typeof t)return`[Function: ${mx.getFunctionName(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;let r=function(e){let t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}(t);return/^HTML(\w*)Element$/.test(r)?`[HTMLElement: ${r}]`:`[object ${r}]`}catch(e){return`**non-serializable** (${e})`}}(e,t);if(!u.startsWith("[object "))return u;if(t.__sentry_skip_normalization__)return t;let c="number"==typeof t.__sentry_override_normalization_depth__?t.__sentry_override_normalization_depth__:r;if(0===c)return u.replace("object ","");if(a(t))return"[Circular ~]";let l=t;if(l&&"function"==typeof l.toJSON)try{return mO("",l.toJSON(),c-1,n,i)}catch(e){}let f=Array.isArray(t)?[]:{},d=0,h=mT.convertToPlainObject(t);for(let e in h){if(!Object.prototype.hasOwnProperty.call(h,e))continue;if(d>=n){f[e]="[MaxProperties ~]";break}let t=h[e];f[e]=mO(e,t,c-1,n,i),d++}return s(t),f}mS.normalize=mA,mS.normalizeToSize=function e(t,r=3,n=102400){let i=mA(t,r);return function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(i))>n?e(t,r-1,n):i},mS.normalizeUrlToBase=function(e,t){let r=t.replace(/\\/g,"/").replace(/[|\\{}()[\]^$+*?.]/g,"\\$&"),n=e;try{n=decodeURI(e)}catch(e){}return n.replace(/\\/g,"/").replace(/webpack:\/?/g,"").replace(RegExp(`(file://)?/*${r}/*`,"ig"),"app:///")};var mM={};function mR(e,t){let r=0;for(let t=e.length-1;t>=0;t--){let n=e[t];"."===n?e.splice(t,1):".."===n?(e.splice(t,1),r++):r&&(e.splice(t,1),r--)}if(t)for(;r--;)e.unshift("..");return e}Object.defineProperty(mM,"__esModule",{value:!0});let mC=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function mI(e){let t=e.length>1024?`${e.slice(-1024)}`:e,r=mC.exec(t);return r?r.slice(1):[]}function mN(...e){let t="",r=!1;for(let n=e.length-1;n>=-1&&!r;n--){let i=n>=0?e[n]:"/";i&&(t=`${i}/${t}`,r="/"===i.charAt(0))}return t=mR(t.split("/").filter(e=>!!e),!r).join("/"),(r?"/":"")+t||"."}function mP(e){let t=0;for(;t=0&&""===e[r];r--);return t>r?[]:e.slice(t,r-t+1)}function mk(e){let t=mD(e),r="/"===e.slice(-1),n=mR(e.split("/").filter(e=>!!e),!t).join("/");return n||t||(n="."),n&&r&&(n+="/"),(t?"/":"")+n}function mD(e){return"/"===e.charAt(0)}mM.basename=function(e,t){let r=mI(e)[2];return t&&r.slice(-1*t.length)===t&&(r=r.slice(0,r.length-t.length)),r},mM.dirname=function(e){let t=mI(e),r=t[0],n=t[1];return r||n?(n&&(n=n.slice(0,n.length-1)),r+n):"."},mM.isAbsolute=mD,mM.join=function(...e){return mk(e.join("/"))},mM.normalizePath=mk,mM.relative=function(e,t){e=mN(e).slice(1),t=mN(t).slice(1);let r=mP(e.split("/")),n=mP(t.split("/")),i=Math.min(r.length,n.length),o=i;for(let e=0;e{this._handlers.push([!1,t=>{if(e)try{r(e(t))}catch(e){n(e)}else r(t)},e=>{if(t)try{r(t(e))}catch(e){n(e)}else n(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new mB((t,r)=>{let n,i;return this.then(t=>{i=!1,n=t,e&&e()},t=>{i=!0,n=t,e&&e()}).then(()=>{i?r(n):t(n)})})}__init(){this._resolve=e=>{this._setResult(TN.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(TN.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{this._state===TN.PENDING&&(mU.isThenable(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===TN.PENDING)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(this._state===TN.RESOLVED&&e[1](this._value),this._state===TN.REJECTED&&e[2](this._value),e[0]=!0)})}}}mj.SyncPromise=mB,mj.rejectedSyncPromise=function(e){return new mB((t,r)=>{r(e)})},mj.resolvedSyncPromise=function(e){return new mB(t=>{t(e)})},Object.defineProperty(mL,"__esModule",{value:!0});let mF=pa,mz=mj;mL.makePromiseBuffer=function(e){let t=[];function r(e){return t.splice(t.indexOf(e),1)[0]}return{$:t,add:function(n){if(!(void 0===e||t.lengthr(i)).then(null,()=>r(i).then(null,()=>{})),i},drain:function(e){return new mz.SyncPromise((r,n)=>{let i=t.length;if(!i)return r(!0);let o=setTimeout(()=>{e&&e>0&&r(!1)},e);t.forEach(e=>{mz.resolvedSyncPromise(e).then(()=>{--i||(clearTimeout(o),r(!0))},n)})})}}};var m$={},mV={};Object.defineProperty(mV,"__esModule",{value:!0}),mV.parseCookie=function(e){let t={},r=0;for(;re.length>0&&","!==e).length},mY.getSanitizedUrlString=function(e){let{protocol:t,host:r,path:n}=e;return`${t?`${t}://`:""}${r&&r.replace(/^.*@/,"[filtered]:[filtered]@").replace(/(:80)$/,"").replace(/(:443)$/,"")||""}${n}`},mY.parseUrl=function(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let r=t[6]||"",n=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:r,hash:n,relative:t[5]+r+n}},mY.stripUrlQueryAndFragment=function(e){return e.split(/[\?#]/,1)[0]},Object.defineProperty(m$,"__esModule",{value:!0});let mq=mV,mH=h6,mW=hk,mG=h3,mZ=mS,mK=mY,mX={ip:!1,request:!0,transaction:!0,user:!0},mJ=["cookies","data","headers","method","query_string","url"],mQ=["id","username","email"];function m0(e,t={}){let r=e.method&&e.method.toUpperCase(),n="",i="url";t.customRoute||e.route?(n=t.customRoute||`${e.baseUrl||""}${e.route&&e.route.path}`,i="route"):(e.originalUrl||e.url)&&(n=mK.stripUrlQueryAndFragment(e.originalUrl||e.url||""));let o="";return t.method&&r&&(o+=r),t.method&&t.path&&(o+=" "),t.path&&n&&(o+=n),[o,i]}function m1(e,t){let{include:r=mJ}=t||{},n={},i=e.headers||{},o=e.method,a=i.host||e.hostname||e.host||"",s="https"===e.protocol||e.socket&&e.socket.encrypted?"https":"http",u=e.originalUrl||e.url||"",c=u.startsWith(s)?u:`${s}://${a}${u}`;return r.forEach(t=>{switch(t){case"headers":n.headers=i,r.includes("cookies")||delete n.headers.cookie;break;case"method":n.method=o;break;case"url":n.url=c;break;case"cookies":n.cookies=e.cookies||i.cookie&&mq.parseCookie(i.cookie)||{};break;case"query_string":n.query_string=function(e){let t=e.originalUrl||e.url||"";if(t){t.startsWith("/")&&(t=`http://dogs.are.great${t}`);try{let r=e.query||new URL(t).search.slice(1);return r.length?r:void 0}catch(e){return}}}(e);break;case"data":if("GET"===o||"HEAD"===o)break;void 0!==e.body&&(n.data=mW.isString(e.body)?e.body:JSON.stringify(mZ.normalize(e.body)));break;default:({}).hasOwnProperty.call(e,t)&&(n[t]=e[t])}}),n}function m2(e){let t={};try{e.forEach((e,r)=>{"string"==typeof e&&(t[r]=e)})}catch(e){mH.DEBUG_BUILD&&mG.logger.warn("Sentry failed extracting headers from a request object. If you see this, please file an issue.")}return t}m$.DEFAULT_USER_INCLUDES=mQ,m$.addRequestDataToEvent=function(e,t,r){let n={...mX,...r&&r.include};if(n.request){let r=Array.isArray(n.request)?m1(t,{include:n.request}):m1(t);e.request={...e.request,...r}}if(n.user){let r=t.user&&mW.isPlainObject(t.user)?function(e,t){let r={};return(Array.isArray(t)?t:mQ).forEach(t=>{e&&t in e&&(r[t]=e[t])}),r}(t.user,n.user):{};Object.keys(r).length&&(e.user={...e.user,...r})}if(n.ip){let r=t.ip||t.socket&&t.socket.remoteAddress;r&&(e.user={...e.user,ip_address:r})}return n.transaction&&!e.transaction&&"transaction"===e.type&&(e.transaction=function(e,t){switch(t){case"path":return m0(e,{path:!0})[0];case"handler":return e.route&&e.route.stack&&e.route.stack[0]&&e.route.stack[0].name||"";default:return m0(e,{path:!0,method:!0,customRoute:e._reconstructedRoute?e._reconstructedRoute:void 0})[0]}}(t,n.transaction)),e},m$.extractPathForTransaction=m0,m$.extractRequestData=m1,m$.winterCGHeadersToDict=m2,m$.winterCGRequestToRequestData=function(e){let t=m2(e.headers);return{method:e.method,url:e.url,headers:t}};var m6={};Object.defineProperty(m6,"__esModule",{value:!0});let m3=["fatal","error","warning","log","info","debug"];m6.severityLevelFromString=function(e){return"warn"===e?"warning":m3.includes(e)?e:"log"},m6.validSeverityLevels=m3;var m4={};Object.defineProperty(m4,"__esModule",{value:!0});let m5=pE;function m8(e,t=!1){return!(t||e&&!e.startsWith("/")&&!e.match(/^[A-Z]:/)&&!e.startsWith(".")&&!e.match(/^[a-zA-Z]([a-zA-Z0-9.\-+])*:\/\//))&&void 0!==e&&!e.includes("node_modules/")}function m9(e){let t=/^\s*[-]{4,}$/,r=/at (?:async )?(?:(.+?)\s+\()?(?:(.+):(\d+):(\d+)?|([^)]+))\)?/;return n=>{let i=n.match(r);if(i){let t,r,n,o,a;if(i[1]){let e=(n=i[1]).lastIndexOf(".");if("."===n[e-1]&&e--,e>0){t=n.slice(0,e),r=n.slice(e+1);let i=t.indexOf(".Module");i>0&&(n=n.slice(i+1),t=t.slice(0,i))}o=void 0}r&&(o=t,a=r),""===r&&(a=void 0,n=void 0),void 0===n&&(a=a||m5.UNKNOWN_FUNCTION,n=o?`${o}.${a}`:a);let s=i[2]&&i[2].startsWith("file://")?i[2].slice(7):i[2],u="native"===i[5];return s&&s.match(/\/[A-Z]:/)&&(s=s.slice(1)),s||!i[5]||u||(s=i[5]),{filename:s,module:e?e(s):void 0,function:n,lineno:parseInt(i[3],10)||void 0,colno:parseInt(i[4],10)||void 0,in_app:m8(s,u)}}if(n.match(t))return{filename:n}}}m4.filenameIsInApp=m8,m4.node=m9,m4.nodeStackLineParser=function(e){return[90,m9(e)]};var m7={},ye={};Object.defineProperty(ye,"__esModule",{value:!0});let yt=h6,yr=hk,yn=h3,yi="sentry-",yo=/^sentry-/,ya=8192;function ys(e){if(e&&(yr.isString(e)||Array.isArray(e)))return Array.isArray(e)?e.reduce((e,t)=>{let r=yu(t);for(let t of Object.keys(r))e[t]=r[t];return e},{}):yu(e)}function yu(e){return e.split(",").map(e=>e.split("=").map(e=>decodeURIComponent(e.trim()))).reduce((e,[t,r])=>(e[t]=r,e),{})}ye.BAGGAGE_HEADER_NAME="baggage",ye.MAX_BAGGAGE_STRING_LENGTH=ya,ye.SENTRY_BAGGAGE_KEY_PREFIX=yi,ye.SENTRY_BAGGAGE_KEY_PREFIX_REGEX=yo,ye.baggageHeaderToDynamicSamplingContext=function(e){let t=ys(e);if(!t)return;let r=Object.entries(t).reduce((e,[t,r])=>(t.match(yo)&&(e[t.slice(7)]=r),e),{});return Object.keys(r).length>0?r:void 0},ye.dynamicSamplingContextToSentryBaggageHeader=function(e){if(e)return function(e){if(0!==Object.keys(e).length)return Object.entries(e).reduce((e,[t,r],n)=>{let i=`${encodeURIComponent(t)}=${encodeURIComponent(r)}`,o=0===n?i:`${e},${i}`;return o.length>ya?(yt.DEBUG_BUILD&&yn.logger.warn(`Not adding key: ${t} with val: ${r} to baggage header due to exceeding baggage size limits.`),e):o},"")}(Object.entries(e).reduce((e,[t,r])=>(r&&(e[`${yi}${t}`]=r),e),{}))},ye.parseBaggageHeader=ys,Object.defineProperty(m7,"__esModule",{value:!0});let yc=ye,yl=mm,yf=RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function yd(e){let t;if(!e)return;let r=e.match(yf);if(r)return"1"===r[3]?t=!0:"0"===r[3]&&(t=!1),{traceId:r[1],parentSampled:t,parentSpanId:r[2]}}m7.TRACEPARENT_REGEXP=yf,m7.extractTraceparentData=yd,m7.generateSentryTraceHeader=function(e=yl.uuid4(),t=yl.uuid4().substring(16),r){let n="";return void 0!==r&&(n=r?"-1":"-0"),`${e}-${t}${n}`},m7.propagationContextFromHeaders=function(e,t){let r=yd(e),n=yc.baggageHeaderToDynamicSamplingContext(t),{traceId:i,parentSpanId:o,parentSampled:a}=r||{};return r?{traceId:i||yl.uuid4(),parentSpanId:o||yl.uuid4().substring(16),spanId:yl.uuid4().substring(16),sampled:a,dsc:n||{}}:{traceId:i||yl.uuid4(),spanId:yl.uuid4().substring(16)}};var yh={};Object.defineProperty(yh,"__esModule",{value:!0});let yp=h2,ym=mS,yy=pc,yg=hZ;function yb(e,t){for(let r of e[1])if(t(r,r[0].type))return!0;return!1}function yv(e){return yg.GLOBAL_OBJ.__SENTRY__&&yg.GLOBAL_OBJ.__SENTRY__.encodePolyfill?yg.GLOBAL_OBJ.__SENTRY__.encodePolyfill(e):(new TextEncoder).encode(e)}let y_={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};yh.addItemToEnvelope=function(e,t){let[r,n]=e;return[r,[...n,t]]},yh.createAttachmentEnvelopeItem=function(e){let t="string"==typeof e.data?yv(e.data):e.data;return[yy.dropUndefinedKeys({type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),t]},yh.createEnvelope=function(e,t=[]){return[e,t]},yh.createEventEnvelopeHeaders=function(e,t,r,n){let i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!r&&n&&{dsn:yp.dsnToString(n)},...i&&{trace:yy.dropUndefinedKeys({...i})}}},yh.createSpanEnvelopeItem=function(e){return[{type:"span"},e]},yh.envelopeContainsItemType=function(e,t){return yb(e,(e,r)=>t.includes(r))},yh.envelopeItemTypeToDataCategory=function(e){return y_[e]},yh.forEachEnvelopeItem=yb,yh.getSdkMetadataForEnvelopeHeader=function(e){if(!e||!e.sdk)return;let{name:t,version:r}=e.sdk;return{name:t,version:r}},yh.parseEnvelope=function(e){let t="string"==typeof e?yv(e):e;function r(e){let r=t.subarray(0,e);return t=t.subarray(e+1),r}function n(){var e;let n=t.indexOf(10);return n<0&&(n=t.length),JSON.parse((e=r(n),yg.GLOBAL_OBJ.__SENTRY__&&yg.GLOBAL_OBJ.__SENTRY__.decodePolyfill?yg.GLOBAL_OBJ.__SENTRY__.decodePolyfill(e):(new TextDecoder).decode(e)))}let i=n(),o=[];for(;t.length;){let e=n(),t="number"==typeof e.length?e.length:void 0;o.push([e,t?r(t):n()])}return[i,o]},yh.serializeEnvelope=function(e){let[t,r]=e,n=JSON.stringify(t);function i(e){"string"==typeof n?n="string"==typeof e?n+e:[yv(n),e]:n.push("string"==typeof e?yv(e):e)}for(let e of r){let[t,r]=e;if(i(` +${JSON.stringify(t)} +`),"string"==typeof r||r instanceof Uint8Array)i(r);else{let e;try{e=JSON.stringify(r)}catch(t){e=JSON.stringify(ym.normalize(r))}i(e)}}return"string"==typeof n?n:function(e){let t=new Uint8Array(e.reduce((e,t)=>e+t.length,0)),r=0;for(let n of e)t.set(n,r),r+=n.length;return t}(n)};var yS={};Object.defineProperty(yS,"__esModule",{value:!0});let yE=yh,yw=pW;yS.createClientReportEnvelope=function(e,t,r){let n=[{type:"client_report"},{timestamp:r||yw.dateTimestampInSeconds(),discarded_events:e}];return yE.createEnvelope(t?{dsn:t}:{},[n])};var yT={};Object.defineProperty(yT,"__esModule",{value:!0});let yx=6e4;function yA(e,t=Date.now()){let r=parseInt(`${e}`,10);if(!isNaN(r))return 1e3*r;let n=Date.parse(`${e}`);return isNaN(n)?yx:n-t}function yO(e,t){return e[t]||e.all||0}yT.DEFAULT_RETRY_AFTER=6e4,yT.disabledUntil=yO,yT.isRateLimited=function(e,t,r=Date.now()){return yO(e,t)>r},yT.parseRetryAfterHeader=yA,yT.updateRateLimits=function(e,{statusCode:t,headers:r},n=Date.now()){let i={...e},o=r&&r["x-sentry-rate-limits"],a=r&&r["retry-after"];if(o)for(let e of o.trim().split(",")){let[t,r,,,o]=e.split(":",5),a=parseInt(t,10),s=1e3*(isNaN(a)?60:a);if(r)for(let e of r.split(";"))"metric_bucket"===e&&o&&!o.split(";").includes("custom")||(i[e]=n+s);else i.all=n+s}else a?i.all=n+yA(a,n):429===t&&(i.all=n+6e4);return i};var yM={};Object.defineProperty(yM,"__esModule",{value:!0}),yM.makeFifoCache=function(e){let t=[],r={};return{add(n,i){for(;t.length>=e;){let e=t.shift();void 0!==e&&delete r[e]}r[n]&&this.delete(n),t.push(n),r[n]=i},clear(){r={},t=[]},get:e=>r[e],size:()=>t.length,delete(e){if(!r[e])return!1;delete r[e];for(let r=0;r{let e=i.getTimeMs();!1===o&&e>t+r&&(o=!0,a&&n()),e{i.reset()},enabled:e=>{a=e}}};var y$={};Object.defineProperty(y$,"__esModule",{value:!0}),y$.LRUMap=class{constructor(e){this._maxSize=e,this._cache=new Map}get size(){return this._cache.size}get(e){let t=this._cache.get(e);if(void 0!==t)return this._cache.delete(e),this._cache.set(e,t),t}set(e,t){this._cache.size>=this._maxSize&&this._cache.delete(this._cache.keys().next().value),this._cache.set(e,t)}remove(e){let t=this._cache.get(e);return t&&this._cache.delete(e),t}clear(){this._cache.clear()}keys(){return Array.from(this._cache.keys())}values(){let e=[];return this._cache.forEach(t=>e.push(t)),e}};var yV={},yY={};Object.defineProperty(yY,"__esModule",{value:!0}),yY._nullishCoalesce=function(e,t){return null!=e?e:t()},Object.defineProperty(yV,"__esModule",{value:!0});let yq=yY;yV._asyncNullishCoalesce=async function(e,t){return yq._nullishCoalesce(e,t)};var yH={};Object.defineProperty(yH,"__esModule",{value:!0}),yH._asyncOptionalChain=async function(e){let t,r=e[0],n=1;for(;nr.call(t,...e)),t=void 0)}return r};var yW={};Object.defineProperty(yW,"__esModule",{value:!0});let yG=yH;yW._asyncOptionalChainDelete=async function(e){let t=await yG._asyncOptionalChain(e);return null==t||t};var yZ={};Object.defineProperty(yZ,"__esModule",{value:!0}),yZ._optionalChain=function(e){let t,r=e[0],n=1;for(;nr.call(t,...e)),t=void 0)}return r};var yK={};Object.defineProperty(yK,"__esModule",{value:!0});let yX=yZ;yK._optionalChainDelete=function(e){let t=yX._optionalChain(e);return null==t||t};var yJ={};Object.defineProperty(yJ,"__esModule",{value:!0});let yQ=mm;yJ.generatePropagationContext=function(){return{traceId:yQ.uuid4(),spanId:yQ.uuid4().substring(16)}};var y0={};Object.defineProperty(y0,"__esModule",{value:!0}),y0.escapeStringForRegex=function(e){return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")};var y1={};Object.defineProperty(y1,"__esModule",{value:!0});let y2=hZ.GLOBAL_OBJ;y1.supportsHistory=function(){let e=y2.chrome,t=e&&e.app&&e.app.runtime,r="history"in y2&&!!y2.history.pushState&&!!y2.history.replaceState;return!t&&r},function(e){Object.defineProperty(e,"__esModule",{value:!0});let t=hG,r=h2,n=pa,i=hZ,o=pu,a=pF,s=p9,u=mn,c=pS,l=hk,f=mu,d=h3,h=mp,p=mm,m=mf,y=mS,g=pc,b=mM,v=mL,_=m$,S=m6,E=pE,w=m4,T=hF,x=pz,A=mj,O=pW,M=m7,R=ml,C=yh,I=yS,N=yT,P=ye,k=mY,D=yM,L=yR,j=yU,U=y$,B=yV,F=yH,z=yW,$=yY,V=yZ,Y=yK,q=yJ,H=hK,W=y0,G=y1;e.applyAggregateErrorsToEvent=hP.applyAggregateErrorsToEvent,e.getComponentName=t.getComponentName,e.getDomElement=t.getDomElement,e.getLocationHref=t.getLocationHref,e.htmlTreeAsString=t.htmlTreeAsString,e.dsnFromString=r.dsnFromString,e.dsnToString=r.dsnToString,e.makeDsn=r.makeDsn,e.SentryError=n.SentryError,e.GLOBAL_OBJ=i.GLOBAL_OBJ,e.getGlobalSingleton=i.getGlobalSingleton,e.addConsoleInstrumentationHandler=o.addConsoleInstrumentationHandler,e.addFetchInstrumentationHandler=a.addFetchInstrumentationHandler,e.addGlobalErrorInstrumentationHandler=s.addGlobalErrorInstrumentationHandler,e.addGlobalUnhandledRejectionInstrumentationHandler=u.addGlobalUnhandledRejectionInstrumentationHandler,e.addHandler=c.addHandler,e.maybeInstrument=c.maybeInstrument,e.resetInstrumentationHandlers=c.resetInstrumentationHandlers,e.triggerHandlers=c.triggerHandlers,e.isDOMError=l.isDOMError,e.isDOMException=l.isDOMException,e.isElement=l.isElement,e.isError=l.isError,e.isErrorEvent=l.isErrorEvent,e.isEvent=l.isEvent,e.isInstanceOf=l.isInstanceOf,e.isParameterizedString=l.isParameterizedString,e.isPlainObject=l.isPlainObject,e.isPrimitive=l.isPrimitive,e.isRegExp=l.isRegExp,e.isString=l.isString,e.isSyntheticEvent=l.isSyntheticEvent,e.isThenable=l.isThenable,e.isVueViewModel=l.isVueViewModel,e.isBrowser=f.isBrowser,e.CONSOLE_LEVELS=d.CONSOLE_LEVELS,e.consoleSandbox=d.consoleSandbox,e.logger=d.logger,e.originalConsoleMethods=d.originalConsoleMethods,e.memoBuilder=h.memoBuilder,e.addContextToFrame=p.addContextToFrame,e.addExceptionMechanism=p.addExceptionMechanism,e.addExceptionTypeValue=p.addExceptionTypeValue,e.arrayify=p.arrayify,e.checkOrSetAlreadyCaught=p.checkOrSetAlreadyCaught,e.getEventDescription=p.getEventDescription,e.parseSemver=p.parseSemver,e.uuid4=p.uuid4,e.dynamicRequire=m.dynamicRequire,e.isNodeEnv=m.isNodeEnv,e.loadModule=m.loadModule,e.normalize=y.normalize,e.normalizeToSize=y.normalizeToSize,e.normalizeUrlToBase=y.normalizeUrlToBase,e.addNonEnumerableProperty=g.addNonEnumerableProperty,e.convertToPlainObject=g.convertToPlainObject,e.dropUndefinedKeys=g.dropUndefinedKeys,e.extractExceptionKeysForMessage=g.extractExceptionKeysForMessage,e.fill=g.fill,e.getOriginalFunction=g.getOriginalFunction,e.markFunctionWrapped=g.markFunctionWrapped,e.objectify=g.objectify,e.urlEncode=g.urlEncode,e.basename=b.basename,e.dirname=b.dirname,e.isAbsolute=b.isAbsolute,e.join=b.join,e.normalizePath=b.normalizePath,e.relative=b.relative,e.resolve=b.resolve,e.makePromiseBuffer=v.makePromiseBuffer,e.DEFAULT_USER_INCLUDES=_.DEFAULT_USER_INCLUDES,e.addRequestDataToEvent=_.addRequestDataToEvent,e.extractPathForTransaction=_.extractPathForTransaction,e.extractRequestData=_.extractRequestData,e.winterCGHeadersToDict=_.winterCGHeadersToDict,e.winterCGRequestToRequestData=_.winterCGRequestToRequestData,e.severityLevelFromString=S.severityLevelFromString,e.validSeverityLevels=S.validSeverityLevels,e.UNKNOWN_FUNCTION=E.UNKNOWN_FUNCTION,e.createStackParser=E.createStackParser,e.getFunctionName=E.getFunctionName,e.stackParserFromStackParserOptions=E.stackParserFromStackParserOptions,e.stripSentryFramesAndReverse=E.stripSentryFramesAndReverse,e.filenameIsInApp=w.filenameIsInApp,e.node=w.node,e.nodeStackLineParser=w.nodeStackLineParser,e.isMatchingPattern=T.isMatchingPattern,e.safeJoin=T.safeJoin,e.snipLine=T.snipLine,e.stringMatchesSomePattern=T.stringMatchesSomePattern,e.truncate=T.truncate,e.isNativeFunction=x.isNativeFunction,e.supportsDOMError=x.supportsDOMError,e.supportsDOMException=x.supportsDOMException,e.supportsErrorEvent=x.supportsErrorEvent,e.supportsFetch=x.supportsFetch,e.supportsNativeFetch=x.supportsNativeFetch,e.supportsReferrerPolicy=x.supportsReferrerPolicy,e.supportsReportingObserver=x.supportsReportingObserver,e.SyncPromise=A.SyncPromise,e.rejectedSyncPromise=A.rejectedSyncPromise,e.resolvedSyncPromise=A.resolvedSyncPromise,Object.defineProperty(e,"_browserPerformanceTimeOriginMode",{enumerable:!0,get:()=>O._browserPerformanceTimeOriginMode}),e.browserPerformanceTimeOrigin=O.browserPerformanceTimeOrigin,e.dateTimestampInSeconds=O.dateTimestampInSeconds,e.timestampInSeconds=O.timestampInSeconds,e.TRACEPARENT_REGEXP=M.TRACEPARENT_REGEXP,e.extractTraceparentData=M.extractTraceparentData,e.generateSentryTraceHeader=M.generateSentryTraceHeader,e.propagationContextFromHeaders=M.propagationContextFromHeaders,e.getSDKSource=R.getSDKSource,e.isBrowserBundle=R.isBrowserBundle,e.addItemToEnvelope=C.addItemToEnvelope,e.createAttachmentEnvelopeItem=C.createAttachmentEnvelopeItem,e.createEnvelope=C.createEnvelope,e.createEventEnvelopeHeaders=C.createEventEnvelopeHeaders,e.createSpanEnvelopeItem=C.createSpanEnvelopeItem,e.envelopeContainsItemType=C.envelopeContainsItemType,e.envelopeItemTypeToDataCategory=C.envelopeItemTypeToDataCategory,e.forEachEnvelopeItem=C.forEachEnvelopeItem,e.getSdkMetadataForEnvelopeHeader=C.getSdkMetadataForEnvelopeHeader,e.parseEnvelope=C.parseEnvelope,e.serializeEnvelope=C.serializeEnvelope,e.createClientReportEnvelope=I.createClientReportEnvelope,e.DEFAULT_RETRY_AFTER=N.DEFAULT_RETRY_AFTER,e.disabledUntil=N.disabledUntil,e.isRateLimited=N.isRateLimited,e.parseRetryAfterHeader=N.parseRetryAfterHeader,e.updateRateLimits=N.updateRateLimits,e.BAGGAGE_HEADER_NAME=P.BAGGAGE_HEADER_NAME,e.MAX_BAGGAGE_STRING_LENGTH=P.MAX_BAGGAGE_STRING_LENGTH,e.SENTRY_BAGGAGE_KEY_PREFIX=P.SENTRY_BAGGAGE_KEY_PREFIX,e.SENTRY_BAGGAGE_KEY_PREFIX_REGEX=P.SENTRY_BAGGAGE_KEY_PREFIX_REGEX,e.baggageHeaderToDynamicSamplingContext=P.baggageHeaderToDynamicSamplingContext,e.dynamicSamplingContextToSentryBaggageHeader=P.dynamicSamplingContextToSentryBaggageHeader,e.parseBaggageHeader=P.parseBaggageHeader,e.getNumberOfUrlSegments=k.getNumberOfUrlSegments,e.getSanitizedUrlString=k.getSanitizedUrlString,e.parseUrl=k.parseUrl,e.stripUrlQueryAndFragment=k.stripUrlQueryAndFragment,e.makeFifoCache=D.makeFifoCache,e.eventFromMessage=L.eventFromMessage,e.eventFromUnknownInput=L.eventFromUnknownInput,e.exceptionFromError=L.exceptionFromError,e.parseStackFrames=L.parseStackFrames,e.callFrameToStackFrame=j.callFrameToStackFrame,e.watchdogTimer=j.watchdogTimer,e.LRUMap=U.LRUMap,e._asyncNullishCoalesce=B._asyncNullishCoalesce,e._asyncOptionalChain=F._asyncOptionalChain,e._asyncOptionalChainDelete=z._asyncOptionalChainDelete,e._nullishCoalesce=$._nullishCoalesce,e._optionalChain=V._optionalChain,e._optionalChainDelete=Y._optionalChainDelete,e.generatePropagationContext=q.generatePropagationContext,e.SDK_VERSION=H.SDK_VERSION,e.escapeStringForRegex=W.escapeStringForRegex,e.supportsHistory=G.supportsHistory}(hN);var y6={};Object.defineProperty(y6,"__esModule",{value:!0}),y6.DEBUG_BUILD="u"=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}gr.closeSession=function(e,t){let r={};t?r={status:t}:"ok"===e.status&&(r={status:"exited"}),gi(e,r)},gr.makeSession=function(e){let t=gn.timestampInSeconds(),r={sid:gn.uuid4(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>(function(e){return gn.dropUndefinedKeys({sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})})(r)};return e&&gi(r,e),r},gr.updateSession=gi;var go={};Object.defineProperty(go,"__esModule",{value:!0});let ga=hN,gs="_sentrySpan";go._getSpanForScope=function(e){return e[gs]},go._setSpanForScope=function(e,t){t?ga.addNonEnumerableProperty(e,gs,t):delete e[gs]},Object.defineProperty(gt,"__esModule",{value:!0});let gu=hN,gc=gr,gl=go;class gf{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=gu.generatePropagationContext()}clone(){let e=new gf;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,gl._setSpanForScope(e,gl._getSpanForScope(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&gc.updateSession(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;let t="function"==typeof e?e(this):e,[r,n]=t instanceof gd?[t.getScopeData(),t.getRequestSession()]:gu.isPlainObject(t)?[e,e.requestSession]:[],{tags:i,extra:o,user:a,contexts:s,level:u,fingerprint:c=[],propagationContext:l}=r||{};return this._tags={...this._tags,...i},this._extra={...this._extra,...o},this._contexts={...this._contexts,...s},a&&Object.keys(a).length&&(this._user=a),u&&(this._level=u),c.length&&(this._fingerprint=c),l&&(this._propagationContext=l),n&&(this._requestSession=n),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,gl._setSpanForScope(this,void 0),this._attachments=[],this._propagationContext=gu.generatePropagationContext(),this._notifyScopeListeners(),this}addBreadcrumb(e,t){let r="number"==typeof t?t:100;if(r<=0)return this;let n={timestamp:gu.dateTimestampInSeconds(),...e},i=this._breadcrumbs;return i.push(n),this._breadcrumbs=i.length>r?i.slice(-r):i,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:gl._getSpanForScope(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){let r=t&&t.event_id?t.event_id:gu.uuid4();if(!this._client)return gu.logger.warn("No client configured on scope - will not capture exception!"),r;let n=Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:n,...t,event_id:r},this),r}captureMessage(e,t,r){let n=r&&r.event_id?r.event_id:gu.uuid4();if(!this._client)return gu.logger.warn("No client configured on scope - will not capture message!"),n;let i=Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...r,event_id:n},this),n}captureEvent(e,t){let r=t&&t.event_id?t.event_id:gu.uuid4();return this._client?this._client.captureEvent(e,{...t,event_id:r},this):gu.logger.warn("No client configured on scope - will not capture event!"),r}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}let gd=gf;gt.Scope=gd,Object.defineProperty(ge,"__esModule",{value:!0});let gh=hN,gp=gt;ge.getDefaultCurrentScope=function(){return gh.getGlobalSingleton("defaultCurrentScope",()=>new gp.Scope)},ge.getDefaultIsolationScope=function(){return gh.getGlobalSingleton("defaultIsolationScope",()=>new gp.Scope)},Object.defineProperty(y7,"__esModule",{value:!0});let gm=hN,gy=ge,gg=gt,gb=y5;class gv{constructor(e,t){let r,n;r=e||new gg.Scope,n=t||new gg.Scope,this._stack=[{scope:r}],this._isolationScope=n}withScope(e){let t,r=this._pushScope();try{t=e(r)}catch(e){throw this._popScope(),e}return gm.isThenable(t)?t.then(e=>(this._popScope(),e),e=>{throw this._popScope(),e}):(this._popScope(),t)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let e=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:e}),e}_popScope(){return!(this.getStack().length<=1)&&!!this.getStack().pop()}}function g_(){let e=gb.getMainCarrier(),t=gb.getSentryCarrier(e);return t.stack=t.stack||new gv(gy.getDefaultCurrentScope(),gy.getDefaultIsolationScope())}function gS(e){return g_().withScope(e)}function gE(e,t){let r=g_();return r.withScope(()=>(r.getStackTop().scope=e,t(e)))}function gw(e){return g_().withScope(()=>e(g_().getIsolationScope()))}y7.AsyncContextStack=gv,y7.getStackAsyncContextStrategy=function(){return{withIsolationScope:gw,withScope:gS,withSetScope:gE,withSetIsolationScope:(e,t)=>gw(t),getCurrentScope:()=>g_().getScope(),getIsolationScope:()=>g_().getIsolationScope()}},Object.defineProperty(y4,"__esModule",{value:!0});let gT=y5,gx=y7;y4.getAsyncContextStrategy=function(e){let t=gT.getSentryCarrier(e);return t.acs?t.acs:gx.getStackAsyncContextStrategy()},y4.setAsyncContextStrategy=function(e){let t=gT.getMainCarrier();gT.getSentryCarrier(t).acs=e};var gA={};Object.defineProperty(gA,"__esModule",{value:!0});let gO=hN,gM=y4,gR=y5,gC=gt;function gI(){let e=gR.getMainCarrier();return gM.getAsyncContextStrategy(e).getCurrentScope()}gA.getClient=function(){return gI().getClient()},gA.getCurrentScope=gI,gA.getGlobalScope=function(){return gO.getGlobalSingleton("globalScope",()=>new gC.Scope)},gA.getIsolationScope=function(){let e=gR.getMainCarrier();return gM.getAsyncContextStrategy(e).getIsolationScope()},gA.withIsolationScope=function(...e){let t=gR.getMainCarrier(),r=gM.getAsyncContextStrategy(t);if(2===e.length){let[t,n]=e;return t?r.withSetIsolationScope(t,n):r.withIsolationScope(n)}return r.withIsolationScope(e[0])},gA.withScope=function(...e){let t=gR.getMainCarrier(),r=gM.getAsyncContextStrategy(t);if(2===e.length){let[t,n]=e;return t?r.withSetScope(t,n):r.withScope(n)}return r.withScope(e[0])};var gN={};Object.defineProperty(gN,"__esModule",{value:!0});let gP=hN,gk="_sentryMetrics";gN.getMetricSummaryJsonForSpan=function(e){let t=e[gk];if(!t)return;let r={};for(let[,[e,n]]of t)r[e]||(r[e]=[]),r[e].push(gP.dropUndefinedKeys(n));return r},gN.updateMetricSummaryOnSpan=function(e,t,r,n,i,o,a){let s=e[gk]||(e[gk]=new Map),u=`${t}:${r}@${i}`,c=s.get(a);if(c){let[,e]=c;s.set(a,[u,{min:Math.min(e.min,n),max:Math.max(e.max,n),count:e.count+=1,sum:e.sum+=n,tags:e.tags}])}else s.set(a,[u,{min:n,max:n,count:1,sum:n,tags:o}])};var gD={};Object.defineProperty(gD,"__esModule",{value:!0}),gD.SEMANTIC_ATTRIBUTE_CACHE_HIT="cache.hit",gD.SEMANTIC_ATTRIBUTE_CACHE_ITEM_SIZE="cache.item_size",gD.SEMANTIC_ATTRIBUTE_CACHE_KEY="cache.key",gD.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME="sentry.exclusive_time",gD.SEMANTIC_ATTRIBUTE_PROFILE_ID="sentry.profile_id",gD.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON="sentry.idle_span_finish_reason",gD.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT="sentry.measurement_unit",gD.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE="sentry.measurement_value",gD.SEMANTIC_ATTRIBUTE_SENTRY_OP="sentry.op",gD.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN="sentry.origin",gD.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE="sentry.sample_rate",gD.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE="sentry.source";var gL={};Object.defineProperty(gL,"__esModule",{value:!0});let gj=1,gU=2;function gB(e){if(e<400&&e>=100)return{code:gj};if(e>=400&&e<500)switch(e){case 401:return{code:gU,message:"unauthenticated"};case 403:return{code:gU,message:"permission_denied"};case 404:return{code:gU,message:"not_found"};case 409:return{code:gU,message:"already_exists"};case 413:return{code:gU,message:"failed_precondition"};case 429:return{code:gU,message:"resource_exhausted"};case 499:return{code:gU,message:"cancelled"};default:return{code:gU,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:gU,message:"unimplemented"};case 503:return{code:gU,message:"unavailable"};case 504:return{code:gU,message:"deadline_exceeded"};default:return{code:gU,message:"internal_error"}}return{code:gU,message:"unknown_error"}}gL.SPAN_STATUS_ERROR=2,gL.SPAN_STATUS_OK=gj,gL.SPAN_STATUS_UNSET=0,gL.getSpanStatusFromHttpCode=gB,gL.setHttpStatus=function(e,t){e.setAttribute("http.response.status_code",t);let r=gB(t);"unknown_error"!==r.message&&e.setStatus(r)},Object.defineProperty(y3,"__esModule",{value:!0});let gF=hN,gz=y4,g$=y5,gV=gA,gY=gN,gq=gD,gH=gL,gW=go,gG=1;function gZ(e){return"number"==typeof e?gK(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?gK(e.getTime()):gF.timestampInSeconds()}function gK(e){return e>0x2540be3ff?e/1e3:e}function gX(e){if(function(e){return"function"==typeof e.getSpanJSON}(e))return e.getSpanJSON();try{let{spanId:t,traceId:r}=e.spanContext();if(function(e){let t=e;return!!(t.attributes&&t.startTime&&t.name&&t.endTime&&t.status)}(e)){let{attributes:n,startTime:i,name:o,endTime:a,parentSpanId:s,status:u}=e;return gF.dropUndefinedKeys({span_id:t,trace_id:r,data:n,description:o,parent_span_id:s,start_timestamp:gZ(i),timestamp:gZ(a)||void 0,status:gQ(u),op:n[gq.SEMANTIC_ATTRIBUTE_SENTRY_OP],origin:n[gq.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN],_metrics_summary:gY.getMetricSummaryJsonForSpan(e)})}return{span_id:t,trace_id:r}}catch(e){return{}}}function gJ(e){let{traceFlags:t}=e.spanContext();return t===gG}function gQ(e){if(e&&e.code!==gH.SPAN_STATUS_UNSET)return e.code===gH.SPAN_STATUS_OK?"ok":e.message||"unknown_error"}let g0="_sentryChildSpans",g1="_sentryRootSpan";function g2(){let e=g$.getMainCarrier(),t=gz.getAsyncContextStrategy(e);return t.getActiveSpan?t.getActiveSpan():gW._getSpanForScope(gV.getCurrentScope())}y3.TRACE_FLAG_NONE=0,y3.TRACE_FLAG_SAMPLED=gG,y3.addChildSpanToSpan=function(e,t){let r=e[g1]||e;gF.addNonEnumerableProperty(t,g1,r),e[g0]?e[g0].add(t):gF.addNonEnumerableProperty(e,g0,new Set([t]))},y3.getActiveSpan=g2,y3.getRootSpan=function(e){return e[g1]||e},y3.getSpanDescendants=function(e){let t=new Set;return function e(r){if(!t.has(r)&&gJ(r))for(let n of(t.add(r),r[g0]?Array.from(r[g0]):[]))e(n)}(e),Array.from(t)},y3.getStatusMessage=gQ,y3.removeChildSpanFromSpan=function(e,t){e[g0]&&e[g0].delete(t)},y3.spanIsSampled=gJ,y3.spanTimeInputToSeconds=gZ,y3.spanToJSON=gX,y3.spanToTraceContext=function(e){let{spanId:t,traceId:r}=e.spanContext(),{parent_span_id:n}=gX(e);return gF.dropUndefinedKeys({parent_span_id:n,span_id:t,trace_id:r})},y3.spanToTraceHeader=function(e){let{traceId:t,spanId:r}=e.spanContext(),n=gJ(e);return gF.generateSentryTraceHeader(t,r,n)},y3.spanToTransactionTraceContext=function(e){let{spanId:t,traceId:r}=e.spanContext(),{data:n,op:i,parent_span_id:o,status:a,origin:s}=gX(e);return gF.dropUndefinedKeys({parent_span_id:o,span_id:t,trace_id:r,data:n,op:i,status:a,origin:s})},y3.updateMetricSummaryOnActiveSpan=function(e,t,r,n,i,o){let a=g2();a&&gY.updateMetricSummaryOnSpan(a,e,t,r,n,i,o)},Object.defineProperty(hI,"__esModule",{value:!0});let g6=hN,g3=y6,g4=y3,g5=gL,g8=!1;function g9(){let e=g4.getActiveSpan(),t=e&&g4.getRootSpan(e);if(t){let e="internal_error";g3.DEBUG_BUILD&&g6.logger.log(`[Tracing] Root span: ${e} -> Global error occured`),t.setStatus({code:g5.SPAN_STATUS_ERROR,message:e})}}g9.tag="sentry_tracingErrorCallback",hI.registerSpanErrorInstrumentation=function(){g8||(g8=!0,g6.addGlobalErrorInstrumentationHandler(g9),g6.addGlobalUnhandledRejectionInstrumentationHandler(g9))};var g7={};Object.defineProperty(g7,"__esModule",{value:!0});let be=hN,bt="_sentryScope",br="_sentryIsolationScope";g7.stripUrlQueryAndFragment=be.stripUrlQueryAndFragment,g7.getCapturedScopesOnSpan=function(e){return{scope:e[bt],isolationScope:e[br]}},g7.setCapturedScopesOnSpan=function(e,t,r){e&&(be.addNonEnumerableProperty(e,br,r),be.addNonEnumerableProperty(e,bt,t))};var bn={};Object.defineProperty(bn,"__esModule",{value:!0});let bi=hI;bn.addTracingExtensions=function(){bi.registerSpanErrorInstrumentation()};var bo={},ba={};Object.defineProperty(ba,"__esModule",{value:!0});let bs=gA;ba.hasTracingEnabled=function(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;let t=e||function(){let e=bs.getClient();return e&&e.getOptions()}();return!!t&&(t.enableTracing||"tracesSampleRate"in t||"tracesSampler"in t)};var bu={};Object.defineProperty(bu,"__esModule",{value:!0});let bc=hN,bl=y3;bu.SentryNonRecordingSpan=class{constructor(e={}){this._traceId=e.traceId||bc.uuid4(),this._spanId=e.spanId||bc.uuid4().substring(16)}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:bl.TRACE_FLAG_NONE}}end(e){}setAttribute(e,t){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}addEvent(e,t,r){return this}};var bf={},bd={};Object.defineProperty(bd,"__esModule",{value:!0});let bh=hN;bd.handleCallbackErrors=function(e,t,r=()=>{}){let n;try{n=e()}catch(e){throw t(e),r(),e}return function(e,t,r){return bh.isThenable(e)?e.then(e=>(r(),e),e=>{throw t(e),r(),e}):(r(),e)}(n,t,r)};var bp={},bm={};Object.defineProperty(bm,"__esModule",{value:!0}),bm.DEFAULT_ENVIRONMENT="production",Object.defineProperty(bp,"__esModule",{value:!0});let by=hN,bg=bm,bb=gA,bv=gD,b_=y3,bS="_frozenDsc";function bE(e,t){let r=t.getOptions(),{publicKey:n}=t.getDsn()||{},i=by.dropUndefinedKeys({environment:r.environment||bg.DEFAULT_ENVIRONMENT,release:r.release,public_key:n,trace_id:e});return t.emit("createDsc",i),i}function bw(e){let t=bb.getClient();if(!t)return{};let r=bE(b_.spanToJSON(e).trace_id||"",t),n=b_.getRootSpan(e);if(!n)return r;let i=n[bS];if(i)return i;let o=b_.spanToJSON(n),a=o.data||{},s=a[bv.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE];null!=s&&(r.sample_rate=`${s}`);let u=a[bv.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];return u&&"url"!==u&&(r.transaction=o.description),r.sampled=String(b_.spanIsSampled(n)),t.emit("createDsc",r),r}bp.freezeDscOnSpan=function(e,t){let r=e;by.addNonEnumerableProperty(r,bS,t)},bp.getDynamicSamplingContextFromClient=bE,bp.getDynamicSamplingContextFromSpan=bw,bp.spanToBaggageHeader=function(e){let t=bw(e);return by.dynamicSamplingContextToSentryBaggageHeader(t)};var bT={};Object.defineProperty(bT,"__esModule",{value:!0});let bx=hN,bA=y6,bO=y3;bT.logSpanEnd=function(e){if(!bA.DEBUG_BUILD)return;let{description:t="< unknown name >",op:r="< unknown op >"}=bO.spanToJSON(e),{spanId:n}=e.spanContext(),i=`[Tracing] Finishing "${r}" ${bO.getRootSpan(e)===e?"root ":""}span "${t}" with ID ${n}`;bx.logger.log(i)},bT.logSpanStart=function(e){if(!bA.DEBUG_BUILD)return;let{description:t="< unknown name >",op:r="< unknown op >",parent_span_id:n}=bO.spanToJSON(e),{spanId:i}=e.spanContext(),o=bO.spanIsSampled(e),a=bO.getRootSpan(e),s=a===e,u=`[Tracing] Starting ${o?"sampled":"unsampled"} ${s?"root ":""}span`,c=[`op: ${r}`,`name: ${t}`,`ID: ${i}`];if(n&&c.push(`parent ID: ${n}`),!s){let{op:e,description:t}=bO.spanToJSON(a);c.push(`root ID: ${a.spanContext().spanId}`),e&&c.push(`root op: ${e}`),t&&c.push(`root description: ${t}`)}bx.logger.log(`${u} + ${c.join("\n ")}`)};var bM={},bR={};Object.defineProperty(bR,"__esModule",{value:!0});let bC=hN,bI=y6;bR.parseSampleRate=function(e){if("boolean"==typeof e)return Number(e);let t="string"==typeof e?parseFloat(e):e;if(!("number"!=typeof t||isNaN(t)||t<0||t>1))return t;bI.DEBUG_BUILD&&bC.logger.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`)},Object.defineProperty(bM,"__esModule",{value:!0});let bN=hN,bP=y6,bk=ba,bD=bR;bM.sampleSpan=function(e,t){let r;if(!bk.hasTracingEnabled(e))return[!1];r="function"==typeof e.tracesSampler?e.tracesSampler(t):void 0!==t.parentSampled?t.parentSampled:void 0!==e.tracesSampleRate?e.tracesSampleRate:1;let n=bD.parseSampleRate(r);return void 0===n?(bP.DEBUG_BUILD&&bN.logger.warn("[Tracing] Discarding transaction because of invalid sample rate."),[!1]):n?Math.random()a(bF.spanToJSON(e)):e=>bF.spanToJSON(e),u=[];for(let t of e){let e=s(t);e&&u.push(bU.createSpanEnvelopeItem(e))}return bU.createEnvelope(o,u)};var bz={};Object.defineProperty(bz,"__esModule",{value:!0});let b$=gD,bV=y3;bz.setMeasurement=function(e,t,r){let n=bV.getActiveSpan(),i=n&&bV.getRootSpan(n);i&&i.addEvent(e,{[b$.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:t,[b$.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:r})},bz.timedEventsToMeasurements=function(e){if(!e||0===e.length)return;let t={};return e.forEach(e=>{let r=e.attributes||{},n=r[b$.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT],i=r[b$.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE];"string"==typeof n&&"number"==typeof i&&(t[e.name]={value:i,unit:n})}),t},Object.defineProperty(bL,"__esModule",{value:!0});let bY=hN,bq=gA,bH=y6,bW=bj,bG=gN,bZ=gD,bK=y3,bX=bp,bJ=bT,bQ=bz,b0=g7;class b1{constructor(e={}){this._traceId=e.traceId||bY.uuid4(),this._spanId=e.spanId||bY.uuid4().substring(16),this._startTime=e.startTimestamp||bY.timestampInSeconds(),this._attributes={},this.setAttributes({[bZ.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"manual",[bZ.SEMANTIC_ATTRIBUTE_SENTRY_OP]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}spanContext(){let{_spanId:e,_traceId:t,_sampled:r}=this;return{spanId:e,traceId:t,traceFlags:r?bK.TRACE_FLAG_SAMPLED:bK.TRACE_FLAG_NONE}}setAttribute(e,t){void 0===t?delete this._attributes[e]:this._attributes[e]=t}setAttributes(e){Object.keys(e).forEach(t=>this.setAttribute(t,e[t]))}updateStartTime(e){this._startTime=bK.spanTimeInputToSeconds(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this}end(e){this._endTime||(this._endTime=bK.spanTimeInputToSeconds(e),bJ.logSpanEnd(this),this._onSpanEnded())}getSpanJSON(){return bY.dropUndefinedKeys({data:this._attributes,description:this._name,op:this._attributes[bZ.SEMANTIC_ATTRIBUTE_SENTRY_OP],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:bK.getStatusMessage(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[bZ.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN],_metrics_summary:bG.getMetricSummaryJsonForSpan(this),profile_id:this._attributes[bZ.SEMANTIC_ATTRIBUTE_PROFILE_ID],exclusive_time:this._attributes[bZ.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME],measurements:bQ.timedEventsToMeasurements(this._events),is_segment:this._isStandaloneSpan&&bK.getRootSpan(this)===this||void 0,segment_id:this._isStandaloneSpan?bK.getRootSpan(this).spanContext().spanId:void 0})}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,r){bH.DEBUG_BUILD&&bY.logger.log("[Tracing] Adding an event to span:",e);let n=b2(t)?t:r||bY.timestampInSeconds(),i=b2(t)?{}:t||{},o={name:e,time:bK.spanTimeInputToSeconds(n),attributes:i};return this._events.push(o),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let e=bq.getClient();if(e&&e.emit("spanEnd",this),!(this._isStandaloneSpan||this===bK.getRootSpan(this)))return;if(this._isStandaloneSpan)return void function(e){let t=bq.getClient();if(!t)return;let r=e[1];if(!r||0===r.length)return t.recordDroppedEvent("before_send","span");let n=t.getTransport();n&&n.send(e).then(null,e=>{bH.DEBUG_BUILD&&bY.logger.error("Error while sending span:",e)})}(bW.createSpanEnvelope([this],e));let t=this._convertSpanToTransaction();t&&(b0.getCapturedScopesOnSpan(this).scope||bq.getCurrentScope()).captureEvent(t)}_convertSpanToTransaction(){if(!b6(bK.spanToJSON(this)))return;this._name||(bH.DEBUG_BUILD&&bY.logger.warn("Transaction has no name, falling back to ``."),this._name="");let{scope:e,isolationScope:t}=b0.getCapturedScopesOnSpan(this),r=(e||bq.getCurrentScope()).getClient()||bq.getClient();if(!0!==this._sampled)return bH.DEBUG_BUILD&&bY.logger.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),void(r&&r.recordDroppedEvent("sample_rate","transaction"));let n=bK.getSpanDescendants(this).filter(e=>e!==this&&!function(e){return e instanceof b1&&e.isStandaloneSpan()}(e)).map(e=>bK.spanToJSON(e)).filter(b6),i=this._attributes[bZ.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE],o={contexts:{trace:bK.spanToTransactionTraceContext(this)},spans:n.length>1e3?n.sort((e,t)=>e.start_timestamp-t.start_timestamp).slice(0,1e3):n,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:t,...bY.dropUndefinedKeys({dynamicSamplingContext:bX.getDynamicSamplingContextFromSpan(this)})},_metrics_summary:bG.getMetricSummaryJsonForSpan(this),...i&&{transaction_info:{source:i}}},a=bQ.timedEventsToMeasurements(this._events);return a&&Object.keys(a).length&&(bH.DEBUG_BUILD&&bY.logger.log("[Measurements] Adding measurements to transaction",JSON.stringify(a,void 0,2)),o.measurements=a),o}}function b2(e){return e&&"number"==typeof e||e instanceof Date||Array.isArray(e)}function b6(e){return!!(e.start_timestamp&&e.timestamp&&e.span_id&&e.trace_id)}bL.SentrySpan=b1,Object.defineProperty(bf,"__esModule",{value:!0});let b3=hN,b4=y5,b5=gA,b8=y4,b9=y6,b7=gD,ve=bd,vt=ba,vr=go,vn=y3,vi=bp,vo=bT,va=bM,vs=bu,vu=bL,vc=gL,vl=g7,vf="__SENTRY_SUPPRESS_TRACING__";function vd(e,t){let r=vm();return r.withActiveSpan?r.withActiveSpan(e,t):b5.withScope(r=>(vr._setSpanForScope(r,e||void 0),t(r)))}function vh({parentSpan:e,spanContext:t,forceTransaction:r,scope:n}){let i;if(!vt.hasTracingEnabled())return new vs.SentryNonRecordingSpan;let o=b5.getIsolationScope();if(e&&!r)i=function(e,t,r){let{spanId:n,traceId:i}=e.spanContext(),o=!t.getScopeData().sdkProcessingMetadata[vf]&&vn.spanIsSampled(e),a=o?new vu.SentrySpan({...r,parentSpanId:n,traceId:i,sampled:o}):new vs.SentryNonRecordingSpan({traceId:i});vn.addChildSpanToSpan(e,a);let s=b5.getClient();return s&&(s.emit("spanStart",a),r.endTimestamp&&s.emit("spanEnd",a)),a}(e,n,t),vn.addChildSpanToSpan(e,i);else if(e){let r=vi.getDynamicSamplingContextFromSpan(e),{traceId:o,spanId:a}=e.spanContext(),s=vn.spanIsSampled(e);i=vy({traceId:o,parentSpanId:a,...t},n,s),vi.freezeDscOnSpan(i,r)}else{let{traceId:e,dsc:r,parentSpanId:a,sampled:s}={...o.getPropagationContext(),...n.getPropagationContext()};i=vy({traceId:e,parentSpanId:a,...t},n,s),r&&vi.freezeDscOnSpan(i,r)}return vo.logSpanStart(i),vl.setCapturedScopesOnSpan(i,n,o),i}function vp(e){let t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){let r={...t};return r.startTimestamp=vn.spanTimeInputToSeconds(e.startTime),delete r.startTime,r}return t}function vm(){let e=b4.getMainCarrier();return b8.getAsyncContextStrategy(e)}function vy(e,t,r){let n=b5.getClient(),i=n&&n.getOptions()||{},{name:o="",attributes:a}=e,[s,u]=t.getScopeData().sdkProcessingMetadata[vf]?[!1]:va.sampleSpan(i,{name:o,parentSampled:r,attributes:a,transactionContext:{name:o,parentSampled:r}}),c=new vu.SentrySpan({...e,attributes:{[b7.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"custom",...e.attributes},sampled:s});return void 0!==u&&c.setAttribute(b7.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,u),n&&n.emit("spanStart",c),c}function vg(e){let t=vr._getSpanForScope(e);if(!t)return;let r=b5.getClient();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?vn.getRootSpan(t):t}bf.continueTrace=({sentryTrace:e,baggage:t},r)=>b5.withScope(n=>{let i=b3.propagationContextFromHeaders(e,t);return n.setPropagationContext(i),r()}),bf.startInactiveSpan=function(e){let t=vm();if(t.startInactiveSpan)return t.startInactiveSpan(e);let r=vp(e),n=e.scope||b5.getCurrentScope(),i=vg(n);return e.onlyIfParent&&!i?new vs.SentryNonRecordingSpan:vh({parentSpan:i,spanContext:r,forceTransaction:e.forceTransaction,scope:n})},bf.startNewTrace=function(e){return b5.withScope(t=>(t.setPropagationContext(b3.generatePropagationContext()),b9.DEBUG_BUILD&&b3.logger.info(`Starting a new trace with id ${t.getPropagationContext().traceId}`),vd(null,e)))},bf.startSpan=function(e,t){let r=vm();if(r.startSpan)return r.startSpan(e,t);let n=vp(e);return b5.withScope(e.scope,r=>{let i=vg(r),o=e.onlyIfParent&&!i?new vs.SentryNonRecordingSpan:vh({parentSpan:i,spanContext:n,forceTransaction:e.forceTransaction,scope:r});return vr._setSpanForScope(r,o),ve.handleCallbackErrors(()=>t(o),()=>{let{status:e}=vn.spanToJSON(o);!o.isRecording()||e&&"ok"!==e||o.setStatus({code:vc.SPAN_STATUS_ERROR,message:"internal_error"})},()=>o.end())})},bf.startSpanManual=function(e,t){let r=vm();if(r.startSpanManual)return r.startSpanManual(e,t);let n=vp(e);return b5.withScope(e.scope,r=>{let i=vg(r),o=e.onlyIfParent&&!i?new vs.SentryNonRecordingSpan:vh({parentSpan:i,spanContext:n,forceTransaction:e.forceTransaction,scope:r});function a(){o.end()}return vr._setSpanForScope(r,o),ve.handleCallbackErrors(()=>t(o,a),()=>{let{status:e}=vn.spanToJSON(o);!o.isRecording()||e&&"ok"!==e||o.setStatus({code:vc.SPAN_STATUS_ERROR,message:"internal_error"})})})},bf.suppressTracing=function(e){let t=vm();return t.suppressTracing?t.suppressTracing(e):b5.withScope(t=>(t.setSDKProcessingMetadata({[vf]:!0}),e()))},bf.withActiveSpan=vd,Object.defineProperty(bo,"__esModule",{value:!0});let vb=hN,vv=gA,v_=y6,vS=gD,vE=ba,vw=go,vT=y3,vx=bu,vA=gL,vO=bf,vM={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3};bo.TRACING_DEFAULTS=vM,bo.startIdleSpan=function(e,t={}){let r=new Map,n,i=!1,o="externalFinish",a=!t.disableAutoFinish,{idleTimeout:s=vM.idleTimeout,finalTimeout:u=vM.finalTimeout,childSpanTimeout:c=vM.childSpanTimeout,beforeSpanEnd:l}=t,f=vv.getClient();if(!f||!vE.hasTracingEnabled())return new vx.SentryNonRecordingSpan;let d=vv.getCurrentScope(),h=vT.getActiveSpan(),p=function(e){let t=vO.startInactiveSpan(e);return vw._setSpanForScope(vv.getCurrentScope(),t),v_.DEBUG_BUILD&&vb.logger.log("[Tracing] Started span is an idle span"),t}(e);function m(e=vb.timestampInSeconds()){let t=vT.getSpanDescendants(p).filter(e=>e!==p);if(!t.length)return void p.end(e);let r=t.map(e=>vT.spanToJSON(e).timestamp).filter(e=>!!e),n=r.length?Math.max(...r):void 0,i=vT.spanTimeInputToSeconds(e),o=vT.spanToJSON(p).start_timestamp,a=Math.min(o?o+u/1e3:1/0,Math.max(o||-1/0,Math.min(i,n||1/0)));p.end(a)}function y(){n&&(clearTimeout(n),n=void 0)}function g(e){y(),n=setTimeout(()=>{!i&&0===r.size&&a&&(o="idleTimeout",m(e))},s)}function b(e){n=setTimeout(()=>{!i&&a&&(o="heartbeatFailed",m(e))},c)}return f.on("spanStart",e=>{var t;i||e===p||vT.spanToJSON(e).timestamp||vT.getSpanDescendants(p).includes(e)&&(t=e.spanContext().spanId,y(),r.set(t,!0),b(vb.timestampInSeconds()+c/1e3))}),f.on("spanEnd",e=>{var t;i||(t=e.spanContext().spanId,r.has(t)&&r.delete(t),0===r.size&&g(vb.timestampInSeconds()+s/1e3),e===p&&function(){i=!0,r.clear(),l&&l(p),vw._setSpanForScope(d,h);let e=vT.spanToJSON(p),{timestamp:t,start_timestamp:n}=e;if(!t||!n)return;(e.data||{})[vS.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON]||p.setAttribute(vS.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,o),vb.logger.log(`[Tracing] Idle span "${e.op}" finished`);let a=vT.getSpanDescendants(p).filter(e=>e!==p),c=0;a.forEach(e=>{e.isRecording()&&(e.setStatus({code:vA.SPAN_STATUS_ERROR,message:"cancelled"}),e.end(t),v_.DEBUG_BUILD&&vb.logger.log("[Tracing] Cancelling span since span ended early",JSON.stringify(e,void 0,2)));let{timestamp:r=0,start_timestamp:n=0}=vT.spanToJSON(e),i=n<=t,o=r-n<(u+s)/1e3;if(v_.DEBUG_BUILD){let t=JSON.stringify(e,void 0,2);i?o||vb.logger.log("[Tracing] Discarding span since it finished after idle span final timeout",t):vb.logger.log("[Tracing] Discarding span since it happened after idle span was finished",t)}o&&i||(vT.removeChildSpanFromSpan(p,e),c++)}),c>0&&p.setAttribute("sentry.idle_span_discarded_spans",c)}())}),f.on("idleSpanEnableAutoFinish",e=>{e===p&&(a=!0,g(),r.size&&b())}),t.disableAutoFinish||g(),setTimeout(()=>{i||(p.setStatus({code:vA.SPAN_STATUS_ERROR,message:"deadline_exceeded"}),o="finalTimeout",m())},u),p};var vR={},vC={},vI={};Object.defineProperty(vI,"__esModule",{value:!0});let vN=hN,vP=y6;vI.notifyEventProcessors=function e(t,r,n,i=0){return new vN.SyncPromise((o,a)=>{let s=t[i];if(null===r||"function"!=typeof s)o(r);else{let u=s({...r},n);vP.DEBUG_BUILD&&s.id&&null===u&&vN.logger.log(`Event processor "${s.id}" dropped event`),vN.isThenable(u)?u.then(r=>e(t,r,n,i+1).then(o)).then(null,a):e(t,u,n,i+1).then(o).then(null,a)}})};var vk={};Object.defineProperty(vk,"__esModule",{value:!0});let vD=hN,vL=bp,vj=y3;function vU(e,t,r){if(r&&Object.keys(r).length)for(let n in e[t]={...e[t]},r)Object.prototype.hasOwnProperty.call(r,n)&&(e[t][n]=r[n])}vk.applyScopeDataToEvent=function(e,t){let{fingerprint:r,span:n,breadcrumbs:i,sdkProcessingMetadata:o}=t;!function(e,t){let{extra:r,tags:n,user:i,contexts:o,level:a,transactionName:s}=t,u=vD.dropUndefinedKeys(r);u&&Object.keys(u).length&&(e.extra={...u,...e.extra});let c=vD.dropUndefinedKeys(n);c&&Object.keys(c).length&&(e.tags={...c,...e.tags});let l=vD.dropUndefinedKeys(i);l&&Object.keys(l).length&&(e.user={...l,...e.user});let f=vD.dropUndefinedKeys(o);f&&Object.keys(f).length&&(e.contexts={...f,...e.contexts}),a&&(e.level=a),s&&"transaction"!==e.type&&(e.transaction=s)}(e,t),n&&function(e,t){e.contexts={trace:vj.spanToTraceContext(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:vL.getDynamicSamplingContextFromSpan(t),...e.sdkProcessingMetadata};let r=vj.getRootSpan(t),n=vj.spanToJSON(r).description;n&&!e.transaction&&"transaction"===e.type&&(e.transaction=n)}(e,n),function(e,t){e.fingerprint=e.fingerprint?vD.arrayify(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}(e,r),function(e,t){let r=[...e.breadcrumbs||[],...t];e.breadcrumbs=r.length?r:void 0}(e,i),function(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}(e,o)},vk.mergeAndOverwriteScopeData=vU,vk.mergeScopeData=function(e,t){let{extra:r,tags:n,user:i,contexts:o,level:a,sdkProcessingMetadata:s,breadcrumbs:u,fingerprint:c,eventProcessors:l,attachments:f,propagationContext:d,transactionName:h,span:p}=t;vU(e,"extra",r),vU(e,"tags",n),vU(e,"user",i),vU(e,"contexts",o),vU(e,"sdkProcessingMetadata",s),a&&(e.level=a),h&&(e.transactionName=h),p&&(e.span=p),u.length&&(e.breadcrumbs=[...e.breadcrumbs,...u]),c.length&&(e.fingerprint=[...e.fingerprint,...c]),l.length&&(e.eventProcessors=[...e.eventProcessors,...l]),f.length&&(e.attachments=[...e.attachments,...f]),e.propagationContext={...e.propagationContext,...d}},Object.defineProperty(vC,"__esModule",{value:!0});let vB=hN,vF=bm,vz=gA,v$=vI,vV=gt,vY=vk,vq=new WeakMap;function vH(e,t){let r,n=vB.GLOBAL_OBJ._sentryDebugIds;if(!n)return;let i=vq.get(t);i?r=i:(r=new Map,vq.set(t,r));let o=Object.keys(n).reduce((e,i)=>{let o,a=r.get(i);a?o=a:(o=t(i),r.set(i,o));for(let t=o.length-1;t>=0;t--){let r=o[t];if(r.filename){e[r.filename]=n[i];break}}return e},{});try{e.exception.values.forEach(e=>{e.stacktrace.frames.forEach(e=>{e.filename&&(e.debug_id=o[e.filename])})})}catch(e){}}function vW(e){let t={};try{e.exception.values.forEach(e=>{e.stacktrace.frames.forEach(e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)})})}catch(e){}if(0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let r=e.debug_meta.images;Object.keys(t).forEach(e=>{r.push({type:"sourcemap",code_file:e,debug_id:t[e]})})}let vG=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];vC.applyDebugIds=vH,vC.applyDebugMeta=vW,vC.parseEventHintOrCaptureContext=function(e){if(e)return function(e){return e instanceof vV.Scope||"function"==typeof e}(e)||function(e){return Object.keys(e).some(e=>vG.includes(e))}(e)?{captureContext:e}:e},vC.prepareEvent=function(e,t,r,n,i,o){let{normalizeDepth:a=3,normalizeMaxBreadth:s=1e3}=e,u={...t,event_id:t.event_id||r.event_id||vB.uuid4(),timestamp:t.timestamp||vB.dateTimestampInSeconds()},c=r.integrations||e.integrations.map(e=>e.name);!function(e,t){let{environment:r,release:n,dist:i,maxValueLength:o=250}=t;"environment"in e||(e.environment="environment"in t?r:vF.DEFAULT_ENVIRONMENT),void 0===e.release&&void 0!==n&&(e.release=n),void 0===e.dist&&void 0!==i&&(e.dist=i),e.message&&(e.message=vB.truncate(e.message,o));let a=e.exception&&e.exception.values&&e.exception.values[0];a&&a.value&&(a.value=vB.truncate(a.value,o));let s=e.request;s&&s.url&&(s.url=vB.truncate(s.url,o))}(u,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}(u,c),void 0===t.type&&vH(u,e.stackParser);let l=function(e,t){if(!t)return e;let r=e?e.clone():new vV.Scope;return r.update(t),r}(n,r.captureContext);r.mechanism&&vB.addExceptionMechanism(u,r.mechanism);let f=i?i.getEventProcessors():[],d=vz.getGlobalScope().getScopeData();if(o){let e=o.getScopeData();vY.mergeScopeData(d,e)}if(l){let e=l.getScopeData();vY.mergeScopeData(d,e)}let h=[...r.attachments||[],...d.attachments];h.length&&(r.attachments=h),vY.applyScopeDataToEvent(u,d);let p=[...f,...d.eventProcessors];return v$.notifyEventProcessors(p,u,r).then(e=>(e&&vW(e),"number"==typeof a&&a>0?function(e,t,r){if(!e)return null;let n={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:vB.normalize(e.data,t,r)}}))},...e.user&&{user:vB.normalize(e.user,t,r)},...e.contexts&&{contexts:vB.normalize(e.contexts,t,r)},...e.extra&&{extra:vB.normalize(e.extra,t,r)}};return e.contexts&&e.contexts.trace&&n.contexts&&(n.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(n.contexts.trace.data=vB.normalize(e.contexts.trace.data,t,r))),e.spans&&(n.spans=e.spans.map(e=>({...e,...e.data&&{data:vB.normalize(e.data,t,r)}}))),n}(e,a,s):e))},Object.defineProperty(vR,"__esModule",{value:!0});let vZ=hN,vK=bm,vX=gA,vJ=y6,vQ=gr,v0=vC;function v1(e,t){let r=vX.getCurrentScope(),n=vX.getClient();if(n){if(n.captureCheckIn)return n.captureCheckIn(e,t,r);vJ.DEBUG_BUILD&&vZ.logger.warn("Cannot capture check-in. Client does not support sending check-ins.")}else vJ.DEBUG_BUILD&&vZ.logger.warn("Cannot capture check-in. No client defined.");return vZ.uuid4()}function v2(){let e=vX.getIsolationScope(),t=vX.getCurrentScope(),r=t.getSession()||e.getSession();r&&vQ.closeSession(r),v6(),e.setSession(),t.setSession()}function v6(){let e=vX.getIsolationScope(),t=vX.getCurrentScope(),r=vX.getClient(),n=t.getSession()||e.getSession();n&&r&&r.captureSession(n)}vR.addEventProcessor=function(e){vX.getIsolationScope().addEventProcessor(e)},vR.captureCheckIn=v1,vR.captureEvent=function(e,t){return vX.getCurrentScope().captureEvent(e,t)},vR.captureException=function(e,t){return vX.getCurrentScope().captureException(e,v0.parseEventHintOrCaptureContext(t))},vR.captureMessage=function(e,t){let r="string"==typeof t?t:void 0,n="string"!=typeof t?{captureContext:t}:void 0;return vX.getCurrentScope().captureMessage(e,r,n)},vR.captureSession=function(e=!1){e?v2():v6()},vR.close=async function(e){let t=vX.getClient();return t?t.close(e):(vJ.DEBUG_BUILD&&vZ.logger.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))},vR.endSession=v2,vR.flush=async function(e){let t=vX.getClient();return t?t.flush(e):(vJ.DEBUG_BUILD&&vZ.logger.warn("Cannot flush events. No client defined."),Promise.resolve(!1))},vR.isEnabled=function(){let e=vX.getClient();return!!e&&!1!==e.getOptions().enabled&&!!e.getTransport()},vR.isInitialized=function(){return!!vX.getClient()},vR.lastEventId=function(){return vX.getIsolationScope().lastEventId()},vR.setContext=function(e,t){vX.getIsolationScope().setContext(e,t)},vR.setExtra=function(e,t){vX.getIsolationScope().setExtra(e,t)},vR.setExtras=function(e){vX.getIsolationScope().setExtras(e)},vR.setTag=function(e,t){vX.getIsolationScope().setTag(e,t)},vR.setTags=function(e){vX.getIsolationScope().setTags(e)},vR.setUser=function(e){vX.getIsolationScope().setUser(e)},vR.startSession=function(e){let t=vX.getClient(),r=vX.getIsolationScope(),n=vX.getCurrentScope(),{release:i,environment:o=vK.DEFAULT_ENVIRONMENT}=t&&t.getOptions()||{},{userAgent:a}=vZ.GLOBAL_OBJ.navigator||{},s=vQ.makeSession({release:i,environment:o,user:n.getUser()||r.getUser(),...a&&{userAgent:a},...e}),u=r.getSession();return u&&"ok"===u.status&&vQ.updateSession(u,{status:"exited"}),v2(),r.setSession(s),n.setSession(s),s},vR.withMonitor=function(e,t,r){let n=v1({monitorSlug:e,status:"in_progress"},r),i=vZ.timestampInSeconds();function o(t){v1({monitorSlug:e,status:t,checkInId:n,duration:vZ.timestampInSeconds()-i})}return vX.withIsolationScope(()=>{let e;try{e=t()}catch(e){throw o("error"),e}return vZ.isThenable(e)?Promise.resolve(e).then(()=>{o("ok")},()=>{o("error")}):o("ok"),e})};var v3={};Object.defineProperty(v3,"__esModule",{value:!0});let v4=hN,v5=gA;v3.SessionFlusher=class{constructor(e,t){this._client=e,this.flushTimeout=60,this._pendingAggregates={},this._isEnabled=!0,this._intervalId=setInterval(()=>this.flush(),1e3*this.flushTimeout),this._intervalId.unref&&this._intervalId.unref(),this._sessionAttrs=t}flush(){let e=this.getSessionAggregates();0!==e.aggregates.length&&(this._pendingAggregates={},this._client.sendSession(e))}getSessionAggregates(){let e=Object.keys(this._pendingAggregates).map(e=>this._pendingAggregates[parseInt(e)]),t={attrs:this._sessionAttrs,aggregates:e};return v4.dropUndefinedKeys(t)}close(){clearInterval(this._intervalId),this._isEnabled=!1,this.flush()}incrementSessionStatusCount(){if(!this._isEnabled)return;let e=v5.getIsolationScope(),t=e.getRequestSession();t&&t.status&&(this._incrementSessionStatusCount(t.status,new Date),e.setRequestSession(void 0))}_incrementSessionStatusCount(e,t){let r=new Date(t).setSeconds(0,0);this._pendingAggregates[r]=this._pendingAggregates[r]||{};let n=this._pendingAggregates[r];switch(n.started||(n.started=new Date(r).toISOString()),e){case"errored":return n.errored=(n.errored||0)+1,n.errored;case"ok":return n.exited=(n.exited||0)+1,n.exited;default:return n.crashed=(n.crashed||0)+1,n.crashed}}};var v8={};Object.defineProperty(v8,"__esModule",{value:!0});let v9=hN,v7="7";function _e(e){let t=e.protocol?`${e.protocol}:`:"",r=e.port?`:${e.port}`:"";return`${t}//${e.host}${r}${e.path?`/${e.path}`:""}/api/`}v8.getEnvelopeEndpointWithUrlEncodedAuth=function(e,t,r){return t||`${function(e){return`${_e(e)}${e.projectId}/envelope/`}(e)}?${function(e,t){return v9.urlEncode({sentry_key:e.publicKey,sentry_version:v7,...t&&{sentry_client:`${t.name}/${t.version}`}})}(e,r)}`},v8.getReportDialogEndpoint=function(e,t){let r=v9.makeDsn(e);if(!r)return"";let n=`${_e(r)}embed/error-page/`,i=`dsn=${v9.dsnToString(r)}`;for(let e in t)if("dsn"!==e&&"onClose"!==e)if("user"===e){let e=t.user;if(!e)continue;e.name&&(i+=`&name=${encodeURIComponent(e.name)}`),e.email&&(i+=`&email=${encodeURIComponent(e.email)}`)}else i+=`&${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`;return`${n}?${i}`};var _t={},_r={};Object.defineProperty(_r,"__esModule",{value:!0});let _n=hN,_i=gA,_o=y6,_a=[];function _s(e,t,r){if(r[t.name])_o.DEBUG_BUILD&&_n.logger.log(`Integration skipped because it was already installed: ${t.name}`);else{if(r[t.name]=t,-1===_a.indexOf(t.name)&&"function"==typeof t.setupOnce&&(t.setupOnce(),_a.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),"function"==typeof t.preprocessEvent){let r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(t,n)=>r(t,n,e))}if("function"==typeof t.processEvent){let r=t.processEvent.bind(t),n=Object.assign((t,n)=>r(t,n,e),{id:t.name});e.addEventProcessor(n)}_o.DEBUG_BUILD&&_n.logger.log(`Integration installed: ${t.name}`)}}_r.addIntegration=function(e){let t=_i.getClient();t?t.addIntegration(e):_o.DEBUG_BUILD&&_n.logger.warn(`Cannot add integration "${e.name}" because no SDK Client is available.`)},_r.afterSetupIntegrations=function(e,t){for(let r of t)r&&r.afterAllSetup&&r.afterAllSetup(e)},_r.defineIntegration=function(e){return e},_r.getIntegrationsToSetup=function(e){let t=e.defaultIntegrations||[],r=e.integrations;t.forEach(e=>{e.isDefaultInstance=!0});let n=function(e){let t={};return e.forEach(e=>{let{name:r}=e,n=t[r];n&&!n.isDefaultInstance&&e.isDefaultInstance||(t[r]=e)}),Object.keys(t).map(e=>t[e])}(Array.isArray(r)?[...t,...r]:"function"==typeof r?_n.arrayify(r(t)):t),i=function(e,t){for(let r=0;r"Debug"===e.name);if(-1!==i){let[e]=n.splice(i,1);n.push(e)}return n},_r.installedIntegrations=_a,_r.setupIntegration=_s,_r.setupIntegrations=function(e,t){let r={};return t.forEach(t=>{t&&_s(e,t,r)}),r},Object.defineProperty(_t,"__esModule",{value:!0});let _u=hN,_c=v8,_l=gA,_f=y6,_d=bj,_h=_r,_p=gr,_m=bp,_y=bR,_g=vC,_b="Not capturing exception because it's already been captured.";function _v(e){return void 0===e.type}function __(e){return"transaction"===e.type}_t.BaseClient=class{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=_u.makeDsn(e.dsn):_f.DEBUG_BUILD&&_u.logger.warn("No DSN provided, client will not send events."),this._dsn){const t=_c.getEnvelopeEndpointWithUrlEncodedAuth(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}}captureException(e,t,r){let n=_u.uuid4();if(_u.checkOrSetAlreadyCaught(e))return _f.DEBUG_BUILD&&_u.logger.log(_b),n;let i={event_id:n,...t};return this._process(this.eventFromException(e,i).then(e=>this._captureEvent(e,i,r))),i.event_id}captureMessage(e,t,r,n){let i={event_id:_u.uuid4(),...r},o=_u.isParameterizedString(e)?e:String(e),a=_u.isPrimitive(e)?this.eventFromMessage(o,t,i):this.eventFromException(e,i);return this._process(a.then(e=>this._captureEvent(e,i,n))),i.event_id}captureEvent(e,t,r){let n=_u.uuid4();if(t&&t.originalException&&_u.checkOrSetAlreadyCaught(t.originalException))return _f.DEBUG_BUILD&&_u.logger.log(_b),n;let i={event_id:n,...t},o=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,i,o||r)),i.event_id}captureSession(e){"string"!=typeof e.release?_f.DEBUG_BUILD&&_u.logger.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),_p.updateSession(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){let t=this._transport;return t?(this.emit("flush"),this._isClientDoneProcessing(e).then(r=>t.flush(e).then(e=>r&&e))):_u.resolvedSyncPromise(!0)}close(e){return this.flush(e).then(e=>(this.getOptions().enabled=!1,this.emit("close"),e))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){let t=this._integrations[e.name];_h.setupIntegration(this,e,this._integrations),t||_h.afterSetupIntegrations(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let r=_d.createEventEnvelope(e,this._dsn,this._options._metadata,this._options.tunnel);for(let e of t.attachments||[])r=_u.addItemToEnvelope(r,_u.createAttachmentEnvelopeItem(e));let n=this.sendEnvelope(r);n&&n.then(t=>this.emit("afterSendEvent",e,t),null)}sendSession(e){let t=_d.createSessionEnvelope(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(t)}recordDroppedEvent(e,t,r){if(this._options.sendClientReports){let r=`${e}:${t}`;_f.DEBUG_BUILD&&_u.logger.log(`Adding outcome: "${r}"`),this._outcomes[r]=this._outcomes[r]+1||1}}on(e,t){this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(t)}emit(e,...t){this._hooks[e]&&this._hooks[e].forEach(e=>e(...t))}sendEnvelope(e){return this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport?this._transport.send(e).then(null,e=>(_f.DEBUG_BUILD&&_u.logger.error("Error while sending event:",e),e)):(_f.DEBUG_BUILD&&_u.logger.error("Transport disabled"),_u.resolvedSyncPromise({}))}_setupIntegrations(){let{integrations:e}=this._options;this._integrations=_h.setupIntegrations(this,e),_h.afterSetupIntegrations(this,e)}_updateSessionFromEvent(e,t){let r=!1,n=!1,i=t.exception&&t.exception.values;if(i)for(let e of(n=!0,i)){let t=e.mechanism;if(t&&!1===t.handled){r=!0;break}}let o="ok"===e.status;(o&&0===e.errors||o&&r)&&(_p.updateSession(e,{...r&&{status:"crashed"},errors:e.errors||Number(n||r)}),this.captureSession(e))}_isClientDoneProcessing(e){return new _u.SyncPromise(t=>{let r=0,n=setInterval(()=>{0==this._numProcessing?(clearInterval(n),t(!0)):(r+=1,e&&r>=e&&(clearInterval(n),t(!1)))},1)})}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,r,n=_l.getIsolationScope()){let i=this.getOptions(),o=Object.keys(this._integrations);return!t.integrations&&o.length>0&&(t.integrations=o),this.emit("preprocessEvent",e,t),e.type||n.setLastEventId(e.event_id||t.event_id),_g.prepareEvent(i,e,t,r,this,n).then(e=>{if(null===e)return e;let t={...n.getPropagationContext(),...r?r.getPropagationContext():void 0};if(!(e.contexts&&e.contexts.trace)&&t){let{traceId:r,spanId:n,parentSpanId:i,dsc:o}=t;e.contexts={trace:_u.dropUndefinedKeys({trace_id:r,span_id:n,parent_span_id:i}),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:o||_m.getDynamicSamplingContextFromClient(r,this),...e.sdkProcessingMetadata}}return e})}_captureEvent(e,t={},r){return this._processEvent(e,t,r).then(e=>e.event_id,e=>{if(_f.DEBUG_BUILD){let t=e;"log"===t.logLevel?_u.logger.log(t.message):_u.logger.warn(t)}})}_processEvent(e,t,r){let n=this.getOptions(),{sampleRate:i}=n,o=__(e),a=_v(e),s=e.type||"error",u=`before send for type \`${s}\``,c=void 0===i?void 0:_y.parseSampleRate(i);if(a&&"number"==typeof c&&Math.random()>c)return this.recordDroppedEvent("sample_rate","error",e),_u.rejectedSyncPromise(new _u.SentryError(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));let l="replay_event"===s?"replay":s,f=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,t,r,f).then(r=>{if(null===r)throw this.recordDroppedEvent("event_processor",l,e),new _u.SentryError("An event processor returned `null`, will not send event.","log");return t.data&&!0===t.data.__sentry__?r:function(e,t){let r=`${t} must return \`null\` or a valid event.`;if(_u.isThenable(e))return e.then(e=>{if(!_u.isPlainObject(e)&&null!==e)throw new _u.SentryError(r);return e},e=>{throw new _u.SentryError(`${t} rejected with ${e}`)});if(!_u.isPlainObject(e)&&null!==e)throw new _u.SentryError(r);return e}(function(e,t,r){let{beforeSend:n,beforeSendTransaction:i,beforeSendSpan:o}=e;if(_v(t)&&n)return n(t,r);if(__(t)){if(t.spans&&o){let e=[];for(let r of t.spans){let t=o(r);t&&e.push(t)}t.spans=e}if(i)return i(t,r)}return t}(n,r,t),u)}).then(n=>{if(null===n)throw this.recordDroppedEvent("before_send",l,e),new _u.SentryError(`${u} returned \`null\`, will not send event.`,"log");let i=r&&r.getSession();!o&&i&&this._updateSessionFromEvent(i,n);let a=n.transaction_info;if(o&&a&&n.transaction!==e.transaction){let e="custom";n.transaction_info={...a,source:e}}return this.sendEvent(n,t),n}).then(null,e=>{if(e instanceof _u.SentryError)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new _u.SentryError(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. +Reason: ${e}`)})}_process(e){this._numProcessing++,e.then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e))}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.keys(e).map(t=>{let[r,n]=t.split(":");return{reason:r,category:n,quantity:e[t]}})}};var _S={},_E={};Object.defineProperty(_E,"__esModule",{value:!0});let _w=hN;_E.createCheckInEnvelope=function(e,t,r,n,i){let o={sent_at:(new Date).toISOString()};r&&r.sdk&&(o.sdk={name:r.sdk.name,version:r.sdk.version}),n&&i&&(o.dsn=_w.dsnToString(i)),t&&(o.trace=_w.dropUndefinedKeys(t));let a=function(e){return[{type:"check_in"},e]}(e);return _w.createEnvelope(o,[a])},Object.defineProperty(_S,"__esModule",{value:!0});let _T=hN,_x=_t,_A=_E,_O=gA,_M=y6,_R=v3,_C=hI,_I=go,_N=y3,_P=bp;class _k extends _x.BaseClient{constructor(e){_C.registerSpanErrorInstrumentation(),super(e)}eventFromException(e,t){return _T.resolvedSyncPromise(_T.eventFromUnknownInput(this,this._options.stackParser,e,t))}eventFromMessage(e,t="info",r){return _T.resolvedSyncPromise(_T.eventFromMessage(this._options.stackParser,e,t,r,this._options.attachStacktrace))}captureException(e,t,r){if(this._options.autoSessionTracking&&this._sessionFlusher){let e=_O.getIsolationScope().getRequestSession();e&&"ok"===e.status&&(e.status="errored")}return super.captureException(e,t,r)}captureEvent(e,t,r){if(this._options.autoSessionTracking&&this._sessionFlusher&&"exception"===(e.type||"exception")&&e.exception&&e.exception.values&&e.exception.values.length>0){let e=_O.getIsolationScope().getRequestSession();e&&"ok"===e.status&&(e.status="errored")}return super.captureEvent(e,t,r)}close(e){return this._sessionFlusher&&this._sessionFlusher.close(),super.close(e)}initSessionFlusher(){let{release:e,environment:t}=this._options;e?this._sessionFlusher=new _R.SessionFlusher(this,{release:e,environment:t}):_M.DEBUG_BUILD&&_T.logger.warn("Cannot initialise an instance of SessionFlusher if no release is provided!")}captureCheckIn(e,t,r){let n="checkInId"in e&&e.checkInId?e.checkInId:_T.uuid4();if(!this._isEnabled())return _M.DEBUG_BUILD&&_T.logger.warn("SDK not enabled, will not capture checkin."),n;let{release:i,environment:o,tunnel:a}=this.getOptions(),s={check_in_id:n,monitor_slug:e.monitorSlug,status:e.status,release:i,environment:o};"duration"in e&&(s.duration=e.duration),t&&(s.monitor_config={schedule:t.schedule,checkin_margin:t.checkinMargin,max_runtime:t.maxRuntime,timezone:t.timezone,failure_issue_threshold:t.failureIssueThreshold,recovery_threshold:t.recoveryThreshold});let[u,c]=this._getTraceInfoFromScope(r);c&&(s.contexts={trace:c});let l=_A.createCheckInEnvelope(s,u,this.getSdkMetadata(),a,this.getDsn());return _M.DEBUG_BUILD&&_T.logger.info("Sending checkin:",e.monitorSlug,e.status),this.sendEnvelope(l),n}_captureRequestSession(){this._sessionFlusher?this._sessionFlusher.incrementSessionStatusCount():_M.DEBUG_BUILD&&_T.logger.warn("Discarded request mode session because autoSessionTracking option was disabled")}_prepareEvent(e,t,r,n){return this._options.platform&&(e.platform=e.platform||this._options.platform),this._options.runtime&&(e.contexts={...e.contexts,runtime:(e.contexts||{}).runtime||this._options.runtime}),this._options.serverName&&(e.server_name=e.server_name||this._options.serverName),super._prepareEvent(e,t,r,n)}_getTraceInfoFromScope(e){if(!e)return[void 0,void 0];let t=_I._getSpanForScope(e);if(t){let e=_N.getRootSpan(t);return[_P.getDynamicSamplingContextFromSpan(e),_N.spanToTraceContext(e)]}let{traceId:r,spanId:n,parentSpanId:i,dsc:o}=e.getPropagationContext(),a={trace_id:r,span_id:n,parent_span_id:i};return o?[o,a]:[_P.getDynamicSamplingContextFromClient(r,this),a]}}_S.ServerRuntimeClient=_k;var _D={};Object.defineProperty(_D,"__esModule",{value:!0});let _L=hN,_j=gA,_U=y6;function _B(e){_j.getCurrentScope().setClient(e)}_D.initAndBind=function(e,t){!0===t.debug&&(_U.DEBUG_BUILD?_L.logger.enable():_L.consoleSandbox(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),_j.getCurrentScope().update(t.initialScope);let r=new e(t);_B(r),r.init()},_D.setCurrentClient=_B;var _F={};Object.defineProperty(_F,"__esModule",{value:!0});let _z=hN,_$=y6;function _V(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}_F.DEFAULT_TRANSPORT_BUFFER_SIZE=64,_F.createTransport=function(e,t,r=_z.makePromiseBuffer(e.bufferSize||64)){let n={};return{send:function(i){let o=[];if(_z.forEachEnvelopeItem(i,(t,r)=>{let i=_z.envelopeItemTypeToDataCategory(r);if(_z.isRateLimited(n,i)){let n=_V(t,r);e.recordDroppedEvent("ratelimit_backoff",i,n)}else o.push(t)}),0===o.length)return _z.resolvedSyncPromise({});let a=_z.createEnvelope(i[0],o),s=t=>{_z.forEachEnvelopeItem(a,(r,n)=>{let i=_V(r,n);e.recordDroppedEvent(t,_z.envelopeItemTypeToDataCategory(n),i)})};return r.add(()=>t({body:_z.serializeEnvelope(a)}).then(e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&_$.DEBUG_BUILD&&_z.logger.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),n=_z.updateRateLimits(n,e),e),e=>{throw s("network_error"),e})).then(e=>e,e=>{if(e instanceof _z.SentryError)return _$.DEBUG_BUILD&&_z.logger.error("Skipped sending event because buffer is full."),s("queue_overflow"),_z.resolvedSyncPromise({});throw e})},flush:e=>r.drain(e)}};var _Y={};Object.defineProperty(_Y,"__esModule",{value:!0});let _q=hN,_H=y6,_W=5e3;_Y.MIN_DELAY=100,_Y.START_DELAY=_W,_Y.makeOfflineTransport=function(e){function t(...e){_H.DEBUG_BUILD&&_q.logger.info("[Offline]:",...e)}return r=>{let n=e(r);if(!r.createStore)throw Error("No `createStore` function was provided");let i=r.createStore(r),o,a=_W;function s(e){o&&clearTimeout(o),"number"!=typeof(o=setTimeout(async()=>{o=void 0;let e=await i.shift();e&&(t("Attempting to send previously queued event"),e[0].sent_at=(new Date).toISOString(),c(e,!0).catch(e=>{t("Failed to retry sending",e)}))},e))&&o.unref&&o.unref()}function u(){o||(s(a),a=Math.min(2*a,36e5))}async function c(e,o=!1){if(!o&&_q.envelopeContainsItemType(e,["replay_event","replay_recording"]))return await i.push(e),s(100),{};try{let t=await n.send(e),r=100;if(t){if(t.headers&&t.headers["retry-after"])r=_q.parseRetryAfterHeader(t.headers["retry-after"]);else if(t.headers&&t.headers["x-sentry-rate-limits"])r=6e4;else if((t.statusCode||0)>=400)return t}return s(r),a=_W,t}catch(n){if(await function(e,t,n){return!_q.envelopeContainsItemType(e,["client_report"])&&(!r.shouldStore||r.shouldStore(e,t,n))}(e,n,a))return o?await i.unshift(e):await i.push(e),u(),t("Error sending. Event queued.",n),{};throw n}}return r.flushAtStartup&&u(),{send:c,flush:e=>n.flush(e)}}};var _G={};Object.defineProperty(_G,"__esModule",{value:!0});let _Z=hN,_K=v8;function _X(e,t){let r;return _Z.forEachEnvelopeItem(e,(e,n)=>(t.includes(n)&&(r=Array.isArray(e)?e[1]:void 0),!!r)),r}_G.eventFromEnvelope=_X,_G.makeMultiplexedTransport=function(e,t){return r=>{let n=e(r),i=new Map;function o(t,n){let o=n?`${t}:${n}`:t,a=i.get(o);if(!a){let s=_Z.dsnFromString(t);if(!s)return;let u=_K.getEnvelopeEndpointWithUrlEncodedAuth(s,r.tunnel);a=n?(function(e,t){return r=>{let n=e(r);return{...n,send:async e=>{let r=_X(e,["event","transaction","profile","replay_event"]);return r&&(r.release=t),n.send(e)}}}})(e,n)({...r,url:u}):e({...r,url:u}),i.set(o,a)}return[t,a]}return{send:async function(e){let r=t({envelope:e,getEvent:function(t){return _X(e,t&&t.length?t:["event"])}}).map(e=>"string"==typeof e?o(e,void 0):o(e.dsn,e.release)).filter(e=>!!e);return 0===r.length&&r.push(["",n]),(await Promise.all(r.map(([t,r])=>r.send(function(e,t){return _Z.createEnvelope(t?{...e[0],dsn:t}:e[0],e[1])}(e,t)))))[0]},flush:async function(e){let t=[...i.values(),n];return(await Promise.all(t.map(t=>t.flush(e)))).every(e=>e)}}}};var _J={};function _Q(e){return"/"===e[e.length-1]?e.slice(0,-1):e}Object.defineProperty(_J,"__esModule",{value:!0}),_J.isSentryRequestUrl=function(e,t){let r=t&&t.getDsn(),n=t&&t.getOptions().tunnel;return function(e,t){return!!t&&e.includes(t.host)}(e,r)||function(e,t){return!!t&&_Q(e)===_Q(t)}(e,n)};var _0={};Object.defineProperty(_0,"__esModule",{value:!0}),_0.parameterize=function(e,...t){let r=new String(String.raw(e,...t));return r.__sentry_template_string__=e.join("\0").replace(/%/g,"%%").replace(/\0/g,"%s"),r.__sentry_template_values__=t,r};var _1={};Object.defineProperty(_1,"__esModule",{value:!0});let _2=hN;_1.applySdkMetadata=function(e,t,r=[t],n="npm"){let i=e._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${t}`,packages:r.map(e=>({name:`${n}:@sentry/${e}`,version:_2.SDK_VERSION})),version:_2.SDK_VERSION}),e._metadata=i};var _6={};Object.defineProperty(_6,"__esModule",{value:!0});let _3=hN,_4=gA,_5=100;_6.addBreadcrumb=function(e,t){let r=_4.getClient(),n=_4.getIsolationScope();if(!r)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:o=_5}=r.getOptions();if(o<=0)return;let a={timestamp:_3.dateTimestampInSeconds(),...e},s=i?_3.consoleSandbox(()=>i(a,t)):a;null!==s&&(r.emit&&r.emit("beforeAddBreadcrumb",s,t),n.addBreadcrumb(s,o))};var _8={};Object.defineProperty(_8,"__esModule",{value:!0});let _9=hN,_7=gA,Se=_r,St=new WeakMap;_8.functionToStringIntegration=Se.defineIntegration(()=>({name:"FunctionToString",setupOnce(){e=Function.prototype.toString;try{Function.prototype.toString=function(...t){let r=_9.getOriginalFunction(this),n=St.has(_7.getClient())&&void 0!==r?r:this;return e.apply(n,t)}}catch(e){}},setup(e){St.set(e,!0)}}));var Sr={};Object.defineProperty(Sr,"__esModule",{value:!0});let Sn=hN,Si=y6,So=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/];function Sa(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch(e){}return t?function(e=[]){for(let t=e.length-1;t>=0;t--){let r=e[t];if(r&&""!==r.filename&&"[native code]"!==r.filename)return r.filename||null}return null}(t):null}catch(t){return Si.DEBUG_BUILD&&Sn.logger.error(`Cannot extract url for event ${Sn.getEventDescription(e)}`),null}}Sr.inboundFiltersIntegration=_r.defineIntegration((e={})=>({name:"InboundFilters",processEvent:(t,r,n)=>!function(e,t){return t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(e)?(Si.DEBUG_BUILD&&Sn.logger.warn(`Event dropped due to being internal Sentry Error. +Event: ${Sn.getEventDescription(e)}`),!0):!function(e,t){return!e.type&&!!t&&!!t.length&&(function(e){let t,r=[];e.message&&r.push(e.message);try{t=e.exception.values[e.exception.values.length-1]}catch(e){}return t&&t.value&&(r.push(t.value),t.type&&r.push(`${t.type}: ${t.value}`)),r})(e).some(e=>Sn.stringMatchesSomePattern(e,t))}(e,t.ignoreErrors)?!function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;let r=e.transaction;return!!r&&Sn.stringMatchesSomePattern(r,t)}(e,t.ignoreTransactions)?!function(e,t){if(!t||!t.length)return!1;let r=Sa(e);return!!r&&Sn.stringMatchesSomePattern(r,t)}(e,t.denyUrls)?!function(e,t){if(!t||!t.length)return!0;let r=Sa(e);return!r||Sn.stringMatchesSomePattern(r,t)}(e,t.allowUrls)&&(Si.DEBUG_BUILD&&Sn.logger.warn(`Event dropped due to not being matched by \`allowUrls\` option. +Event: ${Sn.getEventDescription(e)}. +Url: ${Sa(e)}`),!0):(Si.DEBUG_BUILD&&Sn.logger.warn(`Event dropped due to being matched by \`denyUrls\` option. +Event: ${Sn.getEventDescription(e)}. +Url: ${Sa(e)}`),!0):(Si.DEBUG_BUILD&&Sn.logger.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. +Event: ${Sn.getEventDescription(e)}`),!0):(Si.DEBUG_BUILD&&Sn.logger.warn(`Event dropped due to being matched by \`ignoreErrors\` option. +Event: ${Sn.getEventDescription(e)}`),!0)}(t,function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:So],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(e,n.getOptions()))?t:null}));var Ss={};Object.defineProperty(Ss,"__esModule",{value:!0});let Su=hN;Ss.linkedErrorsIntegration=_r.defineIntegration((e={})=>{let t=e.limit||5,r=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,n,i){let o=i.getOptions();Su.applyAggregateErrorsToEvent(Su.exceptionFromError,o.stackParser,o.maxValueLength,r,t,e,n)}}});var Sc={},Sl={};Object.defineProperty(Sl,"__esModule",{value:!0});let Sf=hN,Sd=new Map,Sh=new Set;function Sp(e,t){return function(e){if(Sf.GLOBAL_OBJ._sentryModuleMetadata)for(let t of Object.keys(Sf.GLOBAL_OBJ._sentryModuleMetadata)){let r=Sf.GLOBAL_OBJ._sentryModuleMetadata[t];if(!Sh.has(t)){for(let n of(Sh.add(t),e(t).reverse()))if(n.filename){Sd.set(n.filename,r);break}}}}(e),Sd.get(t)}Sl.addMetadataToStackFrames=function(e,t){try{t.exception.values.forEach(t=>{if(t.stacktrace)for(let r of t.stacktrace.frames||[]){if(!r.filename)continue;let t=Sp(e,r.filename);t&&(r.module_metadata=t)}})}catch(e){}},Sl.getMetadataForUrl=Sp,Sl.stripMetadataFromStackFrames=function(e){try{e.exception.values.forEach(e=>{if(e.stacktrace)for(let t of e.stacktrace.frames||[])delete t.module_metadata})}catch(e){}},Object.defineProperty(Sc,"__esModule",{value:!0});let Sm=hN,Sy=Sl;Sc.moduleMetadataIntegration=_r.defineIntegration(()=>({name:"ModuleMetadata",setup(e){e.on("beforeEnvelope",e=>{Sm.forEachEnvelopeItem(e,(e,t)=>{if("event"===t){let t=Array.isArray(e)?e[1]:void 0;t&&(Sy.stripMetadataFromStackFrames(t),e[1]=t)}})})},processEvent(e,t,r){let n=r.getOptions().stackParser;return Sy.addMetadataToStackFrames(n,e),e}}));var Sg={};Object.defineProperty(Sg,"__esModule",{value:!0});let Sb=hN,Sv={include:{cookies:!0,data:!0,headers:!0,ip:!1,query_string:!0,url:!0,user:{id:!0,username:!0,email:!0}},transactionNamingScheme:"methodPath"};Sg.requestDataIntegration=_r.defineIntegration((e={})=>{let t={...Sv,...e,include:{...Sv.include,...e.include,user:e.include&&"boolean"==typeof e.include.user?e.include.user:{...Sv.include.user,...(e.include||{}).user}}};return{name:"RequestData",processEvent(e){let{sdkProcessingMetadata:r={}}=e,n=r.request;if(!n)return e;let i=function(e){let t,{transactionNamingScheme:r,include:{ip:n,user:i,...o}}=e,a=["method"];for(let[e,t]of Object.entries(o))t&&a.push(e);if(void 0===i)t=!0;else if("boolean"==typeof i)t=i;else{let e=[];for(let[t,r]of Object.entries(i))r&&e.push(t);t=e}return{include:{ip:n,user:t,request:0!==a.length?a:void 0,transaction:r}}}(t);return Sb.addRequestDataToEvent(e,n,i)}}});var S_={};Object.defineProperty(S_,"__esModule",{value:!0});let SS=hN,SE=gA,Sw=vR;S_.captureConsoleIntegration=_r.defineIntegration((e={})=>{let t=e.levels||SS.CONSOLE_LEVELS;return{name:"CaptureConsole",setup(e){"console"in SS.GLOBAL_OBJ&&SS.addConsoleInstrumentationHandler(({args:r,level:n})=>{SE.getClient()===e&&t.includes(n)&&function(e,t){let r={level:SS.severityLevelFromString(t),extra:{arguments:e}};SE.withScope(n=>{if(n.addEventProcessor(e=>(e.logger="console",SS.addExceptionMechanism(e,{handled:!1,type:"console"}),e)),"assert"===t){if(!e[0]){let t=`Assertion failed: ${SS.safeJoin(e.slice(1)," ")||"console.assert"}`;n.setExtra("arguments",e.slice(1)),Sw.captureMessage(t,r)}return}let i=e.find(e=>e instanceof Error);if(i)return void Sw.captureException(i,r);let o=SS.safeJoin(e," ");Sw.captureMessage(o,r)})}(r,n)})}}});var ST={};Object.defineProperty(ST,"__esModule",{value:!0});let Sx=hN;ST.debugIntegration=_r.defineIntegration((e={})=>{let t={debugger:!1,stringify:!1,...e};return{name:"Debug",setup(e){e.on("beforeSendEvent",(e,r)=>{t.debugger,Sx.consoleSandbox(()=>{t.stringify?(console.log(JSON.stringify(e,null,2)),r&&Object.keys(r).length&&console.log(JSON.stringify(r,null,2))):(console.log(e),r&&Object.keys(r).length&&console.log(r))})})}}});var SA={};Object.defineProperty(SA,"__esModule",{value:!0});let SO=hN,SM=y6,SR=_r.defineIntegration(()=>{let e;return{name:"Dedupe",processEvent(t){if(t.type)return t;try{if(SC(t,e))return SM.DEBUG_BUILD&&SO.logger.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){}return e=t}}});function SC(e,t){return!!t&&(!!function(e,t){let r=e.message,n=t.message;return(!!r||!!n)&&(!r||!!n)&&(!!r||!n)&&r===n&&!!SN(e,t)&&!!SI(e,t)&&!0}(e,t)||!!function(e,t){let r=SP(t),n=SP(e);return!!r&&!!n&&r.type===n.type&&r.value===n.value&&!!SN(e,t)&&!!SI(e,t)}(e,t))}function SI(e,t){let r=Sk(e),n=Sk(t);if(!r&&!n)return!0;if(r&&!n||!r&&n||n.length!==r.length)return!1;for(let e=0;e{let{depth:t=3,captureErrorCause:r=!0}=e;return{name:"ExtraErrorData",processEvent:(e,n)=>(function(e,t={},r,n){if(!t.originalException||!SL.isError(t.originalException))return e;let i=t.originalException.name||t.originalException.constructor.name,o=function(e,t){try{let r=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],n={};for(let t of Object.keys(e)){if(-1!==r.indexOf(t))continue;let i=e[t];n[t]=SL.isError(i)?i.toString():i}if(t&&void 0!==e.cause&&(n.cause=SL.isError(e.cause)?e.cause.toString():e.cause),"function"==typeof e.toJSON){let t=e.toJSON();for(let e of Object.keys(t)){let r=t[e];n[e]=SL.isError(r)?r.toString():r}}return n}catch(e){Sj.DEBUG_BUILD&&SL.logger.error("Unable to extract extra data from the Error object:",e)}return null}(t.originalException,n);if(o){let t={...e.contexts},n=SL.normalize(o,r);return SL.isPlainObject(n)&&(SL.addNonEnumerableProperty(n,"__sentry_skip_normalization__",!0),t[i]=n),{...e,contexts:t}}return e})(e,n,t,r)}});var SU={};Object.defineProperty(SU,"__esModule",{value:!0});let SB=hN,SF=_r.defineIntegration((e={})=>{let t=e.root,r=e.prefix||"app:///",n="window"in SB.GLOBAL_OBJ&&void 0!==SB.GLOBAL_OBJ.window,i=e.iteratee||Sz({isBrowser:n,root:t,prefix:r});function o(e){return{...e,frames:e&&e.frames&&e.frames.map(e=>i(e))}}return{name:"RewriteFrames",processEvent(e){let t=e;return e.exception&&Array.isArray(e.exception.values)&&(t=function(e){try{return{...e,exception:{...e.exception,values:e.exception.values.map(e=>({...e,...e.stacktrace&&{stacktrace:o(e.stacktrace)}}))}}}catch(t){return e}}(t)),t}}});function Sz({isBrowser:e,root:t,prefix:r}){return n=>{if(!n.filename)return n;let i=/^[a-zA-Z]:\\/.test(n.filename)||n.filename.includes("\\")&&!n.filename.includes("/"),o=/^\//.test(n.filename);if(e){if(t){let e=n.filename;0===e.indexOf(t)&&(n.filename=e.replace(t,r))}}else if(i||o){let e=i?n.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):n.filename,o=t?SB.relative(t,e):SB.basename(e);n.filename=`${r}${o}`}return n}}SU.generateIteratee=Sz,SU.rewriteFramesIntegration=SF;var S$={};Object.defineProperty(S$,"__esModule",{value:!0});let SV=hN;S$.sessionTimingIntegration=_r.defineIntegration(()=>{let e=1e3*SV.timestampInSeconds();return{name:"SessionTiming",processEvent(t){let r=1e3*SV.timestampInSeconds();return{...t,extra:{...t.extra,"session:start":e,"session:duration":r-e,"session:end":r}}}}});var SY={};Object.defineProperty(SY,"__esModule",{value:!0});let Sq=hN;function SH(e){return{...e,path:"path"in e&&Array.isArray(e.path)?e.path.join("."):void 0,keys:"keys"in e?JSON.stringify(e.keys):void 0,unionErrors:"unionErrors"in e?JSON.stringify(e.unionErrors):void 0}}function SW(e){let t=new Set;for(let r of e.issues)r.path&&t.add(r.path[0]);let r=Array.from(t);return`Failed to validate keys: ${Sq.truncate(r.join(", "),100)}`}function SG(e,t,r){var n;return t.exception&&t.exception.values&&r&&r.originalException&&(n=r.originalException,Sq.isError(n)&&"ZodError"===n.name&&Array.isArray(n.errors))&&0!==r.originalException.issues.length?{...t,exception:{...t.exception,values:[{...t.exception.values[0],value:SW(r.originalException)},...t.exception.values.slice(1)]},extra:{...t.extra,"zoderror.issues":r.originalException.errors.slice(0,e).map(SH)}}:t}let SZ=_r.defineIntegration((e={})=>{let t=e.limit||10;return{name:"ZodErrors",processEvent:(e,r)=>SG(t,e,r)}});SY.applyZodErrorsToEvent=SG,SY.zodErrorsIntegration=SZ;var SK={},SX={};Object.defineProperty(SX,"__esModule",{value:!0}),SX.COUNTER_METRIC_TYPE="c",SX.DEFAULT_BROWSER_FLUSH_INTERVAL=5e3,SX.DEFAULT_FLUSH_INTERVAL=1e4,SX.DISTRIBUTION_METRIC_TYPE="d",SX.GAUGE_METRIC_TYPE="g",SX.MAX_WEIGHT=1e4,SX.SET_METRIC_TYPE="s",Object.defineProperty(SK,"__esModule",{value:!0});let SJ=hN,SQ=gA,S0=y6,S1=y3,S2=bf,S6=bd,S3=SX;function S4(e,t){let r=SJ.getGlobalSingleton("globalMetricsAggregators",()=>new WeakMap),n=r.get(e);if(n)return n;let i=new t(e);return e.on("flush",()=>i.flush()),e.on("close",()=>i.close()),r.set(e,i),i}function S5(e,t,r,n,i={}){let o=i.client||SQ.getClient();if(!o)return;let a=S1.getActiveSpan(),s=a?S1.getRootSpan(a):void 0,u=s&&S1.spanToJSON(s).description,{unit:c,tags:l,timestamp:f}=i,{release:d,environment:h}=o.getOptions(),p={};d&&(p.release=d),h&&(p.environment=h),u&&(p.transaction=u),S0.DEBUG_BUILD&&SJ.logger.log(`Adding value of ${n} to ${t} metric ${r}`),S4(o,e).add(t,r,n,c,{...p,...l},f)}function S8(e,t,r,n){S5(e,S3.DISTRIBUTION_METRIC_TYPE,t,S9(r),n)}function S9(e){return"string"==typeof e?parseInt(e):e}SK.metrics={increment:function(e,t,r=1,n){S5(e,S3.COUNTER_METRIC_TYPE,t,S9(r),n)},distribution:S8,set:function(e,t,r,n){S5(e,S3.SET_METRIC_TYPE,t,r,n)},gauge:function(e,t,r,n){S5(e,S3.GAUGE_METRIC_TYPE,t,S9(r),n)},timing:function(e,t,r,n="second",i){if("function"==typeof r){let n=SJ.timestampInSeconds();return S2.startSpanManual({op:"metrics.timing",name:t,startTime:n,onlyIfParent:!0},o=>S6.handleCallbackErrors(()=>r(),()=>{},()=>{let r=SJ.timestampInSeconds();S8(e,t,r-n,{...i,unit:"second"}),o.end(r)}))}S8(e,t,r,{...i,unit:n})},getMetricsAggregatorForClient:S4};var S7={},Ee={},Et={},Er={};Object.defineProperty(Er,"__esModule",{value:!0});let En=hN;function Ei(e){return e.replace(/[^\w\-./]+/gi,"")}let Eo=[["\n","\\n"],["\r","\\r"],[" ","\\t"],["\\","\\\\"],["|","\\u{7c}"],[",","\\u{2c}"]];function Ea(e){return[...e].reduce((e,t)=>e+function(e){for(let[t,r]of Eo)if(e===t)return r;return e}(t),"")}Er.getBucketKey=function(e,t,r,n){let i=Object.entries(En.dropUndefinedKeys(n)).sort((e,t)=>e[0].localeCompare(t[0]));return`${e}${t}${r}${i}`},Er.sanitizeMetricKey=function(e){return e.replace(/[^\w\-.]+/gi,"_")},Er.sanitizeTags=function(e){let t={};for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[Ei(r)]=Ea(String(e[r])));return t},Er.sanitizeUnit=function(e){return e.replace(/[^\w]+/gi,"_")},Er.serializeMetricBuckets=function(e){let t="";for(let r of e){let e=Object.entries(r.tags),n=e.length>0?`|#${e.map(([e,t])=>`${e}:${t}`).join(",")}`:"";t+=`${r.name}@${r.unit}:${r.metric}|${r.metricType}${n}|T${r.timestamp} +`}return t},Er.simpleHash=function(e){let t=0;for(let r=0;r>>0},Object.defineProperty(Et,"__esModule",{value:!0});let Es=hN,Eu=Er;function Ec(e,t,r,n){let i={sent_at:(new Date).toISOString()};r&&r.sdk&&(i.sdk={name:r.sdk.name,version:r.sdk.version}),n&&t&&(i.dsn=Es.dsnToString(t));let o=function(e){let t=Eu.serializeMetricBuckets(e);return[{type:"statsd",length:t.length},t]}(e);return Es.createEnvelope(i,[o])}Et.captureAggregateMetrics=function(e,t){Es.logger.log(`Flushing aggregated metrics, number of metrics: ${t.length}`);let r=Ec(t,e.getDsn(),e.getSdkMetadata(),e.getOptions().tunnel);e.sendEnvelope(r)},Et.createMetricEnvelope=Ec;var El={};Object.defineProperty(El,"__esModule",{value:!0});let Ef=SX,Ed=Er;class Eh{constructor(e){this._value=e}get weight(){return 1}add(e){this._value+=e}toString(){return`${this._value}`}}class Ep{constructor(e){this._last=e,this._min=e,this._max=e,this._sum=e,this._count=1}get weight(){return 5}add(e){this._last=e,ethis._max&&(this._max=e),this._sum+=e,this._count++}toString(){return`${this._last}:${this._min}:${this._max}:${this._sum}:${this._count}`}}class Em{constructor(e){this._value=[e]}get weight(){return this._value.length}add(e){this._value.push(e)}toString(){return this._value.join(":")}}class Ey{constructor(e){this.first=e,this._value=new Set([e])}get weight(){return this._value.size}add(e){this._value.add(e)}toString(){return Array.from(this._value).map(e=>"string"==typeof e?Ed.simpleHash(e):e).join(":")}}let Eg={[Ef.COUNTER_METRIC_TYPE]:Eh,[Ef.GAUGE_METRIC_TYPE]:Ep,[Ef.DISTRIBUTION_METRIC_TYPE]:Em,[Ef.SET_METRIC_TYPE]:Ey};El.CounterMetric=Eh,El.DistributionMetric=Em,El.GaugeMetric=Ep,El.METRIC_MAP=Eg,El.SetMetric=Ey,Object.defineProperty(Ee,"__esModule",{value:!0});let Eb=hN,Ev=y3,E_=SX,ES=Et,EE=El,Ew=Er;Ee.MetricsAggregator=class{constructor(e){this._client=e,this._buckets=new Map,this._bucketsTotalWeight=0,this._interval=setInterval(()=>this._flush(),E_.DEFAULT_FLUSH_INTERVAL),this._interval.unref&&this._interval.unref(),this._flushShift=Math.floor(Math.random()*E_.DEFAULT_FLUSH_INTERVAL/1e3),this._forceFlush=!1}add(e,t,r,n="none",i={},o=Eb.timestampInSeconds()){let a=Math.floor(o),s=Ew.sanitizeMetricKey(t),u=Ew.sanitizeTags(i),c=Ew.sanitizeUnit(n),l=Ew.getBucketKey(e,s,c,u),f=this._buckets.get(l),d=f&&e===E_.SET_METRIC_TYPE?f.metric.weight:0;f?(f.metric.add(r),f.timestamp=E_.MAX_WEIGHT&&this.flush()}flush(){this._forceFlush=!0,this._flush()}close(){this._forceFlush=!0,clearInterval(this._interval),this._flush()}_flush(){if(this._forceFlush)return this._forceFlush=!1,this._bucketsTotalWeight=0,this._captureMetrics(this._buckets),void this._buckets.clear();let e=Math.floor(Eb.timestampInSeconds())-E_.DEFAULT_FLUSH_INTERVAL/1e3-this._flushShift,t=new Map;for(let[r,n]of this._buckets)n.timestamp<=e&&(t.set(r,n),this._bucketsTotalWeight-=n.metric.weight);for(let[e]of t)this._buckets.delete(e);this._captureMetrics(t)}_captureMetrics(e){if(e.size>0){let t=Array.from(e).map(([,e])=>e);ES.captureAggregateMetrics(this._client,t)}}},Object.defineProperty(S7,"__esModule",{value:!0});let ET=Ee,Ex=SK;S7.metricsDefault={increment:function(e,t=1,r){Ex.metrics.increment(ET.MetricsAggregator,e,t,r)},distribution:function(e,t,r){Ex.metrics.distribution(ET.MetricsAggregator,e,t,r)},set:function(e,t,r){Ex.metrics.set(ET.MetricsAggregator,e,t,r)},gauge:function(e,t,r){Ex.metrics.gauge(ET.MetricsAggregator,e,t,r)},timing:function(e,t,r="second",n){return Ex.metrics.timing(ET.MetricsAggregator,e,t,r,n)},getMetricsAggregatorForClient:function(e){return Ex.metrics.getMetricsAggregatorForClient(e,ET.MetricsAggregator)}};var EA={};Object.defineProperty(EA,"__esModule",{value:!0});let EO=hN,EM=y3,ER=SX,EC=Et,EI=El,EN=Er;EA.BrowserMetricsAggregator=class{constructor(e){this._client=e,this._buckets=new Map,this._interval=setInterval(()=>this.flush(),ER.DEFAULT_BROWSER_FLUSH_INTERVAL)}add(e,t,r,n="none",i={},o=EO.timestampInSeconds()){let a=Math.floor(o),s=EN.sanitizeMetricKey(t),u=EN.sanitizeTags(i),c=EN.sanitizeUnit(n),l=EN.getBucketKey(e,s,c,u),f=this._buckets.get(l),d=f&&e===ER.SET_METRIC_TYPE?f.metric.weight:0;f?(f.metric.add(r),f.timestamptypeof Request&&Ek.isInstanceOf(e,Request)?e.headers:void 0);if(f){if("u">typeof Headers&&Ek.isInstanceOf(f,Headers)){let e=new Headers(f);return e.append("sentry-trace",c),l&&e.append(Ek.BAGGAGE_HEADER_NAME,l),e}if(Array.isArray(f)){let e=[...f,["sentry-trace",c]];return l&&e.push([Ek.BAGGAGE_HEADER_NAME,l]),e}{let e="baggage"in f?f.baggage:void 0,t=[];return Array.isArray(e)?t.push(...e):e&&t.push(e),l&&t.push(l),{...f,"sentry-trace":c,baggage:t.length>0?t.join(","):void 0}}}return{"sentry-trace":c,baggage:l}}EP.addTracingHeadersToFetchRequest=EV,EP.instrumentFetchRequest=function(e,t,r,n,i="auto.http.browser"){if(!e.fetchData)return;let o=Ej.hasTracingEnabled()&&t(e.fetchData.url);if(e.endTimestamp&&o){let t=e.fetchData.__span;if(!t)return;let r=n[t];return void(r&&(!function(e,t){if(t.response){EF.setHttpStatus(e,t.response.status);let r=t.response&&t.response.headers&&t.response.headers.get("content-length");if(r){let t=parseInt(r);t>0&&e.setAttribute("http.response_content_length",t)}}else t.error&&e.setStatus({code:EF.SPAN_STATUS_ERROR,message:"internal_error"});e.end()}(r,e),delete n[t]))}let a=ED.getCurrentScope(),s=ED.getClient(),{method:u,url:c}=e.fetchData,l=function(e){try{return new URL(e).href}catch(e){return}}(c),f=l?Ek.parseUrl(l).host:void 0,d=!!EU.getActiveSpan(),h=o&&d?Ez.startInactiveSpan({name:`${u} ${c}`,attributes:{url:c,type:"fetch","http.method":u,"http.url":l,"server.address":f,[EL.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:i,[EL.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"http.client"}}):new EB.SentryNonRecordingSpan;if(e.fetchData.__span=h.spanContext().spanId,n[h.spanContext().spanId]=h,r(e.fetchData.url)&&s){let t=e.args[0];e.args[1]=e.args[1]||{};let r=e.args[1];r.headers=EV(t,s,a,r,Ej.hasTracingEnabled()&&d?h:void 0)}return h};var EY={};Object.defineProperty(EY,"__esModule",{value:!0});let Eq=hN,EH=gA,EW=vR,EG=gD,EZ=bf,EK={mechanism:{handled:!1,data:{function:"trpcMiddleware"}}};EY.trpcMiddleware=function(e={}){return function(t){let{path:r,type:n,next:i,rawInput:o}=t,a=EH.getClient(),s=a&&a.getOptions(),u={procedure_type:n};function c(e){"object"==typeof e&&null!==e&&"ok"in e&&!e.ok&&"error"in e&&EW.captureException(e.error,EK)}return(void 0!==e.attachRpcInput?e.attachRpcInput:s&&s.sendDefaultPii)&&(u.input=Eq.normalize(o)),EW.setContext("trpc",u),EZ.startSpanManual({name:`trpc/${r}`,op:"rpc.server",attributes:{[EG.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"route",[EG.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.rpc.trpc"}},e=>{let t;try{t=i()}catch(t){throw EW.captureException(t,EK),e.end(),t}return Eq.isThenable(t)?t.then(t=>(c(t),e.end(),t),t=>{throw EW.captureException(t,EK),e.end(),t}):(c(t),e.end(),t)})}};var EX={};Object.defineProperty(EX,"__esModule",{value:!0});let EJ=hN,EQ=gA;EX.captureFeedback=function(e,t={},r=EQ.getCurrentScope()){let{message:n,name:i,email:o,url:a,source:s,associatedEventId:u}=e,c={contexts:{feedback:EJ.dropUndefinedKeys({contact_email:o,name:i,message:n,url:a,source:s,associated_event_id:u})},type:"feedback",level:"info"},l=r&&r.getClient()||EQ.getClient();return l&&l.emit("beforeSendFeedback",c,t),r.captureEvent(c,t)};var E0={};Object.defineProperty(E0,"__esModule",{value:!0});let E1=_6,E2=gA,E6=vR;function E3(){return{bindClient(e){E2.getCurrentScope().setClient(e)},withScope:E2.withScope,getClient:()=>E2.getClient(),getScope:E2.getCurrentScope,getIsolationScope:E2.getIsolationScope,captureException:(e,t)=>E2.getCurrentScope().captureException(e,t),captureMessage:(e,t,r)=>E2.getCurrentScope().captureMessage(e,t,r),captureEvent:E6.captureEvent,addBreadcrumb:E1.addBreadcrumb,setUser:E6.setUser,setTags:E6.setTags,setTag:E6.setTag,setExtra:E6.setExtra,setExtras:E6.setExtras,setContext:E6.setContext,getIntegration(e){let t=E2.getClient();return t&&t.getIntegrationByName(e.id)||null},startSession:E6.startSession,endSession:E6.endSession,captureSession(e){if(e)return E6.endSession();!function(){let e=E2.getCurrentScope(),t=E2.getClient(),r=e.getSession();t&&r&&t.captureSession(r)}()}}}E0.getCurrentHub=E3,E0.getCurrentHubShim=E3,Object.defineProperty(hC,"__esModule",{value:!0});let E4=g7,E5=bn,E8=bo,E9=bL,E7=bu,we=gL,wt=bf,wr=bp,wn=bz,wi=bM,wo=bT,wa=gD,ws=bj,wu=vR,wc=gA,wl=ge,wf=y4,wd=y5,wh=gr,wp=v3,wm=gt,wy=vI,wg=v8,wb=_t,wv=_S,w_=_D,wS=_F,wE=_Y,ww=_G,wT=_r,wx=vk,wA=vC,wO=_E,wM=ba,wR=_J,wC=bd,wI=_0,wN=y3,wP=bR,wk=_1,wD=bm,wL=_6,wj=_8,wU=Sr,wB=Ss,wF=Sc,wz=Sg,w$=S_,wV=ST,wY=SA,wq=SD,wH=SU,wW=S$,wG=SY,wZ=SK,wK=S7,wX=EA,wJ=gN,wQ=EP,w0=EY,w1=EX,w2=E0,w6=hN;hC.registerSpanErrorInstrumentation=hI.registerSpanErrorInstrumentation,hC.getCapturedScopesOnSpan=E4.getCapturedScopesOnSpan,hC.setCapturedScopesOnSpan=E4.setCapturedScopesOnSpan,hC.addTracingExtensions=E5.addTracingExtensions,hC.TRACING_DEFAULTS=E8.TRACING_DEFAULTS,hC.startIdleSpan=E8.startIdleSpan,hC.SentrySpan=E9.SentrySpan,hC.SentryNonRecordingSpan=E7.SentryNonRecordingSpan,hC.SPAN_STATUS_ERROR=we.SPAN_STATUS_ERROR,hC.SPAN_STATUS_OK=we.SPAN_STATUS_OK,hC.SPAN_STATUS_UNSET=we.SPAN_STATUS_UNSET,hC.getSpanStatusFromHttpCode=we.getSpanStatusFromHttpCode,hC.setHttpStatus=we.setHttpStatus,hC.continueTrace=wt.continueTrace,hC.startInactiveSpan=wt.startInactiveSpan,hC.startNewTrace=wt.startNewTrace,hC.startSpan=wt.startSpan,hC.startSpanManual=wt.startSpanManual,hC.suppressTracing=wt.suppressTracing,hC.withActiveSpan=wt.withActiveSpan,hC.getDynamicSamplingContextFromClient=wr.getDynamicSamplingContextFromClient,hC.getDynamicSamplingContextFromSpan=wr.getDynamicSamplingContextFromSpan,hC.spanToBaggageHeader=wr.spanToBaggageHeader,hC.setMeasurement=wn.setMeasurement,hC.timedEventsToMeasurements=wn.timedEventsToMeasurements,hC.sampleSpan=wi.sampleSpan,hC.logSpanEnd=wo.logSpanEnd,hC.logSpanStart=wo.logSpanStart,hC.SEMANTIC_ATTRIBUTE_CACHE_HIT=wa.SEMANTIC_ATTRIBUTE_CACHE_HIT,hC.SEMANTIC_ATTRIBUTE_CACHE_ITEM_SIZE=wa.SEMANTIC_ATTRIBUTE_CACHE_ITEM_SIZE,hC.SEMANTIC_ATTRIBUTE_CACHE_KEY=wa.SEMANTIC_ATTRIBUTE_CACHE_KEY,hC.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME=wa.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME,hC.SEMANTIC_ATTRIBUTE_PROFILE_ID=wa.SEMANTIC_ATTRIBUTE_PROFILE_ID,hC.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON=wa.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,hC.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT=wa.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT,hC.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE=wa.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE,hC.SEMANTIC_ATTRIBUTE_SENTRY_OP=wa.SEMANTIC_ATTRIBUTE_SENTRY_OP,hC.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN=wa.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,hC.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE=wa.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,hC.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE=wa.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,hC.createEventEnvelope=ws.createEventEnvelope,hC.createSessionEnvelope=ws.createSessionEnvelope,hC.createSpanEnvelope=ws.createSpanEnvelope,hC.addEventProcessor=wu.addEventProcessor,hC.captureCheckIn=wu.captureCheckIn,hC.captureEvent=wu.captureEvent,hC.captureException=wu.captureException,hC.captureMessage=wu.captureMessage,hC.captureSession=wu.captureSession,hC.close=wu.close,hC.endSession=wu.endSession,hC.flush=wu.flush,hC.isEnabled=wu.isEnabled,hC.isInitialized=wu.isInitialized,hC.lastEventId=wu.lastEventId,hC.setContext=wu.setContext,hC.setExtra=wu.setExtra,hC.setExtras=wu.setExtras,hC.setTag=wu.setTag,hC.setTags=wu.setTags,hC.setUser=wu.setUser,hC.startSession=wu.startSession,hC.withMonitor=wu.withMonitor,hC.getClient=wc.getClient,hC.getCurrentScope=wc.getCurrentScope,hC.getGlobalScope=wc.getGlobalScope,hC.getIsolationScope=wc.getIsolationScope,hC.withIsolationScope=wc.withIsolationScope,hC.withScope=wc.withScope,hC.getDefaultCurrentScope=wl.getDefaultCurrentScope,hC.getDefaultIsolationScope=wl.getDefaultIsolationScope,hC.setAsyncContextStrategy=wf.setAsyncContextStrategy,hC.getMainCarrier=wd.getMainCarrier,hC.closeSession=wh.closeSession,hC.makeSession=wh.makeSession,hC.updateSession=wh.updateSession,hC.SessionFlusher=wp.SessionFlusher,hC.Scope=wm.Scope,hC.notifyEventProcessors=wy.notifyEventProcessors,hC.getEnvelopeEndpointWithUrlEncodedAuth=wg.getEnvelopeEndpointWithUrlEncodedAuth,hC.getReportDialogEndpoint=wg.getReportDialogEndpoint,hC.BaseClient=wb.BaseClient,hC.ServerRuntimeClient=wv.ServerRuntimeClient,hC.initAndBind=w_.initAndBind,hC.setCurrentClient=w_.setCurrentClient,hC.createTransport=wS.createTransport,hC.makeOfflineTransport=wE.makeOfflineTransport,hC.makeMultiplexedTransport=ww.makeMultiplexedTransport,hC.addIntegration=wT.addIntegration,hC.defineIntegration=wT.defineIntegration,hC.getIntegrationsToSetup=wT.getIntegrationsToSetup,hC.applyScopeDataToEvent=wx.applyScopeDataToEvent,hC.mergeScopeData=wx.mergeScopeData,hC.prepareEvent=wA.prepareEvent,hC.createCheckInEnvelope=wO.createCheckInEnvelope,hC.hasTracingEnabled=wM.hasTracingEnabled,hC.isSentryRequestUrl=wR.isSentryRequestUrl,hC.handleCallbackErrors=wC.handleCallbackErrors,hC.parameterize=wI.parameterize,hC.addChildSpanToSpan=wN.addChildSpanToSpan,hC.getActiveSpan=wN.getActiveSpan,hC.getRootSpan=wN.getRootSpan,hC.getSpanDescendants=wN.getSpanDescendants,hC.getStatusMessage=wN.getStatusMessage,hC.spanIsSampled=wN.spanIsSampled,hC.spanToJSON=wN.spanToJSON,hC.spanToTraceContext=wN.spanToTraceContext,hC.spanToTraceHeader=wN.spanToTraceHeader,hC.parseSampleRate=wP.parseSampleRate,hC.applySdkMetadata=wk.applySdkMetadata,hC.DEFAULT_ENVIRONMENT=wD.DEFAULT_ENVIRONMENT,hC.addBreadcrumb=wL.addBreadcrumb,hC.functionToStringIntegration=wj.functionToStringIntegration,hC.inboundFiltersIntegration=wU.inboundFiltersIntegration,hC.linkedErrorsIntegration=wB.linkedErrorsIntegration,hC.moduleMetadataIntegration=wF.moduleMetadataIntegration,hC.requestDataIntegration=wz.requestDataIntegration,hC.captureConsoleIntegration=w$.captureConsoleIntegration,hC.debugIntegration=wV.debugIntegration,hC.dedupeIntegration=wY.dedupeIntegration,hC.extraErrorDataIntegration=wq.extraErrorDataIntegration,hC.rewriteFramesIntegration=wH.rewriteFramesIntegration,hC.sessionTimingIntegration=wW.sessionTimingIntegration,hC.zodErrorsIntegration=wG.zodErrorsIntegration,hC.metrics=wZ.metrics,hC.metricsDefault=wK.metricsDefault,hC.BrowserMetricsAggregator=wX.BrowserMetricsAggregator,hC.getMetricSummaryJsonForSpan=wJ.getMetricSummaryJsonForSpan,hC.addTracingHeadersToFetchRequest=wQ.addTracingHeadersToFetchRequest,hC.instrumentFetchRequest=wQ.instrumentFetchRequest,hC.trpcMiddleware=w0.trpcMiddleware,hC.captureFeedback=w1.captureFeedback,hC.getCurrentHub=w2.getCurrentHub,hC.getCurrentHubShim=w2.getCurrentHubShim,hC.SDK_VERSION=w6.SDK_VERSION;var w3={name:"@hyperdx/instrumentation-exception",author:"Warren ",license:"Apache-2.0",version:"0.1.0",homepage:"https://www.hyperdx.io",repository:{type:"git",url:"https://github.com/hyperdxio/hyperdx-js.git"},publishConfig:{access:"public"},files:["build/*"],main:"build/src/index.js",scripts:{clean:"rimraf coverage build tmp",prebuild:"npm run clean",build:"tsc -p tsconfig.release.json",postbuild:"npm run build:types","build:types":"tsc -d -p tsconfig.release.json --declarationMap --emitDeclarationOnly","build:watch":"tsc -w -p tsconfig.json",lint:"eslint . --ext .ts --ext .mts","ci:lint":"yarn lint && yarn tsc --noEmit",prettier:"prettier --config .prettierrc --write .",test:"jest","test:watch":"jest --watch"},dependencies:{"@hyperdx/instrumentation-sentry-node":"^0.1.0","@opentelemetry/core":"^1.24.1","@opentelemetry/instrumentation":"^0.51.1","@opentelemetry/semantic-conventions":"^1.24.1","@sentry/core":"^8.7.0","@sentry/types":"^8.7.0","@sentry/utils":"^8.7.0","json-stringify-safe":"^5.0.1",shimmer:"^1.2.1",tslib:"^2.5.3"},devDependencies:{"@opentelemetry/api":"^1.8.0","@types/jest":"^29.5.12",jest:"^29.7.0","ts-jest":"^29.1.4"},peerDependencies:{"@opentelemetry/api":"^1.3.0"},keywords:["exception","instrumentation","nodejs","opentelemetry","tracing"]},w4={};Object.defineProperty(w4,"__esModule",{value:!0}),w4.eventFromUnknownInput=w4.eventFromMessage=w4.eventFromException=w4.exceptionFromError=void 0;let w5=hC,w8=hN;function w9(e,t){let r=Tt(e,t),n={type:t&&t.name,value:Tn(t)};return r.length&&(n.stacktrace={frames:r}),void 0===n.type&&""===n.value&&(n.value="Unrecoverable error caught"),n}function w7(e,t,r,n){let i=(0,w5.getClient)(),o=i&&i.getOptions().normalizeDepth,a=function(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)){let r=e[t];if(r instanceof Error)return r}}(t),s={__serialized__:(0,w8.normalizeToSize)(t,o)};if(a)return{exception:{values:[w9(e,a)]},extra:s};let u={exception:{values:[{type:(0,w8.isEvent)(t)?t.constructor.name:n?"UnhandledRejection":"Error",value:Ta(t,{isUnhandledRejection:n})}]},extra:s};if(r){let t=Tt(e,r);t.length&&(u.exception.values[0].stacktrace={frames:t})}return u}function Te(e,t){return{exception:{values:[w9(e,t)]}}}function Tt(e,t){let r=t.stacktrace||t.stack||"",n=function(e){return e&&Tr.test(e.message)?1:0}(t),i=function(e){return"number"==typeof e.framesToPop?e.framesToPop:0}(t);try{return e(r,n,i)}catch(e){}return[]}w4.exceptionFromError=w9;let Tr=/Minified React error #\d+;/i;function Tn(e){let t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function Ti(e,t,r,n,i){let o;if((0,w8.isErrorEvent)(t)&&t.error)return Te(e,t.error);if((0,w8.isDOMError)(t)||(0,w8.isDOMException)(t)){let i=t;if("stack"in t)o=Te(e,t);else{let t=i.name||((0,w8.isDOMError)(i)?"DOMError":"DOMException"),a=i.message?`${t}: ${i.message}`:t;o=To(e,a,r,n),(0,w8.addExceptionTypeValue)(o,a)}return"code"in i&&(o.tags={...o.tags,"DOMException.code":`${i.code}`}),o}return(0,w8.isError)(t)?Te(e,t):((0,w8.isPlainObject)(t)||(0,w8.isEvent)(t)?o=w7(e,t,r,i):(o=To(e,t,r,n),(0,w8.addExceptionTypeValue)(o,`${t}`,void 0)),(0,w8.addExceptionMechanism)(o,{synthetic:!0}),o)}function To(e,t,r,n){let i={};if(n&&r){let n=Tt(e,r);n.length&&(i.exception={values:[{value:t,stacktrace:{frames:n}}]})}if((0,w8.isParameterizedString)(t)){let{__sentry_template_string__:e,__sentry_template_values__:r}=t;return i.logentry={message:e,params:r},i}return i.message=t,i}function Ta(e,{isUnhandledRejection:t}){let r=(0,w8.extractExceptionKeysForMessage)(e),n=t?"promise rejection":"exception";return(0,w8.isErrorEvent)(e)?`Event \`ErrorEvent\` captured as ${n} with message \`${e.message}\``:(0,w8.isEvent)(e)?`Event \`${function(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(e){}}(e)}\` (type=${e.type}) captured as ${n}`:`Object captured as ${n} with keys: ${r}`}w4.eventFromException=function(e,t,r,n){let i=Ti(e,t,r&&r.syntheticException||void 0,n);return(0,w8.addExceptionMechanism)(i),i.level="error",r&&r.event_id&&(i.event_id=r.event_id),(0,w8.resolvedSyncPromise)(i)},w4.eventFromMessage=function(e,t,r="info",n,i){let o=To(e,t,n&&n.syntheticException||void 0,i);return o.level=r,n&&n.event_id&&(o.event_id=n.event_id),(0,w8.resolvedSyncPromise)(o)},w4.eventFromUnknownInput=Ti;var Ts={},Tu={};Object.defineProperty(Tu,"__esModule",{value:!0}),Tu.wrap=Tu.ignoreNextOnError=Tu.shouldIgnoreOnError=Tu.WINDOW=void 0;let Tc=hC,Tl=hN;Tu.WINDOW=Tl.GLOBAL_OBJ;let Tf=0;function Td(){Tf++,setTimeout(()=>{Tf--})}Tu.shouldIgnoreOnError=function(){return Tf>0},Tu.ignoreNextOnError=Td,Tu.wrap=function e(t,r={},n){if("function"!=typeof t)return t;try{let e=t.__sentry_wrapped__;if(e)return e;if((0,Tl.getOriginalFunction)(t))return t}catch(e){return t}let i=function(){let i=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);let o=i.map(t=>e(t,r));return t.apply(this,o)}catch(e){throw Td(),(0,Tc.withScope)(t=>{t.addEventProcessor(e=>(r.mechanism&&((0,Tl.addExceptionTypeValue)(e,void 0,void 0),(0,Tl.addExceptionMechanism)(e,r.mechanism)),e.extra={...e.extra,arguments:i},e)),(0,Tc.captureException)(e)}),e}};try{for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&(i[e]=t[e])}catch(e){}(0,Tl.markFunctionWrapped)(i,t),(0,Tl.addNonEnumerableProperty)(t,"__sentry_wrapped__",i);try{Object.getOwnPropertyDescriptor(i,"name").configurable&&Object.defineProperty(i,"name",{get:()=>t.name})}catch(e){}return i},Object.defineProperty(Ts,"__esModule",{value:!0}),Ts.browserApiErrorsIntegration=void 0;let Th=hN,Tp=Tu,Tm=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"];function Ty(e){return function(...t){let r=t[0];return t[0]=(0,Tp.wrap)(r,{mechanism:{data:{function:(0,Th.getFunctionName)(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function Tg(e){return function(t){return e.apply(this,[(0,Tp.wrap)(t,{mechanism:{data:{function:"requestAnimationFrame",handler:(0,Th.getFunctionName)(e)},handled:!1,type:"instrument"}})])}}function Tb(e){return function(...t){let r=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e=>{e in r&&"function"==typeof r[e]&&(0,Th.fill)(r,e,function(t){let r={mechanism:{data:{function:e,handler:(0,Th.getFunctionName)(t)},handled:!1,type:"instrument"}},n=(0,Th.getOriginalFunction)(t);return n&&(r.mechanism.data.handler=(0,Th.getFunctionName)(n)),(0,Tp.wrap)(t,r)})}),e.apply(this,t)}}function Tv(e){let t=Tp.WINDOW,r=t[e]&&t[e].prototype;r&&r.hasOwnProperty&&r.hasOwnProperty("addEventListener")&&((0,Th.fill)(r,"addEventListener",function(t){return function(r,n,i){try{"function"==typeof n.handleEvent&&(n.handleEvent=(0,Tp.wrap)(n.handleEvent,{mechanism:{data:{function:"handleEvent",handler:(0,Th.getFunctionName)(n),target:e},handled:!1,type:"instrument"}}))}catch(e){}return t.apply(this,[r,(0,Tp.wrap)(n,{mechanism:{data:{function:"addEventListener",handler:(0,Th.getFunctionName)(n),target:e},handled:!1,type:"instrument"}}),i])}}),(0,Th.fill)(r,"removeEventListener",function(e){return function(t,r,n){let i=r;try{let r=i&&i.__sentry_wrapped__;r&&e.call(this,t,r,n)}catch(e){}return e.call(this,t,i,n)}}))}Ts.browserApiErrorsIntegration=(0,hC.defineIntegration)((e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&(0,Th.fill)(Tp.WINDOW,"setTimeout",Ty),t.setInterval&&(0,Th.fill)(Tp.WINDOW,"setInterval",Ty),t.requestAnimationFrame&&(0,Th.fill)(Tp.WINDOW,"requestAnimationFrame",Tg),t.XMLHttpRequest&&"XMLHttpRequest"in Tp.WINDOW&&(0,Th.fill)(XMLHttpRequest.prototype,"send",Tb);let e=t.eventTarget;e&&(Array.isArray(e)?e:Tm).forEach(Tv)}}});var T_={};Object.defineProperty(T_,"__esModule",{value:!0}),T_.applySourceContextToFrame=T_.contextLinesIntegration=void 0;let TS=hC,TE=hN,Tw=TE.GLOBAL_OBJ;function TT(e,t,r,n){return e.filename===r&&e.lineno&&t.length&&(0,TE.addContextToFrame)(t,e,n),e}T_.contextLinesIntegration=(0,TS.defineIntegration)((e={})=>{let t=null!=e.frameContextLines?e.frameContextLines:7;return{name:"ContextLines",processEvent:e=>(function(e,t){let r=Tw.document,n=Tw.location&&(0,TE.stripUrlQueryAndFragment)(Tw.location.href);if(!r||!n)return e;let i=e.exception&&e.exception.values;if(!i||!i.length)return e;let o=r.documentElement.innerHTML;if(!o)return e;let a=["","",...o.split("\n"),""];return i.forEach(e=>{let r=e.stacktrace;r&&r.frames&&(r.frames=r.frames.map(e=>TT(e,a,n,t)))}),e})(e,t)}}),T_.applySourceContextToFrame=TT;var Tx={};Object.defineProperty(Tx,"__esModule",{value:!0}),Tx.httpContextIntegration=void 0;let TA=Tu;Tx.httpContextIntegration=(0,hC.defineIntegration)(()=>({name:"HttpContext",preprocessEvent(e){if(!TA.WINDOW.navigator&&!TA.WINDOW.location&&!TA.WINDOW.document)return;let t=e.request&&e.request.url||TA.WINDOW.location&&TA.WINDOW.location.href,{referrer:r}=TA.WINDOW.document||{},{userAgent:n}=TA.WINDOW.navigator||{},i={...e.request&&e.request.headers,...r&&{Referer:r},...n&&{"User-Agent":n}},o={...e.request,...t&&{url:t},headers:i};e.request=o}}));var TO={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.hyperdxIntegration=e._hyperdxIntegration=void 0;let t=hC;e._hyperdxIntegration=(e={})=>({name:"HyperDX",processEvent(e){var t,r,n,i,o,a,s,u;let c=function(e){let t,r=[];e.message&&r.push(e.message);try{t=e.exception.values[e.exception.values.length-1]}catch(e){}return t&&t.value&&(r.push(t.value),t.type&&r.push(`${t.type}: ${t.value}`)),r}(e);c.length>0&&(e.message=c[c.length-1]);let l=null==(t=e.exception)?void 0:t.values;if(l&&l.length>0){for(let e of l)if(null==(r=e.stacktrace)?void 0:r.frames){let t=[],r=null;for(let c=e.stacktrace.frames.length-1;c>=0;c--){let l=e.stacktrace.frames[c];(null==(n=l.filename)?void 0:n.includes("framework-"))||(null==(i=l.function)?void 0:i.endsWith("hdxReportString"))||(null==(o=l.function)?void 0:o.endsWith("hdxReportError"))||(null==(a=l.function)?void 0:a.endsWith("hdxReportErrorEvent"))||(null==(s=l.function)?void 0:s.endsWith("hdxReportEvent"))||((null==(u=l.function)?void 0:u.endsWith("hdxReport"))?r=l.filename:r&&l.filename===r?r=null:t.unshift(l))}e.stacktrace.frames=t}}return e}}),e.hyperdxIntegration=(0,t.defineIntegration)(e._hyperdxIntegration)}(TO);var TM={};Object.defineProperty(TM,"__esModule",{value:!0}),TM.linkedErrorsIntegration=void 0;let TR=hN,TC=w4;TM.linkedErrorsIntegration=(0,hC.defineIntegration)((e={})=>{let t=e.limit||5,r=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,n,i){let o=i.getOptions();(0,TR.applyAggregateErrorsToEvent)(TC.exceptionFromError,o.stackParser,o.maxValueLength,r,t,e,n)}}});var TI={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.defaultStackParser=e.defaultStackLineParsers=e.opera11StackLineParser=e.opera10StackLineParser=e.winjsStackLineParser=e.geckoStackLineParser=e.chromeStackLineParser=void 0;let t=hN;function r(e,r,n,i){let o={filename:e,function:""===r?t.UNKNOWN_FUNCTION:r,in_app:!0};return void 0!==n&&(o.lineno=n),void 0!==i&&(o.colno=i),o}let n=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,i=/\((\S*)(?::(\d+))(?::(\d+))\)/;e.chromeStackLineParser=[30,e=>{let o=n.exec(e);if(o){if(o[2]&&0===o[2].indexOf("eval")){let e=i.exec(o[2]);e&&(o[2]=e[1],o[3]=e[2],o[4]=e[3])}let[e,n]=l(o[1]||t.UNKNOWN_FUNCTION,o[2]);return r(n,e,o[3]?+o[3]:void 0,o[4]?+o[4]:void 0)}}];let o=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,a=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;e.geckoStackLineParser=[50,e=>{let n=o.exec(e);if(n){if(n[3]&&n[3].indexOf(" > eval")>-1){let e=a.exec(n[3]);e&&(n[1]=n[1]||"eval",n[3]=e[1],n[4]=e[2],n[5]="")}let e=n[3],i=n[1]||t.UNKNOWN_FUNCTION;return[i,e]=l(i,e),r(e,i,n[4]?+n[4]:void 0,n[5]?+n[5]:void 0)}}];let s=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i;e.winjsStackLineParser=[40,e=>{let n=s.exec(e);return n?r(n[2],n[1]||t.UNKNOWN_FUNCTION,+n[3],n[4]?+n[4]:void 0):void 0}];let u=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i;e.opera10StackLineParser=[10,e=>{let n=u.exec(e);return n?r(n[2],n[3]||t.UNKNOWN_FUNCTION,+n[1]):void 0}];let c=/ line (\d+), column (\d+)\s*(?:in (?:]+)>|([^)]+))\(.*\))? in (.*):\s*$/i;e.opera11StackLineParser=[20,e=>{let n=c.exec(e);return n?r(n[5],n[3]||n[4]||t.UNKNOWN_FUNCTION,+n[1],+n[2]):void 0}],e.defaultStackLineParsers=[e.chromeStackLineParser,e.geckoStackLineParser],e.defaultStackParser=(0,t.createStackParser)(...e.defaultStackLineParsers);let l=(e,r)=>{let n=-1!==e.indexOf("safari-extension"),i=-1!==e.indexOf("safari-web-extension");return n||i?[-1!==e.indexOf("@")?e.split("@")[0]:t.UNKNOWN_FUNCTION,n?`safari-extension:${r}`:`safari-web-extension:${r}`]:[e,r]}}(TI),function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.recordException=e.buildEventFromException=e.applyIntegrations=e.setupIntegrations=void 0;let t=c,r=tI,n=hC,i=w3,o=w4,a=Ts,s=T_,u=Tx,l=TO,f=TM,d=TI,h=r.trace.getTracer(i.name,i.version),p=[(0,n.inboundFiltersIntegration)(),(0,s.contextLinesIntegration)(),(0,a.browserApiErrorsIntegration)(),(0,f.linkedErrorsIntegration)(),(0,u.httpContextIntegration)(),(0,l.hyperdxIntegration)()],m={integrations:p,stackParser:d.defaultStackParser,maxValueLength:250,transport:{}},y={getOptions:()=>m};e.setupIntegrations=()=>{var e,t;for(let r of p)null==(e=r.setupOnce)||e.call(r),null==(t=r.setup)||t.call(r,y)},e.applyIntegrations=async(e,t)=>{var r;for(let n of p)await (null==(r=n.preprocessEvent)?void 0:r.call(n,e,t,y));for(let r of p)"function"==typeof r.processEvent&&(e=await r.processEvent(e,t,y));return e},e.buildEventFromException=async(t,i)=>{let a=(0,o.eventFromUnknownInput)(d.defaultStackParser,t);try{a=await (0,n.prepareEvent)(m,a,i)}catch(e){r.diag.error("Failed to prepare event",e)}return(0,e.applyIntegrations)(a,i)},e.recordException=async(n,i)=>{try{let{tracer:r,span:o,attributes:a,...s}=null!=i?i:{},u=Object.keys(s).length>0?s:{mechanism:{type:"generic",handled:!0}};(0,t.getEventProcessor)(null!=r?r:h)(await (0,e.buildEventFromException)(n,{data:u}),u,o,a)}catch(e){r.diag.error("Failed to capture exception",e)}}}(u);var TN,TP,Tk={},TD={};function TL(){return TP||(TP=1,Object.defineProperty(TD,"__esModule",{value:!0}),TD.getElementXPath=TD.limitLen=void 0,TD.limitLen=function(e,t){return e.length>t?e.substring(0,t):e},TD.getElementXPath=function e(t,r){if(t.nodeType===Node.DOCUMENT_NODE)return"/";let n=function(e,t){let r=e.nodeType,n=function(e){if(!e.parentNode)return 0;let t=[e.nodeType];e.nodeType===Node.CDATA_SECTION_NODE&&t.push(Node.TEXT_NODE);let r=Array.from(e.parentNode.childNodes);return(r=r.filter(r=>{let n=r.localName;return t.indexOf(r.nodeType)>=0&&n===e.localName})).length>=1?r.indexOf(e)+1:0}(e),i="";if(r===Node.ELEMENT_NODE){let r=e.getAttribute("id");if(t&&r)return`//*[@id="${r}"]`;i=e.localName}else if(r===Node.TEXT_NODE||r===Node.CDATA_SECTION_NODE)i="text()";else{if(r!==Node.COMMENT_NODE)return"";i="comment()"}return i&&n>1?`/${i}[${n}]`:`/${i}`}(t,r);if(r&&n.indexOf("@id")>0)return n;let i="";return t.parentNode&&(i+=e(t.parentNode,!1)),i+=n}),TD}!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.HyperDXErrorInstrumentation=e.ERROR_INSTRUMENTATION_VERSION=e.ERROR_INSTRUMENTATION_NAME=void 0;let t=hx,r=z.__importStar(hp),n=u,i=TL();function o(e){return e&&""!==e.trim()&&!e.startsWith("[object")&&"error"!==e}function a(e){return void 0===e?"(undefined)":e.toString()}function s(e,t){t&&t.stack&&o(t.stack)&&e.setAttribute("error.stack",(0,i.limitLen)(t.stack.toString(),4096))}e.ERROR_INSTRUMENTATION_NAME="errors",e.ERROR_INSTRUMENTATION_VERSION="1";class c extends t.InstrumentationBase{constructor(t){super(e.ERROR_INSTRUMENTATION_NAME,e.ERROR_INSTRUMENTATION_VERSION,t),this._consoleErrorHandler=e=>(...t)=>(this.hdxReport("console.error",t),e.apply(this,t)),this._unhandledRejectionListener=e=>{this.hdxReport("unhandledrejection",e.reason)},this._errorListener=e=>{this.hdxReport("onerror",e)},this._documentErrorListener=e=>{this.hdxReport("eventListener.error",e)}}init(){}enable(){r.wrap(console,"error",this._consoleErrorHandler),window.addEventListener("unhandledrejection",this._unhandledRejectionListener),window.addEventListener("error",this._errorListener),document.documentElement.addEventListener("error",this._documentErrorListener,{capture:!0})}disable(){r.unwrap(console,"error"),window.removeEventListener("unhandledrejection",this._unhandledRejectionListener),window.removeEventListener("error",this._errorListener),document.documentElement.removeEventListener("error",this._documentErrorListener,{capture:!0})}hdxReportError(e,t){let r=t.message||t.toString();if(!o(r)&&!t.stack)return;let a=Date.now(),u=this.tracer.startSpan(e,{startTime:a});u.setAttribute("component","error"),u.setAttribute("error",!0),u.setAttribute("error.object",o(t.name)?t.name:t.constructor&&t.constructor.name?t.constructor.name:"Error"),u.setAttribute("error.message",(0,i.limitLen)(r,1024)),s(u,t),(0,n.recordException)(t,{tracer:this.tracer,span:u}).finally(()=>{u.end(a)})}hdxReportString(e,t,r){if(!o(t))return;let a=Date.now(),u=this.tracer.startSpan(e,{startTime:a});u.setAttribute("component","error"),u.setAttribute("error",!0),u.setAttribute("error.object","String"),u.setAttribute("error.message",(0,i.limitLen)(t,1024)),r?(s(u,r),(0,n.recordException)(r,{tracer:this.tracer,span:u}).finally(()=>{u.end(a)})):u.end(a)}hdxReportErrorEvent(e,t){t.error?this.hdxReport(e,t.error):t.message&&this.hdxReport(e,t.message)}hdxReportEvent(e,t){if(!t.target&&!o(t.type))return;let r=Date.now(),a=this.tracer.startSpan(e,{startTime:r});a.setAttribute("component","error"),a.setAttribute("error.type",t.type),t.target&&(a.setAttribute("target_element",t.target.tagName),a.setAttribute("target_xpath",(0,i.getElementXPath)(t.target,!0)),a.setAttribute("target_src",t.target.src)),(0,n.recordException)(t,{tracer:this.tracer,span:a}).finally(()=>{a.end(r)})}hdxReport(e,t){if(!Array.isArray(t)||0!==t.length)if(t instanceof Array&&1===t.length&&(t=t[0]),t instanceof Error)this.hdxReportError(e,t);else if(t instanceof ErrorEvent)this.hdxReportErrorEvent(e,t);else if(t instanceof Event)this.hdxReportEvent(e,t);else if("string"==typeof t)this.hdxReportString(e,t);else if(t instanceof Array){let r=t.find(e=>e instanceof Error);this.hdxReportString(e,t.map(e=>a(e)).join(" "),r)}else this.hdxReportString(e,a(t))}}e.HyperDXErrorInstrumentation=c}(Tk);var Tj=eh("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function TU(e){return e.setValue(Tj,!0)}function TB(e){return!0===e.getValue(Tj)}var TF="=",Tz=";",T$=",",TV="baggage",TY=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a};function Tq(e){var t=e.split(Tz);if(!(t.length<=0)){var r=t.shift();if(r){var n=r.indexOf(TF);if(!(n<=0)){var i,o=decodeURIComponent(r.substring(0,n).trim()),a=decodeURIComponent(r.substring(n+1).trim());return t.length>0&&(i=ed(t.join(Tz))),{key:o,value:a,metadata:i}}}}}function TH(e){return"string"!=typeof e||0===e.length?{}:e.split(T$).map(function(e){return Tq(e)}).filter(function(e){return void 0!==e&&e.value.length>0}).reduce(function(e,t){return e[t.key]=t.value,e},{})}var TW=function(){function e(){}return e.prototype.inject=function(e,t,r){var n=tO.getBaggage(e);if(n&&!TB(e)){var i=function(e){return e.reduce(function(e,t){var r=""+e+(""!==e?T$:"")+t;return r.length>8192?e:r},"")}((function(e){return e.getAllEntries().map(function(e){var t=TY(e,2),r=t[0],n=t[1],i=encodeURIComponent(r)+"="+encodeURIComponent(n.value);return void 0!==n.metadata&&(i+=Tz+n.metadata.toString()),i})})(n).filter(function(e){return e.length<=4096}).slice(0,180));i.length>0&&r.set(t,TV,i)}},e.prototype.extract=function(e,t,r){var n=r.get(t,TV),i=Array.isArray(n)?n.join(T$):n;if(!i)return e;var o={};return 0===i.length?e:(i.split(T$).forEach(function(e){var t=Tq(e);if(t){var r={value:t.value};t.metadata&&(r.metadata=t.metadata),o[t.key]=r}}),0===Object.entries(o).length?e:tO.setBaggage(e,tO.createBaggage(o)))},e.prototype.fields=function(){return[TV]},e}(),TG=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},TZ=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a};function TK(e){var t,r,n={};if("object"!=typeof e||null==e)return n;try{for(var i=TG(Object.entries(e)),o=i.next();!o.done;o=i.next()){var a=TZ(o.value,2),s=a[0],u=a[1];TX(s)?TJ(u)?Array.isArray(u)?n[s]=u.slice():n[s]=u:tp.warn("Invalid attribute value set for key: "+s):tp.warn("Invalid attribute key: "+s)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return n}function TX(e){return"string"==typeof e&&e.length>0}function TJ(e){return null==e||(Array.isArray(e)?function(e){var t,r,n;try{for(var i=TG(e),o=i.next();!o.done;o=i.next()){var a=o.value;if(null!=a){if(!n){if(TQ(a)){n=typeof a;continue}return!1}if(typeof a!==n)return!1}}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return!0}(e):TQ(e))}function TQ(e){switch(typeof e){case"number":case"boolean":case"string":return!0}return!1}var T0,T1=function(e){tp.error(function(e){return"string"==typeof e?e:JSON.stringify(function(e){for(var t={},r=e;null!==r;)Object.getOwnPropertyNames(r).forEach(function(e){if(!t[e]){var n=r[e];n&&(t[e]=String(n))}}),r=Object.getPrototypeOf(r);return t}(e))}(e))};function T2(e){try{T1(e)}catch(e){}}!function(e){e.AlwaysOff="always_off",e.AlwaysOn="always_on",e.ParentBasedAlwaysOff="parentbased_always_off",e.ParentBasedAlwaysOn="parentbased_always_on",e.ParentBasedTraceIdRatio="parentbased_traceidratio",e.TraceIdRatio="traceidratio"}(T0||(T0={}));var T6=",",T3=["OTEL_SDK_DISABLED"];function T4(e){return T3.indexOf(e)>-1}var T5=["OTEL_BSP_EXPORT_TIMEOUT","OTEL_BSP_MAX_EXPORT_BATCH_SIZE","OTEL_BSP_MAX_QUEUE_SIZE","OTEL_BSP_SCHEDULE_DELAY","OTEL_BLRP_EXPORT_TIMEOUT","OTEL_BLRP_MAX_EXPORT_BATCH_SIZE","OTEL_BLRP_MAX_QUEUE_SIZE","OTEL_BLRP_SCHEDULE_DELAY","OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_EVENT_COUNT_LIMIT","OTEL_SPAN_LINK_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT","OTEL_EXPORTER_OTLP_TIMEOUT","OTEL_EXPORTER_OTLP_TRACES_TIMEOUT","OTEL_EXPORTER_OTLP_METRICS_TIMEOUT","OTEL_EXPORTER_OTLP_LOGS_TIMEOUT","OTEL_EXPORTER_JAEGER_AGENT_PORT"];function T8(e){return T5.indexOf(e)>-1}var T9=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS"];function T7(e){return T9.indexOf(e)>-1}var xe=1/0,xt=128,xr={OTEL_SDK_DISABLED:!1,CONTAINER_NAME:"",ECS_CONTAINER_METADATA_URI_V4:"",ECS_CONTAINER_METADATA_URI:"",HOSTNAME:"",KUBERNETES_SERVICE_HOST:"",NAMESPACE:"",OTEL_BSP_EXPORT_TIMEOUT:3e4,OTEL_BSP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BSP_MAX_QUEUE_SIZE:2048,OTEL_BSP_SCHEDULE_DELAY:5e3,OTEL_BLRP_EXPORT_TIMEOUT:3e4,OTEL_BLRP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BLRP_MAX_QUEUE_SIZE:2048,OTEL_BLRP_SCHEDULE_DELAY:5e3,OTEL_EXPORTER_JAEGER_AGENT_HOST:"",OTEL_EXPORTER_JAEGER_AGENT_PORT:6832,OTEL_EXPORTER_JAEGER_ENDPOINT:"",OTEL_EXPORTER_JAEGER_PASSWORD:"",OTEL_EXPORTER_JAEGER_USER:"",OTEL_EXPORTER_OTLP_ENDPOINT:"",OTEL_EXPORTER_OTLP_TRACES_ENDPOINT:"",OTEL_EXPORTER_OTLP_METRICS_ENDPOINT:"",OTEL_EXPORTER_OTLP_LOGS_ENDPOINT:"",OTEL_EXPORTER_OTLP_HEADERS:"",OTEL_EXPORTER_OTLP_TRACES_HEADERS:"",OTEL_EXPORTER_OTLP_METRICS_HEADERS:"",OTEL_EXPORTER_OTLP_LOGS_HEADERS:"",OTEL_EXPORTER_OTLP_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_TRACES_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_METRICS_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_LOGS_TIMEOUT:1e4,OTEL_EXPORTER_ZIPKIN_ENDPOINT:"http://localhost:9411/api/v2/spans",OTEL_LOG_LEVEL:J.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:xe,OTEL_ATTRIBUTE_COUNT_LIMIT:xt,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:xe,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:xt,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:xe,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:xt,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:128,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:T0.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative"};function xn(e,t,r){if(void 0!==r[e]){var n=String(r[e]);t[e]="true"===n.toLowerCase()}}function xi(e,t,r,n,i){if(void 0===n&&(n=-1/0),void 0===i&&(i=1/0),void 0!==r[e]){var o=Number(r[e]);isNaN(o)||(t[e]=oi?i:o)}}function xo(e,t,r,n){void 0===n&&(n=T6);var i=r[e];"string"==typeof i&&(t[e]=i.split(n).map(function(e){return e.trim()}))}var xa={ALL:J.ALL,VERBOSE:J.VERBOSE,DEBUG:J.DEBUG,INFO:J.INFO,WARN:J.WARN,ERROR:J.ERROR,NONE:J.NONE};function xs(e,t,r){var n=r[e];if("string"==typeof n){var i=xa[n.toUpperCase()];null!=i&&(t[e]=i)}}function xu(e){var t={};for(var r in xr){var n=r;if("OTEL_LOG_LEVEL"===n)xs(n,t,e);else if(T4(n))xn(n,t,e);else if(T8(n))xi(n,t,e);else if(T7(n))xo(n,t,e);else{var i=e[n];null!=i&&(t[n]=String(i))}}return t}var xc="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof r.g?r.g:{};function xl(){return Object.assign({},xr,xu(xc))}function xf(e){return e>=48&&e<=57?e-48:e>=97&&e<=102?e-87:e-55}function xd(e){for(var t=new Uint8Array(e.length/2),r=0,n=0;n=xb&&(r[1]-=xb,r[0]+=1),r}!function(e){e[e.SUCCESS=0]="SUCCESS",e[e.FAILED=1]="FAILED"}(xp||(xp={}));var xM,xR,xC=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},xI=function(){function e(e){var t;void 0===e&&(e={}),this._propagators=null!=(t=e.propagators)?t:[],this._fields=Array.from(new Set(this._propagators.map(function(e){return"function"==typeof e.fields?e.fields():[]}).reduce(function(e,t){return e.concat(t)},[])))}return e.prototype.inject=function(e,t,r){var n,i;try{for(var o=xC(this._propagators),a=o.next();!a.done;a=o.next()){var s=a.value;try{s.inject(e,t,r)}catch(e){tp.warn("Failed to inject with "+s.constructor.name+". Err: "+e.message)}}}catch(e){n={error:e}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}},e.prototype.extract=function(e,t,r){return this._propagators.reduce(function(e,n){try{return n.extract(e,t,r)}catch(e){tp.warn("Failed to inject with "+n.constructor.name+". Err: "+e.message)}return e},e)},e.prototype.fields=function(){return this._fields.slice()},e}(),xN="[_0-9a-z-*/]",xP=RegExp("^(?:[a-z]"+xN+"{0,255}|"+("[a-z0-9]"+xN+"{0,240}@[a-z]")+xN+"{0,13})$"),xk=/^[ -~]{0,255}[!-~]$/,xD=/,|=/,xL=function(){function e(e){this._internalState=new Map,e&&this._parse(e)}return e.prototype.set=function(e,t){var r=this._clone();return r._internalState.has(e)&&r._internalState.delete(e),r._internalState.set(e,t),r},e.prototype.unset=function(e){var t=this._clone();return t._internalState.delete(e),t},e.prototype.get=function(e){return this._internalState.get(e)},e.prototype.serialize=function(){var e=this;return this._keys().reduce(function(t,r){return t.push(r+"="+e.get(r)),t},[]).join(",")},e.prototype._parse=function(e){e.length>512||(this._internalState=e.split(",").reverse().reduce(function(e,t){var r=t.trim(),n=r.indexOf("=");if(-1!==n){var i=r.slice(0,n),o=r.slice(n+1,t.length);(function(e){return xP.test(e)})(i)&&function(e){return xk.test(e)&&!xD.test(e)}(o)&&e.set(i,o)}return e},new Map),this._internalState.size>32&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,32))))},e.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},e.prototype._clone=function(){var t=new e;return t._internalState=new Map(this._internalState),t},e}(),xj="traceparent",xU="tracestate",xB=RegExp("^\\s?((?!ff)[\\da-f]{2})-((?![0]{32})[\\da-f]{32})-((?![0]{16})[\\da-f]{16})-([\\da-f]{2})(-.*)?\\s?$"),xF=function(){function e(){}return e.prototype.inject=function(e,t,r){var n=tR.getSpanContext(e);if(n&&!TB(e)&&e8(n)){var i="00-"+n.traceId+"-"+n.spanId+"-0"+Number(n.traceFlags||eD.NONE).toString(16);r.set(t,xj,i),n.traceState&&r.set(t,xU,n.traceState.serialize())}},e.prototype.extract=function(e,t,r){var n=r.get(t,xj);if(!n)return e;var i=Array.isArray(n)?n[0]:n;if("string"!=typeof i)return e;var o=function(e){var t=xB.exec(e);return t?"00"===t[1]&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}:null}(i);if(!o)return e;o.isRemote=!0;var a=r.get(t,xU);if(a){var s=Array.isArray(a)?a.join(","):a;o.traceState=new xL("string"==typeof s?s:void 0)}return tR.setSpanContext(e,o)},e.prototype.fields=function(){return[xj,xU]},e}(),xz=function(){function e(){}return e.prototype.shouldSample=function(){return{decision:e7.NOT_RECORD}},e.prototype.toString=function(){return"AlwaysOffSampler"},e}(),x$=function(){function e(){}return e.prototype.shouldSample=function(){return{decision:e7.RECORD_AND_SAMPLED}},e.prototype.toString=function(){return"AlwaysOnSampler"},e}(),xV="[object Object]",xY="[object Null]",xq="[object Undefined]",xH=Function.prototype.toString,xW=xH.call(Object),xG=(xM=Object.getPrototypeOf,xR=Object,function(e){return xM(xR(e))}),xZ=Object.prototype,xK=xZ.hasOwnProperty,xX=Symbol?Symbol.toStringTag:void 0,xJ=xZ.toString;function xQ(e){if(!function(e){return null!=e&&"object"==typeof e}(e)||function(e){return null==e?void 0===e?xq:xY:xX&&xX in Object(e)?function(e){var t=xK.call(e,xX),r=e[xX],n=!1;try{e[xX]=void 0,n=!0}catch(e){}var i=xJ.call(e);return n&&(t?e[xX]=r:delete e[xX]),i}(e):function(e){return xJ.call(e)}(e)}(e)!==xV)return!1;var t=xG(e);if(null===t)return!0;var r=xK.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&xH.call(r)===xW}var x0=20;function x1(e){return x3(e)?e.slice():e}function x2(e,t,r,n){var i;if(void 0===r&&(r=0),!(r>x0)){if(r++,x8(e)||x8(t)||x4(t))i=x1(t);else if(x3(e)){if(i=e.slice(),x3(t))for(var o=0,a=t.length;o=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function x7(e,t){return"string"==typeof t?e===t:!!e.match(t)}function Ae(e,t){var r,n;if(!t)return!1;try{for(var i=x9(t),o=i.next();!o.done;o=i.next())if(x7(e,o.value))return!0}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return!1}var At,Ar=function(){function e(){var e=this;this._promise=new Promise(function(t,r){e._resolve=t,e._reject=r})}return Object.defineProperty(e.prototype,"promise",{get:function(){return this._promise},enumerable:!1,configurable:!0}),e.prototype.resolve=function(e){this._resolve(e)},e.prototype.reject=function(e){this._reject(e)},e}(),An=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},Ai=function(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Au=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},Ac=function(){function e(e,t,r,n,i,o,a,s,u,c){void 0===a&&(a=[]),this.attributes={},this.links=[],this.events=[],this._droppedAttributesCount=0,this._droppedEventsCount=0,this._droppedLinksCount=0,this.status={code:tt.UNSET},this.endTime=[0,0],this._ended=!1,this._duration=[-1,-1],this.name=r,this._spanContext=n,this.parentSpanId=o,this.kind=i,this.links=a;var l=Date.now();this._performanceStartTime=xm.now(),this._performanceOffset=l-(this._performanceStartTime+x_()),this._startTimeProvided=null!=s,this.startTime=this._getTime(null!=s?s:l),this.resource=e.resource,this.instrumentationLibrary=e.instrumentationLibrary,this._spanLimits=e.getSpanLimits(),this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0,null!=c&&this.setAttributes(c),this._spanProcessor=e.getActiveSpanProcessor(),this._spanProcessor.onStart(this,t)}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(e,t){return null==t||this._isSpanEnded()||(0===e.length?tp.warn("Invalid attribute key: "+e):TJ(t)?Object.keys(this.attributes).length>=this._spanLimits.attributeCountLimit&&!Object.prototype.hasOwnProperty.call(this.attributes,e)?this._droppedAttributesCount++:this.attributes[e]=this._truncateToSize(t):tp.warn("Invalid attribute value set for key: "+e)),this},e.prototype.setAttributes=function(e){var t,r;try{for(var n=As(Object.entries(e)),i=n.next();!i.done;i=n.next()){var o=Au(i.value,2),a=o[0],s=o[1];this.setAttribute(a,s)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}return this},e.prototype.addEvent=function(e,t,r){if(this._isSpanEnded())return this;if(0===this._spanLimits.eventCountLimit)return tp.warn("No events allowed."),this._droppedEventsCount++,this;this.events.length>=this._spanLimits.eventCountLimit&&(0===this._droppedEventsCount&&tp.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),xA(t)&&(xA(r)||(r=t),t=void 0);var n=TK(t);return this.events.push({name:e,attributes:n,time:this._getTime(r),droppedAttributesCount:0}),this},e.prototype.setStatus=function(e){return this._isSpanEnded()||(this.status=e),this},e.prototype.updateName=function(e){return this._isSpanEnded()||(this.name=e),this},e.prototype.end=function(e){this._isSpanEnded()?tp.error(this.name+" "+this._spanContext.traceId+"-"+this._spanContext.spanId+" - You can only call end() on a span once."):(this._ended=!0,this.endTime=this._getTime(e),this._duration=function(e,t){var r=t[0]-e[0],n=t[1]-e[1];return n<0&&(r-=1,n+=xb),[r,n]}(this.startTime,this.endTime),this._duration[0]<0&&(tp.warn("Inconsistent start and end time, startTime > endTime. Setting span duration to 0ms.",this.startTime,this.endTime),this.endTime=this.startTime.slice(),this._duration=[0,0]),this._droppedEventsCount>0&&tp.warn("Dropped "+this._droppedEventsCount+" events because eventCountLimit reached"),this._spanProcessor.onEnd(this))},e.prototype._getTime=function(e){if("number"==typeof e&&e=1?1:e<=0?0:e},e.prototype._accumulate=function(e){for(var t=0,r=0;r>>0}return t},e}(),Ap=xl(),Am=T0.AlwaysOn,Ay=1;function Ag(){return{sampler:Ab(Ap),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:xl().OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:xl().OTEL_ATTRIBUTE_COUNT_LIMIT},spanLimits:{attributeValueLengthLimit:xl().OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:xl().OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT,linkCountLimit:xl().OTEL_SPAN_LINK_COUNT_LIMIT,eventCountLimit:xl().OTEL_SPAN_EVENT_COUNT_LIMIT,attributePerEventCountLimit:xl().OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT,attributePerLinkCountLimit:xl().OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT}}}function Ab(e){switch(void 0===e&&(e=xl()),e.OTEL_TRACES_SAMPLER){case T0.AlwaysOn:return new Af;case T0.AlwaysOff:return new Al;case T0.ParentBasedAlwaysOn:return new Ad({root:new Af});case T0.ParentBasedAlwaysOff:return new Ad({root:new Al});case T0.TraceIdRatio:return new Ah(Av(e));case T0.ParentBasedTraceIdRatio:return new Ad({root:new Ah(Av(e))});default:return tp.error('OTEL_TRACES_SAMPLER value "'+e.OTEL_TRACES_SAMPLER+" invalid, defaulting to "+Am+'".'),new Af}}function Av(e){if(void 0===e.OTEL_TRACES_SAMPLER_ARG||""===e.OTEL_TRACES_SAMPLER_ARG)return tp.error("OTEL_TRACES_SAMPLER_ARG is blank, defaulting to "+Ay+"."),Ay;var t=Number(e.OTEL_TRACES_SAMPLER_ARG);return isNaN(t)?(tp.error("OTEL_TRACES_SAMPLER_ARG="+e.OTEL_TRACES_SAMPLER_ARG+" was given, but it is invalid, defaulting to "+Ay+"."),Ay):t<0||t>1?(tp.error("OTEL_TRACES_SAMPLER_ARG="+e.OTEL_TRACES_SAMPLER_ARG+" was given, but it is out of range ([0..1]), defaulting to "+Ay+"."),Ay):t}function A_(e){var t,r,n,i,o,a,s,u,c,l,f,d,h=Object.assign({},e.spanLimits),p=xu(xc);return h.attributeCountLimit=null!=(a=null!=(o=null!=(i=null!=(r=null==(t=e.spanLimits)?void 0:t.attributeCountLimit)?r:null==(n=e.generalLimits)?void 0:n.attributeCountLimit)?i:p.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT)?o:p.OTEL_ATTRIBUTE_COUNT_LIMIT)?a:xt,h.attributeValueLengthLimit=null!=(d=null!=(f=null!=(l=null!=(u=null==(s=e.spanLimits)?void 0:s.attributeValueLengthLimit)?u:null==(c=e.generalLimits)?void 0:c.attributeValueLengthLimit)?l:p.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT)?f:p.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT)?d:xe,Object.assign({},e,{spanLimits:h})}var AS=function(){function e(e,t){this._exporter=e,this._isExporting=!1,this._finishedSpans=[],this._droppedSpansCount=0;var r=xl();this._maxExportBatchSize="number"==typeof(null==t?void 0:t.maxExportBatchSize)?t.maxExportBatchSize:r.OTEL_BSP_MAX_EXPORT_BATCH_SIZE,this._maxQueueSize="number"==typeof(null==t?void 0:t.maxQueueSize)?t.maxQueueSize:r.OTEL_BSP_MAX_QUEUE_SIZE,this._scheduledDelayMillis="number"==typeof(null==t?void 0:t.scheduledDelayMillis)?t.scheduledDelayMillis:r.OTEL_BSP_SCHEDULE_DELAY,this._exportTimeoutMillis="number"==typeof(null==t?void 0:t.exportTimeoutMillis)?t.exportTimeoutMillis:r.OTEL_BSP_EXPORT_TIMEOUT,this._shutdownOnce=new Ao(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(tp.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize)}return e.prototype.forceFlush=function(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()},e.prototype.onStart=function(e,t){},e.prototype.onEnd=function(e){this._shutdownOnce.isCalled||e.spanContext().traceFlags&eD.SAMPLED&&this._addToBuffer(e)},e.prototype.shutdown=function(){return this._shutdownOnce.call()},e.prototype._shutdown=function(){var e=this;return Promise.resolve().then(function(){return e.onShutdown()}).then(function(){return e._flushAll()}).then(function(){return e._exporter.shutdown()})},e.prototype._addToBuffer=function(e){this._finishedSpans.length>=this._maxQueueSize?(0===this._droppedSpansCount&&tp.debug("maxQueueSize reached, dropping spans"),this._droppedSpansCount++):(this._droppedSpansCount>0&&(tp.warn("Dropped "+this._droppedSpansCount+" spans because maxQueueSize reached"),this._droppedSpansCount=0),this._finishedSpans.push(e),this._maybeStartTimer())},e.prototype._flushAll=function(){var e=this;return new Promise(function(t,r){for(var n=[],i=0,o=Math.ceil(e._finishedSpans.length/e._maxExportBatchSize);i0&&(e._clearTimer(),e._maybeStartTimer())}).catch(function(t){e._isExporting=!1,T2(t)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return t();void 0===this._timer&&(this._timer=setTimeout(function(){return t()},this._scheduledDelayMillis),this._timer)}},e.prototype._clearTimer=function(){void 0!==this._timer&&(clearTimeout(this._timer),this._timer=void 0)},e}(),AE=function(){var e=function(t,r){return(e=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Aw=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.onInit(r),n}return AE(t,e),t.prototype.onInit=function(e){var t=this;!0!==(null==e?void 0:e.disableAutoFlushOnDocumentHide)&&"u">typeof document&&(this._visibilityChangeListener=function(){"hidden"===document.visibilityState&&t.forceFlush()},this._pageHideListener=function(){t.forceFlush()},document.addEventListener("visibilitychange",this._visibilityChangeListener),document.addEventListener("pagehide",this._pageHideListener))},t.prototype.onShutdown=function(){"u">typeof document&&(this._visibilityChangeListener&&document.removeEventListener("visibilitychange",this._visibilityChangeListener),this._pageHideListener&&document.removeEventListener("pagehide",this._pageHideListener))},t}(AS),AT=function(){this.generateTraceId=AA(16),this.generateSpanId=AA(8)},Ax=Array(32);function AA(e){return function(){for(var t=0;t<2*e;t++)Ax[t]=Math.floor(16*Math.random())+48,Ax[t]>=58&&(Ax[t]+=39);return String.fromCharCode.apply(null,Ax.slice(0,2*e))}}var AO,AM=function(){function e(e,t,r){this._tracerProvider=r;var n,i,o,a,s=(n=t,i={sampler:Ab()},(a=Object.assign({},o=Ag(),i,n)).generalLimits=Object.assign({},o.generalLimits,n.generalLimits||{}),a.spanLimits=Object.assign({},o.spanLimits,n.spanLimits||{}),a);this._sampler=s.sampler,this._generalLimits=s.generalLimits,this._spanLimits=s.spanLimits,this._idGenerator=t.idGenerator||new AT,this.resource=r.resource,this.instrumentationLibrary=e}return e.prototype.startSpan=function(e,t,r){void 0===t&&(t={}),void 0===r&&(r=th.active()),t.root&&(r=tR.deleteSpan(r));var n=tR.getSpan(r);if(TB(r))return tp.debug("Instrumentation suppressed, returning Noop Span"),tR.wrapSpanContext(eG);var i,o,a,s,u,c,l=null==n?void 0:n.spanContext(),f=this._idGenerator.generateSpanId();l&&tR.isSpanContextValid(l)?(s=l.traceId,u=l.traceState,c=l.spanId):s=this._idGenerator.generateTraceId();var d=null!=(i=t.kind)?i:te.INTERNAL,h=(null!=(o=t.links)?o:[]).map(function(e){return{context:e.context,attributes:TK(e.attributes)}}),p=TK(t.attributes),m=this._sampler.shouldSample(r,s,e,d,p,h);u=null!=(a=m.traceState)?a:u;var y={traceId:s,spanId:f,traceFlags:m.decision===e7.RECORD_AND_SAMPLED?eD.SAMPLED:eD.NONE,traceState:u};if(m.decision===e7.NOT_RECORD)return tp.debug("Recording is off, propagating context in a non-recording span"),tR.wrapSpanContext(y);var g=TK(Object.assign(p,m.attributes));return new Ac(this,r,e,y,d,c,h,t.startTime,void 0,g)},e.prototype.startActiveSpan=function(e,t,r,n){var i,o,a;if(!(arguments.length<2)){2==arguments.length?a=t:3==arguments.length?(i=t,a=r):(i=t,o=r,a=n);var s=null!=o?o:th.active(),u=this.startSpan(e,i,s),c=tR.setSpan(s,u);return th.with(c,a,void 0,u)}},e.prototype.getGeneralLimits=function(){return this._generalLimits},e.prototype.getSpanLimits=function(){return this._spanLimits},e.prototype.getActiveSpanProcessor=function(){return this._tracerProvider.getActiveSpanProcessor()},e}(),AR=function(){return(AR=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},AP=function(){function e(e,t){var r,n=this;this._attributes=e,this.asyncAttributesPending=null!=t,this._syncAttributes=null!=(r=this._attributes)?r:{},this._asyncAttributesPromise=null==t?void 0:t.then(function(e){return n._attributes=Object.assign({},n._attributes,e),n.asyncAttributesPending=!1,e},function(e){return tp.debug("a resource's async attributes promise rejected: %s",e),n.asyncAttributesPending=!1,{}})}return e.empty=function(){return e.EMPTY},e.default=function(){var t;return new e(((t={})[fh]="unknown_service",t[fb]=xy[fb],t[fg]=xy[fg],t[fv]=xy[fv],t))},Object.defineProperty(e.prototype,"attributes",{get:function(){var e;return this.asyncAttributesPending&&tp.error("Accessing resource attributes before async attributes settled"),null!=(e=this._attributes)?e:{}},enumerable:!1,configurable:!0}),e.prototype.waitForAsyncAttributes=function(){return AC(this,void 0,void 0,function(){return AI(this,function(e){switch(e.label){case 0:return this.asyncAttributesPending?[4,this._asyncAttributesPromise]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}})})},e.prototype.merge=function(t){var r,n=this;if(!t)return this;var i=AR(AR({},this._syncAttributes),null!=(r=t._syncAttributes)?r:t.attributes);return this._asyncAttributesPromise||t._asyncAttributesPromise?new e(i,Promise.all([this._asyncAttributesPromise,t._asyncAttributesPromise]).then(function(e){var r,i=AN(e,2),o=i[0],a=i[1];return AR(AR(AR(AR({},n._syncAttributes),o),null!=(r=t._syncAttributes)?r:t.attributes),a)})):new e(i)},e.EMPTY=new e({}),e}(),Ak=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},AD=function(){function e(e){this._spanProcessors=e}return e.prototype.forceFlush=function(){var e,t,r=[];try{for(var n=Ak(this._spanProcessors),i=n.next();!i.done;i=n.next()){var o=i.value;r.push(o.forceFlush())}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return new Promise(function(e){Promise.all(r).then(function(){e()}).catch(function(t){T2(t||Error("MultiSpanProcessor: forceFlush failed")),e()})})},e.prototype.onStart=function(e,t){var r,n;try{for(var i=Ak(this._spanProcessors),o=i.next();!o.done;o=i.next())o.value.onStart(e,t)}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}},e.prototype.onEnd=function(e){var t,r;try{for(var n=Ak(this._spanProcessors),i=n.next();!i.done;i=n.next())i.value.onEnd(e)}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}},e.prototype.shutdown=function(){var e,t,r=[];try{for(var n=Ak(this._spanProcessors),i=n.next();!i.done;i=n.next()){var o=i.value;r.push(o.shutdown())}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return new Promise(function(e,t){Promise.all(r).then(function(){e()},t)})},e}(),AL=function(){function e(){}return e.prototype.onStart=function(e,t){},e.prototype.onEnd=function(e){},e.prototype.shutdown=function(){return Promise.resolve()},e.prototype.forceFlush=function(){return Promise.resolve()},e}();!function(e){e[e.resolved=0]="resolved",e[e.timeout=1]="timeout",e[e.error=2]="error",e[e.unresolved=3]="unresolved"}(AO||(AO={}));var Aj,AU,AB,AF=function(){function e(e){void 0===e&&(e={}),this._registeredSpanProcessors=[],this._tracers=new Map;var t,r=function(){for(var e=[],t=0;t0;)r=x2(r,e.shift(),0,n);return r}({},Ag(),A_(e));this.resource=null!=(t=r.resource)?t:AP.empty(),this.resource=AP.default().merge(this.resource),this._config=Object.assign({},r,{resource:this.resource});var n=this._buildExporterFromEnv();if(void 0!==n){var i=new Aw(n);this.activeSpanProcessor=i}else this.activeSpanProcessor=new AL}return e.prototype.getTracer=function(e,t,r){var n=e+"@"+(t||"")+":"+((null==r?void 0:r.schemaUrl)||"");return this._tracers.has(n)||this._tracers.set(n,new AM({name:e,version:t,schemaUrl:null==r?void 0:r.schemaUrl},this._config,this)),this._tracers.get(n)},e.prototype.addSpanProcessor=function(e){0===this._registeredSpanProcessors.length&&this.activeSpanProcessor.shutdown().catch(function(e){return tp.error("Error while trying to shutdown current span processor",e)}),this._registeredSpanProcessors.push(e),this.activeSpanProcessor=new AD(this._registeredSpanProcessors)},e.prototype.getActiveSpanProcessor=function(){return this.activeSpanProcessor},e.prototype.register=function(e){void 0===e&&(e={}),tR.setGlobalTracerProvider(this),void 0===e.propagator&&(e.propagator=this._buildPropagatorFromEnv()),e.contextManager&&th.setGlobalContextManager(e.contextManager),e.propagator&&tO.setGlobalPropagator(e.propagator)},e.prototype.forceFlush=function(){var e=this._config.forceFlushTimeoutMillis,t=this._registeredSpanProcessors.map(function(t){return new Promise(function(r){var n,i=setTimeout(function(){r(Error("Span processor did not completed within timeout period of "+e+" ms")),n=AO.timeout},e);t.forceFlush().then(function(){clearTimeout(i),n!==AO.timeout&&r(n=AO.resolved)}).catch(function(e){clearTimeout(i),n=AO.error,r(e)})})});return new Promise(function(e,r){Promise.all(t).then(function(t){var n=t.filter(function(e){return e!==AO.resolved});n.length>0?r(n):e()}).catch(function(e){return r([e])})})},e.prototype.shutdown=function(){return this.activeSpanProcessor.shutdown()},e.prototype._getPropagator=function(e){var t;return null==(t=this.constructor._registeredPropagators.get(e))?void 0:t()},e.prototype._getSpanExporter=function(e){var t;return null==(t=this.constructor._registeredExporters.get(e))?void 0:t()},e.prototype._buildPropagatorFromEnv=function(){var e=this,t=Array.from(new Set(xl().OTEL_PROPAGATORS)),r=t.map(function(t){var r=e._getPropagator(t);return r||tp.warn('Propagator "'+t+'" requested through environment variable is unavailable.'),r}).reduce(function(e,t){return t&&e.push(t),e},[]);return 0===r.length?void 0:1===t.length?r[0]:new xI({propagators:r})},e.prototype._buildExporterFromEnv=function(){var e=xl().OTEL_TRACES_EXPORTER;if("none"!==e&&""!==e){var t=this._getSpanExporter(e);return t||tp.error('Exporter "'+e+'" requested through environment variable is unavailable.'),t}},e._registeredPropagators=new Map([["tracecontext",function(){return new xF}],["baggage",function(){return new TW}]]),e._registeredExporters=new Map,e}(),Az=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},A$=function(){function e(){}return e.prototype.export=function(e,t){return this._sendSpans(e,t)},e.prototype.shutdown=function(){return this._sendSpans([]),this.forceFlush()},e.prototype.forceFlush=function(){return Promise.resolve()},e.prototype._exportInfo=function(e){var t;return{resource:{attributes:e.resource.attributes},traceId:e.spanContext().traceId,parentId:e.parentSpanId,traceState:null==(t=e.spanContext().traceState)?void 0:t.serialize(),name:e.name,id:e.spanContext().spanId,kind:e.kind,timestamp:xT(e.startTime),duration:xT(e.duration),attributes:e.attributes,status:e.status,events:e.events,links:e.links}},e.prototype._sendSpans=function(e,t){var r,n;try{for(var i=Az(e),o=i.next();!o.done;o=i.next()){var a=o.value;console.dir(this._exportInfo(a),{depth:3})}}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}if(t)return t({code:xp.SUCCESS})},e}(),AV=function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}u((n=n.apply(e,t||[])).next())})},AY=function(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},AW=function(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i=o)return e.addEvent(t,i),e}function AQ(e,t){AJ(e,Aj.FETCH_START,t),AJ(e,Aj.DOMAIN_LOOKUP_START,t),AJ(e,Aj.DOMAIN_LOOKUP_END,t),AJ(e,Aj.CONNECT_START,t),AX(t,"name")&&t.name.startsWith("https:")&&AJ(e,Aj.SECURE_CONNECTION_START,t),AJ(e,Aj.CONNECT_END,t),AJ(e,Aj.REQUEST_START,t),AJ(e,Aj.RESPONSE_START,t),AJ(e,Aj.RESPONSE_END,t);var r=t[Aj.ENCODED_BODY_SIZE];void 0!==r&&e.setAttribute(oL.HTTP_RESPONSE_CONTENT_LENGTH,r);var n=t[Aj.DECODED_BODY_SIZE];void 0!==n&&r!==n&&e.setAttribute(oL.HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED,n)}function A0(){return"u">typeof location?location.origin:void 0}function A1(e,t,r,n,i,o){void 0===i&&(i=new WeakSet);var a=A2(e),s=function(e,t,r,n,i,o){var a=xw(t),s=xw(r),u=n.filter(function(t){var r=xw(xE(t[Aj.FETCH_START])),n=xw(xE(t[Aj.RESPONSE_END]));return t.initiatorType.toLowerCase()===(o||"xmlhttprequest")&&t.name===e&&r>=a&&n<=s});return u.length>0&&(u=u.filter(function(e){return!i.has(e)})),u}(e=a.toString(),t,r,n,i,o);if(0===s.length)return{mainRequest:void 0};if(1===s.length)return{mainRequest:s[0]};var u=function(e){return e.slice().sort(function(e,t){var r=e[Aj.FETCH_START],n=t[Aj.FETCH_START];return r>n?1:r1){var c=u[0],l=function(e,t,r){for(var n,i=xw(r),o=xw(xE(t)),a=e[1],s=e.length,u=1;u=o&&(!n||ftypeof document?document.baseURI:"u">typeof location?location.href:void 0);var t=(AU||(AU=document.createElement("a")),AU);return t.href=e,t}function A6(e,t){if(e.nodeType===Node.DOCUMENT_NODE)return"/";var r=function(e,t){var r=e.nodeType,n=function(e){if(!e.parentNode)return 0;var t=[e.nodeType];e.nodeType===Node.CDATA_SECTION_NODE&&t.push(Node.TEXT_NODE);var r=Array.from(e.parentNode.childNodes);return(r=r.filter(function(r){var n=r.localName;return t.indexOf(r.nodeType)>=0&&n===e.localName})).length>=1?r.indexOf(e)+1:0}(e),i="";if(r===Node.ELEMENT_NODE){var o=e.getAttribute("id");if(t&&o)return'//*[@id="'+o+'"]';i=e.localName}else if(r===Node.TEXT_NODE||r===Node.CDATA_SECTION_NODE)i="text()";else{if(r!==Node.COMMENT_NODE)return"";i="comment()"}return i&&n>1?"/"+i+"["+n+"]":"/"+i}(e,t);if(t&&r.indexOf("@id")>0)return r;var n="";return e.parentNode&&(n+=A6(e.parentNode,!1)),n+=r}function A3(e,t){var r=t||[];return("string"==typeof r||r instanceof RegExp)&&(r=[r]),A2(e).origin===A0()||r.some(function(t){return x7(e,t)})}!function(e){e.CONNECT_END="connectEnd",e.CONNECT_START="connectStart",e.DECODED_BODY_SIZE="decodedBodySize",e.DOM_COMPLETE="domComplete",e.DOM_CONTENT_LOADED_EVENT_END="domContentLoadedEventEnd",e.DOM_CONTENT_LOADED_EVENT_START="domContentLoadedEventStart",e.DOM_INTERACTIVE="domInteractive",e.DOMAIN_LOOKUP_END="domainLookupEnd",e.DOMAIN_LOOKUP_START="domainLookupStart",e.ENCODED_BODY_SIZE="encodedBodySize",e.FETCH_START="fetchStart",e.LOAD_EVENT_END="loadEventEnd",e.LOAD_EVENT_START="loadEventStart",e.NAVIGATION_START="navigationStart",e.REDIRECT_END="redirectEnd",e.REDIRECT_START="redirectStart",e.REQUEST_START="requestStart",e.RESPONSE_END="responseEnd",e.RESPONSE_START="responseStart",e.SECURE_CONNECTION_START="secureConnectionStart",e.UNLOAD_EVENT_END="unloadEventEnd",e.UNLOAD_EVENT_START="unloadEventStart"}(Aj||(Aj={})),function(e){e.DOCUMENT_LOAD="documentLoad",e.DOCUMENT_FETCH="documentFetch",e.RESOURCE_FETCH="resourceFetch"}(AB||(AB={})),function(e){e.FIRST_PAINT="firstPaint",e.FIRST_CONTENTFUL_PAINT="firstContentfulPaint"}(Mt||(Mt={}));var A4={"first-paint":Mt.FIRST_PAINT,"first-contentful-paint":Mt.FIRST_CONTENTFUL_PAINT},A5=function(){var e=function(t,r){return(e=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),A8=function(e){function t(t){void 0===t&&(t={});var r=e.call(this,"@opentelemetry/instrumentation-document-load","0.38.0",t)||this;return r.component="document-load",r.version="1",r.moduleName=r.component,r}return A5(t,e),t.prototype.init=function(){},t.prototype._onDocumentLoaded=function(){var e=this;window.setTimeout(function(){e._collectPerformance()})},t.prototype._addResourcesSpans=function(e){var t,r,n=this,i=null==(r=(t=xm).getEntriesByType)?void 0:r.call(t,"resource");i&&i.forEach(function(t){n._initResourceSpan(t,e)})},t.prototype._collectPerformance=function(){var e=this,t=Array.from(document.getElementsByTagName("meta")).find(function(e){return e.getAttribute("name")===xj}),r=function(){var e,t,r={},n=null==(t=(e=xm).getEntriesByType)?void 0:t.call(e,"navigation")[0];if(n)Object.values(Aj).forEach(function(e){if(AX(n,e)){var t=n[e];"number"==typeof t&&(r[e]=t)}});else{var i=xm.timing;i&&Object.values(Aj).forEach(function(e){if(AX(i,e)){var t=i[e];"number"==typeof t&&(r[e]=t)}})}return r}(),n=t&&t.content||"";th.with(tO.extract(em,{traceparent:n}),function(){var t,n=e._startSpan(AB.DOCUMENT_LOAD,Aj.FETCH_START,r);n&&(th.with(tR.setSpan(th.active(),n),function(){var t=e._startSpan(AB.DOCUMENT_FETCH,Aj.FETCH_START,r);t&&(t.setAttribute(iP,location.href),th.with(tR.setSpan(th.active(),t),function(){var n;AQ(t,r),e._addCustomAttributesOnSpan(t,null==(n=e._getConfig().applyCustomAttributesOnSpan)?void 0:n.documentFetch),e._endSpan(t,Aj.RESPONSE_END,r)}))}),n.setAttribute(iP,location.href),n.setAttribute(iB,navigator.userAgent),e._addResourcesSpans(n),AJ(n,Aj.FETCH_START,r),AJ(n,Aj.UNLOAD_EVENT_START,r),AJ(n,Aj.UNLOAD_EVENT_END,r),AJ(n,Aj.DOM_INTERACTIVE,r),AJ(n,Aj.DOM_CONTENT_LOADED_EVENT_START,r),AJ(n,Aj.DOM_CONTENT_LOADED_EVENT_END,r),AJ(n,Aj.DOM_COMPLETE,r),AJ(n,Aj.LOAD_EVENT_START,r),AJ(n,Aj.LOAD_EVENT_END,r),function(e){var t,r,n=null==(r=(t=xm).getEntriesByType)?void 0:r.call(t,"paint");n&&n.forEach(function(t){var r=t.name,n=t.startTime;AX(A4,r)&&e.addEvent(A4[r],n)})}(n),e._addCustomAttributesOnSpan(n,null==(t=e._getConfig().applyCustomAttributesOnSpan)?void 0:t.documentLoad),e._endSpan(n,Aj.LOAD_EVENT_END,r))})},t.prototype._endSpan=function(e,t,r){e&&(AX(r,t)?e.end(r[t]):e.end())},t.prototype._initResourceSpan=function(e,t){var r,n=this._startSpan(AB.RESOURCE_FETCH,Aj.FETCH_START,e,t);n&&(n.setAttribute(iP,e.name),AQ(n,e),this._addCustomAttributesOnResourceSpan(n,e,null==(r=this._getConfig().applyCustomAttributesOnSpan)?void 0:r.resourceFetch),this._endSpan(n,Aj.RESPONSE_END,e))},t.prototype._startSpan=function(e,t,r,n){if(AX(r,t)&&"number"==typeof r[t])return this.tracer.startSpan(e,{startTime:r[t]},n?tR.setSpan(th.active(),n):void 0)},t.prototype._waitForPageLoad=function(){"complete"===window.document.readyState?this._onDocumentLoaded():(this._onDocumentLoaded=this._onDocumentLoaded.bind(this),window.addEventListener("load",this._onDocumentLoaded))},t.prototype._getConfig=function(){return this._config},t.prototype._addCustomAttributesOnSpan=function(e,t){var r=this;t&&hS(function(){return t(e)},function(e){e&&r._diag.error("addCustomAttributesOnSpan",e)},!0)},t.prototype._addCustomAttributesOnResourceSpan=function(e,t,r){var n=this;r&&hS(function(){return r(e,t)},function(e){e&&n._diag.error("addCustomAttributesOnResourceSpan",e)},!0)},t.prototype.enable=function(){window.removeEventListener("load",this._onDocumentLoaded),this._waitForPageLoad()},t.prototype.disable=function(){window.removeEventListener("load",this._onDocumentLoaded)},t}(hb);function A9(e,t){if(e&&e[1]&&e[2]){let r=e[1],n=e[2];t.setAttribute("link.traceId",r),t.setAttribute("link.spanId",n)}}let A7=RegExp("traceparent;desc=['\"]00-([0-9a-f]{32})-([0-9a-f]{16})-01['\"]");function Oe(e,t){for(let r of e.split(","))A9((r=r.trim()).match(A7),t)}let Ot=/00-([0-9a-f]{32})-([0-9a-f]{16})-01/,Or=["beacon","fetch","xmlhttprequest"];!function(e){e.EVENT_TYPE="event_type",e.TARGET_ELEMENT="target_element",e.TARGET_XPATH="target_xpath",e.HTTP_URL="http.url"}(Mr||(Mr={}));var On="0.38.0",Oi=function(){var e=function(t,r){return(e=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Oo=["click"];function Oa(){return!1}var Os=function(e){function t(t){var r,n=e.call(this,"@opentelemetry/instrumentation-user-interaction",On,t)||this;return n.version=On,n.moduleName="user-interaction",n._spansData=new WeakMap,n._wrappedListeners=new WeakMap,n._eventsSpanMap=new WeakMap,n._eventNames=new Set(null!=(r=null==t?void 0:t.eventNames)?r:Oo),n._shouldPreventSpanCreation="function"==typeof(null==t?void 0:t.shouldPreventSpanCreation)?t.shouldPreventSpanCreation:Oa,n}return Oi(t,e),t.prototype.init=function(){},t.prototype._checkForTimeout=function(e,t){var r=this._spansData.get(t);r&&("setTimeout"===e.source?r.hrTimeLastTimeout=xS():"Promise.then"!==e.source&&"setTimeout"!==e.source&&(r.hrTimeLastTimeout=void 0))},t.prototype._allowEventName=function(e){return this._eventNames.has(e)},t.prototype._createSpan=function(e,t,r){var n;if(e instanceof HTMLElement&&e.getAttribute&&!e.hasAttribute("disabled")&&this._allowEventName(t)){var i=A6(e,!0);try{var o=this.tracer.startSpan(t,{attributes:((n={})[Mr.EVENT_TYPE]=t,n[Mr.TARGET_ELEMENT]=e.tagName,n[Mr.TARGET_XPATH]=i,n[Mr.HTTP_URL]=window.location.href,n)},r?tR.setSpan(th.active(),r):void 0);if(!0===this._shouldPreventSpanCreation(t,e,o))return;return this._spansData.set(o,{taskCount:0}),o}catch(e){this._diag.error("failed to start create new user interaction span",e)}}},t.prototype._decrementTask=function(e){var t=this._spansData.get(e);t&&(t.taskCount--,0===t.taskCount&&this._tryToEndSpan(e,t.hrTimeLastTimeout))},t.prototype._getCurrentSpan=function(e){var t=e.get("OT_ZONE_CONTEXT");return t?tR.getSpan(t):t},t.prototype._incrementTask=function(e){var t=this._spansData.get(e);t&&t.taskCount++},t.prototype.addPatchedListener=function(e,t,r,n){var i=this._wrappedListeners.get(r);i||(i=new Map,this._wrappedListeners.set(r,i));var o=i.get(t);return o||(o=new Map,i.set(t,o)),!o.has(e)&&(o.set(e,n),!0)},t.prototype.removePatchedListener=function(e,t,r){var n=this._wrappedListeners.get(r);if(n){var i=n.get(t);if(i){var o=i.get(e);return o&&(i.delete(e),0===i.size&&(n.delete(t),0===n.size&&this._wrappedListeners.delete(r))),o}}},t.prototype._invokeListener=function(e,t,r){return"function"==typeof e?e.apply(t,r):e.handleEvent(r[0])},t.prototype._patchAddEventListener=function(){var e=this;return function(t){return function(r,n,i){if(!n)return t.call(this,r,n,i);var o=i&&"object"==typeof i&&i.once,a=function(){for(var t,i=this,a=[],s=0;s0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},Od=1e4;function Oh(e){return"number"==typeof e?e<=0?Op(e,Od):e:function(){var e,t=Number(null!=(e=xl().OTEL_EXPORTER_OTLP_TRACES_TIMEOUT)?e:xl().OTEL_EXPORTER_OTLP_TIMEOUT);return t<=0?Op(t,Od):t}()}function Op(e,t){return tp.warn("Timeout must be greater than 0",e),t}var Om=function(){function e(e){void 0===e&&(e={}),this._sendingPromises=[],this.url=this.getDefaultUrl(e),"string"==typeof e.hostname&&(this.hostname=e.hostname),this.shutdown=this.shutdown.bind(this),this._shutdownOnce=new Ao(this._shutdown,this),this._concurrencyLimit="number"==typeof e.concurrencyLimit?e.concurrencyLimit:30,this.timeoutMillis=Oh(e.timeoutMillis),this.onInit(e)}return e.prototype.export=function(e,t){this._shutdownOnce.isCalled?t({code:xp.FAILED,error:Error("Exporter has been shutdown")}):this._sendingPromises.length>=this._concurrencyLimit?t({code:xp.FAILED,error:Error("Concurrent export limit reached")}):this._export(e).then(function(){t({code:xp.SUCCESS})}).catch(function(e){t({code:xp.FAILED,error:e})})},e.prototype._export=function(e){var t=this;return new Promise(function(r,n){try{tp.debug("items to be sent",e),t.send(e,r,n)}catch(e){n(e)}})},e.prototype.shutdown=function(){return this._shutdownOnce.call()},e.prototype.forceFlush=function(){return Promise.all(this._sendingPromises).then(function(){})},e.prototype._shutdown=function(){return tp.debug("shutdown started"),this.onShutdown(),this.forceFlush()},e}(),Oy=function(){var e=function(t,r){return(e=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Og=function(e){function t(t,r,n){var i=e.call(this,t)||this;return i.name="OTLPExporterError",i.data=n,i.code=r,i}return Oy(t,e),t}(Error),Ob=function(){return(Ob=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a};function O_(e,t,r,n,i,o){var a,s,u=!1,c=setTimeout(function(){(clearTimeout(a),u=!0,s.readyState===XMLHttpRequest.DONE)?o(new Og("Request Timeout")):s.abort()},n),l=function(n,f){void 0===n&&(n=5),void 0===f&&(f=1e3),(s=new XMLHttpRequest).open("POST",t),Object.entries(Ob(Ob({},{Accept:"application/json","Content-Type":"application/json"}),r)).forEach(function(e){var t=Ov(e,2),r=t[0],n=t[1];s.setRequestHeader(r,n)}),s.send(e),s.onreadystatechange=function(){if(s.readyState===XMLHttpRequest.DONE&&!1===u)if(s.status>=200&&s.status<=299)tp.debug("xhr success",e),i(),clearTimeout(c),clearTimeout(a);else if(s.status&&[429,502,503,504].includes(s.status)&&n>0){var t=void 0;f*=1.5,a=setTimeout(function(){l(n-1,f)},t=s.getResponseHeader("Retry-After")?function(e){if(null==e)return -1;var t=Number.parseInt(e,10);if(Number.isInteger(t))return t>0?1e3*t:-1;var r=new Date(e).getTime()-Date.now();return r>=0?r:0}(s.getResponseHeader("Retry-After")):Math.round(Math.random()*(5e3-f)+f))}else o(new Og("Failed to export with XHR (status: "+s.status+")",s.status)),clearTimeout(c),clearTimeout(a)},s.onabort=function(){u&&o(new Og("Request Timeout")),clearTimeout(c),clearTimeout(a)},s.onerror=function(){u&&o(new Og("Request Timeout")),clearTimeout(c),clearTimeout(a)}};l()}var OS=function(){var e=function(t,r){return(e=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),OE=function(e){function t(t){void 0===t&&(t={});var r=e.call(this,t)||this;return r._useXHR=!1,r._useXHR=!!t.headers||"function"!=typeof navigator.sendBeacon,r._useXHR?r._headers=Object.assign({},function(e){void 0===e&&(e={});var t={};return Object.entries(e).forEach(function(e){var r=Of(e,2),n=r[0],i=r[1];void 0!==i?t[n]=String(i):tp.warn('Header "'+n+'" has invalid value ('+i+") and will be ignored")}),t}(t.headers),TH(xl().OTEL_EXPORTER_OTLP_HEADERS)):r._headers={},r}return OS(t,e),t.prototype.onInit=function(){},t.prototype.onShutdown=function(){},t.prototype.send=function(e,t,r){var n=this;if(this._shutdownOnce.isCalled)tp.debug("Shutdown already started. Cannot send objects");else{var i=JSON.stringify(this.convert(e)),o=new Promise(function(e,t){n._useXHR?O_(i,n.url,n._headers,n.timeoutMillis,e,t):function(e,t,r,n,i){navigator.sendBeacon(t,new Blob([e],r))?(tp.debug("sendBeacon - can send",e),n()):i(new Og("sendBeacon - cannot send "+e))}(i,n.url,{type:"application/json"},e,t)}).then(t,r);this._sendingPromises.push(o);var a=function(){var e=n._sendingPromises.indexOf(o);n._sendingPromises.splice(e,1)};o.then(a,a)}},t}(Om);function Ow(e){var t=BigInt(1e9);return BigInt(e[0])*t+BigInt(e[1])}function OT(e){var t;return{low:Number(BigInt.asUintN(32,t=Ow(e))),high:Number(BigInt.asUintN(32,t>>BigInt(32)))}}var Ox="u">typeof BigInt?function(e){return Ow(e).toString()}:xw;function OA(e){return e}function OO(e){if(void 0!==e)return xd(e)}var OM={encodeHrTime:OT,encodeSpanContext:xd,encodeOptionalSpanContext:OO},OR=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a};function OC(e){return{name:e.name,version:e.version}}function OI(e){return Object.keys(e).map(function(t){return ON(t,e[t])})}function ON(e,t){return{key:e,value:OP(t)}}function OP(e){var t=typeof e;return"string"===t?{stringValue:e}:"number"===t?Number.isInteger(e)?{intValue:e}:{doubleValue:e}:"boolean"===t?{boolValue:e}:e instanceof Uint8Array?{bytesValue:e}:Array.isArray(e)?{arrayValue:{values:e.map(OP)}}:"object"===t&&null!=e?{kvlistValue:{values:Object.entries(e).map(function(e){var t=OR(e,2);return ON(t[0],t[1])})}}:{}}function Ok(e,t){var r,n=e.spanContext(),i=e.status;return{traceId:t.encodeSpanContext(n.traceId),spanId:t.encodeSpanContext(n.spanId),parentSpanId:t.encodeOptionalSpanContext(e.parentSpanId),traceState:null==(r=n.traceState)?void 0:r.serialize(),name:e.name,kind:null==e.kind?0:e.kind+1,startTimeUnixNano:t.encodeHrTime(e.startTime),endTimeUnixNano:t.encodeHrTime(e.endTime),attributes:OI(e.attributes),droppedAttributesCount:e.droppedAttributesCount,events:e.events.map(function(e){return function(e,t){return{attributes:e.attributes?OI(e.attributes):[],name:e.name,timeUnixNano:t.encodeHrTime(e.time),droppedAttributesCount:e.droppedAttributesCount||0}}(e,t)}),droppedEventsCount:e.droppedEventsCount,status:{code:i.code,message:i.message},links:e.links.map(function(e){return function(e,t){var r;return{attributes:e.attributes?OI(e.attributes):[],spanId:t.encodeSpanContext(e.context.spanId),traceId:t.encodeSpanContext(e.context.traceId),traceState:null==(r=e.context.traceState)?void 0:r.serialize(),droppedAttributesCount:e.droppedAttributesCount||0}}(e,t)}),droppedLinksCount:e.droppedLinksCount}}function OD(e){return{attributes:OI(e.attributes),droppedAttributesCount:0}}var OL=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Oj=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a};function OU(e,t){return{resourceSpans:OB(e,function(e){if(void 0===e)return OM;var t,r,n=null==(t=e.useLongBits)||t,i=null!=(r=e.useHex)&&r;return{encodeHrTime:n?OT:Ox,encodeSpanContext:i?OA:xd,encodeOptionalSpanContext:i?OA:OO}}(t))}}function OB(e,t){for(var r=function(e){var t,r,n=new Map;try{for(var i=OL(e),o=i.next();!o.done;o=i.next()){var a=o.value,s=n.get(a.resource);s||(s=new Map,n.set(a.resource,s));var u=a.instrumentationLibrary.name+"@"+(a.instrumentationLibrary.version||"")+":"+(a.instrumentationLibrary.schemaUrl||""),c=s.get(u);c||(c=[],s.set(u,c)),c.push(a)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return n}(e),n=[],i=r.entries(),o=i.next();!o.done;){for(var a=Oj(o.value,2),s=a[0],u=[],c=a[1].values(),l=c.next();!l.done;){var f=l.value;if(f.length>0){var d=f.map(function(e){return Ok(e,t)});u.push({scope:OC(f[0].instrumentationLibrary),spans:d,schemaUrl:f[0].instrumentationLibrary.schemaUrl})}l=c.next()}var h={resource:OD(s),scopeSpans:u,schemaUrl:void 0};n.push(h),o=i.next()}return n}var OF=function(){var e=function(t,r){return(e=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Oz="v1/traces",O$="http://localhost:4318/"+Oz,OV=function(e){function t(t){void 0===t&&(t={});var r=e.call(this,t)||this;return r._headers=Object.assign(r._headers,TH(xl().OTEL_EXPORTER_OTLP_TRACES_HEADERS)),r}return OF(t,e),t.prototype.convert=function(e){return OU(e,{useHex:!0,useLongBits:!1})},t.prototype.getDefaultUrl=function(e){return"string"==typeof e.url?e.url:xl().OTEL_EXPORTER_OTLP_TRACES_ENDPOINT.length>0?function(e){try{var t=new URL(e);return""===t.pathname&&(t.pathname=t.pathname+"/"),t.toString()}catch(t){return tp.warn("Could not parse export URL: '"+e+"'"),e}}(xl().OTEL_EXPORTER_OTLP_TRACES_ENDPOINT):xl().OTEL_EXPORTER_OTLP_ENDPOINT.length>0?function(e,t){return e.endsWith("/")||(e+="/"),e+t}(xl().OTEL_EXPORTER_OTLP_ENDPOINT,Oz):O$},t}(OE);function OY(e){return"x".repeat(e/4).replace(/x/g,function(){return(16*Math.random()|0).toString(16)})}function Oq(e,t,r){return!1===e?e:(void 0!==e||!r)&&Object.assign({},t,e)}function OH(e){return"function"==typeof e}function OW(e,t,r){let n=e[t];hp.wrap(e,t,r),e[t].toString=n.toString.bind(n)}function OG(e){for(;e.__original&&e.__original!==e;)e=e.__original;return e}function OZ(e,t){let r=new Map(t.map(e=>[e,e.toLowerCase().replace(/-/g,"_")]));return(t,n)=>{for(let[i,o]of r){let r=n(i);if(void 0===r)continue;let a=`http.${e}.header.${o}`;"string"==typeof r?t.setAttribute(a,[r]):Array.isArray(r)?t.setAttribute(a,r):t.setAttribute(a,[r])}}}let OK=144e5,OX=900,OJ="__rum_sid",OQ,O0,O1,O2=!1;function O6(){O2=!0}function O3(e){let t=Date.now();return e>t||t>e+OK}function O4(){let e,t=function(e){let t=decodeURIComponent(document.cookie).split(";");for(let r=0;r=0?n="back-forward-cache":r&&(document.prerendering||Mf()>0?n="prerender":document.wasDiscarded?n="restore":r.type&&(n=r.type.replace(/_/g,"-"))),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(0x82f79cd8fff*Math.random())+1e12),navigationType:n}},Mh=function(e,t,r){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var n=new PerformanceObserver(function(e){Promise.resolve().then(function(){t(e.getEntries())})});return n.observe(Object.assign({type:e,buffered:!0},r||{})),n}}catch(e){}},Mp=function(e,t,r,n){var i,o;return function(a){t.value>=0&&(a||n)&&((o=t.value-(i||0))||void 0===i)&&(i=t.value,t.delta=o,t.rating=function(e,t){return e>t[1]?"poor":e>t[0]?"needs-improvement":"good"}(t.value,r),e(t))}},Mm=function(e){requestAnimationFrame(function(){return requestAnimationFrame(function(){return e()})})},My=function(e){var t=function(t){"pagehide"!==t.type&&"hidden"!==document.visibilityState||e(t)};addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0)},Mg=function(e){var t=!1;return function(r){t||(e(r),t=!0)}},Mb=-1,Mv=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},M_=function(e){"hidden"===document.visibilityState&&Mb>-1&&(Mb="visibilitychange"===e.type?e.timeStamp:0,ME())},MS=function(){addEventListener("visibilitychange",M_,!0),addEventListener("prerenderingchange",M_,!0)},ME=function(){removeEventListener("visibilitychange",M_,!0),removeEventListener("prerenderingchange",M_,!0)},Mw=function(){return Mb<0&&(Mb=Mv(),MS(),Mc(function(){setTimeout(function(){Mb=Mv(),MS()},0)})),{get firstHiddenTime(){return Mb}}},MT=function(e){document.prerendering?addEventListener("prerenderingchange",function(){return e()},!0):e()},Mx=[1800,3e3],MA=[.1,.25],MO=function(e,t){t=t||{},function(e,t){t=t||{},MT(function(){var r,n=Mw(),i=Md("FCP"),o=Mh("paint",function(e){e.forEach(function(e){"first-contentful-paint"===e.name&&(o.disconnect(),e.startTimen.value&&(n.value=i,n.entries=o,r())},s=Mh("layout-shift",a);s&&(r=Mp(e,n,MA,t.reportAllChanges),My(function(){a(s.takeRecords()),r(!0)}),Mc(function(){i=0,r=Mp(e,n=Md("CLS",0),MA,t.reportAllChanges),Mm(function(){return r()})}),setTimeout(r,0))}))},MM={passive:!0,capture:!0},MR=new Date,MC=function(e,t){Mn||(Mn=t,Mi=e,Mo=new Date,MP(removeEventListener),MI())},MI=function(){if(Mi>=0&&Mi1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?function(e,t){var r=function(){MC(e,t),i()},n=function(){i()},i=function(){removeEventListener("pointerup",r,MM),removeEventListener("pointercancel",n,MM)};addEventListener("pointerup",r,MM),addEventListener("pointercancel",n,MM)}(t,e):MC(t,e)}},MP=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach(function(t){return e(t,MN,MM)})},Mk=[100,300],MD=0,ML=1/0,Mj=0,MU=function(e){e.forEach(function(e){e.interactionId&&(ML=Math.min(ML,e.interactionId),MD=(Mj=Math.max(Mj,e.interactionId))?(Mj-ML)/7+1:0)})},MB=function(){return Ms?MD:performance.interactionCount||0},MF=function(){"interactionCount"in performance||Ms||(Ms=Mh("event",MU,{type:"event",buffered:!0,durationThreshold:0}))},Mz=[200,500],M$=0,MV=function(){return MB()-M$},MY=[],Mq={},MH=function(e){var t=MY[MY.length-1],r=Mq[e.interactionId];if(r||MY.length<10||e.duration>t.latency){if(r)r.entries.push(e),r.latency=Math.max(r.latency,e.duration);else{var n={id:e.interactionId,latency:e.duration,entries:[e]};Mq[n.id]=n,MY.push(n)}MY.sort(function(e,t){return t.latency-e.latency}),MY.splice(10).forEach(function(e){delete Mq[e.id]})}},MW=[2500,4e3],MG={};let MZ={};function MK(e,t,r){if(MZ[t])return;MZ[t]=!0;let n=r.value,i=Date.now(),o=e.startSpan("webvitals",{startTime:i});o.setAttribute(t,n),o.end(i)}function MX(e){let t=e.getTracer("webvitals");!function(e,t){t=t||{},MT(function(){var r,n=Mw(),i=Md("FID"),o=function(e){e.startTime{MK(t,"fid",e)}),MO(e=>{MK(t,"cls",e)}),function(e,t){t=t||{},MT(function(){var r,n=Mw(),i=Md("LCP"),o=function(e){var t=e[e.length-1];t&&t.startTime{MK(t,"lcp",e)}),function(e,t){t=t||{},MT(function(){MF();var r,n,i=Md("INP"),o=function(e){e.forEach(function(e){e.interactionId&&MH(e),"first-input"!==e.entryType||MY.some(function(t){return t.entries.some(function(t){return e.duration===t.duration&&e.startTime===t.startTime})})||MH(e)});var t,r=(t=Math.min(MY.length-1,Math.floor(MV()/50)),MY[t]);r&&r.latency!==i.value&&(i.value=r.latency,i.entries=r.entries,n())},a=Mh("event",o,{durationThreshold:null!=(r=t.durationThreshold)?r:40});n=Mp(e,i,Mz,t.reportAllChanges),a&&("PerformanceEventTiming"in window&&"interactionId"in PerformanceEventTiming.prototype&&a.observe({type:"first-input",buffered:!0}),My(function(){o(a.takeRecords()),i.value<0&&MV()>0&&(i.value=0,i.entries=[]),n(!0)}),Mc(function(){MY=[],M$=MB(),n=Mp(e,i=Md("INP"),Mz,t.reportAllChanges)}))})}(e=>{MK(t,"inp",e)})}let MJ="longtask",MQ="browser-longtask",M0="post-doc-load-resource",M1=["img","script"],M2=e=>e instanceof HTMLScriptElement||e instanceof HTMLImageElement;class M6 extends hb{constructor(e={}){const t=Object.assign({},{allowedInitiatorTypes:M1},e);super(M0,O7,t),this.config=t,this.urlToContextMap={}}init(){}enable(){window.PerformanceObserver&&window.addEventListener("load",()=>{this._startPerformanceObserver()}),window.MutationObserver&&this._startHeadMutationObserver()}disable(){this.performanceObserver&&this.performanceObserver.disconnect(),this.headMutationObserver&&this.headMutationObserver.disconnect()}onBeforeContextChange(){this._processHeadMutationObserverRecords(this.headMutationObserver.takeRecords())}_startPerformanceObserver(){this.performanceObserver=new PerformanceObserver(e=>{"complete"===window.document.readyState&&e.getEntries().forEach(e=>{this.config.allowedInitiatorTypes.includes(e.initiatorType)&&this._createSpan(e)})}),this.performanceObserver.observe({entryTypes:["resource"]})}_startHeadMutationObserver(){this.headMutationObserver=new MutationObserver(this._processHeadMutationObserverRecords.bind(this)),this.headMutationObserver.observe(document.head,{childList:!0})}_processHeadMutationObserverRecords(e){th.active()!==em&&e.flatMap(e=>Array.from(e.addedNodes||[])).filter(M2).forEach(e=>{try{let t=e.getAttribute("src");if(!t)return;let r=new URL(t,location.origin);this.urlToContextMap[r.toString()]=th.active()}catch(e){}})}_createSpan(e){if(Ae(e.name,this.config.ignoreUrls))return;let t=new URL(e.name,location.origin),r=this.tracer.startSpan("resourceFetch",{startTime:e.fetchStart},this.urlToContextMap[t.toString()]);r.setAttribute("component",M0),r.setAttribute(oL.HTTP_URL,e.name),r.setAttribute(oL.HTTP_METHOD,"GET"),AQ(r,e);let n=e.responseEnd;n&&n>0?r.end(n):r.end()}}class M3 extends AK{shutdown(){return new Promise(e=>{tO.disable(),th.disable(),tR.disable(),e()}).then(()=>super.shutdown())}}class M4{constructor(){this.events={}}addEventListener(e,t){this.events[e]||(this.events[e]=[]),this.events[e].push(t)}removeEventListener(e,t){if(!this.events[e])return;let r=this.events[e].indexOf(t);r>=0&&this.events[e].splice(r,1)}emit(e,t){let r=this.events[e];r&&r.forEach(e=>{Promise.resolve({payload:t}).then(e)})}}let M5="__splunk_context";class M8{constructor(e={}){this._config=e,this._enabled=!1,this._currentContext=em,this._hashChangeContext=null,this._contextResumingListeners=new WeakMap,this._messagePorts=new WeakMap}_bindFunction(e,t=em){let r=this,n=function(...n){return r.with(t,()=>e.apply(this,n))};return Object.defineProperty(n,"length",{enumerable:!1,configurable:!0,writable:!1,value:e.length}),n}active(){return this._currentContext}bind(e,t){return OH(t)?this._bindFunction(t,e):t}disable(){return this._enabled&&(this._config.async&&(this._unpatchTimeouts(),this._unpatchPromise(),this._unpatchMutationObserver(),this._unpatchEvents(),this._unpatchMessageChannel()),this._currentContext=em,this._enabled=!1),this}enable(){return this._enabled||(this._config.async&&(this._patchTimeouts(),this._patchPromise(),this._patchMutationObserver(),this._patchEvents(),this._patchMessageChannel()),this._enabled=!0,this._currentContext=em),this}bindActiveToArgument(e,t){OH(e[t])&&(e[t]=this.bind(this.active(),e[t]))}_patchTimeouts(){let e=this;OW(window,"setTimeout",t=>function(...r){return(!r[1]||r[1]<=34)&&e.bindActiveToArgument(r,0),t.apply(this,r)}),window.setImmediate&&OW(window,"setImmediate",t=>function(...r){return e.bindActiveToArgument(r,0),t.apply(this,r)}),window.requestAnimationFrame&&OW(window,"requestAnimationFrame",t=>function(...r){return e.bindActiveToArgument(r,0),t.apply(this,r)})}_unpatchTimeouts(){hp.unwrap(window,"setTimeout"),window.setImmediate&&hp.unwrap(window,"setImmediate")}_patchPromise(){if(!window.Promise)return;let e=this;OW(Promise.prototype,"then",t=>function(...r){return e.bindActiveToArgument(r,0),e.bindActiveToArgument(r,1),t.apply(this,r)}),OW(Promise.prototype,"catch",t=>function(...r){return e.bindActiveToArgument(r,0),t.apply(this,r)}),OW(Promise.prototype,"finally",t=>function(...r){return e.bindActiveToArgument(r,0),t.apply(this,r)})}_unpatchPromise(){window.Promise&&(hp.unwrap(Promise.prototype,"then"),hp.unwrap(Promise.prototype,"catch"),hp.unwrap(Promise.prototype,"finally"))}_patchMutationObserver(){let e=this;OW(window,"MutationObserver",t=>class extends t{constructor(...t){if(OH(t[0])){const r=t[0];t[0]=function(...t){return this[M5]&&e._enabled?e.with(this[M5],r,this,...t):r.apply(this,t)}}super(...t),Object.defineProperty(this,M5,{value:null,writable:!0,enumerable:!1})}observe(...t){if(t[0]&&t[0]instanceof Text&&!t[0].parentNode&&t[1]&&t[1].characterData){let r=this,n=t[0],i=Object.getOwnPropertyDescriptor(CharacterData.prototype,"data");Object.defineProperty(n,"data",Object.assign(Object.assign({},i),{enumerable:!1,set:function(...t){let n=e.active();return n&&(r[M5]=n),i.set.apply(this,t)}}))}return super.observe(...t)}})}_unpatchMutationObserver(){hp.unwrap(window,"MutationObserver")}_getListenersMap(e,t){this._contextResumingListeners.has(e)||this._contextResumingListeners.set(e,new Map);let r=this._contextResumingListeners.get(e);return r.has(t)||r.set(t,new WeakMap),r.get(t)}_patchEvents(){let e=this;OW(XMLHttpRequest.prototype,"addEventListener",t=>function(...r){if(OH(r[1])){let t=e._getListenersMap(this,r[0]),n=t.get(r[1]);n||(n=e.bind(e.active(),r[1]),t.set(r[1],n)),r[1]=n}return t.apply(this,r)}),OW(XMLHttpRequest.prototype,"removeEventListener",t=>function(...r){if(OH(r[1])){let t=e._getListenersMap(this,r[0]).get(r[1]);t&&(r[1]=t)}return t.apply(this,r)}),["onabort","onerror","onload","onloadend","onloadstart","onprogress","ontimeout"].forEach(t=>{let r=Object.getOwnPropertyDescriptor(XMLHttpRequestEventTarget.prototype,t);r&&(OW(r,"get",e=>function(){let t=e.call(this);return OH(t)&&t._orig?t._orig:t}),OW(r,"set",t=>function(r){if(OH(r)){let t=r,n=e.bind(e.active(),r);n._orig=t,r=n}return t.call(this,r)}),Object.defineProperty(XMLHttpRequestEventTarget.prototype,t,r))}),OW(Window.prototype,"addEventListener",t=>function(...r){if("hashchange"===r[0]&&OH(r[1])){let t=e._getListenersMap(this,r[0]),n=t.get(r[1]);n||(n=e._getWrappedEventListener(r[1],()=>e._hashChangeContext),t.set(r[1],n)),r[1]=n}return t.apply(this,r)});let t=Object.getOwnPropertyDescriptor(window,"onhashchange");OW(t,"get",e=>function(){let t=e.call(this);return OH(t)&&t._orig?t._orig:t}),OW(t,"set",t=>function(r){if(OH(r)){let t=e._getWrappedEventListener(r,()=>e._hashChangeContext);t._orig=r,r=t}return t.call(this,r)}),Object.defineProperty(window,"onhashchange",t)}_unpatchEvents(){hp.unwrap(XMLHttpRequest.prototype,"addEventListener"),hp.unwrap(XMLHttpRequest.prototype,"removeEventListener")}_patchMessageChannel(){let e=this;OW(window,"MessageChannel",t=>class extends t{constructor(...t){super(...t),e._messagePorts.set(this.port1,this.port2),e._messagePorts.set(this.port2,this.port1),Object.defineProperty(this.port1,M5,{value:null,writable:!0,enumerable:!1}),Object.defineProperty(this.port2,M5,{value:null,writable:!0,enumerable:!1})}}),OW(MessagePort.prototype,"postMessage",t=>function(...r){let n=e.active();if(!e._messagePorts.has(this)||!n)return t.apply(this,r);let i=e._messagePorts.get(this);i[M5]=n;let o=t.apply(this,r);return OG(setTimeout)(()=>{i[M5]===n&&(i[M5]=null)},100),o}),OW(MessagePort.prototype,"addEventListener",t=>function(...r){if("message"===r[0]&&OH(r[1])){let t=e._getListenersMap(this,r[0]),n=t.get(r[1]);n||(n=e._getWrappedEventListener(r[1],()=>this[M5]),t.set(r[1],n)),r[1]=n}return t.apply(this,r)}),OW(MessagePort.prototype,"removeEventListener",t=>function(...r){if("message"===r[0]&&OH(r[1])){let t=e._getListenersMap(this,r[0]).get(r[1]);t&&(r[1]=t)}return t.apply(this,r)});let t=Object.getOwnPropertyDescriptor(MessagePort.prototype,"onmessage");OW(t,"get",e=>function(){let t=e.call(this);return OH(t)&&t._orig?t._orig:t}),OW(t,"set",t=>function(r){if(OH(r)){let t=e._getWrappedEventListener(r,()=>this[M5]);t._orig=r,r=t}return t.call(this,r)}),Object.defineProperty(MessagePort.prototype,"onmessage",t)}_getWrappedEventListener(e,t){let r=this;return function(...n){let i=t();return i&&r._enabled?r.with(i,e,this,...n):e.apply(this,n)}}_unpatchMessageChannel(){hp.unwrap(window,"MessageChannel"),hp.unwrap(MessagePort.prototype,"postMessage"),hp.unwrap(MessagePort.prototype,"addEventListener"),hp.unwrap(MessagePort.prototype,"removeEventListener");let e=Object.getOwnPropertyDescriptor(MessagePort.prototype,"onmessage");hp.unwrap(e,"get"),hp.unwrap(e,"set"),Object.defineProperty(MessagePort.prototype,"onmessage",e)}with(e,t,r,...n){var i,o,a,s;try{null==(o=(i=this._config).onBeforeContextStart)||o.call(i)}catch(e){}let u=this._currentContext;this._currentContext=e||em;let c=location.hash;try{let e=t.call(r,...n);return null==(s=(a=this._config).onBeforeContextEnd)||s.call(a),e}finally{this._currentContext=u,c!==location.hash&&(this._hashChangeContext=e,OG(setTimeout)(()=>{this._hashChangeContext===e&&(this._hashChangeContext=null)},33))}}}class M9{constructor(e){this._globalAttributes=null!=e?e:{}}setGlobalAttributes(e){if(e)Object.assign(this._globalAttributes,e);else for(let e of Object.keys(this._globalAttributes))delete this._globalAttributes[e]}getGlobalAttributes(){return this._globalAttributes}forceFlush(){return Promise.resolve()}onStart(e){e.setAttribute("location.href",location.href),e.setAttributes(this._globalAttributes)}onEnd(){}shutdown(){return Promise.resolve()}}let M7="messaging.socket.io.namespace",Re="messaging.socket.io.event_name",Rt=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];class Rr extends Aw{constructor(e,t){super(e,t)}onInit(e){!0!==(null==e?void 0:e.disableAutoFlushOnDocumentHide)&&"u">typeof document&&(this._visibilityChangeListener=()=>{"hidden"===document.visibilityState&&this.forceFlush().catch(e=>T2(e))},this._pageHideListener=()=>{this.forceFlush().catch(e=>T2(e))},document.addEventListener("visibilitychange",this._visibilityChangeListener),document.addEventListener("pagehide",this._pageHideListener))}}var Rn=a(function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}),Ri="object"==typeof o&&o&&o.Object===Object&&o,Ro="object"==typeof self&&self&&self.Object===Object&&self,Ra=(Ri||Ro||Function("return this")()).Symbol,Rs=Ra,Ru=Object.prototype,Rc=Ru.hasOwnProperty,Rl=Ru.toString,Rf=Rs?Rs.toStringTag:void 0,Rd=function(e){var t=Rc.call(e,Rf),r=e[Rf];try{e[Rf]=void 0;var n=!0}catch(e){}var i=Rl.call(e);return n&&(t?e[Rf]=r:delete e[Rf]),i},Rh=Object.prototype.toString,Rp=Rd,Rm=function(e){return Rh.call(e)},Ry=Ra?Ra.toStringTag:void 0,Rg=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Ry&&Ry in Object(e)?Rp(e):Rm(e)},Rb=function(e,t){return function(r){return e(t(r))}}(Object.getPrototypeOf,Object),Rv=function(e){return null!=e&&"object"==typeof e},R_=Rg,RS=Rb,RE=Rv,Rw=Object.prototype,RT=Function.prototype.toString,Rx=Rw.hasOwnProperty,RA=RT.call(Object),RO=a(function(e){if(!RE(e)||"[object Object]"!=R_(e))return!1;var t=RS(e);if(null===t)return!0;var r=Rx.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&RT.call(r)==RA}),RM=Rg,RR=Array.isArray,RC=Rv,RI=a(function(e){return"string"==typeof e||!RR(e)&&RC(e)&&"[object String]"==RM(e)});let RN="console";!function(e){e.COMPONENT="component",e.HTTP_ERROR_NAME="http.error_name",e.HTTP_STATUS_TEXT="http.status_text"}(RP||(RP={}));var RP,Rk,RD,RL="0.51.1",Rj=function(){var e=function(t,r){return(e=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),RU="object"==typeof n&&"node"===(null==(Rk=n.release)?void 0:Rk.name),RB=function(e){function t(t){var r=e.call(this,"@opentelemetry/instrumentation-fetch",RL,t)||this;return r.component="fetch",r.version=RL,r.moduleName=r.component,r._usedResources=new WeakSet,r._tasksCount=0,r}return Rj(t,e),t.prototype.init=function(){},t.prototype._getConfig=function(){return this._config},t.prototype._addChildSpan=function(e,t){var r=this.tracer.startSpan("CORS Preflight",{startTime:t[Aj.FETCH_START]},tR.setSpan(th.active(),e));this._getConfig().ignoreNetworkEvents||AQ(r,t),r.end(t[Aj.RESPONSE_END])},t.prototype._addFinalSpanAttributes=function(e,t){var r=A2(t.url);e.setAttribute(oL.HTTP_STATUS_CODE,t.status),null!=t.statusText&&e.setAttribute(RP.HTTP_STATUS_TEXT,t.statusText),e.setAttribute(oL.HTTP_HOST,r.host),e.setAttribute(oL.HTTP_SCHEME,r.protocol.replace(":","")),"u">typeof navigator&&e.setAttribute(oL.HTTP_USER_AGENT,navigator.userAgent)},t.prototype._addHeaders=function(e,t){if(!A3(t,this._getConfig().propagateTraceHeaderCorsUrls)){var r={};return tO.inject(th.active(),r),void(Object.keys(r).length>0&&this._diag.debug("headers inject skipped due to CORS policy"))}e instanceof Request?tO.inject(th.active(),e.headers,{set:function(e,t,r){return e.set(t,"string"==typeof r?r:String(r))}}):e.headers instanceof Headers?tO.inject(th.active(),e.headers,{set:function(e,t,r){return e.set(t,"string"==typeof r?r:String(r))}}):e.headers instanceof Map?tO.inject(th.active(),e.headers,{set:function(e,t,r){return e.set(t,"string"==typeof r?r:String(r))}}):(r={},tO.inject(th.active(),r),e.headers=Object.assign({},r,e.headers||{}))},t.prototype._clearResources=function(){0===this._tasksCount&&this._getConfig().clearTimingResources&&(performance.clearResourceTimings(),this._usedResources=new WeakSet)},t.prototype._createSpan=function(e,t){var r;if(void 0===t&&(t={}),!Ae(e,this._getConfig().ignoreUrls)){var n=(t.method||"GET").toUpperCase(),i="HTTP "+n;return this.tracer.startSpan(i,{kind:te.CLIENT,attributes:((r={})[RP.COMPONENT]=this.moduleName,r[oL.HTTP_METHOD]=n,r[oL.HTTP_URL]=e,r)})}this._diag.debug("ignoring span as url matches ignored url")},t.prototype._findResourceAndAddNetworkEvents=function(e,t,r){var n=t.entries;if(!n.length){if(!performance.getEntriesByType)return;n=performance.getEntriesByType("resource")}var i=A1(t.spanUrl,t.startTime,r,n,this._usedResources,"fetch");if(i.mainRequest){var o=i.mainRequest;this._markResourceAsUsed(o);var a=i.corsPreFlightRequest;a&&(this._addChildSpan(e,a),this._markResourceAsUsed(a)),this._getConfig().ignoreNetworkEvents||AQ(e,o)}},t.prototype._markResourceAsUsed=function(e){this._usedResources.add(e)},t.prototype._endSpan=function(e,t,r){var n=this,i=xv(Date.now()),o=xS();this._addFinalSpanAttributes(e,r),setTimeout(function(){var r;null==(r=t.observer)||r.disconnect(),n._findResourceAndAddNetworkEvents(e,t,o),n._tasksCount--,n._clearResources(),e.end(i)},300)},t.prototype._patchConstructor=function(){var e=this;return function(t){var r=e;return function(){for(var e=[],n=0;n=200&&t.status<400?r._endSpan(e,u,t):r._endSpan(e,u,{status:t.status,statusText:t.statusText,url:o})}function f(e,t,r){try{var n=r.clone(),i=r.clone(),o=n.body;if(o){var a=o.getReader(),s=function(){a.read().then(function(t){t.done?l(e,i):s()},function(t){c(e,t)})};s()}else l(e,r)}finally{t(r)}}function d(e,t,r){try{c(e,r)}finally{t(r)}}return new Promise(function(e,n){return th.with(tR.setSpan(th.active(),s),function(){return r._addHeaders(a,o),r._tasksCount++,t.apply(i,a instanceof Request?[a]:[o,a]).then(f.bind(i,s,e),d.bind(i,s,n))})})}}},t.prototype._applyAttributesAfterFetch=function(e,t,r){var n=this,i=this._getConfig().applyCustomAttributesOnSpan;i&&hS(function(){return i(e,t,r)},function(e){e&&n._diag.error("applyCustomAttributesOnSpan",e)},!0)},t.prototype._prepareSpanData=function(e){var t=xS(),r=[];if("function"!=typeof PerformanceObserver)return{entries:r,startTime:t,spanUrl:e};var n=new PerformanceObserver(function(t){t.getEntries().forEach(function(t){"fetch"===t.initiatorType&&t.name===e&&r.push(t)})});return n.observe({entryTypes:["resource"]}),{entries:r,observer:n,startTime:t,spanUrl:e}},t.prototype.enable=function(){RU?this._diag.warn("this instrumentation is intended for web usage only, it does not instrument Node.js's fetch()"):(hE(fetch)&&(this._unwrap(xc,"fetch"),this._diag.debug("removing previous patch for constructor")),this._wrap(xc,"fetch",this._patchConstructor()))},t.prototype.disable=function(){RU||(this._unwrap(xc,"fetch"),this._usedResources=new WeakSet)},t}(hb);!function(e){e.METHOD_OPEN="open",e.METHOD_SEND="send",e.EVENT_ABORT="abort",e.EVENT_ERROR="error",e.EVENT_LOAD="loaded",e.EVENT_TIMEOUT="timeout"}(RD||(RD={}));var RF,Rz="0.51.1";!function(e){e.HTTP_STATUS_TEXT="http.status_text"}(RF||(RF={}));var R$=function(){var e=function(t,r){return(e=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),RV=function(e){function t(t){var r=e.call(this,"@opentelemetry/instrumentation-xml-http-request",Rz,t)||this;return r.component="xml-http-request",r.version=Rz,r.moduleName=r.component,r._tasksCount=0,r._xhrMem=new WeakMap,r._usedResources=new WeakSet,r}return R$(t,e),t.prototype.init=function(){},t.prototype._getConfig=function(){return this._config},t.prototype._addHeaders=function(e,t){if(!A3(A2(t).href,this._getConfig().propagateTraceHeaderCorsUrls)){var r={};return tO.inject(th.active(),r),void(Object.keys(r).length>0&&this._diag.debug("headers inject skipped due to CORS policy"))}var n={};tO.inject(th.active(),n),Object.keys(n).forEach(function(t){e.setRequestHeader(t,String(n[t]))})},t.prototype._addChildSpan=function(e,t){var r=this;th.with(tR.setSpan(th.active(),e),function(){var e=r.tracer.startSpan("CORS Preflight",{startTime:t[Aj.FETCH_START]});r._getConfig().ignoreNetworkEvents||AQ(e,t),e.end(t[Aj.RESPONSE_END])})},t.prototype._addFinalSpanAttributes=function(e,t,r){if("string"==typeof r){var n=A2(r);void 0!==t.status&&e.setAttribute(oL.HTTP_STATUS_CODE,t.status),void 0!==t.statusText&&e.setAttribute(RF.HTTP_STATUS_TEXT,t.statusText),e.setAttribute(oL.HTTP_HOST,n.host),e.setAttribute(oL.HTTP_SCHEME,n.protocol.replace(":","")),e.setAttribute(oL.HTTP_USER_AGENT,navigator.userAgent)}},t.prototype._applyAttributesAfterXHR=function(e,t){var r=this,n=this._getConfig().applyCustomAttributesOnSpan;"function"==typeof n&&hS(function(){return n(e,t)},function(e){e&&r._diag.error("applyCustomAttributesOnSpan",e)},!0)},t.prototype._addResourceObserver=function(e,t){var r=this._xhrMem.get(e);r&&"function"==typeof PerformanceObserver&&"function"==typeof PerformanceResourceTiming&&(r.createdResources={observer:new PerformanceObserver(function(e){var n=e.getEntries(),i=A2(t);n.forEach(function(e){"xmlhttprequest"===e.initiatorType&&e.name===i.href&&r.createdResources&&r.createdResources.entries.push(e)})}),entries:[]},r.createdResources.observer.observe({entryTypes:["resource"]}))},t.prototype._clearResources=function(){0===this._tasksCount&&this._getConfig().clearTimingResources&&(xm.clearResourceTimings(),this._xhrMem=new WeakMap,this._usedResources=new WeakSet)},t.prototype._findResourceAndAddNetworkEvents=function(e,t,r,n,i){if(r&&n&&i&&e.createdResources){var o=e.createdResources.entries;o&&o.length||(o=xm.getEntriesByType("resource"));var a=A1(A2(r).href,n,i,o,this._usedResources);if(a.mainRequest){var s=a.mainRequest;this._markResourceAsUsed(s);var u=a.corsPreFlightRequest;u&&(this._addChildSpan(t,u),this._markResourceAsUsed(u)),this._getConfig().ignoreNetworkEvents||AQ(t,s)}}},t.prototype._cleanPreviousSpanInformation=function(e){var t=this._xhrMem.get(e);if(t){var r=t.callbackToRemoveEvents;r&&r(),this._xhrMem.delete(e)}},t.prototype._createSpan=function(e,t,r){var n;if(!Ae(t,this._getConfig().ignoreUrls)){var i=r.toUpperCase(),o=this.tracer.startSpan(i,{kind:te.CLIENT,attributes:((n={})[oL.HTTP_METHOD]=r,n[oL.HTTP_URL]=A2(t).toString(),n)});return o.addEvent(RD.METHOD_OPEN),this._cleanPreviousSpanInformation(e),this._xhrMem.set(e,{span:o,spanUrl:t}),o}this._diag.debug("ignoring span as url matches ignored url")},t.prototype._markResourceAsUsed=function(e){this._usedResources.add(e)},t.prototype._patchOpen=function(){var e=this;return function(t){var r=e;return function(){for(var e=[],n=0;nnew OV({url:e.url,headers:{authorization:e.authHeader}})},spanProcessor:{factory:(e,t)=>new Rr(e,t)},apiKey:void 0};function Rq(e,t,r){!(t in e)||r in e&&e[r]!==RY[r]||(e[r]=e[t])}let RH=[{Instrument:class extends A8{constructor(e={}){super(e);const t=this,r=t._endSpan.bind(this);t._endSpan=(e,t,n)=>{var i;let o=e;if(e&&e.setAttribute("component",this.component),e&&"documentLoad"!==o.name){if("documentFetch"===o.name&&!n.serverTiming&&performance.getEntriesByType){let e=performance.getEntriesByType("navigation");(null==(i=e[0])?void 0:i.serverTiming)&&(n.serverTiming=e[0].serverTiming)}!function(e,t){if(e.serverTiming)for(let r of e.serverTiming)"traceparent"===r.name&&r.description&&A9(r.description.match(Ot),t)}(n,e),e.setAttribute(oL.HTTP_METHOD,"GET")}return e&&"documentLoad"===o.name&&function(e){document.referrer&&""!==document.referrer&&e.setAttribute("document.referrer",document.referrer),window.screen&&e.setAttribute("screen.xy",window.screen.width+"x"+window.screen.height)}(e),r(e,t,n)};const n=t._initResourceSpan.bind(this);t._initResourceSpan=(t,r)=>{-1!==Or.indexOf(t.initiatorType)||Ae(t.name,e.ignoreUrls)||n(t,r)}}},confKey:"document",disable:!1},{Instrument:class extends RV{constructor(e={}){super(e);const t=this._createSpan.bind(this);this._createSpan=(r,n,i)=>{var o;let a=t(r,n,i);return a&&((null==(o=e.advancedNetworkCapture)?void 0:o.call(e))&&r.addEventListener("readystatechange",function(){if(r.readyState===r.OPENED)hp.wrap(r,"setRequestHeader",e=>function(t,r){return OZ("request",[t])(a,()=>r),e.apply(this,arguments)}),hp.wrap(r,"send",e=>function(t){return t&&a.setAttribute("http.request.body",t.toString()),e.apply(this,arguments)});else if(r.readyState===r.DONE){let e=r.getAllResponseHeaders().split("\r\n").reduce((e,t)=>{let[r,n]=t.split(": ");return r&&n&&(e[r]=n),e},{});OZ("response",Object.keys(e))(a,t=>e[t]),a.setAttribute("http.response.body",r.responseText),hp.unwrap(r,"setRequestHeader"),hp.unwrap(r,"send")}}),r.addEventListener("readystatechange",function(){if(r.readyState===r.HEADERS_RECEIVED&&-1!==r.getAllResponseHeaders().toLowerCase().indexOf("server-timing")){let e=r.getResponseHeader("server-timing");null!==e&&Oe(e,a)}}),a.setAttribute("component",this.moduleName),a.updateName(`HTTP ${i.toUpperCase()}`)),a};const r=this._addResourceObserver.bind(this);this._addResourceObserver=(e,t)=>{"function"==typeof PerformanceObserver&&"function"==typeof PerformanceResourceTiming&&r(e,t)}}},confKey:"xhr",disable:!1},{Instrument:class extends Os{constructor(e={}){if(!e.eventNames){const t=Object.entries(Object.assign({},Ou,e.events)).filter(([e,t])=>t).map(([e])=>e);e.eventNames=t}super(e),this._routingTracer=tR.getTracer(Ol,"1");const t=this._createSpan.bind(this);this._createSpan=(e,r,n)=>{e===document&&(e=document.documentElement);let i=t(e,r,n);return i&&i.setAttribute("component",this.moduleName),i};const r=this._patchAddEventListener.bind(this);this._patchAddEventListener=()=>{let e=r();return t=>{let r=e(t);return function(e,n,i){return!function(e){return e&&("function"==typeof e||"object"==typeof e&&"function"==typeof e.handleEvent)}(n)?t.call(this,e,n,i):(null===i&&(i=void 0),r.call(this,e,n,i))}}}}setTracerProvider(e){super.setTracerProvider(e),this._routingTracer=e.getTracer(Ol,"1")}getZoneWithPrototype(){}enable(){this.__hashChangeHandler=e=>{this._emitRouteChangeSpan(e.oldURL)},window.addEventListener("hashchange",this.__hashChangeHandler),super.enable()}disable(){super.disable(),window.removeEventListener("hashchange",this.__hashChangeHandler)}_patchHistoryMethod(){let e=this;return t=>function(...r){let n=location.href,i=t.apply(this,r);return n!==location.href&&e._emitRouteChangeSpan(n),i}}_emitRouteChangeSpan(e){let t=Date.now(),r=this._routingTracer.startSpan("routeChange",{startTime:t});r.setAttribute("component",this.moduleName),r.setAttribute("prev.href",e),r.end(t)}},confKey:"interactions",disable:!1},{Instrument:M6,confKey:"postload",disable:!1},{Instrument:class extends RB{constructor(e={}){const t=e.applyCustomAttributesOnSpan;e.applyCustomAttributesOnSpan=function(r,n,i){var o;if(r.updateName(`HTTP ${(n.method||"GET").toUpperCase()}`),r.setAttribute("component","fetch"),(null==(o=e.advancedNetworkCapture)?void 0:o.call(e))&&r&&(n.headers&&OZ("request",Object.keys(n.headers))(r,e=>{var t;return null==(t=n.headers)?void 0:t[e]}),n.body&&(n.body instanceof ReadableStream?r.setAttribute("http.request.body","[ReadableStream]"):r.setAttribute("http.request.body",n.body.toString())),i instanceof Response)){if(i.headers){let e=[];i.headers.forEach((t,r)=>{e.push(r)}),OZ("response",e)(r,e=>{var t;return null!=(t=i.headers.get(e))?t:""})}i.clone().text().then(e=>{r.setAttribute("http.response.body",e)}).catch(()=>{})}if(r&&i instanceof Response&&i.headers){let e=i.headers.get("Server-Timing");e&&Oe(e,r)}t&&t(r,n,i)},super(e)}enable(){window.fetch&&super.enable()}},confKey:"fetch",disable:!1},{Instrument:class extends hb{constructor(e){super("splunk-websocket",O7,e),this.listener2ws2patched=new WeakMap,this._config=e}init(){}enable(){let e=this;hp.wrap(window,"WebSocket",function(){class t extends WebSocket{constructor(t,r){if(Ae(t,e._config.ignoreUrls))return void super(t,r);const n=e.tracer.startSpan("connect",{kind:te.CLIENT,attributes:{component:"websocket"}});t&&n.setAttribute("http.url",t),r&&("string"==typeof r?n.setAttribute("protocols",r):n.setAttribute("protocols",JSON.stringify(r)));try{super(t,r)}catch(t){throw e.endSpanExceptionally(n,t),t}this.addEventListener("open",function(){n.end()}),this.addEventListener("error",function(t){n.isRecording()?e.endSpanExceptionally(n,Error(t.error||t.message||"Could not connect.")):e.startSpan(this,"error",te.CLIENT).end()}),e.patchSend(this),e.patchEventListener(this)}}return t})}disable(){hp.unwrap(window,"WebSocket")}startSpan(e,t,r){let n=this.tracer.startSpan(t,{kind:r});return n.setAttribute("component","websocket"),n.setAttribute("protocol",e.protocol),n.setAttribute("http.url",e.url),n}patchSend(e){let t=this,r=e.send;e.send=function(...n){let i,o=t.startSpan(e,"send",te.PRODUCER),a=n.length>0?Me(n[0]):void 0;o.setAttribute("http.request_content_length",a);try{i=r.apply(e,n)}catch(e){throw t.endSpanExceptionally(o,e),e}return!1===i&&t.endSpanExceptionally(o,Error("Failed to send frame.")),o.end(),i}}addPatchedListener(e,t,r){let n=this.listener2ws2patched.get(t);return n||(n=new Map,this.listener2ws2patched.set(t,n)),!n.has(e)&&(n.set(e,r),!0)}removePatchedListener(e,t){let r=this.listener2ws2patched.get(t);if(!r)return;let n=r.get(e);return n&&(r.delete(e),0===r.size&&this.listener2ws2patched.delete(e)),n}patchEventListener(e){let t=this,r=e.addEventListener.bind(e);e.addEventListener=function(n,i,o){if("message"!==n)return void r(n,i,o);let a="boolean"==typeof o||null==o?void 0:o.once,s=function(...r){let n=this,o=r;a&&t.removePatchedListener(e,i);let s=t.startSpan(e,"onmessage",te.CONSUMER);o&&o[0]&&o[0].data&&s.setAttribute("http.response_content_length",Me(o[0].data)),th.with(tR.setSpan(th.active(),s),()=>{let e;return e="function"==typeof i?i.apply(n,o):i.handleEvent(r[0]),s.end(),e})};t.addPatchedListener(e,i,s)&&r.apply(e,[n,s,o])};let n=e.removeEventListener;e.removeEventListener=function(r,i,o){if("message"!==r)return n.call(e,r,i,o);let a=t.removePatchedListener(e,i);return a?n.call(e,r,a,o):n.call(e,r,i,o)}}endSpanExceptionally(e,t){e.setAttribute("error",!0),e.setAttribute("error.message",t.message),e.setAttribute("error.object",t.name?t.name:t.constructor&&t.constructor.name?t.constructor.name:"Error"),e.end()}},confKey:"websocket",disable:!0},{Instrument:class extends hb{constructor(e={}){super(MQ,O7,Object.assign({},e))}init(){}enable(){this.isSupported()&&(this._longtaskObserver=new PerformanceObserver(e=>{e.getEntries().forEach(e=>this._createSpanFromEntry(e))}),this._longtaskObserver.observe({type:MJ,buffered:!0}))}disable(){this.isSupported()&&this._longtaskObserver.disconnect()}_createSpanFromEntry(e){let t=this.tracer.startSpan(MJ,{startTime:e.startTime});t.setAttribute("component",MQ),t.setAttribute("longtask.name",e.name),t.setAttribute("longtask.entry_type",e.entryType),t.setAttribute("longtask.duration",e.duration);let r=e.attribution;Array.isArray(r)&&r.forEach((e,r)=>{let n=e>1?`longtask.attribution[${r}]`:"longtask.attribution";t.setAttribute(`${n}.name`,e.name),t.setAttribute(`${n}.entry_type`,e.entryType),t.setAttribute(`${n}.start_time`,e.startTime),t.setAttribute(`${n}.duration`,e.duration),t.setAttribute(`${n}.container_type`,e.containerType),t.setAttribute(`${n}.container_src`,e.containerSrc),t.setAttribute(`${n}.container_id`,e.containerId),t.setAttribute(`${n}.container_name`,e.containerName)}),t.end(e.startTime+e.duration)}isSupported(){return(window.PerformanceObserver&&PerformanceObserver.supportedEntryTypes||[]).includes(MJ)}},confKey:"longtask",disable:!1},{Instrument:Tk.HyperDXErrorInstrumentation,confKey:Tk.ERROR_INSTRUMENTATION_NAME,disable:!1},{Instrument:class extends hb{constructor(e={}){super("page-visibility",O7,Object.assign({},e)),this.unloading=!1}init(){}enable(){document.hidden&&this._createSpan(document.hidden),this.unloadListener=()=>{this.unloading=!0},this.visibilityListener=()=>{this.unloading||this._createSpan(document.hidden)},window.addEventListener("beforeunload",this.unloadListener),window.addEventListener("visibilitychange",this.visibilityListener)}disable(){window.removeEventListener("beforeunload",this.unloadListener),window.removeEventListener("visibilitychange",this.visibilityListener)}_createSpan(e){let t=Date.now(),r=this.tracer.startSpan("visibility",{startTime:t});r.setAttribute("hidden",e),r.end(t)}},confKey:"visibility",disable:!0},{Instrument:class extends hb{constructor(e={}){super("splunk-connectivity",O7,Object.assign({},e)),this.offlineStart=navigator.onLine?null:Date.now()}init(){}enable(){this.offlineListener=()=>{this.offlineStart=Date.now()},this.onlineListener=()=>{this.offlineStart&&(this._createSpan(!1,this.offlineStart),this._createSpan(!0,Date.now()))},window.addEventListener("offline",this.offlineListener),window.addEventListener("online",this.onlineListener)}disable(){window.removeEventListener("offline",this.offlineListener),window.removeEventListener("online",this.onlineListener)}_createSpan(e,t){let r=this.tracer.startSpan("connectivity",{startTime:t});r.setAttribute("online",e),r.end(t)}},confKey:"connectivity",disable:!0},{Instrument:class extends hb{constructor(e={}){super("splunk-socket.io-client",O7,Object.assign({target:"io"},e)),this.listeners=new WeakMap}init(){}getConfig(){return this._config}patchSocketIo(e){if(!function(e){return"function"==typeof e&&"function"==typeof e.Socket}(e))return void this._diag.debug("Doesn't seem like socket.io-client",e);let t=this;this._wrap(e.Socket.prototype,"emit",e=>function(r,...n){let i=t.tracer.startSpan(`${r} send`,{kind:te.PRODUCER,attributes:{[oL.MESSAGING_SYSTEM]:"socket.io",[oL.MESSAGING_DESTINATION]:this.nsp,[oL.MESSAGING_DESTINATION_KIND]:u$.TOPIC,[M7]:this.nsp,[Re]:r}});try{return th.with(tR.setSpan(th.active(),i),()=>e.apply(this,[r,...n]))}catch(t){let e;throw t instanceof Error&&(i.recordException(t),e=t.message),i.setStatus({code:tt.ERROR,message:e}),t}finally{i.end()}}),this._wrap(e.Socket.prototype,"on",e=>function(r,n){let i;return Rt.includes(r)||"function"!=typeof n?e.call(this,r,n):(t.listeners.has(n)?i=t.listeners.get(n):(i=function(...e){let i=t.tracer.startSpan(`${r} ${uW.RECEIVE}`,{kind:te.CONSUMER,attributes:{[oL.MESSAGING_SYSTEM]:"socket.io",[oL.MESSAGING_DESTINATION]:this.nsp,[oL.MESSAGING_DESTINATION_KIND]:u$.TOPIC,[oL.MESSAGING_OPERATION]:uW.RECEIVE,[M7]:this.nsp,[Re]:r}});try{n.call(this,e)}catch(e){throw e instanceof Error&&i.recordException(e),e}finally{i.end()}},t.listeners.set(n,i)),e.call(this,r,i))}),e.Socket.prototype.addEventListener=e.Socket.prototype.on,this._wrap(e.Socket.prototype,"off",e=>function(r,n){return!r||Rt.includes(r)||"function"!=typeof n?e.call(this,r,n):t.listeners.has(n)?e.call(this,r,t.listeners.get(n)):e.call(this,r,n)}),e.Socket.prototype.removeListener=e.Socket.prototype.off,e.Socket.prototype.removeEventListener=e.Socket.prototype.off,e.Socket.prototype.removeAllListeners=e.Socket.prototype.off,this._onDisable=()=>{this._unwrap(e.Socket.prototype,"emit"),this._unwrap(e.Socket.prototype,"on"),e.Socket.prototype.addEventListener=e.Socket.prototype.on,this._unwrap(e.Socket.prototype,"off"),e.Socket.prototype.removeListener=e.Socket.prototype.off,e.Socket.prototype.removeEventListener=e.Socket.prototype.off,e.Socket.prototype.removeAllListeners=e.Socket.prototype.off}}enable(){let e=this.getConfig();e.target&&("string"==typeof e.target?this._onDisable=function(e,t){if(window[e])return t(window[e]),()=>{};let r=window[e],n=!1;return Object.defineProperty(window,e,{get:()=>r,set(r){delete window[e],n=!0,window[e]=r,t(r)},configurable:!0,enumerable:!1}),()=>{n||window[e]!==r||(delete window[e],void 0!==r&&(window[e]=r))}}(e.target,e=>this.patchSocketIo(e)):this.patchSocketIo(e.target))}disable(){this._onDisable&&(this._onDisable(),this._onDisable=void 0)}},confKey:"socketio",disable:!0},{Instrument:class extends hb{_createSpan(e,...t){let r=Date.now(),n=(e=>{let t,r=[];for(let n of e)if(Rn(n)){null==t&&RO(n)&&(t=n);try{let e=JSON.stringify(n);null!=e&&r.push(e)}catch(e){}}else r.push(n);return t?Object.assign(Object.assign({},t),e.length>1&&{message:r.join(" ")}):r.join(" ")})(t),i=RI(n)?n:(e=>{let t="[HyperDX] Failed to stringify",r=!1;try{t=JSON.stringify(e)}catch(e){r=!0}if(r)try{t=d8(e)}catch(e){}return t})(n),o=this.tracer.startSpan(`console.${e}`,{kind:te.INTERNAL,startTime:r}),a=e;"log"===e&&(a="info"),o.setAttribute("component",RN),o.setAttribute("level",a),o.setAttribute("message",i),RO(n)&&o.setAttributes(n),o.end(r)}constructor(e={}){super(RN,O7,Object.assign({},e)),this._consoleLogHandler=e=>(...t)=>(this._createSpan("log",...t),e.apply(this,t)),this._consoleInfoHandler=e=>(...t)=>(this._createSpan("info",...t),e.apply(this,t)),this._consoleWarnHandler=e=>(...t)=>(this._createSpan("warn",...t),e.apply(this,t)),this._consoleDebugHandler=e=>(...t)=>(this._createSpan("debug",...t),e.apply(this,t))}init(){}enable(){hp.wrap(console,"debug",this._consoleDebugHandler),hp.wrap(console,"info",this._consoleInfoHandler),hp.wrap(console,"log",this._consoleLogHandler),hp.wrap(console,"warn",this._consoleWarnHandler)}disable(){hp.unwrap(console,"debug"),hp.unwrap(console,"info"),hp.unwrap(console,"log"),hp.unwrap(console,"warn")}},confKey:"console",disable:!0}];RH.map(e=>e.confKey).reduce((e,t)=>(e[t]=!1,e),{webvitals:!1});let RW,RG,RZ,RK,RX,RJ=!1,RQ={DEFAULT_AUTO_INSTRUMENTED_EVENTS:Ou,DEFAULT_AUTO_INSTRUMENTED_EVENT_NAMES:Oc,AlwaysOnSampler:Af,AlwaysOffSampler:Al,ParentBasedSampler:Ad,SessionBasedSampler:class{constructor({ratio:e=1,sampled:t=new x$,notSampled:r=new xz}={}){this._ratio=this._normalize(e),this._upperBound=Math.floor(0xffffffff*this._ratio),this._sampled=t,this._notSampled=r}shouldSample(e,t,r,n,i,o){let a=O9();return this._currentSession!==a&&(this._currentSessionSampled=this._accumulate(a)=1?1:e<=0?0:e}_accumulate(e){let t=0;for(let r=0;r>>0}return t}},get inited(){return RJ},_internalInit:function(e){RQ.init(Object.assign(Object.assign({},RY),e))},init:function(e){var t;"OTEL_TRACES_EXPORTER"in xc||(xc.OTEL_TRACES_EXPORTER="none");let r=(e,t)=>"function"==typeof e&&!0!==e.__wrapped&&e.name===t,n=r(null==console?void 0:console.log,"log")?console.log:()=>{},i=r(null==console?void 0:console.warn,"warn")?console.warn:n,o=r(null==console?void 0:console.error,"error")?console.error:n,a=r(null==console?void 0:console.debug,"debug")?console.debug:n,s=r(null==console?void 0:console.trace,"trace")?console.trace:n;if(tp.setLogger({error:(...e)=>{r(o,"error")&&o(...e)},warn:(...e)=>{r(i,"warn")&&i(...e)},info:(...e)=>{r(n,"log")&&n(...e)},debug:(...e)=>{r(a,"debug")&&a(...e)},verbose:(...e)=>{r(s,"trace")&&s(...e)}},{suppressOverrideMessage:!0,logLevel:(null==e?void 0:e.debug)?J.DEBUG:J.NONE}),"object"!=typeof window)return void tp.error("Rum: Non-browser environment detected, aborting");if("function"!=typeof Symbol)return void tp.error("Rum: browser not supported, disabling instrumentation.");RX=new M4;let u=Object.assign({},RY,(Rq(t=e,"app","applicationName"),Rq(t,"environment","deploymentEnvironment"),t),{exporter:Object.assign({},RY.exporter,e.exporter)});if(RJ)return void tp.warn("Rum already init()ed.");if(!u.debug){if(!u.url)throw Error("Rum.init( {url: 'https://something'} ) is required.");if(!u.url.startsWith("https")&&!u.allowInsecureUrl)throw Error("Not using https is unsafe, if you want to force it use allowInsecureUrl option.")}let c=OY(64);RG=function(e,t,r){r&&(O0=r),OQ=e,O2=!0,O1=t,O8();let n=setInterval(()=>O8(),6e4);return["click","scroll","mousedown","keydown","touchend","visibilitychange"].forEach(e=>document.addEventListener(e,O6,{capture:!0,passive:!0})),{deinit:()=>{clearInterval(n),OQ=void 0,O1=void 0}}}(c,RX,u.cookieDomain).deinit;let{ignoreUrls:l,applicationName:f,deploymentEnvironment:d,version:h}=u,p={ignoreUrls:l,enabled:!1},m=Object.assign(Object.assign({},xy),{[fT.TELEMETRY_SDK_NAME]:"@hyperdx/otel-web",[fT.TELEMETRY_SDK_VERSION]:O7,[fT.SERVICE_NAME]:f,"rum.version":O7,"rum.scriptInstance":c}),y=window.syntheticsRunId;y&&(m["Synthetics-RunId"]=y);let g=new M3(Object.assign(Object.assign({},u.tracer),{resource:new AP(m)}));Object.defineProperty(g.resource.attributes,"rum.sessionId",{get:()=>O9(),configurable:!0,enumerable:!0});let b=RH.map(({Instrument:e,confKey:t,disable:r})=>{let n=Oq(u.instrumentations[t],p,r);if(n){let r=new e(n);return t===Tk.ERROR_INSTRUMENTATION_NAME&&r instanceof Tk.HyperDXErrorInstrumentation&&(RZ=r),"postload"===t&&r instanceof M6&&(RK=r),r}return null}).filter(e=>!!e);if(this.attributesProcessor=new M9(Object.assign(Object.assign(Object.assign({},d?{environment:d,"deployment.environment":d}:{}),h?{"app.version":h}:{}),u.globalAttributes||{})),g.addSpanProcessor(this.attributesProcessor),u.url){let e=function(e){return e.exporter.factory({url:e.url,onAttributesSerializing:e.exporter.onAttributesSerializing,authHeader:e.apiKey})}(u),t=u.spanProcessor.factory(e,{scheduledDelayMillis:u.bufferTimeout,maxExportBatchSize:u.bufferSize});g.addSpanProcessor(t),this._processor=t}u.debug&&g.addSpanProcessor(new Aq(new A$)),window.addEventListener("visibilitychange",()=>{"hidden"===document.visibilityState&&this._processor.forceFlush()}),g.register({contextManager:new M8(Object.assign(Object.assign({},u.context),{onBeforeContextStart:()=>null==RK?void 0:RK.onBeforeContextChange(),onBeforeContextEnd:()=>null==RK?void 0:RK.onBeforeContextChange()}))}),RW=hs({tracerProvider:g,instrumentations:b}),this.provider=g,!1!==Oq(u.instrumentations.webvitals)&&MX(g),RJ=!0,tp.info("Rum.init() complete")},deinit(){RJ&&(null==RW||RW(),RW=void 0,null==RG||RG(),RG=void 0,this.provider.shutdown(),delete this.provider,RX=void 0,tp.disable(),RJ=!1)},setGlobalAttributes(e){var t,r;null==(t=this.attributesProcessor)||t.setGlobalAttributes(e),null==RX||RX.emit("global-attributes-changed",{attributes:(null==(r=this.attributesProcessor)?void 0:r.getGlobalAttributes())||{}})},getGlobalAttributes(){var e;return(null==(e=this.attributesProcessor)?void 0:e.getGlobalAttributes())||{}},addAction(e,t){if(!RJ)return void tp.debug("Rum not inited");let r=Date.now(),n=this.provider.getTracer("custom-action").startSpan(e,{startTime:r});n.setAttributes(t),n.end(r)},_experimental_getGlobalAttributes(){return this.getGlobalAttributes()},recordException(e,t){if(!RJ)return void tp.debug("Rum not inited");let r=this.provider.getTracer("record-exception");return u.recordException(e,{tracer:r,attributes:t})},error(...e){RJ?RZ?RZ.hdxReport("Rum.error",e):tp.error("Error was reported, but error instrumentation is disabled."):tp.debug("Rum not inited")},addEventListener(e,t){null==RX||RX.addEventListener(e,t)},removeEventListener(e,t){null==RX||RX.removeEventListener(e,t)},_experimental_addEventListener(e,t){return this.addEventListener(e,t)},_experimental_removeEventListener(e,t){return this.removeEventListener(e,t)},getSessionId:()=>O9(),_experimental_getSessionId(){return this.getSessionId()}};var R0,R1=function(){return(R1=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function R6(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function R3(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i-1?e.split("/").slice(0,3).join("/"):e.split("/")[0]).split("?")[0]}(t)+s)+u+")";var c=t.split("/"),l=s.split("/");c.pop();for(var f=0,d=l;f=t.length);){var o=n(Cm);if(","===o.slice(-1))o=Cg(e,o.substring(0,o.length-1)),i.push(o);else{var a="";o=Cg(e,o);for(var s=!1;;){var u=t.charAt(r);if(""===u){i.push((o+a).trim());break}if(s)")"===u&&(s=!1);else{if(","===u){r+=1,i.push((o+a).trim());break}"("===u&&(s=!0)}a+=u,r+=1}}}return i.join(", ")}(e,n):"style"===r&&n?Cu(n,Cb()):"object"===t&&"data"===r&&n?Cg(e,n):n}function C_(e,t,r){if(!e)return!1;if(e.nodeType===e.ELEMENT_NODE){if("string"==typeof t){if(e.classList.contains(t))return!0}else for(var n=0;nt?(n&&(clearTimeout(n),n=null),i=a,e.apply(u,c)):n||!1===r.trailing||(n=setTimeout(function(){i=!1===r.leading?0:Date.now(),n=null,e.apply(u,c)},s))}}function CM(e,t,r,n,i){void 0===i&&(i=window);var o=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,n?r:{set:function(e){var t=this;setTimeout(function(){r.set.call(t,e)},0),o&&o.set&&o.set.call(this,e)}}),function(){return CM(e,t,o||{},!0)}}function CR(e,t,r){try{if(!(t in e))return function(){};var n=e[t],i=r(n);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,function(){e[t]=n}}catch(e){return function(){}}}function CC(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function CI(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function CN(e,t){if(!e)return!1;if(e.nodeType===e.ELEMENT_NODE){var r=!1;if("string"==typeof t){if(void 0!==e.closest)return null!==e.closest("."+t);r=e.classList.contains(t)}else e.classList.forEach(function(e){t.test(e)&&(r=!0)});return r||CN(e.parentNode,t)}return e.nodeType,e.TEXT_NODE,CN(e.parentNode,t)}function CP(e){return"__sn"in e&&e.__sn.id===Cr}function Ck(e,t){if(R4(e))return!1;var r=t.getId(e);return!t.has(r)||(!e.parentNode||e.parentNode.nodeType!==e.DOCUMENT_NODE)&&(!e.parentNode||Ck(e.parentNode,t))}function CD(e){return!!e.changedTouches}function CL(e){return"__sn"in e&&e.__sn.type===R0.Element&&"iframe"===e.__sn.tagName}function Cj(e){return!!(null==e?void 0:e.shadowRoot)}function CU(e){return"__ln"in e}"u">typeof window&&window.Proxy&&window.Reflect&&(CA=new Proxy(CA,{get:function(e,t,r){return"map"===t&&console.error(Cx),Reflect.get(e,t,r)}}));var CB=function(){function e(){this.length=0,this.head=null}return e.prototype.get=function(e){if(e>=this.length)throw Error("Position outside of list range");for(var t=this.head,r=0;r=0;b--){var v=a.get(b);if(v&&(y=e.mirror.getId(v.value.parentNode),g=s(v.value),-1!==y&&-1!==g)){m=v;break}}if(!m){for(;a.head;)a.removeNode(a.head.value);break}p=m.previous,a.removeNode(m.value),u(m.value)}var _={texts:e.texts.map(function(t){return{id:e.mirror.getId(t.node),value:t.value}}).filter(function(t){return e.mirror.has(t.id)}),attributes:e.attributes.map(function(t){return{id:e.mirror.getId(t.node),attributes:t.attributes}}).filter(function(t){return e.mirror.has(t.id)}),removes:e.removes,adds:o};(_.texts.length||_.attributes.length||_.removes.length||_.adds.length)&&(e.texts=[],e.attributes=[],e.removes=[],e.addedSet=new Set,e.movedSet=new Set,e.droppedSet=new Set,e.movedMap={},e.mutationCb(_))}},this.processMutation=function(t){var r,n,i,o;if(!CP(t.target))switch(t.type){case"characterData":var a=t.target.textContent;CN(t.target,e.blockClass)||a===t.oldValue||e.texts.push({value:C_(t.target,e.maskTextClass,e.maskTextSelector)&&a?e.maskTextFn?e.maskTextFn(a):a.replace(/[\S]/g,"*"):a,node:t.target});break;case"attributes":var s=t.target;if(a=t.target.getAttribute(t.attributeName),"value"===t.attributeName&&(a=R5({maskInputOptions:e.maskInputOptions,tagName:t.target.tagName,type:t.target.getAttribute("type"),value:a,maskInputFn:e.maskInputFn})),CN(t.target,e.blockClass)||a===t.oldValue)return;var u=e.attributes.find(function(e){return e.node===t.target});if(u||(u={node:t.target,attributes:{}},e.attributes.push(u)),"style"===t.attributeName){var c=e.doc.createElement("span");t.oldValue&&c.setAttribute("style",t.oldValue),void 0!==u.attributes.style&&null!==u.attributes.style||(u.attributes.style={});var l=u.attributes.style;try{for(var f=R2(Array.from(s.style)),d=f.next();!d.done;d=f.next()){var h=d.value,p=s.style.getPropertyValue(h),m=s.style.getPropertyPriority(h);p===c.style.getPropertyValue(h)&&m===c.style.getPropertyPriority(h)||(l[h]=""===m?p:[p,m])}}catch(e){r={error:e}}finally{try{d&&!d.done&&(n=f.return)&&n.call(f)}finally{if(r)throw r.error}}try{for(var y=R2(Array.from(c.style)),g=y.next();!g.done;g=y.next())h=g.value,""===s.style.getPropertyValue(h)&&(l[h]=!1)}catch(e){i={error:e}}finally{try{g&&!g.done&&(o=y.return)&&o.call(y)}finally{if(i)throw i.error}}}else u.attributes[t.attributeName]=Cv(e.doc,t.target.tagName,t.attributeName,a);break;case"childList":t.addedNodes.forEach(function(r){return e.genAdds(r,t.target)}),t.removedNodes.forEach(function(r){var n=e.mirror.getId(r),i=R4(t.target)?e.mirror.getId(t.target.host):e.mirror.getId(t.target);CN(t.target,e.blockClass)||CP(r)||(e.addedSet.has(r)?(C$(e.addedSet,r),e.droppedSet.add(r)):e.addedSet.has(t.target)&&-1===n||Ck(t.target,e.mirror)||(e.movedSet.has(r)&&e.movedMap[CF(n,i)]?C$(e.movedSet,r):e.removes.push({parentId:i,id:n,isShadow:!!R4(t.target)||void 0})),e.mapRemoves.push(r))})}},this.genAdds=function(t,r){if(!r||!CN(r,e.blockClass)){if(Cz(t)){if(CP(t))return;e.movedSet.add(t);var n=null;r&&Cz(r)&&(n=r.__sn.id),n&&(e.movedMap[CF(t.__sn.id,n)]=!0)}else e.addedSet.add(t),e.droppedSet.delete(t);CN(t,e.blockClass)||t.childNodes.forEach(function(t){return e.genAdds(t)})}}}return e.prototype.init=function(e){var t=this;["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","recordCanvas","inlineImages","slimDOMOptions","doc","mirror","iframeManager","shadowDomManager","canvasManager"].forEach(function(r){t[r]=e[r]})},e.prototype.freeze=function(){this.frozen=!0,this.canvasManager.freeze()},e.prototype.unfreeze=function(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()},e.prototype.isFrozen=function(){return this.frozen},e.prototype.lock=function(){this.locked=!0,this.canvasManager.lock()},e.prototype.unlock=function(){this.locked=!1,this.canvasManager.unlock(),this.emit()},e.prototype.reset=function(){this.shadowDomManager.reset(),this.canvasManager.reset()},e}(),CH=[],CW="u">typeof CSSGroupingRule,CG="u">typeof CSSMediaRule,CZ="u">typeof CSSSupportsRule,CK="u">typeof CSSConditionRule;function CX(e){try{if("composedPath"in e){var t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0];return e.target}catch(t){return e.target}}function CJ(e,t){var r,n,i=new Cq;CH.push(i),i.init(e);var o=window.MutationObserver||window.__rrMutationObserver,a=null==(n=null==(r=null==window?void 0:window.Zone)?void 0:r.__symbol__)?void 0:n.call(r,"MutationObserver");a&&window[a]&&(o=window[a]);var s=new o(i.processMutations.bind(i));return s.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),s}function CQ(e){var t=e.mouseInteractionCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.sampling;if(!1===o.mouseInteraction)return function(){};var a=!0===o.mouseInteraction||void 0===o.mouseInteraction?{}:o.mouseInteraction,s=[];return Object.keys(Cf).filter(function(e){return Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==a[e]}).forEach(function(e){var o=e.toLowerCase(),a=function(e){return function(r){var o=CX(r);if(!CN(o,i)){var a=CD(r)?r.changedTouches[0]:r;if(a){var s=n.getId(o),u=a.clientX,c=a.clientY;t({type:Cf[e],id:s,x:u,y:c})}}}}(e);s.push(CT(o,a,r))}),function(){s.forEach(function(e){return e()})}}function C0(e){var t=e.scrollCb,r=e.doc,n=e.mirror,i=e.blockClass;return CT("scroll",CO(function(e){var o=CX(e);if(o&&!CN(o,i)){var a=n.getId(o);if(o===r){var s=r.scrollingElement||r.documentElement;t({id:a,x:s.scrollLeft,y:s.scrollTop})}else t({id:a,x:o.scrollLeft,y:o.scrollTop})}},e.sampling.scroll||100),r)}function C1(e,t){var r=R1({},e);return t||delete r.userTriggered,r}var C2=["INPUT","TEXTAREA","SELECT"],C6=new WeakMap;function C3(e){return function(e,t){if(CW&&e.parentRule instanceof CSSGroupingRule||CG&&e.parentRule instanceof CSSMediaRule||CZ&&e.parentRule instanceof CSSSupportsRule||CK&&e.parentRule instanceof CSSConditionRule){var r=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(r)}else t.unshift(r=Array.from(e.parentStyleSheet.cssRules).indexOf(e));return t}(e,[])}function C4(e,t){void 0===t&&(t={});var r,n,i=e.doc.defaultView;if(!i)return function(){};!function(e,t){var r=e.mutationCb,n=e.mousemoveCb,i=e.mouseInteractionCb,o=e.scrollCb,a=e.viewportResizeCb,s=e.inputCb,u=e.mediaInteractionCb,c=e.styleSheetRuleCb,l=e.styleDeclarationCb,f=e.canvasMutationCb,d=e.fontCb;e.mutationCb=function(){for(var e=[],n=0;ntypeof DragEvent&&e instanceof DragEvent?Cl.Drag:e instanceof MouseEvent?Cl.MouseMove:Cl.TouchMove)},a,{trailing:!1}),f=[CT("mousemove",l,n),CT("touchmove",l,n),CT("drag",l,n)];return function(){f.forEach(function(e){return e()})}}(e),s=CQ(e),u=C0(e),c=function(e){var t=e.viewportResizeCb,r=-1,n=-1;return CT("resize",CO(function(){var e=CC(),i=CI();r===e&&n===i||(t({width:Number(i),height:Number(e)}),r=e,n=i)},200),window)}(e),l=function(e){var t=e.inputCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.ignoreClass,a=e.maskInputOptions,s=e.maskInputFn,u=e.sampling,c=e.userTriggeredOnInput;function l(e){var t=CX(e),n=e.isTrusted;if(t&&"OPTION"===t.tagName&&(t=t.parentElement),t&&t.tagName&&!(0>C2.indexOf(t.tagName))&&!CN(t,i)){var u=t.type;if(!t.classList.contains(o)){var l=t.value,d=!1;"radio"===u||"checkbox"===u?d=t.checked:(a[t.tagName.toLowerCase()]||a[u])&&(l=R5({maskInputOptions:a,tagName:t.tagName,type:u,value:l,maskInputFn:s})),f(t,C1({text:l,isChecked:d,userTriggered:n},c));var h=t.name;"radio"===u&&h&&d&&r.querySelectorAll('input[type="radio"][name="'.concat(h,'"]')).forEach(function(e){e!==t&&f(e,C1({text:e.value,isChecked:!d,userTriggered:!1},c))})}}}function f(e,r){var i=C6.get(e);if(!i||i.text!==r.text||i.isChecked!==r.isChecked){C6.set(e,r);var o=n.getId(e);t(R1(R1({},r),{id:o}))}}var d=("last"===u.input?["change"]:["input","change"]).map(function(e){return CT(e,l,r)}),h=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value"),p=[[HTMLInputElement.prototype,"value"],[HTMLInputElement.prototype,"checked"],[HTMLSelectElement.prototype,"value"],[HTMLTextAreaElement.prototype,"value"],[HTMLSelectElement.prototype,"selectedIndex"],[HTMLOptionElement.prototype,"selected"]];return h&&h.set&&d.push.apply(d,R3([],R6(p.map(function(e){return CM(e[0],e[1],{set:function(){l({target:this})}})})),!1)),function(){d.forEach(function(e){return e()})}}(e),f=function(e){var t=e.mediaInteractionCb,r=e.blockClass,n=e.mirror,i=e.sampling,o=function(e){return CO(function(i){var o=CX(i);if(o&&!CN(o,r)){var a=o,s=a.currentTime,u=a.volume,c=a.muted;t({type:e,id:n.getId(o),currentTime:s,volume:u,muted:c})}},i.media||500)},a=[CT("play",o(0)),CT("pause",o(1)),CT("seeked",o(2)),CT("volumechange",o(3))];return function(){a.forEach(function(e){return e()})}}(e),d=function(e,t){var r=e.styleSheetRuleCb,n=e.mirror,i=t.win,o=i.CSSStyleSheet.prototype.insertRule;i.CSSStyleSheet.prototype.insertRule=function(e,t){var i=n.getId(this.ownerNode);return -1!==i&&r({id:i,adds:[{rule:e,index:t}]}),o.apply(this,arguments)};var a=i.CSSStyleSheet.prototype.deleteRule;i.CSSStyleSheet.prototype.deleteRule=function(e){var t=n.getId(this.ownerNode);return -1!==t&&r({id:t,removes:[{index:e}]}),a.apply(this,arguments)};var s={};CW?s.CSSGroupingRule=i.CSSGroupingRule:(CG&&(s.CSSMediaRule=i.CSSMediaRule),CK&&(s.CSSConditionRule=i.CSSConditionRule),CZ&&(s.CSSSupportsRule=i.CSSSupportsRule));var u={};return Object.entries(s).forEach(function(e){var t=R6(e,2),i=t[0],o=t[1];u[i]={insertRule:o.prototype.insertRule,deleteRule:o.prototype.deleteRule},o.prototype.insertRule=function(e,t){var o=n.getId(this.parentStyleSheet.ownerNode);return -1!==o&&r({id:o,adds:[{rule:e,index:R3(R3([],R6(C3(this)),!1),[t||0],!1)}]}),u[i].insertRule.apply(this,arguments)},o.prototype.deleteRule=function(e){var t=n.getId(this.parentStyleSheet.ownerNode);return -1!==t&&r({id:t,removes:[{index:R3(R3([],R6(C3(this)),!1),[e],!1)}]}),u[i].deleteRule.apply(this,arguments)}}),function(){i.CSSStyleSheet.prototype.insertRule=o,i.CSSStyleSheet.prototype.deleteRule=a,Object.entries(s).forEach(function(e){var t=R6(e,2),r=t[0],n=t[1];n.prototype.insertRule=u[r].insertRule,n.prototype.deleteRule=u[r].deleteRule})}}(e,{win:i}),h=function(e,t){var r=e.styleDeclarationCb,n=e.mirror,i=t.win,o=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=function(e,t,i){var a,s,u=n.getId(null==(s=null==(a=this.parentRule)?void 0:a.parentStyleSheet)?void 0:s.ownerNode);return -1!==u&&r({id:u,set:{property:e,value:t,priority:i},index:C3(this.parentRule)}),o.apply(this,arguments)};var a=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=function(e){var t,i,o=n.getId(null==(i=null==(t=this.parentRule)?void 0:t.parentStyleSheet)?void 0:i.ownerNode);return -1!==o&&r({id:o,remove:{property:e},index:C3(this.parentRule)}),a.apply(this,arguments)},function(){i.CSSStyleDeclaration.prototype.setProperty=o,i.CSSStyleDeclaration.prototype.removeProperty=a}}(e,{win:i}),p=e.collectFonts?function(e){var t=e.fontCb,r=e.doc,n=r.defaultView;if(!n)return function(){};var i=[],o=new WeakMap,a=n.FontFace;n.FontFace=function(e,t,r){var n=new a(e,t,r);return o.set(n,{family:e,buffer:"string"!=typeof t,descriptors:r,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),n};var s=CR(r.fonts,"add",function(e){return function(r){return setTimeout(function(){var e=o.get(r);e&&(t(e),o.delete(r))},0),e.apply(this,[r])}});return i.push(function(){n.FontFace=a}),i.push(s),function(){i.forEach(function(e){return e()})}}(e):function(){},m=[];try{for(var y=R2(e.plugins),g=y.next();!g.done;g=y.next()){var b=g.value;m.push(b.observer(b.callback,i,b.options))}}catch(e){r={error:e}}finally{try{g&&!g.done&&(n=y.return)&&n.call(y)}finally{if(r)throw r.error}}return function(){CH.forEach(function(e){return e.reset()}),o.disconnect(),a(),s(),u(),c(),l(),f(),d(),h(),p(),m.forEach(function(e){return e()})}}for(var C5=function(){function e(e){this.iframes=new WeakMap,this.mutationCb=e.mutationCb}return e.prototype.addIframe=function(e){this.iframes.set(e,!0)},e.prototype.addLoadListener=function(e){this.loadListener=e},e.prototype.attachIframe=function(e,t){var r;this.mutationCb({adds:[{parentId:e.__sn.id,nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),null==(r=this.loadListener)||r.call(this,e)},e}(),C8=function(){function e(e){this.restorePatches=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror;var t=this;this.restorePatches.push(CR(HTMLElement.prototype,"attachShadow",function(e){return function(){var r=e.apply(this,arguments);return this.shadowRoot&&t.addShadowRoot(this.shadowRoot,this.ownerDocument),r}}))}return e.prototype.addShadowRoot=function(e,t){CJ(R1(R1({},this.bypassOptions),{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e),C0(R1(R1({},this.bypassOptions),{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))},e.prototype.observeAttachShadow=function(e){if(e.contentWindow){var t=this;this.restorePatches.push(CR(e.contentWindow.HTMLElement.prototype,"attachShadow",function(r){return function(){var n=r.apply(this,arguments);return this.shadowRoot&&t.addShadowRoot(this.shadowRoot,e.contentDocument),n}}))}},e.prototype.reset=function(){this.restorePatches.forEach(function(e){return e()})},e}(),C9="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",C7="u">2],i+=C9[(3&r[t])<<4|r[t+1]>>4],i+=C9[(15&r[t+1])<<2|r[t+2]>>6],i+=C9[63&r[t+2]];return n%3==2?i=i.substring(0,i.length-1)+"=":n%3==1&&(i=i.substring(0,i.length-2)+"=="),i}(e)}:e instanceof DataView?{rr_type:e.constructor.name,args:[In(e.buffer,t,r),e.byteOffset,e.byteLength]}:e instanceof HTMLImageElement?{rr_type:e.constructor.name,src:e.src}:e instanceof ImageData?{rr_type:e.constructor.name,args:[In(e.data,t,r),e.width,e.height]}:Io(e,t)||"object"==typeof e?{rr_type:e.constructor.name,index:Ir(e,t,r)}:e}var Ii=function(e,t,r){return R3([],R6(e),!1).map(function(e){return In(e,t,r)})},Io=function(e,t){return!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(function(e){return"function"==typeof t[e]}).find(function(r){return e instanceof t[r]})};function Ia(e,t,r,n,i,o){var a,s,u=[],c=Object.getOwnPropertyNames(e),l=function(a){try{if("function"!=typeof e[a])return"continue";var s=CR(e,a,function(s){return function(){for(var u=[],c=0;ct.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);it.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}(e,["type"])}),i=r[0].type;this.mutationCb({id:t,type:i,commands:n}),this.pendingCanvasMutations.delete(e)}}},e}();function Il(e){return R1(R1({},e),{timestamp:Date.now()})}var If={map:{},getId:function(e){return e&&e.__sn?e.__sn.id:-1},getNode:function(e){return this.map[e]||null},removeNodeFromMap:function(e){var t=this,r=e.__sn&&e.__sn.id;delete this.map[r],e.childNodes&&e.childNodes.forEach(function(e){return t.removeNodeFromMap(e)})},has:function(e){return this.map.hasOwnProperty(e)},reset:function(){this.map={}}};function Id(e){void 0===e&&(e={});var t=e.emit,r=e.checkoutEveryNms,n=e.checkoutEveryNth,i=e.blockClass,o=void 0===i?"rr-block":i,a=e.blockSelector,s=void 0===a?null:a,u=e.ignoreClass,c=void 0===u?"rr-ignore":u,l=e.maskTextClass,f=void 0===l?"rr-mask":l,d=e.maskTextSelector,h=void 0===d?null:d,p=e.inlineStylesheet,m=void 0===p||p,y=e.maskAllInputs,g=e.maskInputOptions,b=e.slimDOMOptions,v=e.maskInputFn,_=e.maskTextFn,S=e.hooks,E=e.packFn,w=e.sampling,T=void 0===w?{}:w,x=e.mousemoveWait,A=e.recordCanvas,O=void 0!==A&&A,M=e.userTriggeredOnInput,R=void 0!==M&&M,C=e.collectFonts,I=void 0!==C&&C,N=e.inlineImages,P=void 0!==N&&N,k=e.plugins,D=e.keepIframeSrcFn,L=void 0===D?function(){return!1}:D;if(!t)throw Error("emit function is required");void 0!==x&&void 0===T.mousemove&&(T.mousemove=x);var j,U,B=!0===y?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:void 0!==g?g:{password:!0},F=!0===b||"all"===b?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===b,headMetaDescKeywords:"all"===b}:b||{};void 0===j&&(j=window),"NodeList"in j&&!j.NodeList.prototype.forEach&&(j.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in j&&!j.DOMTokenList.prototype.forEach&&(j.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=function(e){if(!(0 in arguments))throw TypeError("1 argument is required");do if(this===e)return!0;while(e=e&&e.parentNode);return!1});var z=0;Is=function(e,i){var o;if((null==(o=CH[0])?void 0:o.isFrozen())&&e.type!==Cc.FullSnapshot&&(e.type!==Cc.IncrementalSnapshot||e.data.source!==Cl.Mutation)&&CH.forEach(function(e){return e.unfreeze()}),t(function(e){var t,r;try{for(var n=R2(k||[]),i=n.next();!i.done;i=n.next()){var o=i.value;o.eventProcessor&&(e=o.eventProcessor(e))}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}return E&&(e=E(e)),e}(e),i),e.type===Cc.FullSnapshot)U=e,z=0;else if(e.type===Cc.IncrementalSnapshot){if(e.data.source===Cl.Mutation&&e.data.isAttachIframe)return;z++;var a=n&&z>=n,s=r&&e.timestamp-U.timestamp>r;(a||s)&&Iu(!0)}};var $=function(e){Is(Il({type:Cc.IncrementalSnapshot,data:R1({source:Cl.Mutation},e)}))},V=function(e){return Is(Il({type:Cc.IncrementalSnapshot,data:R1({source:Cl.Scroll},e)}))},Y=function(e){return Is(Il({type:Cc.IncrementalSnapshot,data:R1({source:Cl.CanvasMutation},e)}))},q=new C5({mutationCb:$}),H=new Ic({recordCanvas:O,mutationCb:Y,win:window,blockClass:o,mirror:If}),W=new C8({mutationCb:$,scrollCb:V,bypassOptions:{blockClass:o,blockSelector:s,maskTextClass:f,maskTextSelector:h,inlineStylesheet:m,maskInputOptions:B,maskTextFn:_,maskInputFn:v,recordCanvas:O,inlineImages:P,sampling:T,slimDOMOptions:F,iframeManager:q,canvasManager:H},mirror:If});Iu=function(e){void 0===e&&(e=!1),Is(Il({type:Cc.Meta,data:{href:window.location.href,width:CI(),height:CC()}}),e),CH.forEach(function(e){return e.lock()});var t,r,n,i,a=R6(function(e,t){var r=t||{},n=r.blockClass,i=void 0===n?"rr-block":n,o=r.blockSelector,a=void 0===o?null:o,s=r.maskTextClass,u=void 0===s?"rr-mask":s,c=r.maskTextSelector,l=void 0===c?null:c,f=r.inlineStylesheet,d=void 0===f||f,h=r.inlineImages,p=void 0!==h&&h,m=r.recordCanvas,y=void 0!==m&&m,g=r.maskAllInputs,b=void 0!==g&&g,v=r.maskTextFn,_=r.maskInputFn,S=r.slimDOM,E=void 0!==S&&S,w=r.dataURLOptions,T=r.preserveWhiteSpace,x=r.onSerialize,A=r.onIframeLoad,O=r.iframeLoadTimeout,M=r.keepIframeSrcFn,R={};return[Cw(e,{doc:e,map:R,blockClass:i,blockSelector:a,maskTextClass:u,maskTextSelector:l,skipChild:!1,inlineStylesheet:d,maskInputOptions:!0===b?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:!1===b?{password:!0}:b,maskTextFn:v,maskInputFn:_,slimDOMOptions:!0===E||"all"===E?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===E,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===E?{}:E,dataURLOptions:w,inlineImages:p,recordCanvas:y,preserveWhiteSpace:T,onSerialize:x,onIframeLoad:A,iframeLoadTimeout:O,keepIframeSrcFn:void 0===M?function(){return!1}:M}),R]}(document,{blockClass:o,blockSelector:s,maskTextClass:f,maskTextSelector:h,inlineStylesheet:m,maskAllInputs:B,maskTextFn:_,slimDOM:F,recordCanvas:O,inlineImages:P,onSerialize:function(e){CL(e)&&q.addIframe(e),Cj(e)&&W.addShadowRoot(e.shadowRoot,document)},onIframeLoad:function(e,t){q.attachIframe(e,t),W.observeAttachShadow(e)},keepIframeSrcFn:L}),2),u=a[0],c=a[1];if(!u)return console.warn("Failed to snapshot the document");If.map=c,Is(Il({type:Cc.FullSnapshot,data:{node:u,initialOffset:{left:void 0!==window.pageXOffset?window.pageXOffset:(null==document?void 0:document.documentElement.scrollLeft)||(null==(r=null==(t=null==document?void 0:document.body)?void 0:t.parentElement)?void 0:r.scrollLeft)||(null==document?void 0:document.body.scrollLeft)||0,top:void 0!==window.pageYOffset?window.pageYOffset:(null==document?void 0:document.documentElement.scrollTop)||(null==(i=null==(n=null==document?void 0:document.body)?void 0:n.parentElement)?void 0:i.scrollTop)||(null==document?void 0:document.body.scrollTop)||0}}})),CH.forEach(function(e){return e.unlock()})};try{var G=[];G.push(CT("DOMContentLoaded",function(){Is(Il({type:Cc.DomContentLoaded,data:{}}))}));var Z=function(e){var t;return C4({mutationCb:$,mousemoveCb:function(e,t){return Is(Il({type:Cc.IncrementalSnapshot,data:{source:t,positions:e}}))},mouseInteractionCb:function(e){return Is(Il({type:Cc.IncrementalSnapshot,data:R1({source:Cl.MouseInteraction},e)}))},scrollCb:V,viewportResizeCb:function(e){return Is(Il({type:Cc.IncrementalSnapshot,data:R1({source:Cl.ViewportResize},e)}))},inputCb:function(e){return Is(Il({type:Cc.IncrementalSnapshot,data:R1({source:Cl.Input},e)}))},mediaInteractionCb:function(e){return Is(Il({type:Cc.IncrementalSnapshot,data:R1({source:Cl.MediaInteraction},e)}))},styleSheetRuleCb:function(e){return Is(Il({type:Cc.IncrementalSnapshot,data:R1({source:Cl.StyleSheetRule},e)}))},styleDeclarationCb:function(e){return Is(Il({type:Cc.IncrementalSnapshot,data:R1({source:Cl.StyleDeclaration},e)}))},canvasMutationCb:Y,fontCb:function(e){return Is(Il({type:Cc.IncrementalSnapshot,data:R1({source:Cl.Font},e)}))},blockClass:o,ignoreClass:c,maskTextClass:f,maskTextSelector:h,maskInputOptions:B,inlineStylesheet:m,sampling:T,recordCanvas:O,inlineImages:P,userTriggeredOnInput:R,collectFonts:I,doc:e,maskInputFn:v,maskTextFn:_,blockSelector:s,slimDOMOptions:F,mirror:If,iframeManager:q,shadowDomManager:W,canvasManager:H,plugins:(null==(t=null==k?void 0:k.filter(function(e){return e.observer}))?void 0:t.map(function(e){return{observer:e.observer,options:e.options,callback:function(t){return Is(Il({type:Cc.Plugin,data:{plugin:e.name,payload:t}}))}}}))||[]},S)};q.addLoadListener(function(e){G.push(Z(e.contentDocument))});var K=function(){Iu(),G.push(Z(document))};return"interactive"===document.readyState||"complete"===document.readyState?K():G.push(CT("load",function(){Is(Il({type:Cc.Load,data:{}})),K()},window)),function(){G.forEach(function(e){return e()})}}catch(e){console.warn(e)}}Id.addCustomEvent=function(e,t){if(!Is)throw Error("please add custom event after start recording");Is(Il({type:Cc.Custom,data:{tag:e,payload:t}}))},Id.freezePage=function(){CH.forEach(function(e){return e.freeze()})},Id.takeFullSnapshot=function(e){if(!Iu)throw Error("please take full snapshot after start recording");Iu(e)},Id.mirror=If;var Ih=Uint8Array,Ip=Uint16Array,Im=Uint32Array,Iy=new Ih([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Ig=new Ih([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Ib=new Ih([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Iv=function(e,t){for(var r=new Ip(31),n=0;n<31;++n)r[n]=t+=1<>>1|(21845&Ix)<<1;IA=(61680&(IA=(52428&IA)>>>2|(13107&IA)<<2))>>>4|(3855&IA)<<4,IT[Ix]=((65280&IA)>>>8|(255&IA)<<8)>>>1}var IO=function(e,t,r){for(var n=e.length,i=0,o=new Ip(t);i>>u]=c}else for(a=new Ip(n),i=0;i>>15-e[i]);return a},IM=new Ih(288);for(Ix=0;Ix<144;++Ix)IM[Ix]=8;for(Ix=144;Ix<256;++Ix)IM[Ix]=9;for(Ix=256;Ix<280;++Ix)IM[Ix]=7;for(Ix=280;Ix<288;++Ix)IM[Ix]=8;var IR=new Ih(32);for(Ix=0;Ix<32;++Ix)IR[Ix]=5;var IC=IO(IM,9,0),II=IO(IR,5,0),IN=function(e){return(e+7)/8|0},IP=function(e,t,r){r<<=7&t;var n=t/8|0;e[n]|=r,e[n+1]|=r>>>8},Ik=function(e,t,r){r<<=7&t;var n=t/8|0;e[n]|=r,e[n+1]|=r>>>8,e[n+2]|=r>>>16},ID=function(e,t){for(var r=[],n=0;nd&&(d=o[n].s);var h=new Ip(d+1),p=IL(r[l-1],h,0);if(p>t){n=0;var m=0,y=p-t,g=1<t))break;m+=g-(1<>>=y;m>0;){var v=o[n].s;h[v]=0&&m;--n){var _=o[n].s;h[_]==t&&(--h[_],++m)}p=t}return[new Ih(h),p]},IL=function(e,t,r){return -1==e.s?Math.max(IL(e.l,t,r+1),IL(e.r,t,r+1)):t[e.s]=r},Ij=function(e){for(var t=e.length;t&&!e[--t];);for(var r=new Ip(++t),n=0,i=e[0],o=1,a=function(e){r[n++]=e},s=1;s<=t;++s)if(e[s]==i&&s!=t)++o;else{if(!i&&o>2){for(;o>138;o-=138)a(32754);o>2&&(a(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(a(i),--o;o>6;o-=6)a(8304);o>2&&(a(o-3<<5|8208),o=0)}for(;o--;)a(i);o=1,i=e[s]}return[r.subarray(0,n),t]},IU=function(e,t){for(var r=0,n=0;n>>8,e[i+2]=255^e[i],e[i+3]=255^e[i+1];for(var o=0;o4&&!A[Ib[M-1]];--M);var R,C,I,N,P=c+5<<3,k=IU(i,IM)+IU(o,IR)+a,D=IU(i,d)+IU(o,m)+a+14+3*M+IU(w,A)+(2*w[16]+3*w[17]+7*w[18]);if(P<=k&&P<=D)return IB(t,l,e.subarray(u,u+c));if(IP(t,l,1+(D15&&(IP(t,l,B[T]>>>5&127),l+=B[T]>>>12)}}}else R=IC,C=IM,I=II,N=IR;for(T=0;T255){Ik(t,l,R[(F=n[T]>>>18&31)+257]),l+=C[F+257],F>7&&(IP(t,l,n[T]>>>23&31),l+=Iy[F]);var z=31&n[T];Ik(t,l,I[z]),l+=N[z],z>3&&(Ik(t,l,n[T]>>>5&8191),l+=Ig[z])}else Ik(t,l,R[n[T]]),l+=C[n[T]];return Ik(t,l,R[256]),l+C[256]},Iz=new Im([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),I$=new Ih(0),IV=function(e,t,r,n,i,o){var a=e.length,s=new Ih(n+a+5*(1+Math.ceil(a/7e3))+i),u=s.subarray(n,s.length-i),c=0;if(!t||a<8)for(var l=0;l<=a;l+=65535){var f=l+65535;f>=a&&(u[c>>3]=o),c=IB(u,c+1,e.subarray(l,f))}else{for(var d=Iz[t-1],h=d>>>13,p=8191&d,m=(1<7e3||A>24576)&&N>423){c=IF(e,u,0,S,E,w,x,A,M,l-M,c),A=T=x=0,M=l;for(var P=0;P<286;++P)E[P]=0;for(P=0;P<30;++P)w[P]=0}var k=2,D=0,L=p,j=C-I&32767;if(N>2&&R==_(l-j))for(var U=Math.min(h,N)-1,B=Math.min(32767,l),F=Math.min(258,N);j<=B&&--L&&C!=I;){if(e[l+k]==e[l+k-j]){for(var z=0;zk){if(k=z,D=j,z>U)break;var $=Math.min(j,z-2),V=0;for(P=0;P<$;++P){var Y=l-j+P+32768&32767,q=Y-y[Y]+32768&32767;q>V&&(V=q,I=Y)}}}j+=(C=I)-(I=y[C])+32768&32767}if(D){S[A++]=0x10000000|IE[k]<<18|Iw[D];var H=31&IE[k],W=31&Iw[D];x+=Iy[H]+Ig[W],++E[257+H],++w[W],O=l+k,++T}else S[A++]=e[l],++E[e[l]]}}c=IF(e,u,o,S,E,w,x,A,M,l-M,c),!o&&7&c&&(c=IB(u,c+1,I$))}return function(e,t,r){(null==t||t<0)&&(t=0),(null==r||r>e.length)&&(r=e.length);var n=new(2==e.BYTES_PER_ELEMENT?Ip:4==e.BYTES_PER_ELEMENT?Im:Ih)(r-t);return n.set(e.subarray(t,r)),n}(s,0,n+IN(c)+i)},IY=function(){for(var e=new Int32Array(256),t=0;t<256;++t){for(var r=t,n=9;--n;)r=(1&r&&-0x12477ce0)^r>>>1;e[t]=r}return e}(),Iq=function(e,t,r){for(;r;++t)e[t]=r,r>>>=8};function IH(e,t){t||(t={});var r=function(){var e=-1;return{p:function(t){for(var r=e,n=0;n>>8;e=r},d:function(){return~e}}}(),n=e.length;r.p(e);var i,o,a,s,u,c=(i=e,o=t,a=function(e){return 10+(e.filename&&e.filename.length+1||0)}(t),s=8,IV(i,null==o.level?6:o.level,null==o.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(i.length)))):12+o.mem,a,s,!u)),l=c.length;return function(e,t){var r=t.filename;if(e[0]=31,e[1]=139,e[2]=8,e[8]=t.level<2?4:2*(9==t.level),e[9]=3,0!=t.mtime&&Iq(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),r){e[3]=8;for(var n=0;n<=r.length;++n)e[n+10]=r.charCodeAt(n)}}(c,t),Iq(c,l-8,r.d()),Iq(c,l-4,n),c}var IW="u">typeof TextDecoder&&new TextDecoder;try{IW.decode(I$,{stream:!0})}catch(e){}var IG=null;try{IG=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch(e){}function IZ(e,t,r){this.low=0|e,this.high=0|t,this.unsigned=!!r}function IK(e){return!0===(e&&e.__isLong__)}function IX(e){var t=Math.clz32(e&-e);return e?31-t:t}IZ.prototype.__isLong__,Object.defineProperty(IZ.prototype,"__isLong__",{value:!0}),IZ.isLong=IK;var IJ={},IQ={};function I0(e,t){var r,n,i;return t?(i=0<=(e>>>=0)&&e<256)&&(n=IQ[e])?n:(r=I2(e,0,!0),i&&(IQ[e]=r),r):(i=-128<=(e|=0)&&e<128)&&(n=IJ[e])?n:(r=I2(e,e<0?-1:0,!1),i&&(IJ[e]=r),r)}function I1(e,t){if(isNaN(e))return t?Nt:Ne;if(t){if(e<0)return Nt;if(e>=I8)return Na}else{if(e<=-I9)return Ns;if(e+1>=I9)return No}return e<0?I1(-e,t).neg():I2(e%I5|0,e/I5|0,t)}function I2(e,t,r){return new IZ(e,t,r)}IZ.fromInt=I0,IZ.fromNumber=I1,IZ.fromBits=I2;var I6=Math.pow;function I3(e,t,r){if(0===e.length)throw Error("empty string");if("number"==typeof t?(r=t,t=!1):t=!!t,"NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return t?Nt:Ne;if((r=r||10)<2||360)throw Error("interior hyphen");if(0===n)return I3(e.substring(1),t,r).neg();for(var n,i=I1(I6(r,8)),o=Ne,a=0;a>>0:this.low},Nu.toNumber=function(){return this.unsigned?(this.high>>>0)*I5+(this.low>>>0):this.high*I5+(this.low>>>0)},Nu.toString=function(e){if((e=e||10)<2||36>>0).toString(e);if((o=s).isZero())return u+a;for(;u.length<6;)u="0"+u;a=""+u+a}},Nu.getHighBits=function(){return this.high},Nu.getHighBitsUnsigned=function(){return this.high>>>0},Nu.getLowBits=function(){return this.low},Nu.getLowBitsUnsigned=function(){return this.low>>>0},Nu.getNumBitsAbs=function(){if(this.isNegative())return this.eq(Ns)?64:this.neg().getNumBitsAbs();for(var e=0!=this.high?this.high:this.low,t=31;t>0&&!(e&1<=0},Nu.isOdd=function(){return!(1&~this.low)},Nu.isEven=function(){return!(1&this.low)},Nu.equals=function(e){return IK(e)||(e=I4(e)),(this.unsigned===e.unsigned||this.high>>>31!=1||e.high>>>31!=1)&&this.high===e.high&&this.low===e.low},Nu.eq=Nu.equals,Nu.notEquals=function(e){return!this.eq(e)},Nu.neq=Nu.notEquals,Nu.ne=Nu.notEquals,Nu.lessThan=function(e){return 0>this.comp(e)},Nu.lt=Nu.lessThan,Nu.lessThanOrEqual=function(e){return 0>=this.comp(e)},Nu.lte=Nu.lessThanOrEqual,Nu.le=Nu.lessThanOrEqual,Nu.greaterThan=function(e){return this.comp(e)>0},Nu.gt=Nu.greaterThan,Nu.greaterThanOrEqual=function(e){return this.comp(e)>=0},Nu.gte=Nu.greaterThanOrEqual,Nu.ge=Nu.greaterThanOrEqual,Nu.compare=function(e){if(IK(e)||(e=I4(e)),this.eq(e))return 0;var t=this.isNegative(),r=e.isNegative();return t&&!r?-1:!t&&r?1:this.unsigned?e.high>>>0>this.high>>>0||e.high===this.high&&e.low>>>0>this.low>>>0?-1:1:this.sub(e).isNegative()?-1:1},Nu.comp=Nu.compare,Nu.negate=function(){return!this.unsigned&&this.eq(Ns)?Ns:this.not().add(Nr)},Nu.neg=Nu.negate,Nu.add=function(e){IK(e)||(e=I4(e));var t,r,n,i=this.high>>>16,o=65535&this.high,a=this.low>>>16,s=65535&this.low,u=e.high>>>16,c=65535&e.high,l=e.low>>>16,f=0;return n=0+((t=0+((r=0+(s+(65535&e.low)))>>>16)+(a+l))>>>16),f+=(n+=o+c)>>>16,f+=i+u,I2((t&=65535)<<16|(r&=65535),(f&=65535)<<16|(n&=65535),this.unsigned)},Nu.subtract=function(e){return IK(e)||(e=I4(e)),this.add(e.neg())},Nu.sub=Nu.subtract,Nu.multiply=function(e){if(this.isZero())return this;if(IK(e)||(e=I4(e)),IG)return I2(IG.mul(this.low,this.high,e.low,e.high),IG.get_high(),this.unsigned);if(e.isZero())return this.unsigned?Nt:Ne;if(this.eq(Ns))return e.isOdd()?Ns:Ne;if(e.eq(Ns))return this.isOdd()?Ns:Ne;if(this.isNegative())return e.isNegative()?this.neg().mul(e.neg()):this.neg().mul(e).neg();if(e.isNegative())return this.mul(e.neg()).neg();if(this.lt(I7)&&e.lt(I7))return I1(this.toNumber()*e.toNumber(),this.unsigned);var t,r,n,i=this.high>>>16,o=65535&this.high,a=this.low>>>16,s=65535&this.low,u=e.high>>>16,c=65535&e.high,l=e.low>>>16,f=65535&e.low,d=0;return n=0+((t=0+((r=0+s*f)>>>16)+a*f)>>>16),t&=65535,n+=(t+=s*l)>>>16,d+=(n+=o*f)>>>16,n&=65535,d+=(n+=a*l)>>>16,n&=65535,d+=(n+=s*c)>>>16,d+=i*f+o*l+a*c+s*u,I2((t&=65535)<<16|(r&=65535),(d&=65535)<<16|(n&=65535),this.unsigned)},Nu.mul=Nu.multiply,Nu.divide=function(e){if(IK(e)||(e=I4(e)),e.isZero())throw Error("division by zero");if(IG)return this.unsigned||-0x80000000!==this.high||-1!==e.low||-1!==e.high?I2((this.unsigned?IG.div_u:IG.div_s)(this.low,this.high,e.low,e.high),IG.get_high(),this.unsigned):this;if(this.isZero())return this.unsigned?Nt:Ne;if(this.unsigned){if(e.unsigned||(e=e.toUnsigned()),e.gt(this))return Nt;if(e.gt(this.shru(1)))return Nn;n=Nt}else{if(this.eq(Ns))return e.eq(Nr)||e.eq(Ni)?Ns:e.eq(Ns)?Nr:(t=this.shr(1).div(e).shl(1)).eq(Ne)?e.isNegative()?Nr:Ni:(r=this.sub(e.mul(t)),n=t.add(r.div(e)));if(e.eq(Ns))return this.unsigned?Nt:Ne;if(this.isNegative())return e.isNegative()?this.neg().div(e.neg()):this.neg().div(e).neg();if(e.isNegative())return this.div(e.neg()).neg();n=Ne}for(r=this;r.gte(e);){t=Math.max(1,Math.floor(r.toNumber()/e.toNumber()));for(var t,r,n,i=Math.ceil(Math.log(t)/Math.LN2),o=i<=48?1:I6(2,i-48),a=I1(t),s=a.mul(e);s.isNegative()||s.gt(r);)s=(a=I1(t-=o,this.unsigned)).mul(e);a.isZero()&&(a=Nr),n=n.add(a),r=r.sub(s)}return n},Nu.div=Nu.divide,Nu.modulo=function(e){return IK(e)||(e=I4(e)),IG?I2((this.unsigned?IG.rem_u:IG.rem_s)(this.low,this.high,e.low,e.high),IG.get_high(),this.unsigned):this.sub(this.div(e).mul(e))},Nu.mod=Nu.modulo,Nu.rem=Nu.modulo,Nu.not=function(){return I2(~this.low,~this.high,this.unsigned)},Nu.countLeadingZeros=function(){return this.high?Math.clz32(this.high):Math.clz32(this.low)+32},Nu.clz=Nu.countLeadingZeros,Nu.countTrailingZeros=function(){return this.low?IX(this.low):IX(this.high)+32},Nu.ctz=Nu.countTrailingZeros,Nu.and=function(e){return IK(e)||(e=I4(e)),I2(this.low&e.low,this.high&e.high,this.unsigned)},Nu.or=function(e){return IK(e)||(e=I4(e)),I2(this.low|e.low,this.high|e.high,this.unsigned)},Nu.xor=function(e){return IK(e)||(e=I4(e)),I2(this.low^e.low,this.high^e.high,this.unsigned)},Nu.shiftLeft=function(e){return IK(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?I2(this.low<>>32-e,this.unsigned):I2(0,this.low<>>e|this.high<<32-e,this.high>>e,this.unsigned):I2(this.high>>e-32,this.high>=0?0:-1,this.unsigned)},Nu.shr=Nu.shiftRight,Nu.shiftRightUnsigned=function(e){return IK(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?I2(this.low>>>e|this.high<<32-e,this.high>>>e,this.unsigned):I2(32===e?this.high:this.high>>>e-32,0,this.unsigned)},Nu.shru=Nu.shiftRightUnsigned,Nu.shr_u=Nu.shiftRightUnsigned,Nu.rotateLeft=function(e){var t;return IK(e)&&(e=e.toInt()),0==(e&=63)?this:32===e?I2(this.high,this.low,this.unsigned):e<32?(t=32-e,I2(this.low<>>t,this.high<>>t,this.unsigned)):(t=32-(e-=32),I2(this.high<>>t,this.low<>>t,this.unsigned))},Nu.rotl=Nu.rotateLeft,Nu.rotateRight=function(e){var t;return IK(e)&&(e=e.toInt()),0==(e&=63)?this:32===e?I2(this.high,this.low,this.unsigned):e<32?(t=32-e,I2(this.high<>>e,this.low<>>e,this.unsigned)):(t=32-(e-=32),I2(this.low<>>e,this.high<>>e,this.unsigned))},Nu.rotr=Nu.rotateRight,Nu.toSigned=function(){return this.unsigned?I2(this.low,this.high,!1):this},Nu.toUnsigned=function(){return this.unsigned?this:I2(this.low,this.high,!0)},Nu.toBytes=function(e){return e?this.toBytesLE():this.toBytesBE()},Nu.toBytesLE=function(){var e=this.high,t=this.low;return[255&t,t>>>8&255,t>>>16&255,t>>>24,255&e,e>>>8&255,e>>>16&255,e>>>24]},Nu.toBytesBE=function(){var e=this.high,t=this.low;return[e>>>24,e>>>16&255,e>>>8&255,255&e,t>>>24,t>>>16&255,t>>>8&255,255&t]},IZ.fromBytes=function(e,t,r){return r?IZ.fromBytesLE(e,t):IZ.fromBytesBE(e,t)},IZ.fromBytesLE=function(e,t){return new IZ(e[0]|e[1]<<8|e[2]<<16|e[3]<<24,e[4]|e[5]<<8|e[6]<<16|e[7]<<24,t)},IZ.fromBytesBE=function(e,t){return new IZ(e[4]<<24|e[5]<<16|e[6]<<8|e[7],e[0]<<24|e[1]<<16|e[2]<<8|e[3],t)};var Nc={},Nl={},Nf=function(e,t){for(var r=Array(arguments.length-1),n=0,i=2,o=!0;i1&&"="===e.charAt(t);)++r;return Math.ceil(3*e.length)/4-r};for(var r=Array(64),n=Array(123),i=0;i<64;)n[r[i]=i<26?i+65:i<52?i+71:i<62?i-4:i-59|43]=i++;t.encode=function(e,t,n){for(var i,o=null,a=[],s=0,u=0;t>2],i=(3&c)<<4,u=1;break;case 1:a[s++]=r[i|c>>4],i=(15&c)<<2,u=2;break;case 2:a[s++]=r[i|c>>6],a[s++]=r[63&c],u=0}s>8191&&((o||(o=[])).push(String.fromCharCode.apply(String,a)),s=0)}return u&&(a[s++]=r[i],a[s++]=61,1===u&&(a[s++]=61)),o?(s&&o.push(String.fromCharCode.apply(String,a.slice(0,s))),o.join("")):String.fromCharCode.apply(String,a.slice(0,s))};var o="invalid encoding";t.decode=function(e,t,r){for(var i,a=r,s=0,u=0;u1)break;if(void 0===(c=n[c]))throw Error(o);switch(s){case 0:i=c,s=1;break;case 1:t[r++]=i<<2|(48&c)>>4,i=c,s=2;break;case 2:t[r++]=(15&i)<<4|(60&c)>>2,i=c,s=3;break;case 3:t[r++]=(3&i)<<6|c,s=0}}if(1===s)throw Error(o);return r-a},t.test=function(e){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}}(Nd);var Nh=Np;function Np(){this._listeners={}}Np.prototype.on=function(e,t,r){return(this._listeners[e]||(this._listeners[e]=[])).push({fn:t,ctx:r||this}),this},Np.prototype.off=function(e,t){if(void 0===e)this._listeners={};else if(void 0===t)this._listeners[e]=[];else for(var r=this._listeners[e],n=0;ntypeof Float32Array?function(){var t=new Float32Array([-0]),r=new Uint8Array(t.buffer),n=128===r[3];function i(e,n,i){t[0]=e,n[i]=r[0],n[i+1]=r[1],n[i+2]=r[2],n[i+3]=r[3]}function o(e,n,i){t[0]=e,n[i]=r[3],n[i+1]=r[2],n[i+2]=r[1],n[i+3]=r[0]}function a(e,n){return r[0]=e[n],r[1]=e[n+1],r[2]=e[n+2],r[3]=e[n+3],t[0]}function s(e,n){return r[3]=e[n],r[2]=e[n+1],r[1]=e[n+2],r[0]=e[n+3],t[0]}e.writeFloatLE=n?i:o,e.writeFloatBE=n?o:i,e.readFloatLE=n?a:s,e.readFloatBE=n?s:a}():function(){function t(e,t,r,n){var i=+(t<0);if(i&&(t=-t),0===t)e(1/t>0?0:0x80000000,r,n);else if(isNaN(t))e(0x7fc00000,r,n);else if(t>34028234663852886e22)e((i<<31|0x7f800000)>>>0,r,n);else if(t<11754943508222875e-54)e((i<<31|Math.round(t/1401298464324817e-60))>>>0,r,n);else{var o=Math.floor(Math.log(t)/Math.LN2);e((i<<31|o+127<<23|8388607&Math.round(t*Math.pow(2,-o)*8388608))>>>0,r,n)}}function r(e,t,r){var n=e(t,r),i=2*(n>>31)+1,o=n>>>23&255,a=8388607&n;return 255===o?a?NaN:1/0*i:0===o?1401298464324817e-60*i*a:i*Math.pow(2,o-150)*(a+8388608)}e.writeFloatLE=t.bind(null,Ng),e.writeFloatBE=t.bind(null,Nb),e.readFloatLE=r.bind(null,Nv),e.readFloatBE=r.bind(null,N_)}(),"u">typeof Float64Array?function(){var t=new Float64Array([-0]),r=new Uint8Array(t.buffer),n=128===r[7];function i(e,n,i){t[0]=e,n[i]=r[0],n[i+1]=r[1],n[i+2]=r[2],n[i+3]=r[3],n[i+4]=r[4],n[i+5]=r[5],n[i+6]=r[6],n[i+7]=r[7]}function o(e,n,i){t[0]=e,n[i]=r[7],n[i+1]=r[6],n[i+2]=r[5],n[i+3]=r[4],n[i+4]=r[3],n[i+5]=r[2],n[i+6]=r[1],n[i+7]=r[0]}function a(e,n){return r[0]=e[n],r[1]=e[n+1],r[2]=e[n+2],r[3]=e[n+3],r[4]=e[n+4],r[5]=e[n+5],r[6]=e[n+6],r[7]=e[n+7],t[0]}function s(e,n){return r[7]=e[n],r[6]=e[n+1],r[5]=e[n+2],r[4]=e[n+3],r[3]=e[n+4],r[2]=e[n+5],r[1]=e[n+6],r[0]=e[n+7],t[0]}e.writeDoubleLE=n?i:o,e.writeDoubleBE=n?o:i,e.readDoubleLE=n?a:s,e.readDoubleBE=n?s:a}():function(){function t(e,t,r,n,i,o){var a,s=+(n<0);if(s&&(n=-n),0===n)e(0,i,o+t),e(1/n>0?0:0x80000000,i,o+r);else if(isNaN(n))e(0,i,o+t),e(0x7ff80000,i,o+r);else if(n>17976931348623157e292)e(0,i,o+t),e((s<<31|0x7ff00000)>>>0,i,o+r);else if(n<22250738585072014e-324)e((a=n/5e-324)>>>0,i,o+t),e((s<<31|a/0x100000000)>>>0,i,o+r);else{var u=Math.floor(Math.log(n)/Math.LN2);1024===u&&(u=1023),e(0x10000000000000*(a=n*Math.pow(2,-u))>>>0,i,o+t),e((s<<31|u+1023<<20|1048576*a&1048575)>>>0,i,o+r)}}function r(e,t,r,n,i){var o=e(n,i+t),a=e(n,i+r),s=2*(a>>31)+1,u=a>>>20&2047,c=0x100000000*(1048575&a)+o;return 2047===u?c?NaN:1/0*s:0===u?5e-324*s*c:s*Math.pow(2,u-1075)*(c+0x10000000000000)}e.writeDoubleLE=t.bind(null,Ng,0,4),e.writeDoubleBE=t.bind(null,Nb,4,0),e.readDoubleLE=r.bind(null,Nv,0,4),e.readDoubleBE=r.bind(null,N_,4,0)}(),e}function Ng(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}function Nb(e,t,r){t[r]=e>>>24,t[r+1]=e>>>16&255,t[r+2]=e>>>8&255,t[r+3]=255&e}function Nv(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function N_(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}var NS=function(e){return null},NE={};!function(e){var t=e;t.length=function(e){for(var t=0,r=0,n=0;n191&&n<224?o[a++]=(31&n)<<6|63&e[t++]:n>239&&n<365?(n=((7&n)<<18|(63&e[t++])<<12|(63&e[t++])<<6|63&e[t++])-65536,o[a++]=55296+(n>>10),o[a++]=56320+(1023&n)):o[a++]=(15&n)<<12|(63&e[t++])<<6|63&e[t++],a>8191&&((i||(i=[])).push(String.fromCharCode.apply(String,o)),a=0);return i?(a&&i.push(String.fromCharCode.apply(String,o.slice(0,a))),i.join("")):String.fromCharCode.apply(String,o.slice(0,a))},t.write=function(e,t,r){for(var n,i,o=r,a=0;a>6|192:(55296==(64512&n)&&56320==(64512&(i=e.charCodeAt(a+1)))?(n=65536+((1023&n)<<10)+(1023&i),++a,t[r++]=n>>18|240,t[r++]=n>>12&63|128):t[r++]=n>>12|224,t[r++]=n>>6&63|128),t[r++]=63&n|128);return r-o}}(NE);var Nw,NT,Nx,NA=function(e,t,r){var n=r||8192,i=n>>>1,o=null,a=n;return function(r){if(r<1||r>i)return e(r);a+r>n&&(o=e(n),a=0);var s=t.call(o,a,a+=r);return 7&a&&(a=1+(7|a)),s}};function NO(){return Nx||(Nx=1,function(e){var t=e;function r(e,t,r){for(var n=Object.keys(t),i=0;i>>0,this.hi=t>>>0}var r=t.zero=new t(0,0);r.toNumber=function(){return 0},r.zzEncode=r.zzDecode=function(){return this},r.length=function(){return 1};var n=t.zeroHash="\0\0\0\0\0\0\0\0";t.fromNumber=function(e){if(0===e)return r;var n=e<0;n&&(e=-e);var i=e>>>0,o=(e-i)/0x100000000>>>0;return n&&(o=~o>>>0,i=~i>>>0,++i>0xffffffff&&(i=0,++o>0xffffffff&&(o=0))),new t(i,o)},t.from=function(n){if("number"==typeof n)return t.fromNumber(n);if(e.isString(n)){if(!e.Long)return t.fromNumber(parseInt(n,10));n=e.Long.fromString(n)}return n.low||n.high?new t(n.low>>>0,n.high>>>0):r},t.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=1+~this.lo>>>0,r=~this.hi>>>0;return t||(r=r+1>>>0),-(t+0x100000000*r)}return this.lo+0x100000000*this.hi},t.prototype.toLong=function(t){return e.Long?new e.Long(0|this.lo,0|this.hi,!!t):{low:0|this.lo,high:0|this.hi,unsigned:!!t}};var i=String.prototype.charCodeAt;return t.fromHash=function(e){return e===n?r:new t((i.call(e,0)|i.call(e,1)<<8|i.call(e,2)<<16|i.call(e,3)<<24)>>>0,(i.call(e,4)|i.call(e,5)<<8|i.call(e,6)<<16|i.call(e,7)<<24)>>>0)},t.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},t.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},t.prototype.zzDecode=function(){var e=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},t.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,r=this.hi>>>24;return 0===r?0===t?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:r<128?9:10},Nw}(),t.isNode=!!(void 0!==o&&o&&o.process&&o.process.versions&&o.process.versions.node),t.global=t.isNode&&o||"u">typeof window&&window||"u">typeof self&&self||o,t.emptyArray=Object.freeze?Object.freeze([]):[],t.emptyObject=Object.freeze?Object.freeze({}):{},t.isInteger=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},t.isString=function(e){return"string"==typeof e||e instanceof String},t.isObject=function(e){return e&&"object"==typeof e},t.isset=t.isSet=function(e,t){var r=e[t];return!(null==r||!e.hasOwnProperty(t))&&("object"!=typeof r||(Array.isArray(r)?r.length:Object.keys(r).length)>0)},t.Buffer=function(){try{var e=t.inquire("buffer").Buffer;return e.prototype.utf8Write?e:null}catch(e){return null}}(),t._Buffer_from=null,t._Buffer_allocUnsafe=null,t.newBuffer=function(e){return"number"==typeof e?t.Buffer?t._Buffer_allocUnsafe(e):new t.Array(e):t.Buffer?t._Buffer_from(e):"u"typeof Uint8Array?Uint8Array:Array,t.Long=t.global.dcodeIO&&t.global.dcodeIO.Long||t.global.Long||t.inquire("long"),t.key2Re=/^true|false|0|1$/,t.key32Re=/^-?(?:0|[1-9][0-9]*)$/,t.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,t.longToHash=function(e){return e?t.LongBits.from(e).toHash():t.LongBits.zeroHash},t.longFromHash=function(e,r){var n=t.LongBits.fromHash(e);return t.Long?t.Long.fromBits(n.lo,n.hi,r):n.toNumber(!!r)},t.merge=r,t.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},t.newError=n,t.ProtocolError=n("ProtocolError"),t.oneOfGetter=function(e){for(var t={},r=0;r-1;--r)if(1===t[e[r]]&&void 0!==this[e[r]]&&null!==this[e[r]])return e[r]}},t.oneOfSetter=function(e){return function(t){for(var r=0;r>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[r++]=127&e.lo|128,e.lo=e.lo>>>7;t[r++]=e.lo}function N$(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}Nj.create=NU(),Nj.alloc=function(e){return new NC.Array(e)},NC.Array!==Array&&(Nj.alloc=NC.pool(Nj.alloc,NC.Array.prototype.subarray)),Nj.prototype._push=function(e,t,r){return this.tail=this.tail.next=new Nk(e,t,r),this.len+=t,this},NF.prototype=Object.create(Nk.prototype),NF.prototype.fn=function(e,t,r){for(;e>127;)t[r++]=127&e|128,e>>>=7;t[r]=e},Nj.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new NF((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<0x10000000?4:5,e)).len,this},Nj.prototype.int32=function(e){return e<0?this._push(Nz,10,NI.fromNumber(e)):this.uint32(e)},Nj.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},Nj.prototype.uint64=function(e){var t=NI.from(e);return this._push(Nz,t.length(),t)},Nj.prototype.int64=Nj.prototype.uint64,Nj.prototype.sint64=function(e){var t=NI.from(e).zzEncode();return this._push(Nz,t.length(),t)},Nj.prototype.bool=function(e){return this._push(NB,1,+!!e)},Nj.prototype.fixed32=function(e){return this._push(N$,4,e>>>0)},Nj.prototype.sfixed32=Nj.prototype.fixed32,Nj.prototype.fixed64=function(e){var t=NI.from(e);return this._push(N$,4,t.lo)._push(N$,4,t.hi)},Nj.prototype.sfixed64=Nj.prototype.fixed64,Nj.prototype.float=function(e){return this._push(NC.float.writeFloatLE,4,e)},Nj.prototype.double=function(e){return this._push(NC.float.writeDoubleLE,8,e)};var NV=NC.Array.prototype.set?function(e,t,r){t.set(e,r)}:function(e,t,r){for(var n=0;n>>0;if(!t)return this._push(NB,1,0);if(NC.isString(e)){var r=Nj.alloc(t=NN.length(e));NN.decode(e,r,0),e=r}return this.uint32(t)._push(NV,t,e)},Nj.prototype.string=function(e){var t=NP.length(e);return t?this.uint32(t)._push(NP.write,t,e):this._push(NB,1,0)},Nj.prototype.fork=function(){return this.states=new NL(this),this.head=this.tail=new Nk(ND,0,0),this.len=0,this},Nj.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new Nk(ND,0,0),this.len=0),this},Nj.prototype.ldelim=function(){var e=this.head,t=this.tail,r=this.len;return this.reset().uint32(r),r&&(this.tail.next=e.next,this.tail=t,this.len+=r),this},Nj.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),r=0;e;)e.fn(e.val,t,r),r+=e.len,e=e.next;return t},Nj._configure=function(e){NM=e,Nj.create=NU(),NM._configure()};var NY=NW,Nq=NR;(NW.prototype=Object.create(Nq.prototype)).constructor=NW;var NH=NO();function NW(){Nq.call(this)}function NG(e,t,r){e.length<40?NH.utf8.write(e,t,r):t.utf8Write?t.utf8Write(e,r):t.write(e,r)}NW._configure=function(){NW.alloc=NH._Buffer_allocUnsafe,NW.writeBytesBuffer=NH.Buffer&&NH.Buffer.prototype instanceof Uint8Array&&"set"===NH.Buffer.prototype.set.name?function(e,t,r){t.set(e,r)}:function(e,t,r){if(e.copy)e.copy(t,r,0,e.length);else for(var n=0;n>>0;return this.uint32(t),t&&this._push(NW.writeBytesBuffer,t,e),this},NW.prototype.string=function(e){var t=NH.Buffer.byteLength(e);return this.uint32(t),t&&this._push(NG,t,e),this},NW._configure();var NZ,NK=N1,NX=NO(),NJ=NX.LongBits,NQ=NX.utf8;function N0(e,t){return RangeError("index out of range: "+e.pos+" + "+(t||1)+" > "+e.len)}function N1(e){this.buf=e,this.pos=0,this.len=e.length}var N2,N6="u">typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new N1(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new N1(e);throw Error("illegal buffer")},N3=function(){return NX.Buffer?function(e){return(N1.create=function(e){return NX.Buffer.isBuffer(e)?new NZ(e):N6(e)})(e)}:N6};function N4(){var e=new NJ(0,0),t=0;if(!(this.len-this.pos>4)){for(;t<3;++t){if(this.pos>=this.len)throw N0(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;if(t=0,this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw N0(this);if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error("invalid varint encoding")}function N5(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function N8(){if(this.pos+8>this.len)throw N0(this,8);return new NJ(N5(this.buf,this.pos+=4),N5(this.buf,this.pos+=4))}N1.create=N3(),N1.prototype._slice=NX.Array.prototype.subarray||NX.Array.prototype.slice,N1.prototype.uint32=(N2=0xffffffff,function(){if(N2=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128||(N2=(N2|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)||(N2=(N2|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)||(N2=(N2|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)||(N2=(N2|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128))return N2;if((this.pos+=5)>this.len)throw this.pos=this.len,N0(this,10);return N2}),N1.prototype.int32=function(){return 0|this.uint32()},N1.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)},N1.prototype.bool=function(){return 0!==this.uint32()},N1.prototype.fixed32=function(){if(this.pos+4>this.len)throw N0(this,4);return N5(this.buf,this.pos+=4)},N1.prototype.sfixed32=function(){if(this.pos+4>this.len)throw N0(this,4);return 0|N5(this.buf,this.pos+=4)},N1.prototype.float=function(){if(this.pos+4>this.len)throw N0(this,4);var e=NX.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},N1.prototype.double=function(){if(this.pos+8>this.len)throw N0(this,4);var e=NX.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},N1.prototype.bytes=function(){var e=this.uint32(),t=this.pos,r=this.pos+e;if(r>this.len)throw N0(this,e);return this.pos+=e,Array.isArray(this.buf)?this.buf.slice(t,r):t===r?new this.buf.constructor(0):this._slice.call(this.buf,t,r)},N1.prototype.string=function(){var e=this.bytes();return NQ.read(e,0,e.length)},N1.prototype.skip=function(e){if("number"==typeof e){if(this.pos+e>this.len)throw N0(this,e);this.pos+=e}else do if(this.pos>=this.len)throw N0(this);while(128&this.buf[this.pos++]);return this},N1.prototype.skipType=function(e){switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(e=7&this.uint32());)this.skipType(e);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+e+" at offset "+this.pos)}return this},N1._configure=function(e){NZ=e,N1.create=N3(),NZ._configure();var t=NX.Long?"toLong":"toNumber";NX.merge(N1.prototype,{int64:function(){return N4.call(this)[t](!1)},uint64:function(){return N4.call(this)[t](!0)},sint64:function(){return N4.call(this).zzDecode()[t](!1)},fixed64:function(){return N8.call(this)[t](!0)},sfixed64:function(){return N8.call(this)[t](!1)}})};var N9=Pt,N7=NK;(Pt.prototype=Object.create(N7.prototype)).constructor=Pt;var Pe=NO();function Pt(e){N7.call(this,e)}Pt._configure=function(){Pe.Buffer&&(Pt.prototype._slice=Pe.Buffer.prototype.slice)},Pt.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))},Pt._configure();var Pr={},Pn=Po,Pi=NO();function Po(e,t,r){if("function"!=typeof e)throw TypeError("rpcImpl must be a function");Pi.EventEmitter.call(this),this.rpcImpl=e,this.requestDelimited=!!t,this.responseDelimited=!!r}(Po.prototype=Object.create(Pi.EventEmitter.prototype)).constructor=Po,Po.prototype.rpcCall=function e(t,r,n,i,o){if(!i)throw TypeError("request must be specified");var a=this;if(!o)return Pi.asPromise(e,a,t,r,n,i);if(a.rpcImpl)try{return a.rpcImpl(t,r[a.requestDelimited?"encodeDelimited":"encode"](i).finish(),function(e,r){if(e)return a.emit("error",e,t),o(e);if(null!==r){if(!(r instanceof n))try{r=n[a.responseDelimited?"decodeDelimited":"decode"](r)}catch(e){return a.emit("error",e,t),o(e)}return a.emit("data",r,t),o(null,r)}a.end(!0)})}catch(e){return a.emit("error",e,t),void setTimeout(function(){o(e)},0)}setTimeout(function(){o(Error("already ended"))},0)},Po.prototype.end=function(e){return this.rpcImpl&&(e||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this},function(e){e.Service=Pn}(Pr);var Pa={};!function(e){var t=e;function r(){t.util._configure(),t.Writer._configure(t.BufferWriter),t.Reader._configure(t.BufferReader)}t.build="minimal",t.Writer=NR,t.BufferWriter=NY,t.Reader=NK,t.BufferReader=N9,t.util=NO(),t.rpc=Pr,t.roots=Pa,t.configure=r,r()}(Nc);var Ps=a(Nc);let Pu={encode:(e,t=Ps.Writer.create())=>(void 0!==e.stringValue&&t.uint32(10).string(e.stringValue),void 0!==e.boolValue&&t.uint32(16).bool(e.boolValue),void 0!==e.intValue&&t.uint32(24).int64(e.intValue),void 0!==e.doubleValue&&t.uint32(33).double(e.doubleValue),void 0!==e.arrayValue&&Pc.encode(e.arrayValue,t.uint32(42).fork()).ldelim(),void 0!==e.kvlistValue&&Pl.encode(e.kvlistValue,t.uint32(50).fork()).ldelim(),void 0!==e.bytesValue&&t.uint32(58).bytes(e.bytesValue),t),decode(e,t){let r=e instanceof Ps.Reader?e:Ps.Reader.create(e),n=void 0===t?r.len:r.pos+t,i={stringValue:void 0,boolValue:void 0,intValue:void 0,doubleValue:void 0,arrayValue:void 0,kvlistValue:void 0,bytesValue:void 0};for(;r.pos>>3){case 1:if(10!==e)break;i.stringValue=r.string();continue;case 2:if(16!==e)break;i.boolValue=r.bool();continue;case 3:if(24!==e)break;i.intValue=Pm(r.int64());continue;case 4:if(33!==e)break;i.doubleValue=r.double();continue;case 5:if(42!==e)break;i.arrayValue=Pc.decode(r,r.uint32());continue;case 6:if(50!==e)break;i.kvlistValue=Pl.decode(r,r.uint32());continue;case 7:if(58!==e)break;i.bytesValue=r.bytes();continue}if(4==(7&e)||0===e)break;r.skipType(7&e)}return i},fromJSON:e=>({stringValue:Py(e.stringValue)?globalThis.String(e.stringValue):void 0,boolValue:Py(e.boolValue)?globalThis.Boolean(e.boolValue):void 0,intValue:Py(e.intValue)?globalThis.Number(e.intValue):void 0,doubleValue:Py(e.doubleValue)?globalThis.Number(e.doubleValue):void 0,arrayValue:Py(e.arrayValue)?Pc.fromJSON(e.arrayValue):void 0,kvlistValue:Py(e.kvlistValue)?Pl.fromJSON(e.kvlistValue):void 0,bytesValue:Py(e.bytesValue)?Pp(e.bytesValue):void 0}),toJSON(e){let t={};return void 0!==e.stringValue&&(t.stringValue=e.stringValue),void 0!==e.boolValue&&(t.boolValue=e.boolValue),void 0!==e.intValue&&(t.intValue=Math.round(e.intValue)),void 0!==e.doubleValue&&(t.doubleValue=e.doubleValue),void 0!==e.arrayValue&&(t.arrayValue=Pc.toJSON(e.arrayValue)),void 0!==e.kvlistValue&&(t.kvlistValue=Pl.toJSON(e.kvlistValue)),void 0!==e.bytesValue&&(t.bytesValue=function(e){if(globalThis.Buffer)return globalThis.Buffer.from(e).toString("base64");{let t=[];return e.forEach(e=>{t.push(globalThis.String.fromCharCode(e))}),globalThis.btoa(t.join(""))}}(e.bytesValue)),t},create:e=>Pu.fromPartial(null!=e?e:{}),fromPartial(e){var t,r,n,i,o;let a={stringValue:void 0,boolValue:void 0,intValue:void 0,doubleValue:void 0,arrayValue:void 0,kvlistValue:void 0,bytesValue:void 0};return a.stringValue=null!=(t=e.stringValue)?t:void 0,a.boolValue=null!=(r=e.boolValue)?r:void 0,a.intValue=null!=(n=e.intValue)?n:void 0,a.doubleValue=null!=(i=e.doubleValue)?i:void 0,a.arrayValue=void 0!==e.arrayValue&&null!==e.arrayValue?Pc.fromPartial(e.arrayValue):void 0,a.kvlistValue=void 0!==e.kvlistValue&&null!==e.kvlistValue?Pl.fromPartial(e.kvlistValue):void 0,a.bytesValue=null!=(o=e.bytesValue)?o:void 0,a}},Pc={encode(e,t=Ps.Writer.create()){if(void 0!==e.values&&0!==e.values.length)for(let r of e.values)Pu.encode(r,t.uint32(10).fork()).ldelim();return t},decode(e,t){let r=e instanceof Ps.Reader?e:Ps.Reader.create(e),n=void 0===t?r.len:r.pos+t,i={values:[]};for(;r.pos>>3){case 1:if(10!==e)break;i.values.push(Pu.decode(r,r.uint32()));continue}if(4==(7&e)||0===e)break;r.skipType(7&e)}return i},fromJSON:e=>({values:globalThis.Array.isArray(null==e?void 0:e.values)?e.values.map(e=>Pu.fromJSON(e)):[]}),toJSON(e){var t;let r={};return(null==(t=e.values)?void 0:t.length)&&(r.values=e.values.map(e=>Pu.toJSON(e))),r},create:e=>Pc.fromPartial(null!=e?e:{}),fromPartial(e){var t;let r={values:[]};return r.values=(null==(t=e.values)?void 0:t.map(e=>Pu.fromPartial(e)))||[],r}},Pl={encode(e,t=Ps.Writer.create()){if(void 0!==e.values&&0!==e.values.length)for(let r of e.values)Pf.encode(r,t.uint32(10).fork()).ldelim();return t},decode(e,t){let r=e instanceof Ps.Reader?e:Ps.Reader.create(e),n=void 0===t?r.len:r.pos+t,i={values:[]};for(;r.pos>>3){case 1:if(10!==e)break;i.values.push(Pf.decode(r,r.uint32()));continue}if(4==(7&e)||0===e)break;r.skipType(7&e)}return i},fromJSON:e=>({values:globalThis.Array.isArray(null==e?void 0:e.values)?e.values.map(e=>Pf.fromJSON(e)):[]}),toJSON(e){var t;let r={};return(null==(t=e.values)?void 0:t.length)&&(r.values=e.values.map(e=>Pf.toJSON(e))),r},create:e=>Pl.fromPartial(null!=e?e:{}),fromPartial(e){var t;let r={values:[]};return r.values=(null==(t=e.values)?void 0:t.map(e=>Pf.fromPartial(e)))||[],r}},Pf={encode:(e,t=Ps.Writer.create())=>(void 0!==e.key&&""!==e.key&&t.uint32(10).string(e.key),void 0!==e.value&&Pu.encode(e.value,t.uint32(18).fork()).ldelim(),t),decode(e,t){let r=e instanceof Ps.Reader?e:Ps.Reader.create(e),n=void 0===t?r.len:r.pos+t,i={key:"",value:void 0};for(;r.pos>>3){case 1:if(10!==e)break;i.key=r.string();continue;case 2:if(18!==e)break;i.value=Pu.decode(r,r.uint32());continue}if(4==(7&e)||0===e)break;r.skipType(7&e)}return i},fromJSON:e=>({key:Py(e.key)?globalThis.String(e.key):"",value:Py(e.value)?Pu.fromJSON(e.value):void 0}),toJSON(e){let t={};return void 0!==e.key&&""!==e.key&&(t.key=e.key),void 0!==e.value&&(t.value=Pu.toJSON(e.value)),t},create:e=>Pf.fromPartial(null!=e?e:{}),fromPartial(e){var t;let r={key:"",value:void 0};return r.key=null!=(t=e.key)?t:"",r.value=void 0!==e.value&&null!==e.value?Pu.fromPartial(e.value):void 0,r}},Pd={encode:(e,t=Ps.Writer.create())=>(void 0!==e.name&&""!==e.name&&t.uint32(10).string(e.name),void 0!==e.version&&""!==e.version&&t.uint32(18).string(e.version),t),decode(e,t){let r=e instanceof Ps.Reader?e:Ps.Reader.create(e),n=void 0===t?r.len:r.pos+t,i={name:"",version:""};for(;r.pos>>3){case 1:if(10!==e)break;i.name=r.string();continue;case 2:if(18!==e)break;i.version=r.string();continue}if(4==(7&e)||0===e)break;r.skipType(7&e)}return i},fromJSON:e=>({name:Py(e.name)?globalThis.String(e.name):"",version:Py(e.version)?globalThis.String(e.version):""}),toJSON(e){let t={};return void 0!==e.name&&""!==e.name&&(t.name=e.name),void 0!==e.version&&""!==e.version&&(t.version=e.version),t},create:e=>Pd.fromPartial(null!=e?e:{}),fromPartial(e){var t,r;let n={name:"",version:""};return n.name=null!=(t=e.name)?t:"",n.version=null!=(r=e.version)?r:"",n}},Ph={encode:(e,t=Ps.Writer.create())=>(void 0!==e.name&&""!==e.name&&t.uint32(10).string(e.name),void 0!==e.version&&""!==e.version&&t.uint32(18).string(e.version),t),decode(e,t){let r=e instanceof Ps.Reader?e:Ps.Reader.create(e),n=void 0===t?r.len:r.pos+t,i={name:"",version:""};for(;r.pos>>3){case 1:if(10!==e)break;i.name=r.string();continue;case 2:if(18!==e)break;i.version=r.string();continue}if(4==(7&e)||0===e)break;r.skipType(7&e)}return i},fromJSON:e=>({name:Py(e.name)?globalThis.String(e.name):"",version:Py(e.version)?globalThis.String(e.version):""}),toJSON(e){let t={};return void 0!==e.name&&""!==e.name&&(t.name=e.name),void 0!==e.version&&""!==e.version&&(t.version=e.version),t},create:e=>Ph.fromPartial(null!=e?e:{}),fromPartial(e){var t,r;let n={name:"",version:""};return n.name=null!=(t=e.name)?t:"",n.version=null!=(r=e.version)?r:"",n}};function Pp(e){if(globalThis.Buffer)return Uint8Array.from(globalThis.Buffer.from(e,"base64"));{let t=globalThis.atob(e),r=new Uint8Array(t.length);for(let e=0;e>>3){case 1:if(10!==e)break;i.attributes.push(Pf.decode(r,r.uint32()));continue;case 2:if(16!==e)break;i.droppedAttributesCount=r.uint32();continue}if(4==(7&e)||0===e)break;r.skipType(7&e)}return i},fromJSON:e=>({attributes:globalThis.Array.isArray(null==e?void 0:e.attributes)?e.attributes.map(e=>Pf.fromJSON(e)):[],droppedAttributesCount:Pb(e.droppedAttributesCount)?globalThis.Number(e.droppedAttributesCount):0}),toJSON(e){var t;let r={};return(null==(t=e.attributes)?void 0:t.length)&&(r.attributes=e.attributes.map(e=>Pf.toJSON(e))),void 0!==e.droppedAttributesCount&&0!==e.droppedAttributesCount&&(r.droppedAttributesCount=Math.round(e.droppedAttributesCount)),r},create:e=>Pg.fromPartial(null!=e?e:{}),fromPartial(e){var t,r;let n={attributes:[],droppedAttributesCount:0};return n.attributes=(null==(t=e.attributes)?void 0:t.map(e=>Pf.fromPartial(e)))||[],n.droppedAttributesCount=null!=(r=e.droppedAttributesCount)?r:0,n}};function Pb(e){return null!=e}function Pv(e){switch(e){case 0:case"SEVERITY_NUMBER_UNSPECIFIED":return t.SEVERITY_NUMBER_UNSPECIFIED;case 1:case"SEVERITY_NUMBER_TRACE":return t.SEVERITY_NUMBER_TRACE;case 2:case"SEVERITY_NUMBER_TRACE2":return t.SEVERITY_NUMBER_TRACE2;case 3:case"SEVERITY_NUMBER_TRACE3":return t.SEVERITY_NUMBER_TRACE3;case 4:case"SEVERITY_NUMBER_TRACE4":return t.SEVERITY_NUMBER_TRACE4;case 5:case"SEVERITY_NUMBER_DEBUG":return t.SEVERITY_NUMBER_DEBUG;case 6:case"SEVERITY_NUMBER_DEBUG2":return t.SEVERITY_NUMBER_DEBUG2;case 7:case"SEVERITY_NUMBER_DEBUG3":return t.SEVERITY_NUMBER_DEBUG3;case 8:case"SEVERITY_NUMBER_DEBUG4":return t.SEVERITY_NUMBER_DEBUG4;case 9:case"SEVERITY_NUMBER_INFO":return t.SEVERITY_NUMBER_INFO;case 10:case"SEVERITY_NUMBER_INFO2":return t.SEVERITY_NUMBER_INFO2;case 11:case"SEVERITY_NUMBER_INFO3":return t.SEVERITY_NUMBER_INFO3;case 12:case"SEVERITY_NUMBER_INFO4":return t.SEVERITY_NUMBER_INFO4;case 13:case"SEVERITY_NUMBER_WARN":return t.SEVERITY_NUMBER_WARN;case 14:case"SEVERITY_NUMBER_WARN2":return t.SEVERITY_NUMBER_WARN2;case 15:case"SEVERITY_NUMBER_WARN3":return t.SEVERITY_NUMBER_WARN3;case 16:case"SEVERITY_NUMBER_WARN4":return t.SEVERITY_NUMBER_WARN4;case 17:case"SEVERITY_NUMBER_ERROR":return t.SEVERITY_NUMBER_ERROR;case 18:case"SEVERITY_NUMBER_ERROR2":return t.SEVERITY_NUMBER_ERROR2;case 19:case"SEVERITY_NUMBER_ERROR3":return t.SEVERITY_NUMBER_ERROR3;case 20:case"SEVERITY_NUMBER_ERROR4":return t.SEVERITY_NUMBER_ERROR4;case 21:case"SEVERITY_NUMBER_FATAL":return t.SEVERITY_NUMBER_FATAL;case 22:case"SEVERITY_NUMBER_FATAL2":return t.SEVERITY_NUMBER_FATAL2;case 23:case"SEVERITY_NUMBER_FATAL3":return t.SEVERITY_NUMBER_FATAL3;case 24:case"SEVERITY_NUMBER_FATAL4":return t.SEVERITY_NUMBER_FATAL4;default:return t.UNRECOGNIZED}}!function(e){e[e.SEVERITY_NUMBER_UNSPECIFIED=0]="SEVERITY_NUMBER_UNSPECIFIED",e[e.SEVERITY_NUMBER_TRACE=1]="SEVERITY_NUMBER_TRACE",e[e.SEVERITY_NUMBER_TRACE2=2]="SEVERITY_NUMBER_TRACE2",e[e.SEVERITY_NUMBER_TRACE3=3]="SEVERITY_NUMBER_TRACE3",e[e.SEVERITY_NUMBER_TRACE4=4]="SEVERITY_NUMBER_TRACE4",e[e.SEVERITY_NUMBER_DEBUG=5]="SEVERITY_NUMBER_DEBUG",e[e.SEVERITY_NUMBER_DEBUG2=6]="SEVERITY_NUMBER_DEBUG2",e[e.SEVERITY_NUMBER_DEBUG3=7]="SEVERITY_NUMBER_DEBUG3",e[e.SEVERITY_NUMBER_DEBUG4=8]="SEVERITY_NUMBER_DEBUG4",e[e.SEVERITY_NUMBER_INFO=9]="SEVERITY_NUMBER_INFO",e[e.SEVERITY_NUMBER_INFO2=10]="SEVERITY_NUMBER_INFO2",e[e.SEVERITY_NUMBER_INFO3=11]="SEVERITY_NUMBER_INFO3",e[e.SEVERITY_NUMBER_INFO4=12]="SEVERITY_NUMBER_INFO4",e[e.SEVERITY_NUMBER_WARN=13]="SEVERITY_NUMBER_WARN",e[e.SEVERITY_NUMBER_WARN2=14]="SEVERITY_NUMBER_WARN2",e[e.SEVERITY_NUMBER_WARN3=15]="SEVERITY_NUMBER_WARN3",e[e.SEVERITY_NUMBER_WARN4=16]="SEVERITY_NUMBER_WARN4",e[e.SEVERITY_NUMBER_ERROR=17]="SEVERITY_NUMBER_ERROR",e[e.SEVERITY_NUMBER_ERROR2=18]="SEVERITY_NUMBER_ERROR2",e[e.SEVERITY_NUMBER_ERROR3=19]="SEVERITY_NUMBER_ERROR3",e[e.SEVERITY_NUMBER_ERROR4=20]="SEVERITY_NUMBER_ERROR4",e[e.SEVERITY_NUMBER_FATAL=21]="SEVERITY_NUMBER_FATAL",e[e.SEVERITY_NUMBER_FATAL2=22]="SEVERITY_NUMBER_FATAL2",e[e.SEVERITY_NUMBER_FATAL3=23]="SEVERITY_NUMBER_FATAL3",e[e.SEVERITY_NUMBER_FATAL4=24]="SEVERITY_NUMBER_FATAL4",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(t||(t={})),function(e){e[e.LOG_RECORD_FLAG_UNSPECIFIED=0]="LOG_RECORD_FLAG_UNSPECIFIED",e[e.LOG_RECORD_FLAG_TRACE_FLAGS_MASK=255]="LOG_RECORD_FLAG_TRACE_FLAGS_MASK",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(i||(i={}));let P_={encode(e,t=Ps.Writer.create()){if(void 0!==e.resourceLogs&&0!==e.resourceLogs.length)for(let r of e.resourceLogs)PS.encode(r,t.uint32(10).fork()).ldelim();return t},decode(e,t){let r=e instanceof Ps.Reader?e:Ps.Reader.create(e),n=void 0===t?r.len:r.pos+t,i={resourceLogs:[]};for(;r.pos>>3){case 1:if(10!==e)break;i.resourceLogs.push(PS.decode(r,r.uint32()));continue}if(4==(7&e)||0===e)break;r.skipType(7&e)}return i},fromJSON:e=>({resourceLogs:globalThis.Array.isArray(null==e?void 0:e.resourceLogs)?e.resourceLogs.map(e=>PS.fromJSON(e)):[]}),toJSON(e){var t;let r={};return(null==(t=e.resourceLogs)?void 0:t.length)&&(r.resourceLogs=e.resourceLogs.map(e=>PS.toJSON(e))),r},create:e=>P_.fromPartial(null!=e?e:{}),fromPartial(e){var t;let r={resourceLogs:[]};return r.resourceLogs=(null==(t=e.resourceLogs)?void 0:t.map(e=>PS.fromPartial(e)))||[],r}},PS={encode(e,t=Ps.Writer.create()){if(void 0!==e.resource&&Pg.encode(e.resource,t.uint32(10).fork()).ldelim(),void 0!==e.scopeLogs&&0!==e.scopeLogs.length)for(let r of e.scopeLogs)PE.encode(r,t.uint32(18).fork()).ldelim();if(void 0!==e.instrumentationLibraryLogs&&0!==e.instrumentationLibraryLogs.length)for(let r of e.instrumentationLibraryLogs)Pw.encode(r,t.uint32(8002).fork()).ldelim();return void 0!==e.schemaUrl&&""!==e.schemaUrl&&t.uint32(26).string(e.schemaUrl),t},decode(e,t){let r=e instanceof Ps.Reader?e:Ps.Reader.create(e),n=void 0===t?r.len:r.pos+t,i={resource:void 0,scopeLogs:[],instrumentationLibraryLogs:[],schemaUrl:""};for(;r.pos>>3){case 1:if(10!==e)break;i.resource=Pg.decode(r,r.uint32());continue;case 2:if(18!==e)break;i.scopeLogs.push(PE.decode(r,r.uint32()));continue;case 1e3:if(8002!==e)break;i.instrumentationLibraryLogs.push(Pw.decode(r,r.uint32()));continue;case 3:if(26!==e)break;i.schemaUrl=r.string();continue}if(4==(7&e)||0===e)break;r.skipType(7&e)}return i},fromJSON:e=>({resource:PR(e.resource)?Pg.fromJSON(e.resource):void 0,scopeLogs:globalThis.Array.isArray(null==e?void 0:e.scopeLogs)?e.scopeLogs.map(e=>PE.fromJSON(e)):[],instrumentationLibraryLogs:globalThis.Array.isArray(null==e?void 0:e.instrumentationLibraryLogs)?e.instrumentationLibraryLogs.map(e=>Pw.fromJSON(e)):[],schemaUrl:PR(e.schemaUrl)?globalThis.String(e.schemaUrl):""}),toJSON(e){var t,r;let n={};return void 0!==e.resource&&(n.resource=Pg.toJSON(e.resource)),(null==(t=e.scopeLogs)?void 0:t.length)&&(n.scopeLogs=e.scopeLogs.map(e=>PE.toJSON(e))),(null==(r=e.instrumentationLibraryLogs)?void 0:r.length)&&(n.instrumentationLibraryLogs=e.instrumentationLibraryLogs.map(e=>Pw.toJSON(e))),void 0!==e.schemaUrl&&""!==e.schemaUrl&&(n.schemaUrl=e.schemaUrl),n},create:e=>PS.fromPartial(null!=e?e:{}),fromPartial(e){var t,r,n;let i={resource:void 0,scopeLogs:[],instrumentationLibraryLogs:[],schemaUrl:""};return i.resource=void 0!==e.resource&&null!==e.resource?Pg.fromPartial(e.resource):void 0,i.scopeLogs=(null==(t=e.scopeLogs)?void 0:t.map(e=>PE.fromPartial(e)))||[],i.instrumentationLibraryLogs=(null==(r=e.instrumentationLibraryLogs)?void 0:r.map(e=>Pw.fromPartial(e)))||[],i.schemaUrl=null!=(n=e.schemaUrl)?n:"",i}},PE={encode(e,t=Ps.Writer.create()){if(void 0!==e.scope&&Ph.encode(e.scope,t.uint32(10).fork()).ldelim(),void 0!==e.logRecords&&0!==e.logRecords.length)for(let r of e.logRecords)Px.encode(r,t.uint32(18).fork()).ldelim();return void 0!==e.schemaUrl&&""!==e.schemaUrl&&t.uint32(26).string(e.schemaUrl),t},decode(e,t){let r=e instanceof Ps.Reader?e:Ps.Reader.create(e),n=void 0===t?r.len:r.pos+t,i={scope:void 0,logRecords:[],schemaUrl:""};for(;r.pos>>3){case 1:if(10!==e)break;i.scope=Ph.decode(r,r.uint32());continue;case 2:if(18!==e)break;i.logRecords.push(Px.decode(r,r.uint32()));continue;case 3:if(26!==e)break;i.schemaUrl=r.string();continue}if(4==(7&e)||0===e)break;r.skipType(7&e)}return i},fromJSON:e=>({scope:PR(e.scope)?Ph.fromJSON(e.scope):void 0,logRecords:globalThis.Array.isArray(null==e?void 0:e.logRecords)?e.logRecords.map(e=>Px.fromJSON(e)):[],schemaUrl:PR(e.schemaUrl)?globalThis.String(e.schemaUrl):""}),toJSON(e){var t;let r={};return void 0!==e.scope&&(r.scope=Ph.toJSON(e.scope)),(null==(t=e.logRecords)?void 0:t.length)&&(r.logRecords=e.logRecords.map(e=>Px.toJSON(e))),void 0!==e.schemaUrl&&""!==e.schemaUrl&&(r.schemaUrl=e.schemaUrl),r},create:e=>PE.fromPartial(null!=e?e:{}),fromPartial(e){var t,r;let n={scope:void 0,logRecords:[],schemaUrl:""};return n.scope=void 0!==e.scope&&null!==e.scope?Ph.fromPartial(e.scope):void 0,n.logRecords=(null==(t=e.logRecords)?void 0:t.map(e=>Px.fromPartial(e)))||[],n.schemaUrl=null!=(r=e.schemaUrl)?r:"",n}},Pw={encode(e,t=Ps.Writer.create()){if(void 0!==e.instrumentationLibrary&&Pd.encode(e.instrumentationLibrary,t.uint32(10).fork()).ldelim(),void 0!==e.logRecords&&0!==e.logRecords.length)for(let r of e.logRecords)Px.encode(r,t.uint32(18).fork()).ldelim();return void 0!==e.schemaUrl&&""!==e.schemaUrl&&t.uint32(26).string(e.schemaUrl),t},decode(e,t){let r=e instanceof Ps.Reader?e:Ps.Reader.create(e),n=void 0===t?r.len:r.pos+t,i={instrumentationLibrary:void 0,logRecords:[],schemaUrl:""};for(;r.pos>>3){case 1:if(10!==e)break;i.instrumentationLibrary=Pd.decode(r,r.uint32());continue;case 2:if(18!==e)break;i.logRecords.push(Px.decode(r,r.uint32()));continue;case 3:if(26!==e)break;i.schemaUrl=r.string();continue}if(4==(7&e)||0===e)break;r.skipType(7&e)}return i},fromJSON:e=>({instrumentationLibrary:PR(e.instrumentationLibrary)?Pd.fromJSON(e.instrumentationLibrary):void 0,logRecords:globalThis.Array.isArray(null==e?void 0:e.logRecords)?e.logRecords.map(e=>Px.fromJSON(e)):[],schemaUrl:PR(e.schemaUrl)?globalThis.String(e.schemaUrl):""}),toJSON(e){var t;let r={};return void 0!==e.instrumentationLibrary&&(r.instrumentationLibrary=Pd.toJSON(e.instrumentationLibrary)),(null==(t=e.logRecords)?void 0:t.length)&&(r.logRecords=e.logRecords.map(e=>Px.toJSON(e))),void 0!==e.schemaUrl&&""!==e.schemaUrl&&(r.schemaUrl=e.schemaUrl),r},create:e=>Pw.fromPartial(null!=e?e:{}),fromPartial(e){var t,r;let n={instrumentationLibrary:void 0,logRecords:[],schemaUrl:""};return n.instrumentationLibrary=void 0!==e.instrumentationLibrary&&null!==e.instrumentationLibrary?Pd.fromPartial(e.instrumentationLibrary):void 0,n.logRecords=(null==(t=e.logRecords)?void 0:t.map(e=>Px.fromPartial(e)))||[],n.schemaUrl=null!=(r=e.schemaUrl)?r:"",n}};function PT(){return{timeUnixNano:0,observedTimeUnixNano:0,severityNumber:0,severityText:"",body:void 0,attributes:[],droppedAttributesCount:0,flags:0,traceId:new Uint8Array(0),spanId:new Uint8Array(0)}}let Px={encode(e,t=Ps.Writer.create()){if(void 0!==e.timeUnixNano&&0!==e.timeUnixNano&&t.uint32(9).fixed64(e.timeUnixNano),void 0!==e.observedTimeUnixNano&&0!==e.observedTimeUnixNano&&t.uint32(89).fixed64(e.observedTimeUnixNano),void 0!==e.severityNumber&&0!==e.severityNumber&&t.uint32(16).int32(e.severityNumber),void 0!==e.severityText&&""!==e.severityText&&t.uint32(26).string(e.severityText),void 0!==e.body&&Pu.encode(e.body,t.uint32(42).fork()).ldelim(),void 0!==e.attributes&&0!==e.attributes.length)for(let r of e.attributes)Pf.encode(r,t.uint32(50).fork()).ldelim();return void 0!==e.droppedAttributesCount&&0!==e.droppedAttributesCount&&t.uint32(56).uint32(e.droppedAttributesCount),void 0!==e.flags&&0!==e.flags&&t.uint32(69).fixed32(e.flags),void 0!==e.traceId&&0!==e.traceId.length&&t.uint32(74).bytes(e.traceId),void 0!==e.spanId&&0!==e.spanId.length&&t.uint32(82).bytes(e.spanId),t},decode(e,t){let r=e instanceof Ps.Reader?e:Ps.Reader.create(e),n=void 0===t?r.len:r.pos+t,i=PT();for(;r.pos>>3){case 1:if(9!==e)break;i.timeUnixNano=PM(r.fixed64());continue;case 11:if(89!==e)break;i.observedTimeUnixNano=PM(r.fixed64());continue;case 2:if(16!==e)break;i.severityNumber=r.int32();continue;case 3:if(26!==e)break;i.severityText=r.string();continue;case 5:if(42!==e)break;i.body=Pu.decode(r,r.uint32());continue;case 6:if(50!==e)break;i.attributes.push(Pf.decode(r,r.uint32()));continue;case 7:if(56!==e)break;i.droppedAttributesCount=r.uint32();continue;case 8:if(69!==e)break;i.flags=r.fixed32();continue;case 9:if(74!==e)break;i.traceId=r.bytes();continue;case 10:if(82!==e)break;i.spanId=r.bytes();continue}if(4==(7&e)||0===e)break;r.skipType(7&e)}return i},fromJSON:e=>({timeUnixNano:PR(e.timeUnixNano)?globalThis.Number(e.timeUnixNano):0,observedTimeUnixNano:PR(e.observedTimeUnixNano)?globalThis.Number(e.observedTimeUnixNano):0,severityNumber:PR(e.severityNumber)?Pv(e.severityNumber):0,severityText:PR(e.severityText)?globalThis.String(e.severityText):"",body:PR(e.body)?Pu.fromJSON(e.body):void 0,attributes:globalThis.Array.isArray(null==e?void 0:e.attributes)?e.attributes.map(e=>Pf.fromJSON(e)):[],droppedAttributesCount:PR(e.droppedAttributesCount)?globalThis.Number(e.droppedAttributesCount):0,flags:PR(e.flags)?globalThis.Number(e.flags):0,traceId:PR(e.traceId)?PA(e.traceId):new Uint8Array(0),spanId:PR(e.spanId)?PA(e.spanId):new Uint8Array(0)}),toJSON(e){var r;let n={};return void 0!==e.timeUnixNano&&0!==e.timeUnixNano&&(n.timeUnixNano=Math.round(e.timeUnixNano)),void 0!==e.observedTimeUnixNano&&0!==e.observedTimeUnixNano&&(n.observedTimeUnixNano=Math.round(e.observedTimeUnixNano)),void 0!==e.severityNumber&&0!==e.severityNumber&&(n.severityNumber=function(e){switch(e){case t.SEVERITY_NUMBER_UNSPECIFIED:return"SEVERITY_NUMBER_UNSPECIFIED";case t.SEVERITY_NUMBER_TRACE:return"SEVERITY_NUMBER_TRACE";case t.SEVERITY_NUMBER_TRACE2:return"SEVERITY_NUMBER_TRACE2";case t.SEVERITY_NUMBER_TRACE3:return"SEVERITY_NUMBER_TRACE3";case t.SEVERITY_NUMBER_TRACE4:return"SEVERITY_NUMBER_TRACE4";case t.SEVERITY_NUMBER_DEBUG:return"SEVERITY_NUMBER_DEBUG";case t.SEVERITY_NUMBER_DEBUG2:return"SEVERITY_NUMBER_DEBUG2";case t.SEVERITY_NUMBER_DEBUG3:return"SEVERITY_NUMBER_DEBUG3";case t.SEVERITY_NUMBER_DEBUG4:return"SEVERITY_NUMBER_DEBUG4";case t.SEVERITY_NUMBER_INFO:return"SEVERITY_NUMBER_INFO";case t.SEVERITY_NUMBER_INFO2:return"SEVERITY_NUMBER_INFO2";case t.SEVERITY_NUMBER_INFO3:return"SEVERITY_NUMBER_INFO3";case t.SEVERITY_NUMBER_INFO4:return"SEVERITY_NUMBER_INFO4";case t.SEVERITY_NUMBER_WARN:return"SEVERITY_NUMBER_WARN";case t.SEVERITY_NUMBER_WARN2:return"SEVERITY_NUMBER_WARN2";case t.SEVERITY_NUMBER_WARN3:return"SEVERITY_NUMBER_WARN3";case t.SEVERITY_NUMBER_WARN4:return"SEVERITY_NUMBER_WARN4";case t.SEVERITY_NUMBER_ERROR:return"SEVERITY_NUMBER_ERROR";case t.SEVERITY_NUMBER_ERROR2:return"SEVERITY_NUMBER_ERROR2";case t.SEVERITY_NUMBER_ERROR3:return"SEVERITY_NUMBER_ERROR3";case t.SEVERITY_NUMBER_ERROR4:return"SEVERITY_NUMBER_ERROR4";case t.SEVERITY_NUMBER_FATAL:return"SEVERITY_NUMBER_FATAL";case t.SEVERITY_NUMBER_FATAL2:return"SEVERITY_NUMBER_FATAL2";case t.SEVERITY_NUMBER_FATAL3:return"SEVERITY_NUMBER_FATAL3";case t.SEVERITY_NUMBER_FATAL4:return"SEVERITY_NUMBER_FATAL4";case t.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.severityNumber)),void 0!==e.severityText&&""!==e.severityText&&(n.severityText=e.severityText),void 0!==e.body&&(n.body=Pu.toJSON(e.body)),(null==(r=e.attributes)?void 0:r.length)&&(n.attributes=e.attributes.map(e=>Pf.toJSON(e))),void 0!==e.droppedAttributesCount&&0!==e.droppedAttributesCount&&(n.droppedAttributesCount=Math.round(e.droppedAttributesCount)),void 0!==e.flags&&0!==e.flags&&(n.flags=Math.round(e.flags)),void 0!==e.traceId&&0!==e.traceId.length&&(n.traceId=PO(e.traceId)),void 0!==e.spanId&&0!==e.spanId.length&&(n.spanId=PO(e.spanId)),n},create:e=>Px.fromPartial(null!=e?e:{}),fromPartial(e){var t,r,n,i,o,a,s,u,c;let l=PT();return l.timeUnixNano=null!=(t=e.timeUnixNano)?t:0,l.observedTimeUnixNano=null!=(r=e.observedTimeUnixNano)?r:0,l.severityNumber=null!=(n=e.severityNumber)?n:0,l.severityText=null!=(i=e.severityText)?i:"",l.body=void 0!==e.body&&null!==e.body?Pu.fromPartial(e.body):void 0,l.attributes=(null==(o=e.attributes)?void 0:o.map(e=>Pf.fromPartial(e)))||[],l.droppedAttributesCount=null!=(a=e.droppedAttributesCount)?a:0,l.flags=null!=(s=e.flags)?s:0,l.traceId=null!=(u=e.traceId)?u:new Uint8Array(0),l.spanId=null!=(c=e.spanId)?c:new Uint8Array(0),l}};function PA(e){if(globalThis.Buffer)return Uint8Array.from(globalThis.Buffer.from(e,"base64"));{let t=globalThis.atob(e),r=new Uint8Array(t.length);for(let e=0;e{t.push(globalThis.String.fromCharCode(e))}),globalThis.btoa(t.join(""))}}function PM(e){if(e.gt(globalThis.Number.MAX_SAFE_INTEGER))throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");return e.toNumber()}function PR(e){return null!=e}Ps.util.Long!==IZ&&(Ps.util.Long=IZ,Ps.configure());let PC="0.16.2",PI={"Content-Type":"application/x-protobuf","Content-Encoding":"gzip"},PN=P_;function PP(e){return Array.isArray(e)}function Pk(e){return!function(e){return!!e&&"object"==typeof e&&!PP(e)}(e)?PP(e)?{arrayValue:{values:e.map(e=>Pk(e))}}:"string"==typeof e?{stringValue:e}:"number"==typeof e?{doubleValue:e}:"boolean"==typeof e?{boolValue:e}:{}:{kvlistValue:{values:Object.entries(e).map(([e,t])=>({key:e,value:Pk(t)}))}}}class PD{constructor(e){this.config=e}constructLogData(e){var t,r,n;return{resourceLogs:[{resource:{attributes:null==(n=null==(r=Pk((null==(t=this.config.resource)?void 0:t.attributes)||{}))?void 0:r.kvlistValue)?void 0:n.values},scopeLogs:[{scope:{name:"rum.rr-web",version:PC},logRecords:e.map(e=>{var t;return{body:Pk(e.body),timeUnixNano:1e6*e.timeUnixNano,attributes:null==(t=Pk(e.attributes||{}).kvlistValue)?void 0:t.values}})}]}]}}export(e){if(0===e.length)return;let t=this.constructLogData(e);this.config.debug&&console.log("otlp request",t);let r=IH(PN.encode(t).finish()),n=this.config.headers?Object.assign({},PI,this.config.headers):PI;fetch(this.config.beaconUrl,{method:"POST",body:r,headers:n}).catch(()=>{})}}class PL{constructor(e,t){this.logs=[],this.scheduledDelayMillis=(null==t?void 0:t.scheduledDelayMillis)||5e3,this.exporter=e,window.addEventListener("unload",()=>{this._flushAll()})}onLog(e){this.logs.push(e),void 0===this.timeout&&(this.timeout=setTimeout(()=>{this.timeout=void 0,this._flushAll()},this.scheduledDelayMillis))}_flushAll(){this.lastBatchSent=Date.now(),th.with(TU(th.active()),()=>{let e=this.logs.splice(0,this.logs.length);this.exporter.export(e)})}}function Pj(e,t,r){return{body:e,timeUnixNano:t,attributes:r}}class PU{constructor(e,t={}){var r,n;this.rrweb=e,this.options=t,this.bucketSize=100,this.refillRate=10,this.mutationBuckets={},this.loggedTracker={},this.refillBuckets=()=>{Object.keys(this.mutationBuckets).forEach(e=>{this.mutationBuckets[e]=this.mutationBuckets[e]+this.refillRate,this.mutationBuckets[e]>=this.bucketSize&&delete this.mutationBuckets[e]})},this.getNodeOrRelevantParent=e=>{let t=this.rrweb.mirror.getNode(e);if("svg"!==(null==t?void 0:t.nodeName)&&t instanceof Element){let e=t.closest("svg");if(e)return[this.rrweb.mirror.getId(e),e]}return[e,t]},this.numberOfChanges=e=>{var t,r,n,i,o,a,s,u;return(null!=(r=null==(t=e.removes)?void 0:t.length)?r:0)+(null!=(i=null==(n=e.attributes)?void 0:n.length)?i:0)+(null!=(a=null==(o=e.texts)?void 0:o.length)?a:0)+(null!=(u=null==(s=e.adds)?void 0:s.length)?u:0)},this.throttleMutations=e=>{if(3!==e.type||0!==e.data.source)return e;let t=e.data,r=this.numberOfChanges(t);t.attributes&&(t.attributes=t.attributes.filter(e=>{var t,r,n;let[i,o]=this.getNodeOrRelevantParent(e.id);return 0!==this.mutationBuckets[i]&&(this.mutationBuckets[i]=null!=(t=this.mutationBuckets[i])?t:this.bucketSize,this.mutationBuckets[i]=Math.max(this.mutationBuckets[i]-1,0),0===this.mutationBuckets[i]&&(this.loggedTracker[i]||(this.loggedTracker[i]=!0,null==(n=(r=this.options).onBlockedNode)||n.call(r,i,o))),e)}));let n=this.numberOfChanges(t);return 0!==n||r===n?e:void 0},this.refillRate=null!=(r=this.options.refillRate)?r:this.refillRate,this.bucketSize=null!=(n=this.options.bucketSize)?n:this.bucketSize,setInterval(()=>{this.refillBuckets()},1e3)}}var PB=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);it.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r};let PF=972800,Pz=new TextEncoder,P$=new TextDecoder,PV,PY,Pq,PH,PW=!1,PG=0,PZ=!1,PK=1,PX=1,PJ={get inited(){return!!PW},init(e){if(PW)return;if("u"{let r=`OpenTelemetry Session Recorder: Rate limiting recording mutations on node ${e}. This can be due to excessive animations.`,n=Date.now(),i=PV.startSpan("console.warn",{kind:te.INTERNAL,startTime:n});i.setAttribute("component","console"),i.setAttribute("level","warn"),i.setAttribute("message",r),i.end(n),o&&console.warn(r,t),clearTimeout(PH),PH=setTimeout(()=>{Id.takeFullSnapshot()},1e3)}}),PW=Id(Object.assign(Object.assign({maskAllInputs:!0,maskTextSelector:"*"},a),{emit(e){if(PZ)return;if(r.attributes["rum.sessionId"]!==PY){if(document.hidden)return;PY=r.attributes["rum.sessionId"],PG=Date.now(),PK=1,PX=1,Id.takeFullSnapshot()}if(e.timestamp>PG+1446e4)return;let t=Pq?Pq.throttleMutations(e):e;if(!t)return;let n=t.timestamp,i=PK++,a=Pz.encode(function(e){if(e.length>5e6){let t=/data:([\w/\-.]+);(\w+),([^)"]*)/gim;for(let r of e.matchAll(t))e="image/"===r[1].toLocaleLowerCase().slice(0,6)?e.replace(r[0],"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjE2IiBoZWlnaHQ9IjE2IiBmaWxsPSJibGFjayIvPgo8cGF0aCBkPSJNOCAwSDE2TDAgMTZWOEw4IDBaIiBmaWxsPSIjMkQyRDJEIi8+CjxwYXRoIGQ9Ik0xNiA4VjE2SDhMMTYgOFoiIGZpbGw9IiMyRDJEMkQiLz4KPC9zdmc+Cg=="):e.replace(r[0],"")}return e}(JSON.stringify(t))),s=Math.ceil(a.byteLength/PF);for(let e=0;etypeof window}return new class{constructor(){this._advancedNetworkCapture=!1}init({advancedNetworkCapture:e=!1,apiKey:t,blockClass:r,captureConsole:n,consoleCapture:i,debug:o=!1,disableIntercom:a=!1,disableReplay:s=!1,ignoreClass:u,ignoreUrls:c,instrumentations:l={},maskAllInputs:f=!0,maskAllText:d=!1,maskClass:h,recordCanvas:p=!1,sampling:m,service:y,tracePropagationTargets:g,url:b}){var v;if(!PQ())return;null==t?console.warn("HyperDX: Missing apiKey, telemetry will not be saved."):""===t?console.warn("HyperDX: apiKey is empty string, telemetry will not be saved."):"string"!=typeof t&&console.warn("HyperDX: apiKey must be a string, telemetry will not be saved.");let _=null!=b?b:"https://in-otel.hyperdx.io";this._advancedNetworkCapture=e,RQ.init({debug:o,url:`${_}/v1/traces`,allowInsecureUrl:!0,apiKey:t,app:y,ignoreUrls:c,instrumentations:{visibility:!0,console:null!=(v=null!=n?n:i)&&v,fetch:{...null!=g?{propagateTraceHeaderCorsUrls:g}:{},advancedNetworkCapture:()=>this._advancedNetworkCapture},xhr:{...null!=g?{propagateTraceHeaderCorsUrls:g}:{},advancedNetworkCapture:()=>this._advancedNetworkCapture},...l}}),!0!==s&&PJ.init({apiKey:t,blockClass:r,debug:o,ignoreClass:u,maskAllInputs:f,maskTextClass:h,maskTextSelector:d?"*":void 0,recordCanvas:p,sampling:m,url:`${_}/v1/logs`});let S=tC.trace.getTracer("@hyperdx/browser");!0!==a&&(function(e){return new Promise((t,r)=>{let n=0,i=setInterval(()=>{n>20&&(clearInterval(i),r(Error(`Global ${e} not found`))),window[e]&&(clearInterval(i),t(window[e])),n++},100)})})("Intercom").then(()=>{window.Intercom("onShow",()=>{let e=this.getSessionUrl();if(null!=e){let t={hyperdxSessionUrl:e};window.Intercom("update",t),window.Intercom("trackEvent","HyperDX",t);let r=Date.now(),n=S.startSpan("intercom.onShow",{startTime:r});n.setAttribute("component","intercom"),n.end(r)}})}).catch(()=>{})}stopSessionRecorder(){PQ()&&PJ.stop()}resumeSessionRecorder(){PQ()&&PJ.resume()}addAction(e,t){PQ()&&RQ.addAction(e,t)}recordException(e,t){PQ()&&RQ.recordException(e,t)}enableAdvancedNetworkCapture(){this._advancedNetworkCapture=!0}disableAdvancedNetworkCapture(){this._advancedNetworkCapture=!1}setGlobalAttributes(e){PQ()&&RQ.setGlobalAttributes(e)}getSessionId(){return RQ.getSessionId()}getSessionUrl(){let e=Date.now(),t=e-144e5,r=e+144e5;return RQ.inited?`https://www.hyperdx.io/sessions?q=process.tag.rum.sessionId%3A"${RQ.getSessionId()}"&sid=${RQ.getSessionId()}&sfrom=${t}&sto=${r}&ts=${e}`:void 0}attachToReactErrorBoundary(e){if(!e)return console.warn("Attempted to attach to an ErrorBoundary that does not exist.");let t=this.recordException,r=e.prototype.componentDidCatch;e.prototype.componentDidCatch=function(e,n){t(e,{componentStack:null==n?void 0:n.componentStack}),r.call(this,e,n)}}}})},16638:e=>{"use strict";e.exports=Number.isNaN||function(e){return e!=e}},17547:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.defaultErrorMap=void 0,t.setErrorMap=a,t.getErrorMap=s;let i=n(r(40467));t.defaultErrorMap=i.default;let o=i.default;function a(e){o=e}function s(){return o}},17769:(e,t,r)=>{"use strict";let n,i,o,a,s,u,c,l;function f(e){let t,r=e[0],n=1;for(;nr.call(t,...e)),t=void 0)}return r}Object.defineProperty(t,"__esModule",{value:!0});var d=r(96602),h=((n=h||{}).Gauge="gauge",n.Histogram="histogram",n.Sum="sum",n.Summary="summary",n.ExponentialHistogram="exponential histogram",n),p=((i=p||{}).Line="line",i.StackedBar="stacked_bar",i.Table="table",i.Pie="pie",i.Number="number",i.Search="search",i.Heatmap="heatmap",i.Markdown="markdown",t.b=i),m=t.c=d.z.object(Object.values(h).reduce((e,t)=>({...e,[t]:d.z.string().optional()}),{})).refine(e=>Object.values(e).some(e=>e&&e.length>0),{message:"At least one metric table must be specified"}),y=t.d=d.z.string().regex(/^\d+ (second|minute|hour|day)$/),g=t.e=d.z.string(),b=t.f=d.z.enum(["sql","lucene"]).optional(),v=t.g=d.z.enum(["avg","count","count_distinct","last_value","max","min","quantile","sum","any","none"]),_=t.h=d.z.enum([...v.options,"histogram"]),S=t.i=d.z.string().regex(/^(\w+)If(State|Merge)$/),E=t.j=d.z.object({aggFn:d.z.union([d.z.literal("quantile"),d.z.literal("quantileMerge"),d.z.literal("histogram"),d.z.literal("histogramMerge")]),level:d.z.number(),aggCondition:g,aggConditionLanguage:b,valueExpression:d.z.string(),valueExpressionLanguage:d.z.undefined().optional(),isDelta:d.z.boolean().optional()}).or(d.z.object({aggFn:d.z.union([v,S]),aggCondition:g,aggConditionLanguage:b,valueExpression:d.z.string(),valueExpressionLanguage:d.z.undefined().optional(),isDelta:d.z.boolean().optional()})).or(d.z.object({aggFn:d.z.string().optional(),aggCondition:d.z.string().optional(),aggConditionLanguage:b,valueExpression:d.z.string(),valueExpressionLanguage:d.z.undefined().optional(),metricType:d.z.nativeEnum(h).optional(),isDelta:d.z.boolean().optional()})).or(d.z.object({aggFn:d.z.string().optional(),aggCondition:d.z.string().optional(),aggConditionLanguage:b.optional(),valueExpression:d.z.string(),valueExpressionLanguage:b,isDelta:d.z.boolean().optional()})),w=t.k=d.z.intersection(E,d.z.object({alias:d.z.string().optional(),metricType:d.z.nativeEnum(h).optional(),metricName:d.z.string().optional(),metricNameSql:d.z.string().optional()})),T=t.l=d.z.array(w).or(d.z.string()),x=t.m=d.z.intersection(E,d.z.object({ordering:d.z.enum(["ASC","DESC"])})),A=t.n=d.z.array(x).or(d.z.string()),O=t.o=d.z.object({limit:d.z.number().optional(),offset:d.z.number().optional()}),M=t.p=d.z.object({sql:d.z.string(),params:d.z.record(d.z.string(),d.z.any())}),R=t.q=d.z.object({select:T,from:d.z.object({databaseName:d.z.string(),tableName:d.z.string()}),where:g,whereLanguage:b,groupBy:T.optional(),having:g.optional(),havingLanguage:b.optional(),orderBy:A.optional(),limit:O.optional()}),C=((o=C||{}).Slack="slack",o.Generic="generic",o.IncidentIO="incidentio",t.r=o),I=((a=I||{}).ABOVE="above",a.BELOW="below",t.s=a),N=((s=N||{}).ALERT="ALERT",s.DISABLED="DISABLED",s.INSUFFICIENT_DATA="INSUFFICIENT_DATA",s.OK="OK",t.t=s),P=((u=P||{}).SAVED_SEARCH="saved_search",u.TILE="tile",t.u=u),k=t.v=d.z.union([d.z.literal("1m"),d.z.literal("5m"),d.z.literal("15m"),d.z.literal("30m"),d.z.literal("1h"),d.z.literal("6h"),d.z.literal("12h"),d.z.literal("1d")]),D=t.w=d.z.literal("webhook"),L=t.x=d.z.object({type:D,webhookId:d.z.string().nonempty("Webhook ID can't be empty")}),j=t.y=d.z.object({source:d.z.literal("saved_search"),groupBy:d.z.string().optional(),savedSearchId:d.z.string().min(1)}),U=t.z=d.z.object({source:d.z.literal("tile"),tileId:d.z.string().min(1),dashboardId:d.z.string().min(1)}),B=t.A=d.z.object({id:d.z.string().optional(),interval:k,threshold:d.z.number().int().min(1),thresholdType:d.z.nativeEnum(I),channel:L,state:d.z.nativeEnum(N).optional(),name:d.z.string().min(1).max(512).nullish(),message:d.z.string().min(1).max(4096).nullish(),silenced:d.z.object({by:d.z.string(),at:d.z.string(),until:d.z.string()}).optional()}),F=t.B=B.extend({threshold:d.z.number().positive()}),z=t.C=d.z.union([d.z.intersection(B,j),d.z.intersection(F,U)]),$=t.D=d.z.object({type:d.z.literal("sql_ast"),operator:d.z.enum(["=","<",">","!=","<=",">="]),left:d.z.string(),right:d.z.string()}),V=t.E=d.z.union([d.z.object({type:d.z.enum(["lucene","sql"]),condition:d.z.string()}),$]),Y=t.F=d.z.object({id:d.z.string(),name:d.z.string(),select:d.z.string(),where:d.z.string(),whereLanguage:b,source:d.z.string(),tags:d.z.array(d.z.string()),orderBy:d.z.string().optional(),filters:d.z.array(V).optional(),alerts:d.z.array(z).optional()}),q=t.G=d.z.object({output:d.z.enum(["currency","percent","byte","time","number"]),mantissa:d.z.number().int().optional(),thousandSeparated:d.z.boolean().optional(),average:d.z.boolean().optional(),decimalBytes:d.z.boolean().optional(),factor:d.z.number().optional(),currencySymbol:d.z.string().optional(),unit:d.z.string().optional()}),H=t.H=d.z.object({displayType:d.z.nativeEnum(p).optional(),numberFormat:q.optional(),timestampValueExpression:d.z.string(),implicitColumnExpression:d.z.string().optional(),granularity:d.z.union([y,d.z.literal("auto")]).optional(),markdown:d.z.string().optional(),filtersLogicalOperator:d.z.enum(["AND","OR"]).optional(),filters:d.z.array(V).optional(),connection:d.z.string(),fillNulls:d.z.union([d.z.number(),d.z.literal(!1)]).optional(),selectGroupBy:d.z.boolean().optional(),metricTables:m.optional(),seriesReturnType:d.z.enum(["ratio","column"]).optional(),eventTableSelect:d.z.string().optional(),compareToPreviousPeriod:d.z.boolean().optional(),source:d.z.string().optional(),alignDateRangeToGranularity:d.z.boolean().optional()}),W=t.I=d.z.intersection(H.partial({timestampValueExpression:!0}),R),G=t.J=d.z.intersection(d.z.intersection(H,R),d.z.object({with:d.z.array(d.z.object({name:d.z.string(),sql:M.optional(),chartConfig:W.optional(),isSubquery:d.z.boolean().optional()}))}).partial()),Z=t.K=d.z.object({name:d.z.string().optional(),source:d.z.string(),alert:d.z.union([B.optional(),F.optional()])}).extend(H.omit({connection:!0,timestampValueExpression:!0,source:!0}).shape).extend(R.omit({from:!0}).shape),K=t.L=d.z.object({id:d.z.string(),x:d.z.number(),y:d.z.number(),w:d.z.number(),h:d.z.number(),config:Z}),X=t.M=K.extend({config:K.shape.config.omit({alert:!0})}),J=t.N=d.z.enum(["QUERY_EXPRESSION"]),Q=t.O=d.z.object({id:d.z.string(),type:J,name:d.z.string().min(1),expression:d.z.string().min(1),source:d.z.string().min(1),sourceMetricType:d.z.nativeEnum(h).optional()}),ee=((c=ee||{}).Services="services",t.P=c),et=t.Q=Q.extend({presetDashboard:d.z.nativeEnum(ee)}),er=t.R=d.z.object({id:d.z.string(),name:d.z.string().min(1),tiles:d.z.array(K),tags:d.z.array(d.z.string()),filters:d.z.array(Q).optional(),savedQuery:d.z.string().nullable().optional(),savedQueryLanguage:b.nullable().optional(),savedFilterValues:d.z.array(V).nullable().optional()}),en=t.S=er.omit({id:!0}),ei=t.T=en.omit({tags:!0}).extend({version:d.z.string().min(1),tiles:d.z.array(X),filters:d.z.array(Q).optional()}),eo=t.U=d.z.object({id:d.z.string(),name:d.z.string(),host:d.z.string(),username:d.z.string(),password:d.z.string().optional(),hyperdxSettingPrefix:d.z.string().regex(/^[a-z0-9_]+$/i).optional().nullable()}),ea=t.V=d.z.object({fieldMetadataDisabled:d.z.boolean().optional(),searchRowLimit:d.z.number().optional(),queryTimeout:d.z.number().optional(),metadataMaxRowsToRead:d.z.number().optional(),parallelizeWhenPossible:d.z.boolean().optional()}),es=t.W=d.z.object({id:d.z.string(),name:d.z.string(),allowedAuthMethods:d.z.array(d.z.literal("password")).optional(),apiKey:d.z.string(),hookId:d.z.string(),collectorAuthenticationEnforced:d.z.boolean()}).merge(ea),eu=((l=eu||{}).Log="log",l.Trace="trace",l.Session="session",l.Metric="metric",t.X=l),ec=d.z.array(d.z.object({setting:d.z.string().min(1),value:d.z.string().min(1)})),el=d.z.object({id:d.z.string(),name:d.z.string().min(1,"Name is required"),kind:d.z.nativeEnum(eu),connection:d.z.string().min(1,"Server Connection is required"),from:d.z.object({databaseName:d.z.string().min(1,"Database is required"),tableName:d.z.string().min(1,"Table is required")}),querySettings:ec.optional()}),ef=d.z.string().min(1,"Timestamp Column is required"),ed=d.z.array(d.z.object({sqlExpression:d.z.string().min(1,"Attribute SQL Expression is required"),luceneExpression:d.z.string().optional(),alias:d.z.string().optional()})),eh=d.z.object({sourceColumn:d.z.string().optional(),aggFn:_,mvColumn:d.z.string().min(1,"Materialized View Column is required")}).refine(({sourceColumn:e,aggFn:t})=>"count"===t||!!f([e,"optionalAccess",e=>e.length]),{message:"Materialized View Source Column is required"}),ep=t.Y=d.z.object({databaseName:d.z.string().min(1,"Materialized View Database is required"),tableName:d.z.string().min(1,"Materialized View Table is required"),dimensionColumns:d.z.string(),minGranularity:y,minDate:d.z.string().datetime().nullish(),timestampColumn:d.z.string().min(1,"Materialized View Timestamp column is required"),aggregatedColumns:d.z.array(eh).min(1,"At least one aggregated column is required")}),em={kind:d.z.literal("log"),defaultTableSelectExpression:d.z.string({message:"Default Table Select Expression is required"}),timestampValueExpression:ef,serviceNameExpression:d.z.string().optional(),severityTextExpression:d.z.string().optional(),bodyExpression:d.z.string().optional(),eventAttributesExpression:d.z.string().optional(),resourceAttributesExpression:d.z.string().optional(),displayedTimestampValueExpression:d.z.string().optional(),metricSourceId:d.z.string().optional(),traceSourceId:d.z.string().optional(),traceIdExpression:d.z.string().optional(),spanIdExpression:d.z.string().optional(),implicitColumnExpression:d.z.string().optional(),uniqueRowIdExpression:d.z.string().optional(),tableFilterExpression:d.z.string().optional(),highlightedTraceAttributeExpressions:ed.optional(),highlightedRowAttributeExpressions:ed.optional(),materializedViews:d.z.array(ep).optional()},ey={kind:d.z.literal("trace"),defaultTableSelectExpression:d.z.string().optional(),timestampValueExpression:ef,durationExpression:d.z.string().min(1,"Duration Expression is required"),durationPrecision:d.z.number().min(0).max(9).default(3),traceIdExpression:d.z.string().min(1,"Trace ID Expression is required"),spanIdExpression:d.z.string().min(1,"Span ID Expression is required"),parentSpanIdExpression:d.z.string().min(1,"Parent span ID expression is required"),spanNameExpression:d.z.string().min(1,"Span Name Expression is required"),spanKindExpression:d.z.string().min(1,"Span Kind Expression is required"),logSourceId:d.z.string().optional().nullable(),sessionSourceId:d.z.string().optional(),metricSourceId:d.z.string().optional(),statusCodeExpression:d.z.string().optional(),statusMessageExpression:d.z.string().optional(),serviceNameExpression:d.z.string().optional(),resourceAttributesExpression:d.z.string().optional(),eventAttributesExpression:d.z.string().optional(),spanEventsValueExpression:d.z.string().optional(),implicitColumnExpression:d.z.string().optional(),displayedTimestampValueExpression:d.z.string().optional(),highlightedTraceAttributeExpressions:ed.optional(),highlightedRowAttributeExpressions:ed.optional(),materializedViews:d.z.array(ep).optional()},eg={kind:d.z.literal("session"),timestampValueExpression:d.z.string().optional(),traceSourceId:d.z.string({message:"Correlated Trace Source is required"}).min(1,"Correlated Trace Source is required")},eb={kind:d.z.literal("metric"),from:d.z.object({databaseName:d.z.string().min(1,"Database is required"),tableName:d.z.string()}),metricTables:m,timestampValueExpression:ef,resourceAttributesExpression:d.z.string().min(1,"Resource Attributes is required"),logSourceId:d.z.string().optional()},ev=t.Z=d.z.discriminatedUnion("kind",[el.extend(em),el.extend(ey),el.extend(eg),el.extend(eb)]);function e_(e={}){return d.z.discriminatedUnion("kind",[el.omit(e).extend(em),el.omit(e).extend(ey),el.omit(e).extend(eg),el.omit(e).extend(eb)])}var eS=d.z.object({displayType:d.z.enum(["line","table"]),markdown:d.z.string().optional(),select:d.z.array(d.z.object({aggregationFunction:v.describe("SQL-like function to aggregate the property by"),property:d.z.string().describe("Property or column to be aggregated (ex. Duration)"),condition:d.z.string().optional().describe("SQL filter condition to filter on ex. `SeverityText = 'error'`")})).describe("Array of data series or columns to chart for the user"),groupBy:d.z.string().optional().describe("Group by column or properties for the chart"),timeRange:d.z.string().default("Past 1h").describe('Time range of data to query for like "Past 1h", "Past 24h"')}),eE=d.z.object({from:R.shape.from,source:d.z.string(),connection:d.z.string(),where:g.optional(),whereLanguage:b,timestampValueExpression:d.z.string(),dateRange:d.z.tuple([d.z.string(),d.z.string()]),name:d.z.string().optional(),markdown:d.z.string().optional()}),ew=d.z.object({displayType:d.z.literal("search"),select:d.z.string(),groupBy:d.z.string().optional(),limit:d.z.object({limit:d.z.number().int().positive()}).optional()}).merge(eE.required({where:!0})),eT=d.z.object({displayType:d.z.literal("table"),select:d.z.array(w).min(1),groupBy:d.z.string().optional(),granularity:d.z.union([y,d.z.literal("auto")]).optional(),limit:O.optional()}).merge(eE),ex=d.z.object({displayType:d.z.literal("line"),select:d.z.array(w).min(1),groupBy:d.z.string().optional(),granularity:d.z.union([y,d.z.literal("auto")]).optional(),limit:O.optional()}).merge(eE),eA=t.aa=d.z.discriminatedUnion("displayType",[ew,eT,ex]);t.a=h,t.b=p,t.c=m,t.d=y,t.e=g,t.f=b,t.g=v,t.h=_,t.i=S,t.j=E,t.k=w,t.l=T,t.m=x,t.n=A,t.o=O,t.p=M,t.q=R,t.r=C,t.s=I,t.t=N,t.u=P,t.v=k,t.w=D,t.x=L,t.y=j,t.z=U,t.A=B,t.B=F,t.C=z,t.D=$,t.E=V,t.F=Y,t.G=q,t.H=H,t.I=W,t.J=G,t.K=Z,t.L=K,t.M=X,t.N=J,t.O=Q,t.P=ee,t.Q=et,t.R=er,t.S=en,t.T=ei,t.U=eo,t.V=ea,t.W=es,t.X=eu,t.Y=ep,t.Z=ev,t._=e_,t.$=eS,t.aa=eA},18e3:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBrowser=void 0,t.isBrowser=function(){return!!("u">typeof window&&window.__ENV)}},19086:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(64892),i=r(45859);let o=(e,t)=>{let r;switch(e.code){case n.eq.invalid_type:r=e.received===i.Zp.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case n.eq.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,i.ZS.jsonStringifyReplacer)}`;break;case n.eq.unrecognized_keys:r=`Unrecognized key(s) in object: ${i.ZS.joinValues(e.keys,", ")}`;break;case n.eq.invalid_union:r="Invalid input";break;case n.eq.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${i.ZS.joinValues(e.options)}`;break;case n.eq.invalid_enum_value:r=`Invalid enum value. Expected ${i.ZS.joinValues(e.options)}, received '${e.received}'`;break;case n.eq.invalid_arguments:r="Invalid function arguments";break;case n.eq.invalid_return_type:r="Invalid function return type";break;case n.eq.invalid_date:r="Invalid date";break;case n.eq.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:i.ZS.assertNever(e.validation):r="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case n.eq.too_small:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type||"bigint"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case n.eq.too_big:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case n.eq.custom:r="Invalid input";break;case n.eq.invalid_intersection_types:r="Intersection results could not be merged";break;case n.eq.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case n.eq.not_finite:r="Number must be finite";break;default:r=t.defaultError,i.ZS.assertNever(e)}return{message:r}}},19589:(e,t,r)=>{"use strict";r.d(t,{K:()=>c});var n=r(6029);r(55729);var i=r(85824),o=r(78704);function a(e){return e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}function s(e){return(0,o.H)(e).reduce((t,r)=>void 0!==e[r]?`${t}${a(r)}:${e[r]};`:t,"").trim()}function u({selector:e,styles:t,media:r,container:n}){let i=t?s(t):"",o=Array.isArray(r)?r.map(t=>`@media${t.query}{${e}{${s(t.styles)}}}`):[],a=Array.isArray(n)?n.map(t=>`@container ${t.query}{${e}{${s(t.styles)}}}`):[];return`${i?`${e}{${i}}`:""}${o.join("")}${a.join("")}`.trim()}function c(e){let t=(0,i.WV)();return(0,n.jsx)("style",{"data-mantine-styles":"inline",nonce:t?.(),dangerouslySetInnerHTML:{__html:u(e)}})}},19848:(e,t,r)=>{"use strict";r.d(t,{m:()=>o});var n=r(24090),i=r(4308),o=new class extends n.Q{#s;#t;#r;constructor(){super(),this.#r=e=>{if(!i.S$&&window.addEventListener){let t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#r=e,this.#t?.(),this.#t=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#s!==e&&(this.#s=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#s?this.#s:globalThis.document?.visibilityState!=="hidden"}}},20158:(e,t,r)=>{"use strict";r.d(t,{J:()=>y});var n=r(6029),i=r(26615),o=r(55729),a=r(76),s=r(5618),u=r(80616),c=r(37666),l=r(63863),f=r(8737);let d=(0,o.forwardRef)(({size:e="var(--cb-icon-size, 70%)",style:t,...r},i)=>(0,n.jsx)("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...t,width:e,height:e},ref:i,...r,children:(0,n.jsx)("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})}));d.displayName="@mantine/core/CloseIcon";var h={root:"m_86a44da5","root--subtle":"m_220c80f2"};let p={variant:"subtle"},m=(0,s.V)((e,{size:t,radius:r,iconSize:n})=>({root:{"--cb-size":(0,a.YC)(t,"cb-size"),"--cb-radius":void 0===r?void 0:(0,a.nJ)(r),"--cb-icon-size":(0,i.D)(n)}})),y=(0,l.v)((e,t)=>{let r=(0,u.Y)("CloseButton",p,e),{iconSize:i,children:o,vars:a,radius:s,className:l,classNames:y,style:g,styles:b,unstyled:v,"data-disabled":_,disabled:S,variant:E,icon:w,mod:T,__staticSelector:x,...A}=r,O=(0,c.I)({name:x||"CloseButton",props:r,className:l,style:g,classes:h,classNames:y,styles:b,unstyled:v,vars:a,varsResolver:m});return(0,n.jsxs)(f.N,{ref:t,...A,unstyled:v,variant:E,disabled:S,mod:[{disabled:S||_},T],...O("root",{variant:E,active:!S&&!_}),children:[w||(0,n.jsx)(d,{}),o]})});y.classes=h,y.displayName="@mantine/core/CloseButton"},20586:(e,t,r)=>{"use strict";var n=r(29143);Object.defineProperty(t,"__esModule",{value:!0}),t.env=void 0;let i=r(18e3);t.env=function(e){return(0,i.isBrowser)()?window.__ENV[e]:n.env[e]}},21093:(e,t,r)=>{"use strict";var n,i=r(83639),o=r(27654);try{n=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var a=!!n&&o&&o(Object.prototype,"__proto__"),s=Object,u=s.getPrototypeOf;e.exports=a&&"function"==typeof a.get?i([a.get]):"function"==typeof u&&function(e){return u(null==e?e:s(e))}},21667:(e,t,r)=>{"use strict";var n=r(24813),i=Object.prototype.toString,o=Object.prototype.hasOwnProperty,a=function(e,t,r){for(var n=0,i=e.length;n=3&&(i=r),c(e)?a(e,t,i):"string"==typeof e?s(e,t,i):u(e,t,i)}},21981:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(41742),i=r(89250);function o(e){(0,i.A)(1,arguments);var t=(0,n.A)(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t}},22497:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(47971),i=r(41742),o=r(89250);function a(e){return(0,o.A)(1,arguments),(!!(0,n.A)(e)||"number"==typeof e)&&!isNaN(Number((0,i.A)(e)))}},22623:(e,t,r)=>{"use strict";r.d(t,{t:()=>h});var n=r(6029);r(55729);var i=r(76),o=r(5618),a=r(80616),s=r(37666),u=r(60481),c=r(63863),l={root:"m_1b7284a3"};let f={},d=(0,o.V)((e,{radius:t,shadow:r})=>({root:{"--paper-radius":void 0===t?void 0:(0,i.nJ)(t),"--paper-shadow":(0,i.dh)(r)}})),h=(0,c.v)((e,t)=>{let r=(0,a.Y)("Paper",f,e),{classNames:i,className:o,style:c,styles:h,unstyled:p,withBorder:m,vars:y,radius:g,shadow:b,variant:v,mod:_,...S}=r,E=(0,s.I)({name:"Paper",props:r,classes:l,className:o,style:c,classNames:i,styles:h,unstyled:p,vars:y,varsResolver:d});return(0,n.jsx)(u.a,{ref:t,mod:[{"data-with-border":m},_],...E("root"),variant:v,...S})});h.classes=l,h.displayName="@mantine/core/Paper"},22843:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var n=s(r(3514)),i=s(r(42462)),o=s(r(78229)),a=r(31055);function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){(0,i.default)(1,arguments);var r,s,u,c,l,f,d,h,p=(0,a.getDefaultOptions)(),m=(0,o.default)(null!=(r=null!=(s=null!=(u=null!=(c=null==t?void 0:t.weekStartsOn)?c:null==t||null==(l=t.locale)||null==(f=l.options)?void 0:f.weekStartsOn)?u:p.weekStartsOn)?s:null==(d=p.locale)||null==(h=d.options)?void 0:h.weekStartsOn)?r:0);if(!(m>=0&&m<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");var y=(0,n.default)(e),g=y.getUTCDay(),b=7*(g{"use strict";r.d(t,{u:()=>o});var n={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}},i="trunc";function o(e){return e?n[e]:n[i]}},24090:(e,t,r)=>{"use strict";r.d(t,{Q:()=>n});var n=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}},24345:(e,t,r)=>{"use strict";var n=r(21667),i=r(96779),o=r(62094),a=r(81074),s=r(27654),u=a("Object.prototype.toString"),c=r(27721)(),l="u"-1?t:"Object"===t&&g(e)}return s?y(e):null}},24708:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var n=s(r(3514)),i=s(r(22843)),o=s(r(34738)),a=s(r(42462));function s(e){return e&&e.__esModule?e:{default:e}}var u=6048e5;function c(e,t){(0,a.default)(1,arguments);var r=(0,n.default)(e);return Math.round(((0,i.default)(r,t).getTime()-(0,o.default)(r,t).getTime())/u)+1}e.exports=t.default},24813:e=>{"use strict";var t,r,n=Function.prototype.toString,i="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof i&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw r}}),r={},i(function(){throw 42},null,t)}catch(e){e!==r&&(i=null)}else i=null;var o=/^\s*class\b/,a=function(e){try{var t=n.call(e);return o.test(t)}catch(e){return!1}},s=function(e){try{if(a(e))return!1;return n.call(e),!0}catch(e){return!1}},u=Object.prototype.toString,c="[object Object]",l="[object Function]",f="[object GeneratorFunction]",d="[object HTMLAllCollection]",h="[object HTML document.all class]",p="[object HTMLCollection]",m="function"==typeof Symbol&&!!Symbol.toStringTag,y=!(0 in[,]),g=function(){return!1};if("object"==typeof document){var b=document.all;u.call(b)===u.call(document.all)&&(g=function(e){if((y||!e)&&(void 0===e||"object"==typeof e))try{var t=u.call(e);return(t===d||t===h||t===p||t===c)&&null==e("")}catch(e){}return!1})}e.exports=i?function(e){if(g(e))return!0;if(!e||"function"!=typeof e&&"object"!=typeof e)return!1;try{i(e,null,t)}catch(e){if(e!==r)return!1}return!a(e)&&s(e)}:function(e){if(g(e))return!0;if(!e||"function"!=typeof e&&"object"!=typeof e)return!1;if(m)return s(e);if(a(e))return!1;var t=u.call(e);return(t===l||t===f||!!/^\[object HTML/.test(t))&&s(e)}},24935:(e,t,r)=>{"use strict";r.d(t,{B:()=>u});var n=r(55729),i=r(3001);function o(e,t,r){for(let r=e-1;r>=0;r-=1)if(!t[r].hasAttribute("data-combobox-disabled"))return r;if(r){for(let e=t.length-1;e>-1;e-=1)if(!t[e].hasAttribute("data-combobox-disabled"))return e}return e}function a(e,t,r){for(let r=e+1;r{h||(p(!0),l?.(e))},[p,l,h]),w=(0,n.useCallback)((e="unknown")=>{h&&(p(!1),c?.(e))},[p,c,h]),T=(0,n.useCallback)((e="unknown")=>{h?w(e):E(e)},[w,E,h]),x=(0,n.useCallback)(()=>{let e=document.querySelector(`#${m.current} [data-combobox-selected]`);e?.removeAttribute("data-combobox-selected"),e?.removeAttribute("aria-selected")},[]),A=(0,n.useCallback)(e=>{let t=document.getElementById(m.current),r=t?.querySelectorAll("[data-combobox-option]");if(!r)return null;let n=e>=r.length?0:e<0?r.length-1:e;return(y.current=n,r?.[n]&&!r[n].hasAttribute("data-combobox-disabled"))?(x(),r[n].setAttribute("data-combobox-selected","true"),r[n].setAttribute("aria-selected","true"),r[n].scrollIntoView({block:"nearest",behavior:d}),r[n].id):null},[d,x]),O=(0,n.useCallback)(()=>{let e=document.querySelector(`#${m.current} [data-combobox-active]`);return e?A(Array.from(document.querySelectorAll(`#${m.current} [data-combobox-option]`)).findIndex(t=>t===e)):A(0)},[A]),M=(0,n.useCallback)(()=>A(a(y.current,document.querySelectorAll(`#${m.current} [data-combobox-option]`),f)),[A,f]),R=(0,n.useCallback)(()=>A(o(y.current,document.querySelectorAll(`#${m.current} [data-combobox-option]`),f)),[A,f]),C=(0,n.useCallback)(()=>A(s(document.querySelectorAll(`#${m.current} [data-combobox-option]`))),[A]),I=(0,n.useCallback)((e="selected",t)=>{S.current=window.setTimeout(()=>{let r=document.querySelectorAll(`#${m.current} [data-combobox-option]`),n=Array.from(r).findIndex(t=>t.hasAttribute(`data-combobox-${e}`));y.current=n,t?.scrollIntoView&&r[n]?.scrollIntoView({block:"nearest",behavior:d})},0)},[]),N=(0,n.useCallback)(()=>{y.current=-1,x()},[x]),P=(0,n.useCallback)(()=>{let e=document.querySelectorAll(`#${m.current} [data-combobox-option]`),t=e?.[y.current];t?.click()},[]),k=(0,n.useCallback)(e=>{m.current=e},[]),D=(0,n.useCallback)(()=>{v.current=window.setTimeout(()=>g.current.focus(),0)},[]),L=(0,n.useCallback)(()=>{_.current=window.setTimeout(()=>b.current.focus(),0)},[]),j=(0,n.useCallback)(()=>y.current,[]);return(0,n.useEffect)(()=>()=>{window.clearTimeout(v.current),window.clearTimeout(_.current),window.clearTimeout(S.current)},[]),{dropdownOpened:h,openDropdown:E,closeDropdown:w,toggleDropdown:T,selectedOptionIndex:y.current,getSelectedOptionIndex:j,selectOption:A,selectFirstOption:C,selectActiveOption:O,selectNextOption:M,selectPreviousOption:R,resetSelectedOption:N,updateSelectedOptionIndex:I,listId:m.current,setListId:k,clickSelectedOption:P,searchRef:g,focusSearchInput:D,targetRef:b,focusTarget:L}}},25062:(e,t,r)=>{"use strict";r.d(t,{$:()=>x});var n=r(6029),i=r(26615);r(55729);var o=r(76),a=r(5618),s=r(80616),u=r(37666),c=r(60481),l=r(63863),f=r(94720),d=r(56738),h=r(8737),p=r(43016),m={root:"m_77c9d27d",inner:"m_80f1301b",label:"m_811560b9",section:"m_a74036a",loader:"m_a25b86ee",group:"m_80d6d844",groupSection:"m_70be2a01"};let y={orientation:"horizontal"},g=(0,a.V)((e,{borderWidth:t})=>({group:{"--button-border-width":(0,i.D)(t)}})),b=(0,p.P9)((e,t)=>{let r=(0,s.Y)("ButtonGroup",y,e),{className:i,style:o,classNames:a,styles:l,unstyled:f,orientation:d,vars:h,borderWidth:p,variant:b,mod:v,..._}=(0,s.Y)("ButtonGroup",y,e),S=(0,u.I)({name:"ButtonGroup",props:r,classes:m,className:i,style:o,classNames:a,styles:l,unstyled:f,vars:h,varsResolver:g,rootSelector:"group"});return(0,n.jsx)(c.a,{...S("group"),ref:t,variant:b,mod:[{"data-orientation":d},v],role:"group",..._})});b.classes=m,b.displayName="@mantine/core/ButtonGroup";let v={},_=(0,a.V)((e,{radius:t,color:r,gradient:n,variant:i,autoContrast:a,size:s})=>{let u=e.variantColorResolver({color:r||e.primaryColor,theme:e,gradient:n,variant:i||"filled",autoContrast:a});return{groupSection:{"--section-height":(0,o.YC)(s,"section-height"),"--section-padding-x":(0,o.YC)(s,"section-padding-x"),"--section-fz":s?.includes("compact")?(0,o.ny)(s.replace("compact-","")):(0,o.ny)(s),"--section-radius":void 0===t?void 0:(0,o.nJ)(t),"--section-bg":r||i?u.background:void 0,"--section-color":u.color,"--section-bd":r||i?u.border:void 0}}}),S=(0,p.P9)((e,t)=>{let r=(0,s.Y)("ButtonGroupSection",v,e),{className:i,style:o,classNames:a,styles:l,unstyled:f,vars:d,variant:h,gradient:p,radius:y,autoContrast:g,...b}=(0,s.Y)("ButtonGroupSection",v,e),S=(0,u.I)({name:"ButtonGroupSection",props:r,classes:m,className:i,style:o,classNames:a,styles:l,unstyled:f,vars:d,varsResolver:_,rootSelector:"groupSection"});return(0,n.jsx)(c.a,{...S("groupSection"),ref:t,variant:h,...b})});S.classes=m,S.displayName="@mantine/core/ButtonGroupSection";let E={in:{opacity:1,transform:`translate(-50%, calc(-50% + ${(0,i.D)(1)}))`},out:{opacity:0,transform:"translate(-50%, -200%)"},common:{transformOrigin:"center"},transitionProperty:"transform, opacity"},w={},T=(0,a.V)((e,{radius:t,color:r,gradient:n,variant:i,size:a,justify:s,autoContrast:u})=>{let c=e.variantColorResolver({color:r||e.primaryColor,theme:e,gradient:n,variant:i||"filled",autoContrast:u});return{root:{"--button-justify":s,"--button-height":(0,o.YC)(a,"button-height"),"--button-padding-x":(0,o.YC)(a,"button-padding-x"),"--button-fz":a?.includes("compact")?(0,o.ny)(a.replace("compact-","")):(0,o.ny)(a),"--button-radius":void 0===t?void 0:(0,o.nJ)(t),"--button-bg":r||i?c.background:void 0,"--button-hover":r||i?c.hover:void 0,"--button-color":c.color,"--button-bd":r||i?c.border:void 0,"--button-hover-color":r||i?c.hoverColor:void 0}}}),x=(0,l.v)((e,t)=>{let r=(0,s.Y)("Button",w,e),{style:i,vars:o,className:a,color:l,disabled:p,children:y,leftSection:g,rightSection:b,fullWidth:v,variant:_,radius:S,loading:x,loaderProps:A,gradient:O,classNames:M,styles:R,unstyled:C,"data-disabled":I,autoContrast:N,mod:P,...k}=r,D=(0,u.I)({name:"Button",props:r,classes:m,className:a,style:i,classNames:M,styles:R,unstyled:C,vars:o,varsResolver:T}),L=!!g,j=!!b;return(0,n.jsxs)(h.N,{ref:t,...D("root",{active:!p&&!x&&!I}),unstyled:C,variant:_,disabled:p||x,mod:[{disabled:p||I,loading:x,block:v,"with-left-section":L,"with-right-section":j},P],...k,children:[(0,n.jsx)(d.e,{mounted:!!x,transition:E,duration:150,children:e=>(0,n.jsx)(c.a,{component:"span",...D("loader",{style:e}),"aria-hidden":!0,children:(0,n.jsx)(f.a,{color:"var(--button-color)",size:"calc(var(--button-height) / 1.8)",...A})})}),(0,n.jsxs)("span",{...D("inner"),children:[g&&(0,n.jsx)(c.a,{component:"span",...D("section"),mod:{position:"left"},children:g}),(0,n.jsx)(c.a,{component:"span",mod:{loading:x},...D("label"),children:y}),b&&(0,n.jsx)(c.a,{component:"span",...D("section"),mod:{position:"right"},children:b})]})]})});x.classes=m,x.displayName="@mantine/core/Button",x.Group=b,x.GroupSection=S},25169:(e,t,r)=>{"use strict";var n=r(24345);e.exports=function(e){return!!n(e)}},25605:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(29326),i=r(89250);function o(e,t){(0,i.A)(2,arguments);var r=(0,n.A)(e),o=(0,n.A)(t);return r.getTime()===o.getTime()}},25655:(e,t,r)=>{"use strict";var n;let i;Object.defineProperty(t,"__esModule",{value:!0}),t.discriminatedUnion=t.date=t.boolean=t.bigint=t.array=t.any=t.coerce=t.ZodFirstPartyTypeKind=t.late=t.ZodSchema=t.Schema=t.ZodReadonly=t.ZodPipeline=t.ZodBranded=t.BRAND=t.ZodNaN=t.ZodCatch=t.ZodDefault=t.ZodNullable=t.ZodOptional=t.ZodTransformer=t.ZodEffects=t.ZodPromise=t.ZodNativeEnum=t.ZodEnum=t.ZodLiteral=t.ZodLazy=t.ZodFunction=t.ZodSet=t.ZodMap=t.ZodRecord=t.ZodTuple=t.ZodIntersection=t.ZodDiscriminatedUnion=t.ZodUnion=t.ZodObject=t.ZodArray=t.ZodVoid=t.ZodNever=t.ZodUnknown=t.ZodAny=t.ZodNull=t.ZodUndefined=t.ZodSymbol=t.ZodDate=t.ZodBoolean=t.ZodBigInt=t.ZodNumber=t.ZodString=t.ZodType=void 0,t.NEVER=t.void=t.unknown=t.union=t.undefined=t.tuple=t.transformer=t.symbol=t.string=t.strictObject=t.set=t.record=t.promise=t.preprocess=t.pipeline=t.ostring=t.optional=t.onumber=t.oboolean=t.object=t.number=t.nullable=t.null=t.never=t.nativeEnum=t.nan=t.map=t.literal=t.lazy=t.intersection=t.instanceof=t.function=t.enum=t.effect=void 0,t.datetimeRegex=P,t.custom=ex;let o=r(2301),a=r(17547),s=r(92536),u=r(48603),c=r(27176);class l{constructor(e,t,r,n){this._cachedPath=[],this.parent=e,this.data=t,this._path=r,this._key=n}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}let f=(e,t)=>{if((0,u.isValid)(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let t=new o.ZodError(e.common.issues);return this._error=t,this._error}}};function d(e){if(!e)return{};let{errorMap:t,invalid_type_error:r,required_error:n,description:i}=e;if(t&&(r||n))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:i}:{errorMap:(t,i)=>{let{message:o}=e;return"invalid_enum_value"===t.code?{message:o??i.defaultError}:void 0===i.data?{message:o??n??i.defaultError}:"invalid_type"!==t.code?{message:i.defaultError}:{message:o??r??i.defaultError}},description:i}}class h{get description(){return this._def.description}_getType(e){return(0,c.getParsedType)(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:(0,c.getParsedType)(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new u.ParseStatus,ctx:{common:e.parent.common,data:e.data,parsedType:(0,c.getParsedType)(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if((0,u.isAsync)(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){return Promise.resolve(this._parse(e))}parse(e,t){let r=this.safeParse(e,t);if(r.success)return r.data;throw r.error}safeParse(e,t){let r={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,c.getParsedType)(e)},n=this._parseSync({data:e,path:r.path,parent:r});return f(r,n)}"~validate"(e){let t={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,c.getParsedType)(e)};if(!this["~standard"].async)try{let r=this._parseSync({data:e,path:[],parent:t});return(0,u.isValid)(r)?{value:r.value}:{issues:t.common.issues}}catch(e){e?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then(e=>(0,u.isValid)(e)?{value:e.value}:{issues:t.common.issues})}async parseAsync(e,t){let r=await this.safeParseAsync(e,t);if(r.success)return r.data;throw r.error}async safeParseAsync(e,t){let r={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,c.getParsedType)(e)},n=this._parse({data:e,path:r.path,parent:r});return f(r,await ((0,u.isAsync)(n)?n:Promise.resolve(n)))}refine(e,t){let r=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement((t,n)=>{let i=e(t),a=()=>n.addIssue({code:o.ZodIssueCode.custom,...r(t)});return"u">typeof Promise&&i instanceof Promise?i.then(e=>!!e||(a(),!1)):!!i||(a(),!1)})}refinement(e,t){return this._refinement((r,n)=>!!e(r)||(n.addIssue("function"==typeof t?t(r,n):t),!1))}_refinement(e){return new em({schema:this,typeName:n.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:e=>this["~validate"](e)}}optional(){return ey.create(this,this._def)}nullable(){return eg.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return K.create(this)}promise(){return ep.create(this,this._def)}or(e){return Q.create([this,e],this._def)}and(e){return en.create(this,e,this._def)}transform(e){return new em({...d(this._def),schema:this,typeName:n.ZodEffects,effect:{type:"transform",transform:e}})}default(e){let t="function"==typeof e?e:()=>e;return new eb({...d(this._def),innerType:this,defaultValue:t,typeName:n.ZodDefault})}brand(){return new eS({typeName:n.ZodBranded,type:this,...d(this._def)})}catch(e){let t="function"==typeof e?e:()=>e;return new ev({...d(this._def),innerType:this,catchValue:t,typeName:n.ZodCatch})}describe(e){return new this.constructor({...this._def,description:e})}pipe(e){return eE.create(this,e)}readonly(){return ew.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}t.ZodType=h,t.Schema=h,t.ZodSchema=h;let p=/^c[^\s-]{8,}$/i,m=/^[0-9a-z]+$/,y=/^[0-9A-HJKMNP-TV-Z]{26}$/i,g=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,b=/^[a-z0-9_-]{21}$/i,v=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,_=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,S=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,E="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",w=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,T=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,x=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,A=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,O=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,M=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,R="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",C=RegExp(`^${R}$`);function I(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`);let r=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${r}`}function N(e){return RegExp(`^${I(e)}$`)}function P(e){let t=`${R}T${I(e)}`,r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,RegExp(`^${t}$`)}function k(e,t){return!!(("v4"===t||!t)&&w.test(e)||("v6"===t||!t)&&x.test(e))}function D(e,t){if(!v.test(e))return!1;try{let[r]=e.split(".");if(!r)return!1;let n=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),i=JSON.parse(atob(n));if("object"!=typeof i||null===i||"typ"in i&&i?.typ!=="JWT"||!i.alg||t&&i.alg!==t)return!1;return!0}catch{return!1}}function L(e,t){return!!(("v4"===t||!t)&&T.test(e)||("v6"===t||!t)&&A.test(e))}class j extends h{_parse(e){let t;if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==c.ZodParsedType.string){let t=this._getOrReturnCtx(e);return(0,u.addIssueToContext)(t,{code:o.ZodIssueCode.invalid_type,expected:c.ZodParsedType.string,received:t.parsedType}),u.INVALID}let r=new u.ParseStatus;for(let n of this._def.checks)if("min"===n.kind)e.data.lengthn.value&&(t=this._getOrReturnCtx(e,t),(0,u.addIssueToContext)(t,{code:o.ZodIssueCode.too_big,maximum:n.value,type:"string",inclusive:!0,exact:!1,message:n.message}),r.dirty());else if("length"===n.kind){let i=e.data.length>n.value,a=e.data.lengthe.test(t),{validation:t,code:o.ZodIssueCode.invalid_string,...s.errorUtil.errToObj(r)})}_addCheck(e){return new j({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...s.errorUtil.errToObj(e)})}url(e){return this._addCheck({kind:"url",...s.errorUtil.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...s.errorUtil.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...s.errorUtil.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...s.errorUtil.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...s.errorUtil.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...s.errorUtil.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...s.errorUtil.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...s.errorUtil.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...s.errorUtil.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...s.errorUtil.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...s.errorUtil.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...s.errorUtil.errToObj(e)})}datetime(e){return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===e?.precision?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...s.errorUtil.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:void 0===e?.precision?null:e?.precision,...s.errorUtil.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...s.errorUtil.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...s.errorUtil.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t?.position,...s.errorUtil.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...s.errorUtil.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...s.errorUtil.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...s.errorUtil.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...s.errorUtil.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...s.errorUtil.errToObj(t)})}nonempty(e){return this.min(1,s.errorUtil.errToObj(e))}trim(){return new j({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new j({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new j({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>"datetime"===e.kind)}get isDate(){return!!this._def.checks.find(e=>"date"===e.kind)}get isTime(){return!!this._def.checks.find(e=>"time"===e.kind)}get isDuration(){return!!this._def.checks.find(e=>"duration"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>"emoji"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isNANOID(){return!!this._def.checks.find(e=>"nanoid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>"cuid2"===e.kind)}get isULID(){return!!this._def.checks.find(e=>"ulid"===e.kind)}get isIP(){return!!this._def.checks.find(e=>"ip"===e.kind)}get isCIDR(){return!!this._def.checks.find(e=>"cidr"===e.kind)}get isBase64(){return!!this._def.checks.find(e=>"base64"===e.kind)}get isBase64url(){return!!this._def.checks.find(e=>"base64url"===e.kind)}get minLength(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.valuen?r:n;return Number.parseInt(e.toFixed(i).replace(".",""))%Number.parseInt(t.toFixed(i).replace(".",""))/10**i}t.ZodString=j,j.create=e=>new j({checks:[],typeName:n.ZodString,coerce:e?.coerce??!1,...d(e)});class B extends h{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){let t;if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==c.ZodParsedType.number){let t=this._getOrReturnCtx(e);return(0,u.addIssueToContext)(t,{code:o.ZodIssueCode.invalid_type,expected:c.ZodParsedType.number,received:t.parsedType}),u.INVALID}let r=new u.ParseStatus;for(let n of this._def.checks)"int"===n.kind?c.util.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),(0,u.addIssueToContext)(t,{code:o.ZodIssueCode.invalid_type,expected:"integer",received:"float",message:n.message}),r.dirty()):"min"===n.kind?(n.inclusive?e.datan.value:e.data>=n.value)&&(t=this._getOrReturnCtx(e,t),(0,u.addIssueToContext)(t,{code:o.ZodIssueCode.too_big,maximum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),r.dirty()):"multipleOf"===n.kind?0!==U(e.data,n.value)&&(t=this._getOrReturnCtx(e,t),(0,u.addIssueToContext)(t,{code:o.ZodIssueCode.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):"finite"===n.kind?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),(0,u.addIssueToContext)(t,{code:o.ZodIssueCode.not_finite,message:n.message}),r.dirty()):c.util.assertNever(n);return{status:r.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,s.errorUtil.toString(t))}gt(e,t){return this.setLimit("min",e,!1,s.errorUtil.toString(t))}lte(e,t){return this.setLimit("max",e,!0,s.errorUtil.toString(t))}lt(e,t){return this.setLimit("max",e,!1,s.errorUtil.toString(t))}setLimit(e,t,r,n){return new B({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:s.errorUtil.toString(n)}]})}_addCheck(e){return new B({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:s.errorUtil.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:s.errorUtil.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:s.errorUtil.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:s.errorUtil.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:s.errorUtil.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:s.errorUtil.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:s.errorUtil.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:s.errorUtil.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:s.errorUtil.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value"int"===e.kind||"multipleOf"===e.kind&&c.util.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let r of this._def.checks)if("finite"===r.kind||"int"===r.kind||"multipleOf"===r.kind)return!0;else"min"===r.kind?(null===t||r.value>t)&&(t=r.value):"max"===r.kind&&(null===e||r.valuenew B({checks:[],typeName:n.ZodNumber,coerce:e?.coerce||!1,...d(e)});class F extends h{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){let t;if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==c.ZodParsedType.bigint)return this._getInvalidInput(e);let r=new u.ParseStatus;for(let n of this._def.checks)"min"===n.kind?(n.inclusive?e.datan.value:e.data>=n.value)&&(t=this._getOrReturnCtx(e,t),(0,u.addIssueToContext)(t,{code:o.ZodIssueCode.too_big,type:"bigint",maximum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty()):"multipleOf"===n.kind?e.data%n.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),(0,u.addIssueToContext)(t,{code:o.ZodIssueCode.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):c.util.assertNever(n);return{status:r.value,value:e.data}}_getInvalidInput(e){let t=this._getOrReturnCtx(e);return(0,u.addIssueToContext)(t,{code:o.ZodIssueCode.invalid_type,expected:c.ZodParsedType.bigint,received:t.parsedType}),u.INVALID}gte(e,t){return this.setLimit("min",e,!0,s.errorUtil.toString(t))}gt(e,t){return this.setLimit("min",e,!1,s.errorUtil.toString(t))}lte(e,t){return this.setLimit("max",e,!0,s.errorUtil.toString(t))}lt(e,t){return this.setLimit("max",e,!1,s.errorUtil.toString(t))}setLimit(e,t,r,n){return new F({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:s.errorUtil.toString(n)}]})}_addCheck(e){return new F({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:s.errorUtil.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:s.errorUtil.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:s.errorUtil.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:s.errorUtil.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:s.errorUtil.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.valuenew F({checks:[],typeName:n.ZodBigInt,coerce:e?.coerce??!1,...d(e)});class z extends h{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==c.ZodParsedType.boolean){let t=this._getOrReturnCtx(e);return(0,u.addIssueToContext)(t,{code:o.ZodIssueCode.invalid_type,expected:c.ZodParsedType.boolean,received:t.parsedType}),u.INVALID}return(0,u.OK)(e.data)}}t.ZodBoolean=z,z.create=e=>new z({typeName:n.ZodBoolean,coerce:e?.coerce||!1,...d(e)});class $ extends h{_parse(e){let t;if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==c.ZodParsedType.date){let t=this._getOrReturnCtx(e);return(0,u.addIssueToContext)(t,{code:o.ZodIssueCode.invalid_type,expected:c.ZodParsedType.date,received:t.parsedType}),u.INVALID}if(Number.isNaN(e.data.getTime())){let t=this._getOrReturnCtx(e);return(0,u.addIssueToContext)(t,{code:o.ZodIssueCode.invalid_date}),u.INVALID}let r=new u.ParseStatus;for(let n of this._def.checks)"min"===n.kind?e.data.getTime()n.value&&(t=this._getOrReturnCtx(e,t),(0,u.addIssueToContext)(t,{code:o.ZodIssueCode.too_big,message:n.message,inclusive:!0,exact:!1,maximum:n.value,type:"date"}),r.dirty()):c.util.assertNever(n);return{status:r.value,value:new Date(e.data.getTime())}}_addCheck(e){return new $({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:s.errorUtil.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:s.errorUtil.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.valuenew $({checks:[],coerce:e?.coerce||!1,typeName:n.ZodDate,...d(e)});class V extends h{_parse(e){if(this._getType(e)!==c.ZodParsedType.symbol){let t=this._getOrReturnCtx(e);return(0,u.addIssueToContext)(t,{code:o.ZodIssueCode.invalid_type,expected:c.ZodParsedType.symbol,received:t.parsedType}),u.INVALID}return(0,u.OK)(e.data)}}t.ZodSymbol=V,V.create=e=>new V({typeName:n.ZodSymbol,...d(e)});class Y extends h{_parse(e){if(this._getType(e)!==c.ZodParsedType.undefined){let t=this._getOrReturnCtx(e);return(0,u.addIssueToContext)(t,{code:o.ZodIssueCode.invalid_type,expected:c.ZodParsedType.undefined,received:t.parsedType}),u.INVALID}return(0,u.OK)(e.data)}}t.ZodUndefined=Y,Y.create=e=>new Y({typeName:n.ZodUndefined,...d(e)});class q extends h{_parse(e){if(this._getType(e)!==c.ZodParsedType.null){let t=this._getOrReturnCtx(e);return(0,u.addIssueToContext)(t,{code:o.ZodIssueCode.invalid_type,expected:c.ZodParsedType.null,received:t.parsedType}),u.INVALID}return(0,u.OK)(e.data)}}t.ZodNull=q,q.create=e=>new q({typeName:n.ZodNull,...d(e)});class H extends h{constructor(){super(...arguments),this._any=!0}_parse(e){return(0,u.OK)(e.data)}}t.ZodAny=H,H.create=e=>new H({typeName:n.ZodAny,...d(e)});class W extends h{constructor(){super(...arguments),this._unknown=!0}_parse(e){return(0,u.OK)(e.data)}}t.ZodUnknown=W,W.create=e=>new W({typeName:n.ZodUnknown,...d(e)});class G extends h{_parse(e){let t=this._getOrReturnCtx(e);return(0,u.addIssueToContext)(t,{code:o.ZodIssueCode.invalid_type,expected:c.ZodParsedType.never,received:t.parsedType}),u.INVALID}}t.ZodNever=G,G.create=e=>new G({typeName:n.ZodNever,...d(e)});class Z extends h{_parse(e){if(this._getType(e)!==c.ZodParsedType.undefined){let t=this._getOrReturnCtx(e);return(0,u.addIssueToContext)(t,{code:o.ZodIssueCode.invalid_type,expected:c.ZodParsedType.void,received:t.parsedType}),u.INVALID}return(0,u.OK)(e.data)}}t.ZodVoid=Z,Z.create=e=>new Z({typeName:n.ZodVoid,...d(e)});class K extends h{_parse(e){let{ctx:t,status:r}=this._processInputParams(e),n=this._def;if(t.parsedType!==c.ZodParsedType.array)return(0,u.addIssueToContext)(t,{code:o.ZodIssueCode.invalid_type,expected:c.ZodParsedType.array,received:t.parsedType}),u.INVALID;if(null!==n.exactLength){let e=t.data.length>n.exactLength.value,i=t.data.lengthn.maxLength.value&&((0,u.addIssueToContext)(t,{code:o.ZodIssueCode.too_big,maximum:n.maxLength.value,type:"array",inclusive:!0,exact:!1,message:n.maxLength.message}),r.dirty()),t.common.async)return Promise.all([...t.data].map((e,r)=>n.type._parseAsync(new l(t,e,t.path,r)))).then(e=>u.ParseStatus.mergeArray(r,e));let i=[...t.data].map((e,r)=>n.type._parseSync(new l(t,e,t.path,r)));return u.ParseStatus.mergeArray(r,i)}get element(){return this._def.type}min(e,t){return new K({...this._def,minLength:{value:e,message:s.errorUtil.toString(t)}})}max(e,t){return new K({...this._def,maxLength:{value:e,message:s.errorUtil.toString(t)}})}length(e,t){return new K({...this._def,exactLength:{value:e,message:s.errorUtil.toString(t)}})}nonempty(e){return this.min(1,e)}}function X(e){if(e instanceof J){let t={};for(let r in e.shape){let n=e.shape[r];t[r]=ey.create(X(n))}return new J({...e._def,shape:()=>t})}if(e instanceof K)return new K({...e._def,type:X(e.element)});if(e instanceof ey)return ey.create(X(e.unwrap()));if(e instanceof eg)return eg.create(X(e.unwrap()));if(e instanceof ei)return ei.create(e.items.map(e=>X(e)));else return e}t.ZodArray=K,K.create=(e,t)=>new K({type:e,minLength:null,maxLength:null,exactLength:null,typeName:n.ZodArray,...d(t)});class J extends h{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;let e=this._def.shape(),t=c.util.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==c.ZodParsedType.object){let t=this._getOrReturnCtx(e);return(0,u.addIssueToContext)(t,{code:o.ZodIssueCode.invalid_type,expected:c.ZodParsedType.object,received:t.parsedType}),u.INVALID}let{status:t,ctx:r}=this._processInputParams(e),{shape:n,keys:i}=this._getCached(),a=[];if(!(this._def.catchall instanceof G&&"strip"===this._def.unknownKeys))for(let e in r.data)i.includes(e)||a.push(e);let s=[];for(let e of i){let t=n[e],i=r.data[e];s.push({key:{status:"valid",value:e},value:t._parse(new l(r,i,r.path,e)),alwaysSet:e in r.data})}if(this._def.catchall instanceof G){let e=this._def.unknownKeys;if("passthrough"===e)for(let e of a)s.push({key:{status:"valid",value:e},value:{status:"valid",value:r.data[e]}});else if("strict"===e)a.length>0&&((0,u.addIssueToContext)(r,{code:o.ZodIssueCode.unrecognized_keys,keys:a}),t.dirty());else if("strip"===e);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let e=this._def.catchall;for(let t of a){let n=r.data[t];s.push({key:{status:"valid",value:t},value:e._parse(new l(r,n,r.path,t)),alwaysSet:t in r.data})}}return r.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of s){let r=await t.key,n=await t.value;e.push({key:r,value:n,alwaysSet:t.alwaysSet})}return e}).then(e=>u.ParseStatus.mergeObjectSync(t,e)):u.ParseStatus.mergeObjectSync(t,s)}get shape(){return this._def.shape()}strict(e){return s.errorUtil.errToObj,new J({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,r)=>{let n=this._def.errorMap?.(t,r).message??r.defaultError;return"unrecognized_keys"===t.code?{message:s.errorUtil.errToObj(e).message??n}:{message:n}}}:{}})}strip(){return new J({...this._def,unknownKeys:"strip"})}passthrough(){return new J({...this._def,unknownKeys:"passthrough"})}extend(e){return new J({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new J({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:n.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new J({...this._def,catchall:e})}pick(e){let t={};for(let r of c.util.objectKeys(e))e[r]&&this.shape[r]&&(t[r]=this.shape[r]);return new J({...this._def,shape:()=>t})}omit(e){let t={};for(let r of c.util.objectKeys(this.shape))e[r]||(t[r]=this.shape[r]);return new J({...this._def,shape:()=>t})}deepPartial(){return X(this)}partial(e){let t={};for(let r of c.util.objectKeys(this.shape)){let n=this.shape[r];e&&!e[r]?t[r]=n:t[r]=n.optional()}return new J({...this._def,shape:()=>t})}required(e){let t={};for(let r of c.util.objectKeys(this.shape))if(e&&!e[r])t[r]=this.shape[r];else{let e=this.shape[r];for(;e instanceof ey;)e=e._def.innerType;t[r]=e}return new J({...this._def,shape:()=>t})}keyof(){return ef(c.util.objectKeys(this.shape))}}t.ZodObject=J,J.create=(e,t)=>new J({shape:()=>e,unknownKeys:"strip",catchall:G.create(),typeName:n.ZodObject,...d(t)}),J.strictCreate=(e,t)=>new J({shape:()=>e,unknownKeys:"strict",catchall:G.create(),typeName:n.ZodObject,...d(t)}),J.lazycreate=(e,t)=>new J({shape:e,unknownKeys:"strip",catchall:G.create(),typeName:n.ZodObject,...d(t)});class Q extends h{_parse(e){let{ctx:t}=this._processInputParams(e),r=this._def.options;function n(e){for(let t of e)if("valid"===t.result.status)return t.result;for(let r of e)if("dirty"===r.result.status)return t.common.issues.push(...r.ctx.common.issues),r.result;let r=e.map(e=>new o.ZodError(e.ctx.common.issues));return(0,u.addIssueToContext)(t,{code:o.ZodIssueCode.invalid_union,unionErrors:r}),u.INVALID}if(t.common.async)return Promise.all(r.map(async e=>{let r={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:r}),ctx:r}})).then(n);{let e,n=[];for(let i of r){let r={...t,common:{...t.common,issues:[]},parent:null},o=i._parseSync({data:t.data,path:t.path,parent:r});if("valid"===o.status)return o;"dirty"!==o.status||e||(e={result:o,ctx:r}),r.common.issues.length&&n.push(r.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let i=n.map(e=>new o.ZodError(e));return(0,u.addIssueToContext)(t,{code:o.ZodIssueCode.invalid_union,unionErrors:i}),u.INVALID}}get options(){return this._def.options}}t.ZodUnion=Q,Q.create=(e,t)=>new Q({options:e,typeName:n.ZodUnion,...d(t)});let ee=e=>{if(e instanceof ec)return ee(e.schema);if(e instanceof em)return ee(e.innerType());if(e instanceof el)return[e.value];if(e instanceof ed)return e.options;if(e instanceof eh)return c.util.objectValues(e.enum);else if(e instanceof eb)return ee(e._def.innerType);else if(e instanceof Y)return[void 0];else if(e instanceof q)return[null];else if(e instanceof ey)return[void 0,...ee(e.unwrap())];else if(e instanceof eg)return[null,...ee(e.unwrap())];else if(e instanceof eS)return ee(e.unwrap());else if(e instanceof ew)return ee(e.unwrap());else if(e instanceof ev)return ee(e._def.innerType);else return[]};class et extends h{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==c.ZodParsedType.object)return(0,u.addIssueToContext)(t,{code:o.ZodIssueCode.invalid_type,expected:c.ZodParsedType.object,received:t.parsedType}),u.INVALID;let r=this.discriminator,n=t.data[r],i=this.optionsMap.get(n);return i?t.common.async?i._parseAsync({data:t.data,path:t.path,parent:t}):i._parseSync({data:t.data,path:t.path,parent:t}):((0,u.addIssueToContext)(t,{code:o.ZodIssueCode.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),u.INVALID)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,r){let i=new Map;for(let r of t){let t=ee(r.shape[e]);if(!t.length)throw Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let n of t){if(i.has(n))throw Error(`Discriminator property ${String(e)} has duplicate value ${String(n)}`);i.set(n,r)}}return new et({typeName:n.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:i,...d(r)})}}function er(e,t){let r=(0,c.getParsedType)(e),n=(0,c.getParsedType)(t);if(e===t)return{valid:!0,data:e};if(r===c.ZodParsedType.object&&n===c.ZodParsedType.object){let r=c.util.objectKeys(t),n=c.util.objectKeys(e).filter(e=>-1!==r.indexOf(e)),i={...e,...t};for(let r of n){let n=er(e[r],t[r]);if(!n.valid)return{valid:!1};i[r]=n.data}return{valid:!0,data:i}}if(r===c.ZodParsedType.array&&n===c.ZodParsedType.array){if(e.length!==t.length)return{valid:!1};let r=[];for(let n=0;n{if((0,u.isAborted)(e)||(0,u.isAborted)(n))return u.INVALID;let i=er(e.value,n.value);return i.valid?(((0,u.isDirty)(e)||(0,u.isDirty)(n))&&t.dirty(),{status:t.value,value:i.data}):((0,u.addIssueToContext)(r,{code:o.ZodIssueCode.invalid_intersection_types}),u.INVALID)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([e,t])=>n(e,t)):n(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}t.ZodIntersection=en,en.create=(e,t,r)=>new en({left:e,right:t,typeName:n.ZodIntersection,...d(r)});class ei extends h{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==c.ZodParsedType.array)return(0,u.addIssueToContext)(r,{code:o.ZodIssueCode.invalid_type,expected:c.ZodParsedType.array,received:r.parsedType}),u.INVALID;if(r.data.lengththis._def.items.length&&((0,u.addIssueToContext)(r,{code:o.ZodIssueCode.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let n=[...r.data].map((e,t)=>{let n=this._def.items[t]||this._def.rest;return n?n._parse(new l(r,e,r.path,t)):null}).filter(e=>!!e);return r.common.async?Promise.all(n).then(e=>u.ParseStatus.mergeArray(t,e)):u.ParseStatus.mergeArray(t,n)}get items(){return this._def.items}rest(e){return new ei({...this._def,rest:e})}}t.ZodTuple=ei,ei.create=(e,t)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new ei({items:e,typeName:n.ZodTuple,rest:null,...d(t)})};class eo extends h{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==c.ZodParsedType.object)return(0,u.addIssueToContext)(r,{code:o.ZodIssueCode.invalid_type,expected:c.ZodParsedType.object,received:r.parsedType}),u.INVALID;let n=[],i=this._def.keyType,a=this._def.valueType;for(let e in r.data)n.push({key:i._parse(new l(r,e,r.path,e)),value:a._parse(new l(r,r.data[e],r.path,e)),alwaysSet:e in r.data});return r.common.async?u.ParseStatus.mergeObjectAsync(t,n):u.ParseStatus.mergeObjectSync(t,n)}get element(){return this._def.valueType}static create(e,t,r){return new eo(t instanceof h?{keyType:e,valueType:t,typeName:n.ZodRecord,...d(r)}:{keyType:j.create(),valueType:e,typeName:n.ZodRecord,...d(t)})}}t.ZodRecord=eo;class ea extends h{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==c.ZodParsedType.map)return(0,u.addIssueToContext)(r,{code:o.ZodIssueCode.invalid_type,expected:c.ZodParsedType.map,received:r.parsedType}),u.INVALID;let n=this._def.keyType,i=this._def.valueType,a=[...r.data.entries()].map(([e,t],o)=>({key:n._parse(new l(r,e,r.path,[o,"key"])),value:i._parse(new l(r,t,r.path,[o,"value"]))}));if(r.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let r of a){let n=await r.key,i=await r.value;if("aborted"===n.status||"aborted"===i.status)return u.INVALID;("dirty"===n.status||"dirty"===i.status)&&t.dirty(),e.set(n.value,i.value)}return{status:t.value,value:e}})}{let e=new Map;for(let r of a){let n=r.key,i=r.value;if("aborted"===n.status||"aborted"===i.status)return u.INVALID;("dirty"===n.status||"dirty"===i.status)&&t.dirty(),e.set(n.value,i.value)}return{status:t.value,value:e}}}}t.ZodMap=ea,ea.create=(e,t,r)=>new ea({valueType:t,keyType:e,typeName:n.ZodMap,...d(r)});class es extends h{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==c.ZodParsedType.set)return(0,u.addIssueToContext)(r,{code:o.ZodIssueCode.invalid_type,expected:c.ZodParsedType.set,received:r.parsedType}),u.INVALID;let n=this._def;null!==n.minSize&&r.data.sizen.maxSize.value&&((0,u.addIssueToContext)(r,{code:o.ZodIssueCode.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),t.dirty());let i=this._def.valueType;function a(e){let r=new Set;for(let n of e){if("aborted"===n.status)return u.INVALID;"dirty"===n.status&&t.dirty(),r.add(n.value)}return{status:t.value,value:r}}let s=[...r.data.values()].map((e,t)=>i._parse(new l(r,e,r.path,t)));return r.common.async?Promise.all(s).then(e=>a(e)):a(s)}min(e,t){return new es({...this._def,minSize:{value:e,message:s.errorUtil.toString(t)}})}max(e,t){return new es({...this._def,maxSize:{value:e,message:s.errorUtil.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}t.ZodSet=es,es.create=(e,t)=>new es({valueType:e,minSize:null,maxSize:null,typeName:n.ZodSet,...d(t)});class eu extends h{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==c.ZodParsedType.function)return(0,u.addIssueToContext)(t,{code:o.ZodIssueCode.invalid_type,expected:c.ZodParsedType.function,received:t.parsedType}),u.INVALID;function r(e,r){return(0,u.makeIssue)({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,(0,a.getErrorMap)(),a.defaultErrorMap].filter(e=>!!e),issueData:{code:o.ZodIssueCode.invalid_arguments,argumentsError:r}})}function n(e,r){return(0,u.makeIssue)({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,(0,a.getErrorMap)(),a.defaultErrorMap].filter(e=>!!e),issueData:{code:o.ZodIssueCode.invalid_return_type,returnTypeError:r}})}let i={errorMap:t.common.contextualErrorMap},s=t.data;if(this._def.returns instanceof ep){let e=this;return(0,u.OK)(async function(...t){let a=new o.ZodError([]),u=await e._def.args.parseAsync(t,i).catch(e=>{throw a.addIssue(r(t,e)),a}),c=await Reflect.apply(s,this,u);return await e._def.returns._def.type.parseAsync(c,i).catch(e=>{throw a.addIssue(n(c,e)),a})})}{let e=this;return(0,u.OK)(function(...t){let a=e._def.args.safeParse(t,i);if(!a.success)throw new o.ZodError([r(t,a.error)]);let u=Reflect.apply(s,this,a.data),c=e._def.returns.safeParse(u,i);if(!c.success)throw new o.ZodError([n(u,c.error)]);return c.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new eu({...this._def,args:ei.create(e).rest(W.create())})}returns(e){return new eu({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,r){return new eu({args:e||ei.create([]).rest(W.create()),returns:t||W.create(),typeName:n.ZodFunction,...d(r)})}}t.ZodFunction=eu;class ec extends h{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}t.ZodLazy=ec,ec.create=(e,t)=>new ec({getter:e,typeName:n.ZodLazy,...d(t)});class el extends h{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return(0,u.addIssueToContext)(t,{received:t.data,code:o.ZodIssueCode.invalid_literal,expected:this._def.value}),u.INVALID}return{status:"valid",value:e.data}}get value(){return this._def.value}}function ef(e,t){return new ed({values:e,typeName:n.ZodEnum,...d(t)})}t.ZodLiteral=el,el.create=(e,t)=>new el({value:e,typeName:n.ZodLiteral,...d(t)});class ed extends h{_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),r=this._def.values;return(0,u.addIssueToContext)(t,{expected:c.util.joinValues(r),received:t.parsedType,code:o.ZodIssueCode.invalid_type}),u.INVALID}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){let t=this._getOrReturnCtx(e),r=this._def.values;return(0,u.addIssueToContext)(t,{received:t.data,code:o.ZodIssueCode.invalid_enum_value,options:r}),u.INVALID}return(0,u.OK)(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return ed.create(e,{...this._def,...t})}exclude(e,t=this._def){return ed.create(this.options.filter(t=>!e.includes(t)),{...this._def,...t})}}t.ZodEnum=ed,ed.create=ef;class eh extends h{_parse(e){let t=c.util.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==c.ZodParsedType.string&&r.parsedType!==c.ZodParsedType.number){let e=c.util.objectValues(t);return(0,u.addIssueToContext)(r,{expected:c.util.joinValues(e),received:r.parsedType,code:o.ZodIssueCode.invalid_type}),u.INVALID}if(this._cache||(this._cache=new Set(c.util.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){let e=c.util.objectValues(t);return(0,u.addIssueToContext)(r,{received:r.data,code:o.ZodIssueCode.invalid_enum_value,options:e}),u.INVALID}return(0,u.OK)(e.data)}get enum(){return this._def.values}}t.ZodNativeEnum=eh,eh.create=(e,t)=>new eh({values:e,typeName:n.ZodNativeEnum,...d(t)});class ep extends h{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==c.ZodParsedType.promise&&!1===t.common.async)return(0,u.addIssueToContext)(t,{code:o.ZodIssueCode.invalid_type,expected:c.ZodParsedType.promise,received:t.parsedType}),u.INVALID;let r=t.parsedType===c.ZodParsedType.promise?t.data:Promise.resolve(t.data);return(0,u.OK)(r.then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}t.ZodPromise=ep,ep.create=(e,t)=>new ep({type:e,typeName:n.ZodPromise,...d(t)});class em extends h{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===n.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:r}=this._processInputParams(e),n=this._def.effect||null,i={addIssue:e=>{(0,u.addIssueToContext)(r,e),e.fatal?t.abort():t.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),"preprocess"===n.type){let e=n.transform(r.data,i);if(r.common.async)return Promise.resolve(e).then(async e=>{if("aborted"===t.value)return u.INVALID;let n=await this._def.schema._parseAsync({data:e,path:r.path,parent:r});return"aborted"===n.status?u.INVALID:"dirty"===n.status||"dirty"===t.value?(0,u.DIRTY)(n.value):n});{if("aborted"===t.value)return u.INVALID;let n=this._def.schema._parseSync({data:e,path:r.path,parent:r});return"aborted"===n.status?u.INVALID:"dirty"===n.status||"dirty"===t.value?(0,u.DIRTY)(n.value):n}}if("refinement"===n.type){let e=e=>{let t=n.refinement(e,i);if(r.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(r=>"aborted"===r.status?u.INVALID:("dirty"===r.status&&t.dirty(),e(r.value).then(()=>({status:t.value,value:r.value}))));{let n=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===n.status?u.INVALID:("dirty"===n.status&&t.dirty(),e(n.value),{status:t.value,value:n.value})}}if("transform"===n.type)if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(e=>(0,u.isValid)(e)?Promise.resolve(n.transform(e.value,i)).then(e=>({status:t.value,value:e})):u.INVALID);else{let e=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!(0,u.isValid)(e))return u.INVALID;let o=n.transform(e.value,i);if(o instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:o}}c.util.assertNever(n)}}t.ZodEffects=em,t.ZodTransformer=em,em.create=(e,t,r)=>new em({schema:e,typeName:n.ZodEffects,effect:t,...d(r)}),em.createWithPreprocess=(e,t,r)=>new em({schema:t,effect:{type:"preprocess",transform:e},typeName:n.ZodEffects,...d(r)});class ey extends h{_parse(e){return this._getType(e)===c.ZodParsedType.undefined?(0,u.OK)(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}t.ZodOptional=ey,ey.create=(e,t)=>new ey({innerType:e,typeName:n.ZodOptional,...d(t)});class eg extends h{_parse(e){return this._getType(e)===c.ZodParsedType.null?(0,u.OK)(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}t.ZodNullable=eg,eg.create=(e,t)=>new eg({innerType:e,typeName:n.ZodNullable,...d(t)});class eb extends h{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return t.parsedType===c.ZodParsedType.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}t.ZodDefault=eb,eb.create=(e,t)=>new eb({innerType:e,typeName:n.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...d(t)});class ev extends h{_parse(e){let{ctx:t}=this._processInputParams(e),r={...t,common:{...t.common,issues:[]}},n=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return(0,u.isAsync)(n)?n.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new o.ZodError(r.common.issues)},input:r.data})})):{status:"valid",value:"valid"===n.status?n.value:this._def.catchValue({get error(){return new o.ZodError(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}t.ZodCatch=ev,ev.create=(e,t)=>new ev({innerType:e,typeName:n.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...d(t)});class e_ extends h{_parse(e){if(this._getType(e)!==c.ZodParsedType.nan){let t=this._getOrReturnCtx(e);return(0,u.addIssueToContext)(t,{code:o.ZodIssueCode.invalid_type,expected:c.ZodParsedType.nan,received:t.parsedType}),u.INVALID}return{status:"valid",value:e.data}}}t.ZodNaN=e_,e_.create=e=>new e_({typeName:n.ZodNaN,...d(e)}),t.BRAND=Symbol("zod_brand");class eS extends h{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return this._def.type._parse({data:r,path:t.path,parent:t})}unwrap(){return this._def.type}}t.ZodBranded=eS;class eE extends h{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?u.INVALID:"dirty"===e.status?(t.dirty(),(0,u.DIRTY)(e.value)):this._def.out._parseAsync({data:e.value,path:r.path,parent:r})})();{let e=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?u.INVALID:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:r.path,parent:r})}}static create(e,t){return new eE({in:e,out:t,typeName:n.ZodPipeline})}}t.ZodPipeline=eE;class ew extends h{_parse(e){let t=this._def.innerType._parse(e),r=e=>((0,u.isValid)(e)&&(e.value=Object.freeze(e.value)),e);return(0,u.isAsync)(t)?t.then(e=>r(e)):r(t)}unwrap(){return this._def.innerType}}function eT(e,t){let r="function"==typeof e?e(t):"string"==typeof e?{message:e}:e;return"string"==typeof r?{message:r}:r}function ex(e,t={},r){return e?H.create().superRefine((n,i)=>{let o=e(n);if(o instanceof Promise)return o.then(e=>{if(!e){let e=eT(t,n),o=e.fatal??r??!0;i.addIssue({code:"custom",...e,fatal:o})}});if(!o){let e=eT(t,n),o=e.fatal??r??!0;i.addIssue({code:"custom",...e,fatal:o})}}):H.create()}t.ZodReadonly=ew,ew.create=(e,t)=>new ew({innerType:e,typeName:n.ZodReadonly,...d(t)}),t.late={object:J.lazycreate},function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"}(n||(t.ZodFirstPartyTypeKind=n={})),t.instanceof=(e,t={message:`Input not instance of ${e.name}`})=>ex(t=>t instanceof e,t);let eA=j.create;t.string=eA;let eO=B.create;t.number=eO,t.nan=e_.create,t.bigint=F.create;let eM=z.create;t.boolean=eM,t.date=$.create,t.symbol=V.create,t.undefined=Y.create,t.null=q.create,t.any=H.create,t.unknown=W.create,t.never=G.create,t.void=Z.create,t.array=K.create,t.object=J.create,t.strictObject=J.strictCreate,t.union=Q.create,t.discriminatedUnion=et.create,t.intersection=en.create,t.tuple=ei.create,t.record=eo.create,t.map=ea.create,t.set=es.create,t.function=eu.create,t.lazy=ec.create,t.literal=el.create,t.enum=ed.create,t.nativeEnum=eh.create,t.promise=ep.create;let eR=em.create;t.effect=eR,t.transformer=eR,t.optional=ey.create,t.nullable=eg.create,t.preprocess=em.createWithPreprocess,t.pipeline=eE.create,t.ostring=()=>eA().optional(),t.onumber=()=>eO().optional(),t.oboolean=()=>eM().optional(),t.coerce={string:e=>j.create({...e,coerce:!0}),number:e=>B.create({...e,coerce:!0}),boolean:e=>z.create({...e,coerce:!0}),bigint:e=>F.create({...e,coerce:!0}),date:e=>$.create({...e,coerce:!0})},t.NEVER=u.INVALID},25878:(e,t,r)=>{"use strict";r.d(t,{c:()=>f});var n=r(6029),i=r(55729),o=r(50212),a=r(41271),s=r(22623),u=r(56738),c=r(15242),l=r(31188);let f=(0,i.forwardRef)(({transitionProps:e,className:t,innerProps:r,onKeyDown:i,style:f,...d},h)=>{let p=(0,c.x)();return(0,n.jsx)(u.e,{mounted:p.opened,transition:"pop",...p.transitionProps,onExited:()=>{p.onExitTransitionEnd?.(),p.transitionProps?.onExited?.()},onEntered:()=>{p.onEnterTransitionEnd?.(),p.transitionProps?.onEntered?.()},...e,children:e=>(0,n.jsx)("div",{...r,className:(0,o.A)({[l.A.inner]:!p.unstyled},r.className),children:(0,n.jsx)(a.s,{active:p.opened&&p.trapFocus,innerRef:h,children:(0,n.jsx)(s.t,{...d,component:"section",role:"dialog",tabIndex:-1,"aria-modal":!0,"aria-describedby":p.bodyMounted?p.getBodyId():void 0,"aria-labelledby":p.titleMounted?p.getTitleId():void 0,style:[f,e],className:(0,o.A)({[l.A.content]:!p.unstyled},t),unstyled:p.unstyled,children:d.children})})})})});f.displayName="@mantine/core/ModalBaseContent"},26193:(e,t)=>{"use strict";function r(e,t,r,n,i,o,a){var s=new Date(0);return s.setUTCFullYear(e,t,r),s.setUTCHours(n,i,o,a),s}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r,e.exports=t.default},26572:(e,t,r)=>{"use strict";var n=r(14274),i=r(57379),o=r(95605);e.exports=function(){return o(n,i,arguments)}},26615:(e,t,r)=>{"use strict";function n(e){return"0rem"===e?"0rem":`calc(${e} * var(--mantine-scale))`}function i(e,{shouldScale:t=!1}={}){function r(i){if(0===i||"0"===i)return`0${e}`;if("number"==typeof i){let r=`${i/16}${e}`;return t?n(r):r}if("string"==typeof i){if(""===i||i.startsWith("calc(")||i.startsWith("clamp(")||i.includes("rgba("))return i;if(i.includes(","))return i.split(",").map(e=>r(e)).join(",");if(i.includes(" "))return i.split(" ").map(e=>r(e)).join(" ");if(i.includes(e))return t?n(i):i;let o=i.replace("px","");if(!Number.isNaN(Number(o))){let r=`${Number(o)/16}${e}`;return t?n(r):r}}return i}return r}r.d(t,{D:()=>o,em:()=>a});let o=i("rem",{shouldScale:!0}),a=i("em")},26654:()=>{},27166:(e,t,r)=>{"use strict";r.d(t,{a:()=>V});var n=r(6029),i=r(55729),o=r(69626),a=r(80616),s=r(43016),u=r(65837);let[c,l]=(0,r(36254).F)("Modal component was not found in tree");var f={root:"m_9df02822",content:"m_54c44539",inner:"m_1f958f16",header:"m_d0e2b9cd"};let d={},h=(0,s.P9)((e,t)=>{let{classNames:r,className:i,style:o,styles:s,vars:c,...f}=(0,a.Y)("ModalBody",d,e),h=l();return(0,n.jsx)(u.v,{ref:t,...h.getStyles("body",{classNames:r,style:o,styles:s,className:i}),...f})});h.classes=f,h.displayName="@mantine/core/ModalBody";var p=r(68373);let m={},y=(0,s.P9)((e,t)=>{let{classNames:r,className:i,style:o,styles:s,vars:u,...c}=(0,a.Y)("ModalCloseButton",m,e),f=l();return(0,n.jsx)(p.F,{ref:t,...f.getStyles("close",{classNames:r,style:o,styles:s,className:i}),...c})});y.classes=f,y.displayName="@mantine/core/ModalCloseButton";var g=r(26615),b=r(25878),v=r(87816);let _={},S=(0,s.P9)((e,t)=>{let{classNames:r,className:i,style:o,styles:s,vars:u,children:c,__hidden:f,...d}=(0,a.Y)("ModalContent",_,e),h=l(),p=h.scrollAreaComponent||v.a;return(0,n.jsx)(b.c,{...h.getStyles("content",{className:i,style:o,styles:s,classNames:r}),innerProps:h.getStyles("inner",{className:i,style:o,styles:s,classNames:r}),"data-full-screen":h.fullScreen||void 0,"data-modal-content":!0,"data-hidden":f||void 0,ref:t,...d,children:(0,n.jsx)(p,{style:{maxHeight:h.fullScreen?"100dvh":`calc(100dvh - (${(0,g.D)(h.yOffset)} * 2))`},children:c})})});S.classes=f,S.displayName="@mantine/core/ModalContent";var E=r(62358);let w={},T=(0,s.P9)((e,t)=>{let{classNames:r,className:i,style:o,styles:s,vars:u,...c}=(0,a.Y)("ModalHeader",w,e),f=l();return(0,n.jsx)(E.m,{ref:t,...f.getStyles("header",{classNames:r,style:o,styles:s,className:i}),...c})});T.classes=f,T.displayName="@mantine/core/ModalHeader";var x=r(97762);let A={},O=(0,s.P9)((e,t)=>{let{classNames:r,className:i,style:o,styles:s,vars:u,...c}=(0,a.Y)("ModalOverlay",A,e),f=l();return(0,n.jsx)(x.V,{ref:t,...f.getStyles("overlay",{classNames:r,style:o,styles:s,className:i}),...c})});O.classes=f,O.displayName="@mantine/core/ModalOverlay";var M=r(76),R=r(5618),C=r(37666),I=r(43256),N=r(53993);let P={__staticSelector:"Modal",closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:(0,o.I)("modal"),transitionProps:{duration:200,transition:"fade-down"},yOffset:"5dvh"},k=(0,R.V)((e,{radius:t,size:r,yOffset:n,xOffset:i})=>({root:{"--modal-radius":void 0===t?void 0:(0,M.nJ)(t),"--modal-size":(0,M.YC)(r,"modal-size"),"--modal-y-offset":(0,g.D)(n),"--modal-x-offset":(0,g.D)(i)}})),D=(0,s.P9)((e,t)=>{let r=(0,a.Y)("ModalRoot",P,e),{classNames:i,className:o,style:s,styles:u,unstyled:l,vars:d,yOffset:h,scrollAreaComponent:p,radius:m,fullScreen:y,centered:g,xOffset:b,__staticSelector:v,..._}=r,S=(0,C.I)({name:v,classes:f,props:r,className:o,style:s,classNames:i,styles:u,unstyled:l,vars:d,varsResolver:k});return(0,n.jsx)(c,{value:{yOffset:h,scrollAreaComponent:p,getStyles:S,fullScreen:y},children:(0,n.jsx)(I.f,{ref:t,...S("root"),"data-full-screen":y||void 0,"data-centered":g||void 0,"data-offset-scrollbars":p===N.F.Autosize||void 0,unstyled:l,..._})})});D.classes=f,D.displayName="@mantine/core/ModalRoot";let[L,j]=(0,r(48930).e)();function U({children:e}){let[t,r]=(0,i.useState)([]),[a,s]=(0,i.useState)((0,o.I)("modal"));return(0,n.jsx)(L,{value:{stack:t,addModal:(e,t)=>{r(t=>[...new Set([...t,e])]),s(e=>"number"==typeof t&&"number"==typeof e?Math.max(e,t):e)},removeModal:e=>r(t=>t.filter(t=>t!==e)),getZIndex:e=>`calc(${a} + ${t.indexOf(e)} + 1)`,currentId:t[t.length-1],maxZIndex:a},children:e})}U.displayName="@mantine/core/ModalStack";var B=r(66951);let F={},z=(0,s.P9)((e,t)=>{let{classNames:r,className:i,style:o,styles:s,vars:u,...c}=(0,a.Y)("ModalTitle",F,e),f=l();return(0,n.jsx)(B.$,{ref:t,...f.getStyles("title",{classNames:r,style:o,styles:s,className:i}),...c})});z.classes=f,z.displayName="@mantine/core/ModalTitle";let $={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:(0,o.I)("modal"),transitionProps:{duration:200,transition:"fade-down"},withOverlay:!0,withCloseButton:!0},V=(0,s.P9)((e,t)=>{let{title:r,withOverlay:s,overlayProps:u,withCloseButton:c,closeButtonProps:l,children:f,radius:d,opened:p,stackId:m,zIndex:g,...b}=(0,a.Y)("Modal",$,e),v=j(),_=!!r||c,E=v&&m?{closeOnEscape:v.currentId===m,trapFocus:v.currentId===m,zIndex:v.getZIndex(m)}:{},w=!1!==s&&(m&&v?v.currentId===m:p);return(0,i.useEffect)(()=>{v&&m&&(p?v.addModal(m,g||(0,o.I)("modal")):v.removeModal(m))},[p,m,g]),(0,n.jsxs)(D,{ref:t,radius:d,opened:p,zIndex:v&&m?v.getZIndex(m):g,...b,...E,children:[s&&(0,n.jsx)(O,{visible:w,transitionProps:v&&m?{duration:0}:void 0,...u}),(0,n.jsxs)(S,{radius:d,__hidden:!!v&&!!m&&!!p&&m!==v.currentId,children:[_&&(0,n.jsxs)(T,{children:[r&&(0,n.jsx)(z,{children:r}),c&&(0,n.jsx)(y,{...l})]}),(0,n.jsx)(h,{children:f})]})]})});V.classes=f,V.displayName="@mantine/core/Modal",V.Root=D,V.Overlay=O,V.Content=S,V.Body=h,V.Header=T,V.Title=z,V.CloseButton=y,V.Stack=U},27176:(e,t)=>{"use strict";var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.getParsedType=t.ZodParsedType=t.objectUtil=t.util=void 0,function(e){e.assertEqual=e=>{},e.assertIs=function(e){},e.assertNever=function(e){throw Error()},e.arrayToEnum=e=>{let t={};for(let r of e)t[r]=r;return t},e.getValidEnumValues=t=>{let r=e.objectKeys(t).filter(e=>"number"!=typeof t[t[e]]),n={};for(let e of r)n[e]=t[e];return e.objectValues(n)},e.objectValues=t=>e.objectKeys(t).map(function(e){return t[e]}),e.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let t=[];for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t},e.find=(e,t)=>{for(let r of e)if(t(r))return r},e.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&Number.isFinite(e)&&Math.floor(e)===e,e.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},e.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t}(r||(t.util=r={})),function(e){e.mergeShapes=(e,t)=>({...e,...t})}(n||(t.objectUtil=n={})),t.ZodParsedType=r.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]);let i=e=>{switch(typeof e){case"undefined":return t.ZodParsedType.undefined;case"string":return t.ZodParsedType.string;case"number":return Number.isNaN(e)?t.ZodParsedType.nan:t.ZodParsedType.number;case"boolean":return t.ZodParsedType.boolean;case"function":return t.ZodParsedType.function;case"bigint":return t.ZodParsedType.bigint;case"symbol":return t.ZodParsedType.symbol;case"object":if(Array.isArray(e))return t.ZodParsedType.array;if(null===e)return t.ZodParsedType.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return t.ZodParsedType.promise;if("u">typeof Map&&e instanceof Map)return t.ZodParsedType.map;if("u">typeof Set&&e instanceof Set)return t.ZodParsedType.set;if("u">typeof Date&&e instanceof Date)return t.ZodParsedType.date;return t.ZodParsedType.object;default:return t.ZodParsedType.unknown}};t.getParsedType=i},27202:(e,t,r)=>{"use strict";function n(e){return e&&"object"==typeof e&&!Array.isArray(e)}function i(e,t){let r={...e},o=t;return n(e)&&n(t)&&Object.keys(t).forEach(t=>{n(o[t])&&t in e?r[t]=i(r[t],o[t]):r[t]=o[t]}),r}r.d(t,{$:()=>i})},27273:(e,t,r)=>{"use strict";function n(e){return e.reduce((e,t)=>"group"in t?{...e,...n(t.items)}:(e[t.value]=t,e),{})}r.d(t,{D:()=>n})},27299:e=>{"use strict";let t=(async function*(){}).constructor;e.exports=()=>t},27654:(e,t,r)=>{"use strict";var n=r(31652);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},27721:(e,t,r)=>{"use strict";var n=r(47684);e.exports=function(){return n()&&!!Symbol.toStringTag}},28160:(e,t,r)=>{"use strict";var n=r(3194),i=r(69497),o=r(72206),a=r(27654);e.exports=function(e,t,r){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new o("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new o("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new o("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,u=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,l=arguments.length>6&&arguments[6],f=!!a&&a(e,t);if(n)n(e,t,{configurable:null===c&&f?f.configurable:!c,enumerable:null===s&&f?f.enumerable:!s,value:r,writable:null===u&&f?f.writable:!u});else if(!l&&(s||u||c))throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");else e[t]=r}},28180:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(6027),i=r(77561),o=["years","months","weeks","days","hours","minutes","seconds"];function a(e,t){if(arguments.length<1)throw TypeError("1 argument required, but only ".concat(arguments.length," present"));var r,a,s,u,c,l=(0,n.q)(),f=null!=(r=null!=(a=null==t?void 0:t.locale)?a:l.locale)?r:i.A,d=null!=(s=null==t?void 0:t.format)?s:o,h=null!=(u=null==t?void 0:t.zero)&&u,p=null!=(c=null==t?void 0:t.delimiter)?c:" ";return f.formatDistance?d.reduce(function(t,r){var n="x".concat(r.replace(/(^.)/,function(e){return e.toUpperCase()})),i=e[r];return"number"==typeof i&&(h||e[r])?t.concat(f.formatDistance(n,i)):t},[]).join(p):""}},28730:(e,t,r)=>{"use strict";function n(e,t,r=!0){let i=(...n)=>{let i=e.decode(...n);return void 0===i||r&&null===i?t:i};return{...e,default:t,decode:i}}function i(e,t){if(null==e)return e;if(0===e.length&&(!t||t&&""!==e))return null;let r=e instanceof Array?e[0]:e;return null==r||t||""!==r?r:null}r.d(t,{hc:()=>a,fr:()=>o,Vl:()=>s,oO:()=>c,eR:()=>u,IQ:()=>n});let o={encode:function(e){return null==e?e:String(e)},decode:function(e){let t=i(e,!0);return null==t?t:String(t)}},a={encode:function(e){return null==e?e:String(e)},decode:function(e){let t=i(e);return null==t?t:""===t?null:+t}};function s(e,t){let r={};for(let n of Object.keys(t)){let i=t[n];e[n]?r[n]=e[n].encode(t[n]):r[n]=null==i?i:String(i)}return r}function u(e){let t=new URLSearchParams(e),r={};for(let[e,n]of t)Object.prototype.hasOwnProperty.call(r,e)?Array.isArray(r[e])?r[e].push(n):r[e]=[r[e],n]:r[e]=n;return r}function c(e){let t=new URLSearchParams;for(let[r,n]of Object.entries(e))if(void 0!==n&&null!==n)if(Array.isArray(n))for(let e of n)t.append(r,null!=e?e:"");else t.append(r,n);return t.toString()}'{}[],":'.split("").map(e=>[e,encodeURIComponent(e)])},28751:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ReadonlyURLSearchParams:function(){return o.ReadonlyURLSearchParams},RedirectType:function(){return c.RedirectType},ServerInsertedHTMLContext:function(){return s.ServerInsertedHTMLContext},forbidden:function(){return c.forbidden},notFound:function(){return c.notFound},permanentRedirect:function(){return c.permanentRedirect},redirect:function(){return c.redirect},unauthorized:function(){return c.unauthorized},unstable_isUnrecognizedActionError:function(){return u.unstable_isUnrecognizedActionError},unstable_rethrow:function(){return c.unstable_rethrow},useParams:function(){return m},usePathname:function(){return h},useRouter:function(){return p},useSearchParams:function(){return d},useSelectedLayoutSegment:function(){return g},useSelectedLayoutSegments:function(){return y},useServerInsertedHTML:function(){return s.useServerInsertedHTML}});let n=r(13514)._(r(55729)),i=r(39003),o=r(66522),a=r(37459),s=r(96352),u=r(52176),c=r(84350),l,f;function d(){f?.("useSearchParams()");let e=(0,n.useContext)(o.SearchParamsContext);return(0,n.useMemo)(()=>e?new o.ReadonlyURLSearchParams(e):null,[e])}function h(){return l?.("usePathname()"),(0,n.useContext)(o.PathnameContext)}function p(){let e=(0,n.useContext)(i.AppRouterContext);if(null===e)throw Object.defineProperty(Error("invariant expected app router to be mounted"),"__NEXT_ERROR_CODE",{value:"E238",enumerable:!1,configurable:!0});return e}function m(){return l?.("useParams()"),(0,n.useContext)(o.PathParamsContext)}function y(e="children"){l?.("useSelectedLayoutSegments()");let t=(0,n.useContext)(i.LayoutRouterContext);return t?(0,a.getSelectedLayoutSegmentPath)(t.parentTree,e):null}function g(e="children"){l?.("useSelectedLayoutSegment()"),(0,n.useContext)(o.NavigationPromisesContext);let t=y(e);return(0,a.computeSelectedLayoutSegment)(t,e)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},29326:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(41742),i=r(89250);function o(e){(0,i.A)(1,arguments);var t=(0,n.A)(e);return t.setMilliseconds(0),t}},29499:(e,t,r)=>{"use strict";r.d(t,{Q:()=>a});var n=r(55729),i=r(71775),o=r(3465);function a({opened:e,floating:t,position:r,positionDependencies:a}){let[s,u]=(0,n.useState)(0);(0,n.useEffect)(()=>{if(t.refs.reference.current&&t.refs.floating.current&&e)return(0,i.ll)(t.refs.reference.current,t.refs.floating.current,t.update)},[t.refs.reference.current,t.refs.floating.current,e,s,r]),(0,o.C)(()=>{t.update()},a),(0,o.C)(()=>{u(e=>e+1)},[e])}},29548:(e,t,r)=>{"use strict";r.d(t,{A:()=>eh});var n,i=function(){return(i=Object.assign||function(e){for(var t,r=1,n=arguments.length;rt.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);it.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function a(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;itypeof window?s.useLayoutEffect:s.useEffect,m=new WeakMap;function y(e,t){var r=h(t||null,function(t){return e.forEach(function(e){return d(e,t)})});return p(function(){var t=m.get(r);if(t){var n=new Set(t),i=new Set(e),o=r.current;n.forEach(function(e){i.has(e)||d(e,null)}),i.forEach(function(e){n.has(e)||d(e,o)})}m.set(r,e)},[e]),r}var g=function(){return(g=Object.assign||function(e){for(var t,r=1,n=arguments.length;rt.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);it.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function v(e){return e}function _(e,t){void 0===t&&(t=v);var r=[],n=!1;return{read:function(){if(n)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(e){var i=t(e,n);return r.push(i),function(){r=r.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(n=!0;r.length;){var t=r;r=[],t.forEach(e)}r={push:function(t){return e(t)},filter:function(){return r}}},assignMedium:function(e){n=!0;var t=[];if(r.length){var i=r;r=[],i.forEach(e),t=r}var o=function(){var r=t;t=[],r.forEach(e)},a=function(){return Promise.resolve().then(o)};a(),r={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),r}}}}}"function"==typeof SuppressedError&&SuppressedError;var S=function(e){void 0===e&&(e={});var t=_(null);return t.options=g({async:!0,ssr:!1},e),t}(),E=function(){},w=s.forwardRef(function(e,t){var r=s.useRef(null),n=s.useState({onScrollCapture:E,onWheelCapture:E,onTouchMoveCapture:E}),a=n[0],u=n[1],c=e.forwardProps,l=e.children,f=e.className,d=e.removeScrollBar,h=e.enabled,p=e.shards,m=e.sideCar,g=e.noRelative,b=e.noIsolation,v=e.inert,_=e.allowPinchZoom,w=e.as,T=void 0===w?"div":w,x=e.gapMode,A=o(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),O=m,M=y([r,t]),R=i(i({},A),a);return s.createElement(s.Fragment,null,h&&s.createElement(O,{sideCar:S,removeScrollBar:d,shards:p,noRelative:g,noIsolation:b,inert:v,setCallbacks:u,allowPinchZoom:!!_,lockRef:r,gapMode:x}),c?s.cloneElement(s.Children.only(l),i(i({},R),{ref:M})):s.createElement(T,i({},R,{className:f,ref:M}),l))});w.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},w.classNames={fullWidth:c,zeroRight:u};var T=function(e){var t=e.sideCar,r=b(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw Error("Sidecar medium not found");return s.createElement(n,g({},r))};function x(e,t){return e.useMedium(t),T}T.isSideCarExport=!0;var A=function(){return n||r.nc};function O(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=A();return t&&e.setAttribute("nonce",t),e}function M(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function R(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}var C=function(){var e=0,t=null;return{add:function(r){0==e&&(t=O())&&(M(t,r),R(t)),e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},I=function(){var e=C();return function(t,r){s.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},N=function(){var e=I();return function(t){return e(t.styles,t.dynamic),null}},P={left:0,top:0,right:0,gap:0},k=function(e){return parseInt(e||"",10)||0},D=function(e){var t=window.getComputedStyle(document.body),r=t["padding"===e?"paddingLeft":"marginLeft"],n=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[k(r),k(n),k(i)]},L=function(e){if(void 0===e&&(e="margin"),"u"