sqlmesh 0.181.2.dev20__py3-none-any.whl → 0.181.2.dev22__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.
Files changed (51) hide show
  1. sqlmesh/_version.py +2 -2
  2. {sqlmesh-0.181.2.dev20.dist-info → sqlmesh-0.181.2.dev22.dist-info}/METADATA +1 -1
  3. {sqlmesh-0.181.2.dev20.dist-info → sqlmesh-0.181.2.dev22.dist-info}/RECORD +49 -49
  4. web/client/dist/assets/{Audits--i7rYGSa.js → Audits-BZWk3jlL.js} +1 -1
  5. web/client/dist/assets/{Banner-DF5cAYB3.js → Banner-OvD39mOq.js} +1 -1
  6. web/client/dist/assets/{ChevronDownIcon-_pxKYWw3.js → ChevronDownIcon-BqleRn_G.js} +1 -1
  7. web/client/dist/assets/{ChevronRightIcon-CefdPe7l.js → ChevronRightIcon-CXKkTIzW.js} +1 -1
  8. web/client/dist/assets/{Content-CTSG98TE.js → Content-COW0vEIQ.js} +1 -1
  9. web/client/dist/assets/{Content-DP0RBcBf.js → Content-CkK8L7V3.js} +1 -1
  10. web/client/dist/assets/{Data-C_D2LPey.js → Data-CQQQmeF1.js} +1 -1
  11. web/client/dist/assets/{DataCatalog-C6QIcOlP.js → DataCatalog-iRjvB2C3.js} +1 -1
  12. web/client/dist/assets/{Editor-DmDOoKYg.js → Editor-BLhCfpzx.js} +1 -1
  13. web/client/dist/assets/{Editor-DJCE_ntM.js → Editor-DKqRG32p.js} +1 -1
  14. web/client/dist/assets/{Errors-B0nrU2iZ.js → Errors-x-oFeSch.js} +1 -1
  15. web/client/dist/assets/{FileExplorer-oDv7Eqdg.js → FileExplorer-gjDFmLLh.js} +1 -1
  16. web/client/dist/assets/{Footer-BKOrdgAB.js → Footer-CfHqR8wm.js} +1 -1
  17. web/client/dist/assets/{Header-BQ_cV1fD.js → Header-sstE4Gqk.js} +1 -1
  18. web/client/dist/assets/{Input-CNRmf1P2.js → Input-A6Hrwz1k.js} +1 -1
  19. web/client/dist/assets/Lineage-CzdZCXc6.js +1 -0
  20. web/client/dist/assets/{ListboxShow-D2SfV_lp.js → ListboxShow-nvacUoI1.js} +1 -1
  21. web/client/dist/assets/{ModelLineage-Chq1txJw.js → ModelLineage-B6geDuI6.js} +1 -1
  22. web/client/dist/assets/{Models-z9CSIay9.js → Models-B1vLawzn.js} +1 -1
  23. web/client/dist/assets/{Page-DNluW_Oq.js → Page-D0nUv5ck.js} +1 -1
  24. web/client/dist/assets/{Plan-BnEsOAVM.js → Plan-Cj_0vc_H.js} +1 -1
  25. web/client/dist/assets/{PlusCircleIcon-C_oR9H28.js → PlusCircleIcon-C2xHHnL-.js} +1 -1
  26. web/client/dist/assets/{ReportErrors-BS1FbDhZ.js → ReportErrors-D88IZz3n.js} +1 -1
  27. web/client/dist/assets/{Root-DGB1oz4_.js → Root-DCNtqbqI.js} +1 -1
  28. web/client/dist/assets/{SearchList-DenwkrNa.js → SearchList-Dltx9F6k.js} +1 -1
  29. web/client/dist/assets/{SelectEnvironment-M4epaYAa.js → SelectEnvironment-CZAVUJhY.js} +1 -1
  30. web/client/dist/assets/{SourceList-DZowh00b.js → SourceList-Diwt0dWW.js} +1 -1
  31. web/client/dist/assets/{SourceListItem-BCR0gsPk.js → SourceListItem-CjW93oYe.js} +1 -1
  32. web/client/dist/assets/{SplitPane-LM6lbO06.js → SplitPane-B-vlCkrS.js} +1 -1
  33. web/client/dist/assets/{Tests-B9FFl0mr.js → Tests-D8lyWcVm.js} +1 -1
  34. web/client/dist/assets/{Welcome-Dp8mGwQ0.js → Welcome-DbFwSigj.js} +1 -1
  35. web/client/dist/assets/{context-CL_HG-xI.js → context-CA-MXfZ6.js} +44 -36
  36. web/client/dist/assets/{context-CdQ7jSjG.js → context-Dvup3XDX.js} +1 -1
  37. web/client/dist/assets/{editor-CFjxlO9u.js → editor-DmJY3IbC.js} +1 -1
  38. web/client/dist/assets/{file-Dc9MV3mO.js → file-DYgUpg8u.js} +1 -1
  39. web/client/dist/assets/{help-DnBhZsmH.js → help-CNdZX-7b.js} +1 -1
  40. web/client/dist/assets/{index-BYdIMlzP.js → index-D-9edHVb.js} +1 -1
  41. web/client/dist/assets/index-L7UJWCGi.js +74 -0
  42. web/client/dist/assets/{plan-BBb6522E.js → plan-Cdj5QED6.js} +1 -1
  43. web/client/dist/assets/{project-DyvofLzB.js → project-BlT_dmGo.js} +1 -1
  44. web/client/dist/assets/{transition-BAtDdXay.js → transition-nHCHMLQ-.js} +1 -1
  45. web/client/dist/index.html +1 -1
  46. web/client/dist/assets/Lineage-Cmw3A5oO.js +0 -1
  47. web/client/dist/assets/index-1Gje0-Tv.js +0 -82
  48. {sqlmesh-0.181.2.dev20.dist-info → sqlmesh-0.181.2.dev22.dist-info}/WHEEL +0 -0
  49. {sqlmesh-0.181.2.dev20.dist-info → sqlmesh-0.181.2.dev22.dist-info}/entry_points.txt +0 -0
  50. {sqlmesh-0.181.2.dev20.dist-info → sqlmesh-0.181.2.dev22.dist-info}/licenses/LICENSE +0 -0
  51. {sqlmesh-0.181.2.dev20.dist-info → sqlmesh-0.181.2.dev22.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,74 @@
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 m1=Object.defineProperty;var Xy=n=>{throw TypeError(n)};var y1=(n,e,t)=>e in n?m1(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var Ct=(n,e,t)=>y1(n,typeof e!="symbol"?e+"":e,t),Xf=(n,e,t)=>e.has(n)||Xy("Cannot "+t);var S=(n,e,t)=>(Xf(n,e,"read from private field"),t?t.call(n):e.get(n)),me=(n,e,t)=>e.has(n)?Xy("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(n):e.set(n,t),ee=(n,e,t,s)=>(Xf(n,e,"write to private field"),s?s.call(n,t):e.set(n,t),t),ke=(n,e,t)=>(Xf(n,e,"access private method"),t);var ac=(n,e,t,s)=>({set _(a){ee(n,e,a,t)},get _(){return S(n,e,s)}});function Pv(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 bO=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Kh(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Zf={exports:{}},hl={},eh={exports:{}},je={};/**
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 Zy;function g1(){if(Zy)return je;Zy=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"),h=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),v=Symbol.iterator;function x(O){return O===null||typeof O!="object"?null:(O=v&&O[v]||O["@@iterator"],typeof O=="function"?O:null)}var D={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},P=Object.assign,M={};function N(O,U,Re){this.props=O,this.context=U,this.refs=M,this.updater=Re||D}N.prototype.isReactComponent={},N.prototype.setState=function(O,U){if(typeof O!="object"&&typeof O!="function"&&O!=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,O,U,"setState")},N.prototype.forceUpdate=function(O){this.updater.enqueueForceUpdate(this,O,"forceUpdate")};function G(){}G.prototype=N.prototype;function W(O,U,Re){this.props=O,this.context=U,this.refs=M,this.updater=Re||D}var K=W.prototype=new G;K.constructor=W,P(K,N.prototype),K.isPureReactComponent=!0;var Y=Array.isArray,pe=Object.prototype.hasOwnProperty,Be={current:null},T={key:!0,ref:!0,__self:!0,__source:!0};function J(O,U,Re){var Le,Ae={},Pe=null,Ke=null;if(U!=null)for(Le in U.ref!==void 0&&(Ke=U.ref),U.key!==void 0&&(Pe=""+U.key),U)pe.call(U,Le)&&!T.hasOwnProperty(Le)&&(Ae[Le]=U[Le]);var qe=arguments.length-2;if(qe===1)Ae.children=Re;else if(1<qe){for(var vt=Array(qe),fn=0;fn<qe;fn++)vt[fn]=arguments[fn+2];Ae.children=vt}if(O&&O.defaultProps)for(Le in qe=O.defaultProps,qe)Ae[Le]===void 0&&(Ae[Le]=qe[Le]);return{$$typeof:n,type:O,key:Pe,ref:Ke,props:Ae,_owner:Be.current}}function de(O,U){return{$$typeof:n,type:O.type,key:U,ref:O.ref,props:O.props,_owner:O._owner}}function te(O){return typeof O=="object"&&O!==null&&O.$$typeof===n}function nt(O){var U={"=":"=0",":":"=2"};return"$"+O.replace(/[=:]/g,function(Re){return U[Re]})}var Ue=/\/+/g;function Xe(O,U){return typeof O=="object"&&O!==null&&O.key!=null?nt(""+O.key):U.toString(36)}function gt(O,U,Re,Le,Ae){var Pe=typeof O;(Pe==="undefined"||Pe==="boolean")&&(O=null);var Ke=!1;if(O===null)Ke=!0;else switch(Pe){case"string":case"number":Ke=!0;break;case"object":switch(O.$$typeof){case n:case e:Ke=!0}}if(Ke)return Ke=O,Ae=Ae(Ke),O=Le===""?"."+Xe(Ke,0):Le,Y(Ae)?(Re="",O!=null&&(Re=O.replace(Ue,"$&/")+"/"),gt(Ae,U,Re,"",function(fn){return fn})):Ae!=null&&(te(Ae)&&(Ae=de(Ae,Re+(!Ae.key||Ke&&Ke.key===Ae.key?"":(""+Ae.key).replace(Ue,"$&/")+"/")+O)),U.push(Ae)),1;if(Ke=0,Le=Le===""?".":Le+":",Y(O))for(var qe=0;qe<O.length;qe++){Pe=O[qe];var vt=Le+Xe(Pe,qe);Ke+=gt(Pe,U,Re,vt,Ae)}else if(vt=x(O),typeof vt=="function")for(O=vt.call(O),qe=0;!(Pe=O.next()).done;)Pe=Pe.value,vt=Le+Xe(Pe,qe++),Ke+=gt(Pe,U,Re,vt,Ae);else if(Pe==="object")throw U=String(O),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(O).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.");return Ke}function kt(O,U,Re){if(O==null)return O;var Le=[],Ae=0;return gt(O,Le,"","",function(Pe){return U.call(Re,Pe,Ae++)}),Le}function Vt(O){if(O._status===-1){var U=O._result;U=U(),U.then(function(Re){(O._status===0||O._status===-1)&&(O._status=1,O._result=Re)},function(Re){(O._status===0||O._status===-1)&&(O._status=2,O._result=Re)}),O._status===-1&&(O._status=0,O._result=U)}if(O._status===1)return O._result.default;throw O._result}var mt={current:null},H={transition:null},he={ReactCurrentDispatcher:mt,ReactCurrentBatchConfig:H,ReactCurrentOwner:Be};function X(){throw Error("act(...) is not supported in production builds of React.")}return je.Children={map:kt,forEach:function(O,U,Re){kt(O,function(){U.apply(this,arguments)},Re)},count:function(O){var U=0;return kt(O,function(){U++}),U},toArray:function(O){return kt(O,function(U){return U})||[]},only:function(O){if(!te(O))throw Error("React.Children.only expected to receive a single React element child.");return O}},je.Component=N,je.Fragment=t,je.Profiler=a,je.PureComponent=W,je.StrictMode=s,je.Suspense=p,je.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=he,je.act=X,je.cloneElement=function(O,U,Re){if(O==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+O+".");var Le=P({},O.props),Ae=O.key,Pe=O.ref,Ke=O._owner;if(U!=null){if(U.ref!==void 0&&(Pe=U.ref,Ke=Be.current),U.key!==void 0&&(Ae=""+U.key),O.type&&O.type.defaultProps)var qe=O.type.defaultProps;for(vt in U)pe.call(U,vt)&&!T.hasOwnProperty(vt)&&(Le[vt]=U[vt]===void 0&&qe!==void 0?qe[vt]:U[vt])}var vt=arguments.length-2;if(vt===1)Le.children=Re;else if(1<vt){qe=Array(vt);for(var fn=0;fn<vt;fn++)qe[fn]=arguments[fn+2];Le.children=qe}return{$$typeof:n,type:O.type,key:Ae,ref:Pe,props:Le,_owner:Ke}},je.createContext=function(O){return O={$$typeof:d,_currentValue:O,_currentValue2:O,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},O.Provider={$$typeof:u,_context:O},O.Consumer=O},je.createElement=J,je.createFactory=function(O){var U=J.bind(null,O);return U.type=O,U},je.createRef=function(){return{current:null}},je.forwardRef=function(O){return{$$typeof:h,render:O}},je.isValidElement=te,je.lazy=function(O){return{$$typeof:g,_payload:{_status:-1,_result:O},_init:Vt}},je.memo=function(O,U){return{$$typeof:y,type:O,compare:U===void 0?null:U}},je.startTransition=function(O){var U=H.transition;H.transition={};try{O()}finally{H.transition=U}},je.unstable_act=X,je.useCallback=function(O,U){return mt.current.useCallback(O,U)},je.useContext=function(O){return mt.current.useContext(O)},je.useDebugValue=function(){},je.useDeferredValue=function(O){return mt.current.useDeferredValue(O)},je.useEffect=function(O,U){return mt.current.useEffect(O,U)},je.useId=function(){return mt.current.useId()},je.useImperativeHandle=function(O,U,Re){return mt.current.useImperativeHandle(O,U,Re)},je.useInsertionEffect=function(O,U){return mt.current.useInsertionEffect(O,U)},je.useLayoutEffect=function(O,U){return mt.current.useLayoutEffect(O,U)},je.useMemo=function(O,U){return mt.current.useMemo(O,U)},je.useReducer=function(O,U,Re){return mt.current.useReducer(O,U,Re)},je.useRef=function(O){return mt.current.useRef(O)},je.useState=function(O){return mt.current.useState(O)},je.useSyncExternalStore=function(O,U,Re){return mt.current.useSyncExternalStore(O,U,Re)},je.useTransition=function(){return mt.current.useTransition()},je.version="18.3.1",je}var eg;function qh(){return eg||(eg=1,eh.exports=g1()),eh.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 tg;function v1(){if(tg)return hl;tg=1;var n=qh(),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(h,p,y){var g,v={},x=null,D=null;y!==void 0&&(x=""+y),p.key!==void 0&&(x=""+p.key),p.ref!==void 0&&(D=p.ref);for(g in p)s.call(p,g)&&!u.hasOwnProperty(g)&&(v[g]=p[g]);if(h&&h.defaultProps)for(g in p=h.defaultProps,p)v[g]===void 0&&(v[g]=p[g]);return{$$typeof:e,type:h,key:x,ref:D,props:v,_owner:a.current}}return hl.Fragment=t,hl.jsx=d,hl.jsxs=d,hl}var ng;function w1(){return ng||(ng=1,Zf.exports=v1()),Zf.exports}var k=w1(),B=qh();const Zs=Kh(B),S1=Pv({__proto__:null,default:Zs},[B]);function _1(n){return n===!0}function ms(n){return n===!1}function IO(n){return nn(n)||ms(n)}function kv(n){return typeof n=="string"}function b1(n){return n===""}function Fl(n){return nn(n)||b1(n)}function EO(n){return kv(n)?n:""}function xO(n){return kv(n)&&n.trim()!==""}function ud(n){return Array.isArray(n)&&n.length>0}function Uv(n){return Array.isArray(n)&&n.length===0}function DO(n){return jv(n)&&Uv(Object.keys(n))}function OO(n){return jv(n)&&ud(Object.keys(n))}function jv(n){return typeof n=="object"&&wn(n)&&n.constructor===Object}function nn(n){return n==null}function wn(n){return n!=null}function CO(n){if(!nn(n))try{const e=new Date(n);return isNaN(e.getTime())?void 0:e}catch{return}}function FO(n,e="yyyy-mm-dd",t=!0){if(nn(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()),h=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}:${h}:${p}`}[e]??n.toDateString();function g(v){return v.toString().padStart(2,"0")}}function RO(n,e){return n.includes(e)}function MO(n,e,t=100){return nn(n)||nn(e)||e===0||isNaN(n)||isNaN(e)||isNaN(t)?0:n/e*t}function I1(n){if(!nn(n))try{return n==="undefined"?void 0:JSON.parse(n??"")}catch{console.log("parsing error on",{value:n});return}}function AO(n,e=500,t=!1){let s;return function(...u){const d=t&&nn(s);clearTimeout(s),s=setTimeout(()=>{s=void 0,ms(t)&&n(...u)},e),d&&n(...u)}}function mh(){const n=new Date().getTime().toString(36),e=Math.random().toString(36).substring(2,8);return n+e}function TO(...n){return n.filter(Boolean).join("__")}function LO(n,e){const t=(Date.now()%1e5).toString(16);return`${nn(n)?"":`${n}_`}${t}${e??""}`.toLowerCase()}function BO(n,e=0,t=5,s="...",a){const u=n.length;return t=Math.abs(t),a=nn(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 th=window.localStorage;function zv(n,e){function t(){try{const u=th.getItem(n);return I1(u)}catch(u){console.log(u)}}function s(u){try{const d=Object.assign({},t(),u);th.setItem(n,JSON.stringify(d))}catch(d){console.log(d)}}function a(){th.removeItem(n)}return[t,s,a]}const Po={Light:"light",Dark:"dark"},E1={mode:Po.Light},Vv=B.createContext(E1);function x1({children:n}){var d;const[e,t]=zv("color-scheme"),s=((d=e())==null?void 0:d.mode)??(window.matchMedia("(prefers-color-scheme: dark)").matches?Po.Dark:Po.Light),[a,u]=B.useState(s);return B.useEffect(()=>{t({mode:a}),document.documentElement.setAttribute("mode",a)},[a]),k.jsx(Vv.Provider,{value:{mode:a,toggleColorScheme(){u(a===Po.Light?Po.Dark:Po.Light)}},children:n})}function NO(){return B.useContext(Vv)}var lc={},nh={exports:{}},Cn={},rh={exports:{}},ih={};/**
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 rg;function D1(){return rg||(rg=1,function(n){function e(H,he){var X=H.length;H.push(he);e:for(;0<X;){var O=X-1>>>1,U=H[O];if(0<a(U,he))H[O]=he,H[X]=U,X=O;else break e}}function t(H){return H.length===0?null:H[0]}function s(H){if(H.length===0)return null;var he=H[0],X=H.pop();if(X!==he){H[0]=X;e:for(var O=0,U=H.length,Re=U>>>1;O<Re;){var Le=2*(O+1)-1,Ae=H[Le],Pe=Le+1,Ke=H[Pe];if(0>a(Ae,X))Pe<U&&0>a(Ke,Ae)?(H[O]=Ke,H[Pe]=X,O=Pe):(H[O]=Ae,H[Le]=X,O=Le);else if(Pe<U&&0>a(Ke,X))H[O]=Ke,H[Pe]=X,O=Pe;else break e}}return he}function a(H,he){var X=H.sortIndex-he.sortIndex;return X!==0?X:H.id-he.id}if(typeof performance=="object"&&typeof performance.now=="function"){var u=performance;n.unstable_now=function(){return u.now()}}else{var d=Date,h=d.now();n.unstable_now=function(){return d.now()-h}}var p=[],y=[],g=1,v=null,x=3,D=!1,P=!1,M=!1,N=typeof setTimeout=="function"?setTimeout:null,G=typeof clearTimeout=="function"?clearTimeout:null,W=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function K(H){for(var he=t(y);he!==null;){if(he.callback===null)s(y);else if(he.startTime<=H)s(y),he.sortIndex=he.expirationTime,e(p,he);else break;he=t(y)}}function Y(H){if(M=!1,K(H),!P)if(t(p)!==null)P=!0,Vt(pe);else{var he=t(y);he!==null&&mt(Y,he.startTime-H)}}function pe(H,he){P=!1,M&&(M=!1,G(J),J=-1),D=!0;var X=x;try{for(K(he),v=t(p);v!==null&&(!(v.expirationTime>he)||H&&!nt());){var O=v.callback;if(typeof O=="function"){v.callback=null,x=v.priorityLevel;var U=O(v.expirationTime<=he);he=n.unstable_now(),typeof U=="function"?v.callback=U:v===t(p)&&s(p),K(he)}else s(p);v=t(p)}if(v!==null)var Re=!0;else{var Le=t(y);Le!==null&&mt(Y,Le.startTime-he),Re=!1}return Re}finally{v=null,x=X,D=!1}}var Be=!1,T=null,J=-1,de=5,te=-1;function nt(){return!(n.unstable_now()-te<de)}function Ue(){if(T!==null){var H=n.unstable_now();te=H;var he=!0;try{he=T(!0,H)}finally{he?Xe():(Be=!1,T=null)}}else Be=!1}var Xe;if(typeof W=="function")Xe=function(){W(Ue)};else if(typeof MessageChannel<"u"){var gt=new MessageChannel,kt=gt.port2;gt.port1.onmessage=Ue,Xe=function(){kt.postMessage(null)}}else Xe=function(){N(Ue,0)};function Vt(H){T=H,Be||(Be=!0,Xe())}function mt(H,he){J=N(function(){H(n.unstable_now())},he)}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(H){H.callback=null},n.unstable_continueExecution=function(){P||D||(P=!0,Vt(pe))},n.unstable_forceFrameRate=function(H){0>H||125<H?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):de=0<H?Math.floor(1e3/H):5},n.unstable_getCurrentPriorityLevel=function(){return x},n.unstable_getFirstCallbackNode=function(){return t(p)},n.unstable_next=function(H){switch(x){case 1:case 2:case 3:var he=3;break;default:he=x}var X=x;x=he;try{return H()}finally{x=X}},n.unstable_pauseExecution=function(){},n.unstable_requestPaint=function(){},n.unstable_runWithPriority=function(H,he){switch(H){case 1:case 2:case 3:case 4:case 5:break;default:H=3}var X=x;x=H;try{return he()}finally{x=X}},n.unstable_scheduleCallback=function(H,he,X){var O=n.unstable_now();switch(typeof X=="object"&&X!==null?(X=X.delay,X=typeof X=="number"&&0<X?O+X:O):X=O,H){case 1:var U=-1;break;case 2:U=250;break;case 5:U=1073741823;break;case 4:U=1e4;break;default:U=5e3}return U=X+U,H={id:g++,callback:he,priorityLevel:H,startTime:X,expirationTime:U,sortIndex:-1},X>O?(H.sortIndex=X,e(y,H),t(p)===null&&H===t(y)&&(M?(G(J),J=-1):M=!0,mt(Y,X-O))):(H.sortIndex=U,e(p,H),P||D||(P=!0,Vt(pe))),H},n.unstable_shouldYield=nt,n.unstable_wrapCallback=function(H){var he=x;return function(){var X=x;x=he;try{return H.apply(this,arguments)}finally{x=X}}}}(ih)),ih}var ig;function O1(){return ig||(ig=1,rh.exports=D1()),rh.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 sg;function C1(){if(sg)return Cn;sg=1;var n=qh(),e=O1();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 h=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),p=Object.prototype.hasOwnProperty,y=/^[: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 x(r){return p.call(v,r)?!0:p.call(g,r)?!1:y.test(r)?v[r]=!0:(g[r]=!0,!1)}function D(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 P(r,i,o,l){if(i===null||typeof i>"u"||D(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 M(r,i,o,l,c,f,m){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=f,this.removeEmptyString=m}var N={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(r){N[r]=new M(r,0,!1,r,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(r){var i=r[0];N[i]=new M(i,1,!1,r[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(r){N[r]=new M(r,2,!1,r.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(r){N[r]=new M(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){N[r]=new M(r,3,!1,r.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(r){N[r]=new M(r,3,!0,r,null,!1,!1)}),["capture","download"].forEach(function(r){N[r]=new M(r,4,!1,r,null,!1,!1)}),["cols","rows","size","span"].forEach(function(r){N[r]=new M(r,6,!1,r,null,!1,!1)}),["rowSpan","start"].forEach(function(r){N[r]=new M(r,5,!1,r.toLowerCase(),null,!1,!1)});var G=/[\-:]([a-z])/g;function W(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(G,W);N[i]=new M(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(G,W);N[i]=new M(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(G,W);N[i]=new M(i,1,!1,r,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(r){N[r]=new M(r,1,!1,r.toLowerCase(),null,!1,!1)}),N.xlinkHref=new M("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(r){N[r]=new M(r,1,!1,r.toLowerCase(),null,!0,!0)});function K(r,i,o,l){var c=N.hasOwnProperty(i)?N[i]:null;(c!==null?c.type!==0:l||!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(P(i,o,c,l)&&(o=null),l||c===null?x(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 Y=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,pe=Symbol.for("react.element"),Be=Symbol.for("react.portal"),T=Symbol.for("react.fragment"),J=Symbol.for("react.strict_mode"),de=Symbol.for("react.profiler"),te=Symbol.for("react.provider"),nt=Symbol.for("react.context"),Ue=Symbol.for("react.forward_ref"),Xe=Symbol.for("react.suspense"),gt=Symbol.for("react.suspense_list"),kt=Symbol.for("react.memo"),Vt=Symbol.for("react.lazy"),mt=Symbol.for("react.offscreen"),H=Symbol.iterator;function he(r){return r===null||typeof r!="object"?null:(r=H&&r[H]||r["@@iterator"],typeof r=="function"?r:null)}var X=Object.assign,O;function U(r){if(O===void 0)try{throw Error()}catch(o){var i=o.stack.trim().match(/\n( *(at )?)/);O=i&&i[1]||""}return`
37
+ `+O+r}var Re=!1;function Le(r,i){if(!r||Re)return"";Re=!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(A){var l=A}Reflect.construct(r,[],i)}else{try{i.call()}catch(A){l=A}r.call(i.prototype)}else{try{throw Error()}catch(A){l=A}r()}}catch(A){if(A&&l&&typeof A.stack=="string"){for(var c=A.stack.split(`
38
+ `),f=l.stack.split(`
39
+ `),m=c.length-1,w=f.length-1;1<=m&&0<=w&&c[m]!==f[w];)w--;for(;1<=m&&0<=w;m--,w--)if(c[m]!==f[w]){if(m!==1||w!==1)do if(m--,w--,0>w||c[m]!==f[w]){var b=`
40
+ `+c[m].replace(" at new "," at ");return r.displayName&&b.includes("<anonymous>")&&(b=b.replace("<anonymous>",r.displayName)),b}while(1<=m&&0<=w);break}}}finally{Re=!1,Error.prepareStackTrace=o}return(r=r?r.displayName||r.name:"")?U(r):""}function Ae(r){switch(r.tag){case 5:return U(r.type);case 16:return U("Lazy");case 13:return U("Suspense");case 19:return U("SuspenseList");case 0:case 2:case 15:return r=Le(r.type,!1),r;case 11:return r=Le(r.type.render,!1),r;case 1:return r=Le(r.type,!0),r;default:return""}}function Pe(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 T:return"Fragment";case Be:return"Portal";case de:return"Profiler";case J:return"StrictMode";case Xe:return"Suspense";case gt:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case nt:return(r.displayName||"Context")+".Consumer";case te:return(r._context.displayName||"Context")+".Provider";case Ue:var i=r.render;return r=r.displayName,r||(r=i.displayName||i.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case kt:return i=r.displayName||null,i!==null?i:Pe(r.type)||"Memo";case Vt:i=r._payload,r=r._init;try{return Pe(r(i))}catch{}}return null}function Ke(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 Pe(i);case 8:return i===J?"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 qe(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 fn(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,f=o.set;return Object.defineProperty(r,i,{configurable:!0,get:function(){return c.call(this)},set:function(m){l=""+m,f.call(this,m)}}),Object.defineProperty(r,i,{enumerable:o.enumerable}),{getValue:function(){return l},setValue:function(m){l=""+m},stopTracking:function(){r._valueTracker=null,delete r[i]}}}}function so(r){r._valueTracker||(r._valueTracker=fn(r))}function Yt(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 sr(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 oo(r,i){var o=i.checked;return X({},i,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:o??r._wrapperState.initialChecked})}function Gl(r,i){var o=i.defaultValue==null?"":i.defaultValue,l=i.checked!=null?i.checked:i.defaultChecked;o=qe(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 xr(r,i){i=i.checked,i!=null&&K(r,"checked",i,!1)}function Da(r,i){xr(r,i);var o=qe(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")?ao(r,i.type,o):i.hasOwnProperty("defaultValue")&&ao(r,i.type,qe(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 ao(r,i,o){(i!=="number"||sr(r.ownerDocument)!==r)&&(o==null?r.defaultValue=""+r._wrapperState.initialValue:r.defaultValue!==""+o&&(r.defaultValue=""+o))}var _s=Array.isArray;function Oi(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=""+qe(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 Oa(r,i){if(i.dangerouslySetInnerHTML!=null)throw Error(t(91));return X({},i,{value:void 0,defaultValue:void 0,children:""+r._wrapperState.initialValue})}function Xl(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(_s(o)){if(1<o.length)throw Error(t(93));o=o[0]}i=o}i==null&&(i=""),o=i}r._wrapperState={initialValue:qe(o)}}function Dr(r,i){var o=qe(i.value),l=qe(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 Ci(r){var i=r.textContent;i===r._wrapperState.initialValue&&i!==""&&i!==null&&(r.value=i)}function Ca(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 bs(r,i){return r==null||r==="http://www.w3.org/1999/xhtml"?Ca(i):r==="http://www.w3.org/2000/svg"&&i==="foreignObject"?"http://www.w3.org/1999/xhtml":r}var Pn,Wn=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(Pn=Pn||document.createElement("div"),Pn.innerHTML="<svg>"+i.valueOf().toString()+"</svg>",i=Pn.firstChild;r.firstChild;)r.removeChild(r.firstChild);for(;i.firstChild;)r.appendChild(i.firstChild)}});function Fi(r,i){if(i){var o=r.firstChild;if(o&&o===r.lastChild&&o.nodeType===3){o.nodeValue=i;return}}r.textContent=i}var Or={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},yd=["Webkit","ms","Moz","O"];Object.keys(Or).forEach(function(r){yd.forEach(function(i){i=i+r.charAt(0).toUpperCase()+r.substring(1),Or[i]=Or[r]})});function or(r,i,o){return i==null||typeof i=="boolean"||i===""?"":o||typeof i!="number"||i===0||Or.hasOwnProperty(r)&&Or[r]?(""+i).trim():i+"px"}function Fa(r,i){r=r.style;for(var o in i)if(i.hasOwnProperty(o)){var l=o.indexOf("--")===0,c=or(o,i[o],l);o==="float"&&(o="cssFloat"),l?r.setProperty(o,c):r[o]=c}}var Zl=X({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 lo(r,i){if(i){if(Zl[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 Ra(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 uo=null;function Ri(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var co=null,Cr=null,Fr=null;function eu(r){if(r=Xa(r)){if(typeof co!="function")throw Error(t(280));var i=r.stateNode;i&&(i=bu(i),co(r.stateNode,r.type,i))}}function Ma(r){Cr?Fr?Fr.push(r):Fr=[r]:Cr=r}function tu(){if(Cr){var r=Cr,i=Fr;if(Fr=Cr=null,eu(r),i)for(r=0;r<i.length;r++)eu(i[r])}}function Aa(r,i){return r(i)}function Is(){}var Mi=!1;function nu(r,i,o){if(Mi)return r(i,o);Mi=!0;try{return Aa(r,i,o)}finally{Mi=!1,(Cr!==null||Fr!==null)&&(Is(),tu())}}function Es(r,i){var o=r.stateNode;if(o===null)return null;var l=bu(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 _=!1;if(h)try{var C={};Object.defineProperty(C,"passive",{get:function(){_=!0}}),window.addEventListener("test",C,C),window.removeEventListener("test",C,C)}catch{_=!1}function L(r,i,o,l,c,f,m,w,b){var A=Array.prototype.slice.call(arguments,3);try{i.apply(o,A)}catch(V){this.onError(V)}}var j=!1,q=null,ce=!1,be=null,se={onError:function(r){j=!0,q=r}};function ae(r,i,o,l,c,f,m,w,b){j=!1,q=null,L.apply(se,arguments)}function ne(r,i,o,l,c,f,m,w,b){if(ae.apply(this,arguments),j){if(j){var A=q;j=!1,q=null}else throw Error(t(198));ce||(ce=!0,be=A)}}function ie(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 Te(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 We(r){if(ie(r)!==r)throw Error(t(188))}function $t(r){var i=r.alternate;if(!i){if(i=ie(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 f=c.alternate;if(f===null){if(l=c.return,l!==null){o=l;continue}break}if(c.child===f.child){for(f=c.child;f;){if(f===o)return We(c),r;if(f===l)return We(c),i;f=f.sibling}throw Error(t(188))}if(o.return!==l.return)o=c,l=f;else{for(var m=!1,w=c.child;w;){if(w===o){m=!0,o=c,l=f;break}if(w===l){m=!0,l=c,o=f;break}w=w.sibling}if(!m){for(w=f.child;w;){if(w===o){m=!0,o=f,l=c;break}if(w===l){m=!0,l=f,o=c;break}w=w.sibling}if(!m)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 at(r){return r=$t(r),r!==null?Ye(r):null}function Ye(r){if(r.tag===5||r.tag===6)return r;for(r=r.child;r!==null;){var i=Ye(r);if(i!==null)return i;r=r.sibling}return null}var bt=e.unstable_scheduleCallback,Gr=e.unstable_cancelCallback,xs=e.unstable_shouldYield,ar=e.unstable_requestPaint,Ze=e.unstable_now,Ta=e.unstable_getCurrentPriorityLevel,Jr=e.unstable_ImmediatePriority,Rr=e.unstable_UserBlockingPriority,Xr=e.unstable_NormalPriority,fo=e.unstable_LowPriority,He=e.unstable_IdlePriority,yt=null,Zt=null;function Ds(r){if(Zt&&typeof Zt.onCommitFiberRoot=="function")try{Zt.onCommitFiberRoot(yt,r,void 0,(r.current.flags&128)===128)}catch{}}var et=Math.clz32?Math.clz32:gd,Ai=Math.log,ru=Math.LN2;function gd(r){return r>>>=0,r===0?32:31-(Ai(r)/ru|0)|0}var iu=64,su=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 ou(r,i){var o=r.pendingLanes;if(o===0)return 0;var l=0,c=r.suspendedLanes,f=r.pingedLanes,m=o&268435455;if(m!==0){var w=m&~c;w!==0?l=La(w):(f&=m,f!==0&&(l=La(f)))}else m=o&~c,m!==0?l=La(m):f!==0&&(l=La(f));if(l===0)return 0;if(i!==0&&i!==l&&(i&c)===0&&(c=l&-l,f=i&-i,c>=f||c===16&&(f&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-et(i),c=1<<o,l|=r[o],i&=~c;return l}function LS(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 BS(r,i){for(var o=r.suspendedLanes,l=r.pingedLanes,c=r.expirationTimes,f=r.pendingLanes;0<f;){var m=31-et(f),w=1<<m,b=c[m];b===-1?((w&o)===0||(w&l)!==0)&&(c[m]=LS(w,i)):b<=i&&(r.expiredLanes|=w),f&=~w}}function vd(r){return r=r.pendingLanes&-1073741825,r!==0?r:r&1073741824?1073741824:0}function Fp(){var r=iu;return iu<<=1,(iu&4194240)===0&&(iu=64),r}function wd(r){for(var i=[],o=0;31>o;o++)i.push(r);return i}function Ba(r,i,o){r.pendingLanes|=i,i!==536870912&&(r.suspendedLanes=0,r.pingedLanes=0),r=r.eventTimes,i=31-et(i),r[i]=o}function NS(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-et(o),f=1<<c;i[c]=0,l[c]=-1,r[c]=-1,o&=~f}}function Sd(r,i){var o=r.entangledLanes|=i;for(r=r.entanglements;o;){var l=31-et(o),c=1<<l;c&i|r[l]&i&&(r[l]|=i),o&=~c}}var lt=0;function Rp(r){return r&=-r,1<r?4<r?(r&268435455)!==0?16:536870912:4:1}var Mp,_d,Ap,Tp,Lp,bd=!1,au=[],Ti=null,Li=null,Bi=null,Na=new Map,Pa=new Map,Ni=[],PS="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 Bp(r,i){switch(r){case"focusin":case"focusout":Ti=null;break;case"dragenter":case"dragleave":Li=null;break;case"mouseover":case"mouseout":Bi=null;break;case"pointerover":case"pointerout":Na.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pa.delete(i.pointerId)}}function ka(r,i,o,l,c,f){return r===null||r.nativeEvent!==f?(r={blockedOn:i,domEventName:o,eventSystemFlags:l,nativeEvent:f,targetContainers:[c]},i!==null&&(i=Xa(i),i!==null&&_d(i)),r):(r.eventSystemFlags|=l,i=r.targetContainers,c!==null&&i.indexOf(c)===-1&&i.push(c),r)}function kS(r,i,o,l,c){switch(i){case"focusin":return Ti=ka(Ti,r,i,o,l,c),!0;case"dragenter":return Li=ka(Li,r,i,o,l,c),!0;case"mouseover":return Bi=ka(Bi,r,i,o,l,c),!0;case"pointerover":var f=c.pointerId;return Na.set(f,ka(Na.get(f)||null,r,i,o,l,c)),!0;case"gotpointercapture":return f=c.pointerId,Pa.set(f,ka(Pa.get(f)||null,r,i,o,l,c)),!0}return!1}function Np(r){var i=Os(r.target);if(i!==null){var o=ie(i);if(o!==null){if(i=o.tag,i===13){if(i=Te(o),i!==null){r.blockedOn=i,Lp(r.priority,function(){Ap(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 lu(r){if(r.blockedOn!==null)return!1;for(var i=r.targetContainers;0<i.length;){var o=Ed(r.domEventName,r.eventSystemFlags,i[0],r.nativeEvent);if(o===null){o=r.nativeEvent;var l=new o.constructor(o.type,o);uo=l,o.target.dispatchEvent(l),uo=null}else return i=Xa(o),i!==null&&_d(i),r.blockedOn=o,!1;i.shift()}return!0}function Pp(r,i,o){lu(r)&&o.delete(i)}function US(){bd=!1,Ti!==null&&lu(Ti)&&(Ti=null),Li!==null&&lu(Li)&&(Li=null),Bi!==null&&lu(Bi)&&(Bi=null),Na.forEach(Pp),Pa.forEach(Pp)}function Ua(r,i){r.blockedOn===i&&(r.blockedOn=null,bd||(bd=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,US)))}function ja(r){function i(c){return Ua(c,r)}if(0<au.length){Ua(au[0],r);for(var o=1;o<au.length;o++){var l=au[o];l.blockedOn===r&&(l.blockedOn=null)}}for(Ti!==null&&Ua(Ti,r),Li!==null&&Ua(Li,r),Bi!==null&&Ua(Bi,r),Na.forEach(i),Pa.forEach(i),o=0;o<Ni.length;o++)l=Ni[o],l.blockedOn===r&&(l.blockedOn=null);for(;0<Ni.length&&(o=Ni[0],o.blockedOn===null);)Np(o),o.blockedOn===null&&Ni.shift()}var ho=Y.ReactCurrentBatchConfig,uu=!0;function jS(r,i,o,l){var c=lt,f=ho.transition;ho.transition=null;try{lt=1,Id(r,i,o,l)}finally{lt=c,ho.transition=f}}function zS(r,i,o,l){var c=lt,f=ho.transition;ho.transition=null;try{lt=4,Id(r,i,o,l)}finally{lt=c,ho.transition=f}}function Id(r,i,o,l){if(uu){var c=Ed(r,i,o,l);if(c===null)zd(r,i,l,cu,o),Bp(r,l);else if(kS(c,r,i,o,l))l.stopPropagation();else if(Bp(r,l),i&4&&-1<PS.indexOf(r)){for(;c!==null;){var f=Xa(c);if(f!==null&&Mp(f),f=Ed(r,i,o,l),f===null&&zd(r,i,l,cu,o),f===c)break;c=f}c!==null&&l.stopPropagation()}else zd(r,i,l,null,o)}}var cu=null;function Ed(r,i,o,l){if(cu=null,r=Ri(l),r=Os(r),r!==null)if(i=ie(r),i===null)r=null;else if(o=i.tag,o===13){if(r=Te(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 cu=r,null}function kp(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(Ta()){case Jr:return 1;case Rr:return 4;case Xr:case fo:return 16;case He:return 536870912;default:return 16}default:return 16}}var Pi=null,xd=null,du=null;function Up(){if(du)return du;var r,i=xd,o=i.length,l,c="value"in Pi?Pi.value:Pi.textContent,f=c.length;for(r=0;r<o&&i[r]===c[r];r++);var m=o-r;for(l=1;l<=m&&i[o-l]===c[f-l];l++);return du=c.slice(r,1<l?1-l:void 0)}function fu(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 hu(){return!0}function jp(){return!1}function kn(r){function i(o,l,c,f,m){this._reactName=o,this._targetInst=c,this.type=l,this.nativeEvent=f,this.target=m,this.currentTarget=null;for(var w in r)r.hasOwnProperty(w)&&(o=r[w],this[w]=o?o(f):f[w]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1)?hu:jp,this.isPropagationStopped=jp,this}return X(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=hu)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=hu)},persist:function(){},isPersistent:hu}),i}var po={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Dd=kn(po),za=X({},po,{view:0,detail:0}),VS=kn(za),Od,Cd,Va,pu=X({},za,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Rd,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!==Va&&(Va&&r.type==="mousemove"?(Od=r.screenX-Va.screenX,Cd=r.screenY-Va.screenY):Cd=Od=0,Va=r),Od)},movementY:function(r){return"movementY"in r?r.movementY:Cd}}),zp=kn(pu),$S=X({},pu,{dataTransfer:0}),WS=kn($S),HS=X({},za,{relatedTarget:0}),Fd=kn(HS),QS=X({},po,{animationName:0,elapsedTime:0,pseudoElement:0}),KS=kn(QS),qS=X({},po,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),YS=kn(qS),GS=X({},po,{data:0}),Vp=kn(GS),JS={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},XS={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"},ZS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function e_(r){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(r):(r=ZS[r])?!!i[r]:!1}function Rd(){return e_}var t_=X({},za,{key:function(r){if(r.key){var i=JS[r.key]||r.key;if(i!=="Unidentified")return i}return r.type==="keypress"?(r=fu(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?XS[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Rd,charCode:function(r){return r.type==="keypress"?fu(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?fu(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),n_=kn(t_),r_=X({},pu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),$p=kn(r_),i_=X({},za,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Rd}),s_=kn(i_),o_=X({},po,{propertyName:0,elapsedTime:0,pseudoElement:0}),a_=kn(o_),l_=X({},pu,{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}),u_=kn(l_),c_=[9,13,27,32],Md=h&&"CompositionEvent"in window,$a=null;h&&"documentMode"in document&&($a=document.documentMode);var d_=h&&"TextEvent"in window&&!$a,Wp=h&&(!Md||$a&&8<$a&&11>=$a),Hp=" ",Qp=!1;function Kp(r,i){switch(r){case"keyup":return c_.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function qp(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var mo=!1;function f_(r,i){switch(r){case"compositionend":return qp(i);case"keypress":return i.which!==32?null:(Qp=!0,Hp);case"textInput":return r=i.data,r===Hp&&Qp?null:r;default:return null}}function h_(r,i){if(mo)return r==="compositionend"||!Md&&Kp(r,i)?(r=Up(),du=xd=Pi=null,mo=!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 Wp&&i.locale!=="ko"?null:i.data;default:return null}}var p_={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 Yp(r){var i=r&&r.nodeName&&r.nodeName.toLowerCase();return i==="input"?!!p_[r.type]:i==="textarea"}function Gp(r,i,o,l){Ma(l),i=wu(i,"onChange"),0<i.length&&(o=new Dd("onChange","change",null,o,l),r.push({event:o,listeners:i}))}var Wa=null,Ha=null;function m_(r){pm(r,0)}function mu(r){var i=So(r);if(Yt(i))return r}function y_(r,i){if(r==="change")return i}var Jp=!1;if(h){var Ad;if(h){var Td="oninput"in document;if(!Td){var Xp=document.createElement("div");Xp.setAttribute("oninput","return;"),Td=typeof Xp.oninput=="function"}Ad=Td}else Ad=!1;Jp=Ad&&(!document.documentMode||9<document.documentMode)}function Zp(){Wa&&(Wa.detachEvent("onpropertychange",em),Ha=Wa=null)}function em(r){if(r.propertyName==="value"&&mu(Ha)){var i=[];Gp(i,Ha,r,Ri(r)),nu(m_,i)}}function g_(r,i,o){r==="focusin"?(Zp(),Wa=i,Ha=o,Wa.attachEvent("onpropertychange",em)):r==="focusout"&&Zp()}function v_(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return mu(Ha)}function w_(r,i){if(r==="click")return mu(i)}function S_(r,i){if(r==="input"||r==="change")return mu(i)}function __(r,i){return r===i&&(r!==0||1/r===1/i)||r!==r&&i!==i}var lr=typeof Object.is=="function"?Object.is:__;function Qa(r,i){if(lr(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)||!lr(r[c],i[c]))return!1}return!0}function tm(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function nm(r,i){var o=tm(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=tm(o)}}function rm(r,i){return r&&i?r===i?!0:r&&r.nodeType===3?!1:i&&i.nodeType===3?rm(r,i.parentNode):"contains"in r?r.contains(i):r.compareDocumentPosition?!!(r.compareDocumentPosition(i)&16):!1:!1}function im(){for(var r=window,i=sr();i instanceof r.HTMLIFrameElement;){try{var o=typeof i.contentWindow.location.href=="string"}catch{o=!1}if(o)r=i.contentWindow;else break;i=sr(r.document)}return i}function Ld(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 b_(r){var i=im(),o=r.focusedElem,l=r.selectionRange;if(i!==o&&o&&o.ownerDocument&&rm(o.ownerDocument.documentElement,o)){if(l!==null&&Ld(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,f=Math.min(l.start,c);l=l.end===void 0?f:Math.min(l.end,c),!r.extend&&f>l&&(c=l,l=f,f=c),c=nm(o,f);var m=nm(o,l);c&&m&&(r.rangeCount!==1||r.anchorNode!==c.node||r.anchorOffset!==c.offset||r.focusNode!==m.node||r.focusOffset!==m.offset)&&(i=i.createRange(),i.setStart(c.node,c.offset),r.removeAllRanges(),f>l?(r.addRange(i),r.extend(m.node,m.offset)):(i.setEnd(m.node,m.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 I_=h&&"documentMode"in document&&11>=document.documentMode,yo=null,Bd=null,Ka=null,Nd=!1;function sm(r,i,o){var l=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;Nd||yo==null||yo!==sr(l)||(l=yo,"selectionStart"in l&&Ld(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}),Ka&&Qa(Ka,l)||(Ka=l,l=wu(Bd,"onSelect"),0<l.length&&(i=new Dd("onSelect","select",null,i,o),r.push({event:i,listeners:l}),i.target=yo)))}function yu(r,i){var o={};return o[r.toLowerCase()]=i.toLowerCase(),o["Webkit"+r]="webkit"+i,o["Moz"+r]="moz"+i,o}var go={animationend:yu("Animation","AnimationEnd"),animationiteration:yu("Animation","AnimationIteration"),animationstart:yu("Animation","AnimationStart"),transitionend:yu("Transition","TransitionEnd")},Pd={},om={};h&&(om=document.createElement("div").style,"AnimationEvent"in window||(delete go.animationend.animation,delete go.animationiteration.animation,delete go.animationstart.animation),"TransitionEvent"in window||delete go.transitionend.transition);function gu(r){if(Pd[r])return Pd[r];if(!go[r])return r;var i=go[r],o;for(o in i)if(i.hasOwnProperty(o)&&o in om)return Pd[r]=i[o];return r}var am=gu("animationend"),lm=gu("animationiteration"),um=gu("animationstart"),cm=gu("transitionend"),dm=new Map,fm="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 ki(r,i){dm.set(r,i),u(i,[r])}for(var kd=0;kd<fm.length;kd++){var Ud=fm[kd],E_=Ud.toLowerCase(),x_=Ud[0].toUpperCase()+Ud.slice(1);ki(E_,"on"+x_)}ki(am,"onAnimationEnd"),ki(lm,"onAnimationIteration"),ki(um,"onAnimationStart"),ki("dblclick","onDoubleClick"),ki("focusin","onFocus"),ki("focusout","onBlur"),ki(cm,"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(" "),D_=new Set("cancel close invalid load scroll toggle".split(" ").concat(qa));function hm(r,i,o){var l=r.type||"unknown-event";r.currentTarget=o,ne(l,i,void 0,r),r.currentTarget=null}function pm(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 f=void 0;if(i)for(var m=l.length-1;0<=m;m--){var w=l[m],b=w.instance,A=w.currentTarget;if(w=w.listener,b!==f&&c.isPropagationStopped())break e;hm(c,w,A),f=b}else for(m=0;m<l.length;m++){if(w=l[m],b=w.instance,A=w.currentTarget,w=w.listener,b!==f&&c.isPropagationStopped())break e;hm(c,w,A),f=b}}}if(ce)throw r=be,ce=!1,be=null,r}function It(r,i){var o=i[Kd];o===void 0&&(o=i[Kd]=new Set);var l=r+"__bubble";o.has(l)||(mm(i,r,2,!1),o.add(l))}function jd(r,i,o){var l=0;i&&(l|=4),mm(o,r,l,i)}var vu="_reactListening"+Math.random().toString(36).slice(2);function Ya(r){if(!r[vu]){r[vu]=!0,s.forEach(function(o){o!=="selectionchange"&&(D_.has(o)||jd(o,!1,r),jd(o,!0,r))});var i=r.nodeType===9?r:r.ownerDocument;i===null||i[vu]||(i[vu]=!0,jd("selectionchange",!1,i))}}function mm(r,i,o,l){switch(kp(i)){case 1:var c=jS;break;case 4:c=zS;break;default:c=Id}o=c.bind(null,i,o,r),c=void 0,!_||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 zd(r,i,o,l,c){var f=l;if((i&1)===0&&(i&2)===0&&l!==null)e:for(;;){if(l===null)return;var m=l.tag;if(m===3||m===4){var w=l.stateNode.containerInfo;if(w===c||w.nodeType===8&&w.parentNode===c)break;if(m===4)for(m=l.return;m!==null;){var b=m.tag;if((b===3||b===4)&&(b=m.stateNode.containerInfo,b===c||b.nodeType===8&&b.parentNode===c))return;m=m.return}for(;w!==null;){if(m=Os(w),m===null)return;if(b=m.tag,b===5||b===6){l=f=m;continue e}w=w.parentNode}}l=l.return}nu(function(){var A=f,V=Ri(o),$=[];e:{var z=dm.get(r);if(z!==void 0){var Z=Dd,oe=r;switch(r){case"keypress":if(fu(o)===0)break e;case"keydown":case"keyup":Z=n_;break;case"focusin":oe="focus",Z=Fd;break;case"focusout":oe="blur",Z=Fd;break;case"beforeblur":case"afterblur":Z=Fd;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":Z=zp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Z=WS;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Z=s_;break;case am:case lm:case um:Z=KS;break;case cm:Z=a_;break;case"scroll":Z=VS;break;case"wheel":Z=u_;break;case"copy":case"cut":case"paste":Z=YS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Z=$p}var le=(i&4)!==0,Bt=!le&&r==="scroll",F=le?z!==null?z+"Capture":null:z;le=[];for(var I=A,R;I!==null;){R=I;var Q=R.stateNode;if(R.tag===5&&Q!==null&&(R=Q,F!==null&&(Q=Es(I,F),Q!=null&&le.push(Ga(I,Q,R)))),Bt)break;I=I.return}0<le.length&&(z=new Z(z,oe,null,o,V),$.push({event:z,listeners:le}))}}if((i&7)===0){e:{if(z=r==="mouseover"||r==="pointerover",Z=r==="mouseout"||r==="pointerout",z&&o!==uo&&(oe=o.relatedTarget||o.fromElement)&&(Os(oe)||oe[Zr]))break e;if((Z||z)&&(z=V.window===V?V:(z=V.ownerDocument)?z.defaultView||z.parentWindow:window,Z?(oe=o.relatedTarget||o.toElement,Z=A,oe=oe?Os(oe):null,oe!==null&&(Bt=ie(oe),oe!==Bt||oe.tag!==5&&oe.tag!==6)&&(oe=null)):(Z=null,oe=A),Z!==oe)){if(le=zp,Q="onMouseLeave",F="onMouseEnter",I="mouse",(r==="pointerout"||r==="pointerover")&&(le=$p,Q="onPointerLeave",F="onPointerEnter",I="pointer"),Bt=Z==null?z:So(Z),R=oe==null?z:So(oe),z=new le(Q,I+"leave",Z,o,V),z.target=Bt,z.relatedTarget=R,Q=null,Os(V)===A&&(le=new le(F,I+"enter",oe,o,V),le.target=R,le.relatedTarget=Bt,Q=le),Bt=Q,Z&&oe)t:{for(le=Z,F=oe,I=0,R=le;R;R=vo(R))I++;for(R=0,Q=F;Q;Q=vo(Q))R++;for(;0<I-R;)le=vo(le),I--;for(;0<R-I;)F=vo(F),R--;for(;I--;){if(le===F||F!==null&&le===F.alternate)break t;le=vo(le),F=vo(F)}le=null}else le=null;Z!==null&&ym($,z,Z,le,!1),oe!==null&&Bt!==null&&ym($,Bt,oe,le,!0)}}e:{if(z=A?So(A):window,Z=z.nodeName&&z.nodeName.toLowerCase(),Z==="select"||Z==="input"&&z.type==="file")var ue=y_;else if(Yp(z))if(Jp)ue=S_;else{ue=v_;var ye=g_}else(Z=z.nodeName)&&Z.toLowerCase()==="input"&&(z.type==="checkbox"||z.type==="radio")&&(ue=w_);if(ue&&(ue=ue(r,A))){Gp($,ue,o,V);break e}ye&&ye(r,z,A),r==="focusout"&&(ye=z._wrapperState)&&ye.controlled&&z.type==="number"&&ao(z,"number",z.value)}switch(ye=A?So(A):window,r){case"focusin":(Yp(ye)||ye.contentEditable==="true")&&(yo=ye,Bd=A,Ka=null);break;case"focusout":Ka=Bd=yo=null;break;case"mousedown":Nd=!0;break;case"contextmenu":case"mouseup":case"dragend":Nd=!1,sm($,o,V);break;case"selectionchange":if(I_)break;case"keydown":case"keyup":sm($,o,V)}var ge;if(Md)e:{switch(r){case"compositionstart":var Ce="onCompositionStart";break e;case"compositionend":Ce="onCompositionEnd";break e;case"compositionupdate":Ce="onCompositionUpdate";break e}Ce=void 0}else mo?Kp(r,o)&&(Ce="onCompositionEnd"):r==="keydown"&&o.keyCode===229&&(Ce="onCompositionStart");Ce&&(Wp&&o.locale!=="ko"&&(mo||Ce!=="onCompositionStart"?Ce==="onCompositionEnd"&&mo&&(ge=Up()):(Pi=V,xd="value"in Pi?Pi.value:Pi.textContent,mo=!0)),ye=wu(A,Ce),0<ye.length&&(Ce=new Vp(Ce,r,null,o,V),$.push({event:Ce,listeners:ye}),ge?Ce.data=ge:(ge=qp(o),ge!==null&&(Ce.data=ge)))),(ge=d_?f_(r,o):h_(r,o))&&(A=wu(A,"onBeforeInput"),0<A.length&&(V=new Vp("onBeforeInput","beforeinput",null,o,V),$.push({event:V,listeners:A}),V.data=ge))}pm($,i)})}function Ga(r,i,o){return{instance:r,listener:i,currentTarget:o}}function wu(r,i){for(var o=i+"Capture",l=[];r!==null;){var c=r,f=c.stateNode;c.tag===5&&f!==null&&(c=f,f=Es(r,o),f!=null&&l.unshift(Ga(r,f,c)),f=Es(r,i),f!=null&&l.push(Ga(r,f,c))),r=r.return}return l}function vo(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5);return r||null}function ym(r,i,o,l,c){for(var f=i._reactName,m=[];o!==null&&o!==l;){var w=o,b=w.alternate,A=w.stateNode;if(b!==null&&b===l)break;w.tag===5&&A!==null&&(w=A,c?(b=Es(o,f),b!=null&&m.unshift(Ga(o,b,w))):c||(b=Es(o,f),b!=null&&m.push(Ga(o,b,w)))),o=o.return}m.length!==0&&r.push({event:i,listeners:m})}var O_=/\r\n?/g,C_=/\u0000|\uFFFD/g;function gm(r){return(typeof r=="string"?r:""+r).replace(O_,`
41
+ `).replace(C_,"")}function Su(r,i,o){if(i=gm(i),gm(r)!==i&&o)throw Error(t(425))}function _u(){}var Vd=null,$d=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 Hd=typeof setTimeout=="function"?setTimeout:void 0,F_=typeof clearTimeout=="function"?clearTimeout:void 0,vm=typeof Promise=="function"?Promise:void 0,R_=typeof queueMicrotask=="function"?queueMicrotask:typeof vm<"u"?function(r){return vm.resolve(null).then(r).catch(M_)}:Hd;function M_(r){setTimeout(function(){throw r})}function Qd(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),ja(i);return}l--}else o!=="$"&&o!=="$?"&&o!=="$!"||l++;o=c}while(o);ja(i)}function Ui(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 wm(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 wo=Math.random().toString(36).slice(2),Mr="__reactFiber$"+wo,Ja="__reactProps$"+wo,Zr="__reactContainer$"+wo,Kd="__reactEvents$"+wo,A_="__reactListeners$"+wo,T_="__reactHandles$"+wo;function Os(r){var i=r[Mr];if(i)return i;for(var o=r.parentNode;o;){if(i=o[Zr]||o[Mr]){if(o=i.alternate,i.child!==null||o!==null&&o.child!==null)for(r=wm(r);r!==null;){if(o=r[Mr])return o;r=wm(r)}return i}r=o,o=r.parentNode}return null}function Xa(r){return r=r[Mr]||r[Zr],!r||r.tag!==5&&r.tag!==6&&r.tag!==13&&r.tag!==3?null:r}function So(r){if(r.tag===5||r.tag===6)return r.stateNode;throw Error(t(33))}function bu(r){return r[Ja]||null}var qd=[],_o=-1;function ji(r){return{current:r}}function Et(r){0>_o||(r.current=qd[_o],qd[_o]=null,_o--)}function wt(r,i){_o++,qd[_o]=r.current,r.current=i}var zi={},rn=ji(zi),In=ji(!1),Cs=zi;function bo(r,i){var o=r.type.contextTypes;if(!o)return zi;var l=r.stateNode;if(l&&l.__reactInternalMemoizedUnmaskedChildContext===i)return l.__reactInternalMemoizedMaskedChildContext;var c={},f;for(f in o)c[f]=i[f];return l&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=i,r.__reactInternalMemoizedMaskedChildContext=c),c}function En(r){return r=r.childContextTypes,r!=null}function Iu(){Et(In),Et(rn)}function Sm(r,i,o){if(rn.current!==zi)throw Error(t(168));wt(rn,i),wt(In,o)}function _m(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,Ke(r)||"Unknown",c));return X({},o,l)}function Eu(r){return r=(r=r.stateNode)&&r.__reactInternalMemoizedMergedChildContext||zi,Cs=rn.current,wt(rn,r),wt(In,In.current),!0}function bm(r,i,o){var l=r.stateNode;if(!l)throw Error(t(169));o?(r=_m(r,i,Cs),l.__reactInternalMemoizedMergedChildContext=r,Et(In),Et(rn),wt(rn,r)):Et(In),wt(In,o)}var ei=null,xu=!1,Yd=!1;function Im(r){ei===null?ei=[r]:ei.push(r)}function L_(r){xu=!0,Im(r)}function Vi(){if(!Yd&&ei!==null){Yd=!0;var r=0,i=lt;try{var o=ei;for(lt=1;r<o.length;r++){var l=o[r];do l=l(!0);while(l!==null)}ei=null,xu=!1}catch(c){throw ei!==null&&(ei=ei.slice(r+1)),bt(Jr,Vi),c}finally{lt=i,Yd=!1}}return null}var Io=[],Eo=0,Du=null,Ou=0,Hn=[],Qn=0,Fs=null,ti=1,ni="";function Rs(r,i){Io[Eo++]=Ou,Io[Eo++]=Du,Du=r,Ou=i}function Em(r,i,o){Hn[Qn++]=ti,Hn[Qn++]=ni,Hn[Qn++]=Fs,Fs=r;var l=ti;r=ni;var c=32-et(l)-1;l&=~(1<<c),o+=1;var f=32-et(i)+c;if(30<f){var m=c-c%5;f=(l&(1<<m)-1).toString(32),l>>=m,c-=m,ti=1<<32-et(i)+c|o<<c|l,ni=f+r}else ti=1<<f|o<<c|l,ni=r}function Gd(r){r.return!==null&&(Rs(r,1),Em(r,1,0))}function Jd(r){for(;r===Du;)Du=Io[--Eo],Io[Eo]=null,Ou=Io[--Eo],Io[Eo]=null;for(;r===Fs;)Fs=Hn[--Qn],Hn[Qn]=null,ni=Hn[--Qn],Hn[Qn]=null,ti=Hn[--Qn],Hn[Qn]=null}var Un=null,jn=null,Ot=!1,ur=null;function xm(r,i){var o=Gn(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 Dm(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,Un=r,jn=Ui(i.firstChild),!0):!1;case 6:return i=r.pendingProps===""||i.nodeType!==3?null:i,i!==null?(r.stateNode=i,Un=r,jn=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=Gn(18,null,null,0),o.stateNode=i,o.return=r,r.child=o,Un=r,jn=null,!0):!1;default:return!1}}function Xd(r){return(r.mode&1)!==0&&(r.flags&128)===0}function Zd(r){if(Ot){var i=jn;if(i){var o=i;if(!Dm(r,i)){if(Xd(r))throw Error(t(418));i=Ui(o.nextSibling);var l=Un;i&&Dm(r,i)?xm(l,o):(r.flags=r.flags&-4097|2,Ot=!1,Un=r)}}else{if(Xd(r))throw Error(t(418));r.flags=r.flags&-4097|2,Ot=!1,Un=r}}}function Om(r){for(r=r.return;r!==null&&r.tag!==5&&r.tag!==3&&r.tag!==13;)r=r.return;Un=r}function Cu(r){if(r!==Un)return!1;if(!Ot)return Om(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=jn)){if(Xd(r))throw Cm(),Error(t(418));for(;i;)xm(r,i),i=Ui(i.nextSibling)}if(Om(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){jn=Ui(r.nextSibling);break e}i--}else o!=="$"&&o!=="$!"&&o!=="$?"||i++}r=r.nextSibling}jn=null}}else jn=Un?Ui(r.stateNode.nextSibling):null;return!0}function Cm(){for(var r=jn;r;)r=Ui(r.nextSibling)}function xo(){jn=Un=null,Ot=!1}function ef(r){ur===null?ur=[r]:ur.push(r)}var B_=Y.ReactCurrentBatchConfig;function Za(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,f=""+r;return i!==null&&i.ref!==null&&typeof i.ref=="function"&&i.ref._stringRef===f?i.ref:(i=function(m){var w=c.refs;m===null?delete w[f]:w[f]=m},i._stringRef=f,i)}if(typeof r!="string")throw Error(t(284));if(!o._owner)throw Error(t(290,r))}return r}function Fu(r,i){throw r=Object.prototype.toString.call(i),Error(t(31,r==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":r))}function Fm(r){var i=r._init;return i(r._payload)}function Rm(r){function i(F,I){if(r){var R=F.deletions;R===null?(F.deletions=[I],F.flags|=16):R.push(I)}}function o(F,I){if(!r)return null;for(;I!==null;)i(F,I),I=I.sibling;return null}function l(F,I){for(F=new Map;I!==null;)I.key!==null?F.set(I.key,I):F.set(I.index,I),I=I.sibling;return F}function c(F,I){return F=Gi(F,I),F.index=0,F.sibling=null,F}function f(F,I,R){return F.index=R,r?(R=F.alternate,R!==null?(R=R.index,R<I?(F.flags|=2,I):R):(F.flags|=2,I)):(F.flags|=1048576,I)}function m(F){return r&&F.alternate===null&&(F.flags|=2),F}function w(F,I,R,Q){return I===null||I.tag!==6?(I=Qf(R,F.mode,Q),I.return=F,I):(I=c(I,R),I.return=F,I)}function b(F,I,R,Q){var ue=R.type;return ue===T?V(F,I,R.props.children,Q,R.key):I!==null&&(I.elementType===ue||typeof ue=="object"&&ue!==null&&ue.$$typeof===Vt&&Fm(ue)===I.type)?(Q=c(I,R.props),Q.ref=Za(F,I,R),Q.return=F,Q):(Q=Zu(R.type,R.key,R.props,null,F.mode,Q),Q.ref=Za(F,I,R),Q.return=F,Q)}function A(F,I,R,Q){return I===null||I.tag!==4||I.stateNode.containerInfo!==R.containerInfo||I.stateNode.implementation!==R.implementation?(I=Kf(R,F.mode,Q),I.return=F,I):(I=c(I,R.children||[]),I.return=F,I)}function V(F,I,R,Q,ue){return I===null||I.tag!==7?(I=ks(R,F.mode,Q,ue),I.return=F,I):(I=c(I,R),I.return=F,I)}function $(F,I,R){if(typeof I=="string"&&I!==""||typeof I=="number")return I=Qf(""+I,F.mode,R),I.return=F,I;if(typeof I=="object"&&I!==null){switch(I.$$typeof){case pe:return R=Zu(I.type,I.key,I.props,null,F.mode,R),R.ref=Za(F,null,I),R.return=F,R;case Be:return I=Kf(I,F.mode,R),I.return=F,I;case Vt:var Q=I._init;return $(F,Q(I._payload),R)}if(_s(I)||he(I))return I=ks(I,F.mode,R,null),I.return=F,I;Fu(F,I)}return null}function z(F,I,R,Q){var ue=I!==null?I.key:null;if(typeof R=="string"&&R!==""||typeof R=="number")return ue!==null?null:w(F,I,""+R,Q);if(typeof R=="object"&&R!==null){switch(R.$$typeof){case pe:return R.key===ue?b(F,I,R,Q):null;case Be:return R.key===ue?A(F,I,R,Q):null;case Vt:return ue=R._init,z(F,I,ue(R._payload),Q)}if(_s(R)||he(R))return ue!==null?null:V(F,I,R,Q,null);Fu(F,R)}return null}function Z(F,I,R,Q,ue){if(typeof Q=="string"&&Q!==""||typeof Q=="number")return F=F.get(R)||null,w(I,F,""+Q,ue);if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case pe:return F=F.get(Q.key===null?R:Q.key)||null,b(I,F,Q,ue);case Be:return F=F.get(Q.key===null?R:Q.key)||null,A(I,F,Q,ue);case Vt:var ye=Q._init;return Z(F,I,R,ye(Q._payload),ue)}if(_s(Q)||he(Q))return F=F.get(R)||null,V(I,F,Q,ue,null);Fu(I,Q)}return null}function oe(F,I,R,Q){for(var ue=null,ye=null,ge=I,Ce=I=0,Xt=null;ge!==null&&Ce<R.length;Ce++){ge.index>Ce?(Xt=ge,ge=null):Xt=ge.sibling;var tt=z(F,ge,R[Ce],Q);if(tt===null){ge===null&&(ge=Xt);break}r&&ge&&tt.alternate===null&&i(F,ge),I=f(tt,I,Ce),ye===null?ue=tt:ye.sibling=tt,ye=tt,ge=Xt}if(Ce===R.length)return o(F,ge),Ot&&Rs(F,Ce),ue;if(ge===null){for(;Ce<R.length;Ce++)ge=$(F,R[Ce],Q),ge!==null&&(I=f(ge,I,Ce),ye===null?ue=ge:ye.sibling=ge,ye=ge);return Ot&&Rs(F,Ce),ue}for(ge=l(F,ge);Ce<R.length;Ce++)Xt=Z(ge,F,Ce,R[Ce],Q),Xt!==null&&(r&&Xt.alternate!==null&&ge.delete(Xt.key===null?Ce:Xt.key),I=f(Xt,I,Ce),ye===null?ue=Xt:ye.sibling=Xt,ye=Xt);return r&&ge.forEach(function(Ji){return i(F,Ji)}),Ot&&Rs(F,Ce),ue}function le(F,I,R,Q){var ue=he(R);if(typeof ue!="function")throw Error(t(150));if(R=ue.call(R),R==null)throw Error(t(151));for(var ye=ue=null,ge=I,Ce=I=0,Xt=null,tt=R.next();ge!==null&&!tt.done;Ce++,tt=R.next()){ge.index>Ce?(Xt=ge,ge=null):Xt=ge.sibling;var Ji=z(F,ge,tt.value,Q);if(Ji===null){ge===null&&(ge=Xt);break}r&&ge&&Ji.alternate===null&&i(F,ge),I=f(Ji,I,Ce),ye===null?ue=Ji:ye.sibling=Ji,ye=Ji,ge=Xt}if(tt.done)return o(F,ge),Ot&&Rs(F,Ce),ue;if(ge===null){for(;!tt.done;Ce++,tt=R.next())tt=$(F,tt.value,Q),tt!==null&&(I=f(tt,I,Ce),ye===null?ue=tt:ye.sibling=tt,ye=tt);return Ot&&Rs(F,Ce),ue}for(ge=l(F,ge);!tt.done;Ce++,tt=R.next())tt=Z(ge,F,Ce,tt.value,Q),tt!==null&&(r&&tt.alternate!==null&&ge.delete(tt.key===null?Ce:tt.key),I=f(tt,I,Ce),ye===null?ue=tt:ye.sibling=tt,ye=tt);return r&&ge.forEach(function(p1){return i(F,p1)}),Ot&&Rs(F,Ce),ue}function Bt(F,I,R,Q){if(typeof R=="object"&&R!==null&&R.type===T&&R.key===null&&(R=R.props.children),typeof R=="object"&&R!==null){switch(R.$$typeof){case pe:e:{for(var ue=R.key,ye=I;ye!==null;){if(ye.key===ue){if(ue=R.type,ue===T){if(ye.tag===7){o(F,ye.sibling),I=c(ye,R.props.children),I.return=F,F=I;break e}}else if(ye.elementType===ue||typeof ue=="object"&&ue!==null&&ue.$$typeof===Vt&&Fm(ue)===ye.type){o(F,ye.sibling),I=c(ye,R.props),I.ref=Za(F,ye,R),I.return=F,F=I;break e}o(F,ye);break}else i(F,ye);ye=ye.sibling}R.type===T?(I=ks(R.props.children,F.mode,Q,R.key),I.return=F,F=I):(Q=Zu(R.type,R.key,R.props,null,F.mode,Q),Q.ref=Za(F,I,R),Q.return=F,F=Q)}return m(F);case Be:e:{for(ye=R.key;I!==null;){if(I.key===ye)if(I.tag===4&&I.stateNode.containerInfo===R.containerInfo&&I.stateNode.implementation===R.implementation){o(F,I.sibling),I=c(I,R.children||[]),I.return=F,F=I;break e}else{o(F,I);break}else i(F,I);I=I.sibling}I=Kf(R,F.mode,Q),I.return=F,F=I}return m(F);case Vt:return ye=R._init,Bt(F,I,ye(R._payload),Q)}if(_s(R))return oe(F,I,R,Q);if(he(R))return le(F,I,R,Q);Fu(F,R)}return typeof R=="string"&&R!==""||typeof R=="number"?(R=""+R,I!==null&&I.tag===6?(o(F,I.sibling),I=c(I,R),I.return=F,F=I):(o(F,I),I=Qf(R,F.mode,Q),I.return=F,F=I),m(F)):o(F,I)}return Bt}var Do=Rm(!0),Mm=Rm(!1),Ru=ji(null),Mu=null,Oo=null,tf=null;function nf(){tf=Oo=Mu=null}function rf(r){var i=Ru.current;Et(Ru),r._currentValue=i}function sf(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 Co(r,i){Mu=r,tf=Oo=null,r=r.dependencies,r!==null&&r.firstContext!==null&&((r.lanes&i)!==0&&(xn=!0),r.firstContext=null)}function Kn(r){var i=r._currentValue;if(tf!==r)if(r={context:r,memoizedValue:i,next:null},Oo===null){if(Mu===null)throw Error(t(308));Oo=r,Mu.dependencies={lanes:0,firstContext:r}}else Oo=Oo.next=r;return i}var Ms=null;function of(r){Ms===null?Ms=[r]:Ms.push(r)}function Am(r,i,o,l){var c=i.interleaved;return c===null?(o.next=o,of(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 $i=!1;function af(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Tm(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 Wi(r,i,o){var l=r.updateQueue;if(l===null)return null;if(l=l.shared,(Je&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,of(l)):(i.next=c.next,c.next=i),l.interleaved=i,ri(r,o)}function Au(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,Sd(r,o)}}function Lm(r,i){var o=r.updateQueue,l=r.alternate;if(l!==null&&(l=l.updateQueue,o===l)){var c=null,f=null;if(o=o.firstBaseUpdate,o!==null){do{var m={eventTime:o.eventTime,lane:o.lane,tag:o.tag,payload:o.payload,callback:o.callback,next:null};f===null?c=f=m:f=f.next=m,o=o.next}while(o!==null);f===null?c=f=i:f=f.next=i}else c=f=i;o={baseState:l.baseState,firstBaseUpdate:c,lastBaseUpdate:f,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 Tu(r,i,o,l){var c=r.updateQueue;$i=!1;var f=c.firstBaseUpdate,m=c.lastBaseUpdate,w=c.shared.pending;if(w!==null){c.shared.pending=null;var b=w,A=b.next;b.next=null,m===null?f=A:m.next=A,m=b;var V=r.alternate;V!==null&&(V=V.updateQueue,w=V.lastBaseUpdate,w!==m&&(w===null?V.firstBaseUpdate=A:w.next=A,V.lastBaseUpdate=b))}if(f!==null){var $=c.baseState;m=0,V=A=b=null,w=f;do{var z=w.lane,Z=w.eventTime;if((l&z)===z){V!==null&&(V=V.next={eventTime:Z,lane:0,tag:w.tag,payload:w.payload,callback:w.callback,next:null});e:{var oe=r,le=w;switch(z=i,Z=o,le.tag){case 1:if(oe=le.payload,typeof oe=="function"){$=oe.call(Z,$,z);break e}$=oe;break e;case 3:oe.flags=oe.flags&-65537|128;case 0:if(oe=le.payload,z=typeof oe=="function"?oe.call(Z,$,z):oe,z==null)break e;$=X({},$,z);break e;case 2:$i=!0}}w.callback!==null&&w.lane!==0&&(r.flags|=64,z=c.effects,z===null?c.effects=[w]:z.push(w))}else Z={eventTime:Z,lane:z,tag:w.tag,payload:w.payload,callback:w.callback,next:null},V===null?(A=V=Z,b=$):V=V.next=Z,m|=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(V===null&&(b=$),c.baseState=b,c.firstBaseUpdate=A,c.lastBaseUpdate=V,i=c.shared.interleaved,i!==null){c=i;do m|=c.lane,c=c.next;while(c!==i)}else f===null&&(c.shared.lanes=0);Ls|=m,r.lanes=m,r.memoizedState=$}}function Bm(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 el={},Ar=ji(el),tl=ji(el),nl=ji(el);function As(r){if(r===el)throw Error(t(174));return r}function lf(r,i){switch(wt(nl,i),wt(tl,r),wt(Ar,el),r=i.nodeType,r){case 9:case 11:i=(i=i.documentElement)?i.namespaceURI:bs(null,"");break;default:r=r===8?i.parentNode:i,i=r.namespaceURI||null,r=r.tagName,i=bs(i,r)}Et(Ar),wt(Ar,i)}function Fo(){Et(Ar),Et(tl),Et(nl)}function Nm(r){As(nl.current);var i=As(Ar.current),o=bs(i,r.type);i!==o&&(wt(tl,r),wt(Ar,o))}function uf(r){tl.current===r&&(Et(Ar),Et(tl))}var Rt=ji(0);function Lu(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 cf=[];function df(){for(var r=0;r<cf.length;r++)cf[r]._workInProgressVersionPrimary=null;cf.length=0}var Bu=Y.ReactCurrentDispatcher,ff=Y.ReactCurrentBatchConfig,Ts=0,Mt=null,Wt=null,Gt=null,Nu=!1,rl=!1,il=0,N_=0;function sn(){throw Error(t(321))}function hf(r,i){if(i===null)return!1;for(var o=0;o<i.length&&o<r.length;o++)if(!lr(r[o],i[o]))return!1;return!0}function pf(r,i,o,l,c,f){if(Ts=f,Mt=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,Bu.current=r===null||r.memoizedState===null?j_:z_,r=o(l,c),rl){f=0;do{if(rl=!1,il=0,25<=f)throw Error(t(301));f+=1,Gt=Wt=null,i.updateQueue=null,Bu.current=V_,r=o(l,c)}while(rl)}if(Bu.current=Uu,i=Wt!==null&&Wt.next!==null,Ts=0,Gt=Wt=Mt=null,Nu=!1,i)throw Error(t(300));return r}function mf(){var r=il!==0;return il=0,r}function Tr(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Gt===null?Mt.memoizedState=Gt=r:Gt=Gt.next=r,Gt}function qn(){if(Wt===null){var r=Mt.alternate;r=r!==null?r.memoizedState:null}else r=Wt.next;var i=Gt===null?Mt.memoizedState:Gt.next;if(i!==null)Gt=i,Wt=r;else{if(r===null)throw Error(t(310));Wt=r,r={memoizedState:Wt.memoizedState,baseState:Wt.baseState,baseQueue:Wt.baseQueue,queue:Wt.queue,next:null},Gt===null?Mt.memoizedState=Gt=r:Gt=Gt.next=r}return Gt}function sl(r,i){return typeof i=="function"?i(r):i}function yf(r){var i=qn(),o=i.queue;if(o===null)throw Error(t(311));o.lastRenderedReducer=r;var l=Wt,c=l.baseQueue,f=o.pending;if(f!==null){if(c!==null){var m=c.next;c.next=f.next,f.next=m}l.baseQueue=c=f,o.pending=null}if(c!==null){f=c.next,l=l.baseState;var w=m=null,b=null,A=f;do{var V=A.lane;if((Ts&V)===V)b!==null&&(b=b.next={lane:0,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null}),l=A.hasEagerState?A.eagerState:r(l,A.action);else{var $={lane:V,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null};b===null?(w=b=$,m=l):b=b.next=$,Mt.lanes|=V,Ls|=V}A=A.next}while(A!==null&&A!==f);b===null?m=l:b.next=w,lr(l,i.memoizedState)||(xn=!0),i.memoizedState=l,i.baseState=m,i.baseQueue=b,o.lastRenderedState=l}if(r=o.interleaved,r!==null){c=r;do f=c.lane,Mt.lanes|=f,Ls|=f,c=c.next;while(c!==r)}else c===null&&(o.lanes=0);return[i.memoizedState,o.dispatch]}function gf(r){var i=qn(),o=i.queue;if(o===null)throw Error(t(311));o.lastRenderedReducer=r;var l=o.dispatch,c=o.pending,f=i.memoizedState;if(c!==null){o.pending=null;var m=c=c.next;do f=r(f,m.action),m=m.next;while(m!==c);lr(f,i.memoizedState)||(xn=!0),i.memoizedState=f,i.baseQueue===null&&(i.baseState=f),o.lastRenderedState=f}return[f,l]}function Pm(){}function km(r,i){var o=Mt,l=qn(),c=i(),f=!lr(l.memoizedState,c);if(f&&(l.memoizedState=c,xn=!0),l=l.queue,vf(zm.bind(null,o,l,r),[r]),l.getSnapshot!==i||f||Gt!==null&&Gt.memoizedState.tag&1){if(o.flags|=2048,ol(9,jm.bind(null,o,l,c,i),void 0,null),Jt===null)throw Error(t(349));(Ts&30)!==0||Um(o,i,c)}return c}function Um(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 jm(r,i,o,l){i.value=o,i.getSnapshot=l,Vm(i)&&$m(r)}function zm(r,i,o){return o(function(){Vm(i)&&$m(r)})}function Vm(r){var i=r.getSnapshot;r=r.value;try{var o=i();return!lr(r,o)}catch{return!0}}function $m(r){var i=ri(r,1);i!==null&&hr(i,r,1,-1)}function Wm(r){var i=Tr();return typeof r=="function"&&(r=r()),i.memoizedState=i.baseState=r,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:sl,lastRenderedState:r},i.queue=r,r=r.dispatch=U_.bind(null,Mt,r),[i.memoizedState,r]}function ol(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 Hm(){return qn().memoizedState}function Pu(r,i,o,l){var c=Tr();Mt.flags|=r,c.memoizedState=ol(1|i,o,void 0,l===void 0?null:l)}function ku(r,i,o,l){var c=qn();l=l===void 0?null:l;var f=void 0;if(Wt!==null){var m=Wt.memoizedState;if(f=m.destroy,l!==null&&hf(l,m.deps)){c.memoizedState=ol(i,o,f,l);return}}Mt.flags|=r,c.memoizedState=ol(1|i,o,f,l)}function Qm(r,i){return Pu(8390656,8,r,i)}function vf(r,i){return ku(2048,8,r,i)}function Km(r,i){return ku(4,2,r,i)}function qm(r,i){return ku(4,4,r,i)}function Ym(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 Gm(r,i,o){return o=o!=null?o.concat([r]):null,ku(4,4,Ym.bind(null,i,r),o)}function wf(){}function Jm(r,i){var o=qn();i=i===void 0?null:i;var l=o.memoizedState;return l!==null&&i!==null&&hf(i,l[1])?l[0]:(o.memoizedState=[r,i],r)}function Xm(r,i){var o=qn();i=i===void 0?null:i;var l=o.memoizedState;return l!==null&&i!==null&&hf(i,l[1])?l[0]:(r=r(),o.memoizedState=[r,i],r)}function Zm(r,i,o){return(Ts&21)===0?(r.baseState&&(r.baseState=!1,xn=!0),r.memoizedState=o):(lr(o,i)||(o=Fp(),Mt.lanes|=o,Ls|=o,r.baseState=!0),i)}function P_(r,i){var o=lt;lt=o!==0&&4>o?o:4,r(!0);var l=ff.transition;ff.transition={};try{r(!1),i()}finally{lt=o,ff.transition=l}}function ey(){return qn().memoizedState}function k_(r,i,o){var l=qi(r);if(o={lane:l,action:o,hasEagerState:!1,eagerState:null,next:null},ty(r))ny(i,o);else if(o=Am(r,i,o,l),o!==null){var c=pn();hr(o,r,l,c),ry(o,i,l)}}function U_(r,i,o){var l=qi(r),c={lane:l,action:o,hasEagerState:!1,eagerState:null,next:null};if(ty(r))ny(i,c);else{var f=r.alternate;if(r.lanes===0&&(f===null||f.lanes===0)&&(f=i.lastRenderedReducer,f!==null))try{var m=i.lastRenderedState,w=f(m,o);if(c.hasEagerState=!0,c.eagerState=w,lr(w,m)){var b=i.interleaved;b===null?(c.next=c,of(i)):(c.next=b.next,b.next=c),i.interleaved=c;return}}catch{}finally{}o=Am(r,i,c,l),o!==null&&(c=pn(),hr(o,r,l,c),ry(o,i,l))}}function ty(r){var i=r.alternate;return r===Mt||i!==null&&i===Mt}function ny(r,i){rl=Nu=!0;var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}function ry(r,i,o){if((o&4194240)!==0){var l=i.lanes;l&=r.pendingLanes,o|=l,i.lanes=o,Sd(r,o)}}var Uu={readContext:Kn,useCallback:sn,useContext:sn,useEffect:sn,useImperativeHandle:sn,useInsertionEffect:sn,useLayoutEffect:sn,useMemo:sn,useReducer:sn,useRef:sn,useState:sn,useDebugValue:sn,useDeferredValue:sn,useTransition:sn,useMutableSource:sn,useSyncExternalStore:sn,useId:sn,unstable_isNewReconciler:!1},j_={readContext:Kn,useCallback:function(r,i){return Tr().memoizedState=[r,i===void 0?null:i],r},useContext:Kn,useEffect:Qm,useImperativeHandle:function(r,i,o){return o=o!=null?o.concat([r]):null,Pu(4194308,4,Ym.bind(null,i,r),o)},useLayoutEffect:function(r,i){return Pu(4194308,4,r,i)},useInsertionEffect:function(r,i){return Pu(4,2,r,i)},useMemo:function(r,i){var o=Tr();return i=i===void 0?null:i,r=r(),o.memoizedState=[r,i],r},useReducer:function(r,i,o){var l=Tr();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=k_.bind(null,Mt,r),[l.memoizedState,r]},useRef:function(r){var i=Tr();return r={current:r},i.memoizedState=r},useState:Wm,useDebugValue:wf,useDeferredValue:function(r){return Tr().memoizedState=r},useTransition:function(){var r=Wm(!1),i=r[0];return r=P_.bind(null,r[1]),Tr().memoizedState=r,[i,r]},useMutableSource:function(){},useSyncExternalStore:function(r,i,o){var l=Mt,c=Tr();if(Ot){if(o===void 0)throw Error(t(407));o=o()}else{if(o=i(),Jt===null)throw Error(t(349));(Ts&30)!==0||Um(l,i,o)}c.memoizedState=o;var f={value:o,getSnapshot:i};return c.queue=f,Qm(zm.bind(null,l,f,r),[r]),l.flags|=2048,ol(9,jm.bind(null,l,f,o,i),void 0,null),o},useId:function(){var r=Tr(),i=Jt.identifierPrefix;if(Ot){var o=ni,l=ti;o=(l&~(1<<32-et(l)-1)).toString(32)+o,i=":"+i+"R"+o,o=il++,0<o&&(i+="H"+o.toString(32)),i+=":"}else o=N_++,i=":"+i+"r"+o.toString(32)+":";return r.memoizedState=i},unstable_isNewReconciler:!1},z_={readContext:Kn,useCallback:Jm,useContext:Kn,useEffect:vf,useImperativeHandle:Gm,useInsertionEffect:Km,useLayoutEffect:qm,useMemo:Xm,useReducer:yf,useRef:Hm,useState:function(){return yf(sl)},useDebugValue:wf,useDeferredValue:function(r){var i=qn();return Zm(i,Wt.memoizedState,r)},useTransition:function(){var r=yf(sl)[0],i=qn().memoizedState;return[r,i]},useMutableSource:Pm,useSyncExternalStore:km,useId:ey,unstable_isNewReconciler:!1},V_={readContext:Kn,useCallback:Jm,useContext:Kn,useEffect:vf,useImperativeHandle:Gm,useInsertionEffect:Km,useLayoutEffect:qm,useMemo:Xm,useReducer:gf,useRef:Hm,useState:function(){return gf(sl)},useDebugValue:wf,useDeferredValue:function(r){var i=qn();return Wt===null?i.memoizedState=r:Zm(i,Wt.memoizedState,r)},useTransition:function(){var r=gf(sl)[0],i=qn().memoizedState;return[r,i]},useMutableSource:Pm,useSyncExternalStore:km,useId:ey,unstable_isNewReconciler:!1};function cr(r,i){if(r&&r.defaultProps){i=X({},i),r=r.defaultProps;for(var o in r)i[o]===void 0&&(i[o]=r[o]);return i}return i}function Sf(r,i,o,l){i=r.memoizedState,o=o(l,i),o=o==null?i:X({},i,o),r.memoizedState=o,r.lanes===0&&(r.updateQueue.baseState=o)}var ju={isMounted:function(r){return(r=r._reactInternals)?ie(r)===r:!1},enqueueSetState:function(r,i,o){r=r._reactInternals;var l=pn(),c=qi(r),f=ii(l,c);f.payload=i,o!=null&&(f.callback=o),i=Wi(r,f,c),i!==null&&(hr(i,r,c,l),Au(i,r,c))},enqueueReplaceState:function(r,i,o){r=r._reactInternals;var l=pn(),c=qi(r),f=ii(l,c);f.tag=1,f.payload=i,o!=null&&(f.callback=o),i=Wi(r,f,c),i!==null&&(hr(i,r,c,l),Au(i,r,c))},enqueueForceUpdate:function(r,i){r=r._reactInternals;var o=pn(),l=qi(r),c=ii(o,l);c.tag=2,i!=null&&(c.callback=i),i=Wi(r,c,l),i!==null&&(hr(i,r,l,o),Au(i,r,l))}};function iy(r,i,o,l,c,f,m){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(l,f,m):i.prototype&&i.prototype.isPureReactComponent?!Qa(o,l)||!Qa(c,f):!0}function sy(r,i,o){var l=!1,c=zi,f=i.contextType;return typeof f=="object"&&f!==null?f=Kn(f):(c=En(i)?Cs:rn.current,l=i.contextTypes,f=(l=l!=null)?bo(r,c):zi),i=new i(o,f),r.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=ju,r.stateNode=i,i._reactInternals=r,l&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=c,r.__reactInternalMemoizedMaskedChildContext=f),i}function oy(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&&ju.enqueueReplaceState(i,i.state,null)}function _f(r,i,o,l){var c=r.stateNode;c.props=o,c.state=r.memoizedState,c.refs={},af(r);var f=i.contextType;typeof f=="object"&&f!==null?c.context=Kn(f):(f=En(i)?Cs:rn.current,c.context=bo(r,f)),c.state=r.memoizedState,f=i.getDerivedStateFromProps,typeof f=="function"&&(Sf(r,i,f,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&&ju.enqueueReplaceState(c,c.state,null),Tu(r,o,c,l),c.state=r.memoizedState),typeof c.componentDidMount=="function"&&(r.flags|=4194308)}function Ro(r,i){try{var o="",l=i;do o+=Ae(l),l=l.return;while(l);var c=o}catch(f){c=`
42
+ Error generating stack: `+f.message+`
43
+ `+f.stack}return{value:r,source:i,stack:c,digest:null}}function bf(r,i,o){return{value:r,source:null,stack:o??null,digest:i??null}}function If(r,i){try{console.error(i.value)}catch(o){setTimeout(function(){throw o})}}var $_=typeof WeakMap=="function"?WeakMap:Map;function ay(r,i,o){o=ii(-1,o),o.tag=3,o.payload={element:null};var l=i.value;return o.callback=function(){Ku||(Ku=!0,kf=l),If(r,i)},o}function ly(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(){If(r,i)}}var f=r.stateNode;return f!==null&&typeof f.componentDidCatch=="function"&&(o.callback=function(){If(r,i),typeof l!="function"&&(Qi===null?Qi=new Set([this]):Qi.add(this));var m=i.stack;this.componentDidCatch(i.value,{componentStack:m!==null?m:""})}),o}function uy(r,i,o){var l=r.pingCache;if(l===null){l=r.pingCache=new $_;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=r1.bind(null,r,i,o),i.then(r,r))}function cy(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 dy(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,Wi(o,i,1))),o.lanes|=1),r):(r.flags|=65536,r.lanes=c,r)}var W_=Y.ReactCurrentOwner,xn=!1;function hn(r,i,o,l){i.child=r===null?Mm(i,null,o,l):Do(i,r.child,o,l)}function fy(r,i,o,l,c){o=o.render;var f=i.ref;return Co(i,c),l=pf(r,i,o,l,f,c),o=mf(),r!==null&&!xn?(i.updateQueue=r.updateQueue,i.flags&=-2053,r.lanes&=~c,si(r,i,c)):(Ot&&o&&Gd(i),i.flags|=1,hn(r,i,l,c),i.child)}function hy(r,i,o,l,c){if(r===null){var f=o.type;return typeof f=="function"&&!Hf(f)&&f.defaultProps===void 0&&o.compare===null&&o.defaultProps===void 0?(i.tag=15,i.type=f,py(r,i,f,l,c)):(r=Zu(o.type,null,l,i,i.mode,c),r.ref=i.ref,r.return=i,i.child=r)}if(f=r.child,(r.lanes&c)===0){var m=f.memoizedProps;if(o=o.compare,o=o!==null?o:Qa,o(m,l)&&r.ref===i.ref)return si(r,i,c)}return i.flags|=1,r=Gi(f,l),r.ref=i.ref,r.return=i,i.child=r}function py(r,i,o,l,c){if(r!==null){var f=r.memoizedProps;if(Qa(f,l)&&r.ref===i.ref)if(xn=!1,i.pendingProps=l=f,(r.lanes&c)!==0)(r.flags&131072)!==0&&(xn=!0);else return i.lanes=r.lanes,si(r,i,c)}return Ef(r,i,o,l,c)}function my(r,i,o){var l=i.pendingProps,c=l.children,f=r!==null?r.memoizedState:null;if(l.mode==="hidden")if((i.mode&1)===0)i.memoizedState={baseLanes:0,cachePool:null,transitions:null},wt(Ao,zn),zn|=o;else{if((o&1073741824)===0)return r=f!==null?f.baseLanes|o:o,i.lanes=i.childLanes=1073741824,i.memoizedState={baseLanes:r,cachePool:null,transitions:null},i.updateQueue=null,wt(Ao,zn),zn|=r,null;i.memoizedState={baseLanes:0,cachePool:null,transitions:null},l=f!==null?f.baseLanes:o,wt(Ao,zn),zn|=l}else f!==null?(l=f.baseLanes|o,i.memoizedState=null):l=o,wt(Ao,zn),zn|=l;return hn(r,i,c,o),i.child}function yy(r,i){var o=i.ref;(r===null&&o!==null||r!==null&&r.ref!==o)&&(i.flags|=512,i.flags|=2097152)}function Ef(r,i,o,l,c){var f=En(o)?Cs:rn.current;return f=bo(i,f),Co(i,c),o=pf(r,i,o,l,f,c),l=mf(),r!==null&&!xn?(i.updateQueue=r.updateQueue,i.flags&=-2053,r.lanes&=~c,si(r,i,c)):(Ot&&l&&Gd(i),i.flags|=1,hn(r,i,o,c),i.child)}function gy(r,i,o,l,c){if(En(o)){var f=!0;Eu(i)}else f=!1;if(Co(i,c),i.stateNode===null)Vu(r,i),sy(i,o,l),_f(i,o,l,c),l=!0;else if(r===null){var m=i.stateNode,w=i.memoizedProps;m.props=w;var b=m.context,A=o.contextType;typeof A=="object"&&A!==null?A=Kn(A):(A=En(o)?Cs:rn.current,A=bo(i,A));var V=o.getDerivedStateFromProps,$=typeof V=="function"||typeof m.getSnapshotBeforeUpdate=="function";$||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(w!==l||b!==A)&&oy(i,m,l,A),$i=!1;var z=i.memoizedState;m.state=z,Tu(i,l,m,c),b=i.memoizedState,w!==l||z!==b||In.current||$i?(typeof V=="function"&&(Sf(i,o,V,l),b=i.memoizedState),(w=$i||iy(i,o,w,l,z,b,A))?($||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount()),typeof m.componentDidMount=="function"&&(i.flags|=4194308)):(typeof m.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=l,i.memoizedState=b),m.props=l,m.state=b,m.context=A,l=w):(typeof m.componentDidMount=="function"&&(i.flags|=4194308),l=!1)}else{m=i.stateNode,Tm(r,i),w=i.memoizedProps,A=i.type===i.elementType?w:cr(i.type,w),m.props=A,$=i.pendingProps,z=m.context,b=o.contextType,typeof b=="object"&&b!==null?b=Kn(b):(b=En(o)?Cs:rn.current,b=bo(i,b));var Z=o.getDerivedStateFromProps;(V=typeof Z=="function"||typeof m.getSnapshotBeforeUpdate=="function")||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(w!==$||z!==b)&&oy(i,m,l,b),$i=!1,z=i.memoizedState,m.state=z,Tu(i,l,m,c);var oe=i.memoizedState;w!==$||z!==oe||In.current||$i?(typeof Z=="function"&&(Sf(i,o,Z,l),oe=i.memoizedState),(A=$i||iy(i,o,A,l,z,oe,b)||!1)?(V||typeof m.UNSAFE_componentWillUpdate!="function"&&typeof m.componentWillUpdate!="function"||(typeof m.componentWillUpdate=="function"&&m.componentWillUpdate(l,oe,b),typeof m.UNSAFE_componentWillUpdate=="function"&&m.UNSAFE_componentWillUpdate(l,oe,b)),typeof m.componentDidUpdate=="function"&&(i.flags|=4),typeof m.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof m.componentDidUpdate!="function"||w===r.memoizedProps&&z===r.memoizedState||(i.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||w===r.memoizedProps&&z===r.memoizedState||(i.flags|=1024),i.memoizedProps=l,i.memoizedState=oe),m.props=l,m.state=oe,m.context=b,l=A):(typeof m.componentDidUpdate!="function"||w===r.memoizedProps&&z===r.memoizedState||(i.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||w===r.memoizedProps&&z===r.memoizedState||(i.flags|=1024),l=!1)}return xf(r,i,o,l,f,c)}function xf(r,i,o,l,c,f){yy(r,i);var m=(i.flags&128)!==0;if(!l&&!m)return c&&bm(i,o,!1),si(r,i,f);l=i.stateNode,W_.current=i;var w=m&&typeof o.getDerivedStateFromError!="function"?null:l.render();return i.flags|=1,r!==null&&m?(i.child=Do(i,r.child,null,f),i.child=Do(i,null,w,f)):hn(r,i,w,f),i.memoizedState=l.state,c&&bm(i,o,!0),i.child}function vy(r){var i=r.stateNode;i.pendingContext?Sm(r,i.pendingContext,i.pendingContext!==i.context):i.context&&Sm(r,i.context,!1),lf(r,i.containerInfo)}function wy(r,i,o,l,c){return xo(),ef(c),i.flags|=256,hn(r,i,o,l),i.child}var Df={dehydrated:null,treeContext:null,retryLane:0};function Of(r){return{baseLanes:r,cachePool:null,transitions:null}}function Sy(r,i,o){var l=i.pendingProps,c=Rt.current,f=!1,m=(i.flags&128)!==0,w;if((w=m)||(w=r!==null&&r.memoizedState===null?!1:(c&2)!==0),w?(f=!0,i.flags&=-129):(r===null||r.memoizedState!==null)&&(c|=1),wt(Rt,c&1),r===null)return Zd(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):(m=l.children,r=l.fallback,f?(l=i.mode,f=i.child,m={mode:"hidden",children:m},(l&1)===0&&f!==null?(f.childLanes=0,f.pendingProps=m):f=ec(m,l,0,null),r=ks(r,l,o,null),f.return=i,r.return=i,f.sibling=r,i.child=f,i.child.memoizedState=Of(o),i.memoizedState=Df,r):Cf(i,m));if(c=r.memoizedState,c!==null&&(w=c.dehydrated,w!==null))return H_(r,i,m,l,w,c,o);if(f){f=l.fallback,m=i.mode,c=r.child,w=c.sibling;var b={mode:"hidden",children:l.children};return(m&1)===0&&i.child!==c?(l=i.child,l.childLanes=0,l.pendingProps=b,i.deletions=null):(l=Gi(c,b),l.subtreeFlags=c.subtreeFlags&14680064),w!==null?f=Gi(w,f):(f=ks(f,m,o,null),f.flags|=2),f.return=i,l.return=i,l.sibling=f,i.child=l,l=f,f=i.child,m=r.child.memoizedState,m=m===null?Of(o):{baseLanes:m.baseLanes|o,cachePool:null,transitions:m.transitions},f.memoizedState=m,f.childLanes=r.childLanes&~o,i.memoizedState=Df,l}return f=r.child,r=f.sibling,l=Gi(f,{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 Cf(r,i){return i=ec({mode:"visible",children:i},r.mode,0,null),i.return=r,r.child=i}function zu(r,i,o,l){return l!==null&&ef(l),Do(i,r.child,null,o),r=Cf(i,i.pendingProps.children),r.flags|=2,i.memoizedState=null,r}function H_(r,i,o,l,c,f,m){if(o)return i.flags&256?(i.flags&=-257,l=bf(Error(t(422))),zu(r,i,m,l)):i.memoizedState!==null?(i.child=r.child,i.flags|=128,null):(f=l.fallback,c=i.mode,l=ec({mode:"visible",children:l.children},c,0,null),f=ks(f,c,m,null),f.flags|=2,l.return=i,f.return=i,l.sibling=f,i.child=l,(i.mode&1)!==0&&Do(i,r.child,null,m),i.child.memoizedState=Of(m),i.memoizedState=Df,f);if((i.mode&1)===0)return zu(r,i,m,null);if(c.data==="$!"){if(l=c.nextSibling&&c.nextSibling.dataset,l)var w=l.dgst;return l=w,f=Error(t(419)),l=bf(f,l,void 0),zu(r,i,m,l)}if(w=(m&r.childLanes)!==0,xn||w){if(l=Jt,l!==null){switch(m&-m){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|m))!==0?0:c,c!==0&&c!==f.retryLane&&(f.retryLane=c,ri(r,c),hr(l,r,c,-1))}return Wf(),l=bf(Error(t(421))),zu(r,i,m,l)}return c.data==="$?"?(i.flags|=128,i.child=r.child,i=i1.bind(null,r),c._reactRetry=i,null):(r=f.treeContext,jn=Ui(c.nextSibling),Un=i,Ot=!0,ur=null,r!==null&&(Hn[Qn++]=ti,Hn[Qn++]=ni,Hn[Qn++]=Fs,ti=r.id,ni=r.overflow,Fs=i),i=Cf(i,l.children),i.flags|=4096,i)}function _y(r,i,o){r.lanes|=i;var l=r.alternate;l!==null&&(l.lanes|=i),sf(r.return,i,o)}function Ff(r,i,o,l,c){var f=r.memoizedState;f===null?r.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:l,tail:o,tailMode:c}:(f.isBackwards=i,f.rendering=null,f.renderingStartTime=0,f.last=l,f.tail=o,f.tailMode=c)}function by(r,i,o){var l=i.pendingProps,c=l.revealOrder,f=l.tail;if(hn(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&&_y(r,o,i);else if(r.tag===19)_y(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&&Lu(r)===null&&(c=o),o=o.sibling;o=c,o===null?(c=i.child,i.child=null):(c=o.sibling,o.sibling=null),Ff(i,!1,c,o,f);break;case"backwards":for(o=null,c=i.child,i.child=null;c!==null;){if(r=c.alternate,r!==null&&Lu(r)===null){i.child=c;break}r=c.sibling,c.sibling=o,o=c,c=r}Ff(i,!0,o,null,f);break;case"together":Ff(i,!1,null,null,void 0);break;default:i.memoizedState=null}return i.child}function Vu(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),Ls|=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=Gi(r,r.pendingProps),i.child=o,o.return=i;r.sibling!==null;)r=r.sibling,o=o.sibling=Gi(r,r.pendingProps),o.return=i;o.sibling=null}return i.child}function Q_(r,i,o){switch(i.tag){case 3:vy(i),xo();break;case 5:Nm(i);break;case 1:En(i.type)&&Eu(i);break;case 4:lf(i,i.stateNode.containerInfo);break;case 10:var l=i.type._context,c=i.memoizedProps.value;wt(Ru,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?Sy(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 by(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,my(r,i,o)}return si(r,i,o)}var Iy,Rf,Ey,xy;Iy=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}},Rf=function(){},Ey=function(r,i,o,l){var c=r.memoizedProps;if(c!==l){r=i.stateNode,As(Ar.current);var f=null;switch(o){case"input":c=oo(r,c),l=oo(r,l),f=[];break;case"select":c=X({},c,{value:void 0}),l=X({},l,{value:void 0}),f=[];break;case"textarea":c=Oa(r,c),l=Oa(r,l),f=[];break;default:typeof c.onClick!="function"&&typeof l.onClick=="function"&&(r.onclick=_u)}lo(o,l);var m;o=null;for(A in c)if(!l.hasOwnProperty(A)&&c.hasOwnProperty(A)&&c[A]!=null)if(A==="style"){var w=c[A];for(m in w)w.hasOwnProperty(m)&&(o||(o={}),o[m]="")}else A!=="dangerouslySetInnerHTML"&&A!=="children"&&A!=="suppressContentEditableWarning"&&A!=="suppressHydrationWarning"&&A!=="autoFocus"&&(a.hasOwnProperty(A)?f||(f=[]):(f=f||[]).push(A,null));for(A in l){var b=l[A];if(w=c!=null?c[A]:void 0,l.hasOwnProperty(A)&&b!==w&&(b!=null||w!=null))if(A==="style")if(w){for(m in w)!w.hasOwnProperty(m)||b&&b.hasOwnProperty(m)||(o||(o={}),o[m]="");for(m in b)b.hasOwnProperty(m)&&w[m]!==b[m]&&(o||(o={}),o[m]=b[m])}else o||(f||(f=[]),f.push(A,o)),o=b;else A==="dangerouslySetInnerHTML"?(b=b?b.__html:void 0,w=w?w.__html:void 0,b!=null&&w!==b&&(f=f||[]).push(A,b)):A==="children"?typeof b!="string"&&typeof b!="number"||(f=f||[]).push(A,""+b):A!=="suppressContentEditableWarning"&&A!=="suppressHydrationWarning"&&(a.hasOwnProperty(A)?(b!=null&&A==="onScroll"&&It("scroll",r),f||w===b||(f=[])):(f=f||[]).push(A,b))}o&&(f=f||[]).push("style",o);var A=f;(i.updateQueue=A)&&(i.flags|=4)}},xy=function(r,i,o,l){o!==l&&(i.flags|=4)};function al(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 on(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 K_(r,i,o){var l=i.pendingProps;switch(Jd(i),i.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return on(i),null;case 1:return En(i.type)&&Iu(),on(i),null;case 3:return l=i.stateNode,Fo(),Et(In),Et(rn),df(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(r===null||r.child===null)&&(Cu(i)?i.flags|=4:r===null||r.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,ur!==null&&(zf(ur),ur=null))),Rf(r,i),on(i),null;case 5:uf(i);var c=As(nl.current);if(o=i.type,r!==null&&i.stateNode!=null)Ey(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 on(i),null}if(r=As(Ar.current),Cu(i)){l=i.stateNode,o=i.type;var f=i.memoizedProps;switch(l[Mr]=i,l[Ja]=f,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":Gl(l,f),It("invalid",l);break;case"select":l._wrapperState={wasMultiple:!!f.multiple},It("invalid",l);break;case"textarea":Xl(l,f),It("invalid",l)}lo(o,f),c=null;for(var m in f)if(f.hasOwnProperty(m)){var w=f[m];m==="children"?typeof w=="string"?l.textContent!==w&&(f.suppressHydrationWarning!==!0&&Su(l.textContent,w,r),c=["children",w]):typeof w=="number"&&l.textContent!==""+w&&(f.suppressHydrationWarning!==!0&&Su(l.textContent,w,r),c=["children",""+w]):a.hasOwnProperty(m)&&w!=null&&m==="onScroll"&&It("scroll",l)}switch(o){case"input":so(l),Jl(l,f,!0);break;case"textarea":so(l),Ci(l);break;case"select":case"option":break;default:typeof f.onClick=="function"&&(l.onclick=_u)}l=c,i.updateQueue=l,l!==null&&(i.flags|=4)}else{m=c.nodeType===9?c:c.ownerDocument,r==="http://www.w3.org/1999/xhtml"&&(r=Ca(o)),r==="http://www.w3.org/1999/xhtml"?o==="script"?(r=m.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild)):typeof l.is=="string"?r=m.createElement(o,{is:l.is}):(r=m.createElement(o),o==="select"&&(m=r,l.multiple?m.multiple=!0:l.size&&(m.size=l.size))):r=m.createElementNS(r,o),r[Mr]=i,r[Ja]=l,Iy(r,i,!1,!1),i.stateNode=r;e:{switch(m=Ra(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":Gl(r,l),c=oo(r,l),It("invalid",r);break;case"option":c=l;break;case"select":r._wrapperState={wasMultiple:!!l.multiple},c=X({},l,{value:void 0}),It("invalid",r);break;case"textarea":Xl(r,l),c=Oa(r,l),It("invalid",r);break;default:c=l}lo(o,c),w=c;for(f in w)if(w.hasOwnProperty(f)){var b=w[f];f==="style"?Fa(r,b):f==="dangerouslySetInnerHTML"?(b=b?b.__html:void 0,b!=null&&Wn(r,b)):f==="children"?typeof b=="string"?(o!=="textarea"||b!=="")&&Fi(r,b):typeof b=="number"&&Fi(r,""+b):f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&f!=="autoFocus"&&(a.hasOwnProperty(f)?b!=null&&f==="onScroll"&&It("scroll",r):b!=null&&K(r,f,b,m))}switch(o){case"input":so(r),Jl(r,l,!1);break;case"textarea":so(r),Ci(r);break;case"option":l.value!=null&&r.setAttribute("value",""+qe(l.value));break;case"select":r.multiple=!!l.multiple,f=l.value,f!=null?Oi(r,!!l.multiple,f,!1):l.defaultValue!=null&&Oi(r,!!l.multiple,l.defaultValue,!0);break;default:typeof c.onClick=="function"&&(r.onclick=_u)}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 on(i),null;case 6:if(r&&i.stateNode!=null)xy(r,i,r.memoizedProps,l);else{if(typeof l!="string"&&i.stateNode===null)throw Error(t(166));if(o=As(nl.current),As(Ar.current),Cu(i)){if(l=i.stateNode,o=i.memoizedProps,l[Mr]=i,(f=l.nodeValue!==o)&&(r=Un,r!==null))switch(r.tag){case 3:Su(l.nodeValue,o,(r.mode&1)!==0);break;case 5:r.memoizedProps.suppressHydrationWarning!==!0&&Su(l.nodeValue,o,(r.mode&1)!==0)}f&&(i.flags|=4)}else l=(o.nodeType===9?o:o.ownerDocument).createTextNode(l),l[Mr]=i,i.stateNode=l}return on(i),null;case 13:if(Et(Rt),l=i.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(Ot&&jn!==null&&(i.mode&1)!==0&&(i.flags&128)===0)Cm(),xo(),i.flags|=98560,f=!1;else if(f=Cu(i),l!==null&&l.dehydrated!==null){if(r===null){if(!f)throw Error(t(318));if(f=i.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(t(317));f[Mr]=i}else xo(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;on(i),f=!1}else ur!==null&&(zf(ur),ur=null),f=!0;if(!f)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?Ht===0&&(Ht=3):Wf())),i.updateQueue!==null&&(i.flags|=4),on(i),null);case 4:return Fo(),Rf(r,i),r===null&&Ya(i.stateNode.containerInfo),on(i),null;case 10:return rf(i.type._context),on(i),null;case 17:return En(i.type)&&Iu(),on(i),null;case 19:if(Et(Rt),f=i.memoizedState,f===null)return on(i),null;if(l=(i.flags&128)!==0,m=f.rendering,m===null)if(l)al(f,!1);else{if(Ht!==0||r!==null&&(r.flags&128)!==0)for(r=i.child;r!==null;){if(m=Lu(r),m!==null){for(i.flags|=128,al(f,!1),l=m.updateQueue,l!==null&&(i.updateQueue=l,i.flags|=4),i.subtreeFlags=0,l=o,o=i.child;o!==null;)f=o,r=l,f.flags&=14680066,m=f.alternate,m===null?(f.childLanes=0,f.lanes=r,f.child=null,f.subtreeFlags=0,f.memoizedProps=null,f.memoizedState=null,f.updateQueue=null,f.dependencies=null,f.stateNode=null):(f.childLanes=m.childLanes,f.lanes=m.lanes,f.child=m.child,f.subtreeFlags=0,f.deletions=null,f.memoizedProps=m.memoizedProps,f.memoizedState=m.memoizedState,f.updateQueue=m.updateQueue,f.type=m.type,r=m.dependencies,f.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}f.tail!==null&&Ze()>To&&(i.flags|=128,l=!0,al(f,!1),i.lanes=4194304)}else{if(!l)if(r=Lu(m),r!==null){if(i.flags|=128,l=!0,o=r.updateQueue,o!==null&&(i.updateQueue=o,i.flags|=4),al(f,!0),f.tail===null&&f.tailMode==="hidden"&&!m.alternate&&!Ot)return on(i),null}else 2*Ze()-f.renderingStartTime>To&&o!==1073741824&&(i.flags|=128,l=!0,al(f,!1),i.lanes=4194304);f.isBackwards?(m.sibling=i.child,i.child=m):(o=f.last,o!==null?o.sibling=m:i.child=m,f.last=m)}return f.tail!==null?(i=f.tail,f.rendering=i,f.tail=i.sibling,f.renderingStartTime=Ze(),i.sibling=null,o=Rt.current,wt(Rt,l?o&1|2:o&1),i):(on(i),null);case 22:case 23:return $f(),l=i.memoizedState!==null,r!==null&&r.memoizedState!==null!==l&&(i.flags|=8192),l&&(i.mode&1)!==0?(zn&1073741824)!==0&&(on(i),i.subtreeFlags&6&&(i.flags|=8192)):on(i),null;case 24:return null;case 25:return null}throw Error(t(156,i.tag))}function q_(r,i){switch(Jd(i),i.tag){case 1:return En(i.type)&&Iu(),r=i.flags,r&65536?(i.flags=r&-65537|128,i):null;case 3:return Fo(),Et(In),Et(rn),df(),r=i.flags,(r&65536)!==0&&(r&128)===0?(i.flags=r&-65537|128,i):null;case 5:return uf(i),null;case 13:if(Et(Rt),r=i.memoizedState,r!==null&&r.dehydrated!==null){if(i.alternate===null)throw Error(t(340));xo()}return r=i.flags,r&65536?(i.flags=r&-65537|128,i):null;case 19:return Et(Rt),null;case 4:return Fo(),null;case 10:return rf(i.type._context),null;case 22:case 23:return $f(),null;case 24:return null;default:return null}}var $u=!1,an=!1,Y_=typeof WeakSet=="function"?WeakSet:Set,re=null;function Mo(r,i){var o=r.ref;if(o!==null)if(typeof o=="function")try{o(null)}catch(l){Tt(r,i,l)}else o.current=null}function Mf(r,i,o){try{o()}catch(l){Tt(r,i,l)}}var Dy=!1;function G_(r,i){if(Vd=uu,r=im(),Ld(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,f=l.focusNode;l=l.focusOffset;try{o.nodeType,f.nodeType}catch{o=null;break e}var m=0,w=-1,b=-1,A=0,V=0,$=r,z=null;t:for(;;){for(var Z;$!==o||c!==0&&$.nodeType!==3||(w=m+c),$!==f||l!==0&&$.nodeType!==3||(b=m+l),$.nodeType===3&&(m+=$.nodeValue.length),(Z=$.firstChild)!==null;)z=$,$=Z;for(;;){if($===r)break t;if(z===o&&++A===c&&(w=m),z===f&&++V===l&&(b=m),(Z=$.nextSibling)!==null)break;$=z,z=$.parentNode}$=Z}o=w===-1||b===-1?null:{start:w,end:b}}else o=null}o=o||{start:0,end:0}}else o=null;for($d={focusedElem:r,selectionRange:o},uu=!1,re=i;re!==null;)if(i=re,r=i.child,(i.subtreeFlags&1028)!==0&&r!==null)r.return=i,re=r;else for(;re!==null;){i=re;try{var oe=i.alternate;if((i.flags&1024)!==0)switch(i.tag){case 0:case 11:case 15:break;case 1:if(oe!==null){var le=oe.memoizedProps,Bt=oe.memoizedState,F=i.stateNode,I=F.getSnapshotBeforeUpdate(i.elementType===i.type?le:cr(i.type,le),Bt);F.__reactInternalSnapshotBeforeUpdate=I}break;case 3:var R=i.stateNode.containerInfo;R.nodeType===1?R.textContent="":R.nodeType===9&&R.documentElement&&R.removeChild(R.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(t(163))}}catch(Q){Tt(i,i.return,Q)}if(r=i.sibling,r!==null){r.return=i.return,re=r;break}re=i.return}return oe=Dy,Dy=!1,oe}function ll(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 f=c.destroy;c.destroy=void 0,f!==void 0&&Mf(i,o,f)}c=c.next}while(c!==l)}}function Wu(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 Oy(r){var i=r.alternate;i!==null&&(r.alternate=null,Oy(i)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(i=r.stateNode,i!==null&&(delete i[Mr],delete i[Ja],delete i[Kd],delete i[A_],delete i[T_])),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 Cy(r){return r.tag===5||r.tag===3||r.tag===4}function Fy(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||Cy(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 Tf(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=_u));else if(l!==4&&(r=r.child,r!==null))for(Tf(r,i,o),r=r.sibling;r!==null;)Tf(r,i,o),r=r.sibling}function Lf(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(Lf(r,i,o),r=r.sibling;r!==null;)Lf(r,i,o),r=r.sibling}var en=null,dr=!1;function Hi(r,i,o){for(o=o.child;o!==null;)Ry(r,i,o),o=o.sibling}function Ry(r,i,o){if(Zt&&typeof Zt.onCommitFiberUnmount=="function")try{Zt.onCommitFiberUnmount(yt,o)}catch{}switch(o.tag){case 5:an||Mo(o,i);case 6:var l=en,c=dr;en=null,Hi(r,i,o),en=l,dr=c,en!==null&&(dr?(r=en,o=o.stateNode,r.nodeType===8?r.parentNode.removeChild(o):r.removeChild(o)):en.removeChild(o.stateNode));break;case 18:en!==null&&(dr?(r=en,o=o.stateNode,r.nodeType===8?Qd(r.parentNode,o):r.nodeType===1&&Qd(r,o),ja(r)):Qd(en,o.stateNode));break;case 4:l=en,c=dr,en=o.stateNode.containerInfo,dr=!0,Hi(r,i,o),en=l,dr=c;break;case 0:case 11:case 14:case 15:if(!an&&(l=o.updateQueue,l!==null&&(l=l.lastEffect,l!==null))){c=l=l.next;do{var f=c,m=f.destroy;f=f.tag,m!==void 0&&((f&2)!==0||(f&4)!==0)&&Mf(o,i,m),c=c.next}while(c!==l)}Hi(r,i,o);break;case 1:if(!an&&(Mo(o,i),l=o.stateNode,typeof l.componentWillUnmount=="function"))try{l.props=o.memoizedProps,l.state=o.memoizedState,l.componentWillUnmount()}catch(w){Tt(o,i,w)}Hi(r,i,o);break;case 21:Hi(r,i,o);break;case 22:o.mode&1?(an=(l=an)||o.memoizedState!==null,Hi(r,i,o),an=l):Hi(r,i,o);break;default:Hi(r,i,o)}}function My(r){var i=r.updateQueue;if(i!==null){r.updateQueue=null;var o=r.stateNode;o===null&&(o=r.stateNode=new Y_),i.forEach(function(l){var c=s1.bind(null,r,l);o.has(l)||(o.add(l),l.then(c,c))})}}function fr(r,i){var o=i.deletions;if(o!==null)for(var l=0;l<o.length;l++){var c=o[l];try{var f=r,m=i,w=m;e:for(;w!==null;){switch(w.tag){case 5:en=w.stateNode,dr=!1;break e;case 3:en=w.stateNode.containerInfo,dr=!0;break e;case 4:en=w.stateNode.containerInfo,dr=!0;break e}w=w.return}if(en===null)throw Error(t(160));Ry(f,m,c),en=null,dr=!1;var b=c.alternate;b!==null&&(b.return=null),c.return=null}catch(A){Tt(c,i,A)}}if(i.subtreeFlags&12854)for(i=i.child;i!==null;)Ay(i,r),i=i.sibling}function Ay(r,i){var o=r.alternate,l=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:if(fr(i,r),Lr(r),l&4){try{ll(3,r,r.return),Wu(3,r)}catch(le){Tt(r,r.return,le)}try{ll(5,r,r.return)}catch(le){Tt(r,r.return,le)}}break;case 1:fr(i,r),Lr(r),l&512&&o!==null&&Mo(o,o.return);break;case 5:if(fr(i,r),Lr(r),l&512&&o!==null&&Mo(o,o.return),r.flags&32){var c=r.stateNode;try{Fi(c,"")}catch(le){Tt(r,r.return,le)}}if(l&4&&(c=r.stateNode,c!=null)){var f=r.memoizedProps,m=o!==null?o.memoizedProps:f,w=r.type,b=r.updateQueue;if(r.updateQueue=null,b!==null)try{w==="input"&&f.type==="radio"&&f.name!=null&&xr(c,f),Ra(w,m);var A=Ra(w,f);for(m=0;m<b.length;m+=2){var V=b[m],$=b[m+1];V==="style"?Fa(c,$):V==="dangerouslySetInnerHTML"?Wn(c,$):V==="children"?Fi(c,$):K(c,V,$,A)}switch(w){case"input":Da(c,f);break;case"textarea":Dr(c,f);break;case"select":var z=c._wrapperState.wasMultiple;c._wrapperState.wasMultiple=!!f.multiple;var Z=f.value;Z!=null?Oi(c,!!f.multiple,Z,!1):z!==!!f.multiple&&(f.defaultValue!=null?Oi(c,!!f.multiple,f.defaultValue,!0):Oi(c,!!f.multiple,f.multiple?[]:"",!1))}c[Ja]=f}catch(le){Tt(r,r.return,le)}}break;case 6:if(fr(i,r),Lr(r),l&4){if(r.stateNode===null)throw Error(t(162));c=r.stateNode,f=r.memoizedProps;try{c.nodeValue=f}catch(le){Tt(r,r.return,le)}}break;case 3:if(fr(i,r),Lr(r),l&4&&o!==null&&o.memoizedState.isDehydrated)try{ja(i.containerInfo)}catch(le){Tt(r,r.return,le)}break;case 4:fr(i,r),Lr(r);break;case 13:fr(i,r),Lr(r),c=r.child,c.flags&8192&&(f=c.memoizedState!==null,c.stateNode.isHidden=f,!f||c.alternate!==null&&c.alternate.memoizedState!==null||(Pf=Ze())),l&4&&My(r);break;case 22:if(V=o!==null&&o.memoizedState!==null,r.mode&1?(an=(A=an)||V,fr(i,r),an=A):fr(i,r),Lr(r),l&8192){if(A=r.memoizedState!==null,(r.stateNode.isHidden=A)&&!V&&(r.mode&1)!==0)for(re=r,V=r.child;V!==null;){for($=re=V;re!==null;){switch(z=re,Z=z.child,z.tag){case 0:case 11:case 14:case 15:ll(4,z,z.return);break;case 1:Mo(z,z.return);var oe=z.stateNode;if(typeof oe.componentWillUnmount=="function"){l=z,o=z.return;try{i=l,oe.props=i.memoizedProps,oe.state=i.memoizedState,oe.componentWillUnmount()}catch(le){Tt(l,o,le)}}break;case 5:Mo(z,z.return);break;case 22:if(z.memoizedState!==null){By($);continue}}Z!==null?(Z.return=z,re=Z):By($)}V=V.sibling}e:for(V=null,$=r;;){if($.tag===5){if(V===null){V=$;try{c=$.stateNode,A?(f=c.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none"):(w=$.stateNode,b=$.memoizedProps.style,m=b!=null&&b.hasOwnProperty("display")?b.display:null,w.style.display=or("display",m))}catch(le){Tt(r,r.return,le)}}}else if($.tag===6){if(V===null)try{$.stateNode.nodeValue=A?"":$.memoizedProps}catch(le){Tt(r,r.return,le)}}else if(($.tag!==22&&$.tag!==23||$.memoizedState===null||$===r)&&$.child!==null){$.child.return=$,$=$.child;continue}if($===r)break e;for(;$.sibling===null;){if($.return===null||$.return===r)break e;V===$&&(V=null),$=$.return}V===$&&(V=null),$.sibling.return=$.return,$=$.sibling}}break;case 19:fr(i,r),Lr(r),l&4&&My(r);break;case 21:break;default:fr(i,r),Lr(r)}}function Lr(r){var i=r.flags;if(i&2){try{e:{for(var o=r.return;o!==null;){if(Cy(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&&(Fi(c,""),l.flags&=-33);var f=Fy(r);Lf(r,f,c);break;case 3:case 4:var m=l.stateNode.containerInfo,w=Fy(r);Tf(r,w,m);break;default:throw Error(t(161))}}catch(b){Tt(r,r.return,b)}r.flags&=-3}i&4096&&(r.flags&=-4097)}function J_(r,i,o){re=r,Ty(r)}function Ty(r,i,o){for(var l=(r.mode&1)!==0;re!==null;){var c=re,f=c.child;if(c.tag===22&&l){var m=c.memoizedState!==null||$u;if(!m){var w=c.alternate,b=w!==null&&w.memoizedState!==null||an;w=$u;var A=an;if($u=m,(an=b)&&!A)for(re=c;re!==null;)m=re,b=m.child,m.tag===22&&m.memoizedState!==null?Ny(c):b!==null?(b.return=m,re=b):Ny(c);for(;f!==null;)re=f,Ty(f),f=f.sibling;re=c,$u=w,an=A}Ly(r)}else(c.subtreeFlags&8772)!==0&&f!==null?(f.return=c,re=f):Ly(r)}}function Ly(r){for(;re!==null;){var i=re;if((i.flags&8772)!==0){var o=i.alternate;try{if((i.flags&8772)!==0)switch(i.tag){case 0:case 11:case 15:an||Wu(5,i);break;case 1:var l=i.stateNode;if(i.flags&4&&!an)if(o===null)l.componentDidMount();else{var c=i.elementType===i.type?o.memoizedProps:cr(i.type,o.memoizedProps);l.componentDidUpdate(c,o.memoizedState,l.__reactInternalSnapshotBeforeUpdate)}var f=i.updateQueue;f!==null&&Bm(i,f,l);break;case 3:var m=i.updateQueue;if(m!==null){if(o=null,i.child!==null)switch(i.child.tag){case 5:o=i.child.stateNode;break;case 1:o=i.child.stateNode}Bm(i,m,o)}break;case 5:var w=i.stateNode;if(o===null&&i.flags&4){o=w;var b=i.memoizedProps;switch(i.type){case"button":case"input":case"select":case"textarea":b.autoFocus&&o.focus();break;case"img":b.src&&(o.src=b.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(i.memoizedState===null){var A=i.alternate;if(A!==null){var V=A.memoizedState;if(V!==null){var $=V.dehydrated;$!==null&&ja($)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(t(163))}an||i.flags&512&&Af(i)}catch(z){Tt(i,i.return,z)}}if(i===r){re=null;break}if(o=i.sibling,o!==null){o.return=i.return,re=o;break}re=i.return}}function By(r){for(;re!==null;){var i=re;if(i===r){re=null;break}var o=i.sibling;if(o!==null){o.return=i.return,re=o;break}re=i.return}}function Ny(r){for(;re!==null;){var i=re;try{switch(i.tag){case 0:case 11:case 15:var o=i.return;try{Wu(4,i)}catch(b){Tt(i,o,b)}break;case 1:var l=i.stateNode;if(typeof l.componentDidMount=="function"){var c=i.return;try{l.componentDidMount()}catch(b){Tt(i,c,b)}}var f=i.return;try{Af(i)}catch(b){Tt(i,f,b)}break;case 5:var m=i.return;try{Af(i)}catch(b){Tt(i,m,b)}}}catch(b){Tt(i,i.return,b)}if(i===r){re=null;break}var w=i.sibling;if(w!==null){w.return=i.return,re=w;break}re=i.return}}var X_=Math.ceil,Hu=Y.ReactCurrentDispatcher,Bf=Y.ReactCurrentOwner,Yn=Y.ReactCurrentBatchConfig,Je=0,Jt=null,Ut=null,tn=0,zn=0,Ao=ji(0),Ht=0,ul=null,Ls=0,Qu=0,Nf=0,cl=null,Dn=null,Pf=0,To=1/0,oi=null,Ku=!1,kf=null,Qi=null,qu=!1,Ki=null,Yu=0,dl=0,Uf=null,Gu=-1,Ju=0;function pn(){return(Je&6)!==0?Ze():Gu!==-1?Gu:Gu=Ze()}function qi(r){return(r.mode&1)===0?1:(Je&2)!==0&&tn!==0?tn&-tn:B_.transition!==null?(Ju===0&&(Ju=Fp()),Ju):(r=lt,r!==0||(r=window.event,r=r===void 0?16:kp(r.type)),r)}function hr(r,i,o,l){if(50<dl)throw dl=0,Uf=null,Error(t(185));Ba(r,o,l),((Je&2)===0||r!==Jt)&&(r===Jt&&((Je&2)===0&&(Qu|=o),Ht===4&&Yi(r,tn)),On(r,l),o===1&&Je===0&&(i.mode&1)===0&&(To=Ze()+500,xu&&Vi()))}function On(r,i){var o=r.callbackNode;BS(r,i);var l=ou(r,r===Jt?tn:0);if(l===0)o!==null&&Gr(o),r.callbackNode=null,r.callbackPriority=0;else if(i=l&-l,r.callbackPriority!==i){if(o!=null&&Gr(o),i===1)r.tag===0?L_(ky.bind(null,r)):Im(ky.bind(null,r)),R_(function(){(Je&6)===0&&Vi()}),o=null;else{switch(Rp(l)){case 1:o=Jr;break;case 4:o=Rr;break;case 16:o=Xr;break;case 536870912:o=He;break;default:o=Xr}o=Qy(o,Py.bind(null,r))}r.callbackPriority=i,r.callbackNode=o}}function Py(r,i){if(Gu=-1,Ju=0,(Je&6)!==0)throw Error(t(327));var o=r.callbackNode;if(Lo()&&r.callbackNode!==o)return null;var l=ou(r,r===Jt?tn:0);if(l===0)return null;if((l&30)!==0||(l&r.expiredLanes)!==0||i)i=Xu(r,l);else{i=l;var c=Je;Je|=2;var f=jy();(Jt!==r||tn!==i)&&(oi=null,To=Ze()+500,Ns(r,i));do try{t1();break}catch(w){Uy(r,w)}while(!0);nf(),Hu.current=f,Je=c,Ut!==null?i=0:(Jt=null,tn=0,i=Ht)}if(i!==0){if(i===2&&(c=vd(r),c!==0&&(l=c,i=jf(r,c))),i===1)throw o=ul,Ns(r,0),Yi(r,l),On(r,Ze()),o;if(i===6)Yi(r,l);else{if(c=r.current.alternate,(l&30)===0&&!Z_(c)&&(i=Xu(r,l),i===2&&(f=vd(r),f!==0&&(l=f,i=jf(r,f))),i===1))throw o=ul,Ns(r,0),Yi(r,l),On(r,Ze()),o;switch(r.finishedWork=c,r.finishedLanes=l,i){case 0:case 1:throw Error(t(345));case 2:Ps(r,Dn,oi);break;case 3:if(Yi(r,l),(l&130023424)===l&&(i=Pf+500-Ze(),10<i)){if(ou(r,0)!==0)break;if(c=r.suspendedLanes,(c&l)!==l){pn(),r.pingedLanes|=r.suspendedLanes&c;break}r.timeoutHandle=Hd(Ps.bind(null,r,Dn,oi),i);break}Ps(r,Dn,oi);break;case 4:if(Yi(r,l),(l&4194240)===l)break;for(i=r.eventTimes,c=-1;0<l;){var m=31-et(l);f=1<<m,m=i[m],m>c&&(c=m),l&=~f}if(l=c,l=Ze()-l,l=(120>l?120:480>l?480:1080>l?1080:1920>l?1920:3e3>l?3e3:4320>l?4320:1960*X_(l/1960))-l,10<l){r.timeoutHandle=Hd(Ps.bind(null,r,Dn,oi),l);break}Ps(r,Dn,oi);break;case 5:Ps(r,Dn,oi);break;default:throw Error(t(329))}}}return On(r,Ze()),r.callbackNode===o?Py.bind(null,r):null}function jf(r,i){var o=cl;return r.current.memoizedState.isDehydrated&&(Ns(r,i).flags|=256),r=Xu(r,i),r!==2&&(i=Dn,Dn=o,i!==null&&zf(i)),r}function zf(r){Dn===null?Dn=r:Dn.push.apply(Dn,r)}function Z_(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],f=c.getSnapshot;c=c.value;try{if(!lr(f(),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 Yi(r,i){for(i&=~Nf,i&=~Qu,r.suspendedLanes|=i,r.pingedLanes&=~i,r=r.expirationTimes;0<i;){var o=31-et(i),l=1<<o;r[o]=-1,i&=~l}}function ky(r){if((Je&6)!==0)throw Error(t(327));Lo();var i=ou(r,0);if((i&1)===0)return On(r,Ze()),null;var o=Xu(r,i);if(r.tag!==0&&o===2){var l=vd(r);l!==0&&(i=l,o=jf(r,l))}if(o===1)throw o=ul,Ns(r,0),Yi(r,i),On(r,Ze()),o;if(o===6)throw Error(t(345));return r.finishedWork=r.current.alternate,r.finishedLanes=i,Ps(r,Dn,oi),On(r,Ze()),null}function Vf(r,i){var o=Je;Je|=1;try{return r(i)}finally{Je=o,Je===0&&(To=Ze()+500,xu&&Vi())}}function Bs(r){Ki!==null&&Ki.tag===0&&(Je&6)===0&&Lo();var i=Je;Je|=1;var o=Yn.transition,l=lt;try{if(Yn.transition=null,lt=1,r)return r()}finally{lt=l,Yn.transition=o,Je=i,(Je&6)===0&&Vi()}}function $f(){zn=Ao.current,Et(Ao)}function Ns(r,i){r.finishedWork=null,r.finishedLanes=0;var o=r.timeoutHandle;if(o!==-1&&(r.timeoutHandle=-1,F_(o)),Ut!==null)for(o=Ut.return;o!==null;){var l=o;switch(Jd(l),l.tag){case 1:l=l.type.childContextTypes,l!=null&&Iu();break;case 3:Fo(),Et(In),Et(rn),df();break;case 5:uf(l);break;case 4:Fo();break;case 13:Et(Rt);break;case 19:Et(Rt);break;case 10:rf(l.type._context);break;case 22:case 23:$f()}o=o.return}if(Jt=r,Ut=r=Gi(r.current,null),tn=zn=i,Ht=0,ul=null,Nf=Qu=Ls=0,Dn=cl=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,f=o.pending;if(f!==null){var m=f.next;f.next=c,l.next=m}o.pending=l}Ms=null}return r}function Uy(r,i){do{var o=Ut;try{if(nf(),Bu.current=Uu,Nu){for(var l=Mt.memoizedState;l!==null;){var c=l.queue;c!==null&&(c.pending=null),l=l.next}Nu=!1}if(Ts=0,Gt=Wt=Mt=null,rl=!1,il=0,Bf.current=null,o===null||o.return===null){Ht=1,ul=i,Ut=null;break}e:{var f=r,m=o.return,w=o,b=i;if(i=tn,w.flags|=32768,b!==null&&typeof b=="object"&&typeof b.then=="function"){var A=b,V=w,$=V.tag;if((V.mode&1)===0&&($===0||$===11||$===15)){var z=V.alternate;z?(V.updateQueue=z.updateQueue,V.memoizedState=z.memoizedState,V.lanes=z.lanes):(V.updateQueue=null,V.memoizedState=null)}var Z=cy(m);if(Z!==null){Z.flags&=-257,dy(Z,m,w,f,i),Z.mode&1&&uy(f,A,i),i=Z,b=A;var oe=i.updateQueue;if(oe===null){var le=new Set;le.add(b),i.updateQueue=le}else oe.add(b);break e}else{if((i&1)===0){uy(f,A,i),Wf();break e}b=Error(t(426))}}else if(Ot&&w.mode&1){var Bt=cy(m);if(Bt!==null){(Bt.flags&65536)===0&&(Bt.flags|=256),dy(Bt,m,w,f,i),ef(Ro(b,w));break e}}f=b=Ro(b,w),Ht!==4&&(Ht=2),cl===null?cl=[f]:cl.push(f),f=m;do{switch(f.tag){case 3:f.flags|=65536,i&=-i,f.lanes|=i;var F=ay(f,b,i);Lm(f,F);break e;case 1:w=b;var I=f.type,R=f.stateNode;if((f.flags&128)===0&&(typeof I.getDerivedStateFromError=="function"||R!==null&&typeof R.componentDidCatch=="function"&&(Qi===null||!Qi.has(R)))){f.flags|=65536,i&=-i,f.lanes|=i;var Q=ly(f,w,i);Lm(f,Q);break e}}f=f.return}while(f!==null)}Vy(o)}catch(ue){i=ue,Ut===o&&o!==null&&(Ut=o=o.return);continue}break}while(!0)}function jy(){var r=Hu.current;return Hu.current=Uu,r===null?Uu:r}function Wf(){(Ht===0||Ht===3||Ht===2)&&(Ht=4),Jt===null||(Ls&268435455)===0&&(Qu&268435455)===0||Yi(Jt,tn)}function Xu(r,i){var o=Je;Je|=2;var l=jy();(Jt!==r||tn!==i)&&(oi=null,Ns(r,i));do try{e1();break}catch(c){Uy(r,c)}while(!0);if(nf(),Je=o,Hu.current=l,Ut!==null)throw Error(t(261));return Jt=null,tn=0,Ht}function e1(){for(;Ut!==null;)zy(Ut)}function t1(){for(;Ut!==null&&!xs();)zy(Ut)}function zy(r){var i=Hy(r.alternate,r,zn);r.memoizedProps=r.pendingProps,i===null?Vy(r):Ut=i,Bf.current=null}function Vy(r){var i=r;do{var o=i.alternate;if(r=i.return,(i.flags&32768)===0){if(o=K_(o,i,zn),o!==null){Ut=o;return}}else{if(o=q_(o,i),o!==null){o.flags&=32767,Ut=o;return}if(r!==null)r.flags|=32768,r.subtreeFlags=0,r.deletions=null;else{Ht=6,Ut=null;return}}if(i=i.sibling,i!==null){Ut=i;return}Ut=i=r}while(i!==null);Ht===0&&(Ht=5)}function Ps(r,i,o){var l=lt,c=Yn.transition;try{Yn.transition=null,lt=1,n1(r,i,o,l)}finally{Yn.transition=c,lt=l}return null}function n1(r,i,o,l){do Lo();while(Ki!==null);if((Je&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 f=o.lanes|o.childLanes;if(NS(r,f),r===Jt&&(Ut=Jt=null,tn=0),(o.subtreeFlags&2064)===0&&(o.flags&2064)===0||qu||(qu=!0,Qy(Xr,function(){return Lo(),null})),f=(o.flags&15990)!==0,(o.subtreeFlags&15990)!==0||f){f=Yn.transition,Yn.transition=null;var m=lt;lt=1;var w=Je;Je|=4,Bf.current=null,G_(r,o),Ay(o,r),b_($d),uu=!!Vd,$d=Vd=null,r.current=o,J_(o),ar(),Je=w,lt=m,Yn.transition=f}else r.current=o;if(qu&&(qu=!1,Ki=r,Yu=c),f=r.pendingLanes,f===0&&(Qi=null),Ds(o.stateNode),On(r,Ze()),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(Ku)throw Ku=!1,r=kf,kf=null,r;return(Yu&1)!==0&&r.tag!==0&&Lo(),f=r.pendingLanes,(f&1)!==0?r===Uf?dl++:(dl=0,Uf=r):dl=0,Vi(),null}function Lo(){if(Ki!==null){var r=Rp(Yu),i=Yn.transition,o=lt;try{if(Yn.transition=null,lt=16>r?16:r,Ki===null)var l=!1;else{if(r=Ki,Ki=null,Yu=0,(Je&6)!==0)throw Error(t(331));var c=Je;for(Je|=4,re=r.current;re!==null;){var f=re,m=f.child;if((re.flags&16)!==0){var w=f.deletions;if(w!==null){for(var b=0;b<w.length;b++){var A=w[b];for(re=A;re!==null;){var V=re;switch(V.tag){case 0:case 11:case 15:ll(8,V,f)}var $=V.child;if($!==null)$.return=V,re=$;else for(;re!==null;){V=re;var z=V.sibling,Z=V.return;if(Oy(V),V===A){re=null;break}if(z!==null){z.return=Z,re=z;break}re=Z}}}var oe=f.alternate;if(oe!==null){var le=oe.child;if(le!==null){oe.child=null;do{var Bt=le.sibling;le.sibling=null,le=Bt}while(le!==null)}}re=f}}if((f.subtreeFlags&2064)!==0&&m!==null)m.return=f,re=m;else e:for(;re!==null;){if(f=re,(f.flags&2048)!==0)switch(f.tag){case 0:case 11:case 15:ll(9,f,f.return)}var F=f.sibling;if(F!==null){F.return=f.return,re=F;break e}re=f.return}}var I=r.current;for(re=I;re!==null;){m=re;var R=m.child;if((m.subtreeFlags&2064)!==0&&R!==null)R.return=m,re=R;else e:for(m=I;re!==null;){if(w=re,(w.flags&2048)!==0)try{switch(w.tag){case 0:case 11:case 15:Wu(9,w)}}catch(ue){Tt(w,w.return,ue)}if(w===m){re=null;break e}var Q=w.sibling;if(Q!==null){Q.return=w.return,re=Q;break e}re=w.return}}if(Je=c,Vi(),Zt&&typeof Zt.onPostCommitFiberRoot=="function")try{Zt.onPostCommitFiberRoot(yt,r)}catch{}l=!0}return l}finally{lt=o,Yn.transition=i}}return!1}function $y(r,i,o){i=Ro(o,i),i=ay(r,i,1),r=Wi(r,i,1),i=pn(),r!==null&&(Ba(r,1,i),On(r,i))}function Tt(r,i,o){if(r.tag===3)$y(r,r,o);else for(;i!==null;){if(i.tag===3){$y(i,r,o);break}else if(i.tag===1){var l=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Qi===null||!Qi.has(l))){r=Ro(o,r),r=ly(i,r,1),i=Wi(i,r,1),r=pn(),i!==null&&(Ba(i,1,r),On(i,r));break}}i=i.return}}function r1(r,i,o){var l=r.pingCache;l!==null&&l.delete(i),i=pn(),r.pingedLanes|=r.suspendedLanes&o,Jt===r&&(tn&o)===o&&(Ht===4||Ht===3&&(tn&130023424)===tn&&500>Ze()-Pf?Ns(r,0):Nf|=o),On(r,i)}function Wy(r,i){i===0&&((r.mode&1)===0?i=1:(i=su,su<<=1,(su&130023424)===0&&(su=4194304)));var o=pn();r=ri(r,i),r!==null&&(Ba(r,i,o),On(r,o))}function i1(r){var i=r.memoizedState,o=0;i!==null&&(o=i.retryLane),Wy(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),Wy(r,o)}var Hy;Hy=function(r,i,o){if(r!==null)if(r.memoizedProps!==i.pendingProps||In.current)xn=!0;else{if((r.lanes&o)===0&&(i.flags&128)===0)return xn=!1,Q_(r,i,o);xn=(r.flags&131072)!==0}else xn=!1,Ot&&(i.flags&1048576)!==0&&Em(i,Ou,i.index);switch(i.lanes=0,i.tag){case 2:var l=i.type;Vu(r,i),r=i.pendingProps;var c=bo(i,rn.current);Co(i,o),c=pf(null,i,l,r,c,o);var f=mf();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,En(l)?(f=!0,Eu(i)):f=!1,i.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,af(i),c.updater=ju,i.stateNode=c,c._reactInternals=i,_f(i,l,r,o),i=xf(null,i,l,!0,f,o)):(i.tag=0,Ot&&f&&Gd(i),hn(null,i,c,o),i=i.child),i;case 16:l=i.elementType;e:{switch(Vu(r,i),r=i.pendingProps,c=l._init,l=c(l._payload),i.type=l,c=i.tag=a1(l),r=cr(l,r),c){case 0:i=Ef(null,i,l,r,o);break e;case 1:i=gy(null,i,l,r,o);break e;case 11:i=fy(null,i,l,r,o);break e;case 14:i=hy(null,i,l,cr(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:cr(l,c),Ef(r,i,l,c,o);case 1:return l=i.type,c=i.pendingProps,c=i.elementType===l?c:cr(l,c),gy(r,i,l,c,o);case 3:e:{if(vy(i),r===null)throw Error(t(387));l=i.pendingProps,f=i.memoizedState,c=f.element,Tm(r,i),Tu(i,l,null,o);var m=i.memoizedState;if(l=m.element,f.isDehydrated)if(f={element:l,isDehydrated:!1,cache:m.cache,pendingSuspenseBoundaries:m.pendingSuspenseBoundaries,transitions:m.transitions},i.updateQueue.baseState=f,i.memoizedState=f,i.flags&256){c=Ro(Error(t(423)),i),i=wy(r,i,l,o,c);break e}else if(l!==c){c=Ro(Error(t(424)),i),i=wy(r,i,l,o,c);break e}else for(jn=Ui(i.stateNode.containerInfo.firstChild),Un=i,Ot=!0,ur=null,o=Mm(i,null,l,o),i.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if(xo(),l===c){i=si(r,i,o);break e}hn(r,i,l,o)}i=i.child}return i;case 5:return Nm(i),r===null&&Zd(i),l=i.type,c=i.pendingProps,f=r!==null?r.memoizedProps:null,m=c.children,Wd(l,c)?m=null:f!==null&&Wd(l,f)&&(i.flags|=32),yy(r,i),hn(r,i,m,o),i.child;case 6:return r===null&&Zd(i),null;case 13:return Sy(r,i,o);case 4:return lf(i,i.stateNode.containerInfo),l=i.pendingProps,r===null?i.child=Do(i,null,l,o):hn(r,i,l,o),i.child;case 11:return l=i.type,c=i.pendingProps,c=i.elementType===l?c:cr(l,c),fy(r,i,l,c,o);case 7:return hn(r,i,i.pendingProps,o),i.child;case 8:return hn(r,i,i.pendingProps.children,o),i.child;case 12:return hn(r,i,i.pendingProps.children,o),i.child;case 10:e:{if(l=i.type._context,c=i.pendingProps,f=i.memoizedProps,m=c.value,wt(Ru,l._currentValue),l._currentValue=m,f!==null)if(lr(f.value,m)){if(f.children===c.children&&!In.current){i=si(r,i,o);break e}}else for(f=i.child,f!==null&&(f.return=i);f!==null;){var w=f.dependencies;if(w!==null){m=f.child;for(var b=w.firstContext;b!==null;){if(b.context===l){if(f.tag===1){b=ii(-1,o&-o),b.tag=2;var A=f.updateQueue;if(A!==null){A=A.shared;var V=A.pending;V===null?b.next=b:(b.next=V.next,V.next=b),A.pending=b}}f.lanes|=o,b=f.alternate,b!==null&&(b.lanes|=o),sf(f.return,o,i),w.lanes|=o;break}b=b.next}}else if(f.tag===10)m=f.type===i.type?null:f.child;else if(f.tag===18){if(m=f.return,m===null)throw Error(t(341));m.lanes|=o,w=m.alternate,w!==null&&(w.lanes|=o),sf(m,o,i),m=f.sibling}else m=f.child;if(m!==null)m.return=f;else for(m=f;m!==null;){if(m===i){m=null;break}if(f=m.sibling,f!==null){f.return=m.return,m=f;break}m=m.return}f=m}hn(r,i,c.children,o),i=i.child}return i;case 9:return c=i.type,l=i.pendingProps.children,Co(i,o),c=Kn(c),l=l(c),i.flags|=1,hn(r,i,l,o),i.child;case 14:return l=i.type,c=cr(l,i.pendingProps),c=cr(l.type,c),hy(r,i,l,c,o);case 15:return py(r,i,i.type,i.pendingProps,o);case 17:return l=i.type,c=i.pendingProps,c=i.elementType===l?c:cr(l,c),Vu(r,i),i.tag=1,En(l)?(r=!0,Eu(i)):r=!1,Co(i,o),sy(i,l,c),_f(i,l,c,o),xf(null,i,l,!0,r,o);case 19:return by(r,i,o);case 22:return my(r,i,o)}throw Error(t(156,i.tag))};function Qy(r,i){return bt(r,i)}function o1(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 Gn(r,i,o,l){return new o1(r,i,o,l)}function Hf(r){return r=r.prototype,!(!r||!r.isReactComponent)}function a1(r){if(typeof r=="function")return Hf(r)?1:0;if(r!=null){if(r=r.$$typeof,r===Ue)return 11;if(r===kt)return 14}return 2}function Gi(r,i){var o=r.alternate;return o===null?(o=Gn(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 Zu(r,i,o,l,c,f){var m=2;if(l=r,typeof r=="function")Hf(r)&&(m=1);else if(typeof r=="string")m=5;else e:switch(r){case T:return ks(o.children,c,f,i);case J:m=8,c|=8;break;case de:return r=Gn(12,o,i,c|2),r.elementType=de,r.lanes=f,r;case Xe:return r=Gn(13,o,i,c),r.elementType=Xe,r.lanes=f,r;case gt:return r=Gn(19,o,i,c),r.elementType=gt,r.lanes=f,r;case mt:return ec(o,c,f,i);default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case te:m=10;break e;case nt:m=9;break e;case Ue:m=11;break e;case kt:m=14;break e;case Vt:m=16,l=null;break e}throw Error(t(130,r==null?r:typeof r,""))}return i=Gn(m,o,i,c),i.elementType=r,i.type=l,i.lanes=f,i}function ks(r,i,o,l){return r=Gn(7,r,l,i),r.lanes=o,r}function ec(r,i,o,l){return r=Gn(22,r,l,i),r.elementType=mt,r.lanes=o,r.stateNode={isHidden:!1},r}function Qf(r,i,o){return r=Gn(6,r,null,i),r.lanes=o,r}function Kf(r,i,o){return i=Gn(4,r.children!==null?r.children:[],r.key,i),i.lanes=o,i.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},i}function l1(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=wd(0),this.expirationTimes=wd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=wd(0),this.identifierPrefix=l,this.onRecoverableError=c,this.mutableSourceEagerHydrationData=null}function qf(r,i,o,l,c,f,m,w,b){return r=new l1(r,i,o,w,b),i===1?(i=1,f===!0&&(i|=8)):i=0,f=Gn(3,null,null,i),r.current=f,f.stateNode=r,f.memoizedState={element:l,isDehydrated:o,cache:null,transitions:null,pendingSuspenseBoundaries:null},af(f),r}function u1(r,i,o){var l=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Be,key:l==null?null:""+l,children:r,containerInfo:i,implementation:o}}function Ky(r){if(!r)return zi;r=r._reactInternals;e:{if(ie(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(En(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(En(o))return _m(r,o,i)}return i}function qy(r,i,o,l,c,f,m,w,b){return r=qf(o,l,!0,r,c,f,m,w,b),r.context=Ky(null),o=r.current,l=pn(),c=qi(o),f=ii(l,c),f.callback=i??null,Wi(o,f,c),r.current.lanes=c,Ba(r,c,l),On(r,l),r}function tc(r,i,o,l){var c=i.current,f=pn(),m=qi(c);return o=Ky(o),i.context===null?i.context=o:i.pendingContext=o,i=ii(f,m),i.payload={element:r},l=l===void 0?null:l,l!==null&&(i.callback=l),r=Wi(c,i,m),r!==null&&(hr(r,c,m,f),Au(r,c,m)),m}function nc(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 Yy(r,i){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var o=r.retryLane;r.retryLane=o!==0&&o<i?o:i}}function Yf(r,i){Yy(r,i),(r=r.alternate)&&Yy(r,i)}function c1(){return null}var Gy=typeof reportError=="function"?reportError:function(r){console.error(r)};function Gf(r){this._internalRoot=r}rc.prototype.render=Gf.prototype.render=function(r){var i=this._internalRoot;if(i===null)throw Error(t(409));tc(r,i,null,null)},rc.prototype.unmount=Gf.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var i=r.containerInfo;Bs(function(){tc(null,r,null,null)}),i[Zr]=null}};function rc(r){this._internalRoot=r}rc.prototype.unstable_scheduleHydration=function(r){if(r){var i=Tp();r={blockedOn:null,target:r,priority:i};for(var o=0;o<Ni.length&&i!==0&&i<Ni[o].priority;o++);Ni.splice(o,0,r),o===0&&Np(r)}};function Jf(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function ic(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11&&(r.nodeType!==8||r.nodeValue!==" react-mount-point-unstable "))}function Jy(){}function d1(r,i,o,l,c){if(c){if(typeof l=="function"){var f=l;l=function(){var A=nc(m);f.call(A)}}var m=qy(i,l,r,0,null,!1,!1,"",Jy);return r._reactRootContainer=m,r[Zr]=m.current,Ya(r.nodeType===8?r.parentNode:r),Bs(),m}for(;c=r.lastChild;)r.removeChild(c);if(typeof l=="function"){var w=l;l=function(){var A=nc(b);w.call(A)}}var b=qf(r,0,!1,null,null,!1,!1,"",Jy);return r._reactRootContainer=b,r[Zr]=b.current,Ya(r.nodeType===8?r.parentNode:r),Bs(function(){tc(i,b,o,l)}),b}function sc(r,i,o,l,c){var f=o._reactRootContainer;if(f){var m=f;if(typeof c=="function"){var w=c;c=function(){var b=nc(m);w.call(b)}}tc(i,m,r,c)}else m=d1(o,i,r,c,l);return nc(m)}Mp=function(r){switch(r.tag){case 3:var i=r.stateNode;if(i.current.memoizedState.isDehydrated){var o=La(i.pendingLanes);o!==0&&(Sd(i,o|1),On(i,Ze()),(Je&6)===0&&(To=Ze()+500,Vi()))}break;case 13:Bs(function(){var l=ri(r,1);if(l!==null){var c=pn();hr(l,r,1,c)}}),Yf(r,1)}},_d=function(r){if(r.tag===13){var i=ri(r,134217728);if(i!==null){var o=pn();hr(i,r,134217728,o)}Yf(r,134217728)}},Ap=function(r){if(r.tag===13){var i=qi(r),o=ri(r,i);if(o!==null){var l=pn();hr(o,r,i,l)}Yf(r,i)}},Tp=function(){return lt},Lp=function(r,i){var o=lt;try{return lt=r,i()}finally{lt=o}},co=function(r,i,o){switch(i){case"input":if(Da(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=bu(l);if(!c)throw Error(t(90));Yt(l),Da(l,c)}}}break;case"textarea":Dr(r,o);break;case"select":i=o.value,i!=null&&Oi(r,!!o.multiple,i,!1)}},Aa=Vf,Is=Bs;var f1={usingClientEntryPoint:!1,Events:[Xa,So,bu,Ma,tu,Vf]},fl={findFiberByHostInstance:Os,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},h1={bundleType:fl.bundleType,version:fl.version,rendererPackageName:fl.rendererPackageName,rendererConfig:fl.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Y.ReactCurrentDispatcher,findHostInstanceByFiber:function(r){return r=at(r),r===null?null:r.stateNode},findFiberByHostInstance:fl.findFiberByHostInstance||c1,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 oc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!oc.isDisabled&&oc.supportsFiber)try{yt=oc.inject(h1),Zt=oc}catch{}}return Cn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=f1,Cn.createPortal=function(r,i){var o=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Jf(i))throw Error(t(200));return u1(r,i,null,o)},Cn.createRoot=function(r,i){if(!Jf(r))throw Error(t(299));var o=!1,l="",c=Gy;return i!=null&&(i.unstable_strictMode===!0&&(o=!0),i.identifierPrefix!==void 0&&(l=i.identifierPrefix),i.onRecoverableError!==void 0&&(c=i.onRecoverableError)),i=qf(r,1,!1,null,null,o,!1,l,c),r[Zr]=i.current,Ya(r.nodeType===8?r.parentNode:r),new Gf(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=at(i),r=r===null?null:r.stateNode,r},Cn.flushSync=function(r){return Bs(r)},Cn.hydrate=function(r,i,o){if(!ic(i))throw Error(t(200));return sc(null,r,i,!0,o)},Cn.hydrateRoot=function(r,i,o){if(!Jf(r))throw Error(t(405));var l=o!=null&&o.hydratedSources||null,c=!1,f="",m=Gy;if(o!=null&&(o.unstable_strictMode===!0&&(c=!0),o.identifierPrefix!==void 0&&(f=o.identifierPrefix),o.onRecoverableError!==void 0&&(m=o.onRecoverableError)),i=qy(i,null,r,1,o??null,c,!1,f,m),r[Zr]=i.current,Ya(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 rc(i)},Cn.render=function(r,i,o){if(!ic(i))throw Error(t(200));return sc(null,r,i,!1,o)},Cn.unmountComponentAtNode=function(r){if(!ic(r))throw Error(t(40));return r._reactRootContainer?(Bs(function(){sc(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(!ic(o))throw Error(t(200));if(r==null||r._reactInternals===void 0)throw Error(t(38));return sc(r,i,o,!1,l)},Cn.version="18.3.1-next-f1338f8080-20240426",Cn}var og;function $v(){if(og)return nh.exports;og=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(),nh.exports=C1(),nh.exports}var ag;function F1(){if(ag)return lc;ag=1;var n=$v();return lc.createRoot=n.createRoot,lc.hydrateRoot=n.hydrateRoot,lc}var R1=F1();const M1=Kh(R1);var Ia=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 gn(){}function A1(n,e){return typeof n=="function"?n(e):n}function yh(n){return typeof n=="number"&&n>=0&&n!==1/0}function Wv(n,e){return Math.max(n+(e||0)-Date.now(),0)}function Go(n,e){return typeof n=="function"?n(e):n}function wr(n,e){return typeof n=="function"?n(e):n}function lg(n,e){const{type:t="all",exact:s,fetchStatus:a,predicate:u,queryKey:d,stale:h}=n;if(d){if(s){if(e.queryHash!==Yh(d,e.options))return!1}else if(!Ml(e.queryKey,d))return!1}if(t!=="all"){const p=e.isActive();if(t==="active"&&!p||t==="inactive"&&p)return!1}return!(typeof h=="boolean"&&e.isStale()!==h||a&&a!==e.state.fetchStatus||u&&!u(e))}function ug(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(!Ml(e.options.mutationKey,u))return!1}return!(s&&e.state.status!==s||a&&!a(e))}function Yh(n,e){return((e==null?void 0:e.queryKeyHashFn)||to)(n)}function to(n){return JSON.stringify(n,(e,t)=>gh(t)?Object.keys(t).sort().reduce((s,a)=>(s[a]=t[a],s),{}):t)}function Ml(n,e){return n===e?!0:typeof n!=typeof e?!1:n&&e&&typeof n=="object"&&typeof e=="object"?Object.keys(e).every(t=>Ml(n[t],e[t])):!1}function Hv(n,e){if(n===e)return n;const t=cg(n)&&cg(e);if(t||gh(n)&&gh(e)){const s=t?n:Object.keys(n),a=s.length,u=t?e:Object.keys(e),d=u.length,h=t?[]:{};let p=0;for(let y=0;y<d;y++){const g=t?y:u[y];(!t&&s.includes(g)||t)&&n[g]===void 0&&e[g]===void 0?(h[g]=void 0,p++):(h[g]=Hv(n[g],e[g]),h[g]===n[g]&&n[g]!==void 0&&p++)}return a===d&&p===a?n:h}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 cg(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function gh(n){if(!dg(n))return!1;const e=n.constructor;if(e===void 0)return!0;const t=e.prototype;return!(!dg(t)||!t.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function dg(n){return Object.prototype.toString.call(n)==="[object Object]"}function T1(n){return new Promise(e=>{setTimeout(e,n)})}function vh(n,e,t){return typeof t.structuralSharing=="function"?t.structuralSharing(n,e):t.structuralSharing!==!1?Hv(n,e):e}function L1(n,e,t=0){const s=[...n,e];return t&&s.length>t?s.slice(1):s}function B1(n,e,t=0){const s=[e,...n];return t&&s.length>t?s.slice(0,-1):s}var Gh=Symbol();function Qv(n,e){return!n.queryFn&&(e!=null&&e.initialPromise)?()=>e.initialPromise:!n.queryFn||n.queryFn===Gh?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}function Kv(n,e){return typeof n=="function"?n(...e):!!n}var Hs,is,na,Ov,N1=(Ov=class extends Ia{constructor(){super();me(this,Hs);me(this,is);me(this,na);ee(this,na,e=>{if(!eo&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}})}onSubscribe(){S(this,is)||this.setEventListener(S(this,na))}onUnsubscribe(){var e;this.hasListeners()||((e=S(this,is))==null||e.call(this),ee(this,is,void 0))}setEventListener(e){var t;ee(this,na,e),(t=S(this,is))==null||t.call(this),ee(this,is,e(s=>{typeof s=="boolean"?this.setFocused(s):this.onFocus()}))}setFocused(e){S(this,Hs)!==e&&(ee(this,Hs,e),this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){var e;return typeof S(this,Hs)=="boolean"?S(this,Hs):((e=globalThis.document)==null?void 0:e.visibilityState)!=="hidden"}},Hs=new WeakMap,is=new WeakMap,na=new WeakMap,Ov),Jh=new N1,ra,ss,ia,Cv,P1=(Cv=class extends Ia{constructor(){super();me(this,ra,!0);me(this,ss);me(this,ia);ee(this,ia,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(){S(this,ss)||this.setEventListener(S(this,ia))}onUnsubscribe(){var e;this.hasListeners()||((e=S(this,ss))==null||e.call(this),ee(this,ss,void 0))}setEventListener(e){var t;ee(this,ia,e),(t=S(this,ss))==null||t.call(this),ee(this,ss,e(this.setOnline.bind(this)))}setOnline(e){S(this,ra)!==e&&(ee(this,ra,e),this.listeners.forEach(s=>{s(e)}))}isOnline(){return S(this,ra)}},ra=new WeakMap,ss=new WeakMap,ia=new WeakMap,Cv),Cc=new P1;function wh(){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 k1(n){return Math.min(1e3*2**n,3e4)}function qv(n){return(n??"online")==="online"?Cc.isOnline():!0}var Yv=class extends Error{constructor(n){super("CancelledError"),this.revert=n==null?void 0:n.revert,this.silent=n==null?void 0:n.silent}};function mc(n){return n instanceof Yv}function Gv(n){let e=!1,t=0,s=!1,a;const u=wh(),d=M=>{var N;s||(x(new Yv(M)),(N=n.abort)==null||N.call(n))},h=()=>{e=!0},p=()=>{e=!1},y=()=>Jh.isFocused()&&(n.networkMode==="always"||Cc.isOnline())&&n.canRun(),g=()=>qv(n.networkMode)&&n.canRun(),v=M=>{var N;s||(s=!0,(N=n.onSuccess)==null||N.call(n,M),a==null||a(),u.resolve(M))},x=M=>{var N;s||(s=!0,(N=n.onError)==null||N.call(n,M),a==null||a(),u.reject(M))},D=()=>new Promise(M=>{var N;a=G=>{(s||y())&&M(G)},(N=n.onPause)==null||N.call(n)}).then(()=>{var M;a=void 0,s||(M=n.onContinue)==null||M.call(n)}),P=()=>{if(s)return;let M;const N=t===0?n.initialPromise:void 0;try{M=N??n.fn()}catch(G){M=Promise.reject(G)}Promise.resolve(M).then(v).catch(G=>{var Be;if(s)return;const W=n.retry??(eo?0:3),K=n.retryDelay??k1,Y=typeof K=="function"?K(t,G):K,pe=W===!0||typeof W=="number"&&t<W||typeof W=="function"&&W(t,G);if(e||!pe){x(G);return}t++,(Be=n.onFail)==null||Be.call(n,t,G),T1(Y).then(()=>y()?void 0:D()).then(()=>{e?x(G):P()})})};return{promise:u,cancel:d,continue:()=>(a==null||a(),u),cancelRetry:h,continueRetry:p,canStart:g,start:()=>(g()?P():D().then(P),u)}}var U1=n=>setTimeout(n,0);function j1(){let n=[],e=0,t=h=>{h()},s=h=>{h()},a=U1;const u=h=>{e?n.push(h):a(()=>{t(h)})},d=()=>{const h=n;n=[],h.length&&a(()=>{s(()=>{h.forEach(p=>{t(p)})})})};return{batch:h=>{let p;e++;try{p=h()}finally{e--,e||d()}return p},batchCalls:h=>(...p)=>{u(()=>{h(...p)})},schedule:u,setNotifyFunction:h=>{t=h},setBatchNotifyFunction:h=>{s=h},setScheduler:h=>{a=h}}}var Qt=j1(),Qs,Fv,Jv=(Fv=class{constructor(){me(this,Qs)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),yh(this.gcTime)&&ee(this,Qs,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(eo?1/0:5*60*1e3))}clearGcTimeout(){S(this,Qs)&&(clearTimeout(S(this,Qs)),ee(this,Qs,void 0))}},Qs=new WeakMap,Fv),sa,oa,Xn,Ks,ln,Ul,qs,mr,li,Rv,z1=(Rv=class extends Jv{constructor(e){super();me(this,mr);me(this,sa);me(this,oa);me(this,Xn);me(this,Ks);me(this,ln);me(this,Ul);me(this,qs);ee(this,qs,!1),ee(this,Ul,e.defaultOptions),this.setOptions(e.options),this.observers=[],ee(this,Ks,e.client),ee(this,Xn,S(this,Ks).getQueryCache()),this.queryKey=e.queryKey,this.queryHash=e.queryHash,ee(this,sa,V1(this.options)),this.state=e.state??S(this,sa),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return(e=S(this,ln))==null?void 0:e.promise}setOptions(e){this.options={...S(this,Ul),...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&S(this,Xn).remove(this)}setData(e,t){const s=vh(this.state.data,e,this.options);return ke(this,mr,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){ke(this,mr,li).call(this,{type:"setState",state:e,setStateOptions:t})}cancel(e){var s,a;const t=(s=S(this,ln))==null?void 0:s.promise;return(a=S(this,ln))==null||a.cancel(e),t?t.then(gn).catch(gn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(S(this,sa))}isActive(){return this.observers.some(e=>wr(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Gh||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(e=0){return this.state.isInvalidated||this.state.data===void 0||!Wv(this.state.dataUpdatedAt,e)}onFocus(){var t;const e=this.observers.find(s=>s.shouldFetchOnWindowFocus());e==null||e.refetch({cancelRefetch:!1}),(t=S(this,ln))==null||t.continue()}onOnline(){var t;const e=this.observers.find(s=>s.shouldFetchOnReconnect());e==null||e.refetch({cancelRefetch:!1}),(t=S(this,ln))==null||t.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),S(this,Xn).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(S(this,ln)&&(S(this,qs)?S(this,ln).cancel({revert:!0}):S(this,ln).cancelRetry()),this.scheduleGc()),S(this,Xn).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ke(this,mr,li).call(this,{type:"invalidate"})}fetch(e,t){var p,y,g;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(t!=null&&t.cancelRefetch))this.cancel({silent:!0});else if(S(this,ln))return S(this,ln).continueRetry(),S(this,ln).promise}if(e&&this.setOptions(e),!this.options.queryFn){const v=this.observers.find(x=>x.options.queryFn);v&&this.setOptions(v.options)}const s=new AbortController,a=v=>{Object.defineProperty(v,"signal",{enumerable:!0,get:()=>(ee(this,qs,!0),s.signal)})},u=()=>{const v=Qv(this.options,t),x={client:S(this,Ks),queryKey:this.queryKey,meta:this.meta};return a(x),ee(this,qs,!1),this.options.persister?this.options.persister(v,x,this):v(x)},d={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:S(this,Ks),state:this.state,fetchFn:u};a(d),(p=this.options.behavior)==null||p.onFetch(d,this),ee(this,oa,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((y=d.fetchOptions)==null?void 0:y.meta))&&ke(this,mr,li).call(this,{type:"fetch",meta:(g=d.fetchOptions)==null?void 0:g.meta});const h=v=>{var x,D,P,M;mc(v)&&v.silent||ke(this,mr,li).call(this,{type:"error",error:v}),mc(v)||((D=(x=S(this,Xn).config).onError)==null||D.call(x,v,this),(M=(P=S(this,Xn).config).onSettled)==null||M.call(P,this.state.data,v,this)),this.scheduleGc()};return ee(this,ln,Gv({initialPromise:t==null?void 0:t.initialPromise,fn:d.fetchFn,abort:s.abort.bind(s),onSuccess:v=>{var x,D,P,M;if(v===void 0){h(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(v)}catch(N){h(N);return}(D=(x=S(this,Xn).config).onSuccess)==null||D.call(x,v,this),(M=(P=S(this,Xn).config).onSettled)==null||M.call(P,v,this.state.error,this),this.scheduleGc()},onError:h,onFail:(v,x)=>{ke(this,mr,li).call(this,{type:"failed",failureCount:v,error:x})},onPause:()=>{ke(this,mr,li).call(this,{type:"pause"})},onContinue:()=>{ke(this,mr,li).call(this,{type:"continue"})},retry:d.options.retry,retryDelay:d.options.retryDelay,networkMode:d.options.networkMode,canRun:()=>!0})),S(this,ln).start()}},sa=new WeakMap,oa=new WeakMap,Xn=new WeakMap,Ks=new WeakMap,ln=new WeakMap,Ul=new WeakMap,qs=new WeakMap,mr=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,...Xv(s.data,this.options),fetchMeta:e.meta??null};case"success":return{...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 mc(a)&&a.revert&&S(this,oa)?{...S(this,oa),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),Qt.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),S(this,Xn).notify({query:this,type:"updated",action:e})})},Rv);function Xv(n,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:qv(e.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function V1(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 jr,Mv,Zv=(Mv=class extends Ia{constructor(e={}){super();me(this,jr);this.config=e,ee(this,jr,new Map)}build(e,t,s){const a=t.queryKey,u=t.queryHash??Yh(a,t);let d=this.get(u);return d||(d=new z1({client:e,queryKey:a,queryHash:u,options:e.defaultQueryOptions(t),state:s,defaultOptions:e.getQueryDefaults(a)}),this.add(d)),d}add(e){S(this,jr).has(e.queryHash)||(S(this,jr).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=S(this,jr).get(e.queryHash);t&&(e.destroy(),t===e&&S(this,jr).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Qt.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return S(this,jr).get(e)}getAll(){return[...S(this,jr).values()]}find(e){const t={exact:!0,...e};return this.getAll().find(s=>lg(t,s))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(s=>lg(e,s)):t}notify(e){Qt.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Qt.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Qt.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},jr=new WeakMap,Mv),zr,mn,Ys,Vr,Zi,Av,$1=(Av=class extends Jv{constructor(e){super();me(this,Vr);me(this,zr);me(this,mn);me(this,Ys);this.mutationId=e.mutationId,ee(this,mn,e.mutationCache),ee(this,zr,[]),this.state=e.state||e0(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){S(this,zr).includes(e)||(S(this,zr).push(e),this.clearGcTimeout(),S(this,mn).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){ee(this,zr,S(this,zr).filter(t=>t!==e)),this.scheduleGc(),S(this,mn).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){S(this,zr).length||(this.state.status==="pending"?this.scheduleGc():S(this,mn).remove(this))}continue(){var e;return((e=S(this,Ys))==null?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var u,d,h,p,y,g,v,x,D,P,M,N,G,W,K,Y,pe,Be,T,J;const t=()=>{ke(this,Vr,Zi).call(this,{type:"continue"})};ee(this,Ys,Gv({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(de,te)=>{ke(this,Vr,Zi).call(this,{type:"failed",failureCount:de,error:te})},onPause:()=>{ke(this,Vr,Zi).call(this,{type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>S(this,mn).canRun(this)}));const s=this.state.status==="pending",a=!S(this,Ys).canStart();try{if(s)t();else{ke(this,Vr,Zi).call(this,{type:"pending",variables:e,isPaused:a}),await((d=(u=S(this,mn).config).onMutate)==null?void 0:d.call(u,e,this));const te=await((p=(h=this.options).onMutate)==null?void 0:p.call(h,e));te!==this.state.context&&ke(this,Vr,Zi).call(this,{type:"pending",context:te,variables:e,isPaused:a})}const de=await S(this,Ys).start();return await((g=(y=S(this,mn).config).onSuccess)==null?void 0:g.call(y,de,e,this.state.context,this)),await((x=(v=this.options).onSuccess)==null?void 0:x.call(v,de,e,this.state.context)),await((P=(D=S(this,mn).config).onSettled)==null?void 0:P.call(D,de,null,this.state.variables,this.state.context,this)),await((N=(M=this.options).onSettled)==null?void 0:N.call(M,de,null,e,this.state.context)),ke(this,Vr,Zi).call(this,{type:"success",data:de}),de}catch(de){try{throw await((W=(G=S(this,mn).config).onError)==null?void 0:W.call(G,de,e,this.state.context,this)),await((Y=(K=this.options).onError)==null?void 0:Y.call(K,de,e,this.state.context)),await((Be=(pe=S(this,mn).config).onSettled)==null?void 0:Be.call(pe,void 0,de,this.state.variables,this.state.context,this)),await((J=(T=this.options).onSettled)==null?void 0:J.call(T,void 0,de,e,this.state.context)),de}finally{ke(this,Vr,Zi).call(this,{type:"error",error:de})}}finally{S(this,mn).runNext(this)}}},zr=new WeakMap,mn=new WeakMap,Ys=new WeakMap,Vr=new WeakSet,Zi=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),Qt.batch(()=>{S(this,zr).forEach(s=>{s.onMutationUpdate(e)}),S(this,mn).notify({mutation:this,type:"updated",action:e})})},Av);function e0(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var hi,yr,jl,Tv,W1=(Tv=class extends Ia{constructor(e={}){super();me(this,hi);me(this,yr);me(this,jl);this.config=e,ee(this,hi,new Set),ee(this,yr,new Map),ee(this,jl,0)}build(e,t,s){const a=new $1({mutationCache:this,mutationId:++ac(this,jl)._,options:e.defaultMutationOptions(t),state:s});return this.add(a),a}add(e){S(this,hi).add(e);const t=uc(e);if(typeof t=="string"){const s=S(this,yr).get(t);s?s.push(e):S(this,yr).set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(S(this,hi).delete(e)){const t=uc(e);if(typeof t=="string"){const s=S(this,yr).get(t);if(s)if(s.length>1){const a=s.indexOf(e);a!==-1&&s.splice(a,1)}else s[0]===e&&S(this,yr).delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=uc(e);if(typeof t=="string"){const s=S(this,yr).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=uc(e);if(typeof t=="string"){const a=(s=S(this,yr).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(){Qt.batch(()=>{S(this,hi).forEach(e=>{this.notify({type:"removed",mutation:e})}),S(this,hi).clear(),S(this,yr).clear()})}getAll(){return Array.from(S(this,hi))}find(e){const t={exact:!0,...e};return this.getAll().find(s=>ug(t,s))}findAll(e={}){return this.getAll().filter(t=>ug(e,t))}notify(e){Qt.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return Qt.batch(()=>Promise.all(e.map(t=>t.continue().catch(gn))))}},hi=new WeakMap,yr=new WeakMap,jl=new WeakMap,Tv);function uc(n){var e;return(e=n.options.scope)==null?void 0:e.id}function fg(n){return{onFetch:(e,t)=>{var g,v,x,D,P;const s=e.options,a=(x=(v=(g=e.fetchOptions)==null?void 0:g.meta)==null?void 0:v.fetchMore)==null?void 0:x.direction,u=((D=e.state.data)==null?void 0:D.pages)||[],d=((P=e.state.data)==null?void 0:P.pageParams)||[];let h={pages:[],pageParams:[]},p=0;const y=async()=>{let M=!1;const N=K=>{Object.defineProperty(K,"signal",{enumerable:!0,get:()=>(e.signal.aborted?M=!0:e.signal.addEventListener("abort",()=>{M=!0}),e.signal)})},G=Qv(e.options,e.fetchOptions),W=async(K,Y,pe)=>{if(M)return Promise.reject();if(Y==null&&K.pages.length)return Promise.resolve(K);const Be={client:e.client,queryKey:e.queryKey,pageParam:Y,direction:pe?"backward":"forward",meta:e.options.meta};N(Be);const T=await G(Be),{maxPages:J}=e.options,de=pe?B1:L1;return{pages:de(K.pages,T,J),pageParams:de(K.pageParams,Y,J)}};if(a&&u.length){const K=a==="backward",Y=K?H1:hg,pe={pages:u,pageParams:d},Be=Y(s,pe);h=await W(pe,Be,K)}else{const K=n??u.length;do{const Y=p===0?d[0]??s.initialPageParam:hg(s,h);if(p>0&&Y==null)break;h=await W(h,Y),p++}while(p<K)}return h};e.options.persister?e.fetchFn=()=>{var M,N;return(N=(M=e.options).persister)==null?void 0:N.call(M,y,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},t)}:e.fetchFn=y}}}function hg(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 H1(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 Lt,os,as,aa,la,ls,ua,ca,Lv,Q1=(Lv=class{constructor(n={}){me(this,Lt);me(this,os);me(this,as);me(this,aa);me(this,la);me(this,ls);me(this,ua);me(this,ca);ee(this,Lt,n.queryCache||new Zv),ee(this,os,n.mutationCache||new W1),ee(this,as,n.defaultOptions||{}),ee(this,aa,new Map),ee(this,la,new Map),ee(this,ls,0)}mount(){ac(this,ls)._++,S(this,ls)===1&&(ee(this,ua,Jh.subscribe(async n=>{n&&(await this.resumePausedMutations(),S(this,Lt).onFocus())})),ee(this,ca,Cc.subscribe(async n=>{n&&(await this.resumePausedMutations(),S(this,Lt).onOnline())})))}unmount(){var n,e;ac(this,ls)._--,S(this,ls)===0&&((n=S(this,ua))==null||n.call(this),ee(this,ua,void 0),(e=S(this,ca))==null||e.call(this),ee(this,ca,void 0))}isFetching(n){return S(this,Lt).findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return S(this,os).findAll({...n,status:"pending"}).length}getQueryData(n){var t;const e=this.defaultQueryOptions({queryKey:n});return(t=S(this,Lt).get(e.queryHash))==null?void 0:t.state.data}ensureQueryData(n){const e=this.defaultQueryOptions(n),t=S(this,Lt).build(this,e),s=t.state.data;return s===void 0?this.fetchQuery(n):(n.revalidateIfStale&&t.isStaleByTime(Go(e.staleTime,t))&&this.prefetchQuery(e),Promise.resolve(s))}getQueriesData(n){return S(this,Lt).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=S(this,Lt).get(s.queryHash),u=a==null?void 0:a.state.data,d=A1(e,u);if(d!==void 0)return S(this,Lt).build(this,s).setData(d,{...t,manual:!0})}setQueriesData(n,e,t){return Qt.batch(()=>S(this,Lt).findAll(n).map(({queryKey:s})=>[s,this.setQueryData(s,e,t)]))}getQueryState(n){var t;const e=this.defaultQueryOptions({queryKey:n});return(t=S(this,Lt).get(e.queryHash))==null?void 0:t.state}removeQueries(n){const e=S(this,Lt);Qt.batch(()=>{e.findAll(n).forEach(t=>{e.remove(t)})})}resetQueries(n,e){const t=S(this,Lt);return Qt.batch(()=>(t.findAll(n).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...n},e)))}cancelQueries(n,e={}){const t={revert:!0,...e},s=Qt.batch(()=>S(this,Lt).findAll(n).map(a=>a.cancel(t)));return Promise.all(s).then(gn).catch(gn)}invalidateQueries(n,e={}){return Qt.batch(()=>(S(this,Lt).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=Qt.batch(()=>S(this,Lt).findAll(n).filter(a=>!a.isDisabled()).map(a=>{let u=a.fetch(void 0,t);return t.throwOnError||(u=u.catch(gn)),a.state.fetchStatus==="paused"?Promise.resolve():u}));return Promise.all(s).then(gn)}fetchQuery(n){const e=this.defaultQueryOptions(n);e.retry===void 0&&(e.retry=!1);const t=S(this,Lt).build(this,e);return t.isStaleByTime(Go(e.staleTime,t))?t.fetch(e):Promise.resolve(t.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(gn).catch(gn)}fetchInfiniteQuery(n){return n.behavior=fg(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(gn).catch(gn)}ensureInfiniteQueryData(n){return n.behavior=fg(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return Cc.isOnline()?S(this,os).resumePausedMutations():Promise.resolve()}getQueryCache(){return S(this,Lt)}getMutationCache(){return S(this,os)}getDefaultOptions(){return S(this,as)}setDefaultOptions(n){ee(this,as,n)}setQueryDefaults(n,e){S(this,aa).set(to(n),{queryKey:n,defaultOptions:e})}getQueryDefaults(n){const e=[...S(this,aa).values()],t={};return e.forEach(s=>{Ml(n,s.queryKey)&&Object.assign(t,s.defaultOptions)}),t}setMutationDefaults(n,e){S(this,la).set(to(n),{mutationKey:n,defaultOptions:e})}getMutationDefaults(n){const e=[...S(this,la).values()],t={};return e.forEach(s=>{Ml(n,s.mutationKey)&&Object.assign(t,s.defaultOptions)}),t}defaultQueryOptions(n){if(n._defaulted)return n;const e={...S(this,as).queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return e.queryHash||(e.queryHash=Yh(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===Gh&&(e.enabled=!1),e}defaultMutationOptions(n){return n!=null&&n._defaulted?n:{...S(this,as).mutations,...(n==null?void 0:n.mutationKey)&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){S(this,Lt).clear(),S(this,os).clear()}},Lt=new WeakMap,os=new WeakMap,as=new WeakMap,aa=new WeakMap,la=new WeakMap,ls=new WeakMap,ua=new WeakMap,ca=new WeakMap,Lv),Rn,Qe,zl,yn,Gs,da,us,cs,Vl,fa,ha,Js,Xs,ds,pa,st,wl,Sh,_h,bh,Ih,Eh,xh,Dh,t0,Bv,K1=(Bv=class extends Ia{constructor(e,t){super();me(this,st);me(this,Rn);me(this,Qe);me(this,zl);me(this,yn);me(this,Gs);me(this,da);me(this,us);me(this,cs);me(this,Vl);me(this,fa);me(this,ha);me(this,Js);me(this,Xs);me(this,ds);me(this,pa,new Set);this.options=t,ee(this,Rn,e),ee(this,cs,null),ee(this,us,wh()),this.options.experimental_prefetchInRender||S(this,us).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&&(S(this,Qe).addObserver(this),pg(S(this,Qe),this.options)?ke(this,st,wl).call(this):this.updateResult(),ke(this,st,Ih).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Oh(S(this,Qe),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Oh(S(this,Qe),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ke(this,st,Eh).call(this),ke(this,st,xh).call(this),S(this,Qe).removeObserver(this)}setOptions(e){const t=this.options,s=S(this,Qe);if(this.options=S(this,Rn).defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof wr(this.options.enabled,S(this,Qe))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");ke(this,st,Dh).call(this),S(this,Qe).setOptions(this.options),t._defaulted&&!Oc(this.options,t)&&S(this,Rn).getQueryCache().notify({type:"observerOptionsUpdated",query:S(this,Qe),observer:this});const a=this.hasListeners();a&&mg(S(this,Qe),s,this.options,t)&&ke(this,st,wl).call(this),this.updateResult(),a&&(S(this,Qe)!==s||wr(this.options.enabled,S(this,Qe))!==wr(t.enabled,S(this,Qe))||Go(this.options.staleTime,S(this,Qe))!==Go(t.staleTime,S(this,Qe)))&&ke(this,st,Sh).call(this);const u=ke(this,st,_h).call(this);a&&(S(this,Qe)!==s||wr(this.options.enabled,S(this,Qe))!==wr(t.enabled,S(this,Qe))||u!==S(this,ds))&&ke(this,st,bh).call(this,u)}getOptimisticResult(e){const t=S(this,Rn).getQueryCache().build(S(this,Rn),e),s=this.createResult(t,e);return Y1(this,s)&&(ee(this,yn,s),ee(this,da,this.options),ee(this,Gs,S(this,Qe).state)),s}getCurrentResult(){return S(this,yn)}trackResult(e,t){return new Proxy(e,{get:(s,a)=>(this.trackProp(a),t==null||t(a),Reflect.get(s,a))})}trackProp(e){S(this,pa).add(e)}getCurrentQuery(){return S(this,Qe)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=S(this,Rn).defaultQueryOptions(e),s=S(this,Rn).getQueryCache().build(S(this,Rn),t);return s.fetch().then(()=>this.createResult(s,t))}fetch(e){return ke(this,st,wl).call(this,{...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),S(this,yn)))}createResult(e,t){var de;const s=S(this,Qe),a=this.options,u=S(this,yn),d=S(this,Gs),h=S(this,da),y=e!==s?e.state:S(this,zl),{state:g}=e;let v={...g},x=!1,D;if(t._optimisticResults){const te=this.hasListeners(),nt=!te&&pg(e,t),Ue=te&&mg(e,s,t,a);(nt||Ue)&&(v={...v,...Xv(g.data,e.options)}),t._optimisticResults==="isRestoring"&&(v.fetchStatus="idle")}let{error:P,errorUpdatedAt:M,status:N}=v;D=v.data;let G=!1;if(t.placeholderData!==void 0&&D===void 0&&N==="pending"){let te;u!=null&&u.isPlaceholderData&&t.placeholderData===(h==null?void 0:h.placeholderData)?(te=u.data,G=!0):te=typeof t.placeholderData=="function"?t.placeholderData((de=S(this,ha))==null?void 0:de.state.data,S(this,ha)):t.placeholderData,te!==void 0&&(N="success",D=vh(u==null?void 0:u.data,te,t),x=!0)}if(t.select&&D!==void 0&&!G)if(u&&D===(d==null?void 0:d.data)&&t.select===S(this,Vl))D=S(this,fa);else try{ee(this,Vl,t.select),D=t.select(D),D=vh(u==null?void 0:u.data,D,t),ee(this,fa,D),ee(this,cs,null)}catch(te){ee(this,cs,te)}S(this,cs)&&(P=S(this,cs),D=S(this,fa),M=Date.now(),N="error");const W=v.fetchStatus==="fetching",K=N==="pending",Y=N==="error",pe=K&&W,Be=D!==void 0,J={status:N,fetchStatus:v.fetchStatus,isPending:K,isSuccess:N==="success",isError:Y,isInitialLoading:pe,isLoading:pe,data:D,dataUpdatedAt:v.dataUpdatedAt,error:P,errorUpdatedAt:M,failureCount:v.fetchFailureCount,failureReason:v.fetchFailureReason,errorUpdateCount:v.errorUpdateCount,isFetched:v.dataUpdateCount>0||v.errorUpdateCount>0,isFetchedAfterMount:v.dataUpdateCount>y.dataUpdateCount||v.errorUpdateCount>y.errorUpdateCount,isFetching:W,isRefetching:W&&!K,isLoadingError:Y&&!Be,isPaused:v.fetchStatus==="paused",isPlaceholderData:x,isRefetchError:Y&&Be,isStale:Xh(e,t),refetch:this.refetch,promise:S(this,us)};if(this.options.experimental_prefetchInRender){const te=Xe=>{J.status==="error"?Xe.reject(J.error):J.data!==void 0&&Xe.resolve(J.data)},nt=()=>{const Xe=ee(this,us,J.promise=wh());te(Xe)},Ue=S(this,us);switch(Ue.status){case"pending":e.queryHash===s.queryHash&&te(Ue);break;case"fulfilled":(J.status==="error"||J.data!==Ue.value)&&nt();break;case"rejected":(J.status!=="error"||J.error!==Ue.reason)&&nt();break}}return J}updateResult(){const e=S(this,yn),t=this.createResult(S(this,Qe),this.options);if(ee(this,Gs,S(this,Qe).state),ee(this,da,this.options),S(this,Gs).data!==void 0&&ee(this,ha,S(this,Qe)),Oc(t,e))return;ee(this,yn,t);const s=()=>{if(!e)return!0;const{notifyOnChangeProps:a}=this.options,u=typeof a=="function"?a():a;if(u==="all"||!u&&!S(this,pa).size)return!0;const d=new Set(u??S(this,pa));return this.options.throwOnError&&d.add("error"),Object.keys(S(this,yn)).some(h=>{const p=h;return S(this,yn)[p]!==e[p]&&d.has(p)})};ke(this,st,t0).call(this,{listeners:s()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ke(this,st,Ih).call(this)}},Rn=new WeakMap,Qe=new WeakMap,zl=new WeakMap,yn=new WeakMap,Gs=new WeakMap,da=new WeakMap,us=new WeakMap,cs=new WeakMap,Vl=new WeakMap,fa=new WeakMap,ha=new WeakMap,Js=new WeakMap,Xs=new WeakMap,ds=new WeakMap,pa=new WeakMap,st=new WeakSet,wl=function(e){ke(this,st,Dh).call(this);let t=S(this,Qe).fetch(this.options,e);return e!=null&&e.throwOnError||(t=t.catch(gn)),t},Sh=function(){ke(this,st,Eh).call(this);const e=Go(this.options.staleTime,S(this,Qe));if(eo||S(this,yn).isStale||!yh(e))return;const s=Wv(S(this,yn).dataUpdatedAt,e)+1;ee(this,Js,setTimeout(()=>{S(this,yn).isStale||this.updateResult()},s))},_h=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(S(this,Qe)):this.options.refetchInterval)??!1},bh=function(e){ke(this,st,xh).call(this),ee(this,ds,e),!(eo||wr(this.options.enabled,S(this,Qe))===!1||!yh(S(this,ds))||S(this,ds)===0)&&ee(this,Xs,setInterval(()=>{(this.options.refetchIntervalInBackground||Jh.isFocused())&&ke(this,st,wl).call(this)},S(this,ds)))},Ih=function(){ke(this,st,Sh).call(this),ke(this,st,bh).call(this,ke(this,st,_h).call(this))},Eh=function(){S(this,Js)&&(clearTimeout(S(this,Js)),ee(this,Js,void 0))},xh=function(){S(this,Xs)&&(clearInterval(S(this,Xs)),ee(this,Xs,void 0))},Dh=function(){const e=S(this,Rn).getQueryCache().build(S(this,Rn),this.options);if(e===S(this,Qe))return;const t=S(this,Qe);ee(this,Qe,e),ee(this,zl,e.state),this.hasListeners()&&(t==null||t.removeObserver(this),e.addObserver(this))},t0=function(e){Qt.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(S(this,yn))}),S(this,Rn).getQueryCache().notify({query:S(this,Qe),type:"observerResultsUpdated"})})},Bv);function q1(n,e){return wr(e.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&e.retryOnMount===!1)}function pg(n,e){return q1(n,e)||n.state.data!==void 0&&Oh(n,e,e.refetchOnMount)}function Oh(n,e,t){if(wr(e.enabled,n)!==!1){const s=typeof t=="function"?t(n):t;return s==="always"||s!==!1&&Xh(n,e)}return!1}function mg(n,e,t,s){return(n!==e||wr(s.enabled,n)===!1)&&(!t.suspense||n.state.status!=="error")&&Xh(n,t)}function Xh(n,e){return wr(e.enabled,n)!==!1&&n.isStaleByTime(Go(e.staleTime,n))}function Y1(n,e){return!Oc(n.getCurrentResult(),e)}var fs,hs,Mn,pi,_i,yc,Ch,Nv,G1=(Nv=class extends Ia{constructor(e,t){super();me(this,_i);me(this,fs);me(this,hs);me(this,Mn);me(this,pi);ee(this,fs,e),this.setOptions(t),this.bindMethods(),ke(this,_i,yc).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){var s;const t=this.options;this.options=S(this,fs).defaultMutationOptions(e),Oc(this.options,t)||S(this,fs).getMutationCache().notify({type:"observerOptionsUpdated",mutation:S(this,Mn),observer:this}),t!=null&&t.mutationKey&&this.options.mutationKey&&to(t.mutationKey)!==to(this.options.mutationKey)?this.reset():((s=S(this,Mn))==null?void 0:s.state.status)==="pending"&&S(this,Mn).setOptions(this.options)}onUnsubscribe(){var e;this.hasListeners()||(e=S(this,Mn))==null||e.removeObserver(this)}onMutationUpdate(e){ke(this,_i,yc).call(this),ke(this,_i,Ch).call(this,e)}getCurrentResult(){return S(this,hs)}reset(){var e;(e=S(this,Mn))==null||e.removeObserver(this),ee(this,Mn,void 0),ke(this,_i,yc).call(this),ke(this,_i,Ch).call(this)}mutate(e,t){var s;return ee(this,pi,t),(s=S(this,Mn))==null||s.removeObserver(this),ee(this,Mn,S(this,fs).getMutationCache().build(S(this,fs),this.options)),S(this,Mn).addObserver(this),S(this,Mn).execute(e)}},fs=new WeakMap,hs=new WeakMap,Mn=new WeakMap,pi=new WeakMap,_i=new WeakSet,yc=function(){var t;const e=((t=S(this,Mn))==null?void 0:t.state)??e0();ee(this,hs,{...e,isPending:e.status==="pending",isSuccess:e.status==="success",isError:e.status==="error",isIdle:e.status==="idle",mutate:this.mutate,reset:this.reset})},Ch=function(e){Qt.batch(()=>{var t,s,a,u,d,h,p,y;if(S(this,pi)&&this.hasListeners()){const g=S(this,hs).variables,v=S(this,hs).context;(e==null?void 0:e.type)==="success"?((s=(t=S(this,pi)).onSuccess)==null||s.call(t,e.data,g,v),(u=(a=S(this,pi)).onSettled)==null||u.call(a,e.data,null,g,v)):(e==null?void 0:e.type)==="error"&&((h=(d=S(this,pi)).onError)==null||h.call(d,e.error,g,v),(y=(p=S(this,pi)).onSettled)==null||y.call(p,void 0,e.error,g,v))}this.listeners.forEach(g=>{g(S(this,hs))})})},Nv),n0=B.createContext(void 0),Zh=n=>{const e=B.useContext(n0);if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},J1=({client:n,children:e})=>(B.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),k.jsx(n0.Provider,{value:n,children:e})),r0=B.createContext(!1),X1=()=>B.useContext(r0);r0.Provider;function Z1(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var eb=B.createContext(Z1()),tb=()=>B.useContext(eb),nb=(n,e)=>{(n.suspense||n.throwOnError||n.experimental_prefetchInRender)&&(e.isReset()||(n.retryOnMount=!1))},rb=n=>{B.useEffect(()=>{n.clearReset()},[n])},ib=({result:n,errorResetBoundary:e,throwOnError:t,query:s,suspense:a})=>n.isError&&!e.isReset()&&!n.isFetching&&s&&(a&&n.data===void 0||Kv(t,[n.error,s])),sb=n=>{const e=n.staleTime;n.suspense&&(n.staleTime=typeof e=="function"?(...t)=>Math.max(e(...t),1e3):Math.max(e??1e3,1e3),typeof n.gcTime=="number"&&(n.gcTime=Math.max(n.gcTime,1e3)))},ob=(n,e)=>n.isLoading&&n.isFetching&&!e,ab=(n,e)=>(n==null?void 0:n.suspense)&&e.isPending,yg=(n,e,t)=>e.fetchOptimistic(n).catch(()=>{t.clearReset()});function lb(n,e,t){var v,x,D,P,M;const s=Zh(),a=X1(),u=tb(),d=s.defaultQueryOptions(n);(x=(v=s.getDefaultOptions().queries)==null?void 0:v._experimental_beforeQuery)==null||x.call(v,d),d._optimisticResults=a?"isRestoring":"optimistic",sb(d),nb(d,u),rb(u);const h=!s.getQueryCache().get(d.queryHash),[p]=B.useState(()=>new e(s,d)),y=p.getOptimisticResult(d),g=!a&&n.subscribed!==!1;if(B.useSyncExternalStore(B.useCallback(N=>{const G=g?p.subscribe(Qt.batchCalls(N)):gn;return p.updateResult(),G},[p,g]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),B.useEffect(()=>{p.setOptions(d)},[d,p]),ab(d,y))throw yg(d,p,u);if(ib({result:y,errorResetBoundary:u,throwOnError:d.throwOnError,query:s.getQueryCache().get(d.queryHash),suspense:d.suspense}))throw y.error;if((P=(D=s.getDefaultOptions().queries)==null?void 0:D._experimental_afterQuery)==null||P.call(D,d,y),d.experimental_prefetchInRender&&!eo&&ob(y,a)){const N=h?yg(d,p,u):(M=s.getQueryCache().get(d.queryHash))==null?void 0:M.promise;N==null||N.catch(gn).finally(()=>{p.updateResult()})}return d.notifyOnChangeProps?y:p.trackResult(y)}function ub(n,e){return lb(n,K1)}function cb(n,e){const t=Zh(),[s]=B.useState(()=>new G1(t,n));B.useEffect(()=>{s.setOptions(n)},[s,n]);const a=B.useSyncExternalStore(B.useCallback(d=>s.subscribe(Qt.batchCalls(d)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),u=B.useCallback((d,h)=>{s.mutate(d,h).catch(gn)},[s]);if(a.error&&Kv(s.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:u,mutateAsync:a.mutate}}const db=function(){const e=typeof document<"u"&&document.createElement("link").relList;return e&&e.supports&&e.supports("modulepreload")?"modulepreload":"preload"}(),fb=function(n){return"/"+n},gg={},_n=function(e,t,s){let a=Promise.resolve();if(t&&t.length>0){let d=function(y){return Promise.all(y.map(g=>Promise.resolve(g).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};document.getElementsByTagName("link");const h=document.querySelector("meta[property=csp-nonce]"),p=(h==null?void 0:h.nonce)||(h==null?void 0:h.getAttribute("nonce"));a=d(t.map(y=>{if(y=fb(y),y in gg)return;gg[y]=!0;const g=y.endsWith(".css"),v=g?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${y}"]${v}`))return;const x=document.createElement("link");if(x.rel=g?"stylesheet":db,g||(x.as="script"),x.crossOrigin="",x.href=y,p&&x.setAttribute("nonce",p),document.head.appendChild(x),g)return new Promise((D,P)=>{x.addEventListener("load",D),x.addEventListener("error",()=>P(new Error(`Unable to preload CSS for ${y}`)))})}))}function u(d){const h=new Event("vite:preloadError",{cancelable:!0});if(h.payload=d,window.dispatchEvent(h),!h.defaultPrevented)throw d}return a.then(d=>{for(const h of d||[])h.status==="rejected"&&u(h.reason);return e().catch(u)})};var i0=$v();const hb=Kh(i0),pb=Pv({__proto__:null,default:hb},[i0]);/**
44
+ * @remix-run/router v1.23.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
+ */function Ft(){return Ft=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(n[s]=t[s])}return n},Ft.apply(this,arguments)}var jt;(function(n){n.Pop="POP",n.Push="PUSH",n.Replace="REPLACE"})(jt||(jt={}));const vg="popstate";function mb(n){n===void 0&&(n={});function e(s,a){let{pathname:u,search:d,hash:h}=s.location;return Al("",{pathname:u,search:d,hash:h},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function t(s,a){return typeof a=="string"?a:no(a)}return gb(e,t,null,n)}function Ve(n,e){if(n===!1||n===null||typeof n>"u")throw new Error(e)}function ma(n,e){if(!n){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function yb(){return Math.random().toString(36).substr(2,8)}function wg(n,e){return{usr:n.state,key:n.key,idx:e}}function Al(n,e,t,s){return t===void 0&&(t=null),Ft({pathname:typeof n=="string"?n:n.pathname,search:"",hash:""},typeof e=="string"?vs(e):e,{state:t,key:e&&e.key||s||yb()})}function no(n){let{pathname:e="/",search:t="",hash:s=""}=n;return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),s&&s!=="#"&&(e+=s.charAt(0)==="#"?s:"#"+s),e}function vs(n){let e={};if(n){let t=n.indexOf("#");t>=0&&(e.hash=n.substr(t),n=n.substr(0,t));let s=n.indexOf("?");s>=0&&(e.search=n.substr(s),n=n.substr(0,s)),n&&(e.pathname=n)}return e}function gb(n,e,t,s){s===void 0&&(s={});let{window:a=document.defaultView,v5Compat:u=!1}=s,d=a.history,h=jt.Pop,p=null,y=g();y==null&&(y=0,d.replaceState(Ft({},d.state,{idx:y}),""));function g(){return(d.state||{idx:null}).idx}function v(){h=jt.Pop;let N=g(),G=N==null?null:N-y;y=N,p&&p({action:h,location:M.location,delta:G})}function x(N,G){h=jt.Push;let W=Al(M.location,N,G);y=g()+1;let K=wg(W,y),Y=M.createHref(W);try{d.pushState(K,"",Y)}catch(pe){if(pe instanceof DOMException&&pe.name==="DataCloneError")throw pe;a.location.assign(Y)}u&&p&&p({action:h,location:M.location,delta:1})}function D(N,G){h=jt.Replace;let W=Al(M.location,N,G);y=g();let K=wg(W,y),Y=M.createHref(W);d.replaceState(K,"",Y),u&&p&&p({action:h,location:M.location,delta:0})}function P(N){let G=a.location.origin!=="null"?a.location.origin:a.location.href,W=typeof N=="string"?N:no(N);return W=W.replace(/ $/,"%20"),Ve(G,"No window.location.(origin|href) available to create URL for href: "+W),new URL(W,G)}let M={get action(){return h},get location(){return n(a,d)},listen(N){if(p)throw new Error("A history only accepts one active listener");return a.addEventListener(vg,v),p=N,()=>{a.removeEventListener(vg,v),p=null}},createHref(N){return e(a,N)},createURL:P,encodeLocation(N){let G=P(N);return{pathname:G.pathname,search:G.search,hash:G.hash}},push:x,replace:D,go(N){return d.go(N)}};return M}var dt;(function(n){n.data="data",n.deferred="deferred",n.redirect="redirect",n.error="error"})(dt||(dt={}));const vb=new Set(["lazy","caseSensitive","path","id","index","children"]);function wb(n){return n.index===!0}function Fc(n,e,t,s){return t===void 0&&(t=[]),s===void 0&&(s={}),n.map((a,u)=>{let d=[...t,String(u)],h=typeof a.id=="string"?a.id:d.join("-");if(Ve(a.index!==!0||!a.children,"Cannot specify children on an index route"),Ve(!s[h],'Found a route id collision on id "'+h+`". Route id's must be globally unique within Data Router usages`),wb(a)){let p=Ft({},a,e(a),{id:h});return s[h]=p,p}else{let p=Ft({},a,e(a),{id:h,children:void 0});return s[h]=p,a.children&&(p.children=Fc(a.children,e,d,s)),p}})}function js(n,e,t){return t===void 0&&(t="/"),gc(n,e,t,!1)}function gc(n,e,t,s){let a=typeof e=="string"?vs(e):e,u=bi(a.pathname||"/",t);if(u==null)return null;let d=s0(n);_b(d);let h=null;for(let p=0;h==null&&p<d.length;++p){let y=Ab(u);h=Rb(d[p],y,s)}return h}function Sb(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 s0(n,e,t,s){e===void 0&&(e=[]),t===void 0&&(t=[]),s===void 0&&(s="");let a=(u,d,h)=>{let p={relativePath:h===void 0?u.path||"":h,caseSensitive:u.caseSensitive===!0,childrenIndex:d,route:u};p.relativePath.startsWith("/")&&(Ve(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 y=wi([s,p.relativePath]),g=t.concat(p);u.children&&u.children.length>0&&(Ve(u.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+y+'".')),s0(u.children,e,g,y)),!(u.path==null&&!u.index)&&e.push({path:y,score:Cb(y,u.index),routesMeta:g})};return n.forEach((u,d)=>{var h;if(u.path===""||!((h=u.path)!=null&&h.includes("?")))a(u,d);else for(let p of o0(u.path))a(u,d,p)}),e}function o0(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=o0(s.join("/")),h=[];return h.push(...d.map(p=>p===""?u:[u,p].join("/"))),a&&h.push(...d),h.map(p=>n.startsWith("/")&&p===""?"/":p)}function _b(n){n.sort((e,t)=>e.score!==t.score?t.score-e.score:Fb(e.routesMeta.map(s=>s.childrenIndex),t.routesMeta.map(s=>s.childrenIndex)))}const bb=/^:[\w-]+$/,Ib=3,Eb=2,xb=1,Db=10,Ob=-2,Sg=n=>n==="*";function Cb(n,e){let t=n.split("/"),s=t.length;return t.some(Sg)&&(s+=Ob),e&&(s+=Eb),t.filter(a=>!Sg(a)).reduce((a,u)=>a+(bb.test(u)?Ib:u===""?xb:Db),s)}function Fb(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 Rb(n,e,t){t===void 0&&(t=!1);let{routesMeta:s}=n,a={},u="/",d=[];for(let h=0;h<s.length;++h){let p=s[h],y=h===s.length-1,g=u==="/"?e:e.slice(u.length)||"/",v=Rc({path:p.relativePath,caseSensitive:p.caseSensitive,end:y},g),x=p.route;if(!v&&y&&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:wi([u,v.pathname]),pathnameBase:Bb(wi([u,v.pathnameBase])),route:x}),v.pathnameBase!=="/"&&(u=wi([u,v.pathnameBase]))}return d}function Rc(n,e){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[t,s]=Mb(n.path,n.caseSensitive,n.end),a=e.match(t);if(!a)return null;let u=a[0],d=u.replace(/(.)\/+$/,"$1"),h=a.slice(1);return{params:s.reduce((y,g,v)=>{let{paramName:x,isOptional:D}=g;if(x==="*"){let M=h[v]||"";d=u.slice(0,u.length-M.length).replace(/(.)\/+$/,"$1")}const P=h[v];return D&&!P?y[x]=void 0:y[x]=(P||"").replace(/%2F/g,"/"),y},{}),pathname:u,pathnameBase:d,pattern:n}}function Mb(n,e,t){e===void 0&&(e=!1),t===void 0&&(t=!0),ma(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,h,p)=>(s.push({paramName:h,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 Ab(n){try{return n.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return ma(!1,'The URL path "'+n+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),n}}function bi(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 Tb(n,e){e===void 0&&(e="/");let{pathname:t,search:s="",hash:a=""}=typeof n=="string"?vs(n):n;return{pathname:t?t.startsWith("/")?t:Lb(t,e):e,search:Nb(s),hash:Pb(a)}}function Lb(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 sh(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 a0(n){return n.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function ep(n,e){let t=a0(n);return e?t.map((s,a)=>a===t.length-1?s.pathname:s.pathnameBase):t.map(s=>s.pathnameBase)}function tp(n,e,t,s){s===void 0&&(s=!1);let a;typeof n=="string"?a=vs(n):(a=Ft({},n),Ve(!a.pathname||!a.pathname.includes("?"),sh("?","pathname","search",a)),Ve(!a.pathname||!a.pathname.includes("#"),sh("#","pathname","hash",a)),Ve(!a.search||!a.search.includes("#"),sh("#","search","hash",a)));let u=n===""||a.pathname==="",d=u?"/":a.pathname,h;if(d==null)h=t;else{let v=e.length-1;if(!s&&d.startsWith("..")){let x=d.split("/");for(;x[0]==="..";)x.shift(),v-=1;a.pathname=x.join("/")}h=v>=0?e[v]:"/"}let p=Tb(a,h),y=d&&d!=="/"&&d.endsWith("/"),g=(u||d===".")&&t.endsWith("/");return!p.pathname.endsWith("/")&&(y||g)&&(p.pathname+="/"),p}const wi=n=>n.join("/").replace(/\/\/+/g,"/"),Bb=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),Nb=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,Pb=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n;class Mc{constructor(e,t,s,a){a===void 0&&(a=!1),this.status=e,this.statusText=t||"",this.internal=a,s instanceof Error?(this.data=s.toString(),this.error=s):this.data=s}}function Tl(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}const l0=["post","put","patch","delete"],kb=new Set(l0),Ub=["get",...l0],jb=new Set(Ub),zb=new Set([301,302,303,307,308]),Vb=new Set([307,308]),oh={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},$b={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},pl={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},np=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Wb=n=>({hasErrorBoundary:!!n.hasErrorBoundary}),u0="remix-router-transitions";function Hb(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",s=!t;Ve(n.routes.length>0,"You must provide a non-empty routes array to createRouter");let a;if(n.mapRouteProperties)a=n.mapRouteProperties;else if(n.detectErrorBoundary){let _=n.detectErrorBoundary;a=C=>({hasErrorBoundary:_(C)})}else a=Wb;let u={},d=Fc(n.routes,a,void 0,u),h,p=n.basename||"/",y=n.dataStrategy||Yb,g=n.patchRoutesOnNavigation,v=Ft({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},n.future),x=null,D=new Set,P=null,M=null,N=null,G=n.hydrationData!=null,W=js(d,n.history.location,p),K=!1,Y=null;if(W==null&&!g){let _=An(404,{pathname:n.history.location.pathname}),{matches:C,route:L}=Mg(d);W=C,Y={[L.id]:_}}W&&!n.hydrationData&&Is(W,d,n.history.location.pathname).active&&(W=null);let pe;if(W)if(W.some(_=>_.route.lazy))pe=!1;else if(!W.some(_=>_.route.loader))pe=!0;else if(v.v7_partialHydration){let _=n.hydrationData?n.hydrationData.loaderData:null,C=n.hydrationData?n.hydrationData.errors:null;if(C){let L=W.findIndex(j=>C[j.route.id]!==void 0);pe=W.slice(0,L+1).every(j=>!Rh(j.route,_,C))}else pe=W.every(L=>!Rh(L.route,_,C))}else pe=n.hydrationData!=null;else if(pe=!1,W=[],v.v7_partialHydration){let _=Is(null,d,n.history.location.pathname);_.active&&_.matches&&(K=!0,W=_.matches)}let Be,T={historyAction:n.history.action,location:n.history.location,matches:W,initialized:pe,navigation:oh,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||Y,fetchers:new Map,blockers:new Map},J=jt.Pop,de=!1,te,nt=!1,Ue=new Map,Xe=null,gt=!1,kt=!1,Vt=[],mt=new Set,H=new Map,he=0,X=-1,O=new Map,U=new Set,Re=new Map,Le=new Map,Ae=new Set,Pe=new Map,Ke=new Map,qe;function vt(){if(x=n.history.listen(_=>{let{action:C,location:L,delta:j}=_;if(qe){qe(),qe=void 0;return}ma(Ke.size===0||j!=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 q=co({currentLocation:T.location,nextLocation:L,historyAction:C});if(q&&j!=null){let ce=new Promise(be=>{qe=be});n.history.go(j*-1),Ri(q,{state:"blocked",location:L,proceed(){Ri(q,{state:"proceeding",proceed:void 0,reset:void 0,location:L}),ce.then(()=>n.history.go(j))},reset(){let be=new Map(T.blockers);be.set(q,pl),Yt({blockers:be})}});return}return xr(C,L)}),t){uI(e,Ue);let _=()=>cI(e,Ue);e.addEventListener("pagehide",_),Xe=()=>e.removeEventListener("pagehide",_)}return T.initialized||xr(jt.Pop,T.location,{initialHydration:!0}),Be}function fn(){x&&x(),Xe&&Xe(),D.clear(),te&&te.abort(),T.fetchers.forEach((_,C)=>Or(C)),T.blockers.forEach((_,C)=>uo(C))}function so(_){return D.add(_),()=>D.delete(_)}function Yt(_,C){C===void 0&&(C={}),T=Ft({},T,_);let L=[],j=[];v.v7_fetcherPersist&&T.fetchers.forEach((q,ce)=>{q.state==="idle"&&(Ae.has(ce)?j.push(ce):L.push(ce))}),Ae.forEach(q=>{!T.fetchers.has(q)&&!H.has(q)&&j.push(q)}),[...D].forEach(q=>q(T,{deletedFetchers:j,viewTransitionOpts:C.viewTransitionOpts,flushSync:C.flushSync===!0})),v.v7_fetcherPersist?(L.forEach(q=>T.fetchers.delete(q)),j.forEach(q=>Or(q))):j.forEach(q=>Ae.delete(q))}function sr(_,C,L){var j,q;let{flushSync:ce}=L===void 0?{}:L,be=T.actionData!=null&&T.navigation.formMethod!=null&&gr(T.navigation.formMethod)&&T.navigation.state==="loading"&&((j=_.state)==null?void 0:j._isRedirect)!==!0,se;C.actionData?Object.keys(C.actionData).length>0?se=C.actionData:se=null:be?se=T.actionData:se=null;let ae=C.loaderData?Fg(T.loaderData,C.loaderData,C.matches||[],C.errors):T.loaderData,ne=T.blockers;ne.size>0&&(ne=new Map(ne),ne.forEach((We,$t)=>ne.set($t,pl)));let ie=de===!0||T.navigation.formMethod!=null&&gr(T.navigation.formMethod)&&((q=_.state)==null?void 0:q._isRedirect)!==!0;h&&(d=h,h=void 0),gt||J===jt.Pop||(J===jt.Push?n.history.push(_,_.state):J===jt.Replace&&n.history.replace(_,_.state));let Te;if(J===jt.Pop){let We=Ue.get(T.location.pathname);We&&We.has(_.pathname)?Te={currentLocation:T.location,nextLocation:_}:Ue.has(_.pathname)&&(Te={currentLocation:_,nextLocation:T.location})}else if(nt){let We=Ue.get(T.location.pathname);We?We.add(_.pathname):(We=new Set([_.pathname]),Ue.set(T.location.pathname,We)),Te={currentLocation:T.location,nextLocation:_}}Yt(Ft({},C,{actionData:se,loaderData:ae,historyAction:J,location:_,initialized:!0,navigation:oh,revalidation:"idle",restoreScrollPosition:Aa(_,C.matches||T.matches),preventScrollReset:ie,blockers:ne}),{viewTransitionOpts:Te,flushSync:ce===!0}),J=jt.Pop,de=!1,nt=!1,gt=!1,kt=!1,Vt=[]}async function oo(_,C){if(typeof _=="number"){n.history.go(_);return}let L=Fh(T.location,T.matches,p,v.v7_prependBasename,_,v.v7_relativeSplatPath,C==null?void 0:C.fromRouteId,C==null?void 0:C.relative),{path:j,submission:q,error:ce}=_g(v.v7_normalizeFormMethod,!1,L,C),be=T.location,se=Al(T.location,j,C&&C.state);se=Ft({},se,n.history.encodeLocation(se));let ae=C&&C.replace!=null?C.replace:void 0,ne=jt.Push;ae===!0?ne=jt.Replace:ae===!1||q!=null&&gr(q.formMethod)&&q.formAction===T.location.pathname+T.location.search&&(ne=jt.Replace);let ie=C&&"preventScrollReset"in C?C.preventScrollReset===!0:void 0,Te=(C&&C.flushSync)===!0,We=co({currentLocation:be,nextLocation:se,historyAction:ne});if(We){Ri(We,{state:"blocked",location:se,proceed(){Ri(We,{state:"proceeding",proceed:void 0,reset:void 0,location:se}),oo(_,C)},reset(){let $t=new Map(T.blockers);$t.set(We,pl),Yt({blockers:$t})}});return}return await xr(ne,se,{submission:q,pendingError:ce,preventScrollReset:ie,replace:C&&C.replace,enableViewTransition:C&&C.viewTransition,flushSync:Te})}function Gl(){if(bs(),Yt({revalidation:"loading"}),T.navigation.state!=="submitting"){if(T.navigation.state==="idle"){xr(T.historyAction,T.location,{startUninterruptedRevalidation:!0});return}xr(J||T.historyAction,T.navigation.location,{overrideNavigation:T.navigation,enableViewTransition:nt===!0})}}async function xr(_,C,L){te&&te.abort(),te=null,J=_,gt=(L&&L.startUninterruptedRevalidation)===!0,tu(T.location,T.matches),de=(L&&L.preventScrollReset)===!0,nt=(L&&L.enableViewTransition)===!0;let j=h||d,q=L&&L.overrideNavigation,ce=L!=null&&L.initialHydration&&T.matches&&T.matches.length>0&&!K?T.matches:js(j,C,p),be=(L&&L.flushSync)===!0;if(ce&&T.initialized&&!kt&&tI(T.location,C)&&!(L&&L.submission&&gr(L.submission.formMethod))){sr(C,{matches:ce},{flushSync:be});return}let se=Is(ce,j,C.pathname);if(se.active&&se.matches&&(ce=se.matches),!ce){let{error:at,notFoundMatches:Ye,route:bt}=Cr(C.pathname);sr(C,{matches:Ye,loaderData:{},errors:{[bt.id]:at}},{flushSync:be});return}te=new AbortController;let ae=Bo(n.history,C,te.signal,L&&L.submission),ne;if(L&&L.pendingError)ne=[zs(ce).route.id,{type:dt.error,error:L.pendingError}];else if(L&&L.submission&&gr(L.submission.formMethod)){let at=await Da(ae,C,L.submission,ce,se.active,{replace:L.replace,flushSync:be});if(at.shortCircuited)return;if(at.pendingActionResult){let[Ye,bt]=at.pendingActionResult;if(Vn(bt)&&Tl(bt.error)&&bt.error.status===404){te=null,sr(C,{matches:at.matches,loaderData:{},errors:{[Ye]:bt.error}});return}}ce=at.matches||ce,ne=at.pendingActionResult,q=ah(C,L.submission),be=!1,se.active=!1,ae=Bo(n.history,ae.url,ae.signal)}let{shortCircuited:ie,matches:Te,loaderData:We,errors:$t}=await Jl(ae,C,ce,se.active,q,L&&L.submission,L&&L.fetcherSubmission,L&&L.replace,L&&L.initialHydration===!0,be,ne);ie||(te=null,sr(C,Ft({matches:Te||ce},Rg(ne),{loaderData:We,errors:$t})))}async function Da(_,C,L,j,q,ce){ce===void 0&&(ce={}),bs();let be=aI(C,L);if(Yt({navigation:be},{flushSync:ce.flushSync===!0}),q){let ne=await Mi(j,C.pathname,_.signal);if(ne.type==="aborted")return{shortCircuited:!0};if(ne.type==="error"){let ie=zs(ne.partialMatches).route.id;return{matches:ne.partialMatches,pendingActionResult:[ie,{type:dt.error,error:ne.error}]}}else if(ne.matches)j=ne.matches;else{let{notFoundMatches:ie,error:Te,route:We}=Cr(C.pathname);return{matches:ie,pendingActionResult:[We.id,{type:dt.error,error:Te}]}}}let se,ae=Sl(j,C);if(!ae.route.action&&!ae.route.lazy)se={type:dt.error,error:An(405,{method:_.method,pathname:C.pathname,routeId:ae.route.id})};else if(se=(await Ci("action",T,_,[ae],j,null))[ae.route.id],_.signal.aborted)return{shortCircuited:!0};if($s(se)){let ne;return ce&&ce.replace!=null?ne=ce.replace:ne=Dg(se.response.headers.get("Location"),new URL(_.url),p)===T.location.pathname+T.location.search,await Dr(_,se,!0,{submission:L,replace:ne}),{shortCircuited:!0}}if(ps(se))throw An(400,{type:"defer-action"});if(Vn(se)){let ne=zs(j,ae.route.id);return(ce&&ce.replace)!==!0&&(J=jt.Push),{matches:j,pendingActionResult:[ne.route.id,se]}}return{matches:j,pendingActionResult:[ae.route.id,se]}}async function Jl(_,C,L,j,q,ce,be,se,ae,ne,ie){let Te=q||ah(C,ce),We=ce||be||Tg(Te),$t=!gt&&(!v.v7_partialHydration||!ae);if(j){if($t){let yt=ao(ie);Yt(Ft({navigation:Te},yt!==void 0?{actionData:yt}:{}),{flushSync:ne})}let He=await Mi(L,C.pathname,_.signal);if(He.type==="aborted")return{shortCircuited:!0};if(He.type==="error"){let yt=zs(He.partialMatches).route.id;return{matches:He.partialMatches,loaderData:{},errors:{[yt]:He.error}}}else if(He.matches)L=He.matches;else{let{error:yt,notFoundMatches:Zt,route:Ds}=Cr(C.pathname);return{matches:Zt,loaderData:{},errors:{[Ds.id]:yt}}}}let at=h||d,[Ye,bt]=Ig(n.history,T,L,We,C,v.v7_partialHydration&&ae===!0,v.v7_skipActionErrorRevalidation,kt,Vt,mt,Ae,Re,U,at,p,ie);if(Fr(He=>!(L&&L.some(yt=>yt.route.id===He))||Ye&&Ye.some(yt=>yt.route.id===He)),X=++he,Ye.length===0&&bt.length===0){let He=Zl();return sr(C,Ft({matches:L,loaderData:{},errors:ie&&Vn(ie[1])?{[ie[0]]:ie[1].error}:null},Rg(ie),He?{fetchers:new Map(T.fetchers)}:{}),{flushSync:ne}),{shortCircuited:!0}}if($t){let He={};if(!j){He.navigation=Te;let yt=ao(ie);yt!==void 0&&(He.actionData=yt)}bt.length>0&&(He.fetchers=_s(bt)),Yt(He,{flushSync:ne})}bt.forEach(He=>{or(He.key),He.controller&&H.set(He.key,He.controller)});let Gr=()=>bt.forEach(He=>or(He.key));te&&te.signal.addEventListener("abort",Gr);let{loaderResults:xs,fetcherResults:ar}=await Ca(T,L,Ye,bt,_);if(_.signal.aborted)return{shortCircuited:!0};te&&te.signal.removeEventListener("abort",Gr),bt.forEach(He=>H.delete(He.key));let Ze=cc(xs);if(Ze)return await Dr(_,Ze.result,!0,{replace:se}),{shortCircuited:!0};if(Ze=cc(ar),Ze)return U.add(Ze.key),await Dr(_,Ze.result,!0,{replace:se}),{shortCircuited:!0};let{loaderData:Ta,errors:Jr}=Cg(T,L,xs,ie,bt,ar,Pe);Pe.forEach((He,yt)=>{He.subscribe(Zt=>{(Zt||He.done)&&Pe.delete(yt)})}),v.v7_partialHydration&&ae&&T.errors&&(Jr=Ft({},T.errors,Jr));let Rr=Zl(),Xr=lo(X),fo=Rr||Xr||bt.length>0;return Ft({matches:L,loaderData:Ta,errors:Jr},fo?{fetchers:new Map(T.fetchers)}:{})}function ao(_){if(_&&!Vn(_[1]))return{[_[0]]:_[1].data};if(T.actionData)return Object.keys(T.actionData).length===0?null:T.actionData}function _s(_){return _.forEach(C=>{let L=T.fetchers.get(C.key),j=ml(void 0,L?L.data:void 0);T.fetchers.set(C.key,j)}),new Map(T.fetchers)}function Oi(_,C,L,j){if(s)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");or(_);let q=(j&&j.flushSync)===!0,ce=h||d,be=Fh(T.location,T.matches,p,v.v7_prependBasename,L,v.v7_relativeSplatPath,C,j==null?void 0:j.relative),se=js(ce,be,p),ae=Is(se,ce,be);if(ae.active&&ae.matches&&(se=ae.matches),!se){Wn(_,C,An(404,{pathname:be}),{flushSync:q});return}let{path:ne,submission:ie,error:Te}=_g(v.v7_normalizeFormMethod,!0,be,j);if(Te){Wn(_,C,Te,{flushSync:q});return}let We=Sl(se,ne),$t=(j&&j.preventScrollReset)===!0;if(ie&&gr(ie.formMethod)){Oa(_,C,ne,We,se,ae.active,q,$t,ie);return}Re.set(_,{routeId:C,path:ne}),Xl(_,C,ne,We,se,ae.active,q,$t,ie)}async function Oa(_,C,L,j,q,ce,be,se,ae){bs(),Re.delete(_);function ne(et){if(!et.route.action&&!et.route.lazy){let Ai=An(405,{method:ae.formMethod,pathname:L,routeId:C});return Wn(_,C,Ai,{flushSync:be}),!0}return!1}if(!ce&&ne(j))return;let ie=T.fetchers.get(_);Pn(_,lI(ae,ie),{flushSync:be});let Te=new AbortController,We=Bo(n.history,L,Te.signal,ae);if(ce){let et=await Mi(q,new URL(We.url).pathname,We.signal,_);if(et.type==="aborted")return;if(et.type==="error"){Wn(_,C,et.error,{flushSync:be});return}else if(et.matches){if(q=et.matches,j=Sl(q,L),ne(j))return}else{Wn(_,C,An(404,{pathname:L}),{flushSync:be});return}}H.set(_,Te);let $t=he,Ye=(await Ci("action",T,We,[j],q,_))[j.route.id];if(We.signal.aborted){H.get(_)===Te&&H.delete(_);return}if(v.v7_fetcherPersist&&Ae.has(_)){if($s(Ye)||Vn(Ye)){Pn(_,es(void 0));return}}else{if($s(Ye))if(H.delete(_),X>$t){Pn(_,es(void 0));return}else return U.add(_),Pn(_,ml(ae)),Dr(We,Ye,!1,{fetcherSubmission:ae,preventScrollReset:se});if(Vn(Ye)){Wn(_,C,Ye.error);return}}if(ps(Ye))throw An(400,{type:"defer-action"});let bt=T.navigation.location||T.location,Gr=Bo(n.history,bt,Te.signal),xs=h||d,ar=T.navigation.state!=="idle"?js(xs,T.navigation.location,p):T.matches;Ve(ar,"Didn't find any matches after fetcher action");let Ze=++he;O.set(_,Ze);let Ta=ml(ae,Ye.data);T.fetchers.set(_,Ta);let[Jr,Rr]=Ig(n.history,T,ar,ae,bt,!1,v.v7_skipActionErrorRevalidation,kt,Vt,mt,Ae,Re,U,xs,p,[j.route.id,Ye]);Rr.filter(et=>et.key!==_).forEach(et=>{let Ai=et.key,ru=T.fetchers.get(Ai),gd=ml(void 0,ru?ru.data:void 0);T.fetchers.set(Ai,gd),or(Ai),et.controller&&H.set(Ai,et.controller)}),Yt({fetchers:new Map(T.fetchers)});let Xr=()=>Rr.forEach(et=>or(et.key));Te.signal.addEventListener("abort",Xr);let{loaderResults:fo,fetcherResults:He}=await Ca(T,ar,Jr,Rr,Gr);if(Te.signal.aborted)return;Te.signal.removeEventListener("abort",Xr),O.delete(_),H.delete(_),Rr.forEach(et=>H.delete(et.key));let yt=cc(fo);if(yt)return Dr(Gr,yt.result,!1,{preventScrollReset:se});if(yt=cc(He),yt)return U.add(yt.key),Dr(Gr,yt.result,!1,{preventScrollReset:se});let{loaderData:Zt,errors:Ds}=Cg(T,ar,fo,void 0,Rr,He,Pe);if(T.fetchers.has(_)){let et=es(Ye.data);T.fetchers.set(_,et)}lo(Ze),T.navigation.state==="loading"&&Ze>X?(Ve(J,"Expected pending action"),te&&te.abort(),sr(T.navigation.location,{matches:ar,loaderData:Zt,errors:Ds,fetchers:new Map(T.fetchers)})):(Yt({errors:Ds,loaderData:Fg(T.loaderData,Zt,ar,Ds),fetchers:new Map(T.fetchers)}),kt=!1)}async function Xl(_,C,L,j,q,ce,be,se,ae){let ne=T.fetchers.get(_);Pn(_,ml(ae,ne?ne.data:void 0),{flushSync:be});let ie=new AbortController,Te=Bo(n.history,L,ie.signal);if(ce){let Ye=await Mi(q,new URL(Te.url).pathname,Te.signal,_);if(Ye.type==="aborted")return;if(Ye.type==="error"){Wn(_,C,Ye.error,{flushSync:be});return}else if(Ye.matches)q=Ye.matches,j=Sl(q,L);else{Wn(_,C,An(404,{pathname:L}),{flushSync:be});return}}H.set(_,ie);let We=he,at=(await Ci("loader",T,Te,[j],q,_))[j.route.id];if(ps(at)&&(at=await rp(at,Te.signal,!0)||at),H.get(_)===ie&&H.delete(_),!Te.signal.aborted){if(Ae.has(_)){Pn(_,es(void 0));return}if($s(at))if(X>We){Pn(_,es(void 0));return}else{U.add(_),await Dr(Te,at,!1,{preventScrollReset:se});return}if(Vn(at)){Wn(_,C,at.error);return}Ve(!ps(at),"Unhandled fetcher deferred data"),Pn(_,es(at.data))}}async function Dr(_,C,L,j){let{submission:q,fetcherSubmission:ce,preventScrollReset:be,replace:se}=j===void 0?{}:j;C.response.headers.has("X-Remix-Revalidate")&&(kt=!0);let ae=C.response.headers.get("Location");Ve(ae,"Expected a Location header on the redirect Response"),ae=Dg(ae,new URL(_.url),p);let ne=Al(T.location,ae,{_isRedirect:!0});if(t){let Ye=!1;if(C.response.headers.has("X-Remix-Reload-Document"))Ye=!0;else if(np.test(ae)){const bt=n.history.createURL(ae);Ye=bt.origin!==e.location.origin||bi(bt.pathname,p)==null}if(Ye){se?e.location.replace(ae):e.location.assign(ae);return}}te=null;let ie=se===!0||C.response.headers.has("X-Remix-Replace")?jt.Replace:jt.Push,{formMethod:Te,formAction:We,formEncType:$t}=T.navigation;!q&&!ce&&Te&&We&&$t&&(q=Tg(T.navigation));let at=q||ce;if(Vb.has(C.response.status)&&at&&gr(at.formMethod))await xr(ie,ne,{submission:Ft({},at,{formAction:ae}),preventScrollReset:be||de,enableViewTransition:L?nt:void 0});else{let Ye=ah(ne,q);await xr(ie,ne,{overrideNavigation:Ye,fetcherSubmission:ce,preventScrollReset:be||de,enableViewTransition:L?nt:void 0})}}async function Ci(_,C,L,j,q,ce){let be,se={};try{be=await Gb(y,_,C,L,j,q,ce,u,a)}catch(ae){return j.forEach(ne=>{se[ne.route.id]={type:dt.error,error:ae}}),se}for(let[ae,ne]of Object.entries(be))if(nI(ne)){let ie=ne.result;se[ae]={type:dt.redirect,response:Zb(ie,L,ae,q,p,v.v7_relativeSplatPath)}}else se[ae]=await Xb(ne);return se}async function Ca(_,C,L,j,q){let ce=_.matches,be=Ci("loader",_,q,L,C,null),se=Promise.all(j.map(async ie=>{if(ie.matches&&ie.match&&ie.controller){let We=(await Ci("loader",_,Bo(n.history,ie.path,ie.controller.signal),[ie.match],ie.matches,ie.key))[ie.match.route.id];return{[ie.key]:We}}else return Promise.resolve({[ie.key]:{type:dt.error,error:An(404,{pathname:ie.path})}})})),ae=await be,ne=(await se).reduce((ie,Te)=>Object.assign(ie,Te),{});return await Promise.all([sI(C,ae,q.signal,ce,_.loaderData),oI(C,ne,j)]),{loaderResults:ae,fetcherResults:ne}}function bs(){kt=!0,Vt.push(...Fr()),Re.forEach((_,C)=>{H.has(C)&&mt.add(C),or(C)})}function Pn(_,C,L){L===void 0&&(L={}),T.fetchers.set(_,C),Yt({fetchers:new Map(T.fetchers)},{flushSync:(L&&L.flushSync)===!0})}function Wn(_,C,L,j){j===void 0&&(j={});let q=zs(T.matches,C);Or(_),Yt({errors:{[q.route.id]:L},fetchers:new Map(T.fetchers)},{flushSync:(j&&j.flushSync)===!0})}function Fi(_){return Le.set(_,(Le.get(_)||0)+1),Ae.has(_)&&Ae.delete(_),T.fetchers.get(_)||$b}function Or(_){let C=T.fetchers.get(_);H.has(_)&&!(C&&C.state==="loading"&&O.has(_))&&or(_),Re.delete(_),O.delete(_),U.delete(_),v.v7_fetcherPersist&&Ae.delete(_),mt.delete(_),T.fetchers.delete(_)}function yd(_){let C=(Le.get(_)||0)-1;C<=0?(Le.delete(_),Ae.add(_),v.v7_fetcherPersist||Or(_)):Le.set(_,C),Yt({fetchers:new Map(T.fetchers)})}function or(_){let C=H.get(_);C&&(C.abort(),H.delete(_))}function Fa(_){for(let C of _){let L=Fi(C),j=es(L.data);T.fetchers.set(C,j)}}function Zl(){let _=[],C=!1;for(let L of U){let j=T.fetchers.get(L);Ve(j,"Expected fetcher: "+L),j.state==="loading"&&(U.delete(L),_.push(L),C=!0)}return Fa(_),C}function lo(_){let C=[];for(let[L,j]of O)if(j<_){let q=T.fetchers.get(L);Ve(q,"Expected fetcher: "+L),q.state==="loading"&&(or(L),O.delete(L),C.push(L))}return Fa(C),C.length>0}function Ra(_,C){let L=T.blockers.get(_)||pl;return Ke.get(_)!==C&&Ke.set(_,C),L}function uo(_){T.blockers.delete(_),Ke.delete(_)}function Ri(_,C){let L=T.blockers.get(_)||pl;Ve(L.state==="unblocked"&&C.state==="blocked"||L.state==="blocked"&&C.state==="blocked"||L.state==="blocked"&&C.state==="proceeding"||L.state==="blocked"&&C.state==="unblocked"||L.state==="proceeding"&&C.state==="unblocked","Invalid blocker state transition: "+L.state+" -> "+C.state);let j=new Map(T.blockers);j.set(_,C),Yt({blockers:j})}function co(_){let{currentLocation:C,nextLocation:L,historyAction:j}=_;if(Ke.size===0)return;Ke.size>1&&ma(!1,"A router only supports one blocker at a time");let q=Array.from(Ke.entries()),[ce,be]=q[q.length-1],se=T.blockers.get(ce);if(!(se&&se.state==="proceeding")&&be({currentLocation:C,nextLocation:L,historyAction:j}))return ce}function Cr(_){let C=An(404,{pathname:_}),L=h||d,{matches:j,route:q}=Mg(L);return Fr(),{notFoundMatches:j,route:q,error:C}}function Fr(_){let C=[];return Pe.forEach((L,j)=>{(!_||_(j))&&(L.cancel(),C.push(j),Pe.delete(j))}),C}function eu(_,C,L){if(P=_,N=C,M=L||null,!G&&T.navigation===oh){G=!0;let j=Aa(T.location,T.matches);j!=null&&Yt({restoreScrollPosition:j})}return()=>{P=null,N=null,M=null}}function Ma(_,C){return M&&M(_,C.map(j=>Sb(j,T.loaderData)))||_.key}function tu(_,C){if(P&&N){let L=Ma(_,C);P[L]=N()}}function Aa(_,C){if(P){let L=Ma(_,C),j=P[L];if(typeof j=="number")return j}return null}function Is(_,C,L){if(g)if(_){if(Object.keys(_[0].params).length>0)return{active:!0,matches:gc(C,L,p,!0)}}else return{active:!0,matches:gc(C,L,p,!0)||[]};return{active:!1,matches:null}}async function Mi(_,C,L,j){if(!g)return{type:"success",matches:_};let q=_;for(;;){let ce=h==null,be=h||d,se=u;try{await g({signal:L,path:C,matches:q,fetcherKey:j,patch:(ie,Te)=>{L.aborted||xg(ie,Te,be,se,a)}})}catch(ie){return{type:"error",error:ie,partialMatches:q}}finally{ce&&!L.aborted&&(d=[...d])}if(L.aborted)return{type:"aborted"};let ae=js(be,C,p);if(ae)return{type:"success",matches:ae};let ne=gc(be,C,p,!0);if(!ne||q.length===ne.length&&q.every((ie,Te)=>ie.route.id===ne[Te].route.id))return{type:"success",matches:null};q=ne}}function nu(_){u={},h=Fc(_,a,void 0,u)}function Es(_,C){let L=h==null;xg(_,C,h||d,u,a),L&&(d=[...d],Yt({}))}return Be={get basename(){return p},get future(){return v},get state(){return T},get routes(){return d},get window(){return e},initialize:vt,subscribe:so,enableScrollRestoration:eu,navigate:oo,fetch:Oi,revalidate:Gl,createHref:_=>n.history.createHref(_),encodeLocation:_=>n.history.encodeLocation(_),getFetcher:Fi,deleteFetcher:yd,dispose:fn,getBlocker:Ra,deleteBlocker:uo,patchRoutes:Es,_internalFetchControllers:H,_internalActiveDeferreds:Pe,_internalSetRoutes:nu},Be}function Qb(n){return n!=null&&("formData"in n&&n.formData!=null||"body"in n&&n.body!==void 0)}function Fh(n,e,t,s,a,u,d,h){let p,y;if(d){p=[];for(let v of e)if(p.push(v),v.route.id===d){y=v;break}}else p=e,y=e[e.length-1];let g=tp(a||".",ep(p,u),bi(n.pathname,t)||n.pathname,h==="path");if(a==null&&(g.search=n.search,g.hash=n.hash),(a==null||a===""||a===".")&&y){let v=ip(g.search);if(y.route.index&&!v)g.search=g.search?g.search.replace(/^\?/,"?index&"):"?index";else if(!y.route.index&&v){let x=new URLSearchParams(g.search),D=x.getAll("index");x.delete("index"),D.filter(M=>M).forEach(M=>x.append("index",M));let P=x.toString();g.search=P?"?"+P:""}}return s&&t!=="/"&&(g.pathname=g.pathname==="/"?t:wi([t,g.pathname])),no(g)}function _g(n,e,t,s){if(!s||!Qb(s))return{path:t};if(s.formMethod&&!iI(s.formMethod))return{path:t,error:An(405,{method:s.formMethod})};let a=()=>({path:t,error:An(400,{type:"invalid-body"})}),u=s.formMethod||"get",d=n?u.toUpperCase():u.toLowerCase(),h=f0(t);if(s.body!==void 0){if(s.formEncType==="text/plain"){if(!gr(d))return a();let x=typeof s.body=="string"?s.body:s.body instanceof FormData||s.body instanceof URLSearchParams?Array.from(s.body.entries()).reduce((D,P)=>{let[M,N]=P;return""+D+M+"="+N+`
53
+ `},""):String(s.body);return{path:t,submission:{formMethod:d,formAction:h,formEncType:s.formEncType,formData:void 0,json:void 0,text:x}}}else if(s.formEncType==="application/json"){if(!gr(d))return a();try{let x=typeof s.body=="string"?JSON.parse(s.body):s.body;return{path:t,submission:{formMethod:d,formAction:h,formEncType:s.formEncType,formData:void 0,json:x,text:void 0}}}catch{return a()}}}Ve(typeof FormData=="function","FormData is not available in this environment");let p,y;if(s.formData)p=Mh(s.formData),y=s.formData;else if(s.body instanceof FormData)p=Mh(s.body),y=s.body;else if(s.body instanceof URLSearchParams)p=s.body,y=Og(p);else if(s.body==null)p=new URLSearchParams,y=new FormData;else try{p=new URLSearchParams(s.body),y=Og(p)}catch{return a()}let g={formMethod:d,formAction:h,formEncType:s&&s.formEncType||"application/x-www-form-urlencoded",formData:y,json:void 0,text:void 0};if(gr(g.formMethod))return{path:t,submission:g};let v=vs(t);return e&&v.search&&ip(v.search)&&p.append("index",""),v.search="?"+p,{path:no(v),submission:g}}function bg(n,e,t){t===void 0&&(t=!1);let s=n.findIndex(a=>a.route.id===e);return s>=0?n.slice(0,t?s+1:s):n}function Ig(n,e,t,s,a,u,d,h,p,y,g,v,x,D,P,M){let N=M?Vn(M[1])?M[1].error:M[1].data:void 0,G=n.createURL(e.location),W=n.createURL(a),K=t;u&&e.errors?K=bg(t,Object.keys(e.errors)[0],!0):M&&Vn(M[1])&&(K=bg(t,M[0]));let Y=M?M[1].statusCode:void 0,pe=d&&Y&&Y>=400,Be=K.filter((J,de)=>{let{route:te}=J;if(te.lazy)return!0;if(te.loader==null)return!1;if(u)return Rh(te,e.loaderData,e.errors);if(Kb(e.loaderData,e.matches[de],J)||p.some(Xe=>Xe===J.route.id))return!0;let nt=e.matches[de],Ue=J;return Eg(J,Ft({currentUrl:G,currentParams:nt.params,nextUrl:W,nextParams:Ue.params},s,{actionResult:N,actionStatus:Y,defaultShouldRevalidate:pe?!1:h||G.pathname+G.search===W.pathname+W.search||G.search!==W.search||c0(nt,Ue)}))}),T=[];return v.forEach((J,de)=>{if(u||!t.some(gt=>gt.route.id===J.routeId)||g.has(de))return;let te=js(D,J.path,P);if(!te){T.push({key:de,routeId:J.routeId,path:J.path,matches:null,match:null,controller:null});return}let nt=e.fetchers.get(de),Ue=Sl(te,J.path),Xe=!1;x.has(de)?Xe=!1:y.has(de)?(y.delete(de),Xe=!0):nt&&nt.state!=="idle"&&nt.data===void 0?Xe=h:Xe=Eg(Ue,Ft({currentUrl:G,currentParams:e.matches[e.matches.length-1].params,nextUrl:W,nextParams:t[t.length-1].params},s,{actionResult:N,actionStatus:Y,defaultShouldRevalidate:pe?!1:h})),Xe&&T.push({key:de,routeId:J.routeId,path:J.path,matches:te,match:Ue,controller:new AbortController})}),[Be,T]}function Rh(n,e,t){if(n.lazy)return!0;if(!n.loader)return!1;let s=e!=null&&e[n.id]!==void 0,a=t!=null&&t[n.id]!==void 0;return!s&&a?!1:typeof n.loader=="function"&&n.loader.hydrate===!0?!0:!s&&!a}function Kb(n,e,t){let s=!e||t.route.id!==e.route.id,a=n[t.route.id]===void 0;return s||a}function c0(n,e){let t=n.route.path;return n.pathname!==e.pathname||t!=null&&t.endsWith("*")&&n.params["*"]!==e.params["*"]}function Eg(n,e){if(n.route.shouldRevalidate){let t=n.route.shouldRevalidate(e);if(typeof t=="boolean")return t}return e.defaultShouldRevalidate}function xg(n,e,t,s,a){var u;let d;if(n){let y=s[n];Ve(y,"No route found to patch children into: routeId = "+n),y.children||(y.children=[]),d=y.children}else d=t;let h=e.filter(y=>!d.some(g=>d0(y,g))),p=Fc(h,a,[n||"_","patch",String(((u=d)==null?void 0:u.length)||"0")],s);d.push(...p)}function d0(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=>d0(t,u))}):!1}async function qb(n,e,t){if(!n.lazy)return;let s=await n.lazy();if(!n.lazy)return;let a=t[n.id];Ve(a,"No route found in manifest");let u={};for(let d in s){let p=a[d]!==void 0&&d!=="hasErrorBoundary";ma(!p,'Route "'+a.id+'" has a static property "'+d+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+d+'" will be ignored.')),!p&&!vb.has(d)&&(u[d]=s[d])}Object.assign(a,u),Object.assign(a,Ft({},e(a),{lazy:void 0}))}async function Yb(n){let{matches:e}=n,t=e.filter(a=>a.shouldLoad);return(await Promise.all(t.map(a=>a.resolve()))).reduce((a,u,d)=>Object.assign(a,{[t[d].route.id]:u}),{})}async function Gb(n,e,t,s,a,u,d,h,p,y){let g=u.map(D=>D.route.lazy?qb(D.route,p,h):void 0),v=u.map((D,P)=>{let M=g[P],N=a.some(W=>W.route.id===D.route.id);return Ft({},D,{shouldLoad:N,resolve:async W=>(W&&s.method==="GET"&&(D.route.lazy||D.route.loader)&&(N=!0),N?Jb(e,s,D,M,W,y):Promise.resolve({type:dt.data,result:void 0}))})}),x=await n({matches:v,request:s,params:u[0].params,fetcherKey:d,context:y});try{await Promise.all(g)}catch{}return x}async function Jb(n,e,t,s,a,u){let d,h,p=y=>{let g,v=new Promise((P,M)=>g=M);h=()=>g(),e.signal.addEventListener("abort",h);let x=P=>typeof y!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+n+'" [routeId: '+t.route.id+"]"))):y({request:e,params:t.params,context:u},...P!==void 0?[P]:[]),D=(async()=>{try{return{type:"data",result:await(a?a(M=>x(M)):x())}}catch(P){return{type:"error",result:P}}})();return Promise.race([D,v])};try{let y=t.route[n];if(s)if(y){let g,[v]=await Promise.all([p(y).catch(x=>{g=x}),s]);if(g!==void 0)throw g;d=v}else if(await s,y=t.route[n],y)d=await p(y);else if(n==="action"){let g=new URL(e.url),v=g.pathname+g.search;throw An(405,{method:e.method,pathname:v,routeId:t.route.id})}else return{type:dt.data,result:void 0};else if(y)d=await p(y);else{let g=new URL(e.url),v=g.pathname+g.search;throw An(404,{pathname:v})}Ve(d.result!==void 0,"You defined "+(n==="action"?"an action":"a loader")+" for route "+('"'+t.route.id+"\" but didn't return anything from your `"+n+"` ")+"function. Please return a value or `null`.")}catch(y){return{type:dt.error,result:y}}finally{h&&e.signal.removeEventListener("abort",h)}return d}async function Xb(n){let{result:e,type:t}=n;if(h0(e)){let v;try{let x=e.headers.get("Content-Type");x&&/\bapplication\/json\b/.test(x)?e.body==null?v=null:v=await e.json():v=await e.text()}catch(x){return{type:dt.error,error:x}}return t===dt.error?{type:dt.error,error:new Mc(e.status,e.statusText,v),statusCode:e.status,headers:e.headers}:{type:dt.data,data:v,statusCode:e.status,headers:e.headers}}if(t===dt.error){if(Ag(e)){var s,a;if(e.data instanceof Error){var u,d;return{type:dt.error,error:e.data,statusCode:(u=e.init)==null?void 0:u.status,headers:(d=e.init)!=null&&d.headers?new Headers(e.init.headers):void 0}}return{type:dt.error,error:new Mc(((s=e.init)==null?void 0:s.status)||500,void 0,e.data),statusCode:Tl(e)?e.status:void 0,headers:(a=e.init)!=null&&a.headers?new Headers(e.init.headers):void 0}}return{type:dt.error,error:e,statusCode:Tl(e)?e.status:void 0}}if(rI(e)){var h,p;return{type:dt.deferred,deferredData:e,statusCode:(h=e.init)==null?void 0:h.status,headers:((p=e.init)==null?void 0:p.headers)&&new Headers(e.init.headers)}}if(Ag(e)){var y,g;return{type:dt.data,data:e.data,statusCode:(y=e.init)==null?void 0:y.status,headers:(g=e.init)!=null&&g.headers?new Headers(e.init.headers):void 0}}return{type:dt.data,data:e}}function Zb(n,e,t,s,a,u){let d=n.headers.get("Location");if(Ve(d,"Redirects returned/thrown from loaders/actions must have a Location header"),!np.test(d)){let h=s.slice(0,s.findIndex(p=>p.route.id===t)+1);d=Fh(new URL(e.url),h,a,!0,d,u),n.headers.set("Location",d)}return n}function Dg(n,e,t){if(np.test(n)){let s=n,a=s.startsWith("//")?new URL(e.protocol+s):new URL(s),u=bi(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(f0(e)).toString(),u={signal:t};if(s&&gr(s.formMethod)){let{formMethod:d,formEncType:h}=s;u.method=d.toUpperCase(),h==="application/json"?(u.headers=new Headers({"Content-Type":h}),u.body=JSON.stringify(s.json)):h==="text/plain"?u.body=s.text:h==="application/x-www-form-urlencoded"&&s.formData?u.body=Mh(s.formData):u.body=s.formData}return new Request(a,u)}function Mh(n){let e=new URLSearchParams;for(let[t,s]of n.entries())e.append(t,typeof s=="string"?s:s.name);return e}function Og(n){let e=new FormData;for(let[t,s]of n.entries())e.append(t,s);return e}function eI(n,e,t,s,a){let u={},d=null,h,p=!1,y={},g=t&&Vn(t[1])?t[1].error:void 0;return n.forEach(v=>{if(!(v.route.id in e))return;let x=v.route.id,D=e[x];if(Ve(!$s(D),"Cannot handle redirect results in processLoaderData"),Vn(D)){let P=D.error;g!==void 0&&(P=g,g=void 0),d=d||{};{let M=zs(n,x);d[M.route.id]==null&&(d[M.route.id]=P)}u[x]=void 0,p||(p=!0,h=Tl(D.error)?D.error.status:500),D.headers&&(y[x]=D.headers)}else ps(D)?(s.set(x,D.deferredData),u[x]=D.deferredData.data,D.statusCode!=null&&D.statusCode!==200&&!p&&(h=D.statusCode),D.headers&&(y[x]=D.headers)):(u[x]=D.data,D.statusCode&&D.statusCode!==200&&!p&&(h=D.statusCode),D.headers&&(y[x]=D.headers))}),g!==void 0&&t&&(d={[t[0]]:g},u[t[0]]=void 0),{loaderData:u,errors:d,statusCode:h||200,loaderHeaders:y}}function Cg(n,e,t,s,a,u,d){let{loaderData:h,errors:p}=eI(e,t,s,d);return a.forEach(y=>{let{key:g,match:v,controller:x}=y,D=u[g];if(Ve(D,"Did not find corresponding fetcher result"),!(x&&x.signal.aborted))if(Vn(D)){let P=zs(n.matches,v==null?void 0:v.route.id);p&&p[P.route.id]||(p=Ft({},p,{[P.route.id]:D.error})),n.fetchers.delete(g)}else if($s(D))Ve(!1,"Unhandled fetcher revalidation redirect");else if(ps(D))Ve(!1,"Unhandled fetcher deferred data");else{let P=es(D.data);n.fetchers.set(g,P)}}),{loaderData:h,errors:p}}function Fg(n,e,t,s){let a=Ft({},e);for(let u of t){let d=u.route.id;if(e.hasOwnProperty(d)?e[d]!==void 0&&(a[d]=e[d]):n[d]!==void 0&&u.route.loader&&(a[d]=n[d]),s&&s.hasOwnProperty(d))break}return a}function Rg(n){return n?Vn(n[1])?{actionData:{}}:{actionData:{[n[0]]:n[1].data}}:{}}function zs(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 Mg(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 An(n,e){let{pathname:t,routeId:s,method:a,type:u,message:d}=e===void 0?{}:e,h="Unknown Server Error",p="Unknown @remix-run/router error";return n===400?(h="Bad Request",a&&t&&s?p="You made a "+a+' request to "'+t+'" but '+('did not provide a `loader` for route "'+s+'", ')+"so there is no way to handle the request.":u==="defer-action"?p="defer() is not supported in actions":u==="invalid-body"&&(p="Unable to encode submission body")):n===403?(h="Forbidden",p='Route "'+s+'" does not match URL "'+t+'"'):n===404?(h="Not Found",p='No route matches URL "'+t+'"'):n===405&&(h="Method Not Allowed",a&&t&&s?p="You made a "+a.toUpperCase()+' request to "'+t+'" but '+('did not provide an `action` for route "'+s+'", ')+"so there is no way to handle the request.":a&&(p='Invalid request method "'+a.toUpperCase()+'"')),new Mc(n||500,h,new Error(p),!0)}function cc(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 f0(n){let e=typeof n=="string"?vs(n):n;return no(Ft({},e,{hash:""}))}function tI(n,e){return n.pathname!==e.pathname||n.search!==e.search?!1:n.hash===""?e.hash!=="":n.hash===e.hash?!0:e.hash!==""}function nI(n){return h0(n.result)&&zb.has(n.result.status)}function ps(n){return n.type===dt.deferred}function Vn(n){return n.type===dt.error}function $s(n){return(n&&n.type)===dt.redirect}function Ag(n){return typeof n=="object"&&n!=null&&"type"in n&&"data"in n&&"init"in n&&n.type==="DataWithResponseInit"}function rI(n){let e=n;return e&&typeof e=="object"&&typeof e.data=="object"&&typeof e.subscribe=="function"&&typeof e.cancel=="function"&&typeof e.resolveData=="function"}function h0(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.headers=="object"&&typeof n.body<"u"}function iI(n){return jb.has(n.toLowerCase())}function gr(n){return kb.has(n.toLowerCase())}async function sI(n,e,t,s,a){let u=Object.entries(e);for(let d=0;d<u.length;d++){let[h,p]=u[d],y=n.find(x=>(x==null?void 0:x.route.id)===h);if(!y)continue;let g=s.find(x=>x.route.id===y.route.id),v=g!=null&&!c0(g,y)&&(a&&a[y.route.id])!==void 0;ps(p)&&v&&await rp(p,t,!1).then(x=>{x&&(e[h]=x)})}}async function oI(n,e,t){for(let s=0;s<t.length;s++){let{key:a,routeId:u,controller:d}=t[s],h=e[a];n.find(y=>(y==null?void 0:y.route.id)===u)&&ps(h)&&(Ve(d,"Expected an AbortController for revalidating fetcher deferred result"),await rp(h,d.signal,!0).then(y=>{y&&(e[a]=y)}))}}async function rp(n,e,t){if(t===void 0&&(t=!1),!await n.deferredData.resolveData(e)){if(t)try{return{type:dt.data,data:n.deferredData.unwrappedData}}catch(a){return{type:dt.error,error:a}}return{type:dt.data,data:n.deferredData.data}}}function ip(n){return new URLSearchParams(n).getAll("index").some(e=>e==="")}function Sl(n,e){let t=typeof e=="string"?vs(e).search:e.search;if(n[n.length-1].route.index&&ip(t||""))return n[n.length-1];let s=a0(n);return s[s.length-1]}function Tg(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 ah(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 aI(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 ml(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 lI(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 es(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 uI(n,e){try{let t=n.sessionStorage.getItem(u0);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 cI(n,e){if(e.size>0){let t={};for(let[s,a]of e)t[s]=[...a];try{n.sessionStorage.setItem(u0,JSON.stringify(t))}catch(s){ma(!1,"Failed to save applied view transitions in sessionStorage ("+s+").")}}}/**
54
+ * React Router v6.30.0
55
+ *
56
+ * Copyright (c) Remix Software Inc.
57
+ *
58
+ * This source code is licensed under the MIT license found in the
59
+ * LICENSE.md file in the root directory of this source tree.
60
+ *
61
+ * @license MIT
62
+ */function Ac(){return Ac=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(n[s]=t[s])}return n},Ac.apply(this,arguments)}const $l=B.createContext(null),sp=B.createContext(null),ws=B.createContext(null),op=B.createContext(null),Ei=B.createContext({outlet:null,matches:[],isDataRoute:!1}),p0=B.createContext(null);function dI(n,e){let{relative:t}=e===void 0?{}:e;Wl()||Ve(!1);let{basename:s,navigator:a}=B.useContext(ws),{hash:u,pathname:d,search:h}=cd(n,{relative:t}),p=d;return s!=="/"&&(p=d==="/"?s:wi([s,d])),a.createHref({pathname:p,search:h,hash:u})}function Wl(){return B.useContext(op)!=null}function Hl(){return Wl()||Ve(!1),B.useContext(op).location}function m0(n){B.useContext(ws).static||B.useLayoutEffect(n)}function fI(){let{isDataRoute:n}=B.useContext(Ei);return n?DI():hI()}function hI(){Wl()||Ve(!1);let n=B.useContext($l),{basename:e,future:t,navigator:s}=B.useContext(ws),{matches:a}=B.useContext(Ei),{pathname:u}=Hl(),d=JSON.stringify(ep(a,t.v7_relativeSplatPath)),h=B.useRef(!1);return m0(()=>{h.current=!0}),B.useCallback(function(y,g){if(g===void 0&&(g={}),!h.current)return;if(typeof y=="number"){s.go(y);return}let v=tp(y,JSON.parse(d),u,g.relative==="path");n==null&&e!=="/"&&(v.pathname=v.pathname==="/"?e:wi([e,v.pathname])),(g.replace?s.replace:s.push)(v,g.state,g)},[e,s,d,u,n])}const pI=B.createContext(null);function mI(n){let e=B.useContext(Ei).outlet;return e&&B.createElement(pI.Provider,{value:n},e)}function PO(){let{matches:n}=B.useContext(Ei),e=n[n.length-1];return e?e.params:{}}function cd(n,e){let{relative:t}=e===void 0?{}:e,{future:s}=B.useContext(ws),{matches:a}=B.useContext(Ei),{pathname:u}=Hl(),d=JSON.stringify(ep(a,s.v7_relativeSplatPath));return B.useMemo(()=>tp(n,JSON.parse(d),u,t==="path"),[n,d,u,t])}function yI(n,e,t,s){Wl()||Ve(!1);let{navigator:a,static:u}=B.useContext(ws),{matches:d}=B.useContext(Ei),h=d[d.length-1],p=h?h.params:{};h&&h.pathname;let y=h?h.pathnameBase:"/";h&&h.route;let g=Hl(),v;v=g;let x=v.pathname||"/",D=x;if(y!=="/"){let N=y.replace(/^\//,"").split("/");D="/"+x.replace(/^\//,"").split("/").slice(N.length).join("/")}let P=!u&&t&&t.matches&&t.matches.length>0?t.matches:js(n,{pathname:D});return _I(P&&P.map(N=>Object.assign({},N,{params:Object.assign({},p,N.params),pathname:wi([y,a.encodeLocation?a.encodeLocation(N.pathname).pathname:N.pathname]),pathnameBase:N.pathnameBase==="/"?y:wi([y,a.encodeLocation?a.encodeLocation(N.pathnameBase).pathname:N.pathnameBase])})),d,t,s)}function gI(){let n=xI(),e=Tl(n)?n.status+" "+n.statusText:n instanceof Error?n.message:JSON.stringify(n),t=n instanceof Error?n.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return B.createElement(B.Fragment,null,B.createElement("h2",null,"Unexpected Application Error!"),B.createElement("h3",{style:{fontStyle:"italic"}},e),t?B.createElement("pre",{style:a},t):null,null)}const vI=B.createElement(gI,null);class wI extends B.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error!==void 0?B.createElement(Ei.Provider,{value:this.props.routeContext},B.createElement(p0.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function SI(n){let{routeContext:e,match:t,children:s}=n,a=B.useContext($l);return a&&a.static&&a.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=t.route.id),B.createElement(Ei.Provider,{value:e},s)}function _I(n,e,t,s){var a;if(e===void 0&&(e=[]),t===void 0&&(t=null),s===void 0&&(s=null),n==null){var u;if(!t)return null;if(t.errors)n=t.matches;else if((u=s)!=null&&u.v7_partialHydration&&e.length===0&&!t.initialized&&t.matches.length>0)n=t.matches;else return null}let d=n,h=(a=t)==null?void 0:a.errors;if(h!=null){let g=d.findIndex(v=>v.route.id&&(h==null?void 0:h[v.route.id])!==void 0);g>=0||Ve(!1),d=d.slice(0,Math.min(d.length,g+1))}let p=!1,y=-1;if(t&&s&&s.v7_partialHydration)for(let g=0;g<d.length;g++){let v=d[g];if((v.route.HydrateFallback||v.route.hydrateFallbackElement)&&(y=g),v.route.id){let{loaderData:x,errors:D}=t,P=v.route.loader&&x[v.route.id]===void 0&&(!D||D[v.route.id]===void 0);if(v.route.lazy||P){p=!0,y>=0?d=d.slice(0,y+1):d=[d[0]];break}}}return d.reduceRight((g,v,x)=>{let D,P=!1,M=null,N=null;t&&(D=h&&v.route.id?h[v.route.id]:void 0,M=v.route.errorElement||vI,p&&(y<0&&x===0?(OI("route-fallback"),P=!0,N=null):y===x&&(P=!0,N=v.route.hydrateFallbackElement||null)));let G=e.concat(d.slice(0,x+1)),W=()=>{let K;return D?K=M:P?K=N:v.route.Component?K=B.createElement(v.route.Component,null):v.route.element?K=v.route.element:K=g,B.createElement(SI,{match:v,routeContext:{outlet:g,matches:G,isDataRoute:t!=null},children:K})};return t&&(v.route.ErrorBoundary||v.route.errorElement||x===0)?B.createElement(wI,{location:t.location,revalidation:t.revalidation,component:M,error:D,children:W(),routeContext:{outlet:null,matches:G,isDataRoute:!0}}):W()},null)}var y0=function(n){return n.UseBlocker="useBlocker",n.UseRevalidator="useRevalidator",n.UseNavigateStable="useNavigate",n}(y0||{}),g0=function(n){return n.UseBlocker="useBlocker",n.UseLoaderData="useLoaderData",n.UseActionData="useActionData",n.UseRouteError="useRouteError",n.UseNavigation="useNavigation",n.UseRouteLoaderData="useRouteLoaderData",n.UseMatches="useMatches",n.UseRevalidator="useRevalidator",n.UseNavigateStable="useNavigate",n.UseRouteId="useRouteId",n}(g0||{});function bI(n){let e=B.useContext($l);return e||Ve(!1),e}function II(n){let e=B.useContext(sp);return e||Ve(!1),e}function EI(n){let e=B.useContext(Ei);return e||Ve(!1),e}function v0(n){let e=EI(),t=e.matches[e.matches.length-1];return t.route.id||Ve(!1),t.route.id}function xI(){var n;let e=B.useContext(p0),t=II(),s=v0();return e!==void 0?e:(n=t.errors)==null?void 0:n[s]}function DI(){let{router:n}=bI(y0.UseNavigateStable),e=v0(g0.UseNavigateStable),t=B.useRef(!1);return m0(()=>{t.current=!0}),B.useCallback(function(a,u){u===void 0&&(u={}),t.current&&(typeof a=="number"?n.navigate(a):n.navigate(a,Ac({fromRouteId:e},u)))},[n,e])}const Lg={};function OI(n,e,t){Lg[n]||(Lg[n]=!0)}function CI(n,e){n==null||n.v7_startTransition,(n==null?void 0:n.v7_relativeSplatPath)===void 0&&(!e||e.v7_relativeSplatPath),e&&(e.v7_fetcherPersist,e.v7_normalizeFormMethod,e.v7_partialHydration,e.v7_skipActionErrorRevalidation)}function kO(n){return mI(n.context)}function FI(n){let{basename:e="/",children:t=null,location:s,navigationType:a=jt.Pop,navigator:u,static:d=!1,future:h}=n;Wl()&&Ve(!1);let p=e.replace(/^\/*/,"/"),y=B.useMemo(()=>({basename:p,navigator:u,static:d,future:Ac({v7_relativeSplatPath:!1},h)}),[p,h,u,d]);typeof s=="string"&&(s=vs(s));let{pathname:g="/",search:v="",hash:x="",state:D=null,key:P="default"}=s,M=B.useMemo(()=>{let N=bi(g,p);return N==null?null:{location:{pathname:N,search:v,hash:x,state:D,key:P},navigationType:a}},[p,g,v,x,D,P,a]);return M==null?null:B.createElement(ws.Provider,{value:y},B.createElement(op.Provider,{children:t,value:M}))}new Promise(()=>{});function RI(n){let e={hasErrorBoundary:n.ErrorBoundary!=null||n.errorElement!=null};return n.Component&&Object.assign(e,{element:B.createElement(n.Component),Component:void 0}),n.HydrateFallback&&Object.assign(e,{hydrateFallbackElement:B.createElement(n.HydrateFallback),HydrateFallback:void 0}),n.ErrorBoundary&&Object.assign(e,{errorElement:B.createElement(n.ErrorBoundary),ErrorBoundary:void 0}),e}/**
63
+ * React Router DOM v6.30.0
64
+ *
65
+ * Copyright (c) Remix Software Inc.
66
+ *
67
+ * This source code is licensed under the MIT license found in the
68
+ * LICENSE.md file in the root directory of this source tree.
69
+ *
70
+ * @license MIT
71
+ */function ya(){return ya=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(n[s]=t[s])}return n},ya.apply(this,arguments)}function w0(n,e){if(n==null)return{};var t={},s=Object.keys(n),a,u;for(u=0;u<s.length;u++)a=s[u],!(e.indexOf(a)>=0)&&(t[a]=n[a]);return t}function MI(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function AI(n,e){return n.button===0&&(!e||e==="_self")&&!MI(n)}const TI=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],LI=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],BI="6";try{window.__reactRouterVersion=BI}catch{}function NI(n,e){return Hb({basename:e==null?void 0:e.basename,future:ya({},e==null?void 0:e.future,{v7_prependBasename:!0}),history:mb({window:e==null?void 0:e.window}),hydrationData:(e==null?void 0:e.hydrationData)||PI(),routes:n,mapRouteProperties:RI,dataStrategy:e==null?void 0:e.dataStrategy,patchRoutesOnNavigation:e==null?void 0:e.patchRoutesOnNavigation,window:e==null?void 0:e.window}).initialize()}function PI(){var n;let e=(n=window)==null?void 0:n.__staticRouterHydrationData;return e&&e.errors&&(e=ya({},e,{errors:kI(e.errors)})),e}function kI(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}const S0=B.createContext({isTransitioning:!1}),UI=B.createContext(new Map),jI="startTransition",Bg=S1[jI],zI="flushSync",Ng=pb[zI];function VI(n){Bg?Bg(n):n()}function yl(n){Ng?Ng(n):n()}class $I{constructor(){this.status="pending",this.promise=new Promise((e,t)=>{this.resolve=s=>{this.status==="pending"&&(this.status="resolved",e(s))},this.reject=s=>{this.status==="pending"&&(this.status="rejected",t(s))}})}}function WI(n){let{fallbackElement:e,router:t,future:s}=n,[a,u]=B.useState(t.state),[d,h]=B.useState(),[p,y]=B.useState({isTransitioning:!1}),[g,v]=B.useState(),[x,D]=B.useState(),[P,M]=B.useState(),N=B.useRef(new Map),{v7_startTransition:G}=s||{},W=B.useCallback(J=>{G?VI(J):J()},[G]),K=B.useCallback((J,de)=>{let{deletedFetchers:te,flushSync:nt,viewTransitionOpts:Ue}=de;J.fetchers.forEach((gt,kt)=>{gt.data!==void 0&&N.current.set(kt,gt.data)}),te.forEach(gt=>N.current.delete(gt));let Xe=t.window==null||t.window.document==null||typeof t.window.document.startViewTransition!="function";if(!Ue||Xe){nt?yl(()=>u(J)):W(()=>u(J));return}if(nt){yl(()=>{x&&(g&&g.resolve(),x.skipTransition()),y({isTransitioning:!0,flushSync:!0,currentLocation:Ue.currentLocation,nextLocation:Ue.nextLocation})});let gt=t.window.document.startViewTransition(()=>{yl(()=>u(J))});gt.finished.finally(()=>{yl(()=>{v(void 0),D(void 0),h(void 0),y({isTransitioning:!1})})}),yl(()=>D(gt));return}x?(g&&g.resolve(),x.skipTransition(),M({state:J,currentLocation:Ue.currentLocation,nextLocation:Ue.nextLocation})):(h(J),y({isTransitioning:!0,flushSync:!1,currentLocation:Ue.currentLocation,nextLocation:Ue.nextLocation}))},[t.window,x,g,N,W]);B.useLayoutEffect(()=>t.subscribe(K),[t,K]),B.useEffect(()=>{p.isTransitioning&&!p.flushSync&&v(new $I)},[p]),B.useEffect(()=>{if(g&&d&&t.window){let J=d,de=g.promise,te=t.window.document.startViewTransition(async()=>{W(()=>u(J)),await de});te.finished.finally(()=>{v(void 0),D(void 0),h(void 0),y({isTransitioning:!1})}),D(te)}},[W,d,g,t.window]),B.useEffect(()=>{g&&d&&a.location.key===d.location.key&&g.resolve()},[g,x,a.location,d]),B.useEffect(()=>{!p.isTransitioning&&P&&(h(P.state),y({isTransitioning:!0,flushSync:!1,currentLocation:P.currentLocation,nextLocation:P.nextLocation}),M(void 0))},[p.isTransitioning,P]),B.useEffect(()=>{},[]);let Y=B.useMemo(()=>({createHref:t.createHref,encodeLocation:t.encodeLocation,go:J=>t.navigate(J),push:(J,de,te)=>t.navigate(J,{state:de,preventScrollReset:te==null?void 0:te.preventScrollReset}),replace:(J,de,te)=>t.navigate(J,{replace:!0,state:de,preventScrollReset:te==null?void 0:te.preventScrollReset})}),[t]),pe=t.basename||"/",Be=B.useMemo(()=>({router:t,navigator:Y,static:!1,basename:pe}),[t,Y,pe]),T=B.useMemo(()=>({v7_relativeSplatPath:t.future.v7_relativeSplatPath}),[t.future.v7_relativeSplatPath]);return B.useEffect(()=>CI(s,t.future),[s,t.future]),B.createElement(B.Fragment,null,B.createElement($l.Provider,{value:Be},B.createElement(sp.Provider,{value:a},B.createElement(UI.Provider,{value:N.current},B.createElement(S0.Provider,{value:p},B.createElement(FI,{basename:pe,location:a.location,navigationType:a.historyAction,navigator:Y,future:T},a.initialized||t.future.v7_partialHydration?B.createElement(HI,{routes:t.routes,future:t.future,state:a}):e))))),null)}const HI=B.memo(QI);function QI(n){let{routes:e,future:t,state:s}=n;return yI(e,void 0,s,t)}const KI=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",qI=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,_0=B.forwardRef(function(e,t){let{onClick:s,relative:a,reloadDocument:u,replace:d,state:h,target:p,to:y,preventScrollReset:g,viewTransition:v}=e,x=w0(e,TI),{basename:D}=B.useContext(ws),P,M=!1;if(typeof y=="string"&&qI.test(y)&&(P=y,KI))try{let K=new URL(window.location.href),Y=y.startsWith("//")?new URL(K.protocol+y):new URL(y),pe=bi(Y.pathname,D);Y.origin===K.origin&&pe!=null?y=pe+Y.search+Y.hash:M=!0}catch{}let N=dI(y,{relative:a}),G=GI(y,{replace:d,state:h,target:p,preventScrollReset:g,relative:a,viewTransition:v});function W(K){s&&s(K),K.defaultPrevented||G(K)}return B.createElement("a",ya({},x,{href:P||N,onClick:M||u?s:W,ref:t,target:p}))}),UO=B.forwardRef(function(e,t){let{"aria-current":s="page",caseSensitive:a=!1,className:u="",end:d=!1,style:h,to:p,viewTransition:y,children:g}=e,v=w0(e,LI),x=cd(p,{relative:v.relative}),D=Hl(),P=B.useContext(sp),{navigator:M,basename:N}=B.useContext(ws),G=P!=null&&JI(x)&&y===!0,W=M.encodeLocation?M.encodeLocation(x).pathname:x.pathname,K=D.pathname,Y=P&&P.navigation&&P.navigation.location?P.navigation.location.pathname:null;a||(K=K.toLowerCase(),Y=Y?Y.toLowerCase():null,W=W.toLowerCase()),Y&&N&&(Y=bi(Y,N)||Y);const pe=W!=="/"&&W.endsWith("/")?W.length-1:W.length;let Be=K===W||!d&&K.startsWith(W)&&K.charAt(pe)==="/",T=Y!=null&&(Y===W||!d&&Y.startsWith(W)&&Y.charAt(W.length)==="/"),J={isActive:Be,isPending:T,isTransitioning:G},de=Be?s:void 0,te;typeof u=="function"?te=u(J):te=[u,Be?"active":null,T?"pending":null,G?"transitioning":null].filter(Boolean).join(" ");let nt=typeof h=="function"?h(J):h;return B.createElement(_0,ya({},v,{"aria-current":de,className:te,ref:t,style:nt,to:p,viewTransition:y}),typeof g=="function"?g(J):g)});var Ah;(function(n){n.UseScrollRestoration="useScrollRestoration",n.UseSubmit="useSubmit",n.UseSubmitFetcher="useSubmitFetcher",n.UseFetcher="useFetcher",n.useViewTransitionState="useViewTransitionState"})(Ah||(Ah={}));var Pg;(function(n){n.UseFetcher="useFetcher",n.UseFetchers="useFetchers",n.UseScrollRestoration="useScrollRestoration"})(Pg||(Pg={}));function YI(n){let e=B.useContext($l);return e||Ve(!1),e}function GI(n,e){let{target:t,replace:s,state:a,preventScrollReset:u,relative:d,viewTransition:h}=e===void 0?{}:e,p=fI(),y=Hl(),g=cd(n,{relative:d});return B.useCallback(v=>{if(AI(v,t)){v.preventDefault();let x=s!==void 0?s:no(y)===no(g);p(n,{replace:x,state:a,preventScrollReset:u,relative:d,viewTransition:h})}},[y,p,g,s,a,t,n,u,d,h])}function JI(n,e){e===void 0&&(e={});let t=B.useContext(S0);t==null&&Ve(!1);let{basename:s}=YI(Ah.useViewTransitionState),a=cd(n,{relative:e.relative});if(!t.isTransitioning)return!1;let u=bi(t.currentLocation.pathname,s)||t.currentLocation.pathname,d=bi(t.nextLocation.pathname,s)||t.nextLocation.pathname;return Rc(a.pathname,d)!=null||Rc(a.pathname,u)!=null}function b0(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=b0(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=b0(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"},jO={Left:"left",Right:"right"},kg=new Map([[Nt.sm,""],[Nt.md,"-2"],[Nt.lg,"-4"]]);function Ug({size:n=Nt.sm,orientation:e="horizontal",className:t}){return k.jsx("span",{className:Kr(["block border-divider",e==="horizontal"&&`w-full border-b${kg.get(n)??""}`,e==="vertical"&&`h-full border-r${kg.get(n)??""}`],t)})}const I0=function({children:e}){return k.jsx(k.Fragment,{children:e})};function XI({children:n,layout:e="vertical"}){return k.jsx("div",{className:Kr("font-sans w-full h-full flex overflow-hidden",e==="horizontal"?"flex-row":"flex-col"),children:n})}I0.Page=XI;const zO={Circle:"circle"},VO={Ghost:"ghost"},ZI=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"]]),eE=new Map([["rounded","rounded-md"],["square","rounded-none"],["circle","rounded-full"]]),tE=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"]]),$O=E0(Zs.forwardRef(rE)),nE=E0(Zs.forwardRef(iE));function rE({type:n="button",disabled:e=!1,children:t=[],form:s,autoFocus:a,tabIndex:u,onClick:d,className:h},p){return k.jsx("button",{ref:p,type:n,autoFocus:a,tabIndex:u,form:s,disabled:e,onClick:d,onKeyDown:y=>{(y.key==="Enter"||y.key===" ")&&(y.preventDefault(),y.stopPropagation(),d==null||d(y))},className:h,children:t})}function iE({children:n=[],autoFocus:e,tabIndex:t,className:s},a){return k.jsx("div",{ref:a,autoFocus:e,tabIndex:t,className:s,children:n})}function E0(n){return Zs.forwardRef(function({type:t="button",disabled:s=!1,variant:a="primary",shape:u="rounded",size:d=Nt.md,children:h=[],className:p,form:y,autoFocus:g,tabIndex:v,onClick:x},D){return k.jsx(n,{ref:D,type:t,disabled:s,form:y,autoFocus:g,tabIndex:v,onClick:x,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",eE.get(u),tE.get(d),s?"opacity-50 bg-neutral-10 dark:bg-neutral-20 border-transparent text-prose cursor-not-allowed":ZI.get(a),p),children:h})})}function Fn({description:n,link:e,headline:t="Not Found",message:s="Go Back Home"}){return k.jsx(I0.Page,{children:k.jsx("div",{className:"flex items-center justify-center w-full h-full",children:k.jsxs("div",{className:"text-center",children:[k.jsx("h1",{className:"text-[4rem] md:text-[6rem] lg:text-[9rem] text-secondary-10 dark:text-primary-10 mb-4",children:t}),wn(n)&&k.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}),wn(e)&&k.jsx("div",{className:"inline-block",children:k.jsx(nE,{variant:ht.Alternative,children:k.jsx(_0,{to:e,children:s})})})]})})})}function Vs({style:n,className:e,variant:t=ht.Info}){return k.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:[k.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"}),k.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 sE({as:n="p",size:e=Nt.sm,variant:t=ht.Info,text:s,className:a}){const u=n;return k.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 ko({hasSpinner:n=!1,size:e=Nt.sm,variant:t=ht.Info,text:s,children:a,className:u}){return k.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:k.jsxs("span",{className:"flex items-center w-full",children:[n&&k.jsx(Vs,{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")}),wn(s)?k.jsx(sE,{size:e,variant:t,text:s}):a]})})}var jg=function(){return jg=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},jg.apply(this,arguments)};function WO(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 Me(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 h(g){try{y(s.next(g))}catch(v){d(v)}}function p(g){try{y(s.throw(g))}catch(v){d(v)}}function y(g){g.done?u(g.value):a(g.value).then(h,p)}y((s=s.apply(n,e||[])).next())})}function zg(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 HO(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 Ne(n){return this instanceof Ne?(this.v=n,this):new Ne(n)}function Qr(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),h("next"),h("throw"),h("return",d),a[Symbol.asyncIterator]=function(){return this},a;function d(D){return function(P){return Promise.resolve(P).then(D,v)}}function h(D,P){s[D]&&(a[D]=function(M){return new Promise(function(N,G){u.push([D,M,N,G])>1||p(D,M)})},P&&(a[D]=P(a[D])))}function p(D,P){try{y(s[D](P))}catch(M){x(u[0][3],M)}}function y(D){D.value instanceof Ne?Promise.resolve(D.value.v).then(g,v):x(u[0][2],D)}function g(D){p("next",D)}function v(D){p("throw",D)}function x(D,P){D(P),u.shift(),u.length&&p(u[0][0],u[0][1])}}function vc(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:Ne(n[a](d)),done:!1}:u?u(d):d}:u}}function Jo(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 zg=="function"?zg(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(h,p){d=n[u](d),a(h,p,d.done,d.value)})}}function a(u,d,h,p){Promise.resolve(p).then(function(y){u({value:y,done:h})},d)}}const oE=new TextDecoder("utf-8"),Th=n=>oE.decode(n),aE=new TextEncoder,ap=n=>aE.encode(n),lE=n=>typeof n=="number",uE=n=>typeof n=="boolean",vn=n=>typeof n=="function",br=n=>n!=null&&Object(n)===n,Ll=n=>br(n)&&vn(n.then),dd=n=>br(n)&&vn(n[Symbol.iterator]),lp=n=>br(n)&&vn(n[Symbol.asyncIterator]),Lh=n=>br(n)&&br(n.schema),x0=n=>br(n)&&"done"in n&&"value"in n,D0=n=>br(n)&&vn(n.stat)&&lE(n.fd),O0=n=>br(n)&&up(n.body),C0=n=>"_getDOMStream"in n&&"_getNodeStream"in n,up=n=>br(n)&&vn(n.cancel)&&vn(n.getReader)&&!C0(n),F0=n=>br(n)&&vn(n.read)&&vn(n.pipe)&&uE(n.readable)&&!C0(n),cE=n=>br(n)&&vn(n.clear)&&vn(n.bytes)&&vn(n.position)&&vn(n.setPosition)&&vn(n.capacity)&&vn(n.getBufferIdentifier)&&vn(n.createLong),cp=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:ArrayBuffer;function dE(n){const e=n[0]?[n[0]]:[];let t,s,a,u;for(let d,h,p=0,y=0,g=n.length;++p<g;){if(d=e[y],h=n[p],!d||!h||d.buffer!==h.buffer||h.byteOffset<d.byteOffset){h&&(e[++y]=h);continue}if({byteOffset:t,byteLength:a}=d,{byteOffset:s,byteLength:u}=h,t+a<s||s+u<t){h&&(e[++y]=h);continue}e[y]=new Uint8Array(d.buffer,t,s-t+u)}return e}function Vg(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=dE(n),s=t.reduce((g,v)=>g+v.byteLength,0);let a,u,d,h=0,p=-1;const y=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,y-h)),y<=h+u.length){u.length<a.length?t[p]=a.subarray(u.length):u.length===a.length&&p++,d?Vg(d,u,h):d=u;break}Vg(d||(d=new Uint8Array(y)),u,h),h+=u.length}return[d||new Uint8Array(0),t.slice(p),s-(d?d.byteLength:0)]}function ct(n,e){let t=x0(e)?e.value:e;return t instanceof n?n===Uint8Array?new n(t.buffer,t.byteOffset,t.byteLength):t:t?(typeof t=="string"&&(t=ap(t)),t instanceof ArrayBuffer?new n(t):t instanceof cp?new n(t):cE(t)?ct(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 gl=n=>ct(Int32Array,n),$g=n=>ct(BigInt64Array,n),Ge=n=>ct(Uint8Array,n),Bh=n=>(n.next(),n);function*fE(n,e){const t=function*(a){yield a},s=typeof e=="string"||ArrayBuffer.isView(e)||e instanceof ArrayBuffer||e instanceof cp?t(e):dd(e)?e:t(e);return yield*Bh(function*(a){let u=null;do u=a.next(yield ct(n,u));while(!u.done)}(s[Symbol.iterator]())),new n}const hE=n=>fE(Uint8Array,n);function R0(n,e){return Qr(this,arguments,function*(){if(Ll(e))return yield Ne(yield Ne(yield*vc(Jo(R0(n,yield Ne(e))))));const s=function(d){return Qr(this,arguments,function*(){yield yield Ne(yield Ne(d))})},a=function(d){return Qr(this,arguments,function*(){yield Ne(yield*vc(Jo(Bh(function*(h){let p=null;do p=h.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 cp?s(e):dd(e)?a(e):lp(e)?e:s(e);return yield Ne(yield*vc(Jo(Bh(function(d){return Qr(this,arguments,function*(){let h=null;do h=yield Ne(d.next(yield yield Ne(ct(n,h))));while(!h.done)})}(u[Symbol.asyncIterator]()))))),yield Ne(new n)})}const pE=n=>R0(Uint8Array,n);function mE(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 Zn={fromIterable(n){return dc(yE(n))},fromAsyncIterable(n){return dc(gE(n))},fromDOMStream(n){return dc(vE(n))},fromNodeStream(n){return dc(SE(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')}},dc=n=>(n.next(),n);function*yE(n){let e,t=!1,s=[],a,u,d,h=0;function p(){return u==="peek"?qr(s,d)[0]:([a,s,h]=qr(s,d),a)}({cmd:u,size:d}=(yield null)||{cmd:"read",size:0});const y=hE(n)[Symbol.iterator]();try{do if({done:e,value:a}=Number.isNaN(d-h)?y.next():y.next(d-h),!e&&a.byteLength>0&&(s.push(a),h+=a.byteLength),e||d<=h)do({cmd:u,size:d}=yield p());while(d<h);while(!e)}catch(g){(t=!0)&&typeof y.throw=="function"&&y.throw(g)}finally{t===!1&&typeof y.return=="function"&&y.return(null)}return null}function gE(n){return Qr(this,arguments,function*(){let t,s=!1,a=[],u,d,h,p=0;function y(){return d==="peek"?qr(a,h)[0]:([u,a,p]=qr(a,h),u)}({cmd:d,size:h}=(yield yield Ne(null))||{cmd:"read",size:0});const g=pE(n)[Symbol.asyncIterator]();try{do if({done:t,value:u}=Number.isNaN(h-p)?yield Ne(g.next()):yield Ne(g.next(h-p)),!t&&u.byteLength>0&&(a.push(u),p+=u.byteLength),t||h<=p)do({cmd:d,size:h}=yield yield Ne(y()));while(h<p);while(!t)}catch(v){(s=!0)&&typeof g.throw=="function"&&(yield Ne(g.throw(v)))}finally{s===!1&&typeof g.return=="function"&&(yield Ne(g.return(new Uint8Array(0))))}return yield Ne(null)})}function vE(n){return Qr(this,arguments,function*(){let t=!1,s=!1,a=[],u,d,h,p=0;function y(){return d==="peek"?qr(a,h)[0]:([u,a,p]=qr(a,h),u)}({cmd:d,size:h}=(yield yield Ne(null))||{cmd:"read",size:0});const g=new wE(n);try{do if({done:t,value:u}=Number.isNaN(h-p)?yield Ne(g.read()):yield Ne(g.read(h-p)),!t&&u.byteLength>0&&(a.push(Ge(u)),p+=u.byteLength),t||h<=p)do({cmd:d,size:h}=yield yield Ne(y()));while(h<p);while(!t)}catch(v){(s=!0)&&(yield Ne(g.cancel(v)))}finally{s===!1?yield Ne(g.cancel()):n.locked&&g.releaseLock()}return yield Ne(null)})}class wE{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 Me(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 Me(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=Ge(t)),t})}}const lh=(n,e)=>{const t=a=>s([e,a]);let s;return[e,t,new Promise(a=>(s=a)&&n.once(e,t))]};function SE(n){return Qr(this,arguments,function*(){const t=[];let s="error",a=!1,u=null,d,h,p=0,y=[],g;function v(){return d==="peek"?qr(y,h)[0]:([g,y,p]=qr(y,h),g)}if({cmd:d,size:h}=(yield yield Ne(null))||{cmd:"read",size:0},n.isTTY)return yield yield Ne(new Uint8Array(0)),yield Ne(null);try{t[0]=lh(n,"end"),t[1]=lh(n,"error");do{if(t[2]=lh(n,"readable"),[s,u]=yield Ne(Promise.race(t.map(D=>D[2]))),s==="error")break;if((a=s==="end")||(Number.isFinite(h-p)?(g=Ge(n.read(h-p)),g.byteLength<h-p&&(g=Ge(n.read()))):g=Ge(n.read()),g.byteLength>0&&(y.push(g),p+=g.byteLength)),a||h<=p)do({cmd:d,size:h}=yield yield Ne(v()));while(h<p)}while(!a)}finally{yield Ne(x(t,s==="error"?u:null))}return yield Ne(null);function x(D,P){return g=y=null,new Promise((M,N)=>{for(const[G,W]of D)n.off(G,W);try{const G=n.destroy;G&&G.call(n,P),P=void 0}catch(G){P=G||P}finally{P!=null?N(P):M()}})}})}var zt;(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"})(zt||(zt={}));var Bn;(function(n){n[n.Sparse=0]="Sparse",n[n.Dense=1]="Dense"})(Bn||(Bn={}));var cn;(function(n){n[n.HALF=0]="HALF",n[n.SINGLE=1]="SINGLE",n[n.DOUBLE=2]="DOUBLE"})(cn||(cn={}));var rr;(function(n){n[n.DAY=0]="DAY",n[n.MILLISECOND=1]="MILLISECOND"})(rr||(rr={}));var Ie;(function(n){n[n.SECOND=0]="SECOND",n[n.MILLISECOND=1]="MILLISECOND",n[n.MICROSECOND=2]="MICROSECOND",n[n.NANOSECOND=3]="NANOSECOND"})(Ie||(Ie={}));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 uh=2,$r=4,mi=4,ot=4,ns=new Int32Array(2),Wg=new Float32Array(ns.buffer),Hg=new Float64Array(ns.buffer),fc=new Uint16Array(new Uint8Array([1,0]).buffer)[0]===1;var Nh;(function(n){n[n.UTF8_BYTES=1]="UTF8_BYTES",n[n.UTF16_STRING=2]="UTF16_STRING"})(Nh||(Nh={}));let ga=class M0{constructor(e){this.bytes_=e,this.position_=0,this.text_decoder_=new TextDecoder}static allocate(e){return new M0(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 ns[0]=this.readInt32(e),Wg[0]}readFloat64(e){return ns[fc?0:1]=this.readInt32(e),ns[fc?1:0]=this.readInt32(e+4),Hg[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){Wg[0]=t,this.writeInt32(e,ns[0])}writeFloat64(e,t){Hg[0]=t,this.writeInt32(e,ns[fc?0:1]),this.writeInt32(e+4,ns[fc?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===Nh.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}},A0=class T0{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=ga.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=T0.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=ga.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)*uh;this.addInt16(u);let d=0;const h=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 y=uh;y<u;y+=uh)if(this.bb.readInt16(h+y)!=this.bb.readInt16(p+y))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 Tc;(function(n){n[n.BUFFER=0]="BUFFER"})(Tc||(Tc={}));var Lc;(function(n){n[n.LZ4_FRAME=0]="LZ4_FRAME",n[n.ZSTD=1]="ZSTD"})(Lc||(Lc={}));class rs{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 rs).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsBodyCompression(e,t){return e.setPosition(e.position()+ot),(t||new rs).__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):Lc.LZ4_FRAME}method(){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readInt8(this.bb_pos+e):Tc.BUFFER}static startBodyCompression(e){e.startObject(2)}static addCodec(e,t){e.addFieldInt8(0,t,Lc.LZ4_FRAME)}static addMethod(e,t){e.addFieldInt8(1,t,Tc.BUFFER)}static endBodyCompression(e){return e.endObject()}static createBodyCompression(e,t,s){return rs.startBodyCompression(e),rs.addCodec(e,t),rs.addMethod(e,s),rs.endBodyCompression(e)}}class L0{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 B0=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 Ph{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 Ph).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsRecordBatch(e,t){return e.setPosition(e.position()+ot),(t||new Ph).__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 B0).__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 L0).__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 rs).__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()}},Uo=class kh{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 kh).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDictionaryBatch(e,t){return e.setPosition(e.position()+ot),(t||new kh).__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 va;(function(n){n[n.Little=0]="Little",n[n.Big=1]="Big"})(va||(va={}));var Bc;(function(n){n[n.DenseArray=0]="DenseArray"})(Bc||(Bc={}));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):Bc.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,Bc.DenseArray)}static endDictionaryEncoding(e){return e.endObject()}}class Kt{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 Kt).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsKeyValue(e,t){return e.setPosition(e.position()+ot),(t||new Kt).__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 Kt.startKeyValue(e),Kt.addKey(e,t),Kt.addValue(e,s),Kt.endKeyValue(e)}}let Qg=class _l{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 _l).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsBinary(e,t){return e.setPosition(e.position()+ot),(t||new _l).__init(e.readInt32(e.position())+e.position(),e)}static startBinary(e){e.startObject(0)}static endBinary(e){return e.endObject()}static createBinary(e){return _l.startBinary(e),_l.endBinary(e)}},Kg=class bl{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 bl).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsBool(e,t){return e.setPosition(e.position()+ot),(t||new bl).__init(e.readInt32(e.position())+e.position(),e)}static startBool(e){e.startObject(0)}static endBool(e){return e.endObject()}static createBool(e){return bl.startBool(e),bl.endBool(e)}},wc=class jo{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 jo).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDate(e,t){return e.setPosition(e.position()+ot),(t||new jo).__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):rr.MILLISECOND}static startDate(e){e.startObject(1)}static addUnit(e,t){e.addFieldInt16(0,t,rr.MILLISECOND)}static endDate(e){return e.endObject()}static createDate(e,t){return jo.startDate(e),jo.addUnit(e,t),jo.endDate(e)}},zo=class ts{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 ts).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDecimal(e,t){return e.setPosition(e.position()+ot),(t||new ts).__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 ts.startDecimal(e),ts.addPrecision(e,t),ts.addScale(e,s),ts.addBitWidth(e,a),ts.endDecimal(e)}},Sc=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):Ie.MILLISECOND}static startDuration(e){e.startObject(1)}static addUnit(e,t){e.addFieldInt16(0,t,Ie.MILLISECOND)}static endDuration(e){return e.endObject()}static createDuration(e,t){return Vo.startDuration(e),Vo.addUnit(e,t),Vo.endDuration(e)}},_c=class $o{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 $o).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsFixedSizeBinary(e,t){return e.setPosition(e.position()+ot),(t||new $o).__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 $o.startFixedSizeBinary(e),$o.addByteWidth(e,t),$o.endFixedSizeBinary(e)}},bc=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 Wr{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 Wr).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsFloatingPoint(e,t){return e.setPosition(e.position()+ot),(t||new Wr).__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):cn.HALF}static startFloatingPoint(e){e.startObject(1)}static addPrecision(e,t){e.addFieldInt16(0,t,cn.HALF)}static endFloatingPoint(e){return e.endObject()}static createFloatingPoint(e,t){return Wr.startFloatingPoint(e),Wr.addPrecision(e,t),Wr.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 qg=class Il{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 Il).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsLargeBinary(e,t){return e.setPosition(e.position()+ot),(t||new Il).__init(e.readInt32(e.position())+e.position(),e)}static startLargeBinary(e){e.startObject(0)}static endLargeBinary(e){return e.endObject()}static createLargeBinary(e){return Il.startLargeBinary(e),Il.endLargeBinary(e)}},Yg=class El{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 El).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsLargeUtf8(e,t){return e.setPosition(e.position()+ot),(t||new El).__init(e.readInt32(e.position())+e.position(),e)}static startLargeUtf8(e){e.startObject(0)}static endLargeUtf8(e){return e.endObject()}static createLargeUtf8(e){return El.startLargeUtf8(e),El.endLargeUtf8(e)}},Gg=class xl{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 xl).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsList(e,t){return e.setPosition(e.position()+ot),(t||new xl).__init(e.readInt32(e.position())+e.position(),e)}static startList(e){e.startObject(0)}static endList(e){return e.endObject()}static createList(e){return xl.startList(e),xl.endList(e)}},Ic=class Ho{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 Ho).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsMap(e,t){return e.setPosition(e.position()+ot),(t||new Ho).__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 Ho.startMap(e),Ho.addKeysSorted(e,t),Ho.endMap(e)}},Jg=class Dl{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 Dl).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsNull(e,t){return e.setPosition(e.position()+ot),(t||new Dl).__init(e.readInt32(e.position())+e.position(),e)}static startNull(e){e.startObject(0)}static endNull(e){return e.endObject()}static createNull(e){return Dl.startNull(e),Dl.endNull(e)}};class Ws{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 Ws).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsStruct_(e,t){return e.setPosition(e.position()+ot),(t||new Ws).__init(e.readInt32(e.position())+e.position(),e)}static startStruct_(e){e.startObject(0)}static endStruct_(e){return e.endObject()}static createStruct_(e){return Ws.startStruct_(e),Ws.endStruct_(e)}}class er{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 er).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsTime(e,t){return e.setPosition(e.position()+ot),(t||new er).__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):Ie.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,Ie.MILLISECOND)}static addBitWidth(e,t){e.addFieldInt32(1,t,32)}static endTime(e){return e.endObject()}static createTime(e,t,s){return er.startTime(e),er.addUnit(e,t),er.addBitWidth(e,s),er.endTime(e)}}class tr{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 tr).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsTimestamp(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):Ie.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,Ie.SECOND)}static addTimezone(e,t){e.addFieldOffset(1,t,0)}static endTimestamp(e){return e.endObject()}static createTimestamp(e,t,s){return tr.startTimestamp(e),tr.addUnit(e,t),tr.addTimezone(e,s),tr.endTimestamp(e)}}class Ln{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 Ln).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsUnion(e,t){return e.setPosition(e.position()+ot),(t||new Ln).__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):Bn.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,Bn.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 Ln.startUnion(e),Ln.addMode(e,t),Ln.addTypeIds(e,s),Ln.endUnion(e)}}let Xg=class Ol{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 Ol).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsUtf8(e,t){return e.setPosition(e.position()+ot),(t||new Ol).__init(e.readInt32(e.position())+e.position(),e)}static startUtf8(e){e.startObject(0)}static endUtf8(e){return e.endObject()}static createUtf8(e){return Ol.startUtf8(e),Ol.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 Jn=class Ec{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 Ec).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsField(e,t){return e.setPosition(e.position()+ot),(t||new Ec).__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 Ec).__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 Kt).__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()}},kr=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):va.Little}fields(e,t){const s=this.bb.__offset(this.bb_pos,6);return s?(t||new Jn).__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 Kt).__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,va.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 E;(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"})(E||(E={}));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 _E=void 0;function Bl(n){if(n===null)return"null";if(n===_E)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=>Bl(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 N0(n,e){return xt(n/e)+xt(n%e)/xt(e)}const bE=Symbol.for("isArrowBigNum");function Er(n,...e){return e.length===0?Object.setPrototypeOf(ct(this.TypedArray,n),this.constructor.prototype):Object.setPrototypeOf(new this.TypedArray(n,...e),this.constructor.prototype)}Er.prototype[bE]=!0;Er.prototype.toJSON=function(){return`"${Pl(this)}"`};Er.prototype.valueOf=function(n){return P0(this,n)};Er.prototype.toString=function(){return Pl(this)};Er.prototype[Symbol.toPrimitive]=function(n="default"){switch(n){case"number":return P0(this);case"string":return Pl(this);case"default":return xE(this)}return Pl(this)};function Xo(...n){return Er.apply(this,n)}function Zo(...n){return Er.apply(this,n)}function Nl(...n){return Er.apply(this,n)}Object.setPrototypeOf(Xo.prototype,Object.create(Int32Array.prototype));Object.setPrototypeOf(Zo.prototype,Object.create(Uint32Array.prototype));Object.setPrototypeOf(Nl.prototype,Object.create(Uint32Array.prototype));Object.assign(Xo.prototype,Er.prototype,{constructor:Xo,signed:!0,TypedArray:Int32Array,BigIntArray:BigInt64Array});Object.assign(Zo.prototype,Er.prototype,{constructor:Zo,signed:!1,TypedArray:Uint32Array,BigIntArray:BigUint64Array});Object.assign(Nl.prototype,Er.prototype,{constructor:Nl,signed:!0,TypedArray:Uint32Array,BigIntArray:BigUint64Array});const IE=BigInt(4294967296)*BigInt(4294967296),EE=IE-BigInt(1);function P0(n,e){const{buffer:t,byteOffset:s,byteLength:a,signed:u}=n,d=new BigUint64Array(t,s,a/8),h=u&&d.at(-1)&BigInt(1)<<BigInt(63);let p=BigInt(0),y=0;if(h){for(const g of d)p|=(g^EE)*(BigInt(1)<<BigInt(64*y++));p*=BigInt(-1),p-=BigInt(1)}else for(const g of d)p|=g*(BigInt(1)<<BigInt(64*y++));if(typeof e=="number"){const g=BigInt(Math.pow(10,e)),v=p/g,x=p%g;return xt(v)+xt(x)/xt(g)}return xt(p)}function Pl(n){if(n.byteLength===8)return`${new n.BigIntArray(n.buffer,n.byteOffset,1)[0]}`;if(!n.signed)return ch(n);let e=new Uint16Array(n.buffer,n.byteOffset,n.byteLength/2);if(new Int16Array([e.at(-1)])[0]>=0)return ch(n);e=e.slice();let s=1;for(let u=0;u<e.length;u++){const d=e[u],h=~d+s;e[u]=h,s&=d===0?1:0}return`-${ch(e)}`}function xE(n){return n.byteLength===8?new n.BigIntArray(n.buffer,n.byteOffset,1)[0]:Pl(n)}function ch(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 dp{static new(e,t){switch(t){case!0:return new Xo(e);case!1:return new Zo(e)}switch(e.constructor){case Int8Array:case Int16Array:case Int32Array:case BigInt64Array:return new Xo(e)}return e.byteLength===16?new Nl(e):new Zo(e)}static signed(e){return new Xo(e)}static unsigned(e){return new Zo(e)}static decimal(e){return new Nl(e)}constructor(e,t){return dp.new(e,t)}}var k0,U0,j0,z0,V0,$0,W0,H0,Q0,K0,q0,Y0,G0,J0,X0,Z0,ew,tw,nw,rw,iw,sw;class fe{static isNull(e){return(e==null?void 0:e.typeId)===E.Null}static isInt(e){return(e==null?void 0:e.typeId)===E.Int}static isFloat(e){return(e==null?void 0:e.typeId)===E.Float}static isBinary(e){return(e==null?void 0:e.typeId)===E.Binary}static isLargeBinary(e){return(e==null?void 0:e.typeId)===E.LargeBinary}static isUtf8(e){return(e==null?void 0:e.typeId)===E.Utf8}static isLargeUtf8(e){return(e==null?void 0:e.typeId)===E.LargeUtf8}static isBool(e){return(e==null?void 0:e.typeId)===E.Bool}static isDecimal(e){return(e==null?void 0:e.typeId)===E.Decimal}static isDate(e){return(e==null?void 0:e.typeId)===E.Date}static isTime(e){return(e==null?void 0:e.typeId)===E.Time}static isTimestamp(e){return(e==null?void 0:e.typeId)===E.Timestamp}static isInterval(e){return(e==null?void 0:e.typeId)===E.Interval}static isDuration(e){return(e==null?void 0:e.typeId)===E.Duration}static isList(e){return(e==null?void 0:e.typeId)===E.List}static isStruct(e){return(e==null?void 0:e.typeId)===E.Struct}static isUnion(e){return(e==null?void 0:e.typeId)===E.Union}static isFixedSizeBinary(e){return(e==null?void 0:e.typeId)===E.FixedSizeBinary}static isFixedSizeList(e){return(e==null?void 0:e.typeId)===E.FixedSizeList}static isMap(e){return(e==null?void 0:e.typeId)===E.Map}static isDictionary(e){return(e==null?void 0:e.typeId)===E.Dictionary}static isDenseUnion(e){return fe.isUnion(e)&&e.mode===Bn.Dense}static isSparseUnion(e){return fe.isUnion(e)&&e.mode===Bn.Sparse}constructor(e){this.typeId=e}}k0=Symbol.toStringTag;fe[k0]=(n=>(n.children=null,n.ArrayType=Array,n.OffsetArrayType=Int32Array,n[Symbol.toStringTag]="DataType"))(fe.prototype);class ys extends fe{constructor(){super(E.Null)}toString(){return"Null"}}U0=Symbol.toStringTag;ys[U0]=(n=>n[Symbol.toStringTag]="Null")(ys.prototype);class ro extends fe{constructor(e,t){super(E.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}`}}j0=Symbol.toStringTag;ro[j0]=(n=>(n.isSigned=null,n.bitWidth=null,n[Symbol.toStringTag]="Int"))(ro.prototype);class kl extends ro{constructor(){super(!0,32)}get ArrayType(){return Int32Array}}Object.defineProperty(kl.prototype,"ArrayType",{value:Int32Array});class Nc extends fe{constructor(e){super(E.Float),this.precision=e}get ArrayType(){switch(this.precision){case cn.HALF:return Uint16Array;case cn.SINGLE:return Float32Array;case cn.DOUBLE:return Float64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`Float${this.precision<<5||16}`}}z0=Symbol.toStringTag;Nc[z0]=(n=>(n.precision=null,n[Symbol.toStringTag]="Float"))(Nc.prototype);class Pc extends fe{constructor(){super(E.Binary)}toString(){return"Binary"}}V0=Symbol.toStringTag;Pc[V0]=(n=>(n.ArrayType=Uint8Array,n[Symbol.toStringTag]="Binary"))(Pc.prototype);class kc extends fe{constructor(){super(E.LargeBinary)}toString(){return"LargeBinary"}}$0=Symbol.toStringTag;kc[$0]=(n=>(n.ArrayType=Uint8Array,n.OffsetArrayType=BigInt64Array,n[Symbol.toStringTag]="LargeBinary"))(kc.prototype);class Uc extends fe{constructor(){super(E.Utf8)}toString(){return"Utf8"}}W0=Symbol.toStringTag;Uc[W0]=(n=>(n.ArrayType=Uint8Array,n[Symbol.toStringTag]="Utf8"))(Uc.prototype);class jc extends fe{constructor(){super(E.LargeUtf8)}toString(){return"LargeUtf8"}}H0=Symbol.toStringTag;jc[H0]=(n=>(n.ArrayType=Uint8Array,n.OffsetArrayType=BigInt64Array,n[Symbol.toStringTag]="LargeUtf8"))(jc.prototype);class zc extends fe{constructor(){super(E.Bool)}toString(){return"Bool"}}Q0=Symbol.toStringTag;zc[Q0]=(n=>(n.ArrayType=Uint8Array,n[Symbol.toStringTag]="Bool"))(zc.prototype);class Vc extends fe{constructor(e,t,s=128){super(E.Decimal),this.scale=e,this.precision=t,this.bitWidth=s}toString(){return`Decimal[${this.precision}e${this.scale>0?"+":""}${this.scale}]`}}K0=Symbol.toStringTag;Vc[K0]=(n=>(n.scale=null,n.precision=null,n.ArrayType=Uint32Array,n[Symbol.toStringTag]="Decimal"))(Vc.prototype);class $c extends fe{constructor(e){super(E.Date),this.unit=e}toString(){return`Date${(this.unit+1)*32}<${rr[this.unit]}>`}get ArrayType(){return this.unit===rr.DAY?Int32Array:BigInt64Array}}q0=Symbol.toStringTag;$c[q0]=(n=>(n.unit=null,n[Symbol.toStringTag]="Date"))($c.prototype);class Wc extends fe{constructor(e,t){super(E.Time),this.unit=e,this.bitWidth=t}toString(){return`Time${this.bitWidth}<${Ie[this.unit]}>`}get ArrayType(){switch(this.bitWidth){case 32:return Int32Array;case 64:return BigInt64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}}Y0=Symbol.toStringTag;Wc[Y0]=(n=>(n.unit=null,n.bitWidth=null,n[Symbol.toStringTag]="Time"))(Wc.prototype);class Hc extends fe{constructor(e,t){super(E.Timestamp),this.unit=e,this.timezone=t}toString(){return`Timestamp<${Ie[this.unit]}${this.timezone?`, ${this.timezone}`:""}>`}}G0=Symbol.toStringTag;Hc[G0]=(n=>(n.unit=null,n.timezone=null,n.ArrayType=BigInt64Array,n[Symbol.toStringTag]="Timestamp"))(Hc.prototype);class Qc extends fe{constructor(e){super(E.Interval),this.unit=e}toString(){return`Interval<${Yr[this.unit]}>`}}J0=Symbol.toStringTag;Qc[J0]=(n=>(n.unit=null,n.ArrayType=Int32Array,n[Symbol.toStringTag]="Interval"))(Qc.prototype);class Kc extends fe{constructor(e){super(E.Duration),this.unit=e}toString(){return`Duration<${Ie[this.unit]}>`}}X0=Symbol.toStringTag;Kc[X0]=(n=>(n.unit=null,n.ArrayType=BigInt64Array,n[Symbol.toStringTag]="Duration"))(Kc.prototype);class qc extends fe{constructor(e){super(E.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}}Z0=Symbol.toStringTag;qc[Z0]=(n=>(n.children=null,n[Symbol.toStringTag]="List"))(qc.prototype);class Sn extends fe{constructor(e){super(E.Struct),this.children=e}toString(){return`Struct<{${this.children.map(e=>`${e.name}:${e.type}`).join(", ")}}>`}}ew=Symbol.toStringTag;Sn[ew]=(n=>(n.children=null,n[Symbol.toStringTag]="Struct"))(Sn.prototype);class Yc extends fe{constructor(e,t,s){super(E.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(" | ")}>`}}tw=Symbol.toStringTag;Yc[tw]=(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(E.FixedSizeBinary),this.byteWidth=e}toString(){return`FixedSizeBinary[${this.byteWidth}]`}}nw=Symbol.toStringTag;Gc[nw]=(n=>(n.byteWidth=null,n.ArrayType=Uint8Array,n[Symbol.toStringTag]="FixedSizeBinary"))(Gc.prototype);class Jc extends fe{constructor(e,t){super(E.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}>`}}rw=Symbol.toStringTag;Jc[rw]=(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(E.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 h=(u=e==null?void 0:e.type)===null||u===void 0?void 0:u.children[1];h&&(h.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(", ")}}>`}}iw=Symbol.toStringTag;Xc[iw]=(n=>(n.children=null,n.keysSorted=null,n[Symbol.toStringTag]="Map_"))(Xc.prototype);const DE=(n=>()=>++n)(-1);class wa extends fe{constructor(e,t,s,a){super(E.Dictionary),this.indices=t,this.dictionary=e,this.isOrdered=a||!1,this.id=s==null?DE():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}>`}}sw=Symbol.toStringTag;wa[sw]=(n=>(n.id=null,n.indices=null,n.isOrdered=null,n.dictionary=null,n[Symbol.toStringTag]="Dictionary"))(wa.prototype);function fi(n){const e=n;switch(n.typeId){case E.Decimal:return n.bitWidth/32;case E.Interval:return 1+e.unit;case E.FixedSizeList:return e.listSize;case E.FixedSizeBinary:return e.byteWidth;default:return 1}}class $e{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 OE(this,e,t)}getVisitFnByTypeId(e,t=!0){return Qo(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 OE(n,e,t=!0){return typeof e=="number"?Qo(n,e,t):typeof e=="string"&&e in E?Qo(n,E[e],t):e&&e instanceof fe?Qo(n,Zg(e),t):e!=null&&e.type&&e.type instanceof fe?Qo(n,Zg(e.type),t):Qo(n,E.NONE,t)}function Qo(n,e,t=!0){let s=null;switch(e){case E.Null:s=n.visitNull;break;case E.Bool:s=n.visitBool;break;case E.Int:s=n.visitInt;break;case E.Int8:s=n.visitInt8||n.visitInt;break;case E.Int16:s=n.visitInt16||n.visitInt;break;case E.Int32:s=n.visitInt32||n.visitInt;break;case E.Int64:s=n.visitInt64||n.visitInt;break;case E.Uint8:s=n.visitUint8||n.visitInt;break;case E.Uint16:s=n.visitUint16||n.visitInt;break;case E.Uint32:s=n.visitUint32||n.visitInt;break;case E.Uint64:s=n.visitUint64||n.visitInt;break;case E.Float:s=n.visitFloat;break;case E.Float16:s=n.visitFloat16||n.visitFloat;break;case E.Float32:s=n.visitFloat32||n.visitFloat;break;case E.Float64:s=n.visitFloat64||n.visitFloat;break;case E.Utf8:s=n.visitUtf8;break;case E.LargeUtf8:s=n.visitLargeUtf8;break;case E.Binary:s=n.visitBinary;break;case E.LargeBinary:s=n.visitLargeBinary;break;case E.FixedSizeBinary:s=n.visitFixedSizeBinary;break;case E.Date:s=n.visitDate;break;case E.DateDay:s=n.visitDateDay||n.visitDate;break;case E.DateMillisecond:s=n.visitDateMillisecond||n.visitDate;break;case E.Timestamp:s=n.visitTimestamp;break;case E.TimestampSecond:s=n.visitTimestampSecond||n.visitTimestamp;break;case E.TimestampMillisecond:s=n.visitTimestampMillisecond||n.visitTimestamp;break;case E.TimestampMicrosecond:s=n.visitTimestampMicrosecond||n.visitTimestamp;break;case E.TimestampNanosecond:s=n.visitTimestampNanosecond||n.visitTimestamp;break;case E.Time:s=n.visitTime;break;case E.TimeSecond:s=n.visitTimeSecond||n.visitTime;break;case E.TimeMillisecond:s=n.visitTimeMillisecond||n.visitTime;break;case E.TimeMicrosecond:s=n.visitTimeMicrosecond||n.visitTime;break;case E.TimeNanosecond:s=n.visitTimeNanosecond||n.visitTime;break;case E.Decimal:s=n.visitDecimal;break;case E.List:s=n.visitList;break;case E.Struct:s=n.visitStruct;break;case E.Union:s=n.visitUnion;break;case E.DenseUnion:s=n.visitDenseUnion||n.visitUnion;break;case E.SparseUnion:s=n.visitSparseUnion||n.visitUnion;break;case E.Dictionary:s=n.visitDictionary;break;case E.Interval:s=n.visitInterval;break;case E.IntervalDayTime:s=n.visitIntervalDayTime||n.visitInterval;break;case E.IntervalYearMonth:s=n.visitIntervalYearMonth||n.visitInterval;break;case E.Duration:s=n.visitDuration;break;case E.DurationSecond:s=n.visitDurationSecond||n.visitDuration;break;case E.DurationMillisecond:s=n.visitDurationMillisecond||n.visitDuration;break;case E.DurationMicrosecond:s=n.visitDurationMicrosecond||n.visitDuration;break;case E.DurationNanosecond:s=n.visitDurationNanosecond||n.visitDuration;break;case E.FixedSizeList:s=n.visitFixedSizeList;break;case E.Map:s=n.visitMap;break}if(typeof s=="function")return s;if(!t)return()=>null;throw new Error(`Unrecognized type '${E[e]}'`)}function Zg(n){switch(n.typeId){case E.Null:return E.Null;case E.Int:{const{bitWidth:e,isSigned:t}=n;switch(e){case 8:return t?E.Int8:E.Uint8;case 16:return t?E.Int16:E.Uint16;case 32:return t?E.Int32:E.Uint32;case 64:return t?E.Int64:E.Uint64}return E.Int}case E.Float:switch(n.precision){case cn.HALF:return E.Float16;case cn.SINGLE:return E.Float32;case cn.DOUBLE:return E.Float64}return E.Float;case E.Binary:return E.Binary;case E.LargeBinary:return E.LargeBinary;case E.Utf8:return E.Utf8;case E.LargeUtf8:return E.LargeUtf8;case E.Bool:return E.Bool;case E.Decimal:return E.Decimal;case E.Time:switch(n.unit){case Ie.SECOND:return E.TimeSecond;case Ie.MILLISECOND:return E.TimeMillisecond;case Ie.MICROSECOND:return E.TimeMicrosecond;case Ie.NANOSECOND:return E.TimeNanosecond}return E.Time;case E.Timestamp:switch(n.unit){case Ie.SECOND:return E.TimestampSecond;case Ie.MILLISECOND:return E.TimestampMillisecond;case Ie.MICROSECOND:return E.TimestampMicrosecond;case Ie.NANOSECOND:return E.TimestampNanosecond}return E.Timestamp;case E.Date:switch(n.unit){case rr.DAY:return E.DateDay;case rr.MILLISECOND:return E.DateMillisecond}return E.Date;case E.Interval:switch(n.unit){case Yr.DAY_TIME:return E.IntervalDayTime;case Yr.YEAR_MONTH:return E.IntervalYearMonth}return E.Interval;case E.Duration:switch(n.unit){case Ie.SECOND:return E.DurationSecond;case Ie.MILLISECOND:return E.DurationMillisecond;case Ie.MICROSECOND:return E.DurationMicrosecond;case Ie.NANOSECOND:return E.DurationNanosecond}return E.Duration;case E.Map:return E.Map;case E.List:return E.List;case E.Struct:return E.Struct;case E.Union:switch(n.mode){case Bn.Dense:return E.DenseUnion;case Bn.Sparse:return E.SparseUnion}return E.Union;case E.FixedSizeBinary:return E.FixedSizeBinary;case E.FixedSizeList:return E.FixedSizeList;case E.Dictionary:return E.Dictionary}throw new Error(`Unrecognized type '${E[n.typeId]}'`)}$e.prototype.visitInt8=null;$e.prototype.visitInt16=null;$e.prototype.visitInt32=null;$e.prototype.visitInt64=null;$e.prototype.visitUint8=null;$e.prototype.visitUint16=null;$e.prototype.visitUint32=null;$e.prototype.visitUint64=null;$e.prototype.visitFloat16=null;$e.prototype.visitFloat32=null;$e.prototype.visitFloat64=null;$e.prototype.visitDateDay=null;$e.prototype.visitDateMillisecond=null;$e.prototype.visitTimestampSecond=null;$e.prototype.visitTimestampMillisecond=null;$e.prototype.visitTimestampMicrosecond=null;$e.prototype.visitTimestampNanosecond=null;$e.prototype.visitTimeSecond=null;$e.prototype.visitTimeMillisecond=null;$e.prototype.visitTimeMicrosecond=null;$e.prototype.visitTimeNanosecond=null;$e.prototype.visitDenseUnion=null;$e.prototype.visitSparseUnion=null;$e.prototype.visitIntervalDayTime=null;$e.prototype.visitIntervalYearMonth=null;$e.prototype.visitDuration=null;$e.prototype.visitDurationSecond=null;$e.prototype.visitDurationMillisecond=null;$e.prototype.visitDurationMicrosecond=null;$e.prototype.visitDurationNanosecond=null;const ow=new Float64Array(1),No=new Uint32Array(ow.buffer);function aw(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 CE(n){if(n!==n)return 32256;ow[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 Ee extends $e{}function Oe(n){return(e,t,s)=>{if(e.setValid(t,s!=null))return n(e,t,s)}}const FE=(n,e,t)=>{n[e]=Math.floor(t/864e5)},lw=(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)}},RE=({offset:n,values:e},t,s)=>{const a=n+t;s?e[a>>3]|=1<<a%8:e[a>>3]&=~(1<<a%8)},xi=({values:n},e,t)=>{n[e]=t},fp=({values:n},e,t)=>{n[e]=t},uw=({values:n},e,t)=>{n[e]=CE(t)},ME=(n,e,t)=>{switch(n.type.precision){case cn.HALF:return uw(n,e,t);case cn.SINGLE:case cn.DOUBLE:return fp(n,e,t)}},cw=({values:n},e,t)=>{FE(n,e,t.valueOf())},dw=({values:n},e,t)=>{n[e]=BigInt(t)},AE=({stride:n,values:e},t,s)=>{e.set(s.subarray(0,n),n*t)},fw=({values:n,valueOffsets:e},t,s)=>lw(n,e,t,s),hw=({values:n,valueOffsets:e},t,s)=>lw(n,e,t,ap(s)),TE=(n,e,t)=>{n.type.unit===rr.DAY?cw(n,e,t):dw(n,e,t)},pw=({values:n},e,t)=>{n[e]=BigInt(t/1e3)},mw=({values:n},e,t)=>{n[e]=BigInt(t)},yw=({values:n},e,t)=>{n[e]=BigInt(t*1e3)},gw=({values:n},e,t)=>{n[e]=BigInt(t*1e6)},LE=(n,e,t)=>{switch(n.type.unit){case Ie.SECOND:return pw(n,e,t);case Ie.MILLISECOND:return mw(n,e,t);case Ie.MICROSECOND:return yw(n,e,t);case Ie.NANOSECOND:return gw(n,e,t)}},vw=({values:n},e,t)=>{n[e]=t},ww=({values:n},e,t)=>{n[e]=t},Sw=({values:n},e,t)=>{n[e]=t},_w=({values:n},e,t)=>{n[e]=t},BE=(n,e,t)=>{switch(n.type.unit){case Ie.SECOND:return vw(n,e,t);case Ie.MILLISECOND:return ww(n,e,t);case Ie.MICROSECOND:return Sw(n,e,t);case Ie.NANOSECOND:return _w(n,e,t)}},NE=({values:n,stride:e},t,s)=>{n.set(s.subarray(0,e),e*t)},PE=(n,e,t)=>{const s=n.children[0],a=n.valueOffsets,u=ir.getVisitFn(s);if(Array.isArray(t))for(let d=-1,h=a[e],p=a[e+1];h<p;)u(s,h++,t[++d]);else for(let d=-1,h=a[e],p=a[e+1];h<p;)u(s,h++,t.get(++d))},kE=(n,e,t)=>{const s=n.children[0],{valueOffsets:a}=n,u=ir.getVisitFn(s);let{[e]:d,[e+1]:h}=a;const p=t instanceof Map?t.entries():Object.entries(t);for(const y of p)if(u(s,d,y),++d>=h)break},UE=(n,e)=>(t,s,a,u)=>s&&t(s,n,e[u]),jE=(n,e)=>(t,s,a,u)=>s&&t(s,n,e.get(u)),zE=(n,e)=>(t,s,a,u)=>s&&t(s,n,e.get(a.name)),VE=(n,e)=>(t,s,a,u)=>s&&t(s,n,e[a.name]),$E=(n,e,t)=>{const s=n.type.children.map(u=>ir.getVisitFn(u.type)),a=t instanceof Map?zE(e,t):t instanceof pt?jE(e,t):Array.isArray(t)?UE(e,t):VE(e,t);n.type.children.forEach((u,d)=>a(s[d],n.children[d],u,d))},WE=(n,e,t)=>{n.type.mode===Bn.Dense?bw(n,e,t):Iw(n,e,t)},bw=(n,e,t)=>{const s=n.type.typeIdToChildIndex[n.typeIds[e]],a=n.children[s];ir.visit(a,n.valueOffsets[e],t)},Iw=(n,e,t)=>{const s=n.type.typeIdToChildIndex[n.typeIds[e]],a=n.children[s];ir.visit(a,e,t)},HE=(n,e,t)=>{var s;(s=n.dictionary)===null||s===void 0||s.set(n.values[e],t)},QE=(n,e,t)=>{n.type.unit===Yr.DAY_TIME?Ew(n,e,t):xw(n,e,t)},Ew=({values:n},e,t)=>{n.set(t.subarray(0,2),2*e)},xw=({values:n},e,t)=>{n[e]=t[0]*12+t[1]%12},Dw=({values:n},e,t)=>{n[e]=t},Ow=({values:n},e,t)=>{n[e]=t},Cw=({values:n},e,t)=>{n[e]=t},Fw=({values:n},e,t)=>{n[e]=t},KE=(n,e,t)=>{switch(n.type.unit){case Ie.SECOND:return Dw(n,e,t);case Ie.MILLISECOND:return Ow(n,e,t);case Ie.MICROSECOND:return Cw(n,e,t);case Ie.NANOSECOND:return Fw(n,e,t)}},qE=(n,e,t)=>{const{stride:s}=n,a=n.children[0],u=ir.getVisitFn(a);if(Array.isArray(t))for(let d=-1,h=e*s;++d<s;)u(a,h+d,t[d]);else for(let d=-1,h=e*s;++d<s;)u(a,h+d,t.get(d))};Ee.prototype.visitBool=Oe(RE);Ee.prototype.visitInt=Oe(xi);Ee.prototype.visitInt8=Oe(xi);Ee.prototype.visitInt16=Oe(xi);Ee.prototype.visitInt32=Oe(xi);Ee.prototype.visitInt64=Oe(xi);Ee.prototype.visitUint8=Oe(xi);Ee.prototype.visitUint16=Oe(xi);Ee.prototype.visitUint32=Oe(xi);Ee.prototype.visitUint64=Oe(xi);Ee.prototype.visitFloat=Oe(ME);Ee.prototype.visitFloat16=Oe(uw);Ee.prototype.visitFloat32=Oe(fp);Ee.prototype.visitFloat64=Oe(fp);Ee.prototype.visitUtf8=Oe(hw);Ee.prototype.visitLargeUtf8=Oe(hw);Ee.prototype.visitBinary=Oe(fw);Ee.prototype.visitLargeBinary=Oe(fw);Ee.prototype.visitFixedSizeBinary=Oe(AE);Ee.prototype.visitDate=Oe(TE);Ee.prototype.visitDateDay=Oe(cw);Ee.prototype.visitDateMillisecond=Oe(dw);Ee.prototype.visitTimestamp=Oe(LE);Ee.prototype.visitTimestampSecond=Oe(pw);Ee.prototype.visitTimestampMillisecond=Oe(mw);Ee.prototype.visitTimestampMicrosecond=Oe(yw);Ee.prototype.visitTimestampNanosecond=Oe(gw);Ee.prototype.visitTime=Oe(BE);Ee.prototype.visitTimeSecond=Oe(vw);Ee.prototype.visitTimeMillisecond=Oe(ww);Ee.prototype.visitTimeMicrosecond=Oe(Sw);Ee.prototype.visitTimeNanosecond=Oe(_w);Ee.prototype.visitDecimal=Oe(NE);Ee.prototype.visitList=Oe(PE);Ee.prototype.visitStruct=Oe($E);Ee.prototype.visitUnion=Oe(WE);Ee.prototype.visitDenseUnion=Oe(bw);Ee.prototype.visitSparseUnion=Oe(Iw);Ee.prototype.visitDictionary=Oe(HE);Ee.prototype.visitInterval=Oe(QE);Ee.prototype.visitIntervalDayTime=Oe(Ew);Ee.prototype.visitIntervalYearMonth=Oe(xw);Ee.prototype.visitDuration=Oe(KE);Ee.prototype.visitDurationSecond=Oe(Dw);Ee.prototype.visitDurationMillisecond=Oe(Ow);Ee.prototype.visitDurationMicrosecond=Oe(Cw);Ee.prototype.visitDurationNanosecond=Oe(Fw);Ee.prototype.visitFixedSizeList=Oe(qE);Ee.prototype.visitMap=Oe(kE);const ir=new Ee,vr=Symbol.for("parent"),ea=Symbol.for("rowIndex");class hp{constructor(e,t){return this[vr]=e,this[ea]=t,new Proxy(this,JE)}toArray(){return Object.values(this.toJSON())}toJSON(){const e=this[ea],t=this[vr],s=t.type.children,a={};for(let u=-1,d=s.length;++u<d;)a[s[u].name]=Nn.visit(t.children[u],e);return a}toString(){return`{${[...this].map(([e,t])=>`${Bl(e)}: ${Bl(t)}`).join(", ")}}`}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}[Symbol.iterator](){return new YE(this[vr],this[ea])}}class YE{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,Nn.visit(this.children[e],this.rowIndex)]}):{done:!0,value:null}}}Object.defineProperties(hp.prototype,{[Symbol.toStringTag]:{enumerable:!1,configurable:!1,value:"Row"},[vr]:{writable:!0,enumerable:!1,configurable:!1,value:null},[ea]:{writable:!0,enumerable:!1,configurable:!1,value:-1}});class GE{isExtensible(){return!1}deleteProperty(){return!1}preventExtensions(){return!0}ownKeys(e){return e[vr].type.children.map(t=>t.name)}has(e,t){return e[vr].type.children.some(s=>s.name===t)}getOwnPropertyDescriptor(e,t){if(e[vr].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[vr].type.children.findIndex(a=>a.name===t);if(s!==-1){const a=Nn.visit(e[vr].children[s],e[ea]);return Reflect.set(e,t,a),a}}set(e,t,s){const a=e[vr].type.children.findIndex(u=>u.name===t);return a!==-1?(ir.visit(e[vr].children[a],e[ea],s),Reflect.set(e,t,s)):Reflect.has(e,t)||typeof t=="symbol"?Reflect.set(e,t,s):!1}}const JE=new GE;class ve extends $e{}function xe(n){return(e,t)=>e.getValid(t)?n(e,t):null}const XE=(n,e)=>864e5*n[e],ZE=(n,e)=>null,Rw=(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)},ex=({offset:n,values:e},t)=>{const s=n+t;return(e[s>>3]&1<<s%8)!==0},Mw=({values:n},e)=>XE(n,e),Aw=({values:n},e)=>xt(n[e]),Ss=({stride:n,values:e},t)=>e[n*t],tx=({stride:n,values:e},t)=>aw(e[n*t]),Tw=({values:n},e)=>n[e],nx=({stride:n,values:e},t)=>e.subarray(n*t,n*(t+1)),Lw=({values:n,valueOffsets:e},t)=>Rw(n,e,t),Bw=({values:n,valueOffsets:e},t)=>{const s=Rw(n,e,t);return s!==null?Th(s):null},rx=({values:n},e)=>n[e],ix=({type:n,values:e},t)=>n.precision!==cn.HALF?e[t]:aw(e[t]),sx=(n,e)=>n.type.unit===rr.DAY?Mw(n,e):Aw(n,e),Nw=({values:n},e)=>1e3*xt(n[e]),Pw=({values:n},e)=>xt(n[e]),kw=({values:n},e)=>N0(n[e],BigInt(1e3)),Uw=({values:n},e)=>N0(n[e],BigInt(1e6)),ox=(n,e)=>{switch(n.type.unit){case Ie.SECOND:return Nw(n,e);case Ie.MILLISECOND:return Pw(n,e);case Ie.MICROSECOND:return kw(n,e);case Ie.NANOSECOND:return Uw(n,e)}},jw=({values:n},e)=>n[e],zw=({values:n},e)=>n[e],Vw=({values:n},e)=>n[e],$w=({values:n},e)=>n[e],ax=(n,e)=>{switch(n.type.unit){case Ie.SECOND:return jw(n,e);case Ie.MILLISECOND:return zw(n,e);case Ie.MICROSECOND:return Vw(n,e);case Ie.NANOSECOND:return $w(n,e)}},lx=({values:n,stride:e},t)=>dp.decimal(n.subarray(e*t,e*(t+1))),ux=(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])},cx=(n,e)=>{const{valueOffsets:t,children:s}=n,{[e]:a,[e+1]:u}=t,d=s[0];return new pp(d.slice(a,u-a))},dx=(n,e)=>new hp(n,e),fx=(n,e)=>n.type.mode===Bn.Dense?Ww(n,e):Hw(n,e),Ww=(n,e)=>{const t=n.type.typeIdToChildIndex[n.typeIds[e]],s=n.children[t];return Nn.visit(s,n.valueOffsets[e])},Hw=(n,e)=>{const t=n.type.typeIdToChildIndex[n.typeIds[e]],s=n.children[t];return Nn.visit(s,e)},hx=(n,e)=>{var t;return(t=n.dictionary)===null||t===void 0?void 0:t.get(n.values[e])},px=(n,e)=>n.type.unit===Yr.DAY_TIME?Qw(n,e):Kw(n,e),Qw=({values:n},e)=>n.subarray(2*e,2*(e+1)),Kw=({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},qw=({values:n},e)=>n[e],Yw=({values:n},e)=>n[e],Gw=({values:n},e)=>n[e],Jw=({values:n},e)=>n[e],mx=(n,e)=>{switch(n.type.unit){case Ie.SECOND:return qw(n,e);case Ie.MILLISECOND:return Yw(n,e);case Ie.MICROSECOND:return Gw(n,e);case Ie.NANOSECOND:return Jw(n,e)}},yx=(n,e)=>{const{stride:t,children:s}=n,u=s[0].slice(e*t,t);return new pt([u])};ve.prototype.visitNull=xe(ZE);ve.prototype.visitBool=xe(ex);ve.prototype.visitInt=xe(rx);ve.prototype.visitInt8=xe(Ss);ve.prototype.visitInt16=xe(Ss);ve.prototype.visitInt32=xe(Ss);ve.prototype.visitInt64=xe(Tw);ve.prototype.visitUint8=xe(Ss);ve.prototype.visitUint16=xe(Ss);ve.prototype.visitUint32=xe(Ss);ve.prototype.visitUint64=xe(Tw);ve.prototype.visitFloat=xe(ix);ve.prototype.visitFloat16=xe(tx);ve.prototype.visitFloat32=xe(Ss);ve.prototype.visitFloat64=xe(Ss);ve.prototype.visitUtf8=xe(Bw);ve.prototype.visitLargeUtf8=xe(Bw);ve.prototype.visitBinary=xe(Lw);ve.prototype.visitLargeBinary=xe(Lw);ve.prototype.visitFixedSizeBinary=xe(nx);ve.prototype.visitDate=xe(sx);ve.prototype.visitDateDay=xe(Mw);ve.prototype.visitDateMillisecond=xe(Aw);ve.prototype.visitTimestamp=xe(ox);ve.prototype.visitTimestampSecond=xe(Nw);ve.prototype.visitTimestampMillisecond=xe(Pw);ve.prototype.visitTimestampMicrosecond=xe(kw);ve.prototype.visitTimestampNanosecond=xe(Uw);ve.prototype.visitTime=xe(ax);ve.prototype.visitTimeSecond=xe(jw);ve.prototype.visitTimeMillisecond=xe(zw);ve.prototype.visitTimeMicrosecond=xe(Vw);ve.prototype.visitTimeNanosecond=xe($w);ve.prototype.visitDecimal=xe(lx);ve.prototype.visitList=xe(ux);ve.prototype.visitStruct=xe(dx);ve.prototype.visitUnion=xe(fx);ve.prototype.visitDenseUnion=xe(Ww);ve.prototype.visitSparseUnion=xe(Hw);ve.prototype.visitDictionary=xe(hx);ve.prototype.visitInterval=xe(px);ve.prototype.visitIntervalDayTime=xe(Qw);ve.prototype.visitIntervalYearMonth=xe(Kw);ve.prototype.visitDuration=xe(mx);ve.prototype.visitDurationSecond=xe(qw);ve.prototype.visitDurationMillisecond=xe(Yw);ve.prototype.visitDurationMicrosecond=xe(Gw);ve.prototype.visitDurationNanosecond=xe(Jw);ve.prototype.visitFixedSizeList=xe(yx);ve.prototype.visitMap=xe(cx);const Nn=new ve,Ko=Symbol.for("keys"),ta=Symbol.for("vals"),qo=Symbol.for("kKeysAsStrings"),Uh=Symbol.for("_kKeysAsStrings");class pp{constructor(e){return this[Ko]=new pt([e.children[0]]).memoize(),this[ta]=e.children[1],new Proxy(this,new vx)}get[qo](){return this[Uh]||(this[Uh]=Array.from(this[Ko].toArray(),String))}[Symbol.iterator](){return new gx(this[Ko],this[ta])}get size(){return this[Ko].length}toArray(){return Object.values(this.toJSON())}toJSON(){const e=this[Ko],t=this[ta],s={};for(let a=-1,u=e.length;++a<u;)s[e.get(a)]=Nn.visit(t,a);return s}toString(){return`{${[...this].map(([e,t])=>`${Bl(e)}: ${Bl(t)}`).join(", ")}}`}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}}class gx{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),Nn.visit(this.vals,e)]})}}class vx{isExtensible(){return!1}deleteProperty(){return!1}preventExtensions(){return!0}ownKeys(e){return e[qo]}has(e,t){return e[qo].includes(t)}getOwnPropertyDescriptor(e,t){if(e[qo].indexOf(t)!==-1)return{writable:!0,enumerable:!0,configurable:!0}}get(e,t){if(Reflect.has(e,t))return e[t];const s=e[qo].indexOf(t);if(s!==-1){const a=Nn.visit(Reflect.get(e,ta),s);return Reflect.set(e,t,a),a}}set(e,t,s){const a=e[qo].indexOf(t);return a!==-1?(ir.visit(Reflect.get(e,ta),a,s),Reflect.set(e,t,s)):Reflect.has(e,t)?Reflect.set(e,t,s):!1}}Object.defineProperties(pp.prototype,{[Symbol.toStringTag]:{enumerable:!1,configurable:!1,value:"Row"},[Ko]:{writable:!0,enumerable:!1,configurable:!1,value:null},[ta]:{writable:!0,enumerable:!1,configurable:!1,value:null},[Uh]:{writable:!0,enumerable:!1,configurable:!1,value:null}});let ev;function Xw(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&&(ev=u,u=d,d=ev),d>a&&(d=a),s?s(n,u,d):[u,d]}const mp=(n,e)=>n<0?e+n:n,tv=n=>n!==n;function Ea(n){if(typeof n!=="object"||n===null)return tv(n)?tv: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?mE(n,t):!1:n instanceof Map?Sx(n):Array.isArray(n)?wx(n):n instanceof pt?_x(n):bx(n,!0)}function wx(n){const e=[];for(let t=-1,s=n.length;++t<s;)e[t]=Ea(n[t]);return fd(e)}function Sx(n){let e=-1;const t=[];for(const s of n.values())t[++e]=Ea(s);return fd(t)}function _x(n){const e=[];for(let t=-1,s=n.length;++t<s;)e[t]=Ea(n.get(t));return fd(e)}function bx(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]=Ea(n[t[a]]);return fd(s,t)}function fd(n,e){return t=>{if(!t||typeof t!="object")return!1;switch(t.constructor){case Array:return Ix(n,t);case Map:return nv(n,t,t.keys());case pp:case hp:case Object:case void 0:return nv(n,t,e||Object.keys(t))}return t instanceof pt?Ex(n,t):!1}}function Ix(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 Ex(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 nv(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 h=n.length;let p=u.next(),y=s.next(),g=a.next();for(;d<h&&!y.done&&!g.done&&!p.done&&!(y.value!==g.value||!n[d](p.value));++d,y=s.next(),g=a.next(),p=u.next());return d===h&&y.done&&g.done&&p.done?!0:(s.return&&s.return(),a.return&&a.return(),u.return&&u.return(),!1)}function Zw(n,e,t,s){return(t&1<<s)!==0}function xx(n,e,t,s){return(t&1<<s)>>s}function rv(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):jh(new yp(t,n,e,null,Zw)).subarray(0,s)),a}return t}function jh(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 yp{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 zh(n,e,t){if(t-e<=0)return 0;if(t-e<8){let u=0;for(const d of new yp(n,e,t-e,n,xx))u+=d;return u}const s=t>>3<<3,a=e+(e%8===0?0:8-e%8);return zh(n,e,a)+zh(n,s,t)+Dx(n,a>>3,s-a>>3)}function Dx(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+=dh(u.getUint32(a)),a+=4;for(;d-a>=2;)s+=dh(u.getUint16(a)),a+=2;for(;d-a>=1;)s+=dh(u.getUint8(a)),a+=1;return s}function dh(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 Ox=-1;let _t=class Vh{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,h)=>d+h.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<=Ox&&(t=this.nullBitmap)&&(this._nullCount=e=t.length===0?0:this.length-zh(t,this.offset,this.offset+this.length)),e}constructor(e,t,s,a,u,d=[],h){this.type=e,this.children=d,this.dictionary=h,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 Vh?(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===Bn.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]]],h=u.mode===Bn.Dense?this.valueOffsets[e]:e;s=d.getValid(h),d.setValid(h,t)}else{let{nullBitmap:u}=this;const{offset:d,length:h}=this,p=d+e,y=1<<p%8,g=p>>3;(!u||u.byteLength<=g)&&(u=new Uint8Array((d+h+63&-64)>>3).fill(255),this.nullCount>0?(u.set(rv(d,h,this.nullBitmap),0),Object.assign(this,{nullBitmap:u})):Object.assign(this,{nullBitmap:u,_nullCount:0}));const v=u[g];s=(v&y)!==0,u[g]=t?v|y:v&~y}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 Vh(e,t,s,a,u,d,this.dictionary)}slice(e,t){const{stride:s,typeId:a,children:u}=this,d=+(this._nullCount===0)-1,h=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,h*e,h*t))}_changeLengthAndBackfillNullBitmap(e){if(this.typeId===E.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(rv(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 Rl extends $e{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=Ge(e.nullBitmap),u=ct(t.ArrayType,e.data),{["length"]:d=u.length>>3,["nullCount"]:h=e.nullBitmap?-1:0}=e;return new _t(t,s,d,h,[void 0,u,a])}visitInt(e){const{["type"]:t,["offset"]:s=0}=e,a=Ge(e.nullBitmap),u=ct(t.ArrayType,e.data),{["length"]:d=u.length,["nullCount"]:h=e.nullBitmap?-1:0}=e;return new _t(t,s,d,h,[void 0,u,a])}visitFloat(e){const{["type"]:t,["offset"]:s=0}=e,a=Ge(e.nullBitmap),u=ct(t.ArrayType,e.data),{["length"]:d=u.length,["nullCount"]:h=e.nullBitmap?-1:0}=e;return new _t(t,s,d,h,[void 0,u,a])}visitUtf8(e){const{["type"]:t,["offset"]:s=0}=e,a=Ge(e.data),u=Ge(e.nullBitmap),d=gl(e.valueOffsets),{["length"]:h=d.length-1,["nullCount"]:p=e.nullBitmap?-1:0}=e;return new _t(t,s,h,p,[d,a,u])}visitLargeUtf8(e){const{["type"]:t,["offset"]:s=0}=e,a=Ge(e.data),u=Ge(e.nullBitmap),d=$g(e.valueOffsets),{["length"]:h=d.length-1,["nullCount"]:p=e.nullBitmap?-1:0}=e;return new _t(t,s,h,p,[d,a,u])}visitBinary(e){const{["type"]:t,["offset"]:s=0}=e,a=Ge(e.data),u=Ge(e.nullBitmap),d=gl(e.valueOffsets),{["length"]:h=d.length-1,["nullCount"]:p=e.nullBitmap?-1:0}=e;return new _t(t,s,h,p,[d,a,u])}visitLargeBinary(e){const{["type"]:t,["offset"]:s=0}=e,a=Ge(e.data),u=Ge(e.nullBitmap),d=$g(e.valueOffsets),{["length"]:h=d.length-1,["nullCount"]:p=e.nullBitmap?-1:0}=e;return new _t(t,s,h,p,[d,a,u])}visitFixedSizeBinary(e){const{["type"]:t,["offset"]:s=0}=e,a=Ge(e.nullBitmap),u=ct(t.ArrayType,e.data),{["length"]:d=u.length/fi(t),["nullCount"]:h=e.nullBitmap?-1:0}=e;return new _t(t,s,d,h,[void 0,u,a])}visitDate(e){const{["type"]:t,["offset"]:s=0}=e,a=Ge(e.nullBitmap),u=ct(t.ArrayType,e.data),{["length"]:d=u.length/fi(t),["nullCount"]:h=e.nullBitmap?-1:0}=e;return new _t(t,s,d,h,[void 0,u,a])}visitTimestamp(e){const{["type"]:t,["offset"]:s=0}=e,a=Ge(e.nullBitmap),u=ct(t.ArrayType,e.data),{["length"]:d=u.length/fi(t),["nullCount"]:h=e.nullBitmap?-1:0}=e;return new _t(t,s,d,h,[void 0,u,a])}visitTime(e){const{["type"]:t,["offset"]:s=0}=e,a=Ge(e.nullBitmap),u=ct(t.ArrayType,e.data),{["length"]:d=u.length/fi(t),["nullCount"]:h=e.nullBitmap?-1:0}=e;return new _t(t,s,d,h,[void 0,u,a])}visitDecimal(e){const{["type"]:t,["offset"]:s=0}=e,a=Ge(e.nullBitmap),u=ct(t.ArrayType,e.data),{["length"]:d=u.length/fi(t),["nullCount"]:h=e.nullBitmap?-1:0}=e;return new _t(t,s,d,h,[void 0,u,a])}visitList(e){const{["type"]:t,["offset"]:s=0,["child"]:a}=e,u=Ge(e.nullBitmap),d=gl(e.valueOffsets),{["length"]:h=d.length-1,["nullCount"]:p=e.nullBitmap?-1:0}=e;return new _t(t,s,h,p,[d,void 0,u],[a])}visitStruct(e){const{["type"]:t,["offset"]:s=0,["children"]:a=[]}=e,u=Ge(e.nullBitmap),{length:d=a.reduce((p,{length:y})=>Math.max(p,y),0),nullCount:h=e.nullBitmap?-1:0}=e;return new _t(t,s,d,h,[void 0,void 0,u],a)}visitUnion(e){const{["type"]:t,["offset"]:s=0,["children"]:a=[]}=e,u=ct(t.ArrayType,e.typeIds),{["length"]:d=u.length,["nullCount"]:h=-1}=e;if(fe.isSparseUnion(t))return new _t(t,s,d,h,[void 0,void 0,void 0,u],a);const p=gl(e.valueOffsets);return new _t(t,s,d,h,[p,void 0,void 0,u],a)}visitDictionary(e){const{["type"]:t,["offset"]:s=0}=e,a=Ge(e.nullBitmap),u=ct(t.indices.ArrayType,e.data),{["dictionary"]:d=new pt([new Rl().visit({type:t.dictionary})])}=e,{["length"]:h=u.length,["nullCount"]:p=e.nullBitmap?-1:0}=e;return new _t(t,s,h,p,[void 0,u,a],[],d)}visitInterval(e){const{["type"]:t,["offset"]:s=0}=e,a=Ge(e.nullBitmap),u=ct(t.ArrayType,e.data),{["length"]:d=u.length/fi(t),["nullCount"]:h=e.nullBitmap?-1:0}=e;return new _t(t,s,d,h,[void 0,u,a])}visitDuration(e){const{["type"]:t,["offset"]:s=0}=e,a=Ge(e.nullBitmap),u=ct(t.ArrayType,e.data),{["length"]:d=u.length,["nullCount"]:h=e.nullBitmap?-1:0}=e;return new _t(t,s,d,h,[void 0,u,a])}visitFixedSizeList(e){const{["type"]:t,["offset"]:s=0,["child"]:a=new Rl().visit({type:t.valueType})}=e,u=Ge(e.nullBitmap),{["length"]:d=a.length/fi(t),["nullCount"]:h=e.nullBitmap?-1:0}=e;return new _t(t,s,d,h,[void 0,void 0,u],[a])}visitMap(e){const{["type"]:t,["offset"]:s=0,["child"]:a=new Rl().visit({type:t.childType})}=e,u=Ge(e.nullBitmap),d=gl(e.valueOffsets),{["length"]:h=d.length-1,["nullCount"]:p=e.nullBitmap?-1:0}=e;return new _t(t,s,h,p,[d,void 0,u],[a])}}const Cx=new Rl;function ze(n){return Cx.visit(n)}class iv{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 Fx(n){return n.some(e=>e.nullable)}function eS(n){return n.reduce((e,t)=>e+t.nullCount,0)}function tS(n){return n.reduce((e,t,s)=>(e[s+1]=e[s]+t.length,e),new Uint32Array(n.length+1))}function nS(n,e,t,s){const a=[];for(let u=-1,d=n.length;++u<d;){const h=n[u],p=e[u],{length:y}=h;if(p>=s)break;if(t>=p+y)continue;if(p>=t&&p+y<=s){a.push(h);continue}const g=Math.max(0,t-p),v=Math.min(s-p,y);a.push(h.slice(g,v-g))}return a.length===0&&a.push(n[0].slice(0,0)),a}function gp(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 vp(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 gp(s,this._offsets,t,e)}}function rS(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=gp(u,this._offsets,s,t);return e=void 0,d}}function iS(n){let e;function t(s,a,u){let d=u,h=0,p=0;for(let y=a-1,g=s.length;++y<g;){const v=s[y];if(~(h=n(v,e,d)))return p+h;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):gp(u,this._offsets,a,t);return e=void 0,d}}class we extends $e{}function Rx(n,e){return e===null&&n.length>0?0:-1}function Mx(n,e){const{nullBitmap:t}=n;if(!t||n.nullCount<=0)return-1;let s=0;for(const a of new yp(t,n.offset+(e||0),n.length,t,Zw)){if(!a)return s;++s}return-1}function Fe(n,e,t){if(e===void 0)return-1;if(e===null)switch(n.typeId){case E.Union:break;case E.Dictionary:break;default:return Mx(n,t)}const s=Nn.getVisitFn(n),a=Ea(e);for(let u=(t||0)-1,d=n.length;++u<d;)if(a(s(n,u)))return u;return-1}function sS(n,e,t){const s=Nn.getVisitFn(n),a=Ea(e);for(let u=(t||0)-1,d=n.length;++u<d;)if(a(s(n,u)))return u;return-1}we.prototype.visitNull=Rx;we.prototype.visitBool=Fe;we.prototype.visitInt=Fe;we.prototype.visitInt8=Fe;we.prototype.visitInt16=Fe;we.prototype.visitInt32=Fe;we.prototype.visitInt64=Fe;we.prototype.visitUint8=Fe;we.prototype.visitUint16=Fe;we.prototype.visitUint32=Fe;we.prototype.visitUint64=Fe;we.prototype.visitFloat=Fe;we.prototype.visitFloat16=Fe;we.prototype.visitFloat32=Fe;we.prototype.visitFloat64=Fe;we.prototype.visitUtf8=Fe;we.prototype.visitLargeUtf8=Fe;we.prototype.visitBinary=Fe;we.prototype.visitLargeBinary=Fe;we.prototype.visitFixedSizeBinary=Fe;we.prototype.visitDate=Fe;we.prototype.visitDateDay=Fe;we.prototype.visitDateMillisecond=Fe;we.prototype.visitTimestamp=Fe;we.prototype.visitTimestampSecond=Fe;we.prototype.visitTimestampMillisecond=Fe;we.prototype.visitTimestampMicrosecond=Fe;we.prototype.visitTimestampNanosecond=Fe;we.prototype.visitTime=Fe;we.prototype.visitTimeSecond=Fe;we.prototype.visitTimeMillisecond=Fe;we.prototype.visitTimeMicrosecond=Fe;we.prototype.visitTimeNanosecond=Fe;we.prototype.visitDecimal=Fe;we.prototype.visitList=Fe;we.prototype.visitStruct=Fe;we.prototype.visitUnion=Fe;we.prototype.visitDenseUnion=sS;we.prototype.visitSparseUnion=sS;we.prototype.visitDictionary=Fe;we.prototype.visitInterval=Fe;we.prototype.visitIntervalDayTime=Fe;we.prototype.visitIntervalYearMonth=Fe;we.prototype.visitDuration=Fe;we.prototype.visitDurationSecond=Fe;we.prototype.visitDurationMillisecond=Fe;we.prototype.visitDurationMicrosecond=Fe;we.prototype.visitDurationNanosecond=Fe;we.prototype.visitFixedSizeList=Fe;we.prototype.visitMap=Fe;const ed=new we;class Se extends $e{}function De(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!==cn.HALF))return new iv(n.data.length,s=>{const a=n.data[s];return a.values.subarray(0,a.length)[Symbol.iterator]()});let t=0;return new iv(n.data.length,s=>{const u=n.data[s].length,d=n.slice(t,t+u);return t+=u,new Ax(d)})}class Ax{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}}Se.prototype.visitNull=De;Se.prototype.visitBool=De;Se.prototype.visitInt=De;Se.prototype.visitInt8=De;Se.prototype.visitInt16=De;Se.prototype.visitInt32=De;Se.prototype.visitInt64=De;Se.prototype.visitUint8=De;Se.prototype.visitUint16=De;Se.prototype.visitUint32=De;Se.prototype.visitUint64=De;Se.prototype.visitFloat=De;Se.prototype.visitFloat16=De;Se.prototype.visitFloat32=De;Se.prototype.visitFloat64=De;Se.prototype.visitUtf8=De;Se.prototype.visitLargeUtf8=De;Se.prototype.visitBinary=De;Se.prototype.visitLargeBinary=De;Se.prototype.visitFixedSizeBinary=De;Se.prototype.visitDate=De;Se.prototype.visitDateDay=De;Se.prototype.visitDateMillisecond=De;Se.prototype.visitTimestamp=De;Se.prototype.visitTimestampSecond=De;Se.prototype.visitTimestampMillisecond=De;Se.prototype.visitTimestampMicrosecond=De;Se.prototype.visitTimestampNanosecond=De;Se.prototype.visitTime=De;Se.prototype.visitTimeSecond=De;Se.prototype.visitTimeMillisecond=De;Se.prototype.visitTimeMicrosecond=De;Se.prototype.visitTimeNanosecond=De;Se.prototype.visitDecimal=De;Se.prototype.visitList=De;Se.prototype.visitStruct=De;Se.prototype.visitUnion=De;Se.prototype.visitDenseUnion=De;Se.prototype.visitSparseUnion=De;Se.prototype.visitDictionary=De;Se.prototype.visitInterval=De;Se.prototype.visitIntervalDayTime=De;Se.prototype.visitIntervalYearMonth=De;Se.prototype.visitDuration=De;Se.prototype.visitDurationSecond=De;Se.prototype.visitDurationMillisecond=De;Se.prototype.visitDurationMicrosecond=De;Se.prototype.visitDurationNanosecond=De;Se.prototype.visitFixedSizeList=De;Se.prototype.visitMap=De;const wp=new Se;var oS;const aS={},lS={};class pt{constructor(e){var t,s,a;const u=e[0]instanceof pt?e.flatMap(h=>h.data):e;if(u.length===0||u.some(h=>!(h 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:h,set:p,indexOf:y}=aS[d.typeId],g=u[0];this.isValid=v=>vp(g,v),this.get=v=>h(g,v),this.set=(v,x)=>p(g,v,x),this.indexOf=v=>y(g,v),this._offsets=[0,g.length];break}default:Object.setPrototypeOf(this,lS[d.typeId]),this._offsets=tS(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 Fx(this.data)}get nullCount(){return eS(this.data)}get ArrayType(){return this.type.ArrayType}get[Symbol.toStringTag](){return`${this.VectorName}<${this.type[Symbol.toStringTag]}>`}get VectorName(){return`${E[this.type.typeId]}Vector`}isValid(e){return!1}get(e){return null}at(e){return this.get(mp(e,this.length))}set(e,t){}indexOf(e,t){return-1}includes(e,t){return this.indexOf(e,t)>-1}[Symbol.iterator](){return wp.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(Xw(this,e,t,({data:s,_offsets:a},u,d)=>nS(s,a,u,d)))}toJSON(){return[...this]}toArray(){const{type:e,data:t,length:s,stride:a,ArrayType:u}=this;switch(e.typeId){case E.Int:case E.Float:case E.Decimal:case E.Time:case E.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:h,length:p})=>(d.array.set(h.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}}oS=Symbol.toStringTag;pt[oS]=(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(E).map(t=>E[t]).filter(t=>typeof t=="number"&&t!==E.NONE);for(const t of e){const s=Nn.getVisitFnByTypeId(t),a=ir.getVisitFnByTypeId(t),u=ed.getVisitFnByTypeId(t);aS[t]={get:s,set:a,indexOf:u},lS[t]=Object.create(n,{isValid:{value:Zc(vp)},get:{value:Zc(Nn.getVisitFnByTypeId(t))},set:{value:rS(ir.getVisitFnByTypeId(t))},indexOf:{value:iS(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 h=u[d];if(h!==void 0)return h;const p=t.call(this,d);return u[d]=p,p}}),Object.defineProperty(this,"set",{value(d,h){s.call(this,d,h),u[d]=h}}),Object.defineProperty(this,"slice",{value:(d,h)=>new td(a.call(this,d,h))}),Object.defineProperty(this,"isMemoized",{value:!0}),Object.defineProperty(this,"unmemoize",{value:()=>new pt(this.data)}),Object.defineProperty(this,"memoize",{value:()=>this})}}class $h{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 Br=class Wh{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 Wh).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsFooter(e,t){return e.setPosition(e.position()+ot),(t||new Wh).__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):zt.V1}schema(e){const t=this.bb.__offset(this.bb_pos,6);return t?(e||new kr).__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 $h).__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 $h).__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 Kt).__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,zt.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=zt.V5){this.fields=e||[],this.metadata=t||new Map,s||(s=Hh(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=hc(hc(new Map,this.metadata),t.metadata),u=t.fields.filter(h=>{const p=s.findIndex(y=>y.name===h.name);return~p?(s[p]=h.clone({metadata:hc(hc(new Map,s[p].metadata),h.metadata)}))&&!1:!0}),d=Hh(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 hc(n,e){return new Map([...n||new Map,...e||new Map])}function Hh(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&&Hh(u.children,e)}return e}var Tx=A0,Lx=ga;class Sp{static decode(e){e=new Lx(Ge(e));const t=Br.getRootAsFooter(e),s=it.decode(t.schema(),new Map,t.version());return new Bx(s,t)}static encode(e){const t=new Tx,s=it.encode(t,e.schema);Br.startRecordBatchesVector(t,e.numRecordBatches);for(const d of[...e.recordBatches()].slice().reverse())Sa.encode(t,d);const a=t.endVector();Br.startDictionariesVector(t,e.numDictionaries);for(const d of[...e.dictionaryBatches()].slice().reverse())Sa.encode(t,d);const u=t.endVector();return Br.startFooter(t),Br.addSchema(t,s),Br.addVersion(t,zt.V5),Br.addRecordBatches(t,a),Br.addDictionaries(t,u),Br.finishFooterBuffer(t,Br.endFooter(t)),t.asUint8Array()}get numRecordBatches(){return this._recordBatches.length}get numDictionaries(){return this._dictionaryBatches.length}constructor(e,t=zt.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 Bx extends Sp{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 Sa.decode(t)}return null}getDictionaryBatch(e){if(e>=0&&e<this.numDictionaries){const t=this._footer.dictionaries(e);if(t)return Sa.decode(t)}return null}}class Sa{static decode(e){return new Sa(e.metaDataLength(),e.bodyLength(),e.offset())}static encode(e,t){const{metaDataLength:s}=t,a=BigInt(t.offset),u=BigInt(t.bodyLength);return $h.createBlock(e,a,s,u)}constructor(e,t,s){this.metaDataLength=e,this.offset=xt(s),this.bodyLength=xt(t)}}const At=Object.freeze({done:!0,value:void 0});class sv{constructor(e){this._json=e}get schema(){return this._json.schema}get batches(){return this._json.batches||[]}get dictionaries(){return this._json.dictionaries||[]}}class uS{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 Nx extends uS{constructor(){super(),this._values=[],this.resolvers=[],this._closedPromise=new Promise(e=>this._closedPromiseResolve=e)}get closed(){return this._closedPromise}cancel(e){return Me(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(At);this._closedPromiseResolve(),this._closedPromiseResolve=void 0}}[Symbol.asyncIterator](){return this}toDOMStream(e){return Zn.toDOMStream(this._closedPromiseResolve||this._error?this:this._values,e)}toNodeStream(e){return Zn.toNodeStream(this._closedPromiseResolve||this._error?this:this._values,e)}throw(e){return Me(this,void 0,void 0,function*(){return yield this.abort(e),At})}return(e){return Me(this,void 0,void 0,function*(){return yield this.close(),At})}read(e){return Me(this,void 0,void 0,function*(){return(yield this.next(e,"read")).value})}peek(e){return Me(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(At)}_ensureOpen(){if(this._closedPromiseResolve)return!0;throw new Error("AsyncQueue is closed")}}class Px extends Nx{write(e){if((e=Ge(e)).byteLength>0)return super.write(e)}toString(e=!1){return e?Th(this.toUint8Array(!0)):this.toUint8Array(!1).then(Th)}toUint8Array(e=!1){return e?qr(this._values)[0]:Me(this,void 0,void 0,function*(){var t,s,a,u;const d=[];let h=0;try{for(var p=!0,y=Jo(this),g;g=yield y.next(),t=g.done,!t;p=!0){u=g.value,p=!1;const v=u;d.push(v),h+=v.byteLength}}catch(v){s={error:v}}finally{try{!p&&!t&&(a=y.return)&&(yield a.call(y))}finally{if(s)throw s.error}}return qr(d,h)[0]})}}class nd{constructor(e){e&&(this.source=new kx(Zn.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 _a{constructor(e){e instanceof _a?this.source=e.source:e instanceof Px?this.source=new Us(Zn.fromAsyncIterable(e)):F0(e)?this.source=new Us(Zn.fromNodeStream(e)):up(e)?this.source=new Us(Zn.fromDOMStream(e)):O0(e)?this.source=new Us(Zn.fromDOMStream(e.body)):dd(e)?this.source=new Us(Zn.fromIterable(e)):Ll(e)?this.source=new Us(Zn.fromAsyncIterable(e)):lp(e)&&(this.source=new Us(Zn.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 kx{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)||At)}return(e){return Object.create(this.source.return&&this.source.return(e)||At)}}class Us{constructor(e){this.source=e,this._closedPromise=new Promise(t=>this._closedPromiseResolve=t)}cancel(e){return Me(this,void 0,void 0,function*(){yield this.return(e)})}get closed(){return this._closedPromise}read(e){return Me(this,void 0,void 0,function*(){return(yield this.next(e,"read")).value})}peek(e){return Me(this,void 0,void 0,function*(){return(yield this.next(e,"peek")).value})}next(e){return Me(this,arguments,void 0,function*(t,s="read"){return yield this.source.next({cmd:s,size:t})})}throw(e){return Me(this,void 0,void 0,function*(){const t=this.source.throw&&(yield this.source.throw(e))||At;return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(t)})}return(e){return Me(this,void 0,void 0,function*(){const t=this.source.return&&(yield this.source.return(e))||At;return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(t)})}}class ov extends nd{constructor(e,t){super(),this.position=0,this.buffer=Ge(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 _a{constructor(e,t){super(),this.position=0,this._handle=e,typeof t=="number"?this.size=t:this._pending=Me(this,void 0,void 0,function*(){this.size=(yield e.stat()).size,delete this._pending})}readInt32(e){return Me(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 Me(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 Me(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,h=0;const p=Math.min(s,u+Math.min(s-u,e)),y=new Uint8Array(Math.max(0,(this.position=p)-u));for(;(u+=h)<p&&(d+=h)<y.byteLength;)({bytesRead:h}=yield t.read(y,d,y.byteLength-d,u));return y}return null})}readAt(e,t){return Me(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 Me(this,void 0,void 0,function*(){const e=this._handle;this._handle=null,e&&(yield e.close())})}throw(e){return Me(this,void 0,void 0,function*(){return yield this.close(),{done:!0,value:e}})}return(e){return Me(this,void 0,void 0,function*(){return yield this.close(),{done:!0,value:e}})}}const Ux=65536;function Yo(n){return n<0&&(n=4294967295+n+1),`0x${n.toString(16)}`}const ba=8,_p=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8];class cS{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?Ux: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`${Yo(this.buffer[1])} ${Yo(this.buffer[0])}`}}class ut extends cS{times(e){return this._times(e),this}plus(e){return this._plus(e),this}static from(e,t=new Uint32Array(2)){return ut.fromString(typeof e=="string"?e:e.toString(),t)}static fromNumber(e,t=new Uint32Array(2)){return ut.fromString(e.toString(),t)}static fromString(e,t=new Uint32Array(2)){const s=e.length,a=new ut(t);for(let u=0;u<s;){const d=ba<s-u?ba:s-u,h=new ut(new Uint32Array([Number.parseInt(e.slice(u,u+d),10),0])),p=new ut(new Uint32Array([_p[d],0]));a.times(p),a.plus(h),u+=d}return a}static convertArray(e){const t=new Uint32Array(e.length*2);for(let s=-1,a=e.length;++s<a;)ut.from(e[s],new Uint32Array(t.buffer,t.byteOffset+2*s*4,2));return t}static multiply(e,t){return new ut(new Uint32Array(e.buffer)).times(t)}static add(e,t){return new ut(new Uint32Array(e.buffer)).plus(t)}}class Tn extends cS{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 Tn.fromString(typeof e=="string"?e:e.toString(),t)}static fromNumber(e,t=new Uint32Array(2)){return Tn.fromString(e.toString(),t)}static fromString(e,t=new Uint32Array(2)){const s=e.startsWith("-"),a=e.length,u=new Tn(t);for(let d=s?1:0;d<a;){const h=ba<a-d?ba:a-d,p=new Tn(new Uint32Array([Number.parseInt(e.slice(d,d+h),10),0])),y=new Tn(new Uint32Array([_p[h],0]));u.times(y),u.plus(p),d+=h}return s?u.negate():u}static convertArray(e){const t=new Uint32Array(e.length*2);for(let s=-1,a=e.length;++s<a;)Tn.from(e[s],new Uint32Array(t.buffer,t.byteOffset+2*s*4,2));return t}static multiply(e,t){return new Tn(new Uint32Array(e.buffer)).times(t)}static add(e,t){return new Tn(new Uint32Array(e.buffer)).plus(t)}}class Ur{constructor(e){this.buffer=e}high(){return new Tn(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset+8,2))}low(){return new Tn(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 ut(new Uint32Array([this.buffer[3],0])),s=new ut(new Uint32Array([this.buffer[2],0])),a=new ut(new Uint32Array([this.buffer[1],0])),u=new ut(new Uint32Array([this.buffer[0],0])),d=new ut(new Uint32Array([e.buffer[3],0])),h=new ut(new Uint32Array([e.buffer[2],0])),p=new ut(new Uint32Array([e.buffer[1],0])),y=new ut(new Uint32Array([e.buffer[0],0]));let g=ut.multiply(u,y);this.buffer[0]=g.low();const v=new ut(new Uint32Array([g.high(),0]));return g=ut.multiply(a,y),v.plus(g),g=ut.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 ut(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset+8,2)).plus(ut.multiply(s,y)).plus(ut.multiply(a,p)).plus(ut.multiply(u,h)),this.buffer[3]+=ut.multiply(t,y).plus(ut.multiply(s,p)).plus(ut.multiply(a,h)).plus(ut.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`${Yo(this.buffer[3])} ${Yo(this.buffer[2])} ${Yo(this.buffer[1])} ${Yo(this.buffer[0])}`}static multiply(e,t){return new Ur(new Uint32Array(e.buffer)).times(t)}static add(e,t){return new Ur(new Uint32Array(e.buffer)).plus(t)}static from(e,t=new Uint32Array(4)){return Ur.fromString(typeof e=="string"?e:e.toString(),t)}static fromNumber(e,t=new Uint32Array(4)){return Ur.fromString(e.toString(),t)}static fromString(e,t=new Uint32Array(4)){const s=e.startsWith("-"),a=e.length,u=new Ur(t);for(let d=s?1:0;d<a;){const h=ba<a-d?ba:a-d,p=new Ur(new Uint32Array([Number.parseInt(e.slice(d,d+h),10),0,0,0])),y=new Ur(new Uint32Array([_p[h],0,0,0]));u.times(y),u.plus(p),d+=h}return s?u.negate():u}static convertArray(e){const t=new Uint32Array(e.length*4);for(let s=-1,a=e.length;++s<a;)Ur.from(e[s],new Uint32Array(t.buffer,t.byteOffset+4*4*s,4));return t}}class dS extends $e{constructor(e,t,s,a,u=zt.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 ze({type:e,length:t})}visitBool(e,{length:t,nullCount:s}=this.nextFieldNode()){return ze({type:e,length:t,nullCount:s,nullBitmap:this.readNullBitmap(e,s),data:this.readData(e)})}visitInt(e,{length:t,nullCount:s}=this.nextFieldNode()){return ze({type:e,length:t,nullCount:s,nullBitmap:this.readNullBitmap(e,s),data:this.readData(e)})}visitFloat(e,{length:t,nullCount:s}=this.nextFieldNode()){return ze({type:e,length:t,nullCount:s,nullBitmap:this.readNullBitmap(e,s),data:this.readData(e)})}visitUtf8(e,{length:t,nullCount:s}=this.nextFieldNode()){return ze({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 ze({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 ze({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 ze({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 ze({type:e,length:t,nullCount:s,nullBitmap:this.readNullBitmap(e,s),data:this.readData(e)})}visitDate(e,{length:t,nullCount:s}=this.nextFieldNode()){return ze({type:e,length:t,nullCount:s,nullBitmap:this.readNullBitmap(e,s),data:this.readData(e)})}visitTimestamp(e,{length:t,nullCount:s}=this.nextFieldNode()){return ze({type:e,length:t,nullCount:s,nullBitmap:this.readNullBitmap(e,s),data:this.readData(e)})}visitTime(e,{length:t,nullCount:s}=this.nextFieldNode()){return ze({type:e,length:t,nullCount:s,nullBitmap:this.readNullBitmap(e,s),data:this.readData(e)})}visitDecimal(e,{length:t,nullCount:s}=this.nextFieldNode()){return ze({type:e,length:t,nullCount:s,nullBitmap:this.readNullBitmap(e,s),data:this.readData(e)})}visitList(e,{length:t,nullCount:s}=this.nextFieldNode()){return ze({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 ze({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<zt.V5&&this.readNullBitmap(e,s),e.mode===Bn.Sparse?this.visitSparseUnion(e,{length:t,nullCount:s}):this.visitDenseUnion(e,{length:t,nullCount:s})}visitDenseUnion(e,{length:t,nullCount:s}=this.nextFieldNode()){return ze({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 ze({type:e,length:t,nullCount:s,typeIds:this.readTypeIds(e),children:this.visitMany(e.children)})}visitDictionary(e,{length:t,nullCount:s}=this.nextFieldNode()){return ze({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 ze({type:e,length:t,nullCount:s,nullBitmap:this.readNullBitmap(e,s),data:this.readData(e)})}visitDuration(e,{length:t,nullCount:s}=this.nextFieldNode()){return ze({type:e,length:t,nullCount:s,nullBitmap:this.readNullBitmap(e,s),data:this.readData(e)})}visitFixedSizeList(e,{length:t,nullCount:s}=this.nextFieldNode()){return ze({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 ze({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 jx extends dS{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):jh(this.sources[s])}readOffsets(e,{offset:t}=this.nextBufferRange()){return ct(Uint8Array,ct(e.OffsetArrayType,this.sources[t]))}readTypeIds(e,{offset:t}=this.nextBufferRange()){return ct(Uint8Array,ct(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===rr.MILLISECOND?ct(Uint8Array,Tn.convertArray(s[t])):fe.isDecimal(e)?ct(Uint8Array,Ur.convertArray(s[t])):fe.isBinary(e)||fe.isLargeBinary(e)||fe.isFixedSizeBinary(e)?zx(s[t]):fe.isBool(e)?jh(s[t]):fe.isUtf8(e)||fe.isLargeUtf8(e)?ap(s[t].join("")):ct(Uint8Array,ct(e.ArrayType,s[t].map(a=>+a)))}}function zx(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 _e extends $e{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 bn(n,e){return e instanceof n.constructor}function io(n,e){return n===e||bn(n,e)}function Di(n,e){return n===e||bn(n,e)&&n.bitWidth===e.bitWidth&&n.isSigned===e.isSigned}function hd(n,e){return n===e||bn(n,e)&&n.precision===e.precision}function Vx(n,e){return n===e||bn(n,e)&&n.byteWidth===e.byteWidth}function bp(n,e){return n===e||bn(n,e)&&n.unit===e.unit}function Ql(n,e){return n===e||bn(n,e)&&n.unit===e.unit&&n.timezone===e.timezone}function Kl(n,e){return n===e||bn(n,e)&&n.unit===e.unit&&n.bitWidth===e.bitWidth}function $x(n,e){return n===e||bn(n,e)&&n.children.length===e.children.length&&gs.compareManyFields(n.children,e.children)}function Wx(n,e){return n===e||bn(n,e)&&n.children.length===e.children.length&&gs.compareManyFields(n.children,e.children)}function Ip(n,e){return n===e||bn(n,e)&&n.mode===e.mode&&n.typeIds.every((t,s)=>t===e.typeIds[s])&&gs.compareManyFields(n.children,e.children)}function Hx(n,e){return n===e||bn(n,e)&&n.id===e.id&&n.isOrdered===e.isOrdered&&gs.visit(n.indices,e.indices)&&gs.visit(n.dictionary,e.dictionary)}function Ep(n,e){return n===e||bn(n,e)&&n.unit===e.unit}function ql(n,e){return n===e||bn(n,e)&&n.unit===e.unit}function Qx(n,e){return n===e||bn(n,e)&&n.listSize===e.listSize&&n.children.length===e.children.length&&gs.compareManyFields(n.children,e.children)}function Kx(n,e){return n===e||bn(n,e)&&n.keysSorted===e.keysSorted&&n.children.length===e.children.length&&gs.compareManyFields(n.children,e.children)}_e.prototype.visitNull=io;_e.prototype.visitBool=io;_e.prototype.visitInt=Di;_e.prototype.visitInt8=Di;_e.prototype.visitInt16=Di;_e.prototype.visitInt32=Di;_e.prototype.visitInt64=Di;_e.prototype.visitUint8=Di;_e.prototype.visitUint16=Di;_e.prototype.visitUint32=Di;_e.prototype.visitUint64=Di;_e.prototype.visitFloat=hd;_e.prototype.visitFloat16=hd;_e.prototype.visitFloat32=hd;_e.prototype.visitFloat64=hd;_e.prototype.visitUtf8=io;_e.prototype.visitLargeUtf8=io;_e.prototype.visitBinary=io;_e.prototype.visitLargeBinary=io;_e.prototype.visitFixedSizeBinary=Vx;_e.prototype.visitDate=bp;_e.prototype.visitDateDay=bp;_e.prototype.visitDateMillisecond=bp;_e.prototype.visitTimestamp=Ql;_e.prototype.visitTimestampSecond=Ql;_e.prototype.visitTimestampMillisecond=Ql;_e.prototype.visitTimestampMicrosecond=Ql;_e.prototype.visitTimestampNanosecond=Ql;_e.prototype.visitTime=Kl;_e.prototype.visitTimeSecond=Kl;_e.prototype.visitTimeMillisecond=Kl;_e.prototype.visitTimeMicrosecond=Kl;_e.prototype.visitTimeNanosecond=Kl;_e.prototype.visitDecimal=io;_e.prototype.visitList=$x;_e.prototype.visitStruct=Wx;_e.prototype.visitUnion=Ip;_e.prototype.visitDenseUnion=Ip;_e.prototype.visitSparseUnion=Ip;_e.prototype.visitDictionary=Hx;_e.prototype.visitInterval=Ep;_e.prototype.visitIntervalDayTime=Ep;_e.prototype.visitIntervalYearMonth=Ep;_e.prototype.visitDuration=ql;_e.prototype.visitDurationSecond=ql;_e.prototype.visitDurationMillisecond=ql;_e.prototype.visitDurationMicrosecond=ql;_e.prototype.visitDurationNanosecond=ql;_e.prototype.visitFixedSizeList=Qx;_e.prototype.visitMap=Kx;const gs=new _e;function qx(n,e){return gs.compareSchemas(n,e)}function fh(n,e){return Yx(n,e.map(t=>t.data.concat()))}function Yx(n,e){const t=[...n.fields],s=[],a={numBatches:e.reduce((v,x)=>Math.max(v,x.length),0)};let u=0,d=0,h=-1;const p=e.length;let y,g=[];for(;a.numBatches-- >0;){for(d=Number.POSITIVE_INFINITY,h=-1;++h<p;)g[h]=y=e[h].shift(),d=Math.min(d,y?y.length:d);Number.isFinite(d)&&(g=Gx(t,d,g,e,a),d>0&&(s[u++]=ze({type:new Sn(t),length:d,nullCount:0,children:g.slice()})))}return[n=n.assign(t),s.map(v=>new Sr(n,v))]}function Gx(n,e,t,s,a){var u;const d=(e+63&-64)>>3;for(let h=-1,p=s.length;++h<p;){const y=t[h],g=y==null?void 0:y.length;if(g>=e)g===e?t[h]=y:(t[h]=y.slice(0,e),a.numBatches=Math.max(a.numBatches,s[h].unshift(y.slice(e,g-e))));else{const v=n[h];n[h]=v.clone({nullable:!0}),t[h]=(u=y==null?void 0:y._changeLengthAndBackfillNullBitmap(e))!==null&&u!==void 0?u:ze({type:v.type,length:e,nullCount:e,nullBitmap:new Uint8Array(d)})}}return t}var fS;class nr{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 Sr)return[p];if(p instanceof nr)return p.batches;if(p instanceof _t){if(p.type instanceof Sn)return[new Sr(new it(p.type.children),p)]}else{if(Array.isArray(p))return p.flatMap(y=>d(y));if(typeof p[Symbol.iterator]=="function")return[...p].flatMap(y=>d(y));if(typeof p=="object"){const y=Object.keys(p),g=y.map(D=>new pt([p[D]])),v=a??new it(y.map((D,P)=>new Dt(String(D),g[P].type,g[P].nullable))),[,x]=fh(v,g);return x.length===0?[new Sr(p)]:x}}}return[]},h=e.flatMap(p=>d(p));if(a=(s=a??((t=h[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 h){if(!(p instanceof Sr))throw new TypeError("Table constructor expects a [Schema, RecordBatch[]] pair.");if(!qx(a,p.schema))throw new TypeError("Table and inner RecordBatch schemas must be equivalent.")}this.schema=a,this.batches=h,this._offsets=u??tS(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=eS(this.data)),this._nullCount}isValid(e){return!1}get(e){return null}at(e){return this.get(mp(e,this.numRows))}set(e,t){}indexOf(e,t){return-1}[Symbol.iterator](){return this.batches.length>0?wp.visit(new pt(this.data)):new Array(0)[Symbol.iterator]()}toArray(){return[...this]}toString(){return`[
72
+ ${this.toArray().join(`,
73
+ `)}
74
+ ]`}concat(...e){const t=this.schema,s=this.data.concat(e.flatMap(({data:a})=>a));return new nr(t,s.map(a=>new Sr(t,a)))}slice(e,t){const s=this.schema;[e,t]=Xw({length:this.numRows},e,t);const a=nS(this.data,this._offsets,e,t);return new nr(s,a.map(u=>new Sr(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=ze({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([ze({type:new ys,length:this.numRows})]));const u=s.fields.slice(),d=u[e].clone({type:t.type}),h=this.schema.fields.map((p,y)=>this.getChildAt(y));[u[e],h[e]]=[d,t],[s,a]=fh(s,h)}return new nr(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 nr(t,s)}assign(e){const t=this.schema.fields,[s,a]=e.schema.fields.reduce((h,p,y)=>{const[g,v]=h,x=t.findIndex(D=>D.name===p.name);return~x?v[x]=y:g.push(y),h},[[],[]]),u=this.schema.assign(e.schema),d=[...t.map((h,p)=>[p,a[p]]).map(([h,p])=>p===void 0?this.getChildAt(h):e.getChildAt(p)),...s.map(h=>e.getChildAt(h))].filter(Boolean);return new nr(...fh(u,d))}}fS=Symbol.toStringTag;nr[fS]=(n=>(n.schema=null,n.batches=[],n._offsets=new Uint32Array([0]),n._nullCount=-1,n[Symbol.isConcatSpreadable]=!0,n.isValid=Zc(vp),n.get=Zc(Nn.getVisitFn(E.Struct)),n.set=rS(ir.getVisitFn(E.Struct)),n.indexOf=iS(ed.getVisitFn(E.Struct)),"Table"))(nr.prototype);var hS;let Sr=class Cl{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=ze({nullCount:0,type:new Sn(this.schema.fields),children:this.schema.fields.map(t=>ze({type:t.type,nullCount:0}))})]=e,!(this.data instanceof _t))throw new TypeError("RecordBatch constructor expects a [Schema, Data] pair.");[this.schema,this.data]=av(this.schema,this.data.children);break}case 1:{const[t]=e,{fields:s,children:a,length:u}=Object.keys(t).reduce((p,y,g)=>(p.children[g]=t[y],p.length=Math.max(p.length,t[y].length),p.fields[g]=Dt.new({name:y,type:t[y].type,nullable:!0}),p),{length:0,fields:new Array,children:new Array}),d=new it(s),h=ze({type:new Sn(s),length:u,children:a,nullCount:0});[this.schema,this.data]=av(d,h.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=pS(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 Nn.visit(this.data,e)}at(e){return this.get(mp(e,this.numRows))}set(e,t){return ir.visit(this.data,e,t)}indexOf(e,t){return ed.visit(this.data,e,t)}[Symbol.iterator](){return wp.visit(new pt([this.data]))}toArray(){return[...this]}concat(...e){return new nr(this.schema,[this,...e])}slice(e,t){const[s]=new pt([this.data]).slice(e,t).data;return new Cl(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([ze({type:new ys,length:this.numRows})]));const u=s.fields.slice(),d=a.children.slice(),h=u[e].clone({type:t.type});[u[e],d[e]]=[h,t.data[0]],s=new it(u,new Map(this.schema.metadata)),a=ze({type:new Sn(u),children:d})}return new Cl(s,a)}select(e){const t=this.schema.select(e),s=new Sn(t.fields),a=[];for(const u of e){const d=this.schema.fields.findIndex(h=>h.name===u);~d&&(a[d]=this.data.children[d])}return new Cl(t,ze({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=ze({type:new Sn(t.fields),length:this.numRows,children:s});return new Cl(t,a)}};hS=Symbol.toStringTag;Sr[hS]=(n=>(n._nullCount=-1,n[Symbol.isConcatSpreadable]=!0,"RecordBatch"))(Sr.prototype);function av(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[h,p]of n.fields.entries()){const y=e[h];(!y||y.length!==t)&&(a[h]=p.clone({nullable:!0}),u[h]=(s=y==null?void 0:y._changeLengthAndBackfillNullBitmap(t))!==null&&s!==void 0?s:ze({type:p.type,length:t,nullCount:t,nullBitmap:new Uint8Array(d)}))}return[n.assign(a),ze({type:new Sn(a),length:t,children:u})]}function pS(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:h}=n[u],p=e[u];for(const y of[p,...((a=p==null?void 0:p.dictionary)===null||a===void 0?void 0:a.data)||[]])pS(h.children,y==null?void 0:y.children,t);if(fe.isDictionary(h)){const{id:y}=h;if(!t.has(y))p!=null&&p.dictionary&&t.set(y,p.dictionary);else if(t.get(y)!==p.dictionary)throw new Error("Cannot create Schema containing two different dictionaries with the same Id")}}return t}class mS extends Sr{constructor(e){const t=e.fields.map(a=>ze({type:a.type})),s=ze({type:new Sn(e.fields),nullCount:0,children:t});super(e,s)}}let Xi=class Nr{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 Nr).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsMessage(e,t){return e.setPosition(e.position()+ot),(t||new Nr).__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):zt.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 Kt).__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,zt.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 Nr.startMessage(e),Nr.addVersion(e,t),Nr.addHeaderType(e,s),Nr.addHeader(e,a),Nr.addBodyLength(e,u),Nr.addCustomMetadata(e,d),Nr.endMessage(e)}};class Jx extends $e{visit(e,t){return e==null||t==null?void 0:super.visit(e,t)}visitNull(e,t){return Jg.startNull(t),Jg.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 Wr.startFloatingPoint(t),Wr.addPrecision(t,e.precision),Wr.endFloatingPoint(t)}visitBinary(e,t){return Qg.startBinary(t),Qg.endBinary(t)}visitLargeBinary(e,t){return qg.startLargeBinary(t),qg.endLargeBinary(t)}visitBool(e,t){return Kg.startBool(t),Kg.endBool(t)}visitUtf8(e,t){return Xg.startUtf8(t),Xg.endUtf8(t)}visitLargeUtf8(e,t){return Yg.startLargeUtf8(t),Yg.endLargeUtf8(t)}visitDecimal(e,t){return zo.startDecimal(t),zo.addScale(t,e.scale),zo.addPrecision(t,e.precision),zo.addBitWidth(t,e.bitWidth),zo.endDecimal(t)}visitDate(e,t){return wc.startDate(t),wc.addUnit(t,e.unit),wc.endDate(t)}visitTime(e,t){return er.startTime(t),er.addUnit(t,e.unit),er.addBitWidth(t,e.bitWidth),er.endTime(t)}visitTimestamp(e,t){const s=e.timezone&&t.createString(e.timezone)||void 0;return tr.startTimestamp(t),tr.addUnit(t,e.unit),s!==void 0&&tr.addTimezone(t,s),tr.endTimestamp(t)}visitInterval(e,t){return Hr.startInterval(t),Hr.addUnit(t,e.unit),Hr.endInterval(t)}visitDuration(e,t){return Sc.startDuration(t),Sc.addUnit(t,e.unit),Sc.endDuration(t)}visitList(e,t){return Gg.startList(t),Gg.endList(t)}visitStruct(e,t){return Ws.startStruct_(t),Ws.endStruct_(t)}visitUnion(e,t){Ln.startTypeIdsVector(t,e.typeIds.length);const s=Ln.createTypeIdsVector(t,e.typeIds);return Ln.startUnion(t),Ln.addMode(t,e.mode),Ln.addTypeIds(t,s),Ln.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 _c.startFixedSizeBinary(t),_c.addByteWidth(t,e.byteWidth),_c.endFixedSizeBinary(t)}visitFixedSizeList(e,t){return bc.startFixedSizeList(t),bc.addListSize(t,e.listSize),bc.endFixedSizeList(t)}visitMap(e,t){return Ic.startMap(t),Ic.addKeysSorted(t,e.keysSorted),Ic.endMap(t)}}const hh=new Jx;function Xx(n,e=new Map){return new it(eD(n,e),xc(n.metadata),e)}function yS(n){return new Ir(n.count,gS(n.columns),vS(n.columns))}function Zx(n){return new Ii(yS(n.data),n.id,n.isDelta)}function eD(n,e){return(n.fields||[]).filter(Boolean).map(t=>Dt.fromJSON(t,e))}function lv(n,e){return(n.children||[]).filter(Boolean).map(t=>Dt.fromJSON(t,e))}function gS(n){return(n||[]).reduce((e,t)=>[...e,new xa(t.count,tD(t.VALIDITY)),...gS(t.children)],[])}function vS(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=vS(a.children,e)}return e}function tD(n){return(n||[]).reduce((e,t)=>e+ +(t===0),0)}function nD(n,e){let t,s,a,u,d,h;return!e||!(u=n.dictionary)?(d=cv(n,lv(n,e)),a=new Dt(n.name,d,n.nullable,xc(n.metadata))):e.has(t=u.id)?(s=(s=u.indexType)?uv(s):new kl,h=new wa(e.get(t),s,t,u.isOrdered),a=new Dt(n.name,h,n.nullable,xc(n.metadata))):(s=(s=u.indexType)?uv(s):new kl,e.set(t,d=cv(n,lv(n,e))),h=new wa(d,s,t,u.isOrdered),a=new Dt(n.name,h,n.nullable,xc(n.metadata))),a||null}function xc(n=[]){return new Map(n.map(({key:e,value:t})=>[e,t]))}function uv(n){return new ro(n.isSigned,n.bitWidth)}function cv(n,e){const t=n.type.name;switch(t){case"NONE":return new ys;case"null":return new ys;case"binary":return new Pc;case"largebinary":return new kc;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 Sn(e||[]);case"struct_":return new Sn(e||[])}switch(t){case"int":{const s=n.type;return new ro(s.isSigned,s.bitWidth)}case"floatingpoint":{const s=n.type;return new Nc(cn[s.precision])}case"decimal":{const s=n.type;return new Vc(s.scale,s.precision,s.bitWidth)}case"date":{const s=n.type;return new $c(rr[s.unit])}case"time":{const s=n.type;return new Wc(Ie[s.unit],s.bitWidth)}case"timestamp":{const s=n.type;return new Hc(Ie[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(Ie[s.unit])}case"union":{const s=n.type,[a,...u]=(s.mode+"").toLowerCase(),d=a.toUpperCase()+u.join("");return new Yc(Bn[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 rD=A0,iD=ga;class _r{static fromJSON(e,t){const s=new _r(0,zt.V5,t);return s._createHeader=sD(e,t),s}static decode(e){e=new iD(Ge(e));const t=Xi.getRootAsMessage(e),s=t.bodyLength(),a=t.version(),u=t.headerType(),d=new _r(s,a,u);return d._createHeader=oD(t,u),d}static encode(e){const t=new rD;let s=-1;return e.isSchema()?s=it.encode(t,e.header()):e.isRecordBatch()?s=Ir.encode(t,e.header()):e.isDictionaryBatch()&&(s=Ii.encode(t,e.header())),Xi.startMessage(t),Xi.addVersion(t,zt.V5),Xi.addHeader(t,s),Xi.addHeaderType(t,e.headerType),Xi.addBodyLength(t,BigInt(e.bodyLength)),Xi.finishMessageBuffer(t,Xi.endMessage(t)),t.asUint8Array()}static from(e,t=0){if(e instanceof it)return new _r(0,zt.V5,rt.Schema,e);if(e instanceof Ir)return new _r(t,zt.V5,rt.RecordBatch,e);if(e instanceof Ii)return new _r(t,zt.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 Ir{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 Ii{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 xa{constructor(e,t){this.length=xt(e),this.nullCount=xt(t)}}function sD(n,e){return()=>{switch(e){case rt.Schema:return it.fromJSON(n);case rt.RecordBatch:return Ir.fromJSON(n);case rt.DictionaryBatch:return Ii.fromJSON(n)}throw new Error(`Unrecognized Message type: { name: ${rt[e]}, type: ${e} }`)}}function oD(n,e){return()=>{switch(e){case rt.Schema:return it.decode(n.header(new kr),new Map,n.version());case rt.RecordBatch:return Ir.decode(n.header(new ci),n.version());case rt.DictionaryBatch:return Ii.decode(n.header(new Uo),n.version())}throw new Error(`Unrecognized Message type: { name: ${rt[e]}, type: ${e} }`)}}Dt.encode=gD;Dt.decode=mD;Dt.fromJSON=nD;it.encode=yD;it.decode=aD;it.fromJSON=Xx;Ir.encode=vD;Ir.decode=lD;Ir.fromJSON=yS;Ii.encode=wD;Ii.decode=uD;Ii.fromJSON=Zx;xa.encode=SD;xa.decode=dD;vi.encode=_D;vi.decode=cD;function aD(n,e=new Map,t=zt.V5){const s=pD(n,e);return new it(s,Dc(n),e,t)}function lD(n,e=zt.V5){if(n.compression()!==null)throw new Error("Record batch compression not implemented");return new Ir(n.length(),fD(n),hD(n,e))}function uD(n,e=zt.V5){return new Ii(Ir.decode(n.data(),e),n.id(),n.isDelta())}function cD(n){return new vi(n.offset(),n.length())}function dD(n){return new xa(n.length(),n.nullCount())}function fD(n){const e=[];for(let t,s=-1,a=-1,u=n.nodesLength();++s<u;)(t=n.nodes(s))&&(e[++a]=xa.decode(t));return e}function hD(n,e){const t=[];for(let s,a=-1,u=-1,d=n.buffersLength();++a<d;)(s=n.buffers(a))&&(e<zt.V4&&(s.bb_pos+=8*(a+1)),t[++u]=vi.decode(s));return t}function pD(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 dv(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 mD(n,e){let t,s,a,u,d,h;return!e||!(h=n.dictionary())?(a=hv(n,dv(n,e)),s=new Dt(n.name(),a,n.nullable(),Dc(n))):e.has(t=xt(h.id()))?(u=(u=h.indexType())?fv(u):new kl,d=new wa(e.get(t),u,t,h.isOrdered()),s=new Dt(n.name(),d,n.nullable(),Dc(n))):(u=(u=h.indexType())?fv(u):new kl,e.set(t,a=hv(n,dv(n,e))),d=new wa(a,u,t,h.isOrdered()),s=new Dt(n.name(),d,n.nullable(),Dc(n))),s||null}function Dc(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 fv(n){return new ro(n.isSigned(),n.bitWidth())}function hv(n,e){const t=n.typeType();switch(t){case St.NONE:return new ys;case St.Null:return new ys;case St.Binary:return new Pc;case St.LargeBinary:return new kc;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 Sn(e||[])}switch(t){case St.Int:{const s=n.type(new $n);return new ro(s.isSigned(),s.bitWidth())}case St.FloatingPoint:{const s=n.type(new Wr);return new Nc(s.precision())}case St.Decimal:{const s=n.type(new zo);return new Vc(s.scale(),s.precision(),s.bitWidth())}case St.Date:{const s=n.type(new wc);return new $c(s.unit())}case St.Time:{const s=n.type(new er);return new Wc(s.unit(),s.bitWidth())}case St.Timestamp:{const s=n.type(new tr);return new Hc(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 Sc);return new Kc(s.unit())}case St.Union:{const s=n.type(new Ln);return new Yc(s.mode(),s.typeIdsArray()||[],e||[])}case St.FixedSizeBinary:{const s=n.type(new _c);return new Gc(s.byteWidth())}case St.FixedSizeList:{const s=n.type(new bc);return new Jc(s.listSize(),(e||[])[0])}case St.Map:{const s=n.type(new Ic);return new Xc((e||[])[0],s.keysSorted())}}throw new Error(`Unrecognized type: "${St[t]}" (${t})`)}function yD(n,e){const t=e.fields.map(u=>Dt.encode(n,u));kr.startFieldsVector(n,t.length);const s=kr.createFieldsVector(n,t),a=e.metadata&&e.metadata.size>0?kr.createCustomMetadataVector(n,[...e.metadata].map(([u,d])=>{const h=n.createString(`${u}`),p=n.createString(`${d}`);return Kt.startKeyValue(n),Kt.addKey(n,h),Kt.addValue(n,p),Kt.endKeyValue(n)})):-1;return kr.startSchema(n),kr.addFields(n,s),kr.addEndianness(n,bD?va.Little:va.Big),a!==-1&&kr.addCustomMetadata(n,a),kr.endSchema(n)}function gD(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=hh.visit(u,n),s=hh.visit(u.dictionary,n)):s=hh.visit(u,n);const h=(u.children||[]).map(g=>Dt.encode(n,g)),p=Jn.createChildrenVector(n,h),y=e.metadata&&e.metadata.size>0?Jn.createCustomMetadataVector(n,[...e.metadata].map(([g,v])=>{const x=n.createString(`${g}`),D=n.createString(`${v}`);return Kt.startKeyValue(n),Kt.addKey(n,x),Kt.addValue(n,D),Kt.endKeyValue(n)})):-1;return e.name&&(t=n.createString(e.name)),Jn.startField(n),Jn.addType(n,s),Jn.addTypeType(n,d),Jn.addChildren(n,p),Jn.addNullable(n,!!e.nullable),t!==-1&&Jn.addName(n,t),a!==-1&&Jn.addDictionary(n,a),y!==-1&&Jn.addCustomMetadata(n,y),Jn.endField(n)}function vD(n,e){const t=e.nodes||[],s=e.buffers||[];ci.startNodesVector(n,t.length);for(const d of t.slice().reverse())xa.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 wD(n,e){const t=Ir.encode(n,e.data);return Uo.startDictionaryBatch(n),Uo.addId(n,BigInt(e.id)),Uo.addIsDelta(n,e.isDelta),Uo.addData(n,t),Uo.endDictionaryBatch(n)}function SD(n,e){return B0.createFieldNode(n,BigInt(e.length),BigInt(e.nullCount))}function _D(n,e){return L0.createBuffer(n,BigInt(e.offset),BigInt(e.length))}const bD=(()=>{const n=new ArrayBuffer(2);return new DataView(n).setInt16(0,256,!0),new Int16Array(n)[0]===256})(),xp=n=>`Expected ${rt[n]} Message in stream, but was null or length 0.`,Dp=n=>`Header pointer of flatbuffer-encoded ${rt[n]} Message is null or length 0.`,wS=(n,e)=>`Expected to read ${n} metadata bytes, but only read ${e}.`,SS=(n,e)=>`Expected to read ${n} bytes for message body, but only read ${e}.`;class _S{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?At: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(xp(e));return t.value}readMessageBody(e){if(e<=0)return new Uint8Array(0);const t=Ge(this.source.read(e));if(t.byteLength<e)throw new Error(SS(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(Dp(t));return a}readMetadataLength(){const e=this.source.read(pd),t=e&&new ga(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 At;if(t.byteLength<e)throw new Error(wS(e,t.byteLength));return{done:!1,value:_r.decode(t)}}}class ID{constructor(e,t){this.source=e instanceof _a?e:D0(e)?new rd(e,t):new _a(e)}[Symbol.asyncIterator](){return this}next(){return Me(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?At:e})}throw(e){return Me(this,void 0,void 0,function*(){return yield this.source.throw(e)})}return(e){return Me(this,void 0,void 0,function*(){return yield this.source.return(e)})}readMessage(e){return Me(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(xp(e));return t.value})}readMessageBody(e){return Me(this,void 0,void 0,function*(){if(e<=0)return new Uint8Array(0);const t=Ge(yield this.source.read(e));if(t.byteLength<e)throw new Error(SS(e,t.byteLength));return t.byteOffset%8===0&&t.byteOffset+t.byteLength<=t.buffer.byteLength?t:t.slice()})}readSchema(){return Me(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(Dp(t));return a})}readMetadataLength(){return Me(this,void 0,void 0,function*(){const e=yield this.source.read(pd),t=e&&new ga(e),s=(t==null?void 0:t.readInt32(0))||0;return{done:s===0,value:s}})}readMetadata(e){return Me(this,void 0,void 0,function*(){const t=yield this.source.read(e);if(!t)return At;if(t.byteLength<e)throw new Error(wS(e,t.byteLength));return{done:!1,value:_r.decode(t)}})}}class ED extends _S{constructor(e){super(new Uint8Array(0)),this._schema=!1,this._body=[],this._batchIndex=0,this._dictionaryIndex=0,this._json=e instanceof sv?e:new sv(e)}next(){const{_json:e}=this;if(!this._schema)return this._schema=!0,{done:!1,value:_r.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:_r.fromJSON(t,rt.DictionaryBatch)}}if(this._batchIndex<e.batches.length){const t=e.batches[this._batchIndex++];return this._body=t.columns,{done:!1,value:_r.fromJSON(t,rt.RecordBatch)}}return this._body=[],At}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(xp(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(Dp(e));return s}}const pd=4,Qh="ARROW1",id=new Uint8Array(Qh.length);for(let n=0;n<Qh.length;n+=1)id[n]=Qh.codePointAt(n);function Op(n,e=0){for(let t=-1,s=id.length;++t<s;)if(id[t]!==n[e+t])return!1;return!0}const Yl=id.length,bS=Yl+pd,xD=Yl*2+pd;class Si extends uS{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 Ll(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 Zn.toDOMStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this})}toNodeStream(){return Zn.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 Si?e:Lh(e)?FD(e):D0(e)?AD(e):Ll(e)?Me(this,void 0,void 0,function*(){return yield Si.from(yield e)}):O0(e)||up(e)||F0(e)||lp(e)?MD(new _a(e)):RD(new nd(e))}static readAll(e){return e instanceof Si?e.isSync()?pv(e):mv(e):Lh(e)||ArrayBuffer.isView(e)||dd(e)||x0(e)?pv(e):mv(e)}}class sd extends Si{constructor(e){super(e),this._impl=e}readAll(){return[...this]}[Symbol.iterator](){return this._impl[Symbol.iterator]()}[Symbol.asyncIterator](){return Qr(this,arguments,function*(){yield Ne(yield*vc(Jo(this[Symbol.iterator]())))})}}class od extends Si{constructor(e){super(e),this._impl=e}readAll(){return Me(this,void 0,void 0,function*(){var e,t,s,a;const u=new Array;try{for(var d=!0,h=Jo(this),p;p=yield h.next(),e=p.done,!e;d=!0){a=p.value,d=!1;const y=a;u.push(y)}}catch(y){t={error:y}}finally{try{!d&&!e&&(s=h.return)&&(yield s.call(h))}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 IS extends sd{constructor(e){super(e),this._impl=e}}class DD extends od{constructor(e){super(e),this._impl=e}}class ES{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=ze({type:new Sn(this.schema.fields),length:e.length,children:s});return new Sr(this.schema,a)}_loadDictionaryBatch(e,t){const{id:s,isDelta:a}=e,{dictionaries:u,schema:d}=this,h=u.get(s),p=d.dictionaries.get(s),y=this._loadVectors(e.data,t,[p]);return(h&&a?h.concat(new pt(y)):new pt(y)).memoize()}_loadVectors(e,t,s){return new dS(t,e.nodes,e.buffers,this.dictionaries,this.schema.metadataVersion).visitMany(s)}}class ad extends ES{constructor(e,t){super(t),this._reader=Lh(e)?new ED(this._handle=e):new _S(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=DS(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):At}return(e){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.return(e):At}next(){if(this.closed)return At;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 mS(this.schema)}):this.return()}_readNextMessageAndValidate(e){return this._reader.readMessage(e)}}class ld extends ES{constructor(e,t){super(t),this._reader=new ID(this._handle=e)}isAsync(){return!0}isStream(){return!0}[Symbol.asyncIterator](){return this}cancel(){return Me(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 Me(this,void 0,void 0,function*(){return this.closed||(this.autoDestroy=DS(this,e),this.schema||(this.schema=yield this._reader.readSchema())||(yield this.cancel())),this})}throw(e){return Me(this,void 0,void 0,function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.throw(e):At})}return(e){return Me(this,void 0,void 0,function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.return(e):At})}next(){return Me(this,void 0,void 0,function*(){if(this.closed)return At;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 mS(this.schema)}):yield this.return()})}_readNextMessageAndValidate(e){return Me(this,void 0,void 0,function*(){return yield this._reader.readMessage(e)})}}class xS 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 ov?e:new ov(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),h=this._loadDictionaryBatch(u,d);this.dictionaries.set(u.id,h)}}}_readFooter(){const{_handle:e}=this,t=e.size-bS,s=e.readInt32(t),a=e.readAt(t-s,s);return Sp.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 OD 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 Me(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 Me(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 Me(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),h=this._loadDictionaryBatch(u,d);this.dictionaries.set(u.id,h)}}})}_readFooter(){return Me(this,void 0,void 0,function*(){const{_handle:e}=this;e._pending&&(yield e._pending);const t=e.size-bS,s=yield e.readInt32(t),a=yield e.readAt(t-s,s);return Sp.decode(a)})}_readNextMessageAndValidate(e){return Me(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 CD extends ad{constructor(e,t){super(e,t)}_loadVectors(e,t,s){return new jx(t,e.nodes,e.buffers,this.dictionaries,this.schema.metadataVersion).visitMany(s)}}function DS(n,e){return e&&typeof e.autoDestroy=="boolean"?e.autoDestroy:n.autoDestroy}function*pv(n){const e=Si.from(n);try{if(!e.open({autoDestroy:!1}).closed)do yield e;while(!e.reset().open().closed)}finally{e.cancel()}}function mv(n){return Qr(this,arguments,function*(){const t=yield Ne(Si.from(n));try{if(!(yield Ne(t.open({autoDestroy:!1}))).closed)do yield yield Ne(t);while(!(yield Ne(t.reset().open())).closed)}finally{yield Ne(t.cancel())}})}function FD(n){return new sd(new CD(n))}function RD(n){const e=n.peek(Yl+7&-8);return e&&e.byteLength>=4?Op(e)?new IS(new xS(n.read())):new sd(new ad(n)):new sd(new ad(function*(){}()))}function MD(n){return Me(this,void 0,void 0,function*(){const e=yield n.peek(Yl+7&-8);return e&&e.byteLength>=4?Op(e)?new IS(new xS(yield n.read())):new od(new ld(n)):new od(new ld(function(){return Qr(this,arguments,function*(){})}()))})}function AD(n){return Me(this,void 0,void 0,function*(){const{size:e}=yield n.stat(),t=new rd(n,e);return e>=xD&&Op(yield t.readAt(0,Yl+7&-8))?new DD(new OD(t)):new od(new ld(t))})}function OS(n){const e=Si.from(n);return Ll(e)?e.then(t=>OS(t)):e.isAsync()?e.readAll().then(t=>new nr(t)):new nr(e.readAll())}async function Pt(n,e){const{url:t,method:s,params:a,data:u,headers:d,credentials:h,mode:p,cache:y}=n,g=Object.keys({...a}).length>0,v=t.replace(/([^:]\/)\/+/g,"$1"),x=new URL(CS(v),window.location.origin);if(g){const D=Object.entries({...a}).reduce((P,[M,N])=>(N!=null&&(P[M]=String(N)),P),{});x.search=new URLSearchParams(D).toString()}return await new Promise((D,P)=>{fetch(x,{method:s,credentials:h,mode:p,cache:y,headers:TD(d),body:LD(u),signal:e==null?void 0:e.signal}).then(async M=>{if(M.status===204)return{ok:!0};const N=M.headers.get("Content-Type");if(nn(N))return{ok:!1,message:"Empty response"};if(M.status>=400)try{const Y=await M.json();throw Y.status=Y.status??M.status,Y}catch(Y){throw{message:M.statusText,...Y}}const G=N.includes("text/event-stream"),W=N.includes("application/json"),K=N.includes("application/vnd.apache.arrow.stream");if(W)return await M.json();if(K)return await OS(M);if(G){const pe=(await M.text()).trim().replace("data: ","").trim();return JSON.parse(pe)}}).then(D).catch(P)})}function TD(n){return{"Content-Type":"application/json",...n??{}}}function LD(n){try{return JSON.stringify(n)}catch{return""}}function CS(n="/"){let e=`${Fl(window.__BASE_URL__)?"/":window.__BASE_URL__}/${n}`;for(;e.includes("//");)e=e.replaceAll("//","/");return e}const pc={python:"python",sql:"sql",seed:"seed",external:"external",source:"source"},Pr={editor:"editor",files:"files","data-catalog":"data-catalog",plans:"plans",tests:"tests",audits:"audits",errors:"errors",data:"data",lineage:"lineage"},KO={NUMBER_1:1,NUMBER_2:2,NUMBER_3:3},qO={init:"init",success:"success",fail:"fail"},BD=(n,e)=>Pt({url:"/api/commands/apply",method:"POST",headers:{"Content-Type":"application/json"},data:n},e),ND=(n,e)=>Pt({url:"/api/commands/evaluate",method:"POST",headers:{"Content-Type":"application/json"},data:n},e),PD=(n,e)=>Pt({url:"/api/commands/fetchdf",method:"POST",headers:{"Content-Type":"application/json"},data:n},e),kD=(n,e)=>Pt({url:"/api/commands/render",method:"POST",headers:{"Content-Type":"application/json"},data:n},e),UD=n=>Pt({url:"/api/files",method:"GET"},n),jD=(n,e)=>Pt({url:`/api/files/${n}`,method:"GET"},e),zD=(n,e,t)=>Pt({url:`/api/files/${n}`,method:"POST",headers:{"Content-Type":"application/json"},data:e},t),YO=(n,e)=>Pt({url:`/api/files/${n}`,method:"DELETE"},e),GO=(n,e,t)=>Pt({url:`/api/directories/${n}`,method:"POST",headers:{"Content-Type":"application/json"},data:e},t),JO=(n,e)=>Pt({url:`/api/directories/${n}`,method:"DELETE"},e),VD=(n,e)=>Pt({url:"/api/plan",method:"POST",headers:{"Content-Type":"application/json"},data:n},e),$D=n=>Pt({url:"/api/plan/cancel",method:"POST"},n),WD=n=>Pt({url:"/api/environments",method:"GET"},n),XO=(n,e)=>Pt({url:`/api/environments/${n}`,method:"DELETE"},e),HD=(n,e,t,s)=>Pt({url:`/api/lineage/${n}/${e}`,method:"GET",params:t},s),QD=(n,e)=>Pt({url:`/api/lineage/${n}`,method:"GET"},e),KD=n=>Pt({url:"/api/models",method:"GET"},n),qD=(n,e)=>Pt({url:`/api/models/${n}`,method:"GET"},e),YD=n=>Pt({url:"/api/meta",method:"GET"},n),GD=n=>Pt({url:"/api/modules",method:"GET"},n),JD=(n,e)=>Pt({url:"/api/table_diff",method:"GET",params:n},e),ai=B.lazy(()=>_n(()=>import("./Root-DCNtqbqI.js"),[])),XD=B.lazy(()=>_n(()=>import("./Editor-BLhCfpzx.js"),[])),ZD=B.lazy(()=>_n(()=>import("./Plan-Cj_0vc_H.js"),[])),eO=B.lazy(()=>_n(()=>import("./Content-COW0vEIQ.js"),[])),tO=B.lazy(()=>_n(()=>import("./DataCatalog-iRjvB2C3.js"),[])),nO=B.lazy(()=>_n(()=>import("./Tests-D8lyWcVm.js"),[])),rO=B.lazy(()=>_n(()=>import("./Audits-BZWk3jlL.js"),[])),iO=B.lazy(()=>_n(()=>import("./Data-CQQQmeF1.js"),[])),ph=B.lazy(()=>_n(()=>import("./Models-B1vLawzn.js"),[])),sO=B.lazy(()=>_n(()=>import("./Lineage-CzdZCXc6.js"),[])),oO=B.lazy(()=>_n(()=>import("./Errors-x-oFeSch.js"),[])),aO=B.lazy(()=>_n(()=>import("./Content-CkK8L7V3.js"),[])),pr=B.lazy(()=>_n(()=>import("./Welcome-DbFwSigj.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"},yv={plan:[Pr.plans]};function lO(n){const e=[{path:"*",element:ud(n.list)?k.jsx(Fn,{link:ft.Home,message:"Back To Main"}):k.jsx(Fn,{headline:"Empty"})},{path:ft.Home,element:k.jsx(ai,{})},...[{path:ft.Editor,element:k.jsx(ai,{content:k.jsx(XD,{})})},{path:ft.DataCatalog,element:k.jsx(ai,{content:k.jsx(ph,{route:ft.DataCatalog})}),children:[{index:!0,element:k.jsx(pr,{headline:"Welcome to the Data Catalog",tagline:"Here you can find all the information about the models and their fields."})},{path:"*",element:k.jsx(Fn,{link:ft.DataCatalog,message:"Back To Data Catalog"})},{path:"models",children:[{index:!0,element:k.jsx(pr,{headline:"Welcome to the Data Catalog",tagline:"Here you can find all the information about the models and their fields."})},{path:"*",element:k.jsx(Fn,{link:ft.DataCatalog,message:"Back To Data Catalog"})},{path:":modelName",element:k.jsx(B.Suspense,{fallback:k.jsx("div",{className:"flex justify-center items-center w-full h-full",children:k.jsxs(ko,{className:"inline-block",children:[k.jsx(Vs,{className:"w-3 h-3 border border-neutral-10 mr-4"}),k.jsx("h3",{className:"text-md",children:"Loading Content..."})]})}),children:k.jsx(tO,{})})}]}]},{path:ft.Data,element:k.jsx(ai,{content:k.jsx(ph,{route:ft.Data})}),children:[{index:!0,element:k.jsx(pr,{headline:"Welcome to the Data",tagline:"Here you can find all the information about the models and their fields."})},{path:"*",element:k.jsx(Fn,{link:ft.Data,message:"Back To Data"})},{path:"models",children:[{index:!0,element:k.jsx(pr,{headline:"Welcome to the Data",tagline:"Here you can find all the information about the models and their fields."})},{path:"*",element:k.jsx(Fn,{link:ft.Data,message:"Back To Data"})},{path:":modelName",element:k.jsx(B.Suspense,{fallback:k.jsx("div",{className:"flex justify-center items-center w-full h-full",children:k.jsxs(ko,{className:"inline-block",children:[k.jsx(Vs,{className:"w-3 h-3 border border-neutral-10 mr-4"}),k.jsx("h3",{className:"text-md",children:"Loading Content..."})]})}),children:k.jsx(iO,{})})}]}]},{path:ft.Lineage,element:k.jsx(ai,{content:k.jsx(ph,{route:ft.Lineage})}),children:[{index:!0,element:k.jsx(pr,{headline:"Welcome to the Lineage",tagline:"Here you can find all the information about the models and their fields."})},{path:"*",element:k.jsx(Fn,{link:ft.Lineage,message:"Back To Lineage"})},{path:"models",children:[{index:!0,element:k.jsx(pr,{headline:"Welcome to the Lineage",tagline:"Here you can find all the information about the models and their fields."})},{path:"*",element:k.jsx(Fn,{link:ft.Lineage,message:"Back To Lineage"})},{path:":modelName",element:k.jsx(B.Suspense,{fallback:k.jsx("div",{className:"flex justify-center items-center w-full h-full",children:k.jsxs(ko,{className:"inline-block",children:[k.jsx(Vs,{className:"w-3 h-3 border border-neutral-10 mr-4"}),k.jsx("h3",{className:"text-md",children:"Loading Content..."})]})}),children:k.jsx(sO,{})})}]}]},{path:ft.Errors,element:k.jsx(ai,{content:k.jsx(oO,{})}),children:[{index:!0,element:k.jsx(pr,{headline:"Welcome to errors report",tagline:"Here you can see all the errors that occurred."})},{path:"*",element:k.jsx(Fn,{link:ft.Errors,message:"Back To Errors"})},{path:":id",element:k.jsx(B.Suspense,{fallback:k.jsx("div",{className:"flex justify-center items-center w-full h-full",children:k.jsxs(ko,{className:"inline-block",children:[k.jsx(Vs,{className:"w-3 h-3 border border-neutral-10 mr-4"}),k.jsx("h3",{className:"text-md",children:"Loading Content..."})]})}),children:k.jsx(aO,{})})}]},{path:ft.Plan,element:k.jsx(ai,{content:k.jsx(ZD,{})}),children:[{index:!0,element:k.jsx(pr,{headline:"Welcome to plan",tagline:"Here you can run the plan and apply the changes."})},{path:"*",element:k.jsx(Fn,{link:ft.Plan,message:"Back To Plan"})},{path:"environments",children:[{index:!0,element:k.jsx(pr,{headline:"Welcome to plan",tagline:"Here you can run the plan and apply the changes."})},{path:"*",element:k.jsx(Fn,{link:ft.Plan,message:"Back To Plan"})},{path:":environmentName",element:k.jsx(B.Suspense,{fallback:k.jsx("div",{className:"flex justify-center items-center w-full h-full",children:k.jsxs(ko,{className:"inline-block",children:[k.jsx(Vs,{className:"w-3 h-3 border border-neutral-10 mr-4"}),k.jsx("h3",{className:"text-md",children:"Loading Content..."})]})}),children:k.jsx(eO,{})})}]}]},{path:ft.Tests,element:k.jsx(ai,{content:k.jsx(nO,{})}),children:[{index:!0,element:k.jsx(pr,{headline:"Welcome to tests report",tagline:"Here you can run tests and see the results."})},{path:"*",element:k.jsx(Fn,{link:ft.Tests,message:"Back To Tests"})}]},{path:ft.Audits,element:k.jsx(ai,{content:k.jsx(rO,{})}),children:[{index:!0,element:k.jsx(pr,{headline:"Welcome to audits report",tagline:"Here you can run audits and see the results."})},{path:"*",element:k.jsx(Fn,{link:ft.Audits,message:"Back To Audits"})}]}].filter(t=>{var a;const s=t.path.replace("/","");return nn(yv[s])?n.list.includes(s):(a=yv[s])==null?void 0:a.some(u=>n.list.includes(u))})].filter(Boolean);return NI(e,{basename:CS()})}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"},FS=B.createContext({errors:new Set,addError:()=>({removeError:()=>{},error:{}}),removeError:()=>{},clearErrors:()=>{}});function uO({children:n}){const[e,t]=B.useState(new Set);function s(d,h){const p={id:mh(),key:d,status:h.status,timestamp:h.timestamp??Date.now(),message:h.message,description:h.description,type:h.type,origin:h.origin,trigger:h.trigger,stack:h.stack,traceback:h.traceback};return t(y=>new Set(y.add(p))),{removeError:()=>a(p),error:p}}function a(d){t(h=>(h.forEach(p=>{(p===d||p.key===d)&&h.delete(p)}),new Set(h)))}function u(){t(new Set)}return k.jsx(FS.Provider,{value:{errors:e,addError:s,removeError:a,clearErrors:u},children:n})}function Cp(){return B.useContext(FS)}const RS=60*1e3,cO=5*RS,md=10*RS;function dO(n){return dn({queryKey:["/api/modules"],queryFn:GD,enabled:!0},{...n,errorKey:qt.Modules,trigger:"API -> useApiModules"})}function ZO(n){return dn({queryKey:["/api/meta"],queryFn:YD,enabled:!0},{...n,errorKey:qt.Meta,trigger:"API -> useApiMeta"})}function eC(n){return dn({queryKey:["/api/models"],queryFn:KD},{...n,errorKey:qt.Models,trigger:"API -> useApiModels"})}function tC(n,e){return dn({queryKey:["/api/models",n],queryFn:async({signal:t})=>await qD(n,{signal:t})},{...e,errorKey:qt.Models,trigger:"API -> useApiModel"})}function nC(n){return dn({queryKey:["/api/files"],queryFn:UD},{...n,errorKey:qt.FileExplorer,trigger:"API -> useApiFiles"})}function rC(n,e){return dn({queryKey:["/api/files",n],queryFn:async({signal:t})=>await jD(n,{signal:t})},{...e,errorKey:qt.FileExplorer,trigger:"API -> useApiFileByPath"})}function iC(n,e){return dn({queryKey:["/api/lineage",n],queryFn:async({signal:t})=>await QD(n,{signal:t})},{...e,errorKey:qt.ModelLineage,trigger:"API -> useApiModelLineage"})}function sC(n,e,t,s){return dn({queryKey:["/api/lineage",n,e],queryFn:async({signal:a})=>await HD(n,e,s,{signal:a})},{...t,errorKey:qt.ColumnLineage,trigger:"API -> useApiColumnLineage"})}function oC(n){return dn({queryKey:["/api/environments"],queryFn:WD},{...n,errorKey:qt.Environments,trigger:"API -> useApiEnvironments"})}function aC(n){return dn({queryKey:["/api/commands/apply"],queryFn:$D},{...n,errorKey:qt.CancelPlan,trigger:"API -> useApiCancelPlan"})}function lC(n,e,t){return dn({queryKey:["/api/plan",n],async queryFn({signal:s}){return await VD({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 uC(n,e,t){return dn({queryKey:["/api/commands/apply",n],async queryFn({signal:s}){return await BD({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 cC(n,e){return dn({queryKey:["/api/commands/fetchd"],queryFn:async({signal:t})=>await PD(n,{signal:t})},{...e,errorKey:qt.Fetchdf,trigger:"API -> useApiFetchdf",delay:md})}function dC(n,e){return dn({queryKey:["/api/commands/render"],queryFn:async({signal:t})=>await kD(n,{signal:t})},{...e,errorKey:qt.RenderQuery,trigger:"API -> useApiRender",delay:md})}function fC(n,e){return dn({queryKey:["/api/commands/table_diff"],queryFn:async({signal:t})=>await JD(n,{signal:t})},{...e,errorKey:qt.TableDiff,trigger:"API -> useApiTableDiff",delay:md})}function hC(n,e){return dn({queryKey:["/api/commands/evaluate"],queryFn:async({signal:t})=>await ND(n,{signal:t})},{...e,errorKey:qt.EvaluateModel,trigger:"API -> useApiEvaluate",delay:md})}function pC(n){const{addError:e}=Cp();return cb({mutationFn:async({path:t,body:s})=>await zD(t,s),onError(t){e(qt.SaveFile,t)},async onMutate({path:t}){await n.cancelQueries({queryKey:["/api/files",t]})}})}function dn(n,{delay:e=cO,removeTimeoutErrorAfter:t,errorKey:s=qt.API,trigger:a}){const u=n.queryKey.join(" -> "),d=Zh(),{addError:h}=Cp(),[p,y]=B.useState(!1);let g,v=function(){console.log(`[REQUEST TIMEOUT] ${u} id: ${String(g)} timed out after ${e}ms`);const{removeError:Y}=h(s,{message:"Request timed out",description:`Request ${u} with timeoutId: ${String(g)} timed out after ${e}ms`,timestamp:Date.now(),origin:"useQueryTimeout",trigger:a});y(!0),P(),wn(t)&&setTimeout(()=>Y(),t)};function x(){console.log(`[CLEAR TIMEOUT] ${u} id: ${String(g)} at ${Date.now()}`),clearTimeout(g),g=void 0,v=void 0}function D(){g=setTimeout(()=>{v==null||v()},e),console.log(`[START TIMEOUT] ${u} id: ${String(g)} at ${Date.now()}`)}function P(){x(),d.cancelQueries({queryKey:n.queryKey}),console.log(`[REQUEST CANCELED] ${u} at ${Date.now()}`)}function M(K){x(),mc(K)||K.name==="AbortError"?console.log(`[REQUEST ABORTED] ${u} aborted by React Query at ${Date.now()}`):(console.log(`[REQUEST FAILED] ${u} failed at ${Date.now()}`),h(s,K))}function N(){x(),console.log(`[REQUEST COMPLETED] ${u} completed at ${Date.now()}`)}async function G(...K){return D(),n.queryFn(...K)}const W=ub({gcTime:0,enabled:!1,queryKey:n.queryKey,queryFn:G,meta:{...n.meta,onError:M,onSuccess:N}});return{...W,refetch:async(...K)=>new Promise(Y=>{W.refetch(...K,{throwOnError:!0}).then(Y).catch(pe=>pe)}),cancel:P,isTimeout:p}}class MS{constructor(e){Ct(this,"_initial");Ct(this,"isModel",!0);nn(e)?this._initial=Object.assign({id:mh()}):this._initial=wn(e==null?void 0:e.id)?e:new Proxy(Object.assign(e??{},{id:mh()}),{set(){throw new Error("Cannot change initial file")}})}get initial(){return this._initial}get id(){return this.initial.id}}class gv extends MS{constructor(t=[]){super();Ct(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(Pr.errors)}get hasEditor(){return this.modules.has(Pr.editor)}get hasFiles(){return this.modules.has(Pr.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&&ms(this.hasErrors)}get hasDataCatalog(){return this.modules.has(Pr["data-catalog"])}get hasPlans(){return this.modules.has(Pr.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(Pr.tests)}get hasAudits(){return this.modules.has(Pr.audits)}get hasData(){return this.modules.has(Pr.data)}get hasLineage(){return this.modules.has(Pr.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:ms(this.isEmpty)}get showHistoryNavigation(){return this.hasOnlyProjectEditor||this.hasModuleAndErrors||this.hasOnlyDataCatalog?!1:this.hasProjectEditorAndModule||this.hasDataCatalog?!0:ms(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 fO extends MS{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)??{}});Ct(this,"_details",{});Ct(this,"_detailsIndex","");Ct(this,"name");Ct(this,"fqn");Ct(this,"path");Ct(this,"full_path");Ct(this,"dialect");Ct(this,"type");Ct(this,"columns");Ct(this,"default_catalog");Ct(this,"description");Ct(this,"sql");Ct(this,"definition");Ct(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===pc.python}get isModelSQL(){return this.type===pc.sql}get isModelSeed(){return this.type===pc.seed}get isModelExternal(){return this.type===pc.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 vv=n=>{let e;const t=new Set,s=(y,g)=>{const v=typeof y=="function"?y(e):y;if(!Object.is(v,e)){const x=e;e=g??(typeof v!="object"||v===null)?v:Object.assign({},e,v),t.forEach(D=>D(e,x))}},a=()=>e,h={setState:s,getState:a,getInitialState:()=>p,subscribe:y=>(t.add(y),()=>t.delete(y))},p=e=n(s,a,h);return h},hO=n=>n?vv(n):vv,pO=n=>n;function mO(n,e=pO){const t=Zs.useSyncExternalStore(n.subscribe,()=>e(n.getState()),()=>e(n.getInitialState()));return Zs.useDebugValue(t),t}const wv=n=>{const e=hO(n),t=s=>mO(e,s);return Object.assign(t,e),t},yO=n=>n?wv(n):wv,vl={Empty:"",Prod:"prod"},gi={Local:"local",Remote:"remote"},[Sv,gO]=zv("profile");class un{constructor(e,t,s=vl.Prod,a=!1,u=!1){Ct(this,"_initial");Ct(this,"_type");Ct(this,"_createFrom");Ct(this,"_isPinned",!1);Ct(this,"_isDefault",!1);Ct(this,"isModel",!0);this._initial=e,this._type=t??gi.Local,this._createFrom=this._isDefault?vl.Empty:s,this._isPinned=a,this._isDefault=u}get id(){return this._initial.plan_id??""}get name(){return this._initial.name??vl.Empty}get type(){return this._type}get createFrom(){return this._createFrom}get isProd(){return this.name===vl.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 Fl((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&&ms(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={};wn(e)&&(s.environment={name:e.name,plan_id:e.id,type:e.type,createFrom:e.createFrom,isPinned:e.isPinned,isDefault:e.isDefault}),wn(t)&&(s.environments=un.getOnlyLocal(t).map(a=>({name:a.name,plan_id:a.id,type:a.type,createFrom:a.createFrom,isPinned:a.isPinned,isDefault:a.isDefault}))),gO(s)}static getOnlyLocal(e=[]){return e.filter(t=>ms(Fl(t.name))&&t.isLocal)}static getOnlyRemote(e=[]){return e.filter(t=>ms(Fl(t.name))&&t.isRemote)}static getEnvironment(){const{environment:e}=Sv()??{};if(nn(e))return;const{name:t,plan_id:s,type:a,createFrom:u,isPinned:d,isDefault:h}=e;return new un({name:t,plan_id:s},a,u,d,h)}static getEnvironments(){const e=Sv(),t=new Map;wn(e)&&wn(e.environment)&&t.set(e.environment.name,e.environment),wn(e)&&wn(e.environments)&&e.environments.forEach(a=>t.set(a.name,a));const s=[];return Array.from(t.entries()).forEach(([a,u])=>{s.push(new un({name:a,plan_id:u.plan_id},u.type,u.createFrom,u.isPinned,u.isDefault))}),Uv(s)&&s.push(new un({name:vl.Prod},gi.Local)),s}static sort(e){return e.sort(t=>t.isRemote?-1:1),e}}const _v="prod",AS=new Set(un.getEnvironments()),bv=un.getEnvironment()??AS.values().next().value,Iv=yO((n,e)=>({version:void 0,modules:new gv,splitPaneSizes:[20,80],showConfirmation:!1,confirmations:[],environment:bv,environments:AS,initialStartDate:void 0,initialEndDate:void 0,models:new Map,lastSelectedModel:void 0,setLastSelectedModel(t){n(()=>({lastSelectedModel:t}))},setModules(t){n(()=>({modules:new gv(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 fO(u);let h=s.models.get(d.path)??s.models.get(d.name)??s.models.get(d.fqn);return nn(h)?h=d:h.update(u),a.set(h.name,h),a.set(h.fqn,h),a.set(h.path,h),a},new Map)}))},getNextEnvironment(){return e().environments.values().next().value??bv},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(()=>(un.save({environment:t}),{environment:t}))},addLocalEnvironment(t,s=_v){n(a=>{if(Fl(t))return a;const u=new un({name:t},gi.Local,s);return a.environments.add(u),a.setEnvironment(u),un.save({environments:Array.from(a.environments)}),{environments:new Set(a.environments)}})},removeLocalEnvironment(t){n(s=>(s.environments.delete(t),un.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(D=>{let P=d.find(({name:M})=>D.name===M);nn(P)?(P=new un(D,gi.Remote),d.push(P)):(P.update(D),P.setType(gi.Remote)),u.environment.name===D.name&&u.environment.update(D),P.isInitial&&P.isDefault&&u.setEnvironment(P)}),a.forEach(D=>{const P=d.find(({name:M})=>D===M);nn(P)?d.push(new un({name:D},gi.Local,void 0,!0)):P.isPinned=!0});const h=un.getEnvironment();let p,y,g;d.forEach(D=>{switch(D.name){case _v:p=D;break;case(h==null?void 0:h.name):y=D;break;case s:D.isDefault=!0,g=D}});const v=u.environment??y??g,x=_1(p==null?void 0:p.isInitial)?p:v;return un.save({environments:d,environment:x}),un.sort(d),{environment:x,environments:new Set(d)}})},hasRemoteEnvironments(){const t=e();return Array.from(t.environments).some(({type:s})=>s===gi.Remote)}}));function Ev({children:n,className:e}){return k.jsx("div",{className:Kr("flex justify-center items-center w-full h-full",e),children:k.jsxs(ko,{className:"inline-block",children:[k.jsx(Vs,{className:"w-3 h-3 border border-neutral-10 mr-4"}),k.jsx("h3",{className:"text-md",children:n})]})})}const TS=!!(window.__IS_HEADLESS__??!1),xv=TS?void 0:B.lazy(()=>_n(()=>import("./Header-sstE4Gqk.js"),[])),Dv=TS?void 0:B.lazy(()=>_n(()=>import("./Footer-CfHqR8wm.js"),[]));function vO(){const{addError:n}=Cp(),e=Iv(h=>h.modules),t=Iv(h=>h.setModules),{refetch:s,cancel:a,isFetching:u}=dO();B.useEffect(()=>(s().then(({data:h})=>{e.update(h),t(e)}).catch(h=>n(qt.Modules,h)),()=>{a()}),[]);const d=lO(e);return k.jsxs(k.Fragment,{children:[wn(xv)&&k.jsxs(k.Fragment,{children:[k.jsx(xv,{}),k.jsx(Ug,{})]}),k.jsx("main",{className:"h-full overflow-hidden relative",children:u?k.jsx(Ev,{className:"absolute w-full h-full bg-theme z-10",children:"Building Modules..."}):k.jsx(B.Suspense,{fallback:k.jsx(Ev,{children:"Loading Page..."}),children:ud(e.list)?k.jsx(WI,{router:d}):k.jsx(Fn,{description:"No Modules Found"})})}),wn(Dv)&&k.jsxs(k.Fragment,{children:[k.jsx(Ug,{}),k.jsx(Dv,{})]})]})}const wO=new Q1({queryCache:new Zv({onError(n,e){e.meta.onError(n)},onSuccess(n,e){e.meta.onSuccess()}}),defaultOptions:{queries:{networkMode:"always",refetchOnWindowFocus:!1,retry:!1,staleTime:1/0}}});M1.createRoot(SO()).render(k.jsx(Zs.StrictMode,{children:k.jsx(J1,{client:wO,children:k.jsx(x1,{children:k.jsx(uO,{children:k.jsx(vO,{})})})})}));function SO(){const n="root";let e=document.getElementById(n);if(wn(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{XO as $,nC as A,$O as B,qO as C,IO as D,Po as E,Uv as F,qt as G,I0 as H,Ug as I,Fl as J,KO as K,ko as L,un as M,UO as N,kO as O,MO as P,FO as Q,Zs as R,Vs as S,sE as T,PO as U,Fn as V,BO as W,xO as X,E0 as Y,VO as Z,_n as _,Iv as a,MS as a0,yO as a1,Kh as a2,kv as a3,tC as a4,CO as a5,dC as a6,hC as a7,Ev as a8,LO as a9,mh as aA,zO as aB,iC as aC,EO as aa,b1 as ab,i0 as ac,hb as ad,WO as ae,jg as af,HO as ag,GO as ah,zD as ai,YO as aj,JO as ak,fC as al,cC as am,PD as an,bO as ao,qh as ap,TO as aq,jO as ar,Zh as as,rC as at,pC as au,AO as av,DO as aw,sC as ax,pc as ay,zv as az,ms as b,Kr as c,Cp as d,ft as e,S1 as f,_1 as g,ud as h,wn as i,k as j,oC as k,lC as l,Nt as m,ht as n,OO as o,uC as p,aC as q,B as r,RO as s,fI as t,NO as u,eC as v,nn as w,CS as x,Hl as y,ZO as z};