sqlmesh 0.202.2.dev7__py3-none-any.whl → 0.202.2.dev8__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- sqlmesh/_version.py +2 -2
- {sqlmesh-0.202.2.dev7.dist-info → sqlmesh-0.202.2.dev8.dist-info}/METADATA +1 -1
- {sqlmesh-0.202.2.dev7.dist-info → sqlmesh-0.202.2.dev8.dist-info}/RECORD +51 -51
- web/client/dist/assets/{Audits-BuHAmFO8.js → Audits-Jm353fhk.js} +1 -1
- web/client/dist/assets/{Banner-DFFgSp7_.js → Banner-DzWLWxS2.js} +1 -1
- web/client/dist/assets/{ChevronDownIcon-DtTgO9XQ.js → ChevronDownIcon-DND34_0j.js} +1 -1
- web/client/dist/assets/{ChevronRightIcon-UI3RytmK.js → ChevronRightIcon-BrnG7zJd.js} +1 -1
- web/client/dist/assets/{Content-aUn7pk46.js → Content-BaMgXJRh.js} +1 -1
- web/client/dist/assets/{Content-CpNCWToC.js → Content-DphTMPPH.js} +1 -1
- web/client/dist/assets/Data-MJRTjiHp.js +1 -0
- web/client/dist/assets/{DataCatalog-BTH7PLMa.js → DataCatalog-DnhHmqO9.js} +1 -1
- web/client/dist/assets/Editor-Bsp2nRii.js +1 -0
- web/client/dist/assets/{Editor-biLDBbAA.js → Editor-CD1DYOmd.js} +1 -1
- web/client/dist/assets/{Errors-CH0KFwsR.js → Errors-CwLLcKXv.js} +1 -1
- web/client/dist/assets/{FileExplorer-DajbVeH5.js → FileExplorer-CjiHTJqb.js} +1 -1
- web/client/dist/assets/{Footer-1kutyViJ.js → Footer-BeDVe5W7.js} +1 -1
- web/client/dist/assets/{Header-BeNTIlzT.js → Header-dh7a7qX-.js} +1 -1
- web/client/dist/assets/{Input-BGdTmRPV.js → Input-B-Ounlv_.js} +1 -1
- web/client/dist/assets/Lineage-DDBcnPQX.js +1 -0
- web/client/dist/assets/ListboxShow-CV2BuG5q.js +1 -0
- web/client/dist/assets/{ModelLineage-BVQJptIB.js → ModelLineage-B1JusHLp.js} +1 -1
- web/client/dist/assets/{Models-B5TYaoIH.js → Models-BILTGfK2.js} +1 -1
- web/client/dist/assets/{Page-D_es10yq.js → Page-SvStklIG.js} +1 -1
- web/client/dist/assets/{Plan-D4VG3U-s.js → Plan-BHC6Jsvb.js} +1 -1
- web/client/dist/assets/{PlusCircleIcon-M3NGeHST.js → PlusCircleIcon-BWbZTVU_.js} +1 -1
- web/client/dist/assets/{ReportErrors-CaaGo6UD.js → ReportErrors-h8_M9bTF.js} +1 -1
- web/client/dist/assets/{Root-DcJxWwG4.js → Root-yarU-KP7.js} +1 -1
- web/client/dist/assets/{SearchList-vj2s_Pnb.js → SearchList-BLcpQVJH.js} +1 -1
- web/client/dist/assets/{SelectEnvironment-GfN4mjDu.js → SelectEnvironment-BcN1dphw.js} +1 -1
- web/client/dist/assets/{SourceList-BioJ2XB9.js → SourceList-Kt2aCd0O.js} +1 -1
- web/client/dist/assets/{SourceListItem-DhUDAM6G.js → SourceListItem-B7x_VFKR.js} +1 -1
- web/client/dist/assets/{SplitPane-CqYEXonR.js → SplitPane-BH6IQnVH.js} +1 -1
- web/client/dist/assets/{Tests-D0MOEJwQ.js → Tests-ClEdNkg6.js} +1 -1
- web/client/dist/assets/{Welcome-ALXxKTT6.js → Welcome-D2UIox3v.js} +1 -1
- web/client/dist/assets/{context-C6O7H5eL.js → context-DieJUDVl.js} +17 -17
- web/client/dist/assets/{context-DUS5wzfN.js → context-DykI9LSF.js} +1 -1
- web/client/dist/assets/{editor-DQqZC36D.js → editor-DNt3hEcu.js} +1 -1
- web/client/dist/assets/{file-gUDWL5Z6.js → file-y5ZNtlGh.js} +1 -1
- web/client/dist/assets/{floating-ui.react-dom-9Mo3XjFw.js → floating-ui.react-dom-BX3awo09.js} +1 -1
- web/client/dist/assets/help-B59vE3aE.js +1 -0
- web/client/dist/assets/{help-CfEW8yRZ.js → help-DeXhqTBT.js} +1 -1
- web/client/dist/assets/index-DXRmsAbz.js +58 -0
- web/client/dist/assets/{index-Ditw2lX8.js → index-DyOMAzII.js} +1 -1
- web/client/dist/assets/{plan-BC79Qq7e.js → plan-B4z00b85.js} +1 -1
- web/client/dist/assets/popover-B6Q1laIx.js +13 -0
- web/client/dist/assets/{project-YuVl6ae5.js → project-BraqCC5X.js} +1 -1
- web/client/dist/index.html +1 -1
- web/client/dist/assets/Data-CZDVrGG4.js +0 -1
- web/client/dist/assets/Editor-aTj13TCY.js +0 -1
- web/client/dist/assets/Lineage-C7Aqseca.js +0 -1
- web/client/dist/assets/ListboxShow-BRUdoaSL.js +0 -1
- web/client/dist/assets/help-6Q7f7fjd.js +0 -1
- web/client/dist/assets/index-DH1v9iOD.js +0 -58
- web/client/dist/assets/popover-BS2D7N_A.js +0 -13
- {sqlmesh-0.202.2.dev7.dist-info → sqlmesh-0.202.2.dev8.dist-info}/WHEEL +0 -0
- {sqlmesh-0.202.2.dev7.dist-info → sqlmesh-0.202.2.dev8.dist-info}/entry_points.txt +0 -0
- {sqlmesh-0.202.2.dev7.dist-info → sqlmesh-0.202.2.dev8.dist-info}/licenses/LICENSE +0 -0
- {sqlmesh-0.202.2.dev7.dist-info → sqlmesh-0.202.2.dev8.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var r=document.createElement("style");r.appendChild(document.createTextNode(`*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Inter,sans-serif;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:JetBrains Mono,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.scrollbar--horizontal::-webkit-scrollbar{height:var(--scrollbar-size)}.scrollbar--vertical::-webkit-scrollbar{width:var(--scrollbar-size)}.scrollbar::-webkit-scrollbar-track{background:transparent}.scrollbar::-webkit-scrollbar-thumb{background:var(--scrollbar-backgroud);border-radius:var(--scrollbar-radius)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.inset-y-0{top:0;bottom:0}.-top-2{top:-.5rem}.bottom-0{bottom:0}.bottom-10{bottom:2.5rem}.left-0{left:0}.left-2{left:.5rem}.left-\\[50\\%\\]{left:50%}.right-0{right:0}.right-2{right:.5rem}.top-0{top:0}.top-10{top:2.5rem}.top-6{top:1.5rem}.top-8{top:2rem}.isolate{isolation:isolate}.\\!z-10{z-index:10!important}.z-10{z-index:10}.z-20{z-index:20}.z-50{z-index:50}.z-\\[1000\\]{z-index:1000}.z-\\[1\\]{z-index:1}.z-\\[2\\]{z-index:2}.z-\\[3\\]{z-index:3}.z-\\[4\\]{z-index:4}.z-\\[5\\]{z-index:5}.z-\\[6\\]{z-index:6}.\\!m-0{margin:0!important}.m-0{margin:0}.m-1{margin:.25rem}.m-2{margin:.5rem}.\\!mx-0{margin-left:0!important;margin-right:0!important}.\\!my-0{margin-top:0!important;margin-bottom:0!important}.mx-0{margin-left:0;margin-right:0}.mx-0\\.5{margin-left:.125rem;margin-right:.125rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-1\\.5{margin-left:.375rem;margin-right:.375rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-4{margin-left:1rem;margin-right:1rem}.my-0{margin-top:0;margin-bottom:0}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-3{margin-top:.75rem;margin-bottom:.75rem}.my-4{margin-top:1rem;margin-bottom:1rem}.my-5{margin-top:1.25rem;margin-bottom:1.25rem}.\\!ml-0\\.5{margin-left:.125rem!important}.\\!mr-1{margin-right:.25rem!important}.-ml-2{margin-left:-.5rem}.-mr-2{margin-right:-.5rem}.mb-1{margin-bottom:.25rem}.mb-10{margin-bottom:2.5rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.ml-4{margin-left:1rem}.ml-auto{margin-left:auto}.mr-0{margin-right:0}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mr-3{margin-right:.75rem}.mr-4{margin-right:1rem}.mr-6{margin-right:1.5rem}.mt-1{margin-top:.25rem}.mt-12{margin-top:3rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-7{margin-top:1.75rem}.mt-8{margin-top:2rem}.mt-9{margin-top:2.25rem}.mt-\\[0\\.125rem\\]{margin-top:.125rem}.mt-\\[6px\\]{margin-top:6px}.\\!block{display:block!important}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.contents{display:contents}.hidden{display:none}.h-1{height:.25rem}.h-10{height:2.5rem}.h-2{height:.5rem}.h-3{height:.75rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-\\[14px\\]{height:14px}.h-\\[16rem\\]{height:16rem}.h-\\[1px\\]{height:1px}.h-\\[25px\\]{height:25px}.h-\\[25rem\\]{height:25rem}.h-full{height:100%}.max-h-60{max-height:15rem}.max-h-8{max-height:2rem}.max-h-80{max-height:20rem}.max-h-\\[1rem\\]{max-height:1rem}.max-h-\\[20vh\\]{max-height:20vh}.max-h-\\[2rem\\]{max-height:2rem}.max-h-\\[30vh\\]{max-height:30vh}.max-h-\\[40vh\\]{max-height:40vh}.max-h-\\[50vh\\]{max-height:50vh}.max-h-\\[80vh\\]{max-height:80vh}.min-h-8,.min-h-\\[2rem\\]{min-height:2rem}.min-h-full{min-height:100%}.w-10{width:2.5rem}.w-14{width:3.5rem}.w-2{width:.5rem}.w-3{width:.75rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-\\[20rem\\]{width:20rem}.w-\\[90vw\\]{width:90vw}.w-full{width:100%}.min-w-10{min-width:2.5rem}.min-w-16{min-width:4rem}.min-w-4{min-width:1rem}.min-w-6{min-width:1.5rem}.min-w-\\[10rem\\]{min-width:10rem}.min-w-\\[16rem\\]{min-width:16rem}.min-w-\\[1rem\\]{min-width:1rem}.min-w-\\[20rem\\]{min-width:20rem}.min-w-\\[6rem\\]{min-width:6rem}.min-w-\\[7rem\\]{min-width:7rem}.min-w-\\[8rem\\]{min-width:8rem}.max-w-4{max-width:1rem}.max-w-\\[100\\%\\]{max-width:100%}.max-w-\\[20rem\\]{max-width:20rem}.max-w-\\[40rem\\]{max-width:40rem}.max-w-\\[50rem\\]{max-width:50rem}.max-w-\\[50vw\\]{max-width:50vw}.max-w-\\[80rem\\]{max-width:80rem}.max-w-\\[90\\%\\]{max-width:90%}.max-w-full{max-width:100%}.max-w-none{max-width:none}.flex-shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.border-separate{border-collapse:separate}.-translate-x-\\[100\\%\\]{--tw-translate-x: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-\\[40\\%\\]{--tw-translate-y: -40%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-\\[50\\%\\]{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-5{--tw-translate-x: 1.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-7{--tw-translate-x: 1.75rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-\\[-50\\%\\]{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-\\[10px\\]{--tw-translate-x: 10px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-1{--tw-translate-y: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-95{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.\\!cursor-grabbing{cursor:grabbing!important}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize{resize:both}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-4{gap:1rem}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-scroll{overflow:scroll}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overflow-y-scroll{overflow-y:scroll}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.overflow-ellipsis,.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.\\!rounded-full{border-radius:9999px!important}.\\!rounded-lg{border-radius:.5rem!important}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-\\[0\\.25rem\\]{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-none{border-radius:0}.rounded-xl{border-radius:.75rem}.rounded-b-lg{border-bottom-right-radius:.5rem;border-bottom-left-radius:.5rem}.rounded-b-md{border-bottom-right-radius:.375rem;border-bottom-left-radius:.375rem}.rounded-t-\\[8px\\]{border-top-left-radius:8px;border-top-right-radius:8px}.rounded-t-md{border-top-left-radius:.375rem;border-top-right-radius:.375rem}.border{border-width:1px}.border-0{border-width:0px}.border-2{border-width:2px}.border-4{border-width:4px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-l-2{border-left-width:2px}.border-r{border-right-width:1px}.border-r-2{border-right-width:2px}.border-t{border-top-width:1px}.border-t-2{border-top-width:2px}.\\!border-none{border-style:none!important}.border-none{border-style:none}.\\!border-neutral-20{border-color:var(--color-neutral-20)!important}.border-accent-500{border-color:var(--color-accent-500)}.border-brand-500{border-color:var(--color-brand-500)}.border-current{border-color:currentColor}.border-danger-500{border-color:var(--color-danger-500)}.border-divider{border-color:var(--color-divider)}.border-inherit{border-color:inherit}.border-light{border-color:var(--color-light)}.border-neutral-10{border-color:var(--color-neutral-10)}.border-neutral-100{border-color:var(--color-neutral-100)}.border-neutral-200{border-color:var(--color-neutral-200)}.border-neutral-300{border-color:var(--color-neutral-300)}.border-neutral-400{border-color:var(--color-neutral-400)}.border-neutral-500{border-color:var(--color-neutral-500)}.border-neutral-600{border-color:var(--color-neutral-600)}.border-primary-400{border-color:var(--color-primary-400)}.border-primary-500{border-color:var(--color-primary-500)}.border-secondary-100{border-color:var(--color-secondary-100)}.border-secondary-20{border-color:var(--color-secondary-20)}.border-secondary-30{border-color:var(--color-secondary-30)}.border-secondary-500{border-color:var(--color-secondary-500)}.border-success-500{border-color:var(--color-success-500)}.border-transparent{border-color:transparent}.border-warning-500{border-color:var(--color-warning-500)}.border-r-theme-darker{border-right-color:var(--color-theme-darker)}.\\!bg-danger-5{background-color:var(--color-danger-5)!important}.\\!bg-success-10{background-color:var(--color-success-10)!important}.\\!bg-theme{background-color:var(--color-theme)!important}.bg-accent-200{background-color:var(--color-accent-200)}.bg-accent-500{background-color:var(--color-accent-500)}.bg-brand-10{background-color:var(--color-brand-10)}.bg-brand-500{background-color:var(--color-brand-500)}.bg-current{background-color:currentColor}.bg-danger-10{background-color:var(--color-danger-10)}.bg-danger-5{background-color:var(--color-danger-5)}.bg-danger-500{background-color:var(--color-danger-500)}.bg-dark-lighter{background-color:var(--color-dark-lighter)}.bg-light{background-color:var(--color-light)}.bg-neutral-10{background-color:var(--color-neutral-10)}.bg-neutral-200{background-color:var(--color-neutral-200)}.bg-neutral-30{background-color:var(--color-neutral-30)}.bg-neutral-400{background-color:var(--color-neutral-400)}.bg-neutral-5{background-color:var(--color-neutral-5)}.bg-neutral-500{background-color:var(--color-neutral-500)}.bg-neutral-600{background-color:var(--color-neutral-600)}.bg-overlay{background-color:var(--color-overlay)}.bg-primary-10{background-color:var(--color-primary-10)}.bg-primary-5{background-color:var(--color-primary-5)}.bg-primary-500{background-color:var(--color-primary-500)}.bg-primary-900{background-color:var(--color-primary-900)}.bg-secondary-10{background-color:var(--color-secondary-10)}.bg-secondary-20{background-color:var(--color-secondary-20)}.bg-secondary-5{background-color:var(--color-secondary-5)}.bg-secondary-500{background-color:var(--color-secondary-500)}.bg-success-10{background-color:var(--color-success-10)}.bg-success-5{background-color:var(--color-success-5)}.bg-success-500{background-color:var(--color-success-500)}.bg-theme{background-color:var(--color-theme)}.bg-theme-lighter{background-color:var(--color-theme-lighter)}.bg-transparent{background-color:transparent}.bg-warning-10{background-color:var(--color-warning-10)}.bg-warning-5{background-color:var(--color-warning-5)}.bg-warning-500{background-color:var(--color-warning-500)}.bg-none{background-image:none}.fill-danger-500{fill:var(--color-danger-500)}.fill-neutral-500{fill:var(--color-neutral-500)}.fill-primary-500{fill:var(--color-primary-500)}.fill-prose{fill:var(--color-text)}.fill-secondary-500{fill:var(--color-secondary-500)}.fill-success-500{fill:var(--color-success-500)}.fill-theme-lighter{fill:var(--color-theme-lighter)}.fill-warning-500{fill:var(--color-warning-500)}.stroke-neutral-200{stroke:var(--color-neutral-200)}.\\!p-0{padding:0!important}.p-0\\.5{padding:.125rem}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.\\!px-0{padding-left:0!important;padding-right:0!important}.\\!px-1{padding-left:.25rem!important;padding-right:.25rem!important}.\\!px-2{padding-left:.5rem!important;padding-right:.5rem!important}.\\!py-0\\.5{padding-top:.125rem!important;padding-bottom:.125rem!important}.\\!py-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.px-0{padding-left:0;padding-right:0}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-\\[0\\.25rem\\]{padding-left:.25rem;padding-right:.25rem}.py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-\\[0\\.125rem\\]{padding-top:.125rem;padding-bottom:.125rem}.pb-1{padding-bottom:.25rem}.pb-2{padding-bottom:.5rem}.pl-0\\.5{padding-left:.125rem}.pl-1{padding-left:.25rem}.pl-10{padding-left:2.5rem}.pl-2{padding-left:.5rem}.pl-3{padding-left:.75rem}.pl-4{padding-left:1rem}.pl-5{padding-left:1.25rem}.pl-6{padding-left:1.5rem}.pl-\\[25px\\]{padding-left:25px}.pr-1{padding-right:.25rem}.pr-10{padding-right:2.5rem}.pr-2{padding-right:.5rem}.pr-3{padding-right:.75rem}.pr-4{padding-right:1rem}.pr-\\[35px\\]{padding-right:35px}.pt-1{padding-top:.25rem}.pt-2{padding-top:.5rem}.pt-3{padding-top:.75rem}.pt-4{padding-top:1rem}.pt-\\[3px\\]{padding-top:3px}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.align-middle{vertical-align:middle}.font-mono{font-family:JetBrains Mono,monospace}.font-sans{font-family:Inter,sans-serif}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-6xl{font-size:3.75rem;line-height:1}.text-\\[0\\.5rem\\]{font-size:.5rem}.text-\\[0\\.65rem\\]{font-size:.65rem}.text-\\[0\\.6rem\\]{font-size:.6rem}.text-\\[10px\\]{font-size:10px}.text-\\[4rem\\]{font-size:4rem}.text-\\[9px\\]{font-size:9px}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-black{font-weight:900}.font-bold{font-weight:700}.font-light{font-weight:300}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.capitalize{text-transform:capitalize}.italic{font-style:italic}.ordinal{--tw-ordinal: ordinal;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.slashed-zero{--tw-slashed-zero: slashed-zero;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.tabular-nums{--tw-numeric-spacing: tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.leading-4{line-height:1rem}.leading-6{line-height:1.5rem}.leading-none{line-height:1}.\\!text-danger-500{color:var(--color-danger-500)!important}.\\!text-success-500{color:var(--color-success-500)!important}.text-accent-500{color:var(--color-accent-500)}.text-brand-500{color:var(--color-brand-500)}.text-danger-100{color:var(--color-danger-100)}.text-danger-500{color:var(--color-danger-500)}.text-danger-600{color:var(--color-danger-600)}.text-danger-700{color:var(--color-danger-700)}.text-inherit{color:inherit}.text-light{color:var(--color-light)}.text-neutral-100{color:var(--color-neutral-100)}.text-neutral-300{color:var(--color-neutral-300)}.text-neutral-400{color:var(--color-neutral-400)}.text-neutral-500{color:var(--color-neutral-500)}.text-neutral-600{color:var(--color-neutral-600)}.text-neutral-70{color:var(--color-neutral-70)}.text-neutral-700{color:var(--color-neutral-700)}.text-neutral-800{color:var(--color-neutral-800)}.text-neutral-900{color:var(--color-neutral-900)}.text-primary-100{color:var(--color-primary-100)}.text-primary-300{color:var(--color-primary-300)}.text-primary-500{color:var(--color-primary-500)}.text-primary-600{color:var(--color-primary-600)}.text-primary-900{color:var(--color-primary-900)}.text-prose{color:var(--color-text)}.text-secondary-10{color:var(--color-secondary-10)}.text-secondary-100{color:var(--color-secondary-100)}.text-secondary-400{color:var(--color-secondary-400)}.text-secondary-500{color:var(--color-secondary-500)}.text-secondary-600{color:var(--color-secondary-600)}.text-success-100{color:var(--color-success-100)}.text-success-500{color:var(--color-success-500)}.text-success-600{color:var(--color-success-600)}.text-theme-darker{color:var(--color-theme-darker)}.text-warning-100{color:var(--color-warning-100)}.text-warning-500{color:var(--color-warning-500)}.text-warning-600{color:var(--color-warning-600)}.text-warning-700{color:var(--color-warning-700)}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-40{opacity:.4}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-90{opacity:.9}.\\!shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1) !important;--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.outline-2{outline-width:2px}.\\!outline-primary-500{outline-color:var(--color-primary-500)!important}.ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-8{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(8px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-accent-50{--tw-ring-color: var(--color-accent-50)}.ring-brand-50{--tw-ring-color: var(--color-brand-50)}.ring-neutral-50{--tw-ring-color: var(--color-neutral-50)}.ring-primary-10{--tw-ring-color: var(--color-primary-10)}.ring-secondary-300{--tw-ring-color: var(--color-secondary-300)}.ring-opacity-5{--tw-ring-opacity: .05}.ring-opacity-60{--tw-ring-opacity: .6}.ring-offset-2{--tw-ring-offset-width: 2px}.ring-offset-secondary-100{--tw-ring-offset-color: var(--color-secondary-100)}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow{--tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / .1)) drop-shadow(0 1px 1px rgb(0 0 0 / .06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.invert{--tw-invert: invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-lg{--tw-backdrop-blur: blur(16px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[width\\]{transition-property:width;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-100{transition-duration:.1s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.\\@container{container-type:inline-size}.hover\\:scrollbar:hover::-webkit-scrollbar-track{background:transparent}.hover\\:scrollbar:hover::-webkit-scrollbar-thumb{background:var(--scrollbar-backgroud);border-radius:var(--scrollbar-radius)}.placeholder\\:text-neutral-300::-moz-placeholder{color:var(--color-neutral-300)}.placeholder\\:text-neutral-300::placeholder{color:var(--color-neutral-300)}.first\\:border-0:first-child{border-width:0px}.last\\:m-0:last-child{margin:0}.last\\:mr-0:last-child{margin-right:0}.last\\:border-r-0:last-child{border-right-width:0px}.odd\\:bg-neutral-10:nth-child(odd){background-color:var(--color-neutral-10)}.even\\:bg-neutral-5:nth-child(2n){background-color:var(--color-neutral-5)}.hover\\:bg-accent-500:hover{background-color:var(--color-accent-500)}.hover\\:bg-danger-5:hover{background-color:var(--color-danger-5)}.hover\\:bg-danger-500:hover{background-color:var(--color-danger-500)}.hover\\:bg-danger-600:hover{background-color:var(--color-danger-600)}.hover\\:bg-neutral-20:hover{background-color:var(--color-neutral-20)}.hover\\:bg-neutral-300:hover{background-color:var(--color-neutral-300)}.hover\\:bg-neutral-5:hover{background-color:var(--color-neutral-5)}.hover\\:bg-primary-400:hover{background-color:var(--color-primary-400)}.hover\\:bg-primary-5:hover{background-color:var(--color-primary-5)}.hover\\:bg-secondary-600:hover{background-color:var(--color-secondary-600)}.hover\\:bg-success-5:hover{background-color:var(--color-success-5)}.hover\\:bg-success-600:hover{background-color:var(--color-success-600)}.hover\\:bg-theme-darker:hover{background-color:var(--color-theme-darker)}.hover\\:bg-transparent:hover{background-color:transparent}.hover\\:bg-warning-5:hover{background-color:var(--color-warning-5)}.hover\\:bg-warning-600:hover{background-color:var(--color-warning-600)}.hover\\:text-light:hover{color:var(--color-light)}.hover\\:text-neutral-900:hover{color:var(--color-neutral-900)}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:opacity-100:hover{opacity:1}.focus\\:border-secondary-500:focus{border-color:var(--color-secondary-500)}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-1:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-4:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\\:border-accent-500:focus-visible{border-color:var(--color-accent-500)}.focus-visible\\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\\:ring-light:focus-visible{--tw-ring-color: var(--color-light)}.focus-visible\\:ring-opacity-75:focus-visible{--tw-ring-opacity: .75}.focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.focus-visible\\:ring-offset-brand-300:focus-visible{--tw-ring-offset-color: var(--color-brand-300)}.active\\:bg-danger-400:active{background-color:var(--color-danger-400)}.active\\:bg-neutral-10:active{background-color:var(--color-neutral-10)}.active\\:bg-neutral-200:active{background-color:var(--color-neutral-200)}.active\\:bg-neutral-300:active{background-color:var(--color-neutral-300)}.active\\:bg-primary-400:active{background-color:var(--color-primary-400)}.active\\:bg-secondary-400:active{background-color:var(--color-secondary-400)}.active\\:bg-success-400:active{background-color:var(--color-success-400)}.active\\:bg-warning-400:active{background-color:var(--color-warning-400)}.group:hover .group-hover\\:ml-2{margin-left:.5rem}.group:hover .group-hover\\:mr-0{margin-right:0}.group:hover .group-hover\\:inline-block{display:inline-block}.group:hover .group-hover\\:hidden{display:none}.data-\\[disabled\\]\\:pointer-events-none[data-disabled]{pointer-events:none}.data-\\[highlighted\\]\\:bg-brand-500[data-highlighted]{background-color:var(--color-brand-500)}.data-\\[highlighted\\]\\:text-brand-100[data-highlighted]{color:var(--color-brand-100)}.data-\\[highlighted\\]\\:outline-none[data-highlighted]{outline:2px solid transparent;outline-offset:2px}@container (min-width: 24rem){.\\@sm\\:min-w-\\[12rem\\]{min-width:12rem}}@container (min-width: 32rem){.\\@lg\\:block{display:block}.\\@lg\\:contents{display:contents}.\\@lg\\:hidden{display:none}}@container (min-width: 40rem){.\\@\\[40rem\\]\\:static{position:static}.\\@\\[40rem\\]\\:flex{display:flex}.\\@\\[40rem\\]\\:hidden{display:none}.\\@\\[40rem\\]\\:items-end{align-items:flex-end}.\\@\\[40rem\\]\\:justify-end{justify-content:flex-end}.\\@\\[40rem\\]\\:pr-0{padding-right:0}}.dark\\:border-accent-300:is([mode=dark] *){border-color:var(--color-accent-300)}.dark\\:border-dark:is([mode=dark] *){border-color:var(--color-dark)}.dark\\:border-dark-lighter:is([mode=dark] *){border-color:var(--color-dark-lighter)}.dark\\:border-neutral-300:is([mode=dark] *){border-color:var(--color-neutral-300)}.dark\\:border-neutral-600:is([mode=dark] *){border-color:var(--color-neutral-600)}.dark\\:border-neutral-700:is([mode=dark] *){border-color:var(--color-neutral-700)}.dark\\:border-neutral-800:is([mode=dark] *){border-color:var(--color-neutral-800)}.dark\\:border-primary-500:is([mode=dark] *){border-color:var(--color-primary-500)}.dark\\:border-r-theme-lighter:is([mode=dark] *){border-right-color:var(--color-theme-lighter)}.dark\\:bg-accent-300:is([mode=dark] *){background-color:var(--color-accent-300)}.dark\\:bg-danger-20:is([mode=dark] *){background-color:var(--color-danger-20)}.dark\\:bg-danger-500:is([mode=dark] *){background-color:var(--color-danger-500)}.dark\\:bg-dark:is([mode=dark] *){background-color:var(--color-dark)}.dark\\:bg-dark-lighter:is([mode=dark] *){background-color:var(--color-dark-lighter)}.dark\\:bg-neutral-20:is([mode=dark] *){background-color:var(--color-neutral-20)}.dark\\:bg-neutral-300:is([mode=dark] *){background-color:var(--color-neutral-300)}.dark\\:bg-neutral-400:is([mode=dark] *){background-color:var(--color-neutral-400)}.dark\\:bg-primary-10:is([mode=dark] *){background-color:var(--color-primary-10)}.dark\\:bg-primary-20:is([mode=dark] *){background-color:var(--color-primary-20)}.dark\\:bg-primary-300:is([mode=dark] *){background-color:var(--color-primary-300)}.dark\\:bg-primary-500:is([mode=dark] *){background-color:var(--color-primary-500)}.dark\\:bg-theme-lighter:is([mode=dark] *){background-color:var(--color-theme-lighter)}.dark\\:bg-warning-400:is([mode=dark] *){background-color:var(--color-warning-400)}.dark\\:stroke-neutral-800:is([mode=dark] *){stroke:var(--color-neutral-800)}.dark\\:text-accent-300:is([mode=dark] *){color:var(--color-accent-300)}.dark\\:text-danger-100:is([mode=dark] *){color:var(--color-danger-100)}.dark\\:text-danger-300:is([mode=dark] *){color:var(--color-danger-300)}.dark\\:text-danger-400:is([mode=dark] *){color:var(--color-danger-400)}.dark\\:text-dark-lighter:is([mode=dark] *){color:var(--color-dark-lighter)}.dark\\:text-light:is([mode=dark] *){color:var(--color-light)}.dark\\:text-neutral-100:is([mode=dark] *){color:var(--color-neutral-100)}.dark\\:text-neutral-200:is([mode=dark] *){color:var(--color-neutral-200)}.dark\\:text-neutral-300:is([mode=dark] *){color:var(--color-neutral-300)}.dark\\:text-neutral-400:is([mode=dark] *){color:var(--color-neutral-400)}.dark\\:text-neutral-500:is([mode=dark] *){color:var(--color-neutral-500)}.dark\\:text-neutral-600:is([mode=dark] *){color:var(--color-neutral-600)}.dark\\:text-neutral-800:is([mode=dark] *){color:var(--color-neutral-800)}.dark\\:text-primary-10:is([mode=dark] *){color:var(--color-primary-10)}.dark\\:text-primary-100:is([mode=dark] *){color:var(--color-primary-100)}.dark\\:text-primary-300:is([mode=dark] *){color:var(--color-primary-300)}.dark\\:text-primary-400:is([mode=dark] *){color:var(--color-primary-400)}.dark\\:text-primary-500:is([mode=dark] *){color:var(--color-primary-500)}.dark\\:text-primary-70:is([mode=dark] *){color:var(--color-primary-70)}.dark\\:text-secondary-300:is([mode=dark] *){color:var(--color-secondary-300)}.dark\\:text-secondary-400:is([mode=dark] *){color:var(--color-secondary-400)}.dark\\:text-success-300:is([mode=dark] *){color:var(--color-success-300)}.dark\\:text-success-400:is([mode=dark] *){color:var(--color-success-400)}.dark\\:text-success-500:is([mode=dark] *){color:var(--color-success-500)}.dark\\:text-theme-lighter:is([mode=dark] *){color:var(--color-theme-lighter)}.dark\\:text-warning-300:is([mode=dark] *){color:var(--color-warning-300)}.dark\\:text-warning-400:is([mode=dark] *){color:var(--color-warning-400)}.dark\\:text-warning-500:is([mode=dark] *){color:var(--color-warning-500)}.dark\\:text-warning-800:is([mode=dark] *){color:var(--color-warning-800)}.dark\\:ring-primary-50:is([mode=dark] *){--tw-ring-color: var(--color-primary-50)}.dark\\:placeholder\\:text-neutral-700:is([mode=dark] *)::-moz-placeholder{color:var(--color-neutral-700)}.dark\\:placeholder\\:text-neutral-700:is([mode=dark] *)::placeholder{color:var(--color-neutral-700)}.dark\\:hover\\:bg-neutral-10:hover:is([mode=dark] *){background-color:var(--color-neutral-10)}.dark\\:hover\\:bg-theme-lighter:hover:is([mode=dark] *){background-color:var(--color-theme-lighter)}.dark\\:hover\\:text-neutral-100:hover:is([mode=dark] *){color:var(--color-neutral-100)}@media (min-width: 640px){.sm\\:not-sr-only{position:static;width:auto;height:auto;padding:0;margin:0;overflow:visible;clip:auto;white-space:normal}.sm\\:mr-1{margin-right:.25rem}.sm\\:inline{display:inline}.sm\\:w-auto{width:auto}.sm\\:items-baseline{align-items:baseline}.sm\\:justify-between{justify-content:space-between}.sm\\:text-sm{font-size:.875rem;line-height:1.25rem}}@media (min-width: 768px){.md\\:ml-2{margin-left:.5rem}.md\\:mr-2{margin-right:.5rem}.md\\:w-\\[50\\%\\]{width:50%}.md\\:flex-nowrap{flex-wrap:nowrap}.md\\:text-\\[6rem\\]{font-size:6rem}}@media (min-width: 1024px){.lg\\:text-\\[9rem\\]{font-size:9rem}}
|
|
2
|
+
.gutter{background-color:var(--color-brand);background-repeat:no-repeat;background-position:50%;z-index:1}.gutter:hover{background-color:var(--color-brand)!important;outline:1px solid var(--color-brand)}.gutter.gutter-vertical{cursor:row-resize;background-color:var(--color-divider)}.gutter.gutter-horizontal{cursor:col-resize;background-color:var(--color-divider)}.split{box-sizing:border-box;overflow-y:auto;overflow-x:hidden}
|
|
3
|
+
.react-flow{direction:ltr}.react-flow__container{position:absolute;width:100%;height:100%;top:0;left:0}.react-flow__pane{z-index:1;cursor:grab}.react-flow__pane.selection{cursor:pointer}.react-flow__pane.dragging{cursor:grabbing}.react-flow__viewport{transform-origin:0 0;z-index:2;pointer-events:none}.react-flow__renderer{z-index:4}.react-flow__selection{z-index:6}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible{outline:none}.react-flow .react-flow__edges{pointer-events:none;overflow:visible}.react-flow__edge-path,.react-flow__connection-path{stroke:#b1b1b7;stroke-width:1;fill:none}.react-flow__edge{pointer-events:visibleStroke;cursor:pointer}.react-flow__edge.animated path{stroke-dasharray:5;animation:dashdraw .5s linear infinite}.react-flow__edge.animated path.react-flow__edge-interaction{stroke-dasharray:none;animation:none}.react-flow__edge.inactive{pointer-events:none}.react-flow__edge.selected,.react-flow__edge:focus,.react-flow__edge:focus-visible{outline:none}.react-flow__edge.selected .react-flow__edge-path,.react-flow__edge:focus .react-flow__edge-path,.react-flow__edge:focus-visible .react-flow__edge-path{stroke:#555}.react-flow__edge-textwrapper{pointer-events:all}.react-flow__edge-textbg{fill:#fff}.react-flow__edge .react-flow__edge-text{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__connection{pointer-events:none}.react-flow__connection .animated{stroke-dasharray:5;animation:dashdraw .5s linear infinite}.react-flow__connectionline{z-index:1001}.react-flow__nodes{pointer-events:none;transform-origin:0 0}.react-flow__node{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:all;transform-origin:0 0;box-sizing:border-box;cursor:grab}.react-flow__node.dragging{cursor:grabbing}.react-flow__nodesselection{z-index:3;transform-origin:left top;pointer-events:none}.react-flow__nodesselection-rect{position:absolute;pointer-events:all;cursor:grab}.react-flow__handle{position:absolute;pointer-events:none;min-width:5px;min-height:5px;background-color:#333}.react-flow__handle.connectionindicator{pointer-events:all;cursor:crosshair}.react-flow__handle-bottom{top:auto;left:50%;bottom:-4px;transform:translate(-50%)}.react-flow__handle-top{left:50%;top:-4px;transform:translate(-50%)}.react-flow__handle-left{top:50%;left:-4px;transform:translateY(-50%)}.react-flow__handle-right{right:-4px;top:50%;transform:translateY(-50%)}.react-flow__edgeupdater{cursor:move;pointer-events:all}.react-flow__panel{position:absolute;z-index:5;margin:15px}.react-flow__panel.top{top:0}.react-flow__panel.bottom{bottom:0}.react-flow__panel.left{left:0}.react-flow__panel.right{right:0}.react-flow__panel.center{left:50%;transform:translate(-50%)}.react-flow__attribution{font-size:10px;background:#ffffff80;padding:2px 3px;margin:0}.react-flow__attribution a{text-decoration:none;color:#999}@keyframes dashdraw{0%{stroke-dashoffset:10}}.react-flow__edgelabel-renderer{position:absolute;width:100%;height:100%;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__node-default,.react-flow__node-input,.react-flow__node-output,.react-flow__node-group{border-width:1px;border-style:solid;border-color:#bbb}.react-flow__node-default.selected,.react-flow__node-default:focus,.react-flow__node-default:focus-visible,.react-flow__node-input.selected,.react-flow__node-input:focus,.react-flow__node-input:focus-visible,.react-flow__node-output.selected,.react-flow__node-output:focus,.react-flow__node-output:focus-visible,.react-flow__node-group.selected,.react-flow__node-group:focus,.react-flow__node-group:focus-visible{outline:none;border:1px solid #555}.react-flow__nodesselection-rect,.react-flow__selection{background:#9696b41a;border:1px dotted rgba(155,155,155,.8)}.react-flow__controls{box-shadow:0 0 2px 1px #00000014}.react-flow__controls-button{border:none;background:#fefefe;border-bottom:1px solid #eee;box-sizing:content-box;display:flex;justify-content:center;align-items:center;width:16px;height:16px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;padding:5px}.react-flow__controls-button:hover{background:#f4f4f4}.react-flow__controls-button svg{width:100%;max-width:12px;max-height:12px}.react-flow__controls-button:disabled{pointer-events:none}.react-flow__controls-button:disabled svg{fill-opacity:.4}.react-flow__minimap{background-color:#fff}.react-flow__minimap svg{display:block}.react-flow__resize-control{position:absolute}.react-flow__resize-control.left,.react-flow__resize-control.right{cursor:ew-resize}.react-flow__resize-control.top,.react-flow__resize-control.bottom{cursor:ns-resize}.react-flow__resize-control.top.left,.react-flow__resize-control.bottom.right{cursor:nwse-resize}.react-flow__resize-control.bottom.left,.react-flow__resize-control.top.right{cursor:nesw-resize}.react-flow__resize-control.handle{width:4px;height:4px;border:1px solid #fff;border-radius:1px;background-color:#3367d9;transform:translate(-50%,-50%)}.react-flow__resize-control.handle.left{left:0;top:50%}.react-flow__resize-control.handle.right{left:100%;top:50%}.react-flow__resize-control.handle.top{left:50%;top:0}.react-flow__resize-control.handle.bottom{left:50%;top:100%}.react-flow__resize-control.handle.top.left,.react-flow__resize-control.handle.bottom.left{left:0}.react-flow__resize-control.handle.top.right,.react-flow__resize-control.handle.bottom.right{left:100%}.react-flow__resize-control.line{border-color:#3367d9;border-width:0;border-style:solid}.react-flow__resize-control.line.left,.react-flow__resize-control.line.right{width:1px;transform:translate(-50%);top:0;height:100%}.react-flow__resize-control.line.left{left:0;border-left-width:1px}.react-flow__resize-control.line.right{left:100%;border-right-width:1px}.react-flow__resize-control.line.top,.react-flow__resize-control.line.bottom{height:1px;transform:translateY(-50%);left:0;width:100%}.react-flow__resize-control.line.top{top:0;border-top-width:1px}.react-flow__resize-control.line.bottom{border-bottom-width:1px;top:100%}.react-flow__node{z-index:10!important}.react-flow__handle{background-color:currentColor}.react-flow__node.react-flow__node-model:hover,.react-flow__node.react-flow__node-model:active{z-index:20!important}react-flow__attribution{background:transparent}.lineage__column-source b{font-weight:900;color:var(--color-primary)}.react-flow__edge{pointer-events:none!important;z-index:-1!important}.react-flow__background path{stroke:inherit}.ͼ1.cm-focused{outline:1px dotted #212121}.ͼ1{position:relative!important;box-sizing:border-box;display:flex!important;flex-direction:column}.ͼ1 .cm-scroller{display:flex!important;align-items:flex-start!important;font-family:monospace;line-height:1.4;height:100%;overflow-x:auto;position:relative;z-index:0;overflow-anchor:none}.ͼ1 .cm-content[contenteditable=true]{-webkit-user-modify:read-write-plaintext-only}.ͼ1 .cm-content{margin:0;flex-grow:2;flex-shrink:0;display:block;white-space:pre;word-wrap:normal;box-sizing:border-box;min-height:100%;padding:4px 0;outline:none}.ͼ1 .cm-lineWrapping{white-space:pre-wrap;white-space:break-spaces;word-break:break-word;overflow-wrap:anywhere;flex-shrink:1}.ͼ2 .cm-content{caret-color:#000}.ͼ3 .cm-content{caret-color:#fff}.ͼ1 .cm-line{display:block;padding:0 2px 0 6px}.ͼ1 .cm-layer>*{position:absolute}.ͼ1 .cm-layer{position:absolute;left:0;top:0;contain:size style}.ͼ2 .cm-selectionBackground{background:#d9d9d9}.ͼ3 .cm-selectionBackground{background:#222}.ͼ2.cm-focused>.cm-scroller>.cm-selectionLayer .cm-selectionBackground{background:#d7d4f0}.ͼ3.cm-focused>.cm-scroller>.cm-selectionLayer .cm-selectionBackground{background:#233}.ͼ1 .cm-cursorLayer{pointer-events:none}.ͼ1.cm-focused>.cm-scroller>.cm-cursorLayer{animation:steps(1) cm-blink 1.2s infinite}@keyframes cm-blink{50%{opacity:0}}@keyframes cm-blink2{50%{opacity:0}}.ͼ1 .cm-cursor,.ͼ1 .cm-dropCursor{border-left:1.2px solid black;margin-left:-.6px;pointer-events:none}.ͼ1 .cm-cursor{display:none}.ͼ3 .cm-cursor{border-left-color:#ddd}.ͼ1 .cm-dropCursor{position:absolute}.ͼ1.cm-focused>.cm-scroller>.cm-cursorLayer .cm-cursor{display:block}.ͼ1 .cm-iso{unicode-bidi:isolate}.ͼ1 .cm-announced{position:fixed;top:-10000px}@media print{.ͼ1 .cm-announced{display:none}}.ͼ2 .cm-activeLine{background-color:#cef4}.ͼ3 .cm-activeLine{background-color:#9ef3}.ͼ2 .cm-specialChar{color:red}.ͼ3 .cm-specialChar{color:#f78}.ͼ1 .cm-gutters{flex-shrink:0;display:flex;height:100%;box-sizing:border-box;inset-inline-start:0;z-index:200}.ͼ2 .cm-gutters{background-color:#f5f5f5;color:#6c6c6c;border-right:1px solid #ddd}.ͼ3 .cm-gutters{background-color:#333338;color:#ccc}.ͼ1 .cm-gutter{display:flex!important;flex-direction:column;flex-shrink:0;box-sizing:border-box;min-height:100%;overflow:hidden}.ͼ1 .cm-gutterElement{box-sizing:border-box}.ͼ1 .cm-lineNumbers .cm-gutterElement{padding:0 3px 0 5px;min-width:20px;text-align:right;white-space:nowrap}.ͼ2 .cm-activeLineGutter{background-color:#e2f2ff}.ͼ3 .cm-activeLineGutter{background-color:#222227}.ͼ1 .cm-panels{box-sizing:border-box;position:sticky;left:0;right:0;z-index:300}.ͼ2 .cm-panels{background-color:#f5f5f5;color:#000}.ͼ2 .cm-panels-top{border-bottom:1px solid #ddd}.ͼ2 .cm-panels-bottom{border-top:1px solid #ddd}.ͼ3 .cm-panels{background-color:#333338;color:#fff}.ͼ1 .cm-tab{display:inline-block;overflow:hidden;vertical-align:bottom}.ͼ1 .cm-widgetBuffer{vertical-align:text-top;height:1em;width:0;display:inline}.ͼ1 .cm-placeholder{color:#888;display:inline-block;vertical-align:top}.ͼ1 .cm-highlightSpace{background-image:radial-gradient(circle at 50% 55%,#aaa 20%,transparent 5%);background-position:center}.ͼ1 .cm-highlightTab{background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="20"><path stroke="%23888" stroke-width="1" fill="none" d="M1 10H196L190 5M190 15L196 10M197 4L197 16"/></svg>');background-size:auto 100%;background-position:right 90%;background-repeat:no-repeat}.ͼ1 .cm-trailingSpace{background-color:#f325}.ͼ1 .cm-button{vertical-align:middle;color:inherit;font-size:70%;padding:.2em 1em;border-radius:1px}.ͼ2 .cm-button:active{background-image:linear-gradient(#b4b4b4,#d0d3d6)}.ͼ2 .cm-button{background-image:linear-gradient(#eff1f5,#d9d9df);border:1px solid #888}.ͼ3 .cm-button:active{background-image:linear-gradient(#111,#333)}.ͼ3 .cm-button{background-image:linear-gradient(#393939,#111);border:1px solid #888}.ͼ1 .cm-textfield{vertical-align:middle;color:inherit;font-size:70%;border:1px solid silver;padding:.2em .5em}.ͼ2 .cm-textfield{background-color:#fff}.ͼ3 .cm-textfield{border:1px solid #555;background-color:inherit}.ͼ1 .cm-tooltip.cm-tooltip-autocomplete>ul>li,.ͼ1 .cm-tooltip.cm-tooltip-autocomplete>ul>completion-section{padding:1px 3px;line-height:1.2}.ͼ1 .cm-tooltip.cm-tooltip-autocomplete>ul>li{overflow-x:hidden;text-overflow:ellipsis;cursor:pointer}.ͼ1 .cm-tooltip.cm-tooltip-autocomplete>ul>completion-section{display:list-item;border-bottom:1px solid silver;padding-left:.5em;opacity:.7}.ͼ1 .cm-tooltip.cm-tooltip-autocomplete>ul{font-family:monospace;white-space:nowrap;overflow:hidden auto;max-width:700px;max-width:min(700px,95vw);min-width:250px;max-height:10em;height:100%;list-style:none;margin:0;padding:0}.ͼ2 .cm-tooltip-autocomplete ul li[aria-selected]{background:#17c;color:#fff}.ͼ2 .cm-tooltip-autocomplete-disabled ul li[aria-selected]{background:#777}.ͼ3 .cm-tooltip-autocomplete ul li[aria-selected]{background:#347;color:#fff}.ͼ3 .cm-tooltip-autocomplete-disabled ul li[aria-selected]{background:#444}.ͼ1 .cm-completionListIncompleteTop:before,.ͼ1 .cm-completionListIncompleteBottom:after{content:"···";opacity:.5;display:block;text-align:center}.ͼ1 .cm-tooltip.cm-completionInfo{position:absolute;padding:3px 9px;width:-moz-max-content;width:max-content;max-width:400px;box-sizing:border-box;white-space:pre-line}.ͼ1 .cm-completionInfo.cm-completionInfo-left{right:100%}.ͼ1 .cm-completionInfo.cm-completionInfo-right{left:100%}.ͼ1 .cm-completionInfo.cm-completionInfo-left-narrow{right:30px}.ͼ1 .cm-completionInfo.cm-completionInfo-right-narrow{left:30px}.ͼ2 .cm-snippetField{background-color:#0002}.ͼ3 .cm-snippetField{background-color:#fff2}.ͼ1 .cm-snippetFieldPosition{vertical-align:text-top;width:0;height:1.15em;display:inline-block;margin:0 -.7px -.7em;border-left:1.4px dotted #888}.ͼ1 .cm-completionMatchedText{text-decoration:underline}.ͼ1 .cm-completionDetail{margin-left:.5em;font-style:italic}.ͼ1 .cm-completionIcon{font-size:90%;width:.8em;display:inline-block;text-align:center;padding-right:.6em;opacity:.6;box-sizing:content-box}.ͼ1 .cm-completionIcon-function:after,.ͼ1 .cm-completionIcon-method:after{content:"ƒ"}.ͼ1 .cm-completionIcon-class:after{content:"○"}.ͼ1 .cm-completionIcon-interface:after{content:"◌"}.ͼ1 .cm-completionIcon-variable:after{content:"𝑥"}.ͼ1 .cm-completionIcon-constant:after{content:"𝐶"}.ͼ1 .cm-completionIcon-type:after{content:"𝑡"}.ͼ1 .cm-completionIcon-enum:after{content:"∪"}.ͼ1 .cm-completionIcon-property:after{content:"□"}.ͼ1 .cm-completionIcon-keyword:after{content:"🔑︎"}.ͼ1 .cm-completionIcon-namespace:after{content:"▢"}.ͼ1 .cm-completionIcon-text:after{content:"abc";font-size:50%;vertical-align:middle}.ͼ1 .cm-tooltip{z-index:500;box-sizing:border-box}.ͼ2 .cm-tooltip{border:1px solid #bbb;background-color:#f5f5f5}.ͼ2 .cm-tooltip-section:not(:first-child){border-top:1px solid #bbb}.ͼ3 .cm-tooltip{background-color:#333338;color:#fff}.ͼ1 .cm-tooltip-arrow:before,.ͼ1 .cm-tooltip-arrow:after{content:"";position:absolute;width:0;height:0;border-left:7px solid transparent;border-right:7px solid transparent}.ͼ1 .cm-tooltip-above .cm-tooltip-arrow:before{border-top:7px solid #bbb}.ͼ1 .cm-tooltip-above .cm-tooltip-arrow:after{border-top:7px solid #f5f5f5;bottom:1px}.ͼ1 .cm-tooltip-above .cm-tooltip-arrow{bottom:-7px}.ͼ1 .cm-tooltip-below .cm-tooltip-arrow:before{border-bottom:7px solid #bbb}.ͼ1 .cm-tooltip-below .cm-tooltip-arrow:after{border-bottom:7px solid #f5f5f5;top:1px}.ͼ1 .cm-tooltip-below .cm-tooltip-arrow{top:-7px}.ͼ1 .cm-tooltip-arrow{height:7px;width:14px;position:absolute;z-index:-1;overflow:hidden}.ͼ3 .cm-tooltip .cm-tooltip-arrow:before{border-top-color:#333338;border-bottom-color:#333338}.ͼ3 .cm-tooltip .cm-tooltip-arrow:after{border-top-color:transparent;border-bottom-color:transparent}.ͼ1 .cm-selectionMatch{background-color:#99ff7780}.ͼ1 .cm-searchMatch .cm-selectionMatch{background-color:transparent}.ͼ1.cm-focused .cm-matchingBracket{background-color:#328c8252}.ͼ1.cm-focused .cm-nonmatchingBracket{background-color:#b554}.ͼ1 .cm-foldPlaceholder{background-color:#eee;border:1px solid #ddd;color:#888;border-radius:.2em;margin:0 1px;padding:0 1px;cursor:pointer}.ͼ1 .cm-foldGutter span{padding:0 1px;cursor:pointer}.ͼ63{color:#8e908c}.ͼ64{color:#c82829}.ͼ65{color:#f5871f}.ͼ66{color:#c99e00}.ͼ67{color:#718c00}.ͼ68{color:#3e999f}.ͼ69{color:#4271ae}.ͼ6a{color:#8959a8}.ͼ6b{color:#4d4d4c}.ͼ62{background-color:#fff;color:#4d4d4c}.ͼ62 .cm-content{caret-color:#aeafad}.ͼ62 .cm-cursor,.ͼ62 .cm-dropCursor{border-left-color:#aeafad}.ͼ62 .cm-content ::-moz-selection{background-color:#d6d6d6}.ͼ62.cm-focused .cm-selectionBackgroundm .cm-selectionBackground,.ͼ62 .cm-content ::selection{background-color:#d6d6d6}.ͼ62 .cm-activeLine{background-color:#efefef}.ͼ62 .cm-gutters{background-color:#fff;color:#4d4d4c80}.ͼ62 .cm-activeLineGutter{background-color:#efefef}.ͼ15{background-color:#fff}.ͼ5{color:#404740}.ͼ6{text-decoration:underline}.ͼ7{text-decoration:underline;font-weight:700}.ͼ8{font-style:italic}.ͼ9{font-weight:700}.ͼa{text-decoration:line-through}.ͼb{color:#708}.ͼc{color:#219}.ͼd{color:#164}.ͼe{color:#a11}.ͼf{color:#e40}.ͼg{color:#00f}.ͼh{color:#30a}.ͼi{color:#085}.ͼj{color:#167}.ͼk{color:#256}.ͼl{color:#00c}.ͼm{color:#940}.ͼn{color:red}.ͼ7b{height:100%;width:100%}.ͼ7b .cm-scroller{height:100%!important}.ͼ79{height:100%;width:100%}.ͼ79 .cm-scroller{height:100%!important}.ͼ77{height:100%;width:100%}.ͼ77 .cm-scroller{height:100%!important}.ͼ75{height:100%;width:100%}.ͼ75 .cm-scroller{height:100%!important}.ͼ73{height:100%;width:100%}.ͼ73 .cm-scroller{height:100%!important}.ͼ71{height:100%;width:100%}.ͼ71 .cm-scroller{height:100%!important}.ͼ4 .cm-line ::-moz-selection,.ͼ4 .cm-line::-moz-selection{background-color:transparent!important}.ͼ4 .cm-line ::selection,.ͼ4 .cm-line::selection{background-color:transparent!important}.ͼ4 .cm-line{caret-color:transparent!important}.ͼ4 .cm-content :focus::-moz-selection,.ͼ4 .cm-content :focus ::-moz-selection{background-color:Highlight!important}.ͼ4 .cm-content :focus::selection,.ͼ4 .cm-content :focus ::selection{background-color:Highlight!important}.ͼ4 .cm-content :focus{caret-color:initial!important}.ͼ4 .cm-content{caret-color:transparent!important}.cm-editor,.cm-editor .cm-content{background-color:var(--color-editor);color:var(--color-editor-text);font-weight:400;font-size:.85rem;width:100%}.cm-editor .cm-gutters{background-color:var(--color-editor);border:none;padding-left:.25rem;padding-right:.5rem}.cm-editor .cm-activeLineGutter,.cm-editor .cm-activeLine{color:var(--color-editor-active-line-text)}.cm-editor .cm-line::-moz-selection,.cm-editor .cm-line>*::-moz-selection{background-color:var(--color-brand-100)!important;color:var(--color-brand-700)!important}.cm-editor .cm-line::selection,.cm-editor .cm-line>*::selection{background-color:var(--color-brand-100)!important;color:var(--color-brand-700)!important}.cm-editor .cm-tooltip.cm-tooltip-autocomplete{margin-top:.25rem}.cm-editor .cm-tooltip.cm-tooltip-autocomplete>ul{border-radius:.35rem;padding:.25rem;color:var(--color-text)}.cm-editor .cm-tooltip.cm-tooltip-autocomplete>ul>li{padding:.25rem .5rem;cursor:pointer;border-radius:.3rem;border:1px solid transparent;font-weight:400;display:flex;align-items:center}.cm-editor .cm-tooltip-autocomplete>ul>li[aria-selected=true]{color:var(--color-text)}.cm-editor .cm-tooltip.cm-tooltip-autocomplete>ul>li .cm-completionMatchedText{opacity:1;font-weight:700;text-decoration:none}.cm-editor .cm-tooltip-autocomplete .cm-completionIcon-column,.cm-editor .cm-tooltip-autocomplete .cm-completionIcon-model{margin-right:1.5rem}.cm-editor .cm-tooltip-autocomplete .cm-completionIcon:before{display:inline-block;padding:.125rem .25rem;border-radius:.25rem}.cm-editor .cm-tooltip-autocomplete .cm-completionIcon{display:none}.cm-editor .cm-tooltip-autocomplete .cm-completionIcon-column,.cm-editor .cm-tooltip-autocomplete .cm-completionIcon-model{display:block;opacity:1}.cm-editor .cm-tooltip-autocomplete .cm-completionIcon-column:before{content:"col";font-weight:700}.cm-editor .cm-tooltip-autocomplete .cm-completionIcon-model:before{content:"mdl";font-weight:700}.cm-editor .cm-scroller{font-family:inherit}.cm-editor .cm-scroller::-webkit-scrollbar,.cm-editor .cm-tooltip.cm-tooltip-autocomplete ul::-webkit-scrollbar{height:var(--scrollbar-size);width:var(--scrollbar-size)}.cm-editor .cm-scroller::-webkit-scrollbar-track,.cm-editor .cm-tooltip.cm-tooltip-autocomplete ul::-webkit-scrollbar-track{background:transparent}.cm-editor .cm-scroller::-webkit-scrollbar-thumb,.cm-editor .cm-tooltip.cm-tooltip-autocomplete ul::-webkit-scrollbar-thumb{background:var(--color-neutral-40);border-radius:var(--scrollbar-radius)}.cm-editor .cm-tooltip{border:none!important;outline:none!important;background:var(--color-theme)!important}.sqlmesh-expression{background:var(--color-secondary-10);box-shadow:inset 0 -1px 0 0 var(--color-secondary-500),inset 0 1px 0 0 var(--color-secondary-500)}.sqlmesh-model,.sqlmesh-model>span{display:inline-block;color:var(--color-primary-500);box-shadow:inset 0 -2px 0 0 transparent;font-weight:700}.sqlmesh-model.--is-action-mode,.sqlmesh-model.--is-action-mode>span{cursor:pointer;box-shadow:inset 0 -2px 0 0 var(--color-primary-300)}.sqlmesh-model.--is-action-mode:hover{opacity:.8}.sqlmesh-model.--is-active-model,.sqlmesh-model.--is-active-model:hover,.sqlmesh-model.--is-active-model>span,.sqlmesh-model.--is-active-model:hover>span{box-shadow:none;cursor:default;opacity:1}.sqlmesh-model__column.--is-original,.sqlmesh-model__column.--is-original>span,.sqlmesh-model__column.--is-alias,.sqlmesh-model__column.--is-alias>span{display:inline-block;color:var(--color-accent-300);font-weight:700}.sqlmesh-model__column.--is-active-model.--is-alias,.sqlmesh-model__column.--is-active-model.--is-alias>span{display:inline-block;color:var(--color-brand-300);font-weight:700;box-shadow:inset 0 -2px 0 0 transparent}.sqlmesh-model__column.--is-active-model.--is-alias.--is-action-mode,.sqlmesh-model__column.--is-active-model.--is-alias.--is-action-mode>span{cursor:pointer;box-shadow:inset 0 -2px 0 0 var(--color-brand-300)}.sqlmesh-model__column.--is-action-mode:hover{opacity:.8}[mode=dark] .cm-editor .cm-activeLineGutter,[mode=dark] .cm-editor .cm-activeLine{background-color:var(--color-neutral-30)}[mode=dark] .cm-editor .cm-tooltip-autocomplete .cm-completionIcon-model:before{color:var(--color-secondary-300);background:var(--color-secondary-20)}[mode=dark] .cm-editor .cm-tooltip.cm-tooltip-autocomplete>ul>li .cm-completionMatchedText{color:var(--color-accent-200);background:var(--color-accent-50)}[mode=dark] .cm-editor .cm-tooltip-autocomplete .cm-completionIcon-column:before{color:var(--color-brand-500);background:var(--color-brand-10)}[mode=dark] .cm-editor .cm-tooltip.cm-tooltip-autocomplete>ul{border:1px solid var(--color-neutral-50)!important;box-shadow:0 2px 3px 0 var(--color-neutral-20)}[mode=dark] .cm-editor .cm-tooltip-autocomplete>ul>li[aria-selected=true]{background:var(--color-neutral-30);border:1px solid var(--color-neutral-50)!important}[mode=light] .cm-editor .cm-activeLineGutter,[mode=light] .cm-editor .cm-activeLine{background-color:var(--color-neutral-10)}[mode=light] .cm-editor .cm-tooltip-autocomplete .cm-completionIcon-model:before{color:var(--color-secondary-500);background:var(--color-secondary-10)}[mode=light] .cm-editor .cm-tooltip.cm-tooltip-autocomplete>ul>li .cm-completionMatchedText{color:var(--color-accent-500);background:var(--color-accent-5)}[mode=light] .cm-editor .cm-tooltip-autocomplete .cm-completionIcon-column:before{color:var(--color-brand-500);background:var(--color-brand-20)}[mode=light] .cm-editor .cm-tooltip.cm-tooltip-autocomplete>ul{border:1px solid var(--color-neutral-20)!important;box-shadow:0 2px 3px 0 var(--color-neutral-20)}[mode=light] .cm-editor .cm-tooltip-autocomplete>ul>li[aria-selected=true]{background:var(--color-neutral-5);border:1px solid var(--color-neutral-10)!important}`)),document.head.appendChild(r)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
|
|
4
|
+
var R1=Object.defineProperty;var ig=n=>{throw TypeError(n)};var M1=(n,e,t)=>e in n?R1(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var Ft=(n,e,t)=>M1(n,typeof e!="symbol"?e+"":e,t),Zf=(n,e,t)=>e.has(n)||ig("Cannot "+t);var b=(n,e,t)=>(Zf(n,e,"read from private field"),t?t.call(n):e.get(n)),pe=(n,e,t)=>e.has(n)?ig("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(n):e.set(n,t),X=(n,e,t,s)=>(Zf(n,e,"write to private field"),s?s.call(n,t):e.set(n,t),t),Ue=(n,e,t)=>(Zf(n,e,"access private method"),t);var ic=(n,e,t,s)=>({set _(a){X(n,e,a,t)},get _(){return b(n,e,s)}});function L1(n,e){for(var t=0;t<e.length;t++){const s=e[t];if(typeof s!="string"&&!Array.isArray(s)){for(const a in s)if(a!=="default"&&!(a in n)){const u=Object.getOwnPropertyDescriptor(s,a);u&&Object.defineProperty(n,a,u.get?u:{enumerable:!0,get:()=>s[a]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}var oO=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Wv(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var eh={exports:{}},dl={},th={exports:{}},$e={};/**
|
|
5
|
+
* @license React
|
|
6
|
+
* react.production.min.js
|
|
7
|
+
*
|
|
8
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
9
|
+
*
|
|
10
|
+
* This source code is licensed under the MIT license found in the
|
|
11
|
+
* LICENSE file in the root directory of this source tree.
|
|
12
|
+
*/var sg;function A1(){if(sg)return $e;sg=1;var n=Symbol.for("react.element"),e=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),d=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),v=Symbol.iterator;function S(C){return C===null||typeof C!="object"?null:(C=v&&C[v]||C["@@iterator"],typeof C=="function"?C:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},k=Object.assign,A={};function T(C,j,he){this.props=C,this.context=j,this.refs=A,this.updater=he||E}T.prototype.isReactComponent={},T.prototype.setState=function(C,j){if(typeof C!="object"&&typeof C!="function"&&C!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,C,j,"setState")},T.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};function B(){}B.prototype=T.prototype;function Z(C,j,he){this.props=C,this.context=j,this.refs=A,this.updater=he||E}var V=Z.prototype=new B;V.constructor=Z,k(V,T.prototype),V.isPureReactComponent=!0;var G=Array.isArray,te=Object.prototype.hasOwnProperty,M={current:null},Le={key:!0,ref:!0,__self:!0,__source:!0};function ve(C,j,he){var Ae,We={},Be=null,ct=null;if(j!=null)for(Ae in j.ref!==void 0&&(ct=j.ref),j.key!==void 0&&(Be=""+j.key),j)te.call(j,Ae)&&!Le.hasOwnProperty(Ae)&&(We[Ae]=j[Ae]);var et=arguments.length-2;if(et===1)We.children=he;else if(1<et){for(var vt=Array(et),tt=0;tt<et;tt++)vt[tt]=arguments[tt+2];We.children=vt}if(C&&C.defaultProps)for(Ae in et=C.defaultProps,et)We[Ae]===void 0&&(We[Ae]=et[Ae]);return{$$typeof:n,type:C,key:Be,ref:ct,props:We,_owner:M.current}}function re(C,j){return{$$typeof:n,type:C.type,key:j,ref:C.ref,props:C.props,_owner:C._owner}}function Fe(C){return typeof C=="object"&&C!==null&&C.$$typeof===n}function mt(C){var j={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(he){return j[he]})}var bt=/\/+/g;function yt(C,j){return typeof C=="object"&&C!==null&&C.key!=null?mt(""+C.key):j.toString(36)}function je(C,j,he,Ae,We){var Be=typeof C;(Be==="undefined"||Be==="boolean")&&(C=null);var ct=!1;if(C===null)ct=!0;else switch(Be){case"string":case"number":ct=!0;break;case"object":switch(C.$$typeof){case n:case e:ct=!0}}if(ct)return ct=C,We=We(ct),C=Ae===""?"."+yt(ct,0):Ae,G(We)?(he="",C!=null&&(he=C.replace(bt,"$&/")+"/"),je(We,j,he,"",function(tt){return tt})):We!=null&&(Fe(We)&&(We=re(We,he+(!We.key||ct&&ct.key===We.key?"":(""+We.key).replace(bt,"$&/")+"/")+C)),j.push(We)),1;if(ct=0,Ae=Ae===""?".":Ae+":",G(C))for(var et=0;et<C.length;et++){Be=C[et];var vt=Ae+yt(Be,et);ct+=je(Be,j,he,vt,We)}else if(vt=S(C),typeof vt=="function")for(C=vt.call(C),et=0;!(Be=C.next()).done;)Be=Be.value,vt=Ae+yt(Be,et++),ct+=je(Be,j,he,vt,We);else if(Be==="object")throw j=String(C),Error("Objects are not valid as a React child (found: "+(j==="[object Object]"?"object with keys {"+Object.keys(C).join(", ")+"}":j)+"). If you meant to render a collection of children, use an array instead.");return ct}function Ze(C,j,he){if(C==null)return C;var Ae=[],We=0;return je(C,Ae,"","",function(Be){return j.call(he,Be,We++)}),Ae}function Ne(C){if(C._status===-1){var j=C._result;j=j(),j.then(function(he){(C._status===0||C._status===-1)&&(C._status=1,C._result=he)},function(he){(C._status===0||C._status===-1)&&(C._status=2,C._result=he)}),C._status===-1&&(C._status=0,C._result=j)}if(C._status===1)return C._result.default;throw C._result}var ze={current:null},K={transition:null},ne={ReactCurrentDispatcher:ze,ReactCurrentBatchConfig:K,ReactCurrentOwner:M};function Y(){throw Error("act(...) is not supported in production builds of React.")}return $e.Children={map:Ze,forEach:function(C,j,he){Ze(C,function(){j.apply(this,arguments)},he)},count:function(C){var j=0;return Ze(C,function(){j++}),j},toArray:function(C){return Ze(C,function(j){return j})||[]},only:function(C){if(!Fe(C))throw Error("React.Children.only expected to receive a single React element child.");return C}},$e.Component=T,$e.Fragment=t,$e.Profiler=a,$e.PureComponent=Z,$e.StrictMode=s,$e.Suspense=p,$e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ne,$e.act=Y,$e.cloneElement=function(C,j,he){if(C==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+C+".");var Ae=k({},C.props),We=C.key,Be=C.ref,ct=C._owner;if(j!=null){if(j.ref!==void 0&&(Be=j.ref,ct=M.current),j.key!==void 0&&(We=""+j.key),C.type&&C.type.defaultProps)var et=C.type.defaultProps;for(vt in j)te.call(j,vt)&&!Le.hasOwnProperty(vt)&&(Ae[vt]=j[vt]===void 0&&et!==void 0?et[vt]:j[vt])}var vt=arguments.length-2;if(vt===1)Ae.children=he;else if(1<vt){et=Array(vt);for(var tt=0;tt<vt;tt++)et[tt]=arguments[tt+2];Ae.children=et}return{$$typeof:n,type:C.type,key:We,ref:Be,props:Ae,_owner:ct}},$e.createContext=function(C){return C={$$typeof:d,_currentValue:C,_currentValue2:C,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},C.Provider={$$typeof:u,_context:C},C.Consumer=C},$e.createElement=ve,$e.createFactory=function(C){var j=ve.bind(null,C);return j.type=C,j},$e.createRef=function(){return{current:null}},$e.forwardRef=function(C){return{$$typeof:f,render:C}},$e.isValidElement=Fe,$e.lazy=function(C){return{$$typeof:g,_payload:{_status:-1,_result:C},_init:Ne}},$e.memo=function(C,j){return{$$typeof:m,type:C,compare:j===void 0?null:j}},$e.startTransition=function(C){var j=K.transition;K.transition={};try{C()}finally{K.transition=j}},$e.unstable_act=Y,$e.useCallback=function(C,j){return ze.current.useCallback(C,j)},$e.useContext=function(C){return ze.current.useContext(C)},$e.useDebugValue=function(){},$e.useDeferredValue=function(C){return ze.current.useDeferredValue(C)},$e.useEffect=function(C,j){return ze.current.useEffect(C,j)},$e.useId=function(){return ze.current.useId()},$e.useImperativeHandle=function(C,j,he){return ze.current.useImperativeHandle(C,j,he)},$e.useInsertionEffect=function(C,j){return ze.current.useInsertionEffect(C,j)},$e.useLayoutEffect=function(C,j){return ze.current.useLayoutEffect(C,j)},$e.useMemo=function(C,j){return ze.current.useMemo(C,j)},$e.useReducer=function(C,j,he){return ze.current.useReducer(C,j,he)},$e.useRef=function(C){return ze.current.useRef(C)},$e.useState=function(C){return ze.current.useState(C)},$e.useSyncExternalStore=function(C,j,he){return ze.current.useSyncExternalStore(C,j,he)},$e.useTransition=function(){return ze.current.useTransition()},$e.version="18.3.1",$e}var og;function Gh(){return og||(og=1,th.exports=A1()),th.exports}/**
|
|
13
|
+
* @license React
|
|
14
|
+
* react-jsx-runtime.production.min.js
|
|
15
|
+
*
|
|
16
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
17
|
+
*
|
|
18
|
+
* This source code is licensed under the MIT license found in the
|
|
19
|
+
* LICENSE file in the root directory of this source tree.
|
|
20
|
+
*/var ag;function k1(){if(ag)return dl;ag=1;var n=Gh(),e=Symbol.for("react.element"),t=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,a=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function d(f,p,m){var g,v={},S=null,E=null;m!==void 0&&(S=""+m),p.key!==void 0&&(S=""+p.key),p.ref!==void 0&&(E=p.ref);for(g in p)s.call(p,g)&&!u.hasOwnProperty(g)&&(v[g]=p[g]);if(f&&f.defaultProps)for(g in p=f.defaultProps,p)v[g]===void 0&&(v[g]=p[g]);return{$$typeof:e,type:f,key:S,ref:E,props:v,_owner:a.current}}return dl.Fragment=t,dl.jsx=d,dl.jsxs=d,dl}var lg;function P1(){return lg||(lg=1,eh.exports=k1()),eh.exports}var U=P1(),O=Gh();const Zs=Wv(O),aO=L1({__proto__:null,default:Zs},[O]);function N1(n){return n===!0}function fs(n){return n===!1}function lO(n){return en(n)||fs(n)}function Qv(n){return typeof n=="string"}function T1(n){return n===""}function Cl(n){return en(n)||T1(n)}function uO(n){return Qv(n)?n:""}function cO(n){return Qv(n)&&n.trim()!==""}function ud(n){return Array.isArray(n)&&n.length>0}function Kv(n){return Array.isArray(n)&&n.length===0}function dO(n){return qv(n)&&Kv(Object.keys(n))}function fO(n){return qv(n)&&ud(Object.keys(n))}function qv(n){return typeof n=="object"&&yn(n)&&n.constructor===Object}function en(n){return n==null}function yn(n){return n!=null}function hO(n){if(!en(n))try{const e=new Date(n);return isNaN(e.getTime())?void 0:e}catch{return}}function pO(n,e="yyyy-mm-dd",t=!0){if(en(n))return"";const s=t?n.getUTCFullYear():n.getFullYear(),a=g(t?n.getUTCMonth()+1:n.getMonth()+1),u=g(t?n.getUTCDate():n.getDate()),d=g(t?n.getUTCHours():n.getHours()),f=g(t?n.getUTCMinutes():n.getMinutes()),p=g(t?n.getUTCSeconds():n.getSeconds());return{"mm/dd/yyyy":`${a}/${u}/${s}`,"yyyy-mm-dd":`${s}-${a}-${u}`,"yyyy-mm-dd hh-mm-ss":`${s}-${a}-${u} ${d}:${f}:${p}`}[e]??n.toDateString();function g(v){return v.toString().padStart(2,"0")}}function mO(n,e){return n.includes(e)}function yO(n,e,t=100){return en(n)||en(e)||e===0||isNaN(n)||isNaN(e)||isNaN(t)?0:n/e*t}function B1(n){if(!en(n))try{return n==="undefined"?void 0:JSON.parse(n??"")}catch{console.log("parsing error on",{value:n});return}}function gO(n,e=500,t=!1){let s;return function(...u){const d=t&&en(s);clearTimeout(s),s=setTimeout(()=>{s=void 0,fs(t)&&n(...u)},e),d&&n(...u)}}function vh(){const n=new Date().getTime().toString(36),e=Math.random().toString(36).substring(2,8);return n+e}function vO(...n){return n.filter(Boolean).join("__")}function wO(n,e){const t=(Date.now()%1e5).toString(16);return`${en(n)?"":`${n}_`}${t}${e??""}`.toLowerCase()}function SO(n,e=0,t=5,s="...",a){const u=n.length;return t=Math.abs(t),a=en(a)?t:Math.abs(a),e>u||t+a>=u?n:a===0?n.substring(0,t)+s:n.substring(0,t)+s+n.substring(u-a)}const nh=window.localStorage;function Yv(n,e){function t(){try{const u=nh.getItem(n);return B1(u)}catch(u){console.log(u)}}function s(u){try{const d=Object.assign({},t(),u);nh.setItem(n,JSON.stringify(d))}catch(d){console.log(d)}}function a(){nh.removeItem(n)}return[t,s,a]}const To={Light:"light",Dark:"dark"},U1={mode:To.Light},Gv=O.createContext(U1);function j1({children:n}){var d;const[e,t]=Yv("color-scheme"),s=((d=e())==null?void 0:d.mode)??(window.matchMedia("(prefers-color-scheme: dark)").matches?To.Dark:To.Light),[a,u]=O.useState(s);return O.useEffect(()=>{t({mode:a}),document.documentElement.setAttribute("mode",a)},[a]),U.jsx(Gv.Provider,{value:{mode:a,toggleColorScheme(){u(a===To.Light?To.Dark:To.Light)}},children:n})}function _O(){return O.useContext(Gv)}var sc={},rh={exports:{}},Cn={},ih={exports:{}},sh={};/**
|
|
21
|
+
* @license React
|
|
22
|
+
* scheduler.production.min.js
|
|
23
|
+
*
|
|
24
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
25
|
+
*
|
|
26
|
+
* This source code is licensed under the MIT license found in the
|
|
27
|
+
* LICENSE file in the root directory of this source tree.
|
|
28
|
+
*/var ug;function z1(){return ug||(ug=1,function(n){function e(K,ne){var Y=K.length;K.push(ne);e:for(;0<Y;){var C=Y-1>>>1,j=K[C];if(0<a(j,ne))K[C]=ne,K[Y]=j,Y=C;else break e}}function t(K){return K.length===0?null:K[0]}function s(K){if(K.length===0)return null;var ne=K[0],Y=K.pop();if(Y!==ne){K[0]=Y;e:for(var C=0,j=K.length,he=j>>>1;C<he;){var Ae=2*(C+1)-1,We=K[Ae],Be=Ae+1,ct=K[Be];if(0>a(We,Y))Be<j&&0>a(ct,We)?(K[C]=ct,K[Be]=Y,C=Be):(K[C]=We,K[Ae]=Y,C=Ae);else if(Be<j&&0>a(ct,Y))K[C]=ct,K[Be]=Y,C=Be;else break e}}return ne}function a(K,ne){var Y=K.sortIndex-ne.sortIndex;return Y!==0?Y:K.id-ne.id}if(typeof performance=="object"&&typeof performance.now=="function"){var u=performance;n.unstable_now=function(){return u.now()}}else{var d=Date,f=d.now();n.unstable_now=function(){return d.now()-f}}var p=[],m=[],g=1,v=null,S=3,E=!1,k=!1,A=!1,T=typeof setTimeout=="function"?setTimeout:null,B=typeof clearTimeout=="function"?clearTimeout:null,Z=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function V(K){for(var ne=t(m);ne!==null;){if(ne.callback===null)s(m);else if(ne.startTime<=K)s(m),ne.sortIndex=ne.expirationTime,e(p,ne);else break;ne=t(m)}}function G(K){if(A=!1,V(K),!k)if(t(p)!==null)k=!0,Ne(te);else{var ne=t(m);ne!==null&&ze(G,ne.startTime-K)}}function te(K,ne){k=!1,A&&(A=!1,B(ve),ve=-1),E=!0;var Y=S;try{for(V(ne),v=t(p);v!==null&&(!(v.expirationTime>ne)||K&&!mt());){var C=v.callback;if(typeof C=="function"){v.callback=null,S=v.priorityLevel;var j=C(v.expirationTime<=ne);ne=n.unstable_now(),typeof j=="function"?v.callback=j:v===t(p)&&s(p),V(ne)}else s(p);v=t(p)}if(v!==null)var he=!0;else{var Ae=t(m);Ae!==null&&ze(G,Ae.startTime-ne),he=!1}return he}finally{v=null,S=Y,E=!1}}var M=!1,Le=null,ve=-1,re=5,Fe=-1;function mt(){return!(n.unstable_now()-Fe<re)}function bt(){if(Le!==null){var K=n.unstable_now();Fe=K;var ne=!0;try{ne=Le(!0,K)}finally{ne?yt():(M=!1,Le=null)}}else M=!1}var yt;if(typeof Z=="function")yt=function(){Z(bt)};else if(typeof MessageChannel<"u"){var je=new MessageChannel,Ze=je.port2;je.port1.onmessage=bt,yt=function(){Ze.postMessage(null)}}else yt=function(){T(bt,0)};function Ne(K){Le=K,M||(M=!0,yt())}function ze(K,ne){ve=T(function(){K(n.unstable_now())},ne)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(K){K.callback=null},n.unstable_continueExecution=function(){k||E||(k=!0,Ne(te))},n.unstable_forceFrameRate=function(K){0>K||125<K?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):re=0<K?Math.floor(1e3/K):5},n.unstable_getCurrentPriorityLevel=function(){return S},n.unstable_getFirstCallbackNode=function(){return t(p)},n.unstable_next=function(K){switch(S){case 1:case 2:case 3:var ne=3;break;default:ne=S}var Y=S;S=ne;try{return K()}finally{S=Y}},n.unstable_pauseExecution=function(){},n.unstable_requestPaint=function(){},n.unstable_runWithPriority=function(K,ne){switch(K){case 1:case 2:case 3:case 4:case 5:break;default:K=3}var Y=S;S=K;try{return ne()}finally{S=Y}},n.unstable_scheduleCallback=function(K,ne,Y){var C=n.unstable_now();switch(typeof Y=="object"&&Y!==null?(Y=Y.delay,Y=typeof Y=="number"&&0<Y?C+Y:C):Y=C,K){case 1:var j=-1;break;case 2:j=250;break;case 5:j=1073741823;break;case 4:j=1e4;break;default:j=5e3}return j=Y+j,K={id:g++,callback:ne,priorityLevel:K,startTime:Y,expirationTime:j,sortIndex:-1},Y>C?(K.sortIndex=Y,e(m,K),t(p)===null&&K===t(m)&&(A?(B(ve),ve=-1):A=!0,ze(G,Y-C))):(K.sortIndex=j,e(p,K),k||E||(k=!0,Ne(te))),K},n.unstable_shouldYield=mt,n.unstable_wrapCallback=function(K){var ne=S;return function(){var Y=S;S=ne;try{return K.apply(this,arguments)}finally{S=Y}}}}(sh)),sh}var cg;function $1(){return cg||(cg=1,ih.exports=z1()),ih.exports}/**
|
|
29
|
+
* @license React
|
|
30
|
+
* react-dom.production.min.js
|
|
31
|
+
*
|
|
32
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
33
|
+
*
|
|
34
|
+
* This source code is licensed under the MIT license found in the
|
|
35
|
+
* LICENSE file in the root directory of this source tree.
|
|
36
|
+
*/var dg;function V1(){if(dg)return Cn;dg=1;var n=Gh(),e=$1();function t(r){for(var i="https://reactjs.org/docs/error-decoder.html?invariant="+r,o=1;o<arguments.length;o++)i+="&args[]="+encodeURIComponent(arguments[o]);return"Minified React error #"+r+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=new Set,a={};function u(r,i){d(r,i),d(r+"Capture",i)}function d(r,i){for(a[r]=i,r=0;r<i.length;r++)s.add(i[r])}var f=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),p=Object.prototype.hasOwnProperty,m=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,g={},v={};function S(r){return p.call(v,r)?!0:p.call(g,r)?!1:m.test(r)?v[r]=!0:(g[r]=!0,!1)}function E(r,i,o,l){if(o!==null&&o.type===0)return!1;switch(typeof i){case"function":case"symbol":return!0;case"boolean":return l?!1:o!==null?!o.acceptsBooleans:(r=r.toLowerCase().slice(0,5),r!=="data-"&&r!=="aria-");default:return!1}}function k(r,i,o,l){if(i===null||typeof i>"u"||E(r,i,o,l))return!0;if(l)return!1;if(o!==null)switch(o.type){case 3:return!i;case 4:return i===!1;case 5:return isNaN(i);case 6:return isNaN(i)||1>i}return!1}function A(r,i,o,l,c,h,y){this.acceptsBooleans=i===2||i===3||i===4,this.attributeName=l,this.attributeNamespace=c,this.mustUseProperty=o,this.propertyName=r,this.type=i,this.sanitizeURL=h,this.removeEmptyString=y}var T={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(r){T[r]=new A(r,0,!1,r,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(r){var i=r[0];T[i]=new A(i,1,!1,r[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(r){T[r]=new A(r,2,!1,r.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(r){T[r]=new A(r,2,!1,r,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(r){T[r]=new A(r,3,!1,r.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(r){T[r]=new A(r,3,!0,r,null,!1,!1)}),["capture","download"].forEach(function(r){T[r]=new A(r,4,!1,r,null,!1,!1)}),["cols","rows","size","span"].forEach(function(r){T[r]=new A(r,6,!1,r,null,!1,!1)}),["rowSpan","start"].forEach(function(r){T[r]=new A(r,5,!1,r.toLowerCase(),null,!1,!1)});var B=/[\-:]([a-z])/g;function Z(r){return r[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(r){var i=r.replace(B,Z);T[i]=new A(i,1,!1,r,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(r){var i=r.replace(B,Z);T[i]=new A(i,1,!1,r,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(r){var i=r.replace(B,Z);T[i]=new A(i,1,!1,r,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(r){T[r]=new A(r,1,!1,r.toLowerCase(),null,!1,!1)}),T.xlinkHref=new A("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(r){T[r]=new A(r,1,!1,r.toLowerCase(),null,!0,!0)});function V(r,i,o,l){var c=T.hasOwnProperty(i)?T[i]:null;(c!==null?c.type!==0:l||!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(k(i,o,c,l)&&(o=null),l||c===null?S(i)&&(o===null?r.removeAttribute(i):r.setAttribute(i,""+o)):c.mustUseProperty?r[c.propertyName]=o===null?c.type===3?!1:"":o:(i=c.attributeName,l=c.attributeNamespace,o===null?r.removeAttribute(i):(c=c.type,o=c===3||c===4&&o===!0?"":""+o,l?r.setAttributeNS(l,i,o):r.setAttribute(i,o))))}var G=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,te=Symbol.for("react.element"),M=Symbol.for("react.portal"),Le=Symbol.for("react.fragment"),ve=Symbol.for("react.strict_mode"),re=Symbol.for("react.profiler"),Fe=Symbol.for("react.provider"),mt=Symbol.for("react.context"),bt=Symbol.for("react.forward_ref"),yt=Symbol.for("react.suspense"),je=Symbol.for("react.suspense_list"),Ze=Symbol.for("react.memo"),Ne=Symbol.for("react.lazy"),ze=Symbol.for("react.offscreen"),K=Symbol.iterator;function ne(r){return r===null||typeof r!="object"?null:(r=K&&r[K]||r["@@iterator"],typeof r=="function"?r:null)}var Y=Object.assign,C;function j(r){if(C===void 0)try{throw Error()}catch(o){var i=o.stack.trim().match(/\n( *(at )?)/);C=i&&i[1]||""}return`
|
|
37
|
+
`+C+r}var he=!1;function Ae(r,i){if(!r||he)return"";he=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(i)if(i=function(){throw Error()},Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(P){var l=P}Reflect.construct(r,[],i)}else{try{i.call()}catch(P){l=P}r.call(i.prototype)}else{try{throw Error()}catch(P){l=P}r()}}catch(P){if(P&&l&&typeof P.stack=="string"){for(var c=P.stack.split(`
|
|
38
|
+
`),h=l.stack.split(`
|
|
39
|
+
`),y=c.length-1,w=h.length-1;1<=y&&0<=w&&c[y]!==h[w];)w--;for(;1<=y&&0<=w;y--,w--)if(c[y]!==h[w]){if(y!==1||w!==1)do if(y--,w--,0>w||c[y]!==h[w]){var I=`
|
|
40
|
+
`+c[y].replace(" at new "," at ");return r.displayName&&I.includes("<anonymous>")&&(I=I.replace("<anonymous>",r.displayName)),I}while(1<=y&&0<=w);break}}}finally{he=!1,Error.prepareStackTrace=o}return(r=r?r.displayName||r.name:"")?j(r):""}function We(r){switch(r.tag){case 5:return j(r.type);case 16:return j("Lazy");case 13:return j("Suspense");case 19:return j("SuspenseList");case 0:case 2:case 15:return r=Ae(r.type,!1),r;case 11:return r=Ae(r.type.render,!1),r;case 1:return r=Ae(r.type,!0),r;default:return""}}function Be(r){if(r==null)return null;if(typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case Le:return"Fragment";case M:return"Portal";case re:return"Profiler";case ve:return"StrictMode";case yt:return"Suspense";case je:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case mt:return(r.displayName||"Context")+".Consumer";case Fe:return(r._context.displayName||"Context")+".Provider";case bt:var i=r.render;return r=r.displayName,r||(r=i.displayName||i.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case Ze:return i=r.displayName||null,i!==null?i:Be(r.type)||"Memo";case Ne:i=r._payload,r=r._init;try{return Be(r(i))}catch{}}return null}function ct(r){var i=r.type;switch(r.tag){case 24:return"Cache";case 9:return(i.displayName||"Context")+".Consumer";case 10:return(i._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return r=i.render,r=r.displayName||r.name||"",i.displayName||(r!==""?"ForwardRef("+r+")":"ForwardRef");case 7:return"Fragment";case 5:return i;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Be(i);case 8:return i===ve?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i}return null}function et(r){switch(typeof r){case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function vt(r){var i=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function tt(r){var i=vt(r)?"checked":"value",o=Object.getOwnPropertyDescriptor(r.constructor.prototype,i),l=""+r[i];if(!r.hasOwnProperty(i)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var c=o.get,h=o.set;return Object.defineProperty(r,i,{configurable:!0,get:function(){return c.call(this)},set:function(y){l=""+y,h.call(this,y)}}),Object.defineProperty(r,i,{enumerable:o.enumerable}),{getValue:function(){return l},setValue:function(y){l=""+y},stopTracking:function(){r._valueTracker=null,delete r[i]}}}}function ar(r){r._valueTracker||(r._valueTracker=tt(r))}function Ea(r){if(!r)return!1;var i=r._valueTracker;if(!i)return!0;var o=i.getValue(),l="";return r&&(l=vt(r)?r.checked?"true":"false":r.value),r=l,r!==o?(i.setValue(r),!0):!1}function oo(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}function lr(r,i){var o=i.checked;return Y({},i,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:o??r._wrapperState.initialChecked})}function Yl(r,i){var o=i.defaultValue==null?"":i.defaultValue,l=i.checked!=null?i.checked:i.defaultChecked;o=et(i.value!=null?i.value:o),r._wrapperState={initialChecked:l,initialValue:o,controlled:i.type==="checkbox"||i.type==="radio"?i.checked!=null:i.value!=null}}function Gl(r,i){i=i.checked,i!=null&&V(r,"checked",i,!1)}function ao(r,i){Gl(r,i);var o=et(i.value),l=i.type;if(o!=null)l==="number"?(o===0&&r.value===""||r.value!=o)&&(r.value=""+o):r.value!==""+o&&(r.value=""+o);else if(l==="submit"||l==="reset"){r.removeAttribute("value");return}i.hasOwnProperty("value")?xa(r,i.type,o):i.hasOwnProperty("defaultValue")&&xa(r,i.type,et(i.defaultValue)),i.checked==null&&i.defaultChecked!=null&&(r.defaultChecked=!!i.defaultChecked)}function Jl(r,i,o){if(i.hasOwnProperty("value")||i.hasOwnProperty("defaultValue")){var l=i.type;if(!(l!=="submit"&&l!=="reset"||i.value!==void 0&&i.value!==null))return;i=""+r._wrapperState.initialValue,o||i===r.value||(r.value=i),r.defaultValue=i}o=r.name,o!==""&&(r.name=""),r.defaultChecked=!!r._wrapperState.initialChecked,o!==""&&(r.name=o)}function xa(r,i,o){(i!=="number"||oo(r.ownerDocument)!==r)&&(o==null?r.defaultValue=""+r._wrapperState.initialValue:r.defaultValue!==""+o&&(r.defaultValue=""+o))}var ws=Array.isArray;function Ei(r,i,o,l){if(r=r.options,i){i={};for(var c=0;c<o.length;c++)i["$"+o[c]]=!0;for(o=0;o<r.length;o++)c=i.hasOwnProperty("$"+r[o].value),r[o].selected!==c&&(r[o].selected=c),c&&l&&(r[o].defaultSelected=!0)}else{for(o=""+et(o),i=null,c=0;c<r.length;c++){if(r[c].value===o){r[c].selected=!0,l&&(r[c].defaultSelected=!0);return}i!==null||r[c].disabled||(i=r[c])}i!==null&&(i.selected=!0)}}function ur(r,i){if(i.dangerouslySetInnerHTML!=null)throw Error(t(91));return Y({},i,{value:void 0,defaultValue:void 0,children:""+r._wrapperState.initialValue})}function xi(r,i){var o=i.value;if(o==null){if(o=i.children,i=i.defaultValue,o!=null){if(i!=null)throw Error(t(92));if(ws(o)){if(1<o.length)throw Error(t(93));o=o[0]}i=o}i==null&&(i=""),o=i}r._wrapperState={initialValue:et(o)}}function Da(r,i){var o=et(i.value),l=et(i.defaultValue);o!=null&&(o=""+o,o!==r.value&&(r.value=o),i.defaultValue==null&&r.defaultValue!==o&&(r.defaultValue=o)),l!=null&&(r.defaultValue=""+l)}function lo(r){var i=r.textContent;i===r._wrapperState.initialValue&&i!==""&&i!==null&&(r.value=i)}function cr(r){switch(r){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Nn(r,i){return r==null||r==="http://www.w3.org/1999/xhtml"?cr(i):r==="http://www.w3.org/2000/svg"&&i==="foreignObject"?"http://www.w3.org/1999/xhtml":r}var Ss,uo=function(r){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(i,o,l,c){MSApp.execUnsafeLocalFunction(function(){return r(i,o,l,c)})}:r}(function(r,i){if(r.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in r)r.innerHTML=i;else{for(Ss=Ss||document.createElement("div"),Ss.innerHTML="<svg>"+i.valueOf().toString()+"</svg>",i=Ss.firstChild;r.firstChild;)r.removeChild(r.firstChild);for(;i.firstChild;)r.appendChild(i.firstChild)}});function _s(r,i){if(i){var o=r.firstChild;if(o&&o===r.lastChild&&o.nodeType===3){o.nodeValue=i;return}}r.textContent=i}var Sn={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Xl=["Webkit","ms","Moz","O"];Object.keys(Sn).forEach(function(r){Xl.forEach(function(i){i=i+r.charAt(0).toUpperCase()+r.substring(1),Sn[i]=Sn[r]})});function Ca(r,i,o){return i==null||typeof i=="boolean"||i===""?"":o||typeof i!="number"||i===0||Sn.hasOwnProperty(r)&&Sn[r]?(""+i).trim():i+"px"}function Oa(r,i){r=r.style;for(var o in i)if(i.hasOwnProperty(o)){var l=o.indexOf("--")===0,c=Ca(o,i[o],l);o==="float"&&(o="cssFloat"),l?r.setProperty(o,c):r[o]=c}}var gd=Y({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function co(r,i){if(i){if(gd[r]&&(i.children!=null||i.dangerouslySetInnerHTML!=null))throw Error(t(137,r));if(i.dangerouslySetInnerHTML!=null){if(i.children!=null)throw Error(t(60));if(typeof i.dangerouslySetInnerHTML!="object"||!("__html"in i.dangerouslySetInnerHTML))throw Error(t(61))}if(i.style!=null&&typeof i.style!="object")throw Error(t(62))}}function Di(r,i){if(r.indexOf("-")===-1)return typeof i.is=="string";switch(r){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var fo=null;function bs(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var Fa=null,Jr=null,Ci=null;function Ra(r){if(r=Ga(r)){if(typeof Fa!="function")throw Error(t(280));var i=r.stateNode;i&&(i=wu(i),Fa(r.stateNode,r.type,i))}}function Is(r){Jr?Ci?Ci.push(r):Ci=[r]:Jr=r}function Es(){if(Jr){var r=Jr,i=Ci;if(Ci=Jr=null,Ra(r),i)for(r=0;r<i.length;r++)Ra(i[r])}}function Zl(r,i){return r(i)}function eu(){}var _=!1;function F(r,i,o){if(_)return r(i,o);_=!0;try{return Zl(r,i,o)}finally{_=!1,(Jr!==null||Ci!==null)&&(eu(),Es())}}function N(r,i){var o=r.stateNode;if(o===null)return null;var l=wu(o);if(l===null)return null;o=l[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(r=r.type,l=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!l;break e;default:r=!1}if(r)return null;if(o&&typeof o!="function")throw Error(t(231,i,typeof o));return o}var H=!1;if(f)try{var q={};Object.defineProperty(q,"passive",{get:function(){H=!0}}),window.addEventListener("test",q,q),window.removeEventListener("test",q,q)}catch{H=!1}function ce(r,i,o,l,c,h,y,w,I){var P=Array.prototype.slice.call(arguments,3);try{i.apply(o,P)}catch($){this.onError($)}}var ae=!1,ie=null,ue=!1,me=null,we={onError:function(r){ae=!0,ie=r}};function de(r,i,o,l,c,h,y,w,I){ae=!1,ie=null,ce.apply(we,arguments)}function Pe(r,i,o,l,c,h,y,w,I){if(de.apply(this,arguments),ae){if(ae){var P=ie;ae=!1,ie=null}else throw Error(t(198));ue||(ue=!0,me=P)}}function Je(r){var i=r,o=r;if(r.alternate)for(;i.return;)i=i.return;else{r=i;do i=r,(i.flags&4098)!==0&&(o=i.return),r=i.return;while(r)}return i.tag===3?o:null}function zt(r){if(r.tag===13){var i=r.memoizedState;if(i===null&&(r=r.alternate,r!==null&&(i=r.memoizedState)),i!==null)return i.dehydrated}return null}function Kt(r){if(Je(r)!==r)throw Error(t(188))}function Ct(r){var i=r.alternate;if(!i){if(i=Je(r),i===null)throw Error(t(188));return i!==r?null:r}for(var o=r,l=i;;){var c=o.return;if(c===null)break;var h=c.alternate;if(h===null){if(l=c.return,l!==null){o=l;continue}break}if(c.child===h.child){for(h=c.child;h;){if(h===o)return Kt(c),r;if(h===l)return Kt(c),i;h=h.sibling}throw Error(t(188))}if(o.return!==l.return)o=c,l=h;else{for(var y=!1,w=c.child;w;){if(w===o){y=!0,o=c,l=h;break}if(w===l){y=!0,l=c,o=h;break}w=w.sibling}if(!y){for(w=h.child;w;){if(w===o){y=!0,o=h,l=c;break}if(w===l){y=!0,l=h,o=c;break}w=w.sibling}if(!y)throw Error(t(189))}}if(o.alternate!==l)throw Error(t(190))}if(o.tag!==3)throw Error(t(188));return o.stateNode.current===o?r:i}function dt(r){return r=Ct(r),r!==null?Or(r):null}function Or(r){if(r.tag===5||r.tag===6)return r;for(r=r.child;r!==null;){var i=Or(r);if(i!==null)return i;r=r.sibling}return null}var Oi=e.unstable_scheduleCallback,dr=e.unstable_cancelCallback,Vn=e.unstable_shouldYield,Ma=e.unstable_requestPaint,gt=e.unstable_now,Xr=e.unstable_getCurrentPriorityLevel,Fi=e.unstable_ImmediatePriority,xs=e.unstable_UserBlockingPriority,Ye=e.unstable_NormalPriority,qt=e.unstable_LowPriority,Ds=e.unstable_IdlePriority,Fr=null,nt=null;function ho(r){if(nt&&typeof nt.onCommitFiberRoot=="function")try{nt.onCommitFiberRoot(Fr,r,void 0,(r.current.flags&128)===128)}catch{}}var _n=Math.clz32?Math.clz32:qS,vd=Math.log,KS=Math.LN2;function qS(r){return r>>>=0,r===0?32:31-(vd(r)/KS|0)|0}var tu=64,nu=4194304;function La(r){switch(r&-r){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return r&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return r&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return r}}function ru(r,i){var o=r.pendingLanes;if(o===0)return 0;var l=0,c=r.suspendedLanes,h=r.pingedLanes,y=o&268435455;if(y!==0){var w=y&~c;w!==0?l=La(w):(h&=y,h!==0&&(l=La(h)))}else y=o&~c,y!==0?l=La(y):h!==0&&(l=La(h));if(l===0)return 0;if(i!==0&&i!==l&&(i&c)===0&&(c=l&-l,h=i&-i,c>=h||c===16&&(h&4194240)!==0))return i;if((l&4)!==0&&(l|=o&16),i=r.entangledLanes,i!==0)for(r=r.entanglements,i&=l;0<i;)o=31-_n(i),c=1<<o,l|=r[o],i&=~c;return l}function YS(r,i){switch(r){case 1:case 2:case 4:return i+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function GS(r,i){for(var o=r.suspendedLanes,l=r.pingedLanes,c=r.expirationTimes,h=r.pendingLanes;0<h;){var y=31-_n(h),w=1<<y,I=c[y];I===-1?((w&o)===0||(w&l)!==0)&&(c[y]=YS(w,i)):I<=i&&(r.expiredLanes|=w),h&=~w}}function wd(r){return r=r.pendingLanes&-1073741825,r!==0?r:r&1073741824?1073741824:0}function Pp(){var r=tu;return tu<<=1,(tu&4194240)===0&&(tu=64),r}function Sd(r){for(var i=[],o=0;31>o;o++)i.push(r);return i}function Aa(r,i,o){r.pendingLanes|=i,i!==536870912&&(r.suspendedLanes=0,r.pingedLanes=0),r=r.eventTimes,i=31-_n(i),r[i]=o}function JS(r,i){var o=r.pendingLanes&~i;r.pendingLanes=i,r.suspendedLanes=0,r.pingedLanes=0,r.expiredLanes&=i,r.mutableReadLanes&=i,r.entangledLanes&=i,i=r.entanglements;var l=r.eventTimes;for(r=r.expirationTimes;0<o;){var c=31-_n(o),h=1<<c;i[c]=0,l[c]=-1,r[c]=-1,o&=~h}}function _d(r,i){var o=r.entangledLanes|=i;for(r=r.entanglements;o;){var l=31-_n(o),c=1<<l;c&i|r[l]&i&&(r[l]|=i),o&=~c}}var at=0;function Np(r){return r&=-r,1<r?4<r?(r&268435455)!==0?16:536870912:4:1}var Tp,bd,Bp,Up,jp,Id=!1,iu=[],Ri=null,Mi=null,Li=null,ka=new Map,Pa=new Map,Ai=[],XS="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function zp(r,i){switch(r){case"focusin":case"focusout":Ri=null;break;case"dragenter":case"dragleave":Mi=null;break;case"mouseover":case"mouseout":Li=null;break;case"pointerover":case"pointerout":ka.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pa.delete(i.pointerId)}}function Na(r,i,o,l,c,h){return r===null||r.nativeEvent!==h?(r={blockedOn:i,domEventName:o,eventSystemFlags:l,nativeEvent:h,targetContainers:[c]},i!==null&&(i=Ga(i),i!==null&&bd(i)),r):(r.eventSystemFlags|=l,i=r.targetContainers,c!==null&&i.indexOf(c)===-1&&i.push(c),r)}function ZS(r,i,o,l,c){switch(i){case"focusin":return Ri=Na(Ri,r,i,o,l,c),!0;case"dragenter":return Mi=Na(Mi,r,i,o,l,c),!0;case"mouseover":return Li=Na(Li,r,i,o,l,c),!0;case"pointerover":var h=c.pointerId;return ka.set(h,Na(ka.get(h)||null,r,i,o,l,c)),!0;case"gotpointercapture":return h=c.pointerId,Pa.set(h,Na(Pa.get(h)||null,r,i,o,l,c)),!0}return!1}function $p(r){var i=Cs(r.target);if(i!==null){var o=Je(i);if(o!==null){if(i=o.tag,i===13){if(i=zt(o),i!==null){r.blockedOn=i,jp(r.priority,function(){Bp(o)});return}}else if(i===3&&o.stateNode.current.memoizedState.isDehydrated){r.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}r.blockedOn=null}function su(r){if(r.blockedOn!==null)return!1;for(var i=r.targetContainers;0<i.length;){var o=xd(r.domEventName,r.eventSystemFlags,i[0],r.nativeEvent);if(o===null){o=r.nativeEvent;var l=new o.constructor(o.type,o);fo=l,o.target.dispatchEvent(l),fo=null}else return i=Ga(o),i!==null&&bd(i),r.blockedOn=o,!1;i.shift()}return!0}function Vp(r,i,o){su(r)&&o.delete(i)}function e_(){Id=!1,Ri!==null&&su(Ri)&&(Ri=null),Mi!==null&&su(Mi)&&(Mi=null),Li!==null&&su(Li)&&(Li=null),ka.forEach(Vp),Pa.forEach(Vp)}function Ta(r,i){r.blockedOn===i&&(r.blockedOn=null,Id||(Id=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,e_)))}function Ba(r){function i(c){return Ta(c,r)}if(0<iu.length){Ta(iu[0],r);for(var o=1;o<iu.length;o++){var l=iu[o];l.blockedOn===r&&(l.blockedOn=null)}}for(Ri!==null&&Ta(Ri,r),Mi!==null&&Ta(Mi,r),Li!==null&&Ta(Li,r),ka.forEach(i),Pa.forEach(i),o=0;o<Ai.length;o++)l=Ai[o],l.blockedOn===r&&(l.blockedOn=null);for(;0<Ai.length&&(o=Ai[0],o.blockedOn===null);)$p(o),o.blockedOn===null&&Ai.shift()}var po=G.ReactCurrentBatchConfig,ou=!0;function t_(r,i,o,l){var c=at,h=po.transition;po.transition=null;try{at=1,Ed(r,i,o,l)}finally{at=c,po.transition=h}}function n_(r,i,o,l){var c=at,h=po.transition;po.transition=null;try{at=4,Ed(r,i,o,l)}finally{at=c,po.transition=h}}function Ed(r,i,o,l){if(ou){var c=xd(r,i,o,l);if(c===null)$d(r,i,l,au,o),zp(r,l);else if(ZS(c,r,i,o,l))l.stopPropagation();else if(zp(r,l),i&4&&-1<XS.indexOf(r)){for(;c!==null;){var h=Ga(c);if(h!==null&&Tp(h),h=xd(r,i,o,l),h===null&&$d(r,i,l,au,o),h===c)break;c=h}c!==null&&l.stopPropagation()}else $d(r,i,l,null,o)}}var au=null;function xd(r,i,o,l){if(au=null,r=bs(l),r=Cs(r),r!==null)if(i=Je(r),i===null)r=null;else if(o=i.tag,o===13){if(r=zt(i),r!==null)return r;r=null}else if(o===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;r=null}else i!==r&&(r=null);return au=r,null}function Hp(r){switch(r){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Xr()){case Fi:return 1;case xs:return 4;case Ye:case qt:return 16;case Ds:return 536870912;default:return 16}default:return 16}}var ki=null,Dd=null,lu=null;function Wp(){if(lu)return lu;var r,i=Dd,o=i.length,l,c="value"in ki?ki.value:ki.textContent,h=c.length;for(r=0;r<o&&i[r]===c[r];r++);var y=o-r;for(l=1;l<=y&&i[o-l]===c[h-l];l++);return lu=c.slice(r,1<l?1-l:void 0)}function uu(r){var i=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&i===13&&(r=13)):r=i,r===10&&(r=13),32<=r||r===13?r:0}function cu(){return!0}function Qp(){return!1}function Tn(r){function i(o,l,c,h,y){this._reactName=o,this._targetInst=c,this.type=l,this.nativeEvent=h,this.target=y,this.currentTarget=null;for(var w in r)r.hasOwnProperty(w)&&(o=r[w],this[w]=o?o(h):h[w]);return this.isDefaultPrevented=(h.defaultPrevented!=null?h.defaultPrevented:h.returnValue===!1)?cu:Qp,this.isPropagationStopped=Qp,this}return Y(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=cu)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=cu)},persist:function(){},isPersistent:cu}),i}var mo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Cd=Tn(mo),Ua=Y({},mo,{view:0,detail:0}),r_=Tn(Ua),Od,Fd,ja,du=Y({},Ua,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Md,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==ja&&(ja&&r.type==="mousemove"?(Od=r.screenX-ja.screenX,Fd=r.screenY-ja.screenY):Fd=Od=0,ja=r),Od)},movementY:function(r){return"movementY"in r?r.movementY:Fd}}),Kp=Tn(du),i_=Y({},du,{dataTransfer:0}),s_=Tn(i_),o_=Y({},Ua,{relatedTarget:0}),Rd=Tn(o_),a_=Y({},mo,{animationName:0,elapsedTime:0,pseudoElement:0}),l_=Tn(a_),u_=Y({},mo,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),c_=Tn(u_),d_=Y({},mo,{data:0}),qp=Tn(d_),f_={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},h_={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},p_={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function m_(r){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(r):(r=p_[r])?!!i[r]:!1}function Md(){return m_}var y_=Y({},Ua,{key:function(r){if(r.key){var i=f_[r.key]||r.key;if(i!=="Unidentified")return i}return r.type==="keypress"?(r=uu(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?h_[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Md,charCode:function(r){return r.type==="keypress"?uu(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?uu(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),g_=Tn(y_),v_=Y({},du,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Yp=Tn(v_),w_=Y({},Ua,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Md}),S_=Tn(w_),__=Y({},mo,{propertyName:0,elapsedTime:0,pseudoElement:0}),b_=Tn(__),I_=Y({},du,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),E_=Tn(I_),x_=[9,13,27,32],Ld=f&&"CompositionEvent"in window,za=null;f&&"documentMode"in document&&(za=document.documentMode);var D_=f&&"TextEvent"in window&&!za,Gp=f&&(!Ld||za&&8<za&&11>=za),Jp=" ",Xp=!1;function Zp(r,i){switch(r){case"keyup":return x_.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function em(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var yo=!1;function C_(r,i){switch(r){case"compositionend":return em(i);case"keypress":return i.which!==32?null:(Xp=!0,Jp);case"textInput":return r=i.data,r===Jp&&Xp?null:r;default:return null}}function O_(r,i){if(yo)return r==="compositionend"||!Ld&&Zp(r,i)?(r=Wp(),lu=Dd=ki=null,yo=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return Gp&&i.locale!=="ko"?null:i.data;default:return null}}var F_={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function tm(r){var i=r&&r.nodeName&&r.nodeName.toLowerCase();return i==="input"?!!F_[r.type]:i==="textarea"}function nm(r,i,o,l){Is(l),i=yu(i,"onChange"),0<i.length&&(o=new Cd("onChange","change",null,o,l),r.push({event:o,listeners:i}))}var $a=null,Va=null;function R_(r){Sm(r,0)}function fu(r){var i=_o(r);if(Ea(i))return r}function M_(r,i){if(r==="change")return i}var rm=!1;if(f){var Ad;if(f){var kd="oninput"in document;if(!kd){var im=document.createElement("div");im.setAttribute("oninput","return;"),kd=typeof im.oninput=="function"}Ad=kd}else Ad=!1;rm=Ad&&(!document.documentMode||9<document.documentMode)}function sm(){$a&&($a.detachEvent("onpropertychange",om),Va=$a=null)}function om(r){if(r.propertyName==="value"&&fu(Va)){var i=[];nm(i,Va,r,bs(r)),F(R_,i)}}function L_(r,i,o){r==="focusin"?(sm(),$a=i,Va=o,$a.attachEvent("onpropertychange",om)):r==="focusout"&&sm()}function A_(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return fu(Va)}function k_(r,i){if(r==="click")return fu(i)}function P_(r,i){if(r==="input"||r==="change")return fu(i)}function N_(r,i){return r===i&&(r!==0||1/r===1/i)||r!==r&&i!==i}var fr=typeof Object.is=="function"?Object.is:N_;function Ha(r,i){if(fr(r,i))return!0;if(typeof r!="object"||r===null||typeof i!="object"||i===null)return!1;var o=Object.keys(r),l=Object.keys(i);if(o.length!==l.length)return!1;for(l=0;l<o.length;l++){var c=o[l];if(!p.call(i,c)||!fr(r[c],i[c]))return!1}return!0}function am(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function lm(r,i){var o=am(r);r=0;for(var l;o;){if(o.nodeType===3){if(l=r+o.textContent.length,r<=i&&l>=i)return{node:o,offset:i-r};r=l}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=am(o)}}function um(r,i){return r&&i?r===i?!0:r&&r.nodeType===3?!1:i&&i.nodeType===3?um(r,i.parentNode):"contains"in r?r.contains(i):r.compareDocumentPosition?!!(r.compareDocumentPosition(i)&16):!1:!1}function cm(){for(var r=window,i=oo();i instanceof r.HTMLIFrameElement;){try{var o=typeof i.contentWindow.location.href=="string"}catch{o=!1}if(o)r=i.contentWindow;else break;i=oo(r.document)}return i}function Pd(r){var i=r&&r.nodeName&&r.nodeName.toLowerCase();return i&&(i==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||i==="textarea"||r.contentEditable==="true")}function T_(r){var i=cm(),o=r.focusedElem,l=r.selectionRange;if(i!==o&&o&&o.ownerDocument&&um(o.ownerDocument.documentElement,o)){if(l!==null&&Pd(o)){if(i=l.start,r=l.end,r===void 0&&(r=i),"selectionStart"in o)o.selectionStart=i,o.selectionEnd=Math.min(r,o.value.length);else if(r=(i=o.ownerDocument||document)&&i.defaultView||window,r.getSelection){r=r.getSelection();var c=o.textContent.length,h=Math.min(l.start,c);l=l.end===void 0?h:Math.min(l.end,c),!r.extend&&h>l&&(c=l,l=h,h=c),c=lm(o,h);var y=lm(o,l);c&&y&&(r.rangeCount!==1||r.anchorNode!==c.node||r.anchorOffset!==c.offset||r.focusNode!==y.node||r.focusOffset!==y.offset)&&(i=i.createRange(),i.setStart(c.node,c.offset),r.removeAllRanges(),h>l?(r.addRange(i),r.extend(y.node,y.offset)):(i.setEnd(y.node,y.offset),r.addRange(i)))}}for(i=[],r=o;r=r.parentNode;)r.nodeType===1&&i.push({element:r,left:r.scrollLeft,top:r.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<i.length;o++)r=i[o],r.element.scrollLeft=r.left,r.element.scrollTop=r.top}}var B_=f&&"documentMode"in document&&11>=document.documentMode,go=null,Nd=null,Wa=null,Td=!1;function dm(r,i,o){var l=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;Td||go==null||go!==oo(l)||(l=go,"selectionStart"in l&&Pd(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Wa&&Ha(Wa,l)||(Wa=l,l=yu(Nd,"onSelect"),0<l.length&&(i=new Cd("onSelect","select",null,i,o),r.push({event:i,listeners:l}),i.target=go)))}function hu(r,i){var o={};return o[r.toLowerCase()]=i.toLowerCase(),o["Webkit"+r]="webkit"+i,o["Moz"+r]="moz"+i,o}var vo={animationend:hu("Animation","AnimationEnd"),animationiteration:hu("Animation","AnimationIteration"),animationstart:hu("Animation","AnimationStart"),transitionend:hu("Transition","TransitionEnd")},Bd={},fm={};f&&(fm=document.createElement("div").style,"AnimationEvent"in window||(delete vo.animationend.animation,delete vo.animationiteration.animation,delete vo.animationstart.animation),"TransitionEvent"in window||delete vo.transitionend.transition);function pu(r){if(Bd[r])return Bd[r];if(!vo[r])return r;var i=vo[r],o;for(o in i)if(i.hasOwnProperty(o)&&o in fm)return Bd[r]=i[o];return r}var hm=pu("animationend"),pm=pu("animationiteration"),mm=pu("animationstart"),ym=pu("transitionend"),gm=new Map,vm="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Pi(r,i){gm.set(r,i),u(i,[r])}for(var Ud=0;Ud<vm.length;Ud++){var jd=vm[Ud],U_=jd.toLowerCase(),j_=jd[0].toUpperCase()+jd.slice(1);Pi(U_,"on"+j_)}Pi(hm,"onAnimationEnd"),Pi(pm,"onAnimationIteration"),Pi(mm,"onAnimationStart"),Pi("dblclick","onDoubleClick"),Pi("focusin","onFocus"),Pi("focusout","onBlur"),Pi(ym,"onTransitionEnd"),d("onMouseEnter",["mouseout","mouseover"]),d("onMouseLeave",["mouseout","mouseover"]),d("onPointerEnter",["pointerout","pointerover"]),d("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Qa="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),z_=new Set("cancel close invalid load scroll toggle".split(" ").concat(Qa));function wm(r,i,o){var l=r.type||"unknown-event";r.currentTarget=o,Pe(l,i,void 0,r),r.currentTarget=null}function Sm(r,i){i=(i&4)!==0;for(var o=0;o<r.length;o++){var l=r[o],c=l.event;l=l.listeners;e:{var h=void 0;if(i)for(var y=l.length-1;0<=y;y--){var w=l[y],I=w.instance,P=w.currentTarget;if(w=w.listener,I!==h&&c.isPropagationStopped())break e;wm(c,w,P),h=I}else for(y=0;y<l.length;y++){if(w=l[y],I=w.instance,P=w.currentTarget,w=w.listener,I!==h&&c.isPropagationStopped())break e;wm(c,w,P),h=I}}}if(ue)throw r=me,ue=!1,me=null,r}function It(r,i){var o=i[qd];o===void 0&&(o=i[qd]=new Set);var l=r+"__bubble";o.has(l)||(_m(i,r,2,!1),o.add(l))}function zd(r,i,o){var l=0;i&&(l|=4),_m(o,r,l,i)}var mu="_reactListening"+Math.random().toString(36).slice(2);function Ka(r){if(!r[mu]){r[mu]=!0,s.forEach(function(o){o!=="selectionchange"&&(z_.has(o)||zd(o,!1,r),zd(o,!0,r))});var i=r.nodeType===9?r:r.ownerDocument;i===null||i[mu]||(i[mu]=!0,zd("selectionchange",!1,i))}}function _m(r,i,o,l){switch(Hp(i)){case 1:var c=t_;break;case 4:c=n_;break;default:c=Ed}o=c.bind(null,i,o,r),c=void 0,!H||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(c=!0),l?c!==void 0?r.addEventListener(i,o,{capture:!0,passive:c}):r.addEventListener(i,o,!0):c!==void 0?r.addEventListener(i,o,{passive:c}):r.addEventListener(i,o,!1)}function $d(r,i,o,l,c){var h=l;if((i&1)===0&&(i&2)===0&&l!==null)e:for(;;){if(l===null)return;var y=l.tag;if(y===3||y===4){var w=l.stateNode.containerInfo;if(w===c||w.nodeType===8&&w.parentNode===c)break;if(y===4)for(y=l.return;y!==null;){var I=y.tag;if((I===3||I===4)&&(I=y.stateNode.containerInfo,I===c||I.nodeType===8&&I.parentNode===c))return;y=y.return}for(;w!==null;){if(y=Cs(w),y===null)return;if(I=y.tag,I===5||I===6){l=h=y;continue e}w=w.parentNode}}l=l.return}F(function(){var P=h,$=bs(o),W=[];e:{var z=gm.get(r);if(z!==void 0){var J=Cd,se=r;switch(r){case"keypress":if(uu(o)===0)break e;case"keydown":case"keyup":J=g_;break;case"focusin":se="focus",J=Rd;break;case"focusout":se="blur",J=Rd;break;case"beforeblur":case"afterblur":J=Rd;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":J=Kp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":J=s_;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":J=S_;break;case hm:case pm:case mm:J=l_;break;case ym:J=b_;break;case"scroll":J=r_;break;case"wheel":J=E_;break;case"copy":case"cut":case"paste":J=c_;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":J=Yp}var oe=(i&4)!==0,Pt=!oe&&r==="scroll",R=oe?z!==null?z+"Capture":null:z;oe=[];for(var x=P,L;x!==null;){L=x;var Q=L.stateNode;if(L.tag===5&&Q!==null&&(L=Q,R!==null&&(Q=N(x,R),Q!=null&&oe.push(qa(x,Q,L)))),Pt)break;x=x.return}0<oe.length&&(z=new J(z,se,null,o,$),W.push({event:z,listeners:oe}))}}if((i&7)===0){e:{if(z=r==="mouseover"||r==="pointerover",J=r==="mouseout"||r==="pointerout",z&&o!==fo&&(se=o.relatedTarget||o.fromElement)&&(Cs(se)||se[Zr]))break e;if((J||z)&&(z=$.window===$?$:(z=$.ownerDocument)?z.defaultView||z.parentWindow:window,J?(se=o.relatedTarget||o.toElement,J=P,se=se?Cs(se):null,se!==null&&(Pt=Je(se),se!==Pt||se.tag!==5&&se.tag!==6)&&(se=null)):(J=null,se=P),J!==se)){if(oe=Kp,Q="onMouseLeave",R="onMouseEnter",x="mouse",(r==="pointerout"||r==="pointerover")&&(oe=Yp,Q="onPointerLeave",R="onPointerEnter",x="pointer"),Pt=J==null?z:_o(J),L=se==null?z:_o(se),z=new oe(Q,x+"leave",J,o,$),z.target=Pt,z.relatedTarget=L,Q=null,Cs($)===P&&(oe=new oe(R,x+"enter",se,o,$),oe.target=L,oe.relatedTarget=Pt,Q=oe),Pt=Q,J&&se)t:{for(oe=J,R=se,x=0,L=oe;L;L=wo(L))x++;for(L=0,Q=R;Q;Q=wo(Q))L++;for(;0<x-L;)oe=wo(oe),x--;for(;0<L-x;)R=wo(R),L--;for(;x--;){if(oe===R||R!==null&&oe===R.alternate)break t;oe=wo(oe),R=wo(R)}oe=null}else oe=null;J!==null&&bm(W,z,J,oe,!1),se!==null&&Pt!==null&&bm(W,Pt,se,oe,!0)}}e:{if(z=P?_o(P):window,J=z.nodeName&&z.nodeName.toLowerCase(),J==="select"||J==="input"&&z.type==="file")var le=M_;else if(tm(z))if(rm)le=P_;else{le=A_;var ye=L_}else(J=z.nodeName)&&J.toLowerCase()==="input"&&(z.type==="checkbox"||z.type==="radio")&&(le=k_);if(le&&(le=le(r,P))){nm(W,le,o,$);break e}ye&&ye(r,z,P),r==="focusout"&&(ye=z._wrapperState)&&ye.controlled&&z.type==="number"&&xa(z,"number",z.value)}switch(ye=P?_o(P):window,r){case"focusin":(tm(ye)||ye.contentEditable==="true")&&(go=ye,Nd=P,Wa=null);break;case"focusout":Wa=Nd=go=null;break;case"mousedown":Td=!0;break;case"contextmenu":case"mouseup":case"dragend":Td=!1,dm(W,o,$);break;case"selectionchange":if(B_)break;case"keydown":case"keyup":dm(W,o,$)}var ge;if(Ld)e:{switch(r){case"compositionstart":var Re="onCompositionStart";break e;case"compositionend":Re="onCompositionEnd";break e;case"compositionupdate":Re="onCompositionUpdate";break e}Re=void 0}else yo?Zp(r,o)&&(Re="onCompositionEnd"):r==="keydown"&&o.keyCode===229&&(Re="onCompositionStart");Re&&(Gp&&o.locale!=="ko"&&(yo||Re!=="onCompositionStart"?Re==="onCompositionEnd"&&yo&&(ge=Wp()):(ki=$,Dd="value"in ki?ki.value:ki.textContent,yo=!0)),ye=yu(P,Re),0<ye.length&&(Re=new qp(Re,r,null,o,$),W.push({event:Re,listeners:ye}),ge?Re.data=ge:(ge=em(o),ge!==null&&(Re.data=ge)))),(ge=D_?C_(r,o):O_(r,o))&&(P=yu(P,"onBeforeInput"),0<P.length&&($=new qp("onBeforeInput","beforeinput",null,o,$),W.push({event:$,listeners:P}),$.data=ge))}Sm(W,i)})}function qa(r,i,o){return{instance:r,listener:i,currentTarget:o}}function yu(r,i){for(var o=i+"Capture",l=[];r!==null;){var c=r,h=c.stateNode;c.tag===5&&h!==null&&(c=h,h=N(r,o),h!=null&&l.unshift(qa(r,h,c)),h=N(r,i),h!=null&&l.push(qa(r,h,c))),r=r.return}return l}function wo(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5);return r||null}function bm(r,i,o,l,c){for(var h=i._reactName,y=[];o!==null&&o!==l;){var w=o,I=w.alternate,P=w.stateNode;if(I!==null&&I===l)break;w.tag===5&&P!==null&&(w=P,c?(I=N(o,h),I!=null&&y.unshift(qa(o,I,w))):c||(I=N(o,h),I!=null&&y.push(qa(o,I,w)))),o=o.return}y.length!==0&&r.push({event:i,listeners:y})}var $_=/\r\n?/g,V_=/\u0000|\uFFFD/g;function Im(r){return(typeof r=="string"?r:""+r).replace($_,`
|
|
41
|
+
`).replace(V_,"")}function gu(r,i,o){if(i=Im(i),Im(r)!==i&&o)throw Error(t(425))}function vu(){}var Vd=null,Hd=null;function Wd(r,i){return r==="textarea"||r==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var Qd=typeof setTimeout=="function"?setTimeout:void 0,H_=typeof clearTimeout=="function"?clearTimeout:void 0,Em=typeof Promise=="function"?Promise:void 0,W_=typeof queueMicrotask=="function"?queueMicrotask:typeof Em<"u"?function(r){return Em.resolve(null).then(r).catch(Q_)}:Qd;function Q_(r){setTimeout(function(){throw r})}function Kd(r,i){var o=i,l=0;do{var c=o.nextSibling;if(r.removeChild(o),c&&c.nodeType===8)if(o=c.data,o==="/$"){if(l===0){r.removeChild(c),Ba(i);return}l--}else o!=="$"&&o!=="$?"&&o!=="$!"||l++;o=c}while(o);Ba(i)}function Ni(r){for(;r!=null;r=r.nextSibling){var i=r.nodeType;if(i===1||i===3)break;if(i===8){if(i=r.data,i==="$"||i==="$!"||i==="$?")break;if(i==="/$")return null}}return r}function xm(r){r=r.previousSibling;for(var i=0;r;){if(r.nodeType===8){var o=r.data;if(o==="$"||o==="$!"||o==="$?"){if(i===0)return r;i--}else o==="/$"&&i++}r=r.previousSibling}return null}var So=Math.random().toString(36).slice(2),Rr="__reactFiber$"+So,Ya="__reactProps$"+So,Zr="__reactContainer$"+So,qd="__reactEvents$"+So,K_="__reactListeners$"+So,q_="__reactHandles$"+So;function Cs(r){var i=r[Rr];if(i)return i;for(var o=r.parentNode;o;){if(i=o[Zr]||o[Rr]){if(o=i.alternate,i.child!==null||o!==null&&o.child!==null)for(r=xm(r);r!==null;){if(o=r[Rr])return o;r=xm(r)}return i}r=o,o=r.parentNode}return null}function Ga(r){return r=r[Rr]||r[Zr],!r||r.tag!==5&&r.tag!==6&&r.tag!==13&&r.tag!==3?null:r}function _o(r){if(r.tag===5||r.tag===6)return r.stateNode;throw Error(t(33))}function wu(r){return r[Ya]||null}var Yd=[],bo=-1;function Ti(r){return{current:r}}function Et(r){0>bo||(r.current=Yd[bo],Yd[bo]=null,bo--)}function wt(r,i){bo++,Yd[bo]=r.current,r.current=i}var Bi={},tn=Ti(Bi),bn=Ti(!1),Os=Bi;function Io(r,i){var o=r.type.contextTypes;if(!o)return Bi;var l=r.stateNode;if(l&&l.__reactInternalMemoizedUnmaskedChildContext===i)return l.__reactInternalMemoizedMaskedChildContext;var c={},h;for(h in o)c[h]=i[h];return l&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=i,r.__reactInternalMemoizedMaskedChildContext=c),c}function In(r){return r=r.childContextTypes,r!=null}function Su(){Et(bn),Et(tn)}function Dm(r,i,o){if(tn.current!==Bi)throw Error(t(168));wt(tn,i),wt(bn,o)}function Cm(r,i,o){var l=r.stateNode;if(i=i.childContextTypes,typeof l.getChildContext!="function")return o;l=l.getChildContext();for(var c in l)if(!(c in i))throw Error(t(108,ct(r)||"Unknown",c));return Y({},o,l)}function _u(r){return r=(r=r.stateNode)&&r.__reactInternalMemoizedMergedChildContext||Bi,Os=tn.current,wt(tn,r),wt(bn,bn.current),!0}function Om(r,i,o){var l=r.stateNode;if(!l)throw Error(t(169));o?(r=Cm(r,i,Os),l.__reactInternalMemoizedMergedChildContext=r,Et(bn),Et(tn),wt(tn,r)):Et(bn),wt(bn,o)}var ei=null,bu=!1,Gd=!1;function Fm(r){ei===null?ei=[r]:ei.push(r)}function Y_(r){bu=!0,Fm(r)}function Ui(){if(!Gd&&ei!==null){Gd=!0;var r=0,i=at;try{var o=ei;for(at=1;r<o.length;r++){var l=o[r];do l=l(!0);while(l!==null)}ei=null,bu=!1}catch(c){throw ei!==null&&(ei=ei.slice(r+1)),Oi(Fi,Ui),c}finally{at=i,Gd=!1}}return null}var Eo=[],xo=0,Iu=null,Eu=0,Hn=[],Wn=0,Fs=null,ti=1,ni="";function Rs(r,i){Eo[xo++]=Eu,Eo[xo++]=Iu,Iu=r,Eu=i}function Rm(r,i,o){Hn[Wn++]=ti,Hn[Wn++]=ni,Hn[Wn++]=Fs,Fs=r;var l=ti;r=ni;var c=32-_n(l)-1;l&=~(1<<c),o+=1;var h=32-_n(i)+c;if(30<h){var y=c-c%5;h=(l&(1<<y)-1).toString(32),l>>=y,c-=y,ti=1<<32-_n(i)+c|o<<c|l,ni=h+r}else ti=1<<h|o<<c|l,ni=r}function Jd(r){r.return!==null&&(Rs(r,1),Rm(r,1,0))}function Xd(r){for(;r===Iu;)Iu=Eo[--xo],Eo[xo]=null,Eu=Eo[--xo],Eo[xo]=null;for(;r===Fs;)Fs=Hn[--Wn],Hn[Wn]=null,ni=Hn[--Wn],Hn[Wn]=null,ti=Hn[--Wn],Hn[Wn]=null}var Bn=null,Un=null,Ot=!1,hr=null;function Mm(r,i){var o=Yn(5,null,null,0);o.elementType="DELETED",o.stateNode=i,o.return=r,i=r.deletions,i===null?(r.deletions=[o],r.flags|=16):i.push(o)}function Lm(r,i){switch(r.tag){case 5:var o=r.type;return i=i.nodeType!==1||o.toLowerCase()!==i.nodeName.toLowerCase()?null:i,i!==null?(r.stateNode=i,Bn=r,Un=Ni(i.firstChild),!0):!1;case 6:return i=r.pendingProps===""||i.nodeType!==3?null:i,i!==null?(r.stateNode=i,Bn=r,Un=null,!0):!1;case 13:return i=i.nodeType!==8?null:i,i!==null?(o=Fs!==null?{id:ti,overflow:ni}:null,r.memoizedState={dehydrated:i,treeContext:o,retryLane:1073741824},o=Yn(18,null,null,0),o.stateNode=i,o.return=r,r.child=o,Bn=r,Un=null,!0):!1;default:return!1}}function Zd(r){return(r.mode&1)!==0&&(r.flags&128)===0}function ef(r){if(Ot){var i=Un;if(i){var o=i;if(!Lm(r,i)){if(Zd(r))throw Error(t(418));i=Ni(o.nextSibling);var l=Bn;i&&Lm(r,i)?Mm(l,o):(r.flags=r.flags&-4097|2,Ot=!1,Bn=r)}}else{if(Zd(r))throw Error(t(418));r.flags=r.flags&-4097|2,Ot=!1,Bn=r}}}function Am(r){for(r=r.return;r!==null&&r.tag!==5&&r.tag!==3&&r.tag!==13;)r=r.return;Bn=r}function xu(r){if(r!==Bn)return!1;if(!Ot)return Am(r),Ot=!0,!1;var i;if((i=r.tag!==3)&&!(i=r.tag!==5)&&(i=r.type,i=i!=="head"&&i!=="body"&&!Wd(r.type,r.memoizedProps)),i&&(i=Un)){if(Zd(r))throw km(),Error(t(418));for(;i;)Mm(r,i),i=Ni(i.nextSibling)}if(Am(r),r.tag===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(t(317));e:{for(r=r.nextSibling,i=0;r;){if(r.nodeType===8){var o=r.data;if(o==="/$"){if(i===0){Un=Ni(r.nextSibling);break e}i--}else o!=="$"&&o!=="$!"&&o!=="$?"||i++}r=r.nextSibling}Un=null}}else Un=Bn?Ni(r.stateNode.nextSibling):null;return!0}function km(){for(var r=Un;r;)r=Ni(r.nextSibling)}function Do(){Un=Bn=null,Ot=!1}function tf(r){hr===null?hr=[r]:hr.push(r)}var G_=G.ReactCurrentBatchConfig;function Ja(r,i,o){if(r=o.ref,r!==null&&typeof r!="function"&&typeof r!="object"){if(o._owner){if(o=o._owner,o){if(o.tag!==1)throw Error(t(309));var l=o.stateNode}if(!l)throw Error(t(147,r));var c=l,h=""+r;return i!==null&&i.ref!==null&&typeof i.ref=="function"&&i.ref._stringRef===h?i.ref:(i=function(y){var w=c.refs;y===null?delete w[h]:w[h]=y},i._stringRef=h,i)}if(typeof r!="string")throw Error(t(284));if(!o._owner)throw Error(t(290,r))}return r}function Du(r,i){throw r=Object.prototype.toString.call(i),Error(t(31,r==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":r))}function Pm(r){var i=r._init;return i(r._payload)}function Nm(r){function i(R,x){if(r){var L=R.deletions;L===null?(R.deletions=[x],R.flags|=16):L.push(x)}}function o(R,x){if(!r)return null;for(;x!==null;)i(R,x),x=x.sibling;return null}function l(R,x){for(R=new Map;x!==null;)x.key!==null?R.set(x.key,x):R.set(x.index,x),x=x.sibling;return R}function c(R,x){return R=Ki(R,x),R.index=0,R.sibling=null,R}function h(R,x,L){return R.index=L,r?(L=R.alternate,L!==null?(L=L.index,L<x?(R.flags|=2,x):L):(R.flags|=2,x)):(R.flags|=1048576,x)}function y(R){return r&&R.alternate===null&&(R.flags|=2),R}function w(R,x,L,Q){return x===null||x.tag!==6?(x=Kf(L,R.mode,Q),x.return=R,x):(x=c(x,L),x.return=R,x)}function I(R,x,L,Q){var le=L.type;return le===Le?$(R,x,L.props.children,Q,L.key):x!==null&&(x.elementType===le||typeof le=="object"&&le!==null&&le.$$typeof===Ne&&Pm(le)===x.type)?(Q=c(x,L.props),Q.ref=Ja(R,x,L),Q.return=R,Q):(Q=Gu(L.type,L.key,L.props,null,R.mode,Q),Q.ref=Ja(R,x,L),Q.return=R,Q)}function P(R,x,L,Q){return x===null||x.tag!==4||x.stateNode.containerInfo!==L.containerInfo||x.stateNode.implementation!==L.implementation?(x=qf(L,R.mode,Q),x.return=R,x):(x=c(x,L.children||[]),x.return=R,x)}function $(R,x,L,Q,le){return x===null||x.tag!==7?(x=Bs(L,R.mode,Q,le),x.return=R,x):(x=c(x,L),x.return=R,x)}function W(R,x,L){if(typeof x=="string"&&x!==""||typeof x=="number")return x=Kf(""+x,R.mode,L),x.return=R,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case te:return L=Gu(x.type,x.key,x.props,null,R.mode,L),L.ref=Ja(R,null,x),L.return=R,L;case M:return x=qf(x,R.mode,L),x.return=R,x;case Ne:var Q=x._init;return W(R,Q(x._payload),L)}if(ws(x)||ne(x))return x=Bs(x,R.mode,L,null),x.return=R,x;Du(R,x)}return null}function z(R,x,L,Q){var le=x!==null?x.key:null;if(typeof L=="string"&&L!==""||typeof L=="number")return le!==null?null:w(R,x,""+L,Q);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case te:return L.key===le?I(R,x,L,Q):null;case M:return L.key===le?P(R,x,L,Q):null;case Ne:return le=L._init,z(R,x,le(L._payload),Q)}if(ws(L)||ne(L))return le!==null?null:$(R,x,L,Q,null);Du(R,L)}return null}function J(R,x,L,Q,le){if(typeof Q=="string"&&Q!==""||typeof Q=="number")return R=R.get(L)||null,w(x,R,""+Q,le);if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case te:return R=R.get(Q.key===null?L:Q.key)||null,I(x,R,Q,le);case M:return R=R.get(Q.key===null?L:Q.key)||null,P(x,R,Q,le);case Ne:var ye=Q._init;return J(R,x,L,ye(Q._payload),le)}if(ws(Q)||ne(Q))return R=R.get(L)||null,$(x,R,Q,le,null);Du(x,Q)}return null}function se(R,x,L,Q){for(var le=null,ye=null,ge=x,Re=x=0,Jt=null;ge!==null&&Re<L.length;Re++){ge.index>Re?(Jt=ge,ge=null):Jt=ge.sibling;var Xe=z(R,ge,L[Re],Q);if(Xe===null){ge===null&&(ge=Jt);break}r&&ge&&Xe.alternate===null&&i(R,ge),x=h(Xe,x,Re),ye===null?le=Xe:ye.sibling=Xe,ye=Xe,ge=Jt}if(Re===L.length)return o(R,ge),Ot&&Rs(R,Re),le;if(ge===null){for(;Re<L.length;Re++)ge=W(R,L[Re],Q),ge!==null&&(x=h(ge,x,Re),ye===null?le=ge:ye.sibling=ge,ye=ge);return Ot&&Rs(R,Re),le}for(ge=l(R,ge);Re<L.length;Re++)Jt=J(ge,R,Re,L[Re],Q),Jt!==null&&(r&&Jt.alternate!==null&&ge.delete(Jt.key===null?Re:Jt.key),x=h(Jt,x,Re),ye===null?le=Jt:ye.sibling=Jt,ye=Jt);return r&&ge.forEach(function(qi){return i(R,qi)}),Ot&&Rs(R,Re),le}function oe(R,x,L,Q){var le=ne(L);if(typeof le!="function")throw Error(t(150));if(L=le.call(L),L==null)throw Error(t(151));for(var ye=le=null,ge=x,Re=x=0,Jt=null,Xe=L.next();ge!==null&&!Xe.done;Re++,Xe=L.next()){ge.index>Re?(Jt=ge,ge=null):Jt=ge.sibling;var qi=z(R,ge,Xe.value,Q);if(qi===null){ge===null&&(ge=Jt);break}r&&ge&&qi.alternate===null&&i(R,ge),x=h(qi,x,Re),ye===null?le=qi:ye.sibling=qi,ye=qi,ge=Jt}if(Xe.done)return o(R,ge),Ot&&Rs(R,Re),le;if(ge===null){for(;!Xe.done;Re++,Xe=L.next())Xe=W(R,Xe.value,Q),Xe!==null&&(x=h(Xe,x,Re),ye===null?le=Xe:ye.sibling=Xe,ye=Xe);return Ot&&Rs(R,Re),le}for(ge=l(R,ge);!Xe.done;Re++,Xe=L.next())Xe=J(ge,R,Re,Xe.value,Q),Xe!==null&&(r&&Xe.alternate!==null&&ge.delete(Xe.key===null?Re:Xe.key),x=h(Xe,x,Re),ye===null?le=Xe:ye.sibling=Xe,ye=Xe);return r&&ge.forEach(function(F1){return i(R,F1)}),Ot&&Rs(R,Re),le}function Pt(R,x,L,Q){if(typeof L=="object"&&L!==null&&L.type===Le&&L.key===null&&(L=L.props.children),typeof L=="object"&&L!==null){switch(L.$$typeof){case te:e:{for(var le=L.key,ye=x;ye!==null;){if(ye.key===le){if(le=L.type,le===Le){if(ye.tag===7){o(R,ye.sibling),x=c(ye,L.props.children),x.return=R,R=x;break e}}else if(ye.elementType===le||typeof le=="object"&&le!==null&&le.$$typeof===Ne&&Pm(le)===ye.type){o(R,ye.sibling),x=c(ye,L.props),x.ref=Ja(R,ye,L),x.return=R,R=x;break e}o(R,ye);break}else i(R,ye);ye=ye.sibling}L.type===Le?(x=Bs(L.props.children,R.mode,Q,L.key),x.return=R,R=x):(Q=Gu(L.type,L.key,L.props,null,R.mode,Q),Q.ref=Ja(R,x,L),Q.return=R,R=Q)}return y(R);case M:e:{for(ye=L.key;x!==null;){if(x.key===ye)if(x.tag===4&&x.stateNode.containerInfo===L.containerInfo&&x.stateNode.implementation===L.implementation){o(R,x.sibling),x=c(x,L.children||[]),x.return=R,R=x;break e}else{o(R,x);break}else i(R,x);x=x.sibling}x=qf(L,R.mode,Q),x.return=R,R=x}return y(R);case Ne:return ye=L._init,Pt(R,x,ye(L._payload),Q)}if(ws(L))return se(R,x,L,Q);if(ne(L))return oe(R,x,L,Q);Du(R,L)}return typeof L=="string"&&L!==""||typeof L=="number"?(L=""+L,x!==null&&x.tag===6?(o(R,x.sibling),x=c(x,L),x.return=R,R=x):(o(R,x),x=Kf(L,R.mode,Q),x.return=R,R=x),y(R)):o(R,x)}return Pt}var Co=Nm(!0),Tm=Nm(!1),Cu=Ti(null),Ou=null,Oo=null,nf=null;function rf(){nf=Oo=Ou=null}function sf(r){var i=Cu.current;Et(Cu),r._currentValue=i}function of(r,i,o){for(;r!==null;){var l=r.alternate;if((r.childLanes&i)!==i?(r.childLanes|=i,l!==null&&(l.childLanes|=i)):l!==null&&(l.childLanes&i)!==i&&(l.childLanes|=i),r===o)break;r=r.return}}function Fo(r,i){Ou=r,nf=Oo=null,r=r.dependencies,r!==null&&r.firstContext!==null&&((r.lanes&i)!==0&&(En=!0),r.firstContext=null)}function Qn(r){var i=r._currentValue;if(nf!==r)if(r={context:r,memoizedValue:i,next:null},Oo===null){if(Ou===null)throw Error(t(308));Oo=r,Ou.dependencies={lanes:0,firstContext:r}}else Oo=Oo.next=r;return i}var Ms=null;function af(r){Ms===null?Ms=[r]:Ms.push(r)}function Bm(r,i,o,l){var c=i.interleaved;return c===null?(o.next=o,af(i)):(o.next=c.next,c.next=o),i.interleaved=o,ri(r,l)}function ri(r,i){r.lanes|=i;var o=r.alternate;for(o!==null&&(o.lanes|=i),o=r,r=r.return;r!==null;)r.childLanes|=i,o=r.alternate,o!==null&&(o.childLanes|=i),o=r,r=r.return;return o.tag===3?o.stateNode:null}var ji=!1;function lf(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Um(r,i){r=r.updateQueue,i.updateQueue===r&&(i.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,effects:r.effects})}function ii(r,i){return{eventTime:r,lane:i,tag:0,payload:null,callback:null,next:null}}function zi(r,i,o){var l=r.updateQueue;if(l===null)return null;if(l=l.shared,(Ge&2)!==0){var c=l.pending;return c===null?i.next=i:(i.next=c.next,c.next=i),l.pending=i,ri(r,o)}return c=l.interleaved,c===null?(i.next=i,af(l)):(i.next=c.next,c.next=i),l.interleaved=i,ri(r,o)}function Fu(r,i,o){if(i=i.updateQueue,i!==null&&(i=i.shared,(o&4194240)!==0)){var l=i.lanes;l&=r.pendingLanes,o|=l,i.lanes=o,_d(r,o)}}function jm(r,i){var o=r.updateQueue,l=r.alternate;if(l!==null&&(l=l.updateQueue,o===l)){var c=null,h=null;if(o=o.firstBaseUpdate,o!==null){do{var y={eventTime:o.eventTime,lane:o.lane,tag:o.tag,payload:o.payload,callback:o.callback,next:null};h===null?c=h=y:h=h.next=y,o=o.next}while(o!==null);h===null?c=h=i:h=h.next=i}else c=h=i;o={baseState:l.baseState,firstBaseUpdate:c,lastBaseUpdate:h,shared:l.shared,effects:l.effects},r.updateQueue=o;return}r=o.lastBaseUpdate,r===null?o.firstBaseUpdate=i:r.next=i,o.lastBaseUpdate=i}function Ru(r,i,o,l){var c=r.updateQueue;ji=!1;var h=c.firstBaseUpdate,y=c.lastBaseUpdate,w=c.shared.pending;if(w!==null){c.shared.pending=null;var I=w,P=I.next;I.next=null,y===null?h=P:y.next=P,y=I;var $=r.alternate;$!==null&&($=$.updateQueue,w=$.lastBaseUpdate,w!==y&&(w===null?$.firstBaseUpdate=P:w.next=P,$.lastBaseUpdate=I))}if(h!==null){var W=c.baseState;y=0,$=P=I=null,w=h;do{var z=w.lane,J=w.eventTime;if((l&z)===z){$!==null&&($=$.next={eventTime:J,lane:0,tag:w.tag,payload:w.payload,callback:w.callback,next:null});e:{var se=r,oe=w;switch(z=i,J=o,oe.tag){case 1:if(se=oe.payload,typeof se=="function"){W=se.call(J,W,z);break e}W=se;break e;case 3:se.flags=se.flags&-65537|128;case 0:if(se=oe.payload,z=typeof se=="function"?se.call(J,W,z):se,z==null)break e;W=Y({},W,z);break e;case 2:ji=!0}}w.callback!==null&&w.lane!==0&&(r.flags|=64,z=c.effects,z===null?c.effects=[w]:z.push(w))}else J={eventTime:J,lane:z,tag:w.tag,payload:w.payload,callback:w.callback,next:null},$===null?(P=$=J,I=W):$=$.next=J,y|=z;if(w=w.next,w===null){if(w=c.shared.pending,w===null)break;z=w,w=z.next,z.next=null,c.lastBaseUpdate=z,c.shared.pending=null}}while(!0);if($===null&&(I=W),c.baseState=I,c.firstBaseUpdate=P,c.lastBaseUpdate=$,i=c.shared.interleaved,i!==null){c=i;do y|=c.lane,c=c.next;while(c!==i)}else h===null&&(c.shared.lanes=0);ks|=y,r.lanes=y,r.memoizedState=W}}function zm(r,i,o){if(r=i.effects,i.effects=null,r!==null)for(i=0;i<r.length;i++){var l=r[i],c=l.callback;if(c!==null){if(l.callback=null,l=o,typeof c!="function")throw Error(t(191,c));c.call(l)}}}var Xa={},Mr=Ti(Xa),Za=Ti(Xa),el=Ti(Xa);function Ls(r){if(r===Xa)throw Error(t(174));return r}function uf(r,i){switch(wt(el,i),wt(Za,r),wt(Mr,Xa),r=i.nodeType,r){case 9:case 11:i=(i=i.documentElement)?i.namespaceURI:Nn(null,"");break;default:r=r===8?i.parentNode:i,i=r.namespaceURI||null,r=r.tagName,i=Nn(i,r)}Et(Mr),wt(Mr,i)}function Ro(){Et(Mr),Et(Za),Et(el)}function $m(r){Ls(el.current);var i=Ls(Mr.current),o=Nn(i,r.type);i!==o&&(wt(Za,r),wt(Mr,o))}function cf(r){Za.current===r&&(Et(Mr),Et(Za))}var Rt=Ti(0);function Mu(r){for(var i=r;i!==null;){if(i.tag===13){var o=i.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||o.data==="$?"||o.data==="$!"))return i}else if(i.tag===19&&i.memoizedProps.revealOrder!==void 0){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===r)break;for(;i.sibling===null;){if(i.return===null||i.return===r)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var df=[];function ff(){for(var r=0;r<df.length;r++)df[r]._workInProgressVersionPrimary=null;df.length=0}var Lu=G.ReactCurrentDispatcher,hf=G.ReactCurrentBatchConfig,As=0,Mt=null,$t=null,Yt=null,Au=!1,tl=!1,nl=0,J_=0;function nn(){throw Error(t(321))}function pf(r,i){if(i===null)return!1;for(var o=0;o<i.length&&o<r.length;o++)if(!fr(r[o],i[o]))return!1;return!0}function mf(r,i,o,l,c,h){if(As=h,Mt=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,Lu.current=r===null||r.memoizedState===null?t1:n1,r=o(l,c),tl){h=0;do{if(tl=!1,nl=0,25<=h)throw Error(t(301));h+=1,Yt=$t=null,i.updateQueue=null,Lu.current=r1,r=o(l,c)}while(tl)}if(Lu.current=Nu,i=$t!==null&&$t.next!==null,As=0,Yt=$t=Mt=null,Au=!1,i)throw Error(t(300));return r}function yf(){var r=nl!==0;return nl=0,r}function Lr(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Yt===null?Mt.memoizedState=Yt=r:Yt=Yt.next=r,Yt}function Kn(){if($t===null){var r=Mt.alternate;r=r!==null?r.memoizedState:null}else r=$t.next;var i=Yt===null?Mt.memoizedState:Yt.next;if(i!==null)Yt=i,$t=r;else{if(r===null)throw Error(t(310));$t=r,r={memoizedState:$t.memoizedState,baseState:$t.baseState,baseQueue:$t.baseQueue,queue:$t.queue,next:null},Yt===null?Mt.memoizedState=Yt=r:Yt=Yt.next=r}return Yt}function rl(r,i){return typeof i=="function"?i(r):i}function gf(r){var i=Kn(),o=i.queue;if(o===null)throw Error(t(311));o.lastRenderedReducer=r;var l=$t,c=l.baseQueue,h=o.pending;if(h!==null){if(c!==null){var y=c.next;c.next=h.next,h.next=y}l.baseQueue=c=h,o.pending=null}if(c!==null){h=c.next,l=l.baseState;var w=y=null,I=null,P=h;do{var $=P.lane;if((As&$)===$)I!==null&&(I=I.next={lane:0,action:P.action,hasEagerState:P.hasEagerState,eagerState:P.eagerState,next:null}),l=P.hasEagerState?P.eagerState:r(l,P.action);else{var W={lane:$,action:P.action,hasEagerState:P.hasEagerState,eagerState:P.eagerState,next:null};I===null?(w=I=W,y=l):I=I.next=W,Mt.lanes|=$,ks|=$}P=P.next}while(P!==null&&P!==h);I===null?y=l:I.next=w,fr(l,i.memoizedState)||(En=!0),i.memoizedState=l,i.baseState=y,i.baseQueue=I,o.lastRenderedState=l}if(r=o.interleaved,r!==null){c=r;do h=c.lane,Mt.lanes|=h,ks|=h,c=c.next;while(c!==r)}else c===null&&(o.lanes=0);return[i.memoizedState,o.dispatch]}function vf(r){var i=Kn(),o=i.queue;if(o===null)throw Error(t(311));o.lastRenderedReducer=r;var l=o.dispatch,c=o.pending,h=i.memoizedState;if(c!==null){o.pending=null;var y=c=c.next;do h=r(h,y.action),y=y.next;while(y!==c);fr(h,i.memoizedState)||(En=!0),i.memoizedState=h,i.baseQueue===null&&(i.baseState=h),o.lastRenderedState=h}return[h,l]}function Vm(){}function Hm(r,i){var o=Mt,l=Kn(),c=i(),h=!fr(l.memoizedState,c);if(h&&(l.memoizedState=c,En=!0),l=l.queue,wf(Km.bind(null,o,l,r),[r]),l.getSnapshot!==i||h||Yt!==null&&Yt.memoizedState.tag&1){if(o.flags|=2048,il(9,Qm.bind(null,o,l,c,i),void 0,null),Gt===null)throw Error(t(349));(As&30)!==0||Wm(o,i,c)}return c}function Wm(r,i,o){r.flags|=16384,r={getSnapshot:i,value:o},i=Mt.updateQueue,i===null?(i={lastEffect:null,stores:null},Mt.updateQueue=i,i.stores=[r]):(o=i.stores,o===null?i.stores=[r]:o.push(r))}function Qm(r,i,o,l){i.value=o,i.getSnapshot=l,qm(i)&&Ym(r)}function Km(r,i,o){return o(function(){qm(i)&&Ym(r)})}function qm(r){var i=r.getSnapshot;r=r.value;try{var o=i();return!fr(r,o)}catch{return!0}}function Ym(r){var i=ri(r,1);i!==null&&gr(i,r,1,-1)}function Gm(r){var i=Lr();return typeof r=="function"&&(r=r()),i.memoizedState=i.baseState=r,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:rl,lastRenderedState:r},i.queue=r,r=r.dispatch=e1.bind(null,Mt,r),[i.memoizedState,r]}function il(r,i,o,l){return r={tag:r,create:i,destroy:o,deps:l,next:null},i=Mt.updateQueue,i===null?(i={lastEffect:null,stores:null},Mt.updateQueue=i,i.lastEffect=r.next=r):(o=i.lastEffect,o===null?i.lastEffect=r.next=r:(l=o.next,o.next=r,r.next=l,i.lastEffect=r)),r}function Jm(){return Kn().memoizedState}function ku(r,i,o,l){var c=Lr();Mt.flags|=r,c.memoizedState=il(1|i,o,void 0,l===void 0?null:l)}function Pu(r,i,o,l){var c=Kn();l=l===void 0?null:l;var h=void 0;if($t!==null){var y=$t.memoizedState;if(h=y.destroy,l!==null&&pf(l,y.deps)){c.memoizedState=il(i,o,h,l);return}}Mt.flags|=r,c.memoizedState=il(1|i,o,h,l)}function Xm(r,i){return ku(8390656,8,r,i)}function wf(r,i){return Pu(2048,8,r,i)}function Zm(r,i){return Pu(4,2,r,i)}function ey(r,i){return Pu(4,4,r,i)}function ty(r,i){if(typeof i=="function")return r=r(),i(r),function(){i(null)};if(i!=null)return r=r(),i.current=r,function(){i.current=null}}function ny(r,i,o){return o=o!=null?o.concat([r]):null,Pu(4,4,ty.bind(null,i,r),o)}function Sf(){}function ry(r,i){var o=Kn();i=i===void 0?null:i;var l=o.memoizedState;return l!==null&&i!==null&&pf(i,l[1])?l[0]:(o.memoizedState=[r,i],r)}function iy(r,i){var o=Kn();i=i===void 0?null:i;var l=o.memoizedState;return l!==null&&i!==null&&pf(i,l[1])?l[0]:(r=r(),o.memoizedState=[r,i],r)}function sy(r,i,o){return(As&21)===0?(r.baseState&&(r.baseState=!1,En=!0),r.memoizedState=o):(fr(o,i)||(o=Pp(),Mt.lanes|=o,ks|=o,r.baseState=!0),i)}function X_(r,i){var o=at;at=o!==0&&4>o?o:4,r(!0);var l=hf.transition;hf.transition={};try{r(!1),i()}finally{at=o,hf.transition=l}}function oy(){return Kn().memoizedState}function Z_(r,i,o){var l=Wi(r);if(o={lane:l,action:o,hasEagerState:!1,eagerState:null,next:null},ay(r))ly(i,o);else if(o=Bm(r,i,o,l),o!==null){var c=dn();gr(o,r,l,c),uy(o,i,l)}}function e1(r,i,o){var l=Wi(r),c={lane:l,action:o,hasEagerState:!1,eagerState:null,next:null};if(ay(r))ly(i,c);else{var h=r.alternate;if(r.lanes===0&&(h===null||h.lanes===0)&&(h=i.lastRenderedReducer,h!==null))try{var y=i.lastRenderedState,w=h(y,o);if(c.hasEagerState=!0,c.eagerState=w,fr(w,y)){var I=i.interleaved;I===null?(c.next=c,af(i)):(c.next=I.next,I.next=c),i.interleaved=c;return}}catch{}finally{}o=Bm(r,i,c,l),o!==null&&(c=dn(),gr(o,r,l,c),uy(o,i,l))}}function ay(r){var i=r.alternate;return r===Mt||i!==null&&i===Mt}function ly(r,i){tl=Au=!0;var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}function uy(r,i,o){if((o&4194240)!==0){var l=i.lanes;l&=r.pendingLanes,o|=l,i.lanes=o,_d(r,o)}}var Nu={readContext:Qn,useCallback:nn,useContext:nn,useEffect:nn,useImperativeHandle:nn,useInsertionEffect:nn,useLayoutEffect:nn,useMemo:nn,useReducer:nn,useRef:nn,useState:nn,useDebugValue:nn,useDeferredValue:nn,useTransition:nn,useMutableSource:nn,useSyncExternalStore:nn,useId:nn,unstable_isNewReconciler:!1},t1={readContext:Qn,useCallback:function(r,i){return Lr().memoizedState=[r,i===void 0?null:i],r},useContext:Qn,useEffect:Xm,useImperativeHandle:function(r,i,o){return o=o!=null?o.concat([r]):null,ku(4194308,4,ty.bind(null,i,r),o)},useLayoutEffect:function(r,i){return ku(4194308,4,r,i)},useInsertionEffect:function(r,i){return ku(4,2,r,i)},useMemo:function(r,i){var o=Lr();return i=i===void 0?null:i,r=r(),o.memoizedState=[r,i],r},useReducer:function(r,i,o){var l=Lr();return i=o!==void 0?o(i):i,l.memoizedState=l.baseState=i,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:i},l.queue=r,r=r.dispatch=Z_.bind(null,Mt,r),[l.memoizedState,r]},useRef:function(r){var i=Lr();return r={current:r},i.memoizedState=r},useState:Gm,useDebugValue:Sf,useDeferredValue:function(r){return Lr().memoizedState=r},useTransition:function(){var r=Gm(!1),i=r[0];return r=X_.bind(null,r[1]),Lr().memoizedState=r,[i,r]},useMutableSource:function(){},useSyncExternalStore:function(r,i,o){var l=Mt,c=Lr();if(Ot){if(o===void 0)throw Error(t(407));o=o()}else{if(o=i(),Gt===null)throw Error(t(349));(As&30)!==0||Wm(l,i,o)}c.memoizedState=o;var h={value:o,getSnapshot:i};return c.queue=h,Xm(Km.bind(null,l,h,r),[r]),l.flags|=2048,il(9,Qm.bind(null,l,h,o,i),void 0,null),o},useId:function(){var r=Lr(),i=Gt.identifierPrefix;if(Ot){var o=ni,l=ti;o=(l&~(1<<32-_n(l)-1)).toString(32)+o,i=":"+i+"R"+o,o=nl++,0<o&&(i+="H"+o.toString(32)),i+=":"}else o=J_++,i=":"+i+"r"+o.toString(32)+":";return r.memoizedState=i},unstable_isNewReconciler:!1},n1={readContext:Qn,useCallback:ry,useContext:Qn,useEffect:wf,useImperativeHandle:ny,useInsertionEffect:Zm,useLayoutEffect:ey,useMemo:iy,useReducer:gf,useRef:Jm,useState:function(){return gf(rl)},useDebugValue:Sf,useDeferredValue:function(r){var i=Kn();return sy(i,$t.memoizedState,r)},useTransition:function(){var r=gf(rl)[0],i=Kn().memoizedState;return[r,i]},useMutableSource:Vm,useSyncExternalStore:Hm,useId:oy,unstable_isNewReconciler:!1},r1={readContext:Qn,useCallback:ry,useContext:Qn,useEffect:wf,useImperativeHandle:ny,useInsertionEffect:Zm,useLayoutEffect:ey,useMemo:iy,useReducer:vf,useRef:Jm,useState:function(){return vf(rl)},useDebugValue:Sf,useDeferredValue:function(r){var i=Kn();return $t===null?i.memoizedState=r:sy(i,$t.memoizedState,r)},useTransition:function(){var r=vf(rl)[0],i=Kn().memoizedState;return[r,i]},useMutableSource:Vm,useSyncExternalStore:Hm,useId:oy,unstable_isNewReconciler:!1};function pr(r,i){if(r&&r.defaultProps){i=Y({},i),r=r.defaultProps;for(var o in r)i[o]===void 0&&(i[o]=r[o]);return i}return i}function _f(r,i,o,l){i=r.memoizedState,o=o(l,i),o=o==null?i:Y({},i,o),r.memoizedState=o,r.lanes===0&&(r.updateQueue.baseState=o)}var Tu={isMounted:function(r){return(r=r._reactInternals)?Je(r)===r:!1},enqueueSetState:function(r,i,o){r=r._reactInternals;var l=dn(),c=Wi(r),h=ii(l,c);h.payload=i,o!=null&&(h.callback=o),i=zi(r,h,c),i!==null&&(gr(i,r,c,l),Fu(i,r,c))},enqueueReplaceState:function(r,i,o){r=r._reactInternals;var l=dn(),c=Wi(r),h=ii(l,c);h.tag=1,h.payload=i,o!=null&&(h.callback=o),i=zi(r,h,c),i!==null&&(gr(i,r,c,l),Fu(i,r,c))},enqueueForceUpdate:function(r,i){r=r._reactInternals;var o=dn(),l=Wi(r),c=ii(o,l);c.tag=2,i!=null&&(c.callback=i),i=zi(r,c,l),i!==null&&(gr(i,r,l,o),Fu(i,r,l))}};function cy(r,i,o,l,c,h,y){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(l,h,y):i.prototype&&i.prototype.isPureReactComponent?!Ha(o,l)||!Ha(c,h):!0}function dy(r,i,o){var l=!1,c=Bi,h=i.contextType;return typeof h=="object"&&h!==null?h=Qn(h):(c=In(i)?Os:tn.current,l=i.contextTypes,h=(l=l!=null)?Io(r,c):Bi),i=new i(o,h),r.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=Tu,r.stateNode=i,i._reactInternals=r,l&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=c,r.__reactInternalMemoizedMaskedChildContext=h),i}function fy(r,i,o,l){r=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(o,l),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(o,l),i.state!==r&&Tu.enqueueReplaceState(i,i.state,null)}function bf(r,i,o,l){var c=r.stateNode;c.props=o,c.state=r.memoizedState,c.refs={},lf(r);var h=i.contextType;typeof h=="object"&&h!==null?c.context=Qn(h):(h=In(i)?Os:tn.current,c.context=Io(r,h)),c.state=r.memoizedState,h=i.getDerivedStateFromProps,typeof h=="function"&&(_f(r,i,h,o),c.state=r.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(i=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),i!==c.state&&Tu.enqueueReplaceState(c,c.state,null),Ru(r,o,c,l),c.state=r.memoizedState),typeof c.componentDidMount=="function"&&(r.flags|=4194308)}function Mo(r,i){try{var o="",l=i;do o+=We(l),l=l.return;while(l);var c=o}catch(h){c=`
|
|
42
|
+
Error generating stack: `+h.message+`
|
|
43
|
+
`+h.stack}return{value:r,source:i,stack:c,digest:null}}function If(r,i,o){return{value:r,source:null,stack:o??null,digest:i??null}}function Ef(r,i){try{console.error(i.value)}catch(o){setTimeout(function(){throw o})}}var i1=typeof WeakMap=="function"?WeakMap:Map;function hy(r,i,o){o=ii(-1,o),o.tag=3,o.payload={element:null};var l=i.value;return o.callback=function(){Hu||(Hu=!0,Uf=l),Ef(r,i)},o}function py(r,i,o){o=ii(-1,o),o.tag=3;var l=r.type.getDerivedStateFromError;if(typeof l=="function"){var c=i.value;o.payload=function(){return l(c)},o.callback=function(){Ef(r,i)}}var h=r.stateNode;return h!==null&&typeof h.componentDidCatch=="function"&&(o.callback=function(){Ef(r,i),typeof l!="function"&&(Vi===null?Vi=new Set([this]):Vi.add(this));var y=i.stack;this.componentDidCatch(i.value,{componentStack:y!==null?y:""})}),o}function my(r,i,o){var l=r.pingCache;if(l===null){l=r.pingCache=new i1;var c=new Set;l.set(i,c)}else c=l.get(i),c===void 0&&(c=new Set,l.set(i,c));c.has(o)||(c.add(o),r=v1.bind(null,r,i,o),i.then(r,r))}function yy(r){do{var i;if((i=r.tag===13)&&(i=r.memoizedState,i=i!==null?i.dehydrated!==null:!0),i)return r;r=r.return}while(r!==null);return null}function gy(r,i,o,l,c){return(r.mode&1)===0?(r===i?r.flags|=65536:(r.flags|=128,o.flags|=131072,o.flags&=-52805,o.tag===1&&(o.alternate===null?o.tag=17:(i=ii(-1,1),i.tag=2,zi(o,i,1))),o.lanes|=1),r):(r.flags|=65536,r.lanes=c,r)}var s1=G.ReactCurrentOwner,En=!1;function cn(r,i,o,l){i.child=r===null?Tm(i,null,o,l):Co(i,r.child,o,l)}function vy(r,i,o,l,c){o=o.render;var h=i.ref;return Fo(i,c),l=mf(r,i,o,l,h,c),o=yf(),r!==null&&!En?(i.updateQueue=r.updateQueue,i.flags&=-2053,r.lanes&=~c,si(r,i,c)):(Ot&&o&&Jd(i),i.flags|=1,cn(r,i,l,c),i.child)}function wy(r,i,o,l,c){if(r===null){var h=o.type;return typeof h=="function"&&!Qf(h)&&h.defaultProps===void 0&&o.compare===null&&o.defaultProps===void 0?(i.tag=15,i.type=h,Sy(r,i,h,l,c)):(r=Gu(o.type,null,l,i,i.mode,c),r.ref=i.ref,r.return=i,i.child=r)}if(h=r.child,(r.lanes&c)===0){var y=h.memoizedProps;if(o=o.compare,o=o!==null?o:Ha,o(y,l)&&r.ref===i.ref)return si(r,i,c)}return i.flags|=1,r=Ki(h,l),r.ref=i.ref,r.return=i,i.child=r}function Sy(r,i,o,l,c){if(r!==null){var h=r.memoizedProps;if(Ha(h,l)&&r.ref===i.ref)if(En=!1,i.pendingProps=l=h,(r.lanes&c)!==0)(r.flags&131072)!==0&&(En=!0);else return i.lanes=r.lanes,si(r,i,c)}return xf(r,i,o,l,c)}function _y(r,i,o){var l=i.pendingProps,c=l.children,h=r!==null?r.memoizedState:null;if(l.mode==="hidden")if((i.mode&1)===0)i.memoizedState={baseLanes:0,cachePool:null,transitions:null},wt(Ao,jn),jn|=o;else{if((o&1073741824)===0)return r=h!==null?h.baseLanes|o:o,i.lanes=i.childLanes=1073741824,i.memoizedState={baseLanes:r,cachePool:null,transitions:null},i.updateQueue=null,wt(Ao,jn),jn|=r,null;i.memoizedState={baseLanes:0,cachePool:null,transitions:null},l=h!==null?h.baseLanes:o,wt(Ao,jn),jn|=l}else h!==null?(l=h.baseLanes|o,i.memoizedState=null):l=o,wt(Ao,jn),jn|=l;return cn(r,i,c,o),i.child}function by(r,i){var o=i.ref;(r===null&&o!==null||r!==null&&r.ref!==o)&&(i.flags|=512,i.flags|=2097152)}function xf(r,i,o,l,c){var h=In(o)?Os:tn.current;return h=Io(i,h),Fo(i,c),o=mf(r,i,o,l,h,c),l=yf(),r!==null&&!En?(i.updateQueue=r.updateQueue,i.flags&=-2053,r.lanes&=~c,si(r,i,c)):(Ot&&l&&Jd(i),i.flags|=1,cn(r,i,o,c),i.child)}function Iy(r,i,o,l,c){if(In(o)){var h=!0;_u(i)}else h=!1;if(Fo(i,c),i.stateNode===null)Uu(r,i),dy(i,o,l),bf(i,o,l,c),l=!0;else if(r===null){var y=i.stateNode,w=i.memoizedProps;y.props=w;var I=y.context,P=o.contextType;typeof P=="object"&&P!==null?P=Qn(P):(P=In(o)?Os:tn.current,P=Io(i,P));var $=o.getDerivedStateFromProps,W=typeof $=="function"||typeof y.getSnapshotBeforeUpdate=="function";W||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(w!==l||I!==P)&&fy(i,y,l,P),ji=!1;var z=i.memoizedState;y.state=z,Ru(i,l,y,c),I=i.memoizedState,w!==l||z!==I||bn.current||ji?(typeof $=="function"&&(_f(i,o,$,l),I=i.memoizedState),(w=ji||cy(i,o,w,l,z,I,P))?(W||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount()),typeof y.componentDidMount=="function"&&(i.flags|=4194308)):(typeof y.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=l,i.memoizedState=I),y.props=l,y.state=I,y.context=P,l=w):(typeof y.componentDidMount=="function"&&(i.flags|=4194308),l=!1)}else{y=i.stateNode,Um(r,i),w=i.memoizedProps,P=i.type===i.elementType?w:pr(i.type,w),y.props=P,W=i.pendingProps,z=y.context,I=o.contextType,typeof I=="object"&&I!==null?I=Qn(I):(I=In(o)?Os:tn.current,I=Io(i,I));var J=o.getDerivedStateFromProps;($=typeof J=="function"||typeof y.getSnapshotBeforeUpdate=="function")||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(w!==W||z!==I)&&fy(i,y,l,I),ji=!1,z=i.memoizedState,y.state=z,Ru(i,l,y,c);var se=i.memoizedState;w!==W||z!==se||bn.current||ji?(typeof J=="function"&&(_f(i,o,J,l),se=i.memoizedState),(P=ji||cy(i,o,P,l,z,se,I)||!1)?($||typeof y.UNSAFE_componentWillUpdate!="function"&&typeof y.componentWillUpdate!="function"||(typeof y.componentWillUpdate=="function"&&y.componentWillUpdate(l,se,I),typeof y.UNSAFE_componentWillUpdate=="function"&&y.UNSAFE_componentWillUpdate(l,se,I)),typeof y.componentDidUpdate=="function"&&(i.flags|=4),typeof y.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof y.componentDidUpdate!="function"||w===r.memoizedProps&&z===r.memoizedState||(i.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||w===r.memoizedProps&&z===r.memoizedState||(i.flags|=1024),i.memoizedProps=l,i.memoizedState=se),y.props=l,y.state=se,y.context=I,l=P):(typeof y.componentDidUpdate!="function"||w===r.memoizedProps&&z===r.memoizedState||(i.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||w===r.memoizedProps&&z===r.memoizedState||(i.flags|=1024),l=!1)}return Df(r,i,o,l,h,c)}function Df(r,i,o,l,c,h){by(r,i);var y=(i.flags&128)!==0;if(!l&&!y)return c&&Om(i,o,!1),si(r,i,h);l=i.stateNode,s1.current=i;var w=y&&typeof o.getDerivedStateFromError!="function"?null:l.render();return i.flags|=1,r!==null&&y?(i.child=Co(i,r.child,null,h),i.child=Co(i,null,w,h)):cn(r,i,w,h),i.memoizedState=l.state,c&&Om(i,o,!0),i.child}function Ey(r){var i=r.stateNode;i.pendingContext?Dm(r,i.pendingContext,i.pendingContext!==i.context):i.context&&Dm(r,i.context,!1),uf(r,i.containerInfo)}function xy(r,i,o,l,c){return Do(),tf(c),i.flags|=256,cn(r,i,o,l),i.child}var Cf={dehydrated:null,treeContext:null,retryLane:0};function Of(r){return{baseLanes:r,cachePool:null,transitions:null}}function Dy(r,i,o){var l=i.pendingProps,c=Rt.current,h=!1,y=(i.flags&128)!==0,w;if((w=y)||(w=r!==null&&r.memoizedState===null?!1:(c&2)!==0),w?(h=!0,i.flags&=-129):(r===null||r.memoizedState!==null)&&(c|=1),wt(Rt,c&1),r===null)return ef(i),r=i.memoizedState,r!==null&&(r=r.dehydrated,r!==null)?((i.mode&1)===0?i.lanes=1:r.data==="$!"?i.lanes=8:i.lanes=1073741824,null):(y=l.children,r=l.fallback,h?(l=i.mode,h=i.child,y={mode:"hidden",children:y},(l&1)===0&&h!==null?(h.childLanes=0,h.pendingProps=y):h=Ju(y,l,0,null),r=Bs(r,l,o,null),h.return=i,r.return=i,h.sibling=r,i.child=h,i.child.memoizedState=Of(o),i.memoizedState=Cf,r):Ff(i,y));if(c=r.memoizedState,c!==null&&(w=c.dehydrated,w!==null))return o1(r,i,y,l,w,c,o);if(h){h=l.fallback,y=i.mode,c=r.child,w=c.sibling;var I={mode:"hidden",children:l.children};return(y&1)===0&&i.child!==c?(l=i.child,l.childLanes=0,l.pendingProps=I,i.deletions=null):(l=Ki(c,I),l.subtreeFlags=c.subtreeFlags&14680064),w!==null?h=Ki(w,h):(h=Bs(h,y,o,null),h.flags|=2),h.return=i,l.return=i,l.sibling=h,i.child=l,l=h,h=i.child,y=r.child.memoizedState,y=y===null?Of(o):{baseLanes:y.baseLanes|o,cachePool:null,transitions:y.transitions},h.memoizedState=y,h.childLanes=r.childLanes&~o,i.memoizedState=Cf,l}return h=r.child,r=h.sibling,l=Ki(h,{mode:"visible",children:l.children}),(i.mode&1)===0&&(l.lanes=o),l.return=i,l.sibling=null,r!==null&&(o=i.deletions,o===null?(i.deletions=[r],i.flags|=16):o.push(r)),i.child=l,i.memoizedState=null,l}function Ff(r,i){return i=Ju({mode:"visible",children:i},r.mode,0,null),i.return=r,r.child=i}function Bu(r,i,o,l){return l!==null&&tf(l),Co(i,r.child,null,o),r=Ff(i,i.pendingProps.children),r.flags|=2,i.memoizedState=null,r}function o1(r,i,o,l,c,h,y){if(o)return i.flags&256?(i.flags&=-257,l=If(Error(t(422))),Bu(r,i,y,l)):i.memoizedState!==null?(i.child=r.child,i.flags|=128,null):(h=l.fallback,c=i.mode,l=Ju({mode:"visible",children:l.children},c,0,null),h=Bs(h,c,y,null),h.flags|=2,l.return=i,h.return=i,l.sibling=h,i.child=l,(i.mode&1)!==0&&Co(i,r.child,null,y),i.child.memoizedState=Of(y),i.memoizedState=Cf,h);if((i.mode&1)===0)return Bu(r,i,y,null);if(c.data==="$!"){if(l=c.nextSibling&&c.nextSibling.dataset,l)var w=l.dgst;return l=w,h=Error(t(419)),l=If(h,l,void 0),Bu(r,i,y,l)}if(w=(y&r.childLanes)!==0,En||w){if(l=Gt,l!==null){switch(y&-y){case 4:c=2;break;case 16:c=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:c=32;break;case 536870912:c=268435456;break;default:c=0}c=(c&(l.suspendedLanes|y))!==0?0:c,c!==0&&c!==h.retryLane&&(h.retryLane=c,ri(r,c),gr(l,r,c,-1))}return Wf(),l=If(Error(t(421))),Bu(r,i,y,l)}return c.data==="$?"?(i.flags|=128,i.child=r.child,i=w1.bind(null,r),c._reactRetry=i,null):(r=h.treeContext,Un=Ni(c.nextSibling),Bn=i,Ot=!0,hr=null,r!==null&&(Hn[Wn++]=ti,Hn[Wn++]=ni,Hn[Wn++]=Fs,ti=r.id,ni=r.overflow,Fs=i),i=Ff(i,l.children),i.flags|=4096,i)}function Cy(r,i,o){r.lanes|=i;var l=r.alternate;l!==null&&(l.lanes|=i),of(r.return,i,o)}function Rf(r,i,o,l,c){var h=r.memoizedState;h===null?r.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:l,tail:o,tailMode:c}:(h.isBackwards=i,h.rendering=null,h.renderingStartTime=0,h.last=l,h.tail=o,h.tailMode=c)}function Oy(r,i,o){var l=i.pendingProps,c=l.revealOrder,h=l.tail;if(cn(r,i,l.children,o),l=Rt.current,(l&2)!==0)l=l&1|2,i.flags|=128;else{if(r!==null&&(r.flags&128)!==0)e:for(r=i.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&Cy(r,o,i);else if(r.tag===19)Cy(r,o,i);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===i)break e;for(;r.sibling===null;){if(r.return===null||r.return===i)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}l&=1}if(wt(Rt,l),(i.mode&1)===0)i.memoizedState=null;else switch(c){case"forwards":for(o=i.child,c=null;o!==null;)r=o.alternate,r!==null&&Mu(r)===null&&(c=o),o=o.sibling;o=c,o===null?(c=i.child,i.child=null):(c=o.sibling,o.sibling=null),Rf(i,!1,c,o,h);break;case"backwards":for(o=null,c=i.child,i.child=null;c!==null;){if(r=c.alternate,r!==null&&Mu(r)===null){i.child=c;break}r=c.sibling,c.sibling=o,o=c,c=r}Rf(i,!0,o,null,h);break;case"together":Rf(i,!1,null,null,void 0);break;default:i.memoizedState=null}return i.child}function Uu(r,i){(i.mode&1)===0&&r!==null&&(r.alternate=null,i.alternate=null,i.flags|=2)}function si(r,i,o){if(r!==null&&(i.dependencies=r.dependencies),ks|=i.lanes,(o&i.childLanes)===0)return null;if(r!==null&&i.child!==r.child)throw Error(t(153));if(i.child!==null){for(r=i.child,o=Ki(r,r.pendingProps),i.child=o,o.return=i;r.sibling!==null;)r=r.sibling,o=o.sibling=Ki(r,r.pendingProps),o.return=i;o.sibling=null}return i.child}function a1(r,i,o){switch(i.tag){case 3:Ey(i),Do();break;case 5:$m(i);break;case 1:In(i.type)&&_u(i);break;case 4:uf(i,i.stateNode.containerInfo);break;case 10:var l=i.type._context,c=i.memoizedProps.value;wt(Cu,l._currentValue),l._currentValue=c;break;case 13:if(l=i.memoizedState,l!==null)return l.dehydrated!==null?(wt(Rt,Rt.current&1),i.flags|=128,null):(o&i.child.childLanes)!==0?Dy(r,i,o):(wt(Rt,Rt.current&1),r=si(r,i,o),r!==null?r.sibling:null);wt(Rt,Rt.current&1);break;case 19:if(l=(o&i.childLanes)!==0,(r.flags&128)!==0){if(l)return Oy(r,i,o);i.flags|=128}if(c=i.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),wt(Rt,Rt.current),l)break;return null;case 22:case 23:return i.lanes=0,_y(r,i,o)}return si(r,i,o)}var Fy,Mf,Ry,My;Fy=function(r,i){for(var o=i.child;o!==null;){if(o.tag===5||o.tag===6)r.appendChild(o.stateNode);else if(o.tag!==4&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===i)break;for(;o.sibling===null;){if(o.return===null||o.return===i)return;o=o.return}o.sibling.return=o.return,o=o.sibling}},Mf=function(){},Ry=function(r,i,o,l){var c=r.memoizedProps;if(c!==l){r=i.stateNode,Ls(Mr.current);var h=null;switch(o){case"input":c=lr(r,c),l=lr(r,l),h=[];break;case"select":c=Y({},c,{value:void 0}),l=Y({},l,{value:void 0}),h=[];break;case"textarea":c=ur(r,c),l=ur(r,l),h=[];break;default:typeof c.onClick!="function"&&typeof l.onClick=="function"&&(r.onclick=vu)}co(o,l);var y;o=null;for(P in c)if(!l.hasOwnProperty(P)&&c.hasOwnProperty(P)&&c[P]!=null)if(P==="style"){var w=c[P];for(y in w)w.hasOwnProperty(y)&&(o||(o={}),o[y]="")}else P!=="dangerouslySetInnerHTML"&&P!=="children"&&P!=="suppressContentEditableWarning"&&P!=="suppressHydrationWarning"&&P!=="autoFocus"&&(a.hasOwnProperty(P)?h||(h=[]):(h=h||[]).push(P,null));for(P in l){var I=l[P];if(w=c!=null?c[P]:void 0,l.hasOwnProperty(P)&&I!==w&&(I!=null||w!=null))if(P==="style")if(w){for(y in w)!w.hasOwnProperty(y)||I&&I.hasOwnProperty(y)||(o||(o={}),o[y]="");for(y in I)I.hasOwnProperty(y)&&w[y]!==I[y]&&(o||(o={}),o[y]=I[y])}else o||(h||(h=[]),h.push(P,o)),o=I;else P==="dangerouslySetInnerHTML"?(I=I?I.__html:void 0,w=w?w.__html:void 0,I!=null&&w!==I&&(h=h||[]).push(P,I)):P==="children"?typeof I!="string"&&typeof I!="number"||(h=h||[]).push(P,""+I):P!=="suppressContentEditableWarning"&&P!=="suppressHydrationWarning"&&(a.hasOwnProperty(P)?(I!=null&&P==="onScroll"&&It("scroll",r),h||w===I||(h=[])):(h=h||[]).push(P,I))}o&&(h=h||[]).push("style",o);var P=h;(i.updateQueue=P)&&(i.flags|=4)}},My=function(r,i,o,l){o!==l&&(i.flags|=4)};function sl(r,i){if(!Ot)switch(r.tailMode){case"hidden":i=r.tail;for(var o=null;i!==null;)i.alternate!==null&&(o=i),i=i.sibling;o===null?r.tail=null:o.sibling=null;break;case"collapsed":o=r.tail;for(var l=null;o!==null;)o.alternate!==null&&(l=o),o=o.sibling;l===null?i||r.tail===null?r.tail=null:r.tail.sibling=null:l.sibling=null}}function rn(r){var i=r.alternate!==null&&r.alternate.child===r.child,o=0,l=0;if(i)for(var c=r.child;c!==null;)o|=c.lanes|c.childLanes,l|=c.subtreeFlags&14680064,l|=c.flags&14680064,c.return=r,c=c.sibling;else for(c=r.child;c!==null;)o|=c.lanes|c.childLanes,l|=c.subtreeFlags,l|=c.flags,c.return=r,c=c.sibling;return r.subtreeFlags|=l,r.childLanes=o,i}function l1(r,i,o){var l=i.pendingProps;switch(Xd(i),i.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return rn(i),null;case 1:return In(i.type)&&Su(),rn(i),null;case 3:return l=i.stateNode,Ro(),Et(bn),Et(tn),ff(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(r===null||r.child===null)&&(xu(i)?i.flags|=4:r===null||r.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,hr!==null&&($f(hr),hr=null))),Mf(r,i),rn(i),null;case 5:cf(i);var c=Ls(el.current);if(o=i.type,r!==null&&i.stateNode!=null)Ry(r,i,o,l,c),r.ref!==i.ref&&(i.flags|=512,i.flags|=2097152);else{if(!l){if(i.stateNode===null)throw Error(t(166));return rn(i),null}if(r=Ls(Mr.current),xu(i)){l=i.stateNode,o=i.type;var h=i.memoizedProps;switch(l[Rr]=i,l[Ya]=h,r=(i.mode&1)!==0,o){case"dialog":It("cancel",l),It("close",l);break;case"iframe":case"object":case"embed":It("load",l);break;case"video":case"audio":for(c=0;c<Qa.length;c++)It(Qa[c],l);break;case"source":It("error",l);break;case"img":case"image":case"link":It("error",l),It("load",l);break;case"details":It("toggle",l);break;case"input":Yl(l,h),It("invalid",l);break;case"select":l._wrapperState={wasMultiple:!!h.multiple},It("invalid",l);break;case"textarea":xi(l,h),It("invalid",l)}co(o,h),c=null;for(var y in h)if(h.hasOwnProperty(y)){var w=h[y];y==="children"?typeof w=="string"?l.textContent!==w&&(h.suppressHydrationWarning!==!0&&gu(l.textContent,w,r),c=["children",w]):typeof w=="number"&&l.textContent!==""+w&&(h.suppressHydrationWarning!==!0&&gu(l.textContent,w,r),c=["children",""+w]):a.hasOwnProperty(y)&&w!=null&&y==="onScroll"&&It("scroll",l)}switch(o){case"input":ar(l),Jl(l,h,!0);break;case"textarea":ar(l),lo(l);break;case"select":case"option":break;default:typeof h.onClick=="function"&&(l.onclick=vu)}l=c,i.updateQueue=l,l!==null&&(i.flags|=4)}else{y=c.nodeType===9?c:c.ownerDocument,r==="http://www.w3.org/1999/xhtml"&&(r=cr(o)),r==="http://www.w3.org/1999/xhtml"?o==="script"?(r=y.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild)):typeof l.is=="string"?r=y.createElement(o,{is:l.is}):(r=y.createElement(o),o==="select"&&(y=r,l.multiple?y.multiple=!0:l.size&&(y.size=l.size))):r=y.createElementNS(r,o),r[Rr]=i,r[Ya]=l,Fy(r,i,!1,!1),i.stateNode=r;e:{switch(y=Di(o,l),o){case"dialog":It("cancel",r),It("close",r),c=l;break;case"iframe":case"object":case"embed":It("load",r),c=l;break;case"video":case"audio":for(c=0;c<Qa.length;c++)It(Qa[c],r);c=l;break;case"source":It("error",r),c=l;break;case"img":case"image":case"link":It("error",r),It("load",r),c=l;break;case"details":It("toggle",r),c=l;break;case"input":Yl(r,l),c=lr(r,l),It("invalid",r);break;case"option":c=l;break;case"select":r._wrapperState={wasMultiple:!!l.multiple},c=Y({},l,{value:void 0}),It("invalid",r);break;case"textarea":xi(r,l),c=ur(r,l),It("invalid",r);break;default:c=l}co(o,c),w=c;for(h in w)if(w.hasOwnProperty(h)){var I=w[h];h==="style"?Oa(r,I):h==="dangerouslySetInnerHTML"?(I=I?I.__html:void 0,I!=null&&uo(r,I)):h==="children"?typeof I=="string"?(o!=="textarea"||I!=="")&&_s(r,I):typeof I=="number"&&_s(r,""+I):h!=="suppressContentEditableWarning"&&h!=="suppressHydrationWarning"&&h!=="autoFocus"&&(a.hasOwnProperty(h)?I!=null&&h==="onScroll"&&It("scroll",r):I!=null&&V(r,h,I,y))}switch(o){case"input":ar(r),Jl(r,l,!1);break;case"textarea":ar(r),lo(r);break;case"option":l.value!=null&&r.setAttribute("value",""+et(l.value));break;case"select":r.multiple=!!l.multiple,h=l.value,h!=null?Ei(r,!!l.multiple,h,!1):l.defaultValue!=null&&Ei(r,!!l.multiple,l.defaultValue,!0);break;default:typeof c.onClick=="function"&&(r.onclick=vu)}switch(o){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}}l&&(i.flags|=4)}i.ref!==null&&(i.flags|=512,i.flags|=2097152)}return rn(i),null;case 6:if(r&&i.stateNode!=null)My(r,i,r.memoizedProps,l);else{if(typeof l!="string"&&i.stateNode===null)throw Error(t(166));if(o=Ls(el.current),Ls(Mr.current),xu(i)){if(l=i.stateNode,o=i.memoizedProps,l[Rr]=i,(h=l.nodeValue!==o)&&(r=Bn,r!==null))switch(r.tag){case 3:gu(l.nodeValue,o,(r.mode&1)!==0);break;case 5:r.memoizedProps.suppressHydrationWarning!==!0&&gu(l.nodeValue,o,(r.mode&1)!==0)}h&&(i.flags|=4)}else l=(o.nodeType===9?o:o.ownerDocument).createTextNode(l),l[Rr]=i,i.stateNode=l}return rn(i),null;case 13:if(Et(Rt),l=i.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(Ot&&Un!==null&&(i.mode&1)!==0&&(i.flags&128)===0)km(),Do(),i.flags|=98560,h=!1;else if(h=xu(i),l!==null&&l.dehydrated!==null){if(r===null){if(!h)throw Error(t(318));if(h=i.memoizedState,h=h!==null?h.dehydrated:null,!h)throw Error(t(317));h[Rr]=i}else Do(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;rn(i),h=!1}else hr!==null&&($f(hr),hr=null),h=!0;if(!h)return i.flags&65536?i:null}return(i.flags&128)!==0?(i.lanes=o,i):(l=l!==null,l!==(r!==null&&r.memoizedState!==null)&&l&&(i.child.flags|=8192,(i.mode&1)!==0&&(r===null||(Rt.current&1)!==0?Vt===0&&(Vt=3):Wf())),i.updateQueue!==null&&(i.flags|=4),rn(i),null);case 4:return Ro(),Mf(r,i),r===null&&Ka(i.stateNode.containerInfo),rn(i),null;case 10:return sf(i.type._context),rn(i),null;case 17:return In(i.type)&&Su(),rn(i),null;case 19:if(Et(Rt),h=i.memoizedState,h===null)return rn(i),null;if(l=(i.flags&128)!==0,y=h.rendering,y===null)if(l)sl(h,!1);else{if(Vt!==0||r!==null&&(r.flags&128)!==0)for(r=i.child;r!==null;){if(y=Mu(r),y!==null){for(i.flags|=128,sl(h,!1),l=y.updateQueue,l!==null&&(i.updateQueue=l,i.flags|=4),i.subtreeFlags=0,l=o,o=i.child;o!==null;)h=o,r=l,h.flags&=14680066,y=h.alternate,y===null?(h.childLanes=0,h.lanes=r,h.child=null,h.subtreeFlags=0,h.memoizedProps=null,h.memoizedState=null,h.updateQueue=null,h.dependencies=null,h.stateNode=null):(h.childLanes=y.childLanes,h.lanes=y.lanes,h.child=y.child,h.subtreeFlags=0,h.deletions=null,h.memoizedProps=y.memoizedProps,h.memoizedState=y.memoizedState,h.updateQueue=y.updateQueue,h.type=y.type,r=y.dependencies,h.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),o=o.sibling;return wt(Rt,Rt.current&1|2),i.child}r=r.sibling}h.tail!==null&>()>ko&&(i.flags|=128,l=!0,sl(h,!1),i.lanes=4194304)}else{if(!l)if(r=Mu(y),r!==null){if(i.flags|=128,l=!0,o=r.updateQueue,o!==null&&(i.updateQueue=o,i.flags|=4),sl(h,!0),h.tail===null&&h.tailMode==="hidden"&&!y.alternate&&!Ot)return rn(i),null}else 2*gt()-h.renderingStartTime>ko&&o!==1073741824&&(i.flags|=128,l=!0,sl(h,!1),i.lanes=4194304);h.isBackwards?(y.sibling=i.child,i.child=y):(o=h.last,o!==null?o.sibling=y:i.child=y,h.last=y)}return h.tail!==null?(i=h.tail,h.rendering=i,h.tail=i.sibling,h.renderingStartTime=gt(),i.sibling=null,o=Rt.current,wt(Rt,l?o&1|2:o&1),i):(rn(i),null);case 22:case 23:return Hf(),l=i.memoizedState!==null,r!==null&&r.memoizedState!==null!==l&&(i.flags|=8192),l&&(i.mode&1)!==0?(jn&1073741824)!==0&&(rn(i),i.subtreeFlags&6&&(i.flags|=8192)):rn(i),null;case 24:return null;case 25:return null}throw Error(t(156,i.tag))}function u1(r,i){switch(Xd(i),i.tag){case 1:return In(i.type)&&Su(),r=i.flags,r&65536?(i.flags=r&-65537|128,i):null;case 3:return Ro(),Et(bn),Et(tn),ff(),r=i.flags,(r&65536)!==0&&(r&128)===0?(i.flags=r&-65537|128,i):null;case 5:return cf(i),null;case 13:if(Et(Rt),r=i.memoizedState,r!==null&&r.dehydrated!==null){if(i.alternate===null)throw Error(t(340));Do()}return r=i.flags,r&65536?(i.flags=r&-65537|128,i):null;case 19:return Et(Rt),null;case 4:return Ro(),null;case 10:return sf(i.type._context),null;case 22:case 23:return Hf(),null;case 24:return null;default:return null}}var ju=!1,sn=!1,c1=typeof WeakSet=="function"?WeakSet:Set,ee=null;function Lo(r,i){var o=r.ref;if(o!==null)if(typeof o=="function")try{o(null)}catch(l){At(r,i,l)}else o.current=null}function Lf(r,i,o){try{o()}catch(l){At(r,i,l)}}var Ly=!1;function d1(r,i){if(Vd=ou,r=cm(),Pd(r)){if("selectionStart"in r)var o={start:r.selectionStart,end:r.selectionEnd};else e:{o=(o=r.ownerDocument)&&o.defaultView||window;var l=o.getSelection&&o.getSelection();if(l&&l.rangeCount!==0){o=l.anchorNode;var c=l.anchorOffset,h=l.focusNode;l=l.focusOffset;try{o.nodeType,h.nodeType}catch{o=null;break e}var y=0,w=-1,I=-1,P=0,$=0,W=r,z=null;t:for(;;){for(var J;W!==o||c!==0&&W.nodeType!==3||(w=y+c),W!==h||l!==0&&W.nodeType!==3||(I=y+l),W.nodeType===3&&(y+=W.nodeValue.length),(J=W.firstChild)!==null;)z=W,W=J;for(;;){if(W===r)break t;if(z===o&&++P===c&&(w=y),z===h&&++$===l&&(I=y),(J=W.nextSibling)!==null)break;W=z,z=W.parentNode}W=J}o=w===-1||I===-1?null:{start:w,end:I}}else o=null}o=o||{start:0,end:0}}else o=null;for(Hd={focusedElem:r,selectionRange:o},ou=!1,ee=i;ee!==null;)if(i=ee,r=i.child,(i.subtreeFlags&1028)!==0&&r!==null)r.return=i,ee=r;else for(;ee!==null;){i=ee;try{var se=i.alternate;if((i.flags&1024)!==0)switch(i.tag){case 0:case 11:case 15:break;case 1:if(se!==null){var oe=se.memoizedProps,Pt=se.memoizedState,R=i.stateNode,x=R.getSnapshotBeforeUpdate(i.elementType===i.type?oe:pr(i.type,oe),Pt);R.__reactInternalSnapshotBeforeUpdate=x}break;case 3:var L=i.stateNode.containerInfo;L.nodeType===1?L.textContent="":L.nodeType===9&&L.documentElement&&L.removeChild(L.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(t(163))}}catch(Q){At(i,i.return,Q)}if(r=i.sibling,r!==null){r.return=i.return,ee=r;break}ee=i.return}return se=Ly,Ly=!1,se}function ol(r,i,o){var l=i.updateQueue;if(l=l!==null?l.lastEffect:null,l!==null){var c=l=l.next;do{if((c.tag&r)===r){var h=c.destroy;c.destroy=void 0,h!==void 0&&Lf(i,o,h)}c=c.next}while(c!==l)}}function zu(r,i){if(i=i.updateQueue,i=i!==null?i.lastEffect:null,i!==null){var o=i=i.next;do{if((o.tag&r)===r){var l=o.create;o.destroy=l()}o=o.next}while(o!==i)}}function Af(r){var i=r.ref;if(i!==null){var o=r.stateNode;switch(r.tag){case 5:r=o;break;default:r=o}typeof i=="function"?i(r):i.current=r}}function Ay(r){var i=r.alternate;i!==null&&(r.alternate=null,Ay(i)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(i=r.stateNode,i!==null&&(delete i[Rr],delete i[Ya],delete i[qd],delete i[K_],delete i[q_])),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}function ky(r){return r.tag===5||r.tag===3||r.tag===4}function Py(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||ky(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function kf(r,i,o){var l=r.tag;if(l===5||l===6)r=r.stateNode,i?o.nodeType===8?o.parentNode.insertBefore(r,i):o.insertBefore(r,i):(o.nodeType===8?(i=o.parentNode,i.insertBefore(r,o)):(i=o,i.appendChild(r)),o=o._reactRootContainer,o!=null||i.onclick!==null||(i.onclick=vu));else if(l!==4&&(r=r.child,r!==null))for(kf(r,i,o),r=r.sibling;r!==null;)kf(r,i,o),r=r.sibling}function Pf(r,i,o){var l=r.tag;if(l===5||l===6)r=r.stateNode,i?o.insertBefore(r,i):o.appendChild(r);else if(l!==4&&(r=r.child,r!==null))for(Pf(r,i,o),r=r.sibling;r!==null;)Pf(r,i,o),r=r.sibling}var Xt=null,mr=!1;function $i(r,i,o){for(o=o.child;o!==null;)Ny(r,i,o),o=o.sibling}function Ny(r,i,o){if(nt&&typeof nt.onCommitFiberUnmount=="function")try{nt.onCommitFiberUnmount(Fr,o)}catch{}switch(o.tag){case 5:sn||Lo(o,i);case 6:var l=Xt,c=mr;Xt=null,$i(r,i,o),Xt=l,mr=c,Xt!==null&&(mr?(r=Xt,o=o.stateNode,r.nodeType===8?r.parentNode.removeChild(o):r.removeChild(o)):Xt.removeChild(o.stateNode));break;case 18:Xt!==null&&(mr?(r=Xt,o=o.stateNode,r.nodeType===8?Kd(r.parentNode,o):r.nodeType===1&&Kd(r,o),Ba(r)):Kd(Xt,o.stateNode));break;case 4:l=Xt,c=mr,Xt=o.stateNode.containerInfo,mr=!0,$i(r,i,o),Xt=l,mr=c;break;case 0:case 11:case 14:case 15:if(!sn&&(l=o.updateQueue,l!==null&&(l=l.lastEffect,l!==null))){c=l=l.next;do{var h=c,y=h.destroy;h=h.tag,y!==void 0&&((h&2)!==0||(h&4)!==0)&&Lf(o,i,y),c=c.next}while(c!==l)}$i(r,i,o);break;case 1:if(!sn&&(Lo(o,i),l=o.stateNode,typeof l.componentWillUnmount=="function"))try{l.props=o.memoizedProps,l.state=o.memoizedState,l.componentWillUnmount()}catch(w){At(o,i,w)}$i(r,i,o);break;case 21:$i(r,i,o);break;case 22:o.mode&1?(sn=(l=sn)||o.memoizedState!==null,$i(r,i,o),sn=l):$i(r,i,o);break;default:$i(r,i,o)}}function Ty(r){var i=r.updateQueue;if(i!==null){r.updateQueue=null;var o=r.stateNode;o===null&&(o=r.stateNode=new c1),i.forEach(function(l){var c=S1.bind(null,r,l);o.has(l)||(o.add(l),l.then(c,c))})}}function yr(r,i){var o=i.deletions;if(o!==null)for(var l=0;l<o.length;l++){var c=o[l];try{var h=r,y=i,w=y;e:for(;w!==null;){switch(w.tag){case 5:Xt=w.stateNode,mr=!1;break e;case 3:Xt=w.stateNode.containerInfo,mr=!0;break e;case 4:Xt=w.stateNode.containerInfo,mr=!0;break e}w=w.return}if(Xt===null)throw Error(t(160));Ny(h,y,c),Xt=null,mr=!1;var I=c.alternate;I!==null&&(I.return=null),c.return=null}catch(P){At(c,i,P)}}if(i.subtreeFlags&12854)for(i=i.child;i!==null;)By(i,r),i=i.sibling}function By(r,i){var o=r.alternate,l=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:if(yr(i,r),Ar(r),l&4){try{ol(3,r,r.return),zu(3,r)}catch(oe){At(r,r.return,oe)}try{ol(5,r,r.return)}catch(oe){At(r,r.return,oe)}}break;case 1:yr(i,r),Ar(r),l&512&&o!==null&&Lo(o,o.return);break;case 5:if(yr(i,r),Ar(r),l&512&&o!==null&&Lo(o,o.return),r.flags&32){var c=r.stateNode;try{_s(c,"")}catch(oe){At(r,r.return,oe)}}if(l&4&&(c=r.stateNode,c!=null)){var h=r.memoizedProps,y=o!==null?o.memoizedProps:h,w=r.type,I=r.updateQueue;if(r.updateQueue=null,I!==null)try{w==="input"&&h.type==="radio"&&h.name!=null&&Gl(c,h),Di(w,y);var P=Di(w,h);for(y=0;y<I.length;y+=2){var $=I[y],W=I[y+1];$==="style"?Oa(c,W):$==="dangerouslySetInnerHTML"?uo(c,W):$==="children"?_s(c,W):V(c,$,W,P)}switch(w){case"input":ao(c,h);break;case"textarea":Da(c,h);break;case"select":var z=c._wrapperState.wasMultiple;c._wrapperState.wasMultiple=!!h.multiple;var J=h.value;J!=null?Ei(c,!!h.multiple,J,!1):z!==!!h.multiple&&(h.defaultValue!=null?Ei(c,!!h.multiple,h.defaultValue,!0):Ei(c,!!h.multiple,h.multiple?[]:"",!1))}c[Ya]=h}catch(oe){At(r,r.return,oe)}}break;case 6:if(yr(i,r),Ar(r),l&4){if(r.stateNode===null)throw Error(t(162));c=r.stateNode,h=r.memoizedProps;try{c.nodeValue=h}catch(oe){At(r,r.return,oe)}}break;case 3:if(yr(i,r),Ar(r),l&4&&o!==null&&o.memoizedState.isDehydrated)try{Ba(i.containerInfo)}catch(oe){At(r,r.return,oe)}break;case 4:yr(i,r),Ar(r);break;case 13:yr(i,r),Ar(r),c=r.child,c.flags&8192&&(h=c.memoizedState!==null,c.stateNode.isHidden=h,!h||c.alternate!==null&&c.alternate.memoizedState!==null||(Bf=gt())),l&4&&Ty(r);break;case 22:if($=o!==null&&o.memoizedState!==null,r.mode&1?(sn=(P=sn)||$,yr(i,r),sn=P):yr(i,r),Ar(r),l&8192){if(P=r.memoizedState!==null,(r.stateNode.isHidden=P)&&!$&&(r.mode&1)!==0)for(ee=r,$=r.child;$!==null;){for(W=ee=$;ee!==null;){switch(z=ee,J=z.child,z.tag){case 0:case 11:case 14:case 15:ol(4,z,z.return);break;case 1:Lo(z,z.return);var se=z.stateNode;if(typeof se.componentWillUnmount=="function"){l=z,o=z.return;try{i=l,se.props=i.memoizedProps,se.state=i.memoizedState,se.componentWillUnmount()}catch(oe){At(l,o,oe)}}break;case 5:Lo(z,z.return);break;case 22:if(z.memoizedState!==null){zy(W);continue}}J!==null?(J.return=z,ee=J):zy(W)}$=$.sibling}e:for($=null,W=r;;){if(W.tag===5){if($===null){$=W;try{c=W.stateNode,P?(h=c.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none"):(w=W.stateNode,I=W.memoizedProps.style,y=I!=null&&I.hasOwnProperty("display")?I.display:null,w.style.display=Ca("display",y))}catch(oe){At(r,r.return,oe)}}}else if(W.tag===6){if($===null)try{W.stateNode.nodeValue=P?"":W.memoizedProps}catch(oe){At(r,r.return,oe)}}else if((W.tag!==22&&W.tag!==23||W.memoizedState===null||W===r)&&W.child!==null){W.child.return=W,W=W.child;continue}if(W===r)break e;for(;W.sibling===null;){if(W.return===null||W.return===r)break e;$===W&&($=null),W=W.return}$===W&&($=null),W.sibling.return=W.return,W=W.sibling}}break;case 19:yr(i,r),Ar(r),l&4&&Ty(r);break;case 21:break;default:yr(i,r),Ar(r)}}function Ar(r){var i=r.flags;if(i&2){try{e:{for(var o=r.return;o!==null;){if(ky(o)){var l=o;break e}o=o.return}throw Error(t(160))}switch(l.tag){case 5:var c=l.stateNode;l.flags&32&&(_s(c,""),l.flags&=-33);var h=Py(r);Pf(r,h,c);break;case 3:case 4:var y=l.stateNode.containerInfo,w=Py(r);kf(r,w,y);break;default:throw Error(t(161))}}catch(I){At(r,r.return,I)}r.flags&=-3}i&4096&&(r.flags&=-4097)}function f1(r,i,o){ee=r,Uy(r)}function Uy(r,i,o){for(var l=(r.mode&1)!==0;ee!==null;){var c=ee,h=c.child;if(c.tag===22&&l){var y=c.memoizedState!==null||ju;if(!y){var w=c.alternate,I=w!==null&&w.memoizedState!==null||sn;w=ju;var P=sn;if(ju=y,(sn=I)&&!P)for(ee=c;ee!==null;)y=ee,I=y.child,y.tag===22&&y.memoizedState!==null?$y(c):I!==null?(I.return=y,ee=I):$y(c);for(;h!==null;)ee=h,Uy(h),h=h.sibling;ee=c,ju=w,sn=P}jy(r)}else(c.subtreeFlags&8772)!==0&&h!==null?(h.return=c,ee=h):jy(r)}}function jy(r){for(;ee!==null;){var i=ee;if((i.flags&8772)!==0){var o=i.alternate;try{if((i.flags&8772)!==0)switch(i.tag){case 0:case 11:case 15:sn||zu(5,i);break;case 1:var l=i.stateNode;if(i.flags&4&&!sn)if(o===null)l.componentDidMount();else{var c=i.elementType===i.type?o.memoizedProps:pr(i.type,o.memoizedProps);l.componentDidUpdate(c,o.memoizedState,l.__reactInternalSnapshotBeforeUpdate)}var h=i.updateQueue;h!==null&&zm(i,h,l);break;case 3:var y=i.updateQueue;if(y!==null){if(o=null,i.child!==null)switch(i.child.tag){case 5:o=i.child.stateNode;break;case 1:o=i.child.stateNode}zm(i,y,o)}break;case 5:var w=i.stateNode;if(o===null&&i.flags&4){o=w;var I=i.memoizedProps;switch(i.type){case"button":case"input":case"select":case"textarea":I.autoFocus&&o.focus();break;case"img":I.src&&(o.src=I.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(i.memoizedState===null){var P=i.alternate;if(P!==null){var $=P.memoizedState;if($!==null){var W=$.dehydrated;W!==null&&Ba(W)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(t(163))}sn||i.flags&512&&Af(i)}catch(z){At(i,i.return,z)}}if(i===r){ee=null;break}if(o=i.sibling,o!==null){o.return=i.return,ee=o;break}ee=i.return}}function zy(r){for(;ee!==null;){var i=ee;if(i===r){ee=null;break}var o=i.sibling;if(o!==null){o.return=i.return,ee=o;break}ee=i.return}}function $y(r){for(;ee!==null;){var i=ee;try{switch(i.tag){case 0:case 11:case 15:var o=i.return;try{zu(4,i)}catch(I){At(i,o,I)}break;case 1:var l=i.stateNode;if(typeof l.componentDidMount=="function"){var c=i.return;try{l.componentDidMount()}catch(I){At(i,c,I)}}var h=i.return;try{Af(i)}catch(I){At(i,h,I)}break;case 5:var y=i.return;try{Af(i)}catch(I){At(i,y,I)}}}catch(I){At(i,i.return,I)}if(i===r){ee=null;break}var w=i.sibling;if(w!==null){w.return=i.return,ee=w;break}ee=i.return}}var h1=Math.ceil,$u=G.ReactCurrentDispatcher,Nf=G.ReactCurrentOwner,qn=G.ReactCurrentBatchConfig,Ge=0,Gt=null,Bt=null,Zt=0,jn=0,Ao=Ti(0),Vt=0,al=null,ks=0,Vu=0,Tf=0,ll=null,xn=null,Bf=0,ko=1/0,oi=null,Hu=!1,Uf=null,Vi=null,Wu=!1,Hi=null,Qu=0,ul=0,jf=null,Ku=-1,qu=0;function dn(){return(Ge&6)!==0?gt():Ku!==-1?Ku:Ku=gt()}function Wi(r){return(r.mode&1)===0?1:(Ge&2)!==0&&Zt!==0?Zt&-Zt:G_.transition!==null?(qu===0&&(qu=Pp()),qu):(r=at,r!==0||(r=window.event,r=r===void 0?16:Hp(r.type)),r)}function gr(r,i,o,l){if(50<ul)throw ul=0,jf=null,Error(t(185));Aa(r,o,l),((Ge&2)===0||r!==Gt)&&(r===Gt&&((Ge&2)===0&&(Vu|=o),Vt===4&&Qi(r,Zt)),Dn(r,l),o===1&&Ge===0&&(i.mode&1)===0&&(ko=gt()+500,bu&&Ui()))}function Dn(r,i){var o=r.callbackNode;GS(r,i);var l=ru(r,r===Gt?Zt:0);if(l===0)o!==null&&dr(o),r.callbackNode=null,r.callbackPriority=0;else if(i=l&-l,r.callbackPriority!==i){if(o!=null&&dr(o),i===1)r.tag===0?Y_(Hy.bind(null,r)):Fm(Hy.bind(null,r)),W_(function(){(Ge&6)===0&&Ui()}),o=null;else{switch(Np(l)){case 1:o=Fi;break;case 4:o=xs;break;case 16:o=Ye;break;case 536870912:o=Ds;break;default:o=Ye}o=Xy(o,Vy.bind(null,r))}r.callbackPriority=i,r.callbackNode=o}}function Vy(r,i){if(Ku=-1,qu=0,(Ge&6)!==0)throw Error(t(327));var o=r.callbackNode;if(Po()&&r.callbackNode!==o)return null;var l=ru(r,r===Gt?Zt:0);if(l===0)return null;if((l&30)!==0||(l&r.expiredLanes)!==0||i)i=Yu(r,l);else{i=l;var c=Ge;Ge|=2;var h=Qy();(Gt!==r||Zt!==i)&&(oi=null,ko=gt()+500,Ns(r,i));do try{y1();break}catch(w){Wy(r,w)}while(!0);rf(),$u.current=h,Ge=c,Bt!==null?i=0:(Gt=null,Zt=0,i=Vt)}if(i!==0){if(i===2&&(c=wd(r),c!==0&&(l=c,i=zf(r,c))),i===1)throw o=al,Ns(r,0),Qi(r,l),Dn(r,gt()),o;if(i===6)Qi(r,l);else{if(c=r.current.alternate,(l&30)===0&&!p1(c)&&(i=Yu(r,l),i===2&&(h=wd(r),h!==0&&(l=h,i=zf(r,h))),i===1))throw o=al,Ns(r,0),Qi(r,l),Dn(r,gt()),o;switch(r.finishedWork=c,r.finishedLanes=l,i){case 0:case 1:throw Error(t(345));case 2:Ts(r,xn,oi);break;case 3:if(Qi(r,l),(l&130023424)===l&&(i=Bf+500-gt(),10<i)){if(ru(r,0)!==0)break;if(c=r.suspendedLanes,(c&l)!==l){dn(),r.pingedLanes|=r.suspendedLanes&c;break}r.timeoutHandle=Qd(Ts.bind(null,r,xn,oi),i);break}Ts(r,xn,oi);break;case 4:if(Qi(r,l),(l&4194240)===l)break;for(i=r.eventTimes,c=-1;0<l;){var y=31-_n(l);h=1<<y,y=i[y],y>c&&(c=y),l&=~h}if(l=c,l=gt()-l,l=(120>l?120:480>l?480:1080>l?1080:1920>l?1920:3e3>l?3e3:4320>l?4320:1960*h1(l/1960))-l,10<l){r.timeoutHandle=Qd(Ts.bind(null,r,xn,oi),l);break}Ts(r,xn,oi);break;case 5:Ts(r,xn,oi);break;default:throw Error(t(329))}}}return Dn(r,gt()),r.callbackNode===o?Vy.bind(null,r):null}function zf(r,i){var o=ll;return r.current.memoizedState.isDehydrated&&(Ns(r,i).flags|=256),r=Yu(r,i),r!==2&&(i=xn,xn=o,i!==null&&$f(i)),r}function $f(r){xn===null?xn=r:xn.push.apply(xn,r)}function p1(r){for(var i=r;;){if(i.flags&16384){var o=i.updateQueue;if(o!==null&&(o=o.stores,o!==null))for(var l=0;l<o.length;l++){var c=o[l],h=c.getSnapshot;c=c.value;try{if(!fr(h(),c))return!1}catch{return!1}}}if(o=i.child,i.subtreeFlags&16384&&o!==null)o.return=i,i=o;else{if(i===r)break;for(;i.sibling===null;){if(i.return===null||i.return===r)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function Qi(r,i){for(i&=~Tf,i&=~Vu,r.suspendedLanes|=i,r.pingedLanes&=~i,r=r.expirationTimes;0<i;){var o=31-_n(i),l=1<<o;r[o]=-1,i&=~l}}function Hy(r){if((Ge&6)!==0)throw Error(t(327));Po();var i=ru(r,0);if((i&1)===0)return Dn(r,gt()),null;var o=Yu(r,i);if(r.tag!==0&&o===2){var l=wd(r);l!==0&&(i=l,o=zf(r,l))}if(o===1)throw o=al,Ns(r,0),Qi(r,i),Dn(r,gt()),o;if(o===6)throw Error(t(345));return r.finishedWork=r.current.alternate,r.finishedLanes=i,Ts(r,xn,oi),Dn(r,gt()),null}function Vf(r,i){var o=Ge;Ge|=1;try{return r(i)}finally{Ge=o,Ge===0&&(ko=gt()+500,bu&&Ui())}}function Ps(r){Hi!==null&&Hi.tag===0&&(Ge&6)===0&&Po();var i=Ge;Ge|=1;var o=qn.transition,l=at;try{if(qn.transition=null,at=1,r)return r()}finally{at=l,qn.transition=o,Ge=i,(Ge&6)===0&&Ui()}}function Hf(){jn=Ao.current,Et(Ao)}function Ns(r,i){r.finishedWork=null,r.finishedLanes=0;var o=r.timeoutHandle;if(o!==-1&&(r.timeoutHandle=-1,H_(o)),Bt!==null)for(o=Bt.return;o!==null;){var l=o;switch(Xd(l),l.tag){case 1:l=l.type.childContextTypes,l!=null&&Su();break;case 3:Ro(),Et(bn),Et(tn),ff();break;case 5:cf(l);break;case 4:Ro();break;case 13:Et(Rt);break;case 19:Et(Rt);break;case 10:sf(l.type._context);break;case 22:case 23:Hf()}o=o.return}if(Gt=r,Bt=r=Ki(r.current,null),Zt=jn=i,Vt=0,al=null,Tf=Vu=ks=0,xn=ll=null,Ms!==null){for(i=0;i<Ms.length;i++)if(o=Ms[i],l=o.interleaved,l!==null){o.interleaved=null;var c=l.next,h=o.pending;if(h!==null){var y=h.next;h.next=c,l.next=y}o.pending=l}Ms=null}return r}function Wy(r,i){do{var o=Bt;try{if(rf(),Lu.current=Nu,Au){for(var l=Mt.memoizedState;l!==null;){var c=l.queue;c!==null&&(c.pending=null),l=l.next}Au=!1}if(As=0,Yt=$t=Mt=null,tl=!1,nl=0,Nf.current=null,o===null||o.return===null){Vt=1,al=i,Bt=null;break}e:{var h=r,y=o.return,w=o,I=i;if(i=Zt,w.flags|=32768,I!==null&&typeof I=="object"&&typeof I.then=="function"){var P=I,$=w,W=$.tag;if(($.mode&1)===0&&(W===0||W===11||W===15)){var z=$.alternate;z?($.updateQueue=z.updateQueue,$.memoizedState=z.memoizedState,$.lanes=z.lanes):($.updateQueue=null,$.memoizedState=null)}var J=yy(y);if(J!==null){J.flags&=-257,gy(J,y,w,h,i),J.mode&1&&my(h,P,i),i=J,I=P;var se=i.updateQueue;if(se===null){var oe=new Set;oe.add(I),i.updateQueue=oe}else se.add(I);break e}else{if((i&1)===0){my(h,P,i),Wf();break e}I=Error(t(426))}}else if(Ot&&w.mode&1){var Pt=yy(y);if(Pt!==null){(Pt.flags&65536)===0&&(Pt.flags|=256),gy(Pt,y,w,h,i),tf(Mo(I,w));break e}}h=I=Mo(I,w),Vt!==4&&(Vt=2),ll===null?ll=[h]:ll.push(h),h=y;do{switch(h.tag){case 3:h.flags|=65536,i&=-i,h.lanes|=i;var R=hy(h,I,i);jm(h,R);break e;case 1:w=I;var x=h.type,L=h.stateNode;if((h.flags&128)===0&&(typeof x.getDerivedStateFromError=="function"||L!==null&&typeof L.componentDidCatch=="function"&&(Vi===null||!Vi.has(L)))){h.flags|=65536,i&=-i,h.lanes|=i;var Q=py(h,w,i);jm(h,Q);break e}}h=h.return}while(h!==null)}qy(o)}catch(le){i=le,Bt===o&&o!==null&&(Bt=o=o.return);continue}break}while(!0)}function Qy(){var r=$u.current;return $u.current=Nu,r===null?Nu:r}function Wf(){(Vt===0||Vt===3||Vt===2)&&(Vt=4),Gt===null||(ks&268435455)===0&&(Vu&268435455)===0||Qi(Gt,Zt)}function Yu(r,i){var o=Ge;Ge|=2;var l=Qy();(Gt!==r||Zt!==i)&&(oi=null,Ns(r,i));do try{m1();break}catch(c){Wy(r,c)}while(!0);if(rf(),Ge=o,$u.current=l,Bt!==null)throw Error(t(261));return Gt=null,Zt=0,Vt}function m1(){for(;Bt!==null;)Ky(Bt)}function y1(){for(;Bt!==null&&!Vn();)Ky(Bt)}function Ky(r){var i=Jy(r.alternate,r,jn);r.memoizedProps=r.pendingProps,i===null?qy(r):Bt=i,Nf.current=null}function qy(r){var i=r;do{var o=i.alternate;if(r=i.return,(i.flags&32768)===0){if(o=l1(o,i,jn),o!==null){Bt=o;return}}else{if(o=u1(o,i),o!==null){o.flags&=32767,Bt=o;return}if(r!==null)r.flags|=32768,r.subtreeFlags=0,r.deletions=null;else{Vt=6,Bt=null;return}}if(i=i.sibling,i!==null){Bt=i;return}Bt=i=r}while(i!==null);Vt===0&&(Vt=5)}function Ts(r,i,o){var l=at,c=qn.transition;try{qn.transition=null,at=1,g1(r,i,o,l)}finally{qn.transition=c,at=l}return null}function g1(r,i,o,l){do Po();while(Hi!==null);if((Ge&6)!==0)throw Error(t(327));o=r.finishedWork;var c=r.finishedLanes;if(o===null)return null;if(r.finishedWork=null,r.finishedLanes=0,o===r.current)throw Error(t(177));r.callbackNode=null,r.callbackPriority=0;var h=o.lanes|o.childLanes;if(JS(r,h),r===Gt&&(Bt=Gt=null,Zt=0),(o.subtreeFlags&2064)===0&&(o.flags&2064)===0||Wu||(Wu=!0,Xy(Ye,function(){return Po(),null})),h=(o.flags&15990)!==0,(o.subtreeFlags&15990)!==0||h){h=qn.transition,qn.transition=null;var y=at;at=1;var w=Ge;Ge|=4,Nf.current=null,d1(r,o),By(o,r),T_(Hd),ou=!!Vd,Hd=Vd=null,r.current=o,f1(o),Ma(),Ge=w,at=y,qn.transition=h}else r.current=o;if(Wu&&(Wu=!1,Hi=r,Qu=c),h=r.pendingLanes,h===0&&(Vi=null),ho(o.stateNode),Dn(r,gt()),i!==null)for(l=r.onRecoverableError,o=0;o<i.length;o++)c=i[o],l(c.value,{componentStack:c.stack,digest:c.digest});if(Hu)throw Hu=!1,r=Uf,Uf=null,r;return(Qu&1)!==0&&r.tag!==0&&Po(),h=r.pendingLanes,(h&1)!==0?r===jf?ul++:(ul=0,jf=r):ul=0,Ui(),null}function Po(){if(Hi!==null){var r=Np(Qu),i=qn.transition,o=at;try{if(qn.transition=null,at=16>r?16:r,Hi===null)var l=!1;else{if(r=Hi,Hi=null,Qu=0,(Ge&6)!==0)throw Error(t(331));var c=Ge;for(Ge|=4,ee=r.current;ee!==null;){var h=ee,y=h.child;if((ee.flags&16)!==0){var w=h.deletions;if(w!==null){for(var I=0;I<w.length;I++){var P=w[I];for(ee=P;ee!==null;){var $=ee;switch($.tag){case 0:case 11:case 15:ol(8,$,h)}var W=$.child;if(W!==null)W.return=$,ee=W;else for(;ee!==null;){$=ee;var z=$.sibling,J=$.return;if(Ay($),$===P){ee=null;break}if(z!==null){z.return=J,ee=z;break}ee=J}}}var se=h.alternate;if(se!==null){var oe=se.child;if(oe!==null){se.child=null;do{var Pt=oe.sibling;oe.sibling=null,oe=Pt}while(oe!==null)}}ee=h}}if((h.subtreeFlags&2064)!==0&&y!==null)y.return=h,ee=y;else e:for(;ee!==null;){if(h=ee,(h.flags&2048)!==0)switch(h.tag){case 0:case 11:case 15:ol(9,h,h.return)}var R=h.sibling;if(R!==null){R.return=h.return,ee=R;break e}ee=h.return}}var x=r.current;for(ee=x;ee!==null;){y=ee;var L=y.child;if((y.subtreeFlags&2064)!==0&&L!==null)L.return=y,ee=L;else e:for(y=x;ee!==null;){if(w=ee,(w.flags&2048)!==0)try{switch(w.tag){case 0:case 11:case 15:zu(9,w)}}catch(le){At(w,w.return,le)}if(w===y){ee=null;break e}var Q=w.sibling;if(Q!==null){Q.return=w.return,ee=Q;break e}ee=w.return}}if(Ge=c,Ui(),nt&&typeof nt.onPostCommitFiberRoot=="function")try{nt.onPostCommitFiberRoot(Fr,r)}catch{}l=!0}return l}finally{at=o,qn.transition=i}}return!1}function Yy(r,i,o){i=Mo(o,i),i=hy(r,i,1),r=zi(r,i,1),i=dn(),r!==null&&(Aa(r,1,i),Dn(r,i))}function At(r,i,o){if(r.tag===3)Yy(r,r,o);else for(;i!==null;){if(i.tag===3){Yy(i,r,o);break}else if(i.tag===1){var l=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Vi===null||!Vi.has(l))){r=Mo(o,r),r=py(i,r,1),i=zi(i,r,1),r=dn(),i!==null&&(Aa(i,1,r),Dn(i,r));break}}i=i.return}}function v1(r,i,o){var l=r.pingCache;l!==null&&l.delete(i),i=dn(),r.pingedLanes|=r.suspendedLanes&o,Gt===r&&(Zt&o)===o&&(Vt===4||Vt===3&&(Zt&130023424)===Zt&&500>gt()-Bf?Ns(r,0):Tf|=o),Dn(r,i)}function Gy(r,i){i===0&&((r.mode&1)===0?i=1:(i=nu,nu<<=1,(nu&130023424)===0&&(nu=4194304)));var o=dn();r=ri(r,i),r!==null&&(Aa(r,i,o),Dn(r,o))}function w1(r){var i=r.memoizedState,o=0;i!==null&&(o=i.retryLane),Gy(r,o)}function S1(r,i){var o=0;switch(r.tag){case 13:var l=r.stateNode,c=r.memoizedState;c!==null&&(o=c.retryLane);break;case 19:l=r.stateNode;break;default:throw Error(t(314))}l!==null&&l.delete(i),Gy(r,o)}var Jy;Jy=function(r,i,o){if(r!==null)if(r.memoizedProps!==i.pendingProps||bn.current)En=!0;else{if((r.lanes&o)===0&&(i.flags&128)===0)return En=!1,a1(r,i,o);En=(r.flags&131072)!==0}else En=!1,Ot&&(i.flags&1048576)!==0&&Rm(i,Eu,i.index);switch(i.lanes=0,i.tag){case 2:var l=i.type;Uu(r,i),r=i.pendingProps;var c=Io(i,tn.current);Fo(i,o),c=mf(null,i,l,r,c,o);var h=yf();return i.flags|=1,typeof c=="object"&&c!==null&&typeof c.render=="function"&&c.$$typeof===void 0?(i.tag=1,i.memoizedState=null,i.updateQueue=null,In(l)?(h=!0,_u(i)):h=!1,i.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,lf(i),c.updater=Tu,i.stateNode=c,c._reactInternals=i,bf(i,l,r,o),i=Df(null,i,l,!0,h,o)):(i.tag=0,Ot&&h&&Jd(i),cn(null,i,c,o),i=i.child),i;case 16:l=i.elementType;e:{switch(Uu(r,i),r=i.pendingProps,c=l._init,l=c(l._payload),i.type=l,c=i.tag=b1(l),r=pr(l,r),c){case 0:i=xf(null,i,l,r,o);break e;case 1:i=Iy(null,i,l,r,o);break e;case 11:i=vy(null,i,l,r,o);break e;case 14:i=wy(null,i,l,pr(l.type,r),o);break e}throw Error(t(306,l,""))}return i;case 0:return l=i.type,c=i.pendingProps,c=i.elementType===l?c:pr(l,c),xf(r,i,l,c,o);case 1:return l=i.type,c=i.pendingProps,c=i.elementType===l?c:pr(l,c),Iy(r,i,l,c,o);case 3:e:{if(Ey(i),r===null)throw Error(t(387));l=i.pendingProps,h=i.memoizedState,c=h.element,Um(r,i),Ru(i,l,null,o);var y=i.memoizedState;if(l=y.element,h.isDehydrated)if(h={element:l,isDehydrated:!1,cache:y.cache,pendingSuspenseBoundaries:y.pendingSuspenseBoundaries,transitions:y.transitions},i.updateQueue.baseState=h,i.memoizedState=h,i.flags&256){c=Mo(Error(t(423)),i),i=xy(r,i,l,o,c);break e}else if(l!==c){c=Mo(Error(t(424)),i),i=xy(r,i,l,o,c);break e}else for(Un=Ni(i.stateNode.containerInfo.firstChild),Bn=i,Ot=!0,hr=null,o=Tm(i,null,l,o),i.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if(Do(),l===c){i=si(r,i,o);break e}cn(r,i,l,o)}i=i.child}return i;case 5:return $m(i),r===null&&ef(i),l=i.type,c=i.pendingProps,h=r!==null?r.memoizedProps:null,y=c.children,Wd(l,c)?y=null:h!==null&&Wd(l,h)&&(i.flags|=32),by(r,i),cn(r,i,y,o),i.child;case 6:return r===null&&ef(i),null;case 13:return Dy(r,i,o);case 4:return uf(i,i.stateNode.containerInfo),l=i.pendingProps,r===null?i.child=Co(i,null,l,o):cn(r,i,l,o),i.child;case 11:return l=i.type,c=i.pendingProps,c=i.elementType===l?c:pr(l,c),vy(r,i,l,c,o);case 7:return cn(r,i,i.pendingProps,o),i.child;case 8:return cn(r,i,i.pendingProps.children,o),i.child;case 12:return cn(r,i,i.pendingProps.children,o),i.child;case 10:e:{if(l=i.type._context,c=i.pendingProps,h=i.memoizedProps,y=c.value,wt(Cu,l._currentValue),l._currentValue=y,h!==null)if(fr(h.value,y)){if(h.children===c.children&&!bn.current){i=si(r,i,o);break e}}else for(h=i.child,h!==null&&(h.return=i);h!==null;){var w=h.dependencies;if(w!==null){y=h.child;for(var I=w.firstContext;I!==null;){if(I.context===l){if(h.tag===1){I=ii(-1,o&-o),I.tag=2;var P=h.updateQueue;if(P!==null){P=P.shared;var $=P.pending;$===null?I.next=I:(I.next=$.next,$.next=I),P.pending=I}}h.lanes|=o,I=h.alternate,I!==null&&(I.lanes|=o),of(h.return,o,i),w.lanes|=o;break}I=I.next}}else if(h.tag===10)y=h.type===i.type?null:h.child;else if(h.tag===18){if(y=h.return,y===null)throw Error(t(341));y.lanes|=o,w=y.alternate,w!==null&&(w.lanes|=o),of(y,o,i),y=h.sibling}else y=h.child;if(y!==null)y.return=h;else for(y=h;y!==null;){if(y===i){y=null;break}if(h=y.sibling,h!==null){h.return=y.return,y=h;break}y=y.return}h=y}cn(r,i,c.children,o),i=i.child}return i;case 9:return c=i.type,l=i.pendingProps.children,Fo(i,o),c=Qn(c),l=l(c),i.flags|=1,cn(r,i,l,o),i.child;case 14:return l=i.type,c=pr(l,i.pendingProps),c=pr(l.type,c),wy(r,i,l,c,o);case 15:return Sy(r,i,i.type,i.pendingProps,o);case 17:return l=i.type,c=i.pendingProps,c=i.elementType===l?c:pr(l,c),Uu(r,i),i.tag=1,In(l)?(r=!0,_u(i)):r=!1,Fo(i,o),dy(i,l,c),bf(i,l,c,o),Df(null,i,l,!0,r,o);case 19:return Oy(r,i,o);case 22:return _y(r,i,o)}throw Error(t(156,i.tag))};function Xy(r,i){return Oi(r,i)}function _1(r,i,o,l){this.tag=r,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Yn(r,i,o,l){return new _1(r,i,o,l)}function Qf(r){return r=r.prototype,!(!r||!r.isReactComponent)}function b1(r){if(typeof r=="function")return Qf(r)?1:0;if(r!=null){if(r=r.$$typeof,r===bt)return 11;if(r===Ze)return 14}return 2}function Ki(r,i){var o=r.alternate;return o===null?(o=Yn(r.tag,i,r.key,r.mode),o.elementType=r.elementType,o.type=r.type,o.stateNode=r.stateNode,o.alternate=r,r.alternate=o):(o.pendingProps=i,o.type=r.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=r.flags&14680064,o.childLanes=r.childLanes,o.lanes=r.lanes,o.child=r.child,o.memoizedProps=r.memoizedProps,o.memoizedState=r.memoizedState,o.updateQueue=r.updateQueue,i=r.dependencies,o.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},o.sibling=r.sibling,o.index=r.index,o.ref=r.ref,o}function Gu(r,i,o,l,c,h){var y=2;if(l=r,typeof r=="function")Qf(r)&&(y=1);else if(typeof r=="string")y=5;else e:switch(r){case Le:return Bs(o.children,c,h,i);case ve:y=8,c|=8;break;case re:return r=Yn(12,o,i,c|2),r.elementType=re,r.lanes=h,r;case yt:return r=Yn(13,o,i,c),r.elementType=yt,r.lanes=h,r;case je:return r=Yn(19,o,i,c),r.elementType=je,r.lanes=h,r;case ze:return Ju(o,c,h,i);default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case Fe:y=10;break e;case mt:y=9;break e;case bt:y=11;break e;case Ze:y=14;break e;case Ne:y=16,l=null;break e}throw Error(t(130,r==null?r:typeof r,""))}return i=Yn(y,o,i,c),i.elementType=r,i.type=l,i.lanes=h,i}function Bs(r,i,o,l){return r=Yn(7,r,l,i),r.lanes=o,r}function Ju(r,i,o,l){return r=Yn(22,r,l,i),r.elementType=ze,r.lanes=o,r.stateNode={isHidden:!1},r}function Kf(r,i,o){return r=Yn(6,r,null,i),r.lanes=o,r}function qf(r,i,o){return i=Yn(4,r.children!==null?r.children:[],r.key,i),i.lanes=o,i.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},i}function I1(r,i,o,l,c){this.tag=i,this.containerInfo=r,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Sd(0),this.expirationTimes=Sd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Sd(0),this.identifierPrefix=l,this.onRecoverableError=c,this.mutableSourceEagerHydrationData=null}function Yf(r,i,o,l,c,h,y,w,I){return r=new I1(r,i,o,w,I),i===1?(i=1,h===!0&&(i|=8)):i=0,h=Yn(3,null,null,i),r.current=h,h.stateNode=r,h.memoizedState={element:l,isDehydrated:o,cache:null,transitions:null,pendingSuspenseBoundaries:null},lf(h),r}function E1(r,i,o){var l=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:M,key:l==null?null:""+l,children:r,containerInfo:i,implementation:o}}function Zy(r){if(!r)return Bi;r=r._reactInternals;e:{if(Je(r)!==r||r.tag!==1)throw Error(t(170));var i=r;do{switch(i.tag){case 3:i=i.stateNode.context;break e;case 1:if(In(i.type)){i=i.stateNode.__reactInternalMemoizedMergedChildContext;break e}}i=i.return}while(i!==null);throw Error(t(171))}if(r.tag===1){var o=r.type;if(In(o))return Cm(r,o,i)}return i}function eg(r,i,o,l,c,h,y,w,I){return r=Yf(o,l,!0,r,c,h,y,w,I),r.context=Zy(null),o=r.current,l=dn(),c=Wi(o),h=ii(l,c),h.callback=i??null,zi(o,h,c),r.current.lanes=c,Aa(r,c,l),Dn(r,l),r}function Xu(r,i,o,l){var c=i.current,h=dn(),y=Wi(c);return o=Zy(o),i.context===null?i.context=o:i.pendingContext=o,i=ii(h,y),i.payload={element:r},l=l===void 0?null:l,l!==null&&(i.callback=l),r=zi(c,i,y),r!==null&&(gr(r,c,y,h),Fu(r,c,y)),y}function Zu(r){if(r=r.current,!r.child)return null;switch(r.child.tag){case 5:return r.child.stateNode;default:return r.child.stateNode}}function tg(r,i){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var o=r.retryLane;r.retryLane=o!==0&&o<i?o:i}}function Gf(r,i){tg(r,i),(r=r.alternate)&&tg(r,i)}function x1(){return null}var ng=typeof reportError=="function"?reportError:function(r){console.error(r)};function Jf(r){this._internalRoot=r}ec.prototype.render=Jf.prototype.render=function(r){var i=this._internalRoot;if(i===null)throw Error(t(409));Xu(r,i,null,null)},ec.prototype.unmount=Jf.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var i=r.containerInfo;Ps(function(){Xu(null,r,null,null)}),i[Zr]=null}};function ec(r){this._internalRoot=r}ec.prototype.unstable_scheduleHydration=function(r){if(r){var i=Up();r={blockedOn:null,target:r,priority:i};for(var o=0;o<Ai.length&&i!==0&&i<Ai[o].priority;o++);Ai.splice(o,0,r),o===0&&$p(r)}};function Xf(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function tc(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11&&(r.nodeType!==8||r.nodeValue!==" react-mount-point-unstable "))}function rg(){}function D1(r,i,o,l,c){if(c){if(typeof l=="function"){var h=l;l=function(){var P=Zu(y);h.call(P)}}var y=eg(i,l,r,0,null,!1,!1,"",rg);return r._reactRootContainer=y,r[Zr]=y.current,Ka(r.nodeType===8?r.parentNode:r),Ps(),y}for(;c=r.lastChild;)r.removeChild(c);if(typeof l=="function"){var w=l;l=function(){var P=Zu(I);w.call(P)}}var I=Yf(r,0,!1,null,null,!1,!1,"",rg);return r._reactRootContainer=I,r[Zr]=I.current,Ka(r.nodeType===8?r.parentNode:r),Ps(function(){Xu(i,I,o,l)}),I}function nc(r,i,o,l,c){var h=o._reactRootContainer;if(h){var y=h;if(typeof c=="function"){var w=c;c=function(){var I=Zu(y);w.call(I)}}Xu(i,y,r,c)}else y=D1(o,i,r,c,l);return Zu(y)}Tp=function(r){switch(r.tag){case 3:var i=r.stateNode;if(i.current.memoizedState.isDehydrated){var o=La(i.pendingLanes);o!==0&&(_d(i,o|1),Dn(i,gt()),(Ge&6)===0&&(ko=gt()+500,Ui()))}break;case 13:Ps(function(){var l=ri(r,1);if(l!==null){var c=dn();gr(l,r,1,c)}}),Gf(r,1)}},bd=function(r){if(r.tag===13){var i=ri(r,134217728);if(i!==null){var o=dn();gr(i,r,134217728,o)}Gf(r,134217728)}},Bp=function(r){if(r.tag===13){var i=Wi(r),o=ri(r,i);if(o!==null){var l=dn();gr(o,r,i,l)}Gf(r,i)}},Up=function(){return at},jp=function(r,i){var o=at;try{return at=r,i()}finally{at=o}},Fa=function(r,i,o){switch(i){case"input":if(ao(r,o),i=o.name,o.type==="radio"&&i!=null){for(o=r;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll("input[name="+JSON.stringify(""+i)+'][type="radio"]'),i=0;i<o.length;i++){var l=o[i];if(l!==r&&l.form===r.form){var c=wu(l);if(!c)throw Error(t(90));Ea(l),ao(l,c)}}}break;case"textarea":Da(r,o);break;case"select":i=o.value,i!=null&&Ei(r,!!o.multiple,i,!1)}},Zl=Vf,eu=Ps;var C1={usingClientEntryPoint:!1,Events:[Ga,_o,wu,Is,Es,Vf]},cl={findFiberByHostInstance:Cs,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},O1={bundleType:cl.bundleType,version:cl.version,rendererPackageName:cl.rendererPackageName,rendererConfig:cl.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:G.ReactCurrentDispatcher,findHostInstanceByFiber:function(r){return r=dt(r),r===null?null:r.stateNode},findFiberByHostInstance:cl.findFiberByHostInstance||x1,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var rc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!rc.isDisabled&&rc.supportsFiber)try{Fr=rc.inject(O1),nt=rc}catch{}}return Cn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=C1,Cn.createPortal=function(r,i){var o=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Xf(i))throw Error(t(200));return E1(r,i,null,o)},Cn.createRoot=function(r,i){if(!Xf(r))throw Error(t(299));var o=!1,l="",c=ng;return i!=null&&(i.unstable_strictMode===!0&&(o=!0),i.identifierPrefix!==void 0&&(l=i.identifierPrefix),i.onRecoverableError!==void 0&&(c=i.onRecoverableError)),i=Yf(r,1,!1,null,null,o,!1,l,c),r[Zr]=i.current,Ka(r.nodeType===8?r.parentNode:r),new Jf(i)},Cn.findDOMNode=function(r){if(r==null)return null;if(r.nodeType===1)return r;var i=r._reactInternals;if(i===void 0)throw typeof r.render=="function"?Error(t(188)):(r=Object.keys(r).join(","),Error(t(268,r)));return r=dt(i),r=r===null?null:r.stateNode,r},Cn.flushSync=function(r){return Ps(r)},Cn.hydrate=function(r,i,o){if(!tc(i))throw Error(t(200));return nc(null,r,i,!0,o)},Cn.hydrateRoot=function(r,i,o){if(!Xf(r))throw Error(t(405));var l=o!=null&&o.hydratedSources||null,c=!1,h="",y=ng;if(o!=null&&(o.unstable_strictMode===!0&&(c=!0),o.identifierPrefix!==void 0&&(h=o.identifierPrefix),o.onRecoverableError!==void 0&&(y=o.onRecoverableError)),i=eg(i,null,r,1,o??null,c,!1,h,y),r[Zr]=i.current,Ka(r),l)for(r=0;r<l.length;r++)o=l[r],c=o._getVersion,c=c(o._source),i.mutableSourceEagerHydrationData==null?i.mutableSourceEagerHydrationData=[o,c]:i.mutableSourceEagerHydrationData.push(o,c);return new ec(i)},Cn.render=function(r,i,o){if(!tc(i))throw Error(t(200));return nc(null,r,i,!1,o)},Cn.unmountComponentAtNode=function(r){if(!tc(r))throw Error(t(40));return r._reactRootContainer?(Ps(function(){nc(null,null,r,!1,function(){r._reactRootContainer=null,r[Zr]=null})}),!0):!1},Cn.unstable_batchedUpdates=Vf,Cn.unstable_renderSubtreeIntoContainer=function(r,i,o,l){if(!tc(o))throw Error(t(200));if(r==null||r._reactInternals===void 0)throw Error(t(38));return nc(r,i,o,!1,l)},Cn.version="18.3.1-next-f1338f8080-20240426",Cn}var fg;function H1(){if(fg)return rh.exports;fg=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}return n(),rh.exports=V1(),rh.exports}var hg;function W1(){if(hg)return sc;hg=1;var n=H1();return sc.createRoot=n.createRoot,sc.hydrateRoot=n.hydrateRoot,sc}var Q1=W1();const K1=Wv(Q1);var _a=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(n){return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},eo=typeof window>"u"||"Deno"in globalThis;function pn(){}function q1(n,e){return typeof n=="function"?n(e):n}function wh(n){return typeof n=="number"&&n>=0&&n!==1/0}function Jv(n,e){return Math.max(n+(e||0)-Date.now(),0)}function hs(n,e){return typeof n=="function"?n(e):n}function Zn(n,e){return typeof n=="function"?n(e):n}function pg(n,e){const{type:t="all",exact:s,fetchStatus:a,predicate:u,queryKey:d,stale:f}=n;if(d){if(s){if(e.queryHash!==Jh(d,e.options))return!1}else if(!Fl(e.queryKey,d))return!1}if(t!=="all"){const p=e.isActive();if(t==="active"&&!p||t==="inactive"&&p)return!1}return!(typeof f=="boolean"&&e.isStale()!==f||a&&a!==e.state.fetchStatus||u&&!u(e))}function mg(n,e){const{exact:t,status:s,predicate:a,mutationKey:u}=n;if(u){if(!e.options.mutationKey)return!1;if(t){if(to(e.options.mutationKey)!==to(u))return!1}else if(!Fl(e.options.mutationKey,u))return!1}return!(s&&e.state.status!==s||a&&!a(e))}function Jh(n,e){return((e==null?void 0:e.queryKeyHashFn)||to)(n)}function to(n){return JSON.stringify(n,(e,t)=>Sh(t)?Object.keys(t).sort().reduce((s,a)=>(s[a]=t[a],s),{}):t)}function Fl(n,e){return n===e?!0:typeof n!=typeof e?!1:n&&e&&typeof n=="object"&&typeof e=="object"?Object.keys(e).every(t=>Fl(n[t],e[t])):!1}function Xv(n,e){if(n===e)return n;const t=yg(n)&&yg(e);if(t||Sh(n)&&Sh(e)){const s=t?n:Object.keys(n),a=s.length,u=t?e:Object.keys(e),d=u.length,f=t?[]:{},p=new Set(s);let m=0;for(let g=0;g<d;g++){const v=t?g:u[g];(!t&&p.has(v)||t)&&n[v]===void 0&&e[v]===void 0?(f[v]=void 0,m++):(f[v]=Xv(n[v],e[v]),f[v]===n[v]&&n[v]!==void 0&&m++)}return a===d&&m===a?n:f}return e}function Oc(n,e){if(!e||Object.keys(n).length!==Object.keys(e).length)return!1;for(const t in n)if(n[t]!==e[t])return!1;return!0}function yg(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function Sh(n){if(!gg(n))return!1;const e=n.constructor;if(e===void 0)return!0;const t=e.prototype;return!(!gg(t)||!t.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function gg(n){return Object.prototype.toString.call(n)==="[object Object]"}function Y1(n){return new Promise(e=>{setTimeout(e,n)})}function _h(n,e,t){return typeof t.structuralSharing=="function"?t.structuralSharing(n,e):t.structuralSharing!==!1?Xv(n,e):e}function G1(n,e,t=0){const s=[...n,e];return t&&s.length>t?s.slice(1):s}function J1(n,e,t=0){const s=[e,...n];return t&&s.length>t?s.slice(0,-1):s}var Xh=Symbol();function Zv(n,e){return!n.queryFn&&(e!=null&&e.initialPromise)?()=>e.initialPromise:!n.queryFn||n.queryFn===Xh?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}function e0(n,e){return typeof n=="function"?n(...e):!!n}var Hs,ns,ra,Pv,X1=(Pv=class extends _a{constructor(){super();pe(this,Hs);pe(this,ns);pe(this,ra);X(this,ra,e=>{if(!eo&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}})}onSubscribe(){b(this,ns)||this.setEventListener(b(this,ra))}onUnsubscribe(){var e;this.hasListeners()||((e=b(this,ns))==null||e.call(this),X(this,ns,void 0))}setEventListener(e){var t;X(this,ra,e),(t=b(this,ns))==null||t.call(this),X(this,ns,e(s=>{typeof s=="boolean"?this.setFocused(s):this.onFocus()}))}setFocused(e){b(this,Hs)!==e&&(X(this,Hs,e),this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){var e;return typeof b(this,Hs)=="boolean"?b(this,Hs):((e=globalThis.document)==null?void 0:e.visibilityState)!=="hidden"}},Hs=new WeakMap,ns=new WeakMap,ra=new WeakMap,Pv),Zh=new X1,ia,rs,sa,Nv,Z1=(Nv=class extends _a{constructor(){super();pe(this,ia,!0);pe(this,rs);pe(this,sa);X(this,sa,e=>{if(!eo&&window.addEventListener){const t=()=>e(!0),s=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",s)}}})}onSubscribe(){b(this,rs)||this.setEventListener(b(this,sa))}onUnsubscribe(){var e;this.hasListeners()||((e=b(this,rs))==null||e.call(this),X(this,rs,void 0))}setEventListener(e){var t;X(this,sa,e),(t=b(this,rs))==null||t.call(this),X(this,rs,e(this.setOnline.bind(this)))}setOnline(e){b(this,ia)!==e&&(X(this,ia,e),this.listeners.forEach(s=>{s(e)}))}isOnline(){return b(this,ia)}},ia=new WeakMap,rs=new WeakMap,sa=new WeakMap,Nv),Fc=new Z1;function bh(){let n,e;const t=new Promise((a,u)=>{n=a,e=u});t.status="pending",t.catch(()=>{});function s(a){Object.assign(t,a),delete t.resolve,delete t.reject}return t.resolve=a=>{s({status:"fulfilled",value:a}),n(a)},t.reject=a=>{s({status:"rejected",reason:a}),e(a)},t}function eb(n){return Math.min(1e3*2**n,3e4)}function t0(n){return(n??"online")==="online"?Fc.isOnline():!0}var n0=class extends Error{constructor(n){super("CancelledError"),this.revert=n==null?void 0:n.revert,this.silent=n==null?void 0:n.silent}};function hc(n){return n instanceof n0}function r0(n){let e=!1,t=0,s=!1,a;const u=bh(),d=A=>{var T;s||(S(new n0(A)),(T=n.abort)==null||T.call(n))},f=()=>{e=!0},p=()=>{e=!1},m=()=>Zh.isFocused()&&(n.networkMode==="always"||Fc.isOnline())&&n.canRun(),g=()=>t0(n.networkMode)&&n.canRun(),v=A=>{var T;s||(s=!0,(T=n.onSuccess)==null||T.call(n,A),a==null||a(),u.resolve(A))},S=A=>{var T;s||(s=!0,(T=n.onError)==null||T.call(n,A),a==null||a(),u.reject(A))},E=()=>new Promise(A=>{var T;a=B=>{(s||m())&&A(B)},(T=n.onPause)==null||T.call(n)}).then(()=>{var A;a=void 0,s||(A=n.onContinue)==null||A.call(n)}),k=()=>{if(s)return;let A;const T=t===0?n.initialPromise:void 0;try{A=T??n.fn()}catch(B){A=Promise.reject(B)}Promise.resolve(A).then(v).catch(B=>{var M;if(s)return;const Z=n.retry??(eo?0:3),V=n.retryDelay??eb,G=typeof V=="function"?V(t,B):V,te=Z===!0||typeof Z=="number"&&t<Z||typeof Z=="function"&&Z(t,B);if(e||!te){S(B);return}t++,(M=n.onFail)==null||M.call(n,t,B),Y1(G).then(()=>m()?void 0:E()).then(()=>{e?S(B):k()})})};return{promise:u,cancel:d,continue:()=>(a==null||a(),u),cancelRetry:f,continueRetry:p,canStart:g,start:()=>(g()?k():E().then(k),u)}}var tb=n=>setTimeout(n,0);function nb(){let n=[],e=0,t=f=>{f()},s=f=>{f()},a=tb;const u=f=>{e?n.push(f):a(()=>{t(f)})},d=()=>{const f=n;n=[],f.length&&a(()=>{s(()=>{f.forEach(p=>{t(p)})})})};return{batch:f=>{let p;e++;try{p=f()}finally{e--,e||d()}return p},batchCalls:f=>(...p)=>{u(()=>{f(...p)})},schedule:u,setNotifyFunction:f=>{t=f},setBatchNotifyFunction:f=>{s=f},setScheduler:f=>{a=f}}}var Ht=nb(),Ws,Tv,i0=(Tv=class{constructor(){pe(this,Ws)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),wh(this.gcTime)&&X(this,Ws,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(eo?1/0:300*1e3))}clearGcTimeout(){b(this,Ws)&&(clearTimeout(b(this,Ws)),X(this,Ws,void 0))}},Ws=new WeakMap,Tv),oa,Qs,Jn,Ks,on,Bl,qs,wr,li,Bv,rb=(Bv=class extends i0{constructor(e){super();pe(this,wr);pe(this,oa);pe(this,Qs);pe(this,Jn);pe(this,Ks);pe(this,on);pe(this,Bl);pe(this,qs);X(this,qs,!1),X(this,Bl,e.defaultOptions),this.setOptions(e.options),this.observers=[],X(this,Ks,e.client),X(this,Jn,b(this,Ks).getQueryCache()),this.queryKey=e.queryKey,this.queryHash=e.queryHash,X(this,oa,ib(this.options)),this.state=e.state??b(this,oa),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return(e=b(this,on))==null?void 0:e.promise}setOptions(e){this.options={...b(this,Bl),...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&b(this,Jn).remove(this)}setData(e,t){const s=_h(this.state.data,e,this.options);return Ue(this,wr,li).call(this,{data:s,type:"success",dataUpdatedAt:t==null?void 0:t.updatedAt,manual:t==null?void 0:t.manual}),s}setState(e,t){Ue(this,wr,li).call(this,{type:"setState",state:e,setStateOptions:t})}cancel(e){var s,a;const t=(s=b(this,on))==null?void 0:s.promise;return(a=b(this,on))==null||a.cancel(e),t?t.then(pn).catch(pn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(b(this,oa))}isActive(){return this.observers.some(e=>Zn(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Xh||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>hs(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!Jv(this.state.dataUpdatedAt,e)}onFocus(){var t;const e=this.observers.find(s=>s.shouldFetchOnWindowFocus());e==null||e.refetch({cancelRefetch:!1}),(t=b(this,on))==null||t.continue()}onOnline(){var t;const e=this.observers.find(s=>s.shouldFetchOnReconnect());e==null||e.refetch({cancelRefetch:!1}),(t=b(this,on))==null||t.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),b(this,Jn).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(b(this,on)&&(b(this,qs)?b(this,on).cancel({revert:!0}):b(this,on).cancelRetry()),this.scheduleGc()),b(this,Jn).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Ue(this,wr,li).call(this,{type:"invalidate"})}fetch(e,t){var m,g,v;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(t!=null&&t.cancelRefetch))this.cancel({silent:!0});else if(b(this,on))return b(this,on).continueRetry(),b(this,on).promise}if(e&&this.setOptions(e),!this.options.queryFn){const S=this.observers.find(E=>E.options.queryFn);S&&this.setOptions(S.options)}const s=new AbortController,a=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>(X(this,qs,!0),s.signal)})},u=()=>{const S=Zv(this.options,t),k=(()=>{const A={client:b(this,Ks),queryKey:this.queryKey,meta:this.meta};return a(A),A})();return X(this,qs,!1),this.options.persister?this.options.persister(S,k,this):S(k)},f=(()=>{const S={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:b(this,Ks),state:this.state,fetchFn:u};return a(S),S})();(m=this.options.behavior)==null||m.onFetch(f,this),X(this,Qs,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((g=f.fetchOptions)==null?void 0:g.meta))&&Ue(this,wr,li).call(this,{type:"fetch",meta:(v=f.fetchOptions)==null?void 0:v.meta});const p=S=>{var E,k,A,T;hc(S)&&S.silent||Ue(this,wr,li).call(this,{type:"error",error:S}),hc(S)||((k=(E=b(this,Jn).config).onError)==null||k.call(E,S,this),(T=(A=b(this,Jn).config).onSettled)==null||T.call(A,this.state.data,S,this)),this.scheduleGc()};return X(this,on,r0({initialPromise:t==null?void 0:t.initialPromise,fn:f.fetchFn,abort:s.abort.bind(s),onSuccess:S=>{var E,k,A,T;if(S===void 0){p(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(S)}catch(B){p(B);return}(k=(E=b(this,Jn).config).onSuccess)==null||k.call(E,S,this),(T=(A=b(this,Jn).config).onSettled)==null||T.call(A,S,this.state.error,this),this.scheduleGc()},onError:p,onFail:(S,E)=>{Ue(this,wr,li).call(this,{type:"failed",failureCount:S,error:E})},onPause:()=>{Ue(this,wr,li).call(this,{type:"pause"})},onContinue:()=>{Ue(this,wr,li).call(this,{type:"continue"})},retry:f.options.retry,retryDelay:f.options.retryDelay,networkMode:f.options.networkMode,canRun:()=>!0})),b(this,on).start()}},oa=new WeakMap,Qs=new WeakMap,Jn=new WeakMap,Ks=new WeakMap,on=new WeakMap,Bl=new WeakMap,qs=new WeakMap,wr=new WeakSet,li=function(e){const t=s=>{switch(e.type){case"failed":return{...s,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...s0(s.data,this.options),fetchMeta:e.meta??null};case"success":return X(this,Qs,void 0),{...s,data:e.data,dataUpdateCount:s.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const a=e.error;return hc(a)&&a.revert&&b(this,Qs)?{...b(this,Qs),fetchStatus:"idle"}:{...s,error:a,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...e.state}}};this.state=t(this.state),Ht.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),b(this,Jn).notify({query:this,type:"updated",action:e})})},Bv);function s0(n,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:t0(e.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function ib(n){const e=typeof n.initialData=="function"?n.initialData():n.initialData,t=e!==void 0,s=t?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:t?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:t?"success":"pending",fetchStatus:"idle"}}var Ur,Uv,o0=(Uv=class extends _a{constructor(e={}){super();pe(this,Ur);this.config=e,X(this,Ur,new Map)}build(e,t,s){const a=t.queryKey,u=t.queryHash??Jh(a,t);let d=this.get(u);return d||(d=new rb({client:e,queryKey:a,queryHash:u,options:e.defaultQueryOptions(t),state:s,defaultOptions:e.getQueryDefaults(a)}),this.add(d)),d}add(e){b(this,Ur).has(e.queryHash)||(b(this,Ur).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=b(this,Ur).get(e.queryHash);t&&(e.destroy(),t===e&&b(this,Ur).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Ht.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return b(this,Ur).get(e)}getAll(){return[...b(this,Ur).values()]}find(e){const t={exact:!0,...e};return this.getAll().find(s=>pg(t,s))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(s=>pg(e,s)):t}notify(e){Ht.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Ht.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Ht.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Ur=new WeakMap,Uv),jr,fn,Ys,zr,Gi,jv,sb=(jv=class extends i0{constructor(e){super();pe(this,zr);pe(this,jr);pe(this,fn);pe(this,Ys);this.mutationId=e.mutationId,X(this,fn,e.mutationCache),X(this,jr,[]),this.state=e.state||a0(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){b(this,jr).includes(e)||(b(this,jr).push(e),this.clearGcTimeout(),b(this,fn).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){X(this,jr,b(this,jr).filter(t=>t!==e)),this.scheduleGc(),b(this,fn).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){b(this,jr).length||(this.state.status==="pending"?this.scheduleGc():b(this,fn).remove(this))}continue(){var e;return((e=b(this,Ys))==null?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var u,d,f,p,m,g,v,S,E,k,A,T,B,Z,V,G,te,M,Le,ve;const t=()=>{Ue(this,zr,Gi).call(this,{type:"continue"})};X(this,Ys,r0({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(re,Fe)=>{Ue(this,zr,Gi).call(this,{type:"failed",failureCount:re,error:Fe})},onPause:()=>{Ue(this,zr,Gi).call(this,{type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>b(this,fn).canRun(this)}));const s=this.state.status==="pending",a=!b(this,Ys).canStart();try{if(s)t();else{Ue(this,zr,Gi).call(this,{type:"pending",variables:e,isPaused:a}),await((d=(u=b(this,fn).config).onMutate)==null?void 0:d.call(u,e,this));const Fe=await((p=(f=this.options).onMutate)==null?void 0:p.call(f,e));Fe!==this.state.context&&Ue(this,zr,Gi).call(this,{type:"pending",context:Fe,variables:e,isPaused:a})}const re=await b(this,Ys).start();return await((g=(m=b(this,fn).config).onSuccess)==null?void 0:g.call(m,re,e,this.state.context,this)),await((S=(v=this.options).onSuccess)==null?void 0:S.call(v,re,e,this.state.context)),await((k=(E=b(this,fn).config).onSettled)==null?void 0:k.call(E,re,null,this.state.variables,this.state.context,this)),await((T=(A=this.options).onSettled)==null?void 0:T.call(A,re,null,e,this.state.context)),Ue(this,zr,Gi).call(this,{type:"success",data:re}),re}catch(re){try{throw await((Z=(B=b(this,fn).config).onError)==null?void 0:Z.call(B,re,e,this.state.context,this)),await((G=(V=this.options).onError)==null?void 0:G.call(V,re,e,this.state.context)),await((M=(te=b(this,fn).config).onSettled)==null?void 0:M.call(te,void 0,re,this.state.variables,this.state.context,this)),await((ve=(Le=this.options).onSettled)==null?void 0:ve.call(Le,void 0,re,e,this.state.context)),re}finally{Ue(this,zr,Gi).call(this,{type:"error",error:re})}}finally{b(this,fn).runNext(this)}}},jr=new WeakMap,fn=new WeakMap,Ys=new WeakMap,zr=new WeakSet,Gi=function(e){const t=s=>{switch(e.type){case"failed":return{...s,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"pending":return{...s,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{...s,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:e.error,failureCount:s.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),Ht.batch(()=>{b(this,jr).forEach(s=>{s.onMutationUpdate(e)}),b(this,fn).notify({mutation:this,type:"updated",action:e})})},jv);function a0(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var hi,Sr,Ul,zv,ob=(zv=class extends _a{constructor(e={}){super();pe(this,hi);pe(this,Sr);pe(this,Ul);this.config=e,X(this,hi,new Set),X(this,Sr,new Map),X(this,Ul,0)}build(e,t,s){const a=new sb({mutationCache:this,mutationId:++ic(this,Ul)._,options:e.defaultMutationOptions(t),state:s});return this.add(a),a}add(e){b(this,hi).add(e);const t=oc(e);if(typeof t=="string"){const s=b(this,Sr).get(t);s?s.push(e):b(this,Sr).set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(b(this,hi).delete(e)){const t=oc(e);if(typeof t=="string"){const s=b(this,Sr).get(t);if(s)if(s.length>1){const a=s.indexOf(e);a!==-1&&s.splice(a,1)}else s[0]===e&&b(this,Sr).delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=oc(e);if(typeof t=="string"){const s=b(this,Sr).get(t),a=s==null?void 0:s.find(u=>u.state.status==="pending");return!a||a===e}else return!0}runNext(e){var s;const t=oc(e);if(typeof t=="string"){const a=(s=b(this,Sr).get(t))==null?void 0:s.find(u=>u!==e&&u.state.isPaused);return(a==null?void 0:a.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Ht.batch(()=>{b(this,hi).forEach(e=>{this.notify({type:"removed",mutation:e})}),b(this,hi).clear(),b(this,Sr).clear()})}getAll(){return Array.from(b(this,hi))}find(e){const t={exact:!0,...e};return this.getAll().find(s=>mg(t,s))}findAll(e={}){return this.getAll().filter(t=>mg(e,t))}notify(e){Ht.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return Ht.batch(()=>Promise.all(e.map(t=>t.continue().catch(pn))))}},hi=new WeakMap,Sr=new WeakMap,Ul=new WeakMap,zv);function oc(n){var e;return(e=n.options.scope)==null?void 0:e.id}function vg(n){return{onFetch:(e,t)=>{var g,v,S,E,k;const s=e.options,a=(S=(v=(g=e.fetchOptions)==null?void 0:g.meta)==null?void 0:v.fetchMore)==null?void 0:S.direction,u=((E=e.state.data)==null?void 0:E.pages)||[],d=((k=e.state.data)==null?void 0:k.pageParams)||[];let f={pages:[],pageParams:[]},p=0;const m=async()=>{let A=!1;const T=V=>{Object.defineProperty(V,"signal",{enumerable:!0,get:()=>(e.signal.aborted?A=!0:e.signal.addEventListener("abort",()=>{A=!0}),e.signal)})},B=Zv(e.options,e.fetchOptions),Z=async(V,G,te)=>{if(A)return Promise.reject();if(G==null&&V.pages.length)return Promise.resolve(V);const Le=(()=>{const mt={client:e.client,queryKey:e.queryKey,pageParam:G,direction:te?"backward":"forward",meta:e.options.meta};return T(mt),mt})(),ve=await B(Le),{maxPages:re}=e.options,Fe=te?J1:G1;return{pages:Fe(V.pages,ve,re),pageParams:Fe(V.pageParams,G,re)}};if(a&&u.length){const V=a==="backward",G=V?ab:wg,te={pages:u,pageParams:d},M=G(s,te);f=await Z(te,M,V)}else{const V=n??u.length;do{const G=p===0?d[0]??s.initialPageParam:wg(s,f);if(p>0&&G==null)break;f=await Z(f,G),p++}while(p<V)}return f};e.options.persister?e.fetchFn=()=>{var A,T;return(T=(A=e.options).persister)==null?void 0:T.call(A,m,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},t)}:e.fetchFn=m}}}function wg(n,{pages:e,pageParams:t}){const s=e.length-1;return e.length>0?n.getNextPageParam(e[s],e,t[s],t):void 0}function ab(n,{pages:e,pageParams:t}){var s;return e.length>0?(s=n.getPreviousPageParam)==null?void 0:s.call(n,e[0],e,t[0],t):void 0}var kt,is,ss,aa,la,os,ua,ca,$v,lb=($v=class{constructor(n={}){pe(this,kt);pe(this,is);pe(this,ss);pe(this,aa);pe(this,la);pe(this,os);pe(this,ua);pe(this,ca);X(this,kt,n.queryCache||new o0),X(this,is,n.mutationCache||new ob),X(this,ss,n.defaultOptions||{}),X(this,aa,new Map),X(this,la,new Map),X(this,os,0)}mount(){ic(this,os)._++,b(this,os)===1&&(X(this,ua,Zh.subscribe(async n=>{n&&(await this.resumePausedMutations(),b(this,kt).onFocus())})),X(this,ca,Fc.subscribe(async n=>{n&&(await this.resumePausedMutations(),b(this,kt).onOnline())})))}unmount(){var n,e;ic(this,os)._--,b(this,os)===0&&((n=b(this,ua))==null||n.call(this),X(this,ua,void 0),(e=b(this,ca))==null||e.call(this),X(this,ca,void 0))}isFetching(n){return b(this,kt).findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return b(this,is).findAll({...n,status:"pending"}).length}getQueryData(n){var t;const e=this.defaultQueryOptions({queryKey:n});return(t=b(this,kt).get(e.queryHash))==null?void 0:t.state.data}ensureQueryData(n){const e=this.defaultQueryOptions(n),t=b(this,kt).build(this,e),s=t.state.data;return s===void 0?this.fetchQuery(n):(n.revalidateIfStale&&t.isStaleByTime(hs(e.staleTime,t))&&this.prefetchQuery(e),Promise.resolve(s))}getQueriesData(n){return b(this,kt).findAll(n).map(({queryKey:e,state:t})=>{const s=t.data;return[e,s]})}setQueryData(n,e,t){const s=this.defaultQueryOptions({queryKey:n}),a=b(this,kt).get(s.queryHash),u=a==null?void 0:a.state.data,d=q1(e,u);if(d!==void 0)return b(this,kt).build(this,s).setData(d,{...t,manual:!0})}setQueriesData(n,e,t){return Ht.batch(()=>b(this,kt).findAll(n).map(({queryKey:s})=>[s,this.setQueryData(s,e,t)]))}getQueryState(n){var t;const e=this.defaultQueryOptions({queryKey:n});return(t=b(this,kt).get(e.queryHash))==null?void 0:t.state}removeQueries(n){const e=b(this,kt);Ht.batch(()=>{e.findAll(n).forEach(t=>{e.remove(t)})})}resetQueries(n,e){const t=b(this,kt);return Ht.batch(()=>(t.findAll(n).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...n},e)))}cancelQueries(n,e={}){const t={revert:!0,...e},s=Ht.batch(()=>b(this,kt).findAll(n).map(a=>a.cancel(t)));return Promise.all(s).then(pn).catch(pn)}invalidateQueries(n,e={}){return Ht.batch(()=>(b(this,kt).findAll(n).forEach(t=>{t.invalidate()}),(n==null?void 0:n.refetchType)==="none"?Promise.resolve():this.refetchQueries({...n,type:(n==null?void 0:n.refetchType)??(n==null?void 0:n.type)??"active"},e)))}refetchQueries(n,e={}){const t={...e,cancelRefetch:e.cancelRefetch??!0},s=Ht.batch(()=>b(this,kt).findAll(n).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let u=a.fetch(void 0,t);return t.throwOnError||(u=u.catch(pn)),a.state.fetchStatus==="paused"?Promise.resolve():u}));return Promise.all(s).then(pn)}fetchQuery(n){const e=this.defaultQueryOptions(n);e.retry===void 0&&(e.retry=!1);const t=b(this,kt).build(this,e);return t.isStaleByTime(hs(e.staleTime,t))?t.fetch(e):Promise.resolve(t.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(pn).catch(pn)}fetchInfiniteQuery(n){return n.behavior=vg(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(pn).catch(pn)}ensureInfiniteQueryData(n){return n.behavior=vg(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return Fc.isOnline()?b(this,is).resumePausedMutations():Promise.resolve()}getQueryCache(){return b(this,kt)}getMutationCache(){return b(this,is)}getDefaultOptions(){return b(this,ss)}setDefaultOptions(n){X(this,ss,n)}setQueryDefaults(n,e){b(this,aa).set(to(n),{queryKey:n,defaultOptions:e})}getQueryDefaults(n){const e=[...b(this,aa).values()],t={};return e.forEach(s=>{Fl(n,s.queryKey)&&Object.assign(t,s.defaultOptions)}),t}setMutationDefaults(n,e){b(this,la).set(to(n),{mutationKey:n,defaultOptions:e})}getMutationDefaults(n){const e=[...b(this,la).values()],t={};return e.forEach(s=>{Fl(n,s.mutationKey)&&Object.assign(t,s.defaultOptions)}),t}defaultQueryOptions(n){if(n._defaulted)return n;const e={...b(this,ss).queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return e.queryHash||(e.queryHash=Jh(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===Xh&&(e.enabled=!1),e}defaultMutationOptions(n){return n!=null&&n._defaulted?n:{...b(this,ss).mutations,...(n==null?void 0:n.mutationKey)&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){b(this,kt).clear(),b(this,is).clear()}},kt=new WeakMap,is=new WeakMap,ss=new WeakMap,aa=new WeakMap,la=new WeakMap,os=new WeakMap,ua=new WeakMap,ca=new WeakMap,$v),Fn,Ke,jl,hn,Gs,da,as,ls,zl,fa,ha,Js,Xs,us,pa,st,gl,Ih,Eh,xh,Dh,Ch,Oh,Fh,l0,Vv,ub=(Vv=class extends _a{constructor(e,t){super();pe(this,st);pe(this,Fn);pe(this,Ke);pe(this,jl);pe(this,hn);pe(this,Gs);pe(this,da);pe(this,as);pe(this,ls);pe(this,zl);pe(this,fa);pe(this,ha);pe(this,Js);pe(this,Xs);pe(this,us);pe(this,pa,new Set);this.options=t,X(this,Fn,e),X(this,ls,null),X(this,as,bh()),this.options.experimental_prefetchInRender||b(this,as).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(t)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(b(this,Ke).addObserver(this),Sg(b(this,Ke),this.options)?Ue(this,st,gl).call(this):this.updateResult(),Ue(this,st,Dh).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Rh(b(this,Ke),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Rh(b(this,Ke),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Ue(this,st,Ch).call(this),Ue(this,st,Oh).call(this),b(this,Ke).removeObserver(this)}setOptions(e){const t=this.options,s=b(this,Ke);if(this.options=b(this,Fn).defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Zn(this.options.enabled,b(this,Ke))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Ue(this,st,Fh).call(this),b(this,Ke).setOptions(this.options),t._defaulted&&!Oc(this.options,t)&&b(this,Fn).getQueryCache().notify({type:"observerOptionsUpdated",query:b(this,Ke),observer:this});const a=this.hasListeners();a&&_g(b(this,Ke),s,this.options,t)&&Ue(this,st,gl).call(this),this.updateResult(),a&&(b(this,Ke)!==s||Zn(this.options.enabled,b(this,Ke))!==Zn(t.enabled,b(this,Ke))||hs(this.options.staleTime,b(this,Ke))!==hs(t.staleTime,b(this,Ke)))&&Ue(this,st,Ih).call(this);const u=Ue(this,st,Eh).call(this);a&&(b(this,Ke)!==s||Zn(this.options.enabled,b(this,Ke))!==Zn(t.enabled,b(this,Ke))||u!==b(this,us))&&Ue(this,st,xh).call(this,u)}getOptimisticResult(e){const t=b(this,Fn).getQueryCache().build(b(this,Fn),e),s=this.createResult(t,e);return db(this,s)&&(X(this,hn,s),X(this,da,this.options),X(this,Gs,b(this,Ke).state)),s}getCurrentResult(){return b(this,hn)}trackResult(e,t){return new Proxy(e,{get:(s,a)=>(this.trackProp(a),t==null||t(a),Reflect.get(s,a))})}trackProp(e){b(this,pa).add(e)}getCurrentQuery(){return b(this,Ke)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=b(this,Fn).defaultQueryOptions(e),s=b(this,Fn).getQueryCache().build(b(this,Fn),t);return s.fetch().then(()=>this.createResult(s,t))}fetch(e){return Ue(this,st,gl).call(this,{...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),b(this,hn)))}createResult(e,t){var re;const s=b(this,Ke),a=this.options,u=b(this,hn),d=b(this,Gs),f=b(this,da),m=e!==s?e.state:b(this,jl),{state:g}=e;let v={...g},S=!1,E;if(t._optimisticResults){const Fe=this.hasListeners(),mt=!Fe&&Sg(e,t),bt=Fe&&_g(e,s,t,a);(mt||bt)&&(v={...v,...s0(g.data,e.options)}),t._optimisticResults==="isRestoring"&&(v.fetchStatus="idle")}let{error:k,errorUpdatedAt:A,status:T}=v;E=v.data;let B=!1;if(t.placeholderData!==void 0&&E===void 0&&T==="pending"){let Fe;u!=null&&u.isPlaceholderData&&t.placeholderData===(f==null?void 0:f.placeholderData)?(Fe=u.data,B=!0):Fe=typeof t.placeholderData=="function"?t.placeholderData((re=b(this,ha))==null?void 0:re.state.data,b(this,ha)):t.placeholderData,Fe!==void 0&&(T="success",E=_h(u==null?void 0:u.data,Fe,t),S=!0)}if(t.select&&E!==void 0&&!B)if(u&&E===(d==null?void 0:d.data)&&t.select===b(this,zl))E=b(this,fa);else try{X(this,zl,t.select),E=t.select(E),E=_h(u==null?void 0:u.data,E,t),X(this,fa,E),X(this,ls,null)}catch(Fe){X(this,ls,Fe)}b(this,ls)&&(k=b(this,ls),E=b(this,fa),A=Date.now(),T="error");const Z=v.fetchStatus==="fetching",V=T==="pending",G=T==="error",te=V&&Z,M=E!==void 0,ve={status:T,fetchStatus:v.fetchStatus,isPending:V,isSuccess:T==="success",isError:G,isInitialLoading:te,isLoading:te,data:E,dataUpdatedAt:v.dataUpdatedAt,error:k,errorUpdatedAt:A,failureCount:v.fetchFailureCount,failureReason:v.fetchFailureReason,errorUpdateCount:v.errorUpdateCount,isFetched:v.dataUpdateCount>0||v.errorUpdateCount>0,isFetchedAfterMount:v.dataUpdateCount>m.dataUpdateCount||v.errorUpdateCount>m.errorUpdateCount,isFetching:Z,isRefetching:Z&&!V,isLoadingError:G&&!M,isPaused:v.fetchStatus==="paused",isPlaceholderData:S,isRefetchError:G&&M,isStale:ep(e,t),refetch:this.refetch,promise:b(this,as),isEnabled:Zn(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const Fe=yt=>{ve.status==="error"?yt.reject(ve.error):ve.data!==void 0&&yt.resolve(ve.data)},mt=()=>{const yt=X(this,as,ve.promise=bh());Fe(yt)},bt=b(this,as);switch(bt.status){case"pending":e.queryHash===s.queryHash&&Fe(bt);break;case"fulfilled":(ve.status==="error"||ve.data!==bt.value)&&mt();break;case"rejected":(ve.status!=="error"||ve.error!==bt.reason)&&mt();break}}return ve}updateResult(){const e=b(this,hn),t=this.createResult(b(this,Ke),this.options);if(X(this,Gs,b(this,Ke).state),X(this,da,this.options),b(this,Gs).data!==void 0&&X(this,ha,b(this,Ke)),Oc(t,e))return;X(this,hn,t);const s=()=>{if(!e)return!0;const{notifyOnChangeProps:a}=this.options,u=typeof a=="function"?a():a;if(u==="all"||!u&&!b(this,pa).size)return!0;const d=new Set(u??b(this,pa));return this.options.throwOnError&&d.add("error"),Object.keys(b(this,hn)).some(f=>{const p=f;return b(this,hn)[p]!==e[p]&&d.has(p)})};Ue(this,st,l0).call(this,{listeners:s()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Ue(this,st,Dh).call(this)}},Fn=new WeakMap,Ke=new WeakMap,jl=new WeakMap,hn=new WeakMap,Gs=new WeakMap,da=new WeakMap,as=new WeakMap,ls=new WeakMap,zl=new WeakMap,fa=new WeakMap,ha=new WeakMap,Js=new WeakMap,Xs=new WeakMap,us=new WeakMap,pa=new WeakMap,st=new WeakSet,gl=function(e){Ue(this,st,Fh).call(this);let t=b(this,Ke).fetch(this.options,e);return e!=null&&e.throwOnError||(t=t.catch(pn)),t},Ih=function(){Ue(this,st,Ch).call(this);const e=hs(this.options.staleTime,b(this,Ke));if(eo||b(this,hn).isStale||!wh(e))return;const s=Jv(b(this,hn).dataUpdatedAt,e)+1;X(this,Js,setTimeout(()=>{b(this,hn).isStale||this.updateResult()},s))},Eh=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(b(this,Ke)):this.options.refetchInterval)??!1},xh=function(e){Ue(this,st,Oh).call(this),X(this,us,e),!(eo||Zn(this.options.enabled,b(this,Ke))===!1||!wh(b(this,us))||b(this,us)===0)&&X(this,Xs,setInterval(()=>{(this.options.refetchIntervalInBackground||Zh.isFocused())&&Ue(this,st,gl).call(this)},b(this,us)))},Dh=function(){Ue(this,st,Ih).call(this),Ue(this,st,xh).call(this,Ue(this,st,Eh).call(this))},Ch=function(){b(this,Js)&&(clearTimeout(b(this,Js)),X(this,Js,void 0))},Oh=function(){b(this,Xs)&&(clearInterval(b(this,Xs)),X(this,Xs,void 0))},Fh=function(){const e=b(this,Fn).getQueryCache().build(b(this,Fn),this.options);if(e===b(this,Ke))return;const t=b(this,Ke);X(this,Ke,e),X(this,jl,e.state),this.hasListeners()&&(t==null||t.removeObserver(this),e.addObserver(this))},l0=function(e){Ht.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(b(this,hn))}),b(this,Fn).getQueryCache().notify({query:b(this,Ke),type:"observerResultsUpdated"})})},Vv);function cb(n,e){return Zn(e.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&e.retryOnMount===!1)}function Sg(n,e){return cb(n,e)||n.state.data!==void 0&&Rh(n,e,e.refetchOnMount)}function Rh(n,e,t){if(Zn(e.enabled,n)!==!1&&hs(e.staleTime,n)!=="static"){const s=typeof t=="function"?t(n):t;return s==="always"||s!==!1&&ep(n,e)}return!1}function _g(n,e,t,s){return(n!==e||Zn(s.enabled,n)===!1)&&(!t.suspense||n.state.status!=="error")&&ep(n,t)}function ep(n,e){return Zn(e.enabled,n)!==!1&&n.isStaleByTime(hs(e.staleTime,n))}function db(n,e){return!Oc(n.getCurrentResult(),e)}var cs,ds,Rn,pi,Si,pc,Mh,Hv,fb=(Hv=class extends _a{constructor(t,s){super();pe(this,Si);pe(this,cs);pe(this,ds);pe(this,Rn);pe(this,pi);X(this,cs,t),this.setOptions(s),this.bindMethods(),Ue(this,Si,pc).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var a;const s=this.options;this.options=b(this,cs).defaultMutationOptions(t),Oc(this.options,s)||b(this,cs).getMutationCache().notify({type:"observerOptionsUpdated",mutation:b(this,Rn),observer:this}),s!=null&&s.mutationKey&&this.options.mutationKey&&to(s.mutationKey)!==to(this.options.mutationKey)?this.reset():((a=b(this,Rn))==null?void 0:a.state.status)==="pending"&&b(this,Rn).setOptions(this.options)}onUnsubscribe(){var t;this.hasListeners()||(t=b(this,Rn))==null||t.removeObserver(this)}onMutationUpdate(t){Ue(this,Si,pc).call(this),Ue(this,Si,Mh).call(this,t)}getCurrentResult(){return b(this,ds)}reset(){var t;(t=b(this,Rn))==null||t.removeObserver(this),X(this,Rn,void 0),Ue(this,Si,pc).call(this),Ue(this,Si,Mh).call(this)}mutate(t,s){var a;return X(this,pi,s),(a=b(this,Rn))==null||a.removeObserver(this),X(this,Rn,b(this,cs).getMutationCache().build(b(this,cs),this.options)),b(this,Rn).addObserver(this),b(this,Rn).execute(t)}},cs=new WeakMap,ds=new WeakMap,Rn=new WeakMap,pi=new WeakMap,Si=new WeakSet,pc=function(){var s;const t=((s=b(this,Rn))==null?void 0:s.state)??a0();X(this,ds,{...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset})},Mh=function(t){Ht.batch(()=>{var s,a,u,d,f,p,m,g;if(b(this,pi)&&this.hasListeners()){const v=b(this,ds).variables,S=b(this,ds).context;(t==null?void 0:t.type)==="success"?((a=(s=b(this,pi)).onSuccess)==null||a.call(s,t.data,v,S),(d=(u=b(this,pi)).onSettled)==null||d.call(u,t.data,null,v,S)):(t==null?void 0:t.type)==="error"&&((p=(f=b(this,pi)).onError)==null||p.call(f,t.error,v,S),(g=(m=b(this,pi)).onSettled)==null||g.call(m,void 0,t.error,v,S))}this.listeners.forEach(v=>{v(b(this,ds))})})},Hv),u0=O.createContext(void 0),tp=n=>{const e=O.useContext(u0);if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},hb=({client:n,children:e})=>(O.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),U.jsx(u0.Provider,{value:n,children:e})),c0=O.createContext(!1),pb=()=>O.useContext(c0);c0.Provider;function mb(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var yb=O.createContext(mb()),gb=()=>O.useContext(yb),vb=(n,e)=>{(n.suspense||n.throwOnError||n.experimental_prefetchInRender)&&(e.isReset()||(n.retryOnMount=!1))},wb=n=>{O.useEffect(()=>{n.clearReset()},[n])},Sb=({result:n,errorResetBoundary:e,throwOnError:t,query:s,suspense:a})=>n.isError&&!e.isReset()&&!n.isFetching&&s&&(a&&n.data===void 0||e0(t,[n.error,s])),_b=n=>{if(n.suspense){const e=s=>s==="static"?s:Math.max(s??1e3,1e3),t=n.staleTime;n.staleTime=typeof t=="function"?(...s)=>e(t(...s)):e(t),typeof n.gcTime=="number"&&(n.gcTime=Math.max(n.gcTime,1e3))}},bb=(n,e)=>n.isLoading&&n.isFetching&&!e,Ib=(n,e)=>(n==null?void 0:n.suspense)&&e.isPending,bg=(n,e,t)=>e.fetchOptimistic(n).catch(()=>{t.clearReset()});function Eb(n,e,t){var v,S,E,k,A;const s=pb(),a=gb(),u=tp(),d=u.defaultQueryOptions(n);(S=(v=u.getDefaultOptions().queries)==null?void 0:v._experimental_beforeQuery)==null||S.call(v,d),d._optimisticResults=s?"isRestoring":"optimistic",_b(d),vb(d,a),wb(a);const f=!u.getQueryCache().get(d.queryHash),[p]=O.useState(()=>new e(u,d)),m=p.getOptimisticResult(d),g=!s&&n.subscribed!==!1;if(O.useSyncExternalStore(O.useCallback(T=>{const B=g?p.subscribe(Ht.batchCalls(T)):pn;return p.updateResult(),B},[p,g]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),O.useEffect(()=>{p.setOptions(d)},[d,p]),Ib(d,m))throw bg(d,p,a);if(Sb({result:m,errorResetBoundary:a,throwOnError:d.throwOnError,query:u.getQueryCache().get(d.queryHash),suspense:d.suspense}))throw m.error;if((k=(E=u.getDefaultOptions().queries)==null?void 0:E._experimental_afterQuery)==null||k.call(E,d,m),d.experimental_prefetchInRender&&!eo&&bb(m,s)){const T=f?bg(d,p,a):(A=u.getQueryCache().get(d.queryHash))==null?void 0:A.promise;T==null||T.catch(pn).finally(()=>{p.updateResult()})}return d.notifyOnChangeProps?m:p.trackResult(m)}function xb(n,e){return Eb(n,ub)}function Db(n,e){const t=tp(),[s]=O.useState(()=>new fb(t,n));O.useEffect(()=>{s.setOptions(n)},[s,n]);const a=O.useSyncExternalStore(O.useCallback(d=>s.subscribe(Ht.batchCalls(d)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),u=O.useCallback((d,f)=>{s.mutate(d,f).catch(pn)},[s]);if(a.error&&e0(s.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:u,mutateAsync:a.mutate}}const Cb=function(){const e=typeof document<"u"&&document.createElement("link").relList;return e&&e.supports&&e.supports("modulepreload")?"modulepreload":"preload"}(),Ob=function(n){return"/"+n},Ig={},vn=function(e,t,s){let a=Promise.resolve();if(t&&t.length>0){let d=function(m){return Promise.all(m.map(g=>Promise.resolve(g).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};document.getElementsByTagName("link");const f=document.querySelector("meta[property=csp-nonce]"),p=(f==null?void 0:f.nonce)||(f==null?void 0:f.getAttribute("nonce"));a=d(t.map(m=>{if(m=Ob(m),m in Ig)return;Ig[m]=!0;const g=m.endsWith(".css"),v=g?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${m}"]${v}`))return;const S=document.createElement("link");if(S.rel=g?"stylesheet":Cb,g||(S.as="script"),S.crossOrigin="",S.href=m,p&&S.setAttribute("nonce",p),document.head.appendChild(S),g)return new Promise((E,k)=>{S.addEventListener("load",E),S.addEventListener("error",()=>k(new Error(`Unable to preload CSS for ${m}`)))})}))}function u(d){const f=new Event("vite:preloadError",{cancelable:!0});if(f.payload=d,window.dispatchEvent(f),!f.defaultPrevented)throw d}return a.then(d=>{for(const f of d||[])f.status==="rejected"&&u(f.reason);return e().catch(u)})};/**
|
|
44
|
+
* react-router v7.7.0
|
|
45
|
+
*
|
|
46
|
+
* Copyright (c) Remix Software Inc.
|
|
47
|
+
*
|
|
48
|
+
* This source code is licensed under the MIT license found in the
|
|
49
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
50
|
+
*
|
|
51
|
+
* @license MIT
|
|
52
|
+
*/var d0=n=>{throw TypeError(n)},Fb=(n,e,t)=>e.has(n)||d0("Cannot "+t),oh=(n,e,t)=>(Fb(n,e,"read from private field"),t?t.call(n):e.get(n)),Rb=(n,e,t)=>e.has(n)?d0("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(n):e.set(n,t),Eg="popstate";function Mb(n={}){function e(s,a){let{pathname:u,search:d,hash:f}=s.location;return Rl("",{pathname:u,search:d,hash:f},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function t(s,a){return typeof a=="string"?a:ps(a)}return Ab(e,t,null,n)}function Qe(n,e){if(n===!1||n===null||typeof n>"u")throw new Error(e)}function jt(n,e){if(!n){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function Lb(){return Math.random().toString(36).substring(2,10)}function xg(n,e){return{usr:n.state,key:n.key,idx:e}}function Rl(n,e,t=null,s){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof e=="string"?gs(e):e,state:t,key:e&&e.key||s||Lb()}}function ps({pathname:n="/",search:e="",hash:t=""}){return e&&e!=="?"&&(n+=e.charAt(0)==="?"?e:"?"+e),t&&t!=="#"&&(n+=t.charAt(0)==="#"?t:"#"+t),n}function gs(n){let e={};if(n){let t=n.indexOf("#");t>=0&&(e.hash=n.substring(t),n=n.substring(0,t));let s=n.indexOf("?");s>=0&&(e.search=n.substring(s),n=n.substring(0,s)),n&&(e.pathname=n)}return e}function Ab(n,e,t,s={}){let{window:a=document.defaultView,v5Compat:u=!1}=s,d=a.history,f="POP",p=null,m=g();m==null&&(m=0,d.replaceState({...d.state,idx:m},""));function g(){return(d.state||{idx:null}).idx}function v(){f="POP";let T=g(),B=T==null?null:T-m;m=T,p&&p({action:f,location:A.location,delta:B})}function S(T,B){f="PUSH";let Z=Rl(A.location,T,B);m=g()+1;let V=xg(Z,m),G=A.createHref(Z);try{d.pushState(V,"",G)}catch(te){if(te instanceof DOMException&&te.name==="DataCloneError")throw te;a.location.assign(G)}u&&p&&p({action:f,location:A.location,delta:1})}function E(T,B){f="REPLACE";let Z=Rl(A.location,T,B);m=g();let V=xg(Z,m),G=A.createHref(Z);d.replaceState(V,"",G),u&&p&&p({action:f,location:A.location,delta:0})}function k(T){return f0(T)}let A={get action(){return f},get location(){return n(a,d)},listen(T){if(p)throw new Error("A history only accepts one active listener");return a.addEventListener(Eg,v),p=T,()=>{a.removeEventListener(Eg,v),p=null}},createHref(T){return e(a,T)},createURL:k,encodeLocation(T){let B=k(T);return{pathname:B.pathname,search:B.search,hash:B.hash}},push:S,replace:E,go(T){return d.go(T)}};return A}function f0(n,e=!1){let t="http://localhost";typeof window<"u"&&(t=window.location.origin!=="null"?window.location.origin:window.location.href),Qe(t,"No window.location.(origin|href) available to create URL");let s=typeof n=="string"?n:ps(n);return s=s.replace(/ $/,"%20"),!e&&s.startsWith("//")&&(s=t+s),new URL(s,t)}var vl,Dg=class{constructor(n){if(Rb(this,vl,new Map),n)for(let[e,t]of n)this.set(e,t)}get(n){if(oh(this,vl).has(n))return oh(this,vl).get(n);if(n.defaultValue!==void 0)return n.defaultValue;throw new Error("No value found for context")}set(n,e){oh(this,vl).set(n,e)}};vl=new WeakMap;var kb=new Set(["lazy","caseSensitive","path","id","index","children"]);function Pb(n){return kb.has(n)}var Nb=new Set(["lazy","caseSensitive","path","id","index","unstable_middleware","children"]);function Tb(n){return Nb.has(n)}function Bb(n){return n.index===!0}function Ml(n,e,t=[],s={},a=!1){return n.map((u,d)=>{let f=[...t,String(d)],p=typeof u.id=="string"?u.id:f.join("-");if(Qe(u.index!==!0||!u.children,"Cannot specify children on an index route"),Qe(a||!s[p],`Found a route id collision on id "${p}". Route id's must be globally unique within Data Router usages`),Bb(u)){let m={...u,...e(u),id:p};return s[p]=m,m}else{let m={...u,...e(u),id:p,children:void 0};return s[p]=m,u.children&&(m.children=Ml(u.children,e,f,s,a)),m}})}function ts(n,e,t="/"){return mc(n,e,t,!1)}function mc(n,e,t,s){let a=typeof e=="string"?gs(e):e,u=ir(a.pathname||"/",t);if(u==null)return null;let d=h0(n);jb(d);let f=null;for(let p=0;f==null&&p<d.length;++p){let m=Jb(u);f=Yb(d[p],m,s)}return f}function Ub(n,e){let{route:t,pathname:s,params:a}=n;return{id:t.id,pathname:s,params:a,data:e[t.id],handle:t.handle}}function h0(n,e=[],t=[],s=""){let a=(u,d,f)=>{let p={relativePath:f===void 0?u.path||"":f,caseSensitive:u.caseSensitive===!0,childrenIndex:d,route:u};p.relativePath.startsWith("/")&&(Qe(p.relativePath.startsWith(s),`Absolute route path "${p.relativePath}" nested under path "${s}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),p.relativePath=p.relativePath.slice(s.length));let m=Qr([s,p.relativePath]),g=t.concat(p);u.children&&u.children.length>0&&(Qe(u.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${m}".`),h0(u.children,e,g,m)),!(u.path==null&&!u.index)&&e.push({path:m,score:Kb(m,u.index),routesMeta:g})};return n.forEach((u,d)=>{var f;if(u.path===""||!((f=u.path)!=null&&f.includes("?")))a(u,d);else for(let p of p0(u.path))a(u,d,p)}),e}function p0(n){let e=n.split("/");if(e.length===0)return[];let[t,...s]=e,a=t.endsWith("?"),u=t.replace(/\?$/,"");if(s.length===0)return a?[u,""]:[u];let d=p0(s.join("/")),f=[];return f.push(...d.map(p=>p===""?u:[u,p].join("/"))),a&&f.push(...d),f.map(p=>n.startsWith("/")&&p===""?"/":p)}function jb(n){n.sort((e,t)=>e.score!==t.score?t.score-e.score:qb(e.routesMeta.map(s=>s.childrenIndex),t.routesMeta.map(s=>s.childrenIndex)))}var zb=/^:[\w-]+$/,$b=3,Vb=2,Hb=1,Wb=10,Qb=-2,Cg=n=>n==="*";function Kb(n,e){let t=n.split("/"),s=t.length;return t.some(Cg)&&(s+=Qb),e&&(s+=Vb),t.filter(a=>!Cg(a)).reduce((a,u)=>a+(zb.test(u)?$b:u===""?Hb:Wb),s)}function qb(n,e){return n.length===e.length&&n.slice(0,-1).every((s,a)=>s===e[a])?n[n.length-1]-e[e.length-1]:0}function Yb(n,e,t=!1){let{routesMeta:s}=n,a={},u="/",d=[];for(let f=0;f<s.length;++f){let p=s[f],m=f===s.length-1,g=u==="/"?e:e.slice(u.length)||"/",v=Rc({path:p.relativePath,caseSensitive:p.caseSensitive,end:m},g),S=p.route;if(!v&&m&&t&&!s[s.length-1].route.index&&(v=Rc({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},g)),!v)return null;Object.assign(a,v.params),d.push({params:a,pathname:Qr([u,v.pathname]),pathnameBase:tI(Qr([u,v.pathnameBase])),route:S}),v.pathnameBase!=="/"&&(u=Qr([u,v.pathnameBase]))}return d}function Rc(n,e){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[t,s]=Gb(n.path,n.caseSensitive,n.end),a=e.match(t);if(!a)return null;let u=a[0],d=u.replace(/(.)\/+$/,"$1"),f=a.slice(1);return{params:s.reduce((m,{paramName:g,isOptional:v},S)=>{if(g==="*"){let k=f[S]||"";d=u.slice(0,u.length-k.length).replace(/(.)\/+$/,"$1")}const E=f[S];return v&&!E?m[g]=void 0:m[g]=(E||"").replace(/%2F/g,"/"),m},{}),pathname:u,pathnameBase:d,pattern:n}}function Gb(n,e=!1,t=!0){jt(n==="*"||!n.endsWith("*")||n.endsWith("/*"),`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,"/*")}".`);let s=[],a="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(d,f,p)=>(s.push({paramName:f,isOptional:p!=null}),p?"/?([^\\/]+)?":"/([^\\/]+)"));return n.endsWith("*")?(s.push({paramName:"*"}),a+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):t?a+="\\/*$":n!==""&&n!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,e?void 0:"i"),s]}function Jb(n){try{return n.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return jt(!1,`The URL path "${n}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${e}).`),n}}function ir(n,e){if(e==="/")return n;if(!n.toLowerCase().startsWith(e.toLowerCase()))return null;let t=e.endsWith("/")?e.length-1:e.length,s=n.charAt(t);return s&&s!=="/"?null:n.slice(t)||"/"}function Xb({basename:n,pathname:e}){return e==="/"?n:Qr([n,e])}function Zb(n,e="/"){let{pathname:t,search:s="",hash:a=""}=typeof n=="string"?gs(n):n;return{pathname:t?t.startsWith("/")?t:eI(t,e):e,search:nI(s),hash:rI(a)}}function eI(n,e){let t=e.replace(/\/+$/,"").split("/");return n.split("/").forEach(a=>{a===".."?t.length>1&&t.pop():a!=="."&&t.push(a)}),t.length>1?t.join("/"):"/"}function ah(n,e,t,s){return`Cannot include a '${n}' character in a manually specified \`to.${e}\` field [${JSON.stringify(s)}]. Please separate it out to the \`to.${t}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function m0(n){return n.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function np(n){let e=m0(n);return e.map((t,s)=>s===e.length-1?t.pathname:t.pathnameBase)}function rp(n,e,t,s=!1){let a;typeof n=="string"?a=gs(n):(a={...n},Qe(!a.pathname||!a.pathname.includes("?"),ah("?","pathname","search",a)),Qe(!a.pathname||!a.pathname.includes("#"),ah("#","pathname","hash",a)),Qe(!a.search||!a.search.includes("#"),ah("#","search","hash",a)));let u=n===""||a.pathname==="",d=u?"/":a.pathname,f;if(d==null)f=t;else{let v=e.length-1;if(!s&&d.startsWith("..")){let S=d.split("/");for(;S[0]==="..";)S.shift(),v-=1;a.pathname=S.join("/")}f=v>=0?e[v]:"/"}let p=Zb(a,f),m=d&&d!=="/"&&d.endsWith("/"),g=(u||d===".")&&t.endsWith("/");return!p.pathname.endsWith("/")&&(m||g)&&(p.pathname+="/"),p}var Qr=n=>n.join("/").replace(/\/\/+/g,"/"),tI=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),nI=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,rI=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n,Mc=class{constructor(n,e,t,s=!1){this.status=n,this.statusText=e||"",this.internal=s,t instanceof Error?(this.data=t.toString(),this.error=t):this.data=t}};function Ll(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}var y0=["POST","PUT","PATCH","DELETE"],iI=new Set(y0),sI=["GET",...y0],oI=new Set(sI),aI=new Set([301,302,303,307,308]),lI=new Set([307,308]),lh={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},uI={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},fl={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},cI=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ip=n=>cI.test(n),dI=n=>({hasErrorBoundary:!!n.hasErrorBoundary}),g0="remix-router-transitions",v0=Symbol("ResetLoaderData");function fI(n){const e=n.window?n.window:typeof window<"u"?window:void 0,t=typeof e<"u"&&typeof e.document<"u"&&typeof e.document.createElement<"u";Qe(n.routes.length>0,"You must provide a non-empty routes array to createRouter");let s=n.hydrationRouteProperties||[],a=n.mapRouteProperties||dI,u={},d=Ml(n.routes,a,void 0,u),f,p=n.basename||"/",m=n.dataStrategy||gI,g={unstable_middleware:!1,...n.future},v=null,S=new Set,E=null,k=null,A=null,T=n.hydrationData!=null,B=ts(d,n.history.location,p),Z=!1,V=null,G;if(B==null&&!n.patchRoutesOnNavigation){let _=Xn(404,{pathname:n.history.location.pathname}),{matches:F,route:N}=Ug(d);G=!0,B=F,V={[N.id]:_}}else if(B&&!n.hydrationData&&Is(B,d,n.history.location.pathname).active&&(B=null),B)if(B.some(_=>_.route.lazy))G=!1;else if(!B.some(_=>_.route.loader))G=!0;else{let _=n.hydrationData?n.hydrationData.loaderData:null,F=n.hydrationData?n.hydrationData.errors:null;if(F){let N=B.findIndex(H=>F[H.route.id]!==void 0);G=B.slice(0,N+1).every(H=>!Ah(H.route,_,F))}else G=B.every(N=>!Ah(N.route,_,F))}else{G=!1,B=[];let _=Is(null,d,n.history.location.pathname);_.active&&_.matches&&(Z=!0,B=_.matches)}let te,M={historyAction:n.history.action,location:n.history.location,matches:B,initialized:G,navigation:lh,restoreScrollPosition:n.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:n.hydrationData&&n.hydrationData.loaderData||{},actionData:n.hydrationData&&n.hydrationData.actionData||null,errors:n.hydrationData&&n.hydrationData.errors||V,fetchers:new Map,blockers:new Map},Le="POP",ve=!1,re,Fe=!1,mt=new Map,bt=null,yt=!1,je=!1,Ze=new Set,Ne=new Map,ze=0,K=-1,ne=new Map,Y=new Set,C=new Map,j=new Map,he=new Set,Ae=new Map,We,Be=null;function ct(){if(v=n.history.listen(({action:_,location:F,delta:N})=>{if(We){We(),We=void 0;return}jt(Ae.size===0||N!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let H=fo({currentLocation:M.location,nextLocation:F,historyAction:_});if(H&&N!=null){let q=new Promise(ce=>{We=ce});n.history.go(N*-1),Di(H,{state:"blocked",location:F,proceed(){Di(H,{state:"proceeding",proceed:void 0,reset:void 0,location:F}),q.then(()=>n.history.go(N))},reset(){let ce=new Map(M.blockers);ce.set(H,fl),tt({blockers:ce})}});return}return lr(_,F)}),t){OI(e,mt);let _=()=>FI(e,mt);e.addEventListener("pagehide",_),bt=()=>e.removeEventListener("pagehide",_)}return M.initialized||lr("POP",M.location,{initialHydration:!0}),te}function et(){v&&v(),bt&&bt(),S.clear(),re&&re.abort(),M.fetchers.forEach((_,F)=>uo(F)),M.blockers.forEach((_,F)=>co(F))}function vt(_){return S.add(_),()=>S.delete(_)}function tt(_,F={}){_.matches&&(_.matches=_.matches.map(q=>{let ce=u[q.route.id],ae=q.route;return ae.element!==ce.element||ae.errorElement!==ce.errorElement||ae.hydrateFallbackElement!==ce.hydrateFallbackElement?{...q,route:ce}:q})),M={...M,..._};let N=[],H=[];M.fetchers.forEach((q,ce)=>{q.state==="idle"&&(he.has(ce)?N.push(ce):H.push(ce))}),he.forEach(q=>{!M.fetchers.has(q)&&!Ne.has(q)&&N.push(q)}),[...S].forEach(q=>q(M,{deletedFetchers:N,viewTransitionOpts:F.viewTransitionOpts,flushSync:F.flushSync===!0})),N.forEach(q=>uo(q)),H.forEach(q=>M.fetchers.delete(q))}function ar(_,F,{flushSync:N}={}){var we,de;let H=M.actionData!=null&&M.navigation.formMethod!=null&&Ln(M.navigation.formMethod)&&M.navigation.state==="loading"&&((we=_.state)==null?void 0:we._isRedirect)!==!0,q;F.actionData?Object.keys(F.actionData).length>0?q=F.actionData:q=null:H?q=M.actionData:q=null;let ce=F.loaderData?Tg(M.loaderData,F.loaderData,F.matches||[],F.errors):M.loaderData,ae=M.blockers;ae.size>0&&(ae=new Map(ae),ae.forEach((Pe,Je)=>ae.set(Je,fl)));let ie=yt?!1:Ra(_,F.matches||M.matches),ue=ve===!0||M.navigation.formMethod!=null&&Ln(M.navigation.formMethod)&&((de=_.state)==null?void 0:de._isRedirect)!==!0;f&&(d=f,f=void 0),yt||Le==="POP"||(Le==="PUSH"?n.history.push(_,_.state):Le==="REPLACE"&&n.history.replace(_,_.state));let me;if(Le==="POP"){let Pe=mt.get(M.location.pathname);Pe&&Pe.has(_.pathname)?me={currentLocation:M.location,nextLocation:_}:mt.has(_.pathname)&&(me={currentLocation:_,nextLocation:M.location})}else if(Fe){let Pe=mt.get(M.location.pathname);Pe?Pe.add(_.pathname):(Pe=new Set([_.pathname]),mt.set(M.location.pathname,Pe)),me={currentLocation:M.location,nextLocation:_}}tt({...F,actionData:q,loaderData:ce,historyAction:Le,location:_,initialized:!0,navigation:lh,revalidation:"idle",restoreScrollPosition:ie,preventScrollReset:ue,blockers:ae},{viewTransitionOpts:me,flushSync:N===!0}),Le="POP",ve=!1,Fe=!1,yt=!1,je=!1,Be==null||Be.resolve(),Be=null}async function Ea(_,F){if(typeof _=="number"){n.history.go(_);return}let N=Lh(M.location,M.matches,p,_,F==null?void 0:F.fromRouteId,F==null?void 0:F.relative),{path:H,submission:q,error:ce}=Og(!1,N,F),ae=M.location,ie=Rl(M.location,H,F&&F.state);ie={...ie,...n.history.encodeLocation(ie)};let ue=F&&F.replace!=null?F.replace:void 0,me="PUSH";ue===!0?me="REPLACE":ue===!1||q!=null&&Ln(q.formMethod)&&q.formAction===M.location.pathname+M.location.search&&(me="REPLACE");let we=F&&"preventScrollReset"in F?F.preventScrollReset===!0:void 0,de=(F&&F.flushSync)===!0,Pe=fo({currentLocation:ae,nextLocation:ie,historyAction:me});if(Pe){Di(Pe,{state:"blocked",location:ie,proceed(){Di(Pe,{state:"proceeding",proceed:void 0,reset:void 0,location:ie}),Ea(_,F)},reset(){let Je=new Map(M.blockers);Je.set(Pe,fl),tt({blockers:Je})}});return}await lr(me,ie,{submission:q,pendingError:ce,preventScrollReset:we,replace:F&&F.replace,enableViewTransition:F&&F.viewTransition,flushSync:de})}function oo(){Be||(Be=RI()),lo(),tt({revalidation:"loading"});let _=Be.promise;return M.navigation.state==="submitting"?_:M.navigation.state==="idle"?(lr(M.historyAction,M.location,{startUninterruptedRevalidation:!0}),_):(lr(Le||M.historyAction,M.navigation.location,{overrideNavigation:M.navigation,enableViewTransition:Fe===!0}),_)}async function lr(_,F,N){re&&re.abort(),re=null,Le=_,yt=(N&&N.startUninterruptedRevalidation)===!0,Ci(M.location,M.matches),ve=(N&&N.preventScrollReset)===!0,Fe=(N&&N.enableViewTransition)===!0;let H=f||d,q=N&&N.overrideNavigation,ce=N!=null&&N.initialHydration&&M.matches&&M.matches.length>0&&!Z?M.matches:ts(H,F,p),ae=(N&&N.flushSync)===!0;if(ce&&M.initialized&&!je&&II(M.location,F)&&!(N&&N.submission&&Ln(N.submission.formMethod))){ar(F,{matches:ce},{flushSync:ae});return}let ie=Is(ce,H,F.pathname);if(ie.active&&ie.matches&&(ce=ie.matches),!ce){let{error:Kt,notFoundMatches:Ct,route:dt}=bs(F.pathname);ar(F,{matches:Ct,loaderData:{},errors:{[dt.id]:Kt}},{flushSync:ae});return}re=new AbortController;let ue=Bo(n.history,F,re.signal,N&&N.submission),me=new Dg(n.unstable_getContext?await n.unstable_getContext():void 0),we;if(N&&N.pendingError)we=[js(ce).route.id,{type:"error",error:N.pendingError}];else if(N&&N.submission&&Ln(N.submission.formMethod)){let Kt=await Yl(ue,F,N.submission,ce,me,ie.active,N&&N.initialHydration===!0,{replace:N.replace,flushSync:ae});if(Kt.shortCircuited)return;if(Kt.pendingActionResult){let[Ct,dt]=Kt.pendingActionResult;if(zn(dt)&&Ll(dt.error)&&dt.error.status===404){re=null,ar(F,{matches:Kt.matches,loaderData:{},errors:{[Ct]:dt.error}});return}}ce=Kt.matches||ce,we=Kt.pendingActionResult,q=uh(F,N.submission),ae=!1,ie.active=!1,ue=Bo(n.history,ue.url,ue.signal)}let{shortCircuited:de,matches:Pe,loaderData:Je,errors:zt}=await Gl(ue,F,ce,me,ie.active,q,N&&N.submission,N&&N.fetcherSubmission,N&&N.replace,N&&N.initialHydration===!0,ae,we);de||(re=null,ar(F,{matches:Pe||ce,...Bg(we),loaderData:Je,errors:zt}))}async function Yl(_,F,N,H,q,ce,ae,ie={}){lo();let ue=DI(F,N);if(tt({navigation:ue},{flushSync:ie.flushSync===!0}),ce){let de=await Es(H,F.pathname,_.signal);if(de.type==="aborted")return{shortCircuited:!0};if(de.type==="error"){let Pe=js(de.partialMatches).route.id;return{matches:de.partialMatches,pendingActionResult:[Pe,{type:"error",error:de.error}]}}else if(de.matches)H=de.matches;else{let{notFoundMatches:Pe,error:Je,route:zt}=bs(F.pathname);return{matches:Pe,pendingActionResult:[zt.id,{type:"error",error:Je}]}}}let me,we=yc(H,F);if(!we.route.action&&!we.route.lazy)me={type:"error",error:Xn(405,{method:_.method,pathname:F.pathname,routeId:we.route.id})};else{let de=Jo(a,u,_,H,we,ae?[]:s,q),Pe=await xi(_,de,q,null);if(me=Pe[we.route.id],!me){for(let Je of H)if(Pe[Je.route.id]){me=Pe[Je.route.id];break}}if(_.signal.aborted)return{shortCircuited:!0}}if($s(me)){let de;return ie&&ie.replace!=null?de=ie.replace:de=kg(me.response.headers.get("Location"),new URL(_.url),p)===M.location.pathname+M.location.search,await ur(_,me,!0,{submission:N,replace:de}),{shortCircuited:!0}}if(zn(me)){let de=js(H,we.route.id);return(ie&&ie.replace)!==!0&&(Le="PUSH"),{matches:H,pendingActionResult:[de.route.id,me,we.route.id]}}return{matches:H,pendingActionResult:[we.route.id,me]}}async function Gl(_,F,N,H,q,ce,ae,ie,ue,me,we,de){let Pe=ce||uh(F,ae),Je=ae||ie||zg(Pe),zt=!yt&&!me;if(q){if(zt){let qt=ao(de);tt({navigation:Pe,...qt!==void 0?{actionData:qt}:{}},{flushSync:we})}let Ye=await Es(N,F.pathname,_.signal);if(Ye.type==="aborted")return{shortCircuited:!0};if(Ye.type==="error"){let qt=js(Ye.partialMatches).route.id;return{matches:Ye.partialMatches,loaderData:{},errors:{[qt]:Ye.error}}}else if(Ye.matches)N=Ye.matches;else{let{error:qt,notFoundMatches:Ds,route:Fr}=bs(F.pathname);return{matches:Ds,loaderData:{},errors:{[Fr.id]:qt}}}}let Kt=f||d,{dsMatches:Ct,revalidatingFetchers:dt}=Fg(_,H,a,u,n.history,M,N,Je,F,me?[]:s,me===!0,je,Ze,he,C,Y,Kt,p,n.patchRoutesOnNavigation!=null,de);if(K=++ze,!n.dataStrategy&&!Ct.some(Ye=>Ye.shouldLoad)&&dt.length===0){let Ye=Ca();return ar(F,{matches:N,loaderData:{},errors:de&&zn(de[1])?{[de[0]]:de[1].error}:null,...Bg(de),...Ye?{fetchers:new Map(M.fetchers)}:{}},{flushSync:we}),{shortCircuited:!0}}if(zt){let Ye={};if(!q){Ye.navigation=Pe;let qt=ao(de);qt!==void 0&&(Ye.actionData=qt)}dt.length>0&&(Ye.fetchers=Jl(dt)),tt(Ye,{flushSync:we})}dt.forEach(Ye=>{Sn(Ye.key),Ye.controller&&Ne.set(Ye.key,Ye.controller)});let Or=()=>dt.forEach(Ye=>Sn(Ye.key));re&&re.signal.addEventListener("abort",Or);let{loaderResults:Oi,fetcherResults:dr}=await Da(Ct,dt,_,H);if(_.signal.aborted)return{shortCircuited:!0};re&&re.signal.removeEventListener("abort",Or),dt.forEach(Ye=>Ne.delete(Ye.key));let Vn=ac(Oi);if(Vn)return await ur(_,Vn.result,!0,{replace:ue}),{shortCircuited:!0};if(Vn=ac(dr),Vn)return Y.add(Vn.key),await ur(_,Vn.result,!0,{replace:ue}),{shortCircuited:!0};let{loaderData:Ma,errors:gt}=Ng(M,N,Oi,de,dt,dr);me&&M.errors&&(gt={...M.errors,...gt});let Xr=Ca(),Fi=Oa(K),xs=Xr||Fi||dt.length>0;return{matches:N,loaderData:Ma,errors:gt,...xs?{fetchers:new Map(M.fetchers)}:{}}}function ao(_){if(_&&!zn(_[1]))return{[_[0]]:_[1].data};if(M.actionData)return Object.keys(M.actionData).length===0?null:M.actionData}function Jl(_){return _.forEach(F=>{let N=M.fetchers.get(F.key),H=hl(void 0,N?N.data:void 0);M.fetchers.set(F.key,H)}),new Map(M.fetchers)}async function xa(_,F,N,H){Sn(_);let q=(H&&H.flushSync)===!0,ce=f||d,ae=Lh(M.location,M.matches,p,N,F,H==null?void 0:H.relative),ie=ts(ce,ae,p),ue=Is(ie,ce,ae);if(ue.active&&ue.matches&&(ie=ue.matches),!ie){Nn(_,F,Xn(404,{pathname:ae}),{flushSync:q});return}let{path:me,submission:we,error:de}=Og(!0,ae,H);if(de){Nn(_,F,de,{flushSync:q});return}let Pe=new Dg(n.unstable_getContext?await n.unstable_getContext():void 0),Je=(H&&H.preventScrollReset)===!0;if(we&&Ln(we.formMethod)){await ws(_,F,me,ie,Pe,ue.active,q,Je,we);return}C.set(_,{routeId:F,path:me}),await Ei(_,F,me,ie,Pe,ue.active,q,Je,we)}async function ws(_,F,N,H,q,ce,ae,ie,ue){lo(),C.delete(_);let me=M.fetchers.get(_);cr(_,CI(ue,me),{flushSync:ae});let we=new AbortController,de=Bo(n.history,N,we.signal,ue);if(ce){let nt=await Es(H,new URL(de.url).pathname,de.signal,_);if(nt.type==="aborted")return;if(nt.type==="error"){Nn(_,F,nt.error,{flushSync:ae});return}else if(nt.matches)H=nt.matches;else{Nn(_,F,Xn(404,{pathname:N}),{flushSync:ae});return}}let Pe=yc(H,N);if(!Pe.route.action&&!Pe.route.lazy){let nt=Xn(405,{method:ue.formMethod,pathname:N,routeId:F});Nn(_,F,nt,{flushSync:ae});return}Ne.set(_,we);let Je=ze,zt=Jo(a,u,de,H,Pe,s,q),Ct=(await xi(de,zt,q,_))[Pe.route.id];if(de.signal.aborted){Ne.get(_)===we&&Ne.delete(_);return}if(he.has(_)){if($s(Ct)||zn(Ct)){cr(_,Ji(void 0));return}}else{if($s(Ct))if(Ne.delete(_),K>Je){cr(_,Ji(void 0));return}else return Y.add(_),cr(_,hl(ue)),ur(de,Ct,!1,{fetcherSubmission:ue,preventScrollReset:ie});if(zn(Ct)){Nn(_,F,Ct.error);return}}let dt=M.navigation.location||M.location,Or=Bo(n.history,dt,we.signal),Oi=f||d,dr=M.navigation.state!=="idle"?ts(Oi,M.navigation.location,p):M.matches;Qe(dr,"Didn't find any matches after fetcher action");let Vn=++ze;ne.set(_,Vn);let Ma=hl(ue,Ct.data);M.fetchers.set(_,Ma);let{dsMatches:gt,revalidatingFetchers:Xr}=Fg(Or,q,a,u,n.history,M,dr,ue,dt,s,!1,je,Ze,he,C,Y,Oi,p,n.patchRoutesOnNavigation!=null,[Pe.route.id,Ct]);Xr.filter(nt=>nt.key!==_).forEach(nt=>{let ho=nt.key,_n=M.fetchers.get(ho),vd=hl(void 0,_n?_n.data:void 0);M.fetchers.set(ho,vd),Sn(ho),nt.controller&&Ne.set(ho,nt.controller)}),tt({fetchers:new Map(M.fetchers)});let Fi=()=>Xr.forEach(nt=>Sn(nt.key));we.signal.addEventListener("abort",Fi);let{loaderResults:xs,fetcherResults:Ye}=await Da(gt,Xr,Or,q);if(we.signal.aborted)return;if(we.signal.removeEventListener("abort",Fi),ne.delete(_),Ne.delete(_),Xr.forEach(nt=>Ne.delete(nt.key)),M.fetchers.has(_)){let nt=Ji(Ct.data);M.fetchers.set(_,nt)}let qt=ac(xs);if(qt)return ur(Or,qt.result,!1,{preventScrollReset:ie});if(qt=ac(Ye),qt)return Y.add(qt.key),ur(Or,qt.result,!1,{preventScrollReset:ie});let{loaderData:Ds,errors:Fr}=Ng(M,dr,xs,void 0,Xr,Ye);Oa(Vn),M.navigation.state==="loading"&&Vn>K?(Qe(Le,"Expected pending action"),re&&re.abort(),ar(M.navigation.location,{matches:dr,loaderData:Ds,errors:Fr,fetchers:new Map(M.fetchers)})):(tt({errors:Fr,loaderData:Tg(M.loaderData,Ds,dr,Fr),fetchers:new Map(M.fetchers)}),je=!1)}async function Ei(_,F,N,H,q,ce,ae,ie,ue){let me=M.fetchers.get(_);cr(_,hl(ue,me?me.data:void 0),{flushSync:ae});let we=new AbortController,de=Bo(n.history,N,we.signal);if(ce){let dt=await Es(H,new URL(de.url).pathname,de.signal,_);if(dt.type==="aborted")return;if(dt.type==="error"){Nn(_,F,dt.error,{flushSync:ae});return}else if(dt.matches)H=dt.matches;else{Nn(_,F,Xn(404,{pathname:N}),{flushSync:ae});return}}let Pe=yc(H,N);Ne.set(_,we);let Je=ze,zt=Jo(a,u,de,H,Pe,s,q),Ct=(await xi(de,zt,q,_))[Pe.route.id];if(Ne.get(_)===we&&Ne.delete(_),!de.signal.aborted){if(he.has(_)){cr(_,Ji(void 0));return}if($s(Ct))if(K>Je){cr(_,Ji(void 0));return}else{Y.add(_),await ur(de,Ct,!1,{preventScrollReset:ie});return}if(zn(Ct)){Nn(_,F,Ct.error);return}cr(_,Ji(Ct.data))}}async function ur(_,F,N,{submission:H,fetcherSubmission:q,preventScrollReset:ce,replace:ae}={}){F.response.headers.has("X-Remix-Revalidate")&&(je=!0);let ie=F.response.headers.get("Location");Qe(ie,"Expected a Location header on the redirect Response"),ie=kg(ie,new URL(_.url),p);let ue=Rl(M.location,ie,{_isRedirect:!0});if(t){let zt=!1;if(F.response.headers.has("X-Remix-Reload-Document"))zt=!0;else if(ip(ie)){const Kt=f0(ie,!0);zt=Kt.origin!==e.location.origin||ir(Kt.pathname,p)==null}if(zt){ae?e.location.replace(ie):e.location.assign(ie);return}}re=null;let me=ae===!0||F.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:we,formAction:de,formEncType:Pe}=M.navigation;!H&&!q&&we&&de&&Pe&&(H=zg(M.navigation));let Je=H||q;if(lI.has(F.response.status)&&Je&&Ln(Je.formMethod))await lr(me,ue,{submission:{...Je,formAction:ie},preventScrollReset:ce||ve,enableViewTransition:N?Fe:void 0});else{let zt=uh(ue,H);await lr(me,ue,{overrideNavigation:zt,fetcherSubmission:q,preventScrollReset:ce||ve,enableViewTransition:N?Fe:void 0})}}async function xi(_,F,N,H){let q,ce={};try{q=await vI(m,_,F,H,N,!1)}catch(ae){return F.filter(ie=>ie.shouldLoad).forEach(ie=>{ce[ie.route.id]={type:"error",error:ae}}),ce}if(_.signal.aborted)return ce;for(let[ae,ie]of Object.entries(q))if(EI(ie)){let ue=ie.result;ce[ae]={type:"redirect",response:_I(ue,_,ae,F,p)}}else ce[ae]=await SI(ie);return ce}async function Da(_,F,N,H){let q=xi(N,_,H,null),ce=Promise.all(F.map(async ue=>{if(ue.matches&&ue.match&&ue.request&&ue.controller){let we=(await xi(ue.request,ue.matches,H,ue.key))[ue.match.route.id];return{[ue.key]:we}}else return Promise.resolve({[ue.key]:{type:"error",error:Xn(404,{pathname:ue.path})}})})),ae=await q,ie=(await ce).reduce((ue,me)=>Object.assign(ue,me),{});return{loaderResults:ae,fetcherResults:ie}}function lo(){je=!0,C.forEach((_,F)=>{Ne.has(F)&&Ze.add(F),Sn(F)})}function cr(_,F,N={}){M.fetchers.set(_,F),tt({fetchers:new Map(M.fetchers)},{flushSync:(N&&N.flushSync)===!0})}function Nn(_,F,N,H={}){let q=js(M.matches,F);uo(_),tt({errors:{[q.route.id]:N},fetchers:new Map(M.fetchers)},{flushSync:(H&&H.flushSync)===!0})}function Ss(_){return j.set(_,(j.get(_)||0)+1),he.has(_)&&he.delete(_),M.fetchers.get(_)||uI}function uo(_){let F=M.fetchers.get(_);Ne.has(_)&&!(F&&F.state==="loading"&&ne.has(_))&&Sn(_),C.delete(_),ne.delete(_),Y.delete(_),he.delete(_),Ze.delete(_),M.fetchers.delete(_)}function _s(_){let F=(j.get(_)||0)-1;F<=0?(j.delete(_),he.add(_)):j.set(_,F),tt({fetchers:new Map(M.fetchers)})}function Sn(_){let F=Ne.get(_);F&&(F.abort(),Ne.delete(_))}function Xl(_){for(let F of _){let N=Ss(F),H=Ji(N.data);M.fetchers.set(F,H)}}function Ca(){let _=[],F=!1;for(let N of Y){let H=M.fetchers.get(N);Qe(H,`Expected fetcher: ${N}`),H.state==="loading"&&(Y.delete(N),_.push(N),F=!0)}return Xl(_),F}function Oa(_){let F=[];for(let[N,H]of ne)if(H<_){let q=M.fetchers.get(N);Qe(q,`Expected fetcher: ${N}`),q.state==="loading"&&(Sn(N),ne.delete(N),F.push(N))}return Xl(F),F.length>0}function gd(_,F){let N=M.blockers.get(_)||fl;return Ae.get(_)!==F&&Ae.set(_,F),N}function co(_){M.blockers.delete(_),Ae.delete(_)}function Di(_,F){let N=M.blockers.get(_)||fl;Qe(N.state==="unblocked"&&F.state==="blocked"||N.state==="blocked"&&F.state==="blocked"||N.state==="blocked"&&F.state==="proceeding"||N.state==="blocked"&&F.state==="unblocked"||N.state==="proceeding"&&F.state==="unblocked",`Invalid blocker state transition: ${N.state} -> ${F.state}`);let H=new Map(M.blockers);H.set(_,F),tt({blockers:H})}function fo({currentLocation:_,nextLocation:F,historyAction:N}){if(Ae.size===0)return;Ae.size>1&&jt(!1,"A router only supports one blocker at a time");let H=Array.from(Ae.entries()),[q,ce]=H[H.length-1],ae=M.blockers.get(q);if(!(ae&&ae.state==="proceeding")&&ce({currentLocation:_,nextLocation:F,historyAction:N}))return q}function bs(_){let F=Xn(404,{pathname:_}),N=f||d,{matches:H,route:q}=Ug(N);return{notFoundMatches:H,route:q,error:F}}function Fa(_,F,N){if(E=_,A=F,k=N||null,!T&&M.navigation===lh){T=!0;let H=Ra(M.location,M.matches);H!=null&&tt({restoreScrollPosition:H})}return()=>{E=null,A=null,k=null}}function Jr(_,F){return k&&k(_,F.map(H=>Ub(H,M.loaderData)))||_.key}function Ci(_,F){if(E&&A){let N=Jr(_,F);E[N]=A()}}function Ra(_,F){if(E){let N=Jr(_,F),H=E[N];if(typeof H=="number")return H}return null}function Is(_,F,N){if(n.patchRoutesOnNavigation)if(_){if(Object.keys(_[0].params).length>0)return{active:!0,matches:mc(F,N,p,!0)}}else return{active:!0,matches:mc(F,N,p,!0)||[]};return{active:!1,matches:null}}async function Es(_,F,N,H){if(!n.patchRoutesOnNavigation)return{type:"success",matches:_};let q=_;for(;;){let ce=f==null,ae=f||d,ie=u;try{await n.patchRoutesOnNavigation({signal:N,path:F,matches:q,fetcherKey:H,patch:(we,de)=>{N.aborted||Rg(we,de,ae,ie,a,!1)}})}catch(we){return{type:"error",error:we,partialMatches:q}}finally{ce&&!N.aborted&&(d=[...d])}if(N.aborted)return{type:"aborted"};let ue=ts(ae,F,p);if(ue)return{type:"success",matches:ue};let me=mc(ae,F,p,!0);if(!me||q.length===me.length&&q.every((we,de)=>we.route.id===me[de].route.id))return{type:"success",matches:null};q=me}}function Zl(_){u={},f=Ml(_,a,void 0,u)}function eu(_,F,N=!1){let H=f==null;Rg(_,F,f||d,u,a,N),H&&(d=[...d],tt({}))}return te={get basename(){return p},get future(){return g},get state(){return M},get routes(){return d},get window(){return e},initialize:ct,subscribe:vt,enableScrollRestoration:Fa,navigate:Ea,fetch:xa,revalidate:oo,createHref:_=>n.history.createHref(_),encodeLocation:_=>n.history.encodeLocation(_),getFetcher:Ss,deleteFetcher:_s,dispose:et,getBlocker:gd,deleteBlocker:co,patchRoutes:eu,_internalFetchControllers:Ne,_internalSetRoutes:Zl,_internalSetStateDoNotUseOrYouWillBreakYourApp(_){tt(_)}},te}function hI(n){return n!=null&&("formData"in n&&n.formData!=null||"body"in n&&n.body!==void 0)}function Lh(n,e,t,s,a,u){let d,f;if(a){d=[];for(let m of e)if(d.push(m),m.route.id===a){f=m;break}}else d=e,f=e[e.length-1];let p=rp(s||".",np(d),ir(n.pathname,t)||n.pathname,u==="path");if(s==null&&(p.search=n.search,p.hash=n.hash),(s==null||s===""||s===".")&&f){let m=sp(p.search);if(f.route.index&&!m)p.search=p.search?p.search.replace(/^\?/,"?index&"):"?index";else if(!f.route.index&&m){let g=new URLSearchParams(p.search),v=g.getAll("index");g.delete("index"),v.filter(E=>E).forEach(E=>g.append("index",E));let S=g.toString();p.search=S?`?${S}`:""}}return t!=="/"&&(p.pathname=Xb({basename:t,pathname:p.pathname})),ps(p)}function Og(n,e,t){if(!t||!hI(t))return{path:e};if(t.formMethod&&!xI(t.formMethod))return{path:e,error:Xn(405,{method:t.formMethod})};let s=()=>({path:e,error:Xn(400,{type:"invalid-body"})}),u=(t.formMethod||"get").toUpperCase(),d=E0(e);if(t.body!==void 0){if(t.formEncType==="text/plain"){if(!Ln(u))return s();let v=typeof t.body=="string"?t.body:t.body instanceof FormData||t.body instanceof URLSearchParams?Array.from(t.body.entries()).reduce((S,[E,k])=>`${S}${E}=${k}
|
|
53
|
+
`,""):String(t.body);return{path:e,submission:{formMethod:u,formAction:d,formEncType:t.formEncType,formData:void 0,json:void 0,text:v}}}else if(t.formEncType==="application/json"){if(!Ln(u))return s();try{let v=typeof t.body=="string"?JSON.parse(t.body):t.body;return{path:e,submission:{formMethod:u,formAction:d,formEncType:t.formEncType,formData:void 0,json:v,text:void 0}}}catch{return s()}}}Qe(typeof FormData=="function","FormData is not available in this environment");let f,p;if(t.formData)f=Ph(t.formData),p=t.formData;else if(t.body instanceof FormData)f=Ph(t.body),p=t.body;else if(t.body instanceof URLSearchParams)f=t.body,p=Pg(f);else if(t.body==null)f=new URLSearchParams,p=new FormData;else try{f=new URLSearchParams(t.body),p=Pg(f)}catch{return s()}let m={formMethod:u,formAction:d,formEncType:t&&t.formEncType||"application/x-www-form-urlencoded",formData:p,json:void 0,text:void 0};if(Ln(m.formMethod))return{path:e,submission:m};let g=gs(e);return n&&g.search&&sp(g.search)&&f.append("index",""),g.search=`?${f}`,{path:ps(g),submission:m}}function Fg(n,e,t,s,a,u,d,f,p,m,g,v,S,E,k,A,T,B,Z,V){var yt;let G=V?zn(V[1])?V[1].error:V[1].data:void 0,te=a.createURL(u.location),M=a.createURL(p),Le;if(g&&u.errors){let je=Object.keys(u.errors)[0];Le=d.findIndex(Ze=>Ze.route.id===je)}else if(V&&zn(V[1])){let je=V[0];Le=d.findIndex(Ze=>Ze.route.id===je)-1}let ve=V?V[1].statusCode:void 0,re=ve&&ve>=400,Fe={currentUrl:te,currentParams:((yt=u.matches[0])==null?void 0:yt.params)||{},nextUrl:M,nextParams:d[0].params,...f,actionResult:G,actionStatus:ve},mt=d.map((je,Ze)=>{let{route:Ne}=je,ze=null;if(Le!=null&&Ze>Le?ze=!1:Ne.lazy?ze=!0:Ne.loader==null?ze=!1:g?ze=Ah(Ne,u.loaderData,u.errors):pI(u.loaderData,u.matches[Ze],je)&&(ze=!0),ze!==null)return kh(t,s,n,je,m,e,ze);let K=re?!1:v||te.pathname+te.search===M.pathname+M.search||te.search!==M.search||mI(u.matches[Ze],je),ne={...Fe,defaultShouldRevalidate:K},Y=Lc(je,ne);return kh(t,s,n,je,m,e,Y,ne)}),bt=[];return k.forEach((je,Ze)=>{if(g||!d.some(he=>he.route.id===je.routeId)||E.has(Ze))return;let Ne=u.fetchers.get(Ze),ze=Ne&&Ne.state!=="idle"&&Ne.data===void 0,K=ts(T,je.path,B);if(!K){if(Z&&ze)return;bt.push({key:Ze,routeId:je.routeId,path:je.path,matches:null,match:null,request:null,controller:null});return}if(A.has(Ze))return;let ne=yc(K,je.path),Y=new AbortController,C=Bo(a,je.path,Y.signal),j=null;if(S.has(Ze))S.delete(Ze),j=Jo(t,s,C,K,ne,m,e);else if(ze)v&&(j=Jo(t,s,C,K,ne,m,e));else{let he={...Fe,defaultShouldRevalidate:re?!1:v};Lc(ne,he)&&(j=Jo(t,s,C,K,ne,m,e,he))}j&&bt.push({key:Ze,routeId:je.routeId,path:je.path,matches:j,match:ne,request:C,controller:Y})}),{dsMatches:mt,revalidatingFetchers:bt}}function Ah(n,e,t){if(n.lazy)return!0;if(!n.loader)return!1;let s=e!=null&&n.id in e,a=t!=null&&t[n.id]!==void 0;return!s&&a?!1:typeof n.loader=="function"&&n.loader.hydrate===!0?!0:!s&&!a}function pI(n,e,t){let s=!e||t.route.id!==e.route.id,a=!n.hasOwnProperty(t.route.id);return s||a}function mI(n,e){let t=n.route.path;return n.pathname!==e.pathname||t!=null&&t.endsWith("*")&&n.params["*"]!==e.params["*"]}function Lc(n,e){if(n.route.shouldRevalidate){let t=n.route.shouldRevalidate(e);if(typeof t=="boolean")return t}return e.defaultShouldRevalidate}function Rg(n,e,t,s,a,u){let d;if(n){let m=s[n];Qe(m,`No route found to patch children into: routeId = ${n}`),m.children||(m.children=[]),d=m.children}else d=t;let f=[],p=[];if(e.forEach(m=>{let g=d.find(v=>w0(m,v));g?p.push({existingRoute:g,newRoute:m}):f.push(m)}),f.length>0){let m=Ml(f,a,[n||"_","patch",String((d==null?void 0:d.length)||"0")],s);d.push(...m)}if(u&&p.length>0)for(let m=0;m<p.length;m++){let{existingRoute:g,newRoute:v}=p[m],S=g,[E]=Ml([v],a,[],{},!0);Object.assign(S,{element:E.element?E.element:S.element,errorElement:E.errorElement?E.errorElement:S.errorElement,hydrateFallbackElement:E.hydrateFallbackElement?E.hydrateFallbackElement:S.hydrateFallbackElement})}}function w0(n,e){return"id"in n&&"id"in e&&n.id===e.id?!0:n.index===e.index&&n.path===e.path&&n.caseSensitive===e.caseSensitive?(!n.children||n.children.length===0)&&(!e.children||e.children.length===0)?!0:n.children.every((t,s)=>{var a;return(a=e.children)==null?void 0:a.some(u=>w0(t,u))}):!1}var Mg=new WeakMap,S0=({key:n,route:e,manifest:t,mapRouteProperties:s})=>{let a=t[e.id];if(Qe(a,"No route found in manifest"),!a.lazy||typeof a.lazy!="object")return;let u=a.lazy[n];if(!u)return;let d=Mg.get(a);d||(d={},Mg.set(a,d));let f=d[n];if(f)return f;let p=(async()=>{let m=Pb(n),v=a[n]!==void 0&&n!=="hasErrorBoundary";if(m)jt(!m,"Route property "+n+" is not a supported lazy route property. This property will be ignored."),d[n]=Promise.resolve();else if(v)jt(!1,`Route "${a.id}" has a static property "${n}" defined. The lazy property will be ignored.`);else{let S=await u();S!=null&&(Object.assign(a,{[n]:S}),Object.assign(a,s(a)))}typeof a.lazy=="object"&&(a.lazy[n]=void 0,Object.values(a.lazy).every(S=>S===void 0)&&(a.lazy=void 0))})();return d[n]=p,p},Lg=new WeakMap;function yI(n,e,t,s,a){let u=t[n.id];if(Qe(u,"No route found in manifest"),!n.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof n.lazy=="function"){let g=Lg.get(u);if(g)return{lazyRoutePromise:g,lazyHandlerPromise:g};let v=(async()=>{Qe(typeof n.lazy=="function","No lazy route function found");let S=await n.lazy(),E={};for(let k in S){let A=S[k];if(A===void 0)continue;let T=Tb(k),Z=u[k]!==void 0&&k!=="hasErrorBoundary";T?jt(!T,"Route property "+k+" is not a supported property to be returned from a lazy route function. This property will be ignored."):Z?jt(!Z,`Route "${u.id}" has a static property "${k}" defined but its lazy function is also returning a value for this property. The lazy route property "${k}" will be ignored.`):E[k]=A}Object.assign(u,E),Object.assign(u,{...s(u),lazy:void 0})})();return Lg.set(u,v),v.catch(()=>{}),{lazyRoutePromise:v,lazyHandlerPromise:v}}let d=Object.keys(n.lazy),f=[],p;for(let g of d){if(a&&a.includes(g))continue;let v=S0({key:g,route:n,manifest:t,mapRouteProperties:s});v&&(f.push(v),g===e&&(p=v))}let m=f.length>0?Promise.all(f).then(()=>{}):void 0;return m==null||m.catch(()=>{}),p==null||p.catch(()=>{}),{lazyRoutePromise:m,lazyHandlerPromise:p}}async function Ag(n){let e=n.matches.filter(a=>a.shouldLoad),t={};return(await Promise.all(e.map(a=>a.resolve()))).forEach((a,u)=>{t[e[u].route.id]=a}),t}async function gI(n){return n.matches.some(e=>e.route.unstable_middleware)?_0(n,!1,()=>Ag(n),(e,t)=>({[t]:{type:"error",result:e}})):Ag(n)}async function _0(n,e,t,s){let{matches:a,request:u,params:d,context:f}=n,p={handlerResult:void 0};try{let m=a.flatMap(v=>v.route.unstable_middleware?v.route.unstable_middleware.map(S=>[v.route.id,S]):[]),g=await b0({request:u,params:d,context:f},m,e,p,t);return e?g:p.handlerResult}catch(m){if(!p.middlewareError)throw m;let g=await s(p.middlewareError.error,p.middlewareError.routeId);return p.handlerResult?Object.assign(p.handlerResult,g):g}}async function b0(n,e,t,s,a,u=0){let{request:d}=n;if(d.signal.aborted)throw d.signal.reason?d.signal.reason:new Error(`Request aborted without an \`AbortSignal.reason\`: ${d.method} ${d.url}`);let f=e[u];if(!f)return s.handlerResult=await a(),s.handlerResult;let[p,m]=f,g=!1,v,S=async()=>{if(g)throw new Error("You may only call `next()` once per middleware");g=!0,await b0(n,e,t,s,a,u+1)};try{let E=await m({request:n.request,params:n.params,context:n.context},S);return g?E===void 0?v:E:S()}catch(E){throw s.middlewareError?s.middlewareError.error!==E&&(s.middlewareError={routeId:p,error:E}):s.middlewareError={routeId:p,error:E},E}}function I0(n,e,t,s,a){let u=S0({key:"unstable_middleware",route:s.route,manifest:e,mapRouteProperties:n}),d=yI(s.route,Ln(t.method)?"action":"loader",e,n,a);return{middleware:u,route:d.lazyRoutePromise,handler:d.lazyHandlerPromise}}function kh(n,e,t,s,a,u,d,f=null){let p=!1,m=I0(n,e,t,s,a);return{...s,_lazyPromises:m,shouldLoad:d,unstable_shouldRevalidateArgs:f,unstable_shouldCallHandler(g){return p=!0,f?typeof g=="boolean"?Lc(s,{...f,defaultShouldRevalidate:g}):Lc(s,f):d},resolve(g){return p||d||g&&!Ln(t.method)&&(s.route.lazy||s.route.loader)?wI({request:t,match:s,lazyHandlerPromise:m==null?void 0:m.handler,lazyRoutePromise:m==null?void 0:m.route,handlerOverride:g,scopedContext:u}):Promise.resolve({type:"data",result:void 0})}}}function Jo(n,e,t,s,a,u,d,f=null){return s.map(p=>p.route.id!==a.route.id?{...p,shouldLoad:!1,unstable_shouldRevalidateArgs:f,unstable_shouldCallHandler:()=>!1,_lazyPromises:I0(n,e,t,p,u),resolve:()=>Promise.resolve({type:"data",result:void 0})}:kh(n,e,t,p,u,d,!0,f))}async function vI(n,e,t,s,a,u){t.some(m=>{var g;return(g=m._lazyPromises)==null?void 0:g.middleware})&&await Promise.all(t.map(m=>{var g;return(g=m._lazyPromises)==null?void 0:g.middleware}));let d={request:e,params:t[0].params,context:a,matches:t},p=await n({...d,fetcherKey:s,unstable_runClientMiddleware:m=>{let g=d;return _0(g,!1,()=>m({...g,fetcherKey:s,unstable_runClientMiddleware:()=>{throw new Error("Cannot call `unstable_runClientMiddleware()` from within an `unstable_runClientMiddleware` handler")}}),(v,S)=>({[S]:{type:"error",result:v}}))}});try{await Promise.all(t.flatMap(m=>{var g,v;return[(g=m._lazyPromises)==null?void 0:g.handler,(v=m._lazyPromises)==null?void 0:v.route]}))}catch{}return p}async function wI({request:n,match:e,lazyHandlerPromise:t,lazyRoutePromise:s,handlerOverride:a,scopedContext:u}){let d,f,p=Ln(n.method),m=p?"action":"loader",g=v=>{let S,E=new Promise((T,B)=>S=B);f=()=>S(),n.signal.addEventListener("abort",f);let k=T=>typeof v!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${m}" [routeId: ${e.route.id}]`)):v({request:n,params:e.params,context:u},...T!==void 0?[T]:[]),A=(async()=>{try{return{type:"data",result:await(a?a(B=>k(B)):k())}}catch(T){return{type:"error",result:T}}})();return Promise.race([A,E])};try{let v=p?e.route.action:e.route.loader;if(t||s)if(v){let S,[E]=await Promise.all([g(v).catch(k=>{S=k}),t,s]);if(S!==void 0)throw S;d=E}else{await t;let S=p?e.route.action:e.route.loader;if(S)[d]=await Promise.all([g(S),s]);else if(m==="action"){let E=new URL(n.url),k=E.pathname+E.search;throw Xn(405,{method:n.method,pathname:k,routeId:e.route.id})}else return{type:"data",result:void 0}}else if(v)d=await g(v);else{let S=new URL(n.url),E=S.pathname+S.search;throw Xn(404,{pathname:E})}}catch(v){return{type:"error",result:v}}finally{f&&n.signal.removeEventListener("abort",f)}return d}async function SI(n){var s,a,u,d,f,p;let{result:e,type:t}=n;if(x0(e)){let m;try{let g=e.headers.get("Content-Type");g&&/\bapplication\/json\b/.test(g)?e.body==null?m=null:m=await e.json():m=await e.text()}catch(g){return{type:"error",error:g}}return t==="error"?{type:"error",error:new Mc(e.status,e.statusText,m),statusCode:e.status,headers:e.headers}:{type:"data",data:m,statusCode:e.status,headers:e.headers}}return t==="error"?jg(e)?e.data instanceof Error?{type:"error",error:e.data,statusCode:(s=e.init)==null?void 0:s.status,headers:(a=e.init)!=null&&a.headers?new Headers(e.init.headers):void 0}:{type:"error",error:new Mc(((u=e.init)==null?void 0:u.status)||500,void 0,e.data),statusCode:Ll(e)?e.status:void 0,headers:(d=e.init)!=null&&d.headers?new Headers(e.init.headers):void 0}:{type:"error",error:e,statusCode:Ll(e)?e.status:void 0}:jg(e)?{type:"data",data:e.data,statusCode:(f=e.init)==null?void 0:f.status,headers:(p=e.init)!=null&&p.headers?new Headers(e.init.headers):void 0}:{type:"data",data:e}}function _I(n,e,t,s,a){let u=n.headers.get("Location");if(Qe(u,"Redirects returned/thrown from loaders/actions must have a Location header"),!ip(u)){let d=s.slice(0,s.findIndex(f=>f.route.id===t)+1);u=Lh(new URL(e.url),d,a,u),n.headers.set("Location",u)}return n}function kg(n,e,t){if(ip(n)){let s=n,a=s.startsWith("//")?new URL(e.protocol+s):new URL(s),u=ir(a.pathname,t)!=null;if(a.origin===e.origin&&u)return a.pathname+a.search+a.hash}return n}function Bo(n,e,t,s){let a=n.createURL(E0(e)).toString(),u={signal:t};if(s&&Ln(s.formMethod)){let{formMethod:d,formEncType:f}=s;u.method=d.toUpperCase(),f==="application/json"?(u.headers=new Headers({"Content-Type":f}),u.body=JSON.stringify(s.json)):f==="text/plain"?u.body=s.text:f==="application/x-www-form-urlencoded"&&s.formData?u.body=Ph(s.formData):u.body=s.formData}return new Request(a,u)}function Ph(n){let e=new URLSearchParams;for(let[t,s]of n.entries())e.append(t,typeof s=="string"?s:s.name);return e}function Pg(n){let e=new FormData;for(let[t,s]of n.entries())e.append(t,s);return e}function bI(n,e,t,s=!1,a=!1){let u={},d=null,f,p=!1,m={},g=t&&zn(t[1])?t[1].error:void 0;return n.forEach(v=>{if(!(v.route.id in e))return;let S=v.route.id,E=e[S];if(Qe(!$s(E),"Cannot handle redirect results in processLoaderData"),zn(E)){let k=E.error;if(g!==void 0&&(k=g,g=void 0),d=d||{},a)d[S]=k;else{let A=js(n,S);d[A.route.id]==null&&(d[A.route.id]=k)}s||(u[S]=v0),p||(p=!0,f=Ll(E.error)?E.error.status:500),E.headers&&(m[S]=E.headers)}else u[S]=E.data,E.statusCode&&E.statusCode!==200&&!p&&(f=E.statusCode),E.headers&&(m[S]=E.headers)}),g!==void 0&&t&&(d={[t[0]]:g},t[2]&&(u[t[2]]=void 0)),{loaderData:u,errors:d,statusCode:f||200,loaderHeaders:m}}function Ng(n,e,t,s,a,u){let{loaderData:d,errors:f}=bI(e,t,s);return a.filter(p=>!p.matches||p.matches.some(m=>m.shouldLoad)).forEach(p=>{let{key:m,match:g,controller:v}=p,S=u[m];if(Qe(S,"Did not find corresponding fetcher result"),!(v&&v.signal.aborted))if(zn(S)){let E=js(n.matches,g==null?void 0:g.route.id);f&&f[E.route.id]||(f={...f,[E.route.id]:S.error}),n.fetchers.delete(m)}else if($s(S))Qe(!1,"Unhandled fetcher revalidation redirect");else{let E=Ji(S.data);n.fetchers.set(m,E)}}),{loaderData:d,errors:f}}function Tg(n,e,t,s){let a=Object.entries(e).filter(([,u])=>u!==v0).reduce((u,[d,f])=>(u[d]=f,u),{});for(let u of t){let d=u.route.id;if(!e.hasOwnProperty(d)&&n.hasOwnProperty(d)&&u.route.loader&&(a[d]=n[d]),s&&s.hasOwnProperty(d))break}return a}function Bg(n){return n?zn(n[1])?{actionData:{}}:{actionData:{[n[0]]:n[1].data}}:{}}function js(n,e){return(e?n.slice(0,n.findIndex(s=>s.route.id===e)+1):[...n]).reverse().find(s=>s.route.hasErrorBoundary===!0)||n[0]}function Ug(n){let e=n.length===1?n[0]:n.find(t=>t.index||!t.path||t.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:e}],route:e}}function Xn(n,{pathname:e,routeId:t,method:s,type:a,message:u}={}){let d="Unknown Server Error",f="Unknown @remix-run/router error";return n===400?(d="Bad Request",s&&e&&t?f=`You made a ${s} request to "${e}" but did not provide a \`loader\` for route "${t}", so there is no way to handle the request.`:a==="invalid-body"&&(f="Unable to encode submission body")):n===403?(d="Forbidden",f=`Route "${t}" does not match URL "${e}"`):n===404?(d="Not Found",f=`No route matches URL "${e}"`):n===405&&(d="Method Not Allowed",s&&e&&t?f=`You made a ${s.toUpperCase()} request to "${e}" but did not provide an \`action\` for route "${t}", so there is no way to handle the request.`:s&&(f=`Invalid request method "${s.toUpperCase()}"`)),new Mc(n||500,d,new Error(f),!0)}function ac(n){let e=Object.entries(n);for(let t=e.length-1;t>=0;t--){let[s,a]=e[t];if($s(a))return{key:s,result:a}}}function E0(n){let e=typeof n=="string"?gs(n):n;return ps({...e,hash:""})}function II(n,e){return n.pathname!==e.pathname||n.search!==e.search?!1:n.hash===""?e.hash!=="":n.hash===e.hash?!0:e.hash!==""}function EI(n){return x0(n.result)&&aI.has(n.result.status)}function zn(n){return n.type==="error"}function $s(n){return(n&&n.type)==="redirect"}function jg(n){return typeof n=="object"&&n!=null&&"type"in n&&"data"in n&&"init"in n&&n.type==="DataWithResponseInit"}function x0(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.headers=="object"&&typeof n.body<"u"}function xI(n){return oI.has(n.toUpperCase())}function Ln(n){return iI.has(n.toUpperCase())}function sp(n){return new URLSearchParams(n).getAll("index").some(e=>e==="")}function yc(n,e){let t=typeof e=="string"?gs(e).search:e.search;if(n[n.length-1].route.index&&sp(t||""))return n[n.length-1];let s=m0(n);return s[s.length-1]}function zg(n){let{formMethod:e,formAction:t,formEncType:s,text:a,formData:u,json:d}=n;if(!(!e||!t||!s)){if(a!=null)return{formMethod:e,formAction:t,formEncType:s,formData:void 0,json:void 0,text:a};if(u!=null)return{formMethod:e,formAction:t,formEncType:s,formData:u,json:void 0,text:void 0};if(d!==void 0)return{formMethod:e,formAction:t,formEncType:s,formData:void 0,json:d,text:void 0}}}function uh(n,e){return e?{state:"loading",location:n,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text}:{state:"loading",location:n,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function DI(n,e){return{state:"submitting",location:n,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text}}function hl(n,e){return n?{state:"loading",formMethod:n.formMethod,formAction:n.formAction,formEncType:n.formEncType,formData:n.formData,json:n.json,text:n.text,data:e}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function CI(n,e){return{state:"submitting",formMethod:n.formMethod,formAction:n.formAction,formEncType:n.formEncType,formData:n.formData,json:n.json,text:n.text,data:e?e.data:void 0}}function Ji(n){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:n}}function OI(n,e){try{let t=n.sessionStorage.getItem(g0);if(t){let s=JSON.parse(t);for(let[a,u]of Object.entries(s||{}))u&&Array.isArray(u)&&e.set(a,new Set(u||[]))}}catch{}}function FI(n,e){if(e.size>0){let t={};for(let[s,a]of e)t[s]=[...a];try{n.sessionStorage.setItem(g0,JSON.stringify(t))}catch(s){jt(!1,`Failed to save applied view transitions in sessionStorage (${s}).`)}}}function RI(){let n,e,t=new Promise((s,a)=>{n=async u=>{s(u);try{await t}catch{}},e=async u=>{a(u);try{await t}catch{}}});return{promise:t,resolve:n,reject:e}}var ro=O.createContext(null);ro.displayName="DataRouter";var $l=O.createContext(null);$l.displayName="DataRouterState";O.createContext(!1);var op=O.createContext({isTransitioning:!1});op.displayName="ViewTransition";var D0=O.createContext(new Map);D0.displayName="Fetchers";var MI=O.createContext(null);MI.displayName="Await";var Gr=O.createContext(null);Gr.displayName="Navigation";var cd=O.createContext(null);cd.displayName="Location";var Dr=O.createContext({outlet:null,matches:[],isDataRoute:!1});Dr.displayName="Route";var ap=O.createContext(null);ap.displayName="RouteError";function LI(n,{relative:e}={}){Qe(Vl(),"useHref() may be used only in the context of a <Router> component.");let{basename:t,navigator:s}=O.useContext(Gr),{hash:a,pathname:u,search:d}=Hl(n,{relative:e}),f=u;return t!=="/"&&(f=u==="/"?t:Qr([t,u])),s.createHref({pathname:f,search:d,hash:a})}function Vl(){return O.useContext(cd)!=null}function io(){return Qe(Vl(),"useLocation() may be used only in the context of a <Router> component."),O.useContext(cd).location}var C0="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function O0(n){O.useContext(Gr).static||O.useLayoutEffect(n)}function AI(){let{isDataRoute:n}=O.useContext(Dr);return n?qI():kI()}function kI(){Qe(Vl(),"useNavigate() may be used only in the context of a <Router> component.");let n=O.useContext(ro),{basename:e,navigator:t}=O.useContext(Gr),{matches:s}=O.useContext(Dr),{pathname:a}=io(),u=JSON.stringify(np(s)),d=O.useRef(!1);return O0(()=>{d.current=!0}),O.useCallback((p,m={})=>{if(jt(d.current,C0),!d.current)return;if(typeof p=="number"){t.go(p);return}let g=rp(p,JSON.parse(u),a,m.relative==="path");n==null&&e!=="/"&&(g.pathname=g.pathname==="/"?e:Qr([e,g.pathname])),(m.replace?t.replace:t.push)(g,m.state,m)},[e,t,u,a,n])}var PI=O.createContext(null);function NI(n){let e=O.useContext(Dr).outlet;return e&&O.createElement(PI.Provider,{value:n},e)}function IO(){let{matches:n}=O.useContext(Dr),e=n[n.length-1];return e?e.params:{}}function Hl(n,{relative:e}={}){let{matches:t}=O.useContext(Dr),{pathname:s}=io(),a=JSON.stringify(np(t));return O.useMemo(()=>rp(n,JSON.parse(a),s,e==="path"),[n,a,s,e])}function TI(n,e,t,s){Qe(Vl(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:a}=O.useContext(Gr),{matches:u}=O.useContext(Dr),d=u[u.length-1],f=d?d.params:{},p=d?d.pathname:"/",m=d?d.pathnameBase:"/",g=d&&d.route;{let B=g&&g.path||"";F0(p,!g||B.endsWith("*")||B.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (under <Route path="${B}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
54
|
+
|
|
55
|
+
Please change the parent <Route path="${B}"> to <Route path="${B==="/"?"*":`${B}/*`}">.`)}let v=io(),S;S=v;let E=S.pathname||"/",k=E;if(m!=="/"){let B=m.replace(/^\//,"").split("/");k="/"+E.replace(/^\//,"").split("/").slice(B.length).join("/")}let A=ts(n,{pathname:k});return jt(g||A!=null,`No routes matched location "${S.pathname}${S.search}${S.hash}" `),jt(A==null||A[A.length-1].route.element!==void 0||A[A.length-1].route.Component!==void 0||A[A.length-1].route.lazy!==void 0,`Matched leaf route at location "${S.pathname}${S.search}${S.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`),$I(A&&A.map(B=>Object.assign({},B,{params:Object.assign({},f,B.params),pathname:Qr([m,a.encodeLocation?a.encodeLocation(B.pathname).pathname:B.pathname]),pathnameBase:B.pathnameBase==="/"?m:Qr([m,a.encodeLocation?a.encodeLocation(B.pathnameBase).pathname:B.pathnameBase])})),u,t,s)}function BI(){let n=KI(),e=Ll(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),t=n instanceof Error?n.stack:null,s="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:s},u={padding:"2px 4px",backgroundColor:s},d=null;return console.error("Error handled by React Router default ErrorBoundary:",n),d=O.createElement(O.Fragment,null,O.createElement("p",null,"💿 Hey developer 👋"),O.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",O.createElement("code",{style:u},"ErrorBoundary")," or"," ",O.createElement("code",{style:u},"errorElement")," prop on your route.")),O.createElement(O.Fragment,null,O.createElement("h2",null,"Unexpected Application Error!"),O.createElement("h3",{style:{fontStyle:"italic"}},e),t?O.createElement("pre",{style:a},t):null,d)}var UI=O.createElement(BI,null),jI=class extends O.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,e){return e.location!==n.location||e.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:e.error,location:e.location,revalidation:n.revalidation||e.revalidation}}componentDidCatch(n,e){console.error("React Router caught the following error during render",n,e)}render(){return this.state.error!==void 0?O.createElement(Dr.Provider,{value:this.props.routeContext},O.createElement(ap.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function zI({routeContext:n,match:e,children:t}){let s=O.useContext(ro);return s&&s.static&&s.staticContext&&(e.route.errorElement||e.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=e.route.id),O.createElement(Dr.Provider,{value:n},t)}function $I(n,e=[],t=null,s=null){if(n==null){if(!t)return null;if(t.errors)n=t.matches;else if(e.length===0&&!t.initialized&&t.matches.length>0)n=t.matches;else return null}let a=n,u=t==null?void 0:t.errors;if(u!=null){let p=a.findIndex(m=>m.route.id&&(u==null?void 0:u[m.route.id])!==void 0);Qe(p>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(u).join(",")}`),a=a.slice(0,Math.min(a.length,p+1))}let d=!1,f=-1;if(t)for(let p=0;p<a.length;p++){let m=a[p];if((m.route.HydrateFallback||m.route.hydrateFallbackElement)&&(f=p),m.route.id){let{loaderData:g,errors:v}=t,S=m.route.loader&&!g.hasOwnProperty(m.route.id)&&(!v||v[m.route.id]===void 0);if(m.route.lazy||S){d=!0,f>=0?a=a.slice(0,f+1):a=[a[0]];break}}}return a.reduceRight((p,m,g)=>{let v,S=!1,E=null,k=null;t&&(v=u&&m.route.id?u[m.route.id]:void 0,E=m.route.errorElement||UI,d&&(f<0&&g===0?(F0("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),S=!0,k=null):f===g&&(S=!0,k=m.route.hydrateFallbackElement||null)));let A=e.concat(a.slice(0,g+1)),T=()=>{let B;return v?B=E:S?B=k:m.route.Component?B=O.createElement(m.route.Component,null):m.route.element?B=m.route.element:B=p,O.createElement(zI,{match:m,routeContext:{outlet:p,matches:A,isDataRoute:t!=null},children:B})};return t&&(m.route.ErrorBoundary||m.route.errorElement||g===0)?O.createElement(jI,{location:t.location,revalidation:t.revalidation,component:E,error:v,children:T(),routeContext:{outlet:null,matches:A,isDataRoute:!0}}):T()},null)}function lp(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function VI(n){let e=O.useContext(ro);return Qe(e,lp(n)),e}function HI(n){let e=O.useContext($l);return Qe(e,lp(n)),e}function WI(n){let e=O.useContext(Dr);return Qe(e,lp(n)),e}function up(n){let e=WI(n),t=e.matches[e.matches.length-1];return Qe(t.route.id,`${n} can only be used on routes that contain a unique "id"`),t.route.id}function QI(){return up("useRouteId")}function KI(){var s;let n=O.useContext(ap),e=HI("useRouteError"),t=up("useRouteError");return n!==void 0?n:(s=e.errors)==null?void 0:s[t]}function qI(){let{router:n}=VI("useNavigate"),e=up("useNavigate"),t=O.useRef(!1);return O0(()=>{t.current=!0}),O.useCallback(async(a,u={})=>{jt(t.current,C0),t.current&&(typeof a=="number"?n.navigate(a):await n.navigate(a,{fromRouteId:e,...u}))},[n,e])}var $g={};function F0(n,e,t){!e&&!$g[n]&&($g[n]=!0,jt(!1,t))}var Vg={};function Hg(n,e){!n&&!Vg[e]&&(Vg[e]=!0,console.warn(e))}function YI(n){let e={hasErrorBoundary:n.hasErrorBoundary||n.ErrorBoundary!=null||n.errorElement!=null};return n.Component&&(n.element&&jt(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(e,{element:O.createElement(n.Component),Component:void 0})),n.HydrateFallback&&(n.hydrateFallbackElement&&jt(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(e,{hydrateFallbackElement:O.createElement(n.HydrateFallback),HydrateFallback:void 0})),n.ErrorBoundary&&(n.errorElement&&jt(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(e,{errorElement:O.createElement(n.ErrorBoundary),ErrorBoundary:void 0})),e}var GI=["HydrateFallback","hydrateFallbackElement"],JI=class{constructor(){this.status="pending",this.promise=new Promise((n,e)=>{this.resolve=t=>{this.status==="pending"&&(this.status="resolved",n(t))},this.reject=t=>{this.status==="pending"&&(this.status="rejected",e(t))}})}};function XI({router:n,flushSync:e}){let[t,s]=O.useState(n.state),[a,u]=O.useState(),[d,f]=O.useState({isTransitioning:!1}),[p,m]=O.useState(),[g,v]=O.useState(),[S,E]=O.useState(),k=O.useRef(new Map),A=O.useCallback((V,{deletedFetchers:G,flushSync:te,viewTransitionOpts:M})=>{V.fetchers.forEach((ve,re)=>{ve.data!==void 0&&k.current.set(re,ve.data)}),G.forEach(ve=>k.current.delete(ve)),Hg(te===!1||e!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let Le=n.window!=null&&n.window.document!=null&&typeof n.window.document.startViewTransition=="function";if(Hg(M==null||Le,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!M||!Le){e&&te?e(()=>s(V)):O.startTransition(()=>s(V));return}if(e&&te){e(()=>{g&&(p&&p.resolve(),g.skipTransition()),f({isTransitioning:!0,flushSync:!0,currentLocation:M.currentLocation,nextLocation:M.nextLocation})});let ve=n.window.document.startViewTransition(()=>{e(()=>s(V))});ve.finished.finally(()=>{e(()=>{m(void 0),v(void 0),u(void 0),f({isTransitioning:!1})})}),e(()=>v(ve));return}g?(p&&p.resolve(),g.skipTransition(),E({state:V,currentLocation:M.currentLocation,nextLocation:M.nextLocation})):(u(V),f({isTransitioning:!0,flushSync:!1,currentLocation:M.currentLocation,nextLocation:M.nextLocation}))},[n.window,e,g,p]);O.useLayoutEffect(()=>n.subscribe(A),[n,A]),O.useEffect(()=>{d.isTransitioning&&!d.flushSync&&m(new JI)},[d]),O.useEffect(()=>{if(p&&a&&n.window){let V=a,G=p.promise,te=n.window.document.startViewTransition(async()=>{O.startTransition(()=>s(V)),await G});te.finished.finally(()=>{m(void 0),v(void 0),u(void 0),f({isTransitioning:!1})}),v(te)}},[a,p,n.window]),O.useEffect(()=>{p&&a&&t.location.key===a.location.key&&p.resolve()},[p,g,t.location,a]),O.useEffect(()=>{!d.isTransitioning&&S&&(u(S.state),f({isTransitioning:!0,flushSync:!1,currentLocation:S.currentLocation,nextLocation:S.nextLocation}),E(void 0))},[d.isTransitioning,S]);let T=O.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:V=>n.navigate(V),push:(V,G,te)=>n.navigate(V,{state:G,preventScrollReset:te==null?void 0:te.preventScrollReset}),replace:(V,G,te)=>n.navigate(V,{replace:!0,state:G,preventScrollReset:te==null?void 0:te.preventScrollReset})}),[n]),B=n.basename||"/",Z=O.useMemo(()=>({router:n,navigator:T,static:!1,basename:B}),[n,T,B]);return O.createElement(O.Fragment,null,O.createElement(ro.Provider,{value:Z},O.createElement($l.Provider,{value:t},O.createElement(D0.Provider,{value:k.current},O.createElement(op.Provider,{value:d},O.createElement(tE,{basename:B,location:t.location,navigationType:t.historyAction,navigator:T},O.createElement(ZI,{routes:n.routes,future:n.future,state:t})))))),null)}var ZI=O.memo(eE);function eE({routes:n,future:e,state:t}){return TI(n,void 0,t,e)}function EO(n){return NI(n.context)}function tE({basename:n="/",children:e=null,location:t,navigationType:s="POP",navigator:a,static:u=!1}){Qe(!Vl(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let d=n.replace(/^\/*/,"/"),f=O.useMemo(()=>({basename:d,navigator:a,static:u,future:{}}),[d,a,u]);typeof t=="string"&&(t=gs(t));let{pathname:p="/",search:m="",hash:g="",state:v=null,key:S="default"}=t,E=O.useMemo(()=>{let k=ir(p,d);return k==null?null:{location:{pathname:k,search:m,hash:g,state:v,key:S},navigationType:s}},[d,p,m,g,v,S,s]);return jt(E!=null,`<Router basename="${d}"> is not able to match the URL "${p}${m}${g}" because it does not start with the basename, so the <Router> won't render anything.`),E==null?null:O.createElement(Gr.Provider,{value:f},O.createElement(cd.Provider,{children:e,value:E}))}var gc="get",vc="application/x-www-form-urlencoded";function dd(n){return n!=null&&typeof n.tagName=="string"}function nE(n){return dd(n)&&n.tagName.toLowerCase()==="button"}function rE(n){return dd(n)&&n.tagName.toLowerCase()==="form"}function iE(n){return dd(n)&&n.tagName.toLowerCase()==="input"}function sE(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function oE(n,e){return n.button===0&&(!e||e==="_self")&&!sE(n)}var lc=null;function aE(){if(lc===null)try{new FormData(document.createElement("form"),0),lc=!1}catch{lc=!0}return lc}var lE=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ch(n){return n!=null&&!lE.has(n)?(jt(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${vc}"`),null):n}function uE(n,e){let t,s,a,u,d;if(rE(n)){let f=n.getAttribute("action");s=f?ir(f,e):null,t=n.getAttribute("method")||gc,a=ch(n.getAttribute("enctype"))||vc,u=new FormData(n)}else if(nE(n)||iE(n)&&(n.type==="submit"||n.type==="image")){let f=n.form;if(f==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let p=n.getAttribute("formaction")||f.getAttribute("action");if(s=p?ir(p,e):null,t=n.getAttribute("formmethod")||f.getAttribute("method")||gc,a=ch(n.getAttribute("formenctype"))||ch(f.getAttribute("enctype"))||vc,u=new FormData(f,n),!aE()){let{name:m,type:g,value:v}=n;if(g==="image"){let S=m?`${m}.`:"";u.append(`${S}x`,"0"),u.append(`${S}y`,"0")}else m&&u.append(m,v)}}else{if(dd(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');t=gc,s=null,a=vc,d=n}return u&&a==="text/plain"&&(d=u,u=void 0),{action:s,method:t.toLowerCase(),encType:a,formData:u,body:d}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function cp(n,e){if(n===!1||n===null||typeof n>"u")throw new Error(e)}function cE(n,e,t){let s=typeof n=="string"?new URL(n,typeof window>"u"?"server://singlefetch/":window.location.origin):n;return s.pathname==="/"?s.pathname=`_root.${t}`:e&&ir(s.pathname,e)==="/"?s.pathname=`${e.replace(/\/$/,"")}/_root.${t}`:s.pathname=`${s.pathname.replace(/\/$/,"")}.${t}`,s}async function dE(n,e){if(n.id in e)return e[n.id];try{let t=await import(n.module);return e[n.id]=t,t}catch(t){return console.error(`Error loading route module \`${n.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function fE(n){return n==null?!1:n.href==null?n.rel==="preload"&&typeof n.imageSrcSet=="string"&&typeof n.imageSizes=="string":typeof n.rel=="string"&&typeof n.href=="string"}async function hE(n,e,t){let s=await Promise.all(n.map(async a=>{let u=e.routes[a.route.id];if(u){let d=await dE(u,t);return d.links?d.links():[]}return[]}));return gE(s.flat(1).filter(fE).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function Wg(n,e,t,s,a,u){let d=(p,m)=>t[m]?p.route.id!==t[m].route.id:!0,f=(p,m)=>{var g;return t[m].pathname!==p.pathname||((g=t[m].route.path)==null?void 0:g.endsWith("*"))&&t[m].params["*"]!==p.params["*"]};return u==="assets"?e.filter((p,m)=>d(p,m)||f(p,m)):u==="data"?e.filter((p,m)=>{var v;let g=s.routes[p.route.id];if(!g||!g.hasLoader)return!1;if(d(p,m)||f(p,m))return!0;if(p.route.shouldRevalidate){let S=p.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:((v=t[0])==null?void 0:v.params)||{},nextUrl:new URL(n,window.origin),nextParams:p.params,defaultShouldRevalidate:!0});if(typeof S=="boolean")return S}return!0}):[]}function pE(n,e,{includeHydrateFallback:t}={}){return mE(n.map(s=>{let a=e.routes[s.route.id];if(!a)return[];let u=[a.module];return a.clientActionModule&&(u=u.concat(a.clientActionModule)),a.clientLoaderModule&&(u=u.concat(a.clientLoaderModule)),t&&a.hydrateFallbackModule&&(u=u.concat(a.hydrateFallbackModule)),a.imports&&(u=u.concat(a.imports)),u}).flat(1))}function mE(n){return[...new Set(n)]}function yE(n){let e={},t=Object.keys(n).sort();for(let s of t)e[s]=n[s];return e}function gE(n,e){let t=new Set;return new Set(e),n.reduce((s,a)=>{let u=JSON.stringify(yE(a));return t.has(u)||(t.add(u),s.push({key:u,link:a})),s},[])}function R0(){let n=O.useContext(ro);return cp(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function vE(){let n=O.useContext($l);return cp(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var dp=O.createContext(void 0);dp.displayName="FrameworkContext";function M0(){let n=O.useContext(dp);return cp(n,"You must render this element inside a <HydratedRouter> element"),n}function wE(n,e){let t=O.useContext(dp),[s,a]=O.useState(!1),[u,d]=O.useState(!1),{onFocus:f,onBlur:p,onMouseEnter:m,onMouseLeave:g,onTouchStart:v}=e,S=O.useRef(null);O.useEffect(()=>{if(n==="render"&&d(!0),n==="viewport"){let A=B=>{B.forEach(Z=>{d(Z.isIntersecting)})},T=new IntersectionObserver(A,{threshold:.5});return S.current&&T.observe(S.current),()=>{T.disconnect()}}},[n]),O.useEffect(()=>{if(s){let A=setTimeout(()=>{d(!0)},100);return()=>{clearTimeout(A)}}},[s]);let E=()=>{a(!0)},k=()=>{a(!1),d(!1)};return t?n!=="intent"?[u,S,{}]:[u,S,{onFocus:pl(f,E),onBlur:pl(p,k),onMouseEnter:pl(m,E),onMouseLeave:pl(g,k),onTouchStart:pl(v,E)}]:[!1,S,{}]}function pl(n,e){return t=>{n&&n(t),t.defaultPrevented||e(t)}}function SE({page:n,...e}){let{router:t}=R0(),s=O.useMemo(()=>ts(t.routes,n,t.basename),[t.routes,n,t.basename]);return s?O.createElement(bE,{page:n,matches:s,...e}):null}function _E(n){let{manifest:e,routeModules:t}=M0(),[s,a]=O.useState([]);return O.useEffect(()=>{let u=!1;return hE(n,e,t).then(d=>{u||a(d)}),()=>{u=!0}},[n,e,t]),s}function bE({page:n,matches:e,...t}){let s=io(),{manifest:a,routeModules:u}=M0(),{basename:d}=R0(),{loaderData:f,matches:p}=vE(),m=O.useMemo(()=>Wg(n,e,p,a,s,"data"),[n,e,p,a,s]),g=O.useMemo(()=>Wg(n,e,p,a,s,"assets"),[n,e,p,a,s]),v=O.useMemo(()=>{if(n===s.pathname+s.search+s.hash)return[];let k=new Set,A=!1;if(e.forEach(B=>{var V;let Z=a.routes[B.route.id];!Z||!Z.hasLoader||(!m.some(G=>G.route.id===B.route.id)&&B.route.id in f&&((V=u[B.route.id])!=null&&V.shouldRevalidate)||Z.hasClientLoader?A=!0:k.add(B.route.id))}),k.size===0)return[];let T=cE(n,d,"data");return A&&k.size>0&&T.searchParams.set("_routes",e.filter(B=>k.has(B.route.id)).map(B=>B.route.id).join(",")),[T.pathname+T.search]},[d,f,s,a,m,e,n,u]),S=O.useMemo(()=>pE(g,a),[g,a]),E=_E(g);return O.createElement(O.Fragment,null,v.map(k=>O.createElement("link",{key:k,rel:"prefetch",as:"fetch",href:k,...t})),S.map(k=>O.createElement("link",{key:k,rel:"modulepreload",href:k,...t})),E.map(({key:k,link:A})=>O.createElement("link",{key:k,...A})))}function IE(...n){return e=>{n.forEach(t=>{typeof t=="function"?t(e):t!=null&&(t.current=e)})}}var L0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{L0&&(window.__reactRouterVersion="7.7.0")}catch{}function EE(n,e){return fI({basename:e==null?void 0:e.basename,unstable_getContext:e==null?void 0:e.unstable_getContext,future:e==null?void 0:e.future,history:Mb({window:e==null?void 0:e.window}),hydrationData:(e==null?void 0:e.hydrationData)||xE(),routes:n,mapRouteProperties:YI,hydrationRouteProperties:GI,dataStrategy:e==null?void 0:e.dataStrategy,patchRoutesOnNavigation:e==null?void 0:e.patchRoutesOnNavigation,window:e==null?void 0:e.window}).initialize()}function xE(){let n=window==null?void 0:window.__staticRouterHydrationData;return n&&n.errors&&(n={...n,errors:DE(n.errors)}),n}function DE(n){if(!n)return null;let e=Object.entries(n),t={};for(let[s,a]of e)if(a&&a.__type==="RouteErrorResponse")t[s]=new Mc(a.status,a.statusText,a.data,a.internal===!0);else if(a&&a.__type==="Error"){if(a.__subType){let u=window[a.__subType];if(typeof u=="function")try{let d=new u(a.message);d.stack="",t[s]=d}catch{}}if(t[s]==null){let u=new Error(a.message);u.stack="",t[s]=u}}else t[s]=a;return t}var A0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,fp=O.forwardRef(function({onClick:e,discover:t="render",prefetch:s="none",relative:a,reloadDocument:u,replace:d,state:f,target:p,to:m,preventScrollReset:g,viewTransition:v,...S},E){let{basename:k}=O.useContext(Gr),A=typeof m=="string"&&A0.test(m),T,B=!1;if(typeof m=="string"&&A&&(T=m,L0))try{let re=new URL(window.location.href),Fe=m.startsWith("//")?new URL(re.protocol+m):new URL(m),mt=ir(Fe.pathname,k);Fe.origin===re.origin&&mt!=null?m=mt+Fe.search+Fe.hash:B=!0}catch{jt(!1,`<Link to="${m}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let Z=LI(m,{relative:a}),[V,G,te]=wE(s,S),M=RE(m,{replace:d,state:f,target:p,preventScrollReset:g,relative:a,viewTransition:v});function Le(re){e&&e(re),re.defaultPrevented||M(re)}let ve=O.createElement("a",{...S,...te,href:T||Z,onClick:B||u?e:Le,ref:IE(E,G),target:p,"data-discover":!A&&t==="render"?"true":void 0});return V&&!A?O.createElement(O.Fragment,null,ve,O.createElement(SE,{page:Z})):ve});fp.displayName="Link";var CE=O.forwardRef(function({"aria-current":e="page",caseSensitive:t=!1,className:s="",end:a=!1,style:u,to:d,viewTransition:f,children:p,...m},g){let v=Hl(d,{relative:m.relative}),S=io(),E=O.useContext($l),{navigator:k,basename:A}=O.useContext(Gr),T=E!=null&&PE(v)&&f===!0,B=k.encodeLocation?k.encodeLocation(v).pathname:v.pathname,Z=S.pathname,V=E&&E.navigation&&E.navigation.location?E.navigation.location.pathname:null;t||(Z=Z.toLowerCase(),V=V?V.toLowerCase():null,B=B.toLowerCase()),V&&A&&(V=ir(V,A)||V);const G=B!=="/"&&B.endsWith("/")?B.length-1:B.length;let te=Z===B||!a&&Z.startsWith(B)&&Z.charAt(G)==="/",M=V!=null&&(V===B||!a&&V.startsWith(B)&&V.charAt(B.length)==="/"),Le={isActive:te,isPending:M,isTransitioning:T},ve=te?e:void 0,re;typeof s=="function"?re=s(Le):re=[s,te?"active":null,M?"pending":null,T?"transitioning":null].filter(Boolean).join(" ");let Fe=typeof u=="function"?u(Le):u;return O.createElement(fp,{...m,"aria-current":ve,className:re,ref:g,style:Fe,to:d,viewTransition:f},typeof p=="function"?p(Le):p)});CE.displayName="NavLink";var OE=O.forwardRef(({discover:n="render",fetcherKey:e,navigate:t,reloadDocument:s,replace:a,state:u,method:d=gc,action:f,onSubmit:p,relative:m,preventScrollReset:g,viewTransition:v,...S},E)=>{let k=AE(),A=kE(f,{relative:m}),T=d.toLowerCase()==="get"?"get":"post",B=typeof f=="string"&&A0.test(f),Z=V=>{if(p&&p(V),V.defaultPrevented)return;V.preventDefault();let G=V.nativeEvent.submitter,te=(G==null?void 0:G.getAttribute("formmethod"))||d;k(G||V.currentTarget,{fetcherKey:e,method:te,navigate:t,replace:a,state:u,relative:m,preventScrollReset:g,viewTransition:v})};return O.createElement("form",{ref:E,method:T,action:A,onSubmit:s?p:Z,...S,"data-discover":!B&&n==="render"?"true":void 0})});OE.displayName="Form";function FE(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function k0(n){let e=O.useContext(ro);return Qe(e,FE(n)),e}function RE(n,{target:e,replace:t,state:s,preventScrollReset:a,relative:u,viewTransition:d}={}){let f=AI(),p=io(),m=Hl(n,{relative:u});return O.useCallback(g=>{if(oE(g,e)){g.preventDefault();let v=t!==void 0?t:ps(p)===ps(m);f(n,{replace:v,state:s,preventScrollReset:a,relative:u,viewTransition:d})}},[p,f,m,t,s,e,n,a,u,d])}var ME=0,LE=()=>`__${String(++ME)}__`;function AE(){let{router:n}=k0("useSubmit"),{basename:e}=O.useContext(Gr),t=QI();return O.useCallback(async(s,a={})=>{let{action:u,method:d,encType:f,formData:p,body:m}=uE(s,e);if(a.navigate===!1){let g=a.fetcherKey||LE();await n.fetch(g,t,a.action||u,{preventScrollReset:a.preventScrollReset,formData:p,body:m,formMethod:a.method||d,formEncType:a.encType||f,flushSync:a.flushSync})}else await n.navigate(a.action||u,{preventScrollReset:a.preventScrollReset,formData:p,body:m,formMethod:a.method||d,formEncType:a.encType||f,replace:a.replace,state:a.state,fromRouteId:t,flushSync:a.flushSync,viewTransition:a.viewTransition})},[n,e,t])}function kE(n,{relative:e}={}){let{basename:t}=O.useContext(Gr),s=O.useContext(Dr);Qe(s,"useFormAction must be used inside a RouteContext");let[a]=s.matches.slice(-1),u={...Hl(n||".",{relative:e})},d=io();if(n==null){u.search=d.search;let f=new URLSearchParams(u.search),p=f.getAll("index");if(p.some(g=>g==="")){f.delete("index"),p.filter(v=>v).forEach(v=>f.append("index",v));let g=f.toString();u.search=g?`?${g}`:""}}return(!n||n===".")&&a.route.index&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),t!=="/"&&(u.pathname=u.pathname==="/"?t:Qr([t,u.pathname])),ps(u)}function PE(n,e={}){let t=O.useContext(op);Qe(t!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:s}=k0("useViewTransitionState"),a=Hl(n,{relative:e.relative});if(!t.isTransitioning)return!1;let u=ir(t.currentLocation.pathname,s)||t.currentLocation.pathname,d=ir(t.nextLocation.pathname,s)||t.nextLocation.pathname;return Rc(a.pathname,d)!=null||Rc(a.pathname,u)!=null}function P0(n){var e,t,s="";if(typeof n=="string"||typeof n=="number")s+=n;else if(typeof n=="object")if(Array.isArray(n)){var a=n.length;for(e=0;e<a;e++)n[e]&&(t=P0(n[e]))&&(s&&(s+=" "),s+=t)}else for(t in n)n[t]&&(s&&(s+=" "),s+=t);return s}function Kr(){for(var n,e,t=0,s="",a=arguments.length;t<a;t++)(n=arguments[t])&&(e=P0(n))&&(s&&(s+=" "),s+=e);return s}const Nt={xs:"xs",sm:"sm",md:"md",lg:"lg",xl:"xl"},ht={Primary:"primary",Alternative:"alternative",Secondary:"secondary",Success:"success",Danger:"danger",Warning:"warning",Info:"info",Neutral:"neutral"},xO={Left:"left",Right:"right"},Qg=new Map([[Nt.sm,""],[Nt.md,"-2"],[Nt.lg,"-4"]]);function Kg({size:n=Nt.sm,orientation:e="horizontal",className:t}){return U.jsx("span",{className:Kr(["block border-divider",e==="horizontal"&&`w-full border-b${Qg.get(n)??""}`,e==="vertical"&&`h-full border-r${Qg.get(n)??""}`],t)})}const N0=function({children:e}){return U.jsx(U.Fragment,{children:e})};function NE({children:n,layout:e="vertical"}){return U.jsx("div",{className:Kr("font-sans w-full h-full flex overflow-hidden",e==="horizontal"?"flex-row":"flex-col"),children:n})}N0.Page=NE;const DO={Circle:"circle"},CO={Ghost:"ghost"},TE=new Map([["primary","border-primary-500 bg-primary-500 hover:bg-primary-400 active:bg-primary-400 text-light"],["alternative","border-neutral-300 bg-neutral-5 hover:bg-neutral-20 active:bg-neutral-200 text-neutral-600"],["secondary","border-secondary-500 bg-secondary-500 hover:bg-secondary-600 active:bg-secondary-400 text-neutral-100"],["success","border-success-500 bg-success-500 hover:bg-success-600 active:bg-success-400 text-neutral-100"],["danger","border-danger-500 bg-danger-500 hover:bg-danger-600 active:bg-danger-400 text-neutral-100"],["warning","border-warning-500 bg-warning-500 hover:bg-warning-600 active:bg-warning-400 text-neutral-100"],["neutral","border-neutral-200 bg-neutral-200 hover:bg-neutral-300 active:bg-neutral-300 text-primary-900"],["info","border-transparent bg-neutral-10 dark:bg-neutral-20 active:bg-neutral-10 text-neutral-700 dark:text-neutral-200"]]),BE=new Map([["rounded","rounded-md"],["square","rounded-none"],["circle","rounded-full"]]),UE=new Map([[Nt.xs,"text-xs leading-2 border"],[Nt.sm,"px-2 py-[0.125rem] text-xs leading-4 border-2"],[Nt.md,"px-3 py-2 text-base leading-6 border-2"],[Nt.lg,"px-4 py-3 text-lg border-4"]]),OO=T0(Zs.forwardRef(zE)),jE=T0(Zs.forwardRef($E));function zE({type:n="button",disabled:e=!1,children:t=[],form:s,autoFocus:a,tabIndex:u,onClick:d,className:f},p){return U.jsx("button",{ref:p,type:n,autoFocus:a,tabIndex:u,form:s,disabled:e,onClick:d,onKeyDown:m=>{(m.key==="Enter"||m.key===" ")&&(m.preventDefault(),m.stopPropagation(),d==null||d(m))},className:f,children:t})}function $E({children:n=[],autoFocus:e,tabIndex:t,className:s},a){return U.jsx("div",{ref:a,autoFocus:e,tabIndex:t,className:s,children:n})}function T0(n){return Zs.forwardRef(function({type:t="button",disabled:s=!1,variant:a="primary",shape:u="rounded",size:d=Nt.md,children:f=[],className:p,form:m,autoFocus:g,tabIndex:v,onClick:S},E){return U.jsx(n,{ref:E,type:t,disabled:s,form:m,autoFocus:g,tabIndex:v,onClick:S,className:Kr("whitespace-nowrap flex m-1 items-center justify-center font-bold","focus:ring-4 focus:outline-none focus:border-secondary-500","ring-secondary-300 ring-opacity-60 ring-offset ring-offset-secondary-100",BE.get(u),UE.get(d),s?"opacity-50 bg-neutral-10 dark:bg-neutral-20 border-transparent text-prose cursor-not-allowed":TE.get(a),p),children:f})})}function On({description:n,link:e,headline:t="Not Found",message:s="Go Back Home"}){return U.jsx(N0.Page,{children:U.jsx("div",{className:"flex items-center justify-center w-full h-full",children:U.jsxs("div",{className:"text-center",children:[U.jsx("h1",{className:"text-[4rem] md:text-[6rem] lg:text-[9rem] text-secondary-10 dark:text-primary-10 mb-4",children:t}),yn(n)&&U.jsx("p",{className:"mb-10 py-5 px-4 text-neutral-70 dark:text-primary-70 w-full bg-primary-10 rounded-md",children:n}),yn(e)&&U.jsx("div",{className:"inline-block",children:U.jsx(jE,{variant:ht.Alternative,children:U.jsx(fp,{to:e,children:s})})})]})})})}function zs({style:n,className:e,variant:t=ht.Info}){return U.jsxs("svg",{style:n,className:Kr("animate-spin bg-transparent rounded-full",e),viewBox:"0 0 64 64",xmlns:"http://www.w3.org/2000/svg","aria-label":"Loading",role:"img",children:[U.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 59.7128C31.3054 68.5494 50.8763 63.3054 59.7128 48C68.5494 32.6946 63.3054 13.1237 48 4.28719C32.6946 -4.54937 13.1237 0.694636 4.28719 16C-4.54937 31.3054 0.694637 50.8763 16 59.7128ZM23 47.5885C31.6093 52.559 42.6179 49.6093 47.5885 41C52.559 32.3907 49.6093 21.3821 41 16.4115C32.3907 11.441 21.3821 14.3907 16.4115 23C11.441 31.6093 14.3907 42.6179 23 47.5885Z",className:"fill-theme-lighter"}),U.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M50.5827 26.5161C49.2259 21.9157 46.1691 17.8082 41.6875 15.2208C37.4263 12.7606 32.6191 12.103 28.1488 13.0114L25.1365 1.76921C32.4854 0.0988895 40.4586 1.08788 47.5 5.15321C54.7617 9.34574 59.6854 16.0326 61.8138 23.5067L50.5827 26.5161Z",className:Kr(t===ht.Primary&&"fill-primary-500",t===ht.Secondary&&"fill-secondary-500",t===ht.Success&&"fill-success-500",t===ht.Warning&&"fill-warning-500",t===ht.Danger&&"fill-danger-500",t===ht.Info&&"fill-neutral-500"),stroke:Kr(t===ht.Primary&&"var(--color-primary-500)",t===ht.Secondary&&"var(--color-secondary-500)",t===ht.Success&&"var(--color-success-500)",t===ht.Warning&&"var(--color-warning-500)",t===ht.Danger&&"var(--color-danger-500)",t===ht.Info&&"var(--color-neutral-500)"),strokeWidth:"4"})]})}function VE({as:n="p",size:e=Nt.sm,variant:t=ht.Info,text:s,className:a}){const u=n;return U.jsx(u,{className:Kr("font-bold whitespace-nowrap",t===ht.Primary&&"text-primary-600 dark:text-primary-400",t===ht.Secondary&&"text-secondary-600 dark:text-secondary-400",t===ht.Success&&"text-success-600 dark:text-success-400",t===ht.Warning&&"text-warning-600 dark:text-warning-400",t===ht.Danger&&"text-danger-600 dark:text-danger-400",t===ht.Info&&"text-neutral-600 dark:text-neutral-400",e===Nt.xs&&"text-xs",e===Nt.sm&&"text-md",e===Nt.md&&"text-lg",e===Nt.lg&&"text-2xl",e===Nt.xl&&"text-4xl",a),children:s})}function Uo({hasSpinner:n=!1,size:e=Nt.sm,variant:t=ht.Info,text:s,children:a,className:u}){return U.jsx("span",{className:Kr(t===ht.Primary&&"text-primary-600 dark:text-primary-400",t===ht.Secondary&&"text-secondary-600 dark:text-secondary-400",t===ht.Success&&"text-success-600 dark:text-success-400",t===ht.Warning&&"text-warning-600 dark:text-warning-400",t===ht.Danger&&"text-danger-600 dark:text-danger-400",t===ht.Info&&"text-neutral-600 dark:text-neutral-400",u),children:U.jsxs("span",{className:"flex items-center w-full",children:[n&&U.jsx(zs,{variant:t,className:Kr(e===Nt.xs&&"w-2 h-2 mr-2",e===Nt.sm&&"w-3 h-3 mr-2",e===Nt.md&&"w-4 h-4 mr-2",e===Nt.lg&&"w-5 h-5 mr-4",e===Nt.xl&&"w-6 h-6 mr-4")}),yn(s)?U.jsx(VE,{size:e,variant:t,text:s}):a]})})}var qg=function(){return qg=Object.assign||function(e){for(var t,s=1,a=arguments.length;s<a;s++){t=arguments[s];for(var u in t)Object.prototype.hasOwnProperty.call(t,u)&&(e[u]=t[u])}return e},qg.apply(this,arguments)};function FO(n,e){var t={};for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&e.indexOf(s)<0&&(t[s]=n[s]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,s=Object.getOwnPropertySymbols(n);a<s.length;a++)e.indexOf(s[a])<0&&Object.prototype.propertyIsEnumerable.call(n,s[a])&&(t[s[a]]=n[s[a]]);return t}function ke(n,e,t,s){function a(u){return u instanceof t?u:new t(function(d){d(u)})}return new(t||(t=Promise))(function(u,d){function f(g){try{m(s.next(g))}catch(v){d(v)}}function p(g){try{m(s.throw(g))}catch(v){d(v)}}function m(g){g.done?u(g.value):a(g.value).then(f,p)}m((s=s.apply(n,e||[])).next())})}function Yg(n){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&n[e],s=0;if(t)return t.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&s>=n.length&&(n=void 0),{value:n&&n[s++],done:!n}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function RO(n,e,t){if(t||arguments.length===2)for(var s=0,a=e.length,u;s<a;s++)(u||!(s in e))&&(u||(u=Array.prototype.slice.call(e,0,s)),u[s]=e[s]);return n.concat(u||Array.prototype.slice.call(e))}function Te(n){return this instanceof Te?(this.v=n,this):new Te(n)}function Wr(n,e,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var s=t.apply(n,e||[]),a,u=[];return a=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),f("next"),f("throw"),f("return",d),a[Symbol.asyncIterator]=function(){return this},a;function d(E){return function(k){return Promise.resolve(k).then(E,v)}}function f(E,k){s[E]&&(a[E]=function(A){return new Promise(function(T,B){u.push([E,A,T,B])>1||p(E,A)})},k&&(a[E]=k(a[E])))}function p(E,k){try{m(s[E](k))}catch(A){S(u[0][3],A)}}function m(E){E.value instanceof Te?Promise.resolve(E.value.v).then(g,v):S(u[0][2],E)}function g(E){p("next",E)}function v(E){p("throw",E)}function S(E,k){E(k),u.shift(),u.length&&p(u[0][0],u[0][1])}}function wc(n){var e,t;return e={},s("next"),s("throw",function(a){throw a}),s("return"),e[Symbol.iterator]=function(){return this},e;function s(a,u){e[a]=n[a]?function(d){return(t=!t)?{value:Te(n[a](d)),done:!1}:u?u(d):d}:u}}function Xo(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=n[Symbol.asyncIterator],t;return e?e.call(n):(n=typeof Yg=="function"?Yg(n):n[Symbol.iterator](),t={},s("next"),s("throw"),s("return"),t[Symbol.asyncIterator]=function(){return this},t);function s(u){t[u]=n[u]&&function(d){return new Promise(function(f,p){d=n[u](d),a(f,p,d.done,d.value)})}}function a(u,d,f,p){Promise.resolve(p).then(function(m){u({value:m,done:f})},d)}}const HE=new TextDecoder("utf-8"),Nh=n=>HE.decode(n),WE=new TextEncoder,hp=n=>WE.encode(n),QE=n=>typeof n=="number",KE=n=>typeof n=="boolean",mn=n=>typeof n=="function",Er=n=>n!=null&&Object(n)===n,Al=n=>Er(n)&&mn(n.then),fd=n=>Er(n)&&mn(n[Symbol.iterator]),pp=n=>Er(n)&&mn(n[Symbol.asyncIterator]),Th=n=>Er(n)&&Er(n.schema),B0=n=>Er(n)&&"done"in n&&"value"in n,U0=n=>Er(n)&&mn(n.stat)&&QE(n.fd),j0=n=>Er(n)&&mp(n.body),z0=n=>"_getDOMStream"in n&&"_getNodeStream"in n,mp=n=>Er(n)&&mn(n.cancel)&&mn(n.getReader)&&!z0(n),$0=n=>Er(n)&&mn(n.read)&&mn(n.pipe)&&KE(n.readable)&&!z0(n),qE=n=>Er(n)&&mn(n.clear)&&mn(n.bytes)&&mn(n.position)&&mn(n.setPosition)&&mn(n.capacity)&&mn(n.getBufferIdentifier)&&mn(n.createLong),yp=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:ArrayBuffer;function YE(n){const e=n[0]?[n[0]]:[];let t,s,a,u;for(let d,f,p=0,m=0,g=n.length;++p<g;){if(d=e[m],f=n[p],!d||!f||d.buffer!==f.buffer||f.byteOffset<d.byteOffset){f&&(e[++m]=f);continue}if({byteOffset:t,byteLength:a}=d,{byteOffset:s,byteLength:u}=f,t+a<s||s+u<t){f&&(e[++m]=f);continue}e[m]=new Uint8Array(d.buffer,t,s-t+u)}return e}function Gg(n,e,t=0,s=e.byteLength){const a=n.byteLength,u=new Uint8Array(n.buffer,n.byteOffset,a),d=new Uint8Array(e.buffer,e.byteOffset,Math.min(s,a));return u.set(d,t),n}function qr(n,e){const t=YE(n),s=t.reduce((g,v)=>g+v.byteLength,0);let a,u,d,f=0,p=-1;const m=Math.min(e||Number.POSITIVE_INFINITY,s);for(const g=t.length;++p<g;){if(a=t[p],u=a.subarray(0,Math.min(a.length,m-f)),m<=f+u.length){u.length<a.length?t[p]=a.subarray(u.length):u.length===a.length&&p++,d?Gg(d,u,f):d=u;break}Gg(d||(d=new Uint8Array(m)),u,f),f+=u.length}return[d||new Uint8Array(0),t.slice(p),s-(d?d.byteLength:0)]}function ut(n,e){let t=B0(e)?e.value:e;return t instanceof n?n===Uint8Array?new n(t.buffer,t.byteOffset,t.byteLength):t:t?(typeof t=="string"&&(t=hp(t)),t instanceof ArrayBuffer?new n(t):t instanceof yp?new n(t):qE(t)?ut(n,t.bytes()):ArrayBuffer.isView(t)?t.byteLength<=0?new n(0):new n(t.buffer,t.byteOffset,t.byteLength/n.BYTES_PER_ELEMENT):n.from(t)):new n(0)}const ml=n=>ut(Int32Array,n),Jg=n=>ut(BigInt64Array,n),qe=n=>ut(Uint8Array,n),Bh=n=>(n.next(),n);function*GE(n,e){const t=function*(a){yield a},s=typeof e=="string"||ArrayBuffer.isView(e)||e instanceof ArrayBuffer||e instanceof yp?t(e):fd(e)?e:t(e);return yield*Bh(function*(a){let u=null;do u=a.next(yield ut(n,u));while(!u.done)}(s[Symbol.iterator]())),new n}const JE=n=>GE(Uint8Array,n);function V0(n,e){return Wr(this,arguments,function*(){if(Al(e))return yield Te(yield Te(yield*wc(Xo(V0(n,yield Te(e))))));const s=function(d){return Wr(this,arguments,function*(){yield yield Te(yield Te(d))})},a=function(d){return Wr(this,arguments,function*(){yield Te(yield*wc(Xo(Bh(function*(f){let p=null;do p=f.next(yield p==null?void 0:p.value);while(!p.done)}(d[Symbol.iterator]())))))})},u=typeof e=="string"||ArrayBuffer.isView(e)||e instanceof ArrayBuffer||e instanceof yp?s(e):fd(e)?a(e):pp(e)?e:s(e);return yield Te(yield*wc(Xo(Bh(function(d){return Wr(this,arguments,function*(){let f=null;do f=yield Te(d.next(yield yield Te(ut(n,f))));while(!f.done)})}(u[Symbol.asyncIterator]()))))),yield Te(new n)})}const XE=n=>V0(Uint8Array,n);function ZE(n,e){let t=0;const s=n.length;if(s!==e.length)return!1;if(s>0)do if(n[t]!==e[t])return!1;while(++t<s);return!0}const er={fromIterable(n){return uc(ex(n))},fromAsyncIterable(n){return uc(tx(n))},fromDOMStream(n){return uc(nx(n))},fromNodeStream(n){return uc(ix(n))},toDOMStream(n,e){throw new Error('"toDOMStream" not available in this environment')},toNodeStream(n,e){throw new Error('"toNodeStream" not available in this environment')}},uc=n=>(n.next(),n);function*ex(n){let e,t=!1,s=[],a,u,d,f=0;function p(){return u==="peek"?qr(s,d)[0]:([a,s,f]=qr(s,d),a)}({cmd:u,size:d}=(yield null)||{cmd:"read",size:0});const m=JE(n)[Symbol.iterator]();try{do if({done:e,value:a}=Number.isNaN(d-f)?m.next():m.next(d-f),!e&&a.byteLength>0&&(s.push(a),f+=a.byteLength),e||d<=f)do({cmd:u,size:d}=yield p());while(d<f);while(!e)}catch(g){(t=!0)&&typeof m.throw=="function"&&m.throw(g)}finally{t===!1&&typeof m.return=="function"&&m.return(null)}return null}function tx(n){return Wr(this,arguments,function*(){let t,s=!1,a=[],u,d,f,p=0;function m(){return d==="peek"?qr(a,f)[0]:([u,a,p]=qr(a,f),u)}({cmd:d,size:f}=(yield yield Te(null))||{cmd:"read",size:0});const g=XE(n)[Symbol.asyncIterator]();try{do if({done:t,value:u}=Number.isNaN(f-p)?yield Te(g.next()):yield Te(g.next(f-p)),!t&&u.byteLength>0&&(a.push(u),p+=u.byteLength),t||f<=p)do({cmd:d,size:f}=yield yield Te(m()));while(f<p);while(!t)}catch(v){(s=!0)&&typeof g.throw=="function"&&(yield Te(g.throw(v)))}finally{s===!1&&typeof g.return=="function"&&(yield Te(g.return(new Uint8Array(0))))}return yield Te(null)})}function nx(n){return Wr(this,arguments,function*(){let t=!1,s=!1,a=[],u,d,f,p=0;function m(){return d==="peek"?qr(a,f)[0]:([u,a,p]=qr(a,f),u)}({cmd:d,size:f}=(yield yield Te(null))||{cmd:"read",size:0});const g=new rx(n);try{do if({done:t,value:u}=Number.isNaN(f-p)?yield Te(g.read()):yield Te(g.read(f-p)),!t&&u.byteLength>0&&(a.push(qe(u)),p+=u.byteLength),t||f<=p)do({cmd:d,size:f}=yield yield Te(m()));while(f<p);while(!t)}catch(v){(s=!0)&&(yield Te(g.cancel(v)))}finally{s===!1?yield Te(g.cancel()):n.locked&&g.releaseLock()}return yield Te(null)})}class rx{constructor(e){this.source=e,this.reader=null,this.reader=this.source.getReader(),this.reader.closed.catch(()=>{})}get closed(){return this.reader?this.reader.closed.catch(()=>{}):Promise.resolve()}releaseLock(){this.reader&&this.reader.releaseLock(),this.reader=null}cancel(e){return ke(this,void 0,void 0,function*(){const{reader:t,source:s}=this;t&&(yield t.cancel(e).catch(()=>{})),s&&s.locked&&this.releaseLock()})}read(e){return ke(this,void 0,void 0,function*(){if(e===0)return{done:this.reader==null,value:new Uint8Array(0)};const t=yield this.reader.read();return!t.done&&(t.value=qe(t)),t})}}const dh=(n,e)=>{const t=a=>s([e,a]);let s;return[e,t,new Promise(a=>(s=a)&&n.once(e,t))]};function ix(n){return Wr(this,arguments,function*(){const t=[];let s="error",a=!1,u=null,d,f,p=0,m=[],g;function v(){return d==="peek"?qr(m,f)[0]:([g,m,p]=qr(m,f),g)}if({cmd:d,size:f}=(yield yield Te(null))||{cmd:"read",size:0},n.isTTY)return yield yield Te(new Uint8Array(0)),yield Te(null);try{t[0]=dh(n,"end"),t[1]=dh(n,"error");do{if(t[2]=dh(n,"readable"),[s,u]=yield Te(Promise.race(t.map(E=>E[2]))),s==="error")break;if((a=s==="end")||(Number.isFinite(f-p)?(g=qe(n.read(f-p)),g.byteLength<f-p&&(g=qe(n.read()))):g=qe(n.read()),g.byteLength>0&&(m.push(g),p+=g.byteLength)),a||f<=p)do({cmd:d,size:f}=yield yield Te(v()));while(f<p)}while(!a)}finally{yield Te(S(t,s==="error"?u:null))}return yield Te(null);function S(E,k){return g=m=null,new Promise((A,T)=>{for(const[B,Z]of E)n.off(B,Z);try{const B=n.destroy;B&&B.call(n,k),k=void 0}catch(B){k=B||k}finally{k!=null?T(k):A()}})}})}var Ut;(function(n){n[n.V1=0]="V1",n[n.V2=1]="V2",n[n.V3=2]="V3",n[n.V4=3]="V4",n[n.V5=4]="V5"})(Ut||(Ut={}));var kn;(function(n){n[n.Sparse=0]="Sparse",n[n.Dense=1]="Dense"})(kn||(kn={}));var ln;(function(n){n[n.HALF=0]="HALF",n[n.SINGLE=1]="SINGLE",n[n.DOUBLE=2]="DOUBLE"})(ln||(ln={}));var sr;(function(n){n[n.DAY=0]="DAY",n[n.MILLISECOND=1]="MILLISECOND"})(sr||(sr={}));var Ee;(function(n){n[n.SECOND=0]="SECOND",n[n.MILLISECOND=1]="MILLISECOND",n[n.MICROSECOND=2]="MICROSECOND",n[n.NANOSECOND=3]="NANOSECOND"})(Ee||(Ee={}));var Yr;(function(n){n[n.YEAR_MONTH=0]="YEAR_MONTH",n[n.DAY_TIME=1]="DAY_TIME",n[n.MONTH_DAY_NANO=2]="MONTH_DAY_NANO"})(Yr||(Yr={}));const fh=2,$r=4,mi=4,ot=4,Zi=new Int32Array(2),Xg=new Float32Array(Zi.buffer),Zg=new Float64Array(Zi.buffer),cc=new Uint16Array(new Uint8Array([1,0]).buffer)[0]===1;var Uh;(function(n){n[n.UTF8_BYTES=1]="UTF8_BYTES",n[n.UTF16_STRING=2]="UTF16_STRING"})(Uh||(Uh={}));let ma=class H0{constructor(e){this.bytes_=e,this.position_=0,this.text_decoder_=new TextDecoder}static allocate(e){return new H0(new Uint8Array(e))}clear(){this.position_=0}bytes(){return this.bytes_}position(){return this.position_}setPosition(e){this.position_=e}capacity(){return this.bytes_.length}readInt8(e){return this.readUint8(e)<<24>>24}readUint8(e){return this.bytes_[e]}readInt16(e){return this.readUint16(e)<<16>>16}readUint16(e){return this.bytes_[e]|this.bytes_[e+1]<<8}readInt32(e){return this.bytes_[e]|this.bytes_[e+1]<<8|this.bytes_[e+2]<<16|this.bytes_[e+3]<<24}readUint32(e){return this.readInt32(e)>>>0}readInt64(e){return BigInt.asIntN(64,BigInt(this.readUint32(e))+(BigInt(this.readUint32(e+4))<<BigInt(32)))}readUint64(e){return BigInt.asUintN(64,BigInt(this.readUint32(e))+(BigInt(this.readUint32(e+4))<<BigInt(32)))}readFloat32(e){return Zi[0]=this.readInt32(e),Xg[0]}readFloat64(e){return Zi[cc?0:1]=this.readInt32(e),Zi[cc?1:0]=this.readInt32(e+4),Zg[0]}writeInt8(e,t){this.bytes_[e]=t}writeUint8(e,t){this.bytes_[e]=t}writeInt16(e,t){this.bytes_[e]=t,this.bytes_[e+1]=t>>8}writeUint16(e,t){this.bytes_[e]=t,this.bytes_[e+1]=t>>8}writeInt32(e,t){this.bytes_[e]=t,this.bytes_[e+1]=t>>8,this.bytes_[e+2]=t>>16,this.bytes_[e+3]=t>>24}writeUint32(e,t){this.bytes_[e]=t,this.bytes_[e+1]=t>>8,this.bytes_[e+2]=t>>16,this.bytes_[e+3]=t>>24}writeInt64(e,t){this.writeInt32(e,Number(BigInt.asIntN(32,t))),this.writeInt32(e+4,Number(BigInt.asIntN(32,t>>BigInt(32))))}writeUint64(e,t){this.writeUint32(e,Number(BigInt.asUintN(32,t))),this.writeUint32(e+4,Number(BigInt.asUintN(32,t>>BigInt(32))))}writeFloat32(e,t){Xg[0]=t,this.writeInt32(e,Zi[0])}writeFloat64(e,t){Zg[0]=t,this.writeInt32(e,Zi[cc?0:1]),this.writeInt32(e+4,Zi[cc?1:0])}getBufferIdentifier(){if(this.bytes_.length<this.position_+$r+mi)throw new Error("FlatBuffers: ByteBuffer is too short to contain an identifier.");let e="";for(let t=0;t<mi;t++)e+=String.fromCharCode(this.readInt8(this.position_+$r+t));return e}__offset(e,t){const s=e-this.readInt32(e);return t<this.readInt16(s)?this.readInt16(s+t):0}__union(e,t){return e.bb_pos=t+this.readInt32(t),e.bb=this,e}__string(e,t){e+=this.readInt32(e);const s=this.readInt32(e);e+=$r;const a=this.bytes_.subarray(e,e+s);return t===Uh.UTF8_BYTES?a:this.text_decoder_.decode(a)}__union_with_string(e,t){return typeof e=="string"?this.__string(t):this.__union(e,t)}__indirect(e){return e+this.readInt32(e)}__vector(e){return e+this.readInt32(e)+$r}__vector_len(e){return this.readInt32(e+this.readInt32(e))}__has_identifier(e){if(e.length!=mi)throw new Error("FlatBuffers: file identifier must be length "+mi);for(let t=0;t<mi;t++)if(e.charCodeAt(t)!=this.readInt8(this.position()+$r+t))return!1;return!0}createScalarList(e,t){const s=[];for(let a=0;a<t;++a){const u=e(a);u!==null&&s.push(u)}return s}createObjList(e,t){const s=[];for(let a=0;a<t;++a){const u=e(a);u!==null&&s.push(u.unpack())}return s}},W0=class Q0{constructor(e){this.minalign=1,this.vtable=null,this.vtable_in_use=0,this.isNested=!1,this.object_start=0,this.vtables=[],this.vector_num_elems=0,this.force_defaults=!1,this.string_maps=null,this.text_encoder=new TextEncoder;let t;e?t=e:t=1024,this.bb=ma.allocate(t),this.space=t}clear(){this.bb.clear(),this.space=this.bb.capacity(),this.minalign=1,this.vtable=null,this.vtable_in_use=0,this.isNested=!1,this.object_start=0,this.vtables=[],this.vector_num_elems=0,this.force_defaults=!1,this.string_maps=null}forceDefaults(e){this.force_defaults=e}dataBuffer(){return this.bb}asUint8Array(){return this.bb.bytes().subarray(this.bb.position(),this.bb.position()+this.offset())}prep(e,t){e>this.minalign&&(this.minalign=e);const s=~(this.bb.capacity()-this.space+t)+1&e-1;for(;this.space<s+e+t;){const a=this.bb.capacity();this.bb=Q0.growByteBuffer(this.bb),this.space+=this.bb.capacity()-a}this.pad(s)}pad(e){for(let t=0;t<e;t++)this.bb.writeInt8(--this.space,0)}writeInt8(e){this.bb.writeInt8(this.space-=1,e)}writeInt16(e){this.bb.writeInt16(this.space-=2,e)}writeInt32(e){this.bb.writeInt32(this.space-=4,e)}writeInt64(e){this.bb.writeInt64(this.space-=8,e)}writeFloat32(e){this.bb.writeFloat32(this.space-=4,e)}writeFloat64(e){this.bb.writeFloat64(this.space-=8,e)}addInt8(e){this.prep(1,0),this.writeInt8(e)}addInt16(e){this.prep(2,0),this.writeInt16(e)}addInt32(e){this.prep(4,0),this.writeInt32(e)}addInt64(e){this.prep(8,0),this.writeInt64(e)}addFloat32(e){this.prep(4,0),this.writeFloat32(e)}addFloat64(e){this.prep(8,0),this.writeFloat64(e)}addFieldInt8(e,t,s){(this.force_defaults||t!=s)&&(this.addInt8(t),this.slot(e))}addFieldInt16(e,t,s){(this.force_defaults||t!=s)&&(this.addInt16(t),this.slot(e))}addFieldInt32(e,t,s){(this.force_defaults||t!=s)&&(this.addInt32(t),this.slot(e))}addFieldInt64(e,t,s){(this.force_defaults||t!==s)&&(this.addInt64(t),this.slot(e))}addFieldFloat32(e,t,s){(this.force_defaults||t!=s)&&(this.addFloat32(t),this.slot(e))}addFieldFloat64(e,t,s){(this.force_defaults||t!=s)&&(this.addFloat64(t),this.slot(e))}addFieldOffset(e,t,s){(this.force_defaults||t!=s)&&(this.addOffset(t),this.slot(e))}addFieldStruct(e,t,s){t!=s&&(this.nested(t),this.slot(e))}nested(e){if(e!=this.offset())throw new TypeError("FlatBuffers: struct must be serialized inline.")}notNested(){if(this.isNested)throw new TypeError("FlatBuffers: object serialization must not be nested.")}slot(e){this.vtable!==null&&(this.vtable[e]=this.offset())}offset(){return this.bb.capacity()-this.space}static growByteBuffer(e){const t=e.capacity();if(t&3221225472)throw new Error("FlatBuffers: cannot grow buffer beyond 2 gigabytes.");const s=t<<1,a=ma.allocate(s);return a.setPosition(s-t),a.bytes().set(e.bytes(),s-t),a}addOffset(e){this.prep($r,0),this.writeInt32(this.offset()-e+$r)}startObject(e){this.notNested(),this.vtable==null&&(this.vtable=[]),this.vtable_in_use=e;for(let t=0;t<e;t++)this.vtable[t]=0;this.isNested=!0,this.object_start=this.offset()}endObject(){if(this.vtable==null||!this.isNested)throw new Error("FlatBuffers: endObject called without startObject");this.addInt32(0);const e=this.offset();let t=this.vtable_in_use-1;for(;t>=0&&this.vtable[t]==0;t--);const s=t+1;for(;t>=0;t--)this.addInt16(this.vtable[t]!=0?e-this.vtable[t]:0);const a=2;this.addInt16(e-this.object_start);const u=(s+a)*fh;this.addInt16(u);let d=0;const f=this.space;e:for(t=0;t<this.vtables.length;t++){const p=this.bb.capacity()-this.vtables[t];if(u==this.bb.readInt16(p)){for(let m=fh;m<u;m+=fh)if(this.bb.readInt16(f+m)!=this.bb.readInt16(p+m))continue e;d=this.vtables[t];break}}return d?(this.space=this.bb.capacity()-e,this.bb.writeInt32(this.space,d-e)):(this.vtables.push(this.offset()),this.bb.writeInt32(this.bb.capacity()-e,this.offset()-e)),this.isNested=!1,e}finish(e,t,s){const a=s?ot:0;if(t){const u=t;if(this.prep(this.minalign,$r+mi+a),u.length!=mi)throw new TypeError("FlatBuffers: file identifier must be length "+mi);for(let d=mi-1;d>=0;d--)this.writeInt8(u.charCodeAt(d))}this.prep(this.minalign,$r+a),this.addOffset(e),a&&this.addInt32(this.bb.capacity()-this.space),this.bb.setPosition(this.space)}finishSizePrefixed(e,t){this.finish(e,t,!0)}requiredField(e,t){const s=this.bb.capacity()-e,a=s-this.bb.readInt32(s);if(!(t<this.bb.readInt16(a)&&this.bb.readInt16(a+t)!=0))throw new TypeError("FlatBuffers: field "+t+" must be set")}startVector(e,t,s){this.notNested(),this.vector_num_elems=t,this.prep($r,e*t),this.prep(s,e*t)}endVector(){return this.writeInt32(this.vector_num_elems),this.offset()}createSharedString(e){if(!e)return 0;if(this.string_maps||(this.string_maps=new Map),this.string_maps.has(e))return this.string_maps.get(e);const t=this.createString(e);return this.string_maps.set(e,t),t}createString(e){if(e==null)return 0;let t;return e instanceof Uint8Array?t=e:t=this.text_encoder.encode(e),this.addInt8(0),this.startVector(1,t.length,1),this.bb.setPosition(this.space-=t.length),this.bb.bytes().set(t,this.space),this.endVector()}createByteVector(e){return e==null?0:(this.startVector(1,e.length,1),this.bb.setPosition(this.space-=e.length),this.bb.bytes().set(e,this.space),this.endVector())}createObjectOffset(e){return e===null?0:typeof e=="string"?this.createString(e):e.pack(this)}createObjectOffsetList(e){const t=[];for(let s=0;s<e.length;++s){const a=e[s];if(a!==null)t.push(this.createObjectOffset(a));else throw new TypeError("FlatBuffers: Argument for createObjectOffsetList cannot contain null.")}return t}createStructOffsetList(e,t){return t(this,e.length),this.createObjectOffsetList(e.slice().reverse()),this.endVector()}};var Ac;(function(n){n[n.BUFFER=0]="BUFFER"})(Ac||(Ac={}));var kc;(function(n){n[n.LZ4_FRAME=0]="LZ4_FRAME",n[n.ZSTD=1]="ZSTD"})(kc||(kc={}));class es{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsBodyCompression(e,t){return(t||new es).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsBodyCompression(e,t){return e.setPosition(e.position()+ot),(t||new es).__init(e.readInt32(e.position())+e.position(),e)}codec(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt8(this.bb_pos+e):kc.LZ4_FRAME}method(){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readInt8(this.bb_pos+e):Ac.BUFFER}static startBodyCompression(e){e.startObject(2)}static addCodec(e,t){e.addFieldInt8(0,t,kc.LZ4_FRAME)}static addMethod(e,t){e.addFieldInt8(1,t,Ac.BUFFER)}static endBodyCompression(e){return e.endObject()}static createBodyCompression(e,t,s){return es.startBodyCompression(e),es.addCodec(e,t),es.addMethod(e,s),es.endBodyCompression(e)}}class K0{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}offset(){return this.bb.readInt64(this.bb_pos)}length(){return this.bb.readInt64(this.bb_pos+8)}static sizeOf(){return 16}static createBuffer(e,t,s){return e.prep(8,16),e.writeInt64(BigInt(s??0)),e.writeInt64(BigInt(t??0)),e.offset()}}let q0=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}length(){return this.bb.readInt64(this.bb_pos)}nullCount(){return this.bb.readInt64(this.bb_pos+8)}static sizeOf(){return 16}static createFieldNode(e,t,s){return e.prep(8,16),e.writeInt64(BigInt(s??0)),e.writeInt64(BigInt(t??0)),e.offset()}},ci=class jh{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsRecordBatch(e,t){return(t||new jh).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsRecordBatch(e,t){return e.setPosition(e.position()+ot),(t||new jh).__init(e.readInt32(e.position())+e.position(),e)}length(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt64(this.bb_pos+e):BigInt("0")}nodes(e,t){const s=this.bb.__offset(this.bb_pos,6);return s?(t||new q0).__init(this.bb.__vector(this.bb_pos+s)+e*16,this.bb):null}nodesLength(){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__vector_len(this.bb_pos+e):0}buffers(e,t){const s=this.bb.__offset(this.bb_pos,8);return s?(t||new K0).__init(this.bb.__vector(this.bb_pos+s)+e*16,this.bb):null}buffersLength(){const e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__vector_len(this.bb_pos+e):0}compression(e){const t=this.bb.__offset(this.bb_pos,10);return t?(e||new es).__init(this.bb.__indirect(this.bb_pos+t),this.bb):null}static startRecordBatch(e){e.startObject(4)}static addLength(e,t){e.addFieldInt64(0,t,BigInt("0"))}static addNodes(e,t){e.addFieldOffset(1,t,0)}static startNodesVector(e,t){e.startVector(16,t,8)}static addBuffers(e,t){e.addFieldOffset(2,t,0)}static startBuffersVector(e,t){e.startVector(16,t,8)}static addCompression(e,t){e.addFieldOffset(3,t,0)}static endRecordBatch(e){return e.endObject()}},jo=class zh{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsDictionaryBatch(e,t){return(t||new zh).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDictionaryBatch(e,t){return e.setPosition(e.position()+ot),(t||new zh).__init(e.readInt32(e.position())+e.position(),e)}id(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt64(this.bb_pos+e):BigInt("0")}data(e){const t=this.bb.__offset(this.bb_pos,6);return t?(e||new ci).__init(this.bb.__indirect(this.bb_pos+t),this.bb):null}isDelta(){const e=this.bb.__offset(this.bb_pos,8);return e?!!this.bb.readInt8(this.bb_pos+e):!1}static startDictionaryBatch(e){e.startObject(3)}static addId(e,t){e.addFieldInt64(0,t,BigInt("0"))}static addData(e,t){e.addFieldOffset(1,t,0)}static addIsDelta(e,t){e.addFieldInt8(2,+t,0)}static endDictionaryBatch(e){return e.endObject()}};var ya;(function(n){n[n.Little=0]="Little",n[n.Big=1]="Big"})(ya||(ya={}));var Pc;(function(n){n[n.DenseArray=0]="DenseArray"})(Pc||(Pc={}));class $n{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsInt(e,t){return(t||new $n).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsInt(e,t){return e.setPosition(e.position()+ot),(t||new $n).__init(e.readInt32(e.position())+e.position(),e)}bitWidth(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt32(this.bb_pos+e):0}isSigned(){const e=this.bb.__offset(this.bb_pos,6);return e?!!this.bb.readInt8(this.bb_pos+e):!1}static startInt(e){e.startObject(2)}static addBitWidth(e,t){e.addFieldInt32(0,t,0)}static addIsSigned(e,t){e.addFieldInt8(1,+t,0)}static endInt(e){return e.endObject()}static createInt(e,t,s){return $n.startInt(e),$n.addBitWidth(e,t),$n.addIsSigned(e,s),$n.endInt(e)}}class yi{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsDictionaryEncoding(e,t){return(t||new yi).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDictionaryEncoding(e,t){return e.setPosition(e.position()+ot),(t||new yi).__init(e.readInt32(e.position())+e.position(),e)}id(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt64(this.bb_pos+e):BigInt("0")}indexType(e){const t=this.bb.__offset(this.bb_pos,6);return t?(e||new $n).__init(this.bb.__indirect(this.bb_pos+t),this.bb):null}isOrdered(){const e=this.bb.__offset(this.bb_pos,8);return e?!!this.bb.readInt8(this.bb_pos+e):!1}dictionaryKind(){const e=this.bb.__offset(this.bb_pos,10);return e?this.bb.readInt16(this.bb_pos+e):Pc.DenseArray}static startDictionaryEncoding(e){e.startObject(4)}static addId(e,t){e.addFieldInt64(0,t,BigInt("0"))}static addIndexType(e,t){e.addFieldOffset(1,t,0)}static addIsOrdered(e,t){e.addFieldInt8(2,+t,0)}static addDictionaryKind(e,t){e.addFieldInt16(3,t,Pc.DenseArray)}static endDictionaryEncoding(e){return e.endObject()}}class Wt{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsKeyValue(e,t){return(t||new Wt).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsKeyValue(e,t){return e.setPosition(e.position()+ot),(t||new Wt).__init(e.readInt32(e.position())+e.position(),e)}key(e){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.__string(this.bb_pos+t,e):null}value(e){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__string(this.bb_pos+t,e):null}static startKeyValue(e){e.startObject(2)}static addKey(e,t){e.addFieldOffset(0,t,0)}static addValue(e,t){e.addFieldOffset(1,t,0)}static endKeyValue(e){return e.endObject()}static createKeyValue(e,t,s){return Wt.startKeyValue(e),Wt.addKey(e,t),Wt.addValue(e,s),Wt.endKeyValue(e)}}let ev=class wl{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsBinary(e,t){return(t||new wl).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsBinary(e,t){return e.setPosition(e.position()+ot),(t||new wl).__init(e.readInt32(e.position())+e.position(),e)}static startBinary(e){e.startObject(0)}static endBinary(e){return e.endObject()}static createBinary(e){return wl.startBinary(e),wl.endBinary(e)}},tv=class Sl{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsBool(e,t){return(t||new Sl).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsBool(e,t){return e.setPosition(e.position()+ot),(t||new Sl).__init(e.readInt32(e.position())+e.position(),e)}static startBool(e){e.startObject(0)}static endBool(e){return e.endObject()}static createBool(e){return Sl.startBool(e),Sl.endBool(e)}},Sc=class zo{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsDate(e,t){return(t||new zo).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDate(e,t){return e.setPosition(e.position()+ot),(t||new zo).__init(e.readInt32(e.position())+e.position(),e)}unit(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):sr.MILLISECOND}static startDate(e){e.startObject(1)}static addUnit(e,t){e.addFieldInt16(0,t,sr.MILLISECOND)}static endDate(e){return e.endObject()}static createDate(e,t){return zo.startDate(e),zo.addUnit(e,t),zo.endDate(e)}},$o=class Xi{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsDecimal(e,t){return(t||new Xi).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDecimal(e,t){return e.setPosition(e.position()+ot),(t||new Xi).__init(e.readInt32(e.position())+e.position(),e)}precision(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt32(this.bb_pos+e):0}scale(){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readInt32(this.bb_pos+e):0}bitWidth(){const e=this.bb.__offset(this.bb_pos,8);return e?this.bb.readInt32(this.bb_pos+e):128}static startDecimal(e){e.startObject(3)}static addPrecision(e,t){e.addFieldInt32(0,t,0)}static addScale(e,t){e.addFieldInt32(1,t,0)}static addBitWidth(e,t){e.addFieldInt32(2,t,128)}static endDecimal(e){return e.endObject()}static createDecimal(e,t,s,a){return Xi.startDecimal(e),Xi.addPrecision(e,t),Xi.addScale(e,s),Xi.addBitWidth(e,a),Xi.endDecimal(e)}},_c=class Vo{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsDuration(e,t){return(t||new Vo).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDuration(e,t){return e.setPosition(e.position()+ot),(t||new Vo).__init(e.readInt32(e.position())+e.position(),e)}unit(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):Ee.MILLISECOND}static startDuration(e){e.startObject(1)}static addUnit(e,t){e.addFieldInt16(0,t,Ee.MILLISECOND)}static endDuration(e){return e.endObject()}static createDuration(e,t){return Vo.startDuration(e),Vo.addUnit(e,t),Vo.endDuration(e)}},bc=class Ho{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsFixedSizeBinary(e,t){return(t||new Ho).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsFixedSizeBinary(e,t){return e.setPosition(e.position()+ot),(t||new Ho).__init(e.readInt32(e.position())+e.position(),e)}byteWidth(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt32(this.bb_pos+e):0}static startFixedSizeBinary(e){e.startObject(1)}static addByteWidth(e,t){e.addFieldInt32(0,t,0)}static endFixedSizeBinary(e){return e.endObject()}static createFixedSizeBinary(e,t){return Ho.startFixedSizeBinary(e),Ho.addByteWidth(e,t),Ho.endFixedSizeBinary(e)}},Ic=class Wo{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsFixedSizeList(e,t){return(t||new Wo).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsFixedSizeList(e,t){return e.setPosition(e.position()+ot),(t||new Wo).__init(e.readInt32(e.position())+e.position(),e)}listSize(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt32(this.bb_pos+e):0}static startFixedSizeList(e){e.startObject(1)}static addListSize(e,t){e.addFieldInt32(0,t,0)}static endFixedSizeList(e){return e.endObject()}static createFixedSizeList(e,t){return Wo.startFixedSizeList(e),Wo.addListSize(e,t),Wo.endFixedSizeList(e)}};class Vr{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsFloatingPoint(e,t){return(t||new Vr).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsFloatingPoint(e,t){return e.setPosition(e.position()+ot),(t||new Vr).__init(e.readInt32(e.position())+e.position(),e)}precision(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):ln.HALF}static startFloatingPoint(e){e.startObject(1)}static addPrecision(e,t){e.addFieldInt16(0,t,ln.HALF)}static endFloatingPoint(e){return e.endObject()}static createFloatingPoint(e,t){return Vr.startFloatingPoint(e),Vr.addPrecision(e,t),Vr.endFloatingPoint(e)}}class Hr{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsInterval(e,t){return(t||new Hr).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsInterval(e,t){return e.setPosition(e.position()+ot),(t||new Hr).__init(e.readInt32(e.position())+e.position(),e)}unit(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):Yr.YEAR_MONTH}static startInterval(e){e.startObject(1)}static addUnit(e,t){e.addFieldInt16(0,t,Yr.YEAR_MONTH)}static endInterval(e){return e.endObject()}static createInterval(e,t){return Hr.startInterval(e),Hr.addUnit(e,t),Hr.endInterval(e)}}let nv=class _l{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsLargeBinary(e,t){return(t||new _l).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsLargeBinary(e,t){return e.setPosition(e.position()+ot),(t||new _l).__init(e.readInt32(e.position())+e.position(),e)}static startLargeBinary(e){e.startObject(0)}static endLargeBinary(e){return e.endObject()}static createLargeBinary(e){return _l.startLargeBinary(e),_l.endLargeBinary(e)}},rv=class bl{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsLargeUtf8(e,t){return(t||new bl).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsLargeUtf8(e,t){return e.setPosition(e.position()+ot),(t||new bl).__init(e.readInt32(e.position())+e.position(),e)}static startLargeUtf8(e){e.startObject(0)}static endLargeUtf8(e){return e.endObject()}static createLargeUtf8(e){return bl.startLargeUtf8(e),bl.endLargeUtf8(e)}},iv=class Il{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsList(e,t){return(t||new Il).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsList(e,t){return e.setPosition(e.position()+ot),(t||new Il).__init(e.readInt32(e.position())+e.position(),e)}static startList(e){e.startObject(0)}static endList(e){return e.endObject()}static createList(e){return Il.startList(e),Il.endList(e)}},Ec=class Qo{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsMap(e,t){return(t||new Qo).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsMap(e,t){return e.setPosition(e.position()+ot),(t||new Qo).__init(e.readInt32(e.position())+e.position(),e)}keysSorted(){const e=this.bb.__offset(this.bb_pos,4);return e?!!this.bb.readInt8(this.bb_pos+e):!1}static startMap(e){e.startObject(1)}static addKeysSorted(e,t){e.addFieldInt8(0,+t,0)}static endMap(e){return e.endObject()}static createMap(e,t){return Qo.startMap(e),Qo.addKeysSorted(e,t),Qo.endMap(e)}},sv=class El{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsNull(e,t){return(t||new El).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsNull(e,t){return e.setPosition(e.position()+ot),(t||new El).__init(e.readInt32(e.position())+e.position(),e)}static startNull(e){e.startObject(0)}static endNull(e){return e.endObject()}static createNull(e){return El.startNull(e),El.endNull(e)}};class Vs{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsStruct_(e,t){return(t||new Vs).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsStruct_(e,t){return e.setPosition(e.position()+ot),(t||new Vs).__init(e.readInt32(e.position())+e.position(),e)}static startStruct_(e){e.startObject(0)}static endStruct_(e){return e.endObject()}static createStruct_(e){return Vs.startStruct_(e),Vs.endStruct_(e)}}class tr{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsTime(e,t){return(t||new tr).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsTime(e,t){return e.setPosition(e.position()+ot),(t||new tr).__init(e.readInt32(e.position())+e.position(),e)}unit(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):Ee.MILLISECOND}bitWidth(){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readInt32(this.bb_pos+e):32}static startTime(e){e.startObject(2)}static addUnit(e,t){e.addFieldInt16(0,t,Ee.MILLISECOND)}static addBitWidth(e,t){e.addFieldInt32(1,t,32)}static endTime(e){return e.endObject()}static createTime(e,t,s){return tr.startTime(e),tr.addUnit(e,t),tr.addBitWidth(e,s),tr.endTime(e)}}class nr{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsTimestamp(e,t){return(t||new nr).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsTimestamp(e,t){return e.setPosition(e.position()+ot),(t||new nr).__init(e.readInt32(e.position())+e.position(),e)}unit(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):Ee.SECOND}timezone(e){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__string(this.bb_pos+t,e):null}static startTimestamp(e){e.startObject(2)}static addUnit(e,t){e.addFieldInt16(0,t,Ee.SECOND)}static addTimezone(e,t){e.addFieldOffset(1,t,0)}static endTimestamp(e){return e.endObject()}static createTimestamp(e,t,s){return nr.startTimestamp(e),nr.addUnit(e,t),nr.addTimezone(e,s),nr.endTimestamp(e)}}class An{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsUnion(e,t){return(t||new An).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsUnion(e,t){return e.setPosition(e.position()+ot),(t||new An).__init(e.readInt32(e.position())+e.position(),e)}mode(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):kn.Sparse}typeIds(e){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readInt32(this.bb.__vector(this.bb_pos+t)+e*4):0}typeIdsLength(){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__vector_len(this.bb_pos+e):0}typeIdsArray(){const e=this.bb.__offset(this.bb_pos,6);return e?new Int32Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+e),this.bb.__vector_len(this.bb_pos+e)):null}static startUnion(e){e.startObject(2)}static addMode(e,t){e.addFieldInt16(0,t,kn.Sparse)}static addTypeIds(e,t){e.addFieldOffset(1,t,0)}static createTypeIdsVector(e,t){e.startVector(4,t.length,4);for(let s=t.length-1;s>=0;s--)e.addInt32(t[s]);return e.endVector()}static startTypeIdsVector(e,t){e.startVector(4,t,4)}static endUnion(e){return e.endObject()}static createUnion(e,t,s){return An.startUnion(e),An.addMode(e,t),An.addTypeIds(e,s),An.endUnion(e)}}let ov=class xl{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsUtf8(e,t){return(t||new xl).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsUtf8(e,t){return e.setPosition(e.position()+ot),(t||new xl).__init(e.readInt32(e.position())+e.position(),e)}static startUtf8(e){e.startObject(0)}static endUtf8(e){return e.endObject()}static createUtf8(e){return xl.startUtf8(e),xl.endUtf8(e)}};var St;(function(n){n[n.NONE=0]="NONE",n[n.Null=1]="Null",n[n.Int=2]="Int",n[n.FloatingPoint=3]="FloatingPoint",n[n.Binary=4]="Binary",n[n.Utf8=5]="Utf8",n[n.Bool=6]="Bool",n[n.Decimal=7]="Decimal",n[n.Date=8]="Date",n[n.Time=9]="Time",n[n.Timestamp=10]="Timestamp",n[n.Interval=11]="Interval",n[n.List=12]="List",n[n.Struct_=13]="Struct_",n[n.Union=14]="Union",n[n.FixedSizeBinary=15]="FixedSizeBinary",n[n.FixedSizeList=16]="FixedSizeList",n[n.Map=17]="Map",n[n.Duration=18]="Duration",n[n.LargeBinary=19]="LargeBinary",n[n.LargeUtf8=20]="LargeUtf8",n[n.LargeList=21]="LargeList",n[n.RunEndEncoded=22]="RunEndEncoded"})(St||(St={}));let Gn=class xc{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsField(e,t){return(t||new xc).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsField(e,t){return e.setPosition(e.position()+ot),(t||new xc).__init(e.readInt32(e.position())+e.position(),e)}name(e){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.__string(this.bb_pos+t,e):null}nullable(){const e=this.bb.__offset(this.bb_pos,6);return e?!!this.bb.readInt8(this.bb_pos+e):!1}typeType(){const e=this.bb.__offset(this.bb_pos,8);return e?this.bb.readUint8(this.bb_pos+e):St.NONE}type(e){const t=this.bb.__offset(this.bb_pos,10);return t?this.bb.__union(e,this.bb_pos+t):null}dictionary(e){const t=this.bb.__offset(this.bb_pos,12);return t?(e||new yi).__init(this.bb.__indirect(this.bb_pos+t),this.bb):null}children(e,t){const s=this.bb.__offset(this.bb_pos,14);return s?(t||new xc).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+s)+e*4),this.bb):null}childrenLength(){const e=this.bb.__offset(this.bb_pos,14);return e?this.bb.__vector_len(this.bb_pos+e):0}customMetadata(e,t){const s=this.bb.__offset(this.bb_pos,16);return s?(t||new Wt).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+s)+e*4),this.bb):null}customMetadataLength(){const e=this.bb.__offset(this.bb_pos,16);return e?this.bb.__vector_len(this.bb_pos+e):0}static startField(e){e.startObject(7)}static addName(e,t){e.addFieldOffset(0,t,0)}static addNullable(e,t){e.addFieldInt8(1,+t,0)}static addTypeType(e,t){e.addFieldInt8(2,t,St.NONE)}static addType(e,t){e.addFieldOffset(3,t,0)}static addDictionary(e,t){e.addFieldOffset(4,t,0)}static addChildren(e,t){e.addFieldOffset(5,t,0)}static createChildrenVector(e,t){e.startVector(4,t.length,4);for(let s=t.length-1;s>=0;s--)e.addOffset(t[s]);return e.endVector()}static startChildrenVector(e,t){e.startVector(4,t,4)}static addCustomMetadata(e,t){e.addFieldOffset(6,t,0)}static createCustomMetadataVector(e,t){e.startVector(4,t.length,4);for(let s=t.length-1;s>=0;s--)e.addOffset(t[s]);return e.endVector()}static startCustomMetadataVector(e,t){e.startVector(4,t,4)}static endField(e){return e.endObject()}},Tr=class ui{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsSchema(e,t){return(t||new ui).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsSchema(e,t){return e.setPosition(e.position()+ot),(t||new ui).__init(e.readInt32(e.position())+e.position(),e)}endianness(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):ya.Little}fields(e,t){const s=this.bb.__offset(this.bb_pos,6);return s?(t||new Gn).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+s)+e*4),this.bb):null}fieldsLength(){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__vector_len(this.bb_pos+e):0}customMetadata(e,t){const s=this.bb.__offset(this.bb_pos,8);return s?(t||new Wt).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+s)+e*4),this.bb):null}customMetadataLength(){const e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__vector_len(this.bb_pos+e):0}features(e){const t=this.bb.__offset(this.bb_pos,10);return t?this.bb.readInt64(this.bb.__vector(this.bb_pos+t)+e*8):BigInt(0)}featuresLength(){const e=this.bb.__offset(this.bb_pos,10);return e?this.bb.__vector_len(this.bb_pos+e):0}static startSchema(e){e.startObject(4)}static addEndianness(e,t){e.addFieldInt16(0,t,ya.Little)}static addFields(e,t){e.addFieldOffset(1,t,0)}static createFieldsVector(e,t){e.startVector(4,t.length,4);for(let s=t.length-1;s>=0;s--)e.addOffset(t[s]);return e.endVector()}static startFieldsVector(e,t){e.startVector(4,t,4)}static addCustomMetadata(e,t){e.addFieldOffset(2,t,0)}static createCustomMetadataVector(e,t){e.startVector(4,t.length,4);for(let s=t.length-1;s>=0;s--)e.addOffset(t[s]);return e.endVector()}static startCustomMetadataVector(e,t){e.startVector(4,t,4)}static addFeatures(e,t){e.addFieldOffset(3,t,0)}static createFeaturesVector(e,t){e.startVector(8,t.length,8);for(let s=t.length-1;s>=0;s--)e.addInt64(t[s]);return e.endVector()}static startFeaturesVector(e,t){e.startVector(8,t,8)}static endSchema(e){return e.endObject()}static finishSchemaBuffer(e,t){e.finish(t)}static finishSizePrefixedSchemaBuffer(e,t){e.finish(t,void 0,!0)}static createSchema(e,t,s,a,u){return ui.startSchema(e),ui.addEndianness(e,t),ui.addFields(e,s),ui.addCustomMetadata(e,a),ui.addFeatures(e,u),ui.endSchema(e)}};var rt;(function(n){n[n.NONE=0]="NONE",n[n.Schema=1]="Schema",n[n.DictionaryBatch=2]="DictionaryBatch",n[n.RecordBatch=3]="RecordBatch",n[n.Tensor=4]="Tensor",n[n.SparseTensor=5]="SparseTensor"})(rt||(rt={}));var D;(function(n){n[n.NONE=0]="NONE",n[n.Null=1]="Null",n[n.Int=2]="Int",n[n.Float=3]="Float",n[n.Binary=4]="Binary",n[n.Utf8=5]="Utf8",n[n.Bool=6]="Bool",n[n.Decimal=7]="Decimal",n[n.Date=8]="Date",n[n.Time=9]="Time",n[n.Timestamp=10]="Timestamp",n[n.Interval=11]="Interval",n[n.List=12]="List",n[n.Struct=13]="Struct",n[n.Union=14]="Union",n[n.FixedSizeBinary=15]="FixedSizeBinary",n[n.FixedSizeList=16]="FixedSizeList",n[n.Map=17]="Map",n[n.Duration=18]="Duration",n[n.LargeBinary=19]="LargeBinary",n[n.LargeUtf8=20]="LargeUtf8",n[n.Dictionary=-1]="Dictionary",n[n.Int8=-2]="Int8",n[n.Int16=-3]="Int16",n[n.Int32=-4]="Int32",n[n.Int64=-5]="Int64",n[n.Uint8=-6]="Uint8",n[n.Uint16=-7]="Uint16",n[n.Uint32=-8]="Uint32",n[n.Uint64=-9]="Uint64",n[n.Float16=-10]="Float16",n[n.Float32=-11]="Float32",n[n.Float64=-12]="Float64",n[n.DateDay=-13]="DateDay",n[n.DateMillisecond=-14]="DateMillisecond",n[n.TimestampSecond=-15]="TimestampSecond",n[n.TimestampMillisecond=-16]="TimestampMillisecond",n[n.TimestampMicrosecond=-17]="TimestampMicrosecond",n[n.TimestampNanosecond=-18]="TimestampNanosecond",n[n.TimeSecond=-19]="TimeSecond",n[n.TimeMillisecond=-20]="TimeMillisecond",n[n.TimeMicrosecond=-21]="TimeMicrosecond",n[n.TimeNanosecond=-22]="TimeNanosecond",n[n.DenseUnion=-23]="DenseUnion",n[n.SparseUnion=-24]="SparseUnion",n[n.IntervalDayTime=-25]="IntervalDayTime",n[n.IntervalYearMonth=-26]="IntervalYearMonth",n[n.DurationSecond=-27]="DurationSecond",n[n.DurationMillisecond=-28]="DurationMillisecond",n[n.DurationMicrosecond=-29]="DurationMicrosecond",n[n.DurationNanosecond=-30]="DurationNanosecond"})(D||(D={}));var di;(function(n){n[n.OFFSET=0]="OFFSET",n[n.DATA=1]="DATA",n[n.VALIDITY=2]="VALIDITY",n[n.TYPE=3]="TYPE"})(di||(di={}));const sx=void 0;function kl(n){if(n===null)return"null";if(n===sx)return"undefined";switch(typeof n){case"number":return`${n}`;case"bigint":return`${n}`;case"string":return`"${n}"`}return typeof n[Symbol.toPrimitive]=="function"?n[Symbol.toPrimitive]("string"):ArrayBuffer.isView(n)?n instanceof BigInt64Array||n instanceof BigUint64Array?`[${[...n].map(e=>kl(e))}]`:`[${n}]`:ArrayBuffer.isView(n)?`[${n}]`:JSON.stringify(n,(e,t)=>typeof t=="bigint"?`${t}`:t)}function xt(n){if(typeof n=="bigint"&&(n<Number.MIN_SAFE_INTEGER||n>Number.MAX_SAFE_INTEGER))throw new TypeError(`${n} is not safe to convert to a number.`);return Number(n)}function Y0(n,e){return xt(n/e)+xt(n%e)/xt(e)}const ox=Symbol.for("isArrowBigNum");function Cr(n,...e){return e.length===0?Object.setPrototypeOf(ut(this.TypedArray,n),this.constructor.prototype):Object.setPrototypeOf(new this.TypedArray(n,...e),this.constructor.prototype)}Cr.prototype[ox]=!0;Cr.prototype.toJSON=function(){return`"${Nl(this)}"`};Cr.prototype.valueOf=function(n){return G0(this,n)};Cr.prototype.toString=function(){return Nl(this)};Cr.prototype[Symbol.toPrimitive]=function(n="default"){switch(n){case"number":return G0(this);case"string":return Nl(this);case"default":return ux(this)}return Nl(this)};function Zo(...n){return Cr.apply(this,n)}function ea(...n){return Cr.apply(this,n)}function Pl(...n){return Cr.apply(this,n)}Object.setPrototypeOf(Zo.prototype,Object.create(Int32Array.prototype));Object.setPrototypeOf(ea.prototype,Object.create(Uint32Array.prototype));Object.setPrototypeOf(Pl.prototype,Object.create(Uint32Array.prototype));Object.assign(Zo.prototype,Cr.prototype,{constructor:Zo,signed:!0,TypedArray:Int32Array,BigIntArray:BigInt64Array});Object.assign(ea.prototype,Cr.prototype,{constructor:ea,signed:!1,TypedArray:Uint32Array,BigIntArray:BigUint64Array});Object.assign(Pl.prototype,Cr.prototype,{constructor:Pl,signed:!0,TypedArray:Uint32Array,BigIntArray:BigUint64Array});const ax=BigInt(4294967296)*BigInt(4294967296),lx=ax-BigInt(1);function G0(n,e){const{buffer:t,byteOffset:s,byteLength:a,signed:u}=n,d=new BigUint64Array(t,s,a/8),f=u&&d.at(-1)&BigInt(1)<<BigInt(63);let p=BigInt(0),m=0;if(f){for(const g of d)p|=(g^lx)*(BigInt(1)<<BigInt(64*m++));p*=BigInt(-1),p-=BigInt(1)}else for(const g of d)p|=g*(BigInt(1)<<BigInt(64*m++));if(typeof e=="number"){const g=BigInt(Math.pow(10,e)),v=p/g,S=p%g;return xt(v)+xt(S)/xt(g)}return xt(p)}function Nl(n){if(n.byteLength===8)return`${new n.BigIntArray(n.buffer,n.byteOffset,1)[0]}`;if(!n.signed)return hh(n);let e=new Uint16Array(n.buffer,n.byteOffset,n.byteLength/2);if(new Int16Array([e.at(-1)])[0]>=0)return hh(n);e=e.slice();let s=1;for(let u=0;u<e.length;u++){const d=e[u],f=~d+s;e[u]=f,s&=d===0?1:0}return`-${hh(e)}`}function ux(n){return n.byteLength===8?new n.BigIntArray(n.buffer,n.byteOffset,1)[0]:Nl(n)}function hh(n){let e="";const t=new Uint32Array(2);let s=new Uint16Array(n.buffer,n.byteOffset,n.byteLength/2);const a=new Uint32Array((s=new Uint16Array(s).reverse()).buffer);let u=-1;const d=s.length-1;do{for(t[0]=s[u=0];u<d;)s[u++]=t[1]=t[0]/10,t[0]=(t[0]-t[1]*10<<16)+s[u];s[u]=t[1]=t[0]/10,t[0]=t[0]-t[1]*10,e=`${t[0]}${e}`}while(a[0]||a[1]||a[2]||a[3]);return e??"0"}class gp{static new(e,t){switch(t){case!0:return new Zo(e);case!1:return new ea(e)}switch(e.constructor){case Int8Array:case Int16Array:case Int32Array:case BigInt64Array:return new Zo(e)}return e.byteLength===16?new Pl(e):new ea(e)}static signed(e){return new Zo(e)}static unsigned(e){return new ea(e)}static decimal(e){return new Pl(e)}constructor(e,t){return gp.new(e,t)}}var J0,X0,Z0,ew,tw,nw,rw,iw,sw,ow,aw,lw,uw,cw,dw,fw,hw,pw,mw,yw,gw,vw;class fe{static isNull(e){return(e==null?void 0:e.typeId)===D.Null}static isInt(e){return(e==null?void 0:e.typeId)===D.Int}static isFloat(e){return(e==null?void 0:e.typeId)===D.Float}static isBinary(e){return(e==null?void 0:e.typeId)===D.Binary}static isLargeBinary(e){return(e==null?void 0:e.typeId)===D.LargeBinary}static isUtf8(e){return(e==null?void 0:e.typeId)===D.Utf8}static isLargeUtf8(e){return(e==null?void 0:e.typeId)===D.LargeUtf8}static isBool(e){return(e==null?void 0:e.typeId)===D.Bool}static isDecimal(e){return(e==null?void 0:e.typeId)===D.Decimal}static isDate(e){return(e==null?void 0:e.typeId)===D.Date}static isTime(e){return(e==null?void 0:e.typeId)===D.Time}static isTimestamp(e){return(e==null?void 0:e.typeId)===D.Timestamp}static isInterval(e){return(e==null?void 0:e.typeId)===D.Interval}static isDuration(e){return(e==null?void 0:e.typeId)===D.Duration}static isList(e){return(e==null?void 0:e.typeId)===D.List}static isStruct(e){return(e==null?void 0:e.typeId)===D.Struct}static isUnion(e){return(e==null?void 0:e.typeId)===D.Union}static isFixedSizeBinary(e){return(e==null?void 0:e.typeId)===D.FixedSizeBinary}static isFixedSizeList(e){return(e==null?void 0:e.typeId)===D.FixedSizeList}static isMap(e){return(e==null?void 0:e.typeId)===D.Map}static isDictionary(e){return(e==null?void 0:e.typeId)===D.Dictionary}static isDenseUnion(e){return fe.isUnion(e)&&e.mode===kn.Dense}static isSparseUnion(e){return fe.isUnion(e)&&e.mode===kn.Sparse}constructor(e){this.typeId=e}}J0=Symbol.toStringTag;fe[J0]=(n=>(n.children=null,n.ArrayType=Array,n.OffsetArrayType=Int32Array,n[Symbol.toStringTag]="DataType"))(fe.prototype);class ms extends fe{constructor(){super(D.Null)}toString(){return"Null"}}X0=Symbol.toStringTag;ms[X0]=(n=>n[Symbol.toStringTag]="Null")(ms.prototype);class no extends fe{constructor(e,t){super(D.Int),this.isSigned=e,this.bitWidth=t}get ArrayType(){switch(this.bitWidth){case 8:return this.isSigned?Int8Array:Uint8Array;case 16:return this.isSigned?Int16Array:Uint16Array;case 32:return this.isSigned?Int32Array:Uint32Array;case 64:return this.isSigned?BigInt64Array:BigUint64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`${this.isSigned?"I":"Ui"}nt${this.bitWidth}`}}Z0=Symbol.toStringTag;no[Z0]=(n=>(n.isSigned=null,n.bitWidth=null,n[Symbol.toStringTag]="Int"))(no.prototype);class Tl extends no{constructor(){super(!0,32)}get ArrayType(){return Int32Array}}Object.defineProperty(Tl.prototype,"ArrayType",{value:Int32Array});class Nc extends fe{constructor(e){super(D.Float),this.precision=e}get ArrayType(){switch(this.precision){case ln.HALF:return Uint16Array;case ln.SINGLE:return Float32Array;case ln.DOUBLE:return Float64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`Float${this.precision<<5||16}`}}ew=Symbol.toStringTag;Nc[ew]=(n=>(n.precision=null,n[Symbol.toStringTag]="Float"))(Nc.prototype);class Tc extends fe{constructor(){super(D.Binary)}toString(){return"Binary"}}tw=Symbol.toStringTag;Tc[tw]=(n=>(n.ArrayType=Uint8Array,n[Symbol.toStringTag]="Binary"))(Tc.prototype);class Bc extends fe{constructor(){super(D.LargeBinary)}toString(){return"LargeBinary"}}nw=Symbol.toStringTag;Bc[nw]=(n=>(n.ArrayType=Uint8Array,n.OffsetArrayType=BigInt64Array,n[Symbol.toStringTag]="LargeBinary"))(Bc.prototype);class Uc extends fe{constructor(){super(D.Utf8)}toString(){return"Utf8"}}rw=Symbol.toStringTag;Uc[rw]=(n=>(n.ArrayType=Uint8Array,n[Symbol.toStringTag]="Utf8"))(Uc.prototype);class jc extends fe{constructor(){super(D.LargeUtf8)}toString(){return"LargeUtf8"}}iw=Symbol.toStringTag;jc[iw]=(n=>(n.ArrayType=Uint8Array,n.OffsetArrayType=BigInt64Array,n[Symbol.toStringTag]="LargeUtf8"))(jc.prototype);class zc extends fe{constructor(){super(D.Bool)}toString(){return"Bool"}}sw=Symbol.toStringTag;zc[sw]=(n=>(n.ArrayType=Uint8Array,n[Symbol.toStringTag]="Bool"))(zc.prototype);class $c extends fe{constructor(e,t,s=128){super(D.Decimal),this.scale=e,this.precision=t,this.bitWidth=s}toString(){return`Decimal[${this.precision}e${this.scale>0?"+":""}${this.scale}]`}}ow=Symbol.toStringTag;$c[ow]=(n=>(n.scale=null,n.precision=null,n.ArrayType=Uint32Array,n[Symbol.toStringTag]="Decimal"))($c.prototype);class Vc extends fe{constructor(e){super(D.Date),this.unit=e}toString(){return`Date${(this.unit+1)*32}<${sr[this.unit]}>`}get ArrayType(){return this.unit===sr.DAY?Int32Array:BigInt64Array}}aw=Symbol.toStringTag;Vc[aw]=(n=>(n.unit=null,n[Symbol.toStringTag]="Date"))(Vc.prototype);class Hc extends fe{constructor(e,t){super(D.Time),this.unit=e,this.bitWidth=t}toString(){return`Time${this.bitWidth}<${Ee[this.unit]}>`}get ArrayType(){switch(this.bitWidth){case 32:return Int32Array;case 64:return BigInt64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}}lw=Symbol.toStringTag;Hc[lw]=(n=>(n.unit=null,n.bitWidth=null,n[Symbol.toStringTag]="Time"))(Hc.prototype);class Wc extends fe{constructor(e,t){super(D.Timestamp),this.unit=e,this.timezone=t}toString(){return`Timestamp<${Ee[this.unit]}${this.timezone?`, ${this.timezone}`:""}>`}}uw=Symbol.toStringTag;Wc[uw]=(n=>(n.unit=null,n.timezone=null,n.ArrayType=BigInt64Array,n[Symbol.toStringTag]="Timestamp"))(Wc.prototype);class Qc extends fe{constructor(e){super(D.Interval),this.unit=e}toString(){return`Interval<${Yr[this.unit]}>`}}cw=Symbol.toStringTag;Qc[cw]=(n=>(n.unit=null,n.ArrayType=Int32Array,n[Symbol.toStringTag]="Interval"))(Qc.prototype);class Kc extends fe{constructor(e){super(D.Duration),this.unit=e}toString(){return`Duration<${Ee[this.unit]}>`}}dw=Symbol.toStringTag;Kc[dw]=(n=>(n.unit=null,n.ArrayType=BigInt64Array,n[Symbol.toStringTag]="Duration"))(Kc.prototype);class qc extends fe{constructor(e){super(D.List),this.children=[e]}toString(){return`List<${this.valueType}>`}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}}fw=Symbol.toStringTag;qc[fw]=(n=>(n.children=null,n[Symbol.toStringTag]="List"))(qc.prototype);class gn extends fe{constructor(e){super(D.Struct),this.children=e}toString(){return`Struct<{${this.children.map(e=>`${e.name}:${e.type}`).join(", ")}}>`}}hw=Symbol.toStringTag;gn[hw]=(n=>(n.children=null,n[Symbol.toStringTag]="Struct"))(gn.prototype);class Yc extends fe{constructor(e,t,s){super(D.Union),this.mode=e,this.children=s,this.typeIds=t=Int32Array.from(t),this.typeIdToChildIndex=t.reduce((a,u,d)=>(a[u]=d)&&a||a,Object.create(null))}toString(){return`${this[Symbol.toStringTag]}<${this.children.map(e=>`${e.type}`).join(" | ")}>`}}pw=Symbol.toStringTag;Yc[pw]=(n=>(n.mode=null,n.typeIds=null,n.children=null,n.typeIdToChildIndex=null,n.ArrayType=Int8Array,n[Symbol.toStringTag]="Union"))(Yc.prototype);class Gc extends fe{constructor(e){super(D.FixedSizeBinary),this.byteWidth=e}toString(){return`FixedSizeBinary[${this.byteWidth}]`}}mw=Symbol.toStringTag;Gc[mw]=(n=>(n.byteWidth=null,n.ArrayType=Uint8Array,n[Symbol.toStringTag]="FixedSizeBinary"))(Gc.prototype);class Jc extends fe{constructor(e,t){super(D.FixedSizeList),this.listSize=e,this.children=[t]}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}toString(){return`FixedSizeList[${this.listSize}]<${this.valueType}>`}}yw=Symbol.toStringTag;Jc[yw]=(n=>(n.children=null,n.listSize=null,n[Symbol.toStringTag]="FixedSizeList"))(Jc.prototype);class Xc extends fe{constructor(e,t=!1){var s,a,u;if(super(D.Map),this.children=[e],this.keysSorted=t,e&&(e.name="entries",!((s=e==null?void 0:e.type)===null||s===void 0)&&s.children)){const d=(a=e==null?void 0:e.type)===null||a===void 0?void 0:a.children[0];d&&(d.name="key");const f=(u=e==null?void 0:e.type)===null||u===void 0?void 0:u.children[1];f&&(f.name="value")}}get keyType(){return this.children[0].type.children[0].type}get valueType(){return this.children[0].type.children[1].type}get childType(){return this.children[0].type}toString(){return`Map<{${this.children[0].type.children.map(e=>`${e.name}:${e.type}`).join(", ")}}>`}}gw=Symbol.toStringTag;Xc[gw]=(n=>(n.children=null,n.keysSorted=null,n[Symbol.toStringTag]="Map_"))(Xc.prototype);const cx=(n=>()=>++n)(-1);class ga extends fe{constructor(e,t,s,a){super(D.Dictionary),this.indices=t,this.dictionary=e,this.isOrdered=a||!1,this.id=s==null?cx():xt(s)}get children(){return this.dictionary.children}get valueType(){return this.dictionary}get ArrayType(){return this.dictionary.ArrayType}toString(){return`Dictionary<${this.indices}, ${this.dictionary}>`}}vw=Symbol.toStringTag;ga[vw]=(n=>(n.id=null,n.indices=null,n.isOrdered=null,n.dictionary=null,n[Symbol.toStringTag]="Dictionary"))(ga.prototype);function fi(n){const e=n;switch(n.typeId){case D.Decimal:return n.bitWidth/32;case D.Interval:return 1+e.unit;case D.FixedSizeList:return e.listSize;case D.FixedSizeBinary:return e.byteWidth;default:return 1}}class He{visitMany(e,...t){return e.map((s,a)=>this.visit(s,...t.map(u=>u[a])))}visit(...e){return this.getVisitFn(e[0],!1).apply(this,e)}getVisitFn(e,t=!0){return dx(this,e,t)}getVisitFnByTypeId(e,t=!0){return Ko(this,e,t)}visitNull(e,...t){return null}visitBool(e,...t){return null}visitInt(e,...t){return null}visitFloat(e,...t){return null}visitUtf8(e,...t){return null}visitLargeUtf8(e,...t){return null}visitBinary(e,...t){return null}visitLargeBinary(e,...t){return null}visitFixedSizeBinary(e,...t){return null}visitDate(e,...t){return null}visitTimestamp(e,...t){return null}visitTime(e,...t){return null}visitDecimal(e,...t){return null}visitList(e,...t){return null}visitStruct(e,...t){return null}visitUnion(e,...t){return null}visitDictionary(e,...t){return null}visitInterval(e,...t){return null}visitDuration(e,...t){return null}visitFixedSizeList(e,...t){return null}visitMap(e,...t){return null}}function dx(n,e,t=!0){return typeof e=="number"?Ko(n,e,t):typeof e=="string"&&e in D?Ko(n,D[e],t):e&&e instanceof fe?Ko(n,av(e),t):e!=null&&e.type&&e.type instanceof fe?Ko(n,av(e.type),t):Ko(n,D.NONE,t)}function Ko(n,e,t=!0){let s=null;switch(e){case D.Null:s=n.visitNull;break;case D.Bool:s=n.visitBool;break;case D.Int:s=n.visitInt;break;case D.Int8:s=n.visitInt8||n.visitInt;break;case D.Int16:s=n.visitInt16||n.visitInt;break;case D.Int32:s=n.visitInt32||n.visitInt;break;case D.Int64:s=n.visitInt64||n.visitInt;break;case D.Uint8:s=n.visitUint8||n.visitInt;break;case D.Uint16:s=n.visitUint16||n.visitInt;break;case D.Uint32:s=n.visitUint32||n.visitInt;break;case D.Uint64:s=n.visitUint64||n.visitInt;break;case D.Float:s=n.visitFloat;break;case D.Float16:s=n.visitFloat16||n.visitFloat;break;case D.Float32:s=n.visitFloat32||n.visitFloat;break;case D.Float64:s=n.visitFloat64||n.visitFloat;break;case D.Utf8:s=n.visitUtf8;break;case D.LargeUtf8:s=n.visitLargeUtf8;break;case D.Binary:s=n.visitBinary;break;case D.LargeBinary:s=n.visitLargeBinary;break;case D.FixedSizeBinary:s=n.visitFixedSizeBinary;break;case D.Date:s=n.visitDate;break;case D.DateDay:s=n.visitDateDay||n.visitDate;break;case D.DateMillisecond:s=n.visitDateMillisecond||n.visitDate;break;case D.Timestamp:s=n.visitTimestamp;break;case D.TimestampSecond:s=n.visitTimestampSecond||n.visitTimestamp;break;case D.TimestampMillisecond:s=n.visitTimestampMillisecond||n.visitTimestamp;break;case D.TimestampMicrosecond:s=n.visitTimestampMicrosecond||n.visitTimestamp;break;case D.TimestampNanosecond:s=n.visitTimestampNanosecond||n.visitTimestamp;break;case D.Time:s=n.visitTime;break;case D.TimeSecond:s=n.visitTimeSecond||n.visitTime;break;case D.TimeMillisecond:s=n.visitTimeMillisecond||n.visitTime;break;case D.TimeMicrosecond:s=n.visitTimeMicrosecond||n.visitTime;break;case D.TimeNanosecond:s=n.visitTimeNanosecond||n.visitTime;break;case D.Decimal:s=n.visitDecimal;break;case D.List:s=n.visitList;break;case D.Struct:s=n.visitStruct;break;case D.Union:s=n.visitUnion;break;case D.DenseUnion:s=n.visitDenseUnion||n.visitUnion;break;case D.SparseUnion:s=n.visitSparseUnion||n.visitUnion;break;case D.Dictionary:s=n.visitDictionary;break;case D.Interval:s=n.visitInterval;break;case D.IntervalDayTime:s=n.visitIntervalDayTime||n.visitInterval;break;case D.IntervalYearMonth:s=n.visitIntervalYearMonth||n.visitInterval;break;case D.Duration:s=n.visitDuration;break;case D.DurationSecond:s=n.visitDurationSecond||n.visitDuration;break;case D.DurationMillisecond:s=n.visitDurationMillisecond||n.visitDuration;break;case D.DurationMicrosecond:s=n.visitDurationMicrosecond||n.visitDuration;break;case D.DurationNanosecond:s=n.visitDurationNanosecond||n.visitDuration;break;case D.FixedSizeList:s=n.visitFixedSizeList;break;case D.Map:s=n.visitMap;break}if(typeof s=="function")return s;if(!t)return()=>null;throw new Error(`Unrecognized type '${D[e]}'`)}function av(n){switch(n.typeId){case D.Null:return D.Null;case D.Int:{const{bitWidth:e,isSigned:t}=n;switch(e){case 8:return t?D.Int8:D.Uint8;case 16:return t?D.Int16:D.Uint16;case 32:return t?D.Int32:D.Uint32;case 64:return t?D.Int64:D.Uint64}return D.Int}case D.Float:switch(n.precision){case ln.HALF:return D.Float16;case ln.SINGLE:return D.Float32;case ln.DOUBLE:return D.Float64}return D.Float;case D.Binary:return D.Binary;case D.LargeBinary:return D.LargeBinary;case D.Utf8:return D.Utf8;case D.LargeUtf8:return D.LargeUtf8;case D.Bool:return D.Bool;case D.Decimal:return D.Decimal;case D.Time:switch(n.unit){case Ee.SECOND:return D.TimeSecond;case Ee.MILLISECOND:return D.TimeMillisecond;case Ee.MICROSECOND:return D.TimeMicrosecond;case Ee.NANOSECOND:return D.TimeNanosecond}return D.Time;case D.Timestamp:switch(n.unit){case Ee.SECOND:return D.TimestampSecond;case Ee.MILLISECOND:return D.TimestampMillisecond;case Ee.MICROSECOND:return D.TimestampMicrosecond;case Ee.NANOSECOND:return D.TimestampNanosecond}return D.Timestamp;case D.Date:switch(n.unit){case sr.DAY:return D.DateDay;case sr.MILLISECOND:return D.DateMillisecond}return D.Date;case D.Interval:switch(n.unit){case Yr.DAY_TIME:return D.IntervalDayTime;case Yr.YEAR_MONTH:return D.IntervalYearMonth}return D.Interval;case D.Duration:switch(n.unit){case Ee.SECOND:return D.DurationSecond;case Ee.MILLISECOND:return D.DurationMillisecond;case Ee.MICROSECOND:return D.DurationMicrosecond;case Ee.NANOSECOND:return D.DurationNanosecond}return D.Duration;case D.Map:return D.Map;case D.List:return D.List;case D.Struct:return D.Struct;case D.Union:switch(n.mode){case kn.Dense:return D.DenseUnion;case kn.Sparse:return D.SparseUnion}return D.Union;case D.FixedSizeBinary:return D.FixedSizeBinary;case D.FixedSizeList:return D.FixedSizeList;case D.Dictionary:return D.Dictionary}throw new Error(`Unrecognized type '${D[n.typeId]}'`)}He.prototype.visitInt8=null;He.prototype.visitInt16=null;He.prototype.visitInt32=null;He.prototype.visitInt64=null;He.prototype.visitUint8=null;He.prototype.visitUint16=null;He.prototype.visitUint32=null;He.prototype.visitUint64=null;He.prototype.visitFloat16=null;He.prototype.visitFloat32=null;He.prototype.visitFloat64=null;He.prototype.visitDateDay=null;He.prototype.visitDateMillisecond=null;He.prototype.visitTimestampSecond=null;He.prototype.visitTimestampMillisecond=null;He.prototype.visitTimestampMicrosecond=null;He.prototype.visitTimestampNanosecond=null;He.prototype.visitTimeSecond=null;He.prototype.visitTimeMillisecond=null;He.prototype.visitTimeMicrosecond=null;He.prototype.visitTimeNanosecond=null;He.prototype.visitDenseUnion=null;He.prototype.visitSparseUnion=null;He.prototype.visitIntervalDayTime=null;He.prototype.visitIntervalYearMonth=null;He.prototype.visitDuration=null;He.prototype.visitDurationSecond=null;He.prototype.visitDurationMillisecond=null;He.prototype.visitDurationMicrosecond=null;He.prototype.visitDurationNanosecond=null;const ww=new Float64Array(1),No=new Uint32Array(ww.buffer);function Sw(n){const e=(n&31744)>>10,t=(n&1023)/1024,s=Math.pow(-1,(n&32768)>>15);switch(e){case 31:return s*(t?Number.NaN:1/0);case 0:return s*(t?6103515625e-14*t:0)}return s*Math.pow(2,e-15)*(1+t)}function fx(n){if(n!==n)return 32256;ww[0]=n;const e=(No[1]&2147483648)>>16&65535;let t=No[1]&2146435072,s=0;return t>=1089470464?No[0]>0?t=31744:(t=(t&2080374784)>>16,s=(No[1]&1048575)>>10):t<=1056964608?(s=1048576+(No[1]&1048575),s=1048576+(s<<(t>>20)-998)>>21,t=0):(t=t-1056964608>>10,s=(No[1]&1048575)+512>>10),e|t|s&65535}class xe extends He{}function Oe(n){return(e,t,s)=>{if(e.setValid(t,s!=null))return n(e,t,s)}}const hx=(n,e,t)=>{n[e]=Math.floor(t/864e5)},_w=(n,e,t,s)=>{if(t+1<e.length){const a=xt(e[t]),u=xt(e[t+1]);n.set(s.subarray(0,u-a),a)}},px=({offset:n,values:e},t,s)=>{const a=n+t;s?e[a>>3]|=1<<a%8:e[a>>3]&=~(1<<a%8)},bi=({values:n},e,t)=>{n[e]=t},vp=({values:n},e,t)=>{n[e]=t},bw=({values:n},e,t)=>{n[e]=fx(t)},mx=(n,e,t)=>{switch(n.type.precision){case ln.HALF:return bw(n,e,t);case ln.SINGLE:case ln.DOUBLE:return vp(n,e,t)}},Iw=({values:n},e,t)=>{hx(n,e,t.valueOf())},Ew=({values:n},e,t)=>{n[e]=BigInt(t)},yx=({stride:n,values:e},t,s)=>{e.set(s.subarray(0,n),n*t)},xw=({values:n,valueOffsets:e},t,s)=>_w(n,e,t,s),Dw=({values:n,valueOffsets:e},t,s)=>_w(n,e,t,hp(s)),gx=(n,e,t)=>{n.type.unit===sr.DAY?Iw(n,e,t):Ew(n,e,t)},Cw=({values:n},e,t)=>{n[e]=BigInt(t/1e3)},Ow=({values:n},e,t)=>{n[e]=BigInt(t)},Fw=({values:n},e,t)=>{n[e]=BigInt(t*1e3)},Rw=({values:n},e,t)=>{n[e]=BigInt(t*1e6)},vx=(n,e,t)=>{switch(n.type.unit){case Ee.SECOND:return Cw(n,e,t);case Ee.MILLISECOND:return Ow(n,e,t);case Ee.MICROSECOND:return Fw(n,e,t);case Ee.NANOSECOND:return Rw(n,e,t)}},Mw=({values:n},e,t)=>{n[e]=t},Lw=({values:n},e,t)=>{n[e]=t},Aw=({values:n},e,t)=>{n[e]=t},kw=({values:n},e,t)=>{n[e]=t},wx=(n,e,t)=>{switch(n.type.unit){case Ee.SECOND:return Mw(n,e,t);case Ee.MILLISECOND:return Lw(n,e,t);case Ee.MICROSECOND:return Aw(n,e,t);case Ee.NANOSECOND:return kw(n,e,t)}},Sx=({values:n,stride:e},t,s)=>{n.set(s.subarray(0,e),e*t)},_x=(n,e,t)=>{const s=n.children[0],a=n.valueOffsets,u=or.getVisitFn(s);if(Array.isArray(t))for(let d=-1,f=a[e],p=a[e+1];f<p;)u(s,f++,t[++d]);else for(let d=-1,f=a[e],p=a[e+1];f<p;)u(s,f++,t.get(++d))},bx=(n,e,t)=>{const s=n.children[0],{valueOffsets:a}=n,u=or.getVisitFn(s);let{[e]:d,[e+1]:f}=a;const p=t instanceof Map?t.entries():Object.entries(t);for(const m of p)if(u(s,d,m),++d>=f)break},Ix=(n,e)=>(t,s,a,u)=>s&&t(s,n,e[u]),Ex=(n,e)=>(t,s,a,u)=>s&&t(s,n,e.get(u)),xx=(n,e)=>(t,s,a,u)=>s&&t(s,n,e.get(a.name)),Dx=(n,e)=>(t,s,a,u)=>s&&t(s,n,e[a.name]),Cx=(n,e,t)=>{const s=n.type.children.map(u=>or.getVisitFn(u.type)),a=t instanceof Map?xx(e,t):t instanceof pt?Ex(e,t):Array.isArray(t)?Ix(e,t):Dx(e,t);n.type.children.forEach((u,d)=>a(s[d],n.children[d],u,d))},Ox=(n,e,t)=>{n.type.mode===kn.Dense?Pw(n,e,t):Nw(n,e,t)},Pw=(n,e,t)=>{const s=n.type.typeIdToChildIndex[n.typeIds[e]],a=n.children[s];or.visit(a,n.valueOffsets[e],t)},Nw=(n,e,t)=>{const s=n.type.typeIdToChildIndex[n.typeIds[e]],a=n.children[s];or.visit(a,e,t)},Fx=(n,e,t)=>{var s;(s=n.dictionary)===null||s===void 0||s.set(n.values[e],t)},Rx=(n,e,t)=>{n.type.unit===Yr.DAY_TIME?Tw(n,e,t):Bw(n,e,t)},Tw=({values:n},e,t)=>{n.set(t.subarray(0,2),2*e)},Bw=({values:n},e,t)=>{n[e]=t[0]*12+t[1]%12},Uw=({values:n},e,t)=>{n[e]=t},jw=({values:n},e,t)=>{n[e]=t},zw=({values:n},e,t)=>{n[e]=t},$w=({values:n},e,t)=>{n[e]=t},Mx=(n,e,t)=>{switch(n.type.unit){case Ee.SECOND:return Uw(n,e,t);case Ee.MILLISECOND:return jw(n,e,t);case Ee.MICROSECOND:return zw(n,e,t);case Ee.NANOSECOND:return $w(n,e,t)}},Lx=(n,e,t)=>{const{stride:s}=n,a=n.children[0],u=or.getVisitFn(a);if(Array.isArray(t))for(let d=-1,f=e*s;++d<s;)u(a,f+d,t[d]);else for(let d=-1,f=e*s;++d<s;)u(a,f+d,t.get(d))};xe.prototype.visitBool=Oe(px);xe.prototype.visitInt=Oe(bi);xe.prototype.visitInt8=Oe(bi);xe.prototype.visitInt16=Oe(bi);xe.prototype.visitInt32=Oe(bi);xe.prototype.visitInt64=Oe(bi);xe.prototype.visitUint8=Oe(bi);xe.prototype.visitUint16=Oe(bi);xe.prototype.visitUint32=Oe(bi);xe.prototype.visitUint64=Oe(bi);xe.prototype.visitFloat=Oe(mx);xe.prototype.visitFloat16=Oe(bw);xe.prototype.visitFloat32=Oe(vp);xe.prototype.visitFloat64=Oe(vp);xe.prototype.visitUtf8=Oe(Dw);xe.prototype.visitLargeUtf8=Oe(Dw);xe.prototype.visitBinary=Oe(xw);xe.prototype.visitLargeBinary=Oe(xw);xe.prototype.visitFixedSizeBinary=Oe(yx);xe.prototype.visitDate=Oe(gx);xe.prototype.visitDateDay=Oe(Iw);xe.prototype.visitDateMillisecond=Oe(Ew);xe.prototype.visitTimestamp=Oe(vx);xe.prototype.visitTimestampSecond=Oe(Cw);xe.prototype.visitTimestampMillisecond=Oe(Ow);xe.prototype.visitTimestampMicrosecond=Oe(Fw);xe.prototype.visitTimestampNanosecond=Oe(Rw);xe.prototype.visitTime=Oe(wx);xe.prototype.visitTimeSecond=Oe(Mw);xe.prototype.visitTimeMillisecond=Oe(Lw);xe.prototype.visitTimeMicrosecond=Oe(Aw);xe.prototype.visitTimeNanosecond=Oe(kw);xe.prototype.visitDecimal=Oe(Sx);xe.prototype.visitList=Oe(_x);xe.prototype.visitStruct=Oe(Cx);xe.prototype.visitUnion=Oe(Ox);xe.prototype.visitDenseUnion=Oe(Pw);xe.prototype.visitSparseUnion=Oe(Nw);xe.prototype.visitDictionary=Oe(Fx);xe.prototype.visitInterval=Oe(Rx);xe.prototype.visitIntervalDayTime=Oe(Tw);xe.prototype.visitIntervalYearMonth=Oe(Bw);xe.prototype.visitDuration=Oe(Mx);xe.prototype.visitDurationSecond=Oe(Uw);xe.prototype.visitDurationMillisecond=Oe(jw);xe.prototype.visitDurationMicrosecond=Oe(zw);xe.prototype.visitDurationNanosecond=Oe($w);xe.prototype.visitFixedSizeList=Oe(Lx);xe.prototype.visitMap=Oe(bx);const or=new xe,_r=Symbol.for("parent"),ta=Symbol.for("rowIndex");class wp{constructor(e,t){return this[_r]=e,this[ta]=t,new Proxy(this,Px)}toArray(){return Object.values(this.toJSON())}toJSON(){const e=this[ta],t=this[_r],s=t.type.children,a={};for(let u=-1,d=s.length;++u<d;)a[s[u].name]=Pn.visit(t.children[u],e);return a}toString(){return`{${[...this].map(([e,t])=>`${kl(e)}: ${kl(t)}`).join(", ")}}`}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}[Symbol.iterator](){return new Ax(this[_r],this[ta])}}class Ax{constructor(e,t){this.childIndex=0,this.children=e.children,this.rowIndex=t,this.childFields=e.type.children,this.numChildren=this.childFields.length}[Symbol.iterator](){return this}next(){const e=this.childIndex;return e<this.numChildren?(this.childIndex=e+1,{done:!1,value:[this.childFields[e].name,Pn.visit(this.children[e],this.rowIndex)]}):{done:!0,value:null}}}Object.defineProperties(wp.prototype,{[Symbol.toStringTag]:{enumerable:!1,configurable:!1,value:"Row"},[_r]:{writable:!0,enumerable:!1,configurable:!1,value:null},[ta]:{writable:!0,enumerable:!1,configurable:!1,value:-1}});class kx{isExtensible(){return!1}deleteProperty(){return!1}preventExtensions(){return!0}ownKeys(e){return e[_r].type.children.map(t=>t.name)}has(e,t){return e[_r].type.children.some(s=>s.name===t)}getOwnPropertyDescriptor(e,t){if(e[_r].type.children.some(s=>s.name===t))return{writable:!0,enumerable:!0,configurable:!0}}get(e,t){if(Reflect.has(e,t))return e[t];const s=e[_r].type.children.findIndex(a=>a.name===t);if(s!==-1){const a=Pn.visit(e[_r].children[s],e[ta]);return Reflect.set(e,t,a),a}}set(e,t,s){const a=e[_r].type.children.findIndex(u=>u.name===t);return a!==-1?(or.visit(e[_r].children[a],e[ta],s),Reflect.set(e,t,s)):Reflect.has(e,t)||typeof t=="symbol"?Reflect.set(e,t,s):!1}}const Px=new kx;class Se extends He{}function De(n){return(e,t)=>e.getValid(t)?n(e,t):null}const Nx=(n,e)=>864e5*n[e],Tx=(n,e)=>null,Vw=(n,e,t)=>{if(t+1>=e.length)return null;const s=xt(e[t]),a=xt(e[t+1]);return n.subarray(s,a)},Bx=({offset:n,values:e},t)=>{const s=n+t;return(e[s>>3]&1<<s%8)!==0},Hw=({values:n},e)=>Nx(n,e),Ww=({values:n},e)=>xt(n[e]),vs=({stride:n,values:e},t)=>e[n*t],Ux=({stride:n,values:e},t)=>Sw(e[n*t]),Qw=({values:n},e)=>n[e],jx=({stride:n,values:e},t)=>e.subarray(n*t,n*(t+1)),Kw=({values:n,valueOffsets:e},t)=>Vw(n,e,t),qw=({values:n,valueOffsets:e},t)=>{const s=Vw(n,e,t);return s!==null?Nh(s):null},zx=({values:n},e)=>n[e],$x=({type:n,values:e},t)=>n.precision!==ln.HALF?e[t]:Sw(e[t]),Vx=(n,e)=>n.type.unit===sr.DAY?Hw(n,e):Ww(n,e),Yw=({values:n},e)=>1e3*xt(n[e]),Gw=({values:n},e)=>xt(n[e]),Jw=({values:n},e)=>Y0(n[e],BigInt(1e3)),Xw=({values:n},e)=>Y0(n[e],BigInt(1e6)),Hx=(n,e)=>{switch(n.type.unit){case Ee.SECOND:return Yw(n,e);case Ee.MILLISECOND:return Gw(n,e);case Ee.MICROSECOND:return Jw(n,e);case Ee.NANOSECOND:return Xw(n,e)}},Zw=({values:n},e)=>n[e],eS=({values:n},e)=>n[e],tS=({values:n},e)=>n[e],nS=({values:n},e)=>n[e],Wx=(n,e)=>{switch(n.type.unit){case Ee.SECOND:return Zw(n,e);case Ee.MILLISECOND:return eS(n,e);case Ee.MICROSECOND:return tS(n,e);case Ee.NANOSECOND:return nS(n,e)}},Qx=({values:n,stride:e},t)=>gp.decimal(n.subarray(e*t,e*(t+1))),Kx=(n,e)=>{const{valueOffsets:t,stride:s,children:a}=n,{[e*s]:u,[e*s+1]:d}=t,p=a[0].slice(u,d-u);return new pt([p])},qx=(n,e)=>{const{valueOffsets:t,children:s}=n,{[e]:a,[e+1]:u}=t,d=s[0];return new Sp(d.slice(a,u-a))},Yx=(n,e)=>new wp(n,e),Gx=(n,e)=>n.type.mode===kn.Dense?rS(n,e):iS(n,e),rS=(n,e)=>{const t=n.type.typeIdToChildIndex[n.typeIds[e]],s=n.children[t];return Pn.visit(s,n.valueOffsets[e])},iS=(n,e)=>{const t=n.type.typeIdToChildIndex[n.typeIds[e]],s=n.children[t];return Pn.visit(s,e)},Jx=(n,e)=>{var t;return(t=n.dictionary)===null||t===void 0?void 0:t.get(n.values[e])},Xx=(n,e)=>n.type.unit===Yr.DAY_TIME?sS(n,e):oS(n,e),sS=({values:n},e)=>n.subarray(2*e,2*(e+1)),oS=({values:n},e)=>{const t=n[e],s=new Int32Array(2);return s[0]=Math.trunc(t/12),s[1]=Math.trunc(t%12),s},aS=({values:n},e)=>n[e],lS=({values:n},e)=>n[e],uS=({values:n},e)=>n[e],cS=({values:n},e)=>n[e],Zx=(n,e)=>{switch(n.type.unit){case Ee.SECOND:return aS(n,e);case Ee.MILLISECOND:return lS(n,e);case Ee.MICROSECOND:return uS(n,e);case Ee.NANOSECOND:return cS(n,e)}},eD=(n,e)=>{const{stride:t,children:s}=n,u=s[0].slice(e*t,t);return new pt([u])};Se.prototype.visitNull=De(Tx);Se.prototype.visitBool=De(Bx);Se.prototype.visitInt=De(zx);Se.prototype.visitInt8=De(vs);Se.prototype.visitInt16=De(vs);Se.prototype.visitInt32=De(vs);Se.prototype.visitInt64=De(Qw);Se.prototype.visitUint8=De(vs);Se.prototype.visitUint16=De(vs);Se.prototype.visitUint32=De(vs);Se.prototype.visitUint64=De(Qw);Se.prototype.visitFloat=De($x);Se.prototype.visitFloat16=De(Ux);Se.prototype.visitFloat32=De(vs);Se.prototype.visitFloat64=De(vs);Se.prototype.visitUtf8=De(qw);Se.prototype.visitLargeUtf8=De(qw);Se.prototype.visitBinary=De(Kw);Se.prototype.visitLargeBinary=De(Kw);Se.prototype.visitFixedSizeBinary=De(jx);Se.prototype.visitDate=De(Vx);Se.prototype.visitDateDay=De(Hw);Se.prototype.visitDateMillisecond=De(Ww);Se.prototype.visitTimestamp=De(Hx);Se.prototype.visitTimestampSecond=De(Yw);Se.prototype.visitTimestampMillisecond=De(Gw);Se.prototype.visitTimestampMicrosecond=De(Jw);Se.prototype.visitTimestampNanosecond=De(Xw);Se.prototype.visitTime=De(Wx);Se.prototype.visitTimeSecond=De(Zw);Se.prototype.visitTimeMillisecond=De(eS);Se.prototype.visitTimeMicrosecond=De(tS);Se.prototype.visitTimeNanosecond=De(nS);Se.prototype.visitDecimal=De(Qx);Se.prototype.visitList=De(Kx);Se.prototype.visitStruct=De(Yx);Se.prototype.visitUnion=De(Gx);Se.prototype.visitDenseUnion=De(rS);Se.prototype.visitSparseUnion=De(iS);Se.prototype.visitDictionary=De(Jx);Se.prototype.visitInterval=De(Xx);Se.prototype.visitIntervalDayTime=De(sS);Se.prototype.visitIntervalYearMonth=De(oS);Se.prototype.visitDuration=De(Zx);Se.prototype.visitDurationSecond=De(aS);Se.prototype.visitDurationMillisecond=De(lS);Se.prototype.visitDurationMicrosecond=De(uS);Se.prototype.visitDurationNanosecond=De(cS);Se.prototype.visitFixedSizeList=De(eD);Se.prototype.visitMap=De(qx);const Pn=new Se,qo=Symbol.for("keys"),na=Symbol.for("vals"),Yo=Symbol.for("kKeysAsStrings"),$h=Symbol.for("_kKeysAsStrings");class Sp{constructor(e){return this[qo]=new pt([e.children[0]]).memoize(),this[na]=e.children[1],new Proxy(this,new nD)}get[Yo](){return this[$h]||(this[$h]=Array.from(this[qo].toArray(),String))}[Symbol.iterator](){return new tD(this[qo],this[na])}get size(){return this[qo].length}toArray(){return Object.values(this.toJSON())}toJSON(){const e=this[qo],t=this[na],s={};for(let a=-1,u=e.length;++a<u;)s[e.get(a)]=Pn.visit(t,a);return s}toString(){return`{${[...this].map(([e,t])=>`${kl(e)}: ${kl(t)}`).join(", ")}}`}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}}class tD{constructor(e,t){this.keys=e,this.vals=t,this.keyIndex=0,this.numKeys=e.length}[Symbol.iterator](){return this}next(){const e=this.keyIndex;return e===this.numKeys?{done:!0,value:null}:(this.keyIndex++,{done:!1,value:[this.keys.get(e),Pn.visit(this.vals,e)]})}}class nD{isExtensible(){return!1}deleteProperty(){return!1}preventExtensions(){return!0}ownKeys(e){return e[Yo]}has(e,t){return e[Yo].includes(t)}getOwnPropertyDescriptor(e,t){if(e[Yo].indexOf(t)!==-1)return{writable:!0,enumerable:!0,configurable:!0}}get(e,t){if(Reflect.has(e,t))return e[t];const s=e[Yo].indexOf(t);if(s!==-1){const a=Pn.visit(Reflect.get(e,na),s);return Reflect.set(e,t,a),a}}set(e,t,s){const a=e[Yo].indexOf(t);return a!==-1?(or.visit(Reflect.get(e,na),a,s),Reflect.set(e,t,s)):Reflect.has(e,t)?Reflect.set(e,t,s):!1}}Object.defineProperties(Sp.prototype,{[Symbol.toStringTag]:{enumerable:!1,configurable:!1,value:"Row"},[qo]:{writable:!0,enumerable:!1,configurable:!1,value:null},[na]:{writable:!0,enumerable:!1,configurable:!1,value:null},[$h]:{writable:!0,enumerable:!1,configurable:!1,value:null}});let lv;function dS(n,e,t,s){const{length:a=0}=n;let u=typeof e!="number"?0:e,d=typeof t!="number"?a:t;return u<0&&(u=(u%a+a)%a),d<0&&(d=(d%a+a)%a),d<u&&(lv=u,u=d,d=lv),d>a&&(d=a),s?s(n,u,d):[u,d]}const _p=(n,e)=>n<0?e+n:n,uv=n=>n!==n;function ba(n){if(typeof n!=="object"||n===null)return uv(n)?uv:t=>t===n;if(n instanceof Date){const t=n.valueOf();return s=>s instanceof Date?s.valueOf()===t:!1}return ArrayBuffer.isView(n)?t=>t?ZE(n,t):!1:n instanceof Map?iD(n):Array.isArray(n)?rD(n):n instanceof pt?sD(n):oD(n,!0)}function rD(n){const e=[];for(let t=-1,s=n.length;++t<s;)e[t]=ba(n[t]);return hd(e)}function iD(n){let e=-1;const t=[];for(const s of n.values())t[++e]=ba(s);return hd(t)}function sD(n){const e=[];for(let t=-1,s=n.length;++t<s;)e[t]=ba(n.get(t));return hd(e)}function oD(n,e=!1){const t=Object.keys(n);if(!e&&t.length===0)return()=>!1;const s=[];for(let a=-1,u=t.length;++a<u;)s[a]=ba(n[t[a]]);return hd(s,t)}function hd(n,e){return t=>{if(!t||typeof t!="object")return!1;switch(t.constructor){case Array:return aD(n,t);case Map:return cv(n,t,t.keys());case Sp:case wp:case Object:case void 0:return cv(n,t,e||Object.keys(t))}return t instanceof pt?lD(n,t):!1}}function aD(n,e){const t=n.length;if(e.length!==t)return!1;for(let s=-1;++s<t;)if(!n[s](e[s]))return!1;return!0}function lD(n,e){const t=n.length;if(e.length!==t)return!1;for(let s=-1;++s<t;)if(!n[s](e.get(s)))return!1;return!0}function cv(n,e,t){const s=t[Symbol.iterator](),a=e instanceof Map?e.keys():Object.keys(e)[Symbol.iterator](),u=e instanceof Map?e.values():Object.values(e)[Symbol.iterator]();let d=0;const f=n.length;let p=u.next(),m=s.next(),g=a.next();for(;d<f&&!m.done&&!g.done&&!p.done&&!(m.value!==g.value||!n[d](p.value));++d,m=s.next(),g=a.next(),p=u.next());return d===f&&m.done&&g.done&&p.done?!0:(s.return&&s.return(),a.return&&a.return(),u.return&&u.return(),!1)}function fS(n,e,t,s){return(t&1<<s)!==0}function uD(n,e,t,s){return(t&1<<s)>>s}function dv(n,e,t){const s=t.byteLength+7&-8;if(n>0||t.byteLength<s){const a=new Uint8Array(s);return a.set(n%8===0?t.subarray(n>>3):Vh(new bp(t,n,e,null,fS)).subarray(0,s)),a}return t}function Vh(n){const e=[];let t=0,s=0,a=0;for(const d of n)d&&(a|=1<<s),++s===8&&(e[t++]=a,a=s=0);(t===0||s>0)&&(e[t++]=a);const u=new Uint8Array(e.length+7&-8);return u.set(e),u}class bp{constructor(e,t,s,a,u){this.bytes=e,this.length=s,this.context=a,this.get=u,this.bit=t%8,this.byteIndex=t>>3,this.byte=e[this.byteIndex++],this.index=0}next(){return this.index<this.length?(this.bit===8&&(this.bit=0,this.byte=this.bytes[this.byteIndex++]),{value:this.get(this.context,this.index++,this.byte,this.bit++)}):{done:!0,value:null}}[Symbol.iterator](){return this}}function Hh(n,e,t){if(t-e<=0)return 0;if(t-e<8){let u=0;for(const d of new bp(n,e,t-e,n,uD))u+=d;return u}const s=t>>3<<3,a=e+(e%8===0?0:8-e%8);return Hh(n,e,a)+Hh(n,s,t)+cD(n,a>>3,s-a>>3)}function cD(n,e,t){let s=0,a=Math.trunc(e);const u=new DataView(n.buffer,n.byteOffset,n.byteLength),d=t===void 0?n.byteLength:a+t;for(;d-a>=4;)s+=ph(u.getUint32(a)),a+=4;for(;d-a>=2;)s+=ph(u.getUint16(a)),a+=2;for(;d-a>=1;)s+=ph(u.getUint8(a)),a+=1;return s}function ph(n){let e=Math.trunc(n);return e=e-(e>>>1&1431655765),e=(e&858993459)+(e>>>2&858993459),(e+(e>>>4)&252645135)*16843009>>>24}const dD=-1;let _t=class Wh{get typeId(){return this.type.typeId}get ArrayType(){return this.type.ArrayType}get buffers(){return[this.valueOffsets,this.values,this.nullBitmap,this.typeIds]}get nullable(){if(this._nullCount!==0){const{type:e}=this;return fe.isSparseUnion(e)?this.children.some(t=>t.nullable):fe.isDenseUnion(e)?this.children.some(t=>t.nullable):this.nullBitmap&&this.nullBitmap.byteLength>0}return!0}get byteLength(){let e=0;const{valueOffsets:t,values:s,nullBitmap:a,typeIds:u}=this;return t&&(e+=t.byteLength),s&&(e+=s.byteLength),a&&(e+=a.byteLength),u&&(e+=u.byteLength),this.children.reduce((d,f)=>d+f.byteLength,e)}get nullCount(){if(fe.isUnion(this.type))return this.children.reduce((s,a)=>s+a.nullCount,0);let e=this._nullCount,t;return e<=dD&&(t=this.nullBitmap)&&(this._nullCount=e=t.length===0?0:this.length-Hh(t,this.offset,this.offset+this.length)),e}constructor(e,t,s,a,u,d=[],f){this.type=e,this.children=d,this.dictionary=f,this.offset=Math.floor(Math.max(t||0,0)),this.length=Math.floor(Math.max(s||0,0)),this._nullCount=Math.floor(Math.max(a||0,-1));let p;u instanceof Wh?(this.stride=u.stride,this.values=u.values,this.typeIds=u.typeIds,this.nullBitmap=u.nullBitmap,this.valueOffsets=u.valueOffsets):(this.stride=fi(e),u&&((p=u[0])&&(this.valueOffsets=p),(p=u[1])&&(this.values=p),(p=u[2])&&(this.nullBitmap=p),(p=u[3])&&(this.typeIds=p)))}getValid(e){const{type:t}=this;if(fe.isUnion(t)){const s=t,a=this.children[s.typeIdToChildIndex[this.typeIds[e]]],u=s.mode===kn.Dense?this.valueOffsets[e]:e;return a.getValid(u)}if(this.nullable&&this.nullCount>0){const s=this.offset+e;return(this.nullBitmap[s>>3]&1<<s%8)!==0}return!0}setValid(e,t){let s;const{type:a}=this;if(fe.isUnion(a)){const u=a,d=this.children[u.typeIdToChildIndex[this.typeIds[e]]],f=u.mode===kn.Dense?this.valueOffsets[e]:e;s=d.getValid(f),d.setValid(f,t)}else{let{nullBitmap:u}=this;const{offset:d,length:f}=this,p=d+e,m=1<<p%8,g=p>>3;(!u||u.byteLength<=g)&&(u=new Uint8Array((d+f+63&-64)>>3).fill(255),this.nullCount>0?(u.set(dv(d,f,this.nullBitmap),0),Object.assign(this,{nullBitmap:u})):Object.assign(this,{nullBitmap:u,_nullCount:0}));const v=u[g];s=(v&m)!==0,u[g]=t?v|m:v&~m}return s!==!!t&&(this._nullCount=this.nullCount+(t?-1:1)),t}clone(e=this.type,t=this.offset,s=this.length,a=this._nullCount,u=this,d=this.children){return new Wh(e,t,s,a,u,d,this.dictionary)}slice(e,t){const{stride:s,typeId:a,children:u}=this,d=+(this._nullCount===0)-1,f=a===16?s:1,p=this._sliceBuffers(e,t,s,a);return this.clone(this.type,this.offset+e,t,d,p,u.length===0||this.valueOffsets?u:this._sliceChildren(u,f*e,f*t))}_changeLengthAndBackfillNullBitmap(e){if(this.typeId===D.Null)return this.clone(this.type,0,e,0);const{length:t,nullCount:s}=this,a=new Uint8Array((e+63&-64)>>3).fill(255,0,t>>3);a[t>>3]=(1<<t-(t&-8))-1,s>0&&a.set(dv(this.offset,t,this.nullBitmap),0);const u=this.buffers;return u[di.VALIDITY]=a,this.clone(this.type,0,e,s+(e-t),u)}_sliceBuffers(e,t,s,a){let u;const{buffers:d}=this;return(u=d[di.TYPE])&&(d[di.TYPE]=u.subarray(e,e+t)),(u=d[di.OFFSET])&&(d[di.OFFSET]=u.subarray(e,e+t+1))||(u=d[di.DATA])&&(d[di.DATA]=a===6?u:u.subarray(s*e,s*(e+t))),d}_sliceChildren(e,t,s){return e.map(a=>a.slice(t,s))}};_t.prototype.children=Object.freeze([]);class Ol extends He{visit(e){return this.getVisitFn(e.type).call(this,e)}visitNull(e){const{["type"]:t,["offset"]:s=0,["length"]:a=0}=e;return new _t(t,s,a,a)}visitBool(e){const{["type"]:t,["offset"]:s=0}=e,a=qe(e.nullBitmap),u=ut(t.ArrayType,e.data),{["length"]:d=u.length>>3,["nullCount"]:f=e.nullBitmap?-1:0}=e;return new _t(t,s,d,f,[void 0,u,a])}visitInt(e){const{["type"]:t,["offset"]:s=0}=e,a=qe(e.nullBitmap),u=ut(t.ArrayType,e.data),{["length"]:d=u.length,["nullCount"]:f=e.nullBitmap?-1:0}=e;return new _t(t,s,d,f,[void 0,u,a])}visitFloat(e){const{["type"]:t,["offset"]:s=0}=e,a=qe(e.nullBitmap),u=ut(t.ArrayType,e.data),{["length"]:d=u.length,["nullCount"]:f=e.nullBitmap?-1:0}=e;return new _t(t,s,d,f,[void 0,u,a])}visitUtf8(e){const{["type"]:t,["offset"]:s=0}=e,a=qe(e.data),u=qe(e.nullBitmap),d=ml(e.valueOffsets),{["length"]:f=d.length-1,["nullCount"]:p=e.nullBitmap?-1:0}=e;return new _t(t,s,f,p,[d,a,u])}visitLargeUtf8(e){const{["type"]:t,["offset"]:s=0}=e,a=qe(e.data),u=qe(e.nullBitmap),d=Jg(e.valueOffsets),{["length"]:f=d.length-1,["nullCount"]:p=e.nullBitmap?-1:0}=e;return new _t(t,s,f,p,[d,a,u])}visitBinary(e){const{["type"]:t,["offset"]:s=0}=e,a=qe(e.data),u=qe(e.nullBitmap),d=ml(e.valueOffsets),{["length"]:f=d.length-1,["nullCount"]:p=e.nullBitmap?-1:0}=e;return new _t(t,s,f,p,[d,a,u])}visitLargeBinary(e){const{["type"]:t,["offset"]:s=0}=e,a=qe(e.data),u=qe(e.nullBitmap),d=Jg(e.valueOffsets),{["length"]:f=d.length-1,["nullCount"]:p=e.nullBitmap?-1:0}=e;return new _t(t,s,f,p,[d,a,u])}visitFixedSizeBinary(e){const{["type"]:t,["offset"]:s=0}=e,a=qe(e.nullBitmap),u=ut(t.ArrayType,e.data),{["length"]:d=u.length/fi(t),["nullCount"]:f=e.nullBitmap?-1:0}=e;return new _t(t,s,d,f,[void 0,u,a])}visitDate(e){const{["type"]:t,["offset"]:s=0}=e,a=qe(e.nullBitmap),u=ut(t.ArrayType,e.data),{["length"]:d=u.length/fi(t),["nullCount"]:f=e.nullBitmap?-1:0}=e;return new _t(t,s,d,f,[void 0,u,a])}visitTimestamp(e){const{["type"]:t,["offset"]:s=0}=e,a=qe(e.nullBitmap),u=ut(t.ArrayType,e.data),{["length"]:d=u.length/fi(t),["nullCount"]:f=e.nullBitmap?-1:0}=e;return new _t(t,s,d,f,[void 0,u,a])}visitTime(e){const{["type"]:t,["offset"]:s=0}=e,a=qe(e.nullBitmap),u=ut(t.ArrayType,e.data),{["length"]:d=u.length/fi(t),["nullCount"]:f=e.nullBitmap?-1:0}=e;return new _t(t,s,d,f,[void 0,u,a])}visitDecimal(e){const{["type"]:t,["offset"]:s=0}=e,a=qe(e.nullBitmap),u=ut(t.ArrayType,e.data),{["length"]:d=u.length/fi(t),["nullCount"]:f=e.nullBitmap?-1:0}=e;return new _t(t,s,d,f,[void 0,u,a])}visitList(e){const{["type"]:t,["offset"]:s=0,["child"]:a}=e,u=qe(e.nullBitmap),d=ml(e.valueOffsets),{["length"]:f=d.length-1,["nullCount"]:p=e.nullBitmap?-1:0}=e;return new _t(t,s,f,p,[d,void 0,u],[a])}visitStruct(e){const{["type"]:t,["offset"]:s=0,["children"]:a=[]}=e,u=qe(e.nullBitmap),{length:d=a.reduce((p,{length:m})=>Math.max(p,m),0),nullCount:f=e.nullBitmap?-1:0}=e;return new _t(t,s,d,f,[void 0,void 0,u],a)}visitUnion(e){const{["type"]:t,["offset"]:s=0,["children"]:a=[]}=e,u=ut(t.ArrayType,e.typeIds),{["length"]:d=u.length,["nullCount"]:f=-1}=e;if(fe.isSparseUnion(t))return new _t(t,s,d,f,[void 0,void 0,void 0,u],a);const p=ml(e.valueOffsets);return new _t(t,s,d,f,[p,void 0,void 0,u],a)}visitDictionary(e){const{["type"]:t,["offset"]:s=0}=e,a=qe(e.nullBitmap),u=ut(t.indices.ArrayType,e.data),{["dictionary"]:d=new pt([new Ol().visit({type:t.dictionary})])}=e,{["length"]:f=u.length,["nullCount"]:p=e.nullBitmap?-1:0}=e;return new _t(t,s,f,p,[void 0,u,a],[],d)}visitInterval(e){const{["type"]:t,["offset"]:s=0}=e,a=qe(e.nullBitmap),u=ut(t.ArrayType,e.data),{["length"]:d=u.length/fi(t),["nullCount"]:f=e.nullBitmap?-1:0}=e;return new _t(t,s,d,f,[void 0,u,a])}visitDuration(e){const{["type"]:t,["offset"]:s=0}=e,a=qe(e.nullBitmap),u=ut(t.ArrayType,e.data),{["length"]:d=u.length,["nullCount"]:f=e.nullBitmap?-1:0}=e;return new _t(t,s,d,f,[void 0,u,a])}visitFixedSizeList(e){const{["type"]:t,["offset"]:s=0,["child"]:a=new Ol().visit({type:t.valueType})}=e,u=qe(e.nullBitmap),{["length"]:d=a.length/fi(t),["nullCount"]:f=e.nullBitmap?-1:0}=e;return new _t(t,s,d,f,[void 0,void 0,u],[a])}visitMap(e){const{["type"]:t,["offset"]:s=0,["child"]:a=new Ol().visit({type:t.childType})}=e,u=qe(e.nullBitmap),d=ml(e.valueOffsets),{["length"]:f=d.length-1,["nullCount"]:p=e.nullBitmap?-1:0}=e;return new _t(t,s,f,p,[d,void 0,u],[a])}}const fD=new Ol;function Ve(n){return fD.visit(n)}class fv{constructor(e=0,t){this.numChunks=e,this.getChunkIterator=t,this.chunkIndex=0,this.chunkIterator=this.getChunkIterator(0)}next(){for(;this.chunkIndex<this.numChunks;){const e=this.chunkIterator.next();if(!e.done)return e;++this.chunkIndex<this.numChunks&&(this.chunkIterator=this.getChunkIterator(this.chunkIndex))}return{done:!0,value:null}}[Symbol.iterator](){return this}}function hD(n){return n.some(e=>e.nullable)}function hS(n){return n.reduce((e,t)=>e+t.nullCount,0)}function pS(n){return n.reduce((e,t,s)=>(e[s+1]=e[s]+t.length,e),new Uint32Array(n.length+1))}function mS(n,e,t,s){const a=[];for(let u=-1,d=n.length;++u<d;){const f=n[u],p=e[u],{length:m}=f;if(p>=s)break;if(t>=p+m)continue;if(p>=t&&p+m<=s){a.push(f);continue}const g=Math.max(0,t-p),v=Math.min(s-p,m);a.push(f.slice(g,v-g))}return a.length===0&&a.push(n[0].slice(0,0)),a}function Ip(n,e,t,s){let a=0,u=0,d=e.length-1;do{if(a>=d-1)return t<e[d]?s(n,a,t-e[a]):null;u=a+Math.trunc((d-a)*.5),t<e[u]?d=u:a=u}while(a<d)}function Ep(n,e){return n.getValid(e)}function Zc(n){function e(t,s,a){return n(t[s],a)}return function(t){const s=this.data;return Ip(s,this._offsets,t,e)}}function yS(n){let e;function t(s,a,u){return n(s[a],u,e)}return function(s,a){const u=this.data;e=a;const d=Ip(u,this._offsets,s,t);return e=void 0,d}}function gS(n){let e;function t(s,a,u){let d=u,f=0,p=0;for(let m=a-1,g=s.length;++m<g;){const v=s[m];if(~(f=n(v,e,d)))return p+f;d=0,p+=v.length}return-1}return function(s,a){e=s;const u=this.data,d=typeof a!="number"?t(u,0,0):Ip(u,this._offsets,a,t);return e=void 0,d}}class _e extends He{}function pD(n,e){return e===null&&n.length>0?0:-1}function mD(n,e){const{nullBitmap:t}=n;if(!t||n.nullCount<=0)return-1;let s=0;for(const a of new bp(t,n.offset+(e||0),n.length,t,fS)){if(!a)return s;++s}return-1}function Me(n,e,t){if(e===void 0)return-1;if(e===null)switch(n.typeId){case D.Union:break;case D.Dictionary:break;default:return mD(n,t)}const s=Pn.getVisitFn(n),a=ba(e);for(let u=(t||0)-1,d=n.length;++u<d;)if(a(s(n,u)))return u;return-1}function vS(n,e,t){const s=Pn.getVisitFn(n),a=ba(e);for(let u=(t||0)-1,d=n.length;++u<d;)if(a(s(n,u)))return u;return-1}_e.prototype.visitNull=pD;_e.prototype.visitBool=Me;_e.prototype.visitInt=Me;_e.prototype.visitInt8=Me;_e.prototype.visitInt16=Me;_e.prototype.visitInt32=Me;_e.prototype.visitInt64=Me;_e.prototype.visitUint8=Me;_e.prototype.visitUint16=Me;_e.prototype.visitUint32=Me;_e.prototype.visitUint64=Me;_e.prototype.visitFloat=Me;_e.prototype.visitFloat16=Me;_e.prototype.visitFloat32=Me;_e.prototype.visitFloat64=Me;_e.prototype.visitUtf8=Me;_e.prototype.visitLargeUtf8=Me;_e.prototype.visitBinary=Me;_e.prototype.visitLargeBinary=Me;_e.prototype.visitFixedSizeBinary=Me;_e.prototype.visitDate=Me;_e.prototype.visitDateDay=Me;_e.prototype.visitDateMillisecond=Me;_e.prototype.visitTimestamp=Me;_e.prototype.visitTimestampSecond=Me;_e.prototype.visitTimestampMillisecond=Me;_e.prototype.visitTimestampMicrosecond=Me;_e.prototype.visitTimestampNanosecond=Me;_e.prototype.visitTime=Me;_e.prototype.visitTimeSecond=Me;_e.prototype.visitTimeMillisecond=Me;_e.prototype.visitTimeMicrosecond=Me;_e.prototype.visitTimeNanosecond=Me;_e.prototype.visitDecimal=Me;_e.prototype.visitList=Me;_e.prototype.visitStruct=Me;_e.prototype.visitUnion=Me;_e.prototype.visitDenseUnion=vS;_e.prototype.visitSparseUnion=vS;_e.prototype.visitDictionary=Me;_e.prototype.visitInterval=Me;_e.prototype.visitIntervalDayTime=Me;_e.prototype.visitIntervalYearMonth=Me;_e.prototype.visitDuration=Me;_e.prototype.visitDurationSecond=Me;_e.prototype.visitDurationMillisecond=Me;_e.prototype.visitDurationMicrosecond=Me;_e.prototype.visitDurationNanosecond=Me;_e.prototype.visitFixedSizeList=Me;_e.prototype.visitMap=Me;const ed=new _e;class be extends He{}function Ce(n){const{type:e}=n;if(n.nullCount===0&&n.stride===1&&(fe.isInt(e)&&e.bitWidth!==64||fe.isTime(e)&&e.bitWidth!==64||fe.isFloat(e)&&e.precision!==ln.HALF))return new fv(n.data.length,s=>{const a=n.data[s];return a.values.subarray(0,a.length)[Symbol.iterator]()});let t=0;return new fv(n.data.length,s=>{const u=n.data[s].length,d=n.slice(t,t+u);return t+=u,new yD(d)})}class yD{constructor(e){this.vector=e,this.index=0}next(){return this.index<this.vector.length?{value:this.vector.get(this.index++)}:{done:!0,value:null}}[Symbol.iterator](){return this}}be.prototype.visitNull=Ce;be.prototype.visitBool=Ce;be.prototype.visitInt=Ce;be.prototype.visitInt8=Ce;be.prototype.visitInt16=Ce;be.prototype.visitInt32=Ce;be.prototype.visitInt64=Ce;be.prototype.visitUint8=Ce;be.prototype.visitUint16=Ce;be.prototype.visitUint32=Ce;be.prototype.visitUint64=Ce;be.prototype.visitFloat=Ce;be.prototype.visitFloat16=Ce;be.prototype.visitFloat32=Ce;be.prototype.visitFloat64=Ce;be.prototype.visitUtf8=Ce;be.prototype.visitLargeUtf8=Ce;be.prototype.visitBinary=Ce;be.prototype.visitLargeBinary=Ce;be.prototype.visitFixedSizeBinary=Ce;be.prototype.visitDate=Ce;be.prototype.visitDateDay=Ce;be.prototype.visitDateMillisecond=Ce;be.prototype.visitTimestamp=Ce;be.prototype.visitTimestampSecond=Ce;be.prototype.visitTimestampMillisecond=Ce;be.prototype.visitTimestampMicrosecond=Ce;be.prototype.visitTimestampNanosecond=Ce;be.prototype.visitTime=Ce;be.prototype.visitTimeSecond=Ce;be.prototype.visitTimeMillisecond=Ce;be.prototype.visitTimeMicrosecond=Ce;be.prototype.visitTimeNanosecond=Ce;be.prototype.visitDecimal=Ce;be.prototype.visitList=Ce;be.prototype.visitStruct=Ce;be.prototype.visitUnion=Ce;be.prototype.visitDenseUnion=Ce;be.prototype.visitSparseUnion=Ce;be.prototype.visitDictionary=Ce;be.prototype.visitInterval=Ce;be.prototype.visitIntervalDayTime=Ce;be.prototype.visitIntervalYearMonth=Ce;be.prototype.visitDuration=Ce;be.prototype.visitDurationSecond=Ce;be.prototype.visitDurationMillisecond=Ce;be.prototype.visitDurationMicrosecond=Ce;be.prototype.visitDurationNanosecond=Ce;be.prototype.visitFixedSizeList=Ce;be.prototype.visitMap=Ce;const xp=new be;var wS;const SS={},_S={};class pt{constructor(e){var t,s,a;const u=e[0]instanceof pt?e.flatMap(f=>f.data):e;if(u.length===0||u.some(f=>!(f instanceof _t)))throw new TypeError("Vector constructor expects an Array of Data instances.");const d=(t=u[0])===null||t===void 0?void 0:t.type;switch(u.length){case 0:this._offsets=[0];break;case 1:{const{get:f,set:p,indexOf:m}=SS[d.typeId],g=u[0];this.isValid=v=>Ep(g,v),this.get=v=>f(g,v),this.set=(v,S)=>p(g,v,S),this.indexOf=v=>m(g,v),this._offsets=[0,g.length];break}default:Object.setPrototypeOf(this,_S[d.typeId]),this._offsets=pS(u);break}this.data=u,this.type=d,this.stride=fi(d),this.numChildren=(a=(s=d.children)===null||s===void 0?void 0:s.length)!==null&&a!==void 0?a:0,this.length=this._offsets.at(-1)}get byteLength(){return this.data.reduce((e,t)=>e+t.byteLength,0)}get nullable(){return hD(this.data)}get nullCount(){return hS(this.data)}get ArrayType(){return this.type.ArrayType}get[Symbol.toStringTag](){return`${this.VectorName}<${this.type[Symbol.toStringTag]}>`}get VectorName(){return`${D[this.type.typeId]}Vector`}isValid(e){return!1}get(e){return null}at(e){return this.get(_p(e,this.length))}set(e,t){}indexOf(e,t){return-1}includes(e,t){return this.indexOf(e,t)>-1}[Symbol.iterator](){return xp.visit(this)}concat(...e){return new pt(this.data.concat(e.flatMap(t=>t.data).flat(Number.POSITIVE_INFINITY)))}slice(e,t){return new pt(dS(this,e,t,({data:s,_offsets:a},u,d)=>mS(s,a,u,d)))}toJSON(){return[...this]}toArray(){const{type:e,data:t,length:s,stride:a,ArrayType:u}=this;switch(e.typeId){case D.Int:case D.Float:case D.Decimal:case D.Time:case D.Timestamp:switch(t.length){case 0:return new u;case 1:return t[0].values.subarray(0,s*a);default:return t.reduce((d,{values:f,length:p})=>(d.array.set(f.subarray(0,p*a),d.offset),d.offset+=p*a,d),{array:new u(s*a),offset:0}).array}}return[...this]}toString(){return`[${[...this].join(",")}]`}getChild(e){var t;return this.getChildAt((t=this.type.children)===null||t===void 0?void 0:t.findIndex(s=>s.name===e))}getChildAt(e){return e>-1&&e<this.numChildren?new pt(this.data.map(({children:t})=>t[e])):null}get isMemoized(){return fe.isDictionary(this.type)?this.data[0].dictionary.isMemoized:!1}memoize(){if(fe.isDictionary(this.type)){const e=new td(this.data[0].dictionary),t=this.data.map(s=>{const a=s.clone();return a.dictionary=e,a});return new pt(t)}return new td(this)}unmemoize(){if(fe.isDictionary(this.type)&&this.isMemoized){const e=this.data[0].dictionary.unmemoize(),t=this.data.map(s=>{const a=s.clone();return a.dictionary=e,a});return new pt(t)}return this}}wS=Symbol.toStringTag;pt[wS]=(n=>{n.type=fe.prototype,n.data=[],n.length=0,n.stride=1,n.numChildren=0,n._offsets=new Uint32Array([0]),n[Symbol.isConcatSpreadable]=!0;const e=Object.keys(D).map(t=>D[t]).filter(t=>typeof t=="number"&&t!==D.NONE);for(const t of e){const s=Pn.getVisitFnByTypeId(t),a=or.getVisitFnByTypeId(t),u=ed.getVisitFnByTypeId(t);SS[t]={get:s,set:a,indexOf:u},_S[t]=Object.create(n,{isValid:{value:Zc(Ep)},get:{value:Zc(Pn.getVisitFnByTypeId(t))},set:{value:yS(or.getVisitFnByTypeId(t))},indexOf:{value:gS(ed.getVisitFnByTypeId(t))}})}return"Vector"})(pt.prototype);class td extends pt{constructor(e){super(e.data);const t=this.get,s=this.set,a=this.slice,u=new Array(this.length);Object.defineProperty(this,"get",{value(d){const f=u[d];if(f!==void 0)return f;const p=t.call(this,d);return u[d]=p,p}}),Object.defineProperty(this,"set",{value(d,f){s.call(this,d,f),u[d]=f}}),Object.defineProperty(this,"slice",{value:(d,f)=>new td(a.call(this,d,f))}),Object.defineProperty(this,"isMemoized",{value:!0}),Object.defineProperty(this,"unmemoize",{value:()=>new pt(this.data)}),Object.defineProperty(this,"memoize",{value:()=>this})}}class Qh{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}offset(){return this.bb.readInt64(this.bb_pos)}metaDataLength(){return this.bb.readInt32(this.bb_pos+8)}bodyLength(){return this.bb.readInt64(this.bb_pos+16)}static sizeOf(){return 24}static createBlock(e,t,s,a){return e.prep(8,24),e.writeInt64(BigInt(a??0)),e.pad(4),e.writeInt32(s),e.writeInt64(BigInt(t??0)),e.offset()}}let kr=class Kh{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsFooter(e,t){return(t||new Kh).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsFooter(e,t){return e.setPosition(e.position()+ot),(t||new Kh).__init(e.readInt32(e.position())+e.position(),e)}version(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):Ut.V1}schema(e){const t=this.bb.__offset(this.bb_pos,6);return t?(e||new Tr).__init(this.bb.__indirect(this.bb_pos+t),this.bb):null}dictionaries(e,t){const s=this.bb.__offset(this.bb_pos,8);return s?(t||new Qh).__init(this.bb.__vector(this.bb_pos+s)+e*24,this.bb):null}dictionariesLength(){const e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__vector_len(this.bb_pos+e):0}recordBatches(e,t){const s=this.bb.__offset(this.bb_pos,10);return s?(t||new Qh).__init(this.bb.__vector(this.bb_pos+s)+e*24,this.bb):null}recordBatchesLength(){const e=this.bb.__offset(this.bb_pos,10);return e?this.bb.__vector_len(this.bb_pos+e):0}customMetadata(e,t){const s=this.bb.__offset(this.bb_pos,12);return s?(t||new Wt).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+s)+e*4),this.bb):null}customMetadataLength(){const e=this.bb.__offset(this.bb_pos,12);return e?this.bb.__vector_len(this.bb_pos+e):0}static startFooter(e){e.startObject(5)}static addVersion(e,t){e.addFieldInt16(0,t,Ut.V1)}static addSchema(e,t){e.addFieldOffset(1,t,0)}static addDictionaries(e,t){e.addFieldOffset(2,t,0)}static startDictionariesVector(e,t){e.startVector(24,t,8)}static addRecordBatches(e,t){e.addFieldOffset(3,t,0)}static startRecordBatchesVector(e,t){e.startVector(24,t,8)}static addCustomMetadata(e,t){e.addFieldOffset(4,t,0)}static createCustomMetadataVector(e,t){e.startVector(4,t.length,4);for(let s=t.length-1;s>=0;s--)e.addOffset(t[s]);return e.endVector()}static startCustomMetadataVector(e,t){e.startVector(4,t,4)}static endFooter(e){return e.endObject()}static finishFooterBuffer(e,t){e.finish(t)}static finishSizePrefixedFooterBuffer(e,t){e.finish(t,void 0,!0)}};class it{constructor(e=[],t,s,a=Ut.V5){this.fields=e||[],this.metadata=t||new Map,s||(s=qh(this.fields)),this.dictionaries=s,this.metadataVersion=a}get[Symbol.toStringTag](){return"Schema"}get names(){return this.fields.map(e=>e.name)}toString(){return`Schema<{ ${this.fields.map((e,t)=>`${t}: ${e}`).join(", ")} }>`}select(e){const t=new Set(e),s=this.fields.filter(a=>t.has(a.name));return new it(s,this.metadata)}selectAt(e){const t=e.map(s=>this.fields[s]).filter(Boolean);return new it(t,this.metadata)}assign(...e){const t=e[0]instanceof it?e[0]:Array.isArray(e[0])?new it(e[0]):new it(e),s=[...this.fields],a=dc(dc(new Map,this.metadata),t.metadata),u=t.fields.filter(f=>{const p=s.findIndex(m=>m.name===f.name);return~p?(s[p]=f.clone({metadata:dc(dc(new Map,s[p].metadata),f.metadata)}))&&!1:!0}),d=qh(u,new Map);return new it([...s,...u],a,new Map([...this.dictionaries,...d]))}}it.prototype.fields=null;it.prototype.metadata=null;it.prototype.dictionaries=null;class Dt{static new(...e){let[t,s,a,u]=e;return e[0]&&typeof e[0]=="object"&&({name:t}=e[0],s===void 0&&(s=e[0].type),a===void 0&&(a=e[0].nullable),u===void 0&&(u=e[0].metadata)),new Dt(`${t}`,s,a,u)}constructor(e,t,s=!1,a){this.name=e,this.type=t,this.nullable=s,this.metadata=a||new Map}get typeId(){return this.type.typeId}get[Symbol.toStringTag](){return"Field"}toString(){return`${this.name}: ${this.type}`}clone(...e){let[t,s,a,u]=e;return!e[0]||typeof e[0]!="object"?[t=this.name,s=this.type,a=this.nullable,u=this.metadata]=e:{name:t=this.name,type:s=this.type,nullable:a=this.nullable,metadata:u=this.metadata}=e[0],Dt.new(t,s,a,u)}}Dt.prototype.type=null;Dt.prototype.name=null;Dt.prototype.nullable=null;Dt.prototype.metadata=null;function dc(n,e){return new Map([...n||new Map,...e||new Map])}function qh(n,e=new Map){for(let t=-1,s=n.length;++t<s;){const u=n[t].type;if(fe.isDictionary(u)){if(!e.has(u.id))e.set(u.id,u.dictionary);else if(e.get(u.id)!==u.dictionary)throw new Error("Cannot create Schema containing two different dictionaries with the same Id")}u.children&&u.children.length>0&&qh(u.children,e)}return e}var gD=W0,vD=ma;class Dp{static decode(e){e=new vD(qe(e));const t=kr.getRootAsFooter(e),s=it.decode(t.schema(),new Map,t.version());return new wD(s,t)}static encode(e){const t=new gD,s=it.encode(t,e.schema);kr.startRecordBatchesVector(t,e.numRecordBatches);for(const d of[...e.recordBatches()].slice().reverse())va.encode(t,d);const a=t.endVector();kr.startDictionariesVector(t,e.numDictionaries);for(const d of[...e.dictionaryBatches()].slice().reverse())va.encode(t,d);const u=t.endVector();return kr.startFooter(t),kr.addSchema(t,s),kr.addVersion(t,Ut.V5),kr.addRecordBatches(t,a),kr.addDictionaries(t,u),kr.finishFooterBuffer(t,kr.endFooter(t)),t.asUint8Array()}get numRecordBatches(){return this._recordBatches.length}get numDictionaries(){return this._dictionaryBatches.length}constructor(e,t=Ut.V5,s,a){this.schema=e,this.version=t,s&&(this._recordBatches=s),a&&(this._dictionaryBatches=a)}*recordBatches(){for(let e,t=-1,s=this.numRecordBatches;++t<s;)(e=this.getRecordBatch(t))&&(yield e)}*dictionaryBatches(){for(let e,t=-1,s=this.numDictionaries;++t<s;)(e=this.getDictionaryBatch(t))&&(yield e)}getRecordBatch(e){return e>=0&&e<this.numRecordBatches&&this._recordBatches[e]||null}getDictionaryBatch(e){return e>=0&&e<this.numDictionaries&&this._dictionaryBatches[e]||null}}class wD extends Dp{get numRecordBatches(){return this._footer.recordBatchesLength()}get numDictionaries(){return this._footer.dictionariesLength()}constructor(e,t){super(e,t.version()),this._footer=t}getRecordBatch(e){if(e>=0&&e<this.numRecordBatches){const t=this._footer.recordBatches(e);if(t)return va.decode(t)}return null}getDictionaryBatch(e){if(e>=0&&e<this.numDictionaries){const t=this._footer.dictionaries(e);if(t)return va.decode(t)}return null}}class va{static decode(e){return new va(e.metaDataLength(),e.bodyLength(),e.offset())}static encode(e,t){const{metaDataLength:s}=t,a=BigInt(t.offset),u=BigInt(t.bodyLength);return Qh.createBlock(e,a,s,u)}constructor(e,t,s){this.metaDataLength=e,this.offset=xt(s),this.bodyLength=xt(t)}}const Lt=Object.freeze({done:!0,value:void 0});class hv{constructor(e){this._json=e}get schema(){return this._json.schema}get batches(){return this._json.batches||[]}get dictionaries(){return this._json.dictionaries||[]}}class bS{tee(){return this._getDOMStream().tee()}pipe(e,t){return this._getNodeStream().pipe(e,t)}pipeTo(e,t){return this._getDOMStream().pipeTo(e,t)}pipeThrough(e,t){return this._getDOMStream().pipeThrough(e,t)}_getDOMStream(){return this._DOMStream||(this._DOMStream=this.toDOMStream())}_getNodeStream(){return this._nodeStream||(this._nodeStream=this.toNodeStream())}}class SD extends bS{constructor(){super(),this._values=[],this.resolvers=[],this._closedPromise=new Promise(e=>this._closedPromiseResolve=e)}get closed(){return this._closedPromise}cancel(e){return ke(this,void 0,void 0,function*(){yield this.return(e)})}write(e){this._ensureOpen()&&(this.resolvers.length<=0?this._values.push(e):this.resolvers.shift().resolve({done:!1,value:e}))}abort(e){this._closedPromiseResolve&&(this.resolvers.length<=0?this._error={error:e}:this.resolvers.shift().reject({done:!0,value:e}))}close(){if(this._closedPromiseResolve){const{resolvers:e}=this;for(;e.length>0;)e.shift().resolve(Lt);this._closedPromiseResolve(),this._closedPromiseResolve=void 0}}[Symbol.asyncIterator](){return this}toDOMStream(e){return er.toDOMStream(this._closedPromiseResolve||this._error?this:this._values,e)}toNodeStream(e){return er.toNodeStream(this._closedPromiseResolve||this._error?this:this._values,e)}throw(e){return ke(this,void 0,void 0,function*(){return yield this.abort(e),Lt})}return(e){return ke(this,void 0,void 0,function*(){return yield this.close(),Lt})}read(e){return ke(this,void 0,void 0,function*(){return(yield this.next(e,"read")).value})}peek(e){return ke(this,void 0,void 0,function*(){return(yield this.next(e,"peek")).value})}next(...e){return this._values.length>0?Promise.resolve({done:!1,value:this._values.shift()}):this._error?Promise.reject({done:!0,value:this._error.error}):this._closedPromiseResolve?new Promise((t,s)=>{this.resolvers.push({resolve:t,reject:s})}):Promise.resolve(Lt)}_ensureOpen(){if(this._closedPromiseResolve)return!0;throw new Error("AsyncQueue is closed")}}class _D extends SD{write(e){if((e=qe(e)).byteLength>0)return super.write(e)}toString(e=!1){return e?Nh(this.toUint8Array(!0)):this.toUint8Array(!1).then(Nh)}toUint8Array(e=!1){return e?qr(this._values)[0]:ke(this,void 0,void 0,function*(){var t,s,a,u;const d=[];let f=0;try{for(var p=!0,m=Xo(this),g;g=yield m.next(),t=g.done,!t;p=!0){u=g.value,p=!1;const v=u;d.push(v),f+=v.byteLength}}catch(v){s={error:v}}finally{try{!p&&!t&&(a=m.return)&&(yield a.call(m))}finally{if(s)throw s.error}}return qr(d,f)[0]})}}class nd{constructor(e){e&&(this.source=new bD(er.fromIterable(e)))}[Symbol.iterator](){return this}next(e){return this.source.next(e)}throw(e){return this.source.throw(e)}return(e){return this.source.return(e)}peek(e){return this.source.peek(e)}read(e){return this.source.read(e)}}class wa{constructor(e){e instanceof wa?this.source=e.source:e instanceof _D?this.source=new Us(er.fromAsyncIterable(e)):$0(e)?this.source=new Us(er.fromNodeStream(e)):mp(e)?this.source=new Us(er.fromDOMStream(e)):j0(e)?this.source=new Us(er.fromDOMStream(e.body)):fd(e)?this.source=new Us(er.fromIterable(e)):Al(e)?this.source=new Us(er.fromAsyncIterable(e)):pp(e)&&(this.source=new Us(er.fromAsyncIterable(e)))}[Symbol.asyncIterator](){return this}next(e){return this.source.next(e)}throw(e){return this.source.throw(e)}return(e){return this.source.return(e)}get closed(){return this.source.closed}cancel(e){return this.source.cancel(e)}peek(e){return this.source.peek(e)}read(e){return this.source.read(e)}}class bD{constructor(e){this.source=e}cancel(e){this.return(e)}peek(e){return this.next(e,"peek").value}read(e){return this.next(e,"read").value}next(e,t="read"){return this.source.next({cmd:t,size:e})}throw(e){return Object.create(this.source.throw&&this.source.throw(e)||Lt)}return(e){return Object.create(this.source.return&&this.source.return(e)||Lt)}}class Us{constructor(e){this.source=e,this._closedPromise=new Promise(t=>this._closedPromiseResolve=t)}cancel(e){return ke(this,void 0,void 0,function*(){yield this.return(e)})}get closed(){return this._closedPromise}read(e){return ke(this,void 0,void 0,function*(){return(yield this.next(e,"read")).value})}peek(e){return ke(this,void 0,void 0,function*(){return(yield this.next(e,"peek")).value})}next(e){return ke(this,arguments,void 0,function*(t,s="read"){return yield this.source.next({cmd:s,size:t})})}throw(e){return ke(this,void 0,void 0,function*(){const t=this.source.throw&&(yield this.source.throw(e))||Lt;return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(t)})}return(e){return ke(this,void 0,void 0,function*(){const t=this.source.return&&(yield this.source.return(e))||Lt;return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(t)})}}class pv extends nd{constructor(e,t){super(),this.position=0,this.buffer=qe(e),this.size=t===void 0?this.buffer.byteLength:t}readInt32(e){const{buffer:t,byteOffset:s}=this.readAt(e,4);return new DataView(t,s).getInt32(0,!0)}seek(e){return this.position=Math.min(e,this.size),e<this.size}read(e){const{buffer:t,size:s,position:a}=this;return t&&a<s?(typeof e!="number"&&(e=Number.POSITIVE_INFINITY),this.position=Math.min(s,a+Math.min(s-a,e)),t.subarray(a,this.position)):null}readAt(e,t){const s=this.buffer,a=Math.min(this.size,e+t);return s?s.subarray(e,a):new Uint8Array(t)}close(){this.buffer&&(this.buffer=null)}throw(e){return this.close(),{done:!0,value:e}}return(e){return this.close(),{done:!0,value:e}}}class rd extends wa{constructor(e,t){super(),this.position=0,this._handle=e,typeof t=="number"?this.size=t:this._pending=ke(this,void 0,void 0,function*(){this.size=(yield e.stat()).size,delete this._pending})}readInt32(e){return ke(this,void 0,void 0,function*(){const{buffer:t,byteOffset:s}=yield this.readAt(e,4);return new DataView(t,s).getInt32(0,!0)})}seek(e){return ke(this,void 0,void 0,function*(){return this._pending&&(yield this._pending),this.position=Math.min(e,this.size),e<this.size})}read(e){return ke(this,void 0,void 0,function*(){this._pending&&(yield this._pending);const{_handle:t,size:s,position:a}=this;if(t&&a<s){typeof e!="number"&&(e=Number.POSITIVE_INFINITY);let u=a,d=0,f=0;const p=Math.min(s,u+Math.min(s-u,e)),m=new Uint8Array(Math.max(0,(this.position=p)-u));for(;(u+=f)<p&&(d+=f)<m.byteLength;)({bytesRead:f}=yield t.read(m,d,m.byteLength-d,u));return m}return null})}readAt(e,t){return ke(this,void 0,void 0,function*(){this._pending&&(yield this._pending);const{_handle:s,size:a}=this;if(s&&e+t<a){const u=Math.min(a,e+t),d=new Uint8Array(u-e);return(yield s.read(d,0,t,e)).buffer}return new Uint8Array(t)})}close(){return ke(this,void 0,void 0,function*(){const e=this._handle;this._handle=null,e&&(yield e.close())})}throw(e){return ke(this,void 0,void 0,function*(){return yield this.close(),{done:!0,value:e}})}return(e){return ke(this,void 0,void 0,function*(){return yield this.close(),{done:!0,value:e}})}}const ID=65536;function Go(n){return n<0&&(n=4294967295+n+1),`0x${n.toString(16)}`}const Sa=8,Cp=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8];class IS{constructor(e){this.buffer=e}high(){return this.buffer[1]}low(){return this.buffer[0]}_times(e){const t=new Uint32Array([this.buffer[1]>>>16,this.buffer[1]&65535,this.buffer[0]>>>16,this.buffer[0]&65535]),s=new Uint32Array([e.buffer[1]>>>16,e.buffer[1]&65535,e.buffer[0]>>>16,e.buffer[0]&65535]);let a=t[3]*s[3];this.buffer[0]=a&65535;let u=a>>>16;return a=t[2]*s[3],u+=a,a=t[3]*s[2]>>>0,u+=a,this.buffer[0]+=u<<16,this.buffer[1]=u>>>0<a?ID:0,this.buffer[1]+=u>>>16,this.buffer[1]+=t[1]*s[3]+t[2]*s[2]+t[3]*s[1],this.buffer[1]+=t[0]*s[3]+t[1]*s[2]+t[2]*s[1]+t[3]*s[0]<<16,this}_plus(e){const t=this.buffer[0]+e.buffer[0]>>>0;this.buffer[1]+=e.buffer[1],t<this.buffer[0]>>>0&&++this.buffer[1],this.buffer[0]=t}lessThan(e){return this.buffer[1]<e.buffer[1]||this.buffer[1]===e.buffer[1]&&this.buffer[0]<e.buffer[0]}equals(e){return this.buffer[1]===e.buffer[1]&&this.buffer[0]==e.buffer[0]}greaterThan(e){return e.lessThan(this)}hex(){return`${Go(this.buffer[1])} ${Go(this.buffer[0])}`}}class lt extends IS{times(e){return this._times(e),this}plus(e){return this._plus(e),this}static from(e,t=new Uint32Array(2)){return lt.fromString(typeof e=="string"?e:e.toString(),t)}static fromNumber(e,t=new Uint32Array(2)){return lt.fromString(e.toString(),t)}static fromString(e,t=new Uint32Array(2)){const s=e.length,a=new lt(t);for(let u=0;u<s;){const d=Sa<s-u?Sa:s-u,f=new lt(new Uint32Array([Number.parseInt(e.slice(u,u+d),10),0])),p=new lt(new Uint32Array([Cp[d],0]));a.times(p),a.plus(f),u+=d}return a}static convertArray(e){const t=new Uint32Array(e.length*2);for(let s=-1,a=e.length;++s<a;)lt.from(e[s],new Uint32Array(t.buffer,t.byteOffset+2*s*4,2));return t}static multiply(e,t){return new lt(new Uint32Array(e.buffer)).times(t)}static add(e,t){return new lt(new Uint32Array(e.buffer)).plus(t)}}class Mn extends IS{negate(){return this.buffer[0]=~this.buffer[0]+1,this.buffer[1]=~this.buffer[1],this.buffer[0]==0&&++this.buffer[1],this}times(e){return this._times(e),this}plus(e){return this._plus(e),this}lessThan(e){const t=this.buffer[1]<<0,s=e.buffer[1]<<0;return t<s||t===s&&this.buffer[0]<e.buffer[0]}static from(e,t=new Uint32Array(2)){return Mn.fromString(typeof e=="string"?e:e.toString(),t)}static fromNumber(e,t=new Uint32Array(2)){return Mn.fromString(e.toString(),t)}static fromString(e,t=new Uint32Array(2)){const s=e.startsWith("-"),a=e.length,u=new Mn(t);for(let d=s?1:0;d<a;){const f=Sa<a-d?Sa:a-d,p=new Mn(new Uint32Array([Number.parseInt(e.slice(d,d+f),10),0])),m=new Mn(new Uint32Array([Cp[f],0]));u.times(m),u.plus(p),d+=f}return s?u.negate():u}static convertArray(e){const t=new Uint32Array(e.length*2);for(let s=-1,a=e.length;++s<a;)Mn.from(e[s],new Uint32Array(t.buffer,t.byteOffset+2*s*4,2));return t}static multiply(e,t){return new Mn(new Uint32Array(e.buffer)).times(t)}static add(e,t){return new Mn(new Uint32Array(e.buffer)).plus(t)}}class Br{constructor(e){this.buffer=e}high(){return new Mn(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset+8,2))}low(){return new Mn(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset,2))}negate(){return this.buffer[0]=~this.buffer[0]+1,this.buffer[1]=~this.buffer[1],this.buffer[2]=~this.buffer[2],this.buffer[3]=~this.buffer[3],this.buffer[0]==0&&++this.buffer[1],this.buffer[1]==0&&++this.buffer[2],this.buffer[2]==0&&++this.buffer[3],this}times(e){const t=new lt(new Uint32Array([this.buffer[3],0])),s=new lt(new Uint32Array([this.buffer[2],0])),a=new lt(new Uint32Array([this.buffer[1],0])),u=new lt(new Uint32Array([this.buffer[0],0])),d=new lt(new Uint32Array([e.buffer[3],0])),f=new lt(new Uint32Array([e.buffer[2],0])),p=new lt(new Uint32Array([e.buffer[1],0])),m=new lt(new Uint32Array([e.buffer[0],0]));let g=lt.multiply(u,m);this.buffer[0]=g.low();const v=new lt(new Uint32Array([g.high(),0]));return g=lt.multiply(a,m),v.plus(g),g=lt.multiply(u,p),v.plus(g),this.buffer[1]=v.low(),this.buffer[3]=v.lessThan(g)?1:0,this.buffer[2]=v.high(),new lt(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset+8,2)).plus(lt.multiply(s,m)).plus(lt.multiply(a,p)).plus(lt.multiply(u,f)),this.buffer[3]+=lt.multiply(t,m).plus(lt.multiply(s,p)).plus(lt.multiply(a,f)).plus(lt.multiply(u,d)).low(),this}plus(e){const t=new Uint32Array(4);return t[3]=this.buffer[3]+e.buffer[3]>>>0,t[2]=this.buffer[2]+e.buffer[2]>>>0,t[1]=this.buffer[1]+e.buffer[1]>>>0,t[0]=this.buffer[0]+e.buffer[0]>>>0,t[0]<this.buffer[0]>>>0&&++t[1],t[1]<this.buffer[1]>>>0&&++t[2],t[2]<this.buffer[2]>>>0&&++t[3],this.buffer[3]=t[3],this.buffer[2]=t[2],this.buffer[1]=t[1],this.buffer[0]=t[0],this}hex(){return`${Go(this.buffer[3])} ${Go(this.buffer[2])} ${Go(this.buffer[1])} ${Go(this.buffer[0])}`}static multiply(e,t){return new Br(new Uint32Array(e.buffer)).times(t)}static add(e,t){return new Br(new Uint32Array(e.buffer)).plus(t)}static from(e,t=new Uint32Array(4)){return Br.fromString(typeof e=="string"?e:e.toString(),t)}static fromNumber(e,t=new Uint32Array(4)){return Br.fromString(e.toString(),t)}static fromString(e,t=new Uint32Array(4)){const s=e.startsWith("-"),a=e.length,u=new Br(t);for(let d=s?1:0;d<a;){const f=Sa<a-d?Sa:a-d,p=new Br(new Uint32Array([Number.parseInt(e.slice(d,d+f),10),0,0,0])),m=new Br(new Uint32Array([Cp[f],0,0,0]));u.times(m),u.plus(p),d+=f}return s?u.negate():u}static convertArray(e){const t=new Uint32Array(e.length*4);for(let s=-1,a=e.length;++s<a;)Br.from(e[s],new Uint32Array(t.buffer,t.byteOffset+16*s,4));return t}}class ES extends He{constructor(e,t,s,a,u=Ut.V5){super(),this.nodesIndex=-1,this.buffersIndex=-1,this.bytes=e,this.nodes=t,this.buffers=s,this.dictionaries=a,this.metadataVersion=u}visit(e){return super.visit(e instanceof Dt?e.type:e)}visitNull(e,{length:t}=this.nextFieldNode()){return Ve({type:e,length:t})}visitBool(e,{length:t,nullCount:s}=this.nextFieldNode()){return Ve({type:e,length:t,nullCount:s,nullBitmap:this.readNullBitmap(e,s),data:this.readData(e)})}visitInt(e,{length:t,nullCount:s}=this.nextFieldNode()){return Ve({type:e,length:t,nullCount:s,nullBitmap:this.readNullBitmap(e,s),data:this.readData(e)})}visitFloat(e,{length:t,nullCount:s}=this.nextFieldNode()){return Ve({type:e,length:t,nullCount:s,nullBitmap:this.readNullBitmap(e,s),data:this.readData(e)})}visitUtf8(e,{length:t,nullCount:s}=this.nextFieldNode()){return Ve({type:e,length:t,nullCount:s,nullBitmap:this.readNullBitmap(e,s),valueOffsets:this.readOffsets(e),data:this.readData(e)})}visitLargeUtf8(e,{length:t,nullCount:s}=this.nextFieldNode()){return Ve({type:e,length:t,nullCount:s,nullBitmap:this.readNullBitmap(e,s),valueOffsets:this.readOffsets(e),data:this.readData(e)})}visitBinary(e,{length:t,nullCount:s}=this.nextFieldNode()){return Ve({type:e,length:t,nullCount:s,nullBitmap:this.readNullBitmap(e,s),valueOffsets:this.readOffsets(e),data:this.readData(e)})}visitLargeBinary(e,{length:t,nullCount:s}=this.nextFieldNode()){return Ve({type:e,length:t,nullCount:s,nullBitmap:this.readNullBitmap(e,s),valueOffsets:this.readOffsets(e),data:this.readData(e)})}visitFixedSizeBinary(e,{length:t,nullCount:s}=this.nextFieldNode()){return Ve({type:e,length:t,nullCount:s,nullBitmap:this.readNullBitmap(e,s),data:this.readData(e)})}visitDate(e,{length:t,nullCount:s}=this.nextFieldNode()){return Ve({type:e,length:t,nullCount:s,nullBitmap:this.readNullBitmap(e,s),data:this.readData(e)})}visitTimestamp(e,{length:t,nullCount:s}=this.nextFieldNode()){return Ve({type:e,length:t,nullCount:s,nullBitmap:this.readNullBitmap(e,s),data:this.readData(e)})}visitTime(e,{length:t,nullCount:s}=this.nextFieldNode()){return Ve({type:e,length:t,nullCount:s,nullBitmap:this.readNullBitmap(e,s),data:this.readData(e)})}visitDecimal(e,{length:t,nullCount:s}=this.nextFieldNode()){return Ve({type:e,length:t,nullCount:s,nullBitmap:this.readNullBitmap(e,s),data:this.readData(e)})}visitList(e,{length:t,nullCount:s}=this.nextFieldNode()){return Ve({type:e,length:t,nullCount:s,nullBitmap:this.readNullBitmap(e,s),valueOffsets:this.readOffsets(e),child:this.visit(e.children[0])})}visitStruct(e,{length:t,nullCount:s}=this.nextFieldNode()){return Ve({type:e,length:t,nullCount:s,nullBitmap:this.readNullBitmap(e,s),children:this.visitMany(e.children)})}visitUnion(e,{length:t,nullCount:s}=this.nextFieldNode()){return this.metadataVersion<Ut.V5&&this.readNullBitmap(e,s),e.mode===kn.Sparse?this.visitSparseUnion(e,{length:t,nullCount:s}):this.visitDenseUnion(e,{length:t,nullCount:s})}visitDenseUnion(e,{length:t,nullCount:s}=this.nextFieldNode()){return Ve({type:e,length:t,nullCount:s,typeIds:this.readTypeIds(e),valueOffsets:this.readOffsets(e),children:this.visitMany(e.children)})}visitSparseUnion(e,{length:t,nullCount:s}=this.nextFieldNode()){return Ve({type:e,length:t,nullCount:s,typeIds:this.readTypeIds(e),children:this.visitMany(e.children)})}visitDictionary(e,{length:t,nullCount:s}=this.nextFieldNode()){return Ve({type:e,length:t,nullCount:s,nullBitmap:this.readNullBitmap(e,s),data:this.readData(e.indices),dictionary:this.readDictionary(e)})}visitInterval(e,{length:t,nullCount:s}=this.nextFieldNode()){return Ve({type:e,length:t,nullCount:s,nullBitmap:this.readNullBitmap(e,s),data:this.readData(e)})}visitDuration(e,{length:t,nullCount:s}=this.nextFieldNode()){return Ve({type:e,length:t,nullCount:s,nullBitmap:this.readNullBitmap(e,s),data:this.readData(e)})}visitFixedSizeList(e,{length:t,nullCount:s}=this.nextFieldNode()){return Ve({type:e,length:t,nullCount:s,nullBitmap:this.readNullBitmap(e,s),child:this.visit(e.children[0])})}visitMap(e,{length:t,nullCount:s}=this.nextFieldNode()){return Ve({type:e,length:t,nullCount:s,nullBitmap:this.readNullBitmap(e,s),valueOffsets:this.readOffsets(e),child:this.visit(e.children[0])})}nextFieldNode(){return this.nodes[++this.nodesIndex]}nextBufferRange(){return this.buffers[++this.buffersIndex]}readNullBitmap(e,t,s=this.nextBufferRange()){return t>0&&this.readData(e,s)||new Uint8Array(0)}readOffsets(e,t){return this.readData(e,t)}readTypeIds(e,t){return this.readData(e,t)}readData(e,{length:t,offset:s}=this.nextBufferRange()){return this.bytes.subarray(s,s+t)}readDictionary(e){return this.dictionaries.get(e.id)}}class ED extends ES{constructor(e,t,s,a,u){super(new Uint8Array(0),t,s,a,u),this.sources=e}readNullBitmap(e,t,{offset:s}=this.nextBufferRange()){return t<=0?new Uint8Array(0):Vh(this.sources[s])}readOffsets(e,{offset:t}=this.nextBufferRange()){return ut(Uint8Array,ut(e.OffsetArrayType,this.sources[t]))}readTypeIds(e,{offset:t}=this.nextBufferRange()){return ut(Uint8Array,ut(e.ArrayType,this.sources[t]))}readData(e,{offset:t}=this.nextBufferRange()){const{sources:s}=this;return fe.isTimestamp(e)||(fe.isInt(e)||fe.isTime(e))&&e.bitWidth===64||fe.isDuration(e)||fe.isDate(e)&&e.unit===sr.MILLISECOND?ut(Uint8Array,Mn.convertArray(s[t])):fe.isDecimal(e)?ut(Uint8Array,Br.convertArray(s[t])):fe.isBinary(e)||fe.isLargeBinary(e)||fe.isFixedSizeBinary(e)?xD(s[t]):fe.isBool(e)?Vh(s[t]):fe.isUtf8(e)||fe.isLargeUtf8(e)?hp(s[t].join("")):ut(Uint8Array,ut(e.ArrayType,s[t].map(a=>+a)))}}function xD(n){const e=n.join(""),t=new Uint8Array(e.length/2);for(let s=0;s<e.length;s+=2)t[s>>1]=Number.parseInt(e.slice(s,s+2),16);return t}class Ie extends He{compareSchemas(e,t){return e===t||t instanceof e.constructor&&this.compareManyFields(e.fields,t.fields)}compareManyFields(e,t){return e===t||Array.isArray(e)&&Array.isArray(t)&&e.length===t.length&&e.every((s,a)=>this.compareFields(s,t[a]))}compareFields(e,t){return e===t||t instanceof e.constructor&&e.name===t.name&&e.nullable===t.nullable&&this.visit(e.type,t.type)}}function wn(n,e){return e instanceof n.constructor}function so(n,e){return n===e||wn(n,e)}function Ii(n,e){return n===e||wn(n,e)&&n.bitWidth===e.bitWidth&&n.isSigned===e.isSigned}function pd(n,e){return n===e||wn(n,e)&&n.precision===e.precision}function DD(n,e){return n===e||wn(n,e)&&n.byteWidth===e.byteWidth}function Op(n,e){return n===e||wn(n,e)&&n.unit===e.unit}function Wl(n,e){return n===e||wn(n,e)&&n.unit===e.unit&&n.timezone===e.timezone}function Ql(n,e){return n===e||wn(n,e)&&n.unit===e.unit&&n.bitWidth===e.bitWidth}function CD(n,e){return n===e||wn(n,e)&&n.children.length===e.children.length&&ys.compareManyFields(n.children,e.children)}function OD(n,e){return n===e||wn(n,e)&&n.children.length===e.children.length&&ys.compareManyFields(n.children,e.children)}function Fp(n,e){return n===e||wn(n,e)&&n.mode===e.mode&&n.typeIds.every((t,s)=>t===e.typeIds[s])&&ys.compareManyFields(n.children,e.children)}function FD(n,e){return n===e||wn(n,e)&&n.id===e.id&&n.isOrdered===e.isOrdered&&ys.visit(n.indices,e.indices)&&ys.visit(n.dictionary,e.dictionary)}function Rp(n,e){return n===e||wn(n,e)&&n.unit===e.unit}function Kl(n,e){return n===e||wn(n,e)&&n.unit===e.unit}function RD(n,e){return n===e||wn(n,e)&&n.listSize===e.listSize&&n.children.length===e.children.length&&ys.compareManyFields(n.children,e.children)}function MD(n,e){return n===e||wn(n,e)&&n.keysSorted===e.keysSorted&&n.children.length===e.children.length&&ys.compareManyFields(n.children,e.children)}Ie.prototype.visitNull=so;Ie.prototype.visitBool=so;Ie.prototype.visitInt=Ii;Ie.prototype.visitInt8=Ii;Ie.prototype.visitInt16=Ii;Ie.prototype.visitInt32=Ii;Ie.prototype.visitInt64=Ii;Ie.prototype.visitUint8=Ii;Ie.prototype.visitUint16=Ii;Ie.prototype.visitUint32=Ii;Ie.prototype.visitUint64=Ii;Ie.prototype.visitFloat=pd;Ie.prototype.visitFloat16=pd;Ie.prototype.visitFloat32=pd;Ie.prototype.visitFloat64=pd;Ie.prototype.visitUtf8=so;Ie.prototype.visitLargeUtf8=so;Ie.prototype.visitBinary=so;Ie.prototype.visitLargeBinary=so;Ie.prototype.visitFixedSizeBinary=DD;Ie.prototype.visitDate=Op;Ie.prototype.visitDateDay=Op;Ie.prototype.visitDateMillisecond=Op;Ie.prototype.visitTimestamp=Wl;Ie.prototype.visitTimestampSecond=Wl;Ie.prototype.visitTimestampMillisecond=Wl;Ie.prototype.visitTimestampMicrosecond=Wl;Ie.prototype.visitTimestampNanosecond=Wl;Ie.prototype.visitTime=Ql;Ie.prototype.visitTimeSecond=Ql;Ie.prototype.visitTimeMillisecond=Ql;Ie.prototype.visitTimeMicrosecond=Ql;Ie.prototype.visitTimeNanosecond=Ql;Ie.prototype.visitDecimal=so;Ie.prototype.visitList=CD;Ie.prototype.visitStruct=OD;Ie.prototype.visitUnion=Fp;Ie.prototype.visitDenseUnion=Fp;Ie.prototype.visitSparseUnion=Fp;Ie.prototype.visitDictionary=FD;Ie.prototype.visitInterval=Rp;Ie.prototype.visitIntervalDayTime=Rp;Ie.prototype.visitIntervalYearMonth=Rp;Ie.prototype.visitDuration=Kl;Ie.prototype.visitDurationSecond=Kl;Ie.prototype.visitDurationMillisecond=Kl;Ie.prototype.visitDurationMicrosecond=Kl;Ie.prototype.visitDurationNanosecond=Kl;Ie.prototype.visitFixedSizeList=RD;Ie.prototype.visitMap=MD;const ys=new Ie;function LD(n,e){return ys.compareSchemas(n,e)}function mh(n,e){return AD(n,e.map(t=>t.data.concat()))}function AD(n,e){const t=[...n.fields],s=[],a={numBatches:e.reduce((v,S)=>Math.max(v,S.length),0)};let u=0,d=0,f=-1;const p=e.length;let m,g=[];for(;a.numBatches-- >0;){for(d=Number.POSITIVE_INFINITY,f=-1;++f<p;)g[f]=m=e[f].shift(),d=Math.min(d,m?m.length:d);Number.isFinite(d)&&(g=kD(t,d,g,e,a),d>0&&(s[u++]=Ve({type:new gn(t),length:d,nullCount:0,children:g.slice()})))}return[n=n.assign(t),s.map(v=>new br(n,v))]}function kD(n,e,t,s,a){var u;const d=(e+63&-64)>>3;for(let f=-1,p=s.length;++f<p;){const m=t[f],g=m==null?void 0:m.length;if(g>=e)g===e?t[f]=m:(t[f]=m.slice(0,e),a.numBatches=Math.max(a.numBatches,s[f].unshift(m.slice(e,g-e))));else{const v=n[f];n[f]=v.clone({nullable:!0}),t[f]=(u=m==null?void 0:m._changeLengthAndBackfillNullBitmap(e))!==null&&u!==void 0?u:Ve({type:v.type,length:e,nullCount:e,nullBitmap:new Uint8Array(d)})}}return t}var xS;class rr{constructor(...e){var t,s;if(e.length===0)return this.batches=[],this.schema=new it([]),this._offsets=[0],this;let a,u;e[0]instanceof it&&(a=e.shift()),e.at(-1)instanceof Uint32Array&&(u=e.pop());const d=p=>{if(p){if(p instanceof br)return[p];if(p instanceof rr)return p.batches;if(p instanceof _t){if(p.type instanceof gn)return[new br(new it(p.type.children),p)]}else{if(Array.isArray(p))return p.flatMap(m=>d(m));if(typeof p[Symbol.iterator]=="function")return[...p].flatMap(m=>d(m));if(typeof p=="object"){const m=Object.keys(p),g=m.map(E=>new pt([p[E]])),v=a??new it(m.map((E,k)=>new Dt(String(E),g[k].type,g[k].nullable))),[,S]=mh(v,g);return S.length===0?[new br(p)]:S}}}return[]},f=e.flatMap(p=>d(p));if(a=(s=a??((t=f[0])===null||t===void 0?void 0:t.schema))!==null&&s!==void 0?s:new it([]),!(a instanceof it))throw new TypeError("Table constructor expects a [Schema, RecordBatch[]] pair.");for(const p of f){if(!(p instanceof br))throw new TypeError("Table constructor expects a [Schema, RecordBatch[]] pair.");if(!LD(a,p.schema))throw new TypeError("Table and inner RecordBatch schemas must be equivalent.")}this.schema=a,this.batches=f,this._offsets=u??pS(this.data)}get data(){return this.batches.map(({data:e})=>e)}get numCols(){return this.schema.fields.length}get numRows(){return this.data.reduce((e,t)=>e+t.length,0)}get nullCount(){return this._nullCount===-1&&(this._nullCount=hS(this.data)),this._nullCount}isValid(e){return!1}get(e){return null}at(e){return this.get(_p(e,this.numRows))}set(e,t){}indexOf(e,t){return-1}[Symbol.iterator](){return this.batches.length>0?xp.visit(new pt(this.data)):new Array(0)[Symbol.iterator]()}toArray(){return[...this]}toString(){return`[
|
|
56
|
+
${this.toArray().join(`,
|
|
57
|
+
`)}
|
|
58
|
+
]`}concat(...e){const t=this.schema,s=this.data.concat(e.flatMap(({data:a})=>a));return new rr(t,s.map(a=>new br(t,a)))}slice(e,t){const s=this.schema;[e,t]=dS({length:this.numRows},e,t);const a=mS(this.data,this._offsets,e,t);return new rr(s,a.map(u=>new br(s,u)))}getChild(e){return this.getChildAt(this.schema.fields.findIndex(t=>t.name===e))}getChildAt(e){if(e>-1&&e<this.schema.fields.length){const t=this.data.map(s=>s.children[e]);if(t.length===0){const{type:s}=this.schema.fields[e],a=Ve({type:s,length:0,nullCount:0});t.push(a._changeLengthAndBackfillNullBitmap(this.numRows))}return new pt(t)}return null}setChild(e,t){var s;return this.setChildAt((s=this.schema.fields)===null||s===void 0?void 0:s.findIndex(a=>a.name===e),t)}setChildAt(e,t){let s=this.schema,a=[...this.batches];if(e>-1&&e<this.numCols){t||(t=new pt([Ve({type:new ms,length:this.numRows})]));const u=s.fields.slice(),d=u[e].clone({type:t.type}),f=this.schema.fields.map((p,m)=>this.getChildAt(m));[u[e],f[e]]=[d,t],[s,a]=mh(s,f)}return new rr(s,a)}select(e){const t=this.schema.fields.reduce((s,a,u)=>s.set(a.name,u),new Map);return this.selectAt(e.map(s=>t.get(s)).filter(s=>s>-1))}selectAt(e){const t=this.schema.selectAt(e),s=this.batches.map(a=>a.selectAt(e));return new rr(t,s)}assign(e){const t=this.schema.fields,[s,a]=e.schema.fields.reduce((f,p,m)=>{const[g,v]=f,S=t.findIndex(E=>E.name===p.name);return~S?v[S]=m:g.push(m),f},[[],[]]),u=this.schema.assign(e.schema),d=[...t.map((f,p)=>[p,a[p]]).map(([f,p])=>p===void 0?this.getChildAt(f):e.getChildAt(p)),...s.map(f=>e.getChildAt(f))].filter(Boolean);return new rr(...mh(u,d))}}xS=Symbol.toStringTag;rr[xS]=(n=>(n.schema=null,n.batches=[],n._offsets=new Uint32Array([0]),n._nullCount=-1,n[Symbol.isConcatSpreadable]=!0,n.isValid=Zc(Ep),n.get=Zc(Pn.getVisitFn(D.Struct)),n.set=yS(or.getVisitFn(D.Struct)),n.indexOf=gS(ed.getVisitFn(D.Struct)),"Table"))(rr.prototype);var DS;let br=class Dl{constructor(...e){switch(e.length){case 2:{if([this.schema]=e,!(this.schema instanceof it))throw new TypeError("RecordBatch constructor expects a [Schema, Data] pair.");if([,this.data=Ve({nullCount:0,type:new gn(this.schema.fields),children:this.schema.fields.map(t=>Ve({type:t.type,nullCount:0}))})]=e,!(this.data instanceof _t))throw new TypeError("RecordBatch constructor expects a [Schema, Data] pair.");[this.schema,this.data]=mv(this.schema,this.data.children);break}case 1:{const[t]=e,{fields:s,children:a,length:u}=Object.keys(t).reduce((p,m,g)=>(p.children[g]=t[m],p.length=Math.max(p.length,t[m].length),p.fields[g]=Dt.new({name:m,type:t[m].type,nullable:!0}),p),{length:0,fields:new Array,children:new Array}),d=new it(s),f=Ve({type:new gn(s),length:u,children:a,nullCount:0});[this.schema,this.data]=mv(d,f.children,u);break}default:throw new TypeError("RecordBatch constructor expects an Object mapping names to child Data, or a [Schema, Data] pair.")}}get dictionaries(){return this._dictionaries||(this._dictionaries=CS(this.schema.fields,this.data.children))}get numCols(){return this.schema.fields.length}get numRows(){return this.data.length}get nullCount(){return this.data.nullCount}isValid(e){return this.data.getValid(e)}get(e){return Pn.visit(this.data,e)}at(e){return this.get(_p(e,this.numRows))}set(e,t){return or.visit(this.data,e,t)}indexOf(e,t){return ed.visit(this.data,e,t)}[Symbol.iterator](){return xp.visit(new pt([this.data]))}toArray(){return[...this]}concat(...e){return new rr(this.schema,[this,...e])}slice(e,t){const[s]=new pt([this.data]).slice(e,t).data;return new Dl(this.schema,s)}getChild(e){var t;return this.getChildAt((t=this.schema.fields)===null||t===void 0?void 0:t.findIndex(s=>s.name===e))}getChildAt(e){return e>-1&&e<this.schema.fields.length?new pt([this.data.children[e]]):null}setChild(e,t){var s;return this.setChildAt((s=this.schema.fields)===null||s===void 0?void 0:s.findIndex(a=>a.name===e),t)}setChildAt(e,t){let s=this.schema,a=this.data;if(e>-1&&e<this.numCols){t||(t=new pt([Ve({type:new ms,length:this.numRows})]));const u=s.fields.slice(),d=a.children.slice(),f=u[e].clone({type:t.type});[u[e],d[e]]=[f,t.data[0]],s=new it(u,new Map(this.schema.metadata)),a=Ve({type:new gn(u),children:d})}return new Dl(s,a)}select(e){const t=this.schema.select(e),s=new gn(t.fields),a=[];for(const u of e){const d=this.schema.fields.findIndex(f=>f.name===u);~d&&(a[d]=this.data.children[d])}return new Dl(t,Ve({type:s,length:this.numRows,children:a}))}selectAt(e){const t=this.schema.selectAt(e),s=e.map(u=>this.data.children[u]).filter(Boolean),a=Ve({type:new gn(t.fields),length:this.numRows,children:s});return new Dl(t,a)}};DS=Symbol.toStringTag;br[DS]=(n=>(n._nullCount=-1,n[Symbol.isConcatSpreadable]=!0,"RecordBatch"))(br.prototype);function mv(n,e,t=e.reduce((s,a)=>Math.max(s,a.length),0)){var s;const a=[...n.fields],u=[...e],d=(t+63&-64)>>3;for(const[f,p]of n.fields.entries()){const m=e[f];(!m||m.length!==t)&&(a[f]=p.clone({nullable:!0}),u[f]=(s=m==null?void 0:m._changeLengthAndBackfillNullBitmap(t))!==null&&s!==void 0?s:Ve({type:p.type,length:t,nullCount:t,nullBitmap:new Uint8Array(d)}))}return[n.assign(a),Ve({type:new gn(a),length:t,children:u})]}function CS(n,e,t=new Map){var s,a;if(((s=n==null?void 0:n.length)!==null&&s!==void 0?s:0)>0&&(n==null?void 0:n.length)===(e==null?void 0:e.length))for(let u=-1,d=n.length;++u<d;){const{type:f}=n[u],p=e[u];for(const m of[p,...((a=p==null?void 0:p.dictionary)===null||a===void 0?void 0:a.data)||[]])CS(f.children,m==null?void 0:m.children,t);if(fe.isDictionary(f)){const{id:m}=f;if(!t.has(m))p!=null&&p.dictionary&&t.set(m,p.dictionary);else if(t.get(m)!==p.dictionary)throw new Error("Cannot create Schema containing two different dictionaries with the same Id")}}return t}class OS extends br{constructor(e){const t=e.fields.map(a=>Ve({type:a.type})),s=Ve({type:new gn(e.fields),nullCount:0,children:t});super(e,s)}}let Yi=class Pr{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsMessage(e,t){return(t||new Pr).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsMessage(e,t){return e.setPosition(e.position()+ot),(t||new Pr).__init(e.readInt32(e.position())+e.position(),e)}version(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):Ut.V1}headerType(){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readUint8(this.bb_pos+e):rt.NONE}header(e){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__union(e,this.bb_pos+t):null}bodyLength(){const e=this.bb.__offset(this.bb_pos,10);return e?this.bb.readInt64(this.bb_pos+e):BigInt("0")}customMetadata(e,t){const s=this.bb.__offset(this.bb_pos,12);return s?(t||new Wt).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+s)+e*4),this.bb):null}customMetadataLength(){const e=this.bb.__offset(this.bb_pos,12);return e?this.bb.__vector_len(this.bb_pos+e):0}static startMessage(e){e.startObject(5)}static addVersion(e,t){e.addFieldInt16(0,t,Ut.V1)}static addHeaderType(e,t){e.addFieldInt8(1,t,rt.NONE)}static addHeader(e,t){e.addFieldOffset(2,t,0)}static addBodyLength(e,t){e.addFieldInt64(3,t,BigInt("0"))}static addCustomMetadata(e,t){e.addFieldOffset(4,t,0)}static createCustomMetadataVector(e,t){e.startVector(4,t.length,4);for(let s=t.length-1;s>=0;s--)e.addOffset(t[s]);return e.endVector()}static startCustomMetadataVector(e,t){e.startVector(4,t,4)}static endMessage(e){return e.endObject()}static finishMessageBuffer(e,t){e.finish(t)}static finishSizePrefixedMessageBuffer(e,t){e.finish(t,void 0,!0)}static createMessage(e,t,s,a,u,d){return Pr.startMessage(e),Pr.addVersion(e,t),Pr.addHeaderType(e,s),Pr.addHeader(e,a),Pr.addBodyLength(e,u),Pr.addCustomMetadata(e,d),Pr.endMessage(e)}};class PD extends He{visit(e,t){return e==null||t==null?void 0:super.visit(e,t)}visitNull(e,t){return sv.startNull(t),sv.endNull(t)}visitInt(e,t){return $n.startInt(t),$n.addBitWidth(t,e.bitWidth),$n.addIsSigned(t,e.isSigned),$n.endInt(t)}visitFloat(e,t){return Vr.startFloatingPoint(t),Vr.addPrecision(t,e.precision),Vr.endFloatingPoint(t)}visitBinary(e,t){return ev.startBinary(t),ev.endBinary(t)}visitLargeBinary(e,t){return nv.startLargeBinary(t),nv.endLargeBinary(t)}visitBool(e,t){return tv.startBool(t),tv.endBool(t)}visitUtf8(e,t){return ov.startUtf8(t),ov.endUtf8(t)}visitLargeUtf8(e,t){return rv.startLargeUtf8(t),rv.endLargeUtf8(t)}visitDecimal(e,t){return $o.startDecimal(t),$o.addScale(t,e.scale),$o.addPrecision(t,e.precision),$o.addBitWidth(t,e.bitWidth),$o.endDecimal(t)}visitDate(e,t){return Sc.startDate(t),Sc.addUnit(t,e.unit),Sc.endDate(t)}visitTime(e,t){return tr.startTime(t),tr.addUnit(t,e.unit),tr.addBitWidth(t,e.bitWidth),tr.endTime(t)}visitTimestamp(e,t){const s=e.timezone&&t.createString(e.timezone)||void 0;return nr.startTimestamp(t),nr.addUnit(t,e.unit),s!==void 0&&nr.addTimezone(t,s),nr.endTimestamp(t)}visitInterval(e,t){return Hr.startInterval(t),Hr.addUnit(t,e.unit),Hr.endInterval(t)}visitDuration(e,t){return _c.startDuration(t),_c.addUnit(t,e.unit),_c.endDuration(t)}visitList(e,t){return iv.startList(t),iv.endList(t)}visitStruct(e,t){return Vs.startStruct_(t),Vs.endStruct_(t)}visitUnion(e,t){An.startTypeIdsVector(t,e.typeIds.length);const s=An.createTypeIdsVector(t,e.typeIds);return An.startUnion(t),An.addMode(t,e.mode),An.addTypeIds(t,s),An.endUnion(t)}visitDictionary(e,t){const s=this.visit(e.indices,t);return yi.startDictionaryEncoding(t),yi.addId(t,BigInt(e.id)),yi.addIsOrdered(t,e.isOrdered),s!==void 0&&yi.addIndexType(t,s),yi.endDictionaryEncoding(t)}visitFixedSizeBinary(e,t){return bc.startFixedSizeBinary(t),bc.addByteWidth(t,e.byteWidth),bc.endFixedSizeBinary(t)}visitFixedSizeList(e,t){return Ic.startFixedSizeList(t),Ic.addListSize(t,e.listSize),Ic.endFixedSizeList(t)}visitMap(e,t){return Ec.startMap(t),Ec.addKeysSorted(t,e.keysSorted),Ec.endMap(t)}}const yh=new PD;function ND(n,e=new Map){return new it(BD(n,e),Dc(n.metadata),e)}function FS(n){return new xr(n.count,RS(n.columns),MS(n.columns))}function TD(n){return new _i(FS(n.data),n.id,n.isDelta)}function BD(n,e){return(n.fields||[]).filter(Boolean).map(t=>Dt.fromJSON(t,e))}function yv(n,e){return(n.children||[]).filter(Boolean).map(t=>Dt.fromJSON(t,e))}function RS(n){return(n||[]).reduce((e,t)=>[...e,new Ia(t.count,UD(t.VALIDITY)),...RS(t.children)],[])}function MS(n,e=[]){for(let t=-1,s=(n||[]).length;++t<s;){const a=n[t];a.VALIDITY&&e.push(new vi(e.length,a.VALIDITY.length)),a.TYPE_ID&&e.push(new vi(e.length,a.TYPE_ID.length)),a.OFFSET&&e.push(new vi(e.length,a.OFFSET.length)),a.DATA&&e.push(new vi(e.length,a.DATA.length)),e=MS(a.children,e)}return e}function UD(n){return(n||[]).reduce((e,t)=>e+ +(t===0),0)}function jD(n,e){let t,s,a,u,d,f;return!e||!(u=n.dictionary)?(d=vv(n,yv(n,e)),a=new Dt(n.name,d,n.nullable,Dc(n.metadata))):e.has(t=u.id)?(s=(s=u.indexType)?gv(s):new Tl,f=new ga(e.get(t),s,t,u.isOrdered),a=new Dt(n.name,f,n.nullable,Dc(n.metadata))):(s=(s=u.indexType)?gv(s):new Tl,e.set(t,d=vv(n,yv(n,e))),f=new ga(d,s,t,u.isOrdered),a=new Dt(n.name,f,n.nullable,Dc(n.metadata))),a||null}function Dc(n=[]){return new Map(n.map(({key:e,value:t})=>[e,t]))}function gv(n){return new no(n.isSigned,n.bitWidth)}function vv(n,e){const t=n.type.name;switch(t){case"NONE":return new ms;case"null":return new ms;case"binary":return new Tc;case"largebinary":return new Bc;case"utf8":return new Uc;case"largeutf8":return new jc;case"bool":return new zc;case"list":return new qc((e||[])[0]);case"struct":return new gn(e||[]);case"struct_":return new gn(e||[])}switch(t){case"int":{const s=n.type;return new no(s.isSigned,s.bitWidth)}case"floatingpoint":{const s=n.type;return new Nc(ln[s.precision])}case"decimal":{const s=n.type;return new $c(s.scale,s.precision,s.bitWidth)}case"date":{const s=n.type;return new Vc(sr[s.unit])}case"time":{const s=n.type;return new Hc(Ee[s.unit],s.bitWidth)}case"timestamp":{const s=n.type;return new Wc(Ee[s.unit],s.timezone)}case"interval":{const s=n.type;return new Qc(Yr[s.unit])}case"duration":{const s=n.type;return new Kc(Ee[s.unit])}case"union":{const s=n.type,[a,...u]=(s.mode+"").toLowerCase(),d=a.toUpperCase()+u.join("");return new Yc(kn[d],s.typeIds||[],e||[])}case"fixedsizebinary":{const s=n.type;return new Gc(s.byteWidth)}case"fixedsizelist":{const s=n.type;return new Jc(s.listSize,(e||[])[0])}case"map":{const s=n.type;return new Xc((e||[])[0],s.keysSorted)}}throw new Error(`Unrecognized type: "${t}"`)}var zD=W0,$D=ma;class Ir{static fromJSON(e,t){const s=new Ir(0,Ut.V5,t);return s._createHeader=VD(e,t),s}static decode(e){e=new $D(qe(e));const t=Yi.getRootAsMessage(e),s=t.bodyLength(),a=t.version(),u=t.headerType(),d=new Ir(s,a,u);return d._createHeader=HD(t,u),d}static encode(e){const t=new zD;let s=-1;return e.isSchema()?s=it.encode(t,e.header()):e.isRecordBatch()?s=xr.encode(t,e.header()):e.isDictionaryBatch()&&(s=_i.encode(t,e.header())),Yi.startMessage(t),Yi.addVersion(t,Ut.V5),Yi.addHeader(t,s),Yi.addHeaderType(t,e.headerType),Yi.addBodyLength(t,BigInt(e.bodyLength)),Yi.finishMessageBuffer(t,Yi.endMessage(t)),t.asUint8Array()}static from(e,t=0){if(e instanceof it)return new Ir(0,Ut.V5,rt.Schema,e);if(e instanceof xr)return new Ir(t,Ut.V5,rt.RecordBatch,e);if(e instanceof _i)return new Ir(t,Ut.V5,rt.DictionaryBatch,e);throw new Error(`Unrecognized Message header: ${e}`)}get type(){return this.headerType}get version(){return this._version}get headerType(){return this._headerType}get bodyLength(){return this._bodyLength}header(){return this._createHeader()}isSchema(){return this.headerType===rt.Schema}isRecordBatch(){return this.headerType===rt.RecordBatch}isDictionaryBatch(){return this.headerType===rt.DictionaryBatch}constructor(e,t,s,a){this._version=t,this._headerType=s,this.body=new Uint8Array(0),a&&(this._createHeader=()=>a),this._bodyLength=xt(e)}}class xr{get nodes(){return this._nodes}get length(){return this._length}get buffers(){return this._buffers}constructor(e,t,s){this._nodes=t,this._buffers=s,this._length=xt(e)}}class _i{get id(){return this._id}get data(){return this._data}get isDelta(){return this._isDelta}get length(){return this.data.length}get nodes(){return this.data.nodes}get buffers(){return this.data.buffers}constructor(e,t,s=!1){this._data=e,this._isDelta=s,this._id=xt(t)}}class vi{constructor(e,t){this.offset=xt(e),this.length=xt(t)}}class Ia{constructor(e,t){this.length=xt(e),this.nullCount=xt(t)}}function VD(n,e){return()=>{switch(e){case rt.Schema:return it.fromJSON(n);case rt.RecordBatch:return xr.fromJSON(n);case rt.DictionaryBatch:return _i.fromJSON(n)}throw new Error(`Unrecognized Message type: { name: ${rt[e]}, type: ${e} }`)}}function HD(n,e){return()=>{switch(e){case rt.Schema:return it.decode(n.header(new Tr),new Map,n.version());case rt.RecordBatch:return xr.decode(n.header(new ci),n.version());case rt.DictionaryBatch:return _i.decode(n.header(new jo),n.version())}throw new Error(`Unrecognized Message type: { name: ${rt[e]}, type: ${e} }`)}}Dt.encode=tC;Dt.decode=ZD;Dt.fromJSON=jD;it.encode=eC;it.decode=WD;it.fromJSON=ND;xr.encode=nC;xr.decode=QD;xr.fromJSON=FS;_i.encode=rC;_i.decode=KD;_i.fromJSON=TD;Ia.encode=iC;Ia.decode=YD;vi.encode=sC;vi.decode=qD;function WD(n,e=new Map,t=Ut.V5){const s=XD(n,e);return new it(s,Cc(n),e,t)}function QD(n,e=Ut.V5){if(n.compression()!==null)throw new Error("Record batch compression not implemented");return new xr(n.length(),GD(n),JD(n,e))}function KD(n,e=Ut.V5){return new _i(xr.decode(n.data(),e),n.id(),n.isDelta())}function qD(n){return new vi(n.offset(),n.length())}function YD(n){return new Ia(n.length(),n.nullCount())}function GD(n){const e=[];for(let t,s=-1,a=-1,u=n.nodesLength();++s<u;)(t=n.nodes(s))&&(e[++a]=Ia.decode(t));return e}function JD(n,e){const t=[];for(let s,a=-1,u=-1,d=n.buffersLength();++a<d;)(s=n.buffers(a))&&(e<Ut.V4&&(s.bb_pos+=8*(a+1)),t[++u]=vi.decode(s));return t}function XD(n,e){const t=[];for(let s,a=-1,u=-1,d=n.fieldsLength();++a<d;)(s=n.fields(a))&&(t[++u]=Dt.decode(s,e));return t}function wv(n,e){const t=[];for(let s,a=-1,u=-1,d=n.childrenLength();++a<d;)(s=n.children(a))&&(t[++u]=Dt.decode(s,e));return t}function ZD(n,e){let t,s,a,u,d,f;return!e||!(f=n.dictionary())?(a=_v(n,wv(n,e)),s=new Dt(n.name(),a,n.nullable(),Cc(n))):e.has(t=xt(f.id()))?(u=(u=f.indexType())?Sv(u):new Tl,d=new ga(e.get(t),u,t,f.isOrdered()),s=new Dt(n.name(),d,n.nullable(),Cc(n))):(u=(u=f.indexType())?Sv(u):new Tl,e.set(t,a=_v(n,wv(n,e))),d=new ga(a,u,t,f.isOrdered()),s=new Dt(n.name(),d,n.nullable(),Cc(n))),s||null}function Cc(n){const e=new Map;if(n)for(let t,s,a=-1,u=Math.trunc(n.customMetadataLength());++a<u;)(t=n.customMetadata(a))&&(s=t.key())!=null&&e.set(s,t.value());return e}function Sv(n){return new no(n.isSigned(),n.bitWidth())}function _v(n,e){const t=n.typeType();switch(t){case St.NONE:return new ms;case St.Null:return new ms;case St.Binary:return new Tc;case St.LargeBinary:return new Bc;case St.Utf8:return new Uc;case St.LargeUtf8:return new jc;case St.Bool:return new zc;case St.List:return new qc((e||[])[0]);case St.Struct_:return new gn(e||[])}switch(t){case St.Int:{const s=n.type(new $n);return new no(s.isSigned(),s.bitWidth())}case St.FloatingPoint:{const s=n.type(new Vr);return new Nc(s.precision())}case St.Decimal:{const s=n.type(new $o);return new $c(s.scale(),s.precision(),s.bitWidth())}case St.Date:{const s=n.type(new Sc);return new Vc(s.unit())}case St.Time:{const s=n.type(new tr);return new Hc(s.unit(),s.bitWidth())}case St.Timestamp:{const s=n.type(new nr);return new Wc(s.unit(),s.timezone())}case St.Interval:{const s=n.type(new Hr);return new Qc(s.unit())}case St.Duration:{const s=n.type(new _c);return new Kc(s.unit())}case St.Union:{const s=n.type(new An);return new Yc(s.mode(),s.typeIdsArray()||[],e||[])}case St.FixedSizeBinary:{const s=n.type(new bc);return new Gc(s.byteWidth())}case St.FixedSizeList:{const s=n.type(new Ic);return new Jc(s.listSize(),(e||[])[0])}case St.Map:{const s=n.type(new Ec);return new Xc((e||[])[0],s.keysSorted())}}throw new Error(`Unrecognized type: "${St[t]}" (${t})`)}function eC(n,e){const t=e.fields.map(u=>Dt.encode(n,u));Tr.startFieldsVector(n,t.length);const s=Tr.createFieldsVector(n,t),a=e.metadata&&e.metadata.size>0?Tr.createCustomMetadataVector(n,[...e.metadata].map(([u,d])=>{const f=n.createString(`${u}`),p=n.createString(`${d}`);return Wt.startKeyValue(n),Wt.addKey(n,f),Wt.addValue(n,p),Wt.endKeyValue(n)})):-1;return Tr.startSchema(n),Tr.addFields(n,s),Tr.addEndianness(n,oC?ya.Little:ya.Big),a!==-1&&Tr.addCustomMetadata(n,a),Tr.endSchema(n)}function tC(n,e){let t=-1,s=-1,a=-1;const u=e.type;let d=e.typeId;fe.isDictionary(u)?(d=u.dictionary.typeId,a=yh.visit(u,n),s=yh.visit(u.dictionary,n)):s=yh.visit(u,n);const f=(u.children||[]).map(g=>Dt.encode(n,g)),p=Gn.createChildrenVector(n,f),m=e.metadata&&e.metadata.size>0?Gn.createCustomMetadataVector(n,[...e.metadata].map(([g,v])=>{const S=n.createString(`${g}`),E=n.createString(`${v}`);return Wt.startKeyValue(n),Wt.addKey(n,S),Wt.addValue(n,E),Wt.endKeyValue(n)})):-1;return e.name&&(t=n.createString(e.name)),Gn.startField(n),Gn.addType(n,s),Gn.addTypeType(n,d),Gn.addChildren(n,p),Gn.addNullable(n,!!e.nullable),t!==-1&&Gn.addName(n,t),a!==-1&&Gn.addDictionary(n,a),m!==-1&&Gn.addCustomMetadata(n,m),Gn.endField(n)}function nC(n,e){const t=e.nodes||[],s=e.buffers||[];ci.startNodesVector(n,t.length);for(const d of t.slice().reverse())Ia.encode(n,d);const a=n.endVector();ci.startBuffersVector(n,s.length);for(const d of s.slice().reverse())vi.encode(n,d);const u=n.endVector();return ci.startRecordBatch(n),ci.addLength(n,BigInt(e.length)),ci.addNodes(n,a),ci.addBuffers(n,u),ci.endRecordBatch(n)}function rC(n,e){const t=xr.encode(n,e.data);return jo.startDictionaryBatch(n),jo.addId(n,BigInt(e.id)),jo.addIsDelta(n,e.isDelta),jo.addData(n,t),jo.endDictionaryBatch(n)}function iC(n,e){return q0.createFieldNode(n,BigInt(e.length),BigInt(e.nullCount))}function sC(n,e){return K0.createBuffer(n,BigInt(e.offset),BigInt(e.length))}const oC=(()=>{const n=new ArrayBuffer(2);return new DataView(n).setInt16(0,256,!0),new Int16Array(n)[0]===256})(),Mp=n=>`Expected ${rt[n]} Message in stream, but was null or length 0.`,Lp=n=>`Header pointer of flatbuffer-encoded ${rt[n]} Message is null or length 0.`,LS=(n,e)=>`Expected to read ${n} metadata bytes, but only read ${e}.`,AS=(n,e)=>`Expected to read ${n} bytes for message body, but only read ${e}.`;class kS{constructor(e){this.source=e instanceof nd?e:new nd(e)}[Symbol.iterator](){return this}next(){let e;return(e=this.readMetadataLength()).done||e.value===-1&&(e=this.readMetadataLength()).done||(e=this.readMetadata(e.value)).done?Lt:e}throw(e){return this.source.throw(e)}return(e){return this.source.return(e)}readMessage(e){let t;if((t=this.next()).done)return null;if(e!=null&&t.value.headerType!==e)throw new Error(Mp(e));return t.value}readMessageBody(e){if(e<=0)return new Uint8Array(0);const t=qe(this.source.read(e));if(t.byteLength<e)throw new Error(AS(e,t.byteLength));return t.byteOffset%8===0&&t.byteOffset+t.byteLength<=t.buffer.byteLength?t:t.slice()}readSchema(e=!1){const t=rt.Schema,s=this.readMessage(t),a=s==null?void 0:s.header();if(e&&!a)throw new Error(Lp(t));return a}readMetadataLength(){const e=this.source.read(md),t=e&&new ma(e),s=(t==null?void 0:t.readInt32(0))||0;return{done:s===0,value:s}}readMetadata(e){const t=this.source.read(e);if(!t)return Lt;if(t.byteLength<e)throw new Error(LS(e,t.byteLength));return{done:!1,value:Ir.decode(t)}}}class aC{constructor(e,t){this.source=e instanceof wa?e:U0(e)?new rd(e,t):new wa(e)}[Symbol.asyncIterator](){return this}next(){return ke(this,void 0,void 0,function*(){let e;return(e=yield this.readMetadataLength()).done||e.value===-1&&(e=yield this.readMetadataLength()).done||(e=yield this.readMetadata(e.value)).done?Lt:e})}throw(e){return ke(this,void 0,void 0,function*(){return yield this.source.throw(e)})}return(e){return ke(this,void 0,void 0,function*(){return yield this.source.return(e)})}readMessage(e){return ke(this,void 0,void 0,function*(){let t;if((t=yield this.next()).done)return null;if(e!=null&&t.value.headerType!==e)throw new Error(Mp(e));return t.value})}readMessageBody(e){return ke(this,void 0,void 0,function*(){if(e<=0)return new Uint8Array(0);const t=qe(yield this.source.read(e));if(t.byteLength<e)throw new Error(AS(e,t.byteLength));return t.byteOffset%8===0&&t.byteOffset+t.byteLength<=t.buffer.byteLength?t:t.slice()})}readSchema(){return ke(this,arguments,void 0,function*(e=!1){const t=rt.Schema,s=yield this.readMessage(t),a=s==null?void 0:s.header();if(e&&!a)throw new Error(Lp(t));return a})}readMetadataLength(){return ke(this,void 0,void 0,function*(){const e=yield this.source.read(md),t=e&&new ma(e),s=(t==null?void 0:t.readInt32(0))||0;return{done:s===0,value:s}})}readMetadata(e){return ke(this,void 0,void 0,function*(){const t=yield this.source.read(e);if(!t)return Lt;if(t.byteLength<e)throw new Error(LS(e,t.byteLength));return{done:!1,value:Ir.decode(t)}})}}class lC extends kS{constructor(e){super(new Uint8Array(0)),this._schema=!1,this._body=[],this._batchIndex=0,this._dictionaryIndex=0,this._json=e instanceof hv?e:new hv(e)}next(){const{_json:e}=this;if(!this._schema)return this._schema=!0,{done:!1,value:Ir.fromJSON(e.schema,rt.Schema)};if(this._dictionaryIndex<e.dictionaries.length){const t=e.dictionaries[this._dictionaryIndex++];return this._body=t.data.columns,{done:!1,value:Ir.fromJSON(t,rt.DictionaryBatch)}}if(this._batchIndex<e.batches.length){const t=e.batches[this._batchIndex++];return this._body=t.columns,{done:!1,value:Ir.fromJSON(t,rt.RecordBatch)}}return this._body=[],Lt}readMessageBody(e){return t(this._body);function t(s){return(s||[]).reduce((a,u)=>[...a,...u.VALIDITY&&[u.VALIDITY]||[],...u.TYPE_ID&&[u.TYPE_ID]||[],...u.OFFSET&&[u.OFFSET]||[],...u.DATA&&[u.DATA]||[],...t(u.children)],[])}}readMessage(e){let t;if((t=this.next()).done)return null;if(e!=null&&t.value.headerType!==e)throw new Error(Mp(e));return t.value}readSchema(){const e=rt.Schema,t=this.readMessage(e),s=t==null?void 0:t.header();if(!t||!s)throw new Error(Lp(e));return s}}const md=4,Yh="ARROW1",id=new Uint8Array(Yh.length);for(let n=0;n<Yh.length;n+=1)id[n]=Yh.codePointAt(n);function Ap(n,e=0){for(let t=-1,s=id.length;++t<s;)if(id[t]!==n[e+t])return!1;return!0}const ql=id.length,PS=ql+md,uC=ql*2+md;class wi extends bS{constructor(e){super(),this._impl=e}get closed(){return this._impl.closed}get schema(){return this._impl.schema}get autoDestroy(){return this._impl.autoDestroy}get dictionaries(){return this._impl.dictionaries}get numDictionaries(){return this._impl.numDictionaries}get numRecordBatches(){return this._impl.numRecordBatches}get footer(){return this._impl.isFile()?this._impl.footer:null}isSync(){return this._impl.isSync()}isAsync(){return this._impl.isAsync()}isFile(){return this._impl.isFile()}isStream(){return this._impl.isStream()}next(){return this._impl.next()}throw(e){return this._impl.throw(e)}return(e){return this._impl.return(e)}cancel(){return this._impl.cancel()}reset(e){return this._impl.reset(e),this._DOMStream=void 0,this._nodeStream=void 0,this}open(e){const t=this._impl.open(e);return Al(t)?t.then(()=>this):this}readRecordBatch(e){return this._impl.isFile()?this._impl.readRecordBatch(e):null}[Symbol.iterator](){return this._impl[Symbol.iterator]()}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}toDOMStream(){return er.toDOMStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this})}toNodeStream(){return er.toNodeStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this},{objectMode:!0})}static throughNode(e){throw new Error('"throughNode" not available in this environment')}static throughDOM(e,t){throw new Error('"throughDOM" not available in this environment')}static from(e){return e instanceof wi?e:Th(e)?hC(e):U0(e)?yC(e):Al(e)?ke(this,void 0,void 0,function*(){return yield wi.from(yield e)}):j0(e)||mp(e)||$0(e)||pp(e)?mC(new wa(e)):pC(new nd(e))}static readAll(e){return e instanceof wi?e.isSync()?bv(e):Iv(e):Th(e)||ArrayBuffer.isView(e)||fd(e)||B0(e)?bv(e):Iv(e)}}class sd extends wi{constructor(e){super(e),this._impl=e}readAll(){return[...this]}[Symbol.iterator](){return this._impl[Symbol.iterator]()}[Symbol.asyncIterator](){return Wr(this,arguments,function*(){yield Te(yield*wc(Xo(this[Symbol.iterator]())))})}}class od extends wi{constructor(e){super(e),this._impl=e}readAll(){return ke(this,void 0,void 0,function*(){var e,t,s,a;const u=new Array;try{for(var d=!0,f=Xo(this),p;p=yield f.next(),e=p.done,!e;d=!0){a=p.value,d=!1;const m=a;u.push(m)}}catch(m){t={error:m}}finally{try{!d&&!e&&(s=f.return)&&(yield s.call(f))}finally{if(t)throw t.error}}return u})}[Symbol.iterator](){throw new Error("AsyncRecordBatchStreamReader is not Iterable")}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}}class NS extends sd{constructor(e){super(e),this._impl=e}}class cC extends od{constructor(e){super(e),this._impl=e}}class TS{get numDictionaries(){return this._dictionaryIndex}get numRecordBatches(){return this._recordBatchIndex}constructor(e=new Map){this.closed=!1,this.autoDestroy=!0,this._dictionaryIndex=0,this._recordBatchIndex=0,this.dictionaries=e}isSync(){return!1}isAsync(){return!1}isFile(){return!1}isStream(){return!1}reset(e){return this._dictionaryIndex=0,this._recordBatchIndex=0,this.schema=e,this.dictionaries=new Map,this}_loadRecordBatch(e,t){const s=this._loadVectors(e,t,this.schema.fields),a=Ve({type:new gn(this.schema.fields),length:e.length,children:s});return new br(this.schema,a)}_loadDictionaryBatch(e,t){const{id:s,isDelta:a}=e,{dictionaries:u,schema:d}=this,f=u.get(s),p=d.dictionaries.get(s),m=this._loadVectors(e.data,t,[p]);return(f&&a?f.concat(new pt(m)):new pt(m)).memoize()}_loadVectors(e,t,s){return new ES(t,e.nodes,e.buffers,this.dictionaries,this.schema.metadataVersion).visitMany(s)}}class ad extends TS{constructor(e,t){super(t),this._reader=Th(e)?new lC(this._handle=e):new kS(this._handle=e)}isSync(){return!0}isStream(){return!0}[Symbol.iterator](){return this}cancel(){!this.closed&&(this.closed=!0)&&(this.reset()._reader.return(),this._reader=null,this.dictionaries=null)}open(e){return this.closed||(this.autoDestroy=US(this,e),this.schema||(this.schema=this._reader.readSchema())||this.cancel()),this}throw(e){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.throw(e):Lt}return(e){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.return(e):Lt}next(){if(this.closed)return Lt;let e;const{_reader:t}=this;for(;e=this._readNextMessageAndValidate();)if(e.isSchema())this.reset(e.header());else if(e.isRecordBatch()){this._recordBatchIndex++;const s=e.header(),a=t.readMessageBody(e.bodyLength);return{done:!1,value:this._loadRecordBatch(s,a)}}else if(e.isDictionaryBatch()){this._dictionaryIndex++;const s=e.header(),a=t.readMessageBody(e.bodyLength),u=this._loadDictionaryBatch(s,a);this.dictionaries.set(s.id,u)}return this.schema&&this._recordBatchIndex===0?(this._recordBatchIndex++,{done:!1,value:new OS(this.schema)}):this.return()}_readNextMessageAndValidate(e){return this._reader.readMessage(e)}}class ld extends TS{constructor(e,t){super(t),this._reader=new aC(this._handle=e)}isAsync(){return!0}isStream(){return!0}[Symbol.asyncIterator](){return this}cancel(){return ke(this,void 0,void 0,function*(){!this.closed&&(this.closed=!0)&&(yield this.reset()._reader.return(),this._reader=null,this.dictionaries=null)})}open(e){return ke(this,void 0,void 0,function*(){return this.closed||(this.autoDestroy=US(this,e),this.schema||(this.schema=yield this._reader.readSchema())||(yield this.cancel())),this})}throw(e){return ke(this,void 0,void 0,function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.throw(e):Lt})}return(e){return ke(this,void 0,void 0,function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.return(e):Lt})}next(){return ke(this,void 0,void 0,function*(){if(this.closed)return Lt;let e;const{_reader:t}=this;for(;e=yield this._readNextMessageAndValidate();)if(e.isSchema())yield this.reset(e.header());else if(e.isRecordBatch()){this._recordBatchIndex++;const s=e.header(),a=yield t.readMessageBody(e.bodyLength);return{done:!1,value:this._loadRecordBatch(s,a)}}else if(e.isDictionaryBatch()){this._dictionaryIndex++;const s=e.header(),a=yield t.readMessageBody(e.bodyLength),u=this._loadDictionaryBatch(s,a);this.dictionaries.set(s.id,u)}return this.schema&&this._recordBatchIndex===0?(this._recordBatchIndex++,{done:!1,value:new OS(this.schema)}):yield this.return()})}_readNextMessageAndValidate(e){return ke(this,void 0,void 0,function*(){return yield this._reader.readMessage(e)})}}class BS extends ad{get footer(){return this._footer}get numDictionaries(){return this._footer?this._footer.numDictionaries:0}get numRecordBatches(){return this._footer?this._footer.numRecordBatches:0}constructor(e,t){super(e instanceof pv?e:new pv(e),t)}isSync(){return!0}isFile(){return!0}open(e){if(!this.closed&&!this._footer){this.schema=(this._footer=this._readFooter()).schema;for(const t of this._footer.dictionaryBatches())t&&this._readDictionaryBatch(this._dictionaryIndex++)}return super.open(e)}readRecordBatch(e){var t;if(this.closed)return null;this._footer||this.open();const s=(t=this._footer)===null||t===void 0?void 0:t.getRecordBatch(e);if(s&&this._handle.seek(s.offset)){const a=this._reader.readMessage(rt.RecordBatch);if(a!=null&&a.isRecordBatch()){const u=a.header(),d=this._reader.readMessageBody(a.bodyLength);return this._loadRecordBatch(u,d)}}return null}_readDictionaryBatch(e){var t;const s=(t=this._footer)===null||t===void 0?void 0:t.getDictionaryBatch(e);if(s&&this._handle.seek(s.offset)){const a=this._reader.readMessage(rt.DictionaryBatch);if(a!=null&&a.isDictionaryBatch()){const u=a.header(),d=this._reader.readMessageBody(a.bodyLength),f=this._loadDictionaryBatch(u,d);this.dictionaries.set(u.id,f)}}}_readFooter(){const{_handle:e}=this,t=e.size-PS,s=e.readInt32(t),a=e.readAt(t-s,s);return Dp.decode(a)}_readNextMessageAndValidate(e){var t;if(this._footer||this.open(),this._footer&&this._recordBatchIndex<this.numRecordBatches){const s=(t=this._footer)===null||t===void 0?void 0:t.getRecordBatch(this._recordBatchIndex);if(s&&this._handle.seek(s.offset))return this._reader.readMessage(e)}return null}}class dC extends ld{get footer(){return this._footer}get numDictionaries(){return this._footer?this._footer.numDictionaries:0}get numRecordBatches(){return this._footer?this._footer.numRecordBatches:0}constructor(e,...t){const s=typeof t[0]!="number"?t.shift():void 0,a=t[0]instanceof Map?t.shift():void 0;super(e instanceof rd?e:new rd(e,s),a)}isFile(){return!0}isAsync(){return!0}open(e){const t=Object.create(null,{open:{get:()=>super.open}});return ke(this,void 0,void 0,function*(){if(!this.closed&&!this._footer){this.schema=(this._footer=yield this._readFooter()).schema;for(const s of this._footer.dictionaryBatches())s&&(yield this._readDictionaryBatch(this._dictionaryIndex++))}return yield t.open.call(this,e)})}readRecordBatch(e){return ke(this,void 0,void 0,function*(){var t;if(this.closed)return null;this._footer||(yield this.open());const s=(t=this._footer)===null||t===void 0?void 0:t.getRecordBatch(e);if(s&&(yield this._handle.seek(s.offset))){const a=yield this._reader.readMessage(rt.RecordBatch);if(a!=null&&a.isRecordBatch()){const u=a.header(),d=yield this._reader.readMessageBody(a.bodyLength);return this._loadRecordBatch(u,d)}}return null})}_readDictionaryBatch(e){return ke(this,void 0,void 0,function*(){var t;const s=(t=this._footer)===null||t===void 0?void 0:t.getDictionaryBatch(e);if(s&&(yield this._handle.seek(s.offset))){const a=yield this._reader.readMessage(rt.DictionaryBatch);if(a!=null&&a.isDictionaryBatch()){const u=a.header(),d=yield this._reader.readMessageBody(a.bodyLength),f=this._loadDictionaryBatch(u,d);this.dictionaries.set(u.id,f)}}})}_readFooter(){return ke(this,void 0,void 0,function*(){const{_handle:e}=this;e._pending&&(yield e._pending);const t=e.size-PS,s=yield e.readInt32(t),a=yield e.readAt(t-s,s);return Dp.decode(a)})}_readNextMessageAndValidate(e){return ke(this,void 0,void 0,function*(){if(this._footer||(yield this.open()),this._footer&&this._recordBatchIndex<this.numRecordBatches){const t=this._footer.getRecordBatch(this._recordBatchIndex);if(t&&(yield this._handle.seek(t.offset)))return yield this._reader.readMessage(e)}return null})}}class fC extends ad{constructor(e,t){super(e,t)}_loadVectors(e,t,s){return new ED(t,e.nodes,e.buffers,this.dictionaries,this.schema.metadataVersion).visitMany(s)}}function US(n,e){return e&&typeof e.autoDestroy=="boolean"?e.autoDestroy:n.autoDestroy}function*bv(n){const e=wi.from(n);try{if(!e.open({autoDestroy:!1}).closed)do yield e;while(!e.reset().open().closed)}finally{e.cancel()}}function Iv(n){return Wr(this,arguments,function*(){const t=yield Te(wi.from(n));try{if(!(yield Te(t.open({autoDestroy:!1}))).closed)do yield yield Te(t);while(!(yield Te(t.reset().open())).closed)}finally{yield Te(t.cancel())}})}function hC(n){return new sd(new fC(n))}function pC(n){const e=n.peek(ql+7&-8);return e&&e.byteLength>=4?Ap(e)?new NS(new BS(n.read())):new sd(new ad(n)):new sd(new ad(function*(){}()))}function mC(n){return ke(this,void 0,void 0,function*(){const e=yield n.peek(ql+7&-8);return e&&e.byteLength>=4?Ap(e)?new NS(new BS(yield n.read())):new od(new ld(n)):new od(new ld(function(){return Wr(this,arguments,function*(){})}()))})}function yC(n){return ke(this,void 0,void 0,function*(){const{size:e}=yield n.stat(),t=new rd(n,e);return e>=uC&&Ap(yield t.readAt(0,ql+7&-8))?new cC(new dC(t)):new od(new ld(t))})}function jS(n){const e=wi.from(n);return Al(e)?e.then(t=>jS(t)):e.isAsync()?e.readAll().then(t=>new rr(t)):new rr(e.readAll())}async function Tt(n,e){const{url:t,method:s,params:a,data:u,headers:d,credentials:f,mode:p,cache:m}=n,g=Object.keys({...a}).length>0,v=t.replace(/([^:]\/)\/+/g,"$1"),S=new URL(zS(v),window.location.origin);if(g){const E=Object.entries({...a}).reduce((k,[A,T])=>(T!=null&&(k[A]=String(T)),k),{});S.search=new URLSearchParams(E).toString()}return await new Promise((E,k)=>{fetch(S,{method:s,credentials:f,mode:p,cache:m,headers:gC(d),body:vC(u),signal:e==null?void 0:e.signal}).then(async A=>{if(A.status===204)return{ok:!0};const T=A.headers.get("Content-Type");if(en(T))return{ok:!1,message:"Empty response"};if(A.status>=400)try{const G=await A.json();throw G.status=G.status??A.status,G}catch(G){throw{message:A.statusText,...G}}const B=T.includes("text/event-stream"),Z=T.includes("application/json"),V=T.includes("application/vnd.apache.arrow.stream");if(Z)return await A.json();if(V)return await jS(A);if(B){const te=(await A.text()).trim().replace("data: ","").trim();return JSON.parse(te)}}).then(E).catch(k)})}function gC(n){return{"Content-Type":"application/json",...n??{}}}function vC(n){try{return JSON.stringify(n)}catch{return""}}function zS(n="/"){let e=`${Cl(window.__BASE_URL__)?"/":window.__BASE_URL__}/${n}`;for(;e.includes("//");)e=e.replaceAll("//","/");return e}const fc={python:"python",sql:"sql",seed:"seed",external:"external",source:"source"},Nr={editor:"editor",files:"files","data-catalog":"data-catalog",plans:"plans",tests:"tests",audits:"audits",errors:"errors",data:"data",lineage:"lineage"},LO={NUMBER_1:1,NUMBER_2:2,NUMBER_3:3},AO={init:"init",success:"success",fail:"fail"},wC=(n,e)=>Tt({url:"/api/commands/apply",method:"POST",headers:{"Content-Type":"application/json"},data:n},e),SC=(n,e)=>Tt({url:"/api/commands/evaluate",method:"POST",headers:{"Content-Type":"application/json"},data:n},e),_C=(n,e)=>Tt({url:"/api/commands/fetchdf",method:"POST",headers:{"Content-Type":"application/json"},data:n},e),bC=(n,e)=>Tt({url:"/api/commands/render",method:"POST",headers:{"Content-Type":"application/json"},data:n},e),IC=n=>Tt({url:"/api/files",method:"GET"},n),EC=(n,e)=>Tt({url:`/api/files/${n}`,method:"GET"},e),xC=(n,e,t)=>Tt({url:`/api/files/${n}`,method:"POST",headers:{"Content-Type":"application/json"},data:e},t),kO=(n,e)=>Tt({url:`/api/files/${n}`,method:"DELETE"},e),PO=(n,e,t)=>Tt({url:`/api/directories/${n}`,method:"POST",headers:{"Content-Type":"application/json"},data:e},t),NO=(n,e)=>Tt({url:`/api/directories/${n}`,method:"DELETE"},e),DC=(n,e)=>Tt({url:"/api/plan",method:"POST",headers:{"Content-Type":"application/json"},data:n},e),CC=n=>Tt({url:"/api/plan/cancel",method:"POST"},n),OC=n=>Tt({url:"/api/environments",method:"GET"},n),TO=(n,e)=>Tt({url:`/api/environments/${n}`,method:"DELETE"},e),FC=(n,e,t,s)=>Tt({url:`/api/lineage/${n}/${e}`,method:"GET",params:t},s),RC=(n,e)=>Tt({url:`/api/lineage/${n}`,method:"GET"},e),MC=n=>Tt({url:"/api/models",method:"GET"},n),LC=(n,e)=>Tt({url:`/api/models/${n}`,method:"GET"},e),AC=n=>Tt({url:"/api/meta",method:"GET"},n),kC=n=>Tt({url:"/api/modules",method:"GET"},n),PC=(n,e)=>Tt({url:"/api/table_diff",method:"GET",params:n},e),ai=O.lazy(()=>vn(()=>import("./Root-yarU-KP7.js"),[])),NC=O.lazy(()=>vn(()=>import("./Editor-CD1DYOmd.js"),[])),TC=O.lazy(()=>vn(()=>import("./Plan-BHC6Jsvb.js"),[])),BC=O.lazy(()=>vn(()=>import("./Content-DphTMPPH.js"),[])),UC=O.lazy(()=>vn(()=>import("./DataCatalog-DnhHmqO9.js"),[])),jC=O.lazy(()=>vn(()=>import("./Tests-ClEdNkg6.js"),[])),zC=O.lazy(()=>vn(()=>import("./Audits-Jm353fhk.js"),[])),$C=O.lazy(()=>vn(()=>import("./Data-MJRTjiHp.js"),[])),gh=O.lazy(()=>vn(()=>import("./Models-BILTGfK2.js"),[])),VC=O.lazy(()=>vn(()=>import("./Lineage-DDBcnPQX.js"),[])),HC=O.lazy(()=>vn(()=>import("./Errors-CwLLcKXv.js"),[])),WC=O.lazy(()=>vn(()=>import("./Content-BaMgXJRh.js"),[])),vr=O.lazy(()=>vn(()=>import("./Welcome-D2UIox3v.js"),[])),ft={Home:"/",Editor:"/editor",DataCatalog:"/data-catalog",DataCatalogModels:"/data-catalog/models",Data:"/data",Lineage:"/lineage",LineageModels:"/lineage/models",Tests:"/tests",Audits:"/audits",Errors:"/errors",Plan:"/plan",NotFound:"/not-found"},Ev={plan:[Nr.plans]};function QC(n){const e=[{path:"*",element:ud(n.list)?U.jsx(On,{link:ft.Home,message:"Back To Main"}):U.jsx(On,{headline:"Empty"})},{path:ft.Home,element:U.jsx(ai,{})},...[{path:ft.Editor,element:U.jsx(ai,{content:U.jsx(NC,{})})},{path:ft.DataCatalog,element:U.jsx(ai,{content:U.jsx(gh,{route:ft.DataCatalog})}),children:[{index:!0,element:U.jsx(vr,{headline:"Welcome to the Data Catalog",tagline:"Here you can find all the information about the models and their fields."})},{path:"*",element:U.jsx(On,{link:ft.DataCatalog,message:"Back To Data Catalog"})},{path:"models",children:[{index:!0,element:U.jsx(vr,{headline:"Welcome to the Data Catalog",tagline:"Here you can find all the information about the models and their fields."})},{path:"*",element:U.jsx(On,{link:ft.DataCatalog,message:"Back To Data Catalog"})},{path:":modelName",element:U.jsx(O.Suspense,{fallback:U.jsx("div",{className:"flex justify-center items-center w-full h-full",children:U.jsxs(Uo,{className:"inline-block",children:[U.jsx(zs,{className:"w-3 h-3 border border-neutral-10 mr-4"}),U.jsx("h3",{className:"text-md",children:"Loading Content..."})]})}),children:U.jsx(UC,{})})}]}]},{path:ft.Data,element:U.jsx(ai,{content:U.jsx(gh,{route:ft.Data})}),children:[{index:!0,element:U.jsx(vr,{headline:"Welcome to the Data",tagline:"Here you can find all the information about the models and their fields."})},{path:"*",element:U.jsx(On,{link:ft.Data,message:"Back To Data"})},{path:"models",children:[{index:!0,element:U.jsx(vr,{headline:"Welcome to the Data",tagline:"Here you can find all the information about the models and their fields."})},{path:"*",element:U.jsx(On,{link:ft.Data,message:"Back To Data"})},{path:":modelName",element:U.jsx(O.Suspense,{fallback:U.jsx("div",{className:"flex justify-center items-center w-full h-full",children:U.jsxs(Uo,{className:"inline-block",children:[U.jsx(zs,{className:"w-3 h-3 border border-neutral-10 mr-4"}),U.jsx("h3",{className:"text-md",children:"Loading Content..."})]})}),children:U.jsx($C,{})})}]}]},{path:ft.Lineage,element:U.jsx(ai,{content:U.jsx(gh,{route:ft.Lineage})}),children:[{index:!0,element:U.jsx(vr,{headline:"Welcome to the Lineage",tagline:"Here you can find all the information about the models and their fields."})},{path:"*",element:U.jsx(On,{link:ft.Lineage,message:"Back To Lineage"})},{path:"models",children:[{index:!0,element:U.jsx(vr,{headline:"Welcome to the Lineage",tagline:"Here you can find all the information about the models and their fields."})},{path:"*",element:U.jsx(On,{link:ft.Lineage,message:"Back To Lineage"})},{path:":modelName",element:U.jsx(O.Suspense,{fallback:U.jsx("div",{className:"flex justify-center items-center w-full h-full",children:U.jsxs(Uo,{className:"inline-block",children:[U.jsx(zs,{className:"w-3 h-3 border border-neutral-10 mr-4"}),U.jsx("h3",{className:"text-md",children:"Loading Content..."})]})}),children:U.jsx(VC,{})})}]}]},{path:ft.Errors,element:U.jsx(ai,{content:U.jsx(HC,{})}),children:[{index:!0,element:U.jsx(vr,{headline:"Welcome to errors report",tagline:"Here you can see all the errors that occurred."})},{path:"*",element:U.jsx(On,{link:ft.Errors,message:"Back To Errors"})},{path:":id",element:U.jsx(O.Suspense,{fallback:U.jsx("div",{className:"flex justify-center items-center w-full h-full",children:U.jsxs(Uo,{className:"inline-block",children:[U.jsx(zs,{className:"w-3 h-3 border border-neutral-10 mr-4"}),U.jsx("h3",{className:"text-md",children:"Loading Content..."})]})}),children:U.jsx(WC,{})})}]},{path:ft.Plan,element:U.jsx(ai,{content:U.jsx(TC,{})}),children:[{index:!0,element:U.jsx(vr,{headline:"Welcome to plan",tagline:"Here you can run the plan and apply the changes."})},{path:"*",element:U.jsx(On,{link:ft.Plan,message:"Back To Plan"})},{path:"environments",children:[{index:!0,element:U.jsx(vr,{headline:"Welcome to plan",tagline:"Here you can run the plan and apply the changes."})},{path:"*",element:U.jsx(On,{link:ft.Plan,message:"Back To Plan"})},{path:":environmentName",element:U.jsx(O.Suspense,{fallback:U.jsx("div",{className:"flex justify-center items-center w-full h-full",children:U.jsxs(Uo,{className:"inline-block",children:[U.jsx(zs,{className:"w-3 h-3 border border-neutral-10 mr-4"}),U.jsx("h3",{className:"text-md",children:"Loading Content..."})]})}),children:U.jsx(BC,{})})}]}]},{path:ft.Tests,element:U.jsx(ai,{content:U.jsx(jC,{})}),children:[{index:!0,element:U.jsx(vr,{headline:"Welcome to tests report",tagline:"Here you can run tests and see the results."})},{path:"*",element:U.jsx(On,{link:ft.Tests,message:"Back To Tests"})}]},{path:ft.Audits,element:U.jsx(ai,{content:U.jsx(zC,{})}),children:[{index:!0,element:U.jsx(vr,{headline:"Welcome to audits report",tagline:"Here you can run audits and see the results."})},{path:"*",element:U.jsx(On,{link:ft.Audits,message:"Back To Audits"})}]}].filter(t=>{var a;const s=t.path.replace("/","");return en(Ev[s])?n.list.includes(s):(a=Ev[s])==null?void 0:a.some(u=>n.list.includes(u))})].filter(Boolean);return EE(e,{basename:zS()})}const Qt={API:"api",General:"general",RunPlan:"run-plan",ApplyPlan:"apply-plan",CancelPlan:"cancel-plan",Environments:"environments",Models:"models",Fetchdf:"fetchdf",EvaluateModel:"evaluate-model",RenderQuery:"render-query",ColumnLineage:"column-lineage",ModelLineage:"model-lineage",Meta:"meta",Modules:"modules",FileExplorer:"file-explorer",Table:"table",TableDiff:"table-diff",SaveFile:"save-file"},$S=O.createContext({errors:new Set,addError:()=>({removeError:()=>{},error:{}}),removeError:()=>{},clearErrors:()=>{}});function KC({children:n}){const[e,t]=O.useState(new Set);function s(d,f){const p={id:vh(),key:d,status:f.status,timestamp:f.timestamp??Date.now(),message:f.message,description:f.description,type:f.type,origin:f.origin,trigger:f.trigger,stack:f.stack,traceback:f.traceback};return t(m=>new Set(m.add(p))),{removeError:()=>a(p),error:p}}function a(d){t(f=>(f.forEach(p=>{(p===d||p.key===d)&&f.delete(p)}),new Set(f)))}function u(){t(new Set)}return U.jsx($S.Provider,{value:{errors:e,addError:s,removeError:a,clearErrors:u},children:n})}function kp(){return O.useContext($S)}const VS=60*1e3,qC=5*VS,yd=10*VS;function YC(n){return un({queryKey:["/api/modules"],queryFn:kC,enabled:!0},{...n,errorKey:Qt.Modules,trigger:"API -> useApiModules"})}function BO(n){return un({queryKey:["/api/meta"],queryFn:AC,enabled:!0},{...n,errorKey:Qt.Meta,trigger:"API -> useApiMeta"})}function UO(n){return un({queryKey:["/api/models"],queryFn:MC},{...n,errorKey:Qt.Models,trigger:"API -> useApiModels"})}function jO(n,e){return un({queryKey:["/api/models",n],queryFn:async({signal:t})=>await LC(n,{signal:t})},{...e,errorKey:Qt.Models,trigger:"API -> useApiModel"})}function zO(n){return un({queryKey:["/api/files"],queryFn:IC},{...n,errorKey:Qt.FileExplorer,trigger:"API -> useApiFiles"})}function $O(n,e){return un({queryKey:["/api/files",n],queryFn:async({signal:t})=>await EC(n,{signal:t})},{...e,errorKey:Qt.FileExplorer,trigger:"API -> useApiFileByPath"})}function VO(n,e){return un({queryKey:["/api/lineage",n],queryFn:async({signal:t})=>await RC(n,{signal:t})},{...e,errorKey:Qt.ModelLineage,trigger:"API -> useApiModelLineage"})}function HO(n,e,t,s){return un({queryKey:["/api/lineage",n,e],queryFn:async({signal:a})=>await FC(n,e,s,{signal:a})},{...t,errorKey:Qt.ColumnLineage,trigger:"API -> useApiColumnLineage"})}function WO(n){return un({queryKey:["/api/environments"],queryFn:OC},{...n,errorKey:Qt.Environments,trigger:"API -> useApiEnvironments"})}function QO(n){return un({queryKey:["/api/commands/apply"],queryFn:CC},{...n,errorKey:Qt.CancelPlan,trigger:"API -> useApiCancelPlan"})}function KO(n,e,t){return un({queryKey:["/api/plan",n],async queryFn({signal:s}){return await DC({environment:n,plan_dates:e==null?void 0:e.planDates,plan_options:e==null?void 0:e.planOptions,categories:e==null?void 0:e.categories},{signal:s})}},{...t,errorKey:Qt.RunPlan,trigger:"API -> useApiPlanRun"})}function qO(n,e,t){return un({queryKey:["/api/commands/apply",n],async queryFn({signal:s}){return await wC({environment:n,plan_dates:e==null?void 0:e.planDates,plan_options:e==null?void 0:e.planOptions,categories:e==null?void 0:e.categories},{signal:s})}},{...t,errorKey:Qt.ApplyPlan,trigger:"API -> useApiPlanApply"})}function YO(n,e){return un({queryKey:["/api/commands/fetchd"],queryFn:async({signal:t})=>await _C(n,{signal:t})},{...e,errorKey:Qt.Fetchdf,trigger:"API -> useApiFetchdf",delay:yd})}function GO(n,e){return un({queryKey:["/api/commands/render"],queryFn:async({signal:t})=>await bC(n,{signal:t})},{...e,errorKey:Qt.RenderQuery,trigger:"API -> useApiRender",delay:yd})}function JO(n,e){return un({queryKey:["/api/commands/table_diff"],queryFn:async({signal:t})=>await PC(n,{signal:t})},{...e,errorKey:Qt.TableDiff,trigger:"API -> useApiTableDiff",delay:yd})}function XO(n,e){return un({queryKey:["/api/commands/evaluate"],queryFn:async({signal:t})=>await SC(n,{signal:t})},{...e,errorKey:Qt.EvaluateModel,trigger:"API -> useApiEvaluate",delay:yd})}function ZO(n){const{addError:e}=kp();return Db({mutationFn:async({path:t,body:s})=>await xC(t,s),onError(t){e(Qt.SaveFile,t)},async onMutate({path:t}){await n.cancelQueries({queryKey:["/api/files",t]})}})}function un(n,{delay:e=qC,removeTimeoutErrorAfter:t,errorKey:s=Qt.API,trigger:a}){const u=n.queryKey.join(" -> "),d=tp(),{addError:f}=kp(),[p,m]=O.useState(!1);let g,v=function(){console.log(`[REQUEST TIMEOUT] ${u} id: ${String(g)} timed out after ${e}ms`);const{removeError:G}=f(s,{message:"Request timed out",description:`Request ${u} with timeoutId: ${String(g)} timed out after ${e}ms`,timestamp:Date.now(),origin:"useQueryTimeout",trigger:a});m(!0),k(),yn(t)&&setTimeout(()=>G(),t)};function S(){console.log(`[CLEAR TIMEOUT] ${u} id: ${String(g)} at ${Date.now()}`),clearTimeout(g),g=void 0,v=void 0}function E(){g=setTimeout(()=>{v==null||v()},e),console.log(`[START TIMEOUT] ${u} id: ${String(g)} at ${Date.now()}`)}function k(){S(),d.cancelQueries({queryKey:n.queryKey}),console.log(`[REQUEST CANCELED] ${u} at ${Date.now()}`)}function A(V){S(),hc(V)||V.name==="AbortError"?console.log(`[REQUEST ABORTED] ${u} aborted by React Query at ${Date.now()}`):(console.log(`[REQUEST FAILED] ${u} failed at ${Date.now()}`),f(s,V))}function T(){S(),console.log(`[REQUEST COMPLETED] ${u} completed at ${Date.now()}`)}async function B(...V){return E(),n.queryFn(...V)}const Z=xb({gcTime:0,enabled:!1,queryKey:n.queryKey,queryFn:B,meta:{...n.meta,onError:A,onSuccess:T}});return{...Z,refetch:async(...V)=>new Promise(G=>{Z.refetch(...V,{throwOnError:!0}).then(G).catch(te=>te)}),cancel:k,isTimeout:p}}class HS{constructor(e){Ft(this,"_initial");Ft(this,"isModel",!0);en(e)?this._initial=Object.assign({id:vh()}):this._initial=yn(e==null?void 0:e.id)?e:new Proxy(Object.assign(e??{},{id:vh()}),{set(){throw new Error("Cannot change initial file")}})}get initial(){return this._initial}get id(){return this.initial.id}}class xv extends HS{constructor(t=[]){super();Ft(this,"modules",new Set);this.modules=new Set(t)}get list(){return Array.from(this.modules)}get isEmpty(){return this.modules.size===0}get hasErrors(){return this.modules.has(Nr.errors)}get hasEditor(){return this.modules.has(Nr.editor)}get hasFiles(){return this.modules.has(Nr.files)}get hasProjectEditor(){return this.hasEditor&&this.hasFiles}get hasOnlyProjectEditor(){return this.modules.size===2&&this.hasProjectEditor}get hasOnlyDataCatalog(){return this.modules.size===1&&this.hasDataCatalog}get hasProjectEditorAndModule(){return this.modules.size===3&&this.hasProjectEditor&&fs(this.hasErrors)}get hasDataCatalog(){return this.modules.has(Nr["data-catalog"])}get hasPlans(){return this.modules.has(Nr.plans)}get hasOnlyPlans(){return this.modules.size===1&&this.hasPlans}get hasOnlyPlansAndErrors(){return this.modules.size===2&&this.hasPlans&&this.hasErrors}get hasTests(){return this.modules.has(Nr.tests)}get hasAudits(){return this.modules.has(Nr.audits)}get hasData(){return this.modules.has(Nr.data)}get hasLineage(){return this.modules.has(Nr.lineage)}get hasModuleAndErrors(){return this.hasErrors&&(this.modules.size===2||this.modules.size===3&&this.hasProjectEditor)}get hasSingleModule(){return this.modules.size===1}get showModuleNavigation(){return this.isEmpty||this.hasSingleModule||this.hasOnlyProjectEditor||this.hasModuleAndErrors||this.hasOnlyDataCatalog?!1:this.hasProjectEditorAndModule?!0:fs(this.isEmpty)}get showHistoryNavigation(){return this.hasOnlyProjectEditor||this.hasModuleAndErrors||this.hasOnlyDataCatalog?!1:this.hasProjectEditorAndModule||this.hasDataCatalog?!0:fs(this.isEmpty)}get showNavigation(){return this.hasErrors||this.hasPlans||this.showHistoryNavigation}update(t=[]){this.modules=new Set(t)}defaultNavigationRoute(){return this.hasEditor?ft.Editor:this.hasPlans?ft.Plan:this.hasDataCatalog?ft.DataCatalog:ft.NotFound}}class GC extends HS{constructor(t){super(t!=null&&t.isModel?t.initial:{...t,dialect:(t==null?void 0:t.dialect)??"Default",columns:(t==null?void 0:t.columns)??[],details:(t==null?void 0:t.details)??{}});Ft(this,"_details",{});Ft(this,"_detailsIndex","");Ft(this,"name");Ft(this,"fqn");Ft(this,"path");Ft(this,"full_path");Ft(this,"dialect");Ft(this,"type");Ft(this,"columns");Ft(this,"default_catalog");Ft(this,"description");Ft(this,"sql");Ft(this,"definition");Ft(this,"hash");this.name=encodeURI(this.initial.name),this.fqn=encodeURI(this.initial.fqn),this.default_catalog=this.initial.default_catalog,this.path=this.initial.path,this.full_path=this.initial.full_path,this.dialect=this.initial.dialect,this.description=this.initial.description,this.sql=this.initial.sql,this.definition=this.initial.definition,this.columns=this.initial.columns??[],this.type=this.initial.type,this.hash=this.initial.hash,this.details=this.initial.details??{}}get defaultCatalog(){return this.default_catalog}get details(){return this._details}set details(t){const s=[];for(const a of Object.values(t))ud(a)?a.forEach(u=>{s.push(...Object.values(u))}):s.push(a);this._details=t,this._detailsIndex=s.join(" ")}get index(){return[this.displayName,this.path,this.type,...this.columns.map(t=>Object.values(t)).flat(),this._detailsIndex,this.dialect,this.description].filter(Boolean).join(" ").toLowerCase()}get isModelPython(){return this.type===fc.python}get isModelSQL(){return this.type===fc.sql}get isModelSeed(){return this.type===fc.seed}get isModelExternal(){return this.type===fc.external}get displayName(){return decodeURI(this.name)}update(t={}){for(const[s,a]of Object.entries(t))s==="columns"?this.columns=a:s==="details"?this.details=a:s==="name"?this.name=encodeURI(a):s==="fqn"?this.fqn=encodeURI(a):s==="type"?this.type=a:s==="default_catalog"?this.default_catalog=a:s==="description"?this.description=a:s in this&&(this[s]=a)}}const Dv=n=>{let e;const t=new Set,s=(m,g)=>{const v=typeof m=="function"?m(e):m;if(!Object.is(v,e)){const S=e;e=g??(typeof v!="object"||v===null)?v:Object.assign({},e,v),t.forEach(E=>E(e,S))}},a=()=>e,f={setState:s,getState:a,getInitialState:()=>p,subscribe:m=>(t.add(m),()=>t.delete(m))},p=e=n(s,a,f);return f},JC=n=>n?Dv(n):Dv,XC=n=>n;function ZC(n,e=XC){const t=Zs.useSyncExternalStore(n.subscribe,()=>e(n.getState()),()=>e(n.getInitialState()));return Zs.useDebugValue(t),t}const Cv=n=>{const e=JC(n),t=s=>ZC(e,s);return Object.assign(t,e),t},eO=n=>n?Cv(n):Cv,yl={Empty:"",Prod:"prod"},gi={Local:"local",Remote:"remote"},[Ov,tO]=Yv("profile");class an{constructor(e,t,s=yl.Prod,a=!1,u=!1){Ft(this,"_initial");Ft(this,"_type");Ft(this,"_createFrom");Ft(this,"_isPinned",!1);Ft(this,"_isDefault",!1);Ft(this,"isModel",!0);this._initial=e,this._type=t??gi.Local,this._createFrom=this._isDefault?yl.Empty:s,this._isPinned=a,this._isDefault=u}get id(){return this._initial.plan_id??""}get name(){return this._initial.name??yl.Empty}get type(){return this._type}get createFrom(){return this._createFrom}get isProd(){return this.name===yl.Prod}get isDefault(){return this._isDefault}set isDefault(e){this._isDefault=e}get isPinned(){return this._isPinned||this.isDefault||this.isProd}set isPinned(e){this._isPinned=e}get isInitial(){var e;return Cl((e=this._initial)==null?void 0:e.plan_id)}get isLocal(){return this._type===gi.Local}get isRemote(){return this._type===gi.Remote}get isSyncronized(){return this.isRemote&&fs(this.isInitial)}get isInitialProd(){return this.isInitial&&this.isProd}setType(e){this._type=e}setCreatedFrom(e){this._createFrom=e}update(e){this._initial=e}static save({environment:e,environments:t}){const s={};yn(e)&&(s.environment={name:e.name,plan_id:e.id,type:e.type,createFrom:e.createFrom,isPinned:e.isPinned,isDefault:e.isDefault}),yn(t)&&(s.environments=an.getOnlyLocal(t).map(a=>({name:a.name,plan_id:a.id,type:a.type,createFrom:a.createFrom,isPinned:a.isPinned,isDefault:a.isDefault}))),tO(s)}static getOnlyLocal(e=[]){return e.filter(t=>fs(Cl(t.name))&&t.isLocal)}static getOnlyRemote(e=[]){return e.filter(t=>fs(Cl(t.name))&&t.isRemote)}static getEnvironment(){const{environment:e}=Ov()??{};if(en(e))return;const{name:t,plan_id:s,type:a,createFrom:u,isPinned:d,isDefault:f}=e;return new an({name:t,plan_id:s},a,u,d,f)}static getEnvironments(){const e=Ov(),t=new Map;yn(e)&&yn(e.environment)&&t.set(e.environment.name,e.environment),yn(e)&&yn(e.environments)&&e.environments.forEach(a=>t.set(a.name,a));const s=[];return Array.from(t.entries()).forEach(([a,u])=>{s.push(new an({name:a,plan_id:u.plan_id},u.type,u.createFrom,u.isPinned,u.isDefault))}),Kv(s)&&s.push(new an({name:yl.Prod},gi.Local)),s}static sort(e){return e.sort(t=>t.isRemote?-1:1),e}}const Fv="prod",WS=new Set(an.getEnvironments()),Rv=an.getEnvironment()??WS.values().next().value,Mv=eO((n,e)=>({version:void 0,modules:new xv,splitPaneSizes:[20,80],showConfirmation:!1,confirmations:[],environment:Rv,environments:WS,initialStartDate:void 0,initialEndDate:void 0,models:new Map,lastSelectedModel:void 0,setLastSelectedModel(t){n(()=>({lastSelectedModel:t}))},setModules(t){n(()=>({modules:new xv(t.list)}))},isModel(t){return e().models.has(t)},setSplitPaneSizes(t){n(()=>({splitPaneSizes:t}))},setVersion(t){n(()=>({version:t}))},setShowConfirmation(t){n(()=>({showConfirmation:t}))},addConfirmation(t){n(s=>(s.confirmations.push(t),{confirmations:Array.from(s.confirmations)}))},removeConfirmation(){const t=e();t.confirmations.shift(),n(()=>({confirmations:Array.from(t.confirmations)}))},setModels(t=[]){const s=e();n(()=>({models:t.reduce((a,u)=>{const d=new GC(u);let f=s.models.get(d.path)??s.models.get(d.name)??s.models.get(d.fqn);return en(f)?f=d:f.update(u),a.set(f.name,f),a.set(f.fqn,f),a.set(f.path,f),a},new Map)}))},getNextEnvironment(){return e().environments.values().next().value??Rv},isExistingEnvironment(t){const s=e();if(t.isModel)return s.environments.has(t);let a=!1;return s.environments.forEach(u=>{u.name===t&&(a=!0)}),a},setEnvironment(t){n(()=>(an.save({environment:t}),{environment:t}))},addLocalEnvironment(t,s=Fv){n(a=>{if(Cl(t))return a;const u=new an({name:t},gi.Local,s);return a.environments.add(u),a.setEnvironment(u),an.save({environments:Array.from(a.environments)}),{environments:new Set(a.environments)}})},removeLocalEnvironment(t){n(s=>(s.environments.delete(t),an.save({environments:Array.from(s.environments)}),{environments:new Set(s.environments)}))},addRemoteEnvironments(t=[],s,a=[]){n(u=>{const d=Array.from(u.environments);t.forEach(E=>{let k=d.find(({name:A})=>E.name===A);en(k)?(k=new an(E,gi.Remote),d.push(k)):(k.update(E),k.setType(gi.Remote)),u.environment.name===E.name&&u.environment.update(E),k.isInitial&&k.isDefault&&u.setEnvironment(k)}),a.forEach(E=>{const k=d.find(({name:A})=>E===A);en(k)?d.push(new an({name:E},gi.Local,void 0,!0)):k.isPinned=!0});const f=an.getEnvironment();let p,m,g;d.forEach(E=>{switch(E.name){case Fv:p=E;break;case(f==null?void 0:f.name):m=E;break;case s:E.isDefault=!0,g=E}});const v=u.environment??m??g,S=N1(p==null?void 0:p.isInitial)?p:v;return an.save({environments:d,environment:S}),an.sort(d),{environment:S,environments:new Set(d)}})},hasRemoteEnvironments(){const t=e();return Array.from(t.environments).some(({type:s})=>s===gi.Remote)}}));function Lv({children:n,className:e}){return U.jsx("div",{className:Kr("flex justify-center items-center w-full h-full",e),children:U.jsxs(Uo,{className:"inline-block",children:[U.jsx(zs,{className:"w-3 h-3 border border-neutral-10 mr-4"}),U.jsx("h3",{className:"text-md",children:n})]})})}const QS=!!(window.__IS_HEADLESS__??!1),Av=QS?void 0:O.lazy(()=>vn(()=>import("./Header-dh7a7qX-.js"),[])),kv=QS?void 0:O.lazy(()=>vn(()=>import("./Footer-BeDVe5W7.js"),[]));function nO(){const{addError:n}=kp(),e=Mv(f=>f.modules),t=Mv(f=>f.setModules),{refetch:s,cancel:a,isFetching:u}=YC();O.useEffect(()=>(s().then(({data:f})=>{e.update(f),t(e)}).catch(f=>n(Qt.Modules,f)),()=>{a()}),[]);const d=QC(e);return U.jsxs(U.Fragment,{children:[yn(Av)&&U.jsxs(U.Fragment,{children:[U.jsx(Av,{}),U.jsx(Kg,{})]}),U.jsx("main",{className:"h-full overflow-hidden relative",children:u?U.jsx(Lv,{className:"absolute w-full h-full bg-theme z-10",children:"Building Modules..."}):U.jsx(O.Suspense,{fallback:U.jsx(Lv,{children:"Loading Page..."}),children:ud(e.list)?U.jsx(XI,{router:d}):U.jsx(On,{description:"No Modules Found"})})}),yn(kv)&&U.jsxs(U.Fragment,{children:[U.jsx(Kg,{}),U.jsx(kv,{})]})]})}const rO=new lb({queryCache:new o0({onError(n,e){e.meta.onError(n)},onSuccess(n,e){e.meta.onSuccess()}}),defaultOptions:{queries:{networkMode:"always",refetchOnWindowFocus:!1,retry:!1,staleTime:1/0}}});K1.createRoot(iO()).render(U.jsx(Zs.StrictMode,{children:U.jsx(hb,{client:rO,children:U.jsx(j1,{children:U.jsx(KC,{children:U.jsx(nO,{})})})})}));function iO(){const n="root";let e=document.getElementById(n);if(yn(e))return e;const t=document.body,s=t.children[0];return e=document.createElement("div"),e.id=n,e.className="h-full w-full flex flex-col justify-start",s instanceof HTMLElement?t.insertBefore(e,s):t.appendChild(e),e}export{HS as $,AO as A,OO as B,lO as C,Kv as D,To as E,Qt as F,N0 as G,Kg as H,Cl as I,LO as J,yO as K,Uo as L,an as M,CE as N,EO as O,pO as P,IO as Q,Zs as R,zs as S,VE as T,On as U,SO as V,cO as W,T0 as X,CO as Y,TO as Z,vn as _,Mv as a,eO as a0,Wv as a1,Qv as a2,jO as a3,hO as a4,GO as a5,XO as a6,Lv as a7,wO as a8,uO as a9,DO as aA,VO as aB,T1 as aa,PO as ab,xC as ac,kO as ad,NO as ae,JO as af,YO as ag,_C as ah,oO as ai,Gh as aj,vO as ak,xO as al,tp as am,$O as an,ZO as ao,gO as ap,dO as aq,HO as ar,fc as as,aO as at,qg as au,FO as av,RO as aw,H1 as ax,Yv as ay,vh as az,fs as b,Kr as c,kp as d,ft as e,N1 as f,ud as g,WO as h,yn as i,U as j,KO as k,Nt as l,ht as m,fO as n,qO as o,QO as p,mO as q,O as r,AI as s,UO as t,_O as u,en as v,zS as w,io as x,BO as y,zO as z};
|