From f68e1951f07c8736df90ef40a28c23bb5575a6f9 Mon Sep 17 00:00:00 2001 From: Sudhananda Biswas Date: Sun, 3 May 2026 16:05:19 +0600 Subject: [PATCH 1/3] feat: add BCrypt utility module and integrate BCrypt testing and UI tool components --- apps/web/dist/assets/index-19a9c237.css | 1 - .../{index-ade3410d.js => index-998739a2.js} | 230 +++++++++--------- apps/web/dist/assets/index-e7cfa360.css | 1 + apps/web/dist/index.html | 4 +- apps/web/src/App.tsx | 2 + apps/web/src/components/Layout.tsx | 3 +- apps/web/src/pages/BCryptPage.tsx | 191 +++++++++++++++ package-lock.json | 18 ++ packages/core/dist/index.d.ts | 1 + packages/core/dist/index.js | 1 + packages/core/dist/password-utils.d.ts | 28 +++ packages/core/dist/password-utils.js | 55 +++++ packages/core/dist/password-utils.test.d.ts | 1 + packages/core/dist/password-utils.test.js | 38 +++ packages/core/dist/text-analyzer.test.js | 6 + packages/core/package.json | 4 +- packages/core/src/index.ts | 1 + packages/core/src/password-utils.test.ts | 46 ++++ packages/core/src/password-utils.ts | 53 ++++ 19 files changed, 564 insertions(+), 120 deletions(-) delete mode 100644 apps/web/dist/assets/index-19a9c237.css rename apps/web/dist/assets/{index-ade3410d.js => index-998739a2.js} (64%) create mode 100644 apps/web/dist/assets/index-e7cfa360.css create mode 100644 apps/web/src/pages/BCryptPage.tsx create mode 100644 packages/core/dist/password-utils.d.ts create mode 100644 packages/core/dist/password-utils.js create mode 100644 packages/core/dist/password-utils.test.d.ts create mode 100644 packages/core/dist/password-utils.test.js create mode 100644 packages/core/src/password-utils.test.ts create mode 100644 packages/core/src/password-utils.ts diff --git a/apps/web/dist/assets/index-19a9c237.css b/apps/web/dist/assets/index-19a9c237.css deleted file mode 100644 index be99706..0000000 --- a/apps/web/dist/assets/index-19a9c237.css +++ /dev/null @@ -1 +0,0 @@ -*,: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:#e5e7eb}: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:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";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:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,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}:root{--background: 222.2 84% 4.9%;--foreground: 210 40% 98%;--card: 222.2 84% 4.9%;--card-foreground: 210 40% 98%;--popover: 222.2 84% 4.9%;--popover-foreground: 210 40% 98%;--primary: 210 40% 98%;--primary-foreground: 222.2 47.4% 11.2%;--secondary: 217.2 32.6% 17.5%;--secondary-foreground: 210 40% 98%;--muted: 217.2 32.6% 17.5%;--muted-foreground: 215 20.2% 65.1%;--accent: 217.2 32.6% 17.5%;--accent-foreground: 210 40% 98%;--destructive: 0 62.8% 30.6%;--destructive-foreground: 210 40% 98%;--border: 217.2 32.6% 17.5%;--input: 217.2 32.6% 17.5%;--ring: 212.7 26.8% 83.9%;--radius: .5rem}body{background-color:hsl(var(--background));color:hsl(var(--foreground));-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.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}}.relative{position:relative}.mx-auto{margin-left:auto;margin-right:auto}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.ml-1{margin-left:.25rem}.ml-auto{margin-left:auto}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-6{margin-top:1.5rem}.block{display:block}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.h-10{height:2.5rem}.h-12{height:3rem}.h-3{height:.75rem}.h-4{height:1rem}.h-40{height:10rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-64{height:16rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\[40\%\]{height:40%}.h-\[500px\]{height:500px}.h-auto{height:auto}.h-full{height:100%}.h-screen{height:100vh}.max-h-\[400px\]{max-height:400px}.min-h-0{min-height:0px}.w-12{width:3rem}.w-3{width:.75rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-64{width:16rem}.w-full{width:100%}.min-w-0{min-width:0px}.min-w-\[200px\]{min-width:200px}.max-w-7xl{max-width:80rem}.max-w-full{max-width:100%}.flex-1{flex:1 1 0%}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.resize-none{resize:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.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}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-r{border-right-width:1px}.border-dashed{border-style:dashed}.border-border{border-color:hsl(var(--border))}.border-destructive{border-color:hsl(var(--destructive))}.border-destructive\/20{border-color:hsl(var(--destructive) / .2)}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.border-input{border-color:hsl(var(--input))}.border-muted-foreground\/25{border-color:hsl(var(--muted-foreground) / .25)}.bg-background{background-color:hsl(var(--background))}.bg-background\/50{background-color:hsl(var(--background) / .5)}.bg-card{background-color:hsl(var(--card))}.bg-card\/50{background-color:hsl(var(--card) / .5)}.bg-destructive\/10{background-color:hsl(var(--destructive) / .1)}.bg-green-900\/30{background-color:#14532d4d}.bg-muted{background-color:hsl(var(--muted))}.bg-muted\/30{background-color:hsl(var(--muted) / .3)}.bg-muted\/50{background-color:hsl(var(--muted) / .5)}.bg-primary{background-color:hsl(var(--primary))}.bg-primary\/10{background-color:hsl(var(--primary) / .1)}.bg-red-900\/30{background-color:#7f1d1d4d}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-primary{--tw-gradient-from: hsl(var(--primary)) var(--tw-gradient-from-position);--tw-gradient-to: hsl(var(--primary) / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.to-primary\/60{--tw-gradient-to: hsl(var(--primary) / .6) var(--tw-gradient-to-position)}.bg-clip-text{-webkit-background-clip:text;background-clip:text}.object-contain{-o-object-fit:contain;object-fit:contain}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.pb-20{padding-bottom:5rem}.pb-3{padding-bottom:.75rem}.pb-6{padding-bottom:1.5rem}.pr-2{padding-right:.5rem}.pt-5{padding-top:1.25rem}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.font-sans{font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.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-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.italic{font-style:italic}.tracking-tight{letter-spacing:-.025em}.tracking-wider{letter-spacing:.05em}.text-amber-500{--tw-text-opacity: 1;color:rgb(245 158 11 / var(--tw-text-opacity, 1))}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-card-foreground{color:hsl(var(--card-foreground))}.text-cyan-500{--tw-text-opacity: 1;color:rgb(6 182 212 / var(--tw-text-opacity, 1))}.text-destructive{color:hsl(var(--destructive))}.text-emerald-500{--tw-text-opacity: 1;color:rgb(16 185 129 / var(--tw-text-opacity, 1))}.text-foreground{color:hsl(var(--foreground))}.text-green-300{--tw-text-opacity: 1;color:rgb(134 239 172 / var(--tw-text-opacity, 1))}.text-indigo-500{--tw-text-opacity: 1;color:rgb(99 102 241 / var(--tw-text-opacity, 1))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-purple-500{--tw-text-opacity: 1;color:rgb(168 85 247 / var(--tw-text-opacity, 1))}.text-red-300{--tw-text-opacity: 1;color:rgb(252 165 165 / var(--tw-text-opacity, 1))}.text-rose-500{--tw-text-opacity: 1;color:rgb(244 63 94 / var(--tw-text-opacity, 1))}.text-transparent{color:transparent}.line-through{text-decoration-line:line-through}.opacity-0{opacity:0}.opacity-70{opacity:.7}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.ring-offset-background{--tw-ring-offset-color: hsl(var(--background))}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-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-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}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-300{transition-duration:.3s}.duration-500{transition-duration:.5s}.hover\:border-primary\/30:hover{border-color:hsl(var(--primary) / .3)}.hover\:border-primary\/50:hover{border-color:hsl(var(--primary) / .5)}.hover\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\:bg-accent\/50:hover{background-color:hsl(var(--accent) / .5)}.hover\:bg-destructive\/10:hover{background-color:hsl(var(--destructive) / .1)}.hover\:bg-muted:hover{background-color:hsl(var(--muted))}.hover\:bg-muted\/50:hover{background-color:hsl(var(--muted) / .5)}.hover\:bg-muted\/80:hover{background-color:hsl(var(--muted) / .8)}.hover\:bg-primary\/20:hover{background-color:hsl(var(--primary) / .2)}.hover\:bg-primary\/90:hover{background-color:hsl(var(--primary) / .9)}.hover\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\:text-foreground:hover{color:hsl(var(--foreground))}.focus\:border-primary:focus{border-color:hsl(var(--primary))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.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-primary:focus{--tw-ring-color: hsl(var(--primary))}.focus\:ring-primary\/20:focus{--tw-ring-color: hsl(var(--primary) / .2)}.focus\:ring-primary\/50:focus{--tw-ring-color: hsl(var(--primary) / .5)}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.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-ring:focus-visible{--tw-ring-color: hsl(var(--ring))}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\:scale-110{--tw-scale-x: 1.1;--tw-scale-y: 1.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))}.group:hover .group-hover\:text-primary{color:hsl(var(--primary))}.group:hover .group-hover\:opacity-100{opacity:1}@media (min-width: 768px){.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (min-width: 1024px){.lg\:col-span-2{grid-column:span 2 / span 2}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (min-width: 1280px){.xl\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}} diff --git a/apps/web/dist/assets/index-ade3410d.js b/apps/web/dist/assets/index-998739a2.js similarity index 64% rename from apps/web/dist/assets/index-ade3410d.js rename to apps/web/dist/assets/index-998739a2.js index b165d9a..5b98c7c 100644 --- a/apps/web/dist/assets/index-ade3410d.js +++ b/apps/web/dist/assets/index-998739a2.js @@ -1,4 +1,4 @@ -var eF=Object.defineProperty;var tF=(e,t,r)=>t in e?eF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var H=(e,t,r)=>(tF(e,typeof t!="symbol"?t+"":t,r),r),Lp=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)};var gt=(e,t,r)=>(Lp(e,t,"read from private field"),r?r.call(e):t.get(e)),Ui=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},$p=(e,t,r,n)=>(Lp(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);var Kn=(e,t,r)=>(Lp(e,t,"access private method"),r);function rF(e,t){for(var r=0;rn[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const a of s.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function r(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(i){if(i.ep)return;i.ep=!0;const s=r(i);fetch(i.href,s)}})();var nF=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function a2(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var o2={exports:{}},zc={},u2={exports:{}},xe={};/** +var SS=Object.defineProperty;var FS=(e,t,r)=>t in e?SS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var H=(e,t,r)=>(FS(e,typeof t!="symbol"?t+"":t,r),r),qp=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)};var gt=(e,t,r)=>(qp(e,t,"read from private field"),r?r.call(e):t.get(e)),zi=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},Hp=(e,t,r,n)=>(qp(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);var Gn=(e,t,r)=>(qp(e,t,"access private method"),r);function wS(e,t){for(var r=0;rn[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const a of s.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function r(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(i){if(i.ep)return;i.ep=!0;const s=r(i);fetch(i.href,s)}})();var kS=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function TD(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var SD={exports:{}},Yc={},FD={exports:{}},Ee={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ var eF=Object.defineProperty;var tF=(e,t,r)=>t in e?eF(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Pu=Symbol.for("react.element"),iF=Symbol.for("react.portal"),sF=Symbol.for("react.fragment"),aF=Symbol.for("react.strict_mode"),oF=Symbol.for("react.profiler"),uF=Symbol.for("react.provider"),lF=Symbol.for("react.context"),cF=Symbol.for("react.forward_ref"),pF=Symbol.for("react.suspense"),hF=Symbol.for("react.memo"),dF=Symbol.for("react.lazy"),D0=Symbol.iterator;function fF(e){return e===null||typeof e!="object"?null:(e=D0&&e[D0]||e["@@iterator"],typeof e=="function"?e:null)}var l2={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},c2=Object.assign,p2={};function Na(e,t,r){this.props=e,this.context=t,this.refs=p2,this.updater=r||l2}Na.prototype.isReactComponent={};Na.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,t,"setState")};Na.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function h2(){}h2.prototype=Na.prototype;function $f(e,t,r){this.props=e,this.context=t,this.refs=p2,this.updater=r||l2}var Of=$f.prototype=new h2;Of.constructor=$f;c2(Of,Na.prototype);Of.isPureReactComponent=!0;var E0=Array.isArray,d2=Object.prototype.hasOwnProperty,Mf={current:null},f2={key:!0,ref:!0,__self:!0,__source:!0};function m2(e,t,r){var n,i={},s=null,a=null;if(t!=null)for(n in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(s=""+t.key),t)d2.call(t,n)&&!f2.hasOwnProperty(n)&&(i[n]=t[n]);var o=arguments.length-2;if(o===1)i.children=r;else if(1t in e?eF(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var xF=_,CF=Symbol.for("react.element"),vF=Symbol.for("react.fragment"),AF=Object.prototype.hasOwnProperty,TF=xF.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,SF={key:!0,ref:!0,__self:!0,__source:!0};function g2(e,t,r){var n,i={},s=null,a=null;r!==void 0&&(s=""+r),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(a=t.ref);for(n in t)AF.call(t,n)&&!SF.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)i[n]===void 0&&(i[n]=t[n]);return{$$typeof:CF,type:e,key:s,ref:a,props:i,_owner:TF.current}}zc.Fragment=vF;zc.jsx=g2;zc.jsxs=g2;o2.exports=zc;var C=o2.exports,Gh={},D2={exports:{}},hr={},E2={exports:{}},x2={};/** + */var WS=I,JS=Symbol.for("react.element"),XS=Symbol.for("react.fragment"),KS=Object.prototype.hasOwnProperty,GS=WS.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,QS={key:!0,ref:!0,__self:!0,__source:!0};function $D(e,t,r){var n,i={},s=null,a=null;r!==void 0&&(s=""+r),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(a=t.ref);for(n in t)KS.call(t,n)&&!QS.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)i[n]===void 0&&(i[n]=t[n]);return{$$typeof:JS,type:e,key:s,ref:a,props:i,_owner:GS.current}}Yc.Fragment=XS;Yc.jsx=$D;Yc.jsxs=$D;SD.exports=Yc;var D=SD.exports,sd={},OD={exports:{}},hr={},MD={exports:{}},jD={};/** * @license React * scheduler.production.min.js * @@ -22,7 +22,7 @@ var eF=Object.defineProperty;var tF=(e,t,r)=>t in e?eF(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(e){function t($,V){var W=$.length;$.push(V);e:for(;0>>1,G=$[z];if(0>>1;zi(se,W))Bei(Ke,se)?($[z]=Ke,$[Be]=W,z=Be):($[z]=se,$[re]=W,z=re);else if(Bei(Ke,W))$[z]=Ke,$[Be]=W,z=Be;else break e}}return V}function i($,V){var W=$.sortIndex-V.sortIndex;return W!==0?W:$.id-V.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var a=Date,o=a.now();e.unstable_now=function(){return a.now()-o}}var u=[],l=[],c=1,p=null,h=3,d=!1,f=!1,y=!1,x=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function D($){for(var V=r(l);V!==null;){if(V.callback===null)n(l);else if(V.startTime<=$)n(l),V.sortIndex=V.expirationTime,t(u,V);else break;V=r(l)}}function v($){if(y=!1,D($),!f)if(r(u)!==null)f=!0,ne(b);else{var V=r(l);V!==null&&Z(v,V.startTime-$)}}function b($,V){f=!1,y&&(y=!1,g(E),E=-1),d=!0;var W=h;try{for(D(V),p=r(u);p!==null&&(!(p.expirationTime>V)||$&&!B());){var z=p.callback;if(typeof z=="function"){p.callback=null,h=p.priorityLevel;var G=z(p.expirationTime<=V);V=e.unstable_now(),typeof G=="function"?p.callback=G:p===r(u)&&n(u),D(V)}else n(u);p=r(u)}if(p!==null)var O=!0;else{var re=r(l);re!==null&&Z(v,re.startTime-V),O=!1}return O}finally{p=null,h=W,d=!1}}var P=!1,N=null,E=-1,A=5,T=-1;function B(){return!(e.unstable_now()-T$||125<$?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<$?Math.floor(1e3/$):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return r(u)},e.unstable_next=function($){switch(h){case 1:case 2:case 3:var V=3;break;default:V=h}var W=h;h=V;try{return $()}finally{h=W}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function($,V){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var W=h;h=$;try{return V()}finally{h=W}},e.unstable_scheduleCallback=function($,V,W){var z=e.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0z?($.sortIndex=W,t(l,$),r(u)===null&&$===r(l)&&(y?(g(E),E=-1):y=!0,Z(v,W-z))):($.sortIndex=G,t(u,$),f||d||(f=!0,ne(b))),$},e.unstable_shouldYield=B,e.unstable_wrapCallback=function($){var V=h;return function(){var W=h;h=V;try{return $.apply(this,arguments)}finally{h=W}}}})(x2);E2.exports=x2;var FF=E2.exports;/** + */(function(e){function t($,V){var W=$.length;$.push(V);e:for(;0>>1,G=$[z];if(0>>1;zi(se,W))Bei(Ke,se)?($[z]=Ke,$[Be]=W,z=Be):($[z]=se,$[re]=W,z=re);else if(Bei(Ke,W))$[z]=Ke,$[Be]=W,z=Be;else break e}}return V}function i($,V){var W=$.sortIndex-V.sortIndex;return W!==0?W:$.id-V.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var a=Date,o=a.now();e.unstable_now=function(){return a.now()-o}}var u=[],l=[],c=1,p=null,h=3,d=!1,f=!1,y=!1,C=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x($){for(var V=r(l);V!==null;){if(V.callback===null)n(l);else if(V.startTime<=$)n(l),V.sortIndex=V.expirationTime,t(u,V);else break;V=r(l)}}function v($){if(y=!1,x($),!f)if(r(u)!==null)f=!0,ne(T);else{var V=r(l);V!==null&&Z(v,V.startTime-$)}}function T($,V){f=!1,y&&(y=!1,g(E),E=-1),d=!0;var W=h;try{for(x(V),p=r(u);p!==null&&(!(p.expirationTime>V)||$&&!B());){var z=p.callback;if(typeof z=="function"){p.callback=null,h=p.priorityLevel;var G=z(p.expirationTime<=V);V=e.unstable_now(),typeof G=="function"?p.callback=G:p===r(u)&&n(u),x(V)}else n(u);p=r(u)}if(p!==null)var O=!0;else{var re=r(l);re!==null&&Z(v,re.startTime-V),O=!1}return O}finally{p=null,h=W,d=!1}}var k=!1,N=null,E=-1,A=5,b=-1;function B(){return!(e.unstable_now()-b$||125<$?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<$?Math.floor(1e3/$):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return r(u)},e.unstable_next=function($){switch(h){case 1:case 2:case 3:var V=3;break;default:V=h}var W=h;h=V;try{return $()}finally{h=W}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function($,V){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var W=h;h=$;try{return V()}finally{h=W}},e.unstable_scheduleCallback=function($,V,W){var z=e.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0z?($.sortIndex=W,t(l,$),r(u)===null&&$===r(l)&&(y?(g(E),E=-1):y=!0,Z(v,W-z))):($.sortIndex=G,t(u,$),f||d||(f=!0,ne(T))),$},e.unstable_shouldYield=B,e.unstable_wrapCallback=function($){var V=h;return function(){var W=h;h=V;try{return $.apply(this,arguments)}finally{h=W}}}})(jD);MD.exports=jD;var YS=MD.exports;/** * @license React * react-dom.production.min.js * @@ -30,14 +30,14 @@ var eF=Object.defineProperty;var tF=(e,t,r)=>t in e?eF(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var bF=_,ur=FF;function q(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Qh=Object.prototype.hasOwnProperty,wF=/^[: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]*$/,C0={},v0={};function PF(e){return Qh.call(v0,e)?!0:Qh.call(C0,e)?!1:wF.test(e)?v0[e]=!0:(C0[e]=!0,!1)}function kF(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function NF(e,t,r,n){if(t===null||typeof t>"u"||kF(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ut(e,t,r,n,i,s,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=a}var Ct={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ct[e]=new Ut(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ct[t]=new Ut(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ct[e]=new Ut(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ct[e]=new Ut(e,2,!1,e,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(e){Ct[e]=new Ut(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ct[e]=new Ut(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ct[e]=new Ut(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ct[e]=new Ut(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ct[e]=new Ut(e,5,!1,e.toLowerCase(),null,!1,!1)});var Rf=/[\-:]([a-z])/g;function Uf(e){return e[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(e){var t=e.replace(Rf,Uf);Ct[t]=new Ut(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Rf,Uf);Ct[t]=new Ut(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Rf,Uf);Ct[t]=new Ut(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ct[e]=new Ut(e,1,!1,e.toLowerCase(),null,!1,!1)});Ct.xlinkHref=new Ut("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ct[e]=new Ut(e,1,!1,e.toLowerCase(),null,!0,!0)});function Vf(e,t,r,n){var i=Ct.hasOwnProperty(t)?Ct[t]:null;(i!==null?i.type!==0:n||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ad=Object.prototype.hasOwnProperty,eF=/^[: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]*$/,$y={},Oy={};function tF(e){return ad.call(Oy,e)?!0:ad.call($y,e)?!1:eF.test(e)?Oy[e]=!0:($y[e]=!0,!1)}function rF(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function nF(e,t,r,n){if(t===null||typeof t>"u"||rF(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ut(e,t,r,n,i,s,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=a}var Ct={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ct[e]=new Ut(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ct[t]=new Ut(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ct[e]=new Ut(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ct[e]=new Ut(e,2,!1,e,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(e){Ct[e]=new Ut(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ct[e]=new Ut(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ct[e]=new Ut(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ct[e]=new Ut(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ct[e]=new Ut(e,5,!1,e.toLowerCase(),null,!1,!1)});var Yf=/[\-:]([a-z])/g;function Zf(e){return e[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(e){var t=e.replace(Yf,Zf);Ct[t]=new Ut(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Yf,Zf);Ct[t]=new Ut(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Yf,Zf);Ct[t]=new Ut(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ct[e]=new Ut(e,1,!1,e.toLowerCase(),null,!1,!1)});Ct.xlinkHref=new Ut("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ct[e]=new Ut(e,1,!1,e.toLowerCase(),null,!0,!0)});function em(e,t,r,n){var i=Ct.hasOwnProperty(t)?Ct[t]:null;(i!==null?i.type!==0:n||!(2o||i[a]!==s[o]){var u=` -`+i[a].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=a&&0<=o);break}}}finally{jp=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Co(e):""}function BF(e){switch(e.tag){case 5:return Co(e.type);case 16:return Co("Lazy");case 13:return Co("Suspense");case 19:return Co("SuspenseList");case 0:case 2:case 15:return e=Rp(e.type,!1),e;case 11:return e=Rp(e.type.render,!1),e;case 1:return e=Rp(e.type,!0),e;default:return""}}function td(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case qs:return"Fragment";case zs:return"Portal";case Yh:return"Profiler";case zf:return"StrictMode";case Zh:return"Suspense";case ed:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case A2:return(e.displayName||"Context")+".Consumer";case v2:return(e._context.displayName||"Context")+".Provider";case qf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Hf:return t=e.displayName||null,t!==null?t:td(e.type)||"Memo";case ni:t=e._payload,e=e._init;try{return td(e(t))}catch{}}return null}function IF(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return td(t);case 8:return t===zf?"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 t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Ti(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function S2(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function _F(e){var t=S2(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,s=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){n=""+a,s.call(this,a)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function tl(e){e._valueTracker||(e._valueTracker=_F(e))}function F2(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=S2(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function ic(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function rd(e,t){var r=t.checked;return Xe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function T0(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Ti(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function b2(e,t){t=t.checked,t!=null&&Vf(e,"checked",t,!1)}function nd(e,t){b2(e,t);var r=Ti(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?id(e,t.type,r):t.hasOwnProperty("defaultValue")&&id(e,t.type,Ti(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function S0(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function id(e,t,r){(t!=="number"||ic(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var vo=Array.isArray;function ia(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=rl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function eu(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var ko={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},LF=["Webkit","ms","Moz","O"];Object.keys(ko).forEach(function(e){LF.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ko[t]=ko[e]})});function N2(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||ko.hasOwnProperty(e)&&ko[e]?(""+t).trim():t+"px"}function B2(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=N2(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var $F=Xe({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 od(e,t){if(t){if($F[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(q(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(q(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(q(61))}if(t.style!=null&&typeof t.style!="object")throw Error(q(62))}}function ud(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){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 ld=null;function Wf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var cd=null,sa=null,aa=null;function w0(e){if(e=Bu(e)){if(typeof cd!="function")throw Error(q(280));var t=e.stateNode;t&&(t=Xc(t),cd(e.stateNode,e.type,t))}}function I2(e){sa?aa?aa.push(e):aa=[e]:sa=e}function _2(){if(sa){var e=sa,t=aa;if(aa=sa=null,w0(e),t)for(e=0;e>>=0,e===0?32:31-(JF(e)/XF|0)|0}var nl=64,il=4194304;function Ao(e){switch(e&-e){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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function uc(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,i=e.suspendedLanes,s=e.pingedLanes,a=r&268435455;if(a!==0){var o=a&~i;o!==0?n=Ao(o):(s&=a,s!==0&&(n=Ao(s)))}else a=r&~i,a!==0?n=Ao(a):s!==0&&(n=Ao(s));if(n===0)return 0;if(t!==0&&t!==n&&!(t&i)&&(i=n&-n,s=t&-t,i>=s||i===16&&(s&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function ku(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Or(t),e[t]=r}function YF(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=Bo),O0=String.fromCharCode(32),M0=!1;function eE(e,t){switch(e){case"keyup":return Fb.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function tE(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Hs=!1;function wb(e,t){switch(e){case"compositionend":return tE(t);case"keypress":return t.which!==32?null:(M0=!0,O0);case"textInput":return e=t.data,e===O0&&M0?null:e;default:return null}}function Pb(e,t){if(Hs)return e==="compositionend"||!em&&eE(e,t)?(e=Y2(),$l=Qf=oi=null,Hs=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=V0(r)}}function sE(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?sE(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function aE(){for(var e=window,t=ic();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=ic(e.document)}return t}function tm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Mb(e){var t=aE(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&sE(r.ownerDocument.documentElement,r)){if(n!==null&&tm(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=r.textContent.length,s=Math.min(n.start,i);n=n.end===void 0?s:Math.min(n.end,i),!e.extend&&s>n&&(i=n,n=s,s=i),i=z0(r,s);var a=z0(r,n);i&&a&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),s>n?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,Ws=null,yd=null,_o=null,gd=!1;function q0(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;gd||Ws==null||Ws!==ic(n)||(n=Ws,"selectionStart"in n&&tm(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),_o&&au(_o,n)||(_o=n,n=pc(yd,"onSelect"),0Ks||(e.current=Ad[Ks],Ad[Ks]=null,Ks--)}function Le(e,t){Ks++,Ad[Ks]=e.current,e.current=t}var Si={},kt=ki(Si),Xt=ki(!1),us=Si;function fa(e,t){var r=e.type.contextTypes;if(!r)return Si;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in r)i[s]=t[s];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Kt(e){return e=e.childContextTypes,e!=null}function dc(){Ue(Xt),Ue(kt)}function Q0(e,t,r){if(kt.current!==Si)throw Error(q(168));Le(kt,t),Le(Xt,r)}function mE(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in t))throw Error(q(108,IF(e)||"Unknown",i));return Xe({},r,n)}function fc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Si,us=kt.current,Le(kt,e),Le(Xt,Xt.current),!0}function Y0(e,t,r){var n=e.stateNode;if(!n)throw Error(q(169));r?(e=mE(e,t,us),n.__reactInternalMemoizedMergedChildContext=e,Ue(Xt),Ue(kt),Le(kt,e)):Ue(Xt),Le(Xt,r)}var Cn=null,Kc=!1,eh=!1;function yE(e){Cn===null?Cn=[e]:Cn.push(e)}function Gb(e){Kc=!0,yE(e)}function Ni(){if(!eh&&Cn!==null){eh=!0;var e=0,t=ke;try{var r=Cn;for(ke=1;e>=a,i-=a,An=1<<32-Or(t)+i|r<E?(A=N,N=null):A=N.sibling;var T=h(g,N,D[E],v);if(T===null){N===null&&(N=A);break}e&&N&&T.alternate===null&&t(g,N),m=s(T,m,E),P===null?b=T:P.sibling=T,P=T,N=A}if(E===D.length)return r(g,N),qe&&Ji(g,E),b;if(N===null){for(;EE?(A=N,N=null):A=N.sibling;var B=h(g,N,T.value,v);if(B===null){N===null&&(N=A);break}e&&N&&B.alternate===null&&t(g,N),m=s(B,m,E),P===null?b=B:P.sibling=B,P=B,N=A}if(T.done)return r(g,N),qe&&Ji(g,E),b;if(N===null){for(;!T.done;E++,T=D.next())T=p(g,T.value,v),T!==null&&(m=s(T,m,E),P===null?b=T:P.sibling=T,P=T);return qe&&Ji(g,E),b}for(N=n(g,N);!T.done;E++,T=D.next())T=d(N,g,E,T.value,v),T!==null&&(e&&T.alternate!==null&&N.delete(T.key===null?E:T.key),m=s(T,m,E),P===null?b=T:P.sibling=T,P=T);return e&&N.forEach(function(M){return t(g,M)}),qe&&Ji(g,E),b}function x(g,m,D,v){if(typeof D=="object"&&D!==null&&D.type===qs&&D.key===null&&(D=D.props.children),typeof D=="object"&&D!==null){switch(D.$$typeof){case el:e:{for(var b=D.key,P=m;P!==null;){if(P.key===b){if(b=D.type,b===qs){if(P.tag===7){r(g,P.sibling),m=i(P,D.props.children),m.return=g,g=m;break e}}else if(P.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===ni&&tg(b)===P.type){r(g,P.sibling),m=i(P,D.props),m.ref=no(g,P,D),m.return=g,g=m;break e}r(g,P);break}else t(g,P);P=P.sibling}D.type===qs?(m=ss(D.props.children,g.mode,v,D.key),m.return=g,g=m):(v=ql(D.type,D.key,D.props,null,g.mode,v),v.ref=no(g,m,D),v.return=g,g=v)}return a(g);case zs:e:{for(P=D.key;m!==null;){if(m.key===P)if(m.tag===4&&m.stateNode.containerInfo===D.containerInfo&&m.stateNode.implementation===D.implementation){r(g,m.sibling),m=i(m,D.children||[]),m.return=g,g=m;break e}else{r(g,m);break}else t(g,m);m=m.sibling}m=uh(D,g.mode,v),m.return=g,g=m}return a(g);case ni:return P=D._init,x(g,m,P(D._payload),v)}if(vo(D))return f(g,m,D,v);if(Ya(D))return y(g,m,D,v);pl(g,D)}return typeof D=="string"&&D!==""||typeof D=="number"?(D=""+D,m!==null&&m.tag===6?(r(g,m.sibling),m=i(m,D),m.return=g,g=m):(r(g,m),m=oh(D,g.mode,v),m.return=g,g=m),a(g)):r(g,m)}return x}var ya=xE(!0),CE=xE(!1),gc=ki(null),Dc=null,Ys=null,sm=null;function am(){sm=Ys=Dc=null}function om(e){var t=gc.current;Ue(gc),e._currentValue=t}function Fd(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function ua(e,t){Dc=e,sm=Ys=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Jt=!0),e.firstContext=null)}function Tr(e){var t=e._currentValue;if(sm!==e)if(e={context:e,memoizedValue:t,next:null},Ys===null){if(Dc===null)throw Error(q(308));Ys=e,Dc.dependencies={lanes:0,firstContext:e}}else Ys=Ys.next=e;return t}var Zi=null;function um(e){Zi===null?Zi=[e]:Zi.push(e)}function vE(e,t,r,n){var i=t.interleaved;return i===null?(r.next=r,um(t)):(r.next=i.next,i.next=r),t.interleaved=r,Nn(e,n)}function Nn(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var ii=!1;function lm(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function AE(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Fn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function mi(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,Te&2){var i=n.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),n.pending=t,Nn(e,r)}return i=n.interleaved,i===null?(t.next=t,um(n)):(t.next=i.next,i.next=t),n.interleaved=t,Nn(e,r)}function Ml(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Xf(e,r)}}function rg(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var i=null,s=null;if(r=r.firstBaseUpdate,r!==null){do{var a={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};s===null?i=s=a:s=s.next=a,r=r.next}while(r!==null);s===null?i=s=t:s=s.next=t}else i=s=t;r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Ec(e,t,r,n){var i=e.updateQueue;ii=!1;var s=i.firstBaseUpdate,a=i.lastBaseUpdate,o=i.shared.pending;if(o!==null){i.shared.pending=null;var u=o,l=u.next;u.next=null,a===null?s=l:a.next=l,a=u;var c=e.alternate;c!==null&&(c=c.updateQueue,o=c.lastBaseUpdate,o!==a&&(o===null?c.firstBaseUpdate=l:o.next=l,c.lastBaseUpdate=u))}if(s!==null){var p=i.baseState;a=0,c=l=u=null,o=s;do{var h=o.lane,d=o.eventTime;if((n&h)===h){c!==null&&(c=c.next={eventTime:d,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var f=e,y=o;switch(h=t,d=r,y.tag){case 1:if(f=y.payload,typeof f=="function"){p=f.call(d,p,h);break e}p=f;break e;case 3:f.flags=f.flags&-65537|128;case 0:if(f=y.payload,h=typeof f=="function"?f.call(d,p,h):f,h==null)break e;p=Xe({},p,h);break e;case 2:ii=!0}}o.callback!==null&&o.lane!==0&&(e.flags|=64,h=i.effects,h===null?i.effects=[o]:h.push(o))}else d={eventTime:d,lane:h,tag:o.tag,payload:o.payload,callback:o.callback,next:null},c===null?(l=c=d,u=p):c=c.next=d,a|=h;if(o=o.next,o===null){if(o=i.shared.pending,o===null)break;h=o,o=h.next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}while(1);if(c===null&&(u=p),i.baseState=u,i.firstBaseUpdate=l,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do a|=i.lane,i=i.next;while(i!==t)}else s===null&&(i.shared.lanes=0);ps|=a,e.lanes=a,e.memoizedState=p}}function ng(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;tr?r:4,e(!0);var n=rh.transition;rh.transition={};try{e(!1),t()}finally{ke=r,rh.transition=n}}function RE(){return Sr().memoizedState}function ew(e,t,r){var n=gi(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},UE(e))VE(t,r);else if(r=vE(e,t,r,n),r!==null){var i=Ot();Mr(r,e,n,i),zE(r,t,n)}}function tw(e,t,r){var n=gi(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(UE(e))VE(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var a=t.lastRenderedState,o=s(a,r);if(i.hasEagerState=!0,i.eagerState=o,Rr(o,a)){var u=t.interleaved;u===null?(i.next=i,um(t)):(i.next=u.next,u.next=i),t.interleaved=i;return}}catch{}finally{}r=vE(e,t,i,n),r!==null&&(i=Ot(),Mr(r,e,n,i),zE(r,t,n))}}function UE(e){var t=e.alternate;return e===Je||t!==null&&t===Je}function VE(e,t){Lo=Cc=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function zE(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Xf(e,r)}}var vc={readContext:Tr,useCallback:Ft,useContext:Ft,useEffect:Ft,useImperativeHandle:Ft,useInsertionEffect:Ft,useLayoutEffect:Ft,useMemo:Ft,useReducer:Ft,useRef:Ft,useState:Ft,useDebugValue:Ft,useDeferredValue:Ft,useTransition:Ft,useMutableSource:Ft,useSyncExternalStore:Ft,useId:Ft,unstable_isNewReconciler:!1},rw={readContext:Tr,useCallback:function(e,t){return Yr().memoizedState=[e,t===void 0?null:t],e},useContext:Tr,useEffect:sg,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Rl(4194308,4,LE.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Rl(4194308,4,e,t)},useInsertionEffect:function(e,t){return Rl(4,2,e,t)},useMemo:function(e,t){var r=Yr();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Yr();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=ew.bind(null,Je,e),[n.memoizedState,e]},useRef:function(e){var t=Yr();return e={current:e},t.memoizedState=e},useState:ig,useDebugValue:gm,useDeferredValue:function(e){return Yr().memoizedState=e},useTransition:function(){var e=ig(!1),t=e[0];return e=Zb.bind(null,e[1]),Yr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Je,i=Yr();if(qe){if(r===void 0)throw Error(q(407));r=r()}else{if(r=t(),ft===null)throw Error(q(349));cs&30||bE(n,t,r)}i.memoizedState=r;var s={value:r,getSnapshot:t};return i.queue=s,sg(PE.bind(null,n,s,e),[e]),n.flags|=2048,fu(9,wE.bind(null,n,s,r,t),void 0,null),r},useId:function(){var e=Yr(),t=ft.identifierPrefix;if(qe){var r=Tn,n=An;r=(n&~(1<<32-Or(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=hu++,0")&&(u=u.replace("",e.displayName)),u}while(1<=a&&0<=o);break}}}finally{Xp=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?To(e):""}function iF(e){switch(e.tag){case 5:return To(e.type);case 16:return To("Lazy");case 13:return To("Suspense");case 19:return To("SuspenseList");case 0:case 2:case 15:return e=Kp(e.type,!1),e;case 11:return e=Kp(e.type.render,!1),e;case 1:return e=Kp(e.type,!0),e;default:return""}}function cd(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Xs:return"Fragment";case Js:return"Portal";case od:return"Profiler";case tm:return"StrictMode";case ud:return"Suspense";case ld:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case VD:return(e.displayName||"Context")+".Consumer";case UD:return(e._context.displayName||"Context")+".Provider";case rm:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case nm:return t=e.displayName||null,t!==null?t:cd(e.type)||"Memo";case si:t=e._payload,e=e._init;try{return cd(e(t))}catch{}}return null}function sF(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return cd(t);case 8:return t===tm?"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 t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Si(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function qD(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function aF(e){var t=qD(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,s=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){n=""+a,s.call(this,a)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ul(e){e._valueTracker||(e._valueTracker=aF(e))}function HD(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=qD(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function hc(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function pd(e,t){var r=t.checked;return Xe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function jy(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Si(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function WD(e,t){t=t.checked,t!=null&&em(e,"checked",t,!1)}function hd(e,t){WD(e,t);var r=Si(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?dd(e,t.type,r):t.hasOwnProperty("defaultValue")&&dd(e,t.type,Si(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ry(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function dd(e,t,r){(t!=="number"||hc(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var So=Array.isArray;function ua(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=ll.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function su(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var _o={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},oF=["Webkit","ms","Moz","O"];Object.keys(_o).forEach(function(e){oF.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),_o[t]=_o[e]})});function GD(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||_o.hasOwnProperty(e)&&_o[e]?(""+t).trim():t+"px"}function QD(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=GD(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var uF=Xe({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 yd(e,t){if(t){if(uF[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(q(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(q(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(q(61))}if(t.style!=null&&typeof t.style!="object")throw Error(q(62))}}function gd(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){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 Dd=null;function im(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var xd=null,la=null,ca=null;function zy(e){if(e=ju(e)){if(typeof xd!="function")throw Error(q(280));var t=e.stateNode;t&&(t=np(t),xd(e.stateNode,e.type,t))}}function YD(e){la?ca?ca.push(e):ca=[e]:la=e}function ZD(){if(la){var e=la,t=ca;if(ca=la=null,zy(e),t)for(e=0;e>>=0,e===0?32:31-(xF(e)/EF|0)|0}var cl=64,pl=4194304;function Fo(e){switch(e&-e){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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function yc(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,i=e.suspendedLanes,s=e.pingedLanes,a=r&268435455;if(a!==0){var o=a&~i;o!==0?n=Fo(o):(s&=a,s!==0&&(n=Fo(s)))}else a=r&~i,a!==0?n=Fo(a):s!==0&&(n=Fo(s));if(n===0)return 0;if(t!==0&&t!==n&&!(t&i)&&(i=n&-n,s=t&-t,i>=s||i===16&&(s&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function Ou(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-jr(t),e[t]=r}function bF(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=$o),Yy=String.fromCharCode(32),Zy=!1;function xx(e,t){switch(e){case"keyup":return YF.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ex(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ks=!1;function ew(e,t){switch(e){case"compositionend":return Ex(t);case"keypress":return t.which!==32?null:(Zy=!0,Yy);case"textInput":return e=t.data,e===Yy&&Zy?null:e;default:return null}}function tw(e,t){if(Ks)return e==="compositionend"||!hm&&xx(e,t)?(e=gx(),zl=lm=li=null,Ks=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=n1(r)}}function bx(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?bx(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Tx(){for(var e=window,t=hc();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=hc(e.document)}return t}function dm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function cw(e){var t=Tx(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&bx(r.ownerDocument.documentElement,r)){if(n!==null&&dm(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=r.textContent.length,s=Math.min(n.start,i);n=n.end===void 0?s:Math.min(n.end,i),!e.extend&&s>n&&(i=n,n=s,s=i),i=i1(r,s);var a=i1(r,n);i&&a&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),s>n?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,Gs=null,Td=null,Mo=null,Sd=!1;function s1(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Sd||Gs==null||Gs!==hc(n)||(n=Gs,"selectionStart"in n&&dm(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Mo&&pu(Mo,n)||(Mo=n,n=xc(Td,"onSelect"),0Zs||(e.current=Bd[Zs],Bd[Zs]=null,Zs--)}function Le(e,t){Zs++,Bd[Zs]=e.current,e.current=t}var Fi={},Pt=Bi(Fi),Xt=Bi(!1),cs=Fi;function Da(e,t){var r=e.type.contextTypes;if(!r)return Fi;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in r)i[s]=t[s];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Kt(e){return e=e.childContextTypes,e!=null}function Cc(){Ue(Xt),Ue(Pt)}function h1(e,t,r){if(Pt.current!==Fi)throw Error(q(168));Le(Pt,t),Le(Xt,r)}function _x(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in t))throw Error(q(108,sF(e)||"Unknown",i));return Xe({},r,n)}function vc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Fi,cs=Pt.current,Le(Pt,e),Le(Xt,Xt.current),!0}function d1(e,t,r){var n=e.stateNode;if(!n)throw Error(q(169));r?(e=_x(e,t,cs),n.__reactInternalMemoizedMergedChildContext=e,Ue(Xt),Ue(Pt),Le(Pt,e)):Ue(Xt),Le(Xt,r)}var vn=null,ip=!1,lh=!1;function Lx(e){vn===null?vn=[e]:vn.push(e)}function vw(e){ip=!0,Lx(e)}function Ii(){if(!lh&&vn!==null){lh=!0;var e=0,t=Pe;try{var r=vn;for(Pe=1;e>=a,i-=a,bn=1<<32-jr(t)+i|r<E?(A=N,N=null):A=N.sibling;var b=h(g,N,x[E],v);if(b===null){N===null&&(N=A);break}e&&N&&b.alternate===null&&t(g,N),m=s(b,m,E),k===null?T=b:k.sibling=b,k=b,N=A}if(E===x.length)return r(g,N),qe&&Ki(g,E),T;if(N===null){for(;EE?(A=N,N=null):A=N.sibling;var B=h(g,N,b.value,v);if(B===null){N===null&&(N=A);break}e&&N&&B.alternate===null&&t(g,N),m=s(B,m,E),k===null?T=B:k.sibling=B,k=B,N=A}if(b.done)return r(g,N),qe&&Ki(g,E),T;if(N===null){for(;!b.done;E++,b=x.next())b=p(g,b.value,v),b!==null&&(m=s(b,m,E),k===null?T=b:k.sibling=b,k=b);return qe&&Ki(g,E),T}for(N=n(g,N);!b.done;E++,b=x.next())b=d(N,g,E,b.value,v),b!==null&&(e&&b.alternate!==null&&N.delete(b.key===null?E:b.key),m=s(b,m,E),k===null?T=b:k.sibling=b,k=b);return e&&N.forEach(function(M){return t(g,M)}),qe&&Ki(g,E),T}function C(g,m,x,v){if(typeof x=="object"&&x!==null&&x.type===Xs&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case ol:e:{for(var T=x.key,k=m;k!==null;){if(k.key===T){if(T=x.type,T===Xs){if(k.tag===7){r(g,k.sibling),m=i(k,x.props.children),m.return=g,g=m;break e}}else if(k.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===si&&y1(T)===k.type){r(g,k.sibling),m=i(k,x.props),m.ref=oo(g,k,x),m.return=g,g=m;break e}r(g,k);break}else t(g,k);k=k.sibling}x.type===Xs?(m=os(x.props.children,g.mode,v,x.key),m.return=g,g=m):(v=Ql(x.type,x.key,x.props,null,g.mode,v),v.ref=oo(g,m,x),v.return=g,g=v)}return a(g);case Js:e:{for(k=x.key;m!==null;){if(m.key===k)if(m.tag===4&&m.stateNode.containerInfo===x.containerInfo&&m.stateNode.implementation===x.implementation){r(g,m.sibling),m=i(m,x.children||[]),m.return=g,g=m;break e}else{r(g,m);break}else t(g,m);m=m.sibling}m=gh(x,g.mode,v),m.return=g,g=m}return a(g);case si:return k=x._init,C(g,m,k(x._payload),v)}if(So(x))return f(g,m,x,v);if(ro(x))return y(g,m,x,v);Dl(g,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,m!==null&&m.tag===6?(r(g,m.sibling),m=i(m,x),m.return=g,g=m):(r(g,m),m=yh(x,g.mode,v),m.return=g,g=m),a(g)):r(g,m)}return C}var Ea=jx(!0),Rx=jx(!1),Tc=Bi(null),Sc=null,ra=null,gm=null;function Dm(){gm=ra=Sc=null}function xm(e){var t=Tc.current;Ue(Tc),e._currentValue=t}function Ld(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function ha(e,t){Sc=e,gm=ra=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Jt=!0),e.firstContext=null)}function br(e){var t=e._currentValue;if(gm!==e)if(e={context:e,memoizedValue:t,next:null},ra===null){if(Sc===null)throw Error(q(308));ra=e,Sc.dependencies={lanes:0,firstContext:e}}else ra=ra.next=e;return t}var ts=null;function Em(e){ts===null?ts=[e]:ts.push(e)}function Ux(e,t,r,n){var i=t.interleaved;return i===null?(r.next=r,Em(t)):(r.next=i.next,i.next=r),t.interleaved=r,Bn(e,n)}function Bn(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var ai=!1;function Cm(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Vx(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Fn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function gi(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,Te&2){var i=n.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),n.pending=t,Bn(e,r)}return i=n.interleaved,i===null?(t.next=t,Em(n)):(t.next=i.next,i.next=t),n.interleaved=t,Bn(e,r)}function Hl(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,am(e,r)}}function g1(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var i=null,s=null;if(r=r.firstBaseUpdate,r!==null){do{var a={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};s===null?i=s=a:s=s.next=a,r=r.next}while(r!==null);s===null?i=s=t:s=s.next=t}else i=s=t;r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Fc(e,t,r,n){var i=e.updateQueue;ai=!1;var s=i.firstBaseUpdate,a=i.lastBaseUpdate,o=i.shared.pending;if(o!==null){i.shared.pending=null;var u=o,l=u.next;u.next=null,a===null?s=l:a.next=l,a=u;var c=e.alternate;c!==null&&(c=c.updateQueue,o=c.lastBaseUpdate,o!==a&&(o===null?c.firstBaseUpdate=l:o.next=l,c.lastBaseUpdate=u))}if(s!==null){var p=i.baseState;a=0,c=l=u=null,o=s;do{var h=o.lane,d=o.eventTime;if((n&h)===h){c!==null&&(c=c.next={eventTime:d,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var f=e,y=o;switch(h=t,d=r,y.tag){case 1:if(f=y.payload,typeof f=="function"){p=f.call(d,p,h);break e}p=f;break e;case 3:f.flags=f.flags&-65537|128;case 0:if(f=y.payload,h=typeof f=="function"?f.call(d,p,h):f,h==null)break e;p=Xe({},p,h);break e;case 2:ai=!0}}o.callback!==null&&o.lane!==0&&(e.flags|=64,h=i.effects,h===null?i.effects=[o]:h.push(o))}else d={eventTime:d,lane:h,tag:o.tag,payload:o.payload,callback:o.callback,next:null},c===null?(l=c=d,u=p):c=c.next=d,a|=h;if(o=o.next,o===null){if(o=i.shared.pending,o===null)break;h=o,o=h.next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}while(1);if(c===null&&(u=p),i.baseState=u,i.firstBaseUpdate=l,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do a|=i.lane,i=i.next;while(i!==t)}else s===null&&(i.shared.lanes=0);ds|=a,e.lanes=a,e.memoizedState=p}}function D1(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;tr?r:4,e(!0);var n=ph.transition;ph.transition={};try{e(!1),t()}finally{Pe=r,ph.transition=n}}function sE(){return Tr().memoizedState}function Sw(e,t,r){var n=xi(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},aE(e))oE(t,r);else if(r=Ux(e,t,r,n),r!==null){var i=Ot();Rr(r,e,n,i),uE(r,t,n)}}function Fw(e,t,r){var n=xi(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(aE(e))oE(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var a=t.lastRenderedState,o=s(a,r);if(i.hasEagerState=!0,i.eagerState=o,Vr(o,a)){var u=t.interleaved;u===null?(i.next=i,Em(t)):(i.next=u.next,u.next=i),t.interleaved=i;return}}catch{}finally{}r=Ux(e,t,i,n),r!==null&&(i=Ot(),Rr(r,e,n,i),uE(r,t,n))}}function aE(e){var t=e.alternate;return e===Je||t!==null&&t===Je}function oE(e,t){jo=kc=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function uE(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,am(e,r)}}var Pc={readContext:br,useCallback:St,useContext:St,useEffect:St,useImperativeHandle:St,useInsertionEffect:St,useLayoutEffect:St,useMemo:St,useReducer:St,useRef:St,useState:St,useDebugValue:St,useDeferredValue:St,useTransition:St,useMutableSource:St,useSyncExternalStore:St,useId:St,unstable_isNewReconciler:!1},ww={readContext:br,useCallback:function(e,t){return Zr().memoizedState=[e,t===void 0?null:t],e},useContext:br,useEffect:E1,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Jl(4194308,4,eE.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Jl(4194308,4,e,t)},useInsertionEffect:function(e,t){return Jl(4,2,e,t)},useMemo:function(e,t){var r=Zr();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Zr();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=Sw.bind(null,Je,e),[n.memoizedState,e]},useRef:function(e){var t=Zr();return e={current:e},t.memoizedState=e},useState:x1,useDebugValue:km,useDeferredValue:function(e){return Zr().memoizedState=e},useTransition:function(){var e=x1(!1),t=e[0];return e=Tw.bind(null,e[1]),Zr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Je,i=Zr();if(qe){if(r===void 0)throw Error(q(407));r=r()}else{if(r=t(),ft===null)throw Error(q(349));hs&30||Wx(n,t,r)}i.memoizedState=r;var s={value:r,getSnapshot:t};return i.queue=s,E1(Xx.bind(null,n,s,e),[e]),n.flags|=2048,xu(9,Jx.bind(null,n,s,r,t),void 0,null),r},useId:function(){var e=Zr(),t=ft.identifierPrefix;if(qe){var r=Tn,n=bn;r=(n&~(1<<32-jr(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=gu++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=a.createElement(r,{is:n.is}):(e=a.createElement(r),r==="select"&&(a=e,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):e=a.createElementNS(e,r),e[Zr]=t,e[lu]=n,ZE(e,t,!1,!1),t.stateNode=e;e:{switch(a=ud(r,n),r){case"dialog":Re("cancel",e),Re("close",e),i=n;break;case"iframe":case"object":case"embed":Re("load",e),i=n;break;case"video":case"audio":for(i=0;iEa&&(t.flags|=128,n=!0,io(s,!1),t.lanes=4194304)}else{if(!n)if(e=xc(a),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),io(s,!0),s.tail===null&&s.tailMode==="hidden"&&!a.alternate&&!qe)return bt(t),null}else 2*Ze()-s.renderingStartTime>Ea&&r!==1073741824&&(t.flags|=128,n=!0,io(s,!1),t.lanes=4194304);s.isBackwards?(a.sibling=t.child,t.child=a):(r=s.last,r!==null?r.sibling=a:t.child=a,s.last=a)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Ze(),t.sibling=null,r=We.current,Le(We,n?r&1|2:r&1),t):(bt(t),null);case 22:case 23:return Am(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?nr&1073741824&&(bt(t),t.subtreeFlags&6&&(t.flags|=8192)):bt(t),null;case 24:return null;case 25:return null}throw Error(q(156,t.tag))}function cw(e,t){switch(nm(t),t.tag){case 1:return Kt(t.type)&&dc(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ga(),Ue(Xt),Ue(kt),hm(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return pm(t),null;case 13:if(Ue(We),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(q(340));ma()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ue(We),null;case 4:return ga(),null;case 10:return om(t.type._context),null;case 22:case 23:return Am(),null;case 24:return null;default:return null}}var dl=!1,wt=!1,pw=typeof WeakSet=="function"?WeakSet:Set,ie=null;function Zs(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Qe(e,t,n)}else r.current=null}function Ld(e,t,r){try{r()}catch(n){Qe(e,t,n)}}var yg=!1;function hw(e,t){if(Dd=lc,e=aE(),tm(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var i=n.anchorOffset,s=n.focusNode;n=n.focusOffset;try{r.nodeType,s.nodeType}catch{r=null;break e}var a=0,o=-1,u=-1,l=0,c=0,p=e,h=null;t:for(;;){for(var d;p!==r||i!==0&&p.nodeType!==3||(o=a+i),p!==s||n!==0&&p.nodeType!==3||(u=a+n),p.nodeType===3&&(a+=p.nodeValue.length),(d=p.firstChild)!==null;)h=p,p=d;for(;;){if(p===e)break t;if(h===r&&++l===i&&(o=a),h===s&&++c===n&&(u=a),(d=p.nextSibling)!==null)break;p=h,h=p.parentNode}p=d}r=o===-1||u===-1?null:{start:o,end:u}}else r=null}r=r||{start:0,end:0}}else r=null;for(Ed={focusedElem:e,selectionRange:r},lc=!1,ie=t;ie!==null;)if(t=ie,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ie=e;else for(;ie!==null;){t=ie;try{var f=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(f!==null){var y=f.memoizedProps,x=f.memoizedState,g=t.stateNode,m=g.getSnapshotBeforeUpdate(t.elementType===t.type?y:Nr(t.type,y),x);g.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var D=t.stateNode.containerInfo;D.nodeType===1?D.textContent="":D.nodeType===9&&D.documentElement&&D.removeChild(D.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(q(163))}}catch(v){Qe(t,t.return,v)}if(e=t.sibling,e!==null){e.return=t.return,ie=e;break}ie=t.return}return f=yg,yg=!1,f}function $o(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&e)===e){var s=i.destroy;i.destroy=void 0,s!==void 0&&Ld(t,r,s)}i=i.next}while(i!==n)}}function Yc(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function $d(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function rx(e){var t=e.alternate;t!==null&&(e.alternate=null,rx(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Zr],delete t[lu],delete t[vd],delete t[Xb],delete t[Kb])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function nx(e){return e.tag===5||e.tag===3||e.tag===4}function gg(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||nx(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Od(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=hc));else if(n!==4&&(e=e.child,e!==null))for(Od(e,t,r),e=e.sibling;e!==null;)Od(e,t,r),e=e.sibling}function Md(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(Md(e,t,r),e=e.sibling;e!==null;)Md(e,t,r),e=e.sibling}var Dt=null,Br=!1;function Gn(e,t,r){for(r=r.child;r!==null;)ix(e,t,r),r=r.sibling}function ix(e,t,r){if(sn&&typeof sn.onCommitFiberUnmount=="function")try{sn.onCommitFiberUnmount(qc,r)}catch{}switch(r.tag){case 5:wt||Zs(r,t);case 6:var n=Dt,i=Br;Dt=null,Gn(e,t,r),Dt=n,Br=i,Dt!==null&&(Br?(e=Dt,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Dt.removeChild(r.stateNode));break;case 18:Dt!==null&&(Br?(e=Dt,r=r.stateNode,e.nodeType===8?Zp(e.parentNode,r):e.nodeType===1&&Zp(e,r),iu(e)):Zp(Dt,r.stateNode));break;case 4:n=Dt,i=Br,Dt=r.stateNode.containerInfo,Br=!0,Gn(e,t,r),Dt=n,Br=i;break;case 0:case 11:case 14:case 15:if(!wt&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var s=i,a=s.destroy;s=s.tag,a!==void 0&&(s&2||s&4)&&Ld(r,t,a),i=i.next}while(i!==n)}Gn(e,t,r);break;case 1:if(!wt&&(Zs(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(o){Qe(r,t,o)}Gn(e,t,r);break;case 21:Gn(e,t,r);break;case 22:r.mode&1?(wt=(n=wt)||r.memoizedState!==null,Gn(e,t,r),wt=n):Gn(e,t,r);break;default:Gn(e,t,r)}}function Dg(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new pw),t.forEach(function(n){var i=Cw.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function kr(e,t){var r=t.deletions;if(r!==null)for(var n=0;ni&&(i=a),n&=~s}if(n=i,n=Ze()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*fw(n/1960))-n,10e?16:e,ui===null)var n=!1;else{if(e=ui,ui=null,Sc=0,Te&6)throw Error(q(331));var i=Te;for(Te|=4,ie=e.current;ie!==null;){var s=ie,a=s.child;if(ie.flags&16){var o=s.deletions;if(o!==null){for(var u=0;uZe()-Cm?is(e,0):xm|=r),Gt(e,t)}function hx(e,t){t===0&&(e.mode&1?(t=il,il<<=1,!(il&130023424)&&(il=4194304)):t=1);var r=Ot();e=Nn(e,t),e!==null&&(ku(e,t,r),Gt(e,r))}function xw(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),hx(e,r)}function Cw(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(r=i.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(q(314))}n!==null&&n.delete(t),hx(e,r)}var dx;dx=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Xt.current)Jt=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return Jt=!1,uw(e,t,r);Jt=!!(e.flags&131072)}else Jt=!1,qe&&t.flags&1048576&&gE(t,yc,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Ul(e,t),e=t.pendingProps;var i=fa(t,kt.current);ua(t,r),i=fm(null,t,n,e,i,r);var s=mm();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Kt(n)?(s=!0,fc(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,lm(t),i.updater=Qc,t.stateNode=i,i._reactInternals=t,wd(t,n,e,r),t=Nd(null,t,n,!0,s,r)):(t.tag=0,qe&&s&&rm(t),_t(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Ul(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=Aw(n),e=Nr(n,e),i){case 0:t=kd(null,t,n,e,r);break e;case 1:t=dg(null,t,n,e,r);break e;case 11:t=pg(null,t,n,e,r);break e;case 14:t=hg(null,t,n,Nr(n.type,e),r);break e}throw Error(q(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Nr(n,i),kd(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Nr(n,i),dg(e,t,n,i,r);case 3:e:{if(GE(t),e===null)throw Error(q(387));n=t.pendingProps,s=t.memoizedState,i=s.element,AE(e,t),Ec(t,n,null,r);var a=t.memoizedState;if(n=a.element,s.isDehydrated)if(s={element:n,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){i=Da(Error(q(423)),t),t=fg(e,t,n,r,i);break e}else if(n!==i){i=Da(Error(q(424)),t),t=fg(e,t,n,r,i);break e}else for(sr=fi(t.stateNode.containerInfo.firstChild),ar=t,qe=!0,Ir=null,r=CE(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(ma(),n===i){t=Bn(e,t,r);break e}_t(e,t,n,r)}t=t.child}return t;case 5:return TE(t),e===null&&Sd(t),n=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,a=i.children,xd(n,i)?a=null:s!==null&&xd(n,s)&&(t.flags|=32),KE(e,t),_t(e,t,a,r),t.child;case 6:return e===null&&Sd(t),null;case 13:return QE(e,t,r);case 4:return cm(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=ya(t,null,n,r):_t(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Nr(n,i),pg(e,t,n,i,r);case 7:return _t(e,t,t.pendingProps,r),t.child;case 8:return _t(e,t,t.pendingProps.children,r),t.child;case 12:return _t(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,i=t.pendingProps,s=t.memoizedProps,a=i.value,Le(gc,n._currentValue),n._currentValue=a,s!==null)if(Rr(s.value,a)){if(s.children===i.children&&!Xt.current){t=Bn(e,t,r);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var o=s.dependencies;if(o!==null){a=s.child;for(var u=o.firstContext;u!==null;){if(u.context===n){if(s.tag===1){u=Fn(-1,r&-r),u.tag=2;var l=s.updateQueue;if(l!==null){l=l.shared;var c=l.pending;c===null?u.next=u:(u.next=c.next,c.next=u),l.pending=u}}s.lanes|=r,u=s.alternate,u!==null&&(u.lanes|=r),Fd(s.return,r,t),o.lanes|=r;break}u=u.next}}else if(s.tag===10)a=s.type===t.type?null:s.child;else if(s.tag===18){if(a=s.return,a===null)throw Error(q(341));a.lanes|=r,o=a.alternate,o!==null&&(o.lanes|=r),Fd(a,r,t),a=s.sibling}else a=s.child;if(a!==null)a.return=s;else for(a=s;a!==null;){if(a===t){a=null;break}if(s=a.sibling,s!==null){s.return=a.return,a=s;break}a=a.return}s=a}_t(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,ua(t,r),i=Tr(i),n=n(i),t.flags|=1,_t(e,t,n,r),t.child;case 14:return n=t.type,i=Nr(n,t.pendingProps),i=Nr(n.type,i),hg(e,t,n,i,r);case 15:return JE(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Nr(n,i),Ul(e,t),t.tag=1,Kt(n)?(e=!0,fc(t)):e=!1,ua(t,r),qE(t,n,i),wd(t,n,i,r),Nd(null,t,n,!0,e,r);case 19:return YE(e,t,r);case 22:return XE(e,t,r)}throw Error(q(156,t.tag))};function fx(e,t){return U2(e,t)}function vw(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Cr(e,t,r,n){return new vw(e,t,r,n)}function Sm(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Aw(e){if(typeof e=="function")return Sm(e)?1:0;if(e!=null){if(e=e.$$typeof,e===qf)return 11;if(e===Hf)return 14}return 2}function Di(e,t){var r=e.alternate;return r===null?(r=Cr(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function ql(e,t,r,n,i,s){var a=2;if(n=e,typeof e=="function")Sm(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case qs:return ss(r.children,i,s,t);case zf:a=8,i|=8;break;case Yh:return e=Cr(12,r,t,i|2),e.elementType=Yh,e.lanes=s,e;case Zh:return e=Cr(13,r,t,i),e.elementType=Zh,e.lanes=s,e;case ed:return e=Cr(19,r,t,i),e.elementType=ed,e.lanes=s,e;case T2:return ep(r,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case v2:a=10;break e;case A2:a=9;break e;case qf:a=11;break e;case Hf:a=14;break e;case ni:a=16,n=null;break e}throw Error(q(130,e==null?e:typeof e,""))}return t=Cr(a,r,t,i),t.elementType=e,t.type=n,t.lanes=s,t}function ss(e,t,r,n){return e=Cr(7,e,n,t),e.lanes=r,e}function ep(e,t,r,n){return e=Cr(22,e,n,t),e.elementType=T2,e.lanes=r,e.stateNode={isHidden:!1},e}function oh(e,t,r){return e=Cr(6,e,null,t),e.lanes=r,e}function uh(e,t,r){return t=Cr(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Tw(e,t,r,n,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Vp(0),this.expirationTimes=Vp(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Vp(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Fm(e,t,r,n,i,s,a,o,u){return e=new Tw(e,t,r,o,u),t===1?(t=1,s===!0&&(t|=8)):t=0,s=Cr(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},lm(s),e}function Sw(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Dx)}catch(e){console.error(e)}}Dx(),D2.exports=hr;var kw=D2.exports,Fg=kw;Gh.createRoot=Fg.createRoot,Gh.hydrateRoot=Fg.hydrateRoot;/** +`+s.stack}return{value:e,source:t,stack:i,digest:null}}function fh(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function Md(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var Nw=typeof WeakMap=="function"?WeakMap:Map;function cE(e,t,r){r=Fn(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Bc||(Bc=!0,Xd=n),Md(e,t)},r}function pE(e,t,r){r=Fn(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var i=t.value;r.payload=function(){return n(i)},r.callback=function(){Md(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(r.callback=function(){Md(e,t),typeof n!="function"&&(Di===null?Di=new Set([this]):Di.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),r}function A1(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new Nw;var i=new Set;n.set(t,i)}else i=n.get(t),i===void 0&&(i=new Set,n.set(t,i));i.has(r)||(i.add(r),e=Hw.bind(null,e,t,r),t.then(e,e))}function b1(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function T1(e,t,r,n,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=Fn(-1,1),t.tag=2,gi(r,t,1))),r.lanes|=1),e)}var Bw=Rn.ReactCurrentOwner,Jt=!1;function _t(e,t,r,n){t.child=e===null?Rx(t,null,r,n):Ea(t,e.child,r,n)}function S1(e,t,r,n,i){r=r.render;var s=t.ref;return ha(t,i),n=Sm(e,t,r,n,s,i),r=Fm(),e!==null&&!Jt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,In(e,t,i)):(qe&&r&&fm(t),t.flags|=1,_t(e,t,n,i),t.child)}function F1(e,t,r,n,i){if(e===null){var s=r.type;return typeof s=="function"&&!Om(s)&&s.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=s,hE(e,t,s,n,i)):(e=Ql(r.type,null,n,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&i)){var a=s.memoizedProps;if(r=r.compare,r=r!==null?r:pu,r(a,n)&&e.ref===t.ref)return In(e,t,i)}return t.flags|=1,e=Ei(s,n),e.ref=t.ref,e.return=t,t.child=e}function hE(e,t,r,n,i){if(e!==null){var s=e.memoizedProps;if(pu(s,n)&&e.ref===t.ref)if(Jt=!1,t.pendingProps=n=s,(e.lanes&i)!==0)e.flags&131072&&(Jt=!0);else return t.lanes=e.lanes,In(e,t,i)}return jd(e,t,r,n,i)}function dE(e,t,r){var n=t.pendingProps,i=n.children,s=e!==null?e.memoizedState:null;if(n.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Le(ia,nr),nr|=r;else{if(!(r&1073741824))return e=s!==null?s.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Le(ia,nr),nr|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=s!==null?s.baseLanes:r,Le(ia,nr),nr|=n}else s!==null?(n=s.baseLanes|r,t.memoizedState=null):n=r,Le(ia,nr),nr|=n;return _t(e,t,i,r),t.child}function fE(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function jd(e,t,r,n,i){var s=Kt(r)?cs:Pt.current;return s=Da(t,s),ha(t,i),r=Sm(e,t,r,n,s,i),n=Fm(),e!==null&&!Jt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,In(e,t,i)):(qe&&n&&fm(t),t.flags|=1,_t(e,t,r,i),t.child)}function w1(e,t,r,n,i){if(Kt(r)){var s=!0;vc(t)}else s=!1;if(ha(t,i),t.stateNode===null)Xl(e,t),lE(t,r,n),Od(t,r,n,i),n=!0;else if(e===null){var a=t.stateNode,o=t.memoizedProps;a.props=o;var u=a.context,l=r.contextType;typeof l=="object"&&l!==null?l=br(l):(l=Kt(r)?cs:Pt.current,l=Da(t,l));var c=r.getDerivedStateFromProps,p=typeof c=="function"||typeof a.getSnapshotBeforeUpdate=="function";p||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(o!==n||u!==l)&&v1(t,a,n,l),ai=!1;var h=t.memoizedState;a.state=h,Fc(t,n,a,i),u=t.memoizedState,o!==n||h!==u||Xt.current||ai?(typeof c=="function"&&($d(t,r,c,n),u=t.memoizedState),(o=ai||C1(t,r,o,n,h,u,l))?(p||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=u),a.props=n,a.state=u,a.context=l,n=o):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{a=t.stateNode,Vx(e,t),o=t.memoizedProps,l=t.type===t.elementType?o:Br(t.type,o),a.props=l,p=t.pendingProps,h=a.context,u=r.contextType,typeof u=="object"&&u!==null?u=br(u):(u=Kt(r)?cs:Pt.current,u=Da(t,u));var d=r.getDerivedStateFromProps;(c=typeof d=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(o!==p||h!==u)&&v1(t,a,n,u),ai=!1,h=t.memoizedState,a.state=h,Fc(t,n,a,i);var f=t.memoizedState;o!==p||h!==f||Xt.current||ai?(typeof d=="function"&&($d(t,r,d,n),f=t.memoizedState),(l=ai||C1(t,r,l,n,h,f,u)||!1)?(c||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(n,f,u),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(n,f,u)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||o===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=f),a.props=n,a.state=f,a.context=u,n=l):(typeof a.componentDidUpdate!="function"||o===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),n=!1)}return Rd(e,t,r,n,s,i)}function Rd(e,t,r,n,i,s){fE(e,t);var a=(t.flags&128)!==0;if(!n&&!a)return i&&d1(t,r,!1),In(e,t,s);n=t.stateNode,Bw.current=t;var o=a&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&a?(t.child=Ea(t,e.child,null,s),t.child=Ea(t,null,o,s)):_t(e,t,o,s),t.memoizedState=n.state,i&&d1(t,r,!0),t.child}function mE(e){var t=e.stateNode;t.pendingContext?h1(e,t.pendingContext,t.pendingContext!==t.context):t.context&&h1(e,t.context,!1),vm(e,t.containerInfo)}function k1(e,t,r,n,i){return xa(),ym(i),t.flags|=256,_t(e,t,r,n),t.child}var Ud={dehydrated:null,treeContext:null,retryLane:0};function Vd(e){return{baseLanes:e,cachePool:null,transitions:null}}function yE(e,t,r){var n=t.pendingProps,i=We.current,s=!1,a=(t.flags&128)!==0,o;if((o=a)||(o=e!==null&&e.memoizedState===null?!1:(i&2)!==0),o?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),Le(We,i&1),e===null)return _d(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(a=n.children,e=n.fallback,s?(n=t.mode,s=t.child,a={mode:"hidden",children:a},!(n&1)&&s!==null?(s.childLanes=0,s.pendingProps=a):s=lp(a,n,0,null),e=os(e,n,r,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Vd(r),t.memoizedState=Ud,e):Pm(t,a));if(i=e.memoizedState,i!==null&&(o=i.dehydrated,o!==null))return Iw(e,t,a,n,o,i,r);if(s){s=n.fallback,a=t.mode,i=e.child,o=i.sibling;var u={mode:"hidden",children:n.children};return!(a&1)&&t.child!==i?(n=t.child,n.childLanes=0,n.pendingProps=u,t.deletions=null):(n=Ei(i,u),n.subtreeFlags=i.subtreeFlags&14680064),o!==null?s=Ei(o,s):(s=os(s,a,r,null),s.flags|=2),s.return=t,n.return=t,n.sibling=s,t.child=n,n=s,s=t.child,a=e.child.memoizedState,a=a===null?Vd(r):{baseLanes:a.baseLanes|r,cachePool:null,transitions:a.transitions},s.memoizedState=a,s.childLanes=e.childLanes&~r,t.memoizedState=Ud,n}return s=e.child,e=s.sibling,n=Ei(s,{mode:"visible",children:n.children}),!(t.mode&1)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n}function Pm(e,t){return t=lp({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function xl(e,t,r,n){return n!==null&&ym(n),Ea(t,e.child,null,r),e=Pm(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Iw(e,t,r,n,i,s,a){if(r)return t.flags&256?(t.flags&=-257,n=fh(Error(q(422))),xl(e,t,a,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=n.fallback,i=t.mode,n=lp({mode:"visible",children:n.children},i,0,null),s=os(s,i,a,null),s.flags|=2,n.return=t,s.return=t,n.sibling=s,t.child=n,t.mode&1&&Ea(t,e.child,null,a),t.child.memoizedState=Vd(a),t.memoizedState=Ud,s);if(!(t.mode&1))return xl(e,t,a,null);if(i.data==="$!"){if(n=i.nextSibling&&i.nextSibling.dataset,n)var o=n.dgst;return n=o,s=Error(q(419)),n=fh(s,n,void 0),xl(e,t,a,n)}if(o=(a&e.childLanes)!==0,Jt||o){if(n=ft,n!==null){switch(a&-a){case 4:i=2;break;case 16:i=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:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(n.suspendedLanes|a)?0:i,i!==0&&i!==s.retryLane&&(s.retryLane=i,Bn(e,i),Rr(n,e,i,-1))}return $m(),n=fh(Error(q(421))),xl(e,t,a,n)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=Ww.bind(null,e),i._reactRetry=t,null):(e=s.treeContext,sr=yi(i.nextSibling),ar=t,qe=!0,_r=null,e!==null&&(gr[Dr++]=bn,gr[Dr++]=Tn,gr[Dr++]=ps,bn=e.id,Tn=e.overflow,ps=t),t=Pm(t,n.children),t.flags|=4096,t)}function P1(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),Ld(e.return,t,r)}function mh(e,t,r,n,i){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:i}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=n,s.tail=r,s.tailMode=i)}function gE(e,t,r){var n=t.pendingProps,i=n.revealOrder,s=n.tail;if(_t(e,t,n.children,r),n=We.current,n&2)n=n&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&P1(e,r,t);else if(e.tag===19)P1(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(Le(We,n),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(r=t.child,i=null;r!==null;)e=r.alternate,e!==null&&wc(e)===null&&(i=r),r=r.sibling;r=i,r===null?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),mh(t,!1,i,r,s);break;case"backwards":for(r=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&wc(e)===null){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}mh(t,!0,r,null,s);break;case"together":mh(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Xl(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function In(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),ds|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(q(153));if(t.child!==null){for(e=t.child,r=Ei(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=Ei(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function _w(e,t,r){switch(t.tag){case 3:mE(t),xa();break;case 5:zx(t);break;case 1:Kt(t.type)&&vc(t);break;case 4:vm(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,i=t.memoizedProps.value;Le(Tc,n._currentValue),n._currentValue=i;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(Le(We,We.current&1),t.flags|=128,null):r&t.child.childLanes?yE(e,t,r):(Le(We,We.current&1),e=In(e,t,r),e!==null?e.sibling:null);Le(We,We.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&128){if(n)return gE(e,t,r);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Le(We,We.current),n)break;return null;case 22:case 23:return t.lanes=0,dE(e,t,r)}return In(e,t,r)}var DE,zd,xE,EE;DE=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};zd=function(){};xE=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,rs(on.current);var s=null;switch(r){case"input":i=pd(e,i),n=pd(e,n),s=[];break;case"select":i=Xe({},i,{value:void 0}),n=Xe({},n,{value:void 0}),s=[];break;case"textarea":i=fd(e,i),n=fd(e,n),s=[];break;default:typeof i.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=Ec)}yd(r,n);var a;r=null;for(l in i)if(!n.hasOwnProperty(l)&&i.hasOwnProperty(l)&&i[l]!=null)if(l==="style"){var o=i[l];for(a in o)o.hasOwnProperty(a)&&(r||(r={}),r[a]="")}else l!=="dangerouslySetInnerHTML"&&l!=="children"&&l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(iu.hasOwnProperty(l)?s||(s=[]):(s=s||[]).push(l,null));for(l in n){var u=n[l];if(o=i!=null?i[l]:void 0,n.hasOwnProperty(l)&&u!==o&&(u!=null||o!=null))if(l==="style")if(o){for(a in o)!o.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(r||(r={}),r[a]="");for(a in u)u.hasOwnProperty(a)&&o[a]!==u[a]&&(r||(r={}),r[a]=u[a])}else r||(s||(s=[]),s.push(l,r)),r=u;else l==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,o=o?o.__html:void 0,u!=null&&o!==u&&(s=s||[]).push(l,u)):l==="children"?typeof u!="string"&&typeof u!="number"||(s=s||[]).push(l,""+u):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&(iu.hasOwnProperty(l)?(u!=null&&l==="onScroll"&&Re("scroll",e),s||o===u||(s=[])):(s=s||[]).push(l,u))}r&&(s=s||[]).push("style",r);var l=s;(t.updateQueue=l)&&(t.flags|=4)}};EE=function(e,t,r,n){r!==n&&(t.flags|=4)};function uo(e,t){if(!qe)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Ft(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var i=e.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags&14680064,n|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags,n|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function Lw(e,t,r){var n=t.pendingProps;switch(mm(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ft(t),null;case 1:return Kt(t.type)&&Cc(),Ft(t),null;case 3:return n=t.stateNode,Ca(),Ue(Xt),Ue(Pt),bm(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(gl(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,_r!==null&&(Qd(_r),_r=null))),zd(e,t),Ft(t),null;case 5:Am(t);var i=rs(yu.current);if(r=t.type,e!==null&&t.stateNode!=null)xE(e,t,r,n,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(q(166));return Ft(t),null}if(e=rs(on.current),gl(t)){n=t.stateNode,r=t.type;var s=t.memoizedProps;switch(n[en]=t,n[fu]=s,e=(t.mode&1)!==0,r){case"dialog":Re("cancel",n),Re("close",n);break;case"iframe":case"object":case"embed":Re("load",n);break;case"video":case"audio":for(i=0;i<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=a.createElement(r,{is:n.is}):(e=a.createElement(r),r==="select"&&(a=e,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):e=a.createElementNS(e,r),e[en]=t,e[fu]=n,DE(e,t,!1,!1),t.stateNode=e;e:{switch(a=gd(r,n),r){case"dialog":Re("cancel",e),Re("close",e),i=n;break;case"iframe":case"object":case"embed":Re("load",e),i=n;break;case"video":case"audio":for(i=0;iAa&&(t.flags|=128,n=!0,uo(s,!1),t.lanes=4194304)}else{if(!n)if(e=wc(a),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),uo(s,!0),s.tail===null&&s.tailMode==="hidden"&&!a.alternate&&!qe)return Ft(t),null}else 2*Ze()-s.renderingStartTime>Aa&&r!==1073741824&&(t.flags|=128,n=!0,uo(s,!1),t.lanes=4194304);s.isBackwards?(a.sibling=t.child,t.child=a):(r=s.last,r!==null?r.sibling=a:t.child=a,s.last=a)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Ze(),t.sibling=null,r=We.current,Le(We,n?r&1|2:r&1),t):(Ft(t),null);case 22:case 23:return Lm(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?nr&1073741824&&(Ft(t),t.subtreeFlags&6&&(t.flags|=8192)):Ft(t),null;case 24:return null;case 25:return null}throw Error(q(156,t.tag))}function $w(e,t){switch(mm(t),t.tag){case 1:return Kt(t.type)&&Cc(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ca(),Ue(Xt),Ue(Pt),bm(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Am(t),null;case 13:if(Ue(We),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(q(340));xa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ue(We),null;case 4:return Ca(),null;case 10:return xm(t.type._context),null;case 22:case 23:return Lm(),null;case 24:return null;default:return null}}var El=!1,wt=!1,Ow=typeof WeakSet=="function"?WeakSet:Set,ie=null;function na(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Qe(e,t,n)}else r.current=null}function qd(e,t,r){try{r()}catch(n){Qe(e,t,n)}}var N1=!1;function Mw(e,t){if(Fd=gc,e=Tx(),dm(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var i=n.anchorOffset,s=n.focusNode;n=n.focusOffset;try{r.nodeType,s.nodeType}catch{r=null;break e}var a=0,o=-1,u=-1,l=0,c=0,p=e,h=null;t:for(;;){for(var d;p!==r||i!==0&&p.nodeType!==3||(o=a+i),p!==s||n!==0&&p.nodeType!==3||(u=a+n),p.nodeType===3&&(a+=p.nodeValue.length),(d=p.firstChild)!==null;)h=p,p=d;for(;;){if(p===e)break t;if(h===r&&++l===i&&(o=a),h===s&&++c===n&&(u=a),(d=p.nextSibling)!==null)break;p=h,h=p.parentNode}p=d}r=o===-1||u===-1?null:{start:o,end:u}}else r=null}r=r||{start:0,end:0}}else r=null;for(wd={focusedElem:e,selectionRange:r},gc=!1,ie=t;ie!==null;)if(t=ie,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ie=e;else for(;ie!==null;){t=ie;try{var f=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(f!==null){var y=f.memoizedProps,C=f.memoizedState,g=t.stateNode,m=g.getSnapshotBeforeUpdate(t.elementType===t.type?y:Br(t.type,y),C);g.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(q(163))}}catch(v){Qe(t,t.return,v)}if(e=t.sibling,e!==null){e.return=t.return,ie=e;break}ie=t.return}return f=N1,N1=!1,f}function Ro(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&e)===e){var s=i.destroy;i.destroy=void 0,s!==void 0&&qd(t,r,s)}i=i.next}while(i!==n)}}function op(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function Hd(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function CE(e){var t=e.alternate;t!==null&&(e.alternate=null,CE(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[en],delete t[fu],delete t[Nd],delete t[Ew],delete t[Cw])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function vE(e){return e.tag===5||e.tag===3||e.tag===4}function B1(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||vE(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Wd(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Ec));else if(n!==4&&(e=e.child,e!==null))for(Wd(e,t,r),e=e.sibling;e!==null;)Wd(e,t,r),e=e.sibling}function Jd(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(Jd(e,t,r),e=e.sibling;e!==null;)Jd(e,t,r),e=e.sibling}var Dt=null,Ir=!1;function Qn(e,t,r){for(r=r.child;r!==null;)AE(e,t,r),r=r.sibling}function AE(e,t,r){if(an&&typeof an.onCommitFiberUnmount=="function")try{an.onCommitFiberUnmount(Zc,r)}catch{}switch(r.tag){case 5:wt||na(r,t);case 6:var n=Dt,i=Ir;Dt=null,Qn(e,t,r),Dt=n,Ir=i,Dt!==null&&(Ir?(e=Dt,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Dt.removeChild(r.stateNode));break;case 18:Dt!==null&&(Ir?(e=Dt,r=r.stateNode,e.nodeType===8?uh(e.parentNode,r):e.nodeType===1&&uh(e,r),lu(e)):uh(Dt,r.stateNode));break;case 4:n=Dt,i=Ir,Dt=r.stateNode.containerInfo,Ir=!0,Qn(e,t,r),Dt=n,Ir=i;break;case 0:case 11:case 14:case 15:if(!wt&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var s=i,a=s.destroy;s=s.tag,a!==void 0&&(s&2||s&4)&&qd(r,t,a),i=i.next}while(i!==n)}Qn(e,t,r);break;case 1:if(!wt&&(na(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(o){Qe(r,t,o)}Qn(e,t,r);break;case 21:Qn(e,t,r);break;case 22:r.mode&1?(wt=(n=wt)||r.memoizedState!==null,Qn(e,t,r),wt=n):Qn(e,t,r);break;default:Qn(e,t,r)}}function I1(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new Ow),t.forEach(function(n){var i=Jw.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function Pr(e,t){var r=t.deletions;if(r!==null)for(var n=0;ni&&(i=a),n&=~s}if(n=i,n=Ze()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Rw(n/1960))-n,10e?16:e,ci===null)var n=!1;else{if(e=ci,ci=null,Ic=0,Te&6)throw Error(q(331));var i=Te;for(Te|=4,ie=e.current;ie!==null;){var s=ie,a=s.child;if(ie.flags&16){var o=s.deletions;if(o!==null){for(var u=0;uZe()-Im?as(e,0):Bm|=r),Gt(e,t)}function NE(e,t){t===0&&(e.mode&1?(t=pl,pl<<=1,!(pl&130023424)&&(pl=4194304)):t=1);var r=Ot();e=Bn(e,t),e!==null&&(Ou(e,t,r),Gt(e,r))}function Ww(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),NE(e,r)}function Jw(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(r=i.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(q(314))}n!==null&&n.delete(t),NE(e,r)}var BE;BE=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Xt.current)Jt=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return Jt=!1,_w(e,t,r);Jt=!!(e.flags&131072)}else Jt=!1,qe&&t.flags&1048576&&$x(t,bc,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Xl(e,t),e=t.pendingProps;var i=Da(t,Pt.current);ha(t,r),i=Sm(null,t,n,e,i,r);var s=Fm();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Kt(n)?(s=!0,vc(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Cm(t),i.updater=ap,t.stateNode=i,i._reactInternals=t,Od(t,n,e,r),t=Rd(null,t,n,!0,s,r)):(t.tag=0,qe&&s&&fm(t),_t(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Xl(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=Kw(n),e=Br(n,e),i){case 0:t=jd(null,t,n,e,r);break e;case 1:t=w1(null,t,n,e,r);break e;case 11:t=S1(null,t,n,e,r);break e;case 14:t=F1(null,t,n,Br(n.type,e),r);break e}throw Error(q(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Br(n,i),jd(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Br(n,i),w1(e,t,n,i,r);case 3:e:{if(mE(t),e===null)throw Error(q(387));n=t.pendingProps,s=t.memoizedState,i=s.element,Vx(e,t),Fc(t,n,null,r);var a=t.memoizedState;if(n=a.element,s.isDehydrated)if(s={element:n,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){i=va(Error(q(423)),t),t=k1(e,t,n,r,i);break e}else if(n!==i){i=va(Error(q(424)),t),t=k1(e,t,n,r,i);break e}else for(sr=yi(t.stateNode.containerInfo.firstChild),ar=t,qe=!0,_r=null,r=Rx(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(xa(),n===i){t=In(e,t,r);break e}_t(e,t,n,r)}t=t.child}return t;case 5:return zx(t),e===null&&_d(t),n=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,a=i.children,kd(n,i)?a=null:s!==null&&kd(n,s)&&(t.flags|=32),fE(e,t),_t(e,t,a,r),t.child;case 6:return e===null&&_d(t),null;case 13:return yE(e,t,r);case 4:return vm(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Ea(t,null,n,r):_t(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Br(n,i),S1(e,t,n,i,r);case 7:return _t(e,t,t.pendingProps,r),t.child;case 8:return _t(e,t,t.pendingProps.children,r),t.child;case 12:return _t(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,i=t.pendingProps,s=t.memoizedProps,a=i.value,Le(Tc,n._currentValue),n._currentValue=a,s!==null)if(Vr(s.value,a)){if(s.children===i.children&&!Xt.current){t=In(e,t,r);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var o=s.dependencies;if(o!==null){a=s.child;for(var u=o.firstContext;u!==null;){if(u.context===n){if(s.tag===1){u=Fn(-1,r&-r),u.tag=2;var l=s.updateQueue;if(l!==null){l=l.shared;var c=l.pending;c===null?u.next=u:(u.next=c.next,c.next=u),l.pending=u}}s.lanes|=r,u=s.alternate,u!==null&&(u.lanes|=r),Ld(s.return,r,t),o.lanes|=r;break}u=u.next}}else if(s.tag===10)a=s.type===t.type?null:s.child;else if(s.tag===18){if(a=s.return,a===null)throw Error(q(341));a.lanes|=r,o=a.alternate,o!==null&&(o.lanes|=r),Ld(a,r,t),a=s.sibling}else a=s.child;if(a!==null)a.return=s;else for(a=s;a!==null;){if(a===t){a=null;break}if(s=a.sibling,s!==null){s.return=a.return,a=s;break}a=a.return}s=a}_t(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,ha(t,r),i=br(i),n=n(i),t.flags|=1,_t(e,t,n,r),t.child;case 14:return n=t.type,i=Br(n,t.pendingProps),i=Br(n.type,i),F1(e,t,n,i,r);case 15:return hE(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Br(n,i),Xl(e,t),t.tag=1,Kt(n)?(e=!0,vc(t)):e=!1,ha(t,r),lE(t,n,i),Od(t,n,i,r),Rd(null,t,n,!0,e,r);case 19:return gE(e,t,r);case 22:return dE(e,t,r)}throw Error(q(156,t.tag))};function IE(e,t){return ax(e,t)}function Xw(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Cr(e,t,r,n){return new Xw(e,t,r,n)}function Om(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Kw(e){if(typeof e=="function")return Om(e)?1:0;if(e!=null){if(e=e.$$typeof,e===rm)return 11;if(e===nm)return 14}return 2}function Ei(e,t){var r=e.alternate;return r===null?(r=Cr(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Ql(e,t,r,n,i,s){var a=2;if(n=e,typeof e=="function")Om(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Xs:return os(r.children,i,s,t);case tm:a=8,i|=8;break;case od:return e=Cr(12,r,t,i|2),e.elementType=od,e.lanes=s,e;case ud:return e=Cr(13,r,t,i),e.elementType=ud,e.lanes=s,e;case ld:return e=Cr(19,r,t,i),e.elementType=ld,e.lanes=s,e;case zD:return lp(r,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case UD:a=10;break e;case VD:a=9;break e;case rm:a=11;break e;case nm:a=14;break e;case si:a=16,n=null;break e}throw Error(q(130,e==null?e:typeof e,""))}return t=Cr(a,r,t,i),t.elementType=e,t.type=n,t.lanes=s,t}function os(e,t,r,n){return e=Cr(7,e,n,t),e.lanes=r,e}function lp(e,t,r,n){return e=Cr(22,e,n,t),e.elementType=zD,e.lanes=r,e.stateNode={isHidden:!1},e}function yh(e,t,r){return e=Cr(6,e,null,t),e.lanes=r,e}function gh(e,t,r){return t=Cr(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Gw(e,t,r,n,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Qp(0),this.expirationTimes=Qp(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Qp(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Mm(e,t,r,n,i,s,a,o,u){return e=new Gw(e,t,r,o,u),t===1?(t=1,s===!0&&(t|=8)):t=0,s=Cr(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Cm(s),e}function Qw(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(OE)}catch(e){console.error(e)}}OE(),OD.exports=hr;var r3=OD.exports,U1=r3;sd.createRoot=U1.createRoot,sd.hydrateRoot=U1.hydrateRoot;/** * @remix-run/router v1.23.2 * * Copyright (c) Remix Software Inc. @@ -46,7 +46,7 @@ Error generating stack: `+s.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function yu(){return yu=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function km(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Bw(){return Math.random().toString(36).substr(2,8)}function wg(e,t){return{usr:e.state,key:e.key,idx:t}}function zd(e,t,r,n){return r===void 0&&(r=null),yu({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?_a(t):t,{state:r,key:t&&t.key||n||Bw()})}function wc(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function _a(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function Iw(e,t,r,n){n===void 0&&(n={});let{window:i=document.defaultView,v5Compat:s=!1}=n,a=i.history,o=li.Pop,u=null,l=c();l==null&&(l=0,a.replaceState(yu({},a.state,{idx:l}),""));function c(){return(a.state||{idx:null}).idx}function p(){o=li.Pop;let x=c(),g=x==null?null:x-l;l=x,u&&u({action:o,location:y.location,delta:g})}function h(x,g){o=li.Push;let m=zd(y.location,x,g);r&&r(m,x),l=c()+1;let D=wg(m,l),v=y.createHref(m);try{a.pushState(D,"",v)}catch(b){if(b instanceof DOMException&&b.name==="DataCloneError")throw b;i.location.assign(v)}s&&u&&u({action:o,location:y.location,delta:1})}function d(x,g){o=li.Replace;let m=zd(y.location,x,g);r&&r(m,x),l=c();let D=wg(m,l),v=y.createHref(m);a.replaceState(D,"",v),s&&u&&u({action:o,location:y.location,delta:0})}function f(x){let g=i.location.origin!=="null"?i.location.origin:i.location.href,m=typeof x=="string"?x:wc(x);return m=m.replace(/ $/,"%20"),et(g,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,g)}let y={get action(){return o},get location(){return e(i,a)},listen(x){if(u)throw new Error("A history only accepts one active listener");return i.addEventListener(bg,p),u=x,()=>{i.removeEventListener(bg,p),u=null}},createHref(x){return t(i,x)},createURL:f,encodeLocation(x){let g=f(x);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:h,replace:d,go(x){return a.go(x)}};return y}var Pg;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Pg||(Pg={}));function _w(e,t,r){return r===void 0&&(r="/"),Lw(e,t,r,!1)}function Lw(e,t,r,n){let i=typeof t=="string"?_a(t):t,s=Nm(i.pathname||"/",r);if(s==null)return null;let a=Ex(e);$w(a);let o=null;for(let u=0;o==null&&u{let u={relativePath:o===void 0?s.path||"":o,caseSensitive:s.caseSensitive===!0,childrenIndex:a,route:s};u.relativePath.startsWith("/")&&(et(u.relativePath.startsWith(n),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(n.length));let l=Ei([n,u.relativePath]),c=r.concat(u);s.children&&s.children.length>0&&(et(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+l+'".')),Ex(s.children,t,c,l)),!(s.path==null&&!s.index)&&t.push({path:l,score:zw(l,s.index),routesMeta:c})};return e.forEach((s,a)=>{var o;if(s.path===""||!((o=s.path)!=null&&o.includes("?")))i(s,a);else for(let u of xx(s.path))i(s,a,u)}),t}function xx(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,i=r.endsWith("?"),s=r.replace(/\?$/,"");if(n.length===0)return i?[s,""]:[s];let a=xx(n.join("/")),o=[];return o.push(...a.map(u=>u===""?s:[s,u].join("/"))),i&&o.push(...a),o.map(u=>e.startsWith("/")&&u===""?"/":u)}function $w(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:qw(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const Ow=/^:[\w-]+$/,Mw=3,jw=2,Rw=1,Uw=10,Vw=-2,kg=e=>e==="*";function zw(e,t){let r=e.split("/"),n=r.length;return r.some(kg)&&(n+=Vw),t&&(n+=jw),r.filter(i=>!kg(i)).reduce((i,s)=>i+(Ow.test(s)?Mw:s===""?Rw:Uw),n)}function qw(e,t){return e.length===t.length&&e.slice(0,-1).every((n,i)=>n===t[i])?e[e.length-1]-t[t.length-1]:0}function Hw(e,t,r){r===void 0&&(r=!1);let{routesMeta:n}=e,i={},s="/",a=[];for(let o=0;o{let{paramName:h,isOptional:d}=c;if(h==="*"){let y=o[p]||"";a=s.slice(0,s.length-y.length).replace(/(.)\/+$/,"$1")}const f=o[p];return d&&!f?l[h]=void 0:l[h]=(f||"").replace(/%2F/g,"/"),l},{}),pathname:s,pathnameBase:a,pattern:e}}function Ww(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),km(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,o,u)=>(n.push({paramName:o,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),n]}function Jw(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return km(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Nm(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}const Xw=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Kw=e=>Xw.test(e);function Gw(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:i=""}=typeof e=="string"?_a(e):e,s;if(r)if(Kw(r))s=r;else{if(r.includes("//")){let a=r;r=r.replace(/\/\/+/g,"/"),km(!1,"Pathnames cannot have embedded double slashes - normalizing "+(a+" -> "+r))}r.startsWith("/")?s=Bg(r.substring(1),"/"):s=Bg(r,t)}else s=t;return{pathname:s,search:Zw(n),hash:e3(i)}}function Bg(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?r.length>1&&r.pop():i!=="."&&r.push(i)}),r.length>1?r.join("/"):"/"}function lh(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function Qw(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function Bm(e,t){let r=Qw(e);return t?r.map((n,i)=>i===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function Im(e,t,r,n){n===void 0&&(n=!1);let i;typeof e=="string"?i=_a(e):(i=yu({},e),et(!i.pathname||!i.pathname.includes("?"),lh("?","pathname","search",i)),et(!i.pathname||!i.pathname.includes("#"),lh("#","pathname","hash",i)),et(!i.search||!i.search.includes("#"),lh("#","search","hash",i)));let s=e===""||i.pathname==="",a=s?"/":i.pathname,o;if(a==null)o=r;else{let p=t.length-1;if(!n&&a.startsWith("..")){let h=a.split("/");for(;h[0]==="..";)h.shift(),p-=1;i.pathname=h.join("/")}o=p>=0?t[p]:"/"}let u=Gw(i,o),l=a&&a!=="/"&&a.endsWith("/"),c=(s||a===".")&&r.endsWith("/");return!u.pathname.endsWith("/")&&(l||c)&&(u.pathname+="/"),u}const Ei=e=>e.join("/").replace(/\/\/+/g,"/"),Yw=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Zw=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,e3=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function t3(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Cx=["post","put","patch","delete"];new Set(Cx);const r3=["get",...Cx];new Set(r3);/** + */function Cu(){return Cu=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Vm(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function i3(){return Math.random().toString(36).substr(2,8)}function z1(e,t){return{usr:e.state,key:e.key,idx:t}}function Yd(e,t,r,n){return r===void 0&&(r=null),Cu({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ma(t):t,{state:r,key:t&&t.key||n||i3()})}function $c(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function Ma(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function s3(e,t,r,n){n===void 0&&(n={});let{window:i=document.defaultView,v5Compat:s=!1}=n,a=i.history,o=pi.Pop,u=null,l=c();l==null&&(l=0,a.replaceState(Cu({},a.state,{idx:l}),""));function c(){return(a.state||{idx:null}).idx}function p(){o=pi.Pop;let C=c(),g=C==null?null:C-l;l=C,u&&u({action:o,location:y.location,delta:g})}function h(C,g){o=pi.Push;let m=Yd(y.location,C,g);r&&r(m,C),l=c()+1;let x=z1(m,l),v=y.createHref(m);try{a.pushState(x,"",v)}catch(T){if(T instanceof DOMException&&T.name==="DataCloneError")throw T;i.location.assign(v)}s&&u&&u({action:o,location:y.location,delta:1})}function d(C,g){o=pi.Replace;let m=Yd(y.location,C,g);r&&r(m,C),l=c();let x=z1(m,l),v=y.createHref(m);a.replaceState(x,"",v),s&&u&&u({action:o,location:y.location,delta:0})}function f(C){let g=i.location.origin!=="null"?i.location.origin:i.location.href,m=typeof C=="string"?C:$c(C);return m=m.replace(/ $/,"%20"),et(g,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,g)}let y={get action(){return o},get location(){return e(i,a)},listen(C){if(u)throw new Error("A history only accepts one active listener");return i.addEventListener(V1,p),u=C,()=>{i.removeEventListener(V1,p),u=null}},createHref(C){return t(i,C)},createURL:f,encodeLocation(C){let g=f(C);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:h,replace:d,go(C){return a.go(C)}};return y}var q1;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(q1||(q1={}));function a3(e,t,r){return r===void 0&&(r="/"),o3(e,t,r,!1)}function o3(e,t,r,n){let i=typeof t=="string"?Ma(t):t,s=zm(i.pathname||"/",r);if(s==null)return null;let a=ME(e);u3(a);let o=null;for(let u=0;o==null&&u{let u={relativePath:o===void 0?s.path||"":o,caseSensitive:s.caseSensitive===!0,childrenIndex:a,route:s};u.relativePath.startsWith("/")&&(et(u.relativePath.startsWith(n),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(n.length));let l=Ci([n,u.relativePath]),c=r.concat(u);s.children&&s.children.length>0&&(et(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+l+'".')),ME(s.children,t,c,l)),!(s.path==null&&!s.index)&&t.push({path:l,score:m3(l,s.index),routesMeta:c})};return e.forEach((s,a)=>{var o;if(s.path===""||!((o=s.path)!=null&&o.includes("?")))i(s,a);else for(let u of jE(s.path))i(s,a,u)}),t}function jE(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,i=r.endsWith("?"),s=r.replace(/\?$/,"");if(n.length===0)return i?[s,""]:[s];let a=jE(n.join("/")),o=[];return o.push(...a.map(u=>u===""?s:[s,u].join("/"))),i&&o.push(...a),o.map(u=>e.startsWith("/")&&u===""?"/":u)}function u3(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:y3(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const l3=/^:[\w-]+$/,c3=3,p3=2,h3=1,d3=10,f3=-2,H1=e=>e==="*";function m3(e,t){let r=e.split("/"),n=r.length;return r.some(H1)&&(n+=f3),t&&(n+=p3),r.filter(i=>!H1(i)).reduce((i,s)=>i+(l3.test(s)?c3:s===""?h3:d3),n)}function y3(e,t){return e.length===t.length&&e.slice(0,-1).every((n,i)=>n===t[i])?e[e.length-1]-t[t.length-1]:0}function g3(e,t,r){r===void 0&&(r=!1);let{routesMeta:n}=e,i={},s="/",a=[];for(let o=0;o{let{paramName:h,isOptional:d}=c;if(h==="*"){let y=o[p]||"";a=s.slice(0,s.length-y.length).replace(/(.)\/+$/,"$1")}const f=o[p];return d&&!f?l[h]=void 0:l[h]=(f||"").replace(/%2F/g,"/"),l},{}),pathname:s,pathnameBase:a,pattern:e}}function D3(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),Vm(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,o,u)=>(n.push({paramName:o,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),n]}function x3(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Vm(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function zm(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}const E3=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,C3=e=>E3.test(e);function v3(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:i=""}=typeof e=="string"?Ma(e):e,s;if(r)if(C3(r))s=r;else{if(r.includes("//")){let a=r;r=r.replace(/\/\/+/g,"/"),Vm(!1,"Pathnames cannot have embedded double slashes - normalizing "+(a+" -> "+r))}r.startsWith("/")?s=J1(r.substring(1),"/"):s=J1(r,t)}else s=t;return{pathname:s,search:T3(n),hash:S3(i)}}function J1(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?r.length>1&&r.pop():i!=="."&&r.push(i)}),r.length>1?r.join("/"):"/"}function Dh(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function A3(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function qm(e,t){let r=A3(e);return t?r.map((n,i)=>i===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function Hm(e,t,r,n){n===void 0&&(n=!1);let i;typeof e=="string"?i=Ma(e):(i=Cu({},e),et(!i.pathname||!i.pathname.includes("?"),Dh("?","pathname","search",i)),et(!i.pathname||!i.pathname.includes("#"),Dh("#","pathname","hash",i)),et(!i.search||!i.search.includes("#"),Dh("#","search","hash",i)));let s=e===""||i.pathname==="",a=s?"/":i.pathname,o;if(a==null)o=r;else{let p=t.length-1;if(!n&&a.startsWith("..")){let h=a.split("/");for(;h[0]==="..";)h.shift(),p-=1;i.pathname=h.join("/")}o=p>=0?t[p]:"/"}let u=v3(i,o),l=a&&a!=="/"&&a.endsWith("/"),c=(s||a===".")&&r.endsWith("/");return!u.pathname.endsWith("/")&&(l||c)&&(u.pathname+="/"),u}const Ci=e=>e.join("/").replace(/\/\/+/g,"/"),b3=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),T3=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,S3=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function F3(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const RE=["post","put","patch","delete"];new Set(RE);const w3=["get",...RE];new Set(w3);/** * React Router v6.30.3 * * Copyright (c) Remix Software Inc. @@ -55,7 +55,7 @@ Error generating stack: `+s.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function gu(){return gu=Object.assign?Object.assign.bind():function(e){for(var t=1;t{o.current=!0}),_.useCallback(function(l,c){if(c===void 0&&(c={}),!o.current)return;if(typeof l=="number"){n.go(l);return}let p=Im(l,JSON.parse(a),s,c.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:Ei([t,p.pathname])),(c.replace?n.replace:n.push)(p,c.state,c)},[t,n,a,s,e])}const a3=_.createContext(null);function o3(e){let t=_.useContext(Rn).outlet;return t&&_.createElement(a3.Provider,{value:e},t)}function Sx(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=_.useContext(Bi),{matches:i}=_.useContext(Rn),{pathname:s}=$a(),a=JSON.stringify(Bm(i,n.v7_relativeSplatPath));return _.useMemo(()=>Im(e,JSON.parse(a),s,r==="path"),[e,a,s,r])}function u3(e,t){return l3(e,t)}function l3(e,t,r,n){La()||et(!1);let{navigator:i}=_.useContext(Bi),{matches:s}=_.useContext(Rn),a=s[s.length-1],o=a?a.params:{};a&&a.pathname;let u=a?a.pathnameBase:"/";a&&a.route;let l=$a(),c;if(t){var p;let x=typeof t=="string"?_a(t):t;u==="/"||(p=x.pathname)!=null&&p.startsWith(u)||et(!1),c=x}else c=l;let h=c.pathname||"/",d=h;if(u!=="/"){let x=u.replace(/^\//,"").split("/");d="/"+h.replace(/^\//,"").split("/").slice(x.length).join("/")}let f=_w(e,{pathname:d}),y=f3(f&&f.map(x=>Object.assign({},x,{params:Object.assign({},o,x.params),pathname:Ei([u,i.encodeLocation?i.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?u:Ei([u,i.encodeLocation?i.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),s,r,n);return t&&y?_.createElement(sp.Provider,{value:{location:gu({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:li.Pop}},y):y}function c3(){let e=D3(),t=t3(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},s=null;return _.createElement(_.Fragment,null,_.createElement("h2",null,"Unexpected Application Error!"),_.createElement("h3",{style:{fontStyle:"italic"}},t),r?_.createElement("pre",{style:i},r):null,s)}const p3=_.createElement(c3,null);class h3 extends _.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?_.createElement(Rn.Provider,{value:this.props.routeContext},_.createElement(vx.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function d3(e){let{routeContext:t,match:r,children:n}=e,i=_.useContext(_m);return i&&i.static&&i.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=r.route.id),_.createElement(Rn.Provider,{value:t},n)}function f3(e,t,r,n){var i;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var s;if(!r)return null;if(r.errors)e=r.matches;else if((s=n)!=null&&s.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let a=e,o=(i=r)==null?void 0:i.errors;if(o!=null){let c=a.findIndex(p=>p.route.id&&(o==null?void 0:o[p.route.id])!==void 0);c>=0||et(!1),a=a.slice(0,Math.min(a.length,c+1))}let u=!1,l=-1;if(r&&n&&n.v7_partialHydration)for(let c=0;c=0?a=a.slice(0,l+1):a=[a[0]];break}}}return a.reduceRight((c,p,h)=>{let d,f=!1,y=null,x=null;r&&(d=o&&p.route.id?o[p.route.id]:void 0,y=p.route.errorElement||p3,u&&(l<0&&h===0?(x3("route-fallback",!1),f=!0,x=null):l===h&&(f=!0,x=p.route.hydrateFallbackElement||null)));let g=t.concat(a.slice(0,h+1)),m=()=>{let D;return d?D=y:f?D=x:p.route.Component?D=_.createElement(p.route.Component,null):p.route.element?D=p.route.element:D=c,_.createElement(d3,{match:p,routeContext:{outlet:c,matches:g,isDataRoute:r!=null},children:D})};return r&&(p.route.ErrorBoundary||p.route.errorElement||h===0)?_.createElement(h3,{location:r.location,revalidation:r.revalidation,component:y,error:d,children:m(),routeContext:{outlet:null,matches:g,isDataRoute:!0}}):m()},null)}var Fx=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Fx||{}),Pc=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Pc||{});function m3(e){let t=_.useContext(_m);return t||et(!1),t}function y3(e){let t=_.useContext(n3);return t||et(!1),t}function g3(e){let t=_.useContext(Rn);return t||et(!1),t}function bx(e){let t=g3(),r=t.matches[t.matches.length-1];return r.route.id||et(!1),r.route.id}function D3(){var e;let t=_.useContext(vx),r=y3(Pc.UseRouteError),n=bx(Pc.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function E3(){let{router:e}=m3(Fx.UseNavigateStable),t=bx(Pc.UseNavigateStable),r=_.useRef(!1);return Ax(()=>{r.current=!0}),_.useCallback(function(i,s){s===void 0&&(s={}),r.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,gu({fromRouteId:t},s)))},[e,t])}const Ig={};function x3(e,t,r){!t&&!Ig[e]&&(Ig[e]=!0)}function C3(e,t){e==null||e.v7_startTransition,(e==null?void 0:e.v7_relativeSplatPath)===void 0&&(!t||t.v7_relativeSplatPath),t&&(t.v7_fetcherPersist,t.v7_normalizeFormMethod,t.v7_partialHydration,t.v7_skipActionErrorRevalidation)}function v3(e){let{to:t,replace:r,state:n,relative:i}=e;La()||et(!1);let{future:s,static:a}=_.useContext(Bi),{matches:o}=_.useContext(Rn),{pathname:u}=$a(),l=Tx(),c=Im(t,Bm(o,s.v7_relativeSplatPath),u,i==="path"),p=JSON.stringify(c);return _.useEffect(()=>l(JSON.parse(p),{replace:r,state:n,relative:i}),[l,p,i,r,n]),null}function A3(e){return o3(e.context)}function Kr(e){et(!1)}function T3(e){let{basename:t="/",children:r=null,location:n,navigationType:i=li.Pop,navigator:s,static:a=!1,future:o}=e;La()&&et(!1);let u=t.replace(/^\/*/,"/"),l=_.useMemo(()=>({basename:u,navigator:s,static:a,future:gu({v7_relativeSplatPath:!1},o)}),[u,o,s,a]);typeof n=="string"&&(n=_a(n));let{pathname:c="/",search:p="",hash:h="",state:d=null,key:f="default"}=n,y=_.useMemo(()=>{let x=Nm(c,u);return x==null?null:{location:{pathname:x,search:p,hash:h,state:d,key:f},navigationType:i}},[u,c,p,h,d,f,i]);return y==null?null:_.createElement(Bi.Provider,{value:l},_.createElement(sp.Provider,{children:r,value:y}))}function S3(e){let{children:t,location:r}=e;return u3(qd(t),r)}new Promise(()=>{});function qd(e,t){t===void 0&&(t=[]);let r=[];return _.Children.forEach(e,(n,i)=>{if(!_.isValidElement(n))return;let s=[...t,i];if(n.type===_.Fragment){r.push.apply(r,qd(n.props.children,s));return}n.type!==Kr&&et(!1),!n.props.index||!n.props.children||et(!1);let a={id:n.props.id||s.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(a.children=qd(n.props.children,s)),r.push(a)}),r}/** + */function vu(){return vu=Object.assign?Object.assign.bind():function(e){for(var t=1;t{o.current=!0}),I.useCallback(function(l,c){if(c===void 0&&(c={}),!o.current)return;if(typeof l=="number"){n.go(l);return}let p=Hm(l,JSON.parse(a),s,c.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:Ci([t,p.pathname])),(c.replace?n.replace:n.push)(p,c.state,c)},[t,n,a,s,e])}const B3=I.createContext(null);function I3(e){let t=I.useContext(Un).outlet;return t&&I.createElement(B3.Provider,{value:e},t)}function qE(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=I.useContext(_i),{matches:i}=I.useContext(Un),{pathname:s}=Ra(),a=JSON.stringify(qm(i,n.v7_relativeSplatPath));return I.useMemo(()=>Hm(e,JSON.parse(a),s,r==="path"),[e,a,s,r])}function _3(e,t){return L3(e,t)}function L3(e,t,r,n){ja()||et(!1);let{navigator:i}=I.useContext(_i),{matches:s}=I.useContext(Un),a=s[s.length-1],o=a?a.params:{};a&&a.pathname;let u=a?a.pathnameBase:"/";a&&a.route;let l=Ra(),c;if(t){var p;let C=typeof t=="string"?Ma(t):t;u==="/"||(p=C.pathname)!=null&&p.startsWith(u)||et(!1),c=C}else c=l;let h=c.pathname||"/",d=h;if(u!=="/"){let C=u.replace(/^\//,"").split("/");d="/"+h.replace(/^\//,"").split("/").slice(C.length).join("/")}let f=a3(e,{pathname:d}),y=R3(f&&f.map(C=>Object.assign({},C,{params:Object.assign({},o,C.params),pathname:Ci([u,i.encodeLocation?i.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?u:Ci([u,i.encodeLocation?i.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),s,r,n);return t&&y?I.createElement(fp.Provider,{value:{location:vu({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:pi.Pop}},y):y}function $3(){let e=q3(),t=F3(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},s=null;return I.createElement(I.Fragment,null,I.createElement("h2",null,"Unexpected Application Error!"),I.createElement("h3",{style:{fontStyle:"italic"}},t),r?I.createElement("pre",{style:i},r):null,s)}const O3=I.createElement($3,null);class M3 extends I.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?I.createElement(Un.Provider,{value:this.props.routeContext},I.createElement(UE.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function j3(e){let{routeContext:t,match:r,children:n}=e,i=I.useContext(Wm);return i&&i.static&&i.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=r.route.id),I.createElement(Un.Provider,{value:t},n)}function R3(e,t,r,n){var i;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var s;if(!r)return null;if(r.errors)e=r.matches;else if((s=n)!=null&&s.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let a=e,o=(i=r)==null?void 0:i.errors;if(o!=null){let c=a.findIndex(p=>p.route.id&&(o==null?void 0:o[p.route.id])!==void 0);c>=0||et(!1),a=a.slice(0,Math.min(a.length,c+1))}let u=!1,l=-1;if(r&&n&&n.v7_partialHydration)for(let c=0;c=0?a=a.slice(0,l+1):a=[a[0]];break}}}return a.reduceRight((c,p,h)=>{let d,f=!1,y=null,C=null;r&&(d=o&&p.route.id?o[p.route.id]:void 0,y=p.route.errorElement||O3,u&&(l<0&&h===0?(W3("route-fallback",!1),f=!0,C=null):l===h&&(f=!0,C=p.route.hydrateFallbackElement||null)));let g=t.concat(a.slice(0,h+1)),m=()=>{let x;return d?x=y:f?x=C:p.route.Component?x=I.createElement(p.route.Component,null):p.route.element?x=p.route.element:x=c,I.createElement(j3,{match:p,routeContext:{outlet:c,matches:g,isDataRoute:r!=null},children:x})};return r&&(p.route.ErrorBoundary||p.route.errorElement||h===0)?I.createElement(M3,{location:r.location,revalidation:r.revalidation,component:y,error:d,children:m(),routeContext:{outlet:null,matches:g,isDataRoute:!0}}):m()},null)}var HE=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(HE||{}),Oc=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Oc||{});function U3(e){let t=I.useContext(Wm);return t||et(!1),t}function V3(e){let t=I.useContext(k3);return t||et(!1),t}function z3(e){let t=I.useContext(Un);return t||et(!1),t}function WE(e){let t=z3(),r=t.matches[t.matches.length-1];return r.route.id||et(!1),r.route.id}function q3(){var e;let t=I.useContext(UE),r=V3(Oc.UseRouteError),n=WE(Oc.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function H3(){let{router:e}=U3(HE.UseNavigateStable),t=WE(Oc.UseNavigateStable),r=I.useRef(!1);return VE(()=>{r.current=!0}),I.useCallback(function(i,s){s===void 0&&(s={}),r.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,vu({fromRouteId:t},s)))},[e,t])}const X1={};function W3(e,t,r){!t&&!X1[e]&&(X1[e]=!0)}function J3(e,t){e==null||e.v7_startTransition,(e==null?void 0:e.v7_relativeSplatPath)===void 0&&(!t||t.v7_relativeSplatPath),t&&(t.v7_fetcherPersist,t.v7_normalizeFormMethod,t.v7_partialHydration,t.v7_skipActionErrorRevalidation)}function X3(e){let{to:t,replace:r,state:n,relative:i}=e;ja()||et(!1);let{future:s,static:a}=I.useContext(_i),{matches:o}=I.useContext(Un),{pathname:u}=Ra(),l=zE(),c=Hm(t,qm(o,s.v7_relativeSplatPath),u,i==="path"),p=JSON.stringify(c);return I.useEffect(()=>l(JSON.parse(p),{replace:r,state:n,relative:i}),[l,p,i,r,n]),null}function K3(e){return I3(e.context)}function Nr(e){et(!1)}function G3(e){let{basename:t="/",children:r=null,location:n,navigationType:i=pi.Pop,navigator:s,static:a=!1,future:o}=e;ja()&&et(!1);let u=t.replace(/^\/*/,"/"),l=I.useMemo(()=>({basename:u,navigator:s,static:a,future:vu({v7_relativeSplatPath:!1},o)}),[u,o,s,a]);typeof n=="string"&&(n=Ma(n));let{pathname:c="/",search:p="",hash:h="",state:d=null,key:f="default"}=n,y=I.useMemo(()=>{let C=zm(c,u);return C==null?null:{location:{pathname:C,search:p,hash:h,state:d,key:f},navigationType:i}},[u,c,p,h,d,f,i]);return y==null?null:I.createElement(_i.Provider,{value:l},I.createElement(fp.Provider,{children:r,value:y}))}function Q3(e){let{children:t,location:r}=e;return _3(Zd(t),r)}new Promise(()=>{});function Zd(e,t){t===void 0&&(t=[]);let r=[];return I.Children.forEach(e,(n,i)=>{if(!I.isValidElement(n))return;let s=[...t,i];if(n.type===I.Fragment){r.push.apply(r,Zd(n.props.children,s));return}n.type!==Nr&&et(!1),!n.props.index||!n.props.children||et(!1);let a={id:n.props.id||s.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(a.children=Zd(n.props.children,s)),r.push(a)}),r}/** * React Router DOM v6.30.3 * * Copyright (c) Remix Software Inc. @@ -64,8 +64,8 @@ Error generating stack: `+s.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Hd(){return Hd=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[i]=e[i]);return r}function b3(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function w3(e,t){return e.button===0&&(!t||t==="_self")&&!b3(e)}const P3=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],k3="6";try{window.__reactRouterVersion=k3}catch{}const N3="startTransition",_g=EF[N3];function B3(e){let{basename:t,children:r,future:n,window:i}=e,s=_.useRef();s.current==null&&(s.current=Nw({window:i,v5Compat:!0}));let a=s.current,[o,u]=_.useState({action:a.action,location:a.location}),{v7_startTransition:l}=n||{},c=_.useCallback(p=>{l&&_g?_g(()=>u(p)):u(p)},[u,l]);return _.useLayoutEffect(()=>a.listen(c),[a,c]),_.useEffect(()=>C3(n),[n]),_.createElement(T3,{basename:t,children:r,location:o.location,navigationType:o.action,navigator:a,future:n})}const I3=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",_3=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,L3=_.forwardRef(function(t,r){let{onClick:n,relative:i,reloadDocument:s,replace:a,state:o,target:u,to:l,preventScrollReset:c,viewTransition:p}=t,h=F3(t,P3),{basename:d}=_.useContext(Bi),f,y=!1;if(typeof l=="string"&&_3.test(l)&&(f=l,I3))try{let D=new URL(window.location.href),v=l.startsWith("//")?new URL(D.protocol+l):new URL(l),b=Nm(v.pathname,d);v.origin===D.origin&&b!=null?l=b+v.search+v.hash:y=!0}catch{}let x=i3(l,{relative:i}),g=$3(l,{replace:a,state:o,target:u,preventScrollReset:c,relative:i,viewTransition:p});function m(D){n&&n(D),D.defaultPrevented||g(D)}return _.createElement("a",Hd({},h,{href:f||x,onClick:y||s?n:m,ref:r,target:u}))});var Lg;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Lg||(Lg={}));var $g;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})($g||($g={}));function $3(e,t){let{target:r,replace:n,state:i,preventScrollReset:s,relative:a,viewTransition:o}=t===void 0?{}:t,u=Tx(),l=$a(),c=Sx(e,{relative:a});return _.useCallback(p=>{if(w3(p,r)){p.preventDefault();let h=n!==void 0?n:wc(l)===wc(c);u(e,{replace:h,state:i,preventScrollReset:s,relative:a,viewTransition:o})}},[l,u,c,n,i,r,e,s,a,o])}var O3={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const M3=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Pe=(e,t)=>{const r=_.forwardRef(({color:n="currentColor",size:i=24,strokeWidth:s=2,absoluteStrokeWidth:a,children:o,...u},l)=>_.createElement("svg",{ref:l,...O3,width:i,height:i,stroke:n,strokeWidth:a?Number(s)*24/Number(i):s,className:`lucide lucide-${M3(e)}`,...u},[...t.map(([c,p])=>_.createElement(c,p)),...(Array.isArray(o)?o:[o])||[]]));return r.displayName=`${e}`,r},Wd=Pe("AlignLeft",[["line",{x1:"21",x2:"3",y1:"6",y2:"6",key:"1fp77t"}],["line",{x1:"15",x2:"3",y1:"12",y2:"12",key:"v6grx8"}],["line",{x1:"17",x2:"3",y1:"18",y2:"18",key:"1awlsn"}]]),wx=Pe("ArrowLeftRight",[["path",{d:"M8 3 4 7l4 4",key:"9rb6wj"}],["path",{d:"M4 7h16",key:"6tx8e3"}],["path",{d:"m16 21 4-4-4-4",key:"siv7j2"}],["path",{d:"M20 17H4",key:"h6l3hr"}]]),j3=Pe("Binary",[["rect",{x:"14",y:"14",width:"4",height:"6",rx:"2",key:"p02svl"}],["rect",{x:"6",y:"4",width:"4",height:"6",rx:"2",key:"xm4xkj"}],["path",{d:"M6 20h4",key:"1i6q5t"}],["path",{d:"M14 10h4",key:"ru81e7"}],["path",{d:"M6 14h2v6",key:"16z9wg"}],["path",{d:"M14 4h2v6",key:"1idq9u"}]]),R3=Pe("Braces",[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]]),Px=Pe("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),kx=Pe("Clipboard",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}]]),U3=Pe("Code2",[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]]),Jd=Pe("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]),V3=Pe("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]),z3=Pe("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]),Nx=Pe("FileCode",[["path",{d:"M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z",key:"1nnpy2"}],["polyline",{points:"14 2 14 8 20 8",key:"1ew0cm"}],["path",{d:"m10 13-2 2 2 2",key:"17smn8"}],["path",{d:"m14 17 2-2-2-2",key:"14mezr"}]]),Bx=Pe("FileJson",[["path",{d:"M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z",key:"1nnpy2"}],["polyline",{points:"14 2 14 8 20 8",key:"1ew0cm"}],["path",{d:"M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1",key:"1oajmo"}],["path",{d:"M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1",key:"mpwhp6"}]]),q3=Pe("FileText",[["path",{d:"M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z",key:"1nnpy2"}],["polyline",{points:"14 2 14 8 20 8",key:"1ew0cm"}],["line",{x1:"16",x2:"8",y1:"13",y2:"13",key:"14keom"}],["line",{x1:"16",x2:"8",y1:"17",y2:"17",key:"17nazh"}],["line",{x1:"10",x2:"8",y1:"9",y2:"9",key:"1a5vjj"}]]),H3=Pe("GitCompare",[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M13 6h3a2 2 0 0 1 2 2v7",key:"1yeb86"}],["path",{d:"M11 18H8a2 2 0 0 1-2-2V9",key:"19pyzm"}]]),W3=Pe("Hash",[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]),Ix=Pe("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]),J3=Pe("Monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]),X3=Pe("MousePointer2",[["path",{d:"m4 4 7.07 17 2.51-7.39L21 11.07z",key:"1vqm48"}]]),_x=Pe("Play",[["polygon",{points:"5 3 19 12 5 21 5 3",key:"191637"}]]),K3=Pe("Quote",[["path",{d:"M3 21c3 0 7-1 7-8V5c0-1.25-.756-2.017-2-2H4c-1.25 0-2 .75-2 1.972V11c0 1.25.75 2 2 2 1 0 1 0 1 1v1c0 1-1 2-2 2s-1 .008-1 1.031V20c0 1 0 1 1 1z",key:"4rm80e"}],["path",{d:"M15 21c3 0 7-1 7-8V5c0-1.25-.757-2.017-2-2h-4c-1.25 0-2 .75-2 1.972V11c0 1.25.75 2 2 2h.75c0 2.25.25 4-2.75 4v3c0 1 0 1 1 1z",key:"10za9r"}]]),G3=Pe("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]),Q3=Pe("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]),Lx=Pe("Ruler",[["path",{d:"M21.3 15.3a2.4 2.4 0 0 1 0 3.4l-2.6 2.6a2.4 2.4 0 0 1-3.4 0L2.7 8.7a2.41 2.41 0 0 1 0-3.4l2.6-2.6a2.41 2.41 0 0 1 3.4 0Z",key:"icamh8"}],["path",{d:"m14.5 12.5 2-2",key:"inckbg"}],["path",{d:"m11.5 9.5 2-2",key:"fmmyf7"}],["path",{d:"m8.5 6.5 2-2",key:"vc6u1g"}],["path",{d:"m17.5 15.5 2-2",key:"wo5hmg"}]]),Y3=Pe("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),Z3=Pe("Smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]),eP=Pe("Table",[["path",{d:"M12 3v18",key:"108xh3"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}]]),$x=Pe("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]),tP=Pe("Type",[["polyline",{points:"4 7 4 4 20 4 20 7",key:"1nosan"}],["line",{x1:"9",x2:"15",y1:"20",y2:"20",key:"swin9y"}],["line",{x1:"12",x2:"12",y1:"4",y2:"20",key:"1tx1rr"}]]),rP=Pe("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]),nP=Pe("Zap",[["polygon",{points:"13 2 3 14 12 14 11 22 21 10 12 10 13 2",key:"45s27k"}]]);function iP(){const e=$a(),t=[{path:"/formatter",label:"Formatter",icon:Bx},{path:"/parser",label:"JSON Parser",icon:R3},{path:"/diff",label:"Diff Viewer",icon:wx},{path:"/unit-conversion",label:"Unit Converter",icon:Lx},{path:"/image-converter",label:"Image Converter",icon:Ix},{path:"/data-converter",label:"Data Converter",icon:V3},{path:"/text-analyzer",label:"Text Analyzer",icon:Wd}];return C.jsxs("div",{className:"flex h-screen bg-background text-foreground font-sans",children:[C.jsxs("aside",{className:"w-64 border-r border-border bg-card",children:[C.jsxs("div",{className:"p-6 flex items-center gap-2 border-b border-border",children:[C.jsx(U3,{className:"w-6 h-6 text-primary"}),C.jsx("h1",{className:"text-xl font-bold tracking-tight",children:"DevAssistant"})]}),C.jsx("nav",{className:"p-4 space-y-2",children:t.map(r=>{const n=e.pathname===r.path,i=r.icon;return C.jsxs(L3,{to:r.path,className:`flex items-center gap-3 px-4 py-3 rounded-md text-sm font-medium transition-colors ${n?"bg-primary text-primary-foreground":"text-muted-foreground hover:bg-muted hover:text-foreground"}`,children:[C.jsx(i,{className:"w-5 h-5"}),r.label]},r.path)})})]}),C.jsx("main",{className:"flex-1 overflow-auto bg-background/50",children:C.jsx("div",{className:"h-full p-8 max-w-7xl mx-auto",children:C.jsx(A3,{})})})]})}function Og(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r=e.length?e.apply(this,i):function(){for(var a=arguments.length,o=new Array(a),u=0;u1&&arguments[1]!==void 0?arguments[1]:{};yl.initial(e),yl.handler(t);var r={current:e},n=So(wP)(r,t),i=So(bP)(r),s=So(yl.changes)(e),a=So(FP)(r);function o(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(c){return c};return yl.selector(l),l(r.current)}function u(l){yP(n,i,s,a)(l)}return[o,u]}function FP(e,t){return Du(t)?t(e.current):t}function bP(e,t){return e.current=Ug(Ug({},e.current),t),t}function wP(e,t,r){return Du(t)?t(e.current):Object.keys(r).forEach(function(n){var i;return(i=t[n])===null||i===void 0?void 0:i.call(t,e.current[n])}),r}var PP={create:SP},kP={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"}};function NP(e){return function t(){for(var r=this,n=arguments.length,i=new Array(n),s=0;s=e.length?e.apply(this,i):function(){for(var a=arguments.length,o=new Array(a),u=0;u=0)&&(r[i]=e[i]);return r}function Z3(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function ek(e,t){return e.button===0&&(!t||t==="_self")&&!Z3(e)}const tk=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],rk="6";try{window.__reactRouterVersion=rk}catch{}const nk="startTransition",K1=HS[nk];function ik(e){let{basename:t,children:r,future:n,window:i}=e,s=I.useRef();s.current==null&&(s.current=n3({window:i,v5Compat:!0}));let a=s.current,[o,u]=I.useState({action:a.action,location:a.location}),{v7_startTransition:l}=n||{},c=I.useCallback(p=>{l&&K1?K1(()=>u(p)):u(p)},[u,l]);return I.useLayoutEffect(()=>a.listen(c),[a,c]),I.useEffect(()=>J3(n),[n]),I.createElement(G3,{basename:t,children:r,location:o.location,navigationType:o.action,navigator:a,future:n})}const sk=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",ak=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ok=I.forwardRef(function(t,r){let{onClick:n,relative:i,reloadDocument:s,replace:a,state:o,target:u,to:l,preventScrollReset:c,viewTransition:p}=t,h=Y3(t,tk),{basename:d}=I.useContext(_i),f,y=!1;if(typeof l=="string"&&ak.test(l)&&(f=l,sk))try{let x=new URL(window.location.href),v=l.startsWith("//")?new URL(x.protocol+l):new URL(l),T=zm(v.pathname,d);v.origin===x.origin&&T!=null?l=T+v.search+v.hash:y=!0}catch{}let C=P3(l,{relative:i}),g=uk(l,{replace:a,state:o,target:u,preventScrollReset:c,relative:i,viewTransition:p});function m(x){n&&n(x),x.defaultPrevented||g(x)}return I.createElement("a",ef({},h,{href:f||C,onClick:y||s?n:m,ref:r,target:u}))});var G1;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(G1||(G1={}));var Q1;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Q1||(Q1={}));function uk(e,t){let{target:r,replace:n,state:i,preventScrollReset:s,relative:a,viewTransition:o}=t===void 0?{}:t,u=zE(),l=Ra(),c=qE(e,{relative:a});return I.useCallback(p=>{if(ek(p,r)){p.preventDefault();let h=n!==void 0?n:$c(l)===$c(c);u(e,{replace:h,state:i,preventScrollReset:s,relative:a,viewTransition:o})}},[l,u,c,n,i,r,e,s,a,o])}var lk={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const ck=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ae=(e,t)=>{const r=I.forwardRef(({color:n="currentColor",size:i=24,strokeWidth:s=2,absoluteStrokeWidth:a,children:o,...u},l)=>I.createElement("svg",{ref:l,...lk,width:i,height:i,stroke:n,strokeWidth:a?Number(s)*24/Number(i):s,className:`lucide lucide-${ck(e)}`,...u},[...t.map(([c,p])=>I.createElement(c,p)),...(Array.isArray(o)?o:[o])||[]]));return r.displayName=`${e}`,r},tf=Ae("AlignLeft",[["line",{x1:"21",x2:"3",y1:"6",y2:"6",key:"1fp77t"}],["line",{x1:"15",x2:"3",y1:"12",y2:"12",key:"v6grx8"}],["line",{x1:"17",x2:"3",y1:"18",y2:"18",key:"1awlsn"}]]),JE=Ae("ArrowLeftRight",[["path",{d:"M8 3 4 7l4 4",key:"9rb6wj"}],["path",{d:"M4 7h16",key:"6tx8e3"}],["path",{d:"m16 21 4-4-4-4",key:"siv7j2"}],["path",{d:"M20 17H4",key:"h6l3hr"}]]),XE=Ae("Binary",[["rect",{x:"14",y:"14",width:"4",height:"6",rx:"2",key:"p02svl"}],["rect",{x:"6",y:"4",width:"4",height:"6",rx:"2",key:"xm4xkj"}],["path",{d:"M6 20h4",key:"1i6q5t"}],["path",{d:"M14 10h4",key:"ru81e7"}],["path",{d:"M6 14h2v6",key:"16z9wg"}],["path",{d:"M14 4h2v6",key:"1idq9u"}]]),pk=Ae("Braces",[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]]),zo=Ae("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),Jm=Ae("Clipboard",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}]]),hk=Ae("Code2",[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]]),rf=Ae("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]),dk=Ae("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]),fk=Ae("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]),KE=Ae("FileCode",[["path",{d:"M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z",key:"1nnpy2"}],["polyline",{points:"14 2 14 8 20 8",key:"1ew0cm"}],["path",{d:"m10 13-2 2 2 2",key:"17smn8"}],["path",{d:"m14 17 2-2-2-2",key:"14mezr"}]]),GE=Ae("FileJson",[["path",{d:"M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z",key:"1nnpy2"}],["polyline",{points:"14 2 14 8 20 8",key:"1ew0cm"}],["path",{d:"M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1",key:"1oajmo"}],["path",{d:"M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1",key:"mpwhp6"}]]),mk=Ae("FileText",[["path",{d:"M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z",key:"1nnpy2"}],["polyline",{points:"14 2 14 8 20 8",key:"1ew0cm"}],["line",{x1:"16",x2:"8",y1:"13",y2:"13",key:"14keom"}],["line",{x1:"16",x2:"8",y1:"17",y2:"17",key:"17nazh"}],["line",{x1:"10",x2:"8",y1:"9",y2:"9",key:"1a5vjj"}]]),yk=Ae("GitCompare",[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M13 6h3a2 2 0 0 1 2 2v7",key:"1yeb86"}],["path",{d:"M11 18H8a2 2 0 0 1-2-2V9",key:"19pyzm"}]]),gk=Ae("Hash",[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]),Dk=Ae("Hexagon",[["path",{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z",key:"yt0hxn"}]]),QE=Ae("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]),xk=Ae("Key",[["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["path",{d:"m15.5 7.5 3 3L22 7l-3-3",key:"1rn1fs"}]]),Ek=Ae("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]),Ck=Ae("Monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]),vk=Ae("MousePointer2",[["path",{d:"m4 4 7.07 17 2.51-7.39L21 11.07z",key:"1vqm48"}]]),YE=Ae("Play",[["polygon",{points:"5 3 19 12 5 21 5 3",key:"191637"}]]),Ak=Ae("Quote",[["path",{d:"M3 21c3 0 7-1 7-8V5c0-1.25-.756-2.017-2-2H4c-1.25 0-2 .75-2 1.972V11c0 1.25.75 2 2 2 1 0 1 0 1 1v1c0 1-1 2-2 2s-1 .008-1 1.031V20c0 1 0 1 1 1z",key:"4rm80e"}],["path",{d:"M15 21c3 0 7-1 7-8V5c0-1.25-.757-2.017-2-2h-4c-1.25 0-2 .75-2 1.972V11c0 1.25.75 2 2 2h.75c0 2.25.25 4-2.75 4v3c0 1 0 1 1 1z",key:"10za9r"}]]),nf=Ae("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]),bk=Ae("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]),ZE=Ae("Ruler",[["path",{d:"M21.3 15.3a2.4 2.4 0 0 1 0 3.4l-2.6 2.6a2.4 2.4 0 0 1-3.4 0L2.7 8.7a2.41 2.41 0 0 1 0-3.4l2.6-2.6a2.41 2.41 0 0 1 3.4 0Z",key:"icamh8"}],["path",{d:"m14.5 12.5 2-2",key:"inckbg"}],["path",{d:"m11.5 9.5 2-2",key:"fmmyf7"}],["path",{d:"m8.5 6.5 2-2",key:"vc6u1g"}],["path",{d:"m17.5 15.5 2-2",key:"wo5hmg"}]]),Tk=Ae("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),Yl=Ae("Shield",[["path",{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10",key:"1irkt0"}]]),Sk=Ae("Smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]),Fk=Ae("Table",[["path",{d:"M12 3v18",key:"108xh3"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}]]),eC=Ae("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]),wk=Ae("Type",[["polyline",{points:"4 7 4 4 20 4 20 7",key:"1nosan"}],["line",{x1:"9",x2:"15",y1:"20",y2:"20",key:"swin9y"}],["line",{x1:"12",x2:"12",y1:"4",y2:"20",key:"1tx1rr"}]]),kk=Ae("Unlock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 9.9-1",key:"1mm8w8"}]]),Pk=Ae("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]),Nk=Ae("Zap",[["polygon",{points:"13 2 3 14 12 14 11 22 21 10 12 10 13 2",key:"45s27k"}]]);function Bk(){const e=Ra(),t=[{path:"/formatter",label:"Formatter",icon:GE},{path:"/parser",label:"JSON Parser",icon:pk},{path:"/diff",label:"Diff Viewer",icon:JE},{path:"/unit-conversion",label:"Unit Converter",icon:ZE},{path:"/image-converter",label:"Image Converter",icon:QE},{path:"/data-converter",label:"Data Converter",icon:dk},{path:"/text-analyzer",label:"Text Analyzer",icon:tf},{path:"/bcrypt",label:"BCrypt Tool",icon:Yl}];return D.jsxs("div",{className:"flex h-screen bg-background text-foreground font-sans",children:[D.jsxs("aside",{className:"w-64 border-r border-border bg-card",children:[D.jsxs("div",{className:"p-6 flex items-center gap-2 border-b border-border",children:[D.jsx(hk,{className:"w-6 h-6 text-primary"}),D.jsx("h1",{className:"text-xl font-bold tracking-tight",children:"DevAssistant"})]}),D.jsx("nav",{className:"p-4 space-y-2",children:t.map(r=>{const n=e.pathname===r.path,i=r.icon;return D.jsxs(ok,{to:r.path,className:`flex items-center gap-3 px-4 py-3 rounded-md text-sm font-medium transition-colors ${n?"bg-primary text-primary-foreground":"text-muted-foreground hover:bg-muted hover:text-foreground"}`,children:[D.jsx(i,{className:"w-5 h-5"}),r.label]},r.path)})})]}),D.jsx("main",{className:"flex-1 overflow-auto bg-background/50",children:D.jsx("div",{className:"h-full p-8 max-w-7xl mx-auto",children:D.jsx(K3,{})})})]})}function Y1(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r=e.length?e.apply(this,i):function(){for(var a=arguments.length,o=new Array(a),u=0;u1&&arguments[1]!==void 0?arguments[1]:{};Al.initial(e),Al.handler(t);var r={current:e},n=ko(rP)(r,t),i=ko(tP)(r),s=ko(Al.changes)(e),a=ko(eP)(r);function o(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(c){return c};return Al.selector(l),l(r.current)}function u(l){qk(n,i,s,a)(l)}return[o,u]}function eP(e,t){return Au(t)?t(e.current):t}function tP(e,t){return e.current=rg(rg({},e.current),t),t}function rP(e,t,r){return Au(t)?t(e.current):Object.keys(r).forEach(function(n){var i;return(i=t[n])===null||i===void 0?void 0:i.call(t,e.current[n])}),r}var nP={create:Zk},iP={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"}};function sP(e){return function t(){for(var r=this,n=arguments.length,i=new Array(n),s=0;s=e.length?e.apply(this,i):function(){for(var a=arguments.length,o=new Array(a),u=0;u{n.current=!1}:e,t)}var ir=nk;function jo(){}function ta(e,t,r,n){return ik(e,n)||sk(e,t,r,n)}function ik(e,t){return e.editor.getModel(qx(e,t))}function sk(e,t,r,n){return e.editor.createModel(t,r,n?qx(e,n):void 0)}function qx(e,t){return e.Uri.parse(t)}function ak({original:e,modified:t,language:r,originalLanguage:n,modifiedLanguage:i,originalModelPath:s,modifiedModelPath:a,keepCurrentOriginalModel:o=!1,keepCurrentModifiedModel:u=!1,theme:l="light",loading:c="Loading...",options:p={},height:h="100%",width:d="100%",className:f,wrapperProps:y={},beforeMount:x=jo,onMount:g=jo}){let[m,D]=_.useState(!1),[v,b]=_.useState(!0),P=_.useRef(null),N=_.useRef(null),E=_.useRef(null),A=_.useRef(g),T=_.useRef(x),B=_.useRef(!1);zx(()=>{let K=Ux.init();return K.then(ne=>(N.current=ne)&&b(!1)).catch(ne=>(ne==null?void 0:ne.type)!=="cancelation"&&console.error("Monaco initialization: error:",ne)),()=>P.current?J():K.cancel()}),ir(()=>{if(P.current&&N.current){let K=P.current.getOriginalEditor(),ne=ta(N.current,e||"",n||r||"text",s||"");ne!==K.getModel()&&K.setModel(ne)}},[s],m),ir(()=>{if(P.current&&N.current){let K=P.current.getModifiedEditor(),ne=ta(N.current,t||"",i||r||"text",a||"");ne!==K.getModel()&&K.setModel(ne)}},[a],m),ir(()=>{let K=P.current.getModifiedEditor();K.getOption(N.current.editor.EditorOption.readOnly)?K.setValue(t||""):t!==K.getValue()&&(K.executeEdits("",[{range:K.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),K.pushUndoStop())},[t],m),ir(()=>{var K,ne;(ne=(K=P.current)==null?void 0:K.getModel())==null||ne.original.setValue(e||"")},[e],m),ir(()=>{let{original:K,modified:ne}=P.current.getModel();N.current.editor.setModelLanguage(K,n||r||"text"),N.current.editor.setModelLanguage(ne,i||r||"text")},[r,n,i],m),ir(()=>{var K;(K=N.current)==null||K.editor.setTheme(l)},[l],m),ir(()=>{var K;(K=P.current)==null||K.updateOptions(p)},[p],m);let M=_.useCallback(()=>{var Z;if(!N.current)return;T.current(N.current);let K=ta(N.current,e||"",n||r||"text",s||""),ne=ta(N.current,t||"",i||r||"text",a||"");(Z=P.current)==null||Z.setModel({original:K,modified:ne})},[r,t,i,e,n,s,a]),k=_.useCallback(()=>{var K;!B.current&&E.current&&(P.current=N.current.editor.createDiffEditor(E.current,{automaticLayout:!0,...p}),M(),(K=N.current)==null||K.editor.setTheme(l),D(!0),B.current=!0)},[p,l,M]);_.useEffect(()=>{m&&A.current(P.current,N.current)},[m]),_.useEffect(()=>{!v&&!m&&k()},[v,m,k]);function J(){var ne,Z,$,V;let K=(ne=P.current)==null?void 0:ne.getModel();o||((Z=K==null?void 0:K.original)==null||Z.dispose()),u||(($=K==null?void 0:K.modified)==null||$.dispose()),(V=P.current)==null||V.dispose()}return ci.createElement(Vx,{width:d,height:h,isEditorReady:m,loading:c,_ref:E,className:f,wrapperProps:y})}var ok=ak;_.memo(ok);function uk(e){let t=_.useRef();return _.useEffect(()=>{t.current=e},[e]),t.current}var lk=uk,gl=new Map;function ck({defaultValue:e,defaultLanguage:t,defaultPath:r,value:n,language:i,path:s,theme:a="light",line:o,loading:u="Loading...",options:l={},overrideServices:c={},saveViewState:p=!0,keepCurrentModel:h=!1,width:d="100%",height:f="100%",className:y,wrapperProps:x={},beforeMount:g=jo,onMount:m=jo,onChange:D,onValidate:v=jo}){let[b,P]=_.useState(!1),[N,E]=_.useState(!0),A=_.useRef(null),T=_.useRef(null),B=_.useRef(null),M=_.useRef(m),k=_.useRef(g),J=_.useRef(),K=_.useRef(n),ne=lk(s),Z=_.useRef(!1),$=_.useRef(!1);zx(()=>{let z=Ux.init();return z.then(G=>(A.current=G)&&E(!1)).catch(G=>(G==null?void 0:G.type)!=="cancelation"&&console.error("Monaco initialization: error:",G)),()=>T.current?W():z.cancel()}),ir(()=>{var G,O,re,se;let z=ta(A.current,e||n||"",t||i||"",s||r||"");z!==((G=T.current)==null?void 0:G.getModel())&&(p&&gl.set(ne,(O=T.current)==null?void 0:O.saveViewState()),(re=T.current)==null||re.setModel(z),p&&((se=T.current)==null||se.restoreViewState(gl.get(s))))},[s],b),ir(()=>{var z;(z=T.current)==null||z.updateOptions(l)},[l],b),ir(()=>{!T.current||n===void 0||(T.current.getOption(A.current.editor.EditorOption.readOnly)?T.current.setValue(n):n!==T.current.getValue()&&($.current=!0,T.current.executeEdits("",[{range:T.current.getModel().getFullModelRange(),text:n,forceMoveMarkers:!0}]),T.current.pushUndoStop(),$.current=!1))},[n],b),ir(()=>{var G,O;let z=(G=T.current)==null?void 0:G.getModel();z&&i&&((O=A.current)==null||O.editor.setModelLanguage(z,i))},[i],b),ir(()=>{var z;o!==void 0&&((z=T.current)==null||z.revealLine(o))},[o],b),ir(()=>{var z;(z=A.current)==null||z.editor.setTheme(a)},[a],b);let V=_.useCallback(()=>{var z;if(!(!B.current||!A.current)&&!Z.current){k.current(A.current);let G=s||r,O=ta(A.current,n||e||"",t||i||"",G||"");T.current=(z=A.current)==null?void 0:z.editor.create(B.current,{model:O,automaticLayout:!0,...l},c),p&&T.current.restoreViewState(gl.get(G)),A.current.editor.setTheme(a),o!==void 0&&T.current.revealLine(o),P(!0),Z.current=!0}},[e,t,r,n,i,s,l,c,p,a,o]);_.useEffect(()=>{b&&M.current(T.current,A.current)},[b]),_.useEffect(()=>{!N&&!b&&V()},[N,b,V]),K.current=n,_.useEffect(()=>{var z,G;b&&D&&((z=J.current)==null||z.dispose(),J.current=(G=T.current)==null?void 0:G.onDidChangeModelContent(O=>{$.current||D(T.current.getValue(),O)}))},[b,D]),_.useEffect(()=>{if(b){let z=A.current.editor.onDidChangeMarkers(G=>{var re;let O=(re=T.current.getModel())==null?void 0:re.uri;if(O&&G.find(se=>se.path===O.path)){let se=A.current.editor.getModelMarkers({resource:O});v==null||v(se)}});return()=>{z==null||z.dispose()}}return()=>{}},[b,v]);function W(){var z,G;(z=J.current)==null||z.dispose(),h?p&&gl.set(s,T.current.saveViewState()):(G=T.current.getModel())==null||G.dispose(),T.current.dispose()}return ci.createElement(Vx,{width:d,height:f,isEditorReady:b,loading:u,_ref:B,className:y,wrapperProps:x})}var pk=ck,hk=_.memo(pk),xa=hk,dk=Object.create,Lm=Object.defineProperty,fk=Object.getOwnPropertyDescriptor,mk=Object.getOwnPropertyNames,yk=Object.getPrototypeOf,gk=Object.prototype.hasOwnProperty,Dk=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),$m=(e,t)=>{for(var r in t)Lm(e,r,{get:t[r],enumerable:!0})},Ek=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of mk(t))!gk.call(e,i)&&i!==r&&Lm(e,i,{get:()=>t[i],enumerable:!(n=fk(t,i))||n.enumerable});return e},xk=(e,t,r)=>(r=e!=null?dk(yk(e)):{},Ek(t||!e||!e.__esModule?Lm(r,"default",{value:e,enumerable:!0}):r,e)),Ck=Dk((e,t)=>{var r,n,i,s,a,o,u,l,c,p,h,d,f,y,x,g,m,D,v;f=/\/(?![*\/])(?:\[(?:[^\]\\\n\r\u2028\u2029]+|\\.)*\]|[^\/\\\n\r\u2028\u2029]+|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/yu,d=/--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y,r=/(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]+|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/yu,x=/(['"])(?:[^'"\\\n\r]+|(?!\1)['"]|\\(?:\r\n|[^]))*(\1)?/y,h=/(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y,g=/[`}](?:[^`\\$]+|\\[^]|\$(?!\{))*(`|\$\{)?/y,v=/[\t\v\f\ufeff\p{Zs}]+/yu,l=/\r?\n|[\r\u2028\u2029]/y,c=/\/\*(?:[^*]+|\*(?!\/))*(\*\/)?/y,y=/\/\/.*/y,i=/[<>.:={}]|\/(?![\/*])/y,n=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/yu,s=/(['"])(?:[^'"]+|(?!\1)['"])*(\1)?/y,a=/[^<>{}]+/y,D=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/,m=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/,o=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/,u=/^(?:return|throw|yield)$/,p=RegExp(l.source),t.exports=function*(b,{jsx:P=!1}={}){var N,E,A,T,B,M,k,J,K,ne,Z,$,V,W;for({length:M}=b,T=0,B="",W=[{tag:"JS"}],N=[],Z=0,$=!1;T":W.pop(),B==="/"||J.tag==="JSXTagEnd"?(ne="?JSX",$=!0):W.push({tag:"JSXChildren"});break;case"{":W.push({tag:"InterpolationInJSX",nesting:N.length}),ne="?InterpolationInJSX",$=!1;break;case"/":B==="<"&&(W.pop(),W[W.length-1].tag==="JSXChildren"&&W.pop(),W.push({tag:"JSXTagEnd"}))}B=ne,yield{type:"JSXPunctuator",value:k[0]};continue}if(n.lastIndex=T,k=n.exec(b)){T=n.lastIndex,B=k[0],yield{type:"JSXIdentifier",value:k[0]};continue}if(s.lastIndex=T,k=s.exec(b)){T=s.lastIndex,B=k[0],yield{type:"JSXString",value:k[0],closed:k[2]!==void 0};continue}break;case"JSXChildren":if(a.lastIndex=T,k=a.exec(b)){T=a.lastIndex,B=k[0],yield{type:"JSXText",value:k[0]};continue}switch(b[T]){case"<":W.push({tag:"JSXTag"}),T++,B="<",yield{type:"JSXPunctuator",value:"<"};continue;case"{":W.push({tag:"InterpolationInJSX",nesting:N.length}),T++,B="?InterpolationInJSX",$=!1,yield{type:"JSXPunctuator",value:"{"};continue}}if(v.lastIndex=T,k=v.exec(b)){T=v.lastIndex,yield{type:"WhiteSpace",value:k[0]};continue}if(l.lastIndex=T,k=l.exec(b)){T=l.lastIndex,$=!1,u.test(B)&&(B="?NoLineTerminatorHere"),yield{type:"LineTerminatorSequence",value:k[0]};continue}if(c.lastIndex=T,k=c.exec(b)){T=c.lastIndex,p.test(k[0])&&($=!1,u.test(B)&&(B="?NoLineTerminatorHere")),yield{type:"MultiLineComment",value:k[0],closed:k[1]!==void 0};continue}if(y.lastIndex=T,k=y.exec(b)){T=y.lastIndex,$=!1,yield{type:"SingleLineComment",value:k[0]};continue}E=String.fromCodePoint(b.codePointAt(T)),T+=E.length,B=E,$=!1,yield{type:J.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:E}}}}),vk={};$m(vk,{__debug:()=>cI,check:()=>uI,doc:()=>jC,format:()=>fp,formatWithCursor:()=>zC,getSupportInfo:()=>lI,util:()=>RC,version:()=>LB});var Lu=(e,t)=>(r,n,...i)=>r|1&&n==null?void 0:(t.call(n)??n[e]).apply(n,i),Ak=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},Tk=Lu("replaceAll",function(){if(typeof this=="string")return Ak}),op=Tk,Sk=class{diff(t,r,n={}){let i;typeof n=="function"?(i=n,n={}):"callback"in n&&(i=n.callback);let s=this.castInput(t,n),a=this.castInput(r,n),o=this.removeEmpty(this.tokenize(s,n)),u=this.removeEmpty(this.tokenize(a,n));return this.diffWithOptionsObj(o,u,n,i)}diffWithOptionsObj(t,r,n,i){var s;let a=m=>{if(m=this.postProcess(m,n),i){setTimeout(function(){i(m)},0);return}else return m},o=r.length,u=t.length,l=1,c=o+u;n.maxEditLength!=null&&(c=Math.min(c,n.maxEditLength));let p=(s=n.timeout)!==null&&s!==void 0?s:1/0,h=Date.now()+p,d=[{oldPos:-1,lastComponent:void 0}],f=this.extractCommon(d[0],r,t,0,n);if(d[0].oldPos+1>=u&&f+1>=o)return a(this.buildValues(d[0].lastComponent,r,t));let y=-1/0,x=1/0,g=()=>{for(let m=Math.max(y,-l);m<=Math.min(x,l);m+=2){let D,v=d[m-1],b=d[m+1];v&&(d[m-1]=void 0);let P=!1;if(b){let E=b.oldPos-m;P=b&&0<=E&&E=u&&f+1>=o)return a(this.buildValues(D.lastComponent,r,t))||!0;d[m]=D,D.oldPos+1>=u&&(x=Math.min(x,m-1)),f+1>=o&&(y=Math.max(y,m+1))}l++};if(i)(function m(){setTimeout(function(){if(l>c||Date.now()>h)return i(void 0);g()||m()},0)})();else for(;l<=c&&Date.now()<=h;){let m=g();if(m)return m}}addToPath(t,r,n,i,s){let a=t.lastComponent;return a&&!s.oneChangePerToken&&a.added===r&&a.removed===n?{oldPos:t.oldPos+i,lastComponent:{count:a.count+1,added:r,removed:n,previousComponent:a.previousComponent}}:{oldPos:t.oldPos+i,lastComponent:{count:1,added:r,removed:n,previousComponent:a}}}extractCommon(t,r,n,i,s){let a=r.length,o=n.length,u=t.oldPos,l=u-i,c=0;for(;l+1h.length?f:h}),c.value=this.join(p)}else c.value=this.join(r.slice(u,u+c.count));u+=c.count,c.added||(l+=c.count)}}return i}},Fk=class extends Sk{tokenize(t){return t.slice()}join(t){return t}removeEmpty(t){return t}},bk=new Fk;function wk(e,t,r){return bk.diff(e,t,r)}var Pk=()=>{},kk=Pk,Hx="cr",Wx="crlf",Nk="lf",Bk=Nk,Om="\r",Jx=`\r -`,up=` -`,Ik=up;function _k(e){let t=e.indexOf(Om);return t!==-1?e.charAt(t+1)===up?Wx:Hx:Bk}function Mm(e){return e===Hx?Om:e===Wx?Jx:Ik}var Lk=new Map([[up,/\n/gu],[Om,/\r/gu],[Jx,/\r\n/gu]]);function Xx(e,t){var n;let r=Lk.get(t);return((n=e.match(r))==null?void 0:n.length)??0}var $k=/\r\n?/gu;function Ok(e){return op(0,e,$k,up)}function Mk(e){return this[e<0?this.length+e:e]}var jk=Lu("at",function(){if(Array.isArray(this)||typeof this=="string")return Mk}),at=jk,xs="string",In="array",Ii="cursor",Un="indent",Vn="align",zn="trim",Zt="group",hn="fill",or="if-break",qn="indent-if-break",Hn="line-suffix",Wn="line-suffix-boundary",vt="line",dn="label",Fr="break-parent",Kx=new Set([Ii,Un,Vn,zn,Zt,hn,or,qn,Hn,Wn,vt,dn,Fr]);function Rk(e){let t=e.length;for(;t>0&&(e[t-1]==="\r"||e[t-1]===` -`);)t--;return tnew Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function zk(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}', -Expected it to be 'string' or 'object'.`;if(Cs(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=Vk([...Kx].map(i=>`'${i}'`));return`Unexpected doc.type '${e.type}'. -Expected it to be ${n}.`}var qk=class extends Error{constructor(r){super(zk(r));H(this,"name","InvalidDocError");this.doc=r}},Ca=qk,zg={};function Hk(e,t,r,n){let i=[e];for(;i.length>0;){let s=i.pop();if(s===zg){r(i.pop());continue}r&&i.push(s,zg);let a=Cs(s);if(!a)throw new Ca(s);if((t==null?void 0:t(s))!==!1)switch(a){case In:case hn:{let o=a===In?s:s.parts;for(let u=o.length,l=u-1;l>=0;--l)i.push(o[l]);break}case or:i.push(s.flatContents,s.breakContents);break;case Zt:if(n&&s.expandedStates)for(let o=s.expandedStates.length,u=o-1;u>=0;--u)i.push(s.expandedStates[u]);else i.push(s.contents);break;case Vn:case Un:case qn:case dn:case Hn:i.push(s.contents);break;case xs:case Ii:case zn:case Wn:case vt:case Fr:break;default:throw new Ca(s)}}}var jm=Hk;function lp(e,t){if(typeof e=="string")return t(e);let r=new Map;return n(e);function n(s){if(r.has(s))return r.get(s);let a=i(s);return r.set(s,a),a}function i(s){switch(Cs(s)){case In:return t(s.map(n));case hn:return t({...s,parts:s.parts.map(n)});case or:return t({...s,breakContents:n(s.breakContents),flatContents:n(s.flatContents)});case Zt:{let{expandedStates:a,contents:o}=s;return a?(a=a.map(n),o=a[0]):o=n(o),t({...s,contents:o,expandedStates:a})}case Vn:case Un:case qn:case dn:case Hn:return t({...s,contents:n(s.contents)});case xs:case Ii:case zn:case Wn:case vt:case Fr:return t(s);default:throw new Ca(s)}}}function Rm(e,t,r){let n=r,i=!1;function s(a){if(i)return!1;let o=t(a);o!==void 0&&(i=!0,n=o)}return jm(e,s),n}function Wk(e){if(e.type===Zt&&e.break||e.type===vt&&e.hard||e.type===Fr)return!0}function Jk(e){return Rm(e,Wk,!1)}function qg(e){if(e.length>0){let t=at(0,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function Xk(e){let t=new Set,r=[];function n(s){if(s.type===Fr&&qg(r),s.type===Zt){if(r.push(s),t.has(s))return!1;t.add(s)}}function i(s){s.type===Zt&&r.pop().break&&qg(r)}jm(e,n,i,!0)}function Kk(e){return e.type===vt&&!e.hard?e.soft?"":" ":e.type===or?e.flatContents:e}function Gk(e){return lp(e,Kk)}function Hg(e){for(e=[...e];e.length>=2&&at(0,e,-2).type===vt&&at(0,e,-1).type===Fr;)e.length-=2;if(e.length>0){let t=Ro(at(0,e,-1));e[e.length-1]=t}return e}function Ro(e){switch(Cs(e)){case Un:case qn:case Zt:case Hn:case dn:{let t=Ro(e.contents);return{...e,contents:t}}case or:return{...e,breakContents:Ro(e.breakContents),flatContents:Ro(e.flatContents)};case hn:return{...e,parts:Hg(e.parts)};case In:return Hg(e);case xs:return Rk(e);case Vn:case Ii:case zn:case Wn:case vt:case Fr:break;default:throw new Ca(e)}return e}function Gx(e){return Ro(Yk(e))}function Qk(e){switch(Cs(e)){case hn:if(e.parts.every(t=>t===""))return"";break;case Zt:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===Zt&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case Vn:case Un:case qn:case Hn:if(!e.contents)return"";break;case or:if(!e.flatContents&&!e.breakContents)return"";break;case In:{let t=[];for(let r of e){if(!r)continue;let[n,...i]=Array.isArray(r)?r:[r];typeof n=="string"&&typeof at(0,t,-1)=="string"?t[t.length-1]+=n:t.push(n),t.push(...i)}return t.length===0?"":t.length===1?t[0]:t}case xs:case Ii:case zn:case Wn:case vt:case dn:case Fr:break;default:throw new Ca(e)}return e}function Yk(e){return lp(e,t=>Qk(t))}function Zk(e,t=nC){return lp(e,r=>typeof r=="string"?eC(t,r.split(` -`)):r)}function eN(e){if(e.type===vt)return!0}function tN(e){return Rm(e,eN,!1)}function Hl(e,t){return e.type===dn?{...e,contents:t(e.contents)}:t(e)}var rN=kk;function Nc(e){return{type:Un,contents:e}}function va(e,t){return{type:Vn,contents:t,n:e}}function nN(e){return va(Number.NEGATIVE_INFINITY,e)}function Qx(e){return va({type:"root"},e)}function iN(e){return va(-1,e)}function Yx(e,t,r){let n=e;if(t>0){for(let i=0;i0?`, { ${c.join(", ")} }`:"";return`indentIfBreak(${n(s.contents)}${p})`}if(s.type===Zt){let c=[];s.break&&s.break!=="propagated"&&c.push("shouldBreak: true"),s.id&&c.push(`id: ${i(s.id)}`);let p=c.length>0?`, { ${c.join(", ")} }`:"";return s.expandedStates?`conditionalGroup([${s.expandedStates.map(h=>n(h)).join(",")}]${p})`:`group(${n(s.contents)}${p})`}if(s.type===hn)return`fill([${s.parts.map(c=>n(c)).join(", ")}])`;if(s.type===Hn)return"lineSuffix("+n(s.contents)+")";if(s.type===Wn)return"lineSuffixBoundary";if(s.type===dn)return`label(${JSON.stringify(s.label)}, ${n(s.contents)})`;if(s.type===Ii)return"cursor";throw new Error("Unknown doc type "+s.type)}function i(s){if(typeof s!="symbol")return JSON.stringify(String(s));if(s in t)return t[s];let a=s.description||"symbol";for(let o=0;;o++){let u=a+(o>0?` #${o}`:"");if(!r.has(u))return r.add(u),t[s]=`Symbol.for(${JSON.stringify(u)})`}}}var fN=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function mN(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function yN(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9776&&e<=9783||e>=9800&&e<=9811||e===9855||e>=9866&&e<=9871||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e>=94192&&e<=94198||e>=94208&&e<=101589||e>=101631&&e<=101662||e>=101760&&e<=101874||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128728||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129674||e>=129678&&e<=129734||e===129736||e>=129741&&e<=129756||e>=129759&&e<=129770||e>=129775&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}var gN="©®‼⁉™ℹ↔↕↖↗↘↙↩↪⌨⏏⏱⏲⏸⏹⏺▪▫▶◀◻◼☀☁☂☃☄☎☑☘☝☠☢☣☦☪☮☯☸☹☺♀♂♟♠♣♥♦♨♻♾⚒⚔⚕⚖⚗⚙⚛⚜⚠⚧⚰⚱⛈⛏⛑⛓⛩⛱⛷⛸⛹✂✈✉✌✍✏✒✔✖✝✡✳✴❄❇❣❤➡⤴⤵⬅⬆⬇",DN=/[^\x20-\x7F]/u,EN=new Set(gN);function xN(e){if(!e)return 0;if(!DN.test(e))return e.length;e=e.replace(fN(),r=>EN.has(r)?" ":" ");let t=0;for(let r of e){let n=r.codePointAt(0);n<=31||n>=127&&n<=159||n>=768&&n<=879||n>=65024&&n<=65039||(t+=mN(n)||yN(n)?2:1)}return t}var Vm=xN,CN={type:0},vN={type:1},iC={value:"",length:0,queue:[],get root(){return iC}};function sC(e,t,r){let n=t.type===1?e.queue.slice(0,-1):[...e.queue,t],i="",s=0,a=0,o=0;for(let f of n)switch(f.type){case 0:c(),r.useTabs?u(1):l(r.tabWidth);break;case 3:{let{string:y}=f;c(),i+=y,s+=y.length;break}case 2:{let{width:y}=f;a+=1,o+=y;break}default:throw new Error(`Unexpected indent comment '${f.type}'.`)}return h(),{...e,value:i,length:s,queue:n};function u(f){i+=" ".repeat(f),s+=r.tabWidth*f}function l(f){i+=" ".repeat(f),s+=f}function c(){r.useTabs?p():h()}function p(){a>0&&u(a),d()}function h(){o>0&&l(o),d()}function d(){a=0,o=0}}function AN(e,t,r){if(!t)return e;if(t.type==="root")return{...e,root:e};if(t===Number.NEGATIVE_INFINITY)return e.root;let n;return typeof t=="number"?t<0?n=vN:n={type:2,width:t}:n={type:3,string:t},sC(e,n,r)}function TN(e,t){return sC(e,CN,t)}function SN(e){let t=0;for(let r=e.length-1;r>=0;r--){let n=e[r];if(n===" "||n===" ")t++;else break}return t}function aC(e){let t=SN(e);return{text:t===0?e:e.slice(0,e.length-t),count:t}}var qt=Symbol("MODE_BREAK"),Gr=Symbol("MODE_FLAT"),Kd=Symbol("DOC_FILL_PRINTED_LENGTH");function Dl(e,t,r,n,i,s){if(r===Number.POSITIVE_INFINITY)return!0;let a=t.length,o=!1,u=[e],l="";for(;r>=0;){if(u.length===0){if(a===0)return!0;u.push(t[--a]);continue}let{mode:c,doc:p}=u.pop(),h=Cs(p);switch(h){case xs:p&&(o&&(l+=" ",r-=1,o=!1),l+=p,r-=Vm(p));break;case In:case hn:{let d=h===In?p:p.parts,f=p[Kd]??0;for(let y=d.length-1;y>=f;y--)u.push({mode:c,doc:d[y]});break}case Un:case Vn:case qn:case dn:u.push({mode:c,doc:p.contents});break;case zn:{let{text:d,count:f}=aC(l);l=d,r+=f;break}case Zt:{if(s&&p.break)return!1;let d=p.break?qt:c,f=p.expandedStates&&d===qt?at(0,p.expandedStates,-1):p.contents;u.push({mode:d,doc:f});break}case or:{let d=(p.groupId?i[p.groupId]||Gr:c)===qt?p.breakContents:p.flatContents;d&&u.push({mode:c,doc:d});break}case vt:if(c===qt||p.hard)return!0;p.soft||(o=!0);break;case Hn:n=!0;break;case Wn:if(n)return!1;break}}return!1}function pp(e,t){let r=Object.create(null),n=t.printWidth,i=Mm(t.endOfLine),s=0,a=[{indent:iC,mode:qt,doc:e}],o="",u=!1,l=[],c=[],p=[],h=[],d=0;for(Xk(e);a.length>0;){let{indent:m,mode:D,doc:v}=a.pop();switch(Cs(v)){case xs:{let b=i!==` -`?op(0,v,` -`,i):v;b&&(o+=b,a.length>0&&(s+=Vm(b)));break}case In:for(let b=v.length-1;b>=0;b--)a.push({indent:m,mode:D,doc:v[b]});break;case Ii:if(c.length>=2)throw new Error("There are too many 'cursor' in doc.");c.push(d+o.length);break;case Un:a.push({indent:TN(m,t),mode:D,doc:v.contents});break;case Vn:a.push({indent:AN(m,v.n,t),mode:D,doc:v.contents});break;case zn:g();break;case Zt:switch(D){case Gr:if(!u){a.push({indent:m,mode:v.break?qt:Gr,doc:v.contents});break}case qt:{u=!1;let b={indent:m,mode:Gr,doc:v.contents},P=n-s,N=l.length>0;if(!v.break&&Dl(b,a,P,N,r))a.push(b);else if(v.expandedStates){let E=at(0,v.expandedStates,-1);if(v.break){a.push({indent:m,mode:qt,doc:E});break}else for(let A=1;A=v.expandedStates.length){a.push({indent:m,mode:qt,doc:E});break}else{let T=v.expandedStates[A],B={indent:m,mode:Gr,doc:T};if(Dl(B,a,P,N,r)){a.push(B);break}}}else a.push({indent:m,mode:qt,doc:v.contents});break}}v.id&&(r[v.id]=at(0,a,-1).mode);break;case hn:{let b=n-s,P=v[Kd]??0,{parts:N}=v,E=N.length-P;if(E===0)break;let A=N[P+0],T=N[P+1],B={indent:m,mode:Gr,doc:A},M={indent:m,mode:qt,doc:A},k=Dl(B,[],b,l.length>0,r,!0);if(E===1){k?a.push(B):a.push(M);break}let J={indent:m,mode:Gr,doc:T},K={indent:m,mode:qt,doc:T};if(E===2){k?a.push(J,B):a.push(K,M);break}let ne=N[P+2],Z={indent:m,mode:D,doc:{...v,[Kd]:P+2}},$=Dl({indent:m,mode:Gr,doc:[A,T,ne]},[],b,l.length>0,r,!0);a.push(Z),$?a.push(J,B):k?a.push(K,B):a.push(K,M);break}case or:case qn:{let b=v.groupId?r[v.groupId]:D;if(b===qt){let P=v.type===or?v.breakContents:v.negate?v.contents:Nc(v.contents);P&&a.push({indent:m,mode:D,doc:P})}if(b===Gr){let P=v.type===or?v.flatContents:v.negate?Nc(v.contents):v.contents;P&&a.push({indent:m,mode:D,doc:P})}break}case Hn:l.push({indent:m,mode:D,doc:v.contents});break;case Wn:l.length>0&&a.push({indent:m,mode:D,doc:Um});break;case vt:switch(D){case Gr:if(v.hard)u=!0;else{v.soft||(o+=" ",s+=1);break}case qt:if(l.length>0){a.push({indent:m,mode:D,doc:v},...l.reverse()),l.length=0;break}v.literal?(o+=i,s=0,m.root&&(m.root.value&&(o+=m.root.value),s=m.root.length)):(g(),o+=i+m.value,s=m.length);break}break;case dn:a.push({indent:m,mode:D,doc:v.contents});break;case Fr:break;default:throw new Ca(v)}a.length===0&&l.length>0&&(a.push(...l.reverse()),l.length=0)}let f=p.join("")+o,y=[...h,...c];if(y.length!==2)return{formatted:f};let x=y[0];return{formatted:f,cursorNodeStart:x,cursorNodeText:f.slice(x,at(0,y,-1))};function g(){let{text:m,count:D}=aC(o);m&&(p.push(m),d+=m.length),o="",s-=D,c.length>0&&(h.push(...c.map(v=>Math.min(v,d))),c.length=0)}}function FN(e,t,r=0){let n=0;for(let i=r;i1?at(0,t,-2):null}getValue(){return at(0,this.stack,-1)}getNode(t=0){let r=Kn(this,wu,Gd).call(this,t);return r===-1?null:this.stack[r]}getParentNode(t=0){return this.getNode(t+1)}call(t,...r){let{stack:n}=this,{length:i}=n,s=at(0,n,-1);for(let a of r)s=s==null?void 0:s[a],n.push(a,s);try{return t(this)}finally{n.length=i}}callParent(t,r=0){let n=Kn(this,wu,Gd).call(this,r+1),i=this.stack.splice(n+1);try{return t(this)}finally{this.stack.push(...i)}}each(t,...r){let{stack:n}=this,{length:i}=n,s=at(0,n,-1);for(let a of r)s=s[a],n.push(a,s);try{for(let a=0;a{n[s]=t(i,s,a)},...r),n}match(...t){let r=this.stack.length-1,n=null,i=this.stack[r--];for(let s of t){if(i===void 0)return!1;let a=null;if(typeof n=="number"&&(a=n,n=this.stack[r--],i=this.stack[r--]),s&&!s(i,n,a))return!1;n=this.stack[r--],i=this.stack[r--]}return!0}findAncestor(t){for(let r of Kn(this,ha,Wl).call(this))if(t(r))return r}hasAncestor(t){for(let r of Kn(this,ha,Wl).call(this))if(t(r))return!0;return!1}},wu=new WeakSet,Gd=function(t){let{stack:r}=this;for(let n=r.length-1;n>=0;n-=2)if(!Array.isArray(r[n])&&--t<0)return n;return-1},ha=new WeakSet,Wl=function*(){let{stack:t}=this;for(let r=t.length-3;r>=0;r-=2){let n=t[r];Array.isArray(n)||(yield n)}},n2),wN=bN;function PN(e){return e!==null&&typeof e=="object"}var qm=PN;function $u(e){return(t,r,n)=>{let i=!!(n!=null&&n.backwards);if(r===!1)return!1;let{length:s}=t,a=r;for(;a>=0&&ae===` -`||e==="\r"||e==="\u2028"||e==="\u2029";function NN(e,t,r){let n=!!(r!=null&&r.backwards);if(t===!1)return!1;let i=e.charAt(t);if(n){if(e.charAt(t-1)==="\r"&&i===` -`)return t-2;if(Wg(i))return t-1}else{if(i==="\r"&&e.charAt(t+1)===` -`)return t+2;if(Wg(i))return t+1}return t}var ds=NN;function BN(e,t,r={}){let n=Fi(e,r.backwards?t-1:t,r),i=ds(e,n,r);return n!==i}var Ci=BN;function IN(e){return Array.isArray(e)&&e.length>0}var _N=IN;function*hp(e,t){let{getVisitorKeys:r,filter:n=()=>!0}=t,i=s=>qm(s)&&n(s);for(let s of r(e)){let a=e[s];if(Array.isArray(a))for(let o of a)i(o)&&(yield o);else i(a)&&(yield a)}}function*LN(e,t){let r=[e];for(let n=0;n(s??(s=[e,...t]),i(c,s)?[c]:lC(c,s,r))),{locStart:o,locEnd:u}=r;return a.sort((c,p)=>o(c)-o(p)||u(c)-u(p)),n.set(e,a),a}var cC=lC;function ON(e){let t=e.type||e.kind||"(unknown type)",r=String(e.name||e.id&&(typeof e.id=="object"?e.id.name:e.id)||e.key&&(typeof e.key=="object"?e.key.name:e.key)||e.value&&(typeof e.value=="object"?"":String(e.value))||e.operator||"");return r.length>20&&(r=r.slice(0,19)+"…"),t+(r?" "+r:"")}function Hm(e,t){(e.comments??(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=ON(e)}function Uo(e,t){t.leading=!0,t.trailing=!1,Hm(e,t)}function Ki(e,t,r){t.leading=!1,t.trailing=!1,r&&(t.marker=r),Hm(e,t)}function Vo(e,t){t.leading=!1,t.trailing=!0,Hm(e,t)}var pC=new WeakMap;function hC(e,t,r,n,i=[]){let{locStart:s,locEnd:a}=r,o=s(t),u=a(t),l=cC(e,i,{cache:pC,locStart:s,locEnd:a,getVisitorKeys:r.getVisitorKeys,filter:r.printer.canAttachComment,getChildren:r.printer.getCommentChildNodes}),c,p,h=0,d=l.length;for(;h>1,y=l[f],x=s(y),g=a(y);if(x<=o&&u<=g)return hC(y,t,r,y,[y,...i]);if(g<=o){c=y,h=f+1;continue}if(u<=x){p=y,d=f;continue}throw new Error("Comment location overlaps with node location")}if((n==null?void 0:n.type)==="TemplateLiteral"){let{quasis:f}=n,y=fh(f,t,r);c&&fh(f,c,r)!==y&&(c=null),p&&fh(f,p,r)!==y&&(p=null)}return{enclosingNode:n,precedingNode:c,followingNode:p}}var dh=()=>!1;function MN(e,t){let{comments:r}=e;if(delete e.comments,!_N(r)||!t.printer.canAttachComment)return;let n=[],{printer:{features:{experimental_avoidAstMutation:i},handleComments:s={}},originalText:a}=t,{ownLine:o=dh,endOfLine:u=dh,remaining:l=dh}=s,c=r.map((p,h)=>({...hC(e,p,t),comment:p,text:a,options:t,ast:e,isLastComment:r.length-1===h}));for(let[p,h]of c.entries()){let{comment:d,precedingNode:f,enclosingNode:y,followingNode:x,text:g,options:m,ast:D,isLastComment:v}=h,b;if(i?b=[h]:(d.enclosingNode=y,d.precedingNode=f,d.followingNode=x,b=[d,g,m,D,v]),jN(g,m,c,p))d.placement="ownLine",o(...b)||(x?Uo(x,d):f?Vo(f,d):Ki(y||D,d));else if(RN(g,m,c,p))d.placement="endOfLine",u(...b)||(f?Vo(f,d):x?Uo(x,d):Ki(y||D,d));else if(d.placement="remaining",!l(...b))if(f&&x){let P=n.length;P>0&&n[P-1].followingNode!==x&&Jg(n,m),n.push(h)}else f?Vo(f,d):x?Uo(x,d):Ki(y||D,d)}if(Jg(n,t),!i)for(let p of r)delete p.precedingNode,delete p.enclosingNode,delete p.followingNode}var dC=e=>!/[\S\n\u2028\u2029]/u.test(e);function jN(e,t,r,n){let{comment:i,precedingNode:s}=r[n],{locStart:a,locEnd:o}=t,u=a(i);if(s)for(let l=n-1;l>=0;l--){let{comment:c,precedingNode:p}=r[l];if(p!==s||!dC(e.slice(o(c),u)))break;u=a(c)}return Ci(e,u,{backwards:!0})}function RN(e,t,r,n){let{comment:i,followingNode:s}=r[n],{locStart:a,locEnd:o}=t,u=o(i);if(s)for(let l=n+1;l0;--a){let{comment:l,precedingNode:c,followingNode:p}=e[a-1],h=t.originalText.slice(t.locEnd(l),s);if(((u=(o=t.printer).isGap)==null?void 0:u.call(o,h,t))??/^[\s(]*$/u.test(h))s=t.locStart(l);else break}for(let[l,{comment:c}]of e.entries())l1&&l.comments.sort((c,p)=>t.locStart(c)-t.locStart(p));e.length=0}function fh(e,t,r){let n=r.locStart(t)-1;for(let i=1;i!n.has(o)).length===0)return{leading:"",trailing:""};let i=[],s=[],a;return e.each(()=>{let o=e.node;if(n!=null&&n.has(o))return;let{leading:u,trailing:l}=o;u?i.push(VN(e,t)):l&&(a=zN(e,t,a),s.push(a.doc))},"comments"),{leading:i,trailing:s}}function HN(e,t,r){let{leading:n,trailing:i}=qN(e,r);return!n&&!i?t:Hl(t,s=>[n,s,i])}function WN(e){let{[Symbol.for("comments")]:t,[Symbol.for("printedComments")]:r}=e;for(let n of t){if(!n.printed&&!r.has(n))throw new Error('Comment "'+n.value.trim()+'" was not printed. Please report this error!');delete n.printed}}var mC=class extends Error{constructor(){super(...arguments);H(this,"name","ConfigError")}},Xg=class extends Error{constructor(){super(...arguments);H(this,"name","UndefinedParserError")}},JN={checkIgnorePragma:{category:"Special",type:"boolean",default:!1,description:"Check whether the file's first docblock comment contains '@noprettier' or '@noformat' to determine if it should be formatted.",cliCategory:"Other"},cursorOffset:{category:"Special",type:"int",default:-1,range:{start:-1,end:1/0,step:1},description:"Print (to stderr) where a cursor at the given position would move to after formatting.",cliCategory:"Editor"},endOfLine:{category:"Global",type:"choice",default:"lf",description:"Which end of line characters to apply.",choices:[{value:"lf",description:"Line Feed only (\\n), common on Linux and macOS as well as inside git repos"},{value:"crlf",description:"Carriage Return + Line Feed characters (\\r\\n), common on Windows"},{value:"cr",description:"Carriage Return character only (\\r), used very rarely"},{value:"auto",description:`Maintain existing + `},ng=sP(lP)(tC),cP={config:oP},pP=function(){for(var t=arguments.length,r=new Array(t),n=0;n{n.current=!1}:e,t)}var ir=NP;function qo(){}function sa(e,t,r,n){return BP(e,n)||IP(e,t,r,n)}function BP(e,t){return e.editor.getModel(uC(e,t))}function IP(e,t,r,n){return e.editor.createModel(t,r,n?uC(e,n):void 0)}function uC(e,t){return e.Uri.parse(t)}function _P({original:e,modified:t,language:r,originalLanguage:n,modifiedLanguage:i,originalModelPath:s,modifiedModelPath:a,keepCurrentOriginalModel:o=!1,keepCurrentModifiedModel:u=!1,theme:l="light",loading:c="Loading...",options:p={},height:h="100%",width:d="100%",className:f,wrapperProps:y={},beforeMount:C=qo,onMount:g=qo}){let[m,x]=I.useState(!1),[v,T]=I.useState(!0),k=I.useRef(null),N=I.useRef(null),E=I.useRef(null),A=I.useRef(g),b=I.useRef(C),B=I.useRef(!1);oC(()=>{let K=sC.init();return K.then(ne=>(N.current=ne)&&T(!1)).catch(ne=>(ne==null?void 0:ne.type)!=="cancelation"&&console.error("Monaco initialization: error:",ne)),()=>k.current?J():K.cancel()}),ir(()=>{if(k.current&&N.current){let K=k.current.getOriginalEditor(),ne=sa(N.current,e||"",n||r||"text",s||"");ne!==K.getModel()&&K.setModel(ne)}},[s],m),ir(()=>{if(k.current&&N.current){let K=k.current.getModifiedEditor(),ne=sa(N.current,t||"",i||r||"text",a||"");ne!==K.getModel()&&K.setModel(ne)}},[a],m),ir(()=>{let K=k.current.getModifiedEditor();K.getOption(N.current.editor.EditorOption.readOnly)?K.setValue(t||""):t!==K.getValue()&&(K.executeEdits("",[{range:K.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),K.pushUndoStop())},[t],m),ir(()=>{var K,ne;(ne=(K=k.current)==null?void 0:K.getModel())==null||ne.original.setValue(e||"")},[e],m),ir(()=>{let{original:K,modified:ne}=k.current.getModel();N.current.editor.setModelLanguage(K,n||r||"text"),N.current.editor.setModelLanguage(ne,i||r||"text")},[r,n,i],m),ir(()=>{var K;(K=N.current)==null||K.editor.setTheme(l)},[l],m),ir(()=>{var K;(K=k.current)==null||K.updateOptions(p)},[p],m);let M=I.useCallback(()=>{var Z;if(!N.current)return;b.current(N.current);let K=sa(N.current,e||"",n||r||"text",s||""),ne=sa(N.current,t||"",i||r||"text",a||"");(Z=k.current)==null||Z.setModel({original:K,modified:ne})},[r,t,i,e,n,s,a]),P=I.useCallback(()=>{var K;!B.current&&E.current&&(k.current=N.current.editor.createDiffEditor(E.current,{automaticLayout:!0,...p}),M(),(K=N.current)==null||K.editor.setTheme(l),x(!0),B.current=!0)},[p,l,M]);I.useEffect(()=>{m&&A.current(k.current,N.current)},[m]),I.useEffect(()=>{!v&&!m&&P()},[v,m,P]);function J(){var ne,Z,$,V;let K=(ne=k.current)==null?void 0:ne.getModel();o||((Z=K==null?void 0:K.original)==null||Z.dispose()),u||(($=K==null?void 0:K.modified)==null||$.dispose()),(V=k.current)==null||V.dispose()}return hi.createElement(aC,{width:d,height:h,isEditorReady:m,loading:c,_ref:E,className:f,wrapperProps:y})}var LP=_P;I.memo(LP);function $P(e){let t=I.useRef();return I.useEffect(()=>{t.current=e},[e]),t.current}var OP=$P,bl=new Map;function MP({defaultValue:e,defaultLanguage:t,defaultPath:r,value:n,language:i,path:s,theme:a="light",line:o,loading:u="Loading...",options:l={},overrideServices:c={},saveViewState:p=!0,keepCurrentModel:h=!1,width:d="100%",height:f="100%",className:y,wrapperProps:C={},beforeMount:g=qo,onMount:m=qo,onChange:x,onValidate:v=qo}){let[T,k]=I.useState(!1),[N,E]=I.useState(!0),A=I.useRef(null),b=I.useRef(null),B=I.useRef(null),M=I.useRef(m),P=I.useRef(g),J=I.useRef(),K=I.useRef(n),ne=OP(s),Z=I.useRef(!1),$=I.useRef(!1);oC(()=>{let z=sC.init();return z.then(G=>(A.current=G)&&E(!1)).catch(G=>(G==null?void 0:G.type)!=="cancelation"&&console.error("Monaco initialization: error:",G)),()=>b.current?W():z.cancel()}),ir(()=>{var G,O,re,se;let z=sa(A.current,e||n||"",t||i||"",s||r||"");z!==((G=b.current)==null?void 0:G.getModel())&&(p&&bl.set(ne,(O=b.current)==null?void 0:O.saveViewState()),(re=b.current)==null||re.setModel(z),p&&((se=b.current)==null||se.restoreViewState(bl.get(s))))},[s],T),ir(()=>{var z;(z=b.current)==null||z.updateOptions(l)},[l],T),ir(()=>{!b.current||n===void 0||(b.current.getOption(A.current.editor.EditorOption.readOnly)?b.current.setValue(n):n!==b.current.getValue()&&($.current=!0,b.current.executeEdits("",[{range:b.current.getModel().getFullModelRange(),text:n,forceMoveMarkers:!0}]),b.current.pushUndoStop(),$.current=!1))},[n],T),ir(()=>{var G,O;let z=(G=b.current)==null?void 0:G.getModel();z&&i&&((O=A.current)==null||O.editor.setModelLanguage(z,i))},[i],T),ir(()=>{var z;o!==void 0&&((z=b.current)==null||z.revealLine(o))},[o],T),ir(()=>{var z;(z=A.current)==null||z.editor.setTheme(a)},[a],T);let V=I.useCallback(()=>{var z;if(!(!B.current||!A.current)&&!Z.current){P.current(A.current);let G=s||r,O=sa(A.current,n||e||"",t||i||"",G||"");b.current=(z=A.current)==null?void 0:z.editor.create(B.current,{model:O,automaticLayout:!0,...l},c),p&&b.current.restoreViewState(bl.get(G)),A.current.editor.setTheme(a),o!==void 0&&b.current.revealLine(o),k(!0),Z.current=!0}},[e,t,r,n,i,s,l,c,p,a,o]);I.useEffect(()=>{T&&M.current(b.current,A.current)},[T]),I.useEffect(()=>{!N&&!T&&V()},[N,T,V]),K.current=n,I.useEffect(()=>{var z,G;T&&x&&((z=J.current)==null||z.dispose(),J.current=(G=b.current)==null?void 0:G.onDidChangeModelContent(O=>{$.current||x(b.current.getValue(),O)}))},[T,x]),I.useEffect(()=>{if(T){let z=A.current.editor.onDidChangeMarkers(G=>{var re;let O=(re=b.current.getModel())==null?void 0:re.uri;if(O&&G.find(se=>se.path===O.path)){let se=A.current.editor.getModelMarkers({resource:O});v==null||v(se)}});return()=>{z==null||z.dispose()}}return()=>{}},[T,v]);function W(){var z,G;(z=J.current)==null||z.dispose(),h?p&&bl.set(s,b.current.saveViewState()):(G=b.current.getModel())==null||G.dispose(),b.current.dispose()}return hi.createElement(aC,{width:d,height:f,isEditorReady:T,loading:u,_ref:B,className:y,wrapperProps:C})}var jP=MP,RP=I.memo(jP),ba=RP,UP=Object.create,Xm=Object.defineProperty,VP=Object.getOwnPropertyDescriptor,zP=Object.getOwnPropertyNames,qP=Object.getPrototypeOf,HP=Object.prototype.hasOwnProperty,WP=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Km=(e,t)=>{for(var r in t)Xm(e,r,{get:t[r],enumerable:!0})},JP=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of zP(t))!HP.call(e,i)&&i!==r&&Xm(e,i,{get:()=>t[i],enumerable:!(n=VP(t,i))||n.enumerable});return e},XP=(e,t,r)=>(r=e!=null?UP(qP(e)):{},JP(t||!e||!e.__esModule?Xm(r,"default",{value:e,enumerable:!0}):r,e)),KP=WP((e,t)=>{var r,n,i,s,a,o,u,l,c,p,h,d,f,y,C,g,m,x,v;f=/\/(?![*\/])(?:\[(?:[^\]\\\n\r\u2028\u2029]+|\\.)*\]|[^\/\\\n\r\u2028\u2029]+|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/yu,d=/--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y,r=/(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]+|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/yu,C=/(['"])(?:[^'"\\\n\r]+|(?!\1)['"]|\\(?:\r\n|[^]))*(\1)?/y,h=/(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y,g=/[`}](?:[^`\\$]+|\\[^]|\$(?!\{))*(`|\$\{)?/y,v=/[\t\v\f\ufeff\p{Zs}]+/yu,l=/\r?\n|[\r\u2028\u2029]/y,c=/\/\*(?:[^*]+|\*(?!\/))*(\*\/)?/y,y=/\/\/.*/y,i=/[<>.:={}]|\/(?![\/*])/y,n=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/yu,s=/(['"])(?:[^'"]+|(?!\1)['"])*(\1)?/y,a=/[^<>{}]+/y,x=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/,m=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/,o=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/,u=/^(?:return|throw|yield)$/,p=RegExp(l.source),t.exports=function*(T,{jsx:k=!1}={}){var N,E,A,b,B,M,P,J,K,ne,Z,$,V,W;for({length:M}=T,b=0,B="",W=[{tag:"JS"}],N=[],Z=0,$=!1;b":W.pop(),B==="/"||J.tag==="JSXTagEnd"?(ne="?JSX",$=!0):W.push({tag:"JSXChildren"});break;case"{":W.push({tag:"InterpolationInJSX",nesting:N.length}),ne="?InterpolationInJSX",$=!1;break;case"/":B==="<"&&(W.pop(),W[W.length-1].tag==="JSXChildren"&&W.pop(),W.push({tag:"JSXTagEnd"}))}B=ne,yield{type:"JSXPunctuator",value:P[0]};continue}if(n.lastIndex=b,P=n.exec(T)){b=n.lastIndex,B=P[0],yield{type:"JSXIdentifier",value:P[0]};continue}if(s.lastIndex=b,P=s.exec(T)){b=s.lastIndex,B=P[0],yield{type:"JSXString",value:P[0],closed:P[2]!==void 0};continue}break;case"JSXChildren":if(a.lastIndex=b,P=a.exec(T)){b=a.lastIndex,B=P[0],yield{type:"JSXText",value:P[0]};continue}switch(T[b]){case"<":W.push({tag:"JSXTag"}),b++,B="<",yield{type:"JSXPunctuator",value:"<"};continue;case"{":W.push({tag:"InterpolationInJSX",nesting:N.length}),b++,B="?InterpolationInJSX",$=!1,yield{type:"JSXPunctuator",value:"{"};continue}}if(v.lastIndex=b,P=v.exec(T)){b=v.lastIndex,yield{type:"WhiteSpace",value:P[0]};continue}if(l.lastIndex=b,P=l.exec(T)){b=l.lastIndex,$=!1,u.test(B)&&(B="?NoLineTerminatorHere"),yield{type:"LineTerminatorSequence",value:P[0]};continue}if(c.lastIndex=b,P=c.exec(T)){b=c.lastIndex,p.test(P[0])&&($=!1,u.test(B)&&(B="?NoLineTerminatorHere")),yield{type:"MultiLineComment",value:P[0],closed:P[1]!==void 0};continue}if(y.lastIndex=b,P=y.exec(T)){b=y.lastIndex,$=!1,yield{type:"SingleLineComment",value:P[0]};continue}E=String.fromCodePoint(T.codePointAt(b)),b+=E.length,B=E,$=!1,yield{type:J.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:E}}}}),GP={};Km(GP,{__debug:()=>M6,check:()=>$6,doc:()=>nv,format:()=>Ap,formatWithCursor:()=>ov,getSupportInfo:()=>O6,util:()=>iv,version:()=>l6});var Vu=(e,t)=>(r,n,...i)=>r|1&&n==null?void 0:(t.call(n)??n[e]).apply(n,i),QP=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},YP=Vu("replaceAll",function(){if(typeof this=="string")return QP}),yp=YP,ZP=class{diff(t,r,n={}){let i;typeof n=="function"?(i=n,n={}):"callback"in n&&(i=n.callback);let s=this.castInput(t,n),a=this.castInput(r,n),o=this.removeEmpty(this.tokenize(s,n)),u=this.removeEmpty(this.tokenize(a,n));return this.diffWithOptionsObj(o,u,n,i)}diffWithOptionsObj(t,r,n,i){var s;let a=m=>{if(m=this.postProcess(m,n),i){setTimeout(function(){i(m)},0);return}else return m},o=r.length,u=t.length,l=1,c=o+u;n.maxEditLength!=null&&(c=Math.min(c,n.maxEditLength));let p=(s=n.timeout)!==null&&s!==void 0?s:1/0,h=Date.now()+p,d=[{oldPos:-1,lastComponent:void 0}],f=this.extractCommon(d[0],r,t,0,n);if(d[0].oldPos+1>=u&&f+1>=o)return a(this.buildValues(d[0].lastComponent,r,t));let y=-1/0,C=1/0,g=()=>{for(let m=Math.max(y,-l);m<=Math.min(C,l);m+=2){let x,v=d[m-1],T=d[m+1];v&&(d[m-1]=void 0);let k=!1;if(T){let E=T.oldPos-m;k=T&&0<=E&&E=u&&f+1>=o)return a(this.buildValues(x.lastComponent,r,t))||!0;d[m]=x,x.oldPos+1>=u&&(C=Math.min(C,m-1)),f+1>=o&&(y=Math.max(y,m+1))}l++};if(i)(function m(){setTimeout(function(){if(l>c||Date.now()>h)return i(void 0);g()||m()},0)})();else for(;l<=c&&Date.now()<=h;){let m=g();if(m)return m}}addToPath(t,r,n,i,s){let a=t.lastComponent;return a&&!s.oneChangePerToken&&a.added===r&&a.removed===n?{oldPos:t.oldPos+i,lastComponent:{count:a.count+1,added:r,removed:n,previousComponent:a.previousComponent}}:{oldPos:t.oldPos+i,lastComponent:{count:1,added:r,removed:n,previousComponent:a}}}extractCommon(t,r,n,i,s){let a=r.length,o=n.length,u=t.oldPos,l=u-i,c=0;for(;l+1h.length?f:h}),c.value=this.join(p)}else c.value=this.join(r.slice(u,u+c.count));u+=c.count,c.added||(l+=c.count)}}return i}},eN=class extends ZP{tokenize(t){return t.slice()}join(t){return t}removeEmpty(t){return t}},tN=new eN;function rN(e,t,r){return tN.diff(e,t,r)}var nN=()=>{},iN=nN,lC="cr",cC="crlf",sN="lf",aN=sN,Gm="\r",pC=`\r +`,gp=` +`,oN=gp;function uN(e){let t=e.indexOf(Gm);return t!==-1?e.charAt(t+1)===gp?cC:lC:aN}function Qm(e){return e===lC?Gm:e===cC?pC:oN}var lN=new Map([[gp,/\n/gu],[Gm,/\r/gu],[pC,/\r\n/gu]]);function hC(e,t){var n;let r=lN.get(t);return((n=e.match(r))==null?void 0:n.length)??0}var cN=/\r\n?/gu;function pN(e){return yp(0,e,cN,gp)}function hN(e){return this[e<0?this.length+e:e]}var dN=Vu("at",function(){if(Array.isArray(this)||typeof this=="string")return hN}),at=dN,vs="string",_n="array",Li="cursor",Vn="indent",zn="align",qn="trim",Zt="group",dn="fill",or="if-break",Hn="indent-if-break",Wn="line-suffix",Jn="line-suffix-boundary",vt="line",fn="label",Sr="break-parent",dC=new Set([Li,Vn,zn,qn,Zt,dn,or,Hn,Wn,Jn,vt,fn,Sr]);function fN(e){let t=e.length;for(;t>0&&(e[t-1]==="\r"||e[t-1]===` +`);)t--;return tnew Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function gN(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}', +Expected it to be 'string' or 'object'.`;if(As(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=yN([...dC].map(i=>`'${i}'`));return`Unexpected doc.type '${e.type}'. +Expected it to be ${n}.`}var DN=class extends Error{constructor(r){super(gN(r));H(this,"name","InvalidDocError");this.doc=r}},Ta=DN,ig={};function xN(e,t,r,n){let i=[e];for(;i.length>0;){let s=i.pop();if(s===ig){r(i.pop());continue}r&&i.push(s,ig);let a=As(s);if(!a)throw new Ta(s);if((t==null?void 0:t(s))!==!1)switch(a){case _n:case dn:{let o=a===_n?s:s.parts;for(let u=o.length,l=u-1;l>=0;--l)i.push(o[l]);break}case or:i.push(s.flatContents,s.breakContents);break;case Zt:if(n&&s.expandedStates)for(let o=s.expandedStates.length,u=o-1;u>=0;--u)i.push(s.expandedStates[u]);else i.push(s.contents);break;case zn:case Vn:case Hn:case fn:case Wn:i.push(s.contents);break;case vs:case Li:case qn:case Jn:case vt:case Sr:break;default:throw new Ta(s)}}}var Ym=xN;function Dp(e,t){if(typeof e=="string")return t(e);let r=new Map;return n(e);function n(s){if(r.has(s))return r.get(s);let a=i(s);return r.set(s,a),a}function i(s){switch(As(s)){case _n:return t(s.map(n));case dn:return t({...s,parts:s.parts.map(n)});case or:return t({...s,breakContents:n(s.breakContents),flatContents:n(s.flatContents)});case Zt:{let{expandedStates:a,contents:o}=s;return a?(a=a.map(n),o=a[0]):o=n(o),t({...s,contents:o,expandedStates:a})}case zn:case Vn:case Hn:case fn:case Wn:return t({...s,contents:n(s.contents)});case vs:case Li:case qn:case Jn:case vt:case Sr:return t(s);default:throw new Ta(s)}}}function Zm(e,t,r){let n=r,i=!1;function s(a){if(i)return!1;let o=t(a);o!==void 0&&(i=!0,n=o)}return Ym(e,s),n}function EN(e){if(e.type===Zt&&e.break||e.type===vt&&e.hard||e.type===Sr)return!0}function CN(e){return Zm(e,EN,!1)}function sg(e){if(e.length>0){let t=at(0,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function vN(e){let t=new Set,r=[];function n(s){if(s.type===Sr&&sg(r),s.type===Zt){if(r.push(s),t.has(s))return!1;t.add(s)}}function i(s){s.type===Zt&&r.pop().break&&sg(r)}Ym(e,n,i,!0)}function AN(e){return e.type===vt&&!e.hard?e.soft?"":" ":e.type===or?e.flatContents:e}function bN(e){return Dp(e,AN)}function ag(e){for(e=[...e];e.length>=2&&at(0,e,-2).type===vt&&at(0,e,-1).type===Sr;)e.length-=2;if(e.length>0){let t=Ho(at(0,e,-1));e[e.length-1]=t}return e}function Ho(e){switch(As(e)){case Vn:case Hn:case Zt:case Wn:case fn:{let t=Ho(e.contents);return{...e,contents:t}}case or:return{...e,breakContents:Ho(e.breakContents),flatContents:Ho(e.flatContents)};case dn:return{...e,parts:ag(e.parts)};case _n:return ag(e);case vs:return fN(e);case zn:case Li:case qn:case Jn:case vt:case Sr:break;default:throw new Ta(e)}return e}function fC(e){return Ho(SN(e))}function TN(e){switch(As(e)){case dn:if(e.parts.every(t=>t===""))return"";break;case Zt:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===Zt&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case zn:case Vn:case Hn:case Wn:if(!e.contents)return"";break;case or:if(!e.flatContents&&!e.breakContents)return"";break;case _n:{let t=[];for(let r of e){if(!r)continue;let[n,...i]=Array.isArray(r)?r:[r];typeof n=="string"&&typeof at(0,t,-1)=="string"?t[t.length-1]+=n:t.push(n),t.push(...i)}return t.length===0?"":t.length===1?t[0]:t}case vs:case Li:case qn:case Jn:case vt:case fn:case Sr:break;default:throw new Ta(e)}return e}function SN(e){return Dp(e,t=>TN(t))}function FN(e,t=CC){return Dp(e,r=>typeof r=="string"?DC(t,r.split(` +`)):r)}function wN(e){if(e.type===vt)return!0}function kN(e){return Zm(e,wN,!1)}function Zl(e,t){return e.type===fn?{...e,contents:t(e.contents)}:t(e)}var PN=iN;function jc(e){return{type:Vn,contents:e}}function Sa(e,t){return{type:zn,contents:t,n:e}}function NN(e){return Sa(Number.NEGATIVE_INFINITY,e)}function mC(e){return Sa({type:"root"},e)}function BN(e){return Sa(-1,e)}function yC(e,t,r){let n=e;if(t>0){for(let i=0;i0?`, { ${c.join(", ")} }`:"";return`indentIfBreak(${n(s.contents)}${p})`}if(s.type===Zt){let c=[];s.break&&s.break!=="propagated"&&c.push("shouldBreak: true"),s.id&&c.push(`id: ${i(s.id)}`);let p=c.length>0?`, { ${c.join(", ")} }`:"";return s.expandedStates?`conditionalGroup([${s.expandedStates.map(h=>n(h)).join(",")}]${p})`:`group(${n(s.contents)}${p})`}if(s.type===dn)return`fill([${s.parts.map(c=>n(c)).join(", ")}])`;if(s.type===Wn)return"lineSuffix("+n(s.contents)+")";if(s.type===Jn)return"lineSuffixBoundary";if(s.type===fn)return`label(${JSON.stringify(s.label)}, ${n(s.contents)})`;if(s.type===Li)return"cursor";throw new Error("Unknown doc type "+s.type)}function i(s){if(typeof s!="symbol")return JSON.stringify(String(s));if(s in t)return t[s];let a=s.description||"symbol";for(let o=0;;o++){let u=a+(o>0?` #${o}`:"");if(!r.has(u))return r.add(u),t[s]=`Symbol.for(${JSON.stringify(u)})`}}}var VN=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function zN(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function qN(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9776&&e<=9783||e>=9800&&e<=9811||e===9855||e>=9866&&e<=9871||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e>=94192&&e<=94198||e>=94208&&e<=101589||e>=101631&&e<=101662||e>=101760&&e<=101874||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128728||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129674||e>=129678&&e<=129734||e===129736||e>=129741&&e<=129756||e>=129759&&e<=129770||e>=129775&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}var HN="©®‼⁉™ℹ↔↕↖↗↘↙↩↪⌨⏏⏱⏲⏸⏹⏺▪▫▶◀◻◼☀☁☂☃☄☎☑☘☝☠☢☣☦☪☮☯☸☹☺♀♂♟♠♣♥♦♨♻♾⚒⚔⚕⚖⚗⚙⚛⚜⚠⚧⚰⚱⛈⛏⛑⛓⛩⛱⛷⛸⛹✂✈✉✌✍✏✒✔✖✝✡✳✴❄❇❣❤➡⤴⤵⬅⬆⬇",WN=/[^\x20-\x7F]/u,JN=new Set(HN);function XN(e){if(!e)return 0;if(!WN.test(e))return e.length;e=e.replace(VN(),r=>JN.has(r)?" ":" ");let t=0;for(let r of e){let n=r.codePointAt(0);n<=31||n>=127&&n<=159||n>=768&&n<=879||n>=65024&&n<=65039||(t+=zN(n)||qN(n)?2:1)}return t}var t0=XN,KN={type:0},GN={type:1},vC={value:"",length:0,queue:[],get root(){return vC}};function AC(e,t,r){let n=t.type===1?e.queue.slice(0,-1):[...e.queue,t],i="",s=0,a=0,o=0;for(let f of n)switch(f.type){case 0:c(),r.useTabs?u(1):l(r.tabWidth);break;case 3:{let{string:y}=f;c(),i+=y,s+=y.length;break}case 2:{let{width:y}=f;a+=1,o+=y;break}default:throw new Error(`Unexpected indent comment '${f.type}'.`)}return h(),{...e,value:i,length:s,queue:n};function u(f){i+=" ".repeat(f),s+=r.tabWidth*f}function l(f){i+=" ".repeat(f),s+=f}function c(){r.useTabs?p():h()}function p(){a>0&&u(a),d()}function h(){o>0&&l(o),d()}function d(){a=0,o=0}}function QN(e,t,r){if(!t)return e;if(t.type==="root")return{...e,root:e};if(t===Number.NEGATIVE_INFINITY)return e.root;let n;return typeof t=="number"?t<0?n=GN:n={type:2,width:t}:n={type:3,string:t},AC(e,n,r)}function YN(e,t){return AC(e,KN,t)}function ZN(e){let t=0;for(let r=e.length-1;r>=0;r--){let n=e[r];if(n===" "||n===" ")t++;else break}return t}function bC(e){let t=ZN(e);return{text:t===0?e:e.slice(0,e.length-t),count:t}}var qt=Symbol("MODE_BREAK"),Qr=Symbol("MODE_FLAT"),af=Symbol("DOC_FILL_PRINTED_LENGTH");function Tl(e,t,r,n,i,s){if(r===Number.POSITIVE_INFINITY)return!0;let a=t.length,o=!1,u=[e],l="";for(;r>=0;){if(u.length===0){if(a===0)return!0;u.push(t[--a]);continue}let{mode:c,doc:p}=u.pop(),h=As(p);switch(h){case vs:p&&(o&&(l+=" ",r-=1,o=!1),l+=p,r-=t0(p));break;case _n:case dn:{let d=h===_n?p:p.parts,f=p[af]??0;for(let y=d.length-1;y>=f;y--)u.push({mode:c,doc:d[y]});break}case Vn:case zn:case Hn:case fn:u.push({mode:c,doc:p.contents});break;case qn:{let{text:d,count:f}=bC(l);l=d,r+=f;break}case Zt:{if(s&&p.break)return!1;let d=p.break?qt:c,f=p.expandedStates&&d===qt?at(0,p.expandedStates,-1):p.contents;u.push({mode:d,doc:f});break}case or:{let d=(p.groupId?i[p.groupId]||Qr:c)===qt?p.breakContents:p.flatContents;d&&u.push({mode:c,doc:d});break}case vt:if(c===qt||p.hard)return!0;p.soft||(o=!0);break;case Wn:n=!0;break;case Jn:if(n)return!1;break}}return!1}function Ep(e,t){let r=Object.create(null),n=t.printWidth,i=Qm(t.endOfLine),s=0,a=[{indent:vC,mode:qt,doc:e}],o="",u=!1,l=[],c=[],p=[],h=[],d=0;for(vN(e);a.length>0;){let{indent:m,mode:x,doc:v}=a.pop();switch(As(v)){case vs:{let T=i!==` +`?yp(0,v,` +`,i):v;T&&(o+=T,a.length>0&&(s+=t0(T)));break}case _n:for(let T=v.length-1;T>=0;T--)a.push({indent:m,mode:x,doc:v[T]});break;case Li:if(c.length>=2)throw new Error("There are too many 'cursor' in doc.");c.push(d+o.length);break;case Vn:a.push({indent:YN(m,t),mode:x,doc:v.contents});break;case zn:a.push({indent:QN(m,v.n,t),mode:x,doc:v.contents});break;case qn:g();break;case Zt:switch(x){case Qr:if(!u){a.push({indent:m,mode:v.break?qt:Qr,doc:v.contents});break}case qt:{u=!1;let T={indent:m,mode:Qr,doc:v.contents},k=n-s,N=l.length>0;if(!v.break&&Tl(T,a,k,N,r))a.push(T);else if(v.expandedStates){let E=at(0,v.expandedStates,-1);if(v.break){a.push({indent:m,mode:qt,doc:E});break}else for(let A=1;A=v.expandedStates.length){a.push({indent:m,mode:qt,doc:E});break}else{let b=v.expandedStates[A],B={indent:m,mode:Qr,doc:b};if(Tl(B,a,k,N,r)){a.push(B);break}}}else a.push({indent:m,mode:qt,doc:v.contents});break}}v.id&&(r[v.id]=at(0,a,-1).mode);break;case dn:{let T=n-s,k=v[af]??0,{parts:N}=v,E=N.length-k;if(E===0)break;let A=N[k+0],b=N[k+1],B={indent:m,mode:Qr,doc:A},M={indent:m,mode:qt,doc:A},P=Tl(B,[],T,l.length>0,r,!0);if(E===1){P?a.push(B):a.push(M);break}let J={indent:m,mode:Qr,doc:b},K={indent:m,mode:qt,doc:b};if(E===2){P?a.push(J,B):a.push(K,M);break}let ne=N[k+2],Z={indent:m,mode:x,doc:{...v,[af]:k+2}},$=Tl({indent:m,mode:Qr,doc:[A,b,ne]},[],T,l.length>0,r,!0);a.push(Z),$?a.push(J,B):P?a.push(K,B):a.push(K,M);break}case or:case Hn:{let T=v.groupId?r[v.groupId]:x;if(T===qt){let k=v.type===or?v.breakContents:v.negate?v.contents:jc(v.contents);k&&a.push({indent:m,mode:x,doc:k})}if(T===Qr){let k=v.type===or?v.flatContents:v.negate?jc(v.contents):v.contents;k&&a.push({indent:m,mode:x,doc:k})}break}case Wn:l.push({indent:m,mode:x,doc:v.contents});break;case Jn:l.length>0&&a.push({indent:m,mode:x,doc:e0});break;case vt:switch(x){case Qr:if(v.hard)u=!0;else{v.soft||(o+=" ",s+=1);break}case qt:if(l.length>0){a.push({indent:m,mode:x,doc:v},...l.reverse()),l.length=0;break}v.literal?(o+=i,s=0,m.root&&(m.root.value&&(o+=m.root.value),s=m.root.length)):(g(),o+=i+m.value,s=m.length);break}break;case fn:a.push({indent:m,mode:x,doc:v.contents});break;case Sr:break;default:throw new Ta(v)}a.length===0&&l.length>0&&(a.push(...l.reverse()),l.length=0)}let f=p.join("")+o,y=[...h,...c];if(y.length!==2)return{formatted:f};let C=y[0];return{formatted:f,cursorNodeStart:C,cursorNodeText:f.slice(C,at(0,y,-1))};function g(){let{text:m,count:x}=bC(o);m&&(p.push(m),d+=m.length),o="",s-=x,c.length>0&&(h.push(...c.map(v=>Math.min(v,d))),c.length=0)}}function e8(e,t,r=0){let n=0;for(let i=r;i1?at(0,t,-2):null}getValue(){return at(0,this.stack,-1)}getNode(t=0){let r=Gn(this,Lu,of).call(this,t);return r===-1?null:this.stack[r]}getParentNode(t=0){return this.getNode(t+1)}call(t,...r){let{stack:n}=this,{length:i}=n,s=at(0,n,-1);for(let a of r)s=s==null?void 0:s[a],n.push(a,s);try{return t(this)}finally{n.length=i}}callParent(t,r=0){let n=Gn(this,Lu,of).call(this,r+1),i=this.stack.splice(n+1);try{return t(this)}finally{this.stack.push(...i)}}each(t,...r){let{stack:n}=this,{length:i}=n,s=at(0,n,-1);for(let a of r)s=s[a],n.push(a,s);try{for(let a=0;a{n[s]=t(i,s,a)},...r),n}match(...t){let r=this.stack.length-1,n=null,i=this.stack[r--];for(let s of t){if(i===void 0)return!1;let a=null;if(typeof n=="number"&&(a=n,n=this.stack[r--],i=this.stack[r--]),s&&!s(i,n,a))return!1;n=this.stack[r--],i=this.stack[r--]}return!0}findAncestor(t){for(let r of Gn(this,ya,ec).call(this))if(t(r))return r}hasAncestor(t){for(let r of Gn(this,ya,ec).call(this))if(t(r))return!0;return!1}},Lu=new WeakSet,of=function(t){let{stack:r}=this;for(let n=r.length-1;n>=0;n-=2)if(!Array.isArray(r[n])&&--t<0)return n;return-1},ya=new WeakSet,ec=function*(){let{stack:t}=this;for(let r=t.length-3;r>=0;r-=2){let n=t[r];Array.isArray(n)||(yield n)}},vD),r8=t8;function n8(e){return e!==null&&typeof e=="object"}var n0=n8;function zu(e){return(t,r,n)=>{let i=!!(n!=null&&n.backwards);if(r===!1)return!1;let{length:s}=t,a=r;for(;a>=0&&ae===` +`||e==="\r"||e==="\u2028"||e==="\u2029";function s8(e,t,r){let n=!!(r!=null&&r.backwards);if(t===!1)return!1;let i=e.charAt(t);if(n){if(e.charAt(t-1)==="\r"&&i===` +`)return t-2;if(og(i))return t-1}else{if(i==="\r"&&e.charAt(t+1)===` +`)return t+2;if(og(i))return t+1}return t}var ms=s8;function a8(e,t,r={}){let n=wi(e,r.backwards?t-1:t,r),i=ms(e,n,r);return n!==i}var Ai=a8;function o8(e){return Array.isArray(e)&&e.length>0}var u8=o8;function*Cp(e,t){let{getVisitorKeys:r,filter:n=()=>!0}=t,i=s=>n0(s)&&n(s);for(let s of r(e)){let a=e[s];if(Array.isArray(a))for(let o of a)i(o)&&(yield o);else i(a)&&(yield a)}}function*l8(e,t){let r=[e];for(let n=0;n(s??(s=[e,...t]),i(c,s)?[c]:FC(c,s,r))),{locStart:o,locEnd:u}=r;return a.sort((c,p)=>o(c)-o(p)||u(c)-u(p)),n.set(e,a),a}var wC=FC;function p8(e){let t=e.type||e.kind||"(unknown type)",r=String(e.name||e.id&&(typeof e.id=="object"?e.id.name:e.id)||e.key&&(typeof e.key=="object"?e.key.name:e.key)||e.value&&(typeof e.value=="object"?"":String(e.value))||e.operator||"");return r.length>20&&(r=r.slice(0,19)+"…"),t+(r?" "+r:"")}function i0(e,t){(e.comments??(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=p8(e)}function Wo(e,t){t.leading=!0,t.trailing=!1,i0(e,t)}function Qi(e,t,r){t.leading=!1,t.trailing=!1,r&&(t.marker=r),i0(e,t)}function Jo(e,t){t.leading=!1,t.trailing=!0,i0(e,t)}var kC=new WeakMap;function PC(e,t,r,n,i=[]){let{locStart:s,locEnd:a}=r,o=s(t),u=a(t),l=wC(e,i,{cache:kC,locStart:s,locEnd:a,getVisitorKeys:r.getVisitorKeys,filter:r.printer.canAttachComment,getChildren:r.printer.getCommentChildNodes}),c,p,h=0,d=l.length;for(;h>1,y=l[f],C=s(y),g=a(y);if(C<=o&&u<=g)return PC(y,t,r,y,[y,...i]);if(g<=o){c=y,h=f+1;continue}if(u<=C){p=y,d=f;continue}throw new Error("Comment location overlaps with node location")}if((n==null?void 0:n.type)==="TemplateLiteral"){let{quasis:f}=n,y=Ah(f,t,r);c&&Ah(f,c,r)!==y&&(c=null),p&&Ah(f,p,r)!==y&&(p=null)}return{enclosingNode:n,precedingNode:c,followingNode:p}}var vh=()=>!1;function h8(e,t){let{comments:r}=e;if(delete e.comments,!u8(r)||!t.printer.canAttachComment)return;let n=[],{printer:{features:{experimental_avoidAstMutation:i},handleComments:s={}},originalText:a}=t,{ownLine:o=vh,endOfLine:u=vh,remaining:l=vh}=s,c=r.map((p,h)=>({...PC(e,p,t),comment:p,text:a,options:t,ast:e,isLastComment:r.length-1===h}));for(let[p,h]of c.entries()){let{comment:d,precedingNode:f,enclosingNode:y,followingNode:C,text:g,options:m,ast:x,isLastComment:v}=h,T;if(i?T=[h]:(d.enclosingNode=y,d.precedingNode=f,d.followingNode=C,T=[d,g,m,x,v]),d8(g,m,c,p))d.placement="ownLine",o(...T)||(C?Wo(C,d):f?Jo(f,d):Qi(y||x,d));else if(f8(g,m,c,p))d.placement="endOfLine",u(...T)||(f?Jo(f,d):C?Wo(C,d):Qi(y||x,d));else if(d.placement="remaining",!l(...T))if(f&&C){let k=n.length;k>0&&n[k-1].followingNode!==C&&ug(n,m),n.push(h)}else f?Jo(f,d):C?Wo(C,d):Qi(y||x,d)}if(ug(n,t),!i)for(let p of r)delete p.precedingNode,delete p.enclosingNode,delete p.followingNode}var NC=e=>!/[\S\n\u2028\u2029]/u.test(e);function d8(e,t,r,n){let{comment:i,precedingNode:s}=r[n],{locStart:a,locEnd:o}=t,u=a(i);if(s)for(let l=n-1;l>=0;l--){let{comment:c,precedingNode:p}=r[l];if(p!==s||!NC(e.slice(o(c),u)))break;u=a(c)}return Ai(e,u,{backwards:!0})}function f8(e,t,r,n){let{comment:i,followingNode:s}=r[n],{locStart:a,locEnd:o}=t,u=o(i);if(s)for(let l=n+1;l0;--a){let{comment:l,precedingNode:c,followingNode:p}=e[a-1],h=t.originalText.slice(t.locEnd(l),s);if(((u=(o=t.printer).isGap)==null?void 0:u.call(o,h,t))??/^[\s(]*$/u.test(h))s=t.locStart(l);else break}for(let[l,{comment:c}]of e.entries())l1&&l.comments.sort((c,p)=>t.locStart(c)-t.locStart(p));e.length=0}function Ah(e,t,r){let n=r.locStart(t)-1;for(let i=1;i!n.has(o)).length===0)return{leading:"",trailing:""};let i=[],s=[],a;return e.each(()=>{let o=e.node;if(n!=null&&n.has(o))return;let{leading:u,trailing:l}=o;u?i.push(y8(e,t)):l&&(a=g8(e,t,a),s.push(a.doc))},"comments"),{leading:i,trailing:s}}function x8(e,t,r){let{leading:n,trailing:i}=D8(e,r);return!n&&!i?t:Zl(t,s=>[n,s,i])}function E8(e){let{[Symbol.for("comments")]:t,[Symbol.for("printedComments")]:r}=e;for(let n of t){if(!n.printed&&!r.has(n))throw new Error('Comment "'+n.value.trim()+'" was not printed. Please report this error!');delete n.printed}}var IC=class extends Error{constructor(){super(...arguments);H(this,"name","ConfigError")}},lg=class extends Error{constructor(){super(...arguments);H(this,"name","UndefinedParserError")}},C8={checkIgnorePragma:{category:"Special",type:"boolean",default:!1,description:"Check whether the file's first docblock comment contains '@noprettier' or '@noformat' to determine if it should be formatted.",cliCategory:"Other"},cursorOffset:{category:"Special",type:"int",default:-1,range:{start:-1,end:1/0,step:1},description:"Print (to stderr) where a cursor at the given position would move to after formatting.",cliCategory:"Editor"},endOfLine:{category:"Global",type:"choice",default:"lf",description:"Which end of line characters to apply.",choices:[{value:"lf",description:"Line Feed only (\\n), common on Linux and macOS as well as inside git repos"},{value:"crlf",description:"Carriage Return + Line Feed characters (\\r\\n), common on Windows"},{value:"cr",description:"Carriage Return character only (\\r), used very rarely"},{value:"auto",description:`Maintain existing (mixed values within one file are normalised by looking at what's used after the first line)`}]},filepath:{category:"Special",type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:"Other",cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{category:"Special",type:"boolean",default:!1,description:"Insert @format pragma into file's first docblock comment.",cliCategory:"Other"},parser:{category:"Global",type:"choice",default:void 0,description:"Which parser to use.",exception:e=>typeof e=="string"||typeof e=="function",choices:[{value:"flow",description:"Flow"},{value:"babel",description:"JavaScript"},{value:"babel-flow",description:"Flow"},{value:"babel-ts",description:"TypeScript"},{value:"typescript",description:"TypeScript"},{value:"acorn",description:"JavaScript"},{value:"espree",description:"JavaScript"},{value:"meriyah",description:"JavaScript"},{value:"css",description:"CSS"},{value:"less",description:"Less"},{value:"scss",description:"SCSS"},{value:"json",description:"JSON"},{value:"json5",description:"JSON5"},{value:"jsonc",description:"JSON with Comments"},{value:"json-stringify",description:"JSON.stringify"},{value:"graphql",description:"GraphQL"},{value:"markdown",description:"Markdown"},{value:"mdx",description:"MDX"},{value:"vue",description:"Vue"},{value:"yaml",description:"YAML"},{value:"glimmer",description:"Ember / Handlebars"},{value:"html",description:"HTML"},{value:"angular",description:"Angular"},{value:"lwc",description:"Lightning Web Components"},{value:"mjml",description:"MJML"}]},plugins:{type:"path",array:!0,default:[{value:[]}],category:"Global",description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:e=>typeof e=="string"||typeof e=="object",cliName:"plugin",cliCategory:"Config"},printWidth:{category:"Global",type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:1/0,step:1}},rangeEnd:{category:"Special",type:"int",default:1/0,range:{start:0,end:1/0,step:1},description:`Format code ending at a given character offset (exclusive). The range will extend forwards to the end of the selected statement.`,cliCategory:"Editor"},rangeStart:{category:"Special",type:"int",default:0,range:{start:0,end:1/0,step:1},description:`Format code starting at a given character offset. -The range will extend backwards to the start of the first line containing the selected statement.`,cliCategory:"Editor"},requirePragma:{category:"Special",type:"boolean",default:!1,description:"Require either '@prettier' or '@format' to be present in the file's first docblock comment in order for it to be formatted.",cliCategory:"Other"},tabWidth:{type:"int",category:"Global",default:2,description:"Number of spaces per indentation level.",range:{start:0,end:1/0,step:1}},useTabs:{category:"Global",type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{category:"Global",type:"choice",default:"auto",description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};function yC({plugins:e=[],showDeprecated:t=!1}={}){let r=e.flatMap(i=>i.languages??[]),n=[];for(let i of KN(Object.assign({},...e.map(({options:s})=>s),JN)))!t&&i.deprecated||(Array.isArray(i.choices)&&(t||(i.choices=i.choices.filter(s=>!s.deprecated)),i.name==="parser"&&(i.choices=[...i.choices,...XN(i.choices,r,e)])),i.pluginDefaults=Object.fromEntries(e.filter(s=>{var a;return((a=s.defaultOptions)==null?void 0:a[i.name])!==void 0}).map(s=>[s.name,s.defaultOptions[i.name]])),n.push(i));return{languages:r,options:n}}function*XN(e,t,r){let n=new Set(e.map(i=>i.value));for(let i of t)if(i.parsers){for(let s of i.parsers)if(!n.has(s)){n.add(s);let a=r.find(u=>u.parsers&&Object.prototype.hasOwnProperty.call(u.parsers,s)),o=i.name;a!=null&&a.name&&(o+=` (plugin: ${a.name})`),yield{value:s,description:o}}}}function KN(e){let t=[];for(let[r,n]of Object.entries(e)){let i={name:r,...n};Array.isArray(i.default)&&(i.default=at(0,i.default,-1).value),t.push(i)}return t}var GN=Array.prototype.toReversed??function(){return[...this].reverse()},QN=Lu("toReversed",function(){if(Array.isArray(this))return GN}),YN=QN;function ZN(){var r,n,i,s,a,o;let e=globalThis,t=(n=(r=e.Deno)==null?void 0:r.build)==null?void 0:n.os;return typeof t=="string"?t==="windows":((s=(i=e.navigator)==null?void 0:i.platform)==null?void 0:s.startsWith("Win"))??((o=(a=e.process)==null?void 0:a.platform)==null?void 0:o.startsWith("win"))??!1}var e8=ZN();function gC(e){if(e=e instanceof URL?e:new URL(e),e.protocol!=="file:")throw new TypeError(`URL must be a file URL: received "${e.protocol}"`);return e}function t8(e){return e=gC(e),decodeURIComponent(e.pathname.replace(/%(?![0-9A-Fa-f]{2})/g,"%25"))}function r8(e){e=gC(e);let t=decodeURIComponent(e.pathname.replace(/\//g,"\\").replace(/%(?![0-9A-Fa-f]{2})/g,"%25")).replace(/^\\*([A-Za-z]:)(\\|$)/,"$1\\");return e.hostname!==""&&(t=`\\\\${e.hostname}${t}`),t}function n8(e){return e8?r8(e):t8(e)}var i8=e=>String(e).split(/[/\\]/u).pop(),s8=e=>String(e).startsWith("file:");function Kg(e,t){if(!t)return;let r=i8(t).toLowerCase();return e.find(({filenames:n})=>n==null?void 0:n.some(i=>i.toLowerCase()===r))??e.find(({extensions:n})=>n==null?void 0:n.some(i=>r.endsWith(i)))}function a8(e,t){if(t)return e.find(({name:r})=>r.toLowerCase()===t)??e.find(({aliases:r})=>r==null?void 0:r.includes(t))??e.find(({extensions:r})=>r==null?void 0:r.includes(`.${t}`))}var mh=void 0;function Gg(e,t){if(t){if(s8(t))try{t=n8(t)}catch{return}if(typeof t=="string")return e.find(({isSupported:r})=>r==null?void 0:r({filepath:t}))}}function o8(e,t){var n;let r=YN(0,e.plugins).flatMap(i=>i.languages??[]);return(n=a8(r,t.language)??Kg(r,t.physicalFile)??Kg(r,t.file)??Gg(r,t.physicalFile)??Gg(r,t.file)??(mh==null?void 0:mh(r,t.physicalFile)))==null?void 0:n.parsers[0]}var DC=o8,ra={key:e=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?e:JSON.stringify(e),value(e){if(e===null||typeof e!="object")return JSON.stringify(e);if(Array.isArray(e))return`[${e.map(r=>ra.value(r)).join(", ")}]`;let t=Object.keys(e);return t.length===0?"{}":`{ ${t.map(r=>`${ra.key(r)}: ${ra.value(e[r])}`).join(", ")} }`},pair:({key:e,value:t})=>ra.value({[e]:t})},Jm=new Proxy(String,{get:()=>Jm}),nn=Jm,EC=()=>Jm,u8=(e,t,{descriptor:r})=>{let n=[`${nn.yellow(typeof e=="string"?r.key(e):r.pair(e))} is deprecated`];return t&&n.push(`we now treat it as ${nn.blue(typeof t=="string"?r.key(t):r.pair(t))}`),n.join("; ")+"."},xC=Symbol.for("vnopts.VALUE_NOT_EXIST"),Jl=Symbol.for("vnopts.VALUE_UNCHANGED"),Qg=" ".repeat(2),l8=(e,t,r)=>{let{text:n,list:i}=r.normalizeExpectedResult(r.schemas[e].expected(r)),s=[];return n&&s.push(Yg(e,t,n,r.descriptor)),i&&s.push([Yg(e,t,i.title,r.descriptor)].concat(i.values.map(a=>CC(a,r.loggerPrintWidth))).join(` -`)),vC(s,r.loggerPrintWidth)};function Yg(e,t,r,n){return[`Invalid ${nn.red(n.key(e))} value.`,`Expected ${nn.blue(r)},`,`but received ${t===xC?nn.gray("nothing"):nn.red(n.value(t))}.`].join(" ")}function CC({text:e,list:t},r){let n=[];return e&&n.push(`- ${nn.blue(e)}`),t&&n.push([`- ${nn.blue(t.title)}:`].concat(t.values.map(i=>CC(i,r-Qg.length).replace(/^|\n/g,`$&${Qg}`))).join(` -`)),vC(n,r)}function vC(e,t){if(e.length===1)return e[0];let[r,n]=e,[i,s]=e.map(a=>a.split(` -`,1)[0].length);return i>t&&i>s?n:r}var _s=[],yh=[];function gh(e,t,r){if(e===t)return 0;let n=r==null?void 0:r.maxDistance,i=e;e.length>t.length&&(e=t,t=i);let s=e.length,a=t.length;for(;s>0&&e.charCodeAt(~-s)===t.charCodeAt(~-a);)s--,a--;let o=0;for(;on)return n;if(s===0)return n!==void 0&&a>n?n:a;let u,l,c,p,h=0,d=0;for(;hl?p>l?l+1:p:p>c?c+1:p;if(n!==void 0){let f=l;for(h=0;hn)return n}}return _s.length=s,yh.length=s,n!==void 0&&l>n?n:l}function c8(e,t,r){if(!Array.isArray(t)||t.length===0)return;let n=r==null?void 0:r.maxDistance,i=e.length;for(let u of t)if(u===e)return u;if(n===0)return;let s,a=Number.POSITIVE_INFINITY,o=new Set;for(let u of t){if(o.has(u))continue;o.add(u);let l=Math.abs(u.length-i);if(l>=a||n!==void 0&&l>n)continue;let c=Number.isFinite(a)?n===void 0?a:Math.min(a,n):n,p=c===void 0?gh(e,u):gh(e,u,{maxDistance:c});if(n!==void 0&&p>n)continue;let h=p;if(c!==void 0&&p===c&&c===n&&(h=gh(e,u)),hn))return s}var AC=(e,t,{descriptor:r,logger:n,schemas:i})=>{let s=[`Ignored unknown option ${nn.yellow(r.pair({key:e,value:t}))}.`],a=c8(e,Object.keys(i),{maxDistance:3});a&&s.push(`Did you mean ${nn.blue(r.key(a))}?`),n.warn(s.join(" "))},p8=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function h8(e,t){let r=new e(t),n=Object.create(r);for(let i of p8)i in t&&(n[i]=d8(t[i],r,_i.prototype[i].length));return n}var _i=class{static create(t){return h8(this,t)}constructor(t){this.name=t.name}default(t){}expected(t){return"nothing"}validate(t,r){return!1}deprecated(t,r){return!1}forward(t,r){}redirect(t,r){}overlap(t,r,n){return t}preprocess(t,r){return t}postprocess(t,r){return Jl}};function d8(e,t,r){return typeof e=="function"?(...n)=>e(...n.slice(0,r-1),t,...n.slice(r-1)):()=>e}var f8=class extends _i{constructor(t){super(t),this._sourceName=t.sourceName}expected(t){return t.schemas[this._sourceName].expected(t)}validate(t,r){return r.schemas[this._sourceName].validate(t,r)}redirect(t,r){return this._sourceName}},m8=class extends _i{expected(){return"anything"}validate(){return!0}},y8=class extends _i{constructor({valueSchema:t,name:r=t.name,...n}){super({...n,name:r}),this._valueSchema=t}expected(t){let{text:r,list:n}=t.normalizeExpectedResult(this._valueSchema.expected(t));return{text:r&&`an array of ${r}`,list:n&&{title:"an array of the following values",values:[{list:n}]}}}validate(t,r){if(!Array.isArray(t))return!1;let n=[];for(let i of t){let s=r.normalizeValidateResult(this._valueSchema.validate(i,r),i);s!==!0&&n.push(s.value)}return n.length===0?!0:{value:n}}deprecated(t,r){let n=[];for(let i of t){let s=r.normalizeDeprecatedResult(this._valueSchema.deprecated(i,r),i);s!==!1&&n.push(...s.map(({value:a})=>({value:[a]})))}return n}forward(t,r){let n=[];for(let i of t){let s=r.normalizeForwardResult(this._valueSchema.forward(i,r),i);n.push(...s.map(Zg))}return n}redirect(t,r){let n=[],i=[];for(let s of t){let a=r.normalizeRedirectResult(this._valueSchema.redirect(s,r),s);"remain"in a&&n.push(a.remain),i.push(...a.redirect.map(Zg))}return n.length===0?{redirect:i}:{redirect:i,remain:n}}overlap(t,r){return t.concat(r)}};function Zg({from:e,to:t}){return{from:[e],to:t}}var g8=class extends _i{expected(){return"true or false"}validate(t){return typeof t=="boolean"}};function D8(e,t){let r=Object.create(null);for(let n of e){let i=n[t];if(r[i])throw new Error(`Duplicate ${t} ${JSON.stringify(i)}`);r[i]=n}return r}function E8(e,t){let r=new Map;for(let n of e){let i=n[t];if(r.has(i))throw new Error(`Duplicate ${t} ${JSON.stringify(i)}`);r.set(i,n)}return r}function x8(){let e=Object.create(null);return t=>{let r=JSON.stringify(t);return e[r]?!0:(e[r]=!0,!1)}}function C8(e,t){let r=[],n=[];for(let i of e)t(i)?r.push(i):n.push(i);return[r,n]}function v8(e){return e===Math.floor(e)}function A8(e,t){if(e===t)return 0;let r=typeof e,n=typeof t,i=["undefined","object","boolean","number","string"];return r!==n?i.indexOf(r)-i.indexOf(n):r!=="string"?Number(e)-Number(t):e.localeCompare(t)}function T8(e){return(...t)=>{let r=e(...t);return typeof r=="string"?new Error(r):r}}function e1(e){return e===void 0?{}:e}function TC(e){if(typeof e=="string")return{text:e};let{text:t,list:r}=e;return S8((t||r)!==void 0,"Unexpected `expected` result, there should be at least one field."),r?{text:t,list:{title:r.title,values:r.values.map(TC)}}:{text:t}}function t1(e,t){return e===!0?!0:e===!1?{value:t}:e}function r1(e,t,r=!1){return e===!1?!1:e===!0?r?!0:[{value:t}]:"value"in e?[e]:e.length===0?!1:e}function n1(e,t){return typeof e=="string"||"key"in e?{from:t,to:e}:"from"in e?{from:e.from,to:e.to}:{from:t,to:e.to}}function Qd(e,t){return e===void 0?[]:Array.isArray(e)?e.map(r=>n1(r,t)):[n1(e,t)]}function i1(e,t){let r=Qd(typeof e=="object"&&"redirect"in e?e.redirect:e,t);return r.length===0?{remain:t,redirect:r}:typeof e=="object"&&"remain"in e?{remain:e.remain,redirect:r}:{redirect:r}}function S8(e,t){if(!e)throw new Error(t)}var F8=class extends _i{constructor(t){super(t),this._choices=E8(t.choices.map(r=>r&&typeof r=="object"?r:{value:r}),"value")}expected({descriptor:t}){let r=Array.from(this._choices.keys()).map(s=>this._choices.get(s)).filter(({hidden:s})=>!s).map(s=>s.value).sort(A8).map(t.value),n=r.slice(0,-2),i=r.slice(-2);return{text:n.concat(i.join(" or ")).join(", "),list:{title:"one of the following values",values:r}}}validate(t){return this._choices.has(t)}deprecated(t){let r=this._choices.get(t);return r&&r.deprecated?{value:t}:!1}forward(t){let r=this._choices.get(t);return r?r.forward:void 0}redirect(t){let r=this._choices.get(t);return r?r.redirect:void 0}},b8=class extends _i{expected(){return"a number"}validate(t,r){return typeof t=="number"}},w8=class extends b8{expected(){return"an integer"}validate(t,r){return r.normalizeValidateResult(super.validate(t,r),t)===!0&&v8(t)}},s1=class extends _i{expected(){return"a string"}validate(t){return typeof t=="string"}},P8=ra,k8=AC,N8=l8,B8=u8,I8=class{constructor(t,r){let{logger:n=console,loggerPrintWidth:i=80,descriptor:s=P8,unknown:a=k8,invalid:o=N8,deprecated:u=B8,missing:l=()=>!1,required:c=()=>!1,preprocess:p=d=>d,postprocess:h=()=>Jl}=r||{};this._utils={descriptor:s,logger:n||{warn:()=>{}},loggerPrintWidth:i,schemas:D8(t,"name"),normalizeDefaultResult:e1,normalizeExpectedResult:TC,normalizeDeprecatedResult:r1,normalizeForwardResult:Qd,normalizeRedirectResult:i1,normalizeValidateResult:t1},this._unknownHandler=a,this._invalidHandler=T8(o),this._deprecatedHandler=u,this._identifyMissing=(d,f)=>!(d in f)||l(d,f),this._identifyRequired=c,this._preprocess=p,this._postprocess=h,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=x8()}normalize(t){let r={},n=[this._preprocess(t,this._utils)],i=()=>{for(;n.length!==0;){let s=n.shift(),a=this._applyNormalization(s,r);n.push(...a)}};i();for(let s of Object.keys(this._utils.schemas)){let a=this._utils.schemas[s];if(!(s in r)){let o=e1(a.default(this._utils));"value"in o&&n.push({[s]:o.value})}}i();for(let s of Object.keys(this._utils.schemas)){if(!(s in r))continue;let a=this._utils.schemas[s],o=r[s],u=a.postprocess(o,this._utils);u!==Jl&&(this._applyValidation(u,s,a),r[s]=u)}return this._applyPostprocess(r),this._applyRequiredCheck(r),r}_applyNormalization(t,r){let n=[],{knownKeys:i,unknownKeys:s}=this._partitionOptionKeys(t);for(let a of i){let o=this._utils.schemas[a],u=o.preprocess(t[a],this._utils);this._applyValidation(u,a,o);let l=({from:h,to:d})=>{n.push(typeof d=="string"?{[d]:h}:{[d.key]:d.value})},c=({value:h,redirectTo:d})=>{let f=r1(o.deprecated(h,this._utils),u,!0);if(f!==!1)if(f===!0)this._hasDeprecationWarned(a)||this._utils.logger.warn(this._deprecatedHandler(a,d,this._utils));else for(let{value:y}of f){let x={key:a,value:y};if(!this._hasDeprecationWarned(x)){let g=typeof d=="string"?{key:d,value:y}:d;this._utils.logger.warn(this._deprecatedHandler(x,g,this._utils))}}};Qd(o.forward(u,this._utils),u).forEach(l);let p=i1(o.redirect(u,this._utils),u);if(p.redirect.forEach(l),"remain"in p){let h=p.remain;r[a]=a in r?o.overlap(r[a],h,this._utils):h,c({value:h})}for(let{from:h,to:d}of p.redirect)c({value:h,redirectTo:d})}for(let a of s){let o=t[a];this._applyUnknownHandler(a,o,r,(u,l)=>{n.push({[u]:l})})}return n}_applyRequiredCheck(t){for(let r of Object.keys(this._utils.schemas))if(this._identifyMissing(r,t)&&this._identifyRequired(r))throw this._invalidHandler(r,xC,this._utils)}_partitionOptionKeys(t){let[r,n]=C8(Object.keys(t).filter(i=>!this._identifyMissing(i,t)),i=>i in this._utils.schemas);return{knownKeys:r,unknownKeys:n}}_applyValidation(t,r,n){let i=t1(n.validate(t,this._utils),t);if(i!==!0)throw this._invalidHandler(r,i.value,this._utils)}_applyUnknownHandler(t,r,n,i){let s=this._unknownHandler(t,r,this._utils);if(s)for(let a of Object.keys(s)){if(this._identifyMissing(a,s))continue;let o=s[a];a in this._utils.schemas?i(a,o):n[a]=o}}_applyPostprocess(t){let r=this._postprocess(t,this._utils);if(r!==Jl){if(r.delete)for(let n of r.delete)delete t[n];if(r.override){let{knownKeys:n,unknownKeys:i}=this._partitionOptionKeys(r.override);for(let s of n){let a=r.override[s];this._applyValidation(a,s,this._utils.schemas[s]),t[s]=a}for(let s of i){let a=r.override[s];this._applyUnknownHandler(s,a,t,(o,u)=>{let l=this._utils.schemas[o];this._applyValidation(u,o,l),t[o]=u})}}}}},Dh;function _8(e,t,{logger:r=!1,isCLI:n=!1,passThrough:i=!1,FlagSchema:s,descriptor:a}={}){if(n){if(!s)throw new Error("'FlagSchema' option is required.");if(!a)throw new Error("'descriptor' option is required.")}else a=ra;let o=i?Array.isArray(i)?(h,d)=>i.includes(h)?{[h]:d}:void 0:(h,d)=>({[h]:d}):(h,d,f)=>{let{_:y,...x}=f.schemas;return AC(h,d,{...f,schemas:x})},u=L8(t,{isCLI:n,FlagSchema:s}),l=new I8(u,{logger:r,unknown:o,descriptor:a}),c=r!==!1;c&&Dh&&(l._hasDeprecationWarned=Dh);let p=l.normalize(e);return c&&(Dh=l._hasDeprecationWarned),p}function L8(e,{isCLI:t,FlagSchema:r}){let n=[];t&&n.push(m8.create({name:"_"}));for(let i of e)n.push($8(i,{isCLI:t,optionInfos:e,FlagSchema:r})),i.alias&&t&&n.push(f8.create({name:i.alias,sourceName:i.name}));return n}function $8(e,{isCLI:t,optionInfos:r,FlagSchema:n}){let{name:i}=e,s={name:i},a,o={};switch(e.type){case"int":a=w8,t&&(s.preprocess=Number);break;case"string":a=s1;break;case"choice":a=F8,s.choices=e.choices.map(u=>u!=null&&u.redirect?{...u,redirect:{to:{key:e.name,value:u.redirect}}}:u);break;case"boolean":a=g8;break;case"flag":a=n,s.flags=r.flatMap(u=>[u.alias,u.description&&u.name,u.oppositeDescription&&`no-${u.name}`].filter(Boolean));break;case"path":a=s1;break;default:throw new Error(`Unexpected type ${e.type}`)}if(e.exception?s.validate=(u,l,c)=>e.exception(u)||l.validate(u,c):s.validate=(u,l,c)=>u===void 0||l.validate(u,c),e.redirect&&(o.redirect=u=>u?{to:typeof e.redirect=="string"?e.redirect:{key:e.redirect.option,value:e.redirect.value}}:void 0),e.deprecated&&(o.deprecated=!0),t&&!e.array){let u=s.preprocess||(l=>l);s.preprocess=(l,c,p)=>c.preprocess(u(Array.isArray(l)?at(0,l,-1):l),p)}return e.array?y8.create({...t?{preprocess:u=>Array.isArray(u)?u:[u]}:{},...o,valueSchema:a.create(s)}):a.create({...s,...o})}var O8=_8,M8=Array.prototype.findLast??function(e){for(let t=this.length-1;t>=0;t--){let r=this[t];if(e(r,t,this))return r}},j8=Lu("findLast",function(){if(Array.isArray(this))return M8}),SC=j8,R8=Symbol.for("PRETTIER_IS_FRONT_MATTER"),U8=[];function V8(e){return!!(e!=null&&e[R8])}var Xm=V8,FC=new Set(["yaml","toml"]),bC=({node:e})=>Xm(e)&&FC.has(e.language);async function z8(e,t,r,n){let{node:i}=r,{language:s}=i;if(!FC.has(s))return;let a=i.value.trim(),o;if(a){let u=s==="yaml"?s:DC(n,{language:s});if(!u)return;o=a?await e(a,{parser:u}):""}else o=a;return Qx([i.startDelimiter,i.explicitLanguage??"",bn,o,o?bn:"",i.endDelimiter])}function q8(e,t){return bC({node:e})&&(delete t.end,delete t.raw,delete t.value),t}var H8=q8;function W8({node:e}){return e.raw}var J8=W8,wC=new Set(["tokens","comments","parent","enclosingNode","precedingNode","followingNode"]),X8=e=>Object.keys(e).filter(t=>!wC.has(t));function K8(e,t){let r=e?n=>e(n,wC):X8;return t?new Proxy(r,{apply:(n,i,s)=>Xm(s[0])?U8:Reflect.apply(n,i,s)}):r}var a1=K8;function PC(e,t){if(!t)throw new Error("parserName is required.");let r=SC(0,e,i=>i.parsers&&Object.prototype.hasOwnProperty.call(i.parsers,t));if(r)return r;let n=`Couldn't resolve parser "${t}".`;throw n+=" Plugins must be explicitly added to the standalone bundle.",new mC(n)}function G8(e,t){if(!t)throw new Error("astFormat is required.");let r=SC(0,e,i=>i.printers&&Object.prototype.hasOwnProperty.call(i.printers,t));if(r)return r;let n=`Couldn't find plugin for AST format "${t}".`;throw n+=" Plugins must be explicitly added to the standalone bundle.",new mC(n)}function Km({plugins:e,parser:t}){let r=PC(e,t);return kC(r,t)}function kC(e,t){let r=e.parsers[t];return typeof r=="function"?r():r}async function Q8(e,t){let r=e.printers[t],n=typeof r=="function"?await r():r;return Y8(n)}var Eh=new WeakMap;function Y8(e){if(Eh.has(e))return Eh.get(e);let{features:t,getVisitorKeys:r,embed:n,massageAstNode:i,print:s,...a}=e;t=rB(t);let o=t.experimental_frontMatterSupport;r=a1(r,o.massageAstNode||o.embed||o.print);let u=i;i&&o.massageAstNode&&(u=new Proxy(i,{apply(h,d,f){return H8(...f),Reflect.apply(h,d,f)}}));let l=n;if(n){let h;l=new Proxy(n,{get(d,f,y){return f==="getVisitorKeys"?(h??(h=n.getVisitorKeys?a1(n.getVisitorKeys,o.massageAstNode||o.embed):r),h):Reflect.get(d,f,y)},apply:(d,f,y)=>o.embed&&bC(...y)?z8:Reflect.apply(d,f,y)})}let c=s;o.print&&(c=new Proxy(s,{apply(h,d,f){let[y]=f;return Xm(y.node)?J8(y):Reflect.apply(h,d,f)}}));let p={features:t,getVisitorKeys:r,embed:l,massageAstNode:u,print:c,...a};return Eh.set(e,p),p}var Z8=["clean","embed","print"],eB=Object.fromEntries(Z8.map(e=>[e,!1]));function tB(e){return{...eB,...e}}function rB(e){return{experimental_avoidAstMutation:!1,...e,experimental_frontMatterSupport:tB(e==null?void 0:e.experimental_frontMatterSupport)}}var o1={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null,getVisitorKeys:null};async function nB(e,t={}){var p;let r={...e};if(!r.parser)if(r.filepath){if(r.parser=DC(r,{physicalFile:r.filepath}),!r.parser)throw new Xg(`No parser could be inferred for file "${r.filepath}".`)}else throw new Xg("No parser and no file path given, couldn't infer a parser.");let n=yC({plugins:e.plugins,showDeprecated:!0}).options,i={...o1,...Object.fromEntries(n.filter(h=>h.default!==void 0).map(h=>[h.name,h.default]))},s=PC(r.plugins,r.parser),a=await kC(s,r.parser);r.astFormat=a.astFormat,r.locEnd=a.locEnd,r.locStart=a.locStart;let o=(p=s.printers)!=null&&p[a.astFormat]?s:G8(r.plugins,a.astFormat),u=await Q8(o,a.astFormat);r.printer=u,r.getVisitorKeys=u.getVisitorKeys;let l=o.defaultOptions?Object.fromEntries(Object.entries(o.defaultOptions).filter(([,h])=>h!==void 0)):{},c={...i,...l};for(let[h,d]of Object.entries(c))(r[h]===null||r[h]===void 0)&&(r[h]=d);return r.parser==="json"&&(r.trailingComma="none"),O8(r,n,{passThrough:Object.keys(o1),...t})}var Oa=nB;xk(Ck(),1);var Gm={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]};new Set(Gm.keyword);new Set(Gm.strict);new Set(Gm.strictBind);var El=(e,t)=>r=>e(t(r));function NC(e){return{keyword:e.cyan,capitalized:e.yellow,jsxIdentifier:e.yellow,punctuator:e.yellow,number:e.magenta,string:e.green,regex:e.magenta,comment:e.gray,invalid:El(El(e.white,e.bgRed),e.bold),gutter:e.gray,marker:El(e.red,e.bold),message:El(e.red,e.bold),reset:e.reset}}NC(EC());NC(EC());function iB(){return new Proxy({},{get:()=>e=>e})}var u1=/\r\n|[\n\r\u2028\u2029]/;function sB(e,t,r){let n=Object.assign({column:0,line:-1},e.start),i=Object.assign({},n,e.end),{linesAbove:s=2,linesBelow:a=3}=r||{},o=n.line,u=n.column,l=i.line,c=i.column,p=Math.max(o-(s+1),0),h=Math.min(t.length,l+a);o===-1&&(p=0),l===-1&&(h=t.length);let d=l-o,f={};if(d)for(let y=0;y<=d;y++){let x=y+o;if(!u)f[x]=!0;else if(y===0){let g=t[x-1].length;f[x]=[u,g-u+1]}else if(y===d)f[x]=[0,c];else{let g=t[x-y].length;f[x]=[0,g]}}else u===c?u?f[o]=[u,0]:f[o]=!0:f[o]=[u,c-u];return{start:p,end:h,markerLines:f}}function aB(e,t,r={}){let n=iB(),i=e.split(u1),{start:s,end:a,markerLines:o}=sB(t,i,r),u=t.start&&typeof t.start.column=="number",l=String(a).length,c=e.split(u1,a).slice(s,a).map((p,h)=>{let d=s+1+h,f=` ${` ${d}`.slice(-l)} |`,y=o[d],x=!o[d+1];if(y){let g="";if(Array.isArray(y)){let m=p.slice(0,Math.max(y[0]-1,0)).replace(/[^\t]/g," "),D=y[1]||1;g=[` - `,n.gutter(f.replace(/\d/g," "))," ",m,n.marker("^").repeat(D)].join(""),x&&r.message&&(g+=" "+n.message(r.message))}return[n.marker(">"),n.gutter(f),p.length>0?` ${p}`:"",g].join("")}else return` ${n.gutter(f)}${p.length>0?` ${p}`:""}`}).join(` +The range will extend backwards to the start of the first line containing the selected statement.`,cliCategory:"Editor"},requirePragma:{category:"Special",type:"boolean",default:!1,description:"Require either '@prettier' or '@format' to be present in the file's first docblock comment in order for it to be formatted.",cliCategory:"Other"},tabWidth:{type:"int",category:"Global",default:2,description:"Number of spaces per indentation level.",range:{start:0,end:1/0,step:1}},useTabs:{category:"Global",type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{category:"Global",type:"choice",default:"auto",description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};function _C({plugins:e=[],showDeprecated:t=!1}={}){let r=e.flatMap(i=>i.languages??[]),n=[];for(let i of A8(Object.assign({},...e.map(({options:s})=>s),C8)))!t&&i.deprecated||(Array.isArray(i.choices)&&(t||(i.choices=i.choices.filter(s=>!s.deprecated)),i.name==="parser"&&(i.choices=[...i.choices,...v8(i.choices,r,e)])),i.pluginDefaults=Object.fromEntries(e.filter(s=>{var a;return((a=s.defaultOptions)==null?void 0:a[i.name])!==void 0}).map(s=>[s.name,s.defaultOptions[i.name]])),n.push(i));return{languages:r,options:n}}function*v8(e,t,r){let n=new Set(e.map(i=>i.value));for(let i of t)if(i.parsers){for(let s of i.parsers)if(!n.has(s)){n.add(s);let a=r.find(u=>u.parsers&&Object.prototype.hasOwnProperty.call(u.parsers,s)),o=i.name;a!=null&&a.name&&(o+=` (plugin: ${a.name})`),yield{value:s,description:o}}}}function A8(e){let t=[];for(let[r,n]of Object.entries(e)){let i={name:r,...n};Array.isArray(i.default)&&(i.default=at(0,i.default,-1).value),t.push(i)}return t}var b8=Array.prototype.toReversed??function(){return[...this].reverse()},T8=Vu("toReversed",function(){if(Array.isArray(this))return b8}),S8=T8;function F8(){var r,n,i,s,a,o;let e=globalThis,t=(n=(r=e.Deno)==null?void 0:r.build)==null?void 0:n.os;return typeof t=="string"?t==="windows":((s=(i=e.navigator)==null?void 0:i.platform)==null?void 0:s.startsWith("Win"))??((o=(a=e.process)==null?void 0:a.platform)==null?void 0:o.startsWith("win"))??!1}var w8=F8();function LC(e){if(e=e instanceof URL?e:new URL(e),e.protocol!=="file:")throw new TypeError(`URL must be a file URL: received "${e.protocol}"`);return e}function k8(e){return e=LC(e),decodeURIComponent(e.pathname.replace(/%(?![0-9A-Fa-f]{2})/g,"%25"))}function P8(e){e=LC(e);let t=decodeURIComponent(e.pathname.replace(/\//g,"\\").replace(/%(?![0-9A-Fa-f]{2})/g,"%25")).replace(/^\\*([A-Za-z]:)(\\|$)/,"$1\\");return e.hostname!==""&&(t=`\\\\${e.hostname}${t}`),t}function N8(e){return w8?P8(e):k8(e)}var B8=e=>String(e).split(/[/\\]/u).pop(),I8=e=>String(e).startsWith("file:");function cg(e,t){if(!t)return;let r=B8(t).toLowerCase();return e.find(({filenames:n})=>n==null?void 0:n.some(i=>i.toLowerCase()===r))??e.find(({extensions:n})=>n==null?void 0:n.some(i=>r.endsWith(i)))}function _8(e,t){if(t)return e.find(({name:r})=>r.toLowerCase()===t)??e.find(({aliases:r})=>r==null?void 0:r.includes(t))??e.find(({extensions:r})=>r==null?void 0:r.includes(`.${t}`))}var bh=void 0;function pg(e,t){if(t){if(I8(t))try{t=N8(t)}catch{return}if(typeof t=="string")return e.find(({isSupported:r})=>r==null?void 0:r({filepath:t}))}}function L8(e,t){var n;let r=S8(0,e.plugins).flatMap(i=>i.languages??[]);return(n=_8(r,t.language)??cg(r,t.physicalFile)??cg(r,t.file)??pg(r,t.physicalFile)??pg(r,t.file)??(bh==null?void 0:bh(r,t.physicalFile)))==null?void 0:n.parsers[0]}var $C=L8,aa={key:e=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?e:JSON.stringify(e),value(e){if(e===null||typeof e!="object")return JSON.stringify(e);if(Array.isArray(e))return`[${e.map(r=>aa.value(r)).join(", ")}]`;let t=Object.keys(e);return t.length===0?"{}":`{ ${t.map(r=>`${aa.key(r)}: ${aa.value(e[r])}`).join(", ")} }`},pair:({key:e,value:t})=>aa.value({[e]:t})},a0=new Proxy(String,{get:()=>a0}),sn=a0,OC=()=>a0,$8=(e,t,{descriptor:r})=>{let n=[`${sn.yellow(typeof e=="string"?r.key(e):r.pair(e))} is deprecated`];return t&&n.push(`we now treat it as ${sn.blue(typeof t=="string"?r.key(t):r.pair(t))}`),n.join("; ")+"."},MC=Symbol.for("vnopts.VALUE_NOT_EXIST"),tc=Symbol.for("vnopts.VALUE_UNCHANGED"),hg=" ".repeat(2),O8=(e,t,r)=>{let{text:n,list:i}=r.normalizeExpectedResult(r.schemas[e].expected(r)),s=[];return n&&s.push(dg(e,t,n,r.descriptor)),i&&s.push([dg(e,t,i.title,r.descriptor)].concat(i.values.map(a=>jC(a,r.loggerPrintWidth))).join(` +`)),RC(s,r.loggerPrintWidth)};function dg(e,t,r,n){return[`Invalid ${sn.red(n.key(e))} value.`,`Expected ${sn.blue(r)},`,`but received ${t===MC?sn.gray("nothing"):sn.red(n.value(t))}.`].join(" ")}function jC({text:e,list:t},r){let n=[];return e&&n.push(`- ${sn.blue(e)}`),t&&n.push([`- ${sn.blue(t.title)}:`].concat(t.values.map(i=>jC(i,r-hg.length).replace(/^|\n/g,`$&${hg}`))).join(` +`)),RC(n,r)}function RC(e,t){if(e.length===1)return e[0];let[r,n]=e,[i,s]=e.map(a=>a.split(` +`,1)[0].length);return i>t&&i>s?n:r}var $s=[],Th=[];function Sh(e,t,r){if(e===t)return 0;let n=r==null?void 0:r.maxDistance,i=e;e.length>t.length&&(e=t,t=i);let s=e.length,a=t.length;for(;s>0&&e.charCodeAt(~-s)===t.charCodeAt(~-a);)s--,a--;let o=0;for(;on)return n;if(s===0)return n!==void 0&&a>n?n:a;let u,l,c,p,h=0,d=0;for(;hl?p>l?l+1:p:p>c?c+1:p;if(n!==void 0){let f=l;for(h=0;hn)return n}}return $s.length=s,Th.length=s,n!==void 0&&l>n?n:l}function M8(e,t,r){if(!Array.isArray(t)||t.length===0)return;let n=r==null?void 0:r.maxDistance,i=e.length;for(let u of t)if(u===e)return u;if(n===0)return;let s,a=Number.POSITIVE_INFINITY,o=new Set;for(let u of t){if(o.has(u))continue;o.add(u);let l=Math.abs(u.length-i);if(l>=a||n!==void 0&&l>n)continue;let c=Number.isFinite(a)?n===void 0?a:Math.min(a,n):n,p=c===void 0?Sh(e,u):Sh(e,u,{maxDistance:c});if(n!==void 0&&p>n)continue;let h=p;if(c!==void 0&&p===c&&c===n&&(h=Sh(e,u)),hn))return s}var UC=(e,t,{descriptor:r,logger:n,schemas:i})=>{let s=[`Ignored unknown option ${sn.yellow(r.pair({key:e,value:t}))}.`],a=M8(e,Object.keys(i),{maxDistance:3});a&&s.push(`Did you mean ${sn.blue(r.key(a))}?`),n.warn(s.join(" "))},j8=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function R8(e,t){let r=new e(t),n=Object.create(r);for(let i of j8)i in t&&(n[i]=U8(t[i],r,$i.prototype[i].length));return n}var $i=class{static create(t){return R8(this,t)}constructor(t){this.name=t.name}default(t){}expected(t){return"nothing"}validate(t,r){return!1}deprecated(t,r){return!1}forward(t,r){}redirect(t,r){}overlap(t,r,n){return t}preprocess(t,r){return t}postprocess(t,r){return tc}};function U8(e,t,r){return typeof e=="function"?(...n)=>e(...n.slice(0,r-1),t,...n.slice(r-1)):()=>e}var V8=class extends $i{constructor(t){super(t),this._sourceName=t.sourceName}expected(t){return t.schemas[this._sourceName].expected(t)}validate(t,r){return r.schemas[this._sourceName].validate(t,r)}redirect(t,r){return this._sourceName}},z8=class extends $i{expected(){return"anything"}validate(){return!0}},q8=class extends $i{constructor({valueSchema:t,name:r=t.name,...n}){super({...n,name:r}),this._valueSchema=t}expected(t){let{text:r,list:n}=t.normalizeExpectedResult(this._valueSchema.expected(t));return{text:r&&`an array of ${r}`,list:n&&{title:"an array of the following values",values:[{list:n}]}}}validate(t,r){if(!Array.isArray(t))return!1;let n=[];for(let i of t){let s=r.normalizeValidateResult(this._valueSchema.validate(i,r),i);s!==!0&&n.push(s.value)}return n.length===0?!0:{value:n}}deprecated(t,r){let n=[];for(let i of t){let s=r.normalizeDeprecatedResult(this._valueSchema.deprecated(i,r),i);s!==!1&&n.push(...s.map(({value:a})=>({value:[a]})))}return n}forward(t,r){let n=[];for(let i of t){let s=r.normalizeForwardResult(this._valueSchema.forward(i,r),i);n.push(...s.map(fg))}return n}redirect(t,r){let n=[],i=[];for(let s of t){let a=r.normalizeRedirectResult(this._valueSchema.redirect(s,r),s);"remain"in a&&n.push(a.remain),i.push(...a.redirect.map(fg))}return n.length===0?{redirect:i}:{redirect:i,remain:n}}overlap(t,r){return t.concat(r)}};function fg({from:e,to:t}){return{from:[e],to:t}}var H8=class extends $i{expected(){return"true or false"}validate(t){return typeof t=="boolean"}};function W8(e,t){let r=Object.create(null);for(let n of e){let i=n[t];if(r[i])throw new Error(`Duplicate ${t} ${JSON.stringify(i)}`);r[i]=n}return r}function J8(e,t){let r=new Map;for(let n of e){let i=n[t];if(r.has(i))throw new Error(`Duplicate ${t} ${JSON.stringify(i)}`);r.set(i,n)}return r}function X8(){let e=Object.create(null);return t=>{let r=JSON.stringify(t);return e[r]?!0:(e[r]=!0,!1)}}function K8(e,t){let r=[],n=[];for(let i of e)t(i)?r.push(i):n.push(i);return[r,n]}function G8(e){return e===Math.floor(e)}function Q8(e,t){if(e===t)return 0;let r=typeof e,n=typeof t,i=["undefined","object","boolean","number","string"];return r!==n?i.indexOf(r)-i.indexOf(n):r!=="string"?Number(e)-Number(t):e.localeCompare(t)}function Y8(e){return(...t)=>{let r=e(...t);return typeof r=="string"?new Error(r):r}}function mg(e){return e===void 0?{}:e}function VC(e){if(typeof e=="string")return{text:e};let{text:t,list:r}=e;return Z8((t||r)!==void 0,"Unexpected `expected` result, there should be at least one field."),r?{text:t,list:{title:r.title,values:r.values.map(VC)}}:{text:t}}function yg(e,t){return e===!0?!0:e===!1?{value:t}:e}function gg(e,t,r=!1){return e===!1?!1:e===!0?r?!0:[{value:t}]:"value"in e?[e]:e.length===0?!1:e}function Dg(e,t){return typeof e=="string"||"key"in e?{from:t,to:e}:"from"in e?{from:e.from,to:e.to}:{from:t,to:e.to}}function uf(e,t){return e===void 0?[]:Array.isArray(e)?e.map(r=>Dg(r,t)):[Dg(e,t)]}function xg(e,t){let r=uf(typeof e=="object"&&"redirect"in e?e.redirect:e,t);return r.length===0?{remain:t,redirect:r}:typeof e=="object"&&"remain"in e?{remain:e.remain,redirect:r}:{redirect:r}}function Z8(e,t){if(!e)throw new Error(t)}var e4=class extends $i{constructor(t){super(t),this._choices=J8(t.choices.map(r=>r&&typeof r=="object"?r:{value:r}),"value")}expected({descriptor:t}){let r=Array.from(this._choices.keys()).map(s=>this._choices.get(s)).filter(({hidden:s})=>!s).map(s=>s.value).sort(Q8).map(t.value),n=r.slice(0,-2),i=r.slice(-2);return{text:n.concat(i.join(" or ")).join(", "),list:{title:"one of the following values",values:r}}}validate(t){return this._choices.has(t)}deprecated(t){let r=this._choices.get(t);return r&&r.deprecated?{value:t}:!1}forward(t){let r=this._choices.get(t);return r?r.forward:void 0}redirect(t){let r=this._choices.get(t);return r?r.redirect:void 0}},t4=class extends $i{expected(){return"a number"}validate(t,r){return typeof t=="number"}},r4=class extends t4{expected(){return"an integer"}validate(t,r){return r.normalizeValidateResult(super.validate(t,r),t)===!0&&G8(t)}},Eg=class extends $i{expected(){return"a string"}validate(t){return typeof t=="string"}},n4=aa,i4=UC,s4=O8,a4=$8,o4=class{constructor(t,r){let{logger:n=console,loggerPrintWidth:i=80,descriptor:s=n4,unknown:a=i4,invalid:o=s4,deprecated:u=a4,missing:l=()=>!1,required:c=()=>!1,preprocess:p=d=>d,postprocess:h=()=>tc}=r||{};this._utils={descriptor:s,logger:n||{warn:()=>{}},loggerPrintWidth:i,schemas:W8(t,"name"),normalizeDefaultResult:mg,normalizeExpectedResult:VC,normalizeDeprecatedResult:gg,normalizeForwardResult:uf,normalizeRedirectResult:xg,normalizeValidateResult:yg},this._unknownHandler=a,this._invalidHandler=Y8(o),this._deprecatedHandler=u,this._identifyMissing=(d,f)=>!(d in f)||l(d,f),this._identifyRequired=c,this._preprocess=p,this._postprocess=h,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=X8()}normalize(t){let r={},n=[this._preprocess(t,this._utils)],i=()=>{for(;n.length!==0;){let s=n.shift(),a=this._applyNormalization(s,r);n.push(...a)}};i();for(let s of Object.keys(this._utils.schemas)){let a=this._utils.schemas[s];if(!(s in r)){let o=mg(a.default(this._utils));"value"in o&&n.push({[s]:o.value})}}i();for(let s of Object.keys(this._utils.schemas)){if(!(s in r))continue;let a=this._utils.schemas[s],o=r[s],u=a.postprocess(o,this._utils);u!==tc&&(this._applyValidation(u,s,a),r[s]=u)}return this._applyPostprocess(r),this._applyRequiredCheck(r),r}_applyNormalization(t,r){let n=[],{knownKeys:i,unknownKeys:s}=this._partitionOptionKeys(t);for(let a of i){let o=this._utils.schemas[a],u=o.preprocess(t[a],this._utils);this._applyValidation(u,a,o);let l=({from:h,to:d})=>{n.push(typeof d=="string"?{[d]:h}:{[d.key]:d.value})},c=({value:h,redirectTo:d})=>{let f=gg(o.deprecated(h,this._utils),u,!0);if(f!==!1)if(f===!0)this._hasDeprecationWarned(a)||this._utils.logger.warn(this._deprecatedHandler(a,d,this._utils));else for(let{value:y}of f){let C={key:a,value:y};if(!this._hasDeprecationWarned(C)){let g=typeof d=="string"?{key:d,value:y}:d;this._utils.logger.warn(this._deprecatedHandler(C,g,this._utils))}}};uf(o.forward(u,this._utils),u).forEach(l);let p=xg(o.redirect(u,this._utils),u);if(p.redirect.forEach(l),"remain"in p){let h=p.remain;r[a]=a in r?o.overlap(r[a],h,this._utils):h,c({value:h})}for(let{from:h,to:d}of p.redirect)c({value:h,redirectTo:d})}for(let a of s){let o=t[a];this._applyUnknownHandler(a,o,r,(u,l)=>{n.push({[u]:l})})}return n}_applyRequiredCheck(t){for(let r of Object.keys(this._utils.schemas))if(this._identifyMissing(r,t)&&this._identifyRequired(r))throw this._invalidHandler(r,MC,this._utils)}_partitionOptionKeys(t){let[r,n]=K8(Object.keys(t).filter(i=>!this._identifyMissing(i,t)),i=>i in this._utils.schemas);return{knownKeys:r,unknownKeys:n}}_applyValidation(t,r,n){let i=yg(n.validate(t,this._utils),t);if(i!==!0)throw this._invalidHandler(r,i.value,this._utils)}_applyUnknownHandler(t,r,n,i){let s=this._unknownHandler(t,r,this._utils);if(s)for(let a of Object.keys(s)){if(this._identifyMissing(a,s))continue;let o=s[a];a in this._utils.schemas?i(a,o):n[a]=o}}_applyPostprocess(t){let r=this._postprocess(t,this._utils);if(r!==tc){if(r.delete)for(let n of r.delete)delete t[n];if(r.override){let{knownKeys:n,unknownKeys:i}=this._partitionOptionKeys(r.override);for(let s of n){let a=r.override[s];this._applyValidation(a,s,this._utils.schemas[s]),t[s]=a}for(let s of i){let a=r.override[s];this._applyUnknownHandler(s,a,t,(o,u)=>{let l=this._utils.schemas[o];this._applyValidation(u,o,l),t[o]=u})}}}}},Fh;function u4(e,t,{logger:r=!1,isCLI:n=!1,passThrough:i=!1,FlagSchema:s,descriptor:a}={}){if(n){if(!s)throw new Error("'FlagSchema' option is required.");if(!a)throw new Error("'descriptor' option is required.")}else a=aa;let o=i?Array.isArray(i)?(h,d)=>i.includes(h)?{[h]:d}:void 0:(h,d)=>({[h]:d}):(h,d,f)=>{let{_:y,...C}=f.schemas;return UC(h,d,{...f,schemas:C})},u=l4(t,{isCLI:n,FlagSchema:s}),l=new o4(u,{logger:r,unknown:o,descriptor:a}),c=r!==!1;c&&Fh&&(l._hasDeprecationWarned=Fh);let p=l.normalize(e);return c&&(Fh=l._hasDeprecationWarned),p}function l4(e,{isCLI:t,FlagSchema:r}){let n=[];t&&n.push(z8.create({name:"_"}));for(let i of e)n.push(c4(i,{isCLI:t,optionInfos:e,FlagSchema:r})),i.alias&&t&&n.push(V8.create({name:i.alias,sourceName:i.name}));return n}function c4(e,{isCLI:t,optionInfos:r,FlagSchema:n}){let{name:i}=e,s={name:i},a,o={};switch(e.type){case"int":a=r4,t&&(s.preprocess=Number);break;case"string":a=Eg;break;case"choice":a=e4,s.choices=e.choices.map(u=>u!=null&&u.redirect?{...u,redirect:{to:{key:e.name,value:u.redirect}}}:u);break;case"boolean":a=H8;break;case"flag":a=n,s.flags=r.flatMap(u=>[u.alias,u.description&&u.name,u.oppositeDescription&&`no-${u.name}`].filter(Boolean));break;case"path":a=Eg;break;default:throw new Error(`Unexpected type ${e.type}`)}if(e.exception?s.validate=(u,l,c)=>e.exception(u)||l.validate(u,c):s.validate=(u,l,c)=>u===void 0||l.validate(u,c),e.redirect&&(o.redirect=u=>u?{to:typeof e.redirect=="string"?e.redirect:{key:e.redirect.option,value:e.redirect.value}}:void 0),e.deprecated&&(o.deprecated=!0),t&&!e.array){let u=s.preprocess||(l=>l);s.preprocess=(l,c,p)=>c.preprocess(u(Array.isArray(l)?at(0,l,-1):l),p)}return e.array?q8.create({...t?{preprocess:u=>Array.isArray(u)?u:[u]}:{},...o,valueSchema:a.create(s)}):a.create({...s,...o})}var p4=u4,h4=Array.prototype.findLast??function(e){for(let t=this.length-1;t>=0;t--){let r=this[t];if(e(r,t,this))return r}},d4=Vu("findLast",function(){if(Array.isArray(this))return h4}),zC=d4,f4=Symbol.for("PRETTIER_IS_FRONT_MATTER"),m4=[];function y4(e){return!!(e!=null&&e[f4])}var o0=y4,qC=new Set(["yaml","toml"]),HC=({node:e})=>o0(e)&&qC.has(e.language);async function g4(e,t,r,n){let{node:i}=r,{language:s}=i;if(!qC.has(s))return;let a=i.value.trim(),o;if(a){let u=s==="yaml"?s:$C(n,{language:s});if(!u)return;o=a?await e(a,{parser:u}):""}else o=a;return mC([i.startDelimiter,i.explicitLanguage??"",wn,o,o?wn:"",i.endDelimiter])}function D4(e,t){return HC({node:e})&&(delete t.end,delete t.raw,delete t.value),t}var x4=D4;function E4({node:e}){return e.raw}var C4=E4,WC=new Set(["tokens","comments","parent","enclosingNode","precedingNode","followingNode"]),v4=e=>Object.keys(e).filter(t=>!WC.has(t));function A4(e,t){let r=e?n=>e(n,WC):v4;return t?new Proxy(r,{apply:(n,i,s)=>o0(s[0])?m4:Reflect.apply(n,i,s)}):r}var Cg=A4;function JC(e,t){if(!t)throw new Error("parserName is required.");let r=zC(0,e,i=>i.parsers&&Object.prototype.hasOwnProperty.call(i.parsers,t));if(r)return r;let n=`Couldn't resolve parser "${t}".`;throw n+=" Plugins must be explicitly added to the standalone bundle.",new IC(n)}function b4(e,t){if(!t)throw new Error("astFormat is required.");let r=zC(0,e,i=>i.printers&&Object.prototype.hasOwnProperty.call(i.printers,t));if(r)return r;let n=`Couldn't find plugin for AST format "${t}".`;throw n+=" Plugins must be explicitly added to the standalone bundle.",new IC(n)}function u0({plugins:e,parser:t}){let r=JC(e,t);return XC(r,t)}function XC(e,t){let r=e.parsers[t];return typeof r=="function"?r():r}async function T4(e,t){let r=e.printers[t],n=typeof r=="function"?await r():r;return S4(n)}var wh=new WeakMap;function S4(e){if(wh.has(e))return wh.get(e);let{features:t,getVisitorKeys:r,embed:n,massageAstNode:i,print:s,...a}=e;t=P4(t);let o=t.experimental_frontMatterSupport;r=Cg(r,o.massageAstNode||o.embed||o.print);let u=i;i&&o.massageAstNode&&(u=new Proxy(i,{apply(h,d,f){return x4(...f),Reflect.apply(h,d,f)}}));let l=n;if(n){let h;l=new Proxy(n,{get(d,f,y){return f==="getVisitorKeys"?(h??(h=n.getVisitorKeys?Cg(n.getVisitorKeys,o.massageAstNode||o.embed):r),h):Reflect.get(d,f,y)},apply:(d,f,y)=>o.embed&&HC(...y)?g4:Reflect.apply(d,f,y)})}let c=s;o.print&&(c=new Proxy(s,{apply(h,d,f){let[y]=f;return o0(y.node)?C4(y):Reflect.apply(h,d,f)}}));let p={features:t,getVisitorKeys:r,embed:l,massageAstNode:u,print:c,...a};return wh.set(e,p),p}var F4=["clean","embed","print"],w4=Object.fromEntries(F4.map(e=>[e,!1]));function k4(e){return{...w4,...e}}function P4(e){return{experimental_avoidAstMutation:!1,...e,experimental_frontMatterSupport:k4(e==null?void 0:e.experimental_frontMatterSupport)}}var vg={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null,getVisitorKeys:null};async function N4(e,t={}){var p;let r={...e};if(!r.parser)if(r.filepath){if(r.parser=$C(r,{physicalFile:r.filepath}),!r.parser)throw new lg(`No parser could be inferred for file "${r.filepath}".`)}else throw new lg("No parser and no file path given, couldn't infer a parser.");let n=_C({plugins:e.plugins,showDeprecated:!0}).options,i={...vg,...Object.fromEntries(n.filter(h=>h.default!==void 0).map(h=>[h.name,h.default]))},s=JC(r.plugins,r.parser),a=await XC(s,r.parser);r.astFormat=a.astFormat,r.locEnd=a.locEnd,r.locStart=a.locStart;let o=(p=s.printers)!=null&&p[a.astFormat]?s:b4(r.plugins,a.astFormat),u=await T4(o,a.astFormat);r.printer=u,r.getVisitorKeys=u.getVisitorKeys;let l=o.defaultOptions?Object.fromEntries(Object.entries(o.defaultOptions).filter(([,h])=>h!==void 0)):{},c={...i,...l};for(let[h,d]of Object.entries(c))(r[h]===null||r[h]===void 0)&&(r[h]=d);return r.parser==="json"&&(r.trailingComma="none"),p4(r,n,{passThrough:Object.keys(vg),...t})}var Ua=N4;XP(KP(),1);var l0={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]};new Set(l0.keyword);new Set(l0.strict);new Set(l0.strictBind);var Sl=(e,t)=>r=>e(t(r));function KC(e){return{keyword:e.cyan,capitalized:e.yellow,jsxIdentifier:e.yellow,punctuator:e.yellow,number:e.magenta,string:e.green,regex:e.magenta,comment:e.gray,invalid:Sl(Sl(e.white,e.bgRed),e.bold),gutter:e.gray,marker:Sl(e.red,e.bold),message:Sl(e.red,e.bold),reset:e.reset}}KC(OC());KC(OC());function B4(){return new Proxy({},{get:()=>e=>e})}var Ag=/\r\n|[\n\r\u2028\u2029]/;function I4(e,t,r){let n=Object.assign({column:0,line:-1},e.start),i=Object.assign({},n,e.end),{linesAbove:s=2,linesBelow:a=3}=r||{},o=n.line,u=n.column,l=i.line,c=i.column,p=Math.max(o-(s+1),0),h=Math.min(t.length,l+a);o===-1&&(p=0),l===-1&&(h=t.length);let d=l-o,f={};if(d)for(let y=0;y<=d;y++){let C=y+o;if(!u)f[C]=!0;else if(y===0){let g=t[C-1].length;f[C]=[u,g-u+1]}else if(y===d)f[C]=[0,c];else{let g=t[C-y].length;f[C]=[0,g]}}else u===c?u?f[o]=[u,0]:f[o]=!0:f[o]=[u,c-u];return{start:p,end:h,markerLines:f}}function _4(e,t,r={}){let n=B4(),i=e.split(Ag),{start:s,end:a,markerLines:o}=I4(t,i,r),u=t.start&&typeof t.start.column=="number",l=String(a).length,c=e.split(Ag,a).slice(s,a).map((p,h)=>{let d=s+1+h,f=` ${` ${d}`.slice(-l)} |`,y=o[d],C=!o[d+1];if(y){let g="";if(Array.isArray(y)){let m=p.slice(0,Math.max(y[0]-1,0)).replace(/[^\t]/g," "),x=y[1]||1;g=[` + `,n.gutter(f.replace(/\d/g," "))," ",m,n.marker("^").repeat(x)].join(""),C&&r.message&&(g+=" "+n.message(r.message))}return[n.marker(">"),n.gutter(f),p.length>0?` ${p}`:"",g].join("")}else return` ${n.gutter(f)}${p.length>0?` ${p}`:""}`}).join(` `);return r.message&&!u&&(c=`${" ".repeat(l+1)}${r.message} -${c}`),c}async function oB(e,t){let r=await Km(t),n=r.preprocess?await r.preprocess(e,t):e;t.originalText=n;let i;try{i=await r.parse(n,t,t)}catch(s){uB(s,e)}return{text:n,ast:i}}function uB(e,t){let{loc:r}=e;if(r){let n=aB(t,r,{highlightCode:!0});throw e.message+=` -`+n,e.codeFrame=n,e}throw e}var Ou=oB;async function lB(e,t,r,n,i){if(r.embeddedLanguageFormatting!=="auto")return;let{printer:s}=r,{embed:a}=s;if(!a)return;if(a.length>2)throw new Error("printer.embed has too many parameters. The API changed in Prettier v3. Please update your plugin. See https://prettier.io/docs/plugins#optional-embed");let{hasPrettierIgnore:o}=s,{getVisitorKeys:u}=a,l=[];h();let c=e.stack;for(let{print:d,node:f,pathStack:y}of l)try{e.stack=y;let x=await d(p,t,e,r);x&&i.set(f,x)}catch(x){if(globalThis.PRETTIER_DEBUG)throw x}e.stack=c;function p(d,f){return cB(d,f,r,n)}function h(){let{node:d}=e;if(d===null||typeof d!="object"||o!=null&&o(e))return;for(let y of u(d))Array.isArray(d[y])?e.each(h,y):e.call(h,y);let f=a(e,r);if(f){if(typeof f=="function"){l.push({print:f,node:d,pathStack:[...e.stack]});return}i.set(d,f)}}}async function cB(e,t,r,n){let i=await Oa({...r,...t,parentParser:r.parser,originalText:e,cursorOffset:void 0,rangeStart:void 0,rangeEnd:void 0},{passThrough:!0}),{ast:s}=await Ou(e,i),a=await n(s,i);return Gx(a)}function pB(e,t,r,n){let{originalText:i,[Symbol.for("comments")]:s,locStart:a,locEnd:o,[Symbol.for("printedComments")]:u}=t,{node:l}=e,c=a(l),p=o(l);for(let d of s)a(d)>=c&&o(d)<=p&&u.add(d);let{printPrettierIgnored:h}=t.printer;return h?h(e,t,r,n):i.slice(c,p)}var hB=pB;async function dp(e,t){({ast:e}=await BC(e,t));let r=new Map,n=new wN(e),i=new Map;await lB(n,a,t,dp,i);let s=await l1(n,t,a,void 0,i);if(WN(t),t.cursorOffset>=0){if(t.nodeAfterCursor&&!t.nodeBeforeCursor)return[ts,s];if(t.nodeBeforeCursor&&!t.nodeAfterCursor)return[s,ts]}return s;function a(u,l){return u===void 0||u===n?o(l):Array.isArray(u)?n.call(()=>o(l),...u):n.call(()=>o(l),u)}function o(u){let l=n.node;if(l==null)return"";let c=qm(l)&&u===void 0;if(c&&r.has(l))return r.get(l);let p=l1(n,t,a,u,i);return c&&r.set(l,p),p}}function l1(e,t,r,n,i){var u,l;let{node:s}=e,{printer:a}=t,o;switch((u=a.hasPrettierIgnore)!=null&&u.call(a,e)?o=hB(e,t,r,n):i.has(s)?o=i.get(s):o=a.print(e,t,r,n),s){case t.cursorNode:o=Hl(o,c=>[ts,c,ts]);break;case t.nodeBeforeCursor:o=Hl(o,c=>[c,ts]);break;case t.nodeAfterCursor:o=Hl(o,c=>[ts,c]);break}return a.printComment&&!((l=a.willPrintOwnComments)!=null&&l.call(a,e,t))&&(o=HN(e,o,t)),o}async function BC(e,t){let r=e.comments??[];t[Symbol.for("comments")]=r,t[Symbol.for("printedComments")]=new Set,MN(e,t);let{printer:{preprocess:n}}=t;return e=n?await n(e,t):e,{ast:e,comments:r}}function dB(e,t){let{cursorOffset:r,locStart:n,locEnd:i,getVisitorKeys:s}=t,a=d=>n(d)<=r&&i(d)>=r,o=e,u=[e];for(let d of LN(e,{getVisitorKeys:s,filter:a}))u.push(d),o=d;if($N(o,{getVisitorKeys:s}))return{cursorNode:o};let l,c,p=-1,h=Number.POSITIVE_INFINITY;for(;u.length>0&&(l===void 0||c===void 0);){o=u.pop();let d=l!==void 0,f=c!==void 0;for(let y of hp(o,{getVisitorKeys:s})){if(!d){let x=i(y);x<=r&&x>p&&(l=y,p=x)}if(!f){let x=n(y);x>=r&&xa(h,u)).filter(Boolean);let l={},c=new Set(i(o));for(let h in o)!Object.prototype.hasOwnProperty.call(o,h)||s!=null&&s.has(h)||(c.has(h)?l[h]=a(o[h],o):l[h]=o[h]);let p=n(o,l,u);if(p!==null)return p??l}}var mB=fB,yB=Array.prototype.findLastIndex??function(e){for(let t=this.length-1;t>=0;t--){let r=this[t];if(e(r,t,this))return t}return-1},gB=Lu("findLastIndex",function(){if(Array.isArray(this))return yB}),DB=gB,EB=({parser:e})=>e==="json"||e==="json5"||e==="jsonc"||e==="json-stringify";function xB(e,t){return t=new Set(t),e.find(r=>_C.has(r.type)&&t.has(r))}function c1(e){let t=DB(0,e,r=>r.type!=="Program"&&r.type!=="File");return t===-1?e:e.slice(0,t+1)}function CB(e,t,{locStart:r,locEnd:n}){let[i,...s]=e,[a,...o]=t;if(i===a)return[i,a];let u=r(i);for(let c of c1(o))if(r(c)>=u)a=c;else break;let l=n(a);for(let c of c1(s)){if(n(c)<=l)i=c;else break;if(i===a)break}return[i,a]}function Yd(e,t,r,n,i=[],s){let{locStart:a,locEnd:o}=r,u=a(e),l=o(e);if(t>l||tn&&!/\S/u.test(e[i-1]);--i);let l=Yd(r,n,t,(d,f)=>p1(t,d,f),[],"rangeStart");if(!l)return;let c=u?l:Yd(r,i,t,d=>p1(t,d),[],"rangeEnd");if(!c)return;let p,h;if(EB(t)){let d=xB(l,c);p=d,h=d}else[p,h]=CB(l,c,t);return[Math.min(s(p),s(h)),Math.max(a(p),a(h))]}var LC="\uFEFF",h1=Symbol("cursor");async function $C(e,t,r=0){if(!e||e.trim().length===0)return{formatted:"",cursorOffset:-1,comments:[]};let{ast:n,text:i}=await Ou(e,t);t.cursorOffset>=0&&(t={...t,...IC(n,t)});let s=await dp(n,t);r>0&&(s=Yx([bn,s],r,t.tabWidth));let a=pp(s,t);if(r>0){let u=a.formatted.trim();a.cursorNodeStart!==void 0&&(a.cursorNodeStart-=a.formatted.indexOf(u),a.cursorNodeStart<0&&(a.cursorNodeStart=0,a.cursorNodeText=a.cursorNodeText.trimStart()),a.cursorNodeStart+a.cursorNodeText.length>u.length&&(a.cursorNodeText=a.cursorNodeText.trimEnd())),a.formatted=u+Mm(t.endOfLine)}let o=t[Symbol.for("comments")];if(t.cursorOffset>=0){let u,l,c,p;if((t.cursorNode||t.nodeBeforeCursor||t.nodeAfterCursor)&&a.cursorNodeText)if(c=a.cursorNodeStart,p=a.cursorNodeText,t.cursorNode)u=t.locStart(t.cursorNode),l=i.slice(u,t.locEnd(t.cursorNode));else{if(!t.nodeBeforeCursor&&!t.nodeAfterCursor)throw new Error("Cursor location must contain at least one of cursorNode, nodeBeforeCursor, nodeAfterCursor");u=t.nodeBeforeCursor?t.locEnd(t.nodeBeforeCursor):0;let g=t.nodeAfterCursor?t.locStart(t.nodeAfterCursor):i.length;l=i.slice(u,g)}else u=0,l=i,c=0,p=a.formatted;let h=t.cursorOffset-u;if(l===p)return{formatted:a.formatted,cursorOffset:c+h,comments:o};let d=l.split("");d.splice(h,0,h1);let f=p.split(""),y=wk(d,f),x=c;for(let g of y)if(g.removed){if(g.value.includes(h1))break}else x+=g.count;return{formatted:a.formatted,cursorOffset:x,comments:o}}return{formatted:a.formatted,cursorOffset:-1,comments:o}}async function SB(e,t){let{ast:r,text:n}=await Ou(e,t),[i,s]=TB(n,t,r)??[0,0],a=n.slice(i,s),o=Math.min(i,n.lastIndexOf(` -`,i)+1),u=n.slice(o,i).match(/^\s*/u)[0],l=zm(u,t.tabWidth),c=await $C(a,{...t,rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:t.cursorOffset>i&&t.cursorOffset<=s?t.cursorOffset-i:-1,endOfLine:"lf"},l),p=c.formatted.trimEnd(),{cursorOffset:h}=t;h>s?h+=p.length-a.length:c.cursorOffset>=0&&(h=c.cursorOffset+i);let d=n.slice(0,i)+p+n.slice(s);if(t.endOfLine!=="lf"){let f=Mm(t.endOfLine);h>=0&&f===`\r -`&&(h+=Xx(d.slice(0,h),` -`)),d=op(0,d,` -`,f)}return{formatted:d,cursorOffset:h,comments:c.comments}}function xh(e,t,r){return typeof t!="number"||Number.isNaN(t)||t<0||t>e.length?r:t}function d1(e,t){let{cursorOffset:r,rangeStart:n,rangeEnd:i}=t;return r=xh(e,r,-1),n=xh(e,n,0),i=xh(e,i,e.length),{...t,cursorOffset:r,rangeStart:n,rangeEnd:i}}function OC(e,t){let{cursorOffset:r,rangeStart:n,rangeEnd:i,endOfLine:s}=d1(e,t),a=e.charAt(0)===LC;if(a&&(e=e.slice(1),r--,n--,i--),s==="auto"&&(s=_k(e)),e.includes("\r")){let o=u=>Xx(e.slice(0,Math.max(u,0)),`\r -`);r-=o(r),n-=o(n),i-=o(i),e=Ok(e)}return{hasBOM:a,text:e,options:d1(e,{...t,cursorOffset:r,rangeStart:n,rangeEnd:i,endOfLine:s})}}async function f1(e,t){let r=await Km(t);return!r.hasPragma||r.hasPragma(e)}async function FB(e,t){var r,n;return(n=(r=await Km(t)).hasIgnorePragma)==null?void 0:n.call(r,e)}async function MC(e,t){let{hasBOM:r,text:n,options:i}=OC(e,await Oa(t));if(i.rangeStart>=i.rangeEnd&&n!==""||i.requirePragma&&!await f1(n,i)||i.checkIgnorePragma&&await FB(n,i))return{formatted:e,cursorOffset:t.cursorOffset,comments:[]};let s;return i.rangeStart>0||i.rangeEnd=0&&s.cursorOffset++),s}async function bB(e,t,r){let{text:n,options:i}=OC(e,await Oa(t)),s=await Ou(n,i);return r&&(r.preprocessForPrint&&(s.ast=await BC(s.ast,i)),r.massage&&(s.ast=mB(s.ast,i))),s}async function wB(e,t){t=await Oa(t);let r=await dp(e,t);return pp(r,t)}async function PB(e,t){let r=dN(e),{formatted:n}=await MC(r,{...t,parser:"__js_expression"});return n}async function kB(e,t){t=await Oa(t);let{ast:r}=await Ou(e,t);return t.cursorOffset>=0&&(t={...t,...IC(r,t)}),dp(r,t)}async function NB(e,t){return pp(e,await Oa(t))}var jC={};$m(jC,{builders:()=>BB,printer:()=>IB,utils:()=>_B});var BB={join:eC,line:tC,softline:cN,hardline:bn,literalline:nC,group:Zx,conditionalGroup:aN,fill:sN,lineSuffix:Xd,lineSuffixBoundary:pN,cursor:ts,breakParent:cp,ifBreak:oN,trim:hN,indent:Nc,indentIfBreak:uN,align:va,addAlignmentToDoc:Yx,markAsRoot:Qx,dedentToRoot:nN,dedent:iN,hardlineWithoutBreakParent:Um,literallineWithoutBreakParent:rC,label:lN,concat:e=>e},IB={printDocToString:pp},_B={willBreak:Jk,traverseDoc:jm,findInDoc:Rm,mapDoc:lp,removeLines:Gk,stripTrailingHardline:Gx,replaceEndOfLine:Zk,canBreak:tN},LB="3.8.0",RC={};$m(RC,{addDanglingComment:()=>Ki,addLeadingComment:()=>Uo,addTrailingComment:()=>Vo,getAlignmentSize:()=>zm,getIndentSize:()=>UB,getMaxContinuousCount:()=>qB,getNextNonSpaceNonCommentCharacter:()=>WB,getNextNonSpaceNonCommentCharacterIndex:()=>rI,getPreferredQuote:()=>GB,getStringWidth:()=>Vm,hasNewline:()=>Ci,hasNewlineInRange:()=>YB,hasSpaces:()=>eI,isNextLineEmpty:()=>oI,isNextLineEmptyAfterIndex:()=>ey,isPreviousLineEmpty:()=>iI,makeString:()=>aI,skip:()=>$u,skipEverythingButNewLine:()=>uC,skipInlineComment:()=>Qm,skipNewline:()=>ds,skipSpaces:()=>Fi,skipToLineEnd:()=>oC,skipTrailingComment:()=>Ym,skipWhitespace:()=>kN});function $B(e,t){if(t===!1)return!1;if(e.charAt(t)==="/"&&e.charAt(t+1)==="*"){for(let r=t+2;rMath.max(n,i.length),0)/t.length}var qB=zB;function HB(e,t){let r=Zm(e,t);return r===!1?"":e.charAt(r)}var WB=HB,UC=Object.freeze({character:"'",codePoint:39}),VC=Object.freeze({character:'"',codePoint:34}),JB=Object.freeze({preferred:UC,alternate:VC}),XB=Object.freeze({preferred:VC,alternate:UC});function KB(e,t){let{preferred:r,alternate:n}=t===!0||t==="'"?JB:XB,{length:i}=e,s=0,a=0;for(let o=0;oa?n:r).character}var GB=KB;function QB(e,t,r){for(let n=t;na===n?a:o===t?"\\"+o:o||(r&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(a)?a:"\\"+a));return t+i+t}function oI(e,t){return arguments.length===2||typeof t=="number"?ey(e,t):sI(...arguments)}function Gi(e,t=1){return async(...r)=>{let n=r[t]??{},i=n.plugins??[];return r[t]={...n,plugins:Array.isArray(i)?i:Object.values(i)},e(...r)}}var zC=Gi(MC);async function fp(e,t){let{formatted:r}=await zC(e,{...t,cursorOffset:-1});return r}async function uI(e,t){return await fp(e,t)===e}var lI=Gi(yC,0),cI={parse:Gi(bB),formatAST:Gi(wB),formatDoc:Gi(PB),printToDoc:Gi(kB),printDocToString:Gi(NB)},pI=Object.defineProperty,ty=(e,t)=>{for(var r in t)pI(e,r,{get:t[r],enumerable:!0})},qC={};ty(qC,{parsers:()=>Fv});var HC={};ty(HC,{__babel_estree:()=>r6,__js_expression:()=>R1,__ts_expression:()=>U1,__vue_event_binding:()=>M1,__vue_expression:()=>R1,__vue_ts_event_binding:()=>j1,__vue_ts_expression:()=>U1,babel:()=>M1,"babel-flow":()=>vv,"babel-ts":()=>j1});function hI(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var vi=class{constructor(t,r,n){H(this,"line");H(this,"column");H(this,"index");this.line=t,this.column=r,this.index=n}},Bc=class{constructor(t,r){H(this,"start");H(this,"end");H(this,"filename");H(this,"identifierName");this.start=t,this.end=r}};function Er(e,t){let{line:r,column:n,index:i}=e;return new vi(r,n+t,i+t)}var m1="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",dI={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:m1},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:m1}},y1={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},Xl=e=>e.type==="UpdateExpression"?y1.UpdateExpression[`${e.prefix}`]:y1[e.type],fI={AccessorIsGenerator:({kind:e})=>`A ${e}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:({kind:e})=>`Missing initializer in ${e} declaration.`,DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:({exportName:e})=>`\`${e}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName:e,exportName:t})=>`A string literal cannot be used as an exported binding without \`from\`. +${c}`),c}async function L4(e,t){let r=await u0(t),n=r.preprocess?await r.preprocess(e,t):e;t.originalText=n;let i;try{i=await r.parse(n,t,t)}catch(s){$4(s,e)}return{text:n,ast:i}}function $4(e,t){let{loc:r}=e;if(r){let n=_4(t,r,{highlightCode:!0});throw e.message+=` +`+n,e.codeFrame=n,e}throw e}var qu=L4;async function O4(e,t,r,n,i){if(r.embeddedLanguageFormatting!=="auto")return;let{printer:s}=r,{embed:a}=s;if(!a)return;if(a.length>2)throw new Error("printer.embed has too many parameters. The API changed in Prettier v3. Please update your plugin. See https://prettier.io/docs/plugins#optional-embed");let{hasPrettierIgnore:o}=s,{getVisitorKeys:u}=a,l=[];h();let c=e.stack;for(let{print:d,node:f,pathStack:y}of l)try{e.stack=y;let C=await d(p,t,e,r);C&&i.set(f,C)}catch(C){if(globalThis.PRETTIER_DEBUG)throw C}e.stack=c;function p(d,f){return M4(d,f,r,n)}function h(){let{node:d}=e;if(d===null||typeof d!="object"||o!=null&&o(e))return;for(let y of u(d))Array.isArray(d[y])?e.each(h,y):e.call(h,y);let f=a(e,r);if(f){if(typeof f=="function"){l.push({print:f,node:d,pathStack:[...e.stack]});return}i.set(d,f)}}}async function M4(e,t,r,n){let i=await Ua({...r,...t,parentParser:r.parser,originalText:e,cursorOffset:void 0,rangeStart:void 0,rangeEnd:void 0},{passThrough:!0}),{ast:s}=await qu(e,i),a=await n(s,i);return fC(a)}function j4(e,t,r,n){let{originalText:i,[Symbol.for("comments")]:s,locStart:a,locEnd:o,[Symbol.for("printedComments")]:u}=t,{node:l}=e,c=a(l),p=o(l);for(let d of s)a(d)>=c&&o(d)<=p&&u.add(d);let{printPrettierIgnored:h}=t.printer;return h?h(e,t,r,n):i.slice(c,p)}var R4=j4;async function vp(e,t){({ast:e}=await GC(e,t));let r=new Map,n=new r8(e),i=new Map;await O4(n,a,t,vp,i);let s=await bg(n,t,a,void 0,i);if(E8(t),t.cursorOffset>=0){if(t.nodeAfterCursor&&!t.nodeBeforeCursor)return[ns,s];if(t.nodeBeforeCursor&&!t.nodeAfterCursor)return[s,ns]}return s;function a(u,l){return u===void 0||u===n?o(l):Array.isArray(u)?n.call(()=>o(l),...u):n.call(()=>o(l),u)}function o(u){let l=n.node;if(l==null)return"";let c=n0(l)&&u===void 0;if(c&&r.has(l))return r.get(l);let p=bg(n,t,a,u,i);return c&&r.set(l,p),p}}function bg(e,t,r,n,i){var u,l;let{node:s}=e,{printer:a}=t,o;switch((u=a.hasPrettierIgnore)!=null&&u.call(a,e)?o=R4(e,t,r,n):i.has(s)?o=i.get(s):o=a.print(e,t,r,n),s){case t.cursorNode:o=Zl(o,c=>[ns,c,ns]);break;case t.nodeBeforeCursor:o=Zl(o,c=>[c,ns]);break;case t.nodeAfterCursor:o=Zl(o,c=>[ns,c]);break}return a.printComment&&!((l=a.willPrintOwnComments)!=null&&l.call(a,e,t))&&(o=x8(e,o,t)),o}async function GC(e,t){let r=e.comments??[];t[Symbol.for("comments")]=r,t[Symbol.for("printedComments")]=new Set,h8(e,t);let{printer:{preprocess:n}}=t;return e=n?await n(e,t):e,{ast:e,comments:r}}function U4(e,t){let{cursorOffset:r,locStart:n,locEnd:i,getVisitorKeys:s}=t,a=d=>n(d)<=r&&i(d)>=r,o=e,u=[e];for(let d of l8(e,{getVisitorKeys:s,filter:a}))u.push(d),o=d;if(c8(o,{getVisitorKeys:s}))return{cursorNode:o};let l,c,p=-1,h=Number.POSITIVE_INFINITY;for(;u.length>0&&(l===void 0||c===void 0);){o=u.pop();let d=l!==void 0,f=c!==void 0;for(let y of Cp(o,{getVisitorKeys:s})){if(!d){let C=i(y);C<=r&&C>p&&(l=y,p=C)}if(!f){let C=n(y);C>=r&&Ca(h,u)).filter(Boolean);let l={},c=new Set(i(o));for(let h in o)!Object.prototype.hasOwnProperty.call(o,h)||s!=null&&s.has(h)||(c.has(h)?l[h]=a(o[h],o):l[h]=o[h]);let p=n(o,l,u);if(p!==null)return p??l}}var z4=V4,q4=Array.prototype.findLastIndex??function(e){for(let t=this.length-1;t>=0;t--){let r=this[t];if(e(r,t,this))return t}return-1},H4=Vu("findLastIndex",function(){if(Array.isArray(this))return q4}),W4=H4,J4=({parser:e})=>e==="json"||e==="json5"||e==="jsonc"||e==="json-stringify";function X4(e,t){return t=new Set(t),e.find(r=>YC.has(r.type)&&t.has(r))}function Tg(e){let t=W4(0,e,r=>r.type!=="Program"&&r.type!=="File");return t===-1?e:e.slice(0,t+1)}function K4(e,t,{locStart:r,locEnd:n}){let[i,...s]=e,[a,...o]=t;if(i===a)return[i,a];let u=r(i);for(let c of Tg(o))if(r(c)>=u)a=c;else break;let l=n(a);for(let c of Tg(s)){if(n(c)<=l)i=c;else break;if(i===a)break}return[i,a]}function lf(e,t,r,n,i=[],s){let{locStart:a,locEnd:o}=r,u=a(e),l=o(e);if(t>l||tn&&!/\S/u.test(e[i-1]);--i);let l=lf(r,n,t,(d,f)=>Sg(t,d,f),[],"rangeStart");if(!l)return;let c=u?l:lf(r,i,t,d=>Sg(t,d),[],"rangeEnd");if(!c)return;let p,h;if(J4(t)){let d=X4(l,c);p=d,h=d}else[p,h]=K4(l,c,t);return[Math.min(s(p),s(h)),Math.max(a(p),a(h))]}var ZC="\uFEFF",Fg=Symbol("cursor");async function ev(e,t,r=0){if(!e||e.trim().length===0)return{formatted:"",cursorOffset:-1,comments:[]};let{ast:n,text:i}=await qu(e,t);t.cursorOffset>=0&&(t={...t,...QC(n,t)});let s=await vp(n,t);r>0&&(s=yC([wn,s],r,t.tabWidth));let a=Ep(s,t);if(r>0){let u=a.formatted.trim();a.cursorNodeStart!==void 0&&(a.cursorNodeStart-=a.formatted.indexOf(u),a.cursorNodeStart<0&&(a.cursorNodeStart=0,a.cursorNodeText=a.cursorNodeText.trimStart()),a.cursorNodeStart+a.cursorNodeText.length>u.length&&(a.cursorNodeText=a.cursorNodeText.trimEnd())),a.formatted=u+Qm(t.endOfLine)}let o=t[Symbol.for("comments")];if(t.cursorOffset>=0){let u,l,c,p;if((t.cursorNode||t.nodeBeforeCursor||t.nodeAfterCursor)&&a.cursorNodeText)if(c=a.cursorNodeStart,p=a.cursorNodeText,t.cursorNode)u=t.locStart(t.cursorNode),l=i.slice(u,t.locEnd(t.cursorNode));else{if(!t.nodeBeforeCursor&&!t.nodeAfterCursor)throw new Error("Cursor location must contain at least one of cursorNode, nodeBeforeCursor, nodeAfterCursor");u=t.nodeBeforeCursor?t.locEnd(t.nodeBeforeCursor):0;let g=t.nodeAfterCursor?t.locStart(t.nodeAfterCursor):i.length;l=i.slice(u,g)}else u=0,l=i,c=0,p=a.formatted;let h=t.cursorOffset-u;if(l===p)return{formatted:a.formatted,cursorOffset:c+h,comments:o};let d=l.split("");d.splice(h,0,Fg);let f=p.split(""),y=rN(d,f),C=c;for(let g of y)if(g.removed){if(g.value.includes(Fg))break}else C+=g.count;return{formatted:a.formatted,cursorOffset:C,comments:o}}return{formatted:a.formatted,cursorOffset:-1,comments:o}}async function Z4(e,t){let{ast:r,text:n}=await qu(e,t),[i,s]=Y4(n,t,r)??[0,0],a=n.slice(i,s),o=Math.min(i,n.lastIndexOf(` +`,i)+1),u=n.slice(o,i).match(/^\s*/u)[0],l=r0(u,t.tabWidth),c=await ev(a,{...t,rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:t.cursorOffset>i&&t.cursorOffset<=s?t.cursorOffset-i:-1,endOfLine:"lf"},l),p=c.formatted.trimEnd(),{cursorOffset:h}=t;h>s?h+=p.length-a.length:c.cursorOffset>=0&&(h=c.cursorOffset+i);let d=n.slice(0,i)+p+n.slice(s);if(t.endOfLine!=="lf"){let f=Qm(t.endOfLine);h>=0&&f===`\r +`&&(h+=hC(d.slice(0,h),` +`)),d=yp(0,d,` +`,f)}return{formatted:d,cursorOffset:h,comments:c.comments}}function kh(e,t,r){return typeof t!="number"||Number.isNaN(t)||t<0||t>e.length?r:t}function wg(e,t){let{cursorOffset:r,rangeStart:n,rangeEnd:i}=t;return r=kh(e,r,-1),n=kh(e,n,0),i=kh(e,i,e.length),{...t,cursorOffset:r,rangeStart:n,rangeEnd:i}}function tv(e,t){let{cursorOffset:r,rangeStart:n,rangeEnd:i,endOfLine:s}=wg(e,t),a=e.charAt(0)===ZC;if(a&&(e=e.slice(1),r--,n--,i--),s==="auto"&&(s=uN(e)),e.includes("\r")){let o=u=>hC(e.slice(0,Math.max(u,0)),`\r +`);r-=o(r),n-=o(n),i-=o(i),e=pN(e)}return{hasBOM:a,text:e,options:wg(e,{...t,cursorOffset:r,rangeStart:n,rangeEnd:i,endOfLine:s})}}async function kg(e,t){let r=await u0(t);return!r.hasPragma||r.hasPragma(e)}async function e6(e,t){var r,n;return(n=(r=await u0(t)).hasIgnorePragma)==null?void 0:n.call(r,e)}async function rv(e,t){let{hasBOM:r,text:n,options:i}=tv(e,await Ua(t));if(i.rangeStart>=i.rangeEnd&&n!==""||i.requirePragma&&!await kg(n,i)||i.checkIgnorePragma&&await e6(n,i))return{formatted:e,cursorOffset:t.cursorOffset,comments:[]};let s;return i.rangeStart>0||i.rangeEnd=0&&s.cursorOffset++),s}async function t6(e,t,r){let{text:n,options:i}=tv(e,await Ua(t)),s=await qu(n,i);return r&&(r.preprocessForPrint&&(s.ast=await GC(s.ast,i)),r.massage&&(s.ast=z4(s.ast,i))),s}async function r6(e,t){t=await Ua(t);let r=await vp(e,t);return Ep(r,t)}async function n6(e,t){let r=UN(e),{formatted:n}=await rv(r,{...t,parser:"__js_expression"});return n}async function i6(e,t){t=await Ua(t);let{ast:r}=await qu(e,t);return t.cursorOffset>=0&&(t={...t,...QC(r,t)}),vp(r,t)}async function s6(e,t){return Ep(e,await Ua(t))}var nv={};Km(nv,{builders:()=>a6,printer:()=>o6,utils:()=>u6});var a6={join:DC,line:xC,softline:MN,hardline:wn,literalline:CC,group:gC,conditionalGroup:_N,fill:IN,lineSuffix:sf,lineSuffixBoundary:jN,cursor:ns,breakParent:xp,ifBreak:LN,trim:RN,indent:jc,indentIfBreak:$N,align:Sa,addAlignmentToDoc:yC,markAsRoot:mC,dedentToRoot:NN,dedent:BN,hardlineWithoutBreakParent:e0,literallineWithoutBreakParent:EC,label:ON,concat:e=>e},o6={printDocToString:Ep},u6={willBreak:CN,traverseDoc:Ym,findInDoc:Zm,mapDoc:Dp,removeLines:bN,stripTrailingHardline:fC,replaceEndOfLine:FN,canBreak:kN},l6="3.8.0",iv={};Km(iv,{addDanglingComment:()=>Qi,addLeadingComment:()=>Wo,addTrailingComment:()=>Jo,getAlignmentSize:()=>r0,getIndentSize:()=>m6,getMaxContinuousCount:()=>D6,getNextNonSpaceNonCommentCharacter:()=>E6,getNextNonSpaceNonCommentCharacterIndex:()=>P6,getPreferredQuote:()=>b6,getStringWidth:()=>t0,hasNewline:()=>Ai,hasNewlineInRange:()=>S6,hasSpaces:()=>w6,isNextLineEmpty:()=>L6,isNextLineEmptyAfterIndex:()=>d0,isPreviousLineEmpty:()=>B6,makeString:()=>_6,skip:()=>zu,skipEverythingButNewLine:()=>SC,skipInlineComment:()=>c0,skipNewline:()=>ms,skipSpaces:()=>wi,skipToLineEnd:()=>TC,skipTrailingComment:()=>p0,skipWhitespace:()=>i8});function c6(e,t){if(t===!1)return!1;if(e.charAt(t)==="/"&&e.charAt(t+1)==="*"){for(let r=t+2;rMath.max(n,i.length),0)/t.length}var D6=g6;function x6(e,t){let r=h0(e,t);return r===!1?"":e.charAt(r)}var E6=x6,sv=Object.freeze({character:"'",codePoint:39}),av=Object.freeze({character:'"',codePoint:34}),C6=Object.freeze({preferred:sv,alternate:av}),v6=Object.freeze({preferred:av,alternate:sv});function A6(e,t){let{preferred:r,alternate:n}=t===!0||t==="'"?C6:v6,{length:i}=e,s=0,a=0;for(let o=0;oa?n:r).character}var b6=A6;function T6(e,t,r){for(let n=t;na===n?a:o===t?"\\"+o:o||(r&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(a)?a:"\\"+a));return t+i+t}function L6(e,t){return arguments.length===2||typeof t=="number"?d0(e,t):I6(...arguments)}function Yi(e,t=1){return async(...r)=>{let n=r[t]??{},i=n.plugins??[];return r[t]={...n,plugins:Array.isArray(i)?i:Object.values(i)},e(...r)}}var ov=Yi(rv);async function Ap(e,t){let{formatted:r}=await ov(e,{...t,cursorOffset:-1});return r}async function $6(e,t){return await Ap(e,t)===e}var O6=Yi(_C,0),M6={parse:Yi(t6),formatAST:Yi(r6),formatDoc:Yi(n6),printToDoc:Yi(i6),printDocToString:Yi(s6)},j6=Object.defineProperty,f0=(e,t)=>{for(var r in t)j6(e,r,{get:t[r],enumerable:!0})},uv={};f0(uv,{parsers:()=>qv});var lv={};f0(lv,{__babel_estree:()=>PB,__js_expression:()=>t2,__ts_expression:()=>r2,__vue_event_binding:()=>Zg,__vue_expression:()=>t2,__vue_ts_event_binding:()=>e2,__vue_ts_expression:()=>r2,babel:()=>Zg,"babel-flow":()=>Rv,"babel-ts":()=>e2});function R6(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var bi=class{constructor(t,r,n){H(this,"line");H(this,"column");H(this,"index");this.line=t,this.column=r,this.index=n}},Rc=class{constructor(t,r){H(this,"start");H(this,"end");H(this,"filename");H(this,"identifierName");this.start=t,this.end=r}};function xr(e,t){let{line:r,column:n,index:i}=e;return new bi(r,n+t,i+t)}var Pg="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",U6={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:Pg},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:Pg}},Ng={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},rc=e=>e.type==="UpdateExpression"?Ng.UpdateExpression[`${e.prefix}`]:Ng[e.type],V6={AccessorIsGenerator:({kind:e})=>`A ${e}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:({kind:e})=>`Missing initializer in ${e} declaration.`,DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:({exportName:e})=>`\`${e}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName:e,exportName:t})=>`A string literal cannot be used as an exported binding without \`from\`. - Did you mean \`export { '${e}' as '${t}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:e})=>`'${e==="ForInStatement"?"for-in":"for-of"}' loop variable declaration may not have an initializer.`,ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:({type:e})=>`Unsyntactic ${e==="BreakStatement"?"break":"continue"}.`,IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportAttributesUseAssert:"The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedImportAssert` parser plugin to suppress this error.",ImportBindingIsString:({importName:e})=>`A string literal cannot be used as an imported binding. -- Did you mean \`import { "${e}" as foo }\`?`,ImportCallArity:"`import()` requires exactly one or two arguments.",ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverDiscardElement:"'void' must be followed by an expression when not used in a binding position.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:({radix:e})=>`Expected number in radix ${e}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:e})=>`Escape sequence in keyword ${e}.`,InvalidIdentifier:({identifierName:e})=>`Invalid identifier ${e}.`,InvalidLhs:({ancestor:e})=>`Invalid left-hand side in ${Xl(e)}.`,InvalidLhsBinding:({ancestor:e})=>`Binding invalid left-hand side in ${Xl(e)}.`,InvalidLhsOptionalChaining:({ancestor:e})=>`Invalid optional chaining in the left-hand side of ${Xl(e)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:e})=>`Unexpected character '${e}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:e})=>`Private name #${e} is not defined.`,InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:({labelName:e})=>`Label '${e}' is already declared.`,LetInLexicalBinding:"'let' is disallowed as a lexically bound name.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:({missingPlugin:e})=>`This experimental syntax requires enabling the parser plugin: ${e.map(t=>JSON.stringify(t)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:e})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${e.map(t=>JSON.stringify(t)).join(", ")}.`,MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:({key:e})=>`Duplicate key "${e}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:e})=>`An export name cannot include a lone surrogate, found '\\u${e.toString(16)}'.`,ModuleExportUndefined:({localName:e})=>`Export '${e}' is not defined.`,MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:({identifierName:e})=>`Private names are only allowed in property accesses (\`obj.#${e}\`) or in \`in\` expressions (\`#${e} in obj\`).`,PrivateNameRedeclaration:({identifierName:e})=>`Duplicate private name #${e}.`,RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:"Classes may not have static property named prototype.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:({keyword:e})=>`Unexpected keyword '${e}'.`,UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:({reservedWord:e})=>`Unexpected reserved word '${e}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:e,unexpected:t})=>`Unexpected token${t?` '${t}'.`:""}${e?`, expected "${e}"`:""}`,UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement.",UnexpectedVoidPattern:"Unexpected void binding.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:({target:e,onlyValidPropertyName:t})=>`The only valid meta property for ${e} is ${e}.${t}.`,UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationExport:"Using declaration cannot be exported.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:({identifierName:e})=>`Identifier '${e}' has already been declared.`,VoidPatternCatchClauseParam:"A void binding can not be the catch clause parameter. Use `try { ... } catch { ... }` if you want to discard the caught error.",VoidPatternInitializer:"A void binding may not have an initializer.",YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",YieldNotInGeneratorFunction:"'yield' is only allowed within generator functions.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},mI={StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:e})=>`Assigning to '${e}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:e})=>`Binding '${e}' in strict mode.`,StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."},yI={ParseExpressionEmptyInput:"Unexpected parseExpression() input: The input is empty or contains only comments.",ParseExpressionExpectsEOF:({unexpected:e})=>`Unexpected parseExpression() input: The input should contain exactly one expression, but the first expression is followed by the unexpected character \`${String.fromCodePoint(e)}\`.`},gI=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),DI=Object.assign({PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic references are only supported when using the `"proposal": "hack"` version of the pipeline proposal.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:({token:e})=>`Invalid topic token ${e}. In order to use ${e} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${e}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:e})=>`Hack-style pipe body cannot be an unparenthesized ${Xl({type:e})}; please wrap it in parentheses.`},{}),EI=["message"];function g1(e,t,r){Object.defineProperty(e,t,{enumerable:!1,configurable:!0,value:r})}function xI({toMessage:e,code:t,reasonCode:r,syntaxPlugin:n}){let i=r==="MissingPlugin"||r==="MissingOneOfPlugins";return function s(a,o){let u=new SyntaxError;return u.code=t,u.reasonCode=r,u.loc=a,u.pos=a.index,u.syntaxPlugin=n,i&&(u.missingPlugin=o.missingPlugin),g1(u,"clone",function(l={}){let{line:c,column:p,index:h}=l.loc??a;return s(new vi(c,p,h),Object.assign({},o,l.details))}),g1(u,"details",o),Object.defineProperty(u,"message",{configurable:!0,get(){let l=`${e(o)} (${a.line}:${a.column})`;return this.message=l,l},set(l){Object.defineProperty(this,"message",{value:l,writable:!0})}}),u}}function en(e,t){if(Array.isArray(e))return n=>en(n,e[0]);let r={};for(let n of Object.keys(e)){let i=e[n],s=typeof i=="string"?{message:()=>i}:typeof i=="function"?{message:i}:i,{message:a}=s,o=hI(s,EI),u=typeof a=="string"?()=>a:a;r[n]=xI(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:n,toMessage:u},t?{syntaxPlugin:t}:{},o))}return r}var w=Object.assign({},en(dI),en(fI),en(mI),en(yI),en`pipelineOperator`(DI));function CI(){return{sourceType:"script",sourceFilename:void 0,startIndex:0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,allowYieldOutsideFunction:!1,plugins:[],strictMode:void 0,ranges:!1,tokens:!1,createImportExpressions:!0,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0}}function vI(e){let t=CI();if(e==null)return t;if(e.annexB!=null&&e.annexB!==!1)throw new Error("The `annexB` option can only be set to `false`.");for(let r of Object.keys(t))e[r]!=null&&(t[r]=e[r]);if(t.startLine===1)e.startIndex==null&&t.startColumn>0?t.startIndex=t.startColumn:e.startColumn==null&&t.startIndex>0&&(t.startColumn=t.startIndex);else if(e.startColumn==null||e.startIndex==null)throw new Error("With a `startLine > 1` you must also specify `startIndex` and `startColumn`.");if(t.sourceType==="commonjs"){if(e.allowAwaitOutsideFunction!=null)throw new Error("The `allowAwaitOutsideFunction` option cannot be used with `sourceType: 'commonjs'`.");if(e.allowReturnOutsideFunction!=null)throw new Error("`sourceType: 'commonjs'` implies `allowReturnOutsideFunction: true`, please remove the `allowReturnOutsideFunction` option or use `sourceType: 'script'`.");if(e.allowNewTargetOutsideFunction!=null)throw new Error("`sourceType: 'commonjs'` implies `allowNewTargetOutsideFunction: true`, please remove the `allowNewTargetOutsideFunction` option or use `sourceType: 'script'`.")}return t}var{defineProperty:AI}=Object,D1=(e,t)=>{e&&AI(e,t,{enumerable:!1,value:e[t]})};function ao(e){return D1(e.loc.start,"index"),D1(e.loc.end,"index"),e}var TI=e=>class extends e{parse(){let t=ao(super.parse());return this.optionFlags&256&&(t.tokens=t.tokens.map(ao)),t}parseRegExpLiteral({pattern:t,flags:r}){let n=null;try{n=new RegExp(t,r)}catch{}let i=this.estreeParseLiteral(n);return i.regex={pattern:t,flags:r},i}parseBigIntLiteral(t){let r;try{r=BigInt(t)}catch{r=null}let n=this.estreeParseLiteral(r);return n.bigint=String(n.value||t),n}parseDecimalLiteral(t){let r=this.estreeParseLiteral(null);return r.decimal=String(r.value||t),r}estreeParseLiteral(t){return this.parseLiteral(t,"Literal")}parseStringLiteral(t){return this.estreeParseLiteral(t)}parseNumericLiteral(t){return this.estreeParseLiteral(t)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(t){return this.estreeParseLiteral(t)}estreeParseChainExpression(t,r){let n=this.startNodeAtNode(t);return n.expression=t,this.finishNodeAt(n,"ChainExpression",r)}directiveToStmt(t){let r=t.value;delete t.value,this.castNodeTo(r,"Literal"),r.raw=r.extra.raw,r.value=r.extra.expressionValue;let n=this.castNodeTo(t,"ExpressionStatement");return n.expression=r,n.directive=r.extra.rawValue,delete r.extra,n}fillOptionalPropertiesForTSESLint(t){}cloneEstreeStringLiteral(t){let{start:r,end:n,loc:i,range:s,raw:a,value:o}=t,u=Object.create(t.constructor.prototype);return u.type="Literal",u.start=r,u.end=n,u.loc=i,u.range=s,u.raw=a,u.value=o,u}initFunction(t,r){super.initFunction(t,r),t.expression=!1}checkDeclaration(t){t!=null&&this.isObjectProperty(t)?this.checkDeclaration(t.value):super.checkDeclaration(t)}getObjectOrClassMethodParams(t){return t.value.params}isValidDirective(t){var r;return t.type==="ExpressionStatement"&&t.expression.type==="Literal"&&typeof t.expression.value=="string"&&!((r=t.expression.extra)!=null&&r.parenthesized)}parseBlockBody(t,r,n,i,s){super.parseBlockBody(t,r,n,i,s);let a=t.directives.map(o=>this.directiveToStmt(o));t.body=a.concat(t.body),delete t.directives}parsePrivateName(){let t=super.parsePrivateName();return this.convertPrivateNameToPrivateIdentifier(t)}convertPrivateNameToPrivateIdentifier(t){let r=super.getPrivateNameSV(t);return delete t.id,t.name=r,this.castNodeTo(t,"PrivateIdentifier")}isPrivateName(t){return t.type==="PrivateIdentifier"}getPrivateNameSV(t){return t.name}parseLiteral(t,r){let n=super.parseLiteral(t,r);return n.raw=n.extra.raw,delete n.extra,n}parseFunctionBody(t,r,n=!1){super.parseFunctionBody(t,r,n),t.expression=t.body.type!=="BlockStatement"}parseMethod(t,r,n,i,s,a,o=!1){let u=this.startNode();u.kind=t.kind,u=super.parseMethod(u,r,n,i,s,a,o),delete u.kind;let{typeParameters:l}=t;l&&(delete t.typeParameters,u.typeParameters=l,this.resetStartLocationFromNode(u,l));let c=this.castNodeTo(u,this.hasPlugin("typescript")&&!u.body?"TSEmptyBodyFunctionExpression":"FunctionExpression");return t.value=c,a==="ClassPrivateMethod"&&(t.computed=!1),this.hasPlugin("typescript")&&t.abstract?(delete t.abstract,this.finishNode(t,"TSAbstractMethodDefinition")):a==="ObjectMethod"?(t.kind==="method"&&(t.kind="init"),t.shorthand=!1,this.finishNode(t,"Property")):this.finishNode(t,"MethodDefinition")}nameIsConstructor(t){return t.type==="Literal"?t.value==="constructor":super.nameIsConstructor(t)}parseClassProperty(...t){let r=super.parseClassProperty(...t);return r.abstract&&this.hasPlugin("typescript")?(delete r.abstract,this.castNodeTo(r,"TSAbstractPropertyDefinition")):this.castNodeTo(r,"PropertyDefinition"),r}parseClassPrivateProperty(...t){let r=super.parseClassPrivateProperty(...t);return r.abstract&&this.hasPlugin("typescript")?this.castNodeTo(r,"TSAbstractPropertyDefinition"):this.castNodeTo(r,"PropertyDefinition"),r.computed=!1,r}parseClassAccessorProperty(t){let r=super.parseClassAccessorProperty(t);return r.abstract&&this.hasPlugin("typescript")?(delete r.abstract,this.castNodeTo(r,"TSAbstractAccessorProperty")):this.castNodeTo(r,"AccessorProperty"),r}parseObjectProperty(t,r,n,i){let s=super.parseObjectProperty(t,r,n,i);return s&&(s.kind="init",this.castNodeTo(s,"Property")),s}finishObjectProperty(t){return t.kind="init",this.finishNode(t,"Property")}isValidLVal(t,r,n,i){return t==="Property"?"value":super.isValidLVal(t,r,n,i)}isAssignable(t,r){return t!=null&&this.isObjectProperty(t)?this.isAssignable(t.value,r):super.isAssignable(t,r)}toAssignable(t,r=!1){if(t!=null&&this.isObjectProperty(t)){let{key:n,value:i}=t;this.isPrivateName(n)&&this.classScope.usePrivateName(this.getPrivateNameSV(n),n.loc.start),this.toAssignable(i,r)}else super.toAssignable(t,r)}toAssignableObjectExpressionProp(t,r,n){t.type==="Property"&&(t.kind==="get"||t.kind==="set")?this.raise(w.PatternHasAccessor,t.key):t.type==="Property"&&t.method?this.raise(w.PatternHasMethod,t.key):super.toAssignableObjectExpressionProp(t,r,n)}finishCallExpression(t,r){let n=super.finishCallExpression(t,r);return n.callee.type==="Import"?(this.castNodeTo(n,"ImportExpression"),n.source=n.arguments[0],n.options=n.arguments[1]??null,delete n.arguments,delete n.callee):n.type==="OptionalCallExpression"?this.castNodeTo(n,"CallExpression"):n.optional=!1,n}toReferencedArguments(t){t.type!=="ImportExpression"&&super.toReferencedArguments(t)}parseExport(t,r){var s;let n=this.state.lastTokStartLoc,i=super.parseExport(t,r);switch(i.type){case"ExportAllDeclaration":i.exported=null;break;case"ExportNamedDeclaration":i.specifiers.length===1&&i.specifiers[0].type==="ExportNamespaceSpecifier"&&(this.castNodeTo(i,"ExportAllDeclaration"),i.exported=i.specifiers[0].exported,delete i.specifiers);case"ExportDefaultDeclaration":{let{declaration:a}=i;(a==null?void 0:a.type)==="ClassDeclaration"&&((s=a.decorators)==null?void 0:s.length)>0&&a.start===i.start&&this.resetStartLocation(i,n)}break}return i}stopParseSubscript(t,r){let n=super.stopParseSubscript(t,r);return r.optionalChainMember?this.estreeParseChainExpression(n,t.loc.end):n}parseMember(t,r,n,i,s){let a=super.parseMember(t,r,n,i,s);return a.type==="OptionalMemberExpression"?this.castNodeTo(a,"MemberExpression"):a.optional=!1,a}isOptionalMemberExpression(t){return t.type==="ChainExpression"?t.expression.type==="MemberExpression":super.isOptionalMemberExpression(t)}hasPropertyAsPrivateName(t){return t.type==="ChainExpression"&&(t=t.expression),super.hasPropertyAsPrivateName(t)}isObjectProperty(t){return t.type==="Property"&&t.kind==="init"&&!t.method}isObjectMethod(t){return t.type==="Property"&&(t.method||t.kind==="get"||t.kind==="set")}castNodeTo(t,r){let n=super.castNodeTo(t,r);return this.fillOptionalPropertiesForTSESLint(n),n}cloneIdentifier(t){let r=super.cloneIdentifier(t);return this.fillOptionalPropertiesForTSESLint(r),r}cloneStringLiteral(t){return t.type==="Literal"?this.cloneEstreeStringLiteral(t):super.cloneStringLiteral(t)}finishNodeAt(t,r,n){return ao(super.finishNodeAt(t,r,n))}finishNode(t,r){let n=super.finishNode(t,r);return this.fillOptionalPropertiesForTSESLint(n),n}resetStartLocation(t,r){super.resetStartLocation(t,r),ao(t)}resetEndLocation(t,r=this.state.lastTokEndLoc){super.resetEndLocation(t,r),ao(t)}},xl=class{constructor(t,r){H(this,"token");H(this,"preserveSpace");this.token=t,this.preserveSpace=!!r}},_e={brace:new xl("{"),j_oTag:new xl("...",!0)},fe=!0,Y=!0,Ch=!0,oo=!0,Qn=!0,SI=!0,WC=class{constructor(t,r={}){H(this,"label");H(this,"keyword");H(this,"beforeExpr");H(this,"startsExpr");H(this,"rightAssociative");H(this,"isLoop");H(this,"isAssign");H(this,"prefix");H(this,"postfix");H(this,"binop");this.label=t,this.keyword=r.keyword,this.beforeExpr=!!r.beforeExpr,this.startsExpr=!!r.startsExpr,this.rightAssociative=!!r.rightAssociative,this.isLoop=!!r.isLoop,this.isAssign=!!r.isAssign,this.prefix=!!r.prefix,this.postfix=!!r.postfix,this.binop=r.binop!=null?r.binop:null}},ry=new Map;function ve(e,t={}){t.keyword=e;let r=ae(e,t);return ry.set(e,r),r}function Bt(e,t){return ae(e,{beforeExpr:fe,binop:t})}var zo=-1,ny=[],iy=[],sy=[],ay=[],oy=[],uy=[];function ae(e,t={}){return++zo,iy.push(e),sy.push(t.binop??-1),ay.push(t.beforeExpr??!1),oy.push(t.startsExpr??!1),uy.push(t.prefix??!1),ny.push(new WC(e,t)),zo}function ye(e,t={}){return++zo,ry.set(e,zo),iy.push(e),sy.push(t.binop??-1),ay.push(t.beforeExpr??!1),oy.push(t.startsExpr??!1),uy.push(t.prefix??!1),ny.push(new WC("name",t)),zo}var FI={bracketL:ae("[",{beforeExpr:fe,startsExpr:Y}),bracketHashL:ae("#[",{beforeExpr:fe,startsExpr:Y}),bracketBarL:ae("[|",{beforeExpr:fe,startsExpr:Y}),bracketR:ae("]"),bracketBarR:ae("|]"),braceL:ae("{",{beforeExpr:fe,startsExpr:Y}),braceBarL:ae("{|",{beforeExpr:fe,startsExpr:Y}),braceHashL:ae("#{",{beforeExpr:fe,startsExpr:Y}),braceR:ae("}"),braceBarR:ae("|}"),parenL:ae("(",{beforeExpr:fe,startsExpr:Y}),parenR:ae(")"),comma:ae(",",{beforeExpr:fe}),semi:ae(";",{beforeExpr:fe}),colon:ae(":",{beforeExpr:fe}),doubleColon:ae("::",{beforeExpr:fe}),dot:ae("."),question:ae("?",{beforeExpr:fe}),questionDot:ae("?."),arrow:ae("=>",{beforeExpr:fe}),template:ae("template"),ellipsis:ae("...",{beforeExpr:fe}),backQuote:ae("`",{startsExpr:Y}),dollarBraceL:ae("${",{beforeExpr:fe,startsExpr:Y}),templateTail:ae("...`",{startsExpr:Y}),templateNonTail:ae("...${",{beforeExpr:fe,startsExpr:Y}),at:ae("@"),hash:ae("#",{startsExpr:Y}),interpreterDirective:ae("#!..."),eq:ae("=",{beforeExpr:fe,isAssign:oo}),assign:ae("_=",{beforeExpr:fe,isAssign:oo}),slashAssign:ae("_=",{beforeExpr:fe,isAssign:oo}),xorAssign:ae("_=",{beforeExpr:fe,isAssign:oo}),moduloAssign:ae("_=",{beforeExpr:fe,isAssign:oo}),incDec:ae("++/--",{prefix:Qn,postfix:SI,startsExpr:Y}),bang:ae("!",{beforeExpr:fe,prefix:Qn,startsExpr:Y}),tilde:ae("~",{beforeExpr:fe,prefix:Qn,startsExpr:Y}),doubleCaret:ae("^^",{startsExpr:Y}),doubleAt:ae("@@",{startsExpr:Y}),pipeline:Bt("|>",0),nullishCoalescing:Bt("??",1),logicalOR:Bt("||",1),logicalAND:Bt("&&",2),bitwiseOR:Bt("|",3),bitwiseXOR:Bt("^",4),bitwiseAND:Bt("&",5),equality:Bt("==/!=/===/!==",6),lt:Bt("/<=/>=",7),gt:Bt("/<=/>=",7),relational:Bt("/<=/>=",7),bitShift:Bt("<>/>>>",8),bitShiftL:Bt("<>/>>>",8),bitShiftR:Bt("<>/>>>",8),plusMin:ae("+/-",{beforeExpr:fe,binop:9,prefix:Qn,startsExpr:Y}),modulo:ae("%",{binop:10,startsExpr:Y}),star:ae("*",{binop:10}),slash:Bt("/",10),exponent:ae("**",{beforeExpr:fe,binop:11,rightAssociative:!0}),_in:ve("in",{beforeExpr:fe,binop:7}),_instanceof:ve("instanceof",{beforeExpr:fe,binop:7}),_break:ve("break"),_case:ve("case",{beforeExpr:fe}),_catch:ve("catch"),_continue:ve("continue"),_debugger:ve("debugger"),_default:ve("default",{beforeExpr:fe}),_else:ve("else",{beforeExpr:fe}),_finally:ve("finally"),_function:ve("function",{startsExpr:Y}),_if:ve("if"),_return:ve("return",{beforeExpr:fe}),_switch:ve("switch"),_throw:ve("throw",{beforeExpr:fe,prefix:Qn,startsExpr:Y}),_try:ve("try"),_var:ve("var"),_const:ve("const"),_with:ve("with"),_new:ve("new",{beforeExpr:fe,startsExpr:Y}),_this:ve("this",{startsExpr:Y}),_super:ve("super",{startsExpr:Y}),_class:ve("class",{startsExpr:Y}),_extends:ve("extends",{beforeExpr:fe}),_export:ve("export"),_import:ve("import",{startsExpr:Y}),_null:ve("null",{startsExpr:Y}),_true:ve("true",{startsExpr:Y}),_false:ve("false",{startsExpr:Y}),_typeof:ve("typeof",{beforeExpr:fe,prefix:Qn,startsExpr:Y}),_void:ve("void",{beforeExpr:fe,prefix:Qn,startsExpr:Y}),_delete:ve("delete",{beforeExpr:fe,prefix:Qn,startsExpr:Y}),_do:ve("do",{isLoop:Ch,beforeExpr:fe}),_for:ve("for",{isLoop:Ch}),_while:ve("while",{isLoop:Ch}),_as:ye("as",{startsExpr:Y}),_assert:ye("assert",{startsExpr:Y}),_async:ye("async",{startsExpr:Y}),_await:ye("await",{startsExpr:Y}),_defer:ye("defer",{startsExpr:Y}),_from:ye("from",{startsExpr:Y}),_get:ye("get",{startsExpr:Y}),_let:ye("let",{startsExpr:Y}),_meta:ye("meta",{startsExpr:Y}),_of:ye("of",{startsExpr:Y}),_sent:ye("sent",{startsExpr:Y}),_set:ye("set",{startsExpr:Y}),_source:ye("source",{startsExpr:Y}),_static:ye("static",{startsExpr:Y}),_using:ye("using",{startsExpr:Y}),_yield:ye("yield",{startsExpr:Y}),_asserts:ye("asserts",{startsExpr:Y}),_checks:ye("checks",{startsExpr:Y}),_exports:ye("exports",{startsExpr:Y}),_global:ye("global",{startsExpr:Y}),_implements:ye("implements",{startsExpr:Y}),_intrinsic:ye("intrinsic",{startsExpr:Y}),_infer:ye("infer",{startsExpr:Y}),_is:ye("is",{startsExpr:Y}),_mixins:ye("mixins",{startsExpr:Y}),_proto:ye("proto",{startsExpr:Y}),_require:ye("require",{startsExpr:Y}),_satisfies:ye("satisfies",{startsExpr:Y}),_keyof:ye("keyof",{startsExpr:Y}),_readonly:ye("readonly",{startsExpr:Y}),_unique:ye("unique",{startsExpr:Y}),_abstract:ye("abstract",{startsExpr:Y}),_declare:ye("declare",{startsExpr:Y}),_enum:ye("enum",{startsExpr:Y}),_module:ye("module",{startsExpr:Y}),_namespace:ye("namespace",{startsExpr:Y}),_interface:ye("interface",{startsExpr:Y}),_type:ye("type",{startsExpr:Y}),_opaque:ye("opaque",{startsExpr:Y}),name:ae("name",{startsExpr:Y}),placeholder:ae("%%",{startsExpr:Y}),string:ae("string",{startsExpr:Y}),num:ae("num",{startsExpr:Y}),bigint:ae("bigint",{startsExpr:Y}),decimal:ae("decimal",{startsExpr:Y}),regexp:ae("regexp",{startsExpr:Y}),privateName:ae("#name",{startsExpr:Y}),eof:ae("eof"),jsxName:ae("jsxName"),jsxText:ae("jsxText",{beforeExpr:fe}),jsxTagStart:ae("jsxTagStart",{startsExpr:Y}),jsxTagEnd:ae("jsxTagEnd")};function Fe(e){return e>=93&&e<=133}function bI(e){return e<=92}function Lr(e){return e>=58&&e<=133}function JC(e){return e>=58&&e<=137}function wI(e){return ay[e]}function Fo(e){return oy[e]}function PI(e){return e>=29&&e<=33}function E1(e){return e>=129&&e<=131}function kI(e){return e>=90&&e<=92}function ly(e){return e>=58&&e<=92}function NI(e){return e>=39&&e<=59}function BI(e){return e===34}function II(e){return uy[e]}function _I(e){return e>=121&&e<=123}function LI(e){return e>=124&&e<=130}function Ai(e){return iy[e]}function Kl(e){return sy[e]}function $I(e){return e===57}function Zd(e){return e>=24&&e<=25}function XC(e){return ny[e]}var cy="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-࢏ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚ౜ౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ೜-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ƛ꟱-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",KC="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-᫝᫠-᫫ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",OI=new RegExp("["+cy+"]"),MI=new RegExp("["+cy+KC+"]");cy=KC=null;var GC=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],jI=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239];function ef(e,t){let r=65536;for(let n=0,i=t.length;ne)return!1;if(r+=t[n+1],r>=e)return!0}return!1}function tn(e){return e<65?e===36:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&OI.test(String.fromCharCode(e)):ef(e,GC)}function as(e){return e<48?e===36:e<58?!0:e<65?!1:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&MI.test(String.fromCharCode(e)):ef(e,GC)||ef(e,jI)}var py={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},RI=new Set(py.keyword),UI=new Set(py.strict),VI=new Set(py.strictBind);function QC(e,t){return t&&e==="await"||e==="enum"}function YC(e,t){return QC(e,t)||UI.has(e)}function ZC(e){return VI.has(e)}function ev(e,t){return YC(e,t)||ZC(e)}function zI(e){return RI.has(e)}function qI(e,t,r){return e===64&&t===64&&tn(r)}var HI=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);function WI(e){return HI.has(e)}var hy=class{constructor(t){H(this,"flags",0);H(this,"names",new Map);H(this,"firstLexicalName","");this.flags=t}},dy=class{constructor(t,r){H(this,"parser");H(this,"scopeStack",[]);H(this,"inModule");H(this,"undefinedExports",new Map);this.parser=t,this.inModule=r}get inTopLevel(){return(this.currentScope().flags&1)>0}get inFunction(){return(this.currentVarScopeFlags()&2)>0}get allowSuper(){return(this.currentThisScopeFlags()&16)>0}get allowDirectSuper(){return(this.currentThisScopeFlags()&32)>0}get allowNewTarget(){return(this.currentThisScopeFlags()&512)>0}get inClass(){return(this.currentThisScopeFlags()&64)>0}get inClassAndNotInNonArrowFunction(){let t=this.currentThisScopeFlags();return(t&64)>0&&(t&2)===0}get inStaticBlock(){for(let t=this.scopeStack.length-1;;t--){let{flags:r}=this.scopeStack[t];if(r&128)return!0;if(r&1731)return!1}}get inNonArrowFunction(){return(this.currentThisScopeFlags()&2)>0}get inBareCaseStatement(){return(this.currentScope().flags&256)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(t){return new hy(t)}enter(t){this.scopeStack.push(this.createScope(t))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(t){return!!(t.flags&130||!this.parser.inModule&&t.flags&1)}declareName(t,r,n){let i=this.currentScope();if(r&8||r&16){this.checkRedeclarationInScope(i,t,r,n);let s=i.names.get(t)||0;r&16?s=s|4:(i.firstLexicalName||(i.firstLexicalName=t),s=s|2),i.names.set(t,s),r&8&&this.maybeExportDefined(i,t)}else if(r&4)for(let s=this.scopeStack.length-1;s>=0&&(i=this.scopeStack[s],this.checkRedeclarationInScope(i,t,r,n),i.names.set(t,(i.names.get(t)||0)|1),this.maybeExportDefined(i,t),!(i.flags&1667));--s);this.parser.inModule&&i.flags&1&&this.undefinedExports.delete(t)}maybeExportDefined(t,r){this.parser.inModule&&t.flags&1&&this.undefinedExports.delete(r)}checkRedeclarationInScope(t,r,n,i){this.isRedeclaredInScope(t,r,n)&&this.parser.raise(w.VarRedeclaration,i,{identifierName:r})}isRedeclaredInScope(t,r,n){if(!(n&1))return!1;if(n&8)return t.names.has(r);let i=t.names.get(r)||0;return n&16?(i&2)>0||!this.treatFunctionsAsVarInScope(t)&&(i&1)>0:(i&2)>0&&!(t.flags&8&&t.firstLexicalName===r)||!this.treatFunctionsAsVarInScope(t)&&(i&4)>0}checkLocalExport(t){let{name:r}=t;this.scopeStack[0].names.has(r)||this.undefinedExports.set(r,t.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let t=this.scopeStack.length-1;;t--){let{flags:r}=this.scopeStack[t];if(r&1667)return r}}currentThisScopeFlags(){for(let t=this.scopeStack.length-1;;t--){let{flags:r}=this.scopeStack[t];if(r&1731&&!(r&4))return r}}},JI=class extends hy{constructor(){super(...arguments);H(this,"declareFunctions",new Set)}},XI=class extends dy{createScope(t){return new JI(t)}declareName(t,r,n){let i=this.currentScope();if(r&2048){this.checkRedeclarationInScope(i,t,r,n),this.maybeExportDefined(i,t),i.declareFunctions.add(t);return}super.declareName(t,r,n)}isRedeclaredInScope(t,r,n){if(super.isRedeclaredInScope(t,r,n))return!0;if(n&2048&&!t.declareFunctions.has(r)){let i=t.names.get(r);return(i&4)>0||(i&2)>0}return!1}checkLocalExport(t){this.scopeStack[0].declareFunctions.has(t.name)||super.checkLocalExport(t)}},KI=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),oe=en`flow`({AmbiguousConditionalArrow:"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.",AmbiguousDeclareModuleKind:"Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.",AssignReservedType:({reservedType:e})=>`Cannot overwrite reserved type ${e}.`,DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:({memberName:e,enumName:t})=>`Boolean enum members need to be initialized. Use either \`${e} = true,\` or \`${e} = false,\` in enum \`${t}\`.`,EnumDuplicateMemberName:({memberName:e,enumName:t})=>`Enum member names need to be unique, but the name \`${e}\` has already been used before in enum \`${t}\`.`,EnumInconsistentMemberValues:({enumName:e})=>`Enum \`${e}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:e,enumName:t})=>`Enum type \`${e}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${t}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:e})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${e}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:e,memberName:t,explicitType:r})=>`Enum \`${e}\` has type \`${r}\`, so the initializer of \`${t}\` needs to be a ${r} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:e,memberName:t})=>`Symbol enum members cannot be initialized. Use \`${t},\` in enum \`${e}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:e,memberName:t})=>`The enum member initializer for \`${t}\` needs to be a literal (either a boolean, number, or string) in enum \`${e}\`.`,EnumInvalidMemberName:({enumName:e,memberName:t,suggestion:r})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${t}\`, consider using \`${r}\`, in enum \`${e}\`.`,EnumNumberMemberNotInitialized:({enumName:e,memberName:t})=>`Number enum members need to be initialized, e.g. \`${t} = 1\` in enum \`${e}\`.`,EnumStringMemberInconsistentlyInitialized:({enumName:e})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${e}\`.`,GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` or `typeof` keyword.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type.",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions.",InexactVariance:"Explicit inexact syntax cannot have variance.",InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:"Cannot have a flow comment inside another flow comment.",PatternIsOptional:Object.assign({message:"A binding pattern parameter cannot be optional in an implementation signature."},{}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:"Spread properties cannot have variance.",ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis.",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object.",UnexpectedReservedType:({reservedType:e})=>`Unexpected reserved type ${e}.`,UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions.",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint".',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration.",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of ` async () => {}`, use `async () => {}`.",UnsupportedDeclareExportKind:({unsupportedExportKind:e,suggestion:t})=>`\`declare export ${e}\` is not supported. Use \`${t}\` instead.`,UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function GI(e){return e.type==="DeclareExportAllDeclaration"||e.type==="DeclareExportDeclaration"&&(!e.declaration||e.declaration.type!=="TypeAlias"&&e.declaration.type!=="InterfaceDeclaration")}function x1(e){return e.importKind==="type"||e.importKind==="typeof"}var QI={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function YI(e,t){let r=[],n=[];for(let i=0;iclass extends e{constructor(){super(...arguments);H(this,"flowPragma")}getScopeHandler(){return XI}shouldParseTypes(){return this.getPluginOption("flow","all")||this.flowPragma==="flow"}finishToken(r,n){r!==134&&r!==13&&r!==28&&this.flowPragma===void 0&&(this.flowPragma=null),super.finishToken(r,n)}addComment(r){if(this.flowPragma===void 0){let n=ZI.exec(r.value);if(n)if(n[1]==="flow")this.flowPragma="flow";else if(n[1]==="noflow")this.flowPragma="noflow";else throw new Error("Unexpected flow pragma")}super.addComment(r)}flowParseTypeInitialiser(r){let n=this.state.inType;this.state.inType=!0,this.expect(r||14);let i=this.flowParseType();return this.state.inType=n,i}flowParsePredicate(){let r=this.startNode(),n=this.state.startLoc;return this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>n.index+1&&this.raise(oe.UnexpectedSpaceBetweenModuloChecks,n),this.eat(10)?(r.value=super.parseExpression(),this.expect(11),this.finishNode(r,"DeclaredPredicate")):this.finishNode(r,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){let r=this.state.inType;this.state.inType=!0,this.expect(14);let n=null,i=null;return this.match(54)?(this.state.inType=r,i=this.flowParsePredicate()):(n=this.flowParseType(),this.state.inType=r,this.match(54)&&(i=this.flowParsePredicate())),[n,i]}flowParseDeclareClass(r){return this.next(),this.flowParseInterfaceish(r,!0),this.finishNode(r,"DeclareClass")}flowParseDeclareFunction(r){this.next();let n=r.id=this.parseIdentifier(),i=this.startNode(),s=this.startNode();this.match(47)?i.typeParameters=this.flowParseTypeParameterDeclaration():i.typeParameters=null,this.expect(10);let a=this.flowParseFunctionTypeParams();return i.params=a.params,i.rest=a.rest,i.this=a._this,this.expect(11),[i.returnType,r.predicate]=this.flowParseTypeAndPredicateInitialiser(),s.typeAnnotation=this.finishNode(i,"FunctionTypeAnnotation"),n.typeAnnotation=this.finishNode(s,"TypeAnnotation"),this.resetEndLocation(n),this.semicolon(),this.scope.declareName(r.id.name,2048,r.id.loc.start),this.finishNode(r,"DeclareFunction")}flowParseDeclare(r,n){if(this.match(80))return this.flowParseDeclareClass(r);if(this.match(68))return this.flowParseDeclareFunction(r);if(this.match(74))return this.flowParseDeclareVariable(r);if(this.eatContextual(127))return this.match(16)?this.flowParseDeclareModuleExports(r):(n&&this.raise(oe.NestedDeclareModule,this.state.lastTokStartLoc),this.flowParseDeclareModule(r));if(this.isContextual(130))return this.flowParseDeclareTypeAlias(r);if(this.isContextual(131))return this.flowParseDeclareOpaqueType(r);if(this.isContextual(129))return this.flowParseDeclareInterface(r);if(this.match(82))return this.flowParseDeclareExportDeclaration(r,n);throw this.unexpected()}flowParseDeclareVariable(r){return this.next(),r.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(r.id.name,5,r.id.loc.start),this.semicolon(),this.finishNode(r,"DeclareVariable")}flowParseDeclareModule(r){this.scope.enter(0),this.match(134)?r.id=super.parseExprAtom():r.id=this.parseIdentifier();let n=r.body=this.startNode(),i=n.body=[];for(this.expect(5);!this.match(8);){let o=this.startNode();this.match(83)?(this.next(),!this.isContextual(130)&&!this.match(87)&&this.raise(oe.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),i.push(super.parseImport(o))):(this.expectContextual(125,oe.UnsupportedStatementInDeclareModule),i.push(this.flowParseDeclare(o,!0)))}this.scope.exit(),this.expect(8),this.finishNode(n,"BlockStatement");let s=null,a=!1;return i.forEach(o=>{GI(o)?(s==="CommonJS"&&this.raise(oe.AmbiguousDeclareModuleKind,o),s="ES"):o.type==="DeclareModuleExports"&&(a&&this.raise(oe.DuplicateDeclareModuleExports,o),s==="ES"&&this.raise(oe.AmbiguousDeclareModuleKind,o),s="CommonJS",a=!0)}),r.kind=s||"CommonJS",this.finishNode(r,"DeclareModule")}flowParseDeclareExportDeclaration(r,n){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?r.declaration=this.flowParseDeclare(this.startNode()):(r.declaration=this.flowParseType(),this.semicolon()),r.default=!0,this.finishNode(r,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!n){let i=this.state.value;throw this.raise(oe.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:i,suggestion:QI[i]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(131))return r.declaration=this.flowParseDeclare(this.startNode()),r.default=!1,this.finishNode(r,"DeclareExportDeclaration");if(this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131))return r=this.parseExport(r,null),r.type==="ExportNamedDeclaration"?(r.default=!1,delete r.exportKind,this.castNodeTo(r,"DeclareExportDeclaration")):this.castNodeTo(r,"DeclareExportAllDeclaration");throw this.unexpected()}flowParseDeclareModuleExports(r){return this.next(),this.expectContextual(111),r.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(r,"DeclareModuleExports")}flowParseDeclareTypeAlias(r){this.next();let n=this.flowParseTypeAlias(r);return this.castNodeTo(n,"DeclareTypeAlias"),n}flowParseDeclareOpaqueType(r){this.next();let n=this.flowParseOpaqueType(r,!0);return this.castNodeTo(n,"DeclareOpaqueType"),n}flowParseDeclareInterface(r){return this.next(),this.flowParseInterfaceish(r,!1),this.finishNode(r,"DeclareInterface")}flowParseInterfaceish(r,n){if(r.id=this.flowParseRestrictedIdentifier(!n,!0),this.scope.declareName(r.id.name,n?17:8201,r.id.loc.start),this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,r.extends=[],this.eat(81))do r.extends.push(this.flowParseInterfaceExtends());while(!n&&this.eat(12));if(n){if(r.implements=[],r.mixins=[],this.eatContextual(117))do r.mixins.push(this.flowParseInterfaceExtends());while(this.eat(12));if(this.eatContextual(113))do r.implements.push(this.flowParseInterfaceExtends());while(this.eat(12))}r.body=this.flowParseObjectType({allowStatic:n,allowExact:!1,allowSpread:!1,allowProto:n,allowInexact:!1})}flowParseInterfaceExtends(){let r=this.startNode();return r.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?r.typeParameters=this.flowParseTypeParameterInstantiation():r.typeParameters=null,this.finishNode(r,"InterfaceExtends")}flowParseInterface(r){return this.flowParseInterfaceish(r,!1),this.finishNode(r,"InterfaceDeclaration")}checkNotUnderscore(r){r==="_"&&this.raise(oe.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(r,n,i){KI.has(r)&&this.raise(i?oe.AssignReservedType:oe.UnexpectedReservedType,n,{reservedType:r})}flowParseRestrictedIdentifier(r,n){return this.checkReservedType(this.state.value,this.state.startLoc,n),this.parseIdentifier(r)}flowParseTypeAlias(r){return r.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(r.id.name,8201,r.id.loc.start),this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,r.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(r,"TypeAlias")}flowParseOpaqueType(r,n){return this.expectContextual(130),r.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(r.id.name,8201,r.id.loc.start),this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,r.supertype=null,this.match(14)&&(r.supertype=this.flowParseTypeInitialiser(14)),r.impltype=null,n||(r.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(r,"OpaqueType")}flowParseTypeParameter(r=!1){let n=this.state.startLoc,i=this.startNode(),s=this.flowParseVariance(),a=this.flowParseTypeAnnotatableIdentifier();return i.name=a.name,i.variance=s,i.bound=a.typeAnnotation,this.match(29)?(this.eat(29),i.default=this.flowParseType()):r&&this.raise(oe.MissingTypeParamDefault,n),this.finishNode(i,"TypeParameter")}flowParseTypeParameterDeclaration(){let r=this.state.inType,n=this.startNode();n.params=[],this.state.inType=!0,this.match(47)||this.match(143)?this.next():this.unexpected();let i=!1;do{let s=this.flowParseTypeParameter(i);n.params.push(s),s.default&&(i=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=r,this.finishNode(n,"TypeParameterDeclaration")}flowInTopLevelContext(r){if(this.curContext()!==_e.brace){let n=this.state.context;this.state.context=[n[0]];try{return r()}finally{this.state.context=n}}else return r()}flowParseTypeParameterInstantiationInExpression(){if(this.reScan_lt()===47)return this.flowParseTypeParameterInstantiation()}flowParseTypeParameterInstantiation(){let r=this.startNode(),n=this.state.inType;return this.state.inType=!0,r.params=[],this.flowInTopLevelContext(()=>{this.expect(47);let i=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)r.params.push(this.flowParseType()),this.match(48)||this.expect(12);this.state.noAnonFunctionType=i}),this.state.inType=n,!this.state.inType&&this.curContext()===_e.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(r,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){if(this.reScan_lt()!==47)return null;let r=this.startNode(),n=this.state.inType;for(r.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)r.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=n,this.finishNode(r,"TypeParameterInstantiation")}flowParseInterfaceType(){let r=this.startNode();if(this.expectContextual(129),r.extends=[],this.eat(81))do r.extends.push(this.flowParseInterfaceExtends());while(this.eat(12));return r.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(r,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(135)||this.match(134)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(r,n,i){return r.static=n,this.lookahead().type===14?(r.id=this.flowParseObjectPropertyKey(),r.key=this.flowParseTypeInitialiser()):(r.id=null,r.key=this.flowParseType()),this.expect(3),r.value=this.flowParseTypeInitialiser(),r.variance=i,this.finishNode(r,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(r,n){return r.static=n,r.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(r.method=!0,r.optional=!1,r.value=this.flowParseObjectTypeMethodish(this.startNodeAt(r.loc.start))):(r.method=!1,this.eat(17)&&(r.optional=!0),r.value=this.flowParseTypeInitialiser()),this.finishNode(r,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(r){for(r.params=[],r.rest=null,r.typeParameters=null,r.this=null,this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(r.this=this.flowParseFunctionTypeParam(!0),r.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)r.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(r.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),r.returnType=this.flowParseTypeInitialiser(),this.finishNode(r,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(r,n){let i=this.startNode();return r.static=n,r.value=this.flowParseObjectTypeMethodish(i),this.finishNode(r,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:r,allowExact:n,allowSpread:i,allowProto:s,allowInexact:a}){let o=this.state.inType;this.state.inType=!0;let u=this.startNode();u.callProperties=[],u.properties=[],u.indexers=[],u.internalSlots=[];let l,c,p=!1;for(n&&this.match(6)?(this.expect(6),l=9,c=!0):(this.expect(5),l=8,c=!1),u.exact=c;!this.match(l);){let d=!1,f=null,y=null,x=this.startNode();if(s&&this.isContextual(118)){let m=this.lookahead();m.type!==14&&m.type!==17&&(this.next(),f=this.state.startLoc,r=!1)}if(r&&this.isContextual(106)){let m=this.lookahead();m.type!==14&&m.type!==17&&(this.next(),d=!0)}let g=this.flowParseVariance();if(this.eat(0))f!=null&&this.unexpected(f),this.eat(0)?(g&&this.unexpected(g.loc.start),u.internalSlots.push(this.flowParseObjectTypeInternalSlot(x,d))):u.indexers.push(this.flowParseObjectTypeIndexer(x,d,g));else if(this.match(10)||this.match(47))f!=null&&this.unexpected(f),g&&this.unexpected(g.loc.start),u.callProperties.push(this.flowParseObjectTypeCallProperty(x,d));else{let m="init";if(this.isContextual(99)||this.isContextual(104)){let v=this.lookahead();JC(v.type)&&(m=this.state.value,this.next())}let D=this.flowParseObjectTypeProperty(x,d,f,g,m,i,a??!c);D===null?(p=!0,y=this.state.lastTokStartLoc):u.properties.push(D)}this.flowObjectTypeSemicolon(),y&&!this.match(8)&&!this.match(9)&&this.raise(oe.UnexpectedExplicitInexactInObject,y)}this.expect(l),i&&(u.inexact=p);let h=this.finishNode(u,"ObjectTypeAnnotation");return this.state.inType=o,h}flowParseObjectTypeProperty(r,n,i,s,a,o,u){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(o?u||this.raise(oe.InexactInsideExact,this.state.lastTokStartLoc):this.raise(oe.InexactInsideNonObject,this.state.lastTokStartLoc),s&&this.raise(oe.InexactVariance,s),null):(o||this.raise(oe.UnexpectedSpreadType,this.state.lastTokStartLoc),i!=null&&this.unexpected(i),s&&this.raise(oe.SpreadVariance,s),r.argument=this.flowParseType(),this.finishNode(r,"ObjectTypeSpreadProperty"));{r.key=this.flowParseObjectPropertyKey(),r.static=n,r.proto=i!=null,r.kind=a;let l=!1;return this.match(47)||this.match(10)?(r.method=!0,i!=null&&this.unexpected(i),s&&this.unexpected(s.loc.start),r.value=this.flowParseObjectTypeMethodish(this.startNodeAt(r.loc.start)),(a==="get"||a==="set")&&this.flowCheckGetterSetterParams(r),!o&&r.key.name==="constructor"&&r.value.this&&this.raise(oe.ThisParamBannedInConstructor,r.value.this)):(a!=="init"&&this.unexpected(),r.method=!1,this.eat(17)&&(l=!0),r.value=this.flowParseTypeInitialiser(),r.variance=s),r.optional=l,this.finishNode(r,"ObjectTypeProperty")}}flowCheckGetterSetterParams(r){let n=r.kind==="get"?0:1,i=r.value.params.length+(r.value.rest?1:0);r.value.this&&this.raise(r.kind==="get"?oe.GetterMayNotHaveThisParam:oe.SetterMayNotHaveThisParam,r.value.this),i!==n&&this.raise(r.kind==="get"?w.BadGetterArity:w.BadSetterArity,r),r.kind==="set"&&r.value.rest&&this.raise(w.BadSetterRestParameter,r)}flowObjectTypeSemicolon(){!this.eat(13)&&!this.eat(12)&&!this.match(8)&&!this.match(9)&&this.unexpected()}flowParseQualifiedTypeIdentifier(r,n){r??(r=this.state.startLoc);let i=n||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){let s=this.startNodeAt(r);s.qualification=i,s.id=this.flowParseRestrictedIdentifier(!0),i=this.finishNode(s,"QualifiedTypeIdentifier")}return i}flowParseGenericType(r,n){let i=this.startNodeAt(r);return i.typeParameters=null,i.id=this.flowParseQualifiedTypeIdentifier(r,n),this.match(47)&&(i.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(i,"GenericTypeAnnotation")}flowParseTypeofType(){let r=this.startNode();return this.expect(87),r.argument=this.flowParsePrimaryType(),this.finishNode(r,"TypeofTypeAnnotation")}flowParseTupleType(){let r=this.startNode();for(r.types=[],this.expect(0);this.state.possuper.parseFunctionBody(r,!0,i));return}super.parseFunctionBody(r,!1,i)}parseFunctionBodyAndFinish(r,n,i=!1){if(this.match(14)){let s=this.startNode();[s.typeAnnotation,r.predicate]=this.flowParseTypeAndPredicateInitialiser(),r.returnType=s.typeAnnotation?this.finishNode(s,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(r,n,i)}parseStatementLike(r){if(this.state.strict&&this.isContextual(129)){let i=this.lookahead();if(Lr(i.type)){let s=this.startNode();return this.next(),this.flowParseInterface(s)}}else if(this.isContextual(126)){let i=this.startNode();return this.next(),this.flowParseEnumDeclaration(i)}let n=super.parseStatementLike(r);return this.flowPragma===void 0&&!this.isValidDirective(n)&&(this.flowPragma=null),n}parseExpressionStatement(r,n,i){if(n.type==="Identifier"){if(n.name==="declare"){if(this.match(80)||Fe(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(r)}else if(Fe(this.state.type)){if(n.name==="interface")return this.flowParseInterface(r);if(n.name==="type")return this.flowParseTypeAlias(r);if(n.name==="opaque")return this.flowParseOpaqueType(r,!1)}}return super.parseExpressionStatement(r,n,i)}shouldParseExportDeclaration(){let{type:r}=this.state;return r===126||E1(r)?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){let{type:r}=this.state;return r===126||E1(r)?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.isContextual(126)){let r=this.startNode();return this.next(),this.flowParseEnumDeclaration(r)}return super.parseExportDefaultExpression()}parseConditional(r,n,i){if(!this.match(17))return r;if(this.state.maybeInArrowParameters){let h=this.lookaheadCharCode();if(h===44||h===61||h===58||h===41)return this.setOptionalParametersError(i),r}this.expect(17);let s=this.state.clone(),a=this.state.noArrowAt,o=this.startNodeAt(n),{consequent:u,failed:l}=this.tryParseConditionalConsequent(),[c,p]=this.getArrowLikeExpressions(u);if(l||p.length>0){let h=[...a];if(p.length>0){this.state=s,this.state.noArrowAt=h;for(let d=0;d1&&this.raise(oe.AmbiguousConditionalArrow,s.startLoc),l&&c.length===1&&(this.state=s,h.push(c[0].start),this.state.noArrowAt=h,{consequent:u,failed:l}=this.tryParseConditionalConsequent())}return this.getArrowLikeExpressions(u,!0),this.state.noArrowAt=a,this.expect(14),o.test=r,o.consequent=u,o.alternate=this.forwardNoArrowParamsConversionAt(o,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode(o,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);let r=this.parseMaybeAssignAllowIn(),n=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:r,failed:n}}getArrowLikeExpressions(r,n){let i=[r],s=[];for(;i.length!==0;){let a=i.pop();a.type==="ArrowFunctionExpression"&&a.body.type!=="BlockStatement"?(a.typeParameters||!a.returnType?this.finishArrowValidation(a):s.push(a),i.push(a.body)):a.type==="ConditionalExpression"&&(i.push(a.consequent),i.push(a.alternate))}return n?(s.forEach(a=>this.finishArrowValidation(a)),[s,[]]):YI(s,a=>a.params.every(o=>this.isAssignable(o,!0)))}finishArrowValidation(r){var n;this.toAssignableList(r.params,(n=r.extra)==null?void 0:n.trailingCommaLoc,!1),this.scope.enter(518),super.checkParams(r,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(r,n){let i;return this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(r.start))?(this.state.noArrowParamsConversionAt.push(this.state.start),i=n(),this.state.noArrowParamsConversionAt.pop()):i=n(),i}parseParenItem(r,n){let i=super.parseParenItem(r,n);if(this.eat(17)&&(i.optional=!0,this.resetEndLocation(r)),this.match(14)){let s=this.startNodeAt(n);return s.expression=i,s.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(s,"TypeCastExpression")}return i}assertModuleNodeAllowed(r){r.type==="ImportDeclaration"&&(r.importKind==="type"||r.importKind==="typeof")||r.type==="ExportNamedDeclaration"&&r.exportKind==="type"||r.type==="ExportAllDeclaration"&&r.exportKind==="type"||super.assertModuleNodeAllowed(r)}parseExportDeclaration(r){if(this.isContextual(130)){r.exportKind="type";let n=this.startNode();return this.next(),this.match(5)?(r.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(r),null):this.flowParseTypeAlias(n)}else if(this.isContextual(131)){r.exportKind="type";let n=this.startNode();return this.next(),this.flowParseOpaqueType(n,!1)}else if(this.isContextual(129)){r.exportKind="type";let n=this.startNode();return this.next(),this.flowParseInterface(n)}else if(this.isContextual(126)){r.exportKind="value";let n=this.startNode();return this.next(),this.flowParseEnumDeclaration(n)}else return super.parseExportDeclaration(r)}eatExportStar(r){return super.eatExportStar(r)?!0:this.isContextual(130)&&this.lookahead().type===55?(r.exportKind="type",this.next(),this.next(),!0):!1}maybeParseExportNamespaceSpecifier(r){let{startLoc:n}=this.state,i=super.maybeParseExportNamespaceSpecifier(r);return i&&r.exportKind==="type"&&this.unexpected(n),i}parseClassId(r,n,i){super.parseClassId(r,n,i),this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(r,n,i){let{startLoc:s}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(r,n))return;n.declare=!0}super.parseClassMember(r,n,i),n.declare&&(n.type!=="ClassProperty"&&n.type!=="ClassPrivateProperty"&&n.type!=="PropertyDefinition"?this.raise(oe.DeclareClassElement,s):n.value&&this.raise(oe.DeclareClassFieldInitializer,n.value))}isIterator(r){return r==="iterator"||r==="asyncIterator"}readIterator(){let r=super.readWord1(),n="@@"+r;(!this.isIterator(r)||!this.state.inType)&&this.raise(w.InvalidIdentifier,this.state.curPosition(),{identifierName:n}),this.finishToken(132,n)}getTokenFromCode(r){let n=this.input.charCodeAt(this.state.pos+1);r===123&&n===124?this.finishOp(6,2):this.state.inType&&(r===62||r===60)?this.finishOp(r===62?48:47,1):this.state.inType&&r===63?n===46?this.finishOp(18,2):this.finishOp(17,1):qI(r,n,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(r)}isAssignable(r,n){return r.type==="TypeCastExpression"?this.isAssignable(r.expression,n):super.isAssignable(r,n)}toAssignable(r,n=!1){!n&&r.type==="AssignmentExpression"&&r.left.type==="TypeCastExpression"&&(r.left=this.typeCastToParameter(r.left)),super.toAssignable(r,n)}toAssignableList(r,n,i){for(let s=0;s1||!n)&&this.raise(oe.TypeCastInPattern,a.typeAnnotation)}return r}parseArrayLike(r,n,i){let s=super.parseArrayLike(r,n,i);return i!=null&&!this.state.maybeInArrowParameters&&this.toReferencedList(s.elements),s}isValidLVal(r,n,i,s){return r==="TypeCastExpression"||super.isValidLVal(r,n,i,s)}parseClassProperty(r){return this.match(14)&&(r.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(r)}parseClassPrivateProperty(r){return this.match(14)&&(r.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(r)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(r){return!this.match(14)&&super.isNonstaticConstructor(r)}pushClassMethod(r,n,i,s,a,o){if(n.variance&&this.unexpected(n.variance.loc.start),delete n.variance,this.match(47)&&(n.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(r,n,i,s,a,o),n.params&&a){let u=n.params;u.length>0&&this.isThisParam(u[0])&&this.raise(oe.ThisParamBannedInConstructor,n)}else if(n.type==="MethodDefinition"&&a&&n.value.params){let u=n.value.params;u.length>0&&this.isThisParam(u[0])&&this.raise(oe.ThisParamBannedInConstructor,n)}}pushClassPrivateMethod(r,n,i,s){n.variance&&this.unexpected(n.variance.loc.start),delete n.variance,this.match(47)&&(n.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(r,n,i,s)}parseClassSuper(r){if(super.parseClassSuper(r),r.superClass&&(this.match(47)||this.match(51))&&(r.superTypeArguments=this.flowParseTypeParameterInstantiationInExpression()),this.isContextual(113)){this.next();let n=r.implements=[];do{let i=this.startNode();i.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?i.typeParameters=this.flowParseTypeParameterInstantiation():i.typeParameters=null,n.push(this.finishNode(i,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(r){super.checkGetterSetterParams(r);let n=this.getObjectOrClassMethodParams(r);if(n.length>0){let i=n[0];this.isThisParam(i)&&r.kind==="get"?this.raise(oe.GetterMayNotHaveThisParam,i):this.isThisParam(i)&&this.raise(oe.SetterMayNotHaveThisParam,i)}}parsePropertyNamePrefixOperator(r){r.variance=this.flowParseVariance()}parseObjPropValue(r,n,i,s,a,o,u){r.variance&&this.unexpected(r.variance.loc.start),delete r.variance;let l;this.match(47)&&!o&&(l=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());let c=super.parseObjPropValue(r,n,i,s,a,o,u);return l&&((c.value||c).typeParameters=l),c}parseFunctionParamType(r){return this.eat(17)&&(r.type!=="Identifier"&&this.raise(oe.PatternIsOptional,r),this.isThisParam(r)&&this.raise(oe.ThisParamMayNotBeOptional,r),r.optional=!0),this.match(14)?r.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(r)&&this.raise(oe.ThisParamAnnotationRequired,r),this.match(29)&&this.isThisParam(r)&&this.raise(oe.ThisParamNoDefault,r),this.resetEndLocation(r),r}parseMaybeDefault(r,n){let i=super.parseMaybeDefault(r,n);return i.type==="AssignmentPattern"&&i.typeAnnotation&&i.right.startsuper.parseMaybeAssign(r,n),i),!s.error)return s.node;let{context:a}=this.state,o=a[a.length-1];(o===_e.j_oTag||o===_e.j_expr)&&a.pop()}if(s!=null&&s.error||this.match(47)){i=i||this.state.clone();let a,o=this.tryParse(l=>{var h;a=this.flowParseTypeParameterDeclaration();let c=this.forwardNoArrowParamsConversionAt(a,()=>{let d=super.parseMaybeAssign(r,n);return this.resetStartLocationFromNode(d,a),d});(h=c.extra)!=null&&h.parenthesized&&l();let p=this.maybeUnwrapTypeCastExpression(c);return p.type!=="ArrowFunctionExpression"&&l(),p.typeParameters=a,this.resetStartLocationFromNode(p,a),c},i),u=null;if(o.node&&this.maybeUnwrapTypeCastExpression(o.node).type==="ArrowFunctionExpression"){if(!o.error&&!o.aborted)return o.node.async&&this.raise(oe.UnexpectedTypeParameterBeforeAsyncArrowFunction,a),o.node;u=o.node}if(s!=null&&s.node)return this.state=s.failState,s.node;if(u)return this.state=o.failState,u;throw s!=null&&s.thrown?s.error:o.thrown?o.error:this.raise(oe.UnexpectedTokenAfterTypeParameter,a)}return super.parseMaybeAssign(r,n)}parseArrow(r){if(this.match(14)){let n=this.tryParse(()=>{let i=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;let s=this.startNode();return[s.typeAnnotation,r.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=i,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),s});if(n.thrown)return null;n.error&&(this.state=n.failState),r.returnType=n.node.typeAnnotation?this.finishNode(n.node,"TypeAnnotation"):null}return super.parseArrow(r)}shouldParseArrow(r){return this.match(14)||super.shouldParseArrow(r)}setArrowFunctionParameters(r,n){this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(r.start))?r.params=n:super.setArrowFunctionParameters(r,n)}checkParams(r,n,i,s=!0){if(!(i&&this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(r.start)))){for(let a=0;a0&&this.raise(oe.ThisParamMustBeFirst,r.params[a]);super.checkParams(r,n,i,s)}}parseParenAndDistinguishExpression(r){return super.parseParenAndDistinguishExpression(r&&!this.state.noArrowAt.includes(this.sourceToOffsetPos(this.state.start)))}parseSubscripts(r,n,i){if(r.type==="Identifier"&&r.name==="async"&&this.state.noArrowAt.includes(n.index)){this.next();let s=this.startNodeAt(n);s.callee=r,s.arguments=super.parseCallExpressionArguments(),r=this.finishNode(s,"CallExpression")}else if(r.type==="Identifier"&&r.name==="async"&&this.match(47)){let s=this.state.clone(),a=this.tryParse(u=>this.parseAsyncArrowWithTypeParameters(n)||u(),s);if(!a.error&&!a.aborted)return a.node;let o=this.tryParse(()=>super.parseSubscripts(r,n,i),s);if(o.node&&!o.error)return o.node;if(a.node)return this.state=a.failState,a.node;if(o.node)return this.state=o.failState,o.node;throw a.error||o.error}return super.parseSubscripts(r,n,i)}parseSubscript(r,n,i,s){if(this.match(18)&&this.isLookaheadToken_lt()){if(s.optionalChainMember=!0,i)return s.stop=!0,r;this.next();let a=this.startNodeAt(n);return a.callee=r,a.typeArguments=this.flowParseTypeParameterInstantiationInExpression(),this.expect(10),a.arguments=this.parseCallExpressionArguments(),a.optional=!0,this.finishCallExpression(a,!0)}else if(!i&&this.shouldParseTypes()&&(this.match(47)||this.match(51))){let a=this.startNodeAt(n);a.callee=r;let o=this.tryParse(()=>(a.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),a.arguments=super.parseCallExpressionArguments(),s.optionalChainMember&&(a.optional=!1),this.finishCallExpression(a,s.optionalChainMember)));if(o.node)return o.error&&(this.state=o.failState),o.node}return super.parseSubscript(r,n,i,s)}parseNewCallee(r){super.parseNewCallee(r);let n=null;this.shouldParseTypes()&&this.match(47)&&(n=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node),r.typeArguments=n}parseAsyncArrowWithTypeParameters(r){let n=this.startNodeAt(r);if(this.parseFunctionParams(n,!1),!!this.parseArrow(n))return super.parseArrowExpression(n,void 0,!0)}readToken_mult_modulo(r){let n=this.input.charCodeAt(this.state.pos+1);if(r===42&&n===47&&this.state.hasFlowComment){this.state.hasFlowComment=!1,this.state.pos+=2,this.nextToken();return}super.readToken_mult_modulo(r)}readToken_pipe_amp(r){let n=this.input.charCodeAt(this.state.pos+1);if(r===124&&n===125){this.finishOp(9,2);return}super.readToken_pipe_amp(r)}parseTopLevel(r,n){let i=super.parseTopLevel(r,n);return this.state.hasFlowComment&&this.raise(oe.UnterminatedFlowComment,this.state.curPosition()),i}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(oe.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();let r=this.skipFlowComment();r&&(this.state.pos+=r,this.state.hasFlowComment=!0);return}return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/")}skipFlowComment(){let{pos:r}=this.state,n=2;for(;[32,9].includes(this.input.charCodeAt(r+n));)n++;let i=this.input.charCodeAt(n+r),s=this.input.charCodeAt(n+r+1);return i===58&&s===58?n+2:this.input.slice(n+r,n+r+12)==="flow-include"?n+12:i===58&&s!==58?n:!1}hasFlowCommentCompletion(){if(this.input.indexOf("*/",this.state.pos)===-1)throw this.raise(w.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(r,{enumName:n,memberName:i}){this.raise(oe.EnumBooleanMemberNotInitialized,r,{memberName:i,enumName:n})}flowEnumErrorInvalidMemberInitializer(r,n){return this.raise(n.explicitType?n.explicitType==="symbol"?oe.EnumInvalidMemberInitializerSymbolType:oe.EnumInvalidMemberInitializerPrimaryType:oe.EnumInvalidMemberInitializerUnknownType,r,n)}flowEnumErrorNumberMemberNotInitialized(r,n){this.raise(oe.EnumNumberMemberNotInitialized,r,n)}flowEnumErrorStringMemberInconsistentlyInitialized(r,n){this.raise(oe.EnumStringMemberInconsistentlyInitialized,r,n)}flowEnumMemberInit(){let r=this.state.startLoc,n=()=>this.match(12)||this.match(8);switch(this.state.type){case 135:{let i=this.parseNumericLiteral(this.state.value);return n()?{type:"number",loc:i.loc.start,value:i}:{type:"invalid",loc:r}}case 134:{let i=this.parseStringLiteral(this.state.value);return n()?{type:"string",loc:i.loc.start,value:i}:{type:"invalid",loc:r}}case 85:case 86:{let i=this.parseBooleanLiteral(this.match(85));return n()?{type:"boolean",loc:i.loc.start,value:i}:{type:"invalid",loc:r}}default:return{type:"invalid",loc:r}}}flowEnumMemberRaw(){let r=this.state.startLoc,n=this.parseIdentifier(!0),i=this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:r};return{id:n,init:i}}flowEnumCheckExplicitTypeMismatch(r,n,i){let{explicitType:s}=n;s!==null&&s!==i&&this.flowEnumErrorInvalidMemberInitializer(r,n)}flowEnumMembers({enumName:r,explicitType:n}){let i=new Set,s={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},a=!1;for(;!this.match(8);){if(this.eat(21)){a=!0;break}let o=this.startNode(),{id:u,init:l}=this.flowEnumMemberRaw(),c=u.name;if(c==="")continue;/^[a-z]/.test(c)&&this.raise(oe.EnumInvalidMemberName,u,{memberName:c,suggestion:c[0].toUpperCase()+c.slice(1),enumName:r}),i.has(c)&&this.raise(oe.EnumDuplicateMemberName,u,{memberName:c,enumName:r}),i.add(c);let p={enumName:r,explicitType:n,memberName:c};switch(o.id=u,l.type){case"boolean":{this.flowEnumCheckExplicitTypeMismatch(l.loc,p,"boolean"),o.init=l.value,s.booleanMembers.push(this.finishNode(o,"EnumBooleanMember"));break}case"number":{this.flowEnumCheckExplicitTypeMismatch(l.loc,p,"number"),o.init=l.value,s.numberMembers.push(this.finishNode(o,"EnumNumberMember"));break}case"string":{this.flowEnumCheckExplicitTypeMismatch(l.loc,p,"string"),o.init=l.value,s.stringMembers.push(this.finishNode(o,"EnumStringMember"));break}case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(l.loc,p);case"none":switch(n){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(l.loc,p);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(l.loc,p);break;default:s.defaultedMembers.push(this.finishNode(o,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}return{members:s,hasUnknownMembers:a}}flowEnumStringMembers(r,n,{enumName:i}){if(r.length===0)return n;if(n.length===0)return r;if(n.length>r.length){for(let s of r)this.flowEnumErrorStringMemberInconsistentlyInitialized(s,{enumName:i});return n}else{for(let s of n)this.flowEnumErrorStringMemberInconsistentlyInitialized(s,{enumName:i});return r}}flowEnumParseExplicitType({enumName:r}){if(!this.eatContextual(102))return null;if(!Fe(this.state.type))throw this.raise(oe.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:r});let{value:n}=this.state;return this.next(),n!=="boolean"&&n!=="number"&&n!=="string"&&n!=="symbol"&&this.raise(oe.EnumInvalidExplicitType,this.state.startLoc,{enumName:r,invalidEnumType:n}),n}flowEnumBody(r,n){let i=n.name,s=n.loc.start,a=this.flowEnumParseExplicitType({enumName:i});this.expect(5);let{members:o,hasUnknownMembers:u}=this.flowEnumMembers({enumName:i,explicitType:a});switch(r.hasUnknownMembers=u,a){case"boolean":return r.explicitType=!0,r.members=o.booleanMembers,this.expect(8),this.finishNode(r,"EnumBooleanBody");case"number":return r.explicitType=!0,r.members=o.numberMembers,this.expect(8),this.finishNode(r,"EnumNumberBody");case"string":return r.explicitType=!0,r.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:i}),this.expect(8),this.finishNode(r,"EnumStringBody");case"symbol":return r.members=o.defaultedMembers,this.expect(8),this.finishNode(r,"EnumSymbolBody");default:{let l=()=>(r.members=[],this.expect(8),this.finishNode(r,"EnumStringBody"));r.explicitType=!1;let c=o.booleanMembers.length,p=o.numberMembers.length,h=o.stringMembers.length,d=o.defaultedMembers.length;if(!c&&!p&&!h&&!d)return l();if(!c&&!p)return r.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:i}),this.expect(8),this.finishNode(r,"EnumStringBody");if(!p&&!h&&c>=d){for(let f of o.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(f.loc.start,{enumName:i,memberName:f.id.name});return r.members=o.booleanMembers,this.expect(8),this.finishNode(r,"EnumBooleanBody")}else if(!c&&!h&&p>=d){for(let f of o.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(f.loc.start,{enumName:i,memberName:f.id.name});return r.members=o.numberMembers,this.expect(8),this.finishNode(r,"EnumNumberBody")}else return this.raise(oe.EnumInconsistentMemberValues,s,{enumName:i}),l()}}}flowParseEnumDeclaration(r){let n=this.parseIdentifier();return r.id=n,r.body=this.flowEnumBody(this.startNode(),n),this.finishNode(r,"EnumDeclaration")}jsxParseOpeningElementAfterName(r){return this.shouldParseTypes()&&(this.match(47)||this.match(51))&&(r.typeArguments=this.flowParseTypeParameterInstantiationInExpression()),super.jsxParseOpeningElementAfterName(r)}isLookaheadToken_lt(){let r=this.nextTokenStart();if(this.input.charCodeAt(r)===60){let n=this.input.charCodeAt(r+1);return n!==60&&n!==61}return!1}reScan_lt_gt(){let{type:r}=this.state;r===47?(this.state.pos-=1,this.readToken_lt()):r===48&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){let{type:r}=this.state;return r===51?(this.state.pos-=2,this.finishOp(47,1),47):r}maybeUnwrapTypeCastExpression(r){return r.type==="TypeCastExpression"?r.expression:r}},t4=/\r\n|[\r\n\u2028\u2029]/,Cl=new RegExp(t4.source,"g");function ca(e){switch(e){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}function C1(e,t,r){for(let n=t;n`Expected corresponding JSX closing tag for <${e}>.`,MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnexpectedToken:({unexpected:e,HTMLEntity:t})=>`Unexpected token \`${e}\`. Did you mean \`${t}\` or \`{'${e}'}\`?`,UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...?"});function Yn(e){return e?e.type==="JSXOpeningFragment"||e.type==="JSXClosingFragment":!1}function na(e){if(e.type==="JSXIdentifier")return e.name;if(e.type==="JSXNamespacedName")return e.namespace.name+":"+e.name.name;if(e.type==="JSXMemberExpression")return na(e.object)+"."+na(e.property);throw new Error("Node had unexpected type: "+e.type)}var n4=e=>class extends e{jsxReadToken(){let t="",r=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(Dn.UnterminatedJsxContent,this.state.startLoc);let n=this.input.charCodeAt(this.state.pos);switch(n){case 60:case 123:if(this.state.pos===this.state.start){n===60&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(143)):super.getTokenFromCode(n);return}t+=this.input.slice(r,this.state.pos),this.finishToken(142,t);return;case 38:t+=this.input.slice(r,this.state.pos),t+=this.jsxReadEntity(),r=this.state.pos;break;case 62:case 125:this.raise(Dn.UnexpectedToken,this.state.curPosition(),{unexpected:this.input[this.state.pos],HTMLEntity:n===125?"}":">"});default:ca(n)?(t+=this.input.slice(r,this.state.pos),t+=this.jsxReadNewLine(!0),r=this.state.pos):++this.state.pos}}}jsxReadNewLine(t){let r=this.input.charCodeAt(this.state.pos),n;return++this.state.pos,r===13&&this.input.charCodeAt(this.state.pos)===10?(++this.state.pos,n=t?` +- Did you mean \`import { "${e}" as foo }\`?`,ImportCallArity:"`import()` requires exactly one or two arguments.",ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverDiscardElement:"'void' must be followed by an expression when not used in a binding position.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:({radix:e})=>`Expected number in radix ${e}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:e})=>`Escape sequence in keyword ${e}.`,InvalidIdentifier:({identifierName:e})=>`Invalid identifier ${e}.`,InvalidLhs:({ancestor:e})=>`Invalid left-hand side in ${rc(e)}.`,InvalidLhsBinding:({ancestor:e})=>`Binding invalid left-hand side in ${rc(e)}.`,InvalidLhsOptionalChaining:({ancestor:e})=>`Invalid optional chaining in the left-hand side of ${rc(e)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:e})=>`Unexpected character '${e}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:e})=>`Private name #${e} is not defined.`,InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:({labelName:e})=>`Label '${e}' is already declared.`,LetInLexicalBinding:"'let' is disallowed as a lexically bound name.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:({missingPlugin:e})=>`This experimental syntax requires enabling the parser plugin: ${e.map(t=>JSON.stringify(t)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:e})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${e.map(t=>JSON.stringify(t)).join(", ")}.`,MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:({key:e})=>`Duplicate key "${e}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:e})=>`An export name cannot include a lone surrogate, found '\\u${e.toString(16)}'.`,ModuleExportUndefined:({localName:e})=>`Export '${e}' is not defined.`,MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:({identifierName:e})=>`Private names are only allowed in property accesses (\`obj.#${e}\`) or in \`in\` expressions (\`#${e} in obj\`).`,PrivateNameRedeclaration:({identifierName:e})=>`Duplicate private name #${e}.`,RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:"Classes may not have static property named prototype.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:({keyword:e})=>`Unexpected keyword '${e}'.`,UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:({reservedWord:e})=>`Unexpected reserved word '${e}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:e,unexpected:t})=>`Unexpected token${t?` '${t}'.`:""}${e?`, expected "${e}"`:""}`,UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement.",UnexpectedVoidPattern:"Unexpected void binding.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:({target:e,onlyValidPropertyName:t})=>`The only valid meta property for ${e} is ${e}.${t}.`,UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationExport:"Using declaration cannot be exported.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:({identifierName:e})=>`Identifier '${e}' has already been declared.`,VoidPatternCatchClauseParam:"A void binding can not be the catch clause parameter. Use `try { ... } catch { ... }` if you want to discard the caught error.",VoidPatternInitializer:"A void binding may not have an initializer.",YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",YieldNotInGeneratorFunction:"'yield' is only allowed within generator functions.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},z6={StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:e})=>`Assigning to '${e}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:e})=>`Binding '${e}' in strict mode.`,StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."},q6={ParseExpressionEmptyInput:"Unexpected parseExpression() input: The input is empty or contains only comments.",ParseExpressionExpectsEOF:({unexpected:e})=>`Unexpected parseExpression() input: The input should contain exactly one expression, but the first expression is followed by the unexpected character \`${String.fromCodePoint(e)}\`.`},H6=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),W6=Object.assign({PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic references are only supported when using the `"proposal": "hack"` version of the pipeline proposal.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:({token:e})=>`Invalid topic token ${e}. In order to use ${e} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${e}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:e})=>`Hack-style pipe body cannot be an unparenthesized ${rc({type:e})}; please wrap it in parentheses.`},{}),J6=["message"];function Bg(e,t,r){Object.defineProperty(e,t,{enumerable:!1,configurable:!0,value:r})}function X6({toMessage:e,code:t,reasonCode:r,syntaxPlugin:n}){let i=r==="MissingPlugin"||r==="MissingOneOfPlugins";return function s(a,o){let u=new SyntaxError;return u.code=t,u.reasonCode=r,u.loc=a,u.pos=a.index,u.syntaxPlugin=n,i&&(u.missingPlugin=o.missingPlugin),Bg(u,"clone",function(l={}){let{line:c,column:p,index:h}=l.loc??a;return s(new bi(c,p,h),Object.assign({},o,l.details))}),Bg(u,"details",o),Object.defineProperty(u,"message",{configurable:!0,get(){let l=`${e(o)} (${a.line}:${a.column})`;return this.message=l,l},set(l){Object.defineProperty(this,"message",{value:l,writable:!0})}}),u}}function tn(e,t){if(Array.isArray(e))return n=>tn(n,e[0]);let r={};for(let n of Object.keys(e)){let i=e[n],s=typeof i=="string"?{message:()=>i}:typeof i=="function"?{message:i}:i,{message:a}=s,o=R6(s,J6),u=typeof a=="string"?()=>a:a;r[n]=X6(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:n,toMessage:u},t?{syntaxPlugin:t}:{},o))}return r}var w=Object.assign({},tn(U6),tn(V6),tn(z6),tn(q6),tn`pipelineOperator`(W6));function K6(){return{sourceType:"script",sourceFilename:void 0,startIndex:0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,allowYieldOutsideFunction:!1,plugins:[],strictMode:void 0,ranges:!1,tokens:!1,createImportExpressions:!0,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0}}function G6(e){let t=K6();if(e==null)return t;if(e.annexB!=null&&e.annexB!==!1)throw new Error("The `annexB` option can only be set to `false`.");for(let r of Object.keys(t))e[r]!=null&&(t[r]=e[r]);if(t.startLine===1)e.startIndex==null&&t.startColumn>0?t.startIndex=t.startColumn:e.startColumn==null&&t.startIndex>0&&(t.startColumn=t.startIndex);else if(e.startColumn==null||e.startIndex==null)throw new Error("With a `startLine > 1` you must also specify `startIndex` and `startColumn`.");if(t.sourceType==="commonjs"){if(e.allowAwaitOutsideFunction!=null)throw new Error("The `allowAwaitOutsideFunction` option cannot be used with `sourceType: 'commonjs'`.");if(e.allowReturnOutsideFunction!=null)throw new Error("`sourceType: 'commonjs'` implies `allowReturnOutsideFunction: true`, please remove the `allowReturnOutsideFunction` option or use `sourceType: 'script'`.");if(e.allowNewTargetOutsideFunction!=null)throw new Error("`sourceType: 'commonjs'` implies `allowNewTargetOutsideFunction: true`, please remove the `allowNewTargetOutsideFunction` option or use `sourceType: 'script'`.")}return t}var{defineProperty:Q6}=Object,Ig=(e,t)=>{e&&Q6(e,t,{enumerable:!1,value:e[t]})};function co(e){return Ig(e.loc.start,"index"),Ig(e.loc.end,"index"),e}var Y6=e=>class extends e{parse(){let t=co(super.parse());return this.optionFlags&256&&(t.tokens=t.tokens.map(co)),t}parseRegExpLiteral({pattern:t,flags:r}){let n=null;try{n=new RegExp(t,r)}catch{}let i=this.estreeParseLiteral(n);return i.regex={pattern:t,flags:r},i}parseBigIntLiteral(t){let r;try{r=BigInt(t)}catch{r=null}let n=this.estreeParseLiteral(r);return n.bigint=String(n.value||t),n}parseDecimalLiteral(t){let r=this.estreeParseLiteral(null);return r.decimal=String(r.value||t),r}estreeParseLiteral(t){return this.parseLiteral(t,"Literal")}parseStringLiteral(t){return this.estreeParseLiteral(t)}parseNumericLiteral(t){return this.estreeParseLiteral(t)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(t){return this.estreeParseLiteral(t)}estreeParseChainExpression(t,r){let n=this.startNodeAtNode(t);return n.expression=t,this.finishNodeAt(n,"ChainExpression",r)}directiveToStmt(t){let r=t.value;delete t.value,this.castNodeTo(r,"Literal"),r.raw=r.extra.raw,r.value=r.extra.expressionValue;let n=this.castNodeTo(t,"ExpressionStatement");return n.expression=r,n.directive=r.extra.rawValue,delete r.extra,n}fillOptionalPropertiesForTSESLint(t){}cloneEstreeStringLiteral(t){let{start:r,end:n,loc:i,range:s,raw:a,value:o}=t,u=Object.create(t.constructor.prototype);return u.type="Literal",u.start=r,u.end=n,u.loc=i,u.range=s,u.raw=a,u.value=o,u}initFunction(t,r){super.initFunction(t,r),t.expression=!1}checkDeclaration(t){t!=null&&this.isObjectProperty(t)?this.checkDeclaration(t.value):super.checkDeclaration(t)}getObjectOrClassMethodParams(t){return t.value.params}isValidDirective(t){var r;return t.type==="ExpressionStatement"&&t.expression.type==="Literal"&&typeof t.expression.value=="string"&&!((r=t.expression.extra)!=null&&r.parenthesized)}parseBlockBody(t,r,n,i,s){super.parseBlockBody(t,r,n,i,s);let a=t.directives.map(o=>this.directiveToStmt(o));t.body=a.concat(t.body),delete t.directives}parsePrivateName(){let t=super.parsePrivateName();return this.convertPrivateNameToPrivateIdentifier(t)}convertPrivateNameToPrivateIdentifier(t){let r=super.getPrivateNameSV(t);return delete t.id,t.name=r,this.castNodeTo(t,"PrivateIdentifier")}isPrivateName(t){return t.type==="PrivateIdentifier"}getPrivateNameSV(t){return t.name}parseLiteral(t,r){let n=super.parseLiteral(t,r);return n.raw=n.extra.raw,delete n.extra,n}parseFunctionBody(t,r,n=!1){super.parseFunctionBody(t,r,n),t.expression=t.body.type!=="BlockStatement"}parseMethod(t,r,n,i,s,a,o=!1){let u=this.startNode();u.kind=t.kind,u=super.parseMethod(u,r,n,i,s,a,o),delete u.kind;let{typeParameters:l}=t;l&&(delete t.typeParameters,u.typeParameters=l,this.resetStartLocationFromNode(u,l));let c=this.castNodeTo(u,this.hasPlugin("typescript")&&!u.body?"TSEmptyBodyFunctionExpression":"FunctionExpression");return t.value=c,a==="ClassPrivateMethod"&&(t.computed=!1),this.hasPlugin("typescript")&&t.abstract?(delete t.abstract,this.finishNode(t,"TSAbstractMethodDefinition")):a==="ObjectMethod"?(t.kind==="method"&&(t.kind="init"),t.shorthand=!1,this.finishNode(t,"Property")):this.finishNode(t,"MethodDefinition")}nameIsConstructor(t){return t.type==="Literal"?t.value==="constructor":super.nameIsConstructor(t)}parseClassProperty(...t){let r=super.parseClassProperty(...t);return r.abstract&&this.hasPlugin("typescript")?(delete r.abstract,this.castNodeTo(r,"TSAbstractPropertyDefinition")):this.castNodeTo(r,"PropertyDefinition"),r}parseClassPrivateProperty(...t){let r=super.parseClassPrivateProperty(...t);return r.abstract&&this.hasPlugin("typescript")?this.castNodeTo(r,"TSAbstractPropertyDefinition"):this.castNodeTo(r,"PropertyDefinition"),r.computed=!1,r}parseClassAccessorProperty(t){let r=super.parseClassAccessorProperty(t);return r.abstract&&this.hasPlugin("typescript")?(delete r.abstract,this.castNodeTo(r,"TSAbstractAccessorProperty")):this.castNodeTo(r,"AccessorProperty"),r}parseObjectProperty(t,r,n,i){let s=super.parseObjectProperty(t,r,n,i);return s&&(s.kind="init",this.castNodeTo(s,"Property")),s}finishObjectProperty(t){return t.kind="init",this.finishNode(t,"Property")}isValidLVal(t,r,n,i){return t==="Property"?"value":super.isValidLVal(t,r,n,i)}isAssignable(t,r){return t!=null&&this.isObjectProperty(t)?this.isAssignable(t.value,r):super.isAssignable(t,r)}toAssignable(t,r=!1){if(t!=null&&this.isObjectProperty(t)){let{key:n,value:i}=t;this.isPrivateName(n)&&this.classScope.usePrivateName(this.getPrivateNameSV(n),n.loc.start),this.toAssignable(i,r)}else super.toAssignable(t,r)}toAssignableObjectExpressionProp(t,r,n){t.type==="Property"&&(t.kind==="get"||t.kind==="set")?this.raise(w.PatternHasAccessor,t.key):t.type==="Property"&&t.method?this.raise(w.PatternHasMethod,t.key):super.toAssignableObjectExpressionProp(t,r,n)}finishCallExpression(t,r){let n=super.finishCallExpression(t,r);return n.callee.type==="Import"?(this.castNodeTo(n,"ImportExpression"),n.source=n.arguments[0],n.options=n.arguments[1]??null,delete n.arguments,delete n.callee):n.type==="OptionalCallExpression"?this.castNodeTo(n,"CallExpression"):n.optional=!1,n}toReferencedArguments(t){t.type!=="ImportExpression"&&super.toReferencedArguments(t)}parseExport(t,r){var s;let n=this.state.lastTokStartLoc,i=super.parseExport(t,r);switch(i.type){case"ExportAllDeclaration":i.exported=null;break;case"ExportNamedDeclaration":i.specifiers.length===1&&i.specifiers[0].type==="ExportNamespaceSpecifier"&&(this.castNodeTo(i,"ExportAllDeclaration"),i.exported=i.specifiers[0].exported,delete i.specifiers);case"ExportDefaultDeclaration":{let{declaration:a}=i;(a==null?void 0:a.type)==="ClassDeclaration"&&((s=a.decorators)==null?void 0:s.length)>0&&a.start===i.start&&this.resetStartLocation(i,n)}break}return i}stopParseSubscript(t,r){let n=super.stopParseSubscript(t,r);return r.optionalChainMember?this.estreeParseChainExpression(n,t.loc.end):n}parseMember(t,r,n,i,s){let a=super.parseMember(t,r,n,i,s);return a.type==="OptionalMemberExpression"?this.castNodeTo(a,"MemberExpression"):a.optional=!1,a}isOptionalMemberExpression(t){return t.type==="ChainExpression"?t.expression.type==="MemberExpression":super.isOptionalMemberExpression(t)}hasPropertyAsPrivateName(t){return t.type==="ChainExpression"&&(t=t.expression),super.hasPropertyAsPrivateName(t)}isObjectProperty(t){return t.type==="Property"&&t.kind==="init"&&!t.method}isObjectMethod(t){return t.type==="Property"&&(t.method||t.kind==="get"||t.kind==="set")}castNodeTo(t,r){let n=super.castNodeTo(t,r);return this.fillOptionalPropertiesForTSESLint(n),n}cloneIdentifier(t){let r=super.cloneIdentifier(t);return this.fillOptionalPropertiesForTSESLint(r),r}cloneStringLiteral(t){return t.type==="Literal"?this.cloneEstreeStringLiteral(t):super.cloneStringLiteral(t)}finishNodeAt(t,r,n){return co(super.finishNodeAt(t,r,n))}finishNode(t,r){let n=super.finishNode(t,r);return this.fillOptionalPropertiesForTSESLint(n),n}resetStartLocation(t,r){super.resetStartLocation(t,r),co(t)}resetEndLocation(t,r=this.state.lastTokEndLoc){super.resetEndLocation(t,r),co(t)}},Fl=class{constructor(t,r){H(this,"token");H(this,"preserveSpace");this.token=t,this.preserveSpace=!!r}},_e={brace:new Fl("{"),j_oTag:new Fl("...",!0)},fe=!0,Y=!0,Ph=!0,po=!0,Yn=!0,Z6=!0,cv=class{constructor(t,r={}){H(this,"label");H(this,"keyword");H(this,"beforeExpr");H(this,"startsExpr");H(this,"rightAssociative");H(this,"isLoop");H(this,"isAssign");H(this,"prefix");H(this,"postfix");H(this,"binop");this.label=t,this.keyword=r.keyword,this.beforeExpr=!!r.beforeExpr,this.startsExpr=!!r.startsExpr,this.rightAssociative=!!r.rightAssociative,this.isLoop=!!r.isLoop,this.isAssign=!!r.isAssign,this.prefix=!!r.prefix,this.postfix=!!r.postfix,this.binop=r.binop!=null?r.binop:null}},m0=new Map;function ve(e,t={}){t.keyword=e;let r=ae(e,t);return m0.set(e,r),r}function Bt(e,t){return ae(e,{beforeExpr:fe,binop:t})}var Xo=-1,y0=[],g0=[],D0=[],x0=[],E0=[],C0=[];function ae(e,t={}){return++Xo,g0.push(e),D0.push(t.binop??-1),x0.push(t.beforeExpr??!1),E0.push(t.startsExpr??!1),C0.push(t.prefix??!1),y0.push(new cv(e,t)),Xo}function ye(e,t={}){return++Xo,m0.set(e,Xo),g0.push(e),D0.push(t.binop??-1),x0.push(t.beforeExpr??!1),E0.push(t.startsExpr??!1),C0.push(t.prefix??!1),y0.push(new cv("name",t)),Xo}var e5={bracketL:ae("[",{beforeExpr:fe,startsExpr:Y}),bracketHashL:ae("#[",{beforeExpr:fe,startsExpr:Y}),bracketBarL:ae("[|",{beforeExpr:fe,startsExpr:Y}),bracketR:ae("]"),bracketBarR:ae("|]"),braceL:ae("{",{beforeExpr:fe,startsExpr:Y}),braceBarL:ae("{|",{beforeExpr:fe,startsExpr:Y}),braceHashL:ae("#{",{beforeExpr:fe,startsExpr:Y}),braceR:ae("}"),braceBarR:ae("|}"),parenL:ae("(",{beforeExpr:fe,startsExpr:Y}),parenR:ae(")"),comma:ae(",",{beforeExpr:fe}),semi:ae(";",{beforeExpr:fe}),colon:ae(":",{beforeExpr:fe}),doubleColon:ae("::",{beforeExpr:fe}),dot:ae("."),question:ae("?",{beforeExpr:fe}),questionDot:ae("?."),arrow:ae("=>",{beforeExpr:fe}),template:ae("template"),ellipsis:ae("...",{beforeExpr:fe}),backQuote:ae("`",{startsExpr:Y}),dollarBraceL:ae("${",{beforeExpr:fe,startsExpr:Y}),templateTail:ae("...`",{startsExpr:Y}),templateNonTail:ae("...${",{beforeExpr:fe,startsExpr:Y}),at:ae("@"),hash:ae("#",{startsExpr:Y}),interpreterDirective:ae("#!..."),eq:ae("=",{beforeExpr:fe,isAssign:po}),assign:ae("_=",{beforeExpr:fe,isAssign:po}),slashAssign:ae("_=",{beforeExpr:fe,isAssign:po}),xorAssign:ae("_=",{beforeExpr:fe,isAssign:po}),moduloAssign:ae("_=",{beforeExpr:fe,isAssign:po}),incDec:ae("++/--",{prefix:Yn,postfix:Z6,startsExpr:Y}),bang:ae("!",{beforeExpr:fe,prefix:Yn,startsExpr:Y}),tilde:ae("~",{beforeExpr:fe,prefix:Yn,startsExpr:Y}),doubleCaret:ae("^^",{startsExpr:Y}),doubleAt:ae("@@",{startsExpr:Y}),pipeline:Bt("|>",0),nullishCoalescing:Bt("??",1),logicalOR:Bt("||",1),logicalAND:Bt("&&",2),bitwiseOR:Bt("|",3),bitwiseXOR:Bt("^",4),bitwiseAND:Bt("&",5),equality:Bt("==/!=/===/!==",6),lt:Bt("/<=/>=",7),gt:Bt("/<=/>=",7),relational:Bt("/<=/>=",7),bitShift:Bt("<>/>>>",8),bitShiftL:Bt("<>/>>>",8),bitShiftR:Bt("<>/>>>",8),plusMin:ae("+/-",{beforeExpr:fe,binop:9,prefix:Yn,startsExpr:Y}),modulo:ae("%",{binop:10,startsExpr:Y}),star:ae("*",{binop:10}),slash:Bt("/",10),exponent:ae("**",{beforeExpr:fe,binop:11,rightAssociative:!0}),_in:ve("in",{beforeExpr:fe,binop:7}),_instanceof:ve("instanceof",{beforeExpr:fe,binop:7}),_break:ve("break"),_case:ve("case",{beforeExpr:fe}),_catch:ve("catch"),_continue:ve("continue"),_debugger:ve("debugger"),_default:ve("default",{beforeExpr:fe}),_else:ve("else",{beforeExpr:fe}),_finally:ve("finally"),_function:ve("function",{startsExpr:Y}),_if:ve("if"),_return:ve("return",{beforeExpr:fe}),_switch:ve("switch"),_throw:ve("throw",{beforeExpr:fe,prefix:Yn,startsExpr:Y}),_try:ve("try"),_var:ve("var"),_const:ve("const"),_with:ve("with"),_new:ve("new",{beforeExpr:fe,startsExpr:Y}),_this:ve("this",{startsExpr:Y}),_super:ve("super",{startsExpr:Y}),_class:ve("class",{startsExpr:Y}),_extends:ve("extends",{beforeExpr:fe}),_export:ve("export"),_import:ve("import",{startsExpr:Y}),_null:ve("null",{startsExpr:Y}),_true:ve("true",{startsExpr:Y}),_false:ve("false",{startsExpr:Y}),_typeof:ve("typeof",{beforeExpr:fe,prefix:Yn,startsExpr:Y}),_void:ve("void",{beforeExpr:fe,prefix:Yn,startsExpr:Y}),_delete:ve("delete",{beforeExpr:fe,prefix:Yn,startsExpr:Y}),_do:ve("do",{isLoop:Ph,beforeExpr:fe}),_for:ve("for",{isLoop:Ph}),_while:ve("while",{isLoop:Ph}),_as:ye("as",{startsExpr:Y}),_assert:ye("assert",{startsExpr:Y}),_async:ye("async",{startsExpr:Y}),_await:ye("await",{startsExpr:Y}),_defer:ye("defer",{startsExpr:Y}),_from:ye("from",{startsExpr:Y}),_get:ye("get",{startsExpr:Y}),_let:ye("let",{startsExpr:Y}),_meta:ye("meta",{startsExpr:Y}),_of:ye("of",{startsExpr:Y}),_sent:ye("sent",{startsExpr:Y}),_set:ye("set",{startsExpr:Y}),_source:ye("source",{startsExpr:Y}),_static:ye("static",{startsExpr:Y}),_using:ye("using",{startsExpr:Y}),_yield:ye("yield",{startsExpr:Y}),_asserts:ye("asserts",{startsExpr:Y}),_checks:ye("checks",{startsExpr:Y}),_exports:ye("exports",{startsExpr:Y}),_global:ye("global",{startsExpr:Y}),_implements:ye("implements",{startsExpr:Y}),_intrinsic:ye("intrinsic",{startsExpr:Y}),_infer:ye("infer",{startsExpr:Y}),_is:ye("is",{startsExpr:Y}),_mixins:ye("mixins",{startsExpr:Y}),_proto:ye("proto",{startsExpr:Y}),_require:ye("require",{startsExpr:Y}),_satisfies:ye("satisfies",{startsExpr:Y}),_keyof:ye("keyof",{startsExpr:Y}),_readonly:ye("readonly",{startsExpr:Y}),_unique:ye("unique",{startsExpr:Y}),_abstract:ye("abstract",{startsExpr:Y}),_declare:ye("declare",{startsExpr:Y}),_enum:ye("enum",{startsExpr:Y}),_module:ye("module",{startsExpr:Y}),_namespace:ye("namespace",{startsExpr:Y}),_interface:ye("interface",{startsExpr:Y}),_type:ye("type",{startsExpr:Y}),_opaque:ye("opaque",{startsExpr:Y}),name:ae("name",{startsExpr:Y}),placeholder:ae("%%",{startsExpr:Y}),string:ae("string",{startsExpr:Y}),num:ae("num",{startsExpr:Y}),bigint:ae("bigint",{startsExpr:Y}),decimal:ae("decimal",{startsExpr:Y}),regexp:ae("regexp",{startsExpr:Y}),privateName:ae("#name",{startsExpr:Y}),eof:ae("eof"),jsxName:ae("jsxName"),jsxText:ae("jsxText",{beforeExpr:fe}),jsxTagStart:ae("jsxTagStart",{startsExpr:Y}),jsxTagEnd:ae("jsxTagEnd")};function Fe(e){return e>=93&&e<=133}function t5(e){return e<=92}function $r(e){return e>=58&&e<=133}function pv(e){return e>=58&&e<=137}function r5(e){return x0[e]}function Po(e){return E0[e]}function n5(e){return e>=29&&e<=33}function _g(e){return e>=129&&e<=131}function i5(e){return e>=90&&e<=92}function v0(e){return e>=58&&e<=92}function s5(e){return e>=39&&e<=59}function a5(e){return e===34}function o5(e){return C0[e]}function u5(e){return e>=121&&e<=123}function l5(e){return e>=124&&e<=130}function Ti(e){return g0[e]}function nc(e){return D0[e]}function c5(e){return e===57}function cf(e){return e>=24&&e<=25}function hv(e){return y0[e]}var A0="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-࢏ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚ౜ౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ೜-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ƛ꟱-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",dv="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-᫝᫠-᫫ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",p5=new RegExp("["+A0+"]"),h5=new RegExp("["+A0+dv+"]");A0=dv=null;var fv=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],d5=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239];function pf(e,t){let r=65536;for(let n=0,i=t.length;ne)return!1;if(r+=t[n+1],r>=e)return!0}return!1}function rn(e){return e<65?e===36:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&p5.test(String.fromCharCode(e)):pf(e,fv)}function us(e){return e<48?e===36:e<58?!0:e<65?!1:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&h5.test(String.fromCharCode(e)):pf(e,fv)||pf(e,d5)}var b0={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},f5=new Set(b0.keyword),m5=new Set(b0.strict),y5=new Set(b0.strictBind);function mv(e,t){return t&&e==="await"||e==="enum"}function yv(e,t){return mv(e,t)||m5.has(e)}function gv(e){return y5.has(e)}function Dv(e,t){return yv(e,t)||gv(e)}function g5(e){return f5.has(e)}function D5(e,t,r){return e===64&&t===64&&rn(r)}var x5=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);function E5(e){return x5.has(e)}var T0=class{constructor(t){H(this,"flags",0);H(this,"names",new Map);H(this,"firstLexicalName","");this.flags=t}},S0=class{constructor(t,r){H(this,"parser");H(this,"scopeStack",[]);H(this,"inModule");H(this,"undefinedExports",new Map);this.parser=t,this.inModule=r}get inTopLevel(){return(this.currentScope().flags&1)>0}get inFunction(){return(this.currentVarScopeFlags()&2)>0}get allowSuper(){return(this.currentThisScopeFlags()&16)>0}get allowDirectSuper(){return(this.currentThisScopeFlags()&32)>0}get allowNewTarget(){return(this.currentThisScopeFlags()&512)>0}get inClass(){return(this.currentThisScopeFlags()&64)>0}get inClassAndNotInNonArrowFunction(){let t=this.currentThisScopeFlags();return(t&64)>0&&(t&2)===0}get inStaticBlock(){for(let t=this.scopeStack.length-1;;t--){let{flags:r}=this.scopeStack[t];if(r&128)return!0;if(r&1731)return!1}}get inNonArrowFunction(){return(this.currentThisScopeFlags()&2)>0}get inBareCaseStatement(){return(this.currentScope().flags&256)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(t){return new T0(t)}enter(t){this.scopeStack.push(this.createScope(t))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(t){return!!(t.flags&130||!this.parser.inModule&&t.flags&1)}declareName(t,r,n){let i=this.currentScope();if(r&8||r&16){this.checkRedeclarationInScope(i,t,r,n);let s=i.names.get(t)||0;r&16?s=s|4:(i.firstLexicalName||(i.firstLexicalName=t),s=s|2),i.names.set(t,s),r&8&&this.maybeExportDefined(i,t)}else if(r&4)for(let s=this.scopeStack.length-1;s>=0&&(i=this.scopeStack[s],this.checkRedeclarationInScope(i,t,r,n),i.names.set(t,(i.names.get(t)||0)|1),this.maybeExportDefined(i,t),!(i.flags&1667));--s);this.parser.inModule&&i.flags&1&&this.undefinedExports.delete(t)}maybeExportDefined(t,r){this.parser.inModule&&t.flags&1&&this.undefinedExports.delete(r)}checkRedeclarationInScope(t,r,n,i){this.isRedeclaredInScope(t,r,n)&&this.parser.raise(w.VarRedeclaration,i,{identifierName:r})}isRedeclaredInScope(t,r,n){if(!(n&1))return!1;if(n&8)return t.names.has(r);let i=t.names.get(r)||0;return n&16?(i&2)>0||!this.treatFunctionsAsVarInScope(t)&&(i&1)>0:(i&2)>0&&!(t.flags&8&&t.firstLexicalName===r)||!this.treatFunctionsAsVarInScope(t)&&(i&4)>0}checkLocalExport(t){let{name:r}=t;this.scopeStack[0].names.has(r)||this.undefinedExports.set(r,t.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let t=this.scopeStack.length-1;;t--){let{flags:r}=this.scopeStack[t];if(r&1667)return r}}currentThisScopeFlags(){for(let t=this.scopeStack.length-1;;t--){let{flags:r}=this.scopeStack[t];if(r&1731&&!(r&4))return r}}},C5=class extends T0{constructor(){super(...arguments);H(this,"declareFunctions",new Set)}},v5=class extends S0{createScope(t){return new C5(t)}declareName(t,r,n){let i=this.currentScope();if(r&2048){this.checkRedeclarationInScope(i,t,r,n),this.maybeExportDefined(i,t),i.declareFunctions.add(t);return}super.declareName(t,r,n)}isRedeclaredInScope(t,r,n){if(super.isRedeclaredInScope(t,r,n))return!0;if(n&2048&&!t.declareFunctions.has(r)){let i=t.names.get(r);return(i&4)>0||(i&2)>0}return!1}checkLocalExport(t){this.scopeStack[0].declareFunctions.has(t.name)||super.checkLocalExport(t)}},A5=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),oe=tn`flow`({AmbiguousConditionalArrow:"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.",AmbiguousDeclareModuleKind:"Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.",AssignReservedType:({reservedType:e})=>`Cannot overwrite reserved type ${e}.`,DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:({memberName:e,enumName:t})=>`Boolean enum members need to be initialized. Use either \`${e} = true,\` or \`${e} = false,\` in enum \`${t}\`.`,EnumDuplicateMemberName:({memberName:e,enumName:t})=>`Enum member names need to be unique, but the name \`${e}\` has already been used before in enum \`${t}\`.`,EnumInconsistentMemberValues:({enumName:e})=>`Enum \`${e}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:e,enumName:t})=>`Enum type \`${e}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${t}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:e})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${e}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:e,memberName:t,explicitType:r})=>`Enum \`${e}\` has type \`${r}\`, so the initializer of \`${t}\` needs to be a ${r} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:e,memberName:t})=>`Symbol enum members cannot be initialized. Use \`${t},\` in enum \`${e}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:e,memberName:t})=>`The enum member initializer for \`${t}\` needs to be a literal (either a boolean, number, or string) in enum \`${e}\`.`,EnumInvalidMemberName:({enumName:e,memberName:t,suggestion:r})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${t}\`, consider using \`${r}\`, in enum \`${e}\`.`,EnumNumberMemberNotInitialized:({enumName:e,memberName:t})=>`Number enum members need to be initialized, e.g. \`${t} = 1\` in enum \`${e}\`.`,EnumStringMemberInconsistentlyInitialized:({enumName:e})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${e}\`.`,GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` or `typeof` keyword.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type.",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions.",InexactVariance:"Explicit inexact syntax cannot have variance.",InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:"Cannot have a flow comment inside another flow comment.",PatternIsOptional:Object.assign({message:"A binding pattern parameter cannot be optional in an implementation signature."},{}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:"Spread properties cannot have variance.",ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis.",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object.",UnexpectedReservedType:({reservedType:e})=>`Unexpected reserved type ${e}.`,UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions.",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint".',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration.",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of ` async () => {}`, use `async () => {}`.",UnsupportedDeclareExportKind:({unsupportedExportKind:e,suggestion:t})=>`\`declare export ${e}\` is not supported. Use \`${t}\` instead.`,UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function b5(e){return e.type==="DeclareExportAllDeclaration"||e.type==="DeclareExportDeclaration"&&(!e.declaration||e.declaration.type!=="TypeAlias"&&e.declaration.type!=="InterfaceDeclaration")}function Lg(e){return e.importKind==="type"||e.importKind==="typeof"}var T5={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function S5(e,t){let r=[],n=[];for(let i=0;iclass extends e{constructor(){super(...arguments);H(this,"flowPragma")}getScopeHandler(){return v5}shouldParseTypes(){return this.getPluginOption("flow","all")||this.flowPragma==="flow"}finishToken(r,n){r!==134&&r!==13&&r!==28&&this.flowPragma===void 0&&(this.flowPragma=null),super.finishToken(r,n)}addComment(r){if(this.flowPragma===void 0){let n=F5.exec(r.value);if(n)if(n[1]==="flow")this.flowPragma="flow";else if(n[1]==="noflow")this.flowPragma="noflow";else throw new Error("Unexpected flow pragma")}super.addComment(r)}flowParseTypeInitialiser(r){let n=this.state.inType;this.state.inType=!0,this.expect(r||14);let i=this.flowParseType();return this.state.inType=n,i}flowParsePredicate(){let r=this.startNode(),n=this.state.startLoc;return this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>n.index+1&&this.raise(oe.UnexpectedSpaceBetweenModuloChecks,n),this.eat(10)?(r.value=super.parseExpression(),this.expect(11),this.finishNode(r,"DeclaredPredicate")):this.finishNode(r,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){let r=this.state.inType;this.state.inType=!0,this.expect(14);let n=null,i=null;return this.match(54)?(this.state.inType=r,i=this.flowParsePredicate()):(n=this.flowParseType(),this.state.inType=r,this.match(54)&&(i=this.flowParsePredicate())),[n,i]}flowParseDeclareClass(r){return this.next(),this.flowParseInterfaceish(r,!0),this.finishNode(r,"DeclareClass")}flowParseDeclareFunction(r){this.next();let n=r.id=this.parseIdentifier(),i=this.startNode(),s=this.startNode();this.match(47)?i.typeParameters=this.flowParseTypeParameterDeclaration():i.typeParameters=null,this.expect(10);let a=this.flowParseFunctionTypeParams();return i.params=a.params,i.rest=a.rest,i.this=a._this,this.expect(11),[i.returnType,r.predicate]=this.flowParseTypeAndPredicateInitialiser(),s.typeAnnotation=this.finishNode(i,"FunctionTypeAnnotation"),n.typeAnnotation=this.finishNode(s,"TypeAnnotation"),this.resetEndLocation(n),this.semicolon(),this.scope.declareName(r.id.name,2048,r.id.loc.start),this.finishNode(r,"DeclareFunction")}flowParseDeclare(r,n){if(this.match(80))return this.flowParseDeclareClass(r);if(this.match(68))return this.flowParseDeclareFunction(r);if(this.match(74))return this.flowParseDeclareVariable(r);if(this.eatContextual(127))return this.match(16)?this.flowParseDeclareModuleExports(r):(n&&this.raise(oe.NestedDeclareModule,this.state.lastTokStartLoc),this.flowParseDeclareModule(r));if(this.isContextual(130))return this.flowParseDeclareTypeAlias(r);if(this.isContextual(131))return this.flowParseDeclareOpaqueType(r);if(this.isContextual(129))return this.flowParseDeclareInterface(r);if(this.match(82))return this.flowParseDeclareExportDeclaration(r,n);throw this.unexpected()}flowParseDeclareVariable(r){return this.next(),r.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(r.id.name,5,r.id.loc.start),this.semicolon(),this.finishNode(r,"DeclareVariable")}flowParseDeclareModule(r){this.scope.enter(0),this.match(134)?r.id=super.parseExprAtom():r.id=this.parseIdentifier();let n=r.body=this.startNode(),i=n.body=[];for(this.expect(5);!this.match(8);){let o=this.startNode();this.match(83)?(this.next(),!this.isContextual(130)&&!this.match(87)&&this.raise(oe.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),i.push(super.parseImport(o))):(this.expectContextual(125,oe.UnsupportedStatementInDeclareModule),i.push(this.flowParseDeclare(o,!0)))}this.scope.exit(),this.expect(8),this.finishNode(n,"BlockStatement");let s=null,a=!1;return i.forEach(o=>{b5(o)?(s==="CommonJS"&&this.raise(oe.AmbiguousDeclareModuleKind,o),s="ES"):o.type==="DeclareModuleExports"&&(a&&this.raise(oe.DuplicateDeclareModuleExports,o),s==="ES"&&this.raise(oe.AmbiguousDeclareModuleKind,o),s="CommonJS",a=!0)}),r.kind=s||"CommonJS",this.finishNode(r,"DeclareModule")}flowParseDeclareExportDeclaration(r,n){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?r.declaration=this.flowParseDeclare(this.startNode()):(r.declaration=this.flowParseType(),this.semicolon()),r.default=!0,this.finishNode(r,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!n){let i=this.state.value;throw this.raise(oe.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:i,suggestion:T5[i]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(131))return r.declaration=this.flowParseDeclare(this.startNode()),r.default=!1,this.finishNode(r,"DeclareExportDeclaration");if(this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131))return r=this.parseExport(r,null),r.type==="ExportNamedDeclaration"?(r.default=!1,delete r.exportKind,this.castNodeTo(r,"DeclareExportDeclaration")):this.castNodeTo(r,"DeclareExportAllDeclaration");throw this.unexpected()}flowParseDeclareModuleExports(r){return this.next(),this.expectContextual(111),r.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(r,"DeclareModuleExports")}flowParseDeclareTypeAlias(r){this.next();let n=this.flowParseTypeAlias(r);return this.castNodeTo(n,"DeclareTypeAlias"),n}flowParseDeclareOpaqueType(r){this.next();let n=this.flowParseOpaqueType(r,!0);return this.castNodeTo(n,"DeclareOpaqueType"),n}flowParseDeclareInterface(r){return this.next(),this.flowParseInterfaceish(r,!1),this.finishNode(r,"DeclareInterface")}flowParseInterfaceish(r,n){if(r.id=this.flowParseRestrictedIdentifier(!n,!0),this.scope.declareName(r.id.name,n?17:8201,r.id.loc.start),this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,r.extends=[],this.eat(81))do r.extends.push(this.flowParseInterfaceExtends());while(!n&&this.eat(12));if(n){if(r.implements=[],r.mixins=[],this.eatContextual(117))do r.mixins.push(this.flowParseInterfaceExtends());while(this.eat(12));if(this.eatContextual(113))do r.implements.push(this.flowParseInterfaceExtends());while(this.eat(12))}r.body=this.flowParseObjectType({allowStatic:n,allowExact:!1,allowSpread:!1,allowProto:n,allowInexact:!1})}flowParseInterfaceExtends(){let r=this.startNode();return r.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?r.typeParameters=this.flowParseTypeParameterInstantiation():r.typeParameters=null,this.finishNode(r,"InterfaceExtends")}flowParseInterface(r){return this.flowParseInterfaceish(r,!1),this.finishNode(r,"InterfaceDeclaration")}checkNotUnderscore(r){r==="_"&&this.raise(oe.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(r,n,i){A5.has(r)&&this.raise(i?oe.AssignReservedType:oe.UnexpectedReservedType,n,{reservedType:r})}flowParseRestrictedIdentifier(r,n){return this.checkReservedType(this.state.value,this.state.startLoc,n),this.parseIdentifier(r)}flowParseTypeAlias(r){return r.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(r.id.name,8201,r.id.loc.start),this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,r.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(r,"TypeAlias")}flowParseOpaqueType(r,n){return this.expectContextual(130),r.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(r.id.name,8201,r.id.loc.start),this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,r.supertype=null,this.match(14)&&(r.supertype=this.flowParseTypeInitialiser(14)),r.impltype=null,n||(r.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(r,"OpaqueType")}flowParseTypeParameter(r=!1){let n=this.state.startLoc,i=this.startNode(),s=this.flowParseVariance(),a=this.flowParseTypeAnnotatableIdentifier();return i.name=a.name,i.variance=s,i.bound=a.typeAnnotation,this.match(29)?(this.eat(29),i.default=this.flowParseType()):r&&this.raise(oe.MissingTypeParamDefault,n),this.finishNode(i,"TypeParameter")}flowParseTypeParameterDeclaration(){let r=this.state.inType,n=this.startNode();n.params=[],this.state.inType=!0,this.match(47)||this.match(143)?this.next():this.unexpected();let i=!1;do{let s=this.flowParseTypeParameter(i);n.params.push(s),s.default&&(i=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=r,this.finishNode(n,"TypeParameterDeclaration")}flowInTopLevelContext(r){if(this.curContext()!==_e.brace){let n=this.state.context;this.state.context=[n[0]];try{return r()}finally{this.state.context=n}}else return r()}flowParseTypeParameterInstantiationInExpression(){if(this.reScan_lt()===47)return this.flowParseTypeParameterInstantiation()}flowParseTypeParameterInstantiation(){let r=this.startNode(),n=this.state.inType;return this.state.inType=!0,r.params=[],this.flowInTopLevelContext(()=>{this.expect(47);let i=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)r.params.push(this.flowParseType()),this.match(48)||this.expect(12);this.state.noAnonFunctionType=i}),this.state.inType=n,!this.state.inType&&this.curContext()===_e.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(r,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){if(this.reScan_lt()!==47)return null;let r=this.startNode(),n=this.state.inType;for(r.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)r.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=n,this.finishNode(r,"TypeParameterInstantiation")}flowParseInterfaceType(){let r=this.startNode();if(this.expectContextual(129),r.extends=[],this.eat(81))do r.extends.push(this.flowParseInterfaceExtends());while(this.eat(12));return r.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(r,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(135)||this.match(134)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(r,n,i){return r.static=n,this.lookahead().type===14?(r.id=this.flowParseObjectPropertyKey(),r.key=this.flowParseTypeInitialiser()):(r.id=null,r.key=this.flowParseType()),this.expect(3),r.value=this.flowParseTypeInitialiser(),r.variance=i,this.finishNode(r,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(r,n){return r.static=n,r.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(r.method=!0,r.optional=!1,r.value=this.flowParseObjectTypeMethodish(this.startNodeAt(r.loc.start))):(r.method=!1,this.eat(17)&&(r.optional=!0),r.value=this.flowParseTypeInitialiser()),this.finishNode(r,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(r){for(r.params=[],r.rest=null,r.typeParameters=null,r.this=null,this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(r.this=this.flowParseFunctionTypeParam(!0),r.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)r.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(r.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),r.returnType=this.flowParseTypeInitialiser(),this.finishNode(r,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(r,n){let i=this.startNode();return r.static=n,r.value=this.flowParseObjectTypeMethodish(i),this.finishNode(r,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:r,allowExact:n,allowSpread:i,allowProto:s,allowInexact:a}){let o=this.state.inType;this.state.inType=!0;let u=this.startNode();u.callProperties=[],u.properties=[],u.indexers=[],u.internalSlots=[];let l,c,p=!1;for(n&&this.match(6)?(this.expect(6),l=9,c=!0):(this.expect(5),l=8,c=!1),u.exact=c;!this.match(l);){let d=!1,f=null,y=null,C=this.startNode();if(s&&this.isContextual(118)){let m=this.lookahead();m.type!==14&&m.type!==17&&(this.next(),f=this.state.startLoc,r=!1)}if(r&&this.isContextual(106)){let m=this.lookahead();m.type!==14&&m.type!==17&&(this.next(),d=!0)}let g=this.flowParseVariance();if(this.eat(0))f!=null&&this.unexpected(f),this.eat(0)?(g&&this.unexpected(g.loc.start),u.internalSlots.push(this.flowParseObjectTypeInternalSlot(C,d))):u.indexers.push(this.flowParseObjectTypeIndexer(C,d,g));else if(this.match(10)||this.match(47))f!=null&&this.unexpected(f),g&&this.unexpected(g.loc.start),u.callProperties.push(this.flowParseObjectTypeCallProperty(C,d));else{let m="init";if(this.isContextual(99)||this.isContextual(104)){let v=this.lookahead();pv(v.type)&&(m=this.state.value,this.next())}let x=this.flowParseObjectTypeProperty(C,d,f,g,m,i,a??!c);x===null?(p=!0,y=this.state.lastTokStartLoc):u.properties.push(x)}this.flowObjectTypeSemicolon(),y&&!this.match(8)&&!this.match(9)&&this.raise(oe.UnexpectedExplicitInexactInObject,y)}this.expect(l),i&&(u.inexact=p);let h=this.finishNode(u,"ObjectTypeAnnotation");return this.state.inType=o,h}flowParseObjectTypeProperty(r,n,i,s,a,o,u){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(o?u||this.raise(oe.InexactInsideExact,this.state.lastTokStartLoc):this.raise(oe.InexactInsideNonObject,this.state.lastTokStartLoc),s&&this.raise(oe.InexactVariance,s),null):(o||this.raise(oe.UnexpectedSpreadType,this.state.lastTokStartLoc),i!=null&&this.unexpected(i),s&&this.raise(oe.SpreadVariance,s),r.argument=this.flowParseType(),this.finishNode(r,"ObjectTypeSpreadProperty"));{r.key=this.flowParseObjectPropertyKey(),r.static=n,r.proto=i!=null,r.kind=a;let l=!1;return this.match(47)||this.match(10)?(r.method=!0,i!=null&&this.unexpected(i),s&&this.unexpected(s.loc.start),r.value=this.flowParseObjectTypeMethodish(this.startNodeAt(r.loc.start)),(a==="get"||a==="set")&&this.flowCheckGetterSetterParams(r),!o&&r.key.name==="constructor"&&r.value.this&&this.raise(oe.ThisParamBannedInConstructor,r.value.this)):(a!=="init"&&this.unexpected(),r.method=!1,this.eat(17)&&(l=!0),r.value=this.flowParseTypeInitialiser(),r.variance=s),r.optional=l,this.finishNode(r,"ObjectTypeProperty")}}flowCheckGetterSetterParams(r){let n=r.kind==="get"?0:1,i=r.value.params.length+(r.value.rest?1:0);r.value.this&&this.raise(r.kind==="get"?oe.GetterMayNotHaveThisParam:oe.SetterMayNotHaveThisParam,r.value.this),i!==n&&this.raise(r.kind==="get"?w.BadGetterArity:w.BadSetterArity,r),r.kind==="set"&&r.value.rest&&this.raise(w.BadSetterRestParameter,r)}flowObjectTypeSemicolon(){!this.eat(13)&&!this.eat(12)&&!this.match(8)&&!this.match(9)&&this.unexpected()}flowParseQualifiedTypeIdentifier(r,n){r??(r=this.state.startLoc);let i=n||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){let s=this.startNodeAt(r);s.qualification=i,s.id=this.flowParseRestrictedIdentifier(!0),i=this.finishNode(s,"QualifiedTypeIdentifier")}return i}flowParseGenericType(r,n){let i=this.startNodeAt(r);return i.typeParameters=null,i.id=this.flowParseQualifiedTypeIdentifier(r,n),this.match(47)&&(i.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(i,"GenericTypeAnnotation")}flowParseTypeofType(){let r=this.startNode();return this.expect(87),r.argument=this.flowParsePrimaryType(),this.finishNode(r,"TypeofTypeAnnotation")}flowParseTupleType(){let r=this.startNode();for(r.types=[],this.expect(0);this.state.possuper.parseFunctionBody(r,!0,i));return}super.parseFunctionBody(r,!1,i)}parseFunctionBodyAndFinish(r,n,i=!1){if(this.match(14)){let s=this.startNode();[s.typeAnnotation,r.predicate]=this.flowParseTypeAndPredicateInitialiser(),r.returnType=s.typeAnnotation?this.finishNode(s,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(r,n,i)}parseStatementLike(r){if(this.state.strict&&this.isContextual(129)){let i=this.lookahead();if($r(i.type)){let s=this.startNode();return this.next(),this.flowParseInterface(s)}}else if(this.isContextual(126)){let i=this.startNode();return this.next(),this.flowParseEnumDeclaration(i)}let n=super.parseStatementLike(r);return this.flowPragma===void 0&&!this.isValidDirective(n)&&(this.flowPragma=null),n}parseExpressionStatement(r,n,i){if(n.type==="Identifier"){if(n.name==="declare"){if(this.match(80)||Fe(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(r)}else if(Fe(this.state.type)){if(n.name==="interface")return this.flowParseInterface(r);if(n.name==="type")return this.flowParseTypeAlias(r);if(n.name==="opaque")return this.flowParseOpaqueType(r,!1)}}return super.parseExpressionStatement(r,n,i)}shouldParseExportDeclaration(){let{type:r}=this.state;return r===126||_g(r)?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){let{type:r}=this.state;return r===126||_g(r)?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.isContextual(126)){let r=this.startNode();return this.next(),this.flowParseEnumDeclaration(r)}return super.parseExportDefaultExpression()}parseConditional(r,n,i){if(!this.match(17))return r;if(this.state.maybeInArrowParameters){let h=this.lookaheadCharCode();if(h===44||h===61||h===58||h===41)return this.setOptionalParametersError(i),r}this.expect(17);let s=this.state.clone(),a=this.state.noArrowAt,o=this.startNodeAt(n),{consequent:u,failed:l}=this.tryParseConditionalConsequent(),[c,p]=this.getArrowLikeExpressions(u);if(l||p.length>0){let h=[...a];if(p.length>0){this.state=s,this.state.noArrowAt=h;for(let d=0;d1&&this.raise(oe.AmbiguousConditionalArrow,s.startLoc),l&&c.length===1&&(this.state=s,h.push(c[0].start),this.state.noArrowAt=h,{consequent:u,failed:l}=this.tryParseConditionalConsequent())}return this.getArrowLikeExpressions(u,!0),this.state.noArrowAt=a,this.expect(14),o.test=r,o.consequent=u,o.alternate=this.forwardNoArrowParamsConversionAt(o,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode(o,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);let r=this.parseMaybeAssignAllowIn(),n=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:r,failed:n}}getArrowLikeExpressions(r,n){let i=[r],s=[];for(;i.length!==0;){let a=i.pop();a.type==="ArrowFunctionExpression"&&a.body.type!=="BlockStatement"?(a.typeParameters||!a.returnType?this.finishArrowValidation(a):s.push(a),i.push(a.body)):a.type==="ConditionalExpression"&&(i.push(a.consequent),i.push(a.alternate))}return n?(s.forEach(a=>this.finishArrowValidation(a)),[s,[]]):S5(s,a=>a.params.every(o=>this.isAssignable(o,!0)))}finishArrowValidation(r){var n;this.toAssignableList(r.params,(n=r.extra)==null?void 0:n.trailingCommaLoc,!1),this.scope.enter(518),super.checkParams(r,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(r,n){let i;return this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(r.start))?(this.state.noArrowParamsConversionAt.push(this.state.start),i=n(),this.state.noArrowParamsConversionAt.pop()):i=n(),i}parseParenItem(r,n){let i=super.parseParenItem(r,n);if(this.eat(17)&&(i.optional=!0,this.resetEndLocation(r)),this.match(14)){let s=this.startNodeAt(n);return s.expression=i,s.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(s,"TypeCastExpression")}return i}assertModuleNodeAllowed(r){r.type==="ImportDeclaration"&&(r.importKind==="type"||r.importKind==="typeof")||r.type==="ExportNamedDeclaration"&&r.exportKind==="type"||r.type==="ExportAllDeclaration"&&r.exportKind==="type"||super.assertModuleNodeAllowed(r)}parseExportDeclaration(r){if(this.isContextual(130)){r.exportKind="type";let n=this.startNode();return this.next(),this.match(5)?(r.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(r),null):this.flowParseTypeAlias(n)}else if(this.isContextual(131)){r.exportKind="type";let n=this.startNode();return this.next(),this.flowParseOpaqueType(n,!1)}else if(this.isContextual(129)){r.exportKind="type";let n=this.startNode();return this.next(),this.flowParseInterface(n)}else if(this.isContextual(126)){r.exportKind="value";let n=this.startNode();return this.next(),this.flowParseEnumDeclaration(n)}else return super.parseExportDeclaration(r)}eatExportStar(r){return super.eatExportStar(r)?!0:this.isContextual(130)&&this.lookahead().type===55?(r.exportKind="type",this.next(),this.next(),!0):!1}maybeParseExportNamespaceSpecifier(r){let{startLoc:n}=this.state,i=super.maybeParseExportNamespaceSpecifier(r);return i&&r.exportKind==="type"&&this.unexpected(n),i}parseClassId(r,n,i){super.parseClassId(r,n,i),this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(r,n,i){let{startLoc:s}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(r,n))return;n.declare=!0}super.parseClassMember(r,n,i),n.declare&&(n.type!=="ClassProperty"&&n.type!=="ClassPrivateProperty"&&n.type!=="PropertyDefinition"?this.raise(oe.DeclareClassElement,s):n.value&&this.raise(oe.DeclareClassFieldInitializer,n.value))}isIterator(r){return r==="iterator"||r==="asyncIterator"}readIterator(){let r=super.readWord1(),n="@@"+r;(!this.isIterator(r)||!this.state.inType)&&this.raise(w.InvalidIdentifier,this.state.curPosition(),{identifierName:n}),this.finishToken(132,n)}getTokenFromCode(r){let n=this.input.charCodeAt(this.state.pos+1);r===123&&n===124?this.finishOp(6,2):this.state.inType&&(r===62||r===60)?this.finishOp(r===62?48:47,1):this.state.inType&&r===63?n===46?this.finishOp(18,2):this.finishOp(17,1):D5(r,n,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(r)}isAssignable(r,n){return r.type==="TypeCastExpression"?this.isAssignable(r.expression,n):super.isAssignable(r,n)}toAssignable(r,n=!1){!n&&r.type==="AssignmentExpression"&&r.left.type==="TypeCastExpression"&&(r.left=this.typeCastToParameter(r.left)),super.toAssignable(r,n)}toAssignableList(r,n,i){for(let s=0;s1||!n)&&this.raise(oe.TypeCastInPattern,a.typeAnnotation)}return r}parseArrayLike(r,n,i){let s=super.parseArrayLike(r,n,i);return i!=null&&!this.state.maybeInArrowParameters&&this.toReferencedList(s.elements),s}isValidLVal(r,n,i,s){return r==="TypeCastExpression"||super.isValidLVal(r,n,i,s)}parseClassProperty(r){return this.match(14)&&(r.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(r)}parseClassPrivateProperty(r){return this.match(14)&&(r.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(r)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(r){return!this.match(14)&&super.isNonstaticConstructor(r)}pushClassMethod(r,n,i,s,a,o){if(n.variance&&this.unexpected(n.variance.loc.start),delete n.variance,this.match(47)&&(n.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(r,n,i,s,a,o),n.params&&a){let u=n.params;u.length>0&&this.isThisParam(u[0])&&this.raise(oe.ThisParamBannedInConstructor,n)}else if(n.type==="MethodDefinition"&&a&&n.value.params){let u=n.value.params;u.length>0&&this.isThisParam(u[0])&&this.raise(oe.ThisParamBannedInConstructor,n)}}pushClassPrivateMethod(r,n,i,s){n.variance&&this.unexpected(n.variance.loc.start),delete n.variance,this.match(47)&&(n.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(r,n,i,s)}parseClassSuper(r){if(super.parseClassSuper(r),r.superClass&&(this.match(47)||this.match(51))&&(r.superTypeArguments=this.flowParseTypeParameterInstantiationInExpression()),this.isContextual(113)){this.next();let n=r.implements=[];do{let i=this.startNode();i.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?i.typeParameters=this.flowParseTypeParameterInstantiation():i.typeParameters=null,n.push(this.finishNode(i,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(r){super.checkGetterSetterParams(r);let n=this.getObjectOrClassMethodParams(r);if(n.length>0){let i=n[0];this.isThisParam(i)&&r.kind==="get"?this.raise(oe.GetterMayNotHaveThisParam,i):this.isThisParam(i)&&this.raise(oe.SetterMayNotHaveThisParam,i)}}parsePropertyNamePrefixOperator(r){r.variance=this.flowParseVariance()}parseObjPropValue(r,n,i,s,a,o,u){r.variance&&this.unexpected(r.variance.loc.start),delete r.variance;let l;this.match(47)&&!o&&(l=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());let c=super.parseObjPropValue(r,n,i,s,a,o,u);return l&&((c.value||c).typeParameters=l),c}parseFunctionParamType(r){return this.eat(17)&&(r.type!=="Identifier"&&this.raise(oe.PatternIsOptional,r),this.isThisParam(r)&&this.raise(oe.ThisParamMayNotBeOptional,r),r.optional=!0),this.match(14)?r.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(r)&&this.raise(oe.ThisParamAnnotationRequired,r),this.match(29)&&this.isThisParam(r)&&this.raise(oe.ThisParamNoDefault,r),this.resetEndLocation(r),r}parseMaybeDefault(r,n){let i=super.parseMaybeDefault(r,n);return i.type==="AssignmentPattern"&&i.typeAnnotation&&i.right.startsuper.parseMaybeAssign(r,n),i),!s.error)return s.node;let{context:a}=this.state,o=a[a.length-1];(o===_e.j_oTag||o===_e.j_expr)&&a.pop()}if(s!=null&&s.error||this.match(47)){i=i||this.state.clone();let a,o=this.tryParse(l=>{var h;a=this.flowParseTypeParameterDeclaration();let c=this.forwardNoArrowParamsConversionAt(a,()=>{let d=super.parseMaybeAssign(r,n);return this.resetStartLocationFromNode(d,a),d});(h=c.extra)!=null&&h.parenthesized&&l();let p=this.maybeUnwrapTypeCastExpression(c);return p.type!=="ArrowFunctionExpression"&&l(),p.typeParameters=a,this.resetStartLocationFromNode(p,a),c},i),u=null;if(o.node&&this.maybeUnwrapTypeCastExpression(o.node).type==="ArrowFunctionExpression"){if(!o.error&&!o.aborted)return o.node.async&&this.raise(oe.UnexpectedTypeParameterBeforeAsyncArrowFunction,a),o.node;u=o.node}if(s!=null&&s.node)return this.state=s.failState,s.node;if(u)return this.state=o.failState,u;throw s!=null&&s.thrown?s.error:o.thrown?o.error:this.raise(oe.UnexpectedTokenAfterTypeParameter,a)}return super.parseMaybeAssign(r,n)}parseArrow(r){if(this.match(14)){let n=this.tryParse(()=>{let i=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;let s=this.startNode();return[s.typeAnnotation,r.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=i,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),s});if(n.thrown)return null;n.error&&(this.state=n.failState),r.returnType=n.node.typeAnnotation?this.finishNode(n.node,"TypeAnnotation"):null}return super.parseArrow(r)}shouldParseArrow(r){return this.match(14)||super.shouldParseArrow(r)}setArrowFunctionParameters(r,n){this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(r.start))?r.params=n:super.setArrowFunctionParameters(r,n)}checkParams(r,n,i,s=!0){if(!(i&&this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(r.start)))){for(let a=0;a0&&this.raise(oe.ThisParamMustBeFirst,r.params[a]);super.checkParams(r,n,i,s)}}parseParenAndDistinguishExpression(r){return super.parseParenAndDistinguishExpression(r&&!this.state.noArrowAt.includes(this.sourceToOffsetPos(this.state.start)))}parseSubscripts(r,n,i){if(r.type==="Identifier"&&r.name==="async"&&this.state.noArrowAt.includes(n.index)){this.next();let s=this.startNodeAt(n);s.callee=r,s.arguments=super.parseCallExpressionArguments(),r=this.finishNode(s,"CallExpression")}else if(r.type==="Identifier"&&r.name==="async"&&this.match(47)){let s=this.state.clone(),a=this.tryParse(u=>this.parseAsyncArrowWithTypeParameters(n)||u(),s);if(!a.error&&!a.aborted)return a.node;let o=this.tryParse(()=>super.parseSubscripts(r,n,i),s);if(o.node&&!o.error)return o.node;if(a.node)return this.state=a.failState,a.node;if(o.node)return this.state=o.failState,o.node;throw a.error||o.error}return super.parseSubscripts(r,n,i)}parseSubscript(r,n,i,s){if(this.match(18)&&this.isLookaheadToken_lt()){if(s.optionalChainMember=!0,i)return s.stop=!0,r;this.next();let a=this.startNodeAt(n);return a.callee=r,a.typeArguments=this.flowParseTypeParameterInstantiationInExpression(),this.expect(10),a.arguments=this.parseCallExpressionArguments(),a.optional=!0,this.finishCallExpression(a,!0)}else if(!i&&this.shouldParseTypes()&&(this.match(47)||this.match(51))){let a=this.startNodeAt(n);a.callee=r;let o=this.tryParse(()=>(a.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),a.arguments=super.parseCallExpressionArguments(),s.optionalChainMember&&(a.optional=!1),this.finishCallExpression(a,s.optionalChainMember)));if(o.node)return o.error&&(this.state=o.failState),o.node}return super.parseSubscript(r,n,i,s)}parseNewCallee(r){super.parseNewCallee(r);let n=null;this.shouldParseTypes()&&this.match(47)&&(n=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node),r.typeArguments=n}parseAsyncArrowWithTypeParameters(r){let n=this.startNodeAt(r);if(this.parseFunctionParams(n,!1),!!this.parseArrow(n))return super.parseArrowExpression(n,void 0,!0)}readToken_mult_modulo(r){let n=this.input.charCodeAt(this.state.pos+1);if(r===42&&n===47&&this.state.hasFlowComment){this.state.hasFlowComment=!1,this.state.pos+=2,this.nextToken();return}super.readToken_mult_modulo(r)}readToken_pipe_amp(r){let n=this.input.charCodeAt(this.state.pos+1);if(r===124&&n===125){this.finishOp(9,2);return}super.readToken_pipe_amp(r)}parseTopLevel(r,n){let i=super.parseTopLevel(r,n);return this.state.hasFlowComment&&this.raise(oe.UnterminatedFlowComment,this.state.curPosition()),i}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(oe.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();let r=this.skipFlowComment();r&&(this.state.pos+=r,this.state.hasFlowComment=!0);return}return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/")}skipFlowComment(){let{pos:r}=this.state,n=2;for(;[32,9].includes(this.input.charCodeAt(r+n));)n++;let i=this.input.charCodeAt(n+r),s=this.input.charCodeAt(n+r+1);return i===58&&s===58?n+2:this.input.slice(n+r,n+r+12)==="flow-include"?n+12:i===58&&s!==58?n:!1}hasFlowCommentCompletion(){if(this.input.indexOf("*/",this.state.pos)===-1)throw this.raise(w.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(r,{enumName:n,memberName:i}){this.raise(oe.EnumBooleanMemberNotInitialized,r,{memberName:i,enumName:n})}flowEnumErrorInvalidMemberInitializer(r,n){return this.raise(n.explicitType?n.explicitType==="symbol"?oe.EnumInvalidMemberInitializerSymbolType:oe.EnumInvalidMemberInitializerPrimaryType:oe.EnumInvalidMemberInitializerUnknownType,r,n)}flowEnumErrorNumberMemberNotInitialized(r,n){this.raise(oe.EnumNumberMemberNotInitialized,r,n)}flowEnumErrorStringMemberInconsistentlyInitialized(r,n){this.raise(oe.EnumStringMemberInconsistentlyInitialized,r,n)}flowEnumMemberInit(){let r=this.state.startLoc,n=()=>this.match(12)||this.match(8);switch(this.state.type){case 135:{let i=this.parseNumericLiteral(this.state.value);return n()?{type:"number",loc:i.loc.start,value:i}:{type:"invalid",loc:r}}case 134:{let i=this.parseStringLiteral(this.state.value);return n()?{type:"string",loc:i.loc.start,value:i}:{type:"invalid",loc:r}}case 85:case 86:{let i=this.parseBooleanLiteral(this.match(85));return n()?{type:"boolean",loc:i.loc.start,value:i}:{type:"invalid",loc:r}}default:return{type:"invalid",loc:r}}}flowEnumMemberRaw(){let r=this.state.startLoc,n=this.parseIdentifier(!0),i=this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:r};return{id:n,init:i}}flowEnumCheckExplicitTypeMismatch(r,n,i){let{explicitType:s}=n;s!==null&&s!==i&&this.flowEnumErrorInvalidMemberInitializer(r,n)}flowEnumMembers({enumName:r,explicitType:n}){let i=new Set,s={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},a=!1;for(;!this.match(8);){if(this.eat(21)){a=!0;break}let o=this.startNode(),{id:u,init:l}=this.flowEnumMemberRaw(),c=u.name;if(c==="")continue;/^[a-z]/.test(c)&&this.raise(oe.EnumInvalidMemberName,u,{memberName:c,suggestion:c[0].toUpperCase()+c.slice(1),enumName:r}),i.has(c)&&this.raise(oe.EnumDuplicateMemberName,u,{memberName:c,enumName:r}),i.add(c);let p={enumName:r,explicitType:n,memberName:c};switch(o.id=u,l.type){case"boolean":{this.flowEnumCheckExplicitTypeMismatch(l.loc,p,"boolean"),o.init=l.value,s.booleanMembers.push(this.finishNode(o,"EnumBooleanMember"));break}case"number":{this.flowEnumCheckExplicitTypeMismatch(l.loc,p,"number"),o.init=l.value,s.numberMembers.push(this.finishNode(o,"EnumNumberMember"));break}case"string":{this.flowEnumCheckExplicitTypeMismatch(l.loc,p,"string"),o.init=l.value,s.stringMembers.push(this.finishNode(o,"EnumStringMember"));break}case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(l.loc,p);case"none":switch(n){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(l.loc,p);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(l.loc,p);break;default:s.defaultedMembers.push(this.finishNode(o,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}return{members:s,hasUnknownMembers:a}}flowEnumStringMembers(r,n,{enumName:i}){if(r.length===0)return n;if(n.length===0)return r;if(n.length>r.length){for(let s of r)this.flowEnumErrorStringMemberInconsistentlyInitialized(s,{enumName:i});return n}else{for(let s of n)this.flowEnumErrorStringMemberInconsistentlyInitialized(s,{enumName:i});return r}}flowEnumParseExplicitType({enumName:r}){if(!this.eatContextual(102))return null;if(!Fe(this.state.type))throw this.raise(oe.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:r});let{value:n}=this.state;return this.next(),n!=="boolean"&&n!=="number"&&n!=="string"&&n!=="symbol"&&this.raise(oe.EnumInvalidExplicitType,this.state.startLoc,{enumName:r,invalidEnumType:n}),n}flowEnumBody(r,n){let i=n.name,s=n.loc.start,a=this.flowEnumParseExplicitType({enumName:i});this.expect(5);let{members:o,hasUnknownMembers:u}=this.flowEnumMembers({enumName:i,explicitType:a});switch(r.hasUnknownMembers=u,a){case"boolean":return r.explicitType=!0,r.members=o.booleanMembers,this.expect(8),this.finishNode(r,"EnumBooleanBody");case"number":return r.explicitType=!0,r.members=o.numberMembers,this.expect(8),this.finishNode(r,"EnumNumberBody");case"string":return r.explicitType=!0,r.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:i}),this.expect(8),this.finishNode(r,"EnumStringBody");case"symbol":return r.members=o.defaultedMembers,this.expect(8),this.finishNode(r,"EnumSymbolBody");default:{let l=()=>(r.members=[],this.expect(8),this.finishNode(r,"EnumStringBody"));r.explicitType=!1;let c=o.booleanMembers.length,p=o.numberMembers.length,h=o.stringMembers.length,d=o.defaultedMembers.length;if(!c&&!p&&!h&&!d)return l();if(!c&&!p)return r.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:i}),this.expect(8),this.finishNode(r,"EnumStringBody");if(!p&&!h&&c>=d){for(let f of o.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(f.loc.start,{enumName:i,memberName:f.id.name});return r.members=o.booleanMembers,this.expect(8),this.finishNode(r,"EnumBooleanBody")}else if(!c&&!h&&p>=d){for(let f of o.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(f.loc.start,{enumName:i,memberName:f.id.name});return r.members=o.numberMembers,this.expect(8),this.finishNode(r,"EnumNumberBody")}else return this.raise(oe.EnumInconsistentMemberValues,s,{enumName:i}),l()}}}flowParseEnumDeclaration(r){let n=this.parseIdentifier();return r.id=n,r.body=this.flowEnumBody(this.startNode(),n),this.finishNode(r,"EnumDeclaration")}jsxParseOpeningElementAfterName(r){return this.shouldParseTypes()&&(this.match(47)||this.match(51))&&(r.typeArguments=this.flowParseTypeParameterInstantiationInExpression()),super.jsxParseOpeningElementAfterName(r)}isLookaheadToken_lt(){let r=this.nextTokenStart();if(this.input.charCodeAt(r)===60){let n=this.input.charCodeAt(r+1);return n!==60&&n!==61}return!1}reScan_lt_gt(){let{type:r}=this.state;r===47?(this.state.pos-=1,this.readToken_lt()):r===48&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){let{type:r}=this.state;return r===51?(this.state.pos-=2,this.finishOp(47,1),47):r}maybeUnwrapTypeCastExpression(r){return r.type==="TypeCastExpression"?r.expression:r}},k5=/\r\n|[\r\n\u2028\u2029]/,wl=new RegExp(k5.source,"g");function fa(e){switch(e){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}function $g(e,t,r){for(let n=t;n`Expected corresponding JSX closing tag for <${e}>.`,MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnexpectedToken:({unexpected:e,HTMLEntity:t})=>`Unexpected token \`${e}\`. Did you mean \`${t}\` or \`{'${e}'}\`?`,UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...?"});function Zn(e){return e?e.type==="JSXOpeningFragment"||e.type==="JSXClosingFragment":!1}function oa(e){if(e.type==="JSXIdentifier")return e.name;if(e.type==="JSXNamespacedName")return e.namespace.name+":"+e.name.name;if(e.type==="JSXMemberExpression")return oa(e.object)+"."+oa(e.property);throw new Error("Node had unexpected type: "+e.type)}var N5=e=>class extends e{jsxReadToken(){let t="",r=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(xn.UnterminatedJsxContent,this.state.startLoc);let n=this.input.charCodeAt(this.state.pos);switch(n){case 60:case 123:if(this.state.pos===this.state.start){n===60&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(143)):super.getTokenFromCode(n);return}t+=this.input.slice(r,this.state.pos),this.finishToken(142,t);return;case 38:t+=this.input.slice(r,this.state.pos),t+=this.jsxReadEntity(),r=this.state.pos;break;case 62:case 125:this.raise(xn.UnexpectedToken,this.state.curPosition(),{unexpected:this.input[this.state.pos],HTMLEntity:n===125?"}":">"});default:fa(n)?(t+=this.input.slice(r,this.state.pos),t+=this.jsxReadNewLine(!0),r=this.state.pos):++this.state.pos}}}jsxReadNewLine(t){let r=this.input.charCodeAt(this.state.pos),n;return++this.state.pos,r===13&&this.input.charCodeAt(this.state.pos)===10?(++this.state.pos,n=t?` `:`\r -`):n=String.fromCharCode(r),++this.state.curLine,this.state.lineStart=this.state.pos,n}jsxReadString(t){let r="",n=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(w.UnterminatedString,this.state.startLoc);let i=this.input.charCodeAt(this.state.pos);if(i===t)break;i===38?(r+=this.input.slice(n,this.state.pos),r+=this.jsxReadEntity(),n=this.state.pos):ca(i)?(r+=this.input.slice(n,this.state.pos),r+=this.jsxReadNewLine(!1),n=this.state.pos):++this.state.pos}r+=this.input.slice(n,this.state.pos++),this.finishToken(134,r)}jsxReadEntity(){let t=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let r=10;this.codePointAtPos(this.state.pos)===120&&(r=16,++this.state.pos);let n=this.readInt(r,void 0,!1,"bail");if(n!==null&&this.codePointAtPos(this.state.pos)===59)return++this.state.pos,String.fromCodePoint(n)}else{let r=0,n=!1;for(;r++<10&&this.state.pos1){for(let s=0;s0){if(i&256){let a=!!(i&512),o=(s&4)>0;return a!==o}return!0}return i&128&&(s&8)>0?r.names.get(n)&2?!!(i&1):!1:i&2&&(s&1)>0?!0:super.isRedeclaredInScope(r,n,i)}checkLocalExport(r){let{name:n}=r;if(this.hasImport(n))return;let i=this.scopeStack.length;for(let s=i-1;s>=0;s--){let a=this.scopeStack[s].tsNames.get(n);if((a&1)>0||(a&16)>0)return}super.checkLocalExport(r)}},a4=class{constructor(){H(this,"stacks",[])}enter(t){this.stacks.push(t)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(this.currentFlags()&2)>0}get hasYield(){return(this.currentFlags()&1)>0}get hasReturn(){return(this.currentFlags()&4)>0}get hasIn(){return(this.currentFlags()&8)>0}};function Gl(e,t){return(e?2:0)|(t?1:0)}var o4=class{constructor(){H(this,"sawUnambiguousESM",!1);H(this,"ambiguousScriptDifferentAst",!1)}sourceToOffsetPos(t){return t+this.startIndex}offsetToSourcePos(t){return t-this.startIndex}hasPlugin(t){if(typeof t=="string")return this.plugins.has(t);{let[r,n]=t;if(!this.hasPlugin(r))return!1;let i=this.plugins.get(r);for(let s of Object.keys(n))if((i==null?void 0:i[s])!==n[s])return!1;return!0}}getPluginOption(t,r){var n;return(n=this.plugins.get(t))==null?void 0:n[r]}};function tv(e,t){e.trailingComments===void 0?e.trailingComments=t:e.trailingComments.unshift(...t)}function u4(e,t){e.leadingComments===void 0?e.leadingComments=t:e.leadingComments.unshift(...t)}function pa(e,t){e.innerComments===void 0?e.innerComments=t:e.innerComments.unshift(...t)}function Vi(e,t,r){let n=null,i=t.length;for(;n===null&&i>0;)n=t[--i];n===null||n.start>r.start?pa(e,r.comments):tv(n,r.comments)}var l4=class extends o4{addComment(t){this.filename&&(t.loc.filename=this.filename);let{commentsLen:r}=this.state;this.comments.length!==r&&(this.comments.length=r),this.comments.push(t),this.state.commentsLen++}processComment(t){let{commentStack:r}=this.state,n=r.length;if(n===0)return;let i=n-1,s=r[i];s.start===t.end&&(s.leadingNode=t,i--);let{start:a}=t;for(;i>=0;i--){let o=r[i],u=o.end;if(u>a)o.containingNode=t,this.finalizeComment(o),r.splice(i,1);else{u===a&&(o.trailingNode=t);break}}}finalizeComment(t){let{comments:r}=t;if(t.leadingNode!==null||t.trailingNode!==null)t.leadingNode!==null&&tv(t.leadingNode,r),t.trailingNode!==null&&u4(t.trailingNode,r);else{let n=t.containingNode,i=t.start;if(this.input.charCodeAt(this.offsetToSourcePos(i)-1)===44)switch(n.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":Vi(n,n.properties,t);break;case"CallExpression":case"OptionalCallExpression":Vi(n,n.arguments,t);break;case"ImportExpression":Vi(n,[n.source,n.options??null],t);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":Vi(n,n.params,t);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":Vi(n,n.elements,t);break;case"ExportNamedDeclaration":case"ImportDeclaration":Vi(n,n.specifiers,t);break;case"TSEnumDeclaration":pa(n,r);break;case"TSEnumBody":Vi(n,n.members,t);break;default:pa(n,r)}else pa(n,r)}}finalizeRemainingComments(){let{commentStack:t}=this.state;for(let r=t.length-1;r>=0;r--)this.finalizeComment(t[r]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(t){let{commentStack:r}=this.state,{length:n}=r;if(n===0)return;let i=r[n-1];i.leadingNode===t&&(i.leadingNode=null)}takeSurroundingComments(t,r,n){let{commentStack:i}=this.state,s=i.length;if(s===0)return;let a=s-1;for(;a>=0;a--){let o=i[a],u=o.end;if(o.start===n)o.leadingNode=t;else if(u===r)o.trailingNode=t;else if(u0}set strict(t){t?this.flags|=1:this.flags&=-2}init({strictMode:t,sourceType:r,startIndex:n,startLine:i,startColumn:s}){this.strict=t===!1?!1:t===!0?!0:r==="module",this.startIndex=n,this.curLine=i,this.lineStart=-s,this.startLoc=this.endLoc=new vi(i,s,n)}get maybeInArrowParameters(){return(this.flags&2)>0}set maybeInArrowParameters(t){t?this.flags|=2:this.flags&=-3}get inType(){return(this.flags&4)>0}set inType(t){t?this.flags|=4:this.flags&=-5}get noAnonFunctionType(){return(this.flags&8)>0}set noAnonFunctionType(t){t?this.flags|=8:this.flags&=-9}get hasFlowComment(){return(this.flags&16)>0}set hasFlowComment(t){t?this.flags|=16:this.flags&=-17}get isAmbientContext(){return(this.flags&32)>0}set isAmbientContext(t){t?this.flags|=32:this.flags&=-33}get inAbstractClass(){return(this.flags&64)>0}set inAbstractClass(t){t?this.flags|=64:this.flags&=-65}get inDisallowConditionalTypesContext(){return(this.flags&128)>0}set inDisallowConditionalTypesContext(t){t?this.flags|=128:this.flags&=-129}get soloAwait(){return(this.flags&256)>0}set soloAwait(t){t?this.flags|=256:this.flags&=-257}get inFSharpPipelineDirectBody(){return(this.flags&512)>0}set inFSharpPipelineDirectBody(t){t?this.flags|=512:this.flags&=-513}get canStartJSXElement(){return(this.flags&1024)>0}set canStartJSXElement(t){t?this.flags|=1024:this.flags&=-1025}get containsEsc(){return(this.flags&2048)>0}set containsEsc(t){t?this.flags|=2048:this.flags&=-2049}get hasTopLevelAwait(){return(this.flags&4096)>0}set hasTopLevelAwait(t){t?this.flags|=4096:this.flags&=-4097}curPosition(){return new vi(this.curLine,this.pos-this.lineStart,this.pos+this.startIndex)}clone(){let t=new rv;return t.flags=this.flags,t.startIndex=this.startIndex,t.curLine=this.curLine,t.lineStart=this.lineStart,t.startLoc=this.startLoc,t.endLoc=this.endLoc,t.errors=this.errors.slice(),t.potentialArrowAt=this.potentialArrowAt,t.noArrowAt=this.noArrowAt.slice(),t.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),t.topicContext=this.topicContext,t.labels=this.labels.slice(),t.commentsLen=this.commentsLen,t.commentStack=this.commentStack.slice(),t.pos=this.pos,t.type=this.type,t.value=this.value,t.start=this.start,t.end=this.end,t.lastTokEndLoc=this.lastTokEndLoc,t.lastTokStartLoc=this.lastTokStartLoc,t.context=this.context.slice(),t.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,t.strictErrors=this.strictErrors,t.tokensLength=this.tokensLength,t}},p4=function(e){return e>=48&&e<=57},v1={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},vl={bin:e=>e===48||e===49,oct:e=>e>=48&&e<=55,dec:e=>e>=48&&e<=57,hex:e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102};function A1(e,t,r,n,i,s){let a=r,o=n,u=i,l="",c=null,p=r,{length:h}=t;for(;;){if(r>=h){s.unterminated(a,o,u),l+=t.slice(p,r);break}let d=t.charCodeAt(r);if(h4(e,d,t,r)){l+=t.slice(p,r);break}if(d===92){l+=t.slice(p,r);let f=d4(t,r,n,i,e==="template",s);f.ch===null&&!c?c={pos:r,lineStart:n,curLine:i}:l+=f.ch,{pos:r,lineStart:n,curLine:i}=f,p=r}else d===8232||d===8233?(++r,++i,n=r):d===10||d===13?e==="template"?(l+=t.slice(p,r)+` -`,++r,d===13&&t.charCodeAt(r)===10&&++r,++i,p=n=r):s.unterminated(a,o,u):++r}return{pos:r,str:l,firstInvalidLoc:c,lineStart:n,curLine:i}}function h4(e,t,r,n){return e==="template"?t===96||t===36&&r.charCodeAt(n+1)===123:t===(e==="double"?34:39)}function d4(e,t,r,n,i,s){let a=!i;t++;let o=l=>({pos:t,ch:l,lineStart:r,curLine:n}),u=e.charCodeAt(t++);switch(u){case 110:return o(` -`);case 114:return o("\r");case 120:{let l;return{code:l,pos:t}=tf(e,t,r,n,2,!1,a,s),o(l===null?null:String.fromCharCode(l))}case 117:{let l;return{code:l,pos:t}=iv(e,t,r,n,a,s),o(l===null?null:String.fromCodePoint(l))}case 116:return o(" ");case 98:return o("\b");case 118:return o("\v");case 102:return o("\f");case 13:e.charCodeAt(t)===10&&++t;case 10:r=t,++n;case 8232:case 8233:return o("");case 56:case 57:if(i)return o(null);s.strictNumericEscape(t-1,r,n);default:if(u>=48&&u<=55){let l=t-1,c=/^[0-7]+/.exec(e.slice(l,t+2))[0],p=parseInt(c,8);p>255&&(c=c.slice(0,-1),p=parseInt(c,8)),t+=c.length-1;let h=e.charCodeAt(t);if(c!=="0"||h===56||h===57){if(i)return o(null);s.strictNumericEscape(l,r,n)}return o(String.fromCharCode(p))}return o(String.fromCharCode(u))}}function tf(e,t,r,n,i,s,a,o){let u=t,l;return{n:l,pos:t}=nv(e,t,r,n,16,i,s,!1,o,!a),l===null&&(a?o.invalidEscapeSequence(u,r,n):t=u-1),{code:l,pos:t}}function nv(e,t,r,n,i,s,a,o,u,l){let c=t,p=i===16?v1.hex:v1.decBinOct,h=i===16?vl.hex:i===10?vl.dec:i===8?vl.oct:vl.bin,d=!1,f=0;for(let y=0,x=s??1/0;y=97?m=g-97+10:g>=65?m=g-65+10:p4(g)?m=g-48:m=1/0,m>=i){if(m<=9&&l)return{n:null,pos:t};if(m<=9&&u.invalidDigit(t,r,n,i))m=0;else if(a)m=0,d=!0;else break}++t,f=f*i+m}return t===c||s!=null&&t-c!==s||d?{n:null,pos:t}:{n:f,pos:t}}function iv(e,t,r,n,i,s){let a=e.charCodeAt(t),o;if(a===123){if(++t,{code:o,pos:t}=tf(e,t,r,n,e.indexOf("}",t)-t,!0,i,s),++t,o!==null&&o>1114111)if(i)s.invalidCodePoint(t,r,n);else return{code:null,pos:t}}else({code:o,pos:t}=tf(e,t,r,n,4,!1,i,s));return{code:o,pos:t}}function uo(e,t,r){return new vi(r,e-t,e)}var f4=new Set([103,109,115,105,121,117,100,118]),m4=class{constructor(t){let r=t.startIndex||0;this.type=t.type,this.value=t.value,this.start=r+t.start,this.end=r+t.end,this.loc=new Bc(t.startLoc,t.endLoc)}},y4=class extends l4{constructor(r,n){super();H(this,"isLookahead");H(this,"tokens",[]);H(this,"errorHandlers_readInt",{invalidDigit:(r,n,i,s)=>this.optionFlags&2048?(this.raise(w.InvalidDigit,uo(r,n,i),{radix:s}),!0):!1,numericSeparatorInEscapeSequence:this.errorBuilder(w.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(w.UnexpectedNumericSeparator)});H(this,"errorHandlers_readCodePoint",Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(w.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(w.InvalidCodePoint)}));H(this,"errorHandlers_readStringContents_string",Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(r,n,i)=>{this.recordStrictModeErrors(w.StrictNumericEscape,uo(r,n,i))},unterminated:(r,n,i)=>{throw this.raise(w.UnterminatedString,uo(r-1,n,i))}}));H(this,"errorHandlers_readStringContents_template",Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(w.StrictNumericEscape),unterminated:(r,n,i)=>{throw this.raise(w.UnterminatedTemplate,uo(r,n,i))}}));this.state=new c4,this.state.init(r),this.input=n,this.length=n.length,this.comments=[],this.isLookahead=!1}pushToken(r){this.tokens.length=this.state.tokensLength,this.tokens.push(r),++this.state.tokensLength}next(){this.checkKeywordEscapes(),this.optionFlags&256&&this.pushToken(new m4(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(r){return this.match(r)?(this.next(),!0):!1}match(r){return this.state.type===r}createLookaheadState(r){return{pos:r.pos,value:null,type:r.type,start:r.start,end:r.end,context:[this.curContext()],inType:r.inType,startLoc:r.startLoc,lastTokEndLoc:r.lastTokEndLoc,curLine:r.curLine,lineStart:r.lineStart,curPosition:r.curPosition}}lookahead(){let r=this.state;this.state=this.createLookaheadState(r),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;let n=this.state;return this.state=r,n}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(r){return vh.lastIndex=r,vh.test(this.input)?vh.lastIndex:r}lookaheadCharCode(){return this.lookaheadCharCodeSince(this.state.pos)}lookaheadCharCodeSince(r){return this.input.charCodeAt(this.nextTokenStartSince(r))}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(r){return Ah.lastIndex=r,Ah.test(this.input)?Ah.lastIndex:r}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(r){let n=this.input.charCodeAt(r);if((n&64512)===55296&&++rthis.raise(n,i)),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){if(this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length){this.finishToken(140);return}this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(r){let n;this.isLookahead||(n=this.state.curPosition());let i=this.state.pos,s=this.input.indexOf(r,i+2);if(s===-1)throw this.raise(w.UnterminatedComment,this.state.curPosition());for(this.state.pos=s+r.length,Cl.lastIndex=i+2;Cl.test(this.input)&&Cl.lastIndex<=s;)++this.state.curLine,this.state.lineStart=Cl.lastIndex;if(this.isLookahead)return;let a={type:"CommentBlock",value:this.input.slice(i+2,s),start:this.sourceToOffsetPos(i),end:this.sourceToOffsetPos(s+r.length),loc:new Bc(n,this.state.curPosition())};return this.optionFlags&256&&this.pushToken(a),a}skipLineComment(r){let n=this.state.pos,i;this.isLookahead||(i=this.state.curPosition());let s=this.input.charCodeAt(this.state.pos+=r);if(this.state.posr)){let a=this.skipLineComment(3);a!==void 0&&(this.addComment(a),n==null||n.push(a))}else break e}else if(i===60&&!this.inModule&&this.optionFlags&8192){let s=this.state.pos;if(this.input.charCodeAt(s+1)===33&&this.input.charCodeAt(s+2)===45&&this.input.charCodeAt(s+3)===45){let a=this.skipLineComment(4);a!==void 0&&(this.addComment(a),n==null||n.push(a))}else break e}else break e}}if((n==null?void 0:n.length)>0){let i=this.state.pos,s={start:this.sourceToOffsetPos(r),end:this.sourceToOffsetPos(i),comments:n,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(s)}}finishToken(r,n){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();let i=this.state.type;this.state.type=r,this.state.value=n,this.isLookahead||this.updateContext(i)}replaceToken(r){this.state.type=r,this.updateContext()}readToken_numberSign(){if(this.state.pos===0&&this.readToken_interpreter())return;let r=this.state.pos+1,n=this.codePointAtPos(r);if(n>=48&&n<=57)throw this.raise(w.UnexpectedDigitAfterHash,this.state.curPosition());tn(n)?(++this.state.pos,this.finishToken(139,this.readWord1(n))):n===92?(++this.state.pos,this.finishToken(139,this.readWord1())):this.finishOp(27,1)}readToken_dot(){let r=this.input.charCodeAt(this.state.pos+1);if(r>=48&&r<=57){this.readNumber(!0);return}r===46&&this.input.charCodeAt(this.state.pos+2)===46?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))}readToken_slash(){this.input.charCodeAt(this.state.pos+1)===61?this.finishOp(31,2):this.finishOp(56,1)}readToken_interpreter(){if(this.state.pos!==0||this.length<2)return!1;let r=this.input.charCodeAt(this.state.pos+1);if(r!==33)return!1;let n=this.state.pos;for(this.state.pos+=1;!ca(r)&&++this.state.pos=48&&n<=57)?(this.state.pos+=2,this.finishToken(18)):(++this.state.pos,this.finishToken(17))}getTokenFromCode(r){switch(r){case 46:this.readToken_dot();return;case 40:++this.state.pos,this.finishToken(10);return;case 41:++this.state.pos,this.finishToken(11);return;case 59:++this.state.pos,this.finishToken(13);return;case 44:++this.state.pos,this.finishToken(12);return;case 91:++this.state.pos,this.finishToken(0);return;case 93:++this.state.pos,this.finishToken(3);return;case 123:++this.state.pos,this.finishToken(5);return;case 125:++this.state.pos,this.finishToken(8);return;case 58:this.hasPlugin("functionBind")&&this.input.charCodeAt(this.state.pos+1)===58?this.finishOp(15,2):(++this.state.pos,this.finishToken(14));return;case 63:this.readToken_question();return;case 96:this.readTemplateToken();return;case 48:{let n=this.input.charCodeAt(this.state.pos+1);if(n===120||n===88){this.readRadixNumber(16);return}if(n===111||n===79){this.readRadixNumber(8);return}if(n===98||n===66){this.readRadixNumber(2);return}}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:this.readNumber(!1);return;case 34:case 39:this.readString(r);return;case 47:this.readToken_slash();return;case 37:case 42:this.readToken_mult_modulo(r);return;case 124:case 38:this.readToken_pipe_amp(r);return;case 94:this.readToken_caret();return;case 43:case 45:this.readToken_plus_min(r);return;case 60:this.readToken_lt();return;case 62:this.readToken_gt();return;case 61:case 33:this.readToken_eq_excl(r);return;case 126:this.finishOp(36,1);return;case 64:this.readToken_atSign();return;case 35:this.readToken_numberSign();return;case 92:this.readWord();return;default:if(tn(r)){this.readWord(r);return}}throw this.raise(w.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(r)})}finishOp(r,n){let i=this.input.slice(this.state.pos,this.state.pos+n);this.state.pos+=n,this.finishToken(r,i)}readRegexp(){let r=this.state.startLoc,n=this.state.start+1,i,s,{pos:a}=this.state;for(;;++a){if(a>=this.length)throw this.raise(w.UnterminatedRegExp,Er(r,1));let c=this.input.charCodeAt(a);if(ca(c))throw this.raise(w.UnterminatedRegExp,Er(r,1));if(i)i=!1;else{if(c===91)s=!0;else if(c===93&&s)s=!1;else if(c===47&&!s)break;i=c===92}}let o=this.input.slice(n,a);++a;let u="",l=()=>Er(r,a+2-n);for(;a=2&&this.input.charCodeAt(n)===48;if(u){let h=this.input.slice(n,this.state.pos);if(this.recordStrictModeErrors(w.StrictOctalLiteral,i),!this.state.strict){let d=h.indexOf("_");d>0&&this.raise(w.ZeroDigitNumericSeparator,Er(i,d))}o=u&&!/[89]/.test(h)}let l=this.input.charCodeAt(this.state.pos);if(l===46&&!o&&(++this.state.pos,this.readInt(10),s=!0,l=this.input.charCodeAt(this.state.pos)),(l===69||l===101)&&!o&&(l=this.input.charCodeAt(++this.state.pos),(l===43||l===45)&&++this.state.pos,this.readInt(10)===null&&this.raise(w.InvalidOrMissingExponent,i),s=!0,l=this.input.charCodeAt(this.state.pos)),l===110&&((s||u)&&this.raise(w.InvalidBigIntLiteral,i),++this.state.pos,a=!0),tn(this.codePointAtPos(this.state.pos)))throw this.raise(w.NumberIdentifier,this.state.curPosition());let c=this.input.slice(n,this.state.pos).replace(/[_mn]/g,"");if(a){this.finishToken(136,c);return}let p=o?parseInt(c,8):parseFloat(c);this.finishToken(135,p)}readCodePoint(r){let{code:n,pos:i}=iv(this.input,this.state.pos,this.state.lineStart,this.state.curLine,r,this.errorHandlers_readCodePoint);return this.state.pos=i,n}readString(r){let{str:n,pos:i,curLine:s,lineStart:a}=A1(r===34?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=i+1,this.state.lineStart=a,this.state.curLine=s,this.finishToken(134,n)}readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()}readTemplateToken(){let r=this.input[this.state.pos],{str:n,firstInvalidLoc:i,pos:s,curLine:a,lineStart:o}=A1("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=s+1,this.state.lineStart=o,this.state.curLine=a,i&&(this.state.firstInvalidTemplateEscapePos=new vi(i.curLine,i.pos-i.lineStart,this.sourceToOffsetPos(i.pos))),this.input.codePointAt(s)===96?this.finishToken(24,i?null:r+n+"`"):(this.state.pos++,this.finishToken(25,i?null:r+n+"${"))}recordStrictModeErrors(r,n){let i=n.index;this.state.strict&&!this.state.strictErrors.has(i)?this.raise(r,n):this.state.strictErrors.set(i,[r,n])}readWord1(r){this.state.containsEsc=!1;let n="",i=this.state.pos,s=this.state.pos;for(r!==void 0&&(this.state.pos+=r<=65535?1:2);this.state.pos=0;u--){let l=o[u];if(l.loc.index===a)return o[u]=r(s,i);if(l.loc.indexthis.hasPlugin(n)))throw this.raise(w.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:r})}errorBuilder(r){return(n,i,s)=>{this.raise(r,uo(n,i,s))}}},g4=class{constructor(){H(this,"privateNames",new Set);H(this,"loneAccessors",new Map);H(this,"undefinedPrivateNames",new Map)}},D4=class{constructor(t){H(this,"parser");H(this,"stack",[]);H(this,"undefinedPrivateNames",new Map);this.parser=t}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new g4)}exit(){let t=this.stack.pop(),r=this.current();for(let[n,i]of Array.from(t.undefinedPrivateNames))r?r.undefinedPrivateNames.has(n)||r.undefinedPrivateNames.set(n,i):this.parser.raise(w.InvalidPrivateFieldResolution,i,{identifierName:n})}declarePrivateName(t,r,n){let{privateNames:i,loneAccessors:s,undefinedPrivateNames:a}=this.current(),o=i.has(t);if(r&3){let u=o&&s.get(t);if(u){let l=u&4,c=r&4,p=u&3,h=r&3;o=p===h||l!==c,o||s.delete(t)}else o||s.set(t,r)}o&&this.parser.raise(w.PrivateNameRedeclaration,n,{identifierName:t}),i.add(t),a.delete(t)}usePrivateName(t,r){let n;for(n of this.stack)if(n.privateNames.has(t))return;n?n.undefinedPrivateNames.set(t,r):this.parser.raise(w.InvalidPrivateFieldResolution,r,{identifierName:t})}},mp=class{constructor(t=0){this.type=t}canBeArrowParameterDeclaration(){return this.type===2||this.type===1}isCertainlyParameterDeclaration(){return this.type===3}},sv=class extends mp{constructor(r){super(r);H(this,"declarationErrors",new Map)}recordDeclarationError(r,n){let i=n.index;this.declarationErrors.set(i,[r,n])}clearDeclarationError(r){this.declarationErrors.delete(r)}iterateErrors(r){this.declarationErrors.forEach(r)}},E4=class{constructor(t){H(this,"parser");H(this,"stack",[new mp]);this.parser=t}enter(t){this.stack.push(t)}exit(){this.stack.pop()}recordParameterInitializerError(t,r){let n=r.loc.start,{stack:i}=this,s=i.length-1,a=i[s];for(;!a.isCertainlyParameterDeclaration();){if(a.canBeArrowParameterDeclaration())a.recordDeclarationError(t,n);else return;a=i[--s]}this.parser.raise(t,n)}recordArrowParameterBindingError(t,r){let{stack:n}=this,i=n[n.length-1],s=r.loc.start;if(i.isCertainlyParameterDeclaration())this.parser.raise(t,s);else if(i.canBeArrowParameterDeclaration())i.recordDeclarationError(t,s);else return}recordAsyncArrowParametersError(t){let{stack:r}=this,n=r.length-1,i=r[n];for(;i.canBeArrowParameterDeclaration();)i.type===2&&i.recordDeclarationError(w.AwaitBindingIdentifier,t),i=r[--n]}validateAsPattern(){let{stack:t}=this,r=t[t.length-1];r.canBeArrowParameterDeclaration()&&r.iterateErrors(([n,i])=>{this.parser.raise(n,i);let s=t.length-2,a=t[s];for(;a.canBeArrowParameterDeclaration();)a.clearDeclarationError(i.index),a=t[--s]})}};function x4(){return new mp(3)}function C4(){return new sv(1)}function v4(){return new sv(2)}function av(){return new mp}var A4=class extends y4{addExtra(t,r,n,i=!0){if(!t)return;let{extra:s}=t;s==null&&(s={},t.extra=s),i?s[r]=n:Object.defineProperty(s,r,{enumerable:i,value:n})}isContextual(t){return this.state.type===t&&!this.state.containsEsc}isUnparsedContextual(t,r){if(this.input.startsWith(r,t)){let n=this.input.charCodeAt(t+r.length);return!(as(n)||(n&64512)===55296)}return!1}isLookaheadContextual(t){let r=this.nextTokenStart();return this.isUnparsedContextual(r,t)}eatContextual(t){return this.isContextual(t)?(this.next(),!0):!1}expectContextual(t,r){if(!this.eatContextual(t)){if(r!=null)throw this.raise(r,this.state.startLoc);this.unexpected(null,t)}}canInsertSemicolon(){return this.match(140)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return C1(this.input,this.offsetToSourcePos(this.state.lastTokEndLoc.index),this.state.start)}hasFollowingLineBreak(){return C1(this.input,this.state.end,this.nextTokenStart())}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(t=!0){(t?this.isLineTerminator():this.eat(13))||this.raise(w.MissingSemicolon,this.state.lastTokEndLoc)}expect(t,r){this.eat(t)||this.unexpected(r,t)}tryParse(t,r=this.state.clone()){let n={node:null};try{let i=t((s=null)=>{throw n.node=s,n});if(this.state.errors.length>r.errors.length){let s=this.state;return this.state=r,this.state.tokensLength=s.tokensLength,{node:i,error:s.errors[r.errors.length],thrown:!1,aborted:!1,failState:s}}return{node:i,error:null,thrown:!1,aborted:!1,failState:null}}catch(i){let s=this.state;if(this.state=r,i instanceof SyntaxError)return{node:null,error:i,thrown:!0,aborted:!1,failState:s};if(i===n)return{node:n.node,error:null,thrown:!1,aborted:!0,failState:s};throw i}}checkExpressionErrors(t,r){if(!t)return!1;let{shorthandAssignLoc:n,doubleProtoLoc:i,privateKeyLoc:s,optionalParametersLoc:a,voidPatternLoc:o}=t,u=!!n||!!i||!!a||!!s||!!o;if(!r)return u;n!=null&&this.raise(w.InvalidCoverInitializedName,n),i!=null&&this.raise(w.DuplicateProto,i),s!=null&&this.raise(w.UnexpectedPrivateField,s),a!=null&&this.unexpected(a),o!=null&&this.raise(w.InvalidCoverDiscardElement,o)}isLiteralPropertyName(){return JC(this.state.type)}isPrivateName(t){return t.type==="PrivateName"}getPrivateNameSV(t){return t.id.name}hasPropertyAsPrivateName(t){return(t.type==="MemberExpression"||t.type==="OptionalMemberExpression")&&this.isPrivateName(t.property)}isObjectProperty(t){return t.type==="ObjectProperty"}isObjectMethod(t){return t.type==="ObjectMethod"}initializeScopes(t=this.options.sourceType==="module"){let r=this.state.labels;this.state.labels=[];let n=this.exportedIdentifiers;this.exportedIdentifiers=new Set;let i=this.inModule;this.inModule=t;let s=this.scope,a=this.getScopeHandler();this.scope=new a(this,t);let o=this.prodParam;this.prodParam=new a4;let u=this.classScope;this.classScope=new D4(this);let l=this.expressionScope;return this.expressionScope=new E4(this),()=>{this.state.labels=r,this.exportedIdentifiers=n,this.inModule=i,this.scope=s,this.prodParam=o,this.classScope=u,this.expressionScope=l}}enterInitialScopes(){let t=0;(this.inModule||this.optionFlags&1)&&(t|=2),this.optionFlags&32&&(t|=1);let r=!this.inModule&&this.options.sourceType==="commonjs";(r||this.optionFlags&2)&&(t|=4),this.prodParam.enter(t);let n=r?514:1;this.optionFlags&4&&(n|=512),this.optionFlags&16&&(n|=48),this.scope.enter(n)}checkDestructuringPrivate(t){let{privateKeyLoc:r}=t;r!==null&&this.expectPlugin("destructuringPrivate",r)}},Ql=class{constructor(){H(this,"shorthandAssignLoc",null);H(this,"doubleProtoLoc",null);H(this,"privateKeyLoc",null);H(this,"optionalParametersLoc",null);H(this,"voidPatternLoc",null)}},rf=class{constructor(t,r,n){H(this,"type","");this.start=r,this.end=0,this.loc=new Bc(n),(t==null?void 0:t.optionFlags)&128&&(this.range=[r,0]),t!=null&&t.filename&&(this.loc.filename=t.filename)}},T1=rf.prototype,T4=class extends A4{startNode(){let t=this.state.startLoc;return new rf(this,t.index,t)}startNodeAt(t){return new rf(this,t.index,t)}startNodeAtNode(t){return this.startNodeAt(t.loc.start)}finishNode(t,r){return this.finishNodeAt(t,r,this.state.lastTokEndLoc)}finishNodeAt(t,r,n){return t.type=r,t.end=n.index,t.loc.end=n,this.optionFlags&128&&(t.range[1]=n.index),this.optionFlags&4096&&this.processComment(t),t}resetStartLocation(t,r){t.start=r.index,t.loc.start=r,this.optionFlags&128&&(t.range[0]=r.index)}resetEndLocation(t,r=this.state.lastTokEndLoc){t.end=r.index,t.loc.end=r,this.optionFlags&128&&(t.range[1]=r.index)}resetStartLocationFromNode(t,r){this.resetStartLocation(t,r.loc.start)}castNodeTo(t,r){return t.type=r,t}cloneIdentifier(t){let{type:r,start:n,end:i,loc:s,range:a,name:o}=t,u=Object.create(T1);return u.type=r,u.start=n,u.end=i,u.loc=s,u.range=a,u.name=o,t.extra&&(u.extra=t.extra),u}cloneStringLiteral(t){let{type:r,start:n,end:i,loc:s,range:a,extra:o}=t,u=Object.create(T1);return u.type=r,u.start=n,u.end=i,u.loc=s,u.range=a,u.extra=o,u.value=t.value,u}},nf=e=>e.type==="ParenthesizedExpression"?nf(e.expression):e,S4=class extends T4{toAssignable(t,r=!1){var i,s,a;let n;switch((t.type==="ParenthesizedExpression"||(i=t.extra)!=null&&i.parenthesized)&&(n=nf(t),r?n.type==="Identifier"?this.expressionScope.recordArrowParameterBindingError(w.InvalidParenthesizedAssignment,t):n.type!=="CallExpression"&&n.type!=="MemberExpression"&&!this.isOptionalMemberExpression(n)&&this.raise(w.InvalidParenthesizedAssignment,t):this.raise(w.InvalidParenthesizedAssignment,t)),t.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":break;case"ObjectExpression":this.castNodeTo(t,"ObjectPattern");for(let o=0,u=t.properties.length,l=u-1;oi.type!=="ObjectMethod"&&(s===n||i.type!=="SpreadElement")&&this.isAssignable(i))}case"ObjectProperty":return this.isAssignable(t.value);case"SpreadElement":return this.isAssignable(t.argument);case"ArrayExpression":return t.elements.every(n=>n===null||this.isAssignable(n));case"AssignmentExpression":return t.operator==="=";case"ParenthesizedExpression":return this.isAssignable(t.expression);case"MemberExpression":case"OptionalMemberExpression":return!r;default:return!1}}toReferencedList(t,r){return t}toReferencedListDeep(t,r){this.toReferencedList(t,r);for(let n of t)(n==null?void 0:n.type)==="ArrayExpression"&&this.toReferencedListDeep(n.elements)}parseSpread(t){let r=this.startNode();return this.next(),r.argument=this.parseMaybeAssignAllowIn(t,void 0),this.finishNode(r,"SpreadElement")}parseRestBinding(){let t=this.startNode();this.next();let r=this.parseBindingAtom();return r.type==="VoidPattern"&&this.raise(w.UnexpectedVoidPattern,r),t.argument=r,this.finishNode(t,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{let t=this.startNode();return this.next(),t.elements=this.parseBindingList(3,93,1),this.finishNode(t,"ArrayPattern")}case 5:return this.parseObjectLike(8,!0);case 88:return this.parseVoidPattern(null)}return this.parseIdentifier()}parseBindingList(t,r,n){let i=n&1,s=[],a=!0;for(;!this.eat(t);)if(a?a=!1:this.expect(12),i&&this.match(12))s.push(null);else{if(this.eat(t))break;if(this.match(21)){let o=this.parseRestBinding();if(n&2&&(o=this.parseFunctionParamType(o)),s.push(o),!this.checkCommaAfterRest(r)){this.expect(t);break}}else{let o=[];if(n&2)for(this.match(26)&&this.hasPlugin("decorators")&&this.raise(w.UnsupportedParameterDecorator,this.state.startLoc);this.match(26);)o.push(this.parseDecorator());s.push(this.parseBindingElement(n,o))}}return s}parseBindingRestProperty(t){return this.next(),this.hasPlugin("discardBinding")&&this.match(88)?(t.argument=this.parseVoidPattern(null),this.raise(w.UnexpectedVoidPattern,t.argument)):t.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(t,"RestElement")}parseBindingProperty(){let{type:t,startLoc:r}=this.state;if(t===21)return this.parseBindingRestProperty(this.startNode());let n=this.startNode();return t===139?(this.expectPlugin("destructuringPrivate",r),this.classScope.usePrivateName(this.state.value,r),n.key=this.parsePrivateName()):this.parsePropertyName(n),n.method=!1,this.parseObjPropValue(n,r,!1,!1,!0,!1)}parseBindingElement(t,r){let n=this.parseMaybeDefault();return t&2&&this.parseFunctionParamType(n),r.length&&(n.decorators=r,this.resetStartLocationFromNode(n,r[0])),this.parseMaybeDefault(n.loc.start,n)}parseFunctionParamType(t){return t}parseMaybeDefault(t,r){if(t??(t=this.state.startLoc),r=r??this.parseBindingAtom(),!this.eat(29))return r;let n=this.startNodeAt(t);return r.type==="VoidPattern"&&this.raise(w.VoidPatternInitializer,r),n.left=r,n.right=this.parseMaybeAssignAllowIn(),this.finishNode(n,"AssignmentPattern")}isValidLVal(t,r,n,i){switch(t){case"AssignmentPattern":return"left";case"RestElement":return"argument";case"ObjectProperty":return"value";case"ParenthesizedExpression":return"expression";case"ArrayPattern":return"elements";case"ObjectPattern":return"properties";case"VoidPattern":return!0;case"CallExpression":if(!r&&!this.state.strict&&this.optionFlags&8192)return!0}return!1}isOptionalMemberExpression(t){return t.type==="OptionalMemberExpression"}checkLVal(t,r,n=64,i=!1,s=!1,a=!1,o=!1){var x;let u=t.type;if(this.isObjectMethod(t))return;let l=this.isOptionalMemberExpression(t);if(l||u==="MemberExpression"){l&&(this.expectPlugin("optionalChainingAssign",t.loc.start),r.type!=="AssignmentExpression"&&this.raise(w.InvalidLhsOptionalChaining,t,{ancestor:r})),n!==64&&this.raise(w.InvalidPropertyBindingPattern,t);return}if(u==="Identifier"){this.checkIdentifier(t,n,s);let{name:g}=t;i&&(i.has(g)?this.raise(w.ParamDupe,t):i.add(g));return}else u==="VoidPattern"&&r.type==="CatchClause"&&this.raise(w.VoidPatternCatchClauseParam,t);let c=nf(t);o||(o=c.type==="CallExpression"&&(c.callee.type==="Import"||c.callee.type==="Super"));let p=this.isValidLVal(u,o,!(a||(x=t.extra)!=null&&x.parenthesized)&&r.type==="AssignmentExpression",n);if(p===!0)return;if(p===!1){let g=n===64?w.InvalidLhs:w.InvalidLhsBinding;this.raise(g,t,{ancestor:r});return}let h,d;typeof p=="string"?(h=p,d=u==="ParenthesizedExpression"):[h,d]=p;let f=u==="ArrayPattern"||u==="ObjectPattern"?{type:u}:r,y=t[h];if(Array.isArray(y))for(let g of y)g&&this.checkLVal(g,f,n,i,s,d,!0);else y&&this.checkLVal(y,f,n,i,s,d,o)}checkIdentifier(t,r,n=!1){this.state.strict&&(n?ev(t.name,this.inModule):ZC(t.name))&&(r===64?this.raise(w.StrictEvalArguments,t,{referenceName:t.name}):this.raise(w.StrictEvalArgumentsBinding,t,{bindingName:t.name})),r&8192&&t.name==="let"&&this.raise(w.LetInLexicalBinding,t),r&64||this.declareNameFromIdentifier(t,r)}declareNameFromIdentifier(t,r){this.scope.declareName(t.name,r,t.loc.start)}checkToRestConversion(t,r){switch(t.type){case"ParenthesizedExpression":this.checkToRestConversion(t.expression,r);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(r)break;default:this.raise(w.InvalidRestAssignmentPattern,t)}}checkCommaAfterRest(t){return this.match(12)?(this.raise(this.lookaheadCharCode()===t?w.RestTrailingComma:w.ElementAfterRest,this.state.startLoc),!0):!1}},Th=/in(?:stanceof)?|as|satisfies/y;function F4(e){if(e==null)throw new Error(`Unexpected ${e} value.`);return e}function S1(e){if(!e)throw new Error("Assert fail")}var te=en`typescript`({AbstractMethodHasImplementation:({methodName:e})=>`Method '${e}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:e})=>`Property '${e}' cannot have an initializer because it is marked abstract.`,AccessorCannotBeOptional:"An 'accessor' property cannot be declared optional.",AccessorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccessorCannotHaveTypeParameters:"An accessor cannot have type parameters.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:({kind:e})=>`'declare' is not allowed in ${e}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:({modifier:e})=>`Accessibility modifier already seen: '${e}'.`,DuplicateModifier:({modifier:e})=>`Duplicate modifier: '${e}'.`,EmptyHeritageClauseType:({token:e})=>`'${e}' list cannot be empty.`,EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` modifier",IncompatibleModifiers:({modifiers:e})=>`'${e[0]}' modifier cannot be used with '${e[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:e})=>`Index signatures cannot have an accessibility modifier ('${e}').`,IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidHeritageClauseType:({token:e})=>`'${e}' list can only include identifiers or qualified-names with optional type arguments.`,InvalidModifierOnAwaitUsingDeclaration:e=>`'${e}' modifier cannot appear on an await using declaration.`,InvalidModifierOnTypeMember:({modifier:e})=>`'${e}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:e})=>`'${e}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:e})=>`'${e}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifierOnUsingDeclaration:e=>`'${e}' modifier cannot appear on a using declaration.`,InvalidModifiersOrder:({orderedModifiers:e})=>`'${e[0]}' modifier must precede '${e[1]}' modifier.`,InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifier:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:({modifier:e})=>`Private elements cannot have an accessibility modifier ('${e}').`,ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccessorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccessorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccessorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:({typeParameterName:e})=>`Single type parameter ${e} should have a trailing comma. Example usage: <${e},>.`,StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:({type:e})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${e}.`,UsingDeclarationInAmbientContext:e=>`'${e}' declarations are not allowed in ambient contexts.`});function b4(e){switch(e){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}function F1(e){return e==="private"||e==="public"||e==="protected"}function w4(e){return e==="in"||e==="out"}function sf(e){var t;if((t=e.extra)!=null&&t.parenthesized)return!1;switch(e.type){case"Identifier":return!0;case"MemberExpression":return!e.computed&&sf(e.object);case"TSInstantiationExpression":return sf(e.expression);default:return!1}}var P4=e=>class extends e{constructor(){super(...arguments);H(this,"tsParseInOutModifiers",this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:te.InvalidModifierOnTypeParameter}));H(this,"tsParseConstModifier",this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:te.InvalidModifierOnTypeParameterPositions}));H(this,"tsParseInOutConstModifiers",this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:te.InvalidModifierOnTypeParameter}))}getScopeHandler(){return s4}tsIsIdentifier(){return Fe(this.state.type)}tsTokenCanFollowModifier(){return this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(139)||this.isLiteralPropertyName()}tsNextTokenOnSameLineAndCanFollowModifier(){return this.next(),this.hasPrecedingLineBreak()?!1:this.tsTokenCanFollowModifier()}tsNextTokenCanFollowModifier(){return this.match(106)?(this.next(),this.tsTokenCanFollowModifier()):this.tsNextTokenOnSameLineAndCanFollowModifier()}tsParseModifier(r,n,i){if(!Fe(this.state.type)&&this.state.type!==58&&this.state.type!==75)return;let s=this.state.value;if(r.includes(s)){if(i&&this.match(106)||n&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return s}}tsParseModifiers({allowedModifiers:r,disallowedModifiers:n,stopOnStartOfClassStaticBlock:i,errorTemplate:s=te.InvalidModifierOnTypeMember},a){let o=(l,c,p,h)=>{c===p&&a[h]&&this.raise(te.InvalidModifiersOrder,l,{orderedModifiers:[p,h]})},u=(l,c,p,h)=>{(a[p]&&c===h||a[h]&&c===p)&&this.raise(te.IncompatibleModifiers,l,{modifiers:[p,h]})};for(;;){let{startLoc:l}=this.state,c=this.tsParseModifier(r.concat(n??[]),i,a.static);if(!c)break;F1(c)?a.accessibility?this.raise(te.DuplicateAccessibilityModifier,l,{modifier:c}):(o(l,c,c,"override"),o(l,c,c,"static"),o(l,c,c,"readonly"),a.accessibility=c):w4(c)?(a[c]&&this.raise(te.DuplicateModifier,l,{modifier:c}),a[c]=!0,o(l,c,"in","out")):(Object.prototype.hasOwnProperty.call(a,c)?this.raise(te.DuplicateModifier,l,{modifier:c}):(o(l,c,"static","readonly"),o(l,c,"static","override"),o(l,c,"override","readonly"),o(l,c,"abstract","override"),u(l,c,"declare","override"),u(l,c,"static","abstract")),a[c]=!0),n!=null&&n.includes(c)&&this.raise(s,l,{modifier:c})}}tsIsListTerminator(r){switch(r){case"EnumMembers":case"TypeMembers":return this.match(8);case"HeritageClauseElement":return this.match(5);case"TupleElementTypes":return this.match(3);case"TypeParametersOrArguments":return this.match(48)}}tsParseList(r,n){let i=[];for(;!this.tsIsListTerminator(r);)i.push(n());return i}tsParseDelimitedList(r,n,i){return F4(this.tsParseDelimitedListWorker(r,n,!0,i))}tsParseDelimitedListWorker(r,n,i,s){let a=[],o=-1;for(;!this.tsIsListTerminator(r);){o=-1;let u=n();if(u==null)return;if(a.push(u),this.eat(12)){o=this.state.lastTokStartLoc.index;continue}if(this.tsIsListTerminator(r))break;i&&this.expect(12);return}return s&&(s.value=o),a}tsParseBracketedList(r,n,i,s,a){s||(i?this.expect(0):this.expect(47));let o=this.tsParseDelimitedList(r,n,a);return i?this.expect(3):this.expect(48),o}tsParseImportType(){let r=this.startNode();return this.expect(83),this.expect(10),this.match(134)?r.argument=this.tsParseLiteralTypeNode():(this.raise(te.UnsupportedImportTypeArgument,this.state.startLoc),r.argument=this.tsParseNonConditionalType()),this.eat(12)?r.options=this.tsParseImportTypeOptions():r.options=null,this.expect(11),this.eat(16)&&(r.qualifier=this.tsParseEntityName(3)),this.match(47)&&(r.typeArguments=this.tsParseTypeArguments()),this.finishNode(r,"TSImportType")}tsParseImportTypeOptions(){let r=this.startNode();this.expect(5);let n=this.startNode();return this.isContextual(76)?(n.method=!1,n.key=this.parseIdentifier(!0),n.computed=!1,n.shorthand=!1):this.unexpected(null,76),this.expect(14),n.value=this.tsParseImportTypeWithPropertyValue(),r.properties=[this.finishObjectProperty(n)],this.eat(12),this.expect(8),this.finishNode(r,"ObjectExpression")}tsParseImportTypeWithPropertyValue(){let r=this.startNode(),n=[];for(this.expect(5);!this.match(8);){let i=this.state.type;Fe(i)||i===134?n.push(super.parsePropertyDefinition(null)):this.unexpected(),this.eat(12)}return r.properties=n,this.next(),this.finishNode(r,"ObjectExpression")}tsParseEntityName(r){let n;if(r&1&&this.match(78))if(r&2)n=this.parseIdentifier(!0);else{let i=this.startNode();this.next(),n=this.finishNode(i,"ThisExpression")}else n=this.parseIdentifier(!!(r&1));for(;this.eat(16);){let i=this.startNodeAtNode(n);i.left=n,i.right=this.parseIdentifier(!!(r&1)),n=this.finishNode(i,"TSQualifiedName")}return n}tsParseTypeReference(){let r=this.startNode();return r.typeName=this.tsParseEntityName(1),!this.hasPrecedingLineBreak()&&this.match(47)&&(r.typeArguments=this.tsParseTypeArguments()),this.finishNode(r,"TSTypeReference")}tsParseThisTypePredicate(r){this.next();let n=this.startNodeAtNode(r);return n.parameterName=r,n.typeAnnotation=this.tsParseTypeAnnotation(!1),n.asserts=!1,this.finishNode(n,"TSTypePredicate")}tsParseThisTypeNode(){let r=this.startNode();return this.next(),this.finishNode(r,"TSThisType")}tsParseTypeQuery(){let r=this.startNode();return this.expect(87),this.match(83)?r.exprName=this.tsParseImportType():r.exprName=this.tsParseEntityName(1),!this.hasPrecedingLineBreak()&&this.match(47)&&(r.typeArguments=this.tsParseTypeArguments()),this.finishNode(r,"TSTypeQuery")}tsParseTypeParameter(r){let n=this.startNode();return r(n),n.name=this.tsParseTypeParameterName(),n.constraint=this.tsEatThenParseType(81),n.default=this.tsEatThenParseType(29),this.finishNode(n,"TSTypeParameter")}tsTryParseTypeParameters(r){if(this.match(47))return this.tsParseTypeParameters(r)}tsParseTypeParameters(r){let n=this.startNode();this.match(47)||this.match(143)?this.next():this.unexpected();let i={value:-1};return n.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,r),!1,!0,i),n.params.length===0&&this.raise(te.EmptyTypeParameters,n),i.value!==-1&&this.addExtra(n,"trailingComma",i.value),this.finishNode(n,"TSTypeParameterDeclaration")}tsFillSignature(r,n){let i=r===19,s="params",a="returnType";n.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),n[s]=this.tsParseBindingListForSignature(),i?n[a]=this.tsParseTypeOrTypePredicateAnnotation(r):this.match(r)&&(n[a]=this.tsParseTypeOrTypePredicateAnnotation(r))}tsParseBindingListForSignature(){let r=super.parseBindingList(11,41,2);for(let n of r){let{type:i}=n;(i==="AssignmentPattern"||i==="TSParameterProperty")&&this.raise(te.UnsupportedSignatureParameterKind,n,{type:i})}return r}tsParseTypeMemberSemicolon(){!this.eat(12)&&!this.isLineTerminator()&&this.expect(13)}tsParseSignatureMember(r,n){return this.tsFillSignature(14,n),this.tsParseTypeMemberSemicolon(),this.finishNode(n,r)}tsIsUnambiguouslyIndexSignature(){return this.next(),Fe(this.state.type)?(this.next(),this.match(14)):!1}tsTryParseIndexSignature(r){if(!(this.match(0)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(0);let n=this.parseIdentifier();n.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(n),this.expect(3),r.parameters=[n];let i=this.tsTryParseTypeAnnotation();return i&&(r.typeAnnotation=i),this.tsParseTypeMemberSemicolon(),this.finishNode(r,"TSIndexSignature")}tsParsePropertyOrMethodSignature(r,n){if(this.eat(17)&&(r.optional=!0),this.match(10)||this.match(47)){n&&this.raise(te.ReadonlyForMethodSignature,r);let i=r;i.kind&&this.match(47)&&this.raise(te.AccessorCannotHaveTypeParameters,this.state.curPosition()),this.tsFillSignature(14,i),this.tsParseTypeMemberSemicolon();let s="params",a="returnType";if(i.kind==="get")i[s].length>0&&(this.raise(w.BadGetterArity,this.state.curPosition()),this.isThisParam(i[s][0])&&this.raise(te.AccessorCannotDeclareThisParameter,this.state.curPosition()));else if(i.kind==="set"){if(i[s].length!==1)this.raise(w.BadSetterArity,this.state.curPosition());else{let o=i[s][0];this.isThisParam(o)&&this.raise(te.AccessorCannotDeclareThisParameter,this.state.curPosition()),o.type==="Identifier"&&o.optional&&this.raise(te.SetAccessorCannotHaveOptionalParameter,this.state.curPosition()),o.type==="RestElement"&&this.raise(te.SetAccessorCannotHaveRestParameter,this.state.curPosition())}i[a]&&this.raise(te.SetAccessorCannotHaveReturnType,i[a])}else i.kind="method";return this.finishNode(i,"TSMethodSignature")}else{let i=r;n&&(i.readonly=!0);let s=this.tsTryParseTypeAnnotation();return s&&(i.typeAnnotation=s),this.tsParseTypeMemberSemicolon(),this.finishNode(i,"TSPropertySignature")}}tsParseTypeMember(){let r=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",r);if(this.match(77)){let i=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",r):(r.key=this.createIdentifier(i,"new"),this.tsParsePropertyOrMethodSignature(r,!1))}return this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},r),this.tsTryParseIndexSignature(r)||(super.parsePropertyName(r),!r.computed&&r.key.type==="Identifier"&&(r.key.name==="get"||r.key.name==="set")&&this.tsTokenCanFollowModifier()&&(r.kind=r.key.name,super.parsePropertyName(r),!this.match(10)&&!this.match(47)&&this.unexpected(null,10)),this.tsParsePropertyOrMethodSignature(r,!!r.readonly))}tsParseTypeLiteral(){let r=this.startNode();return r.members=this.tsParseObjectTypeMembers(),this.finishNode(r,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);let r=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),r}tsIsStartOfMappedType(){return this.next(),this.eat(53)?this.isContextual(122):(this.isContextual(122)&&this.next(),!this.match(0)||(this.next(),!this.tsIsIdentifier())?!1:(this.next(),this.match(58)))}tsParseMappedType(){let r=this.startNode();return this.expect(5),this.match(53)?(r.readonly=this.state.value,this.next(),this.expectContextual(122)):this.eatContextual(122)&&(r.readonly=!0),this.expect(0),r.key=this.tsParseTypeParameterName(),r.constraint=this.tsExpectThenParseType(58),r.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(r.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(r.optional=!0),r.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(r,"TSMappedType")}tsParseTupleType(){let r=this.startNode();r.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let n=!1;return r.elementTypes.forEach(i=>{let{type:s}=i;n&&s!=="TSRestType"&&s!=="TSOptionalType"&&!(s==="TSNamedTupleMember"&&i.optional)&&this.raise(te.OptionalTypeBeforeRequired,i),n||(n=s==="TSNamedTupleMember"&&i.optional||s==="TSOptionalType")}),this.finishNode(r,"TSTupleType")}tsParseTupleElementType(){let r=this.state.startLoc,n=this.eat(21),{startLoc:i}=this.state,s,a,o,u,l=Lr(this.state.type)?this.lookaheadCharCode():null;if(l===58)s=!0,o=!1,a=this.parseIdentifier(!0),this.expect(14),u=this.tsParseType();else if(l===63){o=!0;let c=this.state.value,p=this.tsParseNonArrayType();this.lookaheadCharCode()===58?(s=!0,a=this.createIdentifier(this.startNodeAt(i),c),this.expect(17),this.expect(14),u=this.tsParseType()):(s=!1,u=p,this.expect(17))}else u=this.tsParseType(),o=this.eat(17),s=this.eat(14);if(s){let c;a?(c=this.startNodeAt(i),c.optional=o,c.label=a,c.elementType=u,this.eat(17)&&(c.optional=!0,this.raise(te.TupleOptionalAfterType,this.state.lastTokStartLoc))):(c=this.startNodeAt(i),c.optional=o,this.raise(te.InvalidTupleMemberLabel,u),c.label=u,c.elementType=this.tsParseType()),u=this.finishNode(c,"TSNamedTupleMember")}else if(o){let c=this.startNodeAt(i);c.typeAnnotation=u,u=this.finishNode(c,"TSOptionalType")}if(n){let c=this.startNodeAt(r);c.typeAnnotation=u,u=this.finishNode(c,"TSRestType")}return u}tsParseParenthesizedType(){let r=this.startNode();return this.expect(10),r.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(r,"TSParenthesizedType")}tsParseFunctionOrConstructorType(r,n){let i=this.startNode();return r==="TSConstructorType"&&(i.abstract=!!n,n&&this.next(),this.next()),this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(19,i)),this.finishNode(i,r)}tsParseLiteralTypeNode(){let r=this.startNode();switch(this.state.type){case 135:case 136:case 134:case 85:case 86:r.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(r,"TSLiteralType")}tsParseTemplateLiteralType(){{let r=this.state.startLoc,n=this.parseTemplateElement(!1),i=[n];if(n.tail){let s=this.startNodeAt(r),a=this.startNodeAt(r);return a.expressions=[],a.quasis=i,s.literal=this.finishNode(a,"TemplateLiteral"),this.finishNode(s,"TSLiteralType")}else{let s=[];for(;!n.tail;)s.push(this.tsParseType()),this.readTemplateContinuation(),i.push(n=this.parseTemplateElement(!1));let a=this.startNodeAt(r);return a.types=s,a.quasis=i,this.finishNode(a,"TSTemplateLiteralType")}}}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){let r=this.tsParseThisTypeNode();return this.isContextual(116)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(r):r}tsParseNonArrayType(){switch(this.state.type){case 134:case 135:case 136:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if(this.state.value==="-"){let r=this.startNode(),n=this.lookahead();return n.type!==135&&n.type!==136&&this.unexpected(),r.literal=this.parseMaybeUnary(),this.finishNode(r,"TSLiteralType")}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:if(!(this.optionFlags&1024)){let r=this.state.startLoc;this.next();let n=this.tsParseType();return this.expect(11),this.addExtra(n,"parenthesized",!0),this.addExtra(n,"parenStart",r.index),n}return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{let{type:r}=this.state;if(Fe(r)||r===88||r===84){let n=r===88?"TSVoidKeyword":r===84?"TSNullKeyword":b4(this.state.value);if(n!==void 0&&this.lookaheadCharCode()!==46){let i=this.startNode();return this.next(),this.finishNode(i,n)}return this.tsParseTypeReference()}}}throw this.unexpected()}tsParseArrayTypeOrHigher(){let{startLoc:r}=this.state,n=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){let i=this.startNodeAt(r);i.elementType=n,this.expect(3),n=this.finishNode(i,"TSArrayType")}else{let i=this.startNodeAt(r);i.objectType=n,i.indexType=this.tsParseType(),this.expect(3),n=this.finishNode(i,"TSIndexedAccessType")}return n}tsParseTypeOperator(){let r=this.startNode(),n=this.state.value;return this.next(),r.operator=n,r.typeAnnotation=this.tsParseTypeOperatorOrHigher(),n==="readonly"&&this.tsCheckTypeAnnotationForReadOnly(r),this.finishNode(r,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(r){switch(r.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(te.UnexpectedReadonly,r)}}tsParseInferType(){let r=this.startNode();this.expectContextual(115);let n=this.startNode();return n.name=this.tsParseTypeParameterName(),n.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),r.typeParameter=this.finishNode(n,"TSTypeParameter"),this.finishNode(r,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){let r=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.state.inDisallowConditionalTypesContext||!this.match(17))return r}}tsParseTypeOperatorOrHigher(){return _I(this.state.type)&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseUnionOrIntersectionType(r,n,i){let s=this.startNode(),a=this.eat(i),o=[];do o.push(n());while(this.eat(i));return o.length===1&&!a?o[0]:(s.types=o,this.finishNode(s,r))}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)}tsIsStartOfFunctionType(){return this.match(47)?!0:this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(Fe(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){let{errors:r}=this.state,n=r.length;try{return this.parseObjectLike(8,!0),r.length===n}catch{return!1}}if(this.match(0)){this.next();let{errors:r}=this.state,n=r.length;try{return super.parseBindingList(3,93,1),r.length===n}catch{return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){return this.next(),!!(this.match(11)||this.match(21)||this.tsSkipParameterStart()&&(this.match(14)||this.match(12)||this.match(17)||this.match(29)||this.match(11)&&(this.next(),this.match(19))))}tsParseTypeOrTypePredicateAnnotation(r){return this.tsInType(()=>{let n=this.startNode();this.expect(r);let i=this.startNode(),s=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(s&&this.match(78)){let u=this.tsParseThisTypeOrThisTypePredicate();return u.type==="TSThisType"?(i.parameterName=u,i.asserts=!0,i.typeAnnotation=null,u=this.finishNode(i,"TSTypePredicate")):(this.resetStartLocationFromNode(u,i),u.asserts=!0),n.typeAnnotation=u,this.finishNode(n,"TSTypeAnnotation")}let a=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!a)return s?(i.parameterName=this.parseIdentifier(),i.asserts=s,i.typeAnnotation=null,n.typeAnnotation=this.finishNode(i,"TSTypePredicate"),this.finishNode(n,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,n);let o=this.tsParseTypeAnnotation(!1);return i.parameterName=a,i.typeAnnotation=o,i.asserts=s,n.typeAnnotation=this.finishNode(i,"TSTypePredicate"),this.finishNode(n,"TSTypeAnnotation")})}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)}tsTryParseTypeAnnotation(){if(this.match(14))return this.tsParseTypeAnnotation()}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){let r=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),r}tsParseTypePredicateAsserts(){if(this.state.type!==109)return!1;let r=this.state.containsEsc;return this.next(),!Fe(this.state.type)&&!this.match(78)?!1:(r&&this.raise(w.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"}),!0)}tsParseTypeAnnotation(r=!0,n=this.startNode()){return this.tsInType(()=>{r&&this.expect(14),n.typeAnnotation=this.tsParseType()}),this.finishNode(n,"TSTypeAnnotation")}tsParseType(){S1(this.state.inType);let r=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return r;let n=this.startNodeAtNode(r);return n.checkType=r,n.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(17),n.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(14),n.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(n,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(124)&&this.isLookaheadContextual("new")}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(77)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(te.ReservedTypeAssertion,this.state.startLoc);let r=this.startNode();return r.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType())),this.expect(48),r.expression=this.parseMaybeUnary(),this.finishNode(r,"TSTypeAssertion")}tsParseHeritageClause(r){let n=this.state.startLoc,i=this.tsParseDelimitedList("HeritageClauseElement",()=>{{let s=super.parseExprSubscripts();sf(s)||this.raise(te.InvalidHeritageClauseType,s.loc.start,{token:r});let a=r==="extends"?"TSInterfaceHeritage":"TSClassImplements";if(s.type==="TSInstantiationExpression")return s.type=a,s;let o=this.startNodeAtNode(s);return o.expression=s,(this.match(47)||this.match(51))&&(o.typeArguments=this.tsParseTypeArgumentsInExpression()),this.finishNode(o,a)}});return i.length||this.raise(te.EmptyHeritageClauseType,n,{token:r}),i}tsParseInterfaceDeclaration(r,n={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(129),n.declare&&(r.declare=!0),Fe(this.state.type)?(r.id=this.parseIdentifier(),this.checkIdentifier(r.id,130)):(r.id=null,this.raise(te.MissingInterfaceName,this.state.startLoc)),r.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(r.extends=this.tsParseHeritageClause("extends"));let i=this.startNode();return i.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),r.body=this.finishNode(i,"TSInterfaceBody"),this.finishNode(r,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(r){return r.id=this.parseIdentifier(),this.checkIdentifier(r.id,2),r.typeAnnotation=this.tsInType(()=>{if(r.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(114)&&this.lookaheadCharCode()!==46){let n=this.startNode();return this.next(),this.finishNode(n,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(r,"TSTypeAliasDeclaration")}tsInTopLevelContext(r){if(this.curContext()!==_e.brace){let n=this.state.context;this.state.context=[n[0]];try{return r()}finally{this.state.context=n}}else return r()}tsInType(r){let n=this.state.inType;this.state.inType=!0;try{return r()}finally{this.state.inType=n}}tsInDisallowConditionalTypesContext(r){let n=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return r()}finally{this.state.inDisallowConditionalTypesContext=n}}tsInAllowConditionalTypesContext(r){let n=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return r()}finally{this.state.inDisallowConditionalTypesContext=n}}tsEatThenParseType(r){if(this.match(r))return this.tsNextThenParseType()}tsExpectThenParseType(r){return this.tsInType(()=>(this.expect(r),this.tsParseType()))}tsNextThenParseType(){return this.tsInType(()=>(this.next(),this.tsParseType()))}tsParseEnumMember(){let r=this.startNode();return r.id=this.match(134)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29)&&(r.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(r,"TSEnumMember")}tsParseEnumDeclaration(r,n={}){return n.const&&(r.const=!0),n.declare&&(r.declare=!0),this.expectContextual(126),r.id=this.parseIdentifier(),this.checkIdentifier(r.id,r.const?8971:8459),r.body=this.tsParseEnumBody(),this.finishNode(r,"TSEnumDeclaration")}tsParseEnumBody(){let r=this.startNode();return this.expect(5),r.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(r,"TSEnumBody")}tsParseModuleBlock(){let r=this.startNode();return this.scope.enter(0),this.expect(5),super.parseBlockOrModuleBlockBody(r.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(r,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(r,n=!1){return r.id=this.tsParseEntityName(1),r.id.type==="Identifier"&&this.checkIdentifier(r.id,1024),this.scope.enter(1024),this.prodParam.enter(0),r.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit(),this.finishNode(r,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(r){return this.isContextual(112)?(r.kind="global",r.id=this.parseIdentifier()):this.match(134)?(r.kind="module",r.id=super.parseStringLiteral(this.state.value)):this.unexpected(),this.match(5)?(this.scope.enter(1024),this.prodParam.enter(0),r.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(r,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(r,n,i){r.id=n||this.parseIdentifier(),this.checkIdentifier(r.id,4096),this.expect(29);let s=this.tsParseModuleReference();return r.importKind==="type"&&s.type!=="TSExternalModuleReference"&&this.raise(te.ImportAliasHasImportType,s),r.moduleReference=s,this.semicolon(),this.finishNode(r,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(119)&&this.lookaheadCharCode()===40}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(0)}tsParseExternalModuleReference(){let r=this.startNode();return this.expectContextual(119),this.expect(10),this.match(134)||this.unexpected(),r.expression=super.parseExprAtom(),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(r,"TSExternalModuleReference")}tsLookAhead(r){let n=this.state.clone(),i=r();return this.state=n,i}tsTryParseAndCatch(r){let n=this.tryParse(i=>r()||i());if(!(n.aborted||!n.node))return n.error&&(this.state=n.failState),n.node}tsTryParse(r){let n=this.state.clone(),i=r();if(i!==void 0&&i!==!1)return i;this.state=n}tsTryParseDeclare(r){if(this.isLineTerminator())return;let n=this.state.type;return this.tsInAmbientContext(()=>{switch(n){case 68:return r.declare=!0,super.parseFunctionStatement(r,!1,!1);case 80:return r.declare=!0,this.parseClass(r,!0,!1);case 126:return this.tsParseEnumDeclaration(r,{declare:!0});case 112:return this.tsParseAmbientExternalModuleDeclaration(r);case 100:if(this.state.containsEsc)return;case 75:case 74:return!this.match(75)||!this.isLookaheadContextual("enum")?(r.declare=!0,this.parseVarStatement(r,this.state.value,!0)):(this.expect(75),this.tsParseEnumDeclaration(r,{const:!0,declare:!0}));case 107:if(this.isUsing())return this.raise(te.InvalidModifierOnUsingDeclaration,this.state.startLoc,"declare"),r.declare=!0,this.parseVarStatement(r,"using",!0);break;case 96:if(this.isAwaitUsing())return this.raise(te.InvalidModifierOnAwaitUsingDeclaration,this.state.startLoc,"declare"),r.declare=!0,this.next(),this.parseVarStatement(r,"await using",!0);break;case 129:{let i=this.tsParseInterfaceDeclaration(r,{declare:!0});if(i)return i}default:if(Fe(n))return this.tsParseDeclaration(r,this.state.type,!0,null)}})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.type,!0,null)}tsParseDeclaration(r,n,i,s){switch(n){case 124:if(this.tsCheckLineTerminator(i)&&(this.match(80)||Fe(this.state.type)))return this.tsParseAbstractDeclaration(r,s);break;case 127:if(this.tsCheckLineTerminator(i)){if(this.match(134))return this.tsParseAmbientExternalModuleDeclaration(r);if(Fe(this.state.type))return r.kind="module",this.tsParseModuleOrNamespaceDeclaration(r)}break;case 128:if(this.tsCheckLineTerminator(i)&&Fe(this.state.type))return r.kind="namespace",this.tsParseModuleOrNamespaceDeclaration(r);break;case 130:if(this.tsCheckLineTerminator(i)&&Fe(this.state.type))return this.tsParseTypeAliasDeclaration(r);break}}tsCheckLineTerminator(r){return r?this.hasFollowingLineBreak()?!1:(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(r){if(!this.match(47))return;let n=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;let i=this.tsTryParseAndCatch(()=>{let s=this.startNodeAt(r);return s.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(s),s.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),s});if(this.state.maybeInArrowParameters=n,!!i)return super.parseArrowExpression(i,null,!0)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()===47)return this.tsParseTypeArguments()}tsParseTypeArguments(){let r=this.startNode();return r.params=this.tsInType(()=>this.tsInTopLevelContext(()=>(this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))),r.params.length===0?this.raise(te.EmptyTypeArguments,r):!this.state.inType&&this.curContext()===_e.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(r,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return LI(this.state.type)}isExportDefaultSpecifier(){return this.tsIsDeclarationStart()?!1:super.isExportDefaultSpecifier()}parseBindingElement(r,n){let i=n.length?n[0].loc.start:this.state.startLoc,s={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},s);let a=s.accessibility,o=s.override,u=s.readonly;!(r&4)&&(a||u||o)&&this.raise(te.UnexpectedParameterModifier,i);let l=this.parseMaybeDefault();r&2&&this.parseFunctionParamType(l);let c=this.parseMaybeDefault(l.loc.start,l);if(a||u||o){let p=this.startNodeAt(i);return n.length&&(p.decorators=n),a&&(p.accessibility=a),u&&(p.readonly=u),o&&(p.override=o),c.type!=="Identifier"&&c.type!=="AssignmentPattern"&&this.raise(te.UnsupportedParameterPropertyKind,p),p.parameter=c,this.finishNode(p,"TSParameterProperty")}return n.length&&(l.decorators=n),c}isSimpleParameter(r){return r.type==="TSParameterProperty"&&super.isSimpleParameter(r.parameter)||super.isSimpleParameter(r)}tsDisallowOptionalPattern(r){for(let n of r.params)n.type!=="Identifier"&&n.optional&&!this.state.isAmbientContext&&this.raise(te.PatternIsOptional,n)}setArrowFunctionParameters(r,n,i){super.setArrowFunctionParameters(r,n,i),this.tsDisallowOptionalPattern(r)}parseFunctionBodyAndFinish(r,n,i=!1){this.match(14)&&(r.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));let s=n==="FunctionDeclaration"?"TSDeclareFunction":n==="ClassMethod"||n==="ClassPrivateMethod"?"TSDeclareMethod":void 0;return s&&!this.match(5)&&this.isLineTerminator()?this.finishNode(r,s):s==="TSDeclareFunction"&&this.state.isAmbientContext&&(this.raise(te.DeclareFunctionHasImplementation,r),r.declare)?super.parseFunctionBodyAndFinish(r,s,i):(this.tsDisallowOptionalPattern(r),super.parseFunctionBodyAndFinish(r,n,i))}registerFunctionStatementId(r){!r.body&&r.id?this.checkIdentifier(r.id,1024):super.registerFunctionStatementId(r)}tsCheckForInvalidTypeCasts(r){r.forEach(n=>{(n==null?void 0:n.type)==="TSTypeCastExpression"&&this.raise(te.UnexpectedTypeAnnotation,n.typeAnnotation)})}toReferencedList(r,n){return this.tsCheckForInvalidTypeCasts(r),r}parseArrayLike(r,n,i){let s=super.parseArrayLike(r,n,i);return s.type==="ArrayExpression"&&this.tsCheckForInvalidTypeCasts(s.elements),s}parseSubscript(r,n,i,s){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();let o=this.startNodeAt(n);return o.expression=r,this.finishNode(o,"TSNonNullExpression")}let a=!1;if(this.match(18)&&this.lookaheadCharCode()===60){if(i)return s.stop=!0,r;s.optionalChainMember=a=!0,this.next()}if(this.match(47)||this.match(51)){let o,u=this.tsTryParseAndCatch(()=>{if(!i&&this.atPossibleAsyncArrow(r)){let h=this.tsTryParseGenericAsyncArrowFunction(n);if(h)return s.stop=!0,h}let l=this.tsParseTypeArgumentsInExpression();if(!l)return;if(a&&!this.match(10)){o=this.state.curPosition();return}if(Zd(this.state.type)){let h=super.parseTaggedTemplateExpression(r,n,s);return h.typeArguments=l,h}if(!i&&this.eat(10)){let h=this.startNodeAt(n);return h.callee=r,h.arguments=this.parseCallExpressionArguments(),this.tsCheckForInvalidTypeCasts(h.arguments),h.typeArguments=l,s.optionalChainMember&&(h.optional=a),this.finishCallExpression(h,s.optionalChainMember)}let c=this.state.type;if(c===48||c===52||c!==10&&Fo(c)&&!this.hasPrecedingLineBreak())return;let p=this.startNodeAt(n);return p.expression=r,p.typeArguments=l,this.finishNode(p,"TSInstantiationExpression")});if(o&&this.unexpected(o,10),u)return u.type==="TSInstantiationExpression"&&((this.match(16)||this.match(18)&&this.lookaheadCharCode()!==40)&&this.raise(te.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc),!this.match(16)&&!this.match(18)&&(u.expression=super.stopParseSubscript(r,s))),u}return super.parseSubscript(r,n,i,s)}parseNewCallee(r){var i;super.parseNewCallee(r);let{callee:n}=r;n.type==="TSInstantiationExpression"&&!((i=n.extra)!=null&&i.parenthesized)&&(r.typeArguments=n.typeArguments,r.callee=n.expression)}parseExprOp(r,n,i){let s;if(Kl(58)>i&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(s=this.isContextual(120)))){let a=this.startNodeAt(n);return a.expression=r,a.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?(s&&this.raise(w.UnexpectedKeyword,this.state.startLoc,{keyword:"const"}),this.tsParseTypeReference()):this.tsParseType())),this.finishNode(a,s?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(a,n,i)}return super.parseExprOp(r,n,i)}checkReservedWord(r,n,i,s){this.state.isAmbientContext||super.checkReservedWord(r,n,i,s)}checkImportReflection(r){super.checkImportReflection(r),r.module&&r.importKind!=="value"&&this.raise(te.ImportReflectionHasImportType,r.specifiers[0].loc.start)}checkDuplicateExports(){}isPotentialImportPhase(r){if(super.isPotentialImportPhase(r))return!0;if(this.isContextual(130)){let n=this.lookaheadCharCode();return r?n===123||n===42:n!==61}return!r&&this.isContextual(87)}applyImportPhase(r,n,i,s){super.applyImportPhase(r,n,i,s),n?r.exportKind=i==="type"?"type":"value":r.importKind=i==="type"||i==="typeof"?i:"value"}parseImport(r){if(this.match(134))return r.importKind="value",super.parseImport(r);let n;if(Fe(this.state.type)&&this.lookaheadCharCode()===61)return r.importKind="value",this.tsParseImportEqualsDeclaration(r);if(this.isContextual(130)){let i=this.parseMaybeImportPhase(r,!1);if(this.lookaheadCharCode()===61)return this.tsParseImportEqualsDeclaration(r,i);n=super.parseImportSpecifiersAndAfter(r,i)}else n=super.parseImport(r);return n.importKind==="type"&&n.specifiers.length>1&&n.specifiers[0].type==="ImportDefaultSpecifier"&&this.raise(te.TypeImportCannotSpecifyDefaultAndNamed,n),n}parseExport(r,n){if(this.match(83)){let i=this.startNode();this.next();let s=null;this.isContextual(130)&&this.isPotentialImportPhase(!1)?s=this.parseMaybeImportPhase(i,!1):i.importKind="value";let a=this.tsParseImportEqualsDeclaration(i,s,!0);return r.attributes=[],r.declaration=a,r.exportKind="value",r.source=null,r.specifiers=[],this.finishNode(r,"ExportNamedDeclaration")}else if(this.eat(29)){let i=r;return i.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(i,"TSExportAssignment")}else if(this.eatContextual(93)){let i=r;return this.expectContextual(128),i.id=this.parseIdentifier(),this.semicolon(),this.finishNode(i,"TSNamespaceExportDeclaration")}else return super.parseExport(r,n)}isAbstractClass(){return this.isContextual(124)&&this.isLookaheadContextual("class")}parseExportDefaultExpression(){if(this.isAbstractClass()){let r=this.startNode();return this.next(),r.abstract=!0,this.parseClass(r,!0,!0)}if(this.match(129)){let r=this.tsParseInterfaceDeclaration(this.startNode());if(r)return r}return super.parseExportDefaultExpression()}parseVarStatement(r,n,i=!1){let{isAmbientContext:s}=this.state,a=super.parseVarStatement(r,n,i||s);if(!s)return a;if(!r.declare&&(n==="using"||n==="await using"))return this.raiseOverwrite(te.UsingDeclarationInAmbientContext,r,n),a;for(let{id:o,init:u}of a.declarations)u&&(n==="var"||n==="let"||o.typeAnnotation?this.raise(te.InitializerNotAllowedInAmbientContext,u):N4(u,this.hasPlugin("estree"))||this.raise(te.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference,u));return a}parseStatementContent(r,n){if(!this.state.containsEsc)switch(this.state.type){case 75:{if(this.isLookaheadContextual("enum")){let i=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(i,{const:!0})}break}case 124:case 125:{if(this.nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine()){let i=this.state.type,s=this.startNode();this.next();let a=i===125?this.tsTryParseDeclare(s):this.tsParseAbstractDeclaration(s,n);return a?(i===125&&(a.declare=!0),a):(s.expression=this.createIdentifier(this.startNodeAt(s.loc.start),i===125?"declare":"abstract"),this.semicolon(!1),this.finishNode(s,"ExpressionStatement"))}break}case 126:return this.tsParseEnumDeclaration(this.startNode());case 112:{if(this.lookaheadCharCode()===123){let i=this.startNode();return this.tsParseAmbientExternalModuleDeclaration(i)}break}case 129:{let i=this.tsParseInterfaceDeclaration(this.startNode());if(i)return i;break}case 127:{if(this.nextTokenIsIdentifierOrStringLiteralOnSameLine()){let i=this.startNode();return this.next(),this.tsParseDeclaration(i,127,!1,n)}break}case 128:{if(this.nextTokenIsIdentifierOnSameLine()){let i=this.startNode();return this.next(),this.tsParseDeclaration(i,128,!1,n)}break}case 130:{if(this.nextTokenIsIdentifierOnSameLine()){let i=this.startNode();return this.next(),this.tsParseTypeAliasDeclaration(i)}break}}return super.parseStatementContent(r,n)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(r,n){return n.some(i=>F1(i)?r.accessibility===i:!!r[i])}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&this.lookaheadCharCode()===123}parseClassMember(r,n,i){let s=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:s,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:te.InvalidModifierOnTypeParameterPositions},n);let a=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(n,s)&&this.raise(te.StaticBlockCannotHaveModifier,this.state.curPosition()),super.parseClassStaticBlock(r,n)):this.parseClassMemberWithIsStatic(r,n,i,!!n.static)};n.declare?this.tsInAmbientContext(a):a()}parseClassMemberWithIsStatic(r,n,i,s){let a=this.tsTryParseIndexSignature(n);if(a){r.body.push(a),n.abstract&&this.raise(te.IndexSignatureHasAbstract,n),n.accessibility&&this.raise(te.IndexSignatureHasAccessibility,n,{modifier:n.accessibility}),n.declare&&this.raise(te.IndexSignatureHasDeclare,n),n.override&&this.raise(te.IndexSignatureHasOverride,n);return}!this.state.inAbstractClass&&n.abstract&&this.raise(te.NonAbstractClassHasAbstractMethod,n),n.override&&(i.hadSuperClass||this.raise(te.OverrideNotInSubClass,n)),super.parseClassMemberWithIsStatic(r,n,i,s)}parsePostMemberNameModifiers(r){this.eat(17)&&(r.optional=!0),r.readonly&&this.match(10)&&this.raise(te.ClassMethodHasReadonly,r),r.declare&&this.match(10)&&this.raise(te.ClassMethodHasDeclare,r)}shouldParseExportDeclaration(){return this.tsIsDeclarationStart()?!0:super.shouldParseExportDeclaration()}parseConditional(r,n,i){if(!this.match(17))return r;if(this.state.maybeInArrowParameters){let s=this.lookaheadCharCode();if(s===44||s===61||s===58||s===41)return this.setOptionalParametersError(i),r}return super.parseConditional(r,n,i)}parseParenItem(r,n){let i=super.parseParenItem(r,n);if(this.eat(17)&&(i.optional=!0,this.resetEndLocation(r)),this.match(14)){let s=this.startNodeAt(n);return s.expression=r,s.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(s,"TSTypeCastExpression")}return r}parseExportDeclaration(r){if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext(()=>this.parseExportDeclaration(r));let n=this.state.startLoc,i=this.eatContextual(125);if(i&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise(te.ExpectedAmbientAfterExportDeclare,this.state.startLoc);let s=Fe(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(r);return s?((s.type==="TSInterfaceDeclaration"||s.type==="TSTypeAliasDeclaration"||i)&&(r.exportKind="type"),i&&s.type!=="TSImportEqualsDeclaration"&&(this.resetStartLocation(s,n),s.declare=!0),s):null}parseClassId(r,n,i,s){if((!n||i)&&this.isContextual(113))return;super.parseClassId(r,n,i,r.declare?1024:8331);let a=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);a&&(r.typeParameters=a)}parseClassPropertyAnnotation(r){r.optional||(this.eat(35)?r.definite=!0:this.eat(17)&&(r.optional=!0));let n=this.tsTryParseTypeAnnotation();n&&(r.typeAnnotation=n)}parseClassProperty(r){if(this.parseClassPropertyAnnotation(r),this.state.isAmbientContext&&!(r.readonly&&!r.typeAnnotation)&&this.match(29)&&this.raise(te.DeclareClassFieldHasInitializer,this.state.startLoc),r.abstract&&this.match(29)){let{key:n}=r;this.raise(te.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:n.type==="Identifier"&&!r.computed?n.name:`[${this.input.slice(this.offsetToSourcePos(n.start),this.offsetToSourcePos(n.end))}]`})}return super.parseClassProperty(r)}parseClassPrivateProperty(r){return r.abstract&&this.raise(te.PrivateElementHasAbstract,r),r.accessibility&&this.raise(te.PrivateElementHasAccessibility,r,{modifier:r.accessibility}),this.parseClassPropertyAnnotation(r),super.parseClassPrivateProperty(r)}parseClassAccessorProperty(r){return this.parseClassPropertyAnnotation(r),r.optional&&this.raise(te.AccessorCannotBeOptional,r),super.parseClassAccessorProperty(r)}pushClassMethod(r,n,i,s,a,o){let u=this.tsTryParseTypeParameters(this.tsParseConstModifier);u&&a&&this.raise(te.ConstructorHasTypeParameters,u);let{declare:l=!1,kind:c}=n;l&&(c==="get"||c==="set")&&this.raise(te.DeclareAccessor,n,{kind:c}),u&&(n.typeParameters=u),super.pushClassMethod(r,n,i,s,a,o)}pushClassPrivateMethod(r,n,i,s){let a=this.tsTryParseTypeParameters(this.tsParseConstModifier);a&&(n.typeParameters=a),super.pushClassPrivateMethod(r,n,i,s)}declareClassPrivateMethodInScope(r,n){r.type!=="TSDeclareMethod"&&(r.type==="MethodDefinition"&&r.value.body==null||super.declareClassPrivateMethodInScope(r,n))}parseClassSuper(r){super.parseClassSuper(r),r.superClass&&(this.match(47)||this.match(51))&&(r.superTypeArguments=this.tsParseTypeArgumentsInExpression()),this.eatContextual(113)&&(r.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(r,n,i,s,a,o,u){let l=this.tsTryParseTypeParameters(this.tsParseConstModifier);return l&&(r.typeParameters=l),super.parseObjPropValue(r,n,i,s,a,o,u)}parseFunctionParams(r,n){let i=this.tsTryParseTypeParameters(this.tsParseConstModifier);i&&(r.typeParameters=i),super.parseFunctionParams(r,n)}parseVarId(r,n){super.parseVarId(r,n),r.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(r.definite=!0);let i=this.tsTryParseTypeAnnotation();i&&(r.id.typeAnnotation=i,this.resetEndLocation(r.id))}parseAsyncArrowFromCallExpression(r,n){return this.match(14)&&(r.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(r,n)}parseMaybeAssign(r,n){let i,s,a;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(i=this.state.clone(),s=this.tryParse(()=>super.parseMaybeAssign(r,n),i),!s.error)return s.node;let{context:l}=this.state,c=l[l.length-1];(c===_e.j_oTag||c===_e.j_expr)&&l.pop()}if(!(s!=null&&s.error)&&!this.match(47))return super.parseMaybeAssign(r,n);(!i||i===this.state)&&(i=this.state.clone());let o,u=this.tryParse(l=>{var p,h;o=this.tsParseTypeParameters(this.tsParseConstModifier);let c=super.parseMaybeAssign(r,n);if((c.type!=="ArrowFunctionExpression"||(p=c.extra)!=null&&p.parenthesized)&&l(),(o==null?void 0:o.params.length)!==0&&this.resetStartLocationFromNode(c,o),c.typeParameters=o,this.hasPlugin("jsx")&&c.typeParameters.params.length===1&&!((h=c.typeParameters.extra)!=null&&h.trailingComma)){let d=c.typeParameters.params[0];d.constraint||this.raise(te.SingleTypeParameterWithoutTrailingComma,Er(d.loc.end,1),{typeParameterName:d.name.name})}return c},i);if(!u.error&&!u.aborted)return o&&this.reportReservedArrowTypeParam(o),u.node;if(!s&&(S1(!this.hasPlugin("jsx")),a=this.tryParse(()=>super.parseMaybeAssign(r,n),i),!a.error))return a.node;if(s!=null&&s.node)return this.state=s.failState,s.node;if(u.node)return this.state=u.failState,o&&this.reportReservedArrowTypeParam(o),u.node;if(a!=null&&a.node)return this.state=a.failState,a.node;throw(s==null?void 0:s.error)||u.error||(a==null?void 0:a.error)}reportReservedArrowTypeParam(r){var n;r.params.length===1&&!r.params[0].constraint&&!((n=r.extra)!=null&&n.trailingComma)&&this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(te.ReservedArrowTypeParam,r)}parseMaybeUnary(r,n){return!this.hasPlugin("jsx")&&this.match(47)?this.tsParseTypeAssertion():super.parseMaybeUnary(r,n)}parseArrow(r){if(this.match(14)){let n=this.tryParse(i=>{let s=this.tsParseTypeOrTypePredicateAnnotation(14);return(this.canInsertSemicolon()||!this.match(19))&&i(),s});if(n.aborted)return;n.thrown||(n.error&&(this.state=n.failState),r.returnType=n.node)}return super.parseArrow(r)}parseFunctionParamType(r){this.eat(17)&&(r.optional=!0);let n=this.tsTryParseTypeAnnotation();return n&&(r.typeAnnotation=n),this.resetEndLocation(r),r}isAssignable(r,n){switch(r.type){case"TSTypeCastExpression":return this.isAssignable(r.expression,n);case"TSParameterProperty":return!0;default:return super.isAssignable(r,n)}}toAssignable(r,n=!1){switch(r.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(r,n);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":n?this.expressionScope.recordArrowParameterBindingError(te.UnexpectedTypeCastInParameter,r):this.raise(te.UnexpectedTypeCastInParameter,r),this.toAssignable(r.expression,n);break;case"AssignmentExpression":!n&&r.left.type==="TSTypeCastExpression"&&(r.left=this.typeCastToParameter(r.left));default:super.toAssignable(r,n)}}toAssignableParenthesizedExpression(r,n){switch(r.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(r.expression,n);break;default:super.toAssignable(r,n)}}checkToRestConversion(r,n){switch(r.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(r.expression,!1);break;default:super.checkToRestConversion(r,n)}}isValidLVal(r,n,i,s){switch(r){case"TSTypeCastExpression":return!0;case"TSParameterProperty":return"parameter";case"TSNonNullExpression":return"expression";case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":return(s!==64||!i)&&["expression",!0];default:return super.isValidLVal(r,n,i,s)}}parseBindingAtom(){return this.state.type===78?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(r,n){if(this.match(47)||this.match(51)){let i=this.tsParseTypeArgumentsInExpression();if(this.match(10)){let s=super.parseMaybeDecoratorArguments(r,n);return s.typeArguments=i,s}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(r,n)}checkCommaAfterRest(r){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===r?(this.next(),!1):super.checkCommaAfterRest(r)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(r,n){let i=super.parseMaybeDefault(r,n);return i.type==="AssignmentPattern"&&i.typeAnnotation&&i.right.startthis.isAssignable(n,!0)):super.shouldParseArrow(r)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(r){if(this.match(47)||this.match(51)){let n=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());n&&(r.typeArguments=n)}return super.jsxParseOpeningElementAfterName(r)}getGetterSetterExpectedParamCount(r){let n=super.getGetterSetterExpectedParamCount(r),i=this.getObjectOrClassMethodParams(r)[0];return i&&this.isThisParam(i)?n+1:n}parseCatchClauseParam(){let r=super.parseCatchClauseParam(),n=this.tsTryParseTypeAnnotation();return n&&(r.typeAnnotation=n,this.resetEndLocation(r)),r}tsInAmbientContext(r){let{isAmbientContext:n,strict:i}=this.state;this.state.isAmbientContext=!0,this.state.strict=!1;try{return r()}finally{this.state.isAmbientContext=n,this.state.strict=i}}parseClass(r,n,i){let s=this.state.inAbstractClass;this.state.inAbstractClass=!!r.abstract;try{return super.parseClass(r,n,i)}finally{this.state.inAbstractClass=s}}tsParseAbstractDeclaration(r,n){if(this.match(80))return r.abstract=!0,this.maybeTakeDecorators(n,this.parseClass(r,!0,!1));if(this.isContextual(129))return this.hasFollowingLineBreak()?null:(r.abstract=!0,this.raise(te.NonClassMethodPropertyHasAbstractModifier,r),this.tsParseInterfaceDeclaration(r));throw this.unexpected(null,80)}parseMethod(r,n,i,s,a,o,u){let l=super.parseMethod(r,n,i,s,a,o,u);if((l.abstract||l.type==="TSAbstractMethodDefinition")&&(this.hasPlugin("estree")?l.value:l).body){let{key:c}=l;this.raise(te.AbstractMethodHasImplementation,l,{methodName:c.type==="Identifier"&&!l.computed?c.name:`[${this.input.slice(this.offsetToSourcePos(c.start),this.offsetToSourcePos(c.end))}]`})}return l}tsParseTypeParameterName(){return this.parseIdentifier()}shouldParseAsAmbientContext(){return!!this.getPluginOption("typescript","dts")}parse(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.parse()}getExpression(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.getExpression()}parseExportSpecifier(r,n,i,s){return!n&&s?(this.parseTypeOnlyImportExportSpecifier(r,!1,i),this.finishNode(r,"ExportSpecifier")):(r.exportKind="value",super.parseExportSpecifier(r,n,i,s))}parseImportSpecifier(r,n,i,s,a){return!n&&s?(this.parseTypeOnlyImportExportSpecifier(r,!0,i),this.finishNode(r,"ImportSpecifier")):(r.importKind="value",super.parseImportSpecifier(r,n,i,s,i?4098:4096))}parseTypeOnlyImportExportSpecifier(r,n,i){let s=n?"imported":"local",a=n?"local":"exported",o=r[s],u,l=!1,c=!0,p=o.loc.start;if(this.isContextual(93)){let d=this.parseIdentifier();if(this.isContextual(93)){let f=this.parseIdentifier();Lr(this.state.type)?(l=!0,o=d,u=n?this.parseIdentifier():this.parseModuleExportName(),c=!1):(u=f,c=!1)}else Lr(this.state.type)?(c=!1,u=n?this.parseIdentifier():this.parseModuleExportName()):(l=!0,o=d)}else Lr(this.state.type)&&(l=!0,n?(o=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(o.name,o.loc.start,!0,!0)):o=this.parseModuleExportName());l&&i&&this.raise(n?te.TypeModifierIsUsedInTypeImports:te.TypeModifierIsUsedInTypeExports,p),r[s]=o,r[a]=u;let h=n?"importKind":"exportKind";r[h]=l?"type":"value",c&&this.eatContextual(93)&&(r[a]=n?this.parseIdentifier():this.parseModuleExportName()),r[a]||(r[a]=this.cloneIdentifier(r[s])),n&&this.checkIdentifier(r[a],l?4098:4096)}fillOptionalPropertiesForTSESLint(r){switch(r.type){case"ExpressionStatement":r.directive??(r.directive=void 0);return;case"RestElement":r.value=void 0;case"Identifier":case"ArrayPattern":case"AssignmentPattern":case"ObjectPattern":r.decorators??(r.decorators=[]),r.optional??(r.optional=!1),r.typeAnnotation??(r.typeAnnotation=void 0);return;case"TSParameterProperty":r.accessibility??(r.accessibility=void 0),r.decorators??(r.decorators=[]),r.override??(r.override=!1),r.readonly??(r.readonly=!1),r.static??(r.static=!1);return;case"TSEmptyBodyFunctionExpression":r.body=null;case"TSDeclareFunction":case"FunctionDeclaration":case"FunctionExpression":case"ClassMethod":case"ClassPrivateMethod":r.declare??(r.declare=!1),r.returnType??(r.returnType=void 0),r.typeParameters??(r.typeParameters=void 0);return;case"Property":r.optional??(r.optional=!1);return;case"TSMethodSignature":case"TSPropertySignature":r.optional??(r.optional=!1);case"TSIndexSignature":r.accessibility??(r.accessibility=void 0),r.readonly??(r.readonly=!1),r.static??(r.static=!1);return;case"TSAbstractPropertyDefinition":case"PropertyDefinition":case"TSAbstractAccessorProperty":case"AccessorProperty":r.declare??(r.declare=!1),r.definite??(r.definite=!1),r.readonly??(r.readonly=!1),r.typeAnnotation??(r.typeAnnotation=void 0);case"TSAbstractMethodDefinition":case"MethodDefinition":r.accessibility??(r.accessibility=void 0),r.decorators??(r.decorators=[]),r.override??(r.override=!1),r.optional??(r.optional=!1);return;case"ClassExpression":r.id??(r.id=null);case"ClassDeclaration":r.abstract??(r.abstract=!1),r.declare??(r.declare=!1),r.decorators??(r.decorators=[]),r.implements??(r.implements=[]),r.superTypeArguments??(r.superTypeArguments=void 0),r.typeParameters??(r.typeParameters=void 0);return;case"TSTypeAliasDeclaration":case"VariableDeclaration":r.declare??(r.declare=!1);return;case"VariableDeclarator":r.definite??(r.definite=!1);return;case"TSEnumDeclaration":r.const??(r.const=!1),r.declare??(r.declare=!1);return;case"TSEnumMember":r.computed??(r.computed=!1);return;case"TSImportType":r.qualifier??(r.qualifier=null),r.options??(r.options=null),r.typeArguments??(r.typeArguments=null);return;case"TSInterfaceDeclaration":r.declare??(r.declare=!1),r.extends??(r.extends=[]);return;case"TSMappedType":r.optional??(r.optional=!1),r.readonly??(r.readonly=void 0);return;case"TSModuleDeclaration":r.declare??(r.declare=!1),r.global??(r.global=r.kind==="global");return;case"TSTypeParameter":r.const??(r.const=!1),r.in??(r.in=!1),r.out??(r.out=!1);return}}chStartsBindingIdentifierAndNotRelationalOperator(r,n){if(tn(r)){if(Th.lastIndex=n,Th.test(this.input)){let i=this.codePointAtPos(Th.lastIndex);if(!as(i)&&i!==92)return!1}return!0}else return r===92}nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine(){let r=this.nextTokenInLineStart(),n=this.codePointAtPos(r);return this.chStartsBindingIdentifierAndNotRelationalOperator(n,r)}nextTokenIsIdentifierOrStringLiteralOnSameLine(){let r=this.nextTokenInLineStart(),n=this.codePointAtPos(r);return this.chStartsBindingIdentifier(n,r)||n===34||n===39}};function k4(e){if(e.type!=="MemberExpression")return!1;let{computed:t,property:r}=e;return t&&r.type!=="StringLiteral"&&(r.type!=="TemplateLiteral"||r.expressions.length>0)?!1:uv(e.object)}function N4(e,t){var n;let{type:r}=e;if((n=e.extra)!=null&&n.parenthesized)return!1;if(t){if(r==="Literal"){let{value:i}=e;if(typeof i=="string"||typeof i=="boolean")return!0}}else if(r==="StringLiteral"||r==="BooleanLiteral")return!0;return!!(ov(e,t)||B4(e,t)||r==="TemplateLiteral"&&e.expressions.length===0||k4(e))}function ov(e,t){return t?e.type==="Literal"&&(typeof e.value=="number"||"bigint"in e):e.type==="NumericLiteral"||e.type==="BigIntLiteral"}function B4(e,t){if(e.type==="UnaryExpression"){let{operator:r,argument:n}=e;if(r==="-"&&ov(n,t))return!0}return!1}function uv(e){return e.type==="Identifier"?!0:e.type!=="MemberExpression"||e.computed?!1:uv(e.object)}var b1=en`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."}),I4=e=>class extends e{parsePlaceholder(t){if(this.match(133)){let r=this.startNode();return this.next(),this.assertNoSpace(),r.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(133),this.finishPlaceholder(r,t)}}finishPlaceholder(t,r){let n=t;return(!n.expectedNode||!n.type)&&(n=this.finishNode(n,"Placeholder")),n.expectedNode=r,n}getTokenFromCode(t){t===37&&this.input.charCodeAt(this.state.pos+1)===37?this.finishOp(133,2):super.getTokenFromCode(t)}parseExprAtom(t){return this.parsePlaceholder("Expression")||super.parseExprAtom(t)}parseIdentifier(t){return this.parsePlaceholder("Identifier")||super.parseIdentifier(t)}checkReservedWord(t,r,n,i){t!==void 0&&super.checkReservedWord(t,r,n,i)}cloneIdentifier(t){let r=super.cloneIdentifier(t);return r.type==="Placeholder"&&(r.expectedNode=t.expectedNode),r}cloneStringLiteral(t){return t.type==="Placeholder"?this.cloneIdentifier(t):super.cloneStringLiteral(t)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(t,r,n,i){return t==="Placeholder"||super.isValidLVal(t,r,n,i)}toAssignable(t,r){t&&t.type==="Placeholder"&&t.expectedNode==="Expression"?t.expectedNode="Pattern":super.toAssignable(t,r)}chStartsBindingIdentifier(t,r){if(super.chStartsBindingIdentifier(t,r))return!0;let n=this.nextTokenStart();return this.input.charCodeAt(n)===37&&this.input.charCodeAt(n+1)===37}verifyBreakContinue(t,r){t.label&&t.label.type==="Placeholder"||super.verifyBreakContinue(t,r)}parseExpressionStatement(t,r){var i;if(r.type!=="Placeholder"||(i=r.extra)!=null&&i.parenthesized)return super.parseExpressionStatement(t,r);if(this.match(14)){let s=t;return s.label=this.finishPlaceholder(r,"Identifier"),this.next(),s.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(s,"LabeledStatement")}this.semicolon();let n=t;return n.name=r.name,this.finishPlaceholder(n,"Statement")}parseBlock(t,r,n){return this.parsePlaceholder("BlockStatement")||super.parseBlock(t,r,n)}parseFunctionId(t){return this.parsePlaceholder("Identifier")||super.parseFunctionId(t)}parseClass(t,r,n){let i=r?"ClassDeclaration":"ClassExpression";this.next();let s=this.state.strict,a=this.parsePlaceholder("Identifier");if(a)if(this.match(81)||this.match(133)||this.match(5))t.id=a;else{if(n||!r)return t.id=null,t.body=this.finishPlaceholder(a,"ClassBody"),this.finishNode(t,i);throw this.raise(b1.ClassNameIsRequired,this.state.startLoc)}else this.parseClassId(t,r,n);return super.parseClassSuper(t),t.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!t.superClass,s),this.finishNode(t,i)}parseExport(t,r){let n=this.parsePlaceholder("Identifier");if(!n)return super.parseExport(t,r);let i=t;if(!this.isContextual(98)&&!this.match(12))return i.specifiers=[],i.source=null,i.declaration=this.finishPlaceholder(n,"Declaration"),this.finishNode(i,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");let s=this.startNode();return s.exported=n,i.specifiers=[this.finishNode(s,"ExportDefaultSpecifier")],super.parseExport(i,r)}isExportDefaultSpecifier(){if(this.match(65)){let t=this.nextTokenStart();if(this.isUnparsedContextual(t,"from")&&this.input.startsWith(Ai(133),this.nextTokenStartSince(t+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(t,r){var n;return(n=t.specifiers)!=null&&n.length?!0:super.maybeParseExportDefaultSpecifier(t,r)}checkExport(t){let{specifiers:r}=t;r!=null&&r.length&&(t.specifiers=r.filter(n=>n.exported.type==="Placeholder")),super.checkExport(t),t.specifiers=r}parseImport(t){let r=this.parsePlaceholder("Identifier");if(!r)return super.parseImport(t);if(t.specifiers=[],!this.isContextual(98)&&!this.match(12))return t.source=this.finishPlaceholder(r,"StringLiteral"),this.semicolon(),this.finishNode(t,"ImportDeclaration");let n=this.startNodeAtNode(r);return n.local=r,t.specifiers.push(this.finishNode(n,"ImportDefaultSpecifier")),this.eat(12)&&(this.maybeParseStarImportSpecifier(t)||this.parseNamedImportSpecifiers(t)),this.expectContextual(98),t.source=this.parseImportSource(),this.semicolon(),this.finishNode(t,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){this.state.start>this.offsetToSourcePos(this.state.lastTokEndLoc.index)&&this.raise(b1.UnexpectedSpace,this.state.lastTokEndLoc)}},_4=e=>class extends e{parseV8Intrinsic(){if(this.match(54)){let t=this.state.startLoc,r=this.startNode();if(this.next(),Fe(this.state.type)){let n=this.parseIdentifierName(),i=this.createIdentifier(r,n);if(this.castNodeTo(i,"V8IntrinsicIdentifier"),this.match(10))return i}this.unexpected(t)}}parseExprAtom(t){return this.parseV8Intrinsic()||super.parseExprAtom(t)}},w1=["fsharp","hack"],P1=["^^","@@","^","%","#"];function L4(e){if(e.has("decorators")){if(e.has("decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");let t=e.get("decorators").decoratorsBeforeExport;if(t!=null&&typeof t!="boolean")throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");let r=e.get("decorators").allowCallParenthesized;if(r!=null&&typeof r!="boolean")throw new Error("'allowCallParenthesized' must be a boolean.")}if(e.has("flow")&&e.has("typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(e.has("placeholders")&&e.has("v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(e.has("pipelineOperator")){let t=e.get("pipelineOperator").proposal;if(!w1.includes(t)){let r=w1.map(n=>`"${n}"`).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${r}.`)}if(t==="hack"){if(e.has("placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(e.has("v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");let r=e.get("pipelineOperator").topicToken;if(!P1.includes(r)){let n=P1.map(i=>`"${i}"`).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${n}.`)}}}if(e.has("moduleAttributes"))throw new Error("`moduleAttributes` has been removed in Babel 8, please migrate to import attributes instead.");if(e.has("importAssertions"))throw new Error("`importAssertions` has been removed in Babel 8, please use import attributes instead. To use the non-standard `assert` syntax you can enable the `deprecatedImportAssert` parser plugin.");if(!e.has("deprecatedImportAssert")&&e.has("importAttributes")&&e.get("importAttributes").deprecatedAssertSyntax)throw new Error("The 'importAttributes' plugin has been removed in Babel 8. If you need to enable support for the deprecated `assert` syntax, you can enable the `deprecatedImportAssert` parser plugin.");if(e.has("recordAndTuple"))throw new Error("The 'recordAndTuple' plugin has been removed in Babel 8. Please remove it from your configuration.");if(e.has("asyncDoExpressions")&&!e.has("doExpressions")){let t=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw t.missingPlugins="doExpressions",t}if(e.has("optionalChainingAssign")&&e.get("optionalChainingAssign").version!=="2023-07")throw new Error("The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is '2023-07'.");if(e.has("discardBinding")&&e.get("discardBinding").syntaxType!=="void")throw new Error("The 'discardBinding' plugin requires a 'syntaxType' option. Currently the only supported value is 'void'.");{if(e.has("decimal"))throw new Error("The 'decimal' plugin has been removed in Babel 8. Please remove it from your configuration.");if(e.has("importReflection"))throw new Error("The 'importReflection' plugin has been removed in Babel 8. Use 'sourcePhaseImports' instead, and replace 'import module' with 'import source' in your code.")}}var lv={estree:TI,jsx:n4,flow:e4,typescript:P4,v8intrinsic:_4,placeholders:I4},$4=Object.keys(lv),O4=class extends S4{checkProto(t,r,n,i){if(t.type==="SpreadElement"||this.isObjectMethod(t)||t.computed||t.shorthand)return n;let s=t.key;return(s.type==="Identifier"?s.name:s.value)==="__proto__"?r?(this.raise(w.RecordNoProto,s),!0):(n&&(i?i.doubleProtoLoc===null&&(i.doubleProtoLoc=s.loc.start):this.raise(w.DuplicateProto,s)),!0):n}shouldExitDescending(t,r){return t.type==="ArrowFunctionExpression"&&this.offsetToSourcePos(t.start)===r}getExpression(){if(this.enterInitialScopes(),this.nextToken(),this.match(140))throw this.raise(w.ParseExpressionEmptyInput,this.state.startLoc);let t=this.parseExpression();if(!this.match(140))throw this.raise(w.ParseExpressionExpectsEOF,this.state.startLoc,{unexpected:this.input.codePointAt(this.state.start)});return this.finalizeRemainingComments(),t.comments=this.comments,t.errors=this.state.errors,this.optionFlags&256&&(t.tokens=this.tokens),t}parseExpression(t,r){return t?this.disallowInAnd(()=>this.parseExpressionBase(r)):this.allowInAnd(()=>this.parseExpressionBase(r))}parseExpressionBase(t){let r=this.state.startLoc,n=this.parseMaybeAssign(t);if(this.match(12)){let i=this.startNodeAt(r);for(i.expressions=[n];this.eat(12);)i.expressions.push(this.parseMaybeAssign(t));return this.toReferencedList(i.expressions),this.finishNode(i,"SequenceExpression")}return n}parseMaybeAssignDisallowIn(t,r){return this.disallowInAnd(()=>this.parseMaybeAssign(t,r))}parseMaybeAssignAllowIn(t,r){return this.allowInAnd(()=>this.parseMaybeAssign(t,r))}setOptionalParametersError(t){t.optionalParametersLoc=this.state.startLoc}parseMaybeAssign(t,r){let n=this.state.startLoc,i=this.isContextual(108);if(i&&this.prodParam.hasYield){this.next();let u=this.parseYield(n);return r&&(u=r.call(this,u,n)),u}let s;t?s=!1:(t=new Ql,s=!0);let{type:a}=this.state;(a===10||Fe(a))&&(this.state.potentialArrowAt=this.state.start);let o=this.parseMaybeConditional(t);if(r&&(o=r.call(this,o,n)),PI(this.state.type)){let u=this.startNodeAt(n),l=this.state.value;if(u.operator=l,this.match(29)){this.toAssignable(o,!0),u.left=o;let c=n.index;t.doubleProtoLoc!=null&&t.doubleProtoLoc.index>=c&&(t.doubleProtoLoc=null),t.shorthandAssignLoc!=null&&t.shorthandAssignLoc.index>=c&&(t.shorthandAssignLoc=null),t.privateKeyLoc!=null&&t.privateKeyLoc.index>=c&&(this.checkDestructuringPrivate(t),t.privateKeyLoc=null),t.voidPatternLoc!=null&&t.voidPatternLoc.index>=c&&(t.voidPatternLoc=null)}else u.left=o;return this.next(),u.right=this.parseMaybeAssign(),this.checkLVal(o,this.finishNode(u,"AssignmentExpression"),void 0,void 0,void 0,void 0,l==="||="||l==="&&="||l==="??="),u}else s&&this.checkExpressionErrors(t,!0);if(i){let{type:u}=this.state;if((this.hasPlugin("v8intrinsic")?Fo(u):Fo(u)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(w.YieldNotInGeneratorFunction,n),this.parseYield(n)}return o}parseMaybeConditional(t){let r=this.state.startLoc,n=this.state.potentialArrowAt,i=this.parseExprOps(t);return this.shouldExitDescending(i,n)?i:this.parseConditional(i,r,t)}parseConditional(t,r,n){if(this.eat(17)){let i=this.startNodeAt(r);return i.test=t,i.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),i.alternate=this.parseMaybeAssign(),this.finishNode(i,"ConditionalExpression")}return t}parseMaybeUnaryOrPrivate(t){return this.match(139)?this.parsePrivateName():this.parseMaybeUnary(t)}parseExprOps(t){let r=this.state.startLoc,n=this.state.potentialArrowAt,i=this.parseMaybeUnaryOrPrivate(t);return this.shouldExitDescending(i,n)?i:this.parseExprOp(i,r,-1)}parseExprOp(t,r,n){if(this.isPrivateName(t)){let s=this.getPrivateNameSV(t);(n>=Kl(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(w.PrivateInExpectedIn,t,{identifierName:s}),this.classScope.usePrivateName(s,t.loc.start)}let i=this.state.type;if(NI(i)&&(this.prodParam.hasIn||!this.match(58))){let s=Kl(i);if(s>n){if(i===39){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return t;this.checkPipelineAtInfixOperator(t,r)}let a=this.startNodeAt(r);a.left=t,a.operator=this.state.value;let o=i===41||i===42,u=i===40;u&&(s=Kl(42)),this.next(),a.right=this.parseExprOpRightExpr(i,s);let l=this.finishNode(a,o||u?"LogicalExpression":"BinaryExpression"),c=this.state.type;if(u&&(c===41||c===42)||o&&c===40)throw this.raise(w.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(l,r,n)}}return t}parseExprOpRightExpr(t,r){switch(this.state.startLoc,t){case 39:switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext(()=>this.parseHackPipeBody());case"fsharp":return this.withSoloAwaitPermittingContext(()=>this.parseFSharpPipelineBody(r))}default:return this.parseExprOpBaseRightExpr(t,r)}}parseExprOpBaseRightExpr(t,r){let n=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),n,$I(t)?r-1:r)}parseHackPipeBody(){var n;let{startLoc:t}=this.state,r=this.parseMaybeAssign();return gI.has(r.type)&&!((n=r.extra)!=null&&n.parenthesized)&&this.raise(w.PipeUnparenthesizedBody,t,{type:r.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(w.PipeTopicUnused,t),r}checkExponentialAfterUnary(t){this.match(57)&&this.raise(w.UnexpectedTokenUnaryExponentiation,t.argument)}parseMaybeUnary(t,r){let n=this.state.startLoc,i=this.isContextual(96);if(i&&this.recordAwaitIfAllowed()){this.next();let u=this.parseAwait(n);return r||this.checkExponentialAfterUnary(u),u}let s=this.match(34),a=this.startNode();if(II(this.state.type)){a.operator=this.state.value,a.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");let u=this.match(89);if(this.next(),a.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(t,!0),this.state.strict&&u){let l=a.argument;l.type==="Identifier"?this.raise(w.StrictDelete,a):this.hasPropertyAsPrivateName(l)&&this.raise(w.DeletePrivateField,a)}if(!s)return r||this.checkExponentialAfterUnary(a),this.finishNode(a,"UnaryExpression")}let o=this.parseUpdate(a,s,t);if(i){let{type:u}=this.state;if((this.hasPlugin("v8intrinsic")?Fo(u):Fo(u)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(w.AwaitNotInAsyncContext,n),this.parseAwait(n)}return o}parseUpdate(t,r,n){if(r){let a=t;return this.checkLVal(a.argument,this.finishNode(a,"UpdateExpression")),t}let i=this.state.startLoc,s=this.parseExprSubscripts(n);if(this.checkExpressionErrors(n,!1))return s;for(;BI(this.state.type)&&!this.canInsertSemicolon();){let a=this.startNodeAt(i);a.operator=this.state.value,a.prefix=!1,a.argument=s,this.next(),this.checkLVal(s,s=this.finishNode(a,"UpdateExpression"))}return s}parseExprSubscripts(t){let r=this.state.startLoc,n=this.state.potentialArrowAt,i=this.parseExprAtom(t);return this.shouldExitDescending(i,n)?i:this.parseSubscripts(i,r)}parseSubscripts(t,r,n){let i={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(t),stop:!1};do t=this.parseSubscript(t,r,n,i),i.maybeAsyncArrow=!1;while(!i.stop);return t}parseSubscript(t,r,n,i){let{type:s}=this.state;if(!n&&s===15)return this.parseBind(t,r,n,i);if(Zd(s))return this.parseTaggedTemplateExpression(t,r,i);let a=!1;if(s===18){if(n&&(this.raise(w.OptionalChainingNoNew,this.state.startLoc),this.lookaheadCharCode()===40))return this.stopParseSubscript(t,i);i.optionalChainMember=a=!0,this.next()}if(!n&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(t,r,i,a);{let o=this.eat(0);return o||a||this.eat(16)?this.parseMember(t,r,i,o,a):this.stopParseSubscript(t,i)}}stopParseSubscript(t,r){return r.stop=!0,t}parseMember(t,r,n,i,s){let a=this.startNodeAt(r);return a.object=t,a.computed=i,i?(a.property=this.parseExpression(),this.expect(3)):this.match(139)?(t.type==="Super"&&this.raise(w.SuperPrivateField,r),this.classScope.usePrivateName(this.state.value,this.state.startLoc),a.property=this.parsePrivateName()):a.property=this.parseIdentifier(!0),n.optionalChainMember?(a.optional=s,this.finishNode(a,"OptionalMemberExpression")):this.finishNode(a,"MemberExpression")}parseBind(t,r,n,i){let s=this.startNodeAt(r);return s.object=t,this.next(),s.callee=this.parseNoCallExpr(),i.stop=!0,this.parseSubscripts(this.finishNode(s,"BindExpression"),r,n)}parseCoverCallAndAsyncArrowHead(t,r,n,i){let s=this.state.maybeInArrowParameters,a=null;this.state.maybeInArrowParameters=!0,this.next();let o=this.startNodeAt(r);o.callee=t;let{maybeAsyncArrow:u,optionalChainMember:l}=n;u&&(this.expressionScope.enter(v4()),a=new Ql),l&&(o.optional=i),i?o.arguments=this.parseCallExpressionArguments():o.arguments=this.parseCallExpressionArguments(t.type!=="Super",o,a);let c=this.finishCallExpression(o,l);return u&&this.shouldParseAsyncArrow()&&!i?(n.stop=!0,this.checkDestructuringPrivate(a),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),c=this.parseAsyncArrowFromCallExpression(this.startNodeAt(r),c)):(u&&(this.checkExpressionErrors(a,!0),this.expressionScope.exit()),this.toReferencedArguments(c)),this.state.maybeInArrowParameters=s,c}toReferencedArguments(t,r){this.toReferencedListDeep(t.arguments,r)}parseTaggedTemplateExpression(t,r,n){let i=this.startNodeAt(r);return i.tag=t,i.quasi=this.parseTemplate(!0),n.optionalChainMember&&this.raise(w.OptionalChainingNoTemplate,r),this.finishNode(i,"TaggedTemplateExpression")}atPossibleAsyncArrow(t){return t.type==="Identifier"&&t.name==="async"&&this.state.lastTokEndLoc.index===t.end&&!this.canInsertSemicolon()&&t.end-t.start===5&&this.offsetToSourcePos(t.start)===this.state.potentialArrowAt}finishCallExpression(t,r){if(t.callee.type==="Import")if(t.arguments.length===0||t.arguments.length>2)this.raise(w.ImportCallArity,t);else for(let n of t.arguments)n.type==="SpreadElement"&&this.raise(w.ImportCallSpreadArgument,n);return this.finishNode(t,r?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(t,r,n){let i=[],s=!0,a=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(11);){if(s)s=!1;else if(this.expect(12),this.match(11)){r&&this.addTrailingCommaExtraToNode(r),this.next();break}i.push(this.parseExprListItem(11,!1,n,t))}return this.state.inFSharpPipelineDirectBody=a,i}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(t,r){var n;return this.resetPreviousNodeTrailingComments(r),this.expect(19),this.parseArrowExpression(t,r.arguments,!0,(n=r.extra)==null?void 0:n.trailingCommaLoc),r.innerComments&&pa(t,r.innerComments),r.callee.trailingComments&&pa(t,r.callee.trailingComments),t}parseNoCallExpr(){let t=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),t,!0)}parseExprAtom(t){let r,n=null,{type:i}=this.state;switch(i){case 79:return this.parseSuper();case 83:return r=this.startNode(),this.next(),this.match(16)?this.parseImportMetaPropertyOrPhaseCall(r):this.match(10)?this.optionFlags&512?this.parseImportCall(r):this.finishNode(r,"Import"):(this.raise(w.UnsupportedImport,this.state.lastTokStartLoc),this.finishNode(r,"Import"));case 78:return r=this.startNode(),this.next(),this.finishNode(r,"ThisExpression");case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 135:return this.parseNumericLiteral(this.state.value);case 136:return this.parseBigIntLiteral(this.state.value);case 134:return this.parseStringLiteral(this.state.value);case 84:return this.parseNullLiteral();case 85:return this.parseBooleanLiteral(!0);case 86:return this.parseBooleanLiteral(!1);case 10:{let s=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(s)}case 0:return this.parseArrayLike(3,!1,t);case 5:return this.parseObjectLike(8,!1,!1,t);case 68:return this.parseFunctionOrFunctionSent();case 26:n=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(n,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{r=this.startNode(),this.next(),r.object=null;let s=r.callee=this.parseNoCallExpr();if(s.type==="MemberExpression")return this.finishNode(r,"BindExpression");throw this.raise(w.UnsupportedBind,s)}case 139:return this.raise(w.PrivateInExpectedIn,this.state.startLoc,{identifierName:this.state.value}),this.parsePrivateName();case 33:return this.parseTopicReferenceThenEqualsSign(54,"%");case 32:return this.parseTopicReferenceThenEqualsSign(44,"^");case 37:case 38:return this.parseTopicReference("hack");case 44:case 54:case 27:{let s=this.getPluginOption("pipelineOperator","proposal");if(s)return this.parseTopicReference(s);throw this.unexpected()}case 47:{let s=this.input.codePointAt(this.nextTokenStart());throw tn(s)||s===62?this.expectOnePlugin(["jsx","flow","typescript"]):this.unexpected()}default:if(Fe(i)){if(this.isContextual(127)&&this.lookaheadInLineCharCode()===123)return this.parseModuleExpression();let s=this.state.potentialArrowAt===this.state.start,a=this.state.containsEsc,o=this.parseIdentifier();if(!a&&o.name==="async"&&!this.canInsertSemicolon()){let{type:u}=this.state;if(u===68)return this.resetPreviousNodeTrailingComments(o),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(o));if(Fe(u))return this.lookaheadCharCode()===61?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(o)):o;if(u===90)return this.resetPreviousNodeTrailingComments(o),this.parseDo(this.startNodeAtNode(o),!0)}return s&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(o),[o],!1)):o}else throw this.unexpected()}}parseTopicReferenceThenEqualsSign(t,r){let n=this.getPluginOption("pipelineOperator","proposal");if(n)return this.state.type=t,this.state.value=r,this.state.pos--,this.state.end--,this.state.endLoc=Er(this.state.endLoc,-1),this.parseTopicReference(n);throw this.unexpected()}parseTopicReference(t){let r=this.startNode(),n=this.state.startLoc,i=this.state.type;return this.next(),this.finishTopicReference(r,n,t,i)}finishTopicReference(t,r,n,i){if(this.testTopicReferenceConfiguration(n,r,i))return this.topicReferenceIsAllowedInCurrentContext()||this.raise(w.PipeTopicUnbound,r),this.registerTopicReference(),this.finishNode(t,"TopicReference");throw this.raise(w.PipeTopicUnconfiguredToken,r,{token:Ai(i)})}testTopicReferenceConfiguration(t,r,n){switch(t){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:Ai(n)}]);case"smart":return n===27;default:throw this.raise(w.PipeTopicRequiresHackPipes,r)}}parseAsyncArrowUnaryFunction(t){this.prodParam.enter(Gl(!0,this.prodParam.hasYield));let r=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(w.LineTerminatorBeforeArrow,this.state.curPosition()),this.expect(19),this.parseArrowExpression(t,r,!0)}parseDo(t,r){this.expectPlugin("doExpressions"),r&&this.expectPlugin("asyncDoExpressions"),t.async=r,this.next();let n=this.state.labels;return this.state.labels=[],r?(this.prodParam.enter(2),t.body=this.parseBlock(),this.prodParam.exit()):t.body=this.parseBlock(),this.state.labels=n,this.finishNode(t,"DoExpression")}parseSuper(){let t=this.startNode();return this.next(),this.match(10)&&!this.scope.allowDirectSuper?this.raise(w.SuperNotAllowed,t):this.scope.allowSuper||this.raise(w.UnexpectedSuper,t),!this.match(10)&&!this.match(0)&&!this.match(16)&&this.raise(w.UnsupportedSuper,t),this.finishNode(t,"Super")}parsePrivateName(){let t=this.startNode(),r=this.startNodeAt(Er(this.state.startLoc,1)),n=this.state.value;return this.next(),t.id=this.createIdentifier(r,n),this.finishNode(t,"PrivateName")}parseFunctionOrFunctionSent(){let t=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){let r=this.createIdentifier(this.startNodeAtNode(t),"function");return this.next(),this.match(103)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected(),this.parseMetaProperty(t,r,"sent")}return this.parseFunction(t)}parseMetaProperty(t,r,n){t.meta=r;let i=this.state.containsEsc;return t.property=this.parseIdentifier(!0),(t.property.name!==n||i)&&this.raise(w.UnsupportedMetaProperty,t.property,{target:r.name,onlyValidPropertyName:n}),this.finishNode(t,"MetaProperty")}parseImportMetaPropertyOrPhaseCall(t){if(this.next(),this.isContextual(105)||this.isContextual(97)){let r=this.isContextual(105);return this.expectPlugin(r?"sourcePhaseImports":"deferredImportEvaluation"),this.next(),t.phase=r?"source":"defer",this.parseImportCall(t)}else{let r=this.createIdentifierAt(this.startNodeAtNode(t),"import",this.state.lastTokStartLoc);return this.isContextual(101)&&(this.inModule||this.raise(w.ImportMetaOutsideModule,r),this.sawUnambiguousESM=!0),this.parseMetaProperty(t,r,"meta")}}parseLiteralAtNode(t,r,n){return this.addExtra(n,"rawValue",t),this.addExtra(n,"raw",this.input.slice(this.offsetToSourcePos(n.start),this.state.end)),n.value=t,this.next(),this.finishNode(n,r)}parseLiteral(t,r){let n=this.startNode();return this.parseLiteralAtNode(t,r,n)}parseStringLiteral(t){return this.parseLiteral(t,"StringLiteral")}parseNumericLiteral(t){return this.parseLiteral(t,"NumericLiteral")}parseBigIntLiteral(t){{let r;try{r=BigInt(t)}catch{r=null}return this.parseLiteral(r,"BigIntLiteral")}}parseDecimalLiteral(t){return this.parseLiteral(t,"DecimalLiteral")}parseRegExpLiteral(t){let r=this.startNode();return this.addExtra(r,"raw",this.input.slice(this.offsetToSourcePos(r.start),this.state.end)),r.pattern=t.pattern,r.flags=t.flags,this.next(),this.finishNode(r,"RegExpLiteral")}parseBooleanLiteral(t){let r=this.startNode();return r.value=t,this.next(),this.finishNode(r,"BooleanLiteral")}parseNullLiteral(){let t=this.startNode();return this.next(),this.finishNode(t,"NullLiteral")}parseParenAndDistinguishExpression(t){let r=this.state.startLoc,n;this.next(),this.expressionScope.enter(C4());let i=this.state.maybeInArrowParameters,s=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;let a=this.state.startLoc,o=[],u=new Ql,l=!0,c,p;for(;!this.match(11);){if(l)l=!1;else if(this.expect(12,u.optionalParametersLoc===null?null:u.optionalParametersLoc),this.match(11)){p=this.state.startLoc;break}if(this.match(21)){let f=this.state.startLoc;if(c=this.state.startLoc,o.push(this.parseParenItem(this.parseRestBinding(),f)),!this.checkCommaAfterRest(41))break}else o.push(this.parseMaybeAssignAllowInOrVoidPattern(11,u,this.parseParenItem))}let h=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=i,this.state.inFSharpPipelineDirectBody=s;let d=this.startNodeAt(r);return t&&this.shouldParseArrow(o)&&(d=this.parseArrow(d))?(this.checkDestructuringPrivate(u),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(d,o,!1),d):(this.expressionScope.exit(),o.length||this.unexpected(this.state.lastTokStartLoc),p&&this.unexpected(p),c&&this.unexpected(c),this.checkExpressionErrors(u,!0),this.toReferencedListDeep(o,!0),o.length>1?(n=this.startNodeAt(a),n.expressions=o,this.finishNode(n,"SequenceExpression"),this.resetEndLocation(n,h)):n=o[0],this.wrapParenthesis(r,n))}wrapParenthesis(t,r){if(!(this.optionFlags&1024))return this.addExtra(r,"parenthesized",!0),this.addExtra(r,"parenStart",t.index),this.takeSurroundingComments(r,t.index,this.state.lastTokEndLoc.index),r;let n=this.startNodeAt(t);return n.expression=r,this.finishNode(n,"ParenthesizedExpression")}shouldParseArrow(t){return!this.canInsertSemicolon()}parseArrow(t){if(this.eat(19))return t}parseParenItem(t,r){return t}parseNewOrNewTarget(){let t=this.startNode();if(this.next(),this.match(16)){let r=this.createIdentifier(this.startNodeAtNode(t),"new");this.next();let n=this.parseMetaProperty(t,r,"target");return this.scope.allowNewTarget||this.raise(w.UnexpectedNewTarget,n),n}return this.parseNew(t)}parseNew(t){if(this.parseNewCallee(t),this.eat(10)){let r=this.parseExprList(11);this.toReferencedList(r),t.arguments=r}else t.arguments=[];return this.finishNode(t,"NewExpression")}parseNewCallee(t){let r=this.match(83),n=this.parseNoCallExpr();t.callee=n,r&&(n.type==="Import"||n.type==="ImportExpression")&&this.raise(w.ImportCallNotNewExpression,n)}parseTemplateElement(t){let{start:r,startLoc:n,end:i,value:s}=this.state,a=r+1,o=this.startNodeAt(Er(n,1));s===null&&(t||this.raise(w.InvalidEscapeSequenceTemplate,Er(this.state.firstInvalidTemplateEscapePos,1)));let u=this.match(24),l=u?-1:-2,c=i+l;o.value={raw:this.input.slice(a,c).replace(/\r\n?/g,` -`),cooked:s===null?null:s.slice(1,l)},o.tail=u,this.next();let p=this.finishNode(o,"TemplateElement");return this.resetEndLocation(p,Er(this.state.lastTokEndLoc,l)),p}parseTemplate(t){let r=this.startNode(),n=this.parseTemplateElement(t),i=[n],s=[];for(;!n.tail;)s.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),i.push(n=this.parseTemplateElement(t));return r.expressions=s,r.quasis=i,this.finishNode(r,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(t,r,n,i){n&&this.expectPlugin("recordAndTuple");let s=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let a=!1,o=!0,u=this.startNode();for(u.properties=[],this.next();!this.match(t);){if(o)o=!1;else if(this.expect(12),this.match(t)){this.addTrailingCommaExtraToNode(u);break}let c;r?c=this.parseBindingProperty():(c=this.parsePropertyDefinition(i),a=this.checkProto(c,n,a,i)),n&&!this.isObjectProperty(c)&&c.type!=="SpreadElement"&&this.raise(w.InvalidRecordProperty,c),u.properties.push(c)}this.next(),this.state.inFSharpPipelineDirectBody=s;let l="ObjectExpression";return r?l="ObjectPattern":n&&(l="RecordExpression"),this.finishNode(u,l)}addTrailingCommaExtraToNode(t){this.addExtra(t,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(t,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(t){return!t.computed&&t.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(t){let r=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(w.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)r.push(this.parseDecorator());let n=this.startNode(),i=!1,s=!1,a;if(this.match(21))return r.length&&this.unexpected(),this.parseSpread();r.length&&(n.decorators=r,r=[]),n.method=!1,t&&(a=this.state.startLoc);let o=this.eat(55);this.parsePropertyNamePrefixOperator(n);let u=this.state.containsEsc;if(this.parsePropertyName(n,t),!o&&!u&&this.maybeAsyncOrAccessorProp(n)){let{key:l}=n,c=l.name;c==="async"&&!this.hasPrecedingLineBreak()&&(i=!0,this.resetPreviousNodeTrailingComments(l),o=this.eat(55),this.parsePropertyName(n)),(c==="get"||c==="set")&&(s=!0,this.resetPreviousNodeTrailingComments(l),n.kind=c,this.match(55)&&(o=!0,this.raise(w.AccessorIsGenerator,this.state.curPosition(),{kind:c}),this.next()),this.parsePropertyName(n))}return this.parseObjPropValue(n,a,o,i,!1,s,t)}getGetterSetterExpectedParamCount(t){return t.kind==="get"?0:1}getObjectOrClassMethodParams(t){return t.params}checkGetterSetterParams(t){var i;let r=this.getGetterSetterExpectedParamCount(t),n=this.getObjectOrClassMethodParams(t);n.length!==r&&this.raise(t.kind==="get"?w.BadGetterArity:w.BadSetterArity,t),t.kind==="set"&&((i=n[n.length-1])==null?void 0:i.type)==="RestElement"&&this.raise(w.BadSetterRestParameter,t)}parseObjectMethod(t,r,n,i,s){if(s){let a=this.parseMethod(t,r,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(a),a}if(n||r||this.match(10))return i&&this.unexpected(),t.kind="method",t.method=!0,this.parseMethod(t,r,n,!1,!1,"ObjectMethod")}parseObjectProperty(t,r,n,i){if(t.shorthand=!1,this.eat(14))return t.value=n?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowInOrVoidPattern(8,i),this.finishObjectProperty(t);if(!t.computed&&t.key.type==="Identifier"){if(this.checkReservedWord(t.key.name,t.key.loc.start,!0,!1),n)t.value=this.parseMaybeDefault(r,this.cloneIdentifier(t.key));else if(this.match(29)){let s=this.state.startLoc;i!=null?i.shorthandAssignLoc===null&&(i.shorthandAssignLoc=s):this.raise(w.InvalidCoverInitializedName,s),t.value=this.parseMaybeDefault(r,this.cloneIdentifier(t.key))}else t.value=this.cloneIdentifier(t.key);return t.shorthand=!0,this.finishObjectProperty(t)}}finishObjectProperty(t){return this.finishNode(t,"ObjectProperty")}parseObjPropValue(t,r,n,i,s,a,o){let u=this.parseObjectMethod(t,n,i,s,a)||this.parseObjectProperty(t,r,s,o);return u||this.unexpected(),u}parsePropertyName(t,r){if(this.eat(0))t.computed=!0,t.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{let{type:n,value:i}=this.state,s;if(Lr(n))s=this.parseIdentifier(!0);else switch(n){case 135:s=this.parseNumericLiteral(i);break;case 134:s=this.parseStringLiteral(i);break;case 136:s=this.parseBigIntLiteral(i);break;case 139:{let a=this.state.startLoc;r!=null?r.privateKeyLoc===null&&(r.privateKeyLoc=a):this.raise(w.UnexpectedPrivateField,a),s=this.parsePrivateName();break}default:this.unexpected()}t.key=s,n!==139&&(t.computed=!1)}}initFunction(t,r){t.id=null,t.generator=!1,t.async=r}parseMethod(t,r,n,i,s,a,o=!1){this.initFunction(t,n),t.generator=r,this.scope.enter(530|(o?576:0)|(s?32:0)),this.prodParam.enter(Gl(n,t.generator)),this.parseFunctionParams(t,i);let u=this.parseFunctionBodyAndFinish(t,a,!0);return this.prodParam.exit(),this.scope.exit(),u}parseArrayLike(t,r,n){r&&this.expectPlugin("recordAndTuple");let i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let s=this.startNode();return this.next(),s.elements=this.parseExprList(t,!r,n,s),this.state.inFSharpPipelineDirectBody=i,this.finishNode(s,r?"TupleExpression":"ArrayExpression")}parseArrowExpression(t,r,n,i){this.scope.enter(518);let s=Gl(n,!1);!this.match(5)&&this.prodParam.hasIn&&(s|=8),this.prodParam.enter(s),this.initFunction(t,n);let a=this.state.maybeInArrowParameters;return r&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(t,r,i)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(t,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=a,this.finishNode(t,"ArrowFunctionExpression")}setArrowFunctionParameters(t,r,n){this.toAssignableList(r,n,!1),t.params=r}parseFunctionBodyAndFinish(t,r,n=!1){return this.parseFunctionBody(t,!1,n),this.finishNode(t,r)}parseFunctionBody(t,r,n=!1){let i=r&&!this.match(5);if(this.expressionScope.enter(av()),i)t.body=this.parseMaybeAssign(),this.checkParams(t,!1,r,!1);else{let s=this.state.strict,a=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|4),t.body=this.parseBlock(!0,!1,o=>{let u=!this.isSimpleParamList(t.params);o&&u&&this.raise(w.IllegalLanguageModeDirective,(t.kind==="method"||t.kind==="constructor")&&t.key?t.key.loc.end:t);let l=!s&&this.state.strict;this.checkParams(t,!this.state.strict&&!r&&!n&&!u,r,l),this.state.strict&&t.id&&this.checkIdentifier(t.id,65,l)}),this.prodParam.exit(),this.state.labels=a}this.expressionScope.exit()}isSimpleParameter(t){return t.type==="Identifier"}isSimpleParamList(t){for(let r=0,n=t.length;r10||!WI(t))){if(n&&zI(t)){this.raise(w.UnexpectedKeyword,r,{keyword:t});return}if((this.state.strict?i?ev:YC:QC)(t,this.inModule)){this.raise(w.UnexpectedReservedWord,r,{reservedWord:t});return}else if(t==="yield"){if(this.prodParam.hasYield){this.raise(w.YieldBindingIdentifier,r);return}}else if(t==="await"){if(this.prodParam.hasAwait){this.raise(w.AwaitBindingIdentifier,r);return}if(this.scope.inStaticBlock){this.raise(w.AwaitBindingIdentifierInStaticBlock,r);return}this.expressionScope.recordAsyncArrowParametersError(r)}else if(t==="arguments"&&this.scope.inClassAndNotInNonArrowFunction){this.raise(w.ArgumentsInClass,r);return}}}recordAwaitIfAllowed(){let t=this.prodParam.hasAwait;return t&&!this.scope.inFunction&&(this.state.hasTopLevelAwait=!0),t}parseAwait(t){let r=this.startNodeAt(t);return this.expressionScope.recordParameterInitializerError(w.AwaitExpressionFormalParameter,r),this.eat(55)&&this.raise(w.ObsoleteAwaitStar,r),!this.scope.inFunction&&!(this.optionFlags&1)&&(this.isAmbiguousPrefixOrIdentifier()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(r.argument=this.parseMaybeUnary(null,!0)),this.finishNode(r,"AwaitExpression")}isAmbiguousPrefixOrIdentifier(){if(this.hasPrecedingLineBreak())return!0;let{type:t}=this.state;return t===53||t===10||t===0||Zd(t)||t===102&&!this.state.containsEsc||t===138||t===56||this.hasPlugin("v8intrinsic")&&t===54}parseYield(t){let r=this.startNodeAt(t);this.expressionScope.recordParameterInitializerError(w.YieldInParameter,r);let n=!1,i=null;if(!this.hasPrecedingLineBreak())switch(n=this.eat(55),this.state.type){case 13:case 140:case 8:case 11:case 3:case 9:case 14:case 12:if(!n)break;default:i=this.parseMaybeAssign()}return r.delegate=n,r.argument=i,this.finishNode(r,"YieldExpression")}parseImportCall(t){if(this.next(),t.source=this.parseMaybeAssignAllowIn(),t.options=null,this.eat(12)){if(this.match(11))this.addTrailingCommaExtraToNode(t.source);else if(t.options=this.parseMaybeAssignAllowIn(),this.eat(12)&&(this.addTrailingCommaExtraToNode(t.options),!this.match(11))){do this.parseMaybeAssignAllowIn();while(this.eat(12)&&!this.match(11));this.raise(w.ImportCallArity,t)}}return this.expect(11),this.finishNode(t,"ImportExpression")}checkPipelineAtInfixOperator(t,r){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&t.type==="SequenceExpression"&&this.raise(w.PipelineHeadSequenceExpression,r)}parseSmartPipelineBodyInStyle(t,r){if(this.isSimpleReference(t)){let n=this.startNodeAt(r);return n.callee=t,this.finishNode(n,"PipelineBareFunction")}else{let n=this.startNodeAt(r);return this.checkSmartPipeTopicBodyEarlyErrors(r),n.expression=t,this.finishNode(n,"PipelineTopicExpression")}}isSimpleReference(t){switch(t.type){case"MemberExpression":return!t.computed&&this.isSimpleReference(t.object);case"Identifier":return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(t){if(this.match(19))throw this.raise(w.PipelineBodyNoArrow,this.state.startLoc);this.topicReferenceWasUsedInCurrentContext()||this.raise(w.PipelineTopicUnused,t)}withTopicBindingContext(t){let r=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return t()}finally{this.state.topicContext=r}}withSmartMixTopicForbiddingContext(t){return t()}withSoloAwaitPermittingContext(t){let r=this.state.soloAwait;this.state.soloAwait=!0;try{return t()}finally{this.state.soloAwait=r}}allowInAnd(t){let r=this.prodParam.currentFlags();if(8&~r){this.prodParam.enter(r|8);try{return t()}finally{this.prodParam.exit()}}return t()}disallowInAnd(t){let r=this.prodParam.currentFlags();if(8&r){this.prodParam.enter(r&-9);try{return t()}finally{this.prodParam.exit()}}return t()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return this.state.topicContext.maxTopicIndex!=null&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(t){let r=this.state.startLoc;this.state.potentialArrowAt=this.state.start;let n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;let i=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),r,t);return this.state.inFSharpPipelineDirectBody=n,i}parseModuleExpression(){this.expectPlugin("moduleBlocks");let t=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);let r=this.startNodeAt(this.state.endLoc);this.next();let n=this.initializeScopes(!0);this.enterInitialScopes();try{t.body=this.parseProgram(r,8,"module")}finally{n()}return this.finishNode(t,"ModuleExpression")}parseVoidPattern(t){this.expectPlugin("discardBinding");let r=this.startNode();return t!=null&&(t.voidPatternLoc=this.state.startLoc),this.next(),this.finishNode(r,"VoidPattern")}parseMaybeAssignAllowInOrVoidPattern(t,r,n){if(r!=null&&this.match(88)){let i=this.lookaheadCharCode();if(i===44||i===(t===3?93:t===8?125:41)||i===61)return this.parseMaybeDefault(this.state.startLoc,this.parseVoidPattern(r))}return this.parseMaybeAssignAllowIn(r,n)}parsePropertyNamePrefixOperator(t){}},Sh={kind:1},M4={kind:2},j4=/[\uD800-\uDFFF]/u,Fh=/in(?:stanceof)?/y;function R4(e,t,r){for(let n=0;n0)for(let[s,a]of Array.from(this.scope.undefinedExports))this.raise(w.ModuleExportUndefined,a,{localName:s});this.addExtra(t,"topLevelAwait",this.state.hasTopLevelAwait)}let i;return r===140?i=this.finishNode(t,"Program"):i=this.finishNodeAt(t,"Program",Er(this.state.startLoc,-1)),i}stmtToDirective(t){let r=this.castNodeTo(t,"Directive"),n=this.castNodeTo(t.expression,"DirectiveLiteral"),i=n.value,s=this.input.slice(this.offsetToSourcePos(n.start),this.offsetToSourcePos(n.end)),a=n.value=s.slice(1,-1);return this.addExtra(n,"raw",s),this.addExtra(n,"rawValue",a),this.addExtra(n,"expressionValue",i),r.value=n,delete t.expression,r}parseInterpreterDirective(){if(!this.match(28))return null;let t=this.startNode();return t.value=this.state.value,this.next(),this.finishNode(t,"InterpreterDirective")}isLet(){return this.isContextual(100)?this.hasFollowingBindingAtom():!1}isUsing(){return this.isContextual(107)?this.nextTokenIsIdentifierOnSameLine():!1}isForUsing(){if(!this.isContextual(107))return!1;let t=this.nextTokenInLineStart(),r=this.codePointAtPos(t);if(this.isUnparsedContextual(t,"of")){let n=this.lookaheadCharCodeSince(t+2);if(n!==61&&n!==58&&n!==59)return!1}return!!(this.chStartsBindingIdentifier(r,t)||this.isUnparsedContextual(t,"void"))}nextTokenIsIdentifierOnSameLine(){let t=this.nextTokenInLineStart(),r=this.codePointAtPos(t);return this.chStartsBindingIdentifier(r,t)}isAwaitUsing(){if(!this.isContextual(96))return!1;let t=this.nextTokenInLineStart();if(this.isUnparsedContextual(t,"using")){t=this.nextTokenInLineStartSince(t+5);let r=this.codePointAtPos(t);if(this.chStartsBindingIdentifier(r,t))return!0}return!1}chStartsBindingIdentifier(t,r){if(tn(t)){if(Fh.lastIndex=r,Fh.test(this.input)){let n=this.codePointAtPos(Fh.lastIndex);if(!as(n)&&n!==92)return!1}return!0}else return t===92}chStartsBindingPattern(t){return t===91||t===123}hasFollowingBindingAtom(){let t=this.nextTokenStart(),r=this.codePointAtPos(t);return this.chStartsBindingPattern(r)||this.chStartsBindingIdentifier(r,t)}hasInLineFollowingBindingIdentifierOrBrace(){let t=this.nextTokenInLineStart(),r=this.codePointAtPos(t);return r===123||this.chStartsBindingIdentifier(r,t)}allowsUsing(){return(this.scope.inModule||!this.scope.inTopLevel)&&!this.scope.inBareCaseStatement}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(t=!1){let r=0;return this.options.annexB&&!this.state.strict&&(r|=4,t&&(r|=8)),this.parseStatementLike(r)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(t){let r=null;return this.match(26)&&(r=this.parseDecorators(!0)),this.parseStatementContent(t,r)}parseStatementContent(t,r){let n=this.state.type,i=this.startNode(),s=!!(t&2),a=!!(t&4),o=t&1;switch(n){case 60:return this.parseBreakContinueStatement(i,!0);case 63:return this.parseBreakContinueStatement(i,!1);case 64:return this.parseDebuggerStatement(i);case 90:return this.parseDoWhileStatement(i);case 91:return this.parseForStatement(i);case 68:if(this.lookaheadCharCode()===46)break;return a||this.raise(this.state.strict?w.StrictFunction:this.options.annexB?w.SloppyFunctionAnnexB:w.SloppyFunction,this.state.startLoc),this.parseFunctionStatement(i,!1,!s&&a);case 80:return s||this.unexpected(),this.parseClass(this.maybeTakeDecorators(r,i),!0);case 69:return this.parseIfStatement(i);case 70:return this.parseReturnStatement(i);case 71:return this.parseSwitchStatement(i);case 72:return this.parseThrowStatement(i);case 73:return this.parseTryStatement(i);case 96:if(this.isAwaitUsing())return this.allowsUsing()?s?this.recordAwaitIfAllowed()||this.raise(w.AwaitUsingNotInAsyncContext,i):this.raise(w.UnexpectedLexicalDeclaration,i):this.raise(w.UnexpectedUsingDeclaration,i),this.next(),this.parseVarStatement(i,"await using");break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifierOrBrace())break;return this.allowsUsing()?s||this.raise(w.UnexpectedLexicalDeclaration,this.state.startLoc):this.raise(w.UnexpectedUsingDeclaration,this.state.startLoc),this.parseVarStatement(i,"using");case 100:{if(this.state.containsEsc)break;let c=this.nextTokenStart(),p=this.codePointAtPos(c);if(p!==91&&(!s&&this.hasFollowingLineBreak()||!this.chStartsBindingIdentifier(p,c)&&p!==123))break}case 75:s||this.raise(w.UnexpectedLexicalDeclaration,this.state.startLoc);case 74:{let c=this.state.value;return this.parseVarStatement(i,c)}case 92:return this.parseWhileStatement(i);case 76:return this.parseWithStatement(i);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(i);case 83:{let c=this.lookaheadCharCode();if(c===40||c===46)break}case 82:{!(this.optionFlags&8)&&!o&&this.raise(w.UnexpectedImportExport,this.state.startLoc),this.next();let c;return n===83?c=this.parseImport(i):c=this.parseExport(i,r),this.assertModuleNodeAllowed(c),c}default:if(this.isAsyncFunction())return s||this.raise(w.AsyncFunctionInSingleStatementContext,this.state.startLoc),this.next(),this.parseFunctionStatement(i,!0,!s&&a)}let u=this.state.value,l=this.parseExpression();return Fe(n)&&l.type==="Identifier"&&this.eat(14)?this.parseLabeledStatement(i,u,l,t):this.parseExpressionStatement(i,l,r)}assertModuleNodeAllowed(t){!(this.optionFlags&8)&&!this.inModule&&this.raise(w.ImportOutsideModule,t)}decoratorsEnabledBeforeExport(){return this.hasPlugin("decorators-legacy")?!0:this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")!==!1}maybeTakeDecorators(t,r,n){var i;return t&&((i=r.decorators)!=null&&i.length?(typeof this.getPluginOption("decorators","decoratorsBeforeExport")!="boolean"&&this.raise(w.DecoratorsBeforeAfterExport,r.decorators[0]),r.decorators.unshift(...t)):r.decorators=t,this.resetStartLocationFromNode(r,t[0]),n&&this.resetStartLocationFromNode(n,r)),r}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(t){let r=[];do r.push(this.parseDecorator());while(this.match(26));if(this.match(82))t||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(w.DecoratorExportClass,this.state.startLoc);else if(!this.canHaveLeadingDecorator())throw this.raise(w.UnexpectedLeadingDecorator,this.state.startLoc);return r}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);let t=this.startNode();if(this.next(),this.hasPlugin("decorators")){let r=this.state.startLoc,n;if(this.match(10)){let i=this.state.startLoc;this.next(),n=this.parseExpression(),this.expect(11),n=this.wrapParenthesis(i,n);let s=this.state.startLoc;t.expression=this.parseMaybeDecoratorArguments(n,i),this.getPluginOption("decorators","allowCallParenthesized")===!1&&t.expression!==n&&this.raise(w.DecoratorArgumentsOutsideParentheses,s)}else{for(n=this.parseIdentifier(!1);this.eat(16);){let i=this.startNodeAt(r);i.object=n,this.match(139)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),i.property=this.parsePrivateName()):i.property=this.parseIdentifier(!0),i.computed=!1,n=this.finishNode(i,"MemberExpression")}t.expression=this.parseMaybeDecoratorArguments(n,r)}}else t.expression=this.parseExprSubscripts();return this.finishNode(t,"Decorator")}parseMaybeDecoratorArguments(t,r){if(this.eat(10)){let n=this.startNodeAt(r);return n.callee=t,n.arguments=this.parseCallExpressionArguments(),this.toReferencedList(n.arguments),this.finishNode(n,"CallExpression")}return t}parseBreakContinueStatement(t,r){return this.next(),this.isLineTerminator()?t.label=null:(t.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(t,r),this.finishNode(t,r?"BreakStatement":"ContinueStatement")}verifyBreakContinue(t,r){let n;for(n=0;nthis.parseStatement()),this.state.labels.pop(),this.expect(92),t.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(t,"DoWhileStatement")}parseForStatement(t){this.next(),this.state.labels.push(Sh);let r=null;if(this.isContextual(96)&&this.recordAwaitIfAllowed()&&(r=this.state.startLoc,this.next()),this.scope.enter(0),this.expect(10),this.match(13))return r!==null&&this.unexpected(r),this.parseFor(t,null);let n=this.isContextual(100);{let u=this.isAwaitUsing(),l=u||this.isForUsing(),c=n&&this.hasFollowingBindingAtom()||l;if(this.match(74)||this.match(75)||c){let p=this.startNode(),h;u?(h="await using",this.recordAwaitIfAllowed()||this.raise(w.AwaitUsingNotInAsyncContext,this.state.startLoc),this.next()):h=this.state.value,this.next(),this.parseVar(p,!0,h);let d=this.finishNode(p,"VariableDeclaration"),f=this.match(58);return f&&l&&this.raise(w.ForInUsing,d),(f||this.isContextual(102))&&d.declarations.length===1?this.parseForIn(t,d,r):(r!==null&&this.unexpected(r),this.parseFor(t,d))}}let i=this.isContextual(95),s=new Ql,a=this.parseExpression(!0,s),o=this.isContextual(102);if(o&&(n&&this.raise(w.ForOfLet,a),r===null&&i&&a.type==="Identifier"&&this.raise(w.ForOfAsync,a)),o||this.match(58)){this.checkDestructuringPrivate(s),this.toAssignable(a,!0);let u=o?"ForOfStatement":"ForInStatement";return this.checkLVal(a,{type:u}),this.parseForIn(t,a,r)}else this.checkExpressionErrors(s,!0);return r!==null&&this.unexpected(r),this.parseFor(t,a)}parseFunctionStatement(t,r,n){return this.next(),this.parseFunction(t,1|(n?2:0)|(r?8:0))}parseIfStatement(t){return this.next(),t.test=this.parseHeaderExpression(),t.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),t.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(t,"IfStatement")}parseReturnStatement(t){return this.prodParam.hasReturn||this.raise(w.IllegalReturn,this.state.startLoc),this.next(),this.isLineTerminator()?t.argument=null:(t.argument=this.parseExpression(),this.semicolon()),this.finishNode(t,"ReturnStatement")}parseSwitchStatement(t){this.next(),t.discriminant=this.parseHeaderExpression();let r=t.cases=[];this.expect(5),this.state.labels.push(M4),this.scope.enter(256);let n;for(let i;!this.match(8);)if(this.match(61)||this.match(65)){let s=this.match(61);n&&this.finishNode(n,"SwitchCase"),r.push(n=this.startNode()),n.consequent=[],this.next(),s?n.test=this.parseExpression():(i&&this.raise(w.MultipleDefaultsInSwitch,this.state.lastTokStartLoc),i=!0,n.test=null),this.expect(14)}else n?n.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),n&&this.finishNode(n,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(t,"SwitchStatement")}parseThrowStatement(t){return this.next(),this.hasPrecedingLineBreak()&&this.raise(w.NewlineAfterThrow,this.state.lastTokEndLoc),t.argument=this.parseExpression(),this.semicolon(),this.finishNode(t,"ThrowStatement")}parseCatchClauseParam(){let t=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&t.type==="Identifier"?8:0),this.checkLVal(t,{type:"CatchClause"},9),t}parseTryStatement(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.match(62)){let r=this.startNode();this.next(),this.match(10)?(this.expect(10),r.param=this.parseCatchClauseParam(),this.expect(11)):(r.param=null,this.scope.enter(0)),r.body=this.withSmartMixTopicForbiddingContext(()=>this.parseBlock(!1,!1)),this.scope.exit(),t.handler=this.finishNode(r,"CatchClause")}return t.finalizer=this.eat(67)?this.parseBlock():null,!t.handler&&!t.finalizer&&this.raise(w.NoCatchOrFinally,t),this.finishNode(t,"TryStatement")}parseVarStatement(t,r,n=!1){return this.next(),this.parseVar(t,!1,r,n),this.semicolon(),this.finishNode(t,"VariableDeclaration")}parseWhileStatement(t){return this.next(),t.test=this.parseHeaderExpression(),this.state.labels.push(Sh),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.finishNode(t,"WhileStatement")}parseWithStatement(t){return this.state.strict&&this.raise(w.StrictWith,this.state.startLoc),this.next(),t.object=this.parseHeaderExpression(),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.finishNode(t,"WithStatement")}parseEmptyStatement(t){return this.next(),this.finishNode(t,"EmptyStatement")}parseLabeledStatement(t,r,n,i){for(let a of this.state.labels)a.name===r&&this.raise(w.LabelRedeclaration,n,{labelName:r});let s=kI(this.state.type)?1:this.match(71)?2:null;for(let a=this.state.labels.length-1;a>=0;a--){let o=this.state.labels[a];if(o.statementStart===t.start)o.statementStart=this.sourceToOffsetPos(this.state.start),o.kind=s;else break}return this.state.labels.push({name:r,kind:s,statementStart:this.sourceToOffsetPos(this.state.start)}),t.body=i&8?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),t.label=n,this.finishNode(t,"LabeledStatement")}parseExpressionStatement(t,r,n){return t.expression=r,this.semicolon(),this.finishNode(t,"ExpressionStatement")}parseBlock(t=!1,r=!0,n){let i=this.startNode();return t&&this.state.strictErrors.clear(),this.expect(5),r&&this.scope.enter(0),this.parseBlockBody(i,t,!1,8,n),r&&this.scope.exit(),this.finishNode(i,"BlockStatement")}isValidDirective(t){return t.type==="ExpressionStatement"&&t.expression.type==="StringLiteral"&&!t.expression.extra.parenthesized}parseBlockBody(t,r,n,i,s){let a=t.body=[],o=t.directives=[];this.parseBlockOrModuleBlockBody(a,r?o:void 0,n,i,s)}parseBlockOrModuleBlockBody(t,r,n,i,s){let a=this.state.strict,o=!1,u=!1;for(;!this.match(i);){let l=n?this.parseModuleItem():this.parseStatementListItem();if(r&&!u){if(this.isValidDirective(l)){let c=this.stmtToDirective(l);r.push(c),!o&&c.value.value==="use strict"&&(o=!0,this.setStrict(!0));continue}u=!0,this.state.strictErrors.clear()}t.push(l)}s==null||s.call(this,o),a||this.setStrict(!1),this.next()}parseFor(t,r){return t.init=r,this.semicolon(!1),t.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),t.update=this.match(11)?null:this.parseExpression(),this.expect(11),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(t,"ForStatement")}parseForIn(t,r,n){let i=this.match(58);return this.next(),i?n!==null&&this.unexpected(n):t.await=n!==null,r.type==="VariableDeclaration"&&r.declarations[0].init!=null&&(!i||!this.options.annexB||this.state.strict||r.kind!=="var"||r.declarations[0].id.type!=="Identifier")&&this.raise(w.ForInOfLoopInitializer,r,{type:i?"ForInStatement":"ForOfStatement"}),r.type==="AssignmentPattern"&&this.raise(w.InvalidLhs,r,{ancestor:{type:"ForStatement"}}),t.left=r,t.right=i?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(t,i?"ForInStatement":"ForOfStatement")}parseVar(t,r,n,i=!1){let s=t.declarations=[];for(t.kind=n;;){let a=this.startNode();if(this.parseVarId(a,n),a.init=this.eat(29)?r?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,a.init===null&&!i&&(a.id.type!=="Identifier"&&!(r&&(this.match(58)||this.isContextual(102)))?this.raise(w.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"}):(n==="const"||n==="using"||n==="await using")&&!(this.match(58)||this.isContextual(102))&&this.raise(w.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:n})),s.push(this.finishNode(a,"VariableDeclarator")),!this.eat(12))break}return t}parseVarId(t,r){let n=this.parseBindingAtom();r==="using"||r==="await using"?(n.type==="ArrayPattern"||n.type==="ObjectPattern")&&this.raise(w.UsingDeclarationHasBindingPattern,n.loc.start):n.type==="VoidPattern"&&this.raise(w.UnexpectedVoidPattern,n.loc.start),this.checkLVal(n,{type:"VariableDeclarator"},r==="var"?5:8201),t.id=n}parseAsyncFunctionExpression(t){return this.parseFunction(t,8)}parseFunction(t,r=0){let n=r&2,i=!!(r&1),s=i&&!(r&4),a=!!(r&8);this.initFunction(t,a),this.match(55)&&(n&&this.raise(w.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),t.generator=!0),i&&(t.id=this.parseFunctionId(s));let o=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(514),this.prodParam.enter(Gl(a,t.generator)),i||(t.id=this.parseFunctionId()),this.parseFunctionParams(t,!1),this.withSmartMixTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(t,i?"FunctionDeclaration":"FunctionExpression")}),this.prodParam.exit(),this.scope.exit(),i&&!n&&this.registerFunctionStatementId(t),this.state.maybeInArrowParameters=o,t}parseFunctionId(t){return t||Fe(this.state.type)?this.parseIdentifier():null}parseFunctionParams(t,r){this.expect(10),this.expressionScope.enter(x4()),t.params=this.parseBindingList(11,41,2|(r?4:0)),this.expressionScope.exit()}registerFunctionStatementId(t){t.id&&this.scope.declareName(t.id.name,!this.options.annexB||this.state.strict||t.generator||t.async?this.scope.treatFunctionsAsVar?5:8201:17,t.id.loc.start)}parseClass(t,r,n){this.next();let i=this.state.strict;return this.state.strict=!0,this.parseClassId(t,r,n),this.parseClassSuper(t),t.body=this.parseClassBody(!!t.superClass,i),this.finishNode(t,r?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}nameIsConstructor(t){return t.type==="Identifier"&&t.name==="constructor"||t.type==="StringLiteral"&&t.value==="constructor"}isNonstaticConstructor(t){return!t.computed&&!t.static&&this.nameIsConstructor(t.key)}parseClassBody(t,r){this.classScope.enter();let n={hadConstructor:!1,hadSuperClass:t},i=[],s=this.startNode();if(s.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{for(;!this.match(8);){if(this.eat(13)){if(i.length>0)throw this.raise(w.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(26)){i.push(this.parseDecorator());continue}let a=this.startNode();i.length&&(a.decorators=i,this.resetStartLocationFromNode(a,i[0]),i=[]),this.parseClassMember(s,a,n),a.kind==="constructor"&&a.decorators&&a.decorators.length>0&&this.raise(w.DecoratorConstructor,a)}}),this.state.strict=r,this.next(),i.length)throw this.raise(w.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(s,"ClassBody")}parseClassMemberFromModifier(t,r){let n=this.parseIdentifier(!0);if(this.isClassMethod()){let i=r;return i.kind="method",i.computed=!1,i.key=n,i.static=!1,this.pushClassMethod(t,i,!1,!1,!1,!1),!0}else if(this.isClassProperty()){let i=r;return i.computed=!1,i.key=n,i.static=!1,t.body.push(this.parseClassProperty(i)),!0}return this.resetPreviousNodeTrailingComments(n),!1}parseClassMember(t,r,n){let i=this.isContextual(106);if(i){if(this.parseClassMemberFromModifier(t,r))return;if(this.eat(5)){this.parseClassStaticBlock(t,r);return}}this.parseClassMemberWithIsStatic(t,r,n,i)}parseClassMemberWithIsStatic(t,r,n,i){let s=r,a=r,o=r,u=r,l=r,c=s,p=s;if(r.static=i,this.parsePropertyNamePrefixOperator(r),this.eat(55)){c.kind="method";let g=this.match(139);if(this.parseClassElementName(c),this.parsePostMemberNameModifiers(c),g){this.pushClassPrivateMethod(t,a,!0,!1);return}this.isNonstaticConstructor(s)&&this.raise(w.ConstructorIsGenerator,s.key),this.pushClassMethod(t,s,!0,!1,!1,!1);return}let h=!this.state.containsEsc&&Fe(this.state.type),d=this.parseClassElementName(r),f=h?d.name:null,y=this.isPrivateName(d),x=this.state.startLoc;if(this.parsePostMemberNameModifiers(p),this.isClassMethod()){if(c.kind="method",y){this.pushClassPrivateMethod(t,a,!1,!1);return}let g=this.isNonstaticConstructor(s),m=!1;g&&(s.kind="constructor",n.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(w.DuplicateConstructor,d),g&&this.hasPlugin("typescript")&&r.override&&this.raise(w.OverrideOnConstructor,d),n.hadConstructor=!0,m=n.hadSuperClass),this.pushClassMethod(t,s,!1,!1,g,m)}else if(this.isClassProperty())y?this.pushClassPrivateProperty(t,u):this.pushClassProperty(t,o);else if(f==="async"&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(d);let g=this.eat(55);p.optional&&this.unexpected(x),c.kind="method";let m=this.match(139);this.parseClassElementName(c),this.parsePostMemberNameModifiers(p),m?this.pushClassPrivateMethod(t,a,g,!0):(this.isNonstaticConstructor(s)&&this.raise(w.ConstructorIsAsync,s.key),this.pushClassMethod(t,s,g,!0,!1,!1))}else if((f==="get"||f==="set")&&!(this.match(55)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(d),c.kind=f;let g=this.match(139);this.parseClassElementName(s),g?this.pushClassPrivateMethod(t,a,!1,!1):(this.isNonstaticConstructor(s)&&this.raise(w.ConstructorIsAccessor,s.key),this.pushClassMethod(t,s,!1,!1,!1,!1)),this.checkGetterSetterParams(s)}else if(f==="accessor"&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(d);let g=this.match(139);this.parseClassElementName(o),this.pushClassAccessorProperty(t,l,g)}else this.isLineTerminator()?y?this.pushClassPrivateProperty(t,u):this.pushClassProperty(t,o):this.unexpected()}parseClassElementName(t){let{type:r,value:n}=this.state;if((r===132||r===134)&&t.static&&n==="prototype"&&this.raise(w.StaticPrototype,this.state.startLoc),r===139){n==="constructor"&&this.raise(w.ConstructorClassPrivateField,this.state.startLoc);let i=this.parsePrivateName();return t.key=i,i}return this.parsePropertyName(t),t.key}parseClassStaticBlock(t,r){var s;this.scope.enter(720);let n=this.state.labels;this.state.labels=[],this.prodParam.enter(0);let i=r.body=[];this.parseBlockOrModuleBlockBody(i,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=n,t.body.push(this.finishNode(r,"StaticBlock")),(s=r.decorators)!=null&&s.length&&this.raise(w.DecoratorStaticBlock,r)}pushClassProperty(t,r){!r.computed&&this.nameIsConstructor(r.key)&&this.raise(w.ConstructorClassField,r.key),t.body.push(this.parseClassProperty(r))}pushClassPrivateProperty(t,r){let n=this.parseClassPrivateProperty(r);t.body.push(n),this.classScope.declarePrivateName(this.getPrivateNameSV(n.key),0,n.key.loc.start)}pushClassAccessorProperty(t,r,n){!n&&!r.computed&&this.nameIsConstructor(r.key)&&this.raise(w.ConstructorClassField,r.key);let i=this.parseClassAccessorProperty(r);t.body.push(i),n&&this.classScope.declarePrivateName(this.getPrivateNameSV(i.key),0,i.key.loc.start)}pushClassMethod(t,r,n,i,s,a){t.body.push(this.parseMethod(r,n,i,s,a,"ClassMethod",!0))}pushClassPrivateMethod(t,r,n,i){let s=this.parseMethod(r,n,i,!1,!1,"ClassPrivateMethod",!0);t.body.push(s);let a=s.kind==="get"?s.static?6:2:s.kind==="set"?s.static?5:1:0;this.declareClassPrivateMethodInScope(s,a)}declareClassPrivateMethodInScope(t,r){this.classScope.declarePrivateName(this.getPrivateNameSV(t.key),r,t.key.loc.start)}parsePostMemberNameModifiers(t){}parseClassPrivateProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassPrivateProperty")}parseClassProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassProperty")}parseClassAccessorProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassAccessorProperty")}parseInitializer(t){this.scope.enter(592),this.expressionScope.enter(av()),this.prodParam.enter(0),t.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(t,r,n,i=8331){if(Fe(this.state.type))t.id=this.parseIdentifier(),r&&this.declareNameFromIdentifier(t.id,i);else if(n||!r)t.id=null;else throw this.raise(w.MissingClassName,this.state.startLoc)}parseClassSuper(t){t.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(t,r){var h;let n=this.parseMaybeImportPhase(t,!0),i=this.maybeParseExportDefaultSpecifier(t,n),s=!i||this.eat(12),a=s&&this.eatExportStar(t),o=a&&this.maybeParseExportNamespaceSpecifier(t),u=s&&(!o||this.eat(12)),l=i||a;if(a&&!o){if(i&&this.unexpected(),r)throw this.raise(w.UnsupportedDecoratorExport,t);return this.parseExportFrom(t,!0),this.sawUnambiguousESM=!0,this.finishNode(t,"ExportAllDeclaration")}let c=this.maybeParseExportNamedSpecifiers(t);i&&s&&!a&&!c&&this.unexpected(null,5),o&&u&&this.unexpected(null,98);let p;if(l||c){if(p=!1,r)throw this.raise(w.UnsupportedDecoratorExport,t);this.parseExportFrom(t,l)}else p=this.maybeParseExportDeclaration(t);if(l||c||p){let d=t;if(this.checkExport(d,!0,!1,!!d.source),((h=d.declaration)==null?void 0:h.type)==="ClassDeclaration")this.maybeTakeDecorators(r,d.declaration,d);else if(r)throw this.raise(w.UnsupportedDecoratorExport,t);return this.sawUnambiguousESM=!0,this.finishNode(d,"ExportNamedDeclaration")}if(this.eat(65)){let d=t,f=this.parseExportDefaultExpression();if(d.declaration=f,f.type==="ClassDeclaration")this.maybeTakeDecorators(r,f,d);else if(r)throw this.raise(w.UnsupportedDecoratorExport,t);return this.checkExport(d,!0,!0),this.sawUnambiguousESM=!0,this.finishNode(d,"ExportDefaultDeclaration")}throw this.unexpected(null,5)}eatExportStar(t){return this.eat(55)}maybeParseExportDefaultSpecifier(t,r){if(r||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",r==null?void 0:r.loc.start);let n=r||this.parseIdentifier(!0),i=this.startNodeAtNode(n);return i.exported=n,t.specifiers=[this.finishNode(i,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(t){if(this.isContextual(93)){t.specifiers??(t.specifiers=[]);let r=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),r.exported=this.parseModuleExportName(),t.specifiers.push(this.finishNode(r,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(t){if(this.match(5)){let r=t;r.specifiers||(r.specifiers=[]);let n=r.exportKind==="type";return r.specifiers.push(...this.parseExportSpecifiers(n)),r.source=null,r.attributes=[],r.declaration=null,!0}return!1}maybeParseExportDeclaration(t){return this.shouldParseExportDeclaration()?(t.specifiers=[],t.source=null,t.attributes=[],t.declaration=this.parseExportDeclaration(t),!0):!1}isAsyncFunction(){if(!this.isContextual(95))return!1;let t=this.nextTokenInLineStart();return this.isUnparsedContextual(t,"function")}parseExportDefaultExpression(){let t=this.startNode();if(this.match(68))return this.next(),this.parseFunction(t,5);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(t,13);if(this.match(80))return this.parseClass(t,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(w.DecoratorBeforeExport,this.state.startLoc),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet()||this.isUsing()||this.isAwaitUsing())throw this.raise(w.UnsupportedDefaultExport,this.state.startLoc);let r=this.parseMaybeAssignAllowIn();return this.semicolon(),r}parseExportDeclaration(t){return this.match(80)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()}isExportDefaultSpecifier(){let{type:t}=this.state;if(Fe(t)){if(t===95&&!this.state.containsEsc||t===100)return!1;if((t===130||t===129)&&!this.state.containsEsc){let i=this.nextTokenStart(),s=this.input.charCodeAt(i);if(s===123||this.chStartsBindingIdentifier(s,i)&&!this.input.startsWith("from",i))return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;let r=this.nextTokenStart(),n=this.isUnparsedContextual(r,"from");if(this.input.charCodeAt(r)===44||Fe(this.state.type)&&n)return!0;if(this.match(65)&&n){let i=this.input.charCodeAt(this.nextTokenStartSince(r+4));return i===34||i===39}return!1}parseExportFrom(t,r){this.eatContextual(98)?(t.source=this.parseImportSource(),this.checkExport(t),this.maybeParseImportAttributes(t),this.checkJSONModuleImport(t)):r&&this.unexpected(),this.semicolon()}shouldParseExportDeclaration(){let{type:t}=this.state;return t===26&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(w.DecoratorBeforeExport,this.state.startLoc),!0):this.isUsing()?(this.raise(w.UsingDeclarationExport,this.state.startLoc),!0):this.isAwaitUsing()?(this.raise(w.UsingDeclarationExport,this.state.startLoc),!0):t===74||t===75||t===68||t===80||this.isLet()||this.isAsyncFunction()}checkExport(t,r,n,i){var s,a;if(r){if(n){if(this.checkDuplicateExports(t,"default"),this.hasPlugin("exportDefaultFrom")){let o=t.declaration;o.type==="Identifier"&&o.name==="from"&&o.end-o.start===4&&!((s=o.extra)!=null&&s.parenthesized)&&this.raise(w.ExportDefaultFromAsIdentifier,o)}}else if((a=t.specifiers)!=null&&a.length)for(let o of t.specifiers){let{exported:u}=o,l=u.type==="Identifier"?u.name:u.value;if(this.checkDuplicateExports(o,l),!i&&o.local){let{local:c}=o;c.type!=="Identifier"?this.raise(w.ExportBindingIsString,o,{localName:c.value,exportName:l}):(this.checkReservedWord(c.name,c.loc.start,!0,!1),this.scope.checkLocalExport(c))}}else if(t.declaration){let o=t.declaration;if(o.type==="FunctionDeclaration"||o.type==="ClassDeclaration"){let{id:u}=o;if(!u)throw new Error("Assertion failure");this.checkDuplicateExports(t,u.name)}else if(o.type==="VariableDeclaration")for(let u of o.declarations)this.checkDeclaration(u.id)}}}checkDeclaration(t){if(t.type==="Identifier")this.checkDuplicateExports(t,t.name);else if(t.type==="ObjectPattern")for(let r of t.properties)this.checkDeclaration(r);else if(t.type==="ArrayPattern")for(let r of t.elements)r&&this.checkDeclaration(r);else t.type==="ObjectProperty"?this.checkDeclaration(t.value):t.type==="RestElement"?this.checkDeclaration(t.argument):t.type==="AssignmentPattern"&&this.checkDeclaration(t.left)}checkDuplicateExports(t,r){this.exportedIdentifiers.has(r)&&(r==="default"?this.raise(w.DuplicateDefaultExport,t):this.raise(w.DuplicateExport,t,{exportName:r})),this.exportedIdentifiers.add(r)}parseExportSpecifiers(t){let r=[],n=!0;for(this.expect(5);!this.eat(8);){if(n)n=!1;else if(this.expect(12),this.eat(8))break;let i=this.isContextual(130),s=this.match(134),a=this.startNode();a.local=this.parseModuleExportName(),r.push(this.parseExportSpecifier(a,s,t,i))}return r}parseExportSpecifier(t,r,n,i){return this.eatContextual(93)?t.exported=this.parseModuleExportName():r?t.exported=this.cloneStringLiteral(t.local):t.exported||(t.exported=this.cloneIdentifier(t.local)),this.finishNode(t,"ExportSpecifier")}parseModuleExportName(){if(this.match(134)){let t=this.parseStringLiteral(this.state.value),r=j4.exec(t.value);return r&&this.raise(w.ModuleExportNameHasLoneSurrogate,t,{surrogateCharCode:r[0].charCodeAt(0)}),t}return this.parseIdentifier(!0)}isJSONModuleImport(t){return t.assertions!=null?t.assertions.some(({key:r,value:n})=>n.value==="json"&&(r.type==="Identifier"?r.name==="type":r.value==="type")):!1}checkImportReflection(t){var i;let{specifiers:r}=t,n=r.length===1?r[0].type:null;t.phase==="source"?n!=="ImportDefaultSpecifier"&&this.raise(w.SourcePhaseImportRequiresDefault,r[0].loc.start):t.phase==="defer"?n!=="ImportNamespaceSpecifier"&&this.raise(w.DeferImportRequiresNamespace,r[0].loc.start):t.module&&(n!=="ImportDefaultSpecifier"&&this.raise(w.ImportReflectionNotBinding,r[0].loc.start),((i=t.assertions)==null?void 0:i.length)>0&&this.raise(w.ImportReflectionHasAssertion,r[0].loc.start))}checkJSONModuleImport(t){if(this.isJSONModuleImport(t)&&t.type!=="ExportAllDeclaration"){let{specifiers:r}=t;if(r!=null){let n=r.find(i=>{let s;if(i.type==="ExportSpecifier"?s=i.local:i.type==="ImportSpecifier"&&(s=i.imported),s!==void 0)return s.type==="Identifier"?s.name!=="default":s.value!=="default"});n!==void 0&&this.raise(w.ImportJSONBindingNotDefault,n.loc.start)}}}isPotentialImportPhase(t){return t?!1:this.isContextual(105)||this.isContextual(97)}applyImportPhase(t,r,n,i){r||(this.hasPlugin("importReflection")&&(t.module=!1),n==="source"?(this.expectPlugin("sourcePhaseImports",i),t.phase="source"):n==="defer"?(this.expectPlugin("deferredImportEvaluation",i),t.phase="defer"):this.hasPlugin("sourcePhaseImports")&&(t.phase=null))}parseMaybeImportPhase(t,r){if(!this.isPotentialImportPhase(r))return this.applyImportPhase(t,r,null),null;let n=this.startNode(),i=this.parseIdentifierName(!0),{type:s}=this.state;return(Lr(s)?s!==98||this.lookaheadCharCode()===102:s!==12)?(this.applyImportPhase(t,r,i,n.loc.start),null):(this.applyImportPhase(t,r,null),this.createIdentifier(n,i))}isPrecedingIdImportPhase(t){let{type:r}=this.state;return Fe(r)?r!==98||this.lookaheadCharCode()===102:r!==12}parseImport(t){return this.match(134)?this.parseImportSourceAndAttributes(t):this.parseImportSpecifiersAndAfter(t,this.parseMaybeImportPhase(t,!1))}parseImportSpecifiersAndAfter(t,r){t.specifiers=[];let n=!this.maybeParseDefaultImportSpecifier(t,r)||this.eat(12),i=n&&this.maybeParseStarImportSpecifier(t);return n&&!i&&this.parseNamedImportSpecifiers(t),this.expectContextual(98),this.parseImportSourceAndAttributes(t)}parseImportSourceAndAttributes(t){return t.specifiers??(t.specifiers=[]),t.source=this.parseImportSource(),this.maybeParseImportAttributes(t),this.checkImportReflection(t),this.checkJSONModuleImport(t),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(t,"ImportDeclaration")}parseImportSource(){return this.match(134)||this.unexpected(),this.parseExprAtom()}parseImportSpecifierLocal(t,r,n){r.local=this.parseIdentifier(),t.specifiers.push(this.finishImportSpecifier(r,n))}finishImportSpecifier(t,r,n=8201){return this.checkLVal(t.local,{type:r},n),this.finishNode(t,r)}parseImportAttributes(){this.expect(5);let t=[],r=new Set;do{if(this.match(8))break;let n=this.startNode(),i=this.state.value;if(r.has(i)&&this.raise(w.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:i}),r.add(i),this.match(134)?n.key=this.parseStringLiteral(i):n.key=this.parseIdentifier(!0),this.expect(14),!this.match(134))throw this.raise(w.ModuleAttributeInvalidValue,this.state.startLoc);n.value=this.parseStringLiteral(this.state.value),t.push(this.finishNode(n,"ImportAttribute"))}while(this.eat(12));return this.expect(8),t}parseModuleAttributes(){let t=[],r=new Set;do{let n=this.startNode();if(n.key=this.parseIdentifier(!0),n.key.name!=="type"&&this.raise(w.ModuleAttributeDifferentFromType,n.key),r.has(n.key.name)&&this.raise(w.ModuleAttributesWithDuplicateKeys,n.key,{key:n.key.name}),r.add(n.key.name),this.expect(14),!this.match(134))throw this.raise(w.ModuleAttributeInvalidValue,this.state.startLoc);n.value=this.parseStringLiteral(this.state.value),t.push(this.finishNode(n,"ImportAttribute"))}while(this.eat(12));return t}maybeParseImportAttributes(t){let r;if(this.match(76)){if(this.hasPrecedingLineBreak()&&this.lookaheadCharCode()===40)return;this.next(),r=this.parseImportAttributes()}else this.isContextual(94)&&!this.hasPrecedingLineBreak()?(this.hasPlugin("deprecatedImportAssert")||this.raise(w.ImportAttributesUseAssert,this.state.startLoc),this.addExtra(t,"deprecatedAssertSyntax",!0),this.next(),r=this.parseImportAttributes()):r=[];t.attributes=r}maybeParseDefaultImportSpecifier(t,r){if(r){let n=this.startNodeAtNode(r);return n.local=r,t.specifiers.push(this.finishImportSpecifier(n,"ImportDefaultSpecifier")),!0}else if(Lr(this.state.type))return this.parseImportSpecifierLocal(t,this.startNode(),"ImportDefaultSpecifier"),!0;return!1}maybeParseStarImportSpecifier(t){if(this.match(55)){let r=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(t,r,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(t){let r=!0;for(this.expect(5);!this.eat(8);){if(r)r=!1;else{if(this.eat(14))throw this.raise(w.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}let n=this.startNode(),i=this.match(134),s=this.isContextual(130);n.imported=this.parseModuleExportName();let a=this.parseImportSpecifier(n,i,t.importKind==="type"||t.importKind==="typeof",s,void 0);t.specifiers.push(a)}}parseImportSpecifier(t,r,n,i,s){if(this.eatContextual(93))t.local=this.parseIdentifier();else{let{imported:a}=t;if(r)throw this.raise(w.ImportBindingIsString,t,{importName:a.value});this.checkReservedWord(a.name,t.loc.start,!0,!0),t.local||(t.local=this.cloneIdentifier(a))}return this.finishImportSpecifier(t,"ImportSpecifier",s)}isThisParam(t){return t.type==="Identifier"&&t.name==="this"}},cv=class extends U4{constructor(t,r,n){let i=vI(t);super(i,r),this.options=i,this.initializeScopes(),this.plugins=n,this.filename=i.sourceFilename,this.startIndex=i.startIndex;let s=0;i.allowAwaitOutsideFunction&&(s|=1),i.allowReturnOutsideFunction&&(s|=2),i.allowImportExportEverywhere&&(s|=8),i.allowSuperOutsideMethod&&(s|=16),i.allowUndeclaredExports&&(s|=64),i.allowNewTargetOutsideFunction&&(s|=4),i.allowYieldOutsideFunction&&(s|=32),i.ranges&&(s|=128),i.tokens&&(s|=256),i.createImportExpressions&&(s|=512),i.createParenthesizedExpressions&&(s|=1024),i.errorRecovery&&(s|=2048),i.attachComment&&(s|=4096),i.annexB&&(s|=8192),this.optionFlags=s}getScopeHandler(){return dy}parse(){this.enterInitialScopes();let t=this.startNode(),r=this.startNode();this.nextToken(),t.errors=null;let n=this.parseTopLevel(t,r);return n.errors=this.state.errors,n.comments.length=this.state.commentsLen,n}};function pv(e,t){if((t==null?void 0:t.sourceType)==="unambiguous"){t=Object.assign({},t);try{t.sourceType="module";let r=bo(t,e),n=r.parse();if(r.sawUnambiguousESM)return n;if(r.ambiguousScriptDifferentAst)try{return t.sourceType="script",bo(t,e).parse()}catch{}else n.program.sourceType="script";return n}catch(r){try{return t.sourceType="script",bo(t,e).parse()}catch{}throw r}}else return bo(t,e).parse()}function hv(e,t){let r=bo(t,e);return r.options.strictMode&&(r.state.strict=!0),r.getExpression()}function V4(e){let t={};for(let r of Object.keys(e))t[r]=XC(e[r]);return t}V4(FI);function bo(e,t){let r=cv,n=new Map;if(e!=null&&e.plugins){for(let i of e.plugins){let s,a;typeof i=="string"?s=i:[s,a]=i,n.has(s)||n.set(s,a||{})}L4(n),r=z4(n)}return new r(e,t,n)}var k1=new Map;function z4(e){let t=[];for(let i of $4)e.has(i)&&t.push(i);let r=t.join("|"),n=k1.get(r);if(!n){n=cv;for(let i of t)n=lv[i](n);k1.set(r,n)}return n}function dv(e){return(t,r,n)=>{let i=!!(n!=null&&n.backwards);if(r===!1)return!1;let{length:s}=t,a=r;for(;a>=0&&ae===` -`||e==="\r"||e==="\u2028"||e==="\u2029";function X4(e,t,r){let n=!!(r!=null&&r.backwards);if(t===!1)return!1;let i=e.charAt(t);if(n){if(e.charAt(t-1)==="\r"&&i===` -`)return t-2;if(N1(i))return t-1}else{if(i==="\r"&&e.charAt(t+1)===` -`)return t+2;if(N1(i))return t+1}return t}var K4=X4;function G4(e,t){return t===!1?!1:e.charAt(t)==="/"&&e.charAt(t+1)==="/"?H4(e,t):t}var Q4=G4;function Y4(e,t){let r=null,n=t;for(;n!==r;)r=n,n=q4(e,n),n=J4(e,n),n=Q4(e,n),n=K4(e,n);return n}var Z4=Y4;function e_(e){let t=[];for(let r of e)try{return r()}catch(n){t.push(n)}throw Object.assign(new Error("All combinations failed"),{errors:t})}function t_(e){if(!e.startsWith("#!"))return"";let t=e.indexOf(` -`);return t===-1?e:e.slice(0,t)}var fv=t_,fy=(e,t)=>(r,n,...i)=>r|1&&n==null?void 0:(t.call(n)??n[e]).apply(n,i),r_=Array.prototype.findLast??function(e){for(let t=this.length-1;t>=0;t--){let r=this[t];if(e(r,t,this))return r}},n_=fy("findLast",function(){if(Array.isArray(this))return r_}),i_=n_;function s_(e){return this[e<0?this.length+e:e]}var a_=fy("at",function(){if(Array.isArray(this)||typeof this=="string")return s_}),o_=a_;function wn(e){var n,i,s;let t=((n=e.range)==null?void 0:n[0])??e.start,r=(s=((i=e.declaration)==null?void 0:i.decorators)??e.decorators)==null?void 0:s[0];return r?Math.min(wn(r),t):t}function rn(e){var t;return((t=e.range)==null?void 0:t[1])??e.end}function u_(e){let t=new Set(e);return r=>t.has(r==null?void 0:r.type)}var my=u_,l_=my(["Block","CommentBlock","MultiLine"]),yy=l_,c_=my(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose","Hashbang","InterpreterDirective"]),p_=c_,bh=new WeakMap;function h_(e){return bh.has(e)||bh.set(e,yy(e)&&e.value[0]==="*"&&/@(?:type|satisfies)\b/u.test(e.value)),bh.get(e)}var d_=h_;function f_(e){if(!yy(e))return!1;let t=`*${e.value}*`.split(` -`);return t.length>1&&t.every(r=>r.trimStart()[0]==="*")}var wh=new WeakMap;function m_(e){return wh.has(e)||wh.set(e,f_(e)),wh.get(e)}var B1=m_;function y_(e){if(e.length<2)return;let t;for(let r=e.length-1;r>=0;r--){let n=e[r];if(t&&rn(n)===wn(t)&&B1(n)&&B1(t)&&(e.splice(r+1,1),n.value+="*//*"+t.value,n.range=[wn(n),rn(t)]),!p_(n)&&!yy(n))throw new TypeError(`Unknown comment type: "${n.type}".`);t=n}}var g_=y_;function D_(e){return e!==null&&typeof e=="object"}var E_=D_,lo=null;function qo(e){if(lo!==null&&typeof lo.property){let t=lo;return lo=qo.prototype=null,t}return lo=qo.prototype=e??Object.create(null),new qo}var x_=10;for(let e=0;e<=x_;e++)qo();function C_(e){return qo(e)}function v_(e,t="type"){C_(e);function r(n){let i=n[t],s=e[i];if(!Array.isArray(s))throw Object.assign(new Error(`Missing visitor keys for '${i}'.`),{node:n});return s}return r}var A_=v_,S=[["decorators","key","typeAnnotation","value"],[],["elementType"],["expression"],["expression","typeAnnotation"],["left","right"],["argument"],["directives","body"],["label"],["callee","typeArguments","arguments"],["body"],["decorators","id","typeParameters","superClass","superTypeArguments","mixins","implements","body","superTypeParameters"],["id","typeParameters"],["decorators","key","typeParameters","params","returnType","body"],["decorators","variance","key","typeAnnotation","value"],["name","typeAnnotation"],["test","consequent","alternate"],["checkType","extendsType","trueType","falseType"],["value"],["id","body"],["declaration","specifiers","source","attributes"],["id"],["id","typeParameters","extends","body"],["typeAnnotation"],["id","typeParameters","right"],["body","test"],["members"],["id","init"],["exported"],["left","right","body"],["id","typeParameters","params","predicate","returnType","body"],["id","params","body","typeParameters","returnType"],["key","value"],["local"],["objectType","indexType"],["typeParameter"],["types"],["node"],["object","property"],["argument","cases"],["pattern","body","guard"],["literal"],["decorators","key","value"],["expressions"],["qualification","id"],["decorators","key","typeAnnotation"],["typeParameters","params","returnType"],["expression","typeArguments"],["params"],["parameterName","typeAnnotation"]],T_={AccessorProperty:S[0],AnyTypeAnnotation:S[1],ArgumentPlaceholder:S[1],ArrayExpression:["elements"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrayTypeAnnotation:S[2],ArrowFunctionExpression:["typeParameters","params","predicate","returnType","body"],AsConstExpression:S[3],AsExpression:S[4],AssignmentExpression:S[5],AssignmentPattern:["left","right","decorators","typeAnnotation"],AwaitExpression:S[6],BigIntLiteral:S[1],BigIntLiteralTypeAnnotation:S[1],BigIntTypeAnnotation:S[1],BinaryExpression:S[5],BindExpression:["object","callee"],BlockStatement:S[7],BooleanLiteral:S[1],BooleanLiteralTypeAnnotation:S[1],BooleanTypeAnnotation:S[1],BreakStatement:S[8],CallExpression:S[9],CatchClause:["param","body"],ChainExpression:S[3],ClassAccessorProperty:S[0],ClassBody:S[10],ClassDeclaration:S[11],ClassExpression:S[11],ClassImplements:S[12],ClassMethod:S[13],ClassPrivateMethod:S[13],ClassPrivateProperty:S[14],ClassProperty:S[14],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:S[15],ConditionalExpression:S[16],ConditionalTypeAnnotation:S[17],ContinueStatement:S[8],DebuggerStatement:S[1],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclaredPredicate:S[18],DeclareEnum:S[19],DeclareExportAllDeclaration:["source","attributes"],DeclareExportDeclaration:S[20],DeclareFunction:["id","predicate"],DeclareHook:S[21],DeclareInterface:S[22],DeclareModule:S[19],DeclareModuleExports:S[23],DeclareNamespace:S[19],DeclareOpaqueType:["id","typeParameters","supertype","lowerBound","upperBound"],DeclareTypeAlias:S[24],DeclareVariable:S[21],Decorator:S[3],Directive:S[18],DirectiveLiteral:S[1],DoExpression:S[10],DoWhileStatement:S[25],EmptyStatement:S[1],EmptyTypeAnnotation:S[1],EnumBigIntBody:S[26],EnumBigIntMember:S[27],EnumBooleanBody:S[26],EnumBooleanMember:S[27],EnumDeclaration:S[19],EnumDefaultedMember:S[21],EnumNumberBody:S[26],EnumNumberMember:S[27],EnumStringBody:S[26],EnumStringMember:S[27],EnumSymbolBody:S[26],ExistsTypeAnnotation:S[1],ExperimentalRestProperty:S[6],ExperimentalSpreadProperty:S[6],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportDefaultSpecifier:S[28],ExportNamedDeclaration:S[20],ExportNamespaceSpecifier:S[28],ExportSpecifier:["local","exported"],ExpressionStatement:S[3],File:["program"],ForInStatement:S[29],ForOfStatement:S[29],ForStatement:["init","test","update","body"],FunctionDeclaration:S[30],FunctionExpression:S[30],FunctionTypeAnnotation:["typeParameters","this","params","rest","returnType"],FunctionTypeParam:S[15],GenericTypeAnnotation:S[12],HookDeclaration:S[31],HookTypeAnnotation:["params","returnType","rest","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:S[16],ImportAttribute:S[32],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:S[33],ImportExpression:["source","options"],ImportNamespaceSpecifier:S[33],ImportSpecifier:["imported","local"],IndexedAccessType:S[34],InferredPredicate:S[1],InferTypeAnnotation:S[35],InterfaceDeclaration:S[22],InterfaceExtends:S[12],InterfaceTypeAnnotation:["extends","body"],InterpreterDirective:S[1],IntersectionTypeAnnotation:S[36],JsExpressionRoot:S[37],JsonRoot:S[37],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXClosingFragment:S[1],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:S[1],JSXExpressionContainer:S[3],JSXFragment:["openingFragment","children","closingFragment"],JSXIdentifier:S[1],JSXMemberExpression:S[38],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","typeArguments","attributes"],JSXOpeningFragment:S[1],JSXSpreadAttribute:S[6],JSXSpreadChild:S[3],JSXText:S[1],KeyofTypeAnnotation:S[6],LabeledStatement:["label","body"],Literal:S[1],LogicalExpression:S[5],MatchArrayPattern:["elements","rest"],MatchAsPattern:["pattern","target"],MatchBindingPattern:S[21],MatchExpression:S[39],MatchExpressionCase:S[40],MatchIdentifierPattern:S[21],MatchLiteralPattern:S[41],MatchMemberPattern:["base","property"],MatchObjectPattern:["properties","rest"],MatchObjectPatternProperty:["key","pattern"],MatchOrPattern:["patterns"],MatchRestPattern:S[6],MatchStatement:S[39],MatchStatementCase:S[40],MatchUnaryPattern:S[6],MatchWildcardPattern:S[1],MemberExpression:S[38],MetaProperty:["meta","property"],MethodDefinition:S[42],MixedTypeAnnotation:S[1],ModuleExpression:S[10],NeverTypeAnnotation:S[1],NewExpression:S[9],NGChainedExpression:S[43],NGEmptyExpression:S[1],NGMicrosyntax:S[10],NGMicrosyntaxAs:["key","alias"],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKey:S[1],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:S[32],NGPipeExpression:["left","right","arguments"],NGRoot:S[37],NullableTypeAnnotation:S[23],NullLiteral:S[1],NullLiteralTypeAnnotation:S[1],NumberLiteralTypeAnnotation:S[1],NumberTypeAnnotation:S[1],NumericLiteral:S[1],ObjectExpression:["properties"],ObjectMethod:S[13],ObjectPattern:["decorators","properties","typeAnnotation"],ObjectProperty:S[42],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeCallProperty:S[18],ObjectTypeIndexer:["variance","id","key","value"],ObjectTypeInternalSlot:["id","value"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:S[6],OpaqueType:["id","typeParameters","supertype","impltype","lowerBound","upperBound"],OptionalCallExpression:S[9],OptionalIndexedAccessType:S[34],OptionalMemberExpression:S[38],ParenthesizedExpression:S[3],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:S[1],PipelineTopicExpression:S[3],Placeholder:S[1],PrivateIdentifier:S[1],PrivateName:S[21],Program:S[7],Property:S[32],PropertyDefinition:S[14],QualifiedTypeIdentifier:S[44],QualifiedTypeofIdentifier:S[44],RegExpLiteral:S[1],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:S[6],SatisfiesExpression:S[4],SequenceExpression:S[43],SpreadElement:S[6],StaticBlock:S[10],StringLiteral:S[1],StringLiteralTypeAnnotation:S[1],StringTypeAnnotation:S[1],Super:S[1],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],SymbolTypeAnnotation:S[1],TaggedTemplateExpression:["tag","typeArguments","quasi"],TemplateElement:S[1],TemplateLiteral:["quasis","expressions"],ThisExpression:S[1],ThisTypeAnnotation:S[1],ThrowStatement:S[6],TopicReference:S[1],TryStatement:["block","handler","finalizer"],TSAbstractAccessorProperty:S[45],TSAbstractKeyword:S[1],TSAbstractMethodDefinition:S[32],TSAbstractPropertyDefinition:S[45],TSAnyKeyword:S[1],TSArrayType:S[2],TSAsExpression:S[4],TSAsyncKeyword:S[1],TSBigIntKeyword:S[1],TSBooleanKeyword:S[1],TSCallSignatureDeclaration:S[46],TSClassImplements:S[47],TSConditionalType:S[17],TSConstructorType:S[46],TSConstructSignatureDeclaration:S[46],TSDeclareFunction:S[31],TSDeclareKeyword:S[1],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSEnumBody:S[26],TSEnumDeclaration:S[19],TSEnumMember:["id","initializer"],TSExportAssignment:S[3],TSExportKeyword:S[1],TSExternalModuleReference:S[3],TSFunctionType:S[46],TSImportEqualsDeclaration:["id","moduleReference"],TSImportType:["options","qualifier","typeArguments","source"],TSIndexedAccessType:S[34],TSIndexSignature:["parameters","typeAnnotation"],TSInferType:S[35],TSInstantiationExpression:S[47],TSInterfaceBody:S[10],TSInterfaceDeclaration:S[22],TSInterfaceHeritage:S[47],TSIntersectionType:S[36],TSIntrinsicKeyword:S[1],TSJSDocAllType:S[1],TSJSDocNonNullableType:S[23],TSJSDocNullableType:S[23],TSJSDocUnknownType:S[1],TSLiteralType:S[41],TSMappedType:["key","constraint","nameType","typeAnnotation"],TSMethodSignature:["key","typeParameters","params","returnType"],TSModuleBlock:S[10],TSModuleDeclaration:S[19],TSNamedTupleMember:["label","elementType"],TSNamespaceExportDeclaration:S[21],TSNeverKeyword:S[1],TSNonNullExpression:S[3],TSNullKeyword:S[1],TSNumberKeyword:S[1],TSObjectKeyword:S[1],TSOptionalType:S[23],TSParameterProperty:["parameter","decorators"],TSParenthesizedType:S[23],TSPrivateKeyword:S[1],TSPropertySignature:["key","typeAnnotation"],TSProtectedKeyword:S[1],TSPublicKeyword:S[1],TSQualifiedName:S[5],TSReadonlyKeyword:S[1],TSRestType:S[23],TSSatisfiesExpression:S[4],TSStaticKeyword:S[1],TSStringKeyword:S[1],TSSymbolKeyword:S[1],TSTemplateLiteralType:["quasis","types"],TSThisType:S[1],TSTupleType:["elementTypes"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSTypeAnnotation:S[23],TSTypeAssertion:S[4],TSTypeLiteral:S[26],TSTypeOperator:S[23],TSTypeParameter:["name","constraint","default"],TSTypeParameterDeclaration:S[48],TSTypeParameterInstantiation:S[48],TSTypePredicate:S[49],TSTypeQuery:["exprName","typeArguments"],TSTypeReference:["typeName","typeArguments"],TSUndefinedKeyword:S[1],TSUnionType:S[36],TSUnknownKeyword:S[1],TSVoidKeyword:S[1],TupleTypeAnnotation:["types","elementTypes"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeAlias:S[24],TypeAnnotation:S[23],TypeCastExpression:S[4],TypeofTypeAnnotation:["argument","typeArguments"],TypeOperator:S[23],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:S[48],TypeParameterInstantiation:S[48],TypePredicate:S[49],UnaryExpression:S[6],UndefinedTypeAnnotation:S[1],UnionTypeAnnotation:S[36],UnknownTypeAnnotation:S[1],UpdateExpression:S[6],V8IntrinsicIdentifier:S[1],VariableDeclaration:["declarations"],VariableDeclarator:S[27],Variance:S[1],VoidPattern:S[1],VoidTypeAnnotation:S[1],WhileStatement:S[25],WithStatement:["object","body"],YieldExpression:S[6]},S_=A_(T_),F_=S_;function Yl(e,t){if(!E_(e))return e;if(Array.isArray(e)){for(let n=0;nd<=c);p=h&&n.slice(h,c).trim().length===0}return p?void 0:(l.extra={...l.extra,parenthesized:!0},l)}case"TemplateLiteral":if(u.expressions.length!==u.quasis.length-1)throw new Error("Malformed template literal.");break;case"TemplateElement":if(r==="flow"||r==="hermes"||r==="espree"||r==="typescript"||s){let l=wn(u)+1,c=rn(u)-(u.tail?1:2);u.range=[l,c]}break;case"VariableDeclaration":{let l=o_(0,u.declarations,-1);l!=null&&l.init&&n[rn(l)]!==";"&&(u.range=[wn(u),rn(l)]);break}case"TSParenthesizedType":return u.typeAnnotation;case"TopicReference":e.extra={...e.extra,__isUsingHackPipeline:!0};break;case"TSUnionType":case"TSIntersectionType":if(u.types.length===1)return u.types[0];break;case"ImportExpression":r==="hermes"&&u.attributes&&!u.options&&(u.options=u.attributes);break}},onLeave(u){switch(u.type){case"LogicalExpression":if(mv(u))return af(u);break;case"TSImportType":!u.source&&u.argument.type==="TSLiteralType"&&(u.source=u.argument.literal,delete u.argument);break}}}),e}function mv(e){return e.type==="LogicalExpression"&&e.right.type==="LogicalExpression"&&e.operator===e.right.operator}function af(e){return mv(e)?af({type:"LogicalExpression",operator:e.operator,left:af({type:"LogicalExpression",operator:e.operator,left:e.left,right:e.right.left,range:[wn(e.left),rn(e.right.left)]}),right:e.right.right,range:[wn(e),rn(e)]}):e}var P_=w_;function k_(e,t){let r=new SyntaxError(e+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(r,t)}var yv=k_,I1="Unexpected parseExpression() input: ";function N_(e){let{message:t,loc:r,reasonCode:n}=e;if(!r)return e;let{line:i,column:s}=r,a=e;(n==="MissingPlugin"||n==="MissingOneOfPlugins")&&(t="Unexpected token.",a=void 0);let o=` (${i}:${s})`;return t.endsWith(o)&&(t=t.slice(0,-o.length)),t.startsWith(I1)&&(t=t.slice(I1.length)),yv(t,{loc:{start:{line:i,column:s+1}},cause:a})}var gv=N_,B_=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},I_=fy("replaceAll",function(){if(typeof this=="string")return B_}),Al=I_,__=/\*\/$/,L_=/^\/\*\*?/,$_=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,O_=/(^|\s+)\/\/([^\n\r]*)/g,_1=/^(\r?\n)+/,M_=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,L1=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,j_=/(\r?\n|^) *\* ?/g,R_=[];function U_(e){let t=e.match($_);return t?t[0].trimStart():""}function V_(e){e=Al(0,e.replace(L_,"").replace(__,""),j_,"$1");let t="";for(;t!==e;)t=e,e=Al(0,e,M_,` +`):n=String.fromCharCode(r),++this.state.curLine,this.state.lineStart=this.state.pos,n}jsxReadString(t){let r="",n=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(w.UnterminatedString,this.state.startLoc);let i=this.input.charCodeAt(this.state.pos);if(i===t)break;i===38?(r+=this.input.slice(n,this.state.pos),r+=this.jsxReadEntity(),n=this.state.pos):fa(i)?(r+=this.input.slice(n,this.state.pos),r+=this.jsxReadNewLine(!1),n=this.state.pos):++this.state.pos}r+=this.input.slice(n,this.state.pos++),this.finishToken(134,r)}jsxReadEntity(){let t=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let r=10;this.codePointAtPos(this.state.pos)===120&&(r=16,++this.state.pos);let n=this.readInt(r,void 0,!1,"bail");if(n!==null&&this.codePointAtPos(this.state.pos)===59)return++this.state.pos,String.fromCodePoint(n)}else{let r=0,n=!1;for(;r++<10&&this.state.pos1){for(let s=0;s0){if(i&256){let a=!!(i&512),o=(s&4)>0;return a!==o}return!0}return i&128&&(s&8)>0?r.names.get(n)&2?!!(i&1):!1:i&2&&(s&1)>0?!0:super.isRedeclaredInScope(r,n,i)}checkLocalExport(r){let{name:n}=r;if(this.hasImport(n))return;let i=this.scopeStack.length;for(let s=i-1;s>=0;s--){let a=this.scopeStack[s].tsNames.get(n);if((a&1)>0||(a&16)>0)return}super.checkLocalExport(r)}},_5=class{constructor(){H(this,"stacks",[])}enter(t){this.stacks.push(t)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(this.currentFlags()&2)>0}get hasYield(){return(this.currentFlags()&1)>0}get hasReturn(){return(this.currentFlags()&4)>0}get hasIn(){return(this.currentFlags()&8)>0}};function ic(e,t){return(e?2:0)|(t?1:0)}var L5=class{constructor(){H(this,"sawUnambiguousESM",!1);H(this,"ambiguousScriptDifferentAst",!1)}sourceToOffsetPos(t){return t+this.startIndex}offsetToSourcePos(t){return t-this.startIndex}hasPlugin(t){if(typeof t=="string")return this.plugins.has(t);{let[r,n]=t;if(!this.hasPlugin(r))return!1;let i=this.plugins.get(r);for(let s of Object.keys(n))if((i==null?void 0:i[s])!==n[s])return!1;return!0}}getPluginOption(t,r){var n;return(n=this.plugins.get(t))==null?void 0:n[r]}};function xv(e,t){e.trailingComments===void 0?e.trailingComments=t:e.trailingComments.unshift(...t)}function $5(e,t){e.leadingComments===void 0?e.leadingComments=t:e.leadingComments.unshift(...t)}function ma(e,t){e.innerComments===void 0?e.innerComments=t:e.innerComments.unshift(...t)}function qi(e,t,r){let n=null,i=t.length;for(;n===null&&i>0;)n=t[--i];n===null||n.start>r.start?ma(e,r.comments):xv(n,r.comments)}var O5=class extends L5{addComment(t){this.filename&&(t.loc.filename=this.filename);let{commentsLen:r}=this.state;this.comments.length!==r&&(this.comments.length=r),this.comments.push(t),this.state.commentsLen++}processComment(t){let{commentStack:r}=this.state,n=r.length;if(n===0)return;let i=n-1,s=r[i];s.start===t.end&&(s.leadingNode=t,i--);let{start:a}=t;for(;i>=0;i--){let o=r[i],u=o.end;if(u>a)o.containingNode=t,this.finalizeComment(o),r.splice(i,1);else{u===a&&(o.trailingNode=t);break}}}finalizeComment(t){let{comments:r}=t;if(t.leadingNode!==null||t.trailingNode!==null)t.leadingNode!==null&&xv(t.leadingNode,r),t.trailingNode!==null&&$5(t.trailingNode,r);else{let n=t.containingNode,i=t.start;if(this.input.charCodeAt(this.offsetToSourcePos(i)-1)===44)switch(n.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":qi(n,n.properties,t);break;case"CallExpression":case"OptionalCallExpression":qi(n,n.arguments,t);break;case"ImportExpression":qi(n,[n.source,n.options??null],t);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":qi(n,n.params,t);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":qi(n,n.elements,t);break;case"ExportNamedDeclaration":case"ImportDeclaration":qi(n,n.specifiers,t);break;case"TSEnumDeclaration":ma(n,r);break;case"TSEnumBody":qi(n,n.members,t);break;default:ma(n,r)}else ma(n,r)}}finalizeRemainingComments(){let{commentStack:t}=this.state;for(let r=t.length-1;r>=0;r--)this.finalizeComment(t[r]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(t){let{commentStack:r}=this.state,{length:n}=r;if(n===0)return;let i=r[n-1];i.leadingNode===t&&(i.leadingNode=null)}takeSurroundingComments(t,r,n){let{commentStack:i}=this.state,s=i.length;if(s===0)return;let a=s-1;for(;a>=0;a--){let o=i[a],u=o.end;if(o.start===n)o.leadingNode=t;else if(u===r)o.trailingNode=t;else if(u0}set strict(t){t?this.flags|=1:this.flags&=-2}init({strictMode:t,sourceType:r,startIndex:n,startLine:i,startColumn:s}){this.strict=t===!1?!1:t===!0?!0:r==="module",this.startIndex=n,this.curLine=i,this.lineStart=-s,this.startLoc=this.endLoc=new bi(i,s,n)}get maybeInArrowParameters(){return(this.flags&2)>0}set maybeInArrowParameters(t){t?this.flags|=2:this.flags&=-3}get inType(){return(this.flags&4)>0}set inType(t){t?this.flags|=4:this.flags&=-5}get noAnonFunctionType(){return(this.flags&8)>0}set noAnonFunctionType(t){t?this.flags|=8:this.flags&=-9}get hasFlowComment(){return(this.flags&16)>0}set hasFlowComment(t){t?this.flags|=16:this.flags&=-17}get isAmbientContext(){return(this.flags&32)>0}set isAmbientContext(t){t?this.flags|=32:this.flags&=-33}get inAbstractClass(){return(this.flags&64)>0}set inAbstractClass(t){t?this.flags|=64:this.flags&=-65}get inDisallowConditionalTypesContext(){return(this.flags&128)>0}set inDisallowConditionalTypesContext(t){t?this.flags|=128:this.flags&=-129}get soloAwait(){return(this.flags&256)>0}set soloAwait(t){t?this.flags|=256:this.flags&=-257}get inFSharpPipelineDirectBody(){return(this.flags&512)>0}set inFSharpPipelineDirectBody(t){t?this.flags|=512:this.flags&=-513}get canStartJSXElement(){return(this.flags&1024)>0}set canStartJSXElement(t){t?this.flags|=1024:this.flags&=-1025}get containsEsc(){return(this.flags&2048)>0}set containsEsc(t){t?this.flags|=2048:this.flags&=-2049}get hasTopLevelAwait(){return(this.flags&4096)>0}set hasTopLevelAwait(t){t?this.flags|=4096:this.flags&=-4097}curPosition(){return new bi(this.curLine,this.pos-this.lineStart,this.pos+this.startIndex)}clone(){let t=new Ev;return t.flags=this.flags,t.startIndex=this.startIndex,t.curLine=this.curLine,t.lineStart=this.lineStart,t.startLoc=this.startLoc,t.endLoc=this.endLoc,t.errors=this.errors.slice(),t.potentialArrowAt=this.potentialArrowAt,t.noArrowAt=this.noArrowAt.slice(),t.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),t.topicContext=this.topicContext,t.labels=this.labels.slice(),t.commentsLen=this.commentsLen,t.commentStack=this.commentStack.slice(),t.pos=this.pos,t.type=this.type,t.value=this.value,t.start=this.start,t.end=this.end,t.lastTokEndLoc=this.lastTokEndLoc,t.lastTokStartLoc=this.lastTokStartLoc,t.context=this.context.slice(),t.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,t.strictErrors=this.strictErrors,t.tokensLength=this.tokensLength,t}},j5=function(e){return e>=48&&e<=57},Og={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},kl={bin:e=>e===48||e===49,oct:e=>e>=48&&e<=55,dec:e=>e>=48&&e<=57,hex:e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102};function Mg(e,t,r,n,i,s){let a=r,o=n,u=i,l="",c=null,p=r,{length:h}=t;for(;;){if(r>=h){s.unterminated(a,o,u),l+=t.slice(p,r);break}let d=t.charCodeAt(r);if(R5(e,d,t,r)){l+=t.slice(p,r);break}if(d===92){l+=t.slice(p,r);let f=U5(t,r,n,i,e==="template",s);f.ch===null&&!c?c={pos:r,lineStart:n,curLine:i}:l+=f.ch,{pos:r,lineStart:n,curLine:i}=f,p=r}else d===8232||d===8233?(++r,++i,n=r):d===10||d===13?e==="template"?(l+=t.slice(p,r)+` +`,++r,d===13&&t.charCodeAt(r)===10&&++r,++i,p=n=r):s.unterminated(a,o,u):++r}return{pos:r,str:l,firstInvalidLoc:c,lineStart:n,curLine:i}}function R5(e,t,r,n){return e==="template"?t===96||t===36&&r.charCodeAt(n+1)===123:t===(e==="double"?34:39)}function U5(e,t,r,n,i,s){let a=!i;t++;let o=l=>({pos:t,ch:l,lineStart:r,curLine:n}),u=e.charCodeAt(t++);switch(u){case 110:return o(` +`);case 114:return o("\r");case 120:{let l;return{code:l,pos:t}=hf(e,t,r,n,2,!1,a,s),o(l===null?null:String.fromCharCode(l))}case 117:{let l;return{code:l,pos:t}=vv(e,t,r,n,a,s),o(l===null?null:String.fromCodePoint(l))}case 116:return o(" ");case 98:return o("\b");case 118:return o("\v");case 102:return o("\f");case 13:e.charCodeAt(t)===10&&++t;case 10:r=t,++n;case 8232:case 8233:return o("");case 56:case 57:if(i)return o(null);s.strictNumericEscape(t-1,r,n);default:if(u>=48&&u<=55){let l=t-1,c=/^[0-7]+/.exec(e.slice(l,t+2))[0],p=parseInt(c,8);p>255&&(c=c.slice(0,-1),p=parseInt(c,8)),t+=c.length-1;let h=e.charCodeAt(t);if(c!=="0"||h===56||h===57){if(i)return o(null);s.strictNumericEscape(l,r,n)}return o(String.fromCharCode(p))}return o(String.fromCharCode(u))}}function hf(e,t,r,n,i,s,a,o){let u=t,l;return{n:l,pos:t}=Cv(e,t,r,n,16,i,s,!1,o,!a),l===null&&(a?o.invalidEscapeSequence(u,r,n):t=u-1),{code:l,pos:t}}function Cv(e,t,r,n,i,s,a,o,u,l){let c=t,p=i===16?Og.hex:Og.decBinOct,h=i===16?kl.hex:i===10?kl.dec:i===8?kl.oct:kl.bin,d=!1,f=0;for(let y=0,C=s??1/0;y=97?m=g-97+10:g>=65?m=g-65+10:j5(g)?m=g-48:m=1/0,m>=i){if(m<=9&&l)return{n:null,pos:t};if(m<=9&&u.invalidDigit(t,r,n,i))m=0;else if(a)m=0,d=!0;else break}++t,f=f*i+m}return t===c||s!=null&&t-c!==s||d?{n:null,pos:t}:{n:f,pos:t}}function vv(e,t,r,n,i,s){let a=e.charCodeAt(t),o;if(a===123){if(++t,{code:o,pos:t}=hf(e,t,r,n,e.indexOf("}",t)-t,!0,i,s),++t,o!==null&&o>1114111)if(i)s.invalidCodePoint(t,r,n);else return{code:null,pos:t}}else({code:o,pos:t}=hf(e,t,r,n,4,!1,i,s));return{code:o,pos:t}}function ho(e,t,r){return new bi(r,e-t,e)}var V5=new Set([103,109,115,105,121,117,100,118]),z5=class{constructor(t){let r=t.startIndex||0;this.type=t.type,this.value=t.value,this.start=r+t.start,this.end=r+t.end,this.loc=new Rc(t.startLoc,t.endLoc)}},q5=class extends O5{constructor(r,n){super();H(this,"isLookahead");H(this,"tokens",[]);H(this,"errorHandlers_readInt",{invalidDigit:(r,n,i,s)=>this.optionFlags&2048?(this.raise(w.InvalidDigit,ho(r,n,i),{radix:s}),!0):!1,numericSeparatorInEscapeSequence:this.errorBuilder(w.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(w.UnexpectedNumericSeparator)});H(this,"errorHandlers_readCodePoint",Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(w.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(w.InvalidCodePoint)}));H(this,"errorHandlers_readStringContents_string",Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(r,n,i)=>{this.recordStrictModeErrors(w.StrictNumericEscape,ho(r,n,i))},unterminated:(r,n,i)=>{throw this.raise(w.UnterminatedString,ho(r-1,n,i))}}));H(this,"errorHandlers_readStringContents_template",Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(w.StrictNumericEscape),unterminated:(r,n,i)=>{throw this.raise(w.UnterminatedTemplate,ho(r,n,i))}}));this.state=new M5,this.state.init(r),this.input=n,this.length=n.length,this.comments=[],this.isLookahead=!1}pushToken(r){this.tokens.length=this.state.tokensLength,this.tokens.push(r),++this.state.tokensLength}next(){this.checkKeywordEscapes(),this.optionFlags&256&&this.pushToken(new z5(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(r){return this.match(r)?(this.next(),!0):!1}match(r){return this.state.type===r}createLookaheadState(r){return{pos:r.pos,value:null,type:r.type,start:r.start,end:r.end,context:[this.curContext()],inType:r.inType,startLoc:r.startLoc,lastTokEndLoc:r.lastTokEndLoc,curLine:r.curLine,lineStart:r.lineStart,curPosition:r.curPosition}}lookahead(){let r=this.state;this.state=this.createLookaheadState(r),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;let n=this.state;return this.state=r,n}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(r){return Nh.lastIndex=r,Nh.test(this.input)?Nh.lastIndex:r}lookaheadCharCode(){return this.lookaheadCharCodeSince(this.state.pos)}lookaheadCharCodeSince(r){return this.input.charCodeAt(this.nextTokenStartSince(r))}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(r){return Bh.lastIndex=r,Bh.test(this.input)?Bh.lastIndex:r}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(r){let n=this.input.charCodeAt(r);if((n&64512)===55296&&++rthis.raise(n,i)),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){if(this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length){this.finishToken(140);return}this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(r){let n;this.isLookahead||(n=this.state.curPosition());let i=this.state.pos,s=this.input.indexOf(r,i+2);if(s===-1)throw this.raise(w.UnterminatedComment,this.state.curPosition());for(this.state.pos=s+r.length,wl.lastIndex=i+2;wl.test(this.input)&&wl.lastIndex<=s;)++this.state.curLine,this.state.lineStart=wl.lastIndex;if(this.isLookahead)return;let a={type:"CommentBlock",value:this.input.slice(i+2,s),start:this.sourceToOffsetPos(i),end:this.sourceToOffsetPos(s+r.length),loc:new Rc(n,this.state.curPosition())};return this.optionFlags&256&&this.pushToken(a),a}skipLineComment(r){let n=this.state.pos,i;this.isLookahead||(i=this.state.curPosition());let s=this.input.charCodeAt(this.state.pos+=r);if(this.state.posr)){let a=this.skipLineComment(3);a!==void 0&&(this.addComment(a),n==null||n.push(a))}else break e}else if(i===60&&!this.inModule&&this.optionFlags&8192){let s=this.state.pos;if(this.input.charCodeAt(s+1)===33&&this.input.charCodeAt(s+2)===45&&this.input.charCodeAt(s+3)===45){let a=this.skipLineComment(4);a!==void 0&&(this.addComment(a),n==null||n.push(a))}else break e}else break e}}if((n==null?void 0:n.length)>0){let i=this.state.pos,s={start:this.sourceToOffsetPos(r),end:this.sourceToOffsetPos(i),comments:n,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(s)}}finishToken(r,n){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();let i=this.state.type;this.state.type=r,this.state.value=n,this.isLookahead||this.updateContext(i)}replaceToken(r){this.state.type=r,this.updateContext()}readToken_numberSign(){if(this.state.pos===0&&this.readToken_interpreter())return;let r=this.state.pos+1,n=this.codePointAtPos(r);if(n>=48&&n<=57)throw this.raise(w.UnexpectedDigitAfterHash,this.state.curPosition());rn(n)?(++this.state.pos,this.finishToken(139,this.readWord1(n))):n===92?(++this.state.pos,this.finishToken(139,this.readWord1())):this.finishOp(27,1)}readToken_dot(){let r=this.input.charCodeAt(this.state.pos+1);if(r>=48&&r<=57){this.readNumber(!0);return}r===46&&this.input.charCodeAt(this.state.pos+2)===46?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))}readToken_slash(){this.input.charCodeAt(this.state.pos+1)===61?this.finishOp(31,2):this.finishOp(56,1)}readToken_interpreter(){if(this.state.pos!==0||this.length<2)return!1;let r=this.input.charCodeAt(this.state.pos+1);if(r!==33)return!1;let n=this.state.pos;for(this.state.pos+=1;!fa(r)&&++this.state.pos=48&&n<=57)?(this.state.pos+=2,this.finishToken(18)):(++this.state.pos,this.finishToken(17))}getTokenFromCode(r){switch(r){case 46:this.readToken_dot();return;case 40:++this.state.pos,this.finishToken(10);return;case 41:++this.state.pos,this.finishToken(11);return;case 59:++this.state.pos,this.finishToken(13);return;case 44:++this.state.pos,this.finishToken(12);return;case 91:++this.state.pos,this.finishToken(0);return;case 93:++this.state.pos,this.finishToken(3);return;case 123:++this.state.pos,this.finishToken(5);return;case 125:++this.state.pos,this.finishToken(8);return;case 58:this.hasPlugin("functionBind")&&this.input.charCodeAt(this.state.pos+1)===58?this.finishOp(15,2):(++this.state.pos,this.finishToken(14));return;case 63:this.readToken_question();return;case 96:this.readTemplateToken();return;case 48:{let n=this.input.charCodeAt(this.state.pos+1);if(n===120||n===88){this.readRadixNumber(16);return}if(n===111||n===79){this.readRadixNumber(8);return}if(n===98||n===66){this.readRadixNumber(2);return}}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:this.readNumber(!1);return;case 34:case 39:this.readString(r);return;case 47:this.readToken_slash();return;case 37:case 42:this.readToken_mult_modulo(r);return;case 124:case 38:this.readToken_pipe_amp(r);return;case 94:this.readToken_caret();return;case 43:case 45:this.readToken_plus_min(r);return;case 60:this.readToken_lt();return;case 62:this.readToken_gt();return;case 61:case 33:this.readToken_eq_excl(r);return;case 126:this.finishOp(36,1);return;case 64:this.readToken_atSign();return;case 35:this.readToken_numberSign();return;case 92:this.readWord();return;default:if(rn(r)){this.readWord(r);return}}throw this.raise(w.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(r)})}finishOp(r,n){let i=this.input.slice(this.state.pos,this.state.pos+n);this.state.pos+=n,this.finishToken(r,i)}readRegexp(){let r=this.state.startLoc,n=this.state.start+1,i,s,{pos:a}=this.state;for(;;++a){if(a>=this.length)throw this.raise(w.UnterminatedRegExp,xr(r,1));let c=this.input.charCodeAt(a);if(fa(c))throw this.raise(w.UnterminatedRegExp,xr(r,1));if(i)i=!1;else{if(c===91)s=!0;else if(c===93&&s)s=!1;else if(c===47&&!s)break;i=c===92}}let o=this.input.slice(n,a);++a;let u="",l=()=>xr(r,a+2-n);for(;a=2&&this.input.charCodeAt(n)===48;if(u){let h=this.input.slice(n,this.state.pos);if(this.recordStrictModeErrors(w.StrictOctalLiteral,i),!this.state.strict){let d=h.indexOf("_");d>0&&this.raise(w.ZeroDigitNumericSeparator,xr(i,d))}o=u&&!/[89]/.test(h)}let l=this.input.charCodeAt(this.state.pos);if(l===46&&!o&&(++this.state.pos,this.readInt(10),s=!0,l=this.input.charCodeAt(this.state.pos)),(l===69||l===101)&&!o&&(l=this.input.charCodeAt(++this.state.pos),(l===43||l===45)&&++this.state.pos,this.readInt(10)===null&&this.raise(w.InvalidOrMissingExponent,i),s=!0,l=this.input.charCodeAt(this.state.pos)),l===110&&((s||u)&&this.raise(w.InvalidBigIntLiteral,i),++this.state.pos,a=!0),rn(this.codePointAtPos(this.state.pos)))throw this.raise(w.NumberIdentifier,this.state.curPosition());let c=this.input.slice(n,this.state.pos).replace(/[_mn]/g,"");if(a){this.finishToken(136,c);return}let p=o?parseInt(c,8):parseFloat(c);this.finishToken(135,p)}readCodePoint(r){let{code:n,pos:i}=vv(this.input,this.state.pos,this.state.lineStart,this.state.curLine,r,this.errorHandlers_readCodePoint);return this.state.pos=i,n}readString(r){let{str:n,pos:i,curLine:s,lineStart:a}=Mg(r===34?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=i+1,this.state.lineStart=a,this.state.curLine=s,this.finishToken(134,n)}readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()}readTemplateToken(){let r=this.input[this.state.pos],{str:n,firstInvalidLoc:i,pos:s,curLine:a,lineStart:o}=Mg("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=s+1,this.state.lineStart=o,this.state.curLine=a,i&&(this.state.firstInvalidTemplateEscapePos=new bi(i.curLine,i.pos-i.lineStart,this.sourceToOffsetPos(i.pos))),this.input.codePointAt(s)===96?this.finishToken(24,i?null:r+n+"`"):(this.state.pos++,this.finishToken(25,i?null:r+n+"${"))}recordStrictModeErrors(r,n){let i=n.index;this.state.strict&&!this.state.strictErrors.has(i)?this.raise(r,n):this.state.strictErrors.set(i,[r,n])}readWord1(r){this.state.containsEsc=!1;let n="",i=this.state.pos,s=this.state.pos;for(r!==void 0&&(this.state.pos+=r<=65535?1:2);this.state.pos=0;u--){let l=o[u];if(l.loc.index===a)return o[u]=r(s,i);if(l.loc.indexthis.hasPlugin(n)))throw this.raise(w.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:r})}errorBuilder(r){return(n,i,s)=>{this.raise(r,ho(n,i,s))}}},H5=class{constructor(){H(this,"privateNames",new Set);H(this,"loneAccessors",new Map);H(this,"undefinedPrivateNames",new Map)}},W5=class{constructor(t){H(this,"parser");H(this,"stack",[]);H(this,"undefinedPrivateNames",new Map);this.parser=t}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new H5)}exit(){let t=this.stack.pop(),r=this.current();for(let[n,i]of Array.from(t.undefinedPrivateNames))r?r.undefinedPrivateNames.has(n)||r.undefinedPrivateNames.set(n,i):this.parser.raise(w.InvalidPrivateFieldResolution,i,{identifierName:n})}declarePrivateName(t,r,n){let{privateNames:i,loneAccessors:s,undefinedPrivateNames:a}=this.current(),o=i.has(t);if(r&3){let u=o&&s.get(t);if(u){let l=u&4,c=r&4,p=u&3,h=r&3;o=p===h||l!==c,o||s.delete(t)}else o||s.set(t,r)}o&&this.parser.raise(w.PrivateNameRedeclaration,n,{identifierName:t}),i.add(t),a.delete(t)}usePrivateName(t,r){let n;for(n of this.stack)if(n.privateNames.has(t))return;n?n.undefinedPrivateNames.set(t,r):this.parser.raise(w.InvalidPrivateFieldResolution,r,{identifierName:t})}},bp=class{constructor(t=0){this.type=t}canBeArrowParameterDeclaration(){return this.type===2||this.type===1}isCertainlyParameterDeclaration(){return this.type===3}},Av=class extends bp{constructor(r){super(r);H(this,"declarationErrors",new Map)}recordDeclarationError(r,n){let i=n.index;this.declarationErrors.set(i,[r,n])}clearDeclarationError(r){this.declarationErrors.delete(r)}iterateErrors(r){this.declarationErrors.forEach(r)}},J5=class{constructor(t){H(this,"parser");H(this,"stack",[new bp]);this.parser=t}enter(t){this.stack.push(t)}exit(){this.stack.pop()}recordParameterInitializerError(t,r){let n=r.loc.start,{stack:i}=this,s=i.length-1,a=i[s];for(;!a.isCertainlyParameterDeclaration();){if(a.canBeArrowParameterDeclaration())a.recordDeclarationError(t,n);else return;a=i[--s]}this.parser.raise(t,n)}recordArrowParameterBindingError(t,r){let{stack:n}=this,i=n[n.length-1],s=r.loc.start;if(i.isCertainlyParameterDeclaration())this.parser.raise(t,s);else if(i.canBeArrowParameterDeclaration())i.recordDeclarationError(t,s);else return}recordAsyncArrowParametersError(t){let{stack:r}=this,n=r.length-1,i=r[n];for(;i.canBeArrowParameterDeclaration();)i.type===2&&i.recordDeclarationError(w.AwaitBindingIdentifier,t),i=r[--n]}validateAsPattern(){let{stack:t}=this,r=t[t.length-1];r.canBeArrowParameterDeclaration()&&r.iterateErrors(([n,i])=>{this.parser.raise(n,i);let s=t.length-2,a=t[s];for(;a.canBeArrowParameterDeclaration();)a.clearDeclarationError(i.index),a=t[--s]})}};function X5(){return new bp(3)}function K5(){return new Av(1)}function G5(){return new Av(2)}function bv(){return new bp}var Q5=class extends q5{addExtra(t,r,n,i=!0){if(!t)return;let{extra:s}=t;s==null&&(s={},t.extra=s),i?s[r]=n:Object.defineProperty(s,r,{enumerable:i,value:n})}isContextual(t){return this.state.type===t&&!this.state.containsEsc}isUnparsedContextual(t,r){if(this.input.startsWith(r,t)){let n=this.input.charCodeAt(t+r.length);return!(us(n)||(n&64512)===55296)}return!1}isLookaheadContextual(t){let r=this.nextTokenStart();return this.isUnparsedContextual(r,t)}eatContextual(t){return this.isContextual(t)?(this.next(),!0):!1}expectContextual(t,r){if(!this.eatContextual(t)){if(r!=null)throw this.raise(r,this.state.startLoc);this.unexpected(null,t)}}canInsertSemicolon(){return this.match(140)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return $g(this.input,this.offsetToSourcePos(this.state.lastTokEndLoc.index),this.state.start)}hasFollowingLineBreak(){return $g(this.input,this.state.end,this.nextTokenStart())}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(t=!0){(t?this.isLineTerminator():this.eat(13))||this.raise(w.MissingSemicolon,this.state.lastTokEndLoc)}expect(t,r){this.eat(t)||this.unexpected(r,t)}tryParse(t,r=this.state.clone()){let n={node:null};try{let i=t((s=null)=>{throw n.node=s,n});if(this.state.errors.length>r.errors.length){let s=this.state;return this.state=r,this.state.tokensLength=s.tokensLength,{node:i,error:s.errors[r.errors.length],thrown:!1,aborted:!1,failState:s}}return{node:i,error:null,thrown:!1,aborted:!1,failState:null}}catch(i){let s=this.state;if(this.state=r,i instanceof SyntaxError)return{node:null,error:i,thrown:!0,aborted:!1,failState:s};if(i===n)return{node:n.node,error:null,thrown:!1,aborted:!0,failState:s};throw i}}checkExpressionErrors(t,r){if(!t)return!1;let{shorthandAssignLoc:n,doubleProtoLoc:i,privateKeyLoc:s,optionalParametersLoc:a,voidPatternLoc:o}=t,u=!!n||!!i||!!a||!!s||!!o;if(!r)return u;n!=null&&this.raise(w.InvalidCoverInitializedName,n),i!=null&&this.raise(w.DuplicateProto,i),s!=null&&this.raise(w.UnexpectedPrivateField,s),a!=null&&this.unexpected(a),o!=null&&this.raise(w.InvalidCoverDiscardElement,o)}isLiteralPropertyName(){return pv(this.state.type)}isPrivateName(t){return t.type==="PrivateName"}getPrivateNameSV(t){return t.id.name}hasPropertyAsPrivateName(t){return(t.type==="MemberExpression"||t.type==="OptionalMemberExpression")&&this.isPrivateName(t.property)}isObjectProperty(t){return t.type==="ObjectProperty"}isObjectMethod(t){return t.type==="ObjectMethod"}initializeScopes(t=this.options.sourceType==="module"){let r=this.state.labels;this.state.labels=[];let n=this.exportedIdentifiers;this.exportedIdentifiers=new Set;let i=this.inModule;this.inModule=t;let s=this.scope,a=this.getScopeHandler();this.scope=new a(this,t);let o=this.prodParam;this.prodParam=new _5;let u=this.classScope;this.classScope=new W5(this);let l=this.expressionScope;return this.expressionScope=new J5(this),()=>{this.state.labels=r,this.exportedIdentifiers=n,this.inModule=i,this.scope=s,this.prodParam=o,this.classScope=u,this.expressionScope=l}}enterInitialScopes(){let t=0;(this.inModule||this.optionFlags&1)&&(t|=2),this.optionFlags&32&&(t|=1);let r=!this.inModule&&this.options.sourceType==="commonjs";(r||this.optionFlags&2)&&(t|=4),this.prodParam.enter(t);let n=r?514:1;this.optionFlags&4&&(n|=512),this.optionFlags&16&&(n|=48),this.scope.enter(n)}checkDestructuringPrivate(t){let{privateKeyLoc:r}=t;r!==null&&this.expectPlugin("destructuringPrivate",r)}},sc=class{constructor(){H(this,"shorthandAssignLoc",null);H(this,"doubleProtoLoc",null);H(this,"privateKeyLoc",null);H(this,"optionalParametersLoc",null);H(this,"voidPatternLoc",null)}},df=class{constructor(t,r,n){H(this,"type","");this.start=r,this.end=0,this.loc=new Rc(n),(t==null?void 0:t.optionFlags)&128&&(this.range=[r,0]),t!=null&&t.filename&&(this.loc.filename=t.filename)}},jg=df.prototype,Y5=class extends Q5{startNode(){let t=this.state.startLoc;return new df(this,t.index,t)}startNodeAt(t){return new df(this,t.index,t)}startNodeAtNode(t){return this.startNodeAt(t.loc.start)}finishNode(t,r){return this.finishNodeAt(t,r,this.state.lastTokEndLoc)}finishNodeAt(t,r,n){return t.type=r,t.end=n.index,t.loc.end=n,this.optionFlags&128&&(t.range[1]=n.index),this.optionFlags&4096&&this.processComment(t),t}resetStartLocation(t,r){t.start=r.index,t.loc.start=r,this.optionFlags&128&&(t.range[0]=r.index)}resetEndLocation(t,r=this.state.lastTokEndLoc){t.end=r.index,t.loc.end=r,this.optionFlags&128&&(t.range[1]=r.index)}resetStartLocationFromNode(t,r){this.resetStartLocation(t,r.loc.start)}castNodeTo(t,r){return t.type=r,t}cloneIdentifier(t){let{type:r,start:n,end:i,loc:s,range:a,name:o}=t,u=Object.create(jg);return u.type=r,u.start=n,u.end=i,u.loc=s,u.range=a,u.name=o,t.extra&&(u.extra=t.extra),u}cloneStringLiteral(t){let{type:r,start:n,end:i,loc:s,range:a,extra:o}=t,u=Object.create(jg);return u.type=r,u.start=n,u.end=i,u.loc=s,u.range=a,u.extra=o,u.value=t.value,u}},ff=e=>e.type==="ParenthesizedExpression"?ff(e.expression):e,Z5=class extends Y5{toAssignable(t,r=!1){var i,s,a;let n;switch((t.type==="ParenthesizedExpression"||(i=t.extra)!=null&&i.parenthesized)&&(n=ff(t),r?n.type==="Identifier"?this.expressionScope.recordArrowParameterBindingError(w.InvalidParenthesizedAssignment,t):n.type!=="CallExpression"&&n.type!=="MemberExpression"&&!this.isOptionalMemberExpression(n)&&this.raise(w.InvalidParenthesizedAssignment,t):this.raise(w.InvalidParenthesizedAssignment,t)),t.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":break;case"ObjectExpression":this.castNodeTo(t,"ObjectPattern");for(let o=0,u=t.properties.length,l=u-1;oi.type!=="ObjectMethod"&&(s===n||i.type!=="SpreadElement")&&this.isAssignable(i))}case"ObjectProperty":return this.isAssignable(t.value);case"SpreadElement":return this.isAssignable(t.argument);case"ArrayExpression":return t.elements.every(n=>n===null||this.isAssignable(n));case"AssignmentExpression":return t.operator==="=";case"ParenthesizedExpression":return this.isAssignable(t.expression);case"MemberExpression":case"OptionalMemberExpression":return!r;default:return!1}}toReferencedList(t,r){return t}toReferencedListDeep(t,r){this.toReferencedList(t,r);for(let n of t)(n==null?void 0:n.type)==="ArrayExpression"&&this.toReferencedListDeep(n.elements)}parseSpread(t){let r=this.startNode();return this.next(),r.argument=this.parseMaybeAssignAllowIn(t,void 0),this.finishNode(r,"SpreadElement")}parseRestBinding(){let t=this.startNode();this.next();let r=this.parseBindingAtom();return r.type==="VoidPattern"&&this.raise(w.UnexpectedVoidPattern,r),t.argument=r,this.finishNode(t,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{let t=this.startNode();return this.next(),t.elements=this.parseBindingList(3,93,1),this.finishNode(t,"ArrayPattern")}case 5:return this.parseObjectLike(8,!0);case 88:return this.parseVoidPattern(null)}return this.parseIdentifier()}parseBindingList(t,r,n){let i=n&1,s=[],a=!0;for(;!this.eat(t);)if(a?a=!1:this.expect(12),i&&this.match(12))s.push(null);else{if(this.eat(t))break;if(this.match(21)){let o=this.parseRestBinding();if(n&2&&(o=this.parseFunctionParamType(o)),s.push(o),!this.checkCommaAfterRest(r)){this.expect(t);break}}else{let o=[];if(n&2)for(this.match(26)&&this.hasPlugin("decorators")&&this.raise(w.UnsupportedParameterDecorator,this.state.startLoc);this.match(26);)o.push(this.parseDecorator());s.push(this.parseBindingElement(n,o))}}return s}parseBindingRestProperty(t){return this.next(),this.hasPlugin("discardBinding")&&this.match(88)?(t.argument=this.parseVoidPattern(null),this.raise(w.UnexpectedVoidPattern,t.argument)):t.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(t,"RestElement")}parseBindingProperty(){let{type:t,startLoc:r}=this.state;if(t===21)return this.parseBindingRestProperty(this.startNode());let n=this.startNode();return t===139?(this.expectPlugin("destructuringPrivate",r),this.classScope.usePrivateName(this.state.value,r),n.key=this.parsePrivateName()):this.parsePropertyName(n),n.method=!1,this.parseObjPropValue(n,r,!1,!1,!0,!1)}parseBindingElement(t,r){let n=this.parseMaybeDefault();return t&2&&this.parseFunctionParamType(n),r.length&&(n.decorators=r,this.resetStartLocationFromNode(n,r[0])),this.parseMaybeDefault(n.loc.start,n)}parseFunctionParamType(t){return t}parseMaybeDefault(t,r){if(t??(t=this.state.startLoc),r=r??this.parseBindingAtom(),!this.eat(29))return r;let n=this.startNodeAt(t);return r.type==="VoidPattern"&&this.raise(w.VoidPatternInitializer,r),n.left=r,n.right=this.parseMaybeAssignAllowIn(),this.finishNode(n,"AssignmentPattern")}isValidLVal(t,r,n,i){switch(t){case"AssignmentPattern":return"left";case"RestElement":return"argument";case"ObjectProperty":return"value";case"ParenthesizedExpression":return"expression";case"ArrayPattern":return"elements";case"ObjectPattern":return"properties";case"VoidPattern":return!0;case"CallExpression":if(!r&&!this.state.strict&&this.optionFlags&8192)return!0}return!1}isOptionalMemberExpression(t){return t.type==="OptionalMemberExpression"}checkLVal(t,r,n=64,i=!1,s=!1,a=!1,o=!1){var C;let u=t.type;if(this.isObjectMethod(t))return;let l=this.isOptionalMemberExpression(t);if(l||u==="MemberExpression"){l&&(this.expectPlugin("optionalChainingAssign",t.loc.start),r.type!=="AssignmentExpression"&&this.raise(w.InvalidLhsOptionalChaining,t,{ancestor:r})),n!==64&&this.raise(w.InvalidPropertyBindingPattern,t);return}if(u==="Identifier"){this.checkIdentifier(t,n,s);let{name:g}=t;i&&(i.has(g)?this.raise(w.ParamDupe,t):i.add(g));return}else u==="VoidPattern"&&r.type==="CatchClause"&&this.raise(w.VoidPatternCatchClauseParam,t);let c=ff(t);o||(o=c.type==="CallExpression"&&(c.callee.type==="Import"||c.callee.type==="Super"));let p=this.isValidLVal(u,o,!(a||(C=t.extra)!=null&&C.parenthesized)&&r.type==="AssignmentExpression",n);if(p===!0)return;if(p===!1){let g=n===64?w.InvalidLhs:w.InvalidLhsBinding;this.raise(g,t,{ancestor:r});return}let h,d;typeof p=="string"?(h=p,d=u==="ParenthesizedExpression"):[h,d]=p;let f=u==="ArrayPattern"||u==="ObjectPattern"?{type:u}:r,y=t[h];if(Array.isArray(y))for(let g of y)g&&this.checkLVal(g,f,n,i,s,d,!0);else y&&this.checkLVal(y,f,n,i,s,d,o)}checkIdentifier(t,r,n=!1){this.state.strict&&(n?Dv(t.name,this.inModule):gv(t.name))&&(r===64?this.raise(w.StrictEvalArguments,t,{referenceName:t.name}):this.raise(w.StrictEvalArgumentsBinding,t,{bindingName:t.name})),r&8192&&t.name==="let"&&this.raise(w.LetInLexicalBinding,t),r&64||this.declareNameFromIdentifier(t,r)}declareNameFromIdentifier(t,r){this.scope.declareName(t.name,r,t.loc.start)}checkToRestConversion(t,r){switch(t.type){case"ParenthesizedExpression":this.checkToRestConversion(t.expression,r);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(r)break;default:this.raise(w.InvalidRestAssignmentPattern,t)}}checkCommaAfterRest(t){return this.match(12)?(this.raise(this.lookaheadCharCode()===t?w.RestTrailingComma:w.ElementAfterRest,this.state.startLoc),!0):!1}},Ih=/in(?:stanceof)?|as|satisfies/y;function e9(e){if(e==null)throw new Error(`Unexpected ${e} value.`);return e}function Rg(e){if(!e)throw new Error("Assert fail")}var te=tn`typescript`({AbstractMethodHasImplementation:({methodName:e})=>`Method '${e}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:e})=>`Property '${e}' cannot have an initializer because it is marked abstract.`,AccessorCannotBeOptional:"An 'accessor' property cannot be declared optional.",AccessorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccessorCannotHaveTypeParameters:"An accessor cannot have type parameters.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:({kind:e})=>`'declare' is not allowed in ${e}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:({modifier:e})=>`Accessibility modifier already seen: '${e}'.`,DuplicateModifier:({modifier:e})=>`Duplicate modifier: '${e}'.`,EmptyHeritageClauseType:({token:e})=>`'${e}' list cannot be empty.`,EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` modifier",IncompatibleModifiers:({modifiers:e})=>`'${e[0]}' modifier cannot be used with '${e[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:e})=>`Index signatures cannot have an accessibility modifier ('${e}').`,IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidHeritageClauseType:({token:e})=>`'${e}' list can only include identifiers or qualified-names with optional type arguments.`,InvalidModifierOnAwaitUsingDeclaration:e=>`'${e}' modifier cannot appear on an await using declaration.`,InvalidModifierOnTypeMember:({modifier:e})=>`'${e}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:e})=>`'${e}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:e})=>`'${e}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifierOnUsingDeclaration:e=>`'${e}' modifier cannot appear on a using declaration.`,InvalidModifiersOrder:({orderedModifiers:e})=>`'${e[0]}' modifier must precede '${e[1]}' modifier.`,InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifier:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:({modifier:e})=>`Private elements cannot have an accessibility modifier ('${e}').`,ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccessorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccessorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccessorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:({typeParameterName:e})=>`Single type parameter ${e} should have a trailing comma. Example usage: <${e},>.`,StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:({type:e})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${e}.`,UsingDeclarationInAmbientContext:e=>`'${e}' declarations are not allowed in ambient contexts.`});function t9(e){switch(e){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}function Ug(e){return e==="private"||e==="public"||e==="protected"}function r9(e){return e==="in"||e==="out"}function mf(e){var t;if((t=e.extra)!=null&&t.parenthesized)return!1;switch(e.type){case"Identifier":return!0;case"MemberExpression":return!e.computed&&mf(e.object);case"TSInstantiationExpression":return mf(e.expression);default:return!1}}var n9=e=>class extends e{constructor(){super(...arguments);H(this,"tsParseInOutModifiers",this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:te.InvalidModifierOnTypeParameter}));H(this,"tsParseConstModifier",this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:te.InvalidModifierOnTypeParameterPositions}));H(this,"tsParseInOutConstModifiers",this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:te.InvalidModifierOnTypeParameter}))}getScopeHandler(){return I5}tsIsIdentifier(){return Fe(this.state.type)}tsTokenCanFollowModifier(){return this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(139)||this.isLiteralPropertyName()}tsNextTokenOnSameLineAndCanFollowModifier(){return this.next(),this.hasPrecedingLineBreak()?!1:this.tsTokenCanFollowModifier()}tsNextTokenCanFollowModifier(){return this.match(106)?(this.next(),this.tsTokenCanFollowModifier()):this.tsNextTokenOnSameLineAndCanFollowModifier()}tsParseModifier(r,n,i){if(!Fe(this.state.type)&&this.state.type!==58&&this.state.type!==75)return;let s=this.state.value;if(r.includes(s)){if(i&&this.match(106)||n&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return s}}tsParseModifiers({allowedModifiers:r,disallowedModifiers:n,stopOnStartOfClassStaticBlock:i,errorTemplate:s=te.InvalidModifierOnTypeMember},a){let o=(l,c,p,h)=>{c===p&&a[h]&&this.raise(te.InvalidModifiersOrder,l,{orderedModifiers:[p,h]})},u=(l,c,p,h)=>{(a[p]&&c===h||a[h]&&c===p)&&this.raise(te.IncompatibleModifiers,l,{modifiers:[p,h]})};for(;;){let{startLoc:l}=this.state,c=this.tsParseModifier(r.concat(n??[]),i,a.static);if(!c)break;Ug(c)?a.accessibility?this.raise(te.DuplicateAccessibilityModifier,l,{modifier:c}):(o(l,c,c,"override"),o(l,c,c,"static"),o(l,c,c,"readonly"),a.accessibility=c):r9(c)?(a[c]&&this.raise(te.DuplicateModifier,l,{modifier:c}),a[c]=!0,o(l,c,"in","out")):(Object.prototype.hasOwnProperty.call(a,c)?this.raise(te.DuplicateModifier,l,{modifier:c}):(o(l,c,"static","readonly"),o(l,c,"static","override"),o(l,c,"override","readonly"),o(l,c,"abstract","override"),u(l,c,"declare","override"),u(l,c,"static","abstract")),a[c]=!0),n!=null&&n.includes(c)&&this.raise(s,l,{modifier:c})}}tsIsListTerminator(r){switch(r){case"EnumMembers":case"TypeMembers":return this.match(8);case"HeritageClauseElement":return this.match(5);case"TupleElementTypes":return this.match(3);case"TypeParametersOrArguments":return this.match(48)}}tsParseList(r,n){let i=[];for(;!this.tsIsListTerminator(r);)i.push(n());return i}tsParseDelimitedList(r,n,i){return e9(this.tsParseDelimitedListWorker(r,n,!0,i))}tsParseDelimitedListWorker(r,n,i,s){let a=[],o=-1;for(;!this.tsIsListTerminator(r);){o=-1;let u=n();if(u==null)return;if(a.push(u),this.eat(12)){o=this.state.lastTokStartLoc.index;continue}if(this.tsIsListTerminator(r))break;i&&this.expect(12);return}return s&&(s.value=o),a}tsParseBracketedList(r,n,i,s,a){s||(i?this.expect(0):this.expect(47));let o=this.tsParseDelimitedList(r,n,a);return i?this.expect(3):this.expect(48),o}tsParseImportType(){let r=this.startNode();return this.expect(83),this.expect(10),this.match(134)?r.argument=this.tsParseLiteralTypeNode():(this.raise(te.UnsupportedImportTypeArgument,this.state.startLoc),r.argument=this.tsParseNonConditionalType()),this.eat(12)?r.options=this.tsParseImportTypeOptions():r.options=null,this.expect(11),this.eat(16)&&(r.qualifier=this.tsParseEntityName(3)),this.match(47)&&(r.typeArguments=this.tsParseTypeArguments()),this.finishNode(r,"TSImportType")}tsParseImportTypeOptions(){let r=this.startNode();this.expect(5);let n=this.startNode();return this.isContextual(76)?(n.method=!1,n.key=this.parseIdentifier(!0),n.computed=!1,n.shorthand=!1):this.unexpected(null,76),this.expect(14),n.value=this.tsParseImportTypeWithPropertyValue(),r.properties=[this.finishObjectProperty(n)],this.eat(12),this.expect(8),this.finishNode(r,"ObjectExpression")}tsParseImportTypeWithPropertyValue(){let r=this.startNode(),n=[];for(this.expect(5);!this.match(8);){let i=this.state.type;Fe(i)||i===134?n.push(super.parsePropertyDefinition(null)):this.unexpected(),this.eat(12)}return r.properties=n,this.next(),this.finishNode(r,"ObjectExpression")}tsParseEntityName(r){let n;if(r&1&&this.match(78))if(r&2)n=this.parseIdentifier(!0);else{let i=this.startNode();this.next(),n=this.finishNode(i,"ThisExpression")}else n=this.parseIdentifier(!!(r&1));for(;this.eat(16);){let i=this.startNodeAtNode(n);i.left=n,i.right=this.parseIdentifier(!!(r&1)),n=this.finishNode(i,"TSQualifiedName")}return n}tsParseTypeReference(){let r=this.startNode();return r.typeName=this.tsParseEntityName(1),!this.hasPrecedingLineBreak()&&this.match(47)&&(r.typeArguments=this.tsParseTypeArguments()),this.finishNode(r,"TSTypeReference")}tsParseThisTypePredicate(r){this.next();let n=this.startNodeAtNode(r);return n.parameterName=r,n.typeAnnotation=this.tsParseTypeAnnotation(!1),n.asserts=!1,this.finishNode(n,"TSTypePredicate")}tsParseThisTypeNode(){let r=this.startNode();return this.next(),this.finishNode(r,"TSThisType")}tsParseTypeQuery(){let r=this.startNode();return this.expect(87),this.match(83)?r.exprName=this.tsParseImportType():r.exprName=this.tsParseEntityName(1),!this.hasPrecedingLineBreak()&&this.match(47)&&(r.typeArguments=this.tsParseTypeArguments()),this.finishNode(r,"TSTypeQuery")}tsParseTypeParameter(r){let n=this.startNode();return r(n),n.name=this.tsParseTypeParameterName(),n.constraint=this.tsEatThenParseType(81),n.default=this.tsEatThenParseType(29),this.finishNode(n,"TSTypeParameter")}tsTryParseTypeParameters(r){if(this.match(47))return this.tsParseTypeParameters(r)}tsParseTypeParameters(r){let n=this.startNode();this.match(47)||this.match(143)?this.next():this.unexpected();let i={value:-1};return n.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,r),!1,!0,i),n.params.length===0&&this.raise(te.EmptyTypeParameters,n),i.value!==-1&&this.addExtra(n,"trailingComma",i.value),this.finishNode(n,"TSTypeParameterDeclaration")}tsFillSignature(r,n){let i=r===19,s="params",a="returnType";n.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),n[s]=this.tsParseBindingListForSignature(),i?n[a]=this.tsParseTypeOrTypePredicateAnnotation(r):this.match(r)&&(n[a]=this.tsParseTypeOrTypePredicateAnnotation(r))}tsParseBindingListForSignature(){let r=super.parseBindingList(11,41,2);for(let n of r){let{type:i}=n;(i==="AssignmentPattern"||i==="TSParameterProperty")&&this.raise(te.UnsupportedSignatureParameterKind,n,{type:i})}return r}tsParseTypeMemberSemicolon(){!this.eat(12)&&!this.isLineTerminator()&&this.expect(13)}tsParseSignatureMember(r,n){return this.tsFillSignature(14,n),this.tsParseTypeMemberSemicolon(),this.finishNode(n,r)}tsIsUnambiguouslyIndexSignature(){return this.next(),Fe(this.state.type)?(this.next(),this.match(14)):!1}tsTryParseIndexSignature(r){if(!(this.match(0)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(0);let n=this.parseIdentifier();n.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(n),this.expect(3),r.parameters=[n];let i=this.tsTryParseTypeAnnotation();return i&&(r.typeAnnotation=i),this.tsParseTypeMemberSemicolon(),this.finishNode(r,"TSIndexSignature")}tsParsePropertyOrMethodSignature(r,n){if(this.eat(17)&&(r.optional=!0),this.match(10)||this.match(47)){n&&this.raise(te.ReadonlyForMethodSignature,r);let i=r;i.kind&&this.match(47)&&this.raise(te.AccessorCannotHaveTypeParameters,this.state.curPosition()),this.tsFillSignature(14,i),this.tsParseTypeMemberSemicolon();let s="params",a="returnType";if(i.kind==="get")i[s].length>0&&(this.raise(w.BadGetterArity,this.state.curPosition()),this.isThisParam(i[s][0])&&this.raise(te.AccessorCannotDeclareThisParameter,this.state.curPosition()));else if(i.kind==="set"){if(i[s].length!==1)this.raise(w.BadSetterArity,this.state.curPosition());else{let o=i[s][0];this.isThisParam(o)&&this.raise(te.AccessorCannotDeclareThisParameter,this.state.curPosition()),o.type==="Identifier"&&o.optional&&this.raise(te.SetAccessorCannotHaveOptionalParameter,this.state.curPosition()),o.type==="RestElement"&&this.raise(te.SetAccessorCannotHaveRestParameter,this.state.curPosition())}i[a]&&this.raise(te.SetAccessorCannotHaveReturnType,i[a])}else i.kind="method";return this.finishNode(i,"TSMethodSignature")}else{let i=r;n&&(i.readonly=!0);let s=this.tsTryParseTypeAnnotation();return s&&(i.typeAnnotation=s),this.tsParseTypeMemberSemicolon(),this.finishNode(i,"TSPropertySignature")}}tsParseTypeMember(){let r=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",r);if(this.match(77)){let i=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",r):(r.key=this.createIdentifier(i,"new"),this.tsParsePropertyOrMethodSignature(r,!1))}return this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},r),this.tsTryParseIndexSignature(r)||(super.parsePropertyName(r),!r.computed&&r.key.type==="Identifier"&&(r.key.name==="get"||r.key.name==="set")&&this.tsTokenCanFollowModifier()&&(r.kind=r.key.name,super.parsePropertyName(r),!this.match(10)&&!this.match(47)&&this.unexpected(null,10)),this.tsParsePropertyOrMethodSignature(r,!!r.readonly))}tsParseTypeLiteral(){let r=this.startNode();return r.members=this.tsParseObjectTypeMembers(),this.finishNode(r,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);let r=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),r}tsIsStartOfMappedType(){return this.next(),this.eat(53)?this.isContextual(122):(this.isContextual(122)&&this.next(),!this.match(0)||(this.next(),!this.tsIsIdentifier())?!1:(this.next(),this.match(58)))}tsParseMappedType(){let r=this.startNode();return this.expect(5),this.match(53)?(r.readonly=this.state.value,this.next(),this.expectContextual(122)):this.eatContextual(122)&&(r.readonly=!0),this.expect(0),r.key=this.tsParseTypeParameterName(),r.constraint=this.tsExpectThenParseType(58),r.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(r.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(r.optional=!0),r.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(r,"TSMappedType")}tsParseTupleType(){let r=this.startNode();r.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let n=!1;return r.elementTypes.forEach(i=>{let{type:s}=i;n&&s!=="TSRestType"&&s!=="TSOptionalType"&&!(s==="TSNamedTupleMember"&&i.optional)&&this.raise(te.OptionalTypeBeforeRequired,i),n||(n=s==="TSNamedTupleMember"&&i.optional||s==="TSOptionalType")}),this.finishNode(r,"TSTupleType")}tsParseTupleElementType(){let r=this.state.startLoc,n=this.eat(21),{startLoc:i}=this.state,s,a,o,u,l=$r(this.state.type)?this.lookaheadCharCode():null;if(l===58)s=!0,o=!1,a=this.parseIdentifier(!0),this.expect(14),u=this.tsParseType();else if(l===63){o=!0;let c=this.state.value,p=this.tsParseNonArrayType();this.lookaheadCharCode()===58?(s=!0,a=this.createIdentifier(this.startNodeAt(i),c),this.expect(17),this.expect(14),u=this.tsParseType()):(s=!1,u=p,this.expect(17))}else u=this.tsParseType(),o=this.eat(17),s=this.eat(14);if(s){let c;a?(c=this.startNodeAt(i),c.optional=o,c.label=a,c.elementType=u,this.eat(17)&&(c.optional=!0,this.raise(te.TupleOptionalAfterType,this.state.lastTokStartLoc))):(c=this.startNodeAt(i),c.optional=o,this.raise(te.InvalidTupleMemberLabel,u),c.label=u,c.elementType=this.tsParseType()),u=this.finishNode(c,"TSNamedTupleMember")}else if(o){let c=this.startNodeAt(i);c.typeAnnotation=u,u=this.finishNode(c,"TSOptionalType")}if(n){let c=this.startNodeAt(r);c.typeAnnotation=u,u=this.finishNode(c,"TSRestType")}return u}tsParseParenthesizedType(){let r=this.startNode();return this.expect(10),r.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(r,"TSParenthesizedType")}tsParseFunctionOrConstructorType(r,n){let i=this.startNode();return r==="TSConstructorType"&&(i.abstract=!!n,n&&this.next(),this.next()),this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(19,i)),this.finishNode(i,r)}tsParseLiteralTypeNode(){let r=this.startNode();switch(this.state.type){case 135:case 136:case 134:case 85:case 86:r.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(r,"TSLiteralType")}tsParseTemplateLiteralType(){{let r=this.state.startLoc,n=this.parseTemplateElement(!1),i=[n];if(n.tail){let s=this.startNodeAt(r),a=this.startNodeAt(r);return a.expressions=[],a.quasis=i,s.literal=this.finishNode(a,"TemplateLiteral"),this.finishNode(s,"TSLiteralType")}else{let s=[];for(;!n.tail;)s.push(this.tsParseType()),this.readTemplateContinuation(),i.push(n=this.parseTemplateElement(!1));let a=this.startNodeAt(r);return a.types=s,a.quasis=i,this.finishNode(a,"TSTemplateLiteralType")}}}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){let r=this.tsParseThisTypeNode();return this.isContextual(116)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(r):r}tsParseNonArrayType(){switch(this.state.type){case 134:case 135:case 136:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if(this.state.value==="-"){let r=this.startNode(),n=this.lookahead();return n.type!==135&&n.type!==136&&this.unexpected(),r.literal=this.parseMaybeUnary(),this.finishNode(r,"TSLiteralType")}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:if(!(this.optionFlags&1024)){let r=this.state.startLoc;this.next();let n=this.tsParseType();return this.expect(11),this.addExtra(n,"parenthesized",!0),this.addExtra(n,"parenStart",r.index),n}return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{let{type:r}=this.state;if(Fe(r)||r===88||r===84){let n=r===88?"TSVoidKeyword":r===84?"TSNullKeyword":t9(this.state.value);if(n!==void 0&&this.lookaheadCharCode()!==46){let i=this.startNode();return this.next(),this.finishNode(i,n)}return this.tsParseTypeReference()}}}throw this.unexpected()}tsParseArrayTypeOrHigher(){let{startLoc:r}=this.state,n=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){let i=this.startNodeAt(r);i.elementType=n,this.expect(3),n=this.finishNode(i,"TSArrayType")}else{let i=this.startNodeAt(r);i.objectType=n,i.indexType=this.tsParseType(),this.expect(3),n=this.finishNode(i,"TSIndexedAccessType")}return n}tsParseTypeOperator(){let r=this.startNode(),n=this.state.value;return this.next(),r.operator=n,r.typeAnnotation=this.tsParseTypeOperatorOrHigher(),n==="readonly"&&this.tsCheckTypeAnnotationForReadOnly(r),this.finishNode(r,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(r){switch(r.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(te.UnexpectedReadonly,r)}}tsParseInferType(){let r=this.startNode();this.expectContextual(115);let n=this.startNode();return n.name=this.tsParseTypeParameterName(),n.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),r.typeParameter=this.finishNode(n,"TSTypeParameter"),this.finishNode(r,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){let r=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.state.inDisallowConditionalTypesContext||!this.match(17))return r}}tsParseTypeOperatorOrHigher(){return u5(this.state.type)&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseUnionOrIntersectionType(r,n,i){let s=this.startNode(),a=this.eat(i),o=[];do o.push(n());while(this.eat(i));return o.length===1&&!a?o[0]:(s.types=o,this.finishNode(s,r))}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)}tsIsStartOfFunctionType(){return this.match(47)?!0:this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(Fe(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){let{errors:r}=this.state,n=r.length;try{return this.parseObjectLike(8,!0),r.length===n}catch{return!1}}if(this.match(0)){this.next();let{errors:r}=this.state,n=r.length;try{return super.parseBindingList(3,93,1),r.length===n}catch{return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){return this.next(),!!(this.match(11)||this.match(21)||this.tsSkipParameterStart()&&(this.match(14)||this.match(12)||this.match(17)||this.match(29)||this.match(11)&&(this.next(),this.match(19))))}tsParseTypeOrTypePredicateAnnotation(r){return this.tsInType(()=>{let n=this.startNode();this.expect(r);let i=this.startNode(),s=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(s&&this.match(78)){let u=this.tsParseThisTypeOrThisTypePredicate();return u.type==="TSThisType"?(i.parameterName=u,i.asserts=!0,i.typeAnnotation=null,u=this.finishNode(i,"TSTypePredicate")):(this.resetStartLocationFromNode(u,i),u.asserts=!0),n.typeAnnotation=u,this.finishNode(n,"TSTypeAnnotation")}let a=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!a)return s?(i.parameterName=this.parseIdentifier(),i.asserts=s,i.typeAnnotation=null,n.typeAnnotation=this.finishNode(i,"TSTypePredicate"),this.finishNode(n,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,n);let o=this.tsParseTypeAnnotation(!1);return i.parameterName=a,i.typeAnnotation=o,i.asserts=s,n.typeAnnotation=this.finishNode(i,"TSTypePredicate"),this.finishNode(n,"TSTypeAnnotation")})}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)}tsTryParseTypeAnnotation(){if(this.match(14))return this.tsParseTypeAnnotation()}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){let r=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),r}tsParseTypePredicateAsserts(){if(this.state.type!==109)return!1;let r=this.state.containsEsc;return this.next(),!Fe(this.state.type)&&!this.match(78)?!1:(r&&this.raise(w.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"}),!0)}tsParseTypeAnnotation(r=!0,n=this.startNode()){return this.tsInType(()=>{r&&this.expect(14),n.typeAnnotation=this.tsParseType()}),this.finishNode(n,"TSTypeAnnotation")}tsParseType(){Rg(this.state.inType);let r=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return r;let n=this.startNodeAtNode(r);return n.checkType=r,n.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(17),n.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(14),n.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(n,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(124)&&this.isLookaheadContextual("new")}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(77)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(te.ReservedTypeAssertion,this.state.startLoc);let r=this.startNode();return r.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType())),this.expect(48),r.expression=this.parseMaybeUnary(),this.finishNode(r,"TSTypeAssertion")}tsParseHeritageClause(r){let n=this.state.startLoc,i=this.tsParseDelimitedList("HeritageClauseElement",()=>{{let s=super.parseExprSubscripts();mf(s)||this.raise(te.InvalidHeritageClauseType,s.loc.start,{token:r});let a=r==="extends"?"TSInterfaceHeritage":"TSClassImplements";if(s.type==="TSInstantiationExpression")return s.type=a,s;let o=this.startNodeAtNode(s);return o.expression=s,(this.match(47)||this.match(51))&&(o.typeArguments=this.tsParseTypeArgumentsInExpression()),this.finishNode(o,a)}});return i.length||this.raise(te.EmptyHeritageClauseType,n,{token:r}),i}tsParseInterfaceDeclaration(r,n={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(129),n.declare&&(r.declare=!0),Fe(this.state.type)?(r.id=this.parseIdentifier(),this.checkIdentifier(r.id,130)):(r.id=null,this.raise(te.MissingInterfaceName,this.state.startLoc)),r.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(r.extends=this.tsParseHeritageClause("extends"));let i=this.startNode();return i.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),r.body=this.finishNode(i,"TSInterfaceBody"),this.finishNode(r,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(r){return r.id=this.parseIdentifier(),this.checkIdentifier(r.id,2),r.typeAnnotation=this.tsInType(()=>{if(r.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(114)&&this.lookaheadCharCode()!==46){let n=this.startNode();return this.next(),this.finishNode(n,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(r,"TSTypeAliasDeclaration")}tsInTopLevelContext(r){if(this.curContext()!==_e.brace){let n=this.state.context;this.state.context=[n[0]];try{return r()}finally{this.state.context=n}}else return r()}tsInType(r){let n=this.state.inType;this.state.inType=!0;try{return r()}finally{this.state.inType=n}}tsInDisallowConditionalTypesContext(r){let n=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return r()}finally{this.state.inDisallowConditionalTypesContext=n}}tsInAllowConditionalTypesContext(r){let n=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return r()}finally{this.state.inDisallowConditionalTypesContext=n}}tsEatThenParseType(r){if(this.match(r))return this.tsNextThenParseType()}tsExpectThenParseType(r){return this.tsInType(()=>(this.expect(r),this.tsParseType()))}tsNextThenParseType(){return this.tsInType(()=>(this.next(),this.tsParseType()))}tsParseEnumMember(){let r=this.startNode();return r.id=this.match(134)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29)&&(r.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(r,"TSEnumMember")}tsParseEnumDeclaration(r,n={}){return n.const&&(r.const=!0),n.declare&&(r.declare=!0),this.expectContextual(126),r.id=this.parseIdentifier(),this.checkIdentifier(r.id,r.const?8971:8459),r.body=this.tsParseEnumBody(),this.finishNode(r,"TSEnumDeclaration")}tsParseEnumBody(){let r=this.startNode();return this.expect(5),r.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(r,"TSEnumBody")}tsParseModuleBlock(){let r=this.startNode();return this.scope.enter(0),this.expect(5),super.parseBlockOrModuleBlockBody(r.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(r,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(r,n=!1){return r.id=this.tsParseEntityName(1),r.id.type==="Identifier"&&this.checkIdentifier(r.id,1024),this.scope.enter(1024),this.prodParam.enter(0),r.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit(),this.finishNode(r,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(r){return this.isContextual(112)?(r.kind="global",r.id=this.parseIdentifier()):this.match(134)?(r.kind="module",r.id=super.parseStringLiteral(this.state.value)):this.unexpected(),this.match(5)?(this.scope.enter(1024),this.prodParam.enter(0),r.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(r,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(r,n,i){r.id=n||this.parseIdentifier(),this.checkIdentifier(r.id,4096),this.expect(29);let s=this.tsParseModuleReference();return r.importKind==="type"&&s.type!=="TSExternalModuleReference"&&this.raise(te.ImportAliasHasImportType,s),r.moduleReference=s,this.semicolon(),this.finishNode(r,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(119)&&this.lookaheadCharCode()===40}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(0)}tsParseExternalModuleReference(){let r=this.startNode();return this.expectContextual(119),this.expect(10),this.match(134)||this.unexpected(),r.expression=super.parseExprAtom(),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(r,"TSExternalModuleReference")}tsLookAhead(r){let n=this.state.clone(),i=r();return this.state=n,i}tsTryParseAndCatch(r){let n=this.tryParse(i=>r()||i());if(!(n.aborted||!n.node))return n.error&&(this.state=n.failState),n.node}tsTryParse(r){let n=this.state.clone(),i=r();if(i!==void 0&&i!==!1)return i;this.state=n}tsTryParseDeclare(r){if(this.isLineTerminator())return;let n=this.state.type;return this.tsInAmbientContext(()=>{switch(n){case 68:return r.declare=!0,super.parseFunctionStatement(r,!1,!1);case 80:return r.declare=!0,this.parseClass(r,!0,!1);case 126:return this.tsParseEnumDeclaration(r,{declare:!0});case 112:return this.tsParseAmbientExternalModuleDeclaration(r);case 100:if(this.state.containsEsc)return;case 75:case 74:return!this.match(75)||!this.isLookaheadContextual("enum")?(r.declare=!0,this.parseVarStatement(r,this.state.value,!0)):(this.expect(75),this.tsParseEnumDeclaration(r,{const:!0,declare:!0}));case 107:if(this.isUsing())return this.raise(te.InvalidModifierOnUsingDeclaration,this.state.startLoc,"declare"),r.declare=!0,this.parseVarStatement(r,"using",!0);break;case 96:if(this.isAwaitUsing())return this.raise(te.InvalidModifierOnAwaitUsingDeclaration,this.state.startLoc,"declare"),r.declare=!0,this.next(),this.parseVarStatement(r,"await using",!0);break;case 129:{let i=this.tsParseInterfaceDeclaration(r,{declare:!0});if(i)return i}default:if(Fe(n))return this.tsParseDeclaration(r,this.state.type,!0,null)}})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.type,!0,null)}tsParseDeclaration(r,n,i,s){switch(n){case 124:if(this.tsCheckLineTerminator(i)&&(this.match(80)||Fe(this.state.type)))return this.tsParseAbstractDeclaration(r,s);break;case 127:if(this.tsCheckLineTerminator(i)){if(this.match(134))return this.tsParseAmbientExternalModuleDeclaration(r);if(Fe(this.state.type))return r.kind="module",this.tsParseModuleOrNamespaceDeclaration(r)}break;case 128:if(this.tsCheckLineTerminator(i)&&Fe(this.state.type))return r.kind="namespace",this.tsParseModuleOrNamespaceDeclaration(r);break;case 130:if(this.tsCheckLineTerminator(i)&&Fe(this.state.type))return this.tsParseTypeAliasDeclaration(r);break}}tsCheckLineTerminator(r){return r?this.hasFollowingLineBreak()?!1:(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(r){if(!this.match(47))return;let n=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;let i=this.tsTryParseAndCatch(()=>{let s=this.startNodeAt(r);return s.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(s),s.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),s});if(this.state.maybeInArrowParameters=n,!!i)return super.parseArrowExpression(i,null,!0)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()===47)return this.tsParseTypeArguments()}tsParseTypeArguments(){let r=this.startNode();return r.params=this.tsInType(()=>this.tsInTopLevelContext(()=>(this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))),r.params.length===0?this.raise(te.EmptyTypeArguments,r):!this.state.inType&&this.curContext()===_e.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(r,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return l5(this.state.type)}isExportDefaultSpecifier(){return this.tsIsDeclarationStart()?!1:super.isExportDefaultSpecifier()}parseBindingElement(r,n){let i=n.length?n[0].loc.start:this.state.startLoc,s={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},s);let a=s.accessibility,o=s.override,u=s.readonly;!(r&4)&&(a||u||o)&&this.raise(te.UnexpectedParameterModifier,i);let l=this.parseMaybeDefault();r&2&&this.parseFunctionParamType(l);let c=this.parseMaybeDefault(l.loc.start,l);if(a||u||o){let p=this.startNodeAt(i);return n.length&&(p.decorators=n),a&&(p.accessibility=a),u&&(p.readonly=u),o&&(p.override=o),c.type!=="Identifier"&&c.type!=="AssignmentPattern"&&this.raise(te.UnsupportedParameterPropertyKind,p),p.parameter=c,this.finishNode(p,"TSParameterProperty")}return n.length&&(l.decorators=n),c}isSimpleParameter(r){return r.type==="TSParameterProperty"&&super.isSimpleParameter(r.parameter)||super.isSimpleParameter(r)}tsDisallowOptionalPattern(r){for(let n of r.params)n.type!=="Identifier"&&n.optional&&!this.state.isAmbientContext&&this.raise(te.PatternIsOptional,n)}setArrowFunctionParameters(r,n,i){super.setArrowFunctionParameters(r,n,i),this.tsDisallowOptionalPattern(r)}parseFunctionBodyAndFinish(r,n,i=!1){this.match(14)&&(r.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));let s=n==="FunctionDeclaration"?"TSDeclareFunction":n==="ClassMethod"||n==="ClassPrivateMethod"?"TSDeclareMethod":void 0;return s&&!this.match(5)&&this.isLineTerminator()?this.finishNode(r,s):s==="TSDeclareFunction"&&this.state.isAmbientContext&&(this.raise(te.DeclareFunctionHasImplementation,r),r.declare)?super.parseFunctionBodyAndFinish(r,s,i):(this.tsDisallowOptionalPattern(r),super.parseFunctionBodyAndFinish(r,n,i))}registerFunctionStatementId(r){!r.body&&r.id?this.checkIdentifier(r.id,1024):super.registerFunctionStatementId(r)}tsCheckForInvalidTypeCasts(r){r.forEach(n=>{(n==null?void 0:n.type)==="TSTypeCastExpression"&&this.raise(te.UnexpectedTypeAnnotation,n.typeAnnotation)})}toReferencedList(r,n){return this.tsCheckForInvalidTypeCasts(r),r}parseArrayLike(r,n,i){let s=super.parseArrayLike(r,n,i);return s.type==="ArrayExpression"&&this.tsCheckForInvalidTypeCasts(s.elements),s}parseSubscript(r,n,i,s){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();let o=this.startNodeAt(n);return o.expression=r,this.finishNode(o,"TSNonNullExpression")}let a=!1;if(this.match(18)&&this.lookaheadCharCode()===60){if(i)return s.stop=!0,r;s.optionalChainMember=a=!0,this.next()}if(this.match(47)||this.match(51)){let o,u=this.tsTryParseAndCatch(()=>{if(!i&&this.atPossibleAsyncArrow(r)){let h=this.tsTryParseGenericAsyncArrowFunction(n);if(h)return s.stop=!0,h}let l=this.tsParseTypeArgumentsInExpression();if(!l)return;if(a&&!this.match(10)){o=this.state.curPosition();return}if(cf(this.state.type)){let h=super.parseTaggedTemplateExpression(r,n,s);return h.typeArguments=l,h}if(!i&&this.eat(10)){let h=this.startNodeAt(n);return h.callee=r,h.arguments=this.parseCallExpressionArguments(),this.tsCheckForInvalidTypeCasts(h.arguments),h.typeArguments=l,s.optionalChainMember&&(h.optional=a),this.finishCallExpression(h,s.optionalChainMember)}let c=this.state.type;if(c===48||c===52||c!==10&&Po(c)&&!this.hasPrecedingLineBreak())return;let p=this.startNodeAt(n);return p.expression=r,p.typeArguments=l,this.finishNode(p,"TSInstantiationExpression")});if(o&&this.unexpected(o,10),u)return u.type==="TSInstantiationExpression"&&((this.match(16)||this.match(18)&&this.lookaheadCharCode()!==40)&&this.raise(te.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc),!this.match(16)&&!this.match(18)&&(u.expression=super.stopParseSubscript(r,s))),u}return super.parseSubscript(r,n,i,s)}parseNewCallee(r){var i;super.parseNewCallee(r);let{callee:n}=r;n.type==="TSInstantiationExpression"&&!((i=n.extra)!=null&&i.parenthesized)&&(r.typeArguments=n.typeArguments,r.callee=n.expression)}parseExprOp(r,n,i){let s;if(nc(58)>i&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(s=this.isContextual(120)))){let a=this.startNodeAt(n);return a.expression=r,a.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?(s&&this.raise(w.UnexpectedKeyword,this.state.startLoc,{keyword:"const"}),this.tsParseTypeReference()):this.tsParseType())),this.finishNode(a,s?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(a,n,i)}return super.parseExprOp(r,n,i)}checkReservedWord(r,n,i,s){this.state.isAmbientContext||super.checkReservedWord(r,n,i,s)}checkImportReflection(r){super.checkImportReflection(r),r.module&&r.importKind!=="value"&&this.raise(te.ImportReflectionHasImportType,r.specifiers[0].loc.start)}checkDuplicateExports(){}isPotentialImportPhase(r){if(super.isPotentialImportPhase(r))return!0;if(this.isContextual(130)){let n=this.lookaheadCharCode();return r?n===123||n===42:n!==61}return!r&&this.isContextual(87)}applyImportPhase(r,n,i,s){super.applyImportPhase(r,n,i,s),n?r.exportKind=i==="type"?"type":"value":r.importKind=i==="type"||i==="typeof"?i:"value"}parseImport(r){if(this.match(134))return r.importKind="value",super.parseImport(r);let n;if(Fe(this.state.type)&&this.lookaheadCharCode()===61)return r.importKind="value",this.tsParseImportEqualsDeclaration(r);if(this.isContextual(130)){let i=this.parseMaybeImportPhase(r,!1);if(this.lookaheadCharCode()===61)return this.tsParseImportEqualsDeclaration(r,i);n=super.parseImportSpecifiersAndAfter(r,i)}else n=super.parseImport(r);return n.importKind==="type"&&n.specifiers.length>1&&n.specifiers[0].type==="ImportDefaultSpecifier"&&this.raise(te.TypeImportCannotSpecifyDefaultAndNamed,n),n}parseExport(r,n){if(this.match(83)){let i=this.startNode();this.next();let s=null;this.isContextual(130)&&this.isPotentialImportPhase(!1)?s=this.parseMaybeImportPhase(i,!1):i.importKind="value";let a=this.tsParseImportEqualsDeclaration(i,s,!0);return r.attributes=[],r.declaration=a,r.exportKind="value",r.source=null,r.specifiers=[],this.finishNode(r,"ExportNamedDeclaration")}else if(this.eat(29)){let i=r;return i.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(i,"TSExportAssignment")}else if(this.eatContextual(93)){let i=r;return this.expectContextual(128),i.id=this.parseIdentifier(),this.semicolon(),this.finishNode(i,"TSNamespaceExportDeclaration")}else return super.parseExport(r,n)}isAbstractClass(){return this.isContextual(124)&&this.isLookaheadContextual("class")}parseExportDefaultExpression(){if(this.isAbstractClass()){let r=this.startNode();return this.next(),r.abstract=!0,this.parseClass(r,!0,!0)}if(this.match(129)){let r=this.tsParseInterfaceDeclaration(this.startNode());if(r)return r}return super.parseExportDefaultExpression()}parseVarStatement(r,n,i=!1){let{isAmbientContext:s}=this.state,a=super.parseVarStatement(r,n,i||s);if(!s)return a;if(!r.declare&&(n==="using"||n==="await using"))return this.raiseOverwrite(te.UsingDeclarationInAmbientContext,r,n),a;for(let{id:o,init:u}of a.declarations)u&&(n==="var"||n==="let"||o.typeAnnotation?this.raise(te.InitializerNotAllowedInAmbientContext,u):s9(u,this.hasPlugin("estree"))||this.raise(te.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference,u));return a}parseStatementContent(r,n){if(!this.state.containsEsc)switch(this.state.type){case 75:{if(this.isLookaheadContextual("enum")){let i=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(i,{const:!0})}break}case 124:case 125:{if(this.nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine()){let i=this.state.type,s=this.startNode();this.next();let a=i===125?this.tsTryParseDeclare(s):this.tsParseAbstractDeclaration(s,n);return a?(i===125&&(a.declare=!0),a):(s.expression=this.createIdentifier(this.startNodeAt(s.loc.start),i===125?"declare":"abstract"),this.semicolon(!1),this.finishNode(s,"ExpressionStatement"))}break}case 126:return this.tsParseEnumDeclaration(this.startNode());case 112:{if(this.lookaheadCharCode()===123){let i=this.startNode();return this.tsParseAmbientExternalModuleDeclaration(i)}break}case 129:{let i=this.tsParseInterfaceDeclaration(this.startNode());if(i)return i;break}case 127:{if(this.nextTokenIsIdentifierOrStringLiteralOnSameLine()){let i=this.startNode();return this.next(),this.tsParseDeclaration(i,127,!1,n)}break}case 128:{if(this.nextTokenIsIdentifierOnSameLine()){let i=this.startNode();return this.next(),this.tsParseDeclaration(i,128,!1,n)}break}case 130:{if(this.nextTokenIsIdentifierOnSameLine()){let i=this.startNode();return this.next(),this.tsParseTypeAliasDeclaration(i)}break}}return super.parseStatementContent(r,n)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(r,n){return n.some(i=>Ug(i)?r.accessibility===i:!!r[i])}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&this.lookaheadCharCode()===123}parseClassMember(r,n,i){let s=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:s,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:te.InvalidModifierOnTypeParameterPositions},n);let a=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(n,s)&&this.raise(te.StaticBlockCannotHaveModifier,this.state.curPosition()),super.parseClassStaticBlock(r,n)):this.parseClassMemberWithIsStatic(r,n,i,!!n.static)};n.declare?this.tsInAmbientContext(a):a()}parseClassMemberWithIsStatic(r,n,i,s){let a=this.tsTryParseIndexSignature(n);if(a){r.body.push(a),n.abstract&&this.raise(te.IndexSignatureHasAbstract,n),n.accessibility&&this.raise(te.IndexSignatureHasAccessibility,n,{modifier:n.accessibility}),n.declare&&this.raise(te.IndexSignatureHasDeclare,n),n.override&&this.raise(te.IndexSignatureHasOverride,n);return}!this.state.inAbstractClass&&n.abstract&&this.raise(te.NonAbstractClassHasAbstractMethod,n),n.override&&(i.hadSuperClass||this.raise(te.OverrideNotInSubClass,n)),super.parseClassMemberWithIsStatic(r,n,i,s)}parsePostMemberNameModifiers(r){this.eat(17)&&(r.optional=!0),r.readonly&&this.match(10)&&this.raise(te.ClassMethodHasReadonly,r),r.declare&&this.match(10)&&this.raise(te.ClassMethodHasDeclare,r)}shouldParseExportDeclaration(){return this.tsIsDeclarationStart()?!0:super.shouldParseExportDeclaration()}parseConditional(r,n,i){if(!this.match(17))return r;if(this.state.maybeInArrowParameters){let s=this.lookaheadCharCode();if(s===44||s===61||s===58||s===41)return this.setOptionalParametersError(i),r}return super.parseConditional(r,n,i)}parseParenItem(r,n){let i=super.parseParenItem(r,n);if(this.eat(17)&&(i.optional=!0,this.resetEndLocation(r)),this.match(14)){let s=this.startNodeAt(n);return s.expression=r,s.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(s,"TSTypeCastExpression")}return r}parseExportDeclaration(r){if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext(()=>this.parseExportDeclaration(r));let n=this.state.startLoc,i=this.eatContextual(125);if(i&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise(te.ExpectedAmbientAfterExportDeclare,this.state.startLoc);let s=Fe(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(r);return s?((s.type==="TSInterfaceDeclaration"||s.type==="TSTypeAliasDeclaration"||i)&&(r.exportKind="type"),i&&s.type!=="TSImportEqualsDeclaration"&&(this.resetStartLocation(s,n),s.declare=!0),s):null}parseClassId(r,n,i,s){if((!n||i)&&this.isContextual(113))return;super.parseClassId(r,n,i,r.declare?1024:8331);let a=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);a&&(r.typeParameters=a)}parseClassPropertyAnnotation(r){r.optional||(this.eat(35)?r.definite=!0:this.eat(17)&&(r.optional=!0));let n=this.tsTryParseTypeAnnotation();n&&(r.typeAnnotation=n)}parseClassProperty(r){if(this.parseClassPropertyAnnotation(r),this.state.isAmbientContext&&!(r.readonly&&!r.typeAnnotation)&&this.match(29)&&this.raise(te.DeclareClassFieldHasInitializer,this.state.startLoc),r.abstract&&this.match(29)){let{key:n}=r;this.raise(te.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:n.type==="Identifier"&&!r.computed?n.name:`[${this.input.slice(this.offsetToSourcePos(n.start),this.offsetToSourcePos(n.end))}]`})}return super.parseClassProperty(r)}parseClassPrivateProperty(r){return r.abstract&&this.raise(te.PrivateElementHasAbstract,r),r.accessibility&&this.raise(te.PrivateElementHasAccessibility,r,{modifier:r.accessibility}),this.parseClassPropertyAnnotation(r),super.parseClassPrivateProperty(r)}parseClassAccessorProperty(r){return this.parseClassPropertyAnnotation(r),r.optional&&this.raise(te.AccessorCannotBeOptional,r),super.parseClassAccessorProperty(r)}pushClassMethod(r,n,i,s,a,o){let u=this.tsTryParseTypeParameters(this.tsParseConstModifier);u&&a&&this.raise(te.ConstructorHasTypeParameters,u);let{declare:l=!1,kind:c}=n;l&&(c==="get"||c==="set")&&this.raise(te.DeclareAccessor,n,{kind:c}),u&&(n.typeParameters=u),super.pushClassMethod(r,n,i,s,a,o)}pushClassPrivateMethod(r,n,i,s){let a=this.tsTryParseTypeParameters(this.tsParseConstModifier);a&&(n.typeParameters=a),super.pushClassPrivateMethod(r,n,i,s)}declareClassPrivateMethodInScope(r,n){r.type!=="TSDeclareMethod"&&(r.type==="MethodDefinition"&&r.value.body==null||super.declareClassPrivateMethodInScope(r,n))}parseClassSuper(r){super.parseClassSuper(r),r.superClass&&(this.match(47)||this.match(51))&&(r.superTypeArguments=this.tsParseTypeArgumentsInExpression()),this.eatContextual(113)&&(r.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(r,n,i,s,a,o,u){let l=this.tsTryParseTypeParameters(this.tsParseConstModifier);return l&&(r.typeParameters=l),super.parseObjPropValue(r,n,i,s,a,o,u)}parseFunctionParams(r,n){let i=this.tsTryParseTypeParameters(this.tsParseConstModifier);i&&(r.typeParameters=i),super.parseFunctionParams(r,n)}parseVarId(r,n){super.parseVarId(r,n),r.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(r.definite=!0);let i=this.tsTryParseTypeAnnotation();i&&(r.id.typeAnnotation=i,this.resetEndLocation(r.id))}parseAsyncArrowFromCallExpression(r,n){return this.match(14)&&(r.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(r,n)}parseMaybeAssign(r,n){let i,s,a;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(i=this.state.clone(),s=this.tryParse(()=>super.parseMaybeAssign(r,n),i),!s.error)return s.node;let{context:l}=this.state,c=l[l.length-1];(c===_e.j_oTag||c===_e.j_expr)&&l.pop()}if(!(s!=null&&s.error)&&!this.match(47))return super.parseMaybeAssign(r,n);(!i||i===this.state)&&(i=this.state.clone());let o,u=this.tryParse(l=>{var p,h;o=this.tsParseTypeParameters(this.tsParseConstModifier);let c=super.parseMaybeAssign(r,n);if((c.type!=="ArrowFunctionExpression"||(p=c.extra)!=null&&p.parenthesized)&&l(),(o==null?void 0:o.params.length)!==0&&this.resetStartLocationFromNode(c,o),c.typeParameters=o,this.hasPlugin("jsx")&&c.typeParameters.params.length===1&&!((h=c.typeParameters.extra)!=null&&h.trailingComma)){let d=c.typeParameters.params[0];d.constraint||this.raise(te.SingleTypeParameterWithoutTrailingComma,xr(d.loc.end,1),{typeParameterName:d.name.name})}return c},i);if(!u.error&&!u.aborted)return o&&this.reportReservedArrowTypeParam(o),u.node;if(!s&&(Rg(!this.hasPlugin("jsx")),a=this.tryParse(()=>super.parseMaybeAssign(r,n),i),!a.error))return a.node;if(s!=null&&s.node)return this.state=s.failState,s.node;if(u.node)return this.state=u.failState,o&&this.reportReservedArrowTypeParam(o),u.node;if(a!=null&&a.node)return this.state=a.failState,a.node;throw(s==null?void 0:s.error)||u.error||(a==null?void 0:a.error)}reportReservedArrowTypeParam(r){var n;r.params.length===1&&!r.params[0].constraint&&!((n=r.extra)!=null&&n.trailingComma)&&this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(te.ReservedArrowTypeParam,r)}parseMaybeUnary(r,n){return!this.hasPlugin("jsx")&&this.match(47)?this.tsParseTypeAssertion():super.parseMaybeUnary(r,n)}parseArrow(r){if(this.match(14)){let n=this.tryParse(i=>{let s=this.tsParseTypeOrTypePredicateAnnotation(14);return(this.canInsertSemicolon()||!this.match(19))&&i(),s});if(n.aborted)return;n.thrown||(n.error&&(this.state=n.failState),r.returnType=n.node)}return super.parseArrow(r)}parseFunctionParamType(r){this.eat(17)&&(r.optional=!0);let n=this.tsTryParseTypeAnnotation();return n&&(r.typeAnnotation=n),this.resetEndLocation(r),r}isAssignable(r,n){switch(r.type){case"TSTypeCastExpression":return this.isAssignable(r.expression,n);case"TSParameterProperty":return!0;default:return super.isAssignable(r,n)}}toAssignable(r,n=!1){switch(r.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(r,n);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":n?this.expressionScope.recordArrowParameterBindingError(te.UnexpectedTypeCastInParameter,r):this.raise(te.UnexpectedTypeCastInParameter,r),this.toAssignable(r.expression,n);break;case"AssignmentExpression":!n&&r.left.type==="TSTypeCastExpression"&&(r.left=this.typeCastToParameter(r.left));default:super.toAssignable(r,n)}}toAssignableParenthesizedExpression(r,n){switch(r.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(r.expression,n);break;default:super.toAssignable(r,n)}}checkToRestConversion(r,n){switch(r.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(r.expression,!1);break;default:super.checkToRestConversion(r,n)}}isValidLVal(r,n,i,s){switch(r){case"TSTypeCastExpression":return!0;case"TSParameterProperty":return"parameter";case"TSNonNullExpression":return"expression";case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":return(s!==64||!i)&&["expression",!0];default:return super.isValidLVal(r,n,i,s)}}parseBindingAtom(){return this.state.type===78?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(r,n){if(this.match(47)||this.match(51)){let i=this.tsParseTypeArgumentsInExpression();if(this.match(10)){let s=super.parseMaybeDecoratorArguments(r,n);return s.typeArguments=i,s}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(r,n)}checkCommaAfterRest(r){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===r?(this.next(),!1):super.checkCommaAfterRest(r)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(r,n){let i=super.parseMaybeDefault(r,n);return i.type==="AssignmentPattern"&&i.typeAnnotation&&i.right.startthis.isAssignable(n,!0)):super.shouldParseArrow(r)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(r){if(this.match(47)||this.match(51)){let n=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());n&&(r.typeArguments=n)}return super.jsxParseOpeningElementAfterName(r)}getGetterSetterExpectedParamCount(r){let n=super.getGetterSetterExpectedParamCount(r),i=this.getObjectOrClassMethodParams(r)[0];return i&&this.isThisParam(i)?n+1:n}parseCatchClauseParam(){let r=super.parseCatchClauseParam(),n=this.tsTryParseTypeAnnotation();return n&&(r.typeAnnotation=n,this.resetEndLocation(r)),r}tsInAmbientContext(r){let{isAmbientContext:n,strict:i}=this.state;this.state.isAmbientContext=!0,this.state.strict=!1;try{return r()}finally{this.state.isAmbientContext=n,this.state.strict=i}}parseClass(r,n,i){let s=this.state.inAbstractClass;this.state.inAbstractClass=!!r.abstract;try{return super.parseClass(r,n,i)}finally{this.state.inAbstractClass=s}}tsParseAbstractDeclaration(r,n){if(this.match(80))return r.abstract=!0,this.maybeTakeDecorators(n,this.parseClass(r,!0,!1));if(this.isContextual(129))return this.hasFollowingLineBreak()?null:(r.abstract=!0,this.raise(te.NonClassMethodPropertyHasAbstractModifier,r),this.tsParseInterfaceDeclaration(r));throw this.unexpected(null,80)}parseMethod(r,n,i,s,a,o,u){let l=super.parseMethod(r,n,i,s,a,o,u);if((l.abstract||l.type==="TSAbstractMethodDefinition")&&(this.hasPlugin("estree")?l.value:l).body){let{key:c}=l;this.raise(te.AbstractMethodHasImplementation,l,{methodName:c.type==="Identifier"&&!l.computed?c.name:`[${this.input.slice(this.offsetToSourcePos(c.start),this.offsetToSourcePos(c.end))}]`})}return l}tsParseTypeParameterName(){return this.parseIdentifier()}shouldParseAsAmbientContext(){return!!this.getPluginOption("typescript","dts")}parse(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.parse()}getExpression(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.getExpression()}parseExportSpecifier(r,n,i,s){return!n&&s?(this.parseTypeOnlyImportExportSpecifier(r,!1,i),this.finishNode(r,"ExportSpecifier")):(r.exportKind="value",super.parseExportSpecifier(r,n,i,s))}parseImportSpecifier(r,n,i,s,a){return!n&&s?(this.parseTypeOnlyImportExportSpecifier(r,!0,i),this.finishNode(r,"ImportSpecifier")):(r.importKind="value",super.parseImportSpecifier(r,n,i,s,i?4098:4096))}parseTypeOnlyImportExportSpecifier(r,n,i){let s=n?"imported":"local",a=n?"local":"exported",o=r[s],u,l=!1,c=!0,p=o.loc.start;if(this.isContextual(93)){let d=this.parseIdentifier();if(this.isContextual(93)){let f=this.parseIdentifier();$r(this.state.type)?(l=!0,o=d,u=n?this.parseIdentifier():this.parseModuleExportName(),c=!1):(u=f,c=!1)}else $r(this.state.type)?(c=!1,u=n?this.parseIdentifier():this.parseModuleExportName()):(l=!0,o=d)}else $r(this.state.type)&&(l=!0,n?(o=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(o.name,o.loc.start,!0,!0)):o=this.parseModuleExportName());l&&i&&this.raise(n?te.TypeModifierIsUsedInTypeImports:te.TypeModifierIsUsedInTypeExports,p),r[s]=o,r[a]=u;let h=n?"importKind":"exportKind";r[h]=l?"type":"value",c&&this.eatContextual(93)&&(r[a]=n?this.parseIdentifier():this.parseModuleExportName()),r[a]||(r[a]=this.cloneIdentifier(r[s])),n&&this.checkIdentifier(r[a],l?4098:4096)}fillOptionalPropertiesForTSESLint(r){switch(r.type){case"ExpressionStatement":r.directive??(r.directive=void 0);return;case"RestElement":r.value=void 0;case"Identifier":case"ArrayPattern":case"AssignmentPattern":case"ObjectPattern":r.decorators??(r.decorators=[]),r.optional??(r.optional=!1),r.typeAnnotation??(r.typeAnnotation=void 0);return;case"TSParameterProperty":r.accessibility??(r.accessibility=void 0),r.decorators??(r.decorators=[]),r.override??(r.override=!1),r.readonly??(r.readonly=!1),r.static??(r.static=!1);return;case"TSEmptyBodyFunctionExpression":r.body=null;case"TSDeclareFunction":case"FunctionDeclaration":case"FunctionExpression":case"ClassMethod":case"ClassPrivateMethod":r.declare??(r.declare=!1),r.returnType??(r.returnType=void 0),r.typeParameters??(r.typeParameters=void 0);return;case"Property":r.optional??(r.optional=!1);return;case"TSMethodSignature":case"TSPropertySignature":r.optional??(r.optional=!1);case"TSIndexSignature":r.accessibility??(r.accessibility=void 0),r.readonly??(r.readonly=!1),r.static??(r.static=!1);return;case"TSAbstractPropertyDefinition":case"PropertyDefinition":case"TSAbstractAccessorProperty":case"AccessorProperty":r.declare??(r.declare=!1),r.definite??(r.definite=!1),r.readonly??(r.readonly=!1),r.typeAnnotation??(r.typeAnnotation=void 0);case"TSAbstractMethodDefinition":case"MethodDefinition":r.accessibility??(r.accessibility=void 0),r.decorators??(r.decorators=[]),r.override??(r.override=!1),r.optional??(r.optional=!1);return;case"ClassExpression":r.id??(r.id=null);case"ClassDeclaration":r.abstract??(r.abstract=!1),r.declare??(r.declare=!1),r.decorators??(r.decorators=[]),r.implements??(r.implements=[]),r.superTypeArguments??(r.superTypeArguments=void 0),r.typeParameters??(r.typeParameters=void 0);return;case"TSTypeAliasDeclaration":case"VariableDeclaration":r.declare??(r.declare=!1);return;case"VariableDeclarator":r.definite??(r.definite=!1);return;case"TSEnumDeclaration":r.const??(r.const=!1),r.declare??(r.declare=!1);return;case"TSEnumMember":r.computed??(r.computed=!1);return;case"TSImportType":r.qualifier??(r.qualifier=null),r.options??(r.options=null),r.typeArguments??(r.typeArguments=null);return;case"TSInterfaceDeclaration":r.declare??(r.declare=!1),r.extends??(r.extends=[]);return;case"TSMappedType":r.optional??(r.optional=!1),r.readonly??(r.readonly=void 0);return;case"TSModuleDeclaration":r.declare??(r.declare=!1),r.global??(r.global=r.kind==="global");return;case"TSTypeParameter":r.const??(r.const=!1),r.in??(r.in=!1),r.out??(r.out=!1);return}}chStartsBindingIdentifierAndNotRelationalOperator(r,n){if(rn(r)){if(Ih.lastIndex=n,Ih.test(this.input)){let i=this.codePointAtPos(Ih.lastIndex);if(!us(i)&&i!==92)return!1}return!0}else return r===92}nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine(){let r=this.nextTokenInLineStart(),n=this.codePointAtPos(r);return this.chStartsBindingIdentifierAndNotRelationalOperator(n,r)}nextTokenIsIdentifierOrStringLiteralOnSameLine(){let r=this.nextTokenInLineStart(),n=this.codePointAtPos(r);return this.chStartsBindingIdentifier(n,r)||n===34||n===39}};function i9(e){if(e.type!=="MemberExpression")return!1;let{computed:t,property:r}=e;return t&&r.type!=="StringLiteral"&&(r.type!=="TemplateLiteral"||r.expressions.length>0)?!1:Sv(e.object)}function s9(e,t){var n;let{type:r}=e;if((n=e.extra)!=null&&n.parenthesized)return!1;if(t){if(r==="Literal"){let{value:i}=e;if(typeof i=="string"||typeof i=="boolean")return!0}}else if(r==="StringLiteral"||r==="BooleanLiteral")return!0;return!!(Tv(e,t)||a9(e,t)||r==="TemplateLiteral"&&e.expressions.length===0||i9(e))}function Tv(e,t){return t?e.type==="Literal"&&(typeof e.value=="number"||"bigint"in e):e.type==="NumericLiteral"||e.type==="BigIntLiteral"}function a9(e,t){if(e.type==="UnaryExpression"){let{operator:r,argument:n}=e;if(r==="-"&&Tv(n,t))return!0}return!1}function Sv(e){return e.type==="Identifier"?!0:e.type!=="MemberExpression"||e.computed?!1:Sv(e.object)}var Vg=tn`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."}),o9=e=>class extends e{parsePlaceholder(t){if(this.match(133)){let r=this.startNode();return this.next(),this.assertNoSpace(),r.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(133),this.finishPlaceholder(r,t)}}finishPlaceholder(t,r){let n=t;return(!n.expectedNode||!n.type)&&(n=this.finishNode(n,"Placeholder")),n.expectedNode=r,n}getTokenFromCode(t){t===37&&this.input.charCodeAt(this.state.pos+1)===37?this.finishOp(133,2):super.getTokenFromCode(t)}parseExprAtom(t){return this.parsePlaceholder("Expression")||super.parseExprAtom(t)}parseIdentifier(t){return this.parsePlaceholder("Identifier")||super.parseIdentifier(t)}checkReservedWord(t,r,n,i){t!==void 0&&super.checkReservedWord(t,r,n,i)}cloneIdentifier(t){let r=super.cloneIdentifier(t);return r.type==="Placeholder"&&(r.expectedNode=t.expectedNode),r}cloneStringLiteral(t){return t.type==="Placeholder"?this.cloneIdentifier(t):super.cloneStringLiteral(t)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(t,r,n,i){return t==="Placeholder"||super.isValidLVal(t,r,n,i)}toAssignable(t,r){t&&t.type==="Placeholder"&&t.expectedNode==="Expression"?t.expectedNode="Pattern":super.toAssignable(t,r)}chStartsBindingIdentifier(t,r){if(super.chStartsBindingIdentifier(t,r))return!0;let n=this.nextTokenStart();return this.input.charCodeAt(n)===37&&this.input.charCodeAt(n+1)===37}verifyBreakContinue(t,r){t.label&&t.label.type==="Placeholder"||super.verifyBreakContinue(t,r)}parseExpressionStatement(t,r){var i;if(r.type!=="Placeholder"||(i=r.extra)!=null&&i.parenthesized)return super.parseExpressionStatement(t,r);if(this.match(14)){let s=t;return s.label=this.finishPlaceholder(r,"Identifier"),this.next(),s.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(s,"LabeledStatement")}this.semicolon();let n=t;return n.name=r.name,this.finishPlaceholder(n,"Statement")}parseBlock(t,r,n){return this.parsePlaceholder("BlockStatement")||super.parseBlock(t,r,n)}parseFunctionId(t){return this.parsePlaceholder("Identifier")||super.parseFunctionId(t)}parseClass(t,r,n){let i=r?"ClassDeclaration":"ClassExpression";this.next();let s=this.state.strict,a=this.parsePlaceholder("Identifier");if(a)if(this.match(81)||this.match(133)||this.match(5))t.id=a;else{if(n||!r)return t.id=null,t.body=this.finishPlaceholder(a,"ClassBody"),this.finishNode(t,i);throw this.raise(Vg.ClassNameIsRequired,this.state.startLoc)}else this.parseClassId(t,r,n);return super.parseClassSuper(t),t.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!t.superClass,s),this.finishNode(t,i)}parseExport(t,r){let n=this.parsePlaceholder("Identifier");if(!n)return super.parseExport(t,r);let i=t;if(!this.isContextual(98)&&!this.match(12))return i.specifiers=[],i.source=null,i.declaration=this.finishPlaceholder(n,"Declaration"),this.finishNode(i,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");let s=this.startNode();return s.exported=n,i.specifiers=[this.finishNode(s,"ExportDefaultSpecifier")],super.parseExport(i,r)}isExportDefaultSpecifier(){if(this.match(65)){let t=this.nextTokenStart();if(this.isUnparsedContextual(t,"from")&&this.input.startsWith(Ti(133),this.nextTokenStartSince(t+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(t,r){var n;return(n=t.specifiers)!=null&&n.length?!0:super.maybeParseExportDefaultSpecifier(t,r)}checkExport(t){let{specifiers:r}=t;r!=null&&r.length&&(t.specifiers=r.filter(n=>n.exported.type==="Placeholder")),super.checkExport(t),t.specifiers=r}parseImport(t){let r=this.parsePlaceholder("Identifier");if(!r)return super.parseImport(t);if(t.specifiers=[],!this.isContextual(98)&&!this.match(12))return t.source=this.finishPlaceholder(r,"StringLiteral"),this.semicolon(),this.finishNode(t,"ImportDeclaration");let n=this.startNodeAtNode(r);return n.local=r,t.specifiers.push(this.finishNode(n,"ImportDefaultSpecifier")),this.eat(12)&&(this.maybeParseStarImportSpecifier(t)||this.parseNamedImportSpecifiers(t)),this.expectContextual(98),t.source=this.parseImportSource(),this.semicolon(),this.finishNode(t,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){this.state.start>this.offsetToSourcePos(this.state.lastTokEndLoc.index)&&this.raise(Vg.UnexpectedSpace,this.state.lastTokEndLoc)}},u9=e=>class extends e{parseV8Intrinsic(){if(this.match(54)){let t=this.state.startLoc,r=this.startNode();if(this.next(),Fe(this.state.type)){let n=this.parseIdentifierName(),i=this.createIdentifier(r,n);if(this.castNodeTo(i,"V8IntrinsicIdentifier"),this.match(10))return i}this.unexpected(t)}}parseExprAtom(t){return this.parseV8Intrinsic()||super.parseExprAtom(t)}},zg=["fsharp","hack"],qg=["^^","@@","^","%","#"];function l9(e){if(e.has("decorators")){if(e.has("decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");let t=e.get("decorators").decoratorsBeforeExport;if(t!=null&&typeof t!="boolean")throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");let r=e.get("decorators").allowCallParenthesized;if(r!=null&&typeof r!="boolean")throw new Error("'allowCallParenthesized' must be a boolean.")}if(e.has("flow")&&e.has("typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(e.has("placeholders")&&e.has("v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(e.has("pipelineOperator")){let t=e.get("pipelineOperator").proposal;if(!zg.includes(t)){let r=zg.map(n=>`"${n}"`).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${r}.`)}if(t==="hack"){if(e.has("placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(e.has("v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");let r=e.get("pipelineOperator").topicToken;if(!qg.includes(r)){let n=qg.map(i=>`"${i}"`).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${n}.`)}}}if(e.has("moduleAttributes"))throw new Error("`moduleAttributes` has been removed in Babel 8, please migrate to import attributes instead.");if(e.has("importAssertions"))throw new Error("`importAssertions` has been removed in Babel 8, please use import attributes instead. To use the non-standard `assert` syntax you can enable the `deprecatedImportAssert` parser plugin.");if(!e.has("deprecatedImportAssert")&&e.has("importAttributes")&&e.get("importAttributes").deprecatedAssertSyntax)throw new Error("The 'importAttributes' plugin has been removed in Babel 8. If you need to enable support for the deprecated `assert` syntax, you can enable the `deprecatedImportAssert` parser plugin.");if(e.has("recordAndTuple"))throw new Error("The 'recordAndTuple' plugin has been removed in Babel 8. Please remove it from your configuration.");if(e.has("asyncDoExpressions")&&!e.has("doExpressions")){let t=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw t.missingPlugins="doExpressions",t}if(e.has("optionalChainingAssign")&&e.get("optionalChainingAssign").version!=="2023-07")throw new Error("The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is '2023-07'.");if(e.has("discardBinding")&&e.get("discardBinding").syntaxType!=="void")throw new Error("The 'discardBinding' plugin requires a 'syntaxType' option. Currently the only supported value is 'void'.");{if(e.has("decimal"))throw new Error("The 'decimal' plugin has been removed in Babel 8. Please remove it from your configuration.");if(e.has("importReflection"))throw new Error("The 'importReflection' plugin has been removed in Babel 8. Use 'sourcePhaseImports' instead, and replace 'import module' with 'import source' in your code.")}}var Fv={estree:Y6,jsx:N5,flow:w5,typescript:n9,v8intrinsic:u9,placeholders:o9},c9=Object.keys(Fv),p9=class extends Z5{checkProto(t,r,n,i){if(t.type==="SpreadElement"||this.isObjectMethod(t)||t.computed||t.shorthand)return n;let s=t.key;return(s.type==="Identifier"?s.name:s.value)==="__proto__"?r?(this.raise(w.RecordNoProto,s),!0):(n&&(i?i.doubleProtoLoc===null&&(i.doubleProtoLoc=s.loc.start):this.raise(w.DuplicateProto,s)),!0):n}shouldExitDescending(t,r){return t.type==="ArrowFunctionExpression"&&this.offsetToSourcePos(t.start)===r}getExpression(){if(this.enterInitialScopes(),this.nextToken(),this.match(140))throw this.raise(w.ParseExpressionEmptyInput,this.state.startLoc);let t=this.parseExpression();if(!this.match(140))throw this.raise(w.ParseExpressionExpectsEOF,this.state.startLoc,{unexpected:this.input.codePointAt(this.state.start)});return this.finalizeRemainingComments(),t.comments=this.comments,t.errors=this.state.errors,this.optionFlags&256&&(t.tokens=this.tokens),t}parseExpression(t,r){return t?this.disallowInAnd(()=>this.parseExpressionBase(r)):this.allowInAnd(()=>this.parseExpressionBase(r))}parseExpressionBase(t){let r=this.state.startLoc,n=this.parseMaybeAssign(t);if(this.match(12)){let i=this.startNodeAt(r);for(i.expressions=[n];this.eat(12);)i.expressions.push(this.parseMaybeAssign(t));return this.toReferencedList(i.expressions),this.finishNode(i,"SequenceExpression")}return n}parseMaybeAssignDisallowIn(t,r){return this.disallowInAnd(()=>this.parseMaybeAssign(t,r))}parseMaybeAssignAllowIn(t,r){return this.allowInAnd(()=>this.parseMaybeAssign(t,r))}setOptionalParametersError(t){t.optionalParametersLoc=this.state.startLoc}parseMaybeAssign(t,r){let n=this.state.startLoc,i=this.isContextual(108);if(i&&this.prodParam.hasYield){this.next();let u=this.parseYield(n);return r&&(u=r.call(this,u,n)),u}let s;t?s=!1:(t=new sc,s=!0);let{type:a}=this.state;(a===10||Fe(a))&&(this.state.potentialArrowAt=this.state.start);let o=this.parseMaybeConditional(t);if(r&&(o=r.call(this,o,n)),n5(this.state.type)){let u=this.startNodeAt(n),l=this.state.value;if(u.operator=l,this.match(29)){this.toAssignable(o,!0),u.left=o;let c=n.index;t.doubleProtoLoc!=null&&t.doubleProtoLoc.index>=c&&(t.doubleProtoLoc=null),t.shorthandAssignLoc!=null&&t.shorthandAssignLoc.index>=c&&(t.shorthandAssignLoc=null),t.privateKeyLoc!=null&&t.privateKeyLoc.index>=c&&(this.checkDestructuringPrivate(t),t.privateKeyLoc=null),t.voidPatternLoc!=null&&t.voidPatternLoc.index>=c&&(t.voidPatternLoc=null)}else u.left=o;return this.next(),u.right=this.parseMaybeAssign(),this.checkLVal(o,this.finishNode(u,"AssignmentExpression"),void 0,void 0,void 0,void 0,l==="||="||l==="&&="||l==="??="),u}else s&&this.checkExpressionErrors(t,!0);if(i){let{type:u}=this.state;if((this.hasPlugin("v8intrinsic")?Po(u):Po(u)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(w.YieldNotInGeneratorFunction,n),this.parseYield(n)}return o}parseMaybeConditional(t){let r=this.state.startLoc,n=this.state.potentialArrowAt,i=this.parseExprOps(t);return this.shouldExitDescending(i,n)?i:this.parseConditional(i,r,t)}parseConditional(t,r,n){if(this.eat(17)){let i=this.startNodeAt(r);return i.test=t,i.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),i.alternate=this.parseMaybeAssign(),this.finishNode(i,"ConditionalExpression")}return t}parseMaybeUnaryOrPrivate(t){return this.match(139)?this.parsePrivateName():this.parseMaybeUnary(t)}parseExprOps(t){let r=this.state.startLoc,n=this.state.potentialArrowAt,i=this.parseMaybeUnaryOrPrivate(t);return this.shouldExitDescending(i,n)?i:this.parseExprOp(i,r,-1)}parseExprOp(t,r,n){if(this.isPrivateName(t)){let s=this.getPrivateNameSV(t);(n>=nc(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(w.PrivateInExpectedIn,t,{identifierName:s}),this.classScope.usePrivateName(s,t.loc.start)}let i=this.state.type;if(s5(i)&&(this.prodParam.hasIn||!this.match(58))){let s=nc(i);if(s>n){if(i===39){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return t;this.checkPipelineAtInfixOperator(t,r)}let a=this.startNodeAt(r);a.left=t,a.operator=this.state.value;let o=i===41||i===42,u=i===40;u&&(s=nc(42)),this.next(),a.right=this.parseExprOpRightExpr(i,s);let l=this.finishNode(a,o||u?"LogicalExpression":"BinaryExpression"),c=this.state.type;if(u&&(c===41||c===42)||o&&c===40)throw this.raise(w.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(l,r,n)}}return t}parseExprOpRightExpr(t,r){switch(this.state.startLoc,t){case 39:switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext(()=>this.parseHackPipeBody());case"fsharp":return this.withSoloAwaitPermittingContext(()=>this.parseFSharpPipelineBody(r))}default:return this.parseExprOpBaseRightExpr(t,r)}}parseExprOpBaseRightExpr(t,r){let n=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),n,c5(t)?r-1:r)}parseHackPipeBody(){var n;let{startLoc:t}=this.state,r=this.parseMaybeAssign();return H6.has(r.type)&&!((n=r.extra)!=null&&n.parenthesized)&&this.raise(w.PipeUnparenthesizedBody,t,{type:r.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(w.PipeTopicUnused,t),r}checkExponentialAfterUnary(t){this.match(57)&&this.raise(w.UnexpectedTokenUnaryExponentiation,t.argument)}parseMaybeUnary(t,r){let n=this.state.startLoc,i=this.isContextual(96);if(i&&this.recordAwaitIfAllowed()){this.next();let u=this.parseAwait(n);return r||this.checkExponentialAfterUnary(u),u}let s=this.match(34),a=this.startNode();if(o5(this.state.type)){a.operator=this.state.value,a.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");let u=this.match(89);if(this.next(),a.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(t,!0),this.state.strict&&u){let l=a.argument;l.type==="Identifier"?this.raise(w.StrictDelete,a):this.hasPropertyAsPrivateName(l)&&this.raise(w.DeletePrivateField,a)}if(!s)return r||this.checkExponentialAfterUnary(a),this.finishNode(a,"UnaryExpression")}let o=this.parseUpdate(a,s,t);if(i){let{type:u}=this.state;if((this.hasPlugin("v8intrinsic")?Po(u):Po(u)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(w.AwaitNotInAsyncContext,n),this.parseAwait(n)}return o}parseUpdate(t,r,n){if(r){let a=t;return this.checkLVal(a.argument,this.finishNode(a,"UpdateExpression")),t}let i=this.state.startLoc,s=this.parseExprSubscripts(n);if(this.checkExpressionErrors(n,!1))return s;for(;a5(this.state.type)&&!this.canInsertSemicolon();){let a=this.startNodeAt(i);a.operator=this.state.value,a.prefix=!1,a.argument=s,this.next(),this.checkLVal(s,s=this.finishNode(a,"UpdateExpression"))}return s}parseExprSubscripts(t){let r=this.state.startLoc,n=this.state.potentialArrowAt,i=this.parseExprAtom(t);return this.shouldExitDescending(i,n)?i:this.parseSubscripts(i,r)}parseSubscripts(t,r,n){let i={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(t),stop:!1};do t=this.parseSubscript(t,r,n,i),i.maybeAsyncArrow=!1;while(!i.stop);return t}parseSubscript(t,r,n,i){let{type:s}=this.state;if(!n&&s===15)return this.parseBind(t,r,n,i);if(cf(s))return this.parseTaggedTemplateExpression(t,r,i);let a=!1;if(s===18){if(n&&(this.raise(w.OptionalChainingNoNew,this.state.startLoc),this.lookaheadCharCode()===40))return this.stopParseSubscript(t,i);i.optionalChainMember=a=!0,this.next()}if(!n&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(t,r,i,a);{let o=this.eat(0);return o||a||this.eat(16)?this.parseMember(t,r,i,o,a):this.stopParseSubscript(t,i)}}stopParseSubscript(t,r){return r.stop=!0,t}parseMember(t,r,n,i,s){let a=this.startNodeAt(r);return a.object=t,a.computed=i,i?(a.property=this.parseExpression(),this.expect(3)):this.match(139)?(t.type==="Super"&&this.raise(w.SuperPrivateField,r),this.classScope.usePrivateName(this.state.value,this.state.startLoc),a.property=this.parsePrivateName()):a.property=this.parseIdentifier(!0),n.optionalChainMember?(a.optional=s,this.finishNode(a,"OptionalMemberExpression")):this.finishNode(a,"MemberExpression")}parseBind(t,r,n,i){let s=this.startNodeAt(r);return s.object=t,this.next(),s.callee=this.parseNoCallExpr(),i.stop=!0,this.parseSubscripts(this.finishNode(s,"BindExpression"),r,n)}parseCoverCallAndAsyncArrowHead(t,r,n,i){let s=this.state.maybeInArrowParameters,a=null;this.state.maybeInArrowParameters=!0,this.next();let o=this.startNodeAt(r);o.callee=t;let{maybeAsyncArrow:u,optionalChainMember:l}=n;u&&(this.expressionScope.enter(G5()),a=new sc),l&&(o.optional=i),i?o.arguments=this.parseCallExpressionArguments():o.arguments=this.parseCallExpressionArguments(t.type!=="Super",o,a);let c=this.finishCallExpression(o,l);return u&&this.shouldParseAsyncArrow()&&!i?(n.stop=!0,this.checkDestructuringPrivate(a),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),c=this.parseAsyncArrowFromCallExpression(this.startNodeAt(r),c)):(u&&(this.checkExpressionErrors(a,!0),this.expressionScope.exit()),this.toReferencedArguments(c)),this.state.maybeInArrowParameters=s,c}toReferencedArguments(t,r){this.toReferencedListDeep(t.arguments,r)}parseTaggedTemplateExpression(t,r,n){let i=this.startNodeAt(r);return i.tag=t,i.quasi=this.parseTemplate(!0),n.optionalChainMember&&this.raise(w.OptionalChainingNoTemplate,r),this.finishNode(i,"TaggedTemplateExpression")}atPossibleAsyncArrow(t){return t.type==="Identifier"&&t.name==="async"&&this.state.lastTokEndLoc.index===t.end&&!this.canInsertSemicolon()&&t.end-t.start===5&&this.offsetToSourcePos(t.start)===this.state.potentialArrowAt}finishCallExpression(t,r){if(t.callee.type==="Import")if(t.arguments.length===0||t.arguments.length>2)this.raise(w.ImportCallArity,t);else for(let n of t.arguments)n.type==="SpreadElement"&&this.raise(w.ImportCallSpreadArgument,n);return this.finishNode(t,r?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(t,r,n){let i=[],s=!0,a=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(11);){if(s)s=!1;else if(this.expect(12),this.match(11)){r&&this.addTrailingCommaExtraToNode(r),this.next();break}i.push(this.parseExprListItem(11,!1,n,t))}return this.state.inFSharpPipelineDirectBody=a,i}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(t,r){var n;return this.resetPreviousNodeTrailingComments(r),this.expect(19),this.parseArrowExpression(t,r.arguments,!0,(n=r.extra)==null?void 0:n.trailingCommaLoc),r.innerComments&&ma(t,r.innerComments),r.callee.trailingComments&&ma(t,r.callee.trailingComments),t}parseNoCallExpr(){let t=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),t,!0)}parseExprAtom(t){let r,n=null,{type:i}=this.state;switch(i){case 79:return this.parseSuper();case 83:return r=this.startNode(),this.next(),this.match(16)?this.parseImportMetaPropertyOrPhaseCall(r):this.match(10)?this.optionFlags&512?this.parseImportCall(r):this.finishNode(r,"Import"):(this.raise(w.UnsupportedImport,this.state.lastTokStartLoc),this.finishNode(r,"Import"));case 78:return r=this.startNode(),this.next(),this.finishNode(r,"ThisExpression");case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 135:return this.parseNumericLiteral(this.state.value);case 136:return this.parseBigIntLiteral(this.state.value);case 134:return this.parseStringLiteral(this.state.value);case 84:return this.parseNullLiteral();case 85:return this.parseBooleanLiteral(!0);case 86:return this.parseBooleanLiteral(!1);case 10:{let s=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(s)}case 0:return this.parseArrayLike(3,!1,t);case 5:return this.parseObjectLike(8,!1,!1,t);case 68:return this.parseFunctionOrFunctionSent();case 26:n=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(n,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{r=this.startNode(),this.next(),r.object=null;let s=r.callee=this.parseNoCallExpr();if(s.type==="MemberExpression")return this.finishNode(r,"BindExpression");throw this.raise(w.UnsupportedBind,s)}case 139:return this.raise(w.PrivateInExpectedIn,this.state.startLoc,{identifierName:this.state.value}),this.parsePrivateName();case 33:return this.parseTopicReferenceThenEqualsSign(54,"%");case 32:return this.parseTopicReferenceThenEqualsSign(44,"^");case 37:case 38:return this.parseTopicReference("hack");case 44:case 54:case 27:{let s=this.getPluginOption("pipelineOperator","proposal");if(s)return this.parseTopicReference(s);throw this.unexpected()}case 47:{let s=this.input.codePointAt(this.nextTokenStart());throw rn(s)||s===62?this.expectOnePlugin(["jsx","flow","typescript"]):this.unexpected()}default:if(Fe(i)){if(this.isContextual(127)&&this.lookaheadInLineCharCode()===123)return this.parseModuleExpression();let s=this.state.potentialArrowAt===this.state.start,a=this.state.containsEsc,o=this.parseIdentifier();if(!a&&o.name==="async"&&!this.canInsertSemicolon()){let{type:u}=this.state;if(u===68)return this.resetPreviousNodeTrailingComments(o),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(o));if(Fe(u))return this.lookaheadCharCode()===61?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(o)):o;if(u===90)return this.resetPreviousNodeTrailingComments(o),this.parseDo(this.startNodeAtNode(o),!0)}return s&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(o),[o],!1)):o}else throw this.unexpected()}}parseTopicReferenceThenEqualsSign(t,r){let n=this.getPluginOption("pipelineOperator","proposal");if(n)return this.state.type=t,this.state.value=r,this.state.pos--,this.state.end--,this.state.endLoc=xr(this.state.endLoc,-1),this.parseTopicReference(n);throw this.unexpected()}parseTopicReference(t){let r=this.startNode(),n=this.state.startLoc,i=this.state.type;return this.next(),this.finishTopicReference(r,n,t,i)}finishTopicReference(t,r,n,i){if(this.testTopicReferenceConfiguration(n,r,i))return this.topicReferenceIsAllowedInCurrentContext()||this.raise(w.PipeTopicUnbound,r),this.registerTopicReference(),this.finishNode(t,"TopicReference");throw this.raise(w.PipeTopicUnconfiguredToken,r,{token:Ti(i)})}testTopicReferenceConfiguration(t,r,n){switch(t){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:Ti(n)}]);case"smart":return n===27;default:throw this.raise(w.PipeTopicRequiresHackPipes,r)}}parseAsyncArrowUnaryFunction(t){this.prodParam.enter(ic(!0,this.prodParam.hasYield));let r=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(w.LineTerminatorBeforeArrow,this.state.curPosition()),this.expect(19),this.parseArrowExpression(t,r,!0)}parseDo(t,r){this.expectPlugin("doExpressions"),r&&this.expectPlugin("asyncDoExpressions"),t.async=r,this.next();let n=this.state.labels;return this.state.labels=[],r?(this.prodParam.enter(2),t.body=this.parseBlock(),this.prodParam.exit()):t.body=this.parseBlock(),this.state.labels=n,this.finishNode(t,"DoExpression")}parseSuper(){let t=this.startNode();return this.next(),this.match(10)&&!this.scope.allowDirectSuper?this.raise(w.SuperNotAllowed,t):this.scope.allowSuper||this.raise(w.UnexpectedSuper,t),!this.match(10)&&!this.match(0)&&!this.match(16)&&this.raise(w.UnsupportedSuper,t),this.finishNode(t,"Super")}parsePrivateName(){let t=this.startNode(),r=this.startNodeAt(xr(this.state.startLoc,1)),n=this.state.value;return this.next(),t.id=this.createIdentifier(r,n),this.finishNode(t,"PrivateName")}parseFunctionOrFunctionSent(){let t=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){let r=this.createIdentifier(this.startNodeAtNode(t),"function");return this.next(),this.match(103)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected(),this.parseMetaProperty(t,r,"sent")}return this.parseFunction(t)}parseMetaProperty(t,r,n){t.meta=r;let i=this.state.containsEsc;return t.property=this.parseIdentifier(!0),(t.property.name!==n||i)&&this.raise(w.UnsupportedMetaProperty,t.property,{target:r.name,onlyValidPropertyName:n}),this.finishNode(t,"MetaProperty")}parseImportMetaPropertyOrPhaseCall(t){if(this.next(),this.isContextual(105)||this.isContextual(97)){let r=this.isContextual(105);return this.expectPlugin(r?"sourcePhaseImports":"deferredImportEvaluation"),this.next(),t.phase=r?"source":"defer",this.parseImportCall(t)}else{let r=this.createIdentifierAt(this.startNodeAtNode(t),"import",this.state.lastTokStartLoc);return this.isContextual(101)&&(this.inModule||this.raise(w.ImportMetaOutsideModule,r),this.sawUnambiguousESM=!0),this.parseMetaProperty(t,r,"meta")}}parseLiteralAtNode(t,r,n){return this.addExtra(n,"rawValue",t),this.addExtra(n,"raw",this.input.slice(this.offsetToSourcePos(n.start),this.state.end)),n.value=t,this.next(),this.finishNode(n,r)}parseLiteral(t,r){let n=this.startNode();return this.parseLiteralAtNode(t,r,n)}parseStringLiteral(t){return this.parseLiteral(t,"StringLiteral")}parseNumericLiteral(t){return this.parseLiteral(t,"NumericLiteral")}parseBigIntLiteral(t){{let r;try{r=BigInt(t)}catch{r=null}return this.parseLiteral(r,"BigIntLiteral")}}parseDecimalLiteral(t){return this.parseLiteral(t,"DecimalLiteral")}parseRegExpLiteral(t){let r=this.startNode();return this.addExtra(r,"raw",this.input.slice(this.offsetToSourcePos(r.start),this.state.end)),r.pattern=t.pattern,r.flags=t.flags,this.next(),this.finishNode(r,"RegExpLiteral")}parseBooleanLiteral(t){let r=this.startNode();return r.value=t,this.next(),this.finishNode(r,"BooleanLiteral")}parseNullLiteral(){let t=this.startNode();return this.next(),this.finishNode(t,"NullLiteral")}parseParenAndDistinguishExpression(t){let r=this.state.startLoc,n;this.next(),this.expressionScope.enter(K5());let i=this.state.maybeInArrowParameters,s=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;let a=this.state.startLoc,o=[],u=new sc,l=!0,c,p;for(;!this.match(11);){if(l)l=!1;else if(this.expect(12,u.optionalParametersLoc===null?null:u.optionalParametersLoc),this.match(11)){p=this.state.startLoc;break}if(this.match(21)){let f=this.state.startLoc;if(c=this.state.startLoc,o.push(this.parseParenItem(this.parseRestBinding(),f)),!this.checkCommaAfterRest(41))break}else o.push(this.parseMaybeAssignAllowInOrVoidPattern(11,u,this.parseParenItem))}let h=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=i,this.state.inFSharpPipelineDirectBody=s;let d=this.startNodeAt(r);return t&&this.shouldParseArrow(o)&&(d=this.parseArrow(d))?(this.checkDestructuringPrivate(u),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(d,o,!1),d):(this.expressionScope.exit(),o.length||this.unexpected(this.state.lastTokStartLoc),p&&this.unexpected(p),c&&this.unexpected(c),this.checkExpressionErrors(u,!0),this.toReferencedListDeep(o,!0),o.length>1?(n=this.startNodeAt(a),n.expressions=o,this.finishNode(n,"SequenceExpression"),this.resetEndLocation(n,h)):n=o[0],this.wrapParenthesis(r,n))}wrapParenthesis(t,r){if(!(this.optionFlags&1024))return this.addExtra(r,"parenthesized",!0),this.addExtra(r,"parenStart",t.index),this.takeSurroundingComments(r,t.index,this.state.lastTokEndLoc.index),r;let n=this.startNodeAt(t);return n.expression=r,this.finishNode(n,"ParenthesizedExpression")}shouldParseArrow(t){return!this.canInsertSemicolon()}parseArrow(t){if(this.eat(19))return t}parseParenItem(t,r){return t}parseNewOrNewTarget(){let t=this.startNode();if(this.next(),this.match(16)){let r=this.createIdentifier(this.startNodeAtNode(t),"new");this.next();let n=this.parseMetaProperty(t,r,"target");return this.scope.allowNewTarget||this.raise(w.UnexpectedNewTarget,n),n}return this.parseNew(t)}parseNew(t){if(this.parseNewCallee(t),this.eat(10)){let r=this.parseExprList(11);this.toReferencedList(r),t.arguments=r}else t.arguments=[];return this.finishNode(t,"NewExpression")}parseNewCallee(t){let r=this.match(83),n=this.parseNoCallExpr();t.callee=n,r&&(n.type==="Import"||n.type==="ImportExpression")&&this.raise(w.ImportCallNotNewExpression,n)}parseTemplateElement(t){let{start:r,startLoc:n,end:i,value:s}=this.state,a=r+1,o=this.startNodeAt(xr(n,1));s===null&&(t||this.raise(w.InvalidEscapeSequenceTemplate,xr(this.state.firstInvalidTemplateEscapePos,1)));let u=this.match(24),l=u?-1:-2,c=i+l;o.value={raw:this.input.slice(a,c).replace(/\r\n?/g,` +`),cooked:s===null?null:s.slice(1,l)},o.tail=u,this.next();let p=this.finishNode(o,"TemplateElement");return this.resetEndLocation(p,xr(this.state.lastTokEndLoc,l)),p}parseTemplate(t){let r=this.startNode(),n=this.parseTemplateElement(t),i=[n],s=[];for(;!n.tail;)s.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),i.push(n=this.parseTemplateElement(t));return r.expressions=s,r.quasis=i,this.finishNode(r,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(t,r,n,i){n&&this.expectPlugin("recordAndTuple");let s=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let a=!1,o=!0,u=this.startNode();for(u.properties=[],this.next();!this.match(t);){if(o)o=!1;else if(this.expect(12),this.match(t)){this.addTrailingCommaExtraToNode(u);break}let c;r?c=this.parseBindingProperty():(c=this.parsePropertyDefinition(i),a=this.checkProto(c,n,a,i)),n&&!this.isObjectProperty(c)&&c.type!=="SpreadElement"&&this.raise(w.InvalidRecordProperty,c),u.properties.push(c)}this.next(),this.state.inFSharpPipelineDirectBody=s;let l="ObjectExpression";return r?l="ObjectPattern":n&&(l="RecordExpression"),this.finishNode(u,l)}addTrailingCommaExtraToNode(t){this.addExtra(t,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(t,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(t){return!t.computed&&t.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(t){let r=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(w.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)r.push(this.parseDecorator());let n=this.startNode(),i=!1,s=!1,a;if(this.match(21))return r.length&&this.unexpected(),this.parseSpread();r.length&&(n.decorators=r,r=[]),n.method=!1,t&&(a=this.state.startLoc);let o=this.eat(55);this.parsePropertyNamePrefixOperator(n);let u=this.state.containsEsc;if(this.parsePropertyName(n,t),!o&&!u&&this.maybeAsyncOrAccessorProp(n)){let{key:l}=n,c=l.name;c==="async"&&!this.hasPrecedingLineBreak()&&(i=!0,this.resetPreviousNodeTrailingComments(l),o=this.eat(55),this.parsePropertyName(n)),(c==="get"||c==="set")&&(s=!0,this.resetPreviousNodeTrailingComments(l),n.kind=c,this.match(55)&&(o=!0,this.raise(w.AccessorIsGenerator,this.state.curPosition(),{kind:c}),this.next()),this.parsePropertyName(n))}return this.parseObjPropValue(n,a,o,i,!1,s,t)}getGetterSetterExpectedParamCount(t){return t.kind==="get"?0:1}getObjectOrClassMethodParams(t){return t.params}checkGetterSetterParams(t){var i;let r=this.getGetterSetterExpectedParamCount(t),n=this.getObjectOrClassMethodParams(t);n.length!==r&&this.raise(t.kind==="get"?w.BadGetterArity:w.BadSetterArity,t),t.kind==="set"&&((i=n[n.length-1])==null?void 0:i.type)==="RestElement"&&this.raise(w.BadSetterRestParameter,t)}parseObjectMethod(t,r,n,i,s){if(s){let a=this.parseMethod(t,r,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(a),a}if(n||r||this.match(10))return i&&this.unexpected(),t.kind="method",t.method=!0,this.parseMethod(t,r,n,!1,!1,"ObjectMethod")}parseObjectProperty(t,r,n,i){if(t.shorthand=!1,this.eat(14))return t.value=n?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowInOrVoidPattern(8,i),this.finishObjectProperty(t);if(!t.computed&&t.key.type==="Identifier"){if(this.checkReservedWord(t.key.name,t.key.loc.start,!0,!1),n)t.value=this.parseMaybeDefault(r,this.cloneIdentifier(t.key));else if(this.match(29)){let s=this.state.startLoc;i!=null?i.shorthandAssignLoc===null&&(i.shorthandAssignLoc=s):this.raise(w.InvalidCoverInitializedName,s),t.value=this.parseMaybeDefault(r,this.cloneIdentifier(t.key))}else t.value=this.cloneIdentifier(t.key);return t.shorthand=!0,this.finishObjectProperty(t)}}finishObjectProperty(t){return this.finishNode(t,"ObjectProperty")}parseObjPropValue(t,r,n,i,s,a,o){let u=this.parseObjectMethod(t,n,i,s,a)||this.parseObjectProperty(t,r,s,o);return u||this.unexpected(),u}parsePropertyName(t,r){if(this.eat(0))t.computed=!0,t.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{let{type:n,value:i}=this.state,s;if($r(n))s=this.parseIdentifier(!0);else switch(n){case 135:s=this.parseNumericLiteral(i);break;case 134:s=this.parseStringLiteral(i);break;case 136:s=this.parseBigIntLiteral(i);break;case 139:{let a=this.state.startLoc;r!=null?r.privateKeyLoc===null&&(r.privateKeyLoc=a):this.raise(w.UnexpectedPrivateField,a),s=this.parsePrivateName();break}default:this.unexpected()}t.key=s,n!==139&&(t.computed=!1)}}initFunction(t,r){t.id=null,t.generator=!1,t.async=r}parseMethod(t,r,n,i,s,a,o=!1){this.initFunction(t,n),t.generator=r,this.scope.enter(530|(o?576:0)|(s?32:0)),this.prodParam.enter(ic(n,t.generator)),this.parseFunctionParams(t,i);let u=this.parseFunctionBodyAndFinish(t,a,!0);return this.prodParam.exit(),this.scope.exit(),u}parseArrayLike(t,r,n){r&&this.expectPlugin("recordAndTuple");let i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let s=this.startNode();return this.next(),s.elements=this.parseExprList(t,!r,n,s),this.state.inFSharpPipelineDirectBody=i,this.finishNode(s,r?"TupleExpression":"ArrayExpression")}parseArrowExpression(t,r,n,i){this.scope.enter(518);let s=ic(n,!1);!this.match(5)&&this.prodParam.hasIn&&(s|=8),this.prodParam.enter(s),this.initFunction(t,n);let a=this.state.maybeInArrowParameters;return r&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(t,r,i)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(t,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=a,this.finishNode(t,"ArrowFunctionExpression")}setArrowFunctionParameters(t,r,n){this.toAssignableList(r,n,!1),t.params=r}parseFunctionBodyAndFinish(t,r,n=!1){return this.parseFunctionBody(t,!1,n),this.finishNode(t,r)}parseFunctionBody(t,r,n=!1){let i=r&&!this.match(5);if(this.expressionScope.enter(bv()),i)t.body=this.parseMaybeAssign(),this.checkParams(t,!1,r,!1);else{let s=this.state.strict,a=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|4),t.body=this.parseBlock(!0,!1,o=>{let u=!this.isSimpleParamList(t.params);o&&u&&this.raise(w.IllegalLanguageModeDirective,(t.kind==="method"||t.kind==="constructor")&&t.key?t.key.loc.end:t);let l=!s&&this.state.strict;this.checkParams(t,!this.state.strict&&!r&&!n&&!u,r,l),this.state.strict&&t.id&&this.checkIdentifier(t.id,65,l)}),this.prodParam.exit(),this.state.labels=a}this.expressionScope.exit()}isSimpleParameter(t){return t.type==="Identifier"}isSimpleParamList(t){for(let r=0,n=t.length;r10||!E5(t))){if(n&&g5(t)){this.raise(w.UnexpectedKeyword,r,{keyword:t});return}if((this.state.strict?i?Dv:yv:mv)(t,this.inModule)){this.raise(w.UnexpectedReservedWord,r,{reservedWord:t});return}else if(t==="yield"){if(this.prodParam.hasYield){this.raise(w.YieldBindingIdentifier,r);return}}else if(t==="await"){if(this.prodParam.hasAwait){this.raise(w.AwaitBindingIdentifier,r);return}if(this.scope.inStaticBlock){this.raise(w.AwaitBindingIdentifierInStaticBlock,r);return}this.expressionScope.recordAsyncArrowParametersError(r)}else if(t==="arguments"&&this.scope.inClassAndNotInNonArrowFunction){this.raise(w.ArgumentsInClass,r);return}}}recordAwaitIfAllowed(){let t=this.prodParam.hasAwait;return t&&!this.scope.inFunction&&(this.state.hasTopLevelAwait=!0),t}parseAwait(t){let r=this.startNodeAt(t);return this.expressionScope.recordParameterInitializerError(w.AwaitExpressionFormalParameter,r),this.eat(55)&&this.raise(w.ObsoleteAwaitStar,r),!this.scope.inFunction&&!(this.optionFlags&1)&&(this.isAmbiguousPrefixOrIdentifier()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(r.argument=this.parseMaybeUnary(null,!0)),this.finishNode(r,"AwaitExpression")}isAmbiguousPrefixOrIdentifier(){if(this.hasPrecedingLineBreak())return!0;let{type:t}=this.state;return t===53||t===10||t===0||cf(t)||t===102&&!this.state.containsEsc||t===138||t===56||this.hasPlugin("v8intrinsic")&&t===54}parseYield(t){let r=this.startNodeAt(t);this.expressionScope.recordParameterInitializerError(w.YieldInParameter,r);let n=!1,i=null;if(!this.hasPrecedingLineBreak())switch(n=this.eat(55),this.state.type){case 13:case 140:case 8:case 11:case 3:case 9:case 14:case 12:if(!n)break;default:i=this.parseMaybeAssign()}return r.delegate=n,r.argument=i,this.finishNode(r,"YieldExpression")}parseImportCall(t){if(this.next(),t.source=this.parseMaybeAssignAllowIn(),t.options=null,this.eat(12)){if(this.match(11))this.addTrailingCommaExtraToNode(t.source);else if(t.options=this.parseMaybeAssignAllowIn(),this.eat(12)&&(this.addTrailingCommaExtraToNode(t.options),!this.match(11))){do this.parseMaybeAssignAllowIn();while(this.eat(12)&&!this.match(11));this.raise(w.ImportCallArity,t)}}return this.expect(11),this.finishNode(t,"ImportExpression")}checkPipelineAtInfixOperator(t,r){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&t.type==="SequenceExpression"&&this.raise(w.PipelineHeadSequenceExpression,r)}parseSmartPipelineBodyInStyle(t,r){if(this.isSimpleReference(t)){let n=this.startNodeAt(r);return n.callee=t,this.finishNode(n,"PipelineBareFunction")}else{let n=this.startNodeAt(r);return this.checkSmartPipeTopicBodyEarlyErrors(r),n.expression=t,this.finishNode(n,"PipelineTopicExpression")}}isSimpleReference(t){switch(t.type){case"MemberExpression":return!t.computed&&this.isSimpleReference(t.object);case"Identifier":return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(t){if(this.match(19))throw this.raise(w.PipelineBodyNoArrow,this.state.startLoc);this.topicReferenceWasUsedInCurrentContext()||this.raise(w.PipelineTopicUnused,t)}withTopicBindingContext(t){let r=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return t()}finally{this.state.topicContext=r}}withSmartMixTopicForbiddingContext(t){return t()}withSoloAwaitPermittingContext(t){let r=this.state.soloAwait;this.state.soloAwait=!0;try{return t()}finally{this.state.soloAwait=r}}allowInAnd(t){let r=this.prodParam.currentFlags();if(8&~r){this.prodParam.enter(r|8);try{return t()}finally{this.prodParam.exit()}}return t()}disallowInAnd(t){let r=this.prodParam.currentFlags();if(8&r){this.prodParam.enter(r&-9);try{return t()}finally{this.prodParam.exit()}}return t()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return this.state.topicContext.maxTopicIndex!=null&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(t){let r=this.state.startLoc;this.state.potentialArrowAt=this.state.start;let n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;let i=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),r,t);return this.state.inFSharpPipelineDirectBody=n,i}parseModuleExpression(){this.expectPlugin("moduleBlocks");let t=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);let r=this.startNodeAt(this.state.endLoc);this.next();let n=this.initializeScopes(!0);this.enterInitialScopes();try{t.body=this.parseProgram(r,8,"module")}finally{n()}return this.finishNode(t,"ModuleExpression")}parseVoidPattern(t){this.expectPlugin("discardBinding");let r=this.startNode();return t!=null&&(t.voidPatternLoc=this.state.startLoc),this.next(),this.finishNode(r,"VoidPattern")}parseMaybeAssignAllowInOrVoidPattern(t,r,n){if(r!=null&&this.match(88)){let i=this.lookaheadCharCode();if(i===44||i===(t===3?93:t===8?125:41)||i===61)return this.parseMaybeDefault(this.state.startLoc,this.parseVoidPattern(r))}return this.parseMaybeAssignAllowIn(r,n)}parsePropertyNamePrefixOperator(t){}},_h={kind:1},h9={kind:2},d9=/[\uD800-\uDFFF]/u,Lh=/in(?:stanceof)?/y;function f9(e,t,r){for(let n=0;n0)for(let[s,a]of Array.from(this.scope.undefinedExports))this.raise(w.ModuleExportUndefined,a,{localName:s});this.addExtra(t,"topLevelAwait",this.state.hasTopLevelAwait)}let i;return r===140?i=this.finishNode(t,"Program"):i=this.finishNodeAt(t,"Program",xr(this.state.startLoc,-1)),i}stmtToDirective(t){let r=this.castNodeTo(t,"Directive"),n=this.castNodeTo(t.expression,"DirectiveLiteral"),i=n.value,s=this.input.slice(this.offsetToSourcePos(n.start),this.offsetToSourcePos(n.end)),a=n.value=s.slice(1,-1);return this.addExtra(n,"raw",s),this.addExtra(n,"rawValue",a),this.addExtra(n,"expressionValue",i),r.value=n,delete t.expression,r}parseInterpreterDirective(){if(!this.match(28))return null;let t=this.startNode();return t.value=this.state.value,this.next(),this.finishNode(t,"InterpreterDirective")}isLet(){return this.isContextual(100)?this.hasFollowingBindingAtom():!1}isUsing(){return this.isContextual(107)?this.nextTokenIsIdentifierOnSameLine():!1}isForUsing(){if(!this.isContextual(107))return!1;let t=this.nextTokenInLineStart(),r=this.codePointAtPos(t);if(this.isUnparsedContextual(t,"of")){let n=this.lookaheadCharCodeSince(t+2);if(n!==61&&n!==58&&n!==59)return!1}return!!(this.chStartsBindingIdentifier(r,t)||this.isUnparsedContextual(t,"void"))}nextTokenIsIdentifierOnSameLine(){let t=this.nextTokenInLineStart(),r=this.codePointAtPos(t);return this.chStartsBindingIdentifier(r,t)}isAwaitUsing(){if(!this.isContextual(96))return!1;let t=this.nextTokenInLineStart();if(this.isUnparsedContextual(t,"using")){t=this.nextTokenInLineStartSince(t+5);let r=this.codePointAtPos(t);if(this.chStartsBindingIdentifier(r,t))return!0}return!1}chStartsBindingIdentifier(t,r){if(rn(t)){if(Lh.lastIndex=r,Lh.test(this.input)){let n=this.codePointAtPos(Lh.lastIndex);if(!us(n)&&n!==92)return!1}return!0}else return t===92}chStartsBindingPattern(t){return t===91||t===123}hasFollowingBindingAtom(){let t=this.nextTokenStart(),r=this.codePointAtPos(t);return this.chStartsBindingPattern(r)||this.chStartsBindingIdentifier(r,t)}hasInLineFollowingBindingIdentifierOrBrace(){let t=this.nextTokenInLineStart(),r=this.codePointAtPos(t);return r===123||this.chStartsBindingIdentifier(r,t)}allowsUsing(){return(this.scope.inModule||!this.scope.inTopLevel)&&!this.scope.inBareCaseStatement}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(t=!1){let r=0;return this.options.annexB&&!this.state.strict&&(r|=4,t&&(r|=8)),this.parseStatementLike(r)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(t){let r=null;return this.match(26)&&(r=this.parseDecorators(!0)),this.parseStatementContent(t,r)}parseStatementContent(t,r){let n=this.state.type,i=this.startNode(),s=!!(t&2),a=!!(t&4),o=t&1;switch(n){case 60:return this.parseBreakContinueStatement(i,!0);case 63:return this.parseBreakContinueStatement(i,!1);case 64:return this.parseDebuggerStatement(i);case 90:return this.parseDoWhileStatement(i);case 91:return this.parseForStatement(i);case 68:if(this.lookaheadCharCode()===46)break;return a||this.raise(this.state.strict?w.StrictFunction:this.options.annexB?w.SloppyFunctionAnnexB:w.SloppyFunction,this.state.startLoc),this.parseFunctionStatement(i,!1,!s&&a);case 80:return s||this.unexpected(),this.parseClass(this.maybeTakeDecorators(r,i),!0);case 69:return this.parseIfStatement(i);case 70:return this.parseReturnStatement(i);case 71:return this.parseSwitchStatement(i);case 72:return this.parseThrowStatement(i);case 73:return this.parseTryStatement(i);case 96:if(this.isAwaitUsing())return this.allowsUsing()?s?this.recordAwaitIfAllowed()||this.raise(w.AwaitUsingNotInAsyncContext,i):this.raise(w.UnexpectedLexicalDeclaration,i):this.raise(w.UnexpectedUsingDeclaration,i),this.next(),this.parseVarStatement(i,"await using");break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifierOrBrace())break;return this.allowsUsing()?s||this.raise(w.UnexpectedLexicalDeclaration,this.state.startLoc):this.raise(w.UnexpectedUsingDeclaration,this.state.startLoc),this.parseVarStatement(i,"using");case 100:{if(this.state.containsEsc)break;let c=this.nextTokenStart(),p=this.codePointAtPos(c);if(p!==91&&(!s&&this.hasFollowingLineBreak()||!this.chStartsBindingIdentifier(p,c)&&p!==123))break}case 75:s||this.raise(w.UnexpectedLexicalDeclaration,this.state.startLoc);case 74:{let c=this.state.value;return this.parseVarStatement(i,c)}case 92:return this.parseWhileStatement(i);case 76:return this.parseWithStatement(i);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(i);case 83:{let c=this.lookaheadCharCode();if(c===40||c===46)break}case 82:{!(this.optionFlags&8)&&!o&&this.raise(w.UnexpectedImportExport,this.state.startLoc),this.next();let c;return n===83?c=this.parseImport(i):c=this.parseExport(i,r),this.assertModuleNodeAllowed(c),c}default:if(this.isAsyncFunction())return s||this.raise(w.AsyncFunctionInSingleStatementContext,this.state.startLoc),this.next(),this.parseFunctionStatement(i,!0,!s&&a)}let u=this.state.value,l=this.parseExpression();return Fe(n)&&l.type==="Identifier"&&this.eat(14)?this.parseLabeledStatement(i,u,l,t):this.parseExpressionStatement(i,l,r)}assertModuleNodeAllowed(t){!(this.optionFlags&8)&&!this.inModule&&this.raise(w.ImportOutsideModule,t)}decoratorsEnabledBeforeExport(){return this.hasPlugin("decorators-legacy")?!0:this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")!==!1}maybeTakeDecorators(t,r,n){var i;return t&&((i=r.decorators)!=null&&i.length?(typeof this.getPluginOption("decorators","decoratorsBeforeExport")!="boolean"&&this.raise(w.DecoratorsBeforeAfterExport,r.decorators[0]),r.decorators.unshift(...t)):r.decorators=t,this.resetStartLocationFromNode(r,t[0]),n&&this.resetStartLocationFromNode(n,r)),r}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(t){let r=[];do r.push(this.parseDecorator());while(this.match(26));if(this.match(82))t||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(w.DecoratorExportClass,this.state.startLoc);else if(!this.canHaveLeadingDecorator())throw this.raise(w.UnexpectedLeadingDecorator,this.state.startLoc);return r}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);let t=this.startNode();if(this.next(),this.hasPlugin("decorators")){let r=this.state.startLoc,n;if(this.match(10)){let i=this.state.startLoc;this.next(),n=this.parseExpression(),this.expect(11),n=this.wrapParenthesis(i,n);let s=this.state.startLoc;t.expression=this.parseMaybeDecoratorArguments(n,i),this.getPluginOption("decorators","allowCallParenthesized")===!1&&t.expression!==n&&this.raise(w.DecoratorArgumentsOutsideParentheses,s)}else{for(n=this.parseIdentifier(!1);this.eat(16);){let i=this.startNodeAt(r);i.object=n,this.match(139)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),i.property=this.parsePrivateName()):i.property=this.parseIdentifier(!0),i.computed=!1,n=this.finishNode(i,"MemberExpression")}t.expression=this.parseMaybeDecoratorArguments(n,r)}}else t.expression=this.parseExprSubscripts();return this.finishNode(t,"Decorator")}parseMaybeDecoratorArguments(t,r){if(this.eat(10)){let n=this.startNodeAt(r);return n.callee=t,n.arguments=this.parseCallExpressionArguments(),this.toReferencedList(n.arguments),this.finishNode(n,"CallExpression")}return t}parseBreakContinueStatement(t,r){return this.next(),this.isLineTerminator()?t.label=null:(t.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(t,r),this.finishNode(t,r?"BreakStatement":"ContinueStatement")}verifyBreakContinue(t,r){let n;for(n=0;nthis.parseStatement()),this.state.labels.pop(),this.expect(92),t.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(t,"DoWhileStatement")}parseForStatement(t){this.next(),this.state.labels.push(_h);let r=null;if(this.isContextual(96)&&this.recordAwaitIfAllowed()&&(r=this.state.startLoc,this.next()),this.scope.enter(0),this.expect(10),this.match(13))return r!==null&&this.unexpected(r),this.parseFor(t,null);let n=this.isContextual(100);{let u=this.isAwaitUsing(),l=u||this.isForUsing(),c=n&&this.hasFollowingBindingAtom()||l;if(this.match(74)||this.match(75)||c){let p=this.startNode(),h;u?(h="await using",this.recordAwaitIfAllowed()||this.raise(w.AwaitUsingNotInAsyncContext,this.state.startLoc),this.next()):h=this.state.value,this.next(),this.parseVar(p,!0,h);let d=this.finishNode(p,"VariableDeclaration"),f=this.match(58);return f&&l&&this.raise(w.ForInUsing,d),(f||this.isContextual(102))&&d.declarations.length===1?this.parseForIn(t,d,r):(r!==null&&this.unexpected(r),this.parseFor(t,d))}}let i=this.isContextual(95),s=new sc,a=this.parseExpression(!0,s),o=this.isContextual(102);if(o&&(n&&this.raise(w.ForOfLet,a),r===null&&i&&a.type==="Identifier"&&this.raise(w.ForOfAsync,a)),o||this.match(58)){this.checkDestructuringPrivate(s),this.toAssignable(a,!0);let u=o?"ForOfStatement":"ForInStatement";return this.checkLVal(a,{type:u}),this.parseForIn(t,a,r)}else this.checkExpressionErrors(s,!0);return r!==null&&this.unexpected(r),this.parseFor(t,a)}parseFunctionStatement(t,r,n){return this.next(),this.parseFunction(t,1|(n?2:0)|(r?8:0))}parseIfStatement(t){return this.next(),t.test=this.parseHeaderExpression(),t.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),t.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(t,"IfStatement")}parseReturnStatement(t){return this.prodParam.hasReturn||this.raise(w.IllegalReturn,this.state.startLoc),this.next(),this.isLineTerminator()?t.argument=null:(t.argument=this.parseExpression(),this.semicolon()),this.finishNode(t,"ReturnStatement")}parseSwitchStatement(t){this.next(),t.discriminant=this.parseHeaderExpression();let r=t.cases=[];this.expect(5),this.state.labels.push(h9),this.scope.enter(256);let n;for(let i;!this.match(8);)if(this.match(61)||this.match(65)){let s=this.match(61);n&&this.finishNode(n,"SwitchCase"),r.push(n=this.startNode()),n.consequent=[],this.next(),s?n.test=this.parseExpression():(i&&this.raise(w.MultipleDefaultsInSwitch,this.state.lastTokStartLoc),i=!0,n.test=null),this.expect(14)}else n?n.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),n&&this.finishNode(n,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(t,"SwitchStatement")}parseThrowStatement(t){return this.next(),this.hasPrecedingLineBreak()&&this.raise(w.NewlineAfterThrow,this.state.lastTokEndLoc),t.argument=this.parseExpression(),this.semicolon(),this.finishNode(t,"ThrowStatement")}parseCatchClauseParam(){let t=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&t.type==="Identifier"?8:0),this.checkLVal(t,{type:"CatchClause"},9),t}parseTryStatement(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.match(62)){let r=this.startNode();this.next(),this.match(10)?(this.expect(10),r.param=this.parseCatchClauseParam(),this.expect(11)):(r.param=null,this.scope.enter(0)),r.body=this.withSmartMixTopicForbiddingContext(()=>this.parseBlock(!1,!1)),this.scope.exit(),t.handler=this.finishNode(r,"CatchClause")}return t.finalizer=this.eat(67)?this.parseBlock():null,!t.handler&&!t.finalizer&&this.raise(w.NoCatchOrFinally,t),this.finishNode(t,"TryStatement")}parseVarStatement(t,r,n=!1){return this.next(),this.parseVar(t,!1,r,n),this.semicolon(),this.finishNode(t,"VariableDeclaration")}parseWhileStatement(t){return this.next(),t.test=this.parseHeaderExpression(),this.state.labels.push(_h),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.finishNode(t,"WhileStatement")}parseWithStatement(t){return this.state.strict&&this.raise(w.StrictWith,this.state.startLoc),this.next(),t.object=this.parseHeaderExpression(),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.finishNode(t,"WithStatement")}parseEmptyStatement(t){return this.next(),this.finishNode(t,"EmptyStatement")}parseLabeledStatement(t,r,n,i){for(let a of this.state.labels)a.name===r&&this.raise(w.LabelRedeclaration,n,{labelName:r});let s=i5(this.state.type)?1:this.match(71)?2:null;for(let a=this.state.labels.length-1;a>=0;a--){let o=this.state.labels[a];if(o.statementStart===t.start)o.statementStart=this.sourceToOffsetPos(this.state.start),o.kind=s;else break}return this.state.labels.push({name:r,kind:s,statementStart:this.sourceToOffsetPos(this.state.start)}),t.body=i&8?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),t.label=n,this.finishNode(t,"LabeledStatement")}parseExpressionStatement(t,r,n){return t.expression=r,this.semicolon(),this.finishNode(t,"ExpressionStatement")}parseBlock(t=!1,r=!0,n){let i=this.startNode();return t&&this.state.strictErrors.clear(),this.expect(5),r&&this.scope.enter(0),this.parseBlockBody(i,t,!1,8,n),r&&this.scope.exit(),this.finishNode(i,"BlockStatement")}isValidDirective(t){return t.type==="ExpressionStatement"&&t.expression.type==="StringLiteral"&&!t.expression.extra.parenthesized}parseBlockBody(t,r,n,i,s){let a=t.body=[],o=t.directives=[];this.parseBlockOrModuleBlockBody(a,r?o:void 0,n,i,s)}parseBlockOrModuleBlockBody(t,r,n,i,s){let a=this.state.strict,o=!1,u=!1;for(;!this.match(i);){let l=n?this.parseModuleItem():this.parseStatementListItem();if(r&&!u){if(this.isValidDirective(l)){let c=this.stmtToDirective(l);r.push(c),!o&&c.value.value==="use strict"&&(o=!0,this.setStrict(!0));continue}u=!0,this.state.strictErrors.clear()}t.push(l)}s==null||s.call(this,o),a||this.setStrict(!1),this.next()}parseFor(t,r){return t.init=r,this.semicolon(!1),t.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),t.update=this.match(11)?null:this.parseExpression(),this.expect(11),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(t,"ForStatement")}parseForIn(t,r,n){let i=this.match(58);return this.next(),i?n!==null&&this.unexpected(n):t.await=n!==null,r.type==="VariableDeclaration"&&r.declarations[0].init!=null&&(!i||!this.options.annexB||this.state.strict||r.kind!=="var"||r.declarations[0].id.type!=="Identifier")&&this.raise(w.ForInOfLoopInitializer,r,{type:i?"ForInStatement":"ForOfStatement"}),r.type==="AssignmentPattern"&&this.raise(w.InvalidLhs,r,{ancestor:{type:"ForStatement"}}),t.left=r,t.right=i?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(t,i?"ForInStatement":"ForOfStatement")}parseVar(t,r,n,i=!1){let s=t.declarations=[];for(t.kind=n;;){let a=this.startNode();if(this.parseVarId(a,n),a.init=this.eat(29)?r?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,a.init===null&&!i&&(a.id.type!=="Identifier"&&!(r&&(this.match(58)||this.isContextual(102)))?this.raise(w.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"}):(n==="const"||n==="using"||n==="await using")&&!(this.match(58)||this.isContextual(102))&&this.raise(w.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:n})),s.push(this.finishNode(a,"VariableDeclarator")),!this.eat(12))break}return t}parseVarId(t,r){let n=this.parseBindingAtom();r==="using"||r==="await using"?(n.type==="ArrayPattern"||n.type==="ObjectPattern")&&this.raise(w.UsingDeclarationHasBindingPattern,n.loc.start):n.type==="VoidPattern"&&this.raise(w.UnexpectedVoidPattern,n.loc.start),this.checkLVal(n,{type:"VariableDeclarator"},r==="var"?5:8201),t.id=n}parseAsyncFunctionExpression(t){return this.parseFunction(t,8)}parseFunction(t,r=0){let n=r&2,i=!!(r&1),s=i&&!(r&4),a=!!(r&8);this.initFunction(t,a),this.match(55)&&(n&&this.raise(w.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),t.generator=!0),i&&(t.id=this.parseFunctionId(s));let o=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(514),this.prodParam.enter(ic(a,t.generator)),i||(t.id=this.parseFunctionId()),this.parseFunctionParams(t,!1),this.withSmartMixTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(t,i?"FunctionDeclaration":"FunctionExpression")}),this.prodParam.exit(),this.scope.exit(),i&&!n&&this.registerFunctionStatementId(t),this.state.maybeInArrowParameters=o,t}parseFunctionId(t){return t||Fe(this.state.type)?this.parseIdentifier():null}parseFunctionParams(t,r){this.expect(10),this.expressionScope.enter(X5()),t.params=this.parseBindingList(11,41,2|(r?4:0)),this.expressionScope.exit()}registerFunctionStatementId(t){t.id&&this.scope.declareName(t.id.name,!this.options.annexB||this.state.strict||t.generator||t.async?this.scope.treatFunctionsAsVar?5:8201:17,t.id.loc.start)}parseClass(t,r,n){this.next();let i=this.state.strict;return this.state.strict=!0,this.parseClassId(t,r,n),this.parseClassSuper(t),t.body=this.parseClassBody(!!t.superClass,i),this.finishNode(t,r?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}nameIsConstructor(t){return t.type==="Identifier"&&t.name==="constructor"||t.type==="StringLiteral"&&t.value==="constructor"}isNonstaticConstructor(t){return!t.computed&&!t.static&&this.nameIsConstructor(t.key)}parseClassBody(t,r){this.classScope.enter();let n={hadConstructor:!1,hadSuperClass:t},i=[],s=this.startNode();if(s.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{for(;!this.match(8);){if(this.eat(13)){if(i.length>0)throw this.raise(w.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(26)){i.push(this.parseDecorator());continue}let a=this.startNode();i.length&&(a.decorators=i,this.resetStartLocationFromNode(a,i[0]),i=[]),this.parseClassMember(s,a,n),a.kind==="constructor"&&a.decorators&&a.decorators.length>0&&this.raise(w.DecoratorConstructor,a)}}),this.state.strict=r,this.next(),i.length)throw this.raise(w.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(s,"ClassBody")}parseClassMemberFromModifier(t,r){let n=this.parseIdentifier(!0);if(this.isClassMethod()){let i=r;return i.kind="method",i.computed=!1,i.key=n,i.static=!1,this.pushClassMethod(t,i,!1,!1,!1,!1),!0}else if(this.isClassProperty()){let i=r;return i.computed=!1,i.key=n,i.static=!1,t.body.push(this.parseClassProperty(i)),!0}return this.resetPreviousNodeTrailingComments(n),!1}parseClassMember(t,r,n){let i=this.isContextual(106);if(i){if(this.parseClassMemberFromModifier(t,r))return;if(this.eat(5)){this.parseClassStaticBlock(t,r);return}}this.parseClassMemberWithIsStatic(t,r,n,i)}parseClassMemberWithIsStatic(t,r,n,i){let s=r,a=r,o=r,u=r,l=r,c=s,p=s;if(r.static=i,this.parsePropertyNamePrefixOperator(r),this.eat(55)){c.kind="method";let g=this.match(139);if(this.parseClassElementName(c),this.parsePostMemberNameModifiers(c),g){this.pushClassPrivateMethod(t,a,!0,!1);return}this.isNonstaticConstructor(s)&&this.raise(w.ConstructorIsGenerator,s.key),this.pushClassMethod(t,s,!0,!1,!1,!1);return}let h=!this.state.containsEsc&&Fe(this.state.type),d=this.parseClassElementName(r),f=h?d.name:null,y=this.isPrivateName(d),C=this.state.startLoc;if(this.parsePostMemberNameModifiers(p),this.isClassMethod()){if(c.kind="method",y){this.pushClassPrivateMethod(t,a,!1,!1);return}let g=this.isNonstaticConstructor(s),m=!1;g&&(s.kind="constructor",n.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(w.DuplicateConstructor,d),g&&this.hasPlugin("typescript")&&r.override&&this.raise(w.OverrideOnConstructor,d),n.hadConstructor=!0,m=n.hadSuperClass),this.pushClassMethod(t,s,!1,!1,g,m)}else if(this.isClassProperty())y?this.pushClassPrivateProperty(t,u):this.pushClassProperty(t,o);else if(f==="async"&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(d);let g=this.eat(55);p.optional&&this.unexpected(C),c.kind="method";let m=this.match(139);this.parseClassElementName(c),this.parsePostMemberNameModifiers(p),m?this.pushClassPrivateMethod(t,a,g,!0):(this.isNonstaticConstructor(s)&&this.raise(w.ConstructorIsAsync,s.key),this.pushClassMethod(t,s,g,!0,!1,!1))}else if((f==="get"||f==="set")&&!(this.match(55)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(d),c.kind=f;let g=this.match(139);this.parseClassElementName(s),g?this.pushClassPrivateMethod(t,a,!1,!1):(this.isNonstaticConstructor(s)&&this.raise(w.ConstructorIsAccessor,s.key),this.pushClassMethod(t,s,!1,!1,!1,!1)),this.checkGetterSetterParams(s)}else if(f==="accessor"&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(d);let g=this.match(139);this.parseClassElementName(o),this.pushClassAccessorProperty(t,l,g)}else this.isLineTerminator()?y?this.pushClassPrivateProperty(t,u):this.pushClassProperty(t,o):this.unexpected()}parseClassElementName(t){let{type:r,value:n}=this.state;if((r===132||r===134)&&t.static&&n==="prototype"&&this.raise(w.StaticPrototype,this.state.startLoc),r===139){n==="constructor"&&this.raise(w.ConstructorClassPrivateField,this.state.startLoc);let i=this.parsePrivateName();return t.key=i,i}return this.parsePropertyName(t),t.key}parseClassStaticBlock(t,r){var s;this.scope.enter(720);let n=this.state.labels;this.state.labels=[],this.prodParam.enter(0);let i=r.body=[];this.parseBlockOrModuleBlockBody(i,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=n,t.body.push(this.finishNode(r,"StaticBlock")),(s=r.decorators)!=null&&s.length&&this.raise(w.DecoratorStaticBlock,r)}pushClassProperty(t,r){!r.computed&&this.nameIsConstructor(r.key)&&this.raise(w.ConstructorClassField,r.key),t.body.push(this.parseClassProperty(r))}pushClassPrivateProperty(t,r){let n=this.parseClassPrivateProperty(r);t.body.push(n),this.classScope.declarePrivateName(this.getPrivateNameSV(n.key),0,n.key.loc.start)}pushClassAccessorProperty(t,r,n){!n&&!r.computed&&this.nameIsConstructor(r.key)&&this.raise(w.ConstructorClassField,r.key);let i=this.parseClassAccessorProperty(r);t.body.push(i),n&&this.classScope.declarePrivateName(this.getPrivateNameSV(i.key),0,i.key.loc.start)}pushClassMethod(t,r,n,i,s,a){t.body.push(this.parseMethod(r,n,i,s,a,"ClassMethod",!0))}pushClassPrivateMethod(t,r,n,i){let s=this.parseMethod(r,n,i,!1,!1,"ClassPrivateMethod",!0);t.body.push(s);let a=s.kind==="get"?s.static?6:2:s.kind==="set"?s.static?5:1:0;this.declareClassPrivateMethodInScope(s,a)}declareClassPrivateMethodInScope(t,r){this.classScope.declarePrivateName(this.getPrivateNameSV(t.key),r,t.key.loc.start)}parsePostMemberNameModifiers(t){}parseClassPrivateProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassPrivateProperty")}parseClassProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassProperty")}parseClassAccessorProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassAccessorProperty")}parseInitializer(t){this.scope.enter(592),this.expressionScope.enter(bv()),this.prodParam.enter(0),t.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(t,r,n,i=8331){if(Fe(this.state.type))t.id=this.parseIdentifier(),r&&this.declareNameFromIdentifier(t.id,i);else if(n||!r)t.id=null;else throw this.raise(w.MissingClassName,this.state.startLoc)}parseClassSuper(t){t.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(t,r){var h;let n=this.parseMaybeImportPhase(t,!0),i=this.maybeParseExportDefaultSpecifier(t,n),s=!i||this.eat(12),a=s&&this.eatExportStar(t),o=a&&this.maybeParseExportNamespaceSpecifier(t),u=s&&(!o||this.eat(12)),l=i||a;if(a&&!o){if(i&&this.unexpected(),r)throw this.raise(w.UnsupportedDecoratorExport,t);return this.parseExportFrom(t,!0),this.sawUnambiguousESM=!0,this.finishNode(t,"ExportAllDeclaration")}let c=this.maybeParseExportNamedSpecifiers(t);i&&s&&!a&&!c&&this.unexpected(null,5),o&&u&&this.unexpected(null,98);let p;if(l||c){if(p=!1,r)throw this.raise(w.UnsupportedDecoratorExport,t);this.parseExportFrom(t,l)}else p=this.maybeParseExportDeclaration(t);if(l||c||p){let d=t;if(this.checkExport(d,!0,!1,!!d.source),((h=d.declaration)==null?void 0:h.type)==="ClassDeclaration")this.maybeTakeDecorators(r,d.declaration,d);else if(r)throw this.raise(w.UnsupportedDecoratorExport,t);return this.sawUnambiguousESM=!0,this.finishNode(d,"ExportNamedDeclaration")}if(this.eat(65)){let d=t,f=this.parseExportDefaultExpression();if(d.declaration=f,f.type==="ClassDeclaration")this.maybeTakeDecorators(r,f,d);else if(r)throw this.raise(w.UnsupportedDecoratorExport,t);return this.checkExport(d,!0,!0),this.sawUnambiguousESM=!0,this.finishNode(d,"ExportDefaultDeclaration")}throw this.unexpected(null,5)}eatExportStar(t){return this.eat(55)}maybeParseExportDefaultSpecifier(t,r){if(r||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",r==null?void 0:r.loc.start);let n=r||this.parseIdentifier(!0),i=this.startNodeAtNode(n);return i.exported=n,t.specifiers=[this.finishNode(i,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(t){if(this.isContextual(93)){t.specifiers??(t.specifiers=[]);let r=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),r.exported=this.parseModuleExportName(),t.specifiers.push(this.finishNode(r,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(t){if(this.match(5)){let r=t;r.specifiers||(r.specifiers=[]);let n=r.exportKind==="type";return r.specifiers.push(...this.parseExportSpecifiers(n)),r.source=null,r.attributes=[],r.declaration=null,!0}return!1}maybeParseExportDeclaration(t){return this.shouldParseExportDeclaration()?(t.specifiers=[],t.source=null,t.attributes=[],t.declaration=this.parseExportDeclaration(t),!0):!1}isAsyncFunction(){if(!this.isContextual(95))return!1;let t=this.nextTokenInLineStart();return this.isUnparsedContextual(t,"function")}parseExportDefaultExpression(){let t=this.startNode();if(this.match(68))return this.next(),this.parseFunction(t,5);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(t,13);if(this.match(80))return this.parseClass(t,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(w.DecoratorBeforeExport,this.state.startLoc),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet()||this.isUsing()||this.isAwaitUsing())throw this.raise(w.UnsupportedDefaultExport,this.state.startLoc);let r=this.parseMaybeAssignAllowIn();return this.semicolon(),r}parseExportDeclaration(t){return this.match(80)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()}isExportDefaultSpecifier(){let{type:t}=this.state;if(Fe(t)){if(t===95&&!this.state.containsEsc||t===100)return!1;if((t===130||t===129)&&!this.state.containsEsc){let i=this.nextTokenStart(),s=this.input.charCodeAt(i);if(s===123||this.chStartsBindingIdentifier(s,i)&&!this.input.startsWith("from",i))return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;let r=this.nextTokenStart(),n=this.isUnparsedContextual(r,"from");if(this.input.charCodeAt(r)===44||Fe(this.state.type)&&n)return!0;if(this.match(65)&&n){let i=this.input.charCodeAt(this.nextTokenStartSince(r+4));return i===34||i===39}return!1}parseExportFrom(t,r){this.eatContextual(98)?(t.source=this.parseImportSource(),this.checkExport(t),this.maybeParseImportAttributes(t),this.checkJSONModuleImport(t)):r&&this.unexpected(),this.semicolon()}shouldParseExportDeclaration(){let{type:t}=this.state;return t===26&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(w.DecoratorBeforeExport,this.state.startLoc),!0):this.isUsing()?(this.raise(w.UsingDeclarationExport,this.state.startLoc),!0):this.isAwaitUsing()?(this.raise(w.UsingDeclarationExport,this.state.startLoc),!0):t===74||t===75||t===68||t===80||this.isLet()||this.isAsyncFunction()}checkExport(t,r,n,i){var s,a;if(r){if(n){if(this.checkDuplicateExports(t,"default"),this.hasPlugin("exportDefaultFrom")){let o=t.declaration;o.type==="Identifier"&&o.name==="from"&&o.end-o.start===4&&!((s=o.extra)!=null&&s.parenthesized)&&this.raise(w.ExportDefaultFromAsIdentifier,o)}}else if((a=t.specifiers)!=null&&a.length)for(let o of t.specifiers){let{exported:u}=o,l=u.type==="Identifier"?u.name:u.value;if(this.checkDuplicateExports(o,l),!i&&o.local){let{local:c}=o;c.type!=="Identifier"?this.raise(w.ExportBindingIsString,o,{localName:c.value,exportName:l}):(this.checkReservedWord(c.name,c.loc.start,!0,!1),this.scope.checkLocalExport(c))}}else if(t.declaration){let o=t.declaration;if(o.type==="FunctionDeclaration"||o.type==="ClassDeclaration"){let{id:u}=o;if(!u)throw new Error("Assertion failure");this.checkDuplicateExports(t,u.name)}else if(o.type==="VariableDeclaration")for(let u of o.declarations)this.checkDeclaration(u.id)}}}checkDeclaration(t){if(t.type==="Identifier")this.checkDuplicateExports(t,t.name);else if(t.type==="ObjectPattern")for(let r of t.properties)this.checkDeclaration(r);else if(t.type==="ArrayPattern")for(let r of t.elements)r&&this.checkDeclaration(r);else t.type==="ObjectProperty"?this.checkDeclaration(t.value):t.type==="RestElement"?this.checkDeclaration(t.argument):t.type==="AssignmentPattern"&&this.checkDeclaration(t.left)}checkDuplicateExports(t,r){this.exportedIdentifiers.has(r)&&(r==="default"?this.raise(w.DuplicateDefaultExport,t):this.raise(w.DuplicateExport,t,{exportName:r})),this.exportedIdentifiers.add(r)}parseExportSpecifiers(t){let r=[],n=!0;for(this.expect(5);!this.eat(8);){if(n)n=!1;else if(this.expect(12),this.eat(8))break;let i=this.isContextual(130),s=this.match(134),a=this.startNode();a.local=this.parseModuleExportName(),r.push(this.parseExportSpecifier(a,s,t,i))}return r}parseExportSpecifier(t,r,n,i){return this.eatContextual(93)?t.exported=this.parseModuleExportName():r?t.exported=this.cloneStringLiteral(t.local):t.exported||(t.exported=this.cloneIdentifier(t.local)),this.finishNode(t,"ExportSpecifier")}parseModuleExportName(){if(this.match(134)){let t=this.parseStringLiteral(this.state.value),r=d9.exec(t.value);return r&&this.raise(w.ModuleExportNameHasLoneSurrogate,t,{surrogateCharCode:r[0].charCodeAt(0)}),t}return this.parseIdentifier(!0)}isJSONModuleImport(t){return t.assertions!=null?t.assertions.some(({key:r,value:n})=>n.value==="json"&&(r.type==="Identifier"?r.name==="type":r.value==="type")):!1}checkImportReflection(t){var i;let{specifiers:r}=t,n=r.length===1?r[0].type:null;t.phase==="source"?n!=="ImportDefaultSpecifier"&&this.raise(w.SourcePhaseImportRequiresDefault,r[0].loc.start):t.phase==="defer"?n!=="ImportNamespaceSpecifier"&&this.raise(w.DeferImportRequiresNamespace,r[0].loc.start):t.module&&(n!=="ImportDefaultSpecifier"&&this.raise(w.ImportReflectionNotBinding,r[0].loc.start),((i=t.assertions)==null?void 0:i.length)>0&&this.raise(w.ImportReflectionHasAssertion,r[0].loc.start))}checkJSONModuleImport(t){if(this.isJSONModuleImport(t)&&t.type!=="ExportAllDeclaration"){let{specifiers:r}=t;if(r!=null){let n=r.find(i=>{let s;if(i.type==="ExportSpecifier"?s=i.local:i.type==="ImportSpecifier"&&(s=i.imported),s!==void 0)return s.type==="Identifier"?s.name!=="default":s.value!=="default"});n!==void 0&&this.raise(w.ImportJSONBindingNotDefault,n.loc.start)}}}isPotentialImportPhase(t){return t?!1:this.isContextual(105)||this.isContextual(97)}applyImportPhase(t,r,n,i){r||(this.hasPlugin("importReflection")&&(t.module=!1),n==="source"?(this.expectPlugin("sourcePhaseImports",i),t.phase="source"):n==="defer"?(this.expectPlugin("deferredImportEvaluation",i),t.phase="defer"):this.hasPlugin("sourcePhaseImports")&&(t.phase=null))}parseMaybeImportPhase(t,r){if(!this.isPotentialImportPhase(r))return this.applyImportPhase(t,r,null),null;let n=this.startNode(),i=this.parseIdentifierName(!0),{type:s}=this.state;return($r(s)?s!==98||this.lookaheadCharCode()===102:s!==12)?(this.applyImportPhase(t,r,i,n.loc.start),null):(this.applyImportPhase(t,r,null),this.createIdentifier(n,i))}isPrecedingIdImportPhase(t){let{type:r}=this.state;return Fe(r)?r!==98||this.lookaheadCharCode()===102:r!==12}parseImport(t){return this.match(134)?this.parseImportSourceAndAttributes(t):this.parseImportSpecifiersAndAfter(t,this.parseMaybeImportPhase(t,!1))}parseImportSpecifiersAndAfter(t,r){t.specifiers=[];let n=!this.maybeParseDefaultImportSpecifier(t,r)||this.eat(12),i=n&&this.maybeParseStarImportSpecifier(t);return n&&!i&&this.parseNamedImportSpecifiers(t),this.expectContextual(98),this.parseImportSourceAndAttributes(t)}parseImportSourceAndAttributes(t){return t.specifiers??(t.specifiers=[]),t.source=this.parseImportSource(),this.maybeParseImportAttributes(t),this.checkImportReflection(t),this.checkJSONModuleImport(t),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(t,"ImportDeclaration")}parseImportSource(){return this.match(134)||this.unexpected(),this.parseExprAtom()}parseImportSpecifierLocal(t,r,n){r.local=this.parseIdentifier(),t.specifiers.push(this.finishImportSpecifier(r,n))}finishImportSpecifier(t,r,n=8201){return this.checkLVal(t.local,{type:r},n),this.finishNode(t,r)}parseImportAttributes(){this.expect(5);let t=[],r=new Set;do{if(this.match(8))break;let n=this.startNode(),i=this.state.value;if(r.has(i)&&this.raise(w.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:i}),r.add(i),this.match(134)?n.key=this.parseStringLiteral(i):n.key=this.parseIdentifier(!0),this.expect(14),!this.match(134))throw this.raise(w.ModuleAttributeInvalidValue,this.state.startLoc);n.value=this.parseStringLiteral(this.state.value),t.push(this.finishNode(n,"ImportAttribute"))}while(this.eat(12));return this.expect(8),t}parseModuleAttributes(){let t=[],r=new Set;do{let n=this.startNode();if(n.key=this.parseIdentifier(!0),n.key.name!=="type"&&this.raise(w.ModuleAttributeDifferentFromType,n.key),r.has(n.key.name)&&this.raise(w.ModuleAttributesWithDuplicateKeys,n.key,{key:n.key.name}),r.add(n.key.name),this.expect(14),!this.match(134))throw this.raise(w.ModuleAttributeInvalidValue,this.state.startLoc);n.value=this.parseStringLiteral(this.state.value),t.push(this.finishNode(n,"ImportAttribute"))}while(this.eat(12));return t}maybeParseImportAttributes(t){let r;if(this.match(76)){if(this.hasPrecedingLineBreak()&&this.lookaheadCharCode()===40)return;this.next(),r=this.parseImportAttributes()}else this.isContextual(94)&&!this.hasPrecedingLineBreak()?(this.hasPlugin("deprecatedImportAssert")||this.raise(w.ImportAttributesUseAssert,this.state.startLoc),this.addExtra(t,"deprecatedAssertSyntax",!0),this.next(),r=this.parseImportAttributes()):r=[];t.attributes=r}maybeParseDefaultImportSpecifier(t,r){if(r){let n=this.startNodeAtNode(r);return n.local=r,t.specifiers.push(this.finishImportSpecifier(n,"ImportDefaultSpecifier")),!0}else if($r(this.state.type))return this.parseImportSpecifierLocal(t,this.startNode(),"ImportDefaultSpecifier"),!0;return!1}maybeParseStarImportSpecifier(t){if(this.match(55)){let r=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(t,r,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(t){let r=!0;for(this.expect(5);!this.eat(8);){if(r)r=!1;else{if(this.eat(14))throw this.raise(w.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}let n=this.startNode(),i=this.match(134),s=this.isContextual(130);n.imported=this.parseModuleExportName();let a=this.parseImportSpecifier(n,i,t.importKind==="type"||t.importKind==="typeof",s,void 0);t.specifiers.push(a)}}parseImportSpecifier(t,r,n,i,s){if(this.eatContextual(93))t.local=this.parseIdentifier();else{let{imported:a}=t;if(r)throw this.raise(w.ImportBindingIsString,t,{importName:a.value});this.checkReservedWord(a.name,t.loc.start,!0,!0),t.local||(t.local=this.cloneIdentifier(a))}return this.finishImportSpecifier(t,"ImportSpecifier",s)}isThisParam(t){return t.type==="Identifier"&&t.name==="this"}},wv=class extends m9{constructor(t,r,n){let i=G6(t);super(i,r),this.options=i,this.initializeScopes(),this.plugins=n,this.filename=i.sourceFilename,this.startIndex=i.startIndex;let s=0;i.allowAwaitOutsideFunction&&(s|=1),i.allowReturnOutsideFunction&&(s|=2),i.allowImportExportEverywhere&&(s|=8),i.allowSuperOutsideMethod&&(s|=16),i.allowUndeclaredExports&&(s|=64),i.allowNewTargetOutsideFunction&&(s|=4),i.allowYieldOutsideFunction&&(s|=32),i.ranges&&(s|=128),i.tokens&&(s|=256),i.createImportExpressions&&(s|=512),i.createParenthesizedExpressions&&(s|=1024),i.errorRecovery&&(s|=2048),i.attachComment&&(s|=4096),i.annexB&&(s|=8192),this.optionFlags=s}getScopeHandler(){return S0}parse(){this.enterInitialScopes();let t=this.startNode(),r=this.startNode();this.nextToken(),t.errors=null;let n=this.parseTopLevel(t,r);return n.errors=this.state.errors,n.comments.length=this.state.commentsLen,n}};function kv(e,t){if((t==null?void 0:t.sourceType)==="unambiguous"){t=Object.assign({},t);try{t.sourceType="module";let r=No(t,e),n=r.parse();if(r.sawUnambiguousESM)return n;if(r.ambiguousScriptDifferentAst)try{return t.sourceType="script",No(t,e).parse()}catch{}else n.program.sourceType="script";return n}catch(r){try{return t.sourceType="script",No(t,e).parse()}catch{}throw r}}else return No(t,e).parse()}function Pv(e,t){let r=No(t,e);return r.options.strictMode&&(r.state.strict=!0),r.getExpression()}function y9(e){let t={};for(let r of Object.keys(e))t[r]=hv(e[r]);return t}y9(e5);function No(e,t){let r=wv,n=new Map;if(e!=null&&e.plugins){for(let i of e.plugins){let s,a;typeof i=="string"?s=i:[s,a]=i,n.has(s)||n.set(s,a||{})}l9(n),r=g9(n)}return new r(e,t,n)}var Hg=new Map;function g9(e){let t=[];for(let i of c9)e.has(i)&&t.push(i);let r=t.join("|"),n=Hg.get(r);if(!n){n=wv;for(let i of t)n=Fv[i](n);Hg.set(r,n)}return n}function Nv(e){return(t,r,n)=>{let i=!!(n!=null&&n.backwards);if(r===!1)return!1;let{length:s}=t,a=r;for(;a>=0&&ae===` +`||e==="\r"||e==="\u2028"||e==="\u2029";function v9(e,t,r){let n=!!(r!=null&&r.backwards);if(t===!1)return!1;let i=e.charAt(t);if(n){if(e.charAt(t-1)==="\r"&&i===` +`)return t-2;if(Wg(i))return t-1}else{if(i==="\r"&&e.charAt(t+1)===` +`)return t+2;if(Wg(i))return t+1}return t}var A9=v9;function b9(e,t){return t===!1?!1:e.charAt(t)==="/"&&e.charAt(t+1)==="/"?x9(e,t):t}var T9=b9;function S9(e,t){let r=null,n=t;for(;n!==r;)r=n,n=D9(e,n),n=C9(e,n),n=T9(e,n),n=A9(e,n);return n}var F9=S9;function w9(e){let t=[];for(let r of e)try{return r()}catch(n){t.push(n)}throw Object.assign(new Error("All combinations failed"),{errors:t})}function k9(e){if(!e.startsWith("#!"))return"";let t=e.indexOf(` +`);return t===-1?e:e.slice(0,t)}var Bv=k9,F0=(e,t)=>(r,n,...i)=>r|1&&n==null?void 0:(t.call(n)??n[e]).apply(n,i),P9=Array.prototype.findLast??function(e){for(let t=this.length-1;t>=0;t--){let r=this[t];if(e(r,t,this))return r}},N9=F0("findLast",function(){if(Array.isArray(this))return P9}),B9=N9;function I9(e){return this[e<0?this.length+e:e]}var _9=F0("at",function(){if(Array.isArray(this)||typeof this=="string")return I9}),L9=_9;function kn(e){var n,i,s;let t=((n=e.range)==null?void 0:n[0])??e.start,r=(s=((i=e.declaration)==null?void 0:i.decorators)??e.decorators)==null?void 0:s[0];return r?Math.min(kn(r),t):t}function nn(e){var t;return((t=e.range)==null?void 0:t[1])??e.end}function $9(e){let t=new Set(e);return r=>t.has(r==null?void 0:r.type)}var w0=$9,O9=w0(["Block","CommentBlock","MultiLine"]),k0=O9,M9=w0(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose","Hashbang","InterpreterDirective"]),j9=M9,$h=new WeakMap;function R9(e){return $h.has(e)||$h.set(e,k0(e)&&e.value[0]==="*"&&/@(?:type|satisfies)\b/u.test(e.value)),$h.get(e)}var U9=R9;function V9(e){if(!k0(e))return!1;let t=`*${e.value}*`.split(` +`);return t.length>1&&t.every(r=>r.trimStart()[0]==="*")}var Oh=new WeakMap;function z9(e){return Oh.has(e)||Oh.set(e,V9(e)),Oh.get(e)}var Jg=z9;function q9(e){if(e.length<2)return;let t;for(let r=e.length-1;r>=0;r--){let n=e[r];if(t&&nn(n)===kn(t)&&Jg(n)&&Jg(t)&&(e.splice(r+1,1),n.value+="*//*"+t.value,n.range=[kn(n),nn(t)]),!j9(n)&&!k0(n))throw new TypeError(`Unknown comment type: "${n.type}".`);t=n}}var H9=q9;function W9(e){return e!==null&&typeof e=="object"}var J9=W9,fo=null;function Ko(e){if(fo!==null&&typeof fo.property){let t=fo;return fo=Ko.prototype=null,t}return fo=Ko.prototype=e??Object.create(null),new Ko}var X9=10;for(let e=0;e<=X9;e++)Ko();function K9(e){return Ko(e)}function G9(e,t="type"){K9(e);function r(n){let i=n[t],s=e[i];if(!Array.isArray(s))throw Object.assign(new Error(`Missing visitor keys for '${i}'.`),{node:n});return s}return r}var Q9=G9,S=[["decorators","key","typeAnnotation","value"],[],["elementType"],["expression"],["expression","typeAnnotation"],["left","right"],["argument"],["directives","body"],["label"],["callee","typeArguments","arguments"],["body"],["decorators","id","typeParameters","superClass","superTypeArguments","mixins","implements","body","superTypeParameters"],["id","typeParameters"],["decorators","key","typeParameters","params","returnType","body"],["decorators","variance","key","typeAnnotation","value"],["name","typeAnnotation"],["test","consequent","alternate"],["checkType","extendsType","trueType","falseType"],["value"],["id","body"],["declaration","specifiers","source","attributes"],["id"],["id","typeParameters","extends","body"],["typeAnnotation"],["id","typeParameters","right"],["body","test"],["members"],["id","init"],["exported"],["left","right","body"],["id","typeParameters","params","predicate","returnType","body"],["id","params","body","typeParameters","returnType"],["key","value"],["local"],["objectType","indexType"],["typeParameter"],["types"],["node"],["object","property"],["argument","cases"],["pattern","body","guard"],["literal"],["decorators","key","value"],["expressions"],["qualification","id"],["decorators","key","typeAnnotation"],["typeParameters","params","returnType"],["expression","typeArguments"],["params"],["parameterName","typeAnnotation"]],Y9={AccessorProperty:S[0],AnyTypeAnnotation:S[1],ArgumentPlaceholder:S[1],ArrayExpression:["elements"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrayTypeAnnotation:S[2],ArrowFunctionExpression:["typeParameters","params","predicate","returnType","body"],AsConstExpression:S[3],AsExpression:S[4],AssignmentExpression:S[5],AssignmentPattern:["left","right","decorators","typeAnnotation"],AwaitExpression:S[6],BigIntLiteral:S[1],BigIntLiteralTypeAnnotation:S[1],BigIntTypeAnnotation:S[1],BinaryExpression:S[5],BindExpression:["object","callee"],BlockStatement:S[7],BooleanLiteral:S[1],BooleanLiteralTypeAnnotation:S[1],BooleanTypeAnnotation:S[1],BreakStatement:S[8],CallExpression:S[9],CatchClause:["param","body"],ChainExpression:S[3],ClassAccessorProperty:S[0],ClassBody:S[10],ClassDeclaration:S[11],ClassExpression:S[11],ClassImplements:S[12],ClassMethod:S[13],ClassPrivateMethod:S[13],ClassPrivateProperty:S[14],ClassProperty:S[14],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:S[15],ConditionalExpression:S[16],ConditionalTypeAnnotation:S[17],ContinueStatement:S[8],DebuggerStatement:S[1],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclaredPredicate:S[18],DeclareEnum:S[19],DeclareExportAllDeclaration:["source","attributes"],DeclareExportDeclaration:S[20],DeclareFunction:["id","predicate"],DeclareHook:S[21],DeclareInterface:S[22],DeclareModule:S[19],DeclareModuleExports:S[23],DeclareNamespace:S[19],DeclareOpaqueType:["id","typeParameters","supertype","lowerBound","upperBound"],DeclareTypeAlias:S[24],DeclareVariable:S[21],Decorator:S[3],Directive:S[18],DirectiveLiteral:S[1],DoExpression:S[10],DoWhileStatement:S[25],EmptyStatement:S[1],EmptyTypeAnnotation:S[1],EnumBigIntBody:S[26],EnumBigIntMember:S[27],EnumBooleanBody:S[26],EnumBooleanMember:S[27],EnumDeclaration:S[19],EnumDefaultedMember:S[21],EnumNumberBody:S[26],EnumNumberMember:S[27],EnumStringBody:S[26],EnumStringMember:S[27],EnumSymbolBody:S[26],ExistsTypeAnnotation:S[1],ExperimentalRestProperty:S[6],ExperimentalSpreadProperty:S[6],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportDefaultSpecifier:S[28],ExportNamedDeclaration:S[20],ExportNamespaceSpecifier:S[28],ExportSpecifier:["local","exported"],ExpressionStatement:S[3],File:["program"],ForInStatement:S[29],ForOfStatement:S[29],ForStatement:["init","test","update","body"],FunctionDeclaration:S[30],FunctionExpression:S[30],FunctionTypeAnnotation:["typeParameters","this","params","rest","returnType"],FunctionTypeParam:S[15],GenericTypeAnnotation:S[12],HookDeclaration:S[31],HookTypeAnnotation:["params","returnType","rest","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:S[16],ImportAttribute:S[32],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:S[33],ImportExpression:["source","options"],ImportNamespaceSpecifier:S[33],ImportSpecifier:["imported","local"],IndexedAccessType:S[34],InferredPredicate:S[1],InferTypeAnnotation:S[35],InterfaceDeclaration:S[22],InterfaceExtends:S[12],InterfaceTypeAnnotation:["extends","body"],InterpreterDirective:S[1],IntersectionTypeAnnotation:S[36],JsExpressionRoot:S[37],JsonRoot:S[37],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXClosingFragment:S[1],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:S[1],JSXExpressionContainer:S[3],JSXFragment:["openingFragment","children","closingFragment"],JSXIdentifier:S[1],JSXMemberExpression:S[38],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","typeArguments","attributes"],JSXOpeningFragment:S[1],JSXSpreadAttribute:S[6],JSXSpreadChild:S[3],JSXText:S[1],KeyofTypeAnnotation:S[6],LabeledStatement:["label","body"],Literal:S[1],LogicalExpression:S[5],MatchArrayPattern:["elements","rest"],MatchAsPattern:["pattern","target"],MatchBindingPattern:S[21],MatchExpression:S[39],MatchExpressionCase:S[40],MatchIdentifierPattern:S[21],MatchLiteralPattern:S[41],MatchMemberPattern:["base","property"],MatchObjectPattern:["properties","rest"],MatchObjectPatternProperty:["key","pattern"],MatchOrPattern:["patterns"],MatchRestPattern:S[6],MatchStatement:S[39],MatchStatementCase:S[40],MatchUnaryPattern:S[6],MatchWildcardPattern:S[1],MemberExpression:S[38],MetaProperty:["meta","property"],MethodDefinition:S[42],MixedTypeAnnotation:S[1],ModuleExpression:S[10],NeverTypeAnnotation:S[1],NewExpression:S[9],NGChainedExpression:S[43],NGEmptyExpression:S[1],NGMicrosyntax:S[10],NGMicrosyntaxAs:["key","alias"],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKey:S[1],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:S[32],NGPipeExpression:["left","right","arguments"],NGRoot:S[37],NullableTypeAnnotation:S[23],NullLiteral:S[1],NullLiteralTypeAnnotation:S[1],NumberLiteralTypeAnnotation:S[1],NumberTypeAnnotation:S[1],NumericLiteral:S[1],ObjectExpression:["properties"],ObjectMethod:S[13],ObjectPattern:["decorators","properties","typeAnnotation"],ObjectProperty:S[42],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeCallProperty:S[18],ObjectTypeIndexer:["variance","id","key","value"],ObjectTypeInternalSlot:["id","value"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:S[6],OpaqueType:["id","typeParameters","supertype","impltype","lowerBound","upperBound"],OptionalCallExpression:S[9],OptionalIndexedAccessType:S[34],OptionalMemberExpression:S[38],ParenthesizedExpression:S[3],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:S[1],PipelineTopicExpression:S[3],Placeholder:S[1],PrivateIdentifier:S[1],PrivateName:S[21],Program:S[7],Property:S[32],PropertyDefinition:S[14],QualifiedTypeIdentifier:S[44],QualifiedTypeofIdentifier:S[44],RegExpLiteral:S[1],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:S[6],SatisfiesExpression:S[4],SequenceExpression:S[43],SpreadElement:S[6],StaticBlock:S[10],StringLiteral:S[1],StringLiteralTypeAnnotation:S[1],StringTypeAnnotation:S[1],Super:S[1],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],SymbolTypeAnnotation:S[1],TaggedTemplateExpression:["tag","typeArguments","quasi"],TemplateElement:S[1],TemplateLiteral:["quasis","expressions"],ThisExpression:S[1],ThisTypeAnnotation:S[1],ThrowStatement:S[6],TopicReference:S[1],TryStatement:["block","handler","finalizer"],TSAbstractAccessorProperty:S[45],TSAbstractKeyword:S[1],TSAbstractMethodDefinition:S[32],TSAbstractPropertyDefinition:S[45],TSAnyKeyword:S[1],TSArrayType:S[2],TSAsExpression:S[4],TSAsyncKeyword:S[1],TSBigIntKeyword:S[1],TSBooleanKeyword:S[1],TSCallSignatureDeclaration:S[46],TSClassImplements:S[47],TSConditionalType:S[17],TSConstructorType:S[46],TSConstructSignatureDeclaration:S[46],TSDeclareFunction:S[31],TSDeclareKeyword:S[1],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSEnumBody:S[26],TSEnumDeclaration:S[19],TSEnumMember:["id","initializer"],TSExportAssignment:S[3],TSExportKeyword:S[1],TSExternalModuleReference:S[3],TSFunctionType:S[46],TSImportEqualsDeclaration:["id","moduleReference"],TSImportType:["options","qualifier","typeArguments","source"],TSIndexedAccessType:S[34],TSIndexSignature:["parameters","typeAnnotation"],TSInferType:S[35],TSInstantiationExpression:S[47],TSInterfaceBody:S[10],TSInterfaceDeclaration:S[22],TSInterfaceHeritage:S[47],TSIntersectionType:S[36],TSIntrinsicKeyword:S[1],TSJSDocAllType:S[1],TSJSDocNonNullableType:S[23],TSJSDocNullableType:S[23],TSJSDocUnknownType:S[1],TSLiteralType:S[41],TSMappedType:["key","constraint","nameType","typeAnnotation"],TSMethodSignature:["key","typeParameters","params","returnType"],TSModuleBlock:S[10],TSModuleDeclaration:S[19],TSNamedTupleMember:["label","elementType"],TSNamespaceExportDeclaration:S[21],TSNeverKeyword:S[1],TSNonNullExpression:S[3],TSNullKeyword:S[1],TSNumberKeyword:S[1],TSObjectKeyword:S[1],TSOptionalType:S[23],TSParameterProperty:["parameter","decorators"],TSParenthesizedType:S[23],TSPrivateKeyword:S[1],TSPropertySignature:["key","typeAnnotation"],TSProtectedKeyword:S[1],TSPublicKeyword:S[1],TSQualifiedName:S[5],TSReadonlyKeyword:S[1],TSRestType:S[23],TSSatisfiesExpression:S[4],TSStaticKeyword:S[1],TSStringKeyword:S[1],TSSymbolKeyword:S[1],TSTemplateLiteralType:["quasis","types"],TSThisType:S[1],TSTupleType:["elementTypes"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSTypeAnnotation:S[23],TSTypeAssertion:S[4],TSTypeLiteral:S[26],TSTypeOperator:S[23],TSTypeParameter:["name","constraint","default"],TSTypeParameterDeclaration:S[48],TSTypeParameterInstantiation:S[48],TSTypePredicate:S[49],TSTypeQuery:["exprName","typeArguments"],TSTypeReference:["typeName","typeArguments"],TSUndefinedKeyword:S[1],TSUnionType:S[36],TSUnknownKeyword:S[1],TSVoidKeyword:S[1],TupleTypeAnnotation:["types","elementTypes"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeAlias:S[24],TypeAnnotation:S[23],TypeCastExpression:S[4],TypeofTypeAnnotation:["argument","typeArguments"],TypeOperator:S[23],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:S[48],TypeParameterInstantiation:S[48],TypePredicate:S[49],UnaryExpression:S[6],UndefinedTypeAnnotation:S[1],UnionTypeAnnotation:S[36],UnknownTypeAnnotation:S[1],UpdateExpression:S[6],V8IntrinsicIdentifier:S[1],VariableDeclaration:["declarations"],VariableDeclarator:S[27],Variance:S[1],VoidPattern:S[1],VoidTypeAnnotation:S[1],WhileStatement:S[25],WithStatement:["object","body"],YieldExpression:S[6]},Z9=Q9(Y9),eB=Z9;function ac(e,t){if(!J9(e))return e;if(Array.isArray(e)){for(let n=0;nd<=c);p=h&&n.slice(h,c).trim().length===0}return p?void 0:(l.extra={...l.extra,parenthesized:!0},l)}case"TemplateLiteral":if(u.expressions.length!==u.quasis.length-1)throw new Error("Malformed template literal.");break;case"TemplateElement":if(r==="flow"||r==="hermes"||r==="espree"||r==="typescript"||s){let l=kn(u)+1,c=nn(u)-(u.tail?1:2);u.range=[l,c]}break;case"VariableDeclaration":{let l=L9(0,u.declarations,-1);l!=null&&l.init&&n[nn(l)]!==";"&&(u.range=[kn(u),nn(l)]);break}case"TSParenthesizedType":return u.typeAnnotation;case"TopicReference":e.extra={...e.extra,__isUsingHackPipeline:!0};break;case"TSUnionType":case"TSIntersectionType":if(u.types.length===1)return u.types[0];break;case"ImportExpression":r==="hermes"&&u.attributes&&!u.options&&(u.options=u.attributes);break}},onLeave(u){switch(u.type){case"LogicalExpression":if(Iv(u))return yf(u);break;case"TSImportType":!u.source&&u.argument.type==="TSLiteralType"&&(u.source=u.argument.literal,delete u.argument);break}}}),e}function Iv(e){return e.type==="LogicalExpression"&&e.right.type==="LogicalExpression"&&e.operator===e.right.operator}function yf(e){return Iv(e)?yf({type:"LogicalExpression",operator:e.operator,left:yf({type:"LogicalExpression",operator:e.operator,left:e.left,right:e.right.left,range:[kn(e.left),nn(e.right.left)]}),right:e.right.right,range:[kn(e),nn(e)]}):e}var nB=rB;function iB(e,t){let r=new SyntaxError(e+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(r,t)}var _v=iB,Xg="Unexpected parseExpression() input: ";function sB(e){let{message:t,loc:r,reasonCode:n}=e;if(!r)return e;let{line:i,column:s}=r,a=e;(n==="MissingPlugin"||n==="MissingOneOfPlugins")&&(t="Unexpected token.",a=void 0);let o=` (${i}:${s})`;return t.endsWith(o)&&(t=t.slice(0,-o.length)),t.startsWith(Xg)&&(t=t.slice(Xg.length)),_v(t,{loc:{start:{line:i,column:s+1}},cause:a})}var Lv=sB,aB=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},oB=F0("replaceAll",function(){if(typeof this=="string")return aB}),Pl=oB,uB=/\*\/$/,lB=/^\/\*\*?/,cB=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,pB=/(^|\s+)\/\/([^\n\r]*)/g,Kg=/^(\r?\n)+/,hB=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,Gg=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,dB=/(\r?\n|^) *\* ?/g,fB=[];function mB(e){let t=e.match(cB);return t?t[0].trimStart():""}function yB(e){e=Pl(0,e.replace(lB,"").replace(uB,""),dB,"$1");let t="";for(;t!==e;)t=e,e=Pl(0,e,hB,` $1 $2 -`);e=e.replace(_1,"").trimEnd();let r=Object.create(null),n=Al(0,e,L1,"").replace(_1,"").trimEnd(),i;for(;i=L1.exec(e);){let s=Al(0,i[2],O_,"");if(typeof r[i[1]]=="string"||Array.isArray(r[i[1]])){let a=r[i[1]];r[i[1]]=[...R_,...Array.isArray(a)?a:[a],s]}else r[i[1]]=s}return{comments:n,pragmas:r}}var z_=["noformat","noprettier"],q_=["format","prettier"];function Dv(e){let t=fv(e);t&&(e=e.slice(t.length+1));let r=U_(e),{pragmas:n,comments:i}=V_(r);return{shebang:t,text:e,pragmas:n,comments:i}}function H_(e){let{pragmas:t}=Dv(e);return q_.some(r=>Object.prototype.hasOwnProperty.call(t,r))}function W_(e){let{pragmas:t}=Dv(e);return z_.some(r=>Object.prototype.hasOwnProperty.call(t,r))}function J_(e){return e=typeof e=="function"?{parse:e}:e,{astFormat:"estree",hasPragma:H_,hasIgnorePragma:W_,locStart:wn,locEnd:rn,...e}}var Mu=J_,gy="module",Ev="commonjs";function X_(e){if(typeof e=="string"){if(e=e.toLowerCase(),/\.(?:mjs|mts)$/iu.test(e))return gy;if(/\.(?:cjs|cts)$/iu.test(e))return Ev}}function K_(e,t){let{type:r="JsExpressionRoot",rootMarker:n,text:i}=t,{tokens:s,comments:a}=e;return delete e.tokens,delete e.comments,{tokens:s,comments:a,type:r,node:e,range:[0,i.length],rootMarker:n}}var xv=K_,Ma=e=>Mu(e6(e)),G_={sourceType:gy,allowImportExportEverywhere:!0,allowReturnOutsideFunction:!0,allowNewTargetOutsideFunction:!0,allowSuperOutsideMethod:!0,allowUndeclaredExports:!0,errorRecovery:!0,createParenthesizedExpressions:!0,attachComment:!1,plugins:["doExpressions","exportDefaultFrom","functionBind","functionSent","throwExpressions","partialApplication","decorators","moduleBlocks","asyncDoExpressions","destructuringPrivate","decoratorAutoAccessors","sourcePhaseImports","deferredImportEvaluation",["optionalChainingAssign",{version:"2023-07"}],["discardBinding",{syntaxType:"void"}]],tokens:!1,ranges:!1},$1="v8intrinsic",O1=[["pipelineOperator",{proposal:"hack",topicToken:"%"}],["pipelineOperator",{proposal:"fsharp"}]],_n=(e,t=G_)=>({...t,plugins:[...t.plugins,...e]}),Q_=/@(?:no)?flow\b/u;function Y_(e,t){if(t!=null&&t.endsWith(".js.flow"))return!0;let r=fv(e);r&&(e=e.slice(r.length));let n=Z4(e,0);return n!==!1&&(e=e.slice(0,n)),Q_.test(e)}function Z_(e,t,r){let n=e(t,r),i=n.errors.find(s=>!t6.has(s.reasonCode));if(i)throw i;return n}function e6({isExpression:e=!1,optionsCombinations:t}){return(r,n={})=>{let{filepath:i}=n;if(typeof i!="string"&&(i=void 0),(n.parser==="babel"||n.parser==="__babel_estree")&&Y_(r,i))return n.parser="babel-flow",vv.parse(r,n);let s=t,a=n.__babelSourceType??X_(i);a&&a!==gy&&(s=s.map(c=>({...c,sourceType:a,...a===Ev?{allowReturnOutsideFunction:void 0,allowNewTargetOutsideFunction:void 0}:void 0})));let o=/%[A-Z]/u.test(r);r.includes("|>")?s=(o?[...O1,$1]:O1).flatMap(c=>s.map(p=>_n([c],p))):o&&(s=s.map(c=>_n([$1],c)));let u=e?hv:pv,l;try{l=e_(s.map(c=>()=>Z_(u,r,c)))}catch({errors:[c]}){throw gv(c)}return e&&(l=xv(l,{text:r,rootMarker:n.rootMarker})),P_(l,{text:r})}}var t6=new Set(["StrictNumericEscape","StrictWith","StrictOctalLiteral","StrictDelete","StrictEvalArguments","StrictEvalArgumentsBinding","StrictFunction","ForInOfLoopInitializer","ConstructorHasTypeParameters","UnsupportedParameterPropertyKind","DecoratorExportClass","ParamDupe","InvalidDecimal","RestTrailingComma","UnsupportedParameterDecorator","UnterminatedJsxContent","UnexpectedReservedWord","ModuleAttributesWithDuplicateKeys","InvalidEscapeSequenceTemplate","NonAbstractClassHasAbstractMethod","OptionalTypeBeforeRequired","PatternIsOptional","DeclareClassFieldHasInitializer","TypeImportCannotSpecifyDefaultAndNamed","VarRedeclaration","InvalidPrivateFieldResolution","DuplicateExport","ImportAttributesUseAssert","DeclarationMissingInitializer"]),Cv=[_n(["jsx"])],M1=Ma({optionsCombinations:Cv}),j1=Ma({optionsCombinations:[_n(["jsx","typescript"]),_n(["typescript"])]}),R1=Ma({isExpression:!0,optionsCombinations:[_n(["jsx"])]}),U1=Ma({isExpression:!0,optionsCombinations:[_n(["typescript"])]}),vv=Ma({optionsCombinations:[_n(["jsx",["flow",{all:!0}],"flowComments"])]}),r6=Ma({optionsCombinations:Cv.map(e=>_n(["estree"],e))}),Av={};ty(Av,{json:()=>s6,"json-stringify":()=>u6,json5:()=>a6,jsonc:()=>o6});function n6(e){return Array.isArray(e)&&e.length>0}var Tv=n6,Sv={tokens:!1,ranges:!1,attachComment:!1,createParenthesizedExpressions:!0};function i6(e){let t=pv(e,Sv),{program:r}=t;if(r.body.length===0&&r.directives.length===0&&!r.interpreter)return t}function yp(e,t={}){let{allowComments:r=!0,allowEmpty:n=!1}=t,i;try{i=hv(e,Sv)}catch(s){if(n&&s.code==="BABEL_PARSER_SYNTAX_ERROR"&&s.reasonCode==="ParseExpressionEmptyInput")try{i=i6(e)}catch{}if(!i)throw gv(s)}if(!r&&Tv(i.comments))throw ri(i.comments[0],"Comment");return i=xv(i,{type:"JsonRoot",text:e}),i.node.type==="File"?delete i.node:Ms(i.node),i}function ri(e,t){let[r,n]=[e.loc.start,e.loc.end].map(({line:i,column:s})=>({line:i,column:s+1}));return yv(`${t} is not allowed in JSON.`,{loc:{start:r,end:n}})}function Ms(e){switch(e.type){case"ArrayExpression":for(let t of e.elements)t!==null&&Ms(t);return;case"ObjectExpression":for(let t of e.properties)Ms(t);return;case"ObjectProperty":if(e.computed)throw ri(e.key,"Computed key");if(e.shorthand)throw ri(e.key,"Shorthand property");e.key.type!=="Identifier"&&Ms(e.key),Ms(e.value);return;case"UnaryExpression":{let{operator:t,argument:r}=e;if(t!=="+"&&t!=="-")throw ri(e,`Operator '${e.operator}'`);if(r.type==="NumericLiteral"||r.type==="Identifier"&&(r.name==="Infinity"||r.name==="NaN"))return;throw ri(r,`Operator '${t}' before '${r.type}'`)}case"Identifier":if(e.name!=="Infinity"&&e.name!=="NaN"&&e.name!=="undefined")throw ri(e,`Identifier '${e.name}'`);return;case"TemplateLiteral":if(Tv(e.expressions))throw ri(e.expressions[0],"'TemplateLiteral' with expression");for(let t of e.quasis)Ms(t);return;case"NullLiteral":case"BooleanLiteral":case"NumericLiteral":case"StringLiteral":case"TemplateElement":return;default:throw ri(e,`'${e.type}'`)}}var s6=Mu({parse:e=>yp(e),hasPragma:()=>!0,hasIgnorePragma:()=>!1}),a6=Mu(e=>yp(e)),o6=Mu(e=>yp(e,{allowEmpty:!0})),u6=Mu({parse:e=>yp(e,{allowComments:!1}),astFormat:"estree-json"}),Fv={...HC,...Av};const l6=Object.freeze(Object.defineProperty({__proto__:null,default:qC,parsers:Fv},Symbol.toStringTag,{value:"Module"}));var c6=Object.defineProperty,Dy=(e,t)=>{for(var r in t)c6(e,r,{get:t[r],enumerable:!0})},bv={};Dy(bv,{languages:()=>MT,options:()=>$T,printers:()=>OT});var p6=[{name:"JavaScript",type:"programming",aceMode:"javascript",extensions:[".js","._js",".bones",".cjs",".es",".es6",".gs",".jake",".javascript",".jsb",".jscad",".jsfl",".jslib",".jsm",".jspre",".jss",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib",".start.frag",".end.frag",".wxs"],filenames:["Jakefile","start.frag","end.frag"],tmScope:"source.js",aliases:["js","node"],codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell","zx"],parsers:["babel","acorn","espree","meriyah","babel-flow","babel-ts","flow","typescript"],vscodeLanguageIds:["javascript","mongo"],linguistLanguageId:183},{name:"Flow",type:"programming",aceMode:"javascript",extensions:[".js.flow"],filenames:[],tmScope:"source.js",aliases:[],codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell"],parsers:["flow","babel-flow"],vscodeLanguageIds:["javascript"],linguistLanguageId:183},{name:"JSX",type:"programming",aceMode:"javascript",extensions:[".jsx"],filenames:void 0,tmScope:"source.js.jsx",aliases:void 0,codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",interpreters:void 0,parsers:["babel","babel-flow","babel-ts","flow","typescript","espree","meriyah"],vscodeLanguageIds:["javascriptreact"],group:"JavaScript",linguistLanguageId:183},{name:"TypeScript",type:"programming",aceMode:"typescript",extensions:[".ts",".cts",".mts"],tmScope:"source.ts",aliases:["ts"],codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",interpreters:["bun","deno","ts-node","tsx"],parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescript"],linguistLanguageId:378},{name:"TSX",type:"programming",aceMode:"tsx",extensions:[".tsx"],tmScope:"source.tsx",codemirrorMode:"jsx",codemirrorMimeType:"text/typescript-jsx",group:"TypeScript",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescriptreact"],linguistLanguageId:94901924}],wv={};Dy(wv,{canAttachComment:()=>B9,embed:()=>AL,features:()=>nM,getVisitorKeys:()=>Lv,handleComments:()=>d5,hasPrettierIgnore:()=>Hy,insertPragma:()=>OL,isBlockComment:()=>qr,isGap:()=>m5,massageAstNode:()=>F9,print:()=>yD,printComment:()=>UL,printPrettierIgnored:()=>yD,willPrintOwnComments:()=>D5});var Ey=(e,t)=>(r,n,...i)=>r|1&&n==null?void 0:(t.call(n)??n[e]).apply(n,i),h6=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},d6=Ey("replaceAll",function(){if(typeof this=="string")return h6}),dt=d6;function f6(e){return this[e<0?this.length+e:e]}var m6=Ey("at",function(){if(Array.isArray(this)||typeof this=="string")return f6}),Se=m6;function y6(e){return e!==null&&typeof e=="object"}var Pv=y6;function*g6(e,t){let{getVisitorKeys:r,filter:n=()=>!0}=t,i=s=>Pv(s)&&n(s);for(let s of r(e)){let a=e[s];if(Array.isArray(a))for(let o of a)i(o)&&(yield o);else i(a)&&(yield a)}}function*D6(e,t){let r=[e];for(let n=0;n/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function C6(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function v6(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9776&&e<=9783||e>=9800&&e<=9811||e===9855||e>=9866&&e<=9871||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e>=94192&&e<=94198||e>=94208&&e<=101589||e>=101631&&e<=101662||e>=101760&&e<=101874||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128728||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129674||e>=129678&&e<=129734||e===129736||e>=129741&&e<=129756||e>=129759&&e<=129770||e>=129775&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}var A6="©®‼⁉™ℹ↔↕↖↗↘↙↩↪⌨⏏⏱⏲⏸⏹⏺▪▫▶◀◻◼☀☁☂☃☄☎☑☘☝☠☢☣☦☪☮☯☸☹☺♀♂♟♠♣♥♦♨♻♾⚒⚔⚕⚖⚗⚙⚛⚜⚠⚧⚰⚱⛈⛏⛑⛓⛩⛱⛷⛸⛹✂✈✉✌✍✏✒✔✖✝✡✳✴❄❇❣❤➡⤴⤵⬅⬆⬇",T6=/[^\x20-\x7F]/u,S6=new Set(A6);function F6(e){if(!e)return 0;if(!T6.test(e))return e.length;e=e.replace(x6(),r=>S6.has(r)?" ":" ");let t=0;for(let r of e){let n=r.codePointAt(0);n<=31||n>=127&&n<=159||n>=768&&n<=879||n>=65024&&n<=65039||(t+=C6(n)||v6(n)?2:1)}return t}var Aa=F6;function xy(e){return(t,r,n)=>{let i=!!(n!=null&&n.backwards);if(r===!1)return!1;let{length:s}=t,a=r;for(;a>=0&&ae===` -`||e==="\r"||e==="\u2028"||e==="\u2029";function P6(e,t,r){let n=!!(r!=null&&r.backwards);if(t===!1)return!1;let i=e.charAt(t);if(n){if(e.charAt(t-1)==="\r"&&i===` -`)return t-2;if(V1(i))return t-1}else{if(i==="\r"&&e.charAt(t+1)===` -`)return t+2;if(V1(i))return t+1}return t}var Sa=P6;function k6(e,t,r={}){let n=Ta(e,r.backwards?t-1:t,r),i=Sa(e,n,r);return n!==i}var Qt=k6;function N6(e,t){if(t===!1)return!1;if(e.charAt(t)==="/"&&e.charAt(t+1)==="*"){for(let r=t+2;r0}var Me=_6,L6=()=>{},$6=L6,kv=Object.freeze({character:"'",codePoint:39}),Nv=Object.freeze({character:'"',codePoint:34}),O6=Object.freeze({preferred:kv,alternate:Nv}),M6=Object.freeze({preferred:Nv,alternate:kv});function j6(e,t){let{preferred:r,alternate:n}=t===!0||t==="'"?O6:M6,{length:i}=e,s=0,a=0;for(let o=0;oa?n:r).character}var Bv=j6,R6=/\\(["'\\])|(["'])/gu;function U6(e,t){let r=t==='"'?"'":'"',n=dt(0,e,R6,(i,s,a)=>s?s===r?r:i:a===t?"\\"+a:a);return t+n+t}var V6=U6;function z6(e,t){let r=e.slice(1,-1),n=t.parser==="json"||t.parser==="jsonc"||t.parser==="json5"&&t.quoteProps==="preserve"&&!t.singleQuote?'"':t.__isInHtmlAttribute?"'":Bv(r,t.singleQuote);return e.charAt(0)===n?e:V6(r,n)}var Fa=z6,Iv=e=>Number.isInteger(e)&&e>=0;function me(e){var n,i,s;let t=((n=e.range)==null?void 0:n[0])??e.start,r=(s=((i=e.declaration)==null?void 0:i.decorators)??e.decorators)==null?void 0:s[0];return r?Math.min(me(r),t):t}function de(e){var t;return((t=e.range)==null?void 0:t[1])??e.end}function gp(e,t){let r=me(e);return Iv(r)&&r===me(t)}function q6(e,t){let r=de(e);return Iv(r)&&r===de(t)}function H6(e,t){return gp(e,t)&&q6(e,t)}var co=null;function Ho(e){if(co!==null&&typeof co.property){let t=co;return co=Ho.prototype=null,t}return co=Ho.prototype=e??Object.create(null),new Ho}var W6=10;for(let e=0;e<=W6;e++)Ho();function J6(e){return Ho(e)}function X6(e,t="type"){J6(e);function r(n){let i=n[t],s=e[i];if(!Array.isArray(s))throw Object.assign(new Error(`Missing visitor keys for '${i}'.`),{node:n});return s}return r}var _v=X6,F=[["decorators","key","typeAnnotation","value"],[],["elementType"],["expression"],["expression","typeAnnotation"],["left","right"],["argument"],["directives","body"],["label"],["callee","typeArguments","arguments"],["body"],["decorators","id","typeParameters","superClass","superTypeArguments","mixins","implements","body","superTypeParameters"],["id","typeParameters"],["decorators","key","typeParameters","params","returnType","body"],["decorators","variance","key","typeAnnotation","value"],["name","typeAnnotation"],["test","consequent","alternate"],["checkType","extendsType","trueType","falseType"],["value"],["id","body"],["declaration","specifiers","source","attributes"],["id"],["id","typeParameters","extends","body"],["typeAnnotation"],["id","typeParameters","right"],["body","test"],["members"],["id","init"],["exported"],["left","right","body"],["id","typeParameters","params","predicate","returnType","body"],["id","params","body","typeParameters","returnType"],["key","value"],["local"],["objectType","indexType"],["typeParameter"],["types"],["node"],["object","property"],["argument","cases"],["pattern","body","guard"],["literal"],["decorators","key","value"],["expressions"],["qualification","id"],["decorators","key","typeAnnotation"],["typeParameters","params","returnType"],["expression","typeArguments"],["params"],["parameterName","typeAnnotation"]],K6={AccessorProperty:F[0],AnyTypeAnnotation:F[1],ArgumentPlaceholder:F[1],ArrayExpression:["elements"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrayTypeAnnotation:F[2],ArrowFunctionExpression:["typeParameters","params","predicate","returnType","body"],AsConstExpression:F[3],AsExpression:F[4],AssignmentExpression:F[5],AssignmentPattern:["left","right","decorators","typeAnnotation"],AwaitExpression:F[6],BigIntLiteral:F[1],BigIntLiteralTypeAnnotation:F[1],BigIntTypeAnnotation:F[1],BinaryExpression:F[5],BindExpression:["object","callee"],BlockStatement:F[7],BooleanLiteral:F[1],BooleanLiteralTypeAnnotation:F[1],BooleanTypeAnnotation:F[1],BreakStatement:F[8],CallExpression:F[9],CatchClause:["param","body"],ChainExpression:F[3],ClassAccessorProperty:F[0],ClassBody:F[10],ClassDeclaration:F[11],ClassExpression:F[11],ClassImplements:F[12],ClassMethod:F[13],ClassPrivateMethod:F[13],ClassPrivateProperty:F[14],ClassProperty:F[14],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:F[15],ConditionalExpression:F[16],ConditionalTypeAnnotation:F[17],ContinueStatement:F[8],DebuggerStatement:F[1],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclaredPredicate:F[18],DeclareEnum:F[19],DeclareExportAllDeclaration:["source","attributes"],DeclareExportDeclaration:F[20],DeclareFunction:["id","predicate"],DeclareHook:F[21],DeclareInterface:F[22],DeclareModule:F[19],DeclareModuleExports:F[23],DeclareNamespace:F[19],DeclareOpaqueType:["id","typeParameters","supertype","lowerBound","upperBound"],DeclareTypeAlias:F[24],DeclareVariable:F[21],Decorator:F[3],Directive:F[18],DirectiveLiteral:F[1],DoExpression:F[10],DoWhileStatement:F[25],EmptyStatement:F[1],EmptyTypeAnnotation:F[1],EnumBigIntBody:F[26],EnumBigIntMember:F[27],EnumBooleanBody:F[26],EnumBooleanMember:F[27],EnumDeclaration:F[19],EnumDefaultedMember:F[21],EnumNumberBody:F[26],EnumNumberMember:F[27],EnumStringBody:F[26],EnumStringMember:F[27],EnumSymbolBody:F[26],ExistsTypeAnnotation:F[1],ExperimentalRestProperty:F[6],ExperimentalSpreadProperty:F[6],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportDefaultSpecifier:F[28],ExportNamedDeclaration:F[20],ExportNamespaceSpecifier:F[28],ExportSpecifier:["local","exported"],ExpressionStatement:F[3],File:["program"],ForInStatement:F[29],ForOfStatement:F[29],ForStatement:["init","test","update","body"],FunctionDeclaration:F[30],FunctionExpression:F[30],FunctionTypeAnnotation:["typeParameters","this","params","rest","returnType"],FunctionTypeParam:F[15],GenericTypeAnnotation:F[12],HookDeclaration:F[31],HookTypeAnnotation:["params","returnType","rest","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:F[16],ImportAttribute:F[32],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:F[33],ImportExpression:["source","options"],ImportNamespaceSpecifier:F[33],ImportSpecifier:["imported","local"],IndexedAccessType:F[34],InferredPredicate:F[1],InferTypeAnnotation:F[35],InterfaceDeclaration:F[22],InterfaceExtends:F[12],InterfaceTypeAnnotation:["extends","body"],InterpreterDirective:F[1],IntersectionTypeAnnotation:F[36],JsExpressionRoot:F[37],JsonRoot:F[37],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXClosingFragment:F[1],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:F[1],JSXExpressionContainer:F[3],JSXFragment:["openingFragment","children","closingFragment"],JSXIdentifier:F[1],JSXMemberExpression:F[38],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","typeArguments","attributes"],JSXOpeningFragment:F[1],JSXSpreadAttribute:F[6],JSXSpreadChild:F[3],JSXText:F[1],KeyofTypeAnnotation:F[6],LabeledStatement:["label","body"],Literal:F[1],LogicalExpression:F[5],MatchArrayPattern:["elements","rest"],MatchAsPattern:["pattern","target"],MatchBindingPattern:F[21],MatchExpression:F[39],MatchExpressionCase:F[40],MatchIdentifierPattern:F[21],MatchLiteralPattern:F[41],MatchMemberPattern:["base","property"],MatchObjectPattern:["properties","rest"],MatchObjectPatternProperty:["key","pattern"],MatchOrPattern:["patterns"],MatchRestPattern:F[6],MatchStatement:F[39],MatchStatementCase:F[40],MatchUnaryPattern:F[6],MatchWildcardPattern:F[1],MemberExpression:F[38],MetaProperty:["meta","property"],MethodDefinition:F[42],MixedTypeAnnotation:F[1],ModuleExpression:F[10],NeverTypeAnnotation:F[1],NewExpression:F[9],NGChainedExpression:F[43],NGEmptyExpression:F[1],NGMicrosyntax:F[10],NGMicrosyntaxAs:["key","alias"],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKey:F[1],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:F[32],NGPipeExpression:["left","right","arguments"],NGRoot:F[37],NullableTypeAnnotation:F[23],NullLiteral:F[1],NullLiteralTypeAnnotation:F[1],NumberLiteralTypeAnnotation:F[1],NumberTypeAnnotation:F[1],NumericLiteral:F[1],ObjectExpression:["properties"],ObjectMethod:F[13],ObjectPattern:["decorators","properties","typeAnnotation"],ObjectProperty:F[42],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeCallProperty:F[18],ObjectTypeIndexer:["variance","id","key","value"],ObjectTypeInternalSlot:["id","value"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:F[6],OpaqueType:["id","typeParameters","supertype","impltype","lowerBound","upperBound"],OptionalCallExpression:F[9],OptionalIndexedAccessType:F[34],OptionalMemberExpression:F[38],ParenthesizedExpression:F[3],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:F[1],PipelineTopicExpression:F[3],Placeholder:F[1],PrivateIdentifier:F[1],PrivateName:F[21],Program:F[7],Property:F[32],PropertyDefinition:F[14],QualifiedTypeIdentifier:F[44],QualifiedTypeofIdentifier:F[44],RegExpLiteral:F[1],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:F[6],SatisfiesExpression:F[4],SequenceExpression:F[43],SpreadElement:F[6],StaticBlock:F[10],StringLiteral:F[1],StringLiteralTypeAnnotation:F[1],StringTypeAnnotation:F[1],Super:F[1],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],SymbolTypeAnnotation:F[1],TaggedTemplateExpression:["tag","typeArguments","quasi"],TemplateElement:F[1],TemplateLiteral:["quasis","expressions"],ThisExpression:F[1],ThisTypeAnnotation:F[1],ThrowStatement:F[6],TopicReference:F[1],TryStatement:["block","handler","finalizer"],TSAbstractAccessorProperty:F[45],TSAbstractKeyword:F[1],TSAbstractMethodDefinition:F[32],TSAbstractPropertyDefinition:F[45],TSAnyKeyword:F[1],TSArrayType:F[2],TSAsExpression:F[4],TSAsyncKeyword:F[1],TSBigIntKeyword:F[1],TSBooleanKeyword:F[1],TSCallSignatureDeclaration:F[46],TSClassImplements:F[47],TSConditionalType:F[17],TSConstructorType:F[46],TSConstructSignatureDeclaration:F[46],TSDeclareFunction:F[31],TSDeclareKeyword:F[1],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSEnumBody:F[26],TSEnumDeclaration:F[19],TSEnumMember:["id","initializer"],TSExportAssignment:F[3],TSExportKeyword:F[1],TSExternalModuleReference:F[3],TSFunctionType:F[46],TSImportEqualsDeclaration:["id","moduleReference"],TSImportType:["options","qualifier","typeArguments","source"],TSIndexedAccessType:F[34],TSIndexSignature:["parameters","typeAnnotation"],TSInferType:F[35],TSInstantiationExpression:F[47],TSInterfaceBody:F[10],TSInterfaceDeclaration:F[22],TSInterfaceHeritage:F[47],TSIntersectionType:F[36],TSIntrinsicKeyword:F[1],TSJSDocAllType:F[1],TSJSDocNonNullableType:F[23],TSJSDocNullableType:F[23],TSJSDocUnknownType:F[1],TSLiteralType:F[41],TSMappedType:["key","constraint","nameType","typeAnnotation"],TSMethodSignature:["key","typeParameters","params","returnType"],TSModuleBlock:F[10],TSModuleDeclaration:F[19],TSNamedTupleMember:["label","elementType"],TSNamespaceExportDeclaration:F[21],TSNeverKeyword:F[1],TSNonNullExpression:F[3],TSNullKeyword:F[1],TSNumberKeyword:F[1],TSObjectKeyword:F[1],TSOptionalType:F[23],TSParameterProperty:["parameter","decorators"],TSParenthesizedType:F[23],TSPrivateKeyword:F[1],TSPropertySignature:["key","typeAnnotation"],TSProtectedKeyword:F[1],TSPublicKeyword:F[1],TSQualifiedName:F[5],TSReadonlyKeyword:F[1],TSRestType:F[23],TSSatisfiesExpression:F[4],TSStaticKeyword:F[1],TSStringKeyword:F[1],TSSymbolKeyword:F[1],TSTemplateLiteralType:["quasis","types"],TSThisType:F[1],TSTupleType:["elementTypes"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSTypeAnnotation:F[23],TSTypeAssertion:F[4],TSTypeLiteral:F[26],TSTypeOperator:F[23],TSTypeParameter:["name","constraint","default"],TSTypeParameterDeclaration:F[48],TSTypeParameterInstantiation:F[48],TSTypePredicate:F[49],TSTypeQuery:["exprName","typeArguments"],TSTypeReference:["typeName","typeArguments"],TSUndefinedKeyword:F[1],TSUnionType:F[36],TSUnknownKeyword:F[1],TSVoidKeyword:F[1],TupleTypeAnnotation:["types","elementTypes"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeAlias:F[24],TypeAnnotation:F[23],TypeCastExpression:F[4],TypeofTypeAnnotation:["argument","typeArguments"],TypeOperator:F[23],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:F[48],TypeParameterInstantiation:F[48],TypePredicate:F[49],UnaryExpression:F[6],UndefinedTypeAnnotation:F[1],UnionTypeAnnotation:F[36],UnknownTypeAnnotation:F[1],UpdateExpression:F[6],V8IntrinsicIdentifier:F[1],VariableDeclaration:["declarations"],VariableDeclarator:F[27],Variance:F[1],VoidPattern:F[1],VoidTypeAnnotation:F[1],WhileStatement:F[25],WithStatement:["object","body"],YieldExpression:F[6]},G6=_v(K6),Lv=G6;function Q6(e){let t=new Set(e);return r=>t.has(r==null?void 0:r.type)}var le=Q6;function Y6(e){var t;return((t=e.extra)==null?void 0:t.raw)??e.raw}var Yt=Y6,Z6=le(["Block","CommentBlock","MultiLine"]),qr=Z6,e9=le(["AnyTypeAnnotation","ThisTypeAnnotation","NumberTypeAnnotation","VoidTypeAnnotation","BooleanTypeAnnotation","BigIntTypeAnnotation","SymbolTypeAnnotation","StringTypeAnnotation","NeverTypeAnnotation","UndefinedTypeAnnotation","UnknownTypeAnnotation","EmptyTypeAnnotation","MixedTypeAnnotation"]),$v=e9,t9=le(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose","Hashbang","InterpreterDirective"]),ju=t9;function r9(e,t){let r=t.split(".");for(let n=r.length-1;n>=0;n--){let i=r[n];if(n===0)return e.type==="Identifier"&&e.name===i;if(n===1&&e.type==="MetaProperty"&&e.property.type==="Identifier"&&e.property.name===i){e=e.meta;continue}if(e.type==="MemberExpression"&&!e.optional&&!e.computed&&e.property.type==="Identifier"&&e.property.name===i){e=e.object;continue}return!1}}function n9(e,t){return t.some(r=>r9(e,r))}var Ty=n9;function i9({type:e}){return e.startsWith("TS")&&e.endsWith("Keyword")}var Ov=i9;function s9({node:e,parent:t}){return(e==null?void 0:e.type)!=="EmptyStatement"?!1:t.type==="IfStatement"?t.consequent===e||t.alternate===e:t.type==="DoWhileStatement"||t.type==="ForInStatement"||t.type==="ForOfStatement"||t.type==="ForStatement"||t.type==="LabeledStatement"||t.type==="WithStatement"||t.type==="WhileStatement"?t.body===e:!1}var Sy=s9;function of(e,t){return t(e)||E6(e,{getVisitorKeys:Lv,predicate:t})}function Fy(e){return e.type==="AssignmentExpression"||e.type==="BinaryExpression"||e.type==="LogicalExpression"||e.type==="NGPipeExpression"||e.type==="ConditionalExpression"||Ae(e)||Oe(e)||e.type==="SequenceExpression"||e.type==="TaggedTemplateExpression"||e.type==="BindExpression"||e.type==="UpdateExpression"&&!e.prefix||$r(e)||e.type==="TSNonNullExpression"||e.type==="ChainExpression"}function a9(e){return e.expressions?e.expressions[0]:e.left??e.test??e.callee??e.object??e.tag??e.argument??e.expression}function Mv(e){if(e.expressions)return["expressions",0];if(e.left)return["left"];if(e.test)return["test"];if(e.object)return["object"];if(e.callee)return["callee"];if(e.tag)return["tag"];if(e.argument)return["argument"];if(e.expression)return["expression"];throw new Error("Unexpected node has no left side.")}var o9=le(["ExportDefaultDeclaration","DeclareExportDeclaration","ExportNamedDeclaration","ExportAllDeclaration","DeclareExportAllDeclaration"]),At=le(["ArrayExpression"]),Ur=le(["ObjectExpression"]);function u9(e){return e.type==="LogicalExpression"&&e.operator==="??"}function ln(e){return e.type==="NumericLiteral"||e.type==="Literal"&&typeof e.value=="number"}function l9(e){return e.type==="BooleanLiteral"||e.type==="Literal"&&typeof e.value=="boolean"}function jv(e){return e.type==="UnaryExpression"&&(e.operator==="+"||e.operator==="-")&&ln(e.argument)}function yt(e){return!!(e&&(e.type==="StringLiteral"||e.type==="Literal"&&typeof e.value=="string"))}function Rv(e){return e.type==="RegExpLiteral"||e.type==="Literal"&&!!e.regex}var by=le(["Literal","BooleanLiteral","BigIntLiteral","DirectiveLiteral","NullLiteral","NumericLiteral","RegExpLiteral","StringLiteral"]),c9=le(["Identifier","ThisExpression","Super","PrivateName","PrivateIdentifier"]),bi=le(["ObjectTypeAnnotation","TSTypeLiteral","TSMappedType"]),Eu=le(["FunctionExpression","ArrowFunctionExpression"]);function p9(e){return e.type==="FunctionExpression"||e.type==="ArrowFunctionExpression"&&e.body.type==="BlockStatement"}function Ph(e){return Ae(e)&&e.callee.type==="Identifier"&&["async","inject","fakeAsync","waitForAsync"].includes(e.callee.name)}var mt=le(["JSXElement","JSXFragment"]);function Ru(e){return e.method&&e.kind==="init"||e.kind==="get"||e.kind==="set"}function Uv(e){return(e.type==="ObjectTypeProperty"||e.type==="ObjectTypeInternalSlot")&&!e.static&&!e.method&&e.kind!=="get"&&e.kind!=="set"&&e.value.type==="FunctionTypeAnnotation"}function h9(e){return(e.type==="TypeAnnotation"||e.type==="TSTypeAnnotation")&&e.typeAnnotation.type==="FunctionTypeAnnotation"&&!e.static&&!gp(e,e.typeAnnotation)}var Ln=le(["BinaryExpression","LogicalExpression","NGPipeExpression"]);function js(e){return Oe(e)||e.type==="BindExpression"&&!!e.object}var d9=le(["TSThisType","NullLiteralTypeAnnotation","BooleanLiteralTypeAnnotation","StringLiteralTypeAnnotation","BigIntLiteralTypeAnnotation","NumberLiteralTypeAnnotation","TSLiteralType","TSTemplateLiteralType"]);function wy(e){return Ov(e)||$v(e)||d9(e)||e.type==="GenericTypeAnnotation"&&!e.typeParameters||e.type==="TSTypeReference"&&!e.typeArguments}function f9(e){return e.type==="Identifier"&&(e.name==="beforeEach"||e.name==="beforeAll"||e.name==="afterEach"||e.name==="afterAll")}var m9=["it","it.only","it.skip","describe","describe.only","describe.skip","test","test.only","test.skip","test.fixme","test.step","test.describe","test.describe.only","test.describe.skip","test.describe.fixme","test.describe.parallel","test.describe.parallel.only","test.describe.serial","test.describe.serial.only","skip","xit","xdescribe","xtest","fit","fdescribe","ftest"];function y9(e){return Ty(e,m9)}function Dp(e,t){if((e==null?void 0:e.type)!=="CallExpression"||e.optional)return!1;let r=fr(e);if(r.length===1){if(Ph(e)&&Dp(t))return Eu(r[0]);if(f9(e.callee))return Ph(r[0])}else if((r.length===2||r.length===3)&&(r[0].type==="TemplateLiteral"||yt(r[0]))&&y9(e.callee))return r[2]&&!ln(r[2])?!1:(r.length===2?Eu(r[1]):p9(r[1])&&Nt(r[1]).length<=1)||Ph(r[1]);return!1}var Vv=e=>t=>((t==null?void 0:t.type)==="ChainExpression"&&(t=t.expression),e(t)),Ae=Vv(le(["CallExpression","OptionalCallExpression"])),Oe=Vv(le(["MemberExpression","OptionalMemberExpression"]));function z1(e,t=5){return zv(e,t)<=t}function zv(e,t){let r=0;for(let n in e){let i=e[n];if(Pv(i)&&typeof i.type=="string"&&(r++,r+=zv(i,t-r)),r>t)return r}return r}var g9=.25;function Py(e,t){let{printWidth:r}=t;if(X(e))return!1;let n=r*g9;if(e.type==="ThisExpression"||e.type==="Identifier"&&e.name.length<=n||jv(e)&&!X(e.argument))return!0;let i=e.type==="Literal"&&"regex"in e&&e.regex.pattern||e.type==="RegExpLiteral"&&e.pattern;return i?i.length<=n:yt(e)?Fa(Yt(e),t).length<=n:e.type==="TemplateLiteral"?e.expressions.length===0&&e.quasis[0].value.raw.length<=n&&!e.quasis[0].value.raw.includes(` -`):e.type==="UnaryExpression"?Py(e.argument,{printWidth:r}):e.type==="CallExpression"&&e.arguments.length===0&&e.callee.type==="Identifier"?e.callee.name.length<=n-2:by(e)}function jr(e,t){return mt(t)?Ep(t):X(t,ee.Leading,r=>Qt(e,de(r)))}function q1(e){return e.quasis.some(t=>t.value.raw.includes(` -`))}function qv(e,t){return(e.type==="TemplateLiteral"&&q1(e)||e.type==="TaggedTemplateExpression"&&q1(e.quasi))&&!Qt(t,me(e),{backwards:!0})}function Hv(e){if(!X(e))return!1;let t=Se(0,os(e,ee.Dangling),-1);return t&&!qr(t)}function D9(e){if(e.length<=1)return!1;let t=0;for(let r of e)if(Eu(r)){if(t+=1,t>1)return!0}else if(Ae(r)){for(let n of fr(r))if(Eu(n))return!0}return!1}function Wv(e){let{node:t,parent:r,key:n}=e;return n==="callee"&&Ae(t)&&Ae(r)&&r.arguments.length>0&&t.arguments.length>r.arguments.length}var E9=new Set(["!","-","+","~"]);function _r(e,t=2){if(t<=0)return!1;if(e.type==="ChainExpression"||e.type==="TSNonNullExpression")return _r(e.expression,t);let r=n=>_r(n,t-1);if(Rv(e))return Aa(e.pattern??e.regex.pattern)<=5;if(by(e)||c9(e)||e.type==="ArgumentPlaceholder")return!0;if(e.type==="TemplateLiteral")return e.quasis.every(n=>!n.value.raw.includes(` -`))&&e.expressions.every(r);if(Ur(e))return e.properties.every(n=>!n.computed&&(n.shorthand||n.value&&r(n.value)));if(At(e))return e.elements.every(n=>n===null||r(n));if(wa(e)){if(e.type==="ImportExpression"||_r(e.callee,t)){let n=fr(e);return n.length<=t&&n.every(r)}return!1}return Oe(e)?_r(e.object,t)&&_r(e.property,t):e.type==="UnaryExpression"&&E9.has(e.operator)||e.type==="UpdateExpression"?_r(e.argument,t):!1}function fn(e,t="es5"){return e.trailingComma==="es5"&&t==="es5"||e.trailingComma==="all"&&(t==="all"||t==="es5")}function Lt(e,t){switch(e.type){case"BinaryExpression":case"LogicalExpression":case"AssignmentExpression":case"NGPipeExpression":return Lt(e.left,t);case"MemberExpression":case"OptionalMemberExpression":return Lt(e.object,t);case"TaggedTemplateExpression":return e.tag.type==="FunctionExpression"?!1:Lt(e.tag,t);case"CallExpression":case"OptionalCallExpression":return e.callee.type==="FunctionExpression"?!1:Lt(e.callee,t);case"ConditionalExpression":return Lt(e.test,t);case"UpdateExpression":return!e.prefix&&Lt(e.argument,t);case"BindExpression":return e.object&&Lt(e.object,t);case"SequenceExpression":return Lt(e.expressions[0],t);case"ChainExpression":case"TSSatisfiesExpression":case"TSAsExpression":case"TSNonNullExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return Lt(e.expression,t);default:return t(e)}}var H1={"==":!0,"!=":!0,"===":!0,"!==":!0},Tl={"*":!0,"/":!0,"%":!0},uf={">>":!0,">>>":!0,"<<":!0};function ky(e,t){return!(Ic(t)!==Ic(e)||e==="**"||H1[e]&&H1[t]||t==="%"&&Tl[e]||e==="%"&&Tl[t]||t!==e&&Tl[t]&&Tl[e]||uf[e]&&uf[t])}var x9=new Map([["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].flatMap((e,t)=>e.map(r=>[r,t])));function Ic(e){return x9.get(e)}function C9(e){return!!uf[e]||e==="|"||e==="^"||e==="&"}function v9(e){var r;if(e.rest)return!0;let t=Nt(e);return((r=Se(0,t,-1))==null?void 0:r.type)==="RestElement"}var kh=new WeakMap;function Nt(e){if(kh.has(e))return kh.get(e);let t=[];return e.this&&t.push(e.this),t.push(...e.params),e.rest&&t.push(e.rest),kh.set(e,t),t}function A9(e,t){let{node:r}=e,n=0,i=()=>t(e,n++);r.this&&e.call(i,"this"),e.each(i,"params"),r.rest&&e.call(i,"rest")}var Nh=new WeakMap;function fr(e){if(Nh.has(e))return Nh.get(e);if(e.type==="ChainExpression")return fr(e.expression);let t;return e.type==="ImportExpression"||e.type==="TSImportType"?(t=[e.source],e.options&&t.push(e.options)):e.type==="TSExternalModuleReference"?t=[e.expression]:t=e.arguments,Nh.set(e,t),t}function _c(e,t){let{node:r}=e;if(r.type==="ChainExpression")return e.call(()=>_c(e,t),"expression");r.type==="ImportExpression"||r.type==="TSImportType"?(e.call(()=>t(e,0),"source"),r.options&&e.call(()=>t(e,1),"options")):r.type==="TSExternalModuleReference"?e.call(()=>t(e,0),"expression"):e.each(t,"arguments")}function W1(e,t){let r=[];if(e.type==="ChainExpression"&&(e=e.expression,r.push("expression")),e.type==="ImportExpression"||e.type==="TSImportType"){if(t===0||t===(e.options?-2:-1))return[...r,"source"];if(e.options&&(t===1||t===-1))return[...r,"options"];throw new RangeError("Invalid argument index")}else if(e.type==="TSExternalModuleReference"){if(t===0||t===-1)return[...r,"expression"]}else if(t<0&&(t=e.arguments.length+t),t>=0&&t{if(typeof e=="function"&&(t=e,e=0),e||t)return(r,n,i)=>!(e&ee.Leading&&!r.leading||e&ee.Trailing&&!r.trailing||e&ee.Dangling&&(r.leading||r.trailing)||e&ee.Block&&!qr(r)||e&ee.Line&&!ju(r)||e&ee.First&&n!==0||e&ee.Last&&n!==i.length-1||e&ee.PrettierIgnore&&!ba(r)||t&&!t(r))};function X(e,t,r){if(!Me(e==null?void 0:e.comments))return!1;let n=Jv(t,r);return n?e.comments.some(n):!0}function os(e,t,r){if(!Array.isArray(e==null?void 0:e.comments))return[];let n=Jv(t,r);return n?e.comments.filter(n):e.comments}var mn=(e,{originalText:t})=>Ay(t,de(e));function wa(e){return Ae(e)||e.type==="NewExpression"||e.type==="ImportExpression"}function Li(e){return e&&(e.type==="ObjectProperty"||e.type==="Property"&&!Ru(e))}var $r=le(["TSAsExpression","TSSatisfiesExpression","AsExpression","AsConstExpression","SatisfiesExpression"]),cn=le(["TSUnionType","UnionTypeAnnotation"]),Uu=le(["TSIntersectionType","IntersectionTypeAnnotation"]),wi=le(["TSConditionalType","ConditionalTypeAnnotation"]),T9=e=>(e==null?void 0:e.type)==="TSAsExpression"&&e.typeAnnotation.type==="TSTypeReference"&&e.typeAnnotation.typeName.type==="Identifier"&&e.typeAnnotation.typeName.name==="const",lf=le(["TSTypeAliasDeclaration","TypeAlias"]);function Xv({key:e,parent:t}){return!(e==="types"&&cn(t)||e==="types"&&Uu(t))}var S9=new Set(["range","raw","comments","leadingComments","trailingComments","innerComments","extra","start","end","loc","flags","errors","tokens"]),Ls=e=>{for(let t of e.quasis)delete t.value};function Kv(e,t,r){var i;if(e.type==="Program"&&delete t.sourceType,(e.type==="BigIntLiteral"||e.type==="Literal")&&e.bigint&&(t.bigint=e.bigint.toLowerCase()),e.type==="EmptyStatement"&&!Sy({node:e,parent:r})||e.type==="JSXText"||e.type==="JSXExpressionContainer"&&(e.expression.type==="Literal"||e.expression.type==="StringLiteral")&&e.expression.value===" ")return null;if((e.type==="Property"||e.type==="ObjectProperty"||e.type==="MethodDefinition"||e.type==="ClassProperty"||e.type==="ClassMethod"||e.type==="PropertyDefinition"||e.type==="TSDeclareMethod"||e.type==="TSPropertySignature"||e.type==="ObjectTypeProperty"||e.type==="ImportAttribute")&&e.key&&!e.computed){let{key:s}=e;yt(s)||ln(s)?t.key=String(s.value):s.type==="Identifier"&&(t.key=s.name)}if(e.type==="JSXElement"&&e.openingElement.name.name==="style"&&e.openingElement.attributes.some(s=>s.type==="JSXAttribute"&&s.name.name==="jsx"))for(let{type:s,expression:a}of t.children)s==="JSXExpressionContainer"&&a.type==="TemplateLiteral"&&Ls(a);e.type==="JSXAttribute"&&e.name.name==="css"&&e.value.type==="JSXExpressionContainer"&&e.value.expression.type==="TemplateLiteral"&&Ls(t.value.expression),e.type==="JSXAttribute"&&((i=e.value)==null?void 0:i.type)==="Literal"&&/["']|"|'/u.test(e.value.value)&&(t.value.value=dt(0,e.value.value,/["']|"|'/gu,'"'));let n=e.expression||e.callee;if(e.type==="Decorator"&&n.type==="CallExpression"&&n.callee.name==="Component"&&n.arguments.length===1){let s=e.expression.arguments[0].properties;for(let[a,o]of t.expression.arguments[0].properties.entries())switch(s[a].key.name){case"styles":At(o.value)&&Ls(o.value.elements[0]);break;case"template":o.value.type==="TemplateLiteral"&&Ls(o.value);break}}e.type==="TaggedTemplateExpression"&&(e.tag.type==="MemberExpression"||e.tag.type==="Identifier"&&(e.tag.name==="gql"||e.tag.name==="graphql"||e.tag.name==="css"||e.tag.name==="md"||e.tag.name==="markdown"||e.tag.name==="html")||e.tag.type==="CallExpression")&&Ls(t.quasi),e.type==="TemplateLiteral"&&Ls(t),e.type==="ChainExpression"&&e.expression.type==="TSNonNullExpression"&&(t.type="TSNonNullExpression",t.expression.type="ChainExpression")}Kv.ignoredProperties=S9;var F9=Kv,b9=le(["File","TemplateElement","TSEmptyBodyFunctionExpression","ChainExpression"]),w9=(e,[t])=>(t==null?void 0:t.type)==="ComponentParameter"&&t.shorthand&&t.name===e&&t.local!==t.name||(t==null?void 0:t.type)==="MatchObjectPatternProperty"&&t.shorthand&&t.key===e&&t.value!==t.key||(t==null?void 0:t.type)==="ObjectProperty"&&t.shorthand&&t.key===e&&t.value!==t.key||(t==null?void 0:t.type)==="Property"&&t.shorthand&&t.key===e&&!Ru(t)&&t.value!==t.key,P9=(e,[t])=>!!(e.type==="FunctionExpression"&&t.type==="MethodDefinition"&&t.value===e&&Nt(e).length===0&&!e.returnType&&!Me(e.typeParameters)&&e.body),J1=(e,[t])=>(t==null?void 0:t.typeAnnotation)===e&&T9(t),k9=(e,[t,...r])=>J1(e,[t])||(t==null?void 0:t.typeName)===e&&J1(t,r);function N9(e,t){return b9(e)||w9(e,t)||P9(e,t)?!1:e.type==="EmptyStatement"?Sy({node:e,parent:t[0]}):!(k9(e,t)||e.type==="TSTypeAnnotation"&&t[0].type==="TSPropertySignature")}var B9=N9;function I9(e){let t=e.type||e.kind||"(unknown type)",r=String(e.name||e.id&&(typeof e.id=="object"?e.id.name:e.id)||e.key&&(typeof e.key=="object"?e.key.name:e.key)||e.value&&(typeof e.value=="object"?"":String(e.value))||e.operator||"");return r.length>20&&(r=r.slice(0,19)+"…"),t+(r?" "+r:"")}function Ny(e,t){(e.comments??(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=I9(e)}function tt(e,t){t.leading=!0,t.trailing=!1,Ny(e,t)}function lr(e,t,r){t.leading=!1,t.trailing=!1,r&&(t.marker=r),Ny(e,t)}function He(e,t){t.leading=!1,t.trailing=!0,Ny(e,t)}function _9(e,t){let r=null,n=t;for(;n!==r;)r=n,n=Ta(e,n),n=Cy(e,n),n=vy(e,n),n=Sa(e,n);return n}var ja=_9;function L9(e,t){let r=ja(e,t);return r===!1?"":e.charAt(r)}var Vr=L9;function $9(e,t,r){for(let n=t;nju(e)||!cr(t,me(e),de(e));function M9(e){return[sA,Yv,rA,K9,V9,Iy,_y,Qv,Zv,e5,Q9,Y9,$y,iA,t5,eA,nA,Ly,z9,u5,aA,Oy].some(t=>t(e))}function j9(e){return[U9,rA,Yv,iA,Iy,_y,Qv,Zv,nA,G9,Z9,$y,i5,Ly,a5,o5,l5,aA,p5,c5,Oy].some(t=>t(e))}function R9(e){return[sA,Iy,_y,X9,eA,$y,J9,W9,Ly,s5,Oy].some(t=>t(e))}function vs(e,t){let r=(e.body||e.properties).find(({type:n})=>n!=="EmptyStatement");r?tt(r,t):lr(e,t)}function cf(e,t){e.type==="BlockStatement"?vs(e,t):tt(e,t)}function U9({comment:e,followingNode:t}){return t&&Gv(e)?(tt(t,e),!0):!1}function Iy({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:i}){if((r==null?void 0:r.type)!=="IfStatement"||!n)return!1;if(Vr(i,de(e))===")")return He(t,e),!0;if(n.type==="BlockStatement"&&n===r.consequent&&me(e)>=de(t)&&de(e)<=me(n))return tt(n,e),!0;if(t===r.consequent&&n===r.alternate){let s=ja(i,de(r.consequent));if(n.type==="BlockStatement"&&me(e)>=s&&de(e)<=me(n))return tt(n,e),!0;if(me(e)"?(lr(t,e),!0):!1}function X9({comment:e,enclosingNode:t,text:r}){return Vr(r,de(e))!==")"?!1:t&&(oA(t)&&Nt(t).length===0||wa(t)&&fr(t).length===0)?(lr(t,e),!0):((t==null?void 0:t.type)==="MethodDefinition"||(t==null?void 0:t.type)==="TSAbstractMethodDefinition")&&Nt(t.value).length===0?(lr(t.value,e),!0):!1}function K9({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:i}){return(t==null?void 0:t.type)==="ComponentTypeParameter"&&((r==null?void 0:r.type)==="DeclareComponent"||(r==null?void 0:r.type)==="ComponentTypeAnnotation")&&(n==null?void 0:n.type)!=="ComponentTypeParameter"||((t==null?void 0:t.type)==="ComponentParameter"||(t==null?void 0:t.type)==="RestElement")&&(r==null?void 0:r.type)==="ComponentDeclaration"&&Vr(i,de(e))===")"?(He(t,e),!0):!1}function rA({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:i}){return(t==null?void 0:t.type)==="FunctionTypeParam"&&(r==null?void 0:r.type)==="FunctionTypeAnnotation"&&(n==null?void 0:n.type)!=="FunctionTypeParam"||((t==null?void 0:t.type)==="Identifier"||(t==null?void 0:t.type)==="AssignmentPattern"||(t==null?void 0:t.type)==="ObjectPattern"||(t==null?void 0:t.type)==="ArrayPattern"||(t==null?void 0:t.type)==="RestElement"||(t==null?void 0:t.type)==="TSParameterProperty")&&oA(r)&&Vr(i,de(e))===")"?(He(t,e),!0):!qr(e)&&(n==null?void 0:n.type)==="BlockStatement"&&tA(r)&&(r.type==="MethodDefinition"?r.value.body:r.body)===n&&ja(i,de(e))===me(n)?(vs(n,e),!0):!1}function nA({comment:e,enclosingNode:t}){return(t==null?void 0:t.type)==="LabeledStatement"?(tt(t,e),!0):!1}function Ly({comment:e,enclosingNode:t}){return((t==null?void 0:t.type)==="ContinueStatement"||(t==null?void 0:t.type)==="BreakStatement")&&!t.label?(He(t,e),!0):!1}function G9({comment:e,precedingNode:t,enclosingNode:r}){return Ae(r)&&t&&r.callee===t&&r.arguments.length>0?(tt(r.arguments[0],e),!0):!1}function Q9({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){return cn(r)?(ba(e)&&(n.prettierIgnore=!0,e.unignore=!0),t?(He(t,e),!0):!1):(cn(n)&&ba(e)&&(n.types[0].prettierIgnore=!0,e.unignore=!0),!1)}function Y9({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){return r&&r.type==="MatchOrPattern"?(ba(e)&&(n.prettierIgnore=!0,e.unignore=!0),t?(He(t,e),!0):!1):(n&&n.type==="MatchOrPattern"&&ba(e)&&(n.types[0].prettierIgnore=!0,e.unignore=!0),!1)}function Z9({comment:e,enclosingNode:t}){return Li(t)?(tt(t,e),!0):!1}function $y({comment:e,enclosingNode:t,ast:r,isLastComment:n}){var i;return((i=r==null?void 0:r.body)==null?void 0:i.length)===0?(n?lr(r,e):tt(r,e),!0):(t==null?void 0:t.type)==="Program"&&t.body.length===0&&!Me(t.directives)?(n?lr(t,e):tt(t,e),!0):!1}function e5({comment:e,enclosingNode:t,followingNode:r}){return((t==null?void 0:t.type)==="ForInStatement"||(t==null?void 0:t.type)==="ForOfStatement")&&r!==t.body?(tt(t,e),!0):!1}function iA({comment:e,precedingNode:t,enclosingNode:r,text:n}){if((r==null?void 0:r.type)==="ImportSpecifier"||(r==null?void 0:r.type)==="ExportSpecifier")return tt(r,e),!0;let i=(t==null?void 0:t.type)==="ImportSpecifier"&&(r==null?void 0:r.type)==="ImportDeclaration",s=(t==null?void 0:t.type)==="ExportSpecifier"&&(r==null?void 0:r.type)==="ExportNamedDeclaration";return(i||s)&&Qt(n,de(e))?(He(t,e),!0):!1}function t5({comment:e,enclosingNode:t}){return(t==null?void 0:t.type)==="AssignmentPattern"?(tt(t,e),!0):!1}var r5=le(["VariableDeclarator","AssignmentExpression","TypeAlias","TSTypeAliasDeclaration"]),n5=le(["ObjectExpression","ArrayExpression","TemplateLiteral","TaggedTemplateExpression","ObjectTypeAnnotation","TSTypeLiteral"]);function i5({comment:e,enclosingNode:t,followingNode:r}){return r5(t)&&r&&(n5(r)||qr(e))?(tt(r,e),!0):!1}function s5({comment:e,enclosingNode:t,precedingNode:r,followingNode:n,text:i}){return!n&&((t==null?void 0:t.type)==="TSMethodSignature"||(t==null?void 0:t.type)==="TSDeclareFunction"||(t==null?void 0:t.type)==="TSAbstractMethodDefinition")&&(!r||r!==t.returnType)&&Vr(i,de(e))===";"?(He(t,e),!0):!1}function sA({comment:e,enclosingNode:t,followingNode:r}){if(ba(e)&&(t==null?void 0:t.type)==="TSMappedType"&&r===t.key)return t.prettierIgnore=!0,e.unignore=!0,!0}function aA({comment:e,precedingNode:t,enclosingNode:r}){if((r==null?void 0:r.type)==="TSMappedType"&&!t)return lr(r,e),!0}function a5({comment:e,enclosingNode:t,followingNode:r}){return!t||t.type!=="SwitchCase"||t.test||!r||r!==t.consequent[0]?!1:(r.type==="BlockStatement"&&ju(e)?vs(r,e):lr(t,e),!0)}function o5({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){return cn(t)&&((r.type==="TSArrayType"||r.type==="ArrayTypeAnnotation")&&!n||Uu(r))?(He(Se(0,t.types,-1),e),!0):!1}function u5({comment:e,enclosingNode:t,precedingNode:r,followingNode:n}){if(((t==null?void 0:t.type)==="ObjectPattern"||(t==null?void 0:t.type)==="ArrayPattern")&&(n==null?void 0:n.type)==="TSTypeAnnotation")return r?He(r,e):lr(t,e),!0}function l5({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:i}){return!n&&(r==null?void 0:r.type)==="UnaryExpression"&&((t==null?void 0:t.type)==="LogicalExpression"||(t==null?void 0:t.type)==="BinaryExpression")&&cr(i,me(r.argument),me(t.right))&&By(e,i)&&!cr(i,me(t.right),me(e))?(He(t.right,e),!0):!1}function c5({enclosingNode:e,followingNode:t,comment:r}){if(e&&(e.type==="TSPropertySignature"||e.type==="ObjectTypeProperty")&&(cn(t)||Uu(t)))return tt(t,r),!0}function Oy({enclosingNode:e,precedingNode:t,followingNode:r,comment:n,text:i}){if($r(e)&&t===e.expression&&!By(n,i))return r?tt(r,n):He(e,n),!0}function p5({comment:e,enclosingNode:t,followingNode:r,precedingNode:n}){return t&&r&&n&&t.type==="ArrowFunctionExpression"&&t.returnType===n&&(n.type==="TSTypeAnnotation"||n.type==="TypeAnnotation")?(tt(r,e),!0):!1}var oA=le(["ArrowFunctionExpression","FunctionExpression","FunctionDeclaration","ObjectMethod","ClassMethod","TSDeclareFunction","TSCallSignatureDeclaration","TSConstructSignatureDeclaration","TSMethodSignature","TSConstructorType","TSFunctionType","TSDeclareMethod"]),h5={endOfLine:j9,ownLine:M9,remaining:R9},d5=h5;function f5(e,{parser:t}){if(t==="flow"||t==="hermes"||t==="babel-flow")return e=dt(0,e,/[\s(]/gu,""),e===""||e==="/*"||e==="/*::"}var m5=f5,y5=le(["ClassDeclaration","ClassExpression","DeclareClass","DeclareInterface","InterfaceDeclaration","TSInterfaceDeclaration"]);function g5(e){let{key:t,parent:r}=e;if(t==="types"&&cn(r)||t==="argument"&&r.type==="JSXSpreadAttribute"||t==="expression"&&r.type==="JSXSpreadChild"||t==="superClass"&&(r.type==="ClassDeclaration"||r.type==="ClassExpression")||(t==="id"||t==="typeParameters")&&y5(r)||t==="patterns"&&r.type==="MatchOrPattern")return!0;let{node:n}=e;return Ep(n)?!1:cn(n)?Xv(e):!!mt(n)}var D5=g5,As="string",$n="array",Ra="cursor",Ts="indent",Ss="align",Fs="trim",br="group",$i="fill",on="if-break",bs="indent-if-break",ws="line-suffix",Oi="line-suffix-boundary",er="line",Jn="label",Xn="break-parent",uA=new Set([Ra,Ts,Ss,Fs,br,$i,on,bs,ws,Oi,er,Jn,Xn]);function E5(e){if(typeof e=="string")return As;if(Array.isArray(e))return $n;if(!e)return;let{type:t}=e;if(uA.has(t))return t}var Mi=E5,x5=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function C5(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}', -Expected it to be 'string' or 'object'.`;if(Mi(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=x5([...uA].map(i=>`'${i}'`));return`Unexpected doc.type '${e.type}'. -Expected it to be ${n}.`}var v5=class extends Error{constructor(r){super(C5(r));H(this,"name","InvalidDocError");this.doc=r}},xu=v5,X1={};function A5(e,t,r,n){let i=[e];for(;i.length>0;){let s=i.pop();if(s===X1){r(i.pop());continue}r&&i.push(s,X1);let a=Mi(s);if(!a)throw new xu(s);if((t==null?void 0:t(s))!==!1)switch(a){case $n:case $i:{let o=a===$n?s:s.parts;for(let u=o.length,l=u-1;l>=0;--l)i.push(o[l]);break}case on:i.push(s.flatContents,s.breakContents);break;case br:if(n&&s.expandedStates)for(let o=s.expandedStates.length,u=o-1;u>=0;--u)i.push(s.expandedStates[u]);else i.push(s.contents);break;case Ss:case Ts:case bs:case Jn:case ws:i.push(s.contents);break;case As:case Ra:case Fs:case Oi:case er:case Xn:break;default:throw new xu(s)}}}var My=A5;function Ua(e,t){if(typeof e=="string")return t(e);let r=new Map;return n(e);function n(s){if(r.has(s))return r.get(s);let a=i(s);return r.set(s,a),a}function i(s){switch(Mi(s)){case $n:return t(s.map(n));case $i:return t({...s,parts:s.parts.map(n)});case on:return t({...s,breakContents:n(s.breakContents),flatContents:n(s.flatContents)});case br:{let{expandedStates:a,contents:o}=s;return a?(a=a.map(n),o=a[0]):o=n(o),t({...s,contents:o,expandedStates:a})}case Ss:case Ts:case bs:case Jn:case ws:return t({...s,contents:n(s.contents)});case As:case Ra:case Fs:case Oi:case er:case Xn:return t(s);default:throw new xu(s)}}}function lA(e,t,r){let n=r,i=!1;function s(a){if(i)return!1;let o=t(a);o!==void 0&&(i=!0,n=o)}return My(e,s),n}function T5(e){if(e.type===br&&e.break||e.type===er&&e.hard||e.type===Xn)return!0}function $t(e){return lA(e,T5,!1)}function K1(e){if(e.length>0){let t=Se(0,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function S5(e){let t=new Set,r=[];function n(s){if(s.type===Xn&&K1(r),s.type===br){if(r.push(s),t.has(s))return!1;t.add(s)}}function i(s){s.type===br&&r.pop().break&&K1(r)}My(e,n,i,!0)}function F5(e){return e.type===er&&!e.hard?e.soft?"":" ":e.type===on?e.flatContents:e}function Lc(e){return Ua(e,F5)}function b5(e){switch(Mi(e)){case $i:if(e.parts.every(t=>t===""))return"";break;case br:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===br&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case Ss:case Ts:case bs:case ws:if(!e.contents)return"";break;case on:if(!e.flatContents&&!e.breakContents)return"";break;case $n:{let t=[];for(let r of e){if(!r)continue;let[n,...i]=Array.isArray(r)?r:[r];typeof n=="string"&&typeof Se(0,t,-1)=="string"?t[t.length-1]+=n:t.push(n),t.push(...i)}return t.length===0?"":t.length===1?t[0]:t}case As:case Ra:case Fs:case Oi:case er:case Jn:case Xn:break;default:throw new xu(e)}return e}function jy(e){return Ua(e,t=>b5(t))}function fs(e,t=dA){return Ua(e,r=>typeof r=="string"?ge(t,r.split(` -`)):r)}function w5(e){if(e.type===er)return!0}function P5(e){return lA(e,w5,!1)}function pf(e,t){return e.type===Jn?{...e,contents:t(e.contents)}:t(e)}function k5(e){let t=!0;return My(e,r=>{switch(Mi(r)){case As:if(r==="")break;case Fs:case Oi:case er:case Xn:return t=!1,!1}}),t}var N5=$6;function R(e){return{type:Ts,contents:e}}function zr(e,t){return{type:Ss,contents:t,n:e}}function B5(e){return zr(Number.NEGATIVE_INFINITY,e)}function cA(e){return zr(-1,e)}function I5(e,t,r){let n=e;if(t>0){for(let i=0;i0&&u(a),d()}function h(){o>0&&l(o),d()}function d(){a=0,o=0}}function q5(e,t,r){if(!t)return e;if(t.type==="root")return{...e,root:e};if(t===Number.NEGATIVE_INFINITY)return e.root;let n;return typeof t=="number"?t<0?n=z5:n={type:2,width:t}:n={type:3,string:t},mA(e,n,r)}function H5(e,t){return mA(e,V5,t)}function W5(e){let t=0;for(let r=e.length-1;r>=0;r--){let n=e[r];if(n===" "||n===" ")t++;else break}return t}function yA(e){let t=W5(e);return{text:t===0?e:e.slice(0,e.length-t),count:t}}var Ht=Symbol("MODE_BREAK"),Qr=Symbol("MODE_FLAT"),hf=Symbol("DOC_FILL_PRINTED_LENGTH");function Fl(e,t,r,n,i,s){if(r===Number.POSITIVE_INFINITY)return!0;let a=t.length,o=!1,u=[e],l="";for(;r>=0;){if(u.length===0){if(a===0)return!0;u.push(t[--a]);continue}let{mode:c,doc:p}=u.pop(),h=Mi(p);switch(h){case As:p&&(o&&(l+=" ",r-=1,o=!1),l+=p,r-=Aa(p));break;case $n:case $i:{let d=h===$n?p:p.parts,f=p[hf]??0;for(let y=d.length-1;y>=f;y--)u.push({mode:c,doc:d[y]});break}case Ts:case Ss:case bs:case Jn:u.push({mode:c,doc:p.contents});break;case Fs:{let{text:d,count:f}=yA(l);l=d,r+=f;break}case br:{if(s&&p.break)return!1;let d=p.break?Ht:c,f=p.expandedStates&&d===Ht?Se(0,p.expandedStates,-1):p.contents;u.push({mode:d,doc:f});break}case on:{let d=(p.groupId?i[p.groupId]||Qr:c)===Ht?p.breakContents:p.flatContents;d&&u.push({mode:c,doc:d});break}case er:if(c===Ht||p.hard)return!0;p.soft||(o=!0);break;case ws:n=!0;break;case Oi:if(n)return!1;break}}return!1}function gA(e,t){let r=Object.create(null),n=t.printWidth,i=U5(t.endOfLine),s=0,a=[{indent:fA,mode:Ht,doc:e}],o="",u=!1,l=[],c=[],p=[],h=[],d=0;for(S5(e);a.length>0;){let{indent:m,mode:D,doc:v}=a.pop();switch(Mi(v)){case As:{let b=i!==` +`);e=e.replace(Kg,"").trimEnd();let r=Object.create(null),n=Pl(0,e,Gg,"").replace(Kg,"").trimEnd(),i;for(;i=Gg.exec(e);){let s=Pl(0,i[2],pB,"");if(typeof r[i[1]]=="string"||Array.isArray(r[i[1]])){let a=r[i[1]];r[i[1]]=[...fB,...Array.isArray(a)?a:[a],s]}else r[i[1]]=s}return{comments:n,pragmas:r}}var gB=["noformat","noprettier"],DB=["format","prettier"];function $v(e){let t=Bv(e);t&&(e=e.slice(t.length+1));let r=mB(e),{pragmas:n,comments:i}=yB(r);return{shebang:t,text:e,pragmas:n,comments:i}}function xB(e){let{pragmas:t}=$v(e);return DB.some(r=>Object.prototype.hasOwnProperty.call(t,r))}function EB(e){let{pragmas:t}=$v(e);return gB.some(r=>Object.prototype.hasOwnProperty.call(t,r))}function CB(e){return e=typeof e=="function"?{parse:e}:e,{astFormat:"estree",hasPragma:xB,hasIgnorePragma:EB,locStart:kn,locEnd:nn,...e}}var Hu=CB,P0="module",Ov="commonjs";function vB(e){if(typeof e=="string"){if(e=e.toLowerCase(),/\.(?:mjs|mts)$/iu.test(e))return P0;if(/\.(?:cjs|cts)$/iu.test(e))return Ov}}function AB(e,t){let{type:r="JsExpressionRoot",rootMarker:n,text:i}=t,{tokens:s,comments:a}=e;return delete e.tokens,delete e.comments,{tokens:s,comments:a,type:r,node:e,range:[0,i.length],rootMarker:n}}var Mv=AB,Va=e=>Hu(wB(e)),bB={sourceType:P0,allowImportExportEverywhere:!0,allowReturnOutsideFunction:!0,allowNewTargetOutsideFunction:!0,allowSuperOutsideMethod:!0,allowUndeclaredExports:!0,errorRecovery:!0,createParenthesizedExpressions:!0,attachComment:!1,plugins:["doExpressions","exportDefaultFrom","functionBind","functionSent","throwExpressions","partialApplication","decorators","moduleBlocks","asyncDoExpressions","destructuringPrivate","decoratorAutoAccessors","sourcePhaseImports","deferredImportEvaluation",["optionalChainingAssign",{version:"2023-07"}],["discardBinding",{syntaxType:"void"}]],tokens:!1,ranges:!1},Qg="v8intrinsic",Yg=[["pipelineOperator",{proposal:"hack",topicToken:"%"}],["pipelineOperator",{proposal:"fsharp"}]],Ln=(e,t=bB)=>({...t,plugins:[...t.plugins,...e]}),TB=/@(?:no)?flow\b/u;function SB(e,t){if(t!=null&&t.endsWith(".js.flow"))return!0;let r=Bv(e);r&&(e=e.slice(r.length));let n=F9(e,0);return n!==!1&&(e=e.slice(0,n)),TB.test(e)}function FB(e,t,r){let n=e(t,r),i=n.errors.find(s=>!kB.has(s.reasonCode));if(i)throw i;return n}function wB({isExpression:e=!1,optionsCombinations:t}){return(r,n={})=>{let{filepath:i}=n;if(typeof i!="string"&&(i=void 0),(n.parser==="babel"||n.parser==="__babel_estree")&&SB(r,i))return n.parser="babel-flow",Rv.parse(r,n);let s=t,a=n.__babelSourceType??vB(i);a&&a!==P0&&(s=s.map(c=>({...c,sourceType:a,...a===Ov?{allowReturnOutsideFunction:void 0,allowNewTargetOutsideFunction:void 0}:void 0})));let o=/%[A-Z]/u.test(r);r.includes("|>")?s=(o?[...Yg,Qg]:Yg).flatMap(c=>s.map(p=>Ln([c],p))):o&&(s=s.map(c=>Ln([Qg],c)));let u=e?Pv:kv,l;try{l=w9(s.map(c=>()=>FB(u,r,c)))}catch({errors:[c]}){throw Lv(c)}return e&&(l=Mv(l,{text:r,rootMarker:n.rootMarker})),nB(l,{text:r})}}var kB=new Set(["StrictNumericEscape","StrictWith","StrictOctalLiteral","StrictDelete","StrictEvalArguments","StrictEvalArgumentsBinding","StrictFunction","ForInOfLoopInitializer","ConstructorHasTypeParameters","UnsupportedParameterPropertyKind","DecoratorExportClass","ParamDupe","InvalidDecimal","RestTrailingComma","UnsupportedParameterDecorator","UnterminatedJsxContent","UnexpectedReservedWord","ModuleAttributesWithDuplicateKeys","InvalidEscapeSequenceTemplate","NonAbstractClassHasAbstractMethod","OptionalTypeBeforeRequired","PatternIsOptional","DeclareClassFieldHasInitializer","TypeImportCannotSpecifyDefaultAndNamed","VarRedeclaration","InvalidPrivateFieldResolution","DuplicateExport","ImportAttributesUseAssert","DeclarationMissingInitializer"]),jv=[Ln(["jsx"])],Zg=Va({optionsCombinations:jv}),e2=Va({optionsCombinations:[Ln(["jsx","typescript"]),Ln(["typescript"])]}),t2=Va({isExpression:!0,optionsCombinations:[Ln(["jsx"])]}),r2=Va({isExpression:!0,optionsCombinations:[Ln(["typescript"])]}),Rv=Va({optionsCombinations:[Ln(["jsx",["flow",{all:!0}],"flowComments"])]}),PB=Va({optionsCombinations:jv.map(e=>Ln(["estree"],e))}),Uv={};f0(Uv,{json:()=>IB,"json-stringify":()=>$B,json5:()=>_B,jsonc:()=>LB});function NB(e){return Array.isArray(e)&&e.length>0}var Vv=NB,zv={tokens:!1,ranges:!1,attachComment:!1,createParenthesizedExpressions:!0};function BB(e){let t=kv(e,zv),{program:r}=t;if(r.body.length===0&&r.directives.length===0&&!r.interpreter)return t}function Tp(e,t={}){let{allowComments:r=!0,allowEmpty:n=!1}=t,i;try{i=Pv(e,zv)}catch(s){if(n&&s.code==="BABEL_PARSER_SYNTAX_ERROR"&&s.reasonCode==="ParseExpressionEmptyInput")try{i=BB(e)}catch{}if(!i)throw Lv(s)}if(!r&&Vv(i.comments))throw ii(i.comments[0],"Comment");return i=Mv(i,{type:"JsonRoot",text:e}),i.node.type==="File"?delete i.node:Us(i.node),i}function ii(e,t){let[r,n]=[e.loc.start,e.loc.end].map(({line:i,column:s})=>({line:i,column:s+1}));return _v(`${t} is not allowed in JSON.`,{loc:{start:r,end:n}})}function Us(e){switch(e.type){case"ArrayExpression":for(let t of e.elements)t!==null&&Us(t);return;case"ObjectExpression":for(let t of e.properties)Us(t);return;case"ObjectProperty":if(e.computed)throw ii(e.key,"Computed key");if(e.shorthand)throw ii(e.key,"Shorthand property");e.key.type!=="Identifier"&&Us(e.key),Us(e.value);return;case"UnaryExpression":{let{operator:t,argument:r}=e;if(t!=="+"&&t!=="-")throw ii(e,`Operator '${e.operator}'`);if(r.type==="NumericLiteral"||r.type==="Identifier"&&(r.name==="Infinity"||r.name==="NaN"))return;throw ii(r,`Operator '${t}' before '${r.type}'`)}case"Identifier":if(e.name!=="Infinity"&&e.name!=="NaN"&&e.name!=="undefined")throw ii(e,`Identifier '${e.name}'`);return;case"TemplateLiteral":if(Vv(e.expressions))throw ii(e.expressions[0],"'TemplateLiteral' with expression");for(let t of e.quasis)Us(t);return;case"NullLiteral":case"BooleanLiteral":case"NumericLiteral":case"StringLiteral":case"TemplateElement":return;default:throw ii(e,`'${e.type}'`)}}var IB=Hu({parse:e=>Tp(e),hasPragma:()=>!0,hasIgnorePragma:()=>!1}),_B=Hu(e=>Tp(e)),LB=Hu(e=>Tp(e,{allowEmpty:!0})),$B=Hu({parse:e=>Tp(e,{allowComments:!1}),astFormat:"estree-json"}),qv={...lv,...Uv};const OB=Object.freeze(Object.defineProperty({__proto__:null,default:uv,parsers:qv},Symbol.toStringTag,{value:"Module"}));var MB=Object.defineProperty,N0=(e,t)=>{for(var r in t)MB(e,r,{get:t[r],enumerable:!0})},Hv={};N0(Hv,{languages:()=>rT,options:()=>eT,printers:()=>tT});var jB=[{name:"JavaScript",type:"programming",aceMode:"javascript",extensions:[".js","._js",".bones",".cjs",".es",".es6",".gs",".jake",".javascript",".jsb",".jscad",".jsfl",".jslib",".jsm",".jspre",".jss",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib",".start.frag",".end.frag",".wxs"],filenames:["Jakefile","start.frag","end.frag"],tmScope:"source.js",aliases:["js","node"],codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell","zx"],parsers:["babel","acorn","espree","meriyah","babel-flow","babel-ts","flow","typescript"],vscodeLanguageIds:["javascript","mongo"],linguistLanguageId:183},{name:"Flow",type:"programming",aceMode:"javascript",extensions:[".js.flow"],filenames:[],tmScope:"source.js",aliases:[],codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell"],parsers:["flow","babel-flow"],vscodeLanguageIds:["javascript"],linguistLanguageId:183},{name:"JSX",type:"programming",aceMode:"javascript",extensions:[".jsx"],filenames:void 0,tmScope:"source.js.jsx",aliases:void 0,codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",interpreters:void 0,parsers:["babel","babel-flow","babel-ts","flow","typescript","espree","meriyah"],vscodeLanguageIds:["javascriptreact"],group:"JavaScript",linguistLanguageId:183},{name:"TypeScript",type:"programming",aceMode:"typescript",extensions:[".ts",".cts",".mts"],tmScope:"source.ts",aliases:["ts"],codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",interpreters:["bun","deno","ts-node","tsx"],parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescript"],linguistLanguageId:378},{name:"TSX",type:"programming",aceMode:"tsx",extensions:[".tsx"],tmScope:"source.tsx",codemirrorMode:"jsx",codemirrorMimeType:"text/typescript-jsx",group:"TypeScript",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescriptreact"],linguistLanguageId:94901924}],Wv={};N0(Wv,{canAttachComment:()=>a_,embed:()=>Q7,features:()=>NM,getVisitorKeys:()=>Zv,handleComments:()=>U_,hasPrettierIgnore:()=>iy,insertPragma:()=>pL,isBlockComment:()=>Wr,isGap:()=>z_,massageAstNode:()=>e_,print:()=>N2,printComment:()=>mL,printPrettierIgnored:()=>N2,willPrintOwnComments:()=>W_});var B0=(e,t)=>(r,n,...i)=>r|1&&n==null?void 0:(t.call(n)??n[e]).apply(n,i),RB=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},UB=B0("replaceAll",function(){if(typeof this=="string")return RB}),dt=UB;function VB(e){return this[e<0?this.length+e:e]}var zB=B0("at",function(){if(Array.isArray(this)||typeof this=="string")return VB}),Se=zB;function qB(e){return e!==null&&typeof e=="object"}var Jv=qB;function*HB(e,t){let{getVisitorKeys:r,filter:n=()=>!0}=t,i=s=>Jv(s)&&n(s);for(let s of r(e)){let a=e[s];if(Array.isArray(a))for(let o of a)i(o)&&(yield o);else i(a)&&(yield a)}}function*WB(e,t){let r=[e];for(let n=0;n/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function KB(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function GB(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9776&&e<=9783||e>=9800&&e<=9811||e===9855||e>=9866&&e<=9871||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e>=94192&&e<=94198||e>=94208&&e<=101589||e>=101631&&e<=101662||e>=101760&&e<=101874||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128728||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129674||e>=129678&&e<=129734||e===129736||e>=129741&&e<=129756||e>=129759&&e<=129770||e>=129775&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}var QB="©®‼⁉™ℹ↔↕↖↗↘↙↩↪⌨⏏⏱⏲⏸⏹⏺▪▫▶◀◻◼☀☁☂☃☄☎☑☘☝☠☢☣☦☪☮☯☸☹☺♀♂♟♠♣♥♦♨♻♾⚒⚔⚕⚖⚗⚙⚛⚜⚠⚧⚰⚱⛈⛏⛑⛓⛩⛱⛷⛸⛹✂✈✉✌✍✏✒✔✖✝✡✳✴❄❇❣❤➡⤴⤵⬅⬆⬇",YB=/[^\x20-\x7F]/u,ZB=new Set(QB);function eI(e){if(!e)return 0;if(!YB.test(e))return e.length;e=e.replace(XB(),r=>ZB.has(r)?" ":" ");let t=0;for(let r of e){let n=r.codePointAt(0);n<=31||n>=127&&n<=159||n>=768&&n<=879||n>=65024&&n<=65039||(t+=KB(n)||GB(n)?2:1)}return t}var Fa=eI;function I0(e){return(t,r,n)=>{let i=!!(n!=null&&n.backwards);if(r===!1)return!1;let{length:s}=t,a=r;for(;a>=0&&ae===` +`||e==="\r"||e==="\u2028"||e==="\u2029";function nI(e,t,r){let n=!!(r!=null&&r.backwards);if(t===!1)return!1;let i=e.charAt(t);if(n){if(e.charAt(t-1)==="\r"&&i===` +`)return t-2;if(n2(i))return t-1}else{if(i==="\r"&&e.charAt(t+1)===` +`)return t+2;if(n2(i))return t+1}return t}var ka=nI;function iI(e,t,r={}){let n=wa(e,r.backwards?t-1:t,r),i=ka(e,n,r);return n!==i}var Qt=iI;function sI(e,t){if(t===!1)return!1;if(e.charAt(t)==="/"&&e.charAt(t+1)==="*"){for(let r=t+2;r0}var Me=uI,lI=()=>{},cI=lI,Xv=Object.freeze({character:"'",codePoint:39}),Kv=Object.freeze({character:'"',codePoint:34}),pI=Object.freeze({preferred:Xv,alternate:Kv}),hI=Object.freeze({preferred:Kv,alternate:Xv});function dI(e,t){let{preferred:r,alternate:n}=t===!0||t==="'"?pI:hI,{length:i}=e,s=0,a=0;for(let o=0;oa?n:r).character}var Gv=dI,fI=/\\(["'\\])|(["'])/gu;function mI(e,t){let r=t==='"'?"'":'"',n=dt(0,e,fI,(i,s,a)=>s?s===r?r:i:a===t?"\\"+a:a);return t+n+t}var yI=mI;function gI(e,t){let r=e.slice(1,-1),n=t.parser==="json"||t.parser==="jsonc"||t.parser==="json5"&&t.quoteProps==="preserve"&&!t.singleQuote?'"':t.__isInHtmlAttribute?"'":Gv(r,t.singleQuote);return e.charAt(0)===n?e:yI(r,n)}var Pa=gI,Qv=e=>Number.isInteger(e)&&e>=0;function me(e){var n,i,s;let t=((n=e.range)==null?void 0:n[0])??e.start,r=(s=((i=e.declaration)==null?void 0:i.decorators)??e.decorators)==null?void 0:s[0];return r?Math.min(me(r),t):t}function de(e){var t;return((t=e.range)==null?void 0:t[1])??e.end}function Sp(e,t){let r=me(e);return Qv(r)&&r===me(t)}function DI(e,t){let r=de(e);return Qv(r)&&r===de(t)}function xI(e,t){return Sp(e,t)&&DI(e,t)}var mo=null;function Go(e){if(mo!==null&&typeof mo.property){let t=mo;return mo=Go.prototype=null,t}return mo=Go.prototype=e??Object.create(null),new Go}var EI=10;for(let e=0;e<=EI;e++)Go();function CI(e){return Go(e)}function vI(e,t="type"){CI(e);function r(n){let i=n[t],s=e[i];if(!Array.isArray(s))throw Object.assign(new Error(`Missing visitor keys for '${i}'.`),{node:n});return s}return r}var Yv=vI,F=[["decorators","key","typeAnnotation","value"],[],["elementType"],["expression"],["expression","typeAnnotation"],["left","right"],["argument"],["directives","body"],["label"],["callee","typeArguments","arguments"],["body"],["decorators","id","typeParameters","superClass","superTypeArguments","mixins","implements","body","superTypeParameters"],["id","typeParameters"],["decorators","key","typeParameters","params","returnType","body"],["decorators","variance","key","typeAnnotation","value"],["name","typeAnnotation"],["test","consequent","alternate"],["checkType","extendsType","trueType","falseType"],["value"],["id","body"],["declaration","specifiers","source","attributes"],["id"],["id","typeParameters","extends","body"],["typeAnnotation"],["id","typeParameters","right"],["body","test"],["members"],["id","init"],["exported"],["left","right","body"],["id","typeParameters","params","predicate","returnType","body"],["id","params","body","typeParameters","returnType"],["key","value"],["local"],["objectType","indexType"],["typeParameter"],["types"],["node"],["object","property"],["argument","cases"],["pattern","body","guard"],["literal"],["decorators","key","value"],["expressions"],["qualification","id"],["decorators","key","typeAnnotation"],["typeParameters","params","returnType"],["expression","typeArguments"],["params"],["parameterName","typeAnnotation"]],AI={AccessorProperty:F[0],AnyTypeAnnotation:F[1],ArgumentPlaceholder:F[1],ArrayExpression:["elements"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrayTypeAnnotation:F[2],ArrowFunctionExpression:["typeParameters","params","predicate","returnType","body"],AsConstExpression:F[3],AsExpression:F[4],AssignmentExpression:F[5],AssignmentPattern:["left","right","decorators","typeAnnotation"],AwaitExpression:F[6],BigIntLiteral:F[1],BigIntLiteralTypeAnnotation:F[1],BigIntTypeAnnotation:F[1],BinaryExpression:F[5],BindExpression:["object","callee"],BlockStatement:F[7],BooleanLiteral:F[1],BooleanLiteralTypeAnnotation:F[1],BooleanTypeAnnotation:F[1],BreakStatement:F[8],CallExpression:F[9],CatchClause:["param","body"],ChainExpression:F[3],ClassAccessorProperty:F[0],ClassBody:F[10],ClassDeclaration:F[11],ClassExpression:F[11],ClassImplements:F[12],ClassMethod:F[13],ClassPrivateMethod:F[13],ClassPrivateProperty:F[14],ClassProperty:F[14],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:F[15],ConditionalExpression:F[16],ConditionalTypeAnnotation:F[17],ContinueStatement:F[8],DebuggerStatement:F[1],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclaredPredicate:F[18],DeclareEnum:F[19],DeclareExportAllDeclaration:["source","attributes"],DeclareExportDeclaration:F[20],DeclareFunction:["id","predicate"],DeclareHook:F[21],DeclareInterface:F[22],DeclareModule:F[19],DeclareModuleExports:F[23],DeclareNamespace:F[19],DeclareOpaqueType:["id","typeParameters","supertype","lowerBound","upperBound"],DeclareTypeAlias:F[24],DeclareVariable:F[21],Decorator:F[3],Directive:F[18],DirectiveLiteral:F[1],DoExpression:F[10],DoWhileStatement:F[25],EmptyStatement:F[1],EmptyTypeAnnotation:F[1],EnumBigIntBody:F[26],EnumBigIntMember:F[27],EnumBooleanBody:F[26],EnumBooleanMember:F[27],EnumDeclaration:F[19],EnumDefaultedMember:F[21],EnumNumberBody:F[26],EnumNumberMember:F[27],EnumStringBody:F[26],EnumStringMember:F[27],EnumSymbolBody:F[26],ExistsTypeAnnotation:F[1],ExperimentalRestProperty:F[6],ExperimentalSpreadProperty:F[6],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportDefaultSpecifier:F[28],ExportNamedDeclaration:F[20],ExportNamespaceSpecifier:F[28],ExportSpecifier:["local","exported"],ExpressionStatement:F[3],File:["program"],ForInStatement:F[29],ForOfStatement:F[29],ForStatement:["init","test","update","body"],FunctionDeclaration:F[30],FunctionExpression:F[30],FunctionTypeAnnotation:["typeParameters","this","params","rest","returnType"],FunctionTypeParam:F[15],GenericTypeAnnotation:F[12],HookDeclaration:F[31],HookTypeAnnotation:["params","returnType","rest","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:F[16],ImportAttribute:F[32],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:F[33],ImportExpression:["source","options"],ImportNamespaceSpecifier:F[33],ImportSpecifier:["imported","local"],IndexedAccessType:F[34],InferredPredicate:F[1],InferTypeAnnotation:F[35],InterfaceDeclaration:F[22],InterfaceExtends:F[12],InterfaceTypeAnnotation:["extends","body"],InterpreterDirective:F[1],IntersectionTypeAnnotation:F[36],JsExpressionRoot:F[37],JsonRoot:F[37],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXClosingFragment:F[1],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:F[1],JSXExpressionContainer:F[3],JSXFragment:["openingFragment","children","closingFragment"],JSXIdentifier:F[1],JSXMemberExpression:F[38],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","typeArguments","attributes"],JSXOpeningFragment:F[1],JSXSpreadAttribute:F[6],JSXSpreadChild:F[3],JSXText:F[1],KeyofTypeAnnotation:F[6],LabeledStatement:["label","body"],Literal:F[1],LogicalExpression:F[5],MatchArrayPattern:["elements","rest"],MatchAsPattern:["pattern","target"],MatchBindingPattern:F[21],MatchExpression:F[39],MatchExpressionCase:F[40],MatchIdentifierPattern:F[21],MatchLiteralPattern:F[41],MatchMemberPattern:["base","property"],MatchObjectPattern:["properties","rest"],MatchObjectPatternProperty:["key","pattern"],MatchOrPattern:["patterns"],MatchRestPattern:F[6],MatchStatement:F[39],MatchStatementCase:F[40],MatchUnaryPattern:F[6],MatchWildcardPattern:F[1],MemberExpression:F[38],MetaProperty:["meta","property"],MethodDefinition:F[42],MixedTypeAnnotation:F[1],ModuleExpression:F[10],NeverTypeAnnotation:F[1],NewExpression:F[9],NGChainedExpression:F[43],NGEmptyExpression:F[1],NGMicrosyntax:F[10],NGMicrosyntaxAs:["key","alias"],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKey:F[1],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:F[32],NGPipeExpression:["left","right","arguments"],NGRoot:F[37],NullableTypeAnnotation:F[23],NullLiteral:F[1],NullLiteralTypeAnnotation:F[1],NumberLiteralTypeAnnotation:F[1],NumberTypeAnnotation:F[1],NumericLiteral:F[1],ObjectExpression:["properties"],ObjectMethod:F[13],ObjectPattern:["decorators","properties","typeAnnotation"],ObjectProperty:F[42],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeCallProperty:F[18],ObjectTypeIndexer:["variance","id","key","value"],ObjectTypeInternalSlot:["id","value"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:F[6],OpaqueType:["id","typeParameters","supertype","impltype","lowerBound","upperBound"],OptionalCallExpression:F[9],OptionalIndexedAccessType:F[34],OptionalMemberExpression:F[38],ParenthesizedExpression:F[3],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:F[1],PipelineTopicExpression:F[3],Placeholder:F[1],PrivateIdentifier:F[1],PrivateName:F[21],Program:F[7],Property:F[32],PropertyDefinition:F[14],QualifiedTypeIdentifier:F[44],QualifiedTypeofIdentifier:F[44],RegExpLiteral:F[1],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:F[6],SatisfiesExpression:F[4],SequenceExpression:F[43],SpreadElement:F[6],StaticBlock:F[10],StringLiteral:F[1],StringLiteralTypeAnnotation:F[1],StringTypeAnnotation:F[1],Super:F[1],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],SymbolTypeAnnotation:F[1],TaggedTemplateExpression:["tag","typeArguments","quasi"],TemplateElement:F[1],TemplateLiteral:["quasis","expressions"],ThisExpression:F[1],ThisTypeAnnotation:F[1],ThrowStatement:F[6],TopicReference:F[1],TryStatement:["block","handler","finalizer"],TSAbstractAccessorProperty:F[45],TSAbstractKeyword:F[1],TSAbstractMethodDefinition:F[32],TSAbstractPropertyDefinition:F[45],TSAnyKeyword:F[1],TSArrayType:F[2],TSAsExpression:F[4],TSAsyncKeyword:F[1],TSBigIntKeyword:F[1],TSBooleanKeyword:F[1],TSCallSignatureDeclaration:F[46],TSClassImplements:F[47],TSConditionalType:F[17],TSConstructorType:F[46],TSConstructSignatureDeclaration:F[46],TSDeclareFunction:F[31],TSDeclareKeyword:F[1],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSEnumBody:F[26],TSEnumDeclaration:F[19],TSEnumMember:["id","initializer"],TSExportAssignment:F[3],TSExportKeyword:F[1],TSExternalModuleReference:F[3],TSFunctionType:F[46],TSImportEqualsDeclaration:["id","moduleReference"],TSImportType:["options","qualifier","typeArguments","source"],TSIndexedAccessType:F[34],TSIndexSignature:["parameters","typeAnnotation"],TSInferType:F[35],TSInstantiationExpression:F[47],TSInterfaceBody:F[10],TSInterfaceDeclaration:F[22],TSInterfaceHeritage:F[47],TSIntersectionType:F[36],TSIntrinsicKeyword:F[1],TSJSDocAllType:F[1],TSJSDocNonNullableType:F[23],TSJSDocNullableType:F[23],TSJSDocUnknownType:F[1],TSLiteralType:F[41],TSMappedType:["key","constraint","nameType","typeAnnotation"],TSMethodSignature:["key","typeParameters","params","returnType"],TSModuleBlock:F[10],TSModuleDeclaration:F[19],TSNamedTupleMember:["label","elementType"],TSNamespaceExportDeclaration:F[21],TSNeverKeyword:F[1],TSNonNullExpression:F[3],TSNullKeyword:F[1],TSNumberKeyword:F[1],TSObjectKeyword:F[1],TSOptionalType:F[23],TSParameterProperty:["parameter","decorators"],TSParenthesizedType:F[23],TSPrivateKeyword:F[1],TSPropertySignature:["key","typeAnnotation"],TSProtectedKeyword:F[1],TSPublicKeyword:F[1],TSQualifiedName:F[5],TSReadonlyKeyword:F[1],TSRestType:F[23],TSSatisfiesExpression:F[4],TSStaticKeyword:F[1],TSStringKeyword:F[1],TSSymbolKeyword:F[1],TSTemplateLiteralType:["quasis","types"],TSThisType:F[1],TSTupleType:["elementTypes"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSTypeAnnotation:F[23],TSTypeAssertion:F[4],TSTypeLiteral:F[26],TSTypeOperator:F[23],TSTypeParameter:["name","constraint","default"],TSTypeParameterDeclaration:F[48],TSTypeParameterInstantiation:F[48],TSTypePredicate:F[49],TSTypeQuery:["exprName","typeArguments"],TSTypeReference:["typeName","typeArguments"],TSUndefinedKeyword:F[1],TSUnionType:F[36],TSUnknownKeyword:F[1],TSVoidKeyword:F[1],TupleTypeAnnotation:["types","elementTypes"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeAlias:F[24],TypeAnnotation:F[23],TypeCastExpression:F[4],TypeofTypeAnnotation:["argument","typeArguments"],TypeOperator:F[23],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:F[48],TypeParameterInstantiation:F[48],TypePredicate:F[49],UnaryExpression:F[6],UndefinedTypeAnnotation:F[1],UnionTypeAnnotation:F[36],UnknownTypeAnnotation:F[1],UpdateExpression:F[6],V8IntrinsicIdentifier:F[1],VariableDeclaration:["declarations"],VariableDeclarator:F[27],Variance:F[1],VoidPattern:F[1],VoidTypeAnnotation:F[1],WhileStatement:F[25],WithStatement:["object","body"],YieldExpression:F[6]},bI=Yv(AI),Zv=bI;function TI(e){let t=new Set(e);return r=>t.has(r==null?void 0:r.type)}var le=TI;function SI(e){var t;return((t=e.extra)==null?void 0:t.raw)??e.raw}var Yt=SI,FI=le(["Block","CommentBlock","MultiLine"]),Wr=FI,wI=le(["AnyTypeAnnotation","ThisTypeAnnotation","NumberTypeAnnotation","VoidTypeAnnotation","BooleanTypeAnnotation","BigIntTypeAnnotation","SymbolTypeAnnotation","StringTypeAnnotation","NeverTypeAnnotation","UndefinedTypeAnnotation","UnknownTypeAnnotation","EmptyTypeAnnotation","MixedTypeAnnotation"]),eA=wI,kI=le(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose","Hashbang","InterpreterDirective"]),Wu=kI;function PI(e,t){let r=t.split(".");for(let n=r.length-1;n>=0;n--){let i=r[n];if(n===0)return e.type==="Identifier"&&e.name===i;if(n===1&&e.type==="MetaProperty"&&e.property.type==="Identifier"&&e.property.name===i){e=e.meta;continue}if(e.type==="MemberExpression"&&!e.optional&&!e.computed&&e.property.type==="Identifier"&&e.property.name===i){e=e.object;continue}return!1}}function NI(e,t){return t.some(r=>PI(e,r))}var O0=NI;function BI({type:e}){return e.startsWith("TS")&&e.endsWith("Keyword")}var tA=BI;function II({node:e,parent:t}){return(e==null?void 0:e.type)!=="EmptyStatement"?!1:t.type==="IfStatement"?t.consequent===e||t.alternate===e:t.type==="DoWhileStatement"||t.type==="ForInStatement"||t.type==="ForOfStatement"||t.type==="ForStatement"||t.type==="LabeledStatement"||t.type==="WithStatement"||t.type==="WhileStatement"?t.body===e:!1}var M0=II;function gf(e,t){return t(e)||JB(e,{getVisitorKeys:Zv,predicate:t})}function j0(e){return e.type==="AssignmentExpression"||e.type==="BinaryExpression"||e.type==="LogicalExpression"||e.type==="NGPipeExpression"||e.type==="ConditionalExpression"||be(e)||Oe(e)||e.type==="SequenceExpression"||e.type==="TaggedTemplateExpression"||e.type==="BindExpression"||e.type==="UpdateExpression"&&!e.prefix||Or(e)||e.type==="TSNonNullExpression"||e.type==="ChainExpression"}function _I(e){return e.expressions?e.expressions[0]:e.left??e.test??e.callee??e.object??e.tag??e.argument??e.expression}function rA(e){if(e.expressions)return["expressions",0];if(e.left)return["left"];if(e.test)return["test"];if(e.object)return["object"];if(e.callee)return["callee"];if(e.tag)return["tag"];if(e.argument)return["argument"];if(e.expression)return["expression"];throw new Error("Unexpected node has no left side.")}var LI=le(["ExportDefaultDeclaration","DeclareExportDeclaration","ExportNamedDeclaration","ExportAllDeclaration","DeclareExportAllDeclaration"]),At=le(["ArrayExpression"]),zr=le(["ObjectExpression"]);function $I(e){return e.type==="LogicalExpression"&&e.operator==="??"}function cn(e){return e.type==="NumericLiteral"||e.type==="Literal"&&typeof e.value=="number"}function OI(e){return e.type==="BooleanLiteral"||e.type==="Literal"&&typeof e.value=="boolean"}function nA(e){return e.type==="UnaryExpression"&&(e.operator==="+"||e.operator==="-")&&cn(e.argument)}function yt(e){return!!(e&&(e.type==="StringLiteral"||e.type==="Literal"&&typeof e.value=="string"))}function iA(e){return e.type==="RegExpLiteral"||e.type==="Literal"&&!!e.regex}var R0=le(["Literal","BooleanLiteral","BigIntLiteral","DirectiveLiteral","NullLiteral","NumericLiteral","RegExpLiteral","StringLiteral"]),MI=le(["Identifier","ThisExpression","Super","PrivateName","PrivateIdentifier"]),ki=le(["ObjectTypeAnnotation","TSTypeLiteral","TSMappedType"]),bu=le(["FunctionExpression","ArrowFunctionExpression"]);function jI(e){return e.type==="FunctionExpression"||e.type==="ArrowFunctionExpression"&&e.body.type==="BlockStatement"}function Mh(e){return be(e)&&e.callee.type==="Identifier"&&["async","inject","fakeAsync","waitForAsync"].includes(e.callee.name)}var mt=le(["JSXElement","JSXFragment"]);function Ju(e){return e.method&&e.kind==="init"||e.kind==="get"||e.kind==="set"}function sA(e){return(e.type==="ObjectTypeProperty"||e.type==="ObjectTypeInternalSlot")&&!e.static&&!e.method&&e.kind!=="get"&&e.kind!=="set"&&e.value.type==="FunctionTypeAnnotation"}function RI(e){return(e.type==="TypeAnnotation"||e.type==="TSTypeAnnotation")&&e.typeAnnotation.type==="FunctionTypeAnnotation"&&!e.static&&!Sp(e,e.typeAnnotation)}var $n=le(["BinaryExpression","LogicalExpression","NGPipeExpression"]);function Vs(e){return Oe(e)||e.type==="BindExpression"&&!!e.object}var UI=le(["TSThisType","NullLiteralTypeAnnotation","BooleanLiteralTypeAnnotation","StringLiteralTypeAnnotation","BigIntLiteralTypeAnnotation","NumberLiteralTypeAnnotation","TSLiteralType","TSTemplateLiteralType"]);function U0(e){return tA(e)||eA(e)||UI(e)||e.type==="GenericTypeAnnotation"&&!e.typeParameters||e.type==="TSTypeReference"&&!e.typeArguments}function VI(e){return e.type==="Identifier"&&(e.name==="beforeEach"||e.name==="beforeAll"||e.name==="afterEach"||e.name==="afterAll")}var zI=["it","it.only","it.skip","describe","describe.only","describe.skip","test","test.only","test.skip","test.fixme","test.step","test.describe","test.describe.only","test.describe.skip","test.describe.fixme","test.describe.parallel","test.describe.parallel.only","test.describe.serial","test.describe.serial.only","skip","xit","xdescribe","xtest","fit","fdescribe","ftest"];function qI(e){return O0(e,zI)}function Fp(e,t){if((e==null?void 0:e.type)!=="CallExpression"||e.optional)return!1;let r=fr(e);if(r.length===1){if(Mh(e)&&Fp(t))return bu(r[0]);if(VI(e.callee))return Mh(r[0])}else if((r.length===2||r.length===3)&&(r[0].type==="TemplateLiteral"||yt(r[0]))&&qI(e.callee))return r[2]&&!cn(r[2])?!1:(r.length===2?bu(r[1]):jI(r[1])&&Nt(r[1]).length<=1)||Mh(r[1]);return!1}var aA=e=>t=>((t==null?void 0:t.type)==="ChainExpression"&&(t=t.expression),e(t)),be=aA(le(["CallExpression","OptionalCallExpression"])),Oe=aA(le(["MemberExpression","OptionalMemberExpression"]));function i2(e,t=5){return oA(e,t)<=t}function oA(e,t){let r=0;for(let n in e){let i=e[n];if(Jv(i)&&typeof i.type=="string"&&(r++,r+=oA(i,t-r)),r>t)return r}return r}var HI=.25;function V0(e,t){let{printWidth:r}=t;if(X(e))return!1;let n=r*HI;if(e.type==="ThisExpression"||e.type==="Identifier"&&e.name.length<=n||nA(e)&&!X(e.argument))return!0;let i=e.type==="Literal"&&"regex"in e&&e.regex.pattern||e.type==="RegExpLiteral"&&e.pattern;return i?i.length<=n:yt(e)?Pa(Yt(e),t).length<=n:e.type==="TemplateLiteral"?e.expressions.length===0&&e.quasis[0].value.raw.length<=n&&!e.quasis[0].value.raw.includes(` +`):e.type==="UnaryExpression"?V0(e.argument,{printWidth:r}):e.type==="CallExpression"&&e.arguments.length===0&&e.callee.type==="Identifier"?e.callee.name.length<=n-2:R0(e)}function Ur(e,t){return mt(t)?wp(t):X(t,ee.Leading,r=>Qt(e,de(r)))}function s2(e){return e.quasis.some(t=>t.value.raw.includes(` +`))}function uA(e,t){return(e.type==="TemplateLiteral"&&s2(e)||e.type==="TaggedTemplateExpression"&&s2(e.quasi))&&!Qt(t,me(e),{backwards:!0})}function lA(e){if(!X(e))return!1;let t=Se(0,ls(e,ee.Dangling),-1);return t&&!Wr(t)}function WI(e){if(e.length<=1)return!1;let t=0;for(let r of e)if(bu(r)){if(t+=1,t>1)return!0}else if(be(r)){for(let n of fr(r))if(bu(n))return!0}return!1}function cA(e){let{node:t,parent:r,key:n}=e;return n==="callee"&&be(t)&&be(r)&&r.arguments.length>0&&t.arguments.length>r.arguments.length}var JI=new Set(["!","-","+","~"]);function Lr(e,t=2){if(t<=0)return!1;if(e.type==="ChainExpression"||e.type==="TSNonNullExpression")return Lr(e.expression,t);let r=n=>Lr(n,t-1);if(iA(e))return Fa(e.pattern??e.regex.pattern)<=5;if(R0(e)||MI(e)||e.type==="ArgumentPlaceholder")return!0;if(e.type==="TemplateLiteral")return e.quasis.every(n=>!n.value.raw.includes(` +`))&&e.expressions.every(r);if(zr(e))return e.properties.every(n=>!n.computed&&(n.shorthand||n.value&&r(n.value)));if(At(e))return e.elements.every(n=>n===null||r(n));if(Ba(e)){if(e.type==="ImportExpression"||Lr(e.callee,t)){let n=fr(e);return n.length<=t&&n.every(r)}return!1}return Oe(e)?Lr(e.object,t)&&Lr(e.property,t):e.type==="UnaryExpression"&&JI.has(e.operator)||e.type==="UpdateExpression"?Lr(e.argument,t):!1}function mn(e,t="es5"){return e.trailingComma==="es5"&&t==="es5"||e.trailingComma==="all"&&(t==="all"||t==="es5")}function Lt(e,t){switch(e.type){case"BinaryExpression":case"LogicalExpression":case"AssignmentExpression":case"NGPipeExpression":return Lt(e.left,t);case"MemberExpression":case"OptionalMemberExpression":return Lt(e.object,t);case"TaggedTemplateExpression":return e.tag.type==="FunctionExpression"?!1:Lt(e.tag,t);case"CallExpression":case"OptionalCallExpression":return e.callee.type==="FunctionExpression"?!1:Lt(e.callee,t);case"ConditionalExpression":return Lt(e.test,t);case"UpdateExpression":return!e.prefix&&Lt(e.argument,t);case"BindExpression":return e.object&&Lt(e.object,t);case"SequenceExpression":return Lt(e.expressions[0],t);case"ChainExpression":case"TSSatisfiesExpression":case"TSAsExpression":case"TSNonNullExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return Lt(e.expression,t);default:return t(e)}}var a2={"==":!0,"!=":!0,"===":!0,"!==":!0},Nl={"*":!0,"/":!0,"%":!0},Df={">>":!0,">>>":!0,"<<":!0};function z0(e,t){return!(Uc(t)!==Uc(e)||e==="**"||a2[e]&&a2[t]||t==="%"&&Nl[e]||e==="%"&&Nl[t]||t!==e&&Nl[t]&&Nl[e]||Df[e]&&Df[t])}var XI=new Map([["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].flatMap((e,t)=>e.map(r=>[r,t])));function Uc(e){return XI.get(e)}function KI(e){return!!Df[e]||e==="|"||e==="^"||e==="&"}function GI(e){var r;if(e.rest)return!0;let t=Nt(e);return((r=Se(0,t,-1))==null?void 0:r.type)==="RestElement"}var jh=new WeakMap;function Nt(e){if(jh.has(e))return jh.get(e);let t=[];return e.this&&t.push(e.this),t.push(...e.params),e.rest&&t.push(e.rest),jh.set(e,t),t}function QI(e,t){let{node:r}=e,n=0,i=()=>t(e,n++);r.this&&e.call(i,"this"),e.each(i,"params"),r.rest&&e.call(i,"rest")}var Rh=new WeakMap;function fr(e){if(Rh.has(e))return Rh.get(e);if(e.type==="ChainExpression")return fr(e.expression);let t;return e.type==="ImportExpression"||e.type==="TSImportType"?(t=[e.source],e.options&&t.push(e.options)):e.type==="TSExternalModuleReference"?t=[e.expression]:t=e.arguments,Rh.set(e,t),t}function Vc(e,t){let{node:r}=e;if(r.type==="ChainExpression")return e.call(()=>Vc(e,t),"expression");r.type==="ImportExpression"||r.type==="TSImportType"?(e.call(()=>t(e,0),"source"),r.options&&e.call(()=>t(e,1),"options")):r.type==="TSExternalModuleReference"?e.call(()=>t(e,0),"expression"):e.each(t,"arguments")}function o2(e,t){let r=[];if(e.type==="ChainExpression"&&(e=e.expression,r.push("expression")),e.type==="ImportExpression"||e.type==="TSImportType"){if(t===0||t===(e.options?-2:-1))return[...r,"source"];if(e.options&&(t===1||t===-1))return[...r,"options"];throw new RangeError("Invalid argument index")}else if(e.type==="TSExternalModuleReference"){if(t===0||t===-1)return[...r,"expression"]}else if(t<0&&(t=e.arguments.length+t),t>=0&&t{if(typeof e=="function"&&(t=e,e=0),e||t)return(r,n,i)=>!(e&ee.Leading&&!r.leading||e&ee.Trailing&&!r.trailing||e&ee.Dangling&&(r.leading||r.trailing)||e&ee.Block&&!Wr(r)||e&ee.Line&&!Wu(r)||e&ee.First&&n!==0||e&ee.Last&&n!==i.length-1||e&ee.PrettierIgnore&&!Na(r)||t&&!t(r))};function X(e,t,r){if(!Me(e==null?void 0:e.comments))return!1;let n=pA(t,r);return n?e.comments.some(n):!0}function ls(e,t,r){if(!Array.isArray(e==null?void 0:e.comments))return[];let n=pA(t,r);return n?e.comments.filter(n):e.comments}var yn=(e,{originalText:t})=>$0(t,de(e));function Ba(e){return be(e)||e.type==="NewExpression"||e.type==="ImportExpression"}function Oi(e){return e&&(e.type==="ObjectProperty"||e.type==="Property"&&!Ju(e))}var Or=le(["TSAsExpression","TSSatisfiesExpression","AsExpression","AsConstExpression","SatisfiesExpression"]),pn=le(["TSUnionType","UnionTypeAnnotation"]),Xu=le(["TSIntersectionType","IntersectionTypeAnnotation"]),Pi=le(["TSConditionalType","ConditionalTypeAnnotation"]),YI=e=>(e==null?void 0:e.type)==="TSAsExpression"&&e.typeAnnotation.type==="TSTypeReference"&&e.typeAnnotation.typeName.type==="Identifier"&&e.typeAnnotation.typeName.name==="const",xf=le(["TSTypeAliasDeclaration","TypeAlias"]);function hA({key:e,parent:t}){return!(e==="types"&&pn(t)||e==="types"&&Xu(t))}var ZI=new Set(["range","raw","comments","leadingComments","trailingComments","innerComments","extra","start","end","loc","flags","errors","tokens"]),Os=e=>{for(let t of e.quasis)delete t.value};function dA(e,t,r){var i;if(e.type==="Program"&&delete t.sourceType,(e.type==="BigIntLiteral"||e.type==="Literal")&&e.bigint&&(t.bigint=e.bigint.toLowerCase()),e.type==="EmptyStatement"&&!M0({node:e,parent:r})||e.type==="JSXText"||e.type==="JSXExpressionContainer"&&(e.expression.type==="Literal"||e.expression.type==="StringLiteral")&&e.expression.value===" ")return null;if((e.type==="Property"||e.type==="ObjectProperty"||e.type==="MethodDefinition"||e.type==="ClassProperty"||e.type==="ClassMethod"||e.type==="PropertyDefinition"||e.type==="TSDeclareMethod"||e.type==="TSPropertySignature"||e.type==="ObjectTypeProperty"||e.type==="ImportAttribute")&&e.key&&!e.computed){let{key:s}=e;yt(s)||cn(s)?t.key=String(s.value):s.type==="Identifier"&&(t.key=s.name)}if(e.type==="JSXElement"&&e.openingElement.name.name==="style"&&e.openingElement.attributes.some(s=>s.type==="JSXAttribute"&&s.name.name==="jsx"))for(let{type:s,expression:a}of t.children)s==="JSXExpressionContainer"&&a.type==="TemplateLiteral"&&Os(a);e.type==="JSXAttribute"&&e.name.name==="css"&&e.value.type==="JSXExpressionContainer"&&e.value.expression.type==="TemplateLiteral"&&Os(t.value.expression),e.type==="JSXAttribute"&&((i=e.value)==null?void 0:i.type)==="Literal"&&/["']|"|'/u.test(e.value.value)&&(t.value.value=dt(0,e.value.value,/["']|"|'/gu,'"'));let n=e.expression||e.callee;if(e.type==="Decorator"&&n.type==="CallExpression"&&n.callee.name==="Component"&&n.arguments.length===1){let s=e.expression.arguments[0].properties;for(let[a,o]of t.expression.arguments[0].properties.entries())switch(s[a].key.name){case"styles":At(o.value)&&Os(o.value.elements[0]);break;case"template":o.value.type==="TemplateLiteral"&&Os(o.value);break}}e.type==="TaggedTemplateExpression"&&(e.tag.type==="MemberExpression"||e.tag.type==="Identifier"&&(e.tag.name==="gql"||e.tag.name==="graphql"||e.tag.name==="css"||e.tag.name==="md"||e.tag.name==="markdown"||e.tag.name==="html")||e.tag.type==="CallExpression")&&Os(t.quasi),e.type==="TemplateLiteral"&&Os(t),e.type==="ChainExpression"&&e.expression.type==="TSNonNullExpression"&&(t.type="TSNonNullExpression",t.expression.type="ChainExpression")}dA.ignoredProperties=ZI;var e_=dA,t_=le(["File","TemplateElement","TSEmptyBodyFunctionExpression","ChainExpression"]),r_=(e,[t])=>(t==null?void 0:t.type)==="ComponentParameter"&&t.shorthand&&t.name===e&&t.local!==t.name||(t==null?void 0:t.type)==="MatchObjectPatternProperty"&&t.shorthand&&t.key===e&&t.value!==t.key||(t==null?void 0:t.type)==="ObjectProperty"&&t.shorthand&&t.key===e&&t.value!==t.key||(t==null?void 0:t.type)==="Property"&&t.shorthand&&t.key===e&&!Ju(t)&&t.value!==t.key,n_=(e,[t])=>!!(e.type==="FunctionExpression"&&t.type==="MethodDefinition"&&t.value===e&&Nt(e).length===0&&!e.returnType&&!Me(e.typeParameters)&&e.body),u2=(e,[t])=>(t==null?void 0:t.typeAnnotation)===e&&YI(t),i_=(e,[t,...r])=>u2(e,[t])||(t==null?void 0:t.typeName)===e&&u2(t,r);function s_(e,t){return t_(e)||r_(e,t)||n_(e,t)?!1:e.type==="EmptyStatement"?M0({node:e,parent:t[0]}):!(i_(e,t)||e.type==="TSTypeAnnotation"&&t[0].type==="TSPropertySignature")}var a_=s_;function o_(e){let t=e.type||e.kind||"(unknown type)",r=String(e.name||e.id&&(typeof e.id=="object"?e.id.name:e.id)||e.key&&(typeof e.key=="object"?e.key.name:e.key)||e.value&&(typeof e.value=="object"?"":String(e.value))||e.operator||"");return r.length>20&&(r=r.slice(0,19)+"…"),t+(r?" "+r:"")}function q0(e,t){(e.comments??(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=o_(e)}function tt(e,t){t.leading=!0,t.trailing=!1,q0(e,t)}function lr(e,t,r){t.leading=!1,t.trailing=!1,r&&(t.marker=r),q0(e,t)}function He(e,t){t.leading=!1,t.trailing=!0,q0(e,t)}function u_(e,t){let r=null,n=t;for(;n!==r;)r=n,n=wa(e,n),n=_0(e,n),n=L0(e,n),n=ka(e,n);return n}var za=u_;function l_(e,t){let r=za(e,t);return r===!1?"":e.charAt(r)}var qr=l_;function c_(e,t,r){for(let n=t;nWu(e)||!cr(t,me(e),de(e));function h_(e){return[AA,yA,EA,A_,y_,W0,J0,mA,gA,w_,T_,S_,K0,vA,k_,DA,CA,X0,g_,$_,bA,G0].some(t=>t(e))}function d_(e){return[m_,EA,yA,vA,W0,J0,mA,gA,CA,b_,F_,K0,B_,X0,__,L_,O_,bA,j_,M_,G0].some(t=>t(e))}function f_(e){return[AA,W0,J0,v_,DA,K0,C_,E_,X0,I_,G0].some(t=>t(e))}function bs(e,t){let r=(e.body||e.properties).find(({type:n})=>n!=="EmptyStatement");r?tt(r,t):lr(e,t)}function Ef(e,t){e.type==="BlockStatement"?bs(e,t):tt(e,t)}function m_({comment:e,followingNode:t}){return t&&fA(e)?(tt(t,e),!0):!1}function W0({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:i}){if((r==null?void 0:r.type)!=="IfStatement"||!n)return!1;if(qr(i,de(e))===")")return He(t,e),!0;if(n.type==="BlockStatement"&&n===r.consequent&&me(e)>=de(t)&&de(e)<=me(n))return tt(n,e),!0;if(t===r.consequent&&n===r.alternate){let s=za(i,de(r.consequent));if(n.type==="BlockStatement"&&me(e)>=s&&de(e)<=me(n))return tt(n,e),!0;if(me(e)"?(lr(t,e),!0):!1}function v_({comment:e,enclosingNode:t,text:r}){return qr(r,de(e))!==")"?!1:t&&(TA(t)&&Nt(t).length===0||Ba(t)&&fr(t).length===0)?(lr(t,e),!0):((t==null?void 0:t.type)==="MethodDefinition"||(t==null?void 0:t.type)==="TSAbstractMethodDefinition")&&Nt(t.value).length===0?(lr(t.value,e),!0):!1}function A_({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:i}){return(t==null?void 0:t.type)==="ComponentTypeParameter"&&((r==null?void 0:r.type)==="DeclareComponent"||(r==null?void 0:r.type)==="ComponentTypeAnnotation")&&(n==null?void 0:n.type)!=="ComponentTypeParameter"||((t==null?void 0:t.type)==="ComponentParameter"||(t==null?void 0:t.type)==="RestElement")&&(r==null?void 0:r.type)==="ComponentDeclaration"&&qr(i,de(e))===")"?(He(t,e),!0):!1}function EA({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:i}){return(t==null?void 0:t.type)==="FunctionTypeParam"&&(r==null?void 0:r.type)==="FunctionTypeAnnotation"&&(n==null?void 0:n.type)!=="FunctionTypeParam"||((t==null?void 0:t.type)==="Identifier"||(t==null?void 0:t.type)==="AssignmentPattern"||(t==null?void 0:t.type)==="ObjectPattern"||(t==null?void 0:t.type)==="ArrayPattern"||(t==null?void 0:t.type)==="RestElement"||(t==null?void 0:t.type)==="TSParameterProperty")&&TA(r)&&qr(i,de(e))===")"?(He(t,e),!0):!Wr(e)&&(n==null?void 0:n.type)==="BlockStatement"&&xA(r)&&(r.type==="MethodDefinition"?r.value.body:r.body)===n&&za(i,de(e))===me(n)?(bs(n,e),!0):!1}function CA({comment:e,enclosingNode:t}){return(t==null?void 0:t.type)==="LabeledStatement"?(tt(t,e),!0):!1}function X0({comment:e,enclosingNode:t}){return((t==null?void 0:t.type)==="ContinueStatement"||(t==null?void 0:t.type)==="BreakStatement")&&!t.label?(He(t,e),!0):!1}function b_({comment:e,precedingNode:t,enclosingNode:r}){return be(r)&&t&&r.callee===t&&r.arguments.length>0?(tt(r.arguments[0],e),!0):!1}function T_({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){return pn(r)?(Na(e)&&(n.prettierIgnore=!0,e.unignore=!0),t?(He(t,e),!0):!1):(pn(n)&&Na(e)&&(n.types[0].prettierIgnore=!0,e.unignore=!0),!1)}function S_({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){return r&&r.type==="MatchOrPattern"?(Na(e)&&(n.prettierIgnore=!0,e.unignore=!0),t?(He(t,e),!0):!1):(n&&n.type==="MatchOrPattern"&&Na(e)&&(n.types[0].prettierIgnore=!0,e.unignore=!0),!1)}function F_({comment:e,enclosingNode:t}){return Oi(t)?(tt(t,e),!0):!1}function K0({comment:e,enclosingNode:t,ast:r,isLastComment:n}){var i;return((i=r==null?void 0:r.body)==null?void 0:i.length)===0?(n?lr(r,e):tt(r,e),!0):(t==null?void 0:t.type)==="Program"&&t.body.length===0&&!Me(t.directives)?(n?lr(t,e):tt(t,e),!0):!1}function w_({comment:e,enclosingNode:t,followingNode:r}){return((t==null?void 0:t.type)==="ForInStatement"||(t==null?void 0:t.type)==="ForOfStatement")&&r!==t.body?(tt(t,e),!0):!1}function vA({comment:e,precedingNode:t,enclosingNode:r,text:n}){if((r==null?void 0:r.type)==="ImportSpecifier"||(r==null?void 0:r.type)==="ExportSpecifier")return tt(r,e),!0;let i=(t==null?void 0:t.type)==="ImportSpecifier"&&(r==null?void 0:r.type)==="ImportDeclaration",s=(t==null?void 0:t.type)==="ExportSpecifier"&&(r==null?void 0:r.type)==="ExportNamedDeclaration";return(i||s)&&Qt(n,de(e))?(He(t,e),!0):!1}function k_({comment:e,enclosingNode:t}){return(t==null?void 0:t.type)==="AssignmentPattern"?(tt(t,e),!0):!1}var P_=le(["VariableDeclarator","AssignmentExpression","TypeAlias","TSTypeAliasDeclaration"]),N_=le(["ObjectExpression","ArrayExpression","TemplateLiteral","TaggedTemplateExpression","ObjectTypeAnnotation","TSTypeLiteral"]);function B_({comment:e,enclosingNode:t,followingNode:r}){return P_(t)&&r&&(N_(r)||Wr(e))?(tt(r,e),!0):!1}function I_({comment:e,enclosingNode:t,precedingNode:r,followingNode:n,text:i}){return!n&&((t==null?void 0:t.type)==="TSMethodSignature"||(t==null?void 0:t.type)==="TSDeclareFunction"||(t==null?void 0:t.type)==="TSAbstractMethodDefinition")&&(!r||r!==t.returnType)&&qr(i,de(e))===";"?(He(t,e),!0):!1}function AA({comment:e,enclosingNode:t,followingNode:r}){if(Na(e)&&(t==null?void 0:t.type)==="TSMappedType"&&r===t.key)return t.prettierIgnore=!0,e.unignore=!0,!0}function bA({comment:e,precedingNode:t,enclosingNode:r}){if((r==null?void 0:r.type)==="TSMappedType"&&!t)return lr(r,e),!0}function __({comment:e,enclosingNode:t,followingNode:r}){return!t||t.type!=="SwitchCase"||t.test||!r||r!==t.consequent[0]?!1:(r.type==="BlockStatement"&&Wu(e)?bs(r,e):lr(t,e),!0)}function L_({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){return pn(t)&&((r.type==="TSArrayType"||r.type==="ArrayTypeAnnotation")&&!n||Xu(r))?(He(Se(0,t.types,-1),e),!0):!1}function $_({comment:e,enclosingNode:t,precedingNode:r,followingNode:n}){if(((t==null?void 0:t.type)==="ObjectPattern"||(t==null?void 0:t.type)==="ArrayPattern")&&(n==null?void 0:n.type)==="TSTypeAnnotation")return r?He(r,e):lr(t,e),!0}function O_({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:i}){return!n&&(r==null?void 0:r.type)==="UnaryExpression"&&((t==null?void 0:t.type)==="LogicalExpression"||(t==null?void 0:t.type)==="BinaryExpression")&&cr(i,me(r.argument),me(t.right))&&H0(e,i)&&!cr(i,me(t.right),me(e))?(He(t.right,e),!0):!1}function M_({enclosingNode:e,followingNode:t,comment:r}){if(e&&(e.type==="TSPropertySignature"||e.type==="ObjectTypeProperty")&&(pn(t)||Xu(t)))return tt(t,r),!0}function G0({enclosingNode:e,precedingNode:t,followingNode:r,comment:n,text:i}){if(Or(e)&&t===e.expression&&!H0(n,i))return r?tt(r,n):He(e,n),!0}function j_({comment:e,enclosingNode:t,followingNode:r,precedingNode:n}){return t&&r&&n&&t.type==="ArrowFunctionExpression"&&t.returnType===n&&(n.type==="TSTypeAnnotation"||n.type==="TypeAnnotation")?(tt(r,e),!0):!1}var TA=le(["ArrowFunctionExpression","FunctionExpression","FunctionDeclaration","ObjectMethod","ClassMethod","TSDeclareFunction","TSCallSignatureDeclaration","TSConstructSignatureDeclaration","TSMethodSignature","TSConstructorType","TSFunctionType","TSDeclareMethod"]),R_={endOfLine:d_,ownLine:h_,remaining:f_},U_=R_;function V_(e,{parser:t}){if(t==="flow"||t==="hermes"||t==="babel-flow")return e=dt(0,e,/[\s(]/gu,""),e===""||e==="/*"||e==="/*::"}var z_=V_,q_=le(["ClassDeclaration","ClassExpression","DeclareClass","DeclareInterface","InterfaceDeclaration","TSInterfaceDeclaration"]);function H_(e){let{key:t,parent:r}=e;if(t==="types"&&pn(r)||t==="argument"&&r.type==="JSXSpreadAttribute"||t==="expression"&&r.type==="JSXSpreadChild"||t==="superClass"&&(r.type==="ClassDeclaration"||r.type==="ClassExpression")||(t==="id"||t==="typeParameters")&&q_(r)||t==="patterns"&&r.type==="MatchOrPattern")return!0;let{node:n}=e;return wp(n)?!1:pn(n)?hA(e):!!mt(n)}var W_=H_,Ts="string",On="array",qa="cursor",Ss="indent",Fs="align",ws="trim",Fr="group",Mi="fill",un="if-break",ks="indent-if-break",Ps="line-suffix",ji="line-suffix-boundary",er="line",Xn="label",Kn="break-parent",SA=new Set([qa,Ss,Fs,ws,Fr,Mi,un,ks,Ps,ji,er,Xn,Kn]);function J_(e){if(typeof e=="string")return Ts;if(Array.isArray(e))return On;if(!e)return;let{type:t}=e;if(SA.has(t))return t}var Ri=J_,X_=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function K_(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}', +Expected it to be 'string' or 'object'.`;if(Ri(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=X_([...SA].map(i=>`'${i}'`));return`Unexpected doc.type '${e.type}'. +Expected it to be ${n}.`}var G_=class extends Error{constructor(r){super(K_(r));H(this,"name","InvalidDocError");this.doc=r}},Tu=G_,l2={};function Q_(e,t,r,n){let i=[e];for(;i.length>0;){let s=i.pop();if(s===l2){r(i.pop());continue}r&&i.push(s,l2);let a=Ri(s);if(!a)throw new Tu(s);if((t==null?void 0:t(s))!==!1)switch(a){case On:case Mi:{let o=a===On?s:s.parts;for(let u=o.length,l=u-1;l>=0;--l)i.push(o[l]);break}case un:i.push(s.flatContents,s.breakContents);break;case Fr:if(n&&s.expandedStates)for(let o=s.expandedStates.length,u=o-1;u>=0;--u)i.push(s.expandedStates[u]);else i.push(s.contents);break;case Fs:case Ss:case ks:case Xn:case Ps:i.push(s.contents);break;case Ts:case qa:case ws:case ji:case er:case Kn:break;default:throw new Tu(s)}}}var Q0=Q_;function Ha(e,t){if(typeof e=="string")return t(e);let r=new Map;return n(e);function n(s){if(r.has(s))return r.get(s);let a=i(s);return r.set(s,a),a}function i(s){switch(Ri(s)){case On:return t(s.map(n));case Mi:return t({...s,parts:s.parts.map(n)});case un:return t({...s,breakContents:n(s.breakContents),flatContents:n(s.flatContents)});case Fr:{let{expandedStates:a,contents:o}=s;return a?(a=a.map(n),o=a[0]):o=n(o),t({...s,contents:o,expandedStates:a})}case Fs:case Ss:case ks:case Xn:case Ps:return t({...s,contents:n(s.contents)});case Ts:case qa:case ws:case ji:case er:case Kn:return t(s);default:throw new Tu(s)}}}function FA(e,t,r){let n=r,i=!1;function s(a){if(i)return!1;let o=t(a);o!==void 0&&(i=!0,n=o)}return Q0(e,s),n}function Y_(e){if(e.type===Fr&&e.break||e.type===er&&e.hard||e.type===Kn)return!0}function $t(e){return FA(e,Y_,!1)}function c2(e){if(e.length>0){let t=Se(0,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function Z_(e){let t=new Set,r=[];function n(s){if(s.type===Kn&&c2(r),s.type===Fr){if(r.push(s),t.has(s))return!1;t.add(s)}}function i(s){s.type===Fr&&r.pop().break&&c2(r)}Q0(e,n,i,!0)}function e7(e){return e.type===er&&!e.hard?e.soft?"":" ":e.type===un?e.flatContents:e}function zc(e){return Ha(e,e7)}function t7(e){switch(Ri(e)){case Mi:if(e.parts.every(t=>t===""))return"";break;case Fr:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===Fr&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case Fs:case Ss:case ks:case Ps:if(!e.contents)return"";break;case un:if(!e.flatContents&&!e.breakContents)return"";break;case On:{let t=[];for(let r of e){if(!r)continue;let[n,...i]=Array.isArray(r)?r:[r];typeof n=="string"&&typeof Se(0,t,-1)=="string"?t[t.length-1]+=n:t.push(n),t.push(...i)}return t.length===0?"":t.length===1?t[0]:t}case Ts:case qa:case ws:case ji:case er:case Xn:case Kn:break;default:throw new Tu(e)}return e}function Y0(e){return Ha(e,t=>t7(t))}function ys(e,t=NA){return Ha(e,r=>typeof r=="string"?ge(t,r.split(` +`)):r)}function r7(e){if(e.type===er)return!0}function n7(e){return FA(e,r7,!1)}function Cf(e,t){return e.type===Xn?{...e,contents:t(e.contents)}:t(e)}function i7(e){let t=!0;return Q0(e,r=>{switch(Ri(r)){case Ts:if(r==="")break;case ws:case ji:case er:case Kn:return t=!1,!1}}),t}var s7=cI;function R(e){return{type:Ss,contents:e}}function Hr(e,t){return{type:Fs,contents:t,n:e}}function a7(e){return Hr(Number.NEGATIVE_INFINITY,e)}function wA(e){return Hr(-1,e)}function o7(e,t,r){let n=e;if(t>0){for(let i=0;i0&&u(a),d()}function h(){o>0&&l(o),d()}function d(){a=0,o=0}}function D7(e,t,r){if(!t)return e;if(t.type==="root")return{...e,root:e};if(t===Number.NEGATIVE_INFINITY)return e.root;let n;return typeof t=="number"?t<0?n=g7:n={type:2,width:t}:n={type:3,string:t},IA(e,n,r)}function x7(e,t){return IA(e,y7,t)}function E7(e){let t=0;for(let r=e.length-1;r>=0;r--){let n=e[r];if(n===" "||n===" ")t++;else break}return t}function _A(e){let t=E7(e);return{text:t===0?e:e.slice(0,e.length-t),count:t}}var Ht=Symbol("MODE_BREAK"),Yr=Symbol("MODE_FLAT"),vf=Symbol("DOC_FILL_PRINTED_LENGTH");function Il(e,t,r,n,i,s){if(r===Number.POSITIVE_INFINITY)return!0;let a=t.length,o=!1,u=[e],l="";for(;r>=0;){if(u.length===0){if(a===0)return!0;u.push(t[--a]);continue}let{mode:c,doc:p}=u.pop(),h=Ri(p);switch(h){case Ts:p&&(o&&(l+=" ",r-=1,o=!1),l+=p,r-=Fa(p));break;case On:case Mi:{let d=h===On?p:p.parts,f=p[vf]??0;for(let y=d.length-1;y>=f;y--)u.push({mode:c,doc:d[y]});break}case Ss:case Fs:case ks:case Xn:u.push({mode:c,doc:p.contents});break;case ws:{let{text:d,count:f}=_A(l);l=d,r+=f;break}case Fr:{if(s&&p.break)return!1;let d=p.break?Ht:c,f=p.expandedStates&&d===Ht?Se(0,p.expandedStates,-1):p.contents;u.push({mode:d,doc:f});break}case un:{let d=(p.groupId?i[p.groupId]||Yr:c)===Ht?p.breakContents:p.flatContents;d&&u.push({mode:c,doc:d});break}case er:if(c===Ht||p.hard)return!0;p.soft||(o=!0);break;case Ps:n=!0;break;case ji:if(n)return!1;break}}return!1}function LA(e,t){let r=Object.create(null),n=t.printWidth,i=m7(t.endOfLine),s=0,a=[{indent:BA,mode:Ht,doc:e}],o="",u=!1,l=[],c=[],p=[],h=[],d=0;for(Z_(e);a.length>0;){let{indent:m,mode:x,doc:v}=a.pop();switch(Ri(v)){case Ts:{let T=i!==` `?dt(0,v,` -`,i):v;b&&(o+=b,a.length>0&&(s+=Aa(b)));break}case $n:for(let b=v.length-1;b>=0;b--)a.push({indent:m,mode:D,doc:v[b]});break;case Ra:if(c.length>=2)throw new Error("There are too many 'cursor' in doc.");c.push(d+o.length);break;case Ts:a.push({indent:H5(m,t),mode:D,doc:v.contents});break;case Ss:a.push({indent:q5(m,v.n,t),mode:D,doc:v.contents});break;case Fs:g();break;case br:switch(D){case Qr:if(!u){a.push({indent:m,mode:v.break?Ht:Qr,doc:v.contents});break}case Ht:{u=!1;let b={indent:m,mode:Qr,doc:v.contents},P=n-s,N=l.length>0;if(!v.break&&Fl(b,a,P,N,r))a.push(b);else if(v.expandedStates){let E=Se(0,v.expandedStates,-1);if(v.break){a.push({indent:m,mode:Ht,doc:E});break}else for(let A=1;A=v.expandedStates.length){a.push({indent:m,mode:Ht,doc:E});break}else{let T=v.expandedStates[A],B={indent:m,mode:Qr,doc:T};if(Fl(B,a,P,N,r)){a.push(B);break}}}else a.push({indent:m,mode:Ht,doc:v.contents});break}}v.id&&(r[v.id]=Se(0,a,-1).mode);break;case $i:{let b=n-s,P=v[hf]??0,{parts:N}=v,E=N.length-P;if(E===0)break;let A=N[P+0],T=N[P+1],B={indent:m,mode:Qr,doc:A},M={indent:m,mode:Ht,doc:A},k=Fl(B,[],b,l.length>0,r,!0);if(E===1){k?a.push(B):a.push(M);break}let J={indent:m,mode:Qr,doc:T},K={indent:m,mode:Ht,doc:T};if(E===2){k?a.push(J,B):a.push(K,M);break}let ne=N[P+2],Z={indent:m,mode:D,doc:{...v,[hf]:P+2}},$=Fl({indent:m,mode:Qr,doc:[A,T,ne]},[],b,l.length>0,r,!0);a.push(Z),$?a.push(J,B):k?a.push(K,B):a.push(K,M);break}case on:case bs:{let b=v.groupId?r[v.groupId]:D;if(b===Ht){let P=v.type===on?v.breakContents:v.negate?v.contents:R(v.contents);P&&a.push({indent:m,mode:D,doc:P})}if(b===Qr){let P=v.type===on?v.flatContents:v.negate?R(v.contents):v.contents;P&&a.push({indent:m,mode:D,doc:P})}break}case ws:l.push({indent:m,mode:D,doc:v.contents});break;case Oi:l.length>0&&a.push({indent:m,mode:D,doc:hA});break;case er:switch(D){case Qr:if(v.hard)u=!0;else{v.soft||(o+=" ",s+=1);break}case Ht:if(l.length>0){a.push({indent:m,mode:D,doc:v},...l.reverse()),l.length=0;break}v.literal?(o+=i,s=0,m.root&&(m.root.value&&(o+=m.root.value),s=m.root.length)):(g(),o+=i+m.value,s=m.length);break}break;case Jn:a.push({indent:m,mode:D,doc:v.contents});break;case Xn:break;default:throw new xu(v)}a.length===0&&l.length>0&&(a.push(...l.reverse()),l.length=0)}let f=p.join("")+o,y=[...h,...c];if(y.length!==2)return{formatted:f};let x=y[0];return{formatted:f,cursorNodeStart:x,cursorNodeText:f.slice(x,Se(0,y,-1))};function g(){let{text:m,count:D}=yA(o);m&&(p.push(m),d+=m.length),o="",s-=D,c.length>0&&(h.push(...c.map(v=>Math.min(v,d))),c.length=0)}}function J5(e,t,r=0){let n=0;for(let i=r;i{if(s.push(r()),l.tail)return;let{tabWidth:c}=t,p=l.value.raw,h=p.includes(` -`)?G5(p,c):o;o=h;let d=a[u],f=n[i][u],y=cr(t.originalText,de(l),me(n.quasis[u+1]));if(!y){let g=gA(d,{...t,printWidth:Number.POSITIVE_INFINITY}).formatted;g.includes(` -`)?y=!0:d=g}y&&(X(f)||f.type==="Identifier"||Oe(f)||f.type==="ConditionalExpression"||f.type==="SequenceExpression"||$r(f)||Ln(f))&&(d=[R([j,d]),j]);let x=h===0&&p.endsWith(` -`)?zr(Number.NEGATIVE_INFINITY,d):I5(d,h,c);s.push(I(["${",x,pn,"}"]))},"quasis"),s.push("`"),s}function Q5(e,t,r){let n=r("quasi"),{node:i}=e,s="",a=os(i.quasi,ee.Leading)[0];return a&&(cr(t.originalText,de(i.typeArguments??i.tag),me(a))?s=j:s=" "),Vu(n.label&&{tagged:!0,...n.label},[r("tag"),r("typeArguments"),s,pn,n])}function Y5(e,t,r){let{node:n}=e,i=n.quasis[0].value.raw.trim().split(/\s*\|\s*/u);if(i.length>1||i.some(s=>s.length>0)){t.__inJestEach=!0;let s=e.map(r,"expressions");t.__inJestEach=!1;let a=s.map(p=>"${"+gA(p,{...t,printWidth:Number.POSITIVE_INFINITY,endOfLine:"lf"}).formatted+"}"),o=[{hasLineBreak:!1,cells:[]}];for(let p=1;p0&&(s+=Fa(T)));break}case On:for(let T=v.length-1;T>=0;T--)a.push({indent:m,mode:x,doc:v[T]});break;case qa:if(c.length>=2)throw new Error("There are too many 'cursor' in doc.");c.push(d+o.length);break;case Ss:a.push({indent:x7(m,t),mode:x,doc:v.contents});break;case Fs:a.push({indent:D7(m,v.n,t),mode:x,doc:v.contents});break;case ws:g();break;case Fr:switch(x){case Yr:if(!u){a.push({indent:m,mode:v.break?Ht:Yr,doc:v.contents});break}case Ht:{u=!1;let T={indent:m,mode:Yr,doc:v.contents},k=n-s,N=l.length>0;if(!v.break&&Il(T,a,k,N,r))a.push(T);else if(v.expandedStates){let E=Se(0,v.expandedStates,-1);if(v.break){a.push({indent:m,mode:Ht,doc:E});break}else for(let A=1;A=v.expandedStates.length){a.push({indent:m,mode:Ht,doc:E});break}else{let b=v.expandedStates[A],B={indent:m,mode:Yr,doc:b};if(Il(B,a,k,N,r)){a.push(B);break}}}else a.push({indent:m,mode:Ht,doc:v.contents});break}}v.id&&(r[v.id]=Se(0,a,-1).mode);break;case Mi:{let T=n-s,k=v[vf]??0,{parts:N}=v,E=N.length-k;if(E===0)break;let A=N[k+0],b=N[k+1],B={indent:m,mode:Yr,doc:A},M={indent:m,mode:Ht,doc:A},P=Il(B,[],T,l.length>0,r,!0);if(E===1){P?a.push(B):a.push(M);break}let J={indent:m,mode:Yr,doc:b},K={indent:m,mode:Ht,doc:b};if(E===2){P?a.push(J,B):a.push(K,M);break}let ne=N[k+2],Z={indent:m,mode:x,doc:{...v,[vf]:k+2}},$=Il({indent:m,mode:Yr,doc:[A,b,ne]},[],T,l.length>0,r,!0);a.push(Z),$?a.push(J,B):P?a.push(K,B):a.push(K,M);break}case un:case ks:{let T=v.groupId?r[v.groupId]:x;if(T===Ht){let k=v.type===un?v.breakContents:v.negate?v.contents:R(v.contents);k&&a.push({indent:m,mode:x,doc:k})}if(T===Yr){let k=v.type===un?v.flatContents:v.negate?R(v.contents):v.contents;k&&a.push({indent:m,mode:x,doc:k})}break}case Ps:l.push({indent:m,mode:x,doc:v.contents});break;case ji:l.length>0&&a.push({indent:m,mode:x,doc:PA});break;case er:switch(x){case Yr:if(v.hard)u=!0;else{v.soft||(o+=" ",s+=1);break}case Ht:if(l.length>0){a.push({indent:m,mode:x,doc:v},...l.reverse()),l.length=0;break}v.literal?(o+=i,s=0,m.root&&(m.root.value&&(o+=m.root.value),s=m.root.length)):(g(),o+=i+m.value,s=m.length);break}break;case Xn:a.push({indent:m,mode:x,doc:v.contents});break;case Kn:break;default:throw new Tu(v)}a.length===0&&l.length>0&&(a.push(...l.reverse()),l.length=0)}let f=p.join("")+o,y=[...h,...c];if(y.length!==2)return{formatted:f};let C=y[0];return{formatted:f,cursorNodeStart:C,cursorNodeText:f.slice(C,Se(0,y,-1))};function g(){let{text:m,count:x}=_A(o);m&&(p.push(m),d+=m.length),o="",s-=x,c.length>0&&(h.push(...c.map(v=>Math.min(v,d))),c.length=0)}}function C7(e,t,r=0){let n=0;for(let i=r;i{if(s.push(r()),l.tail)return;let{tabWidth:c}=t,p=l.value.raw,h=p.includes(` +`)?b7(p,c):o;o=h;let d=a[u],f=n[i][u],y=cr(t.originalText,de(l),me(n.quasis[u+1]));if(!y){let g=LA(d,{...t,printWidth:Number.POSITIVE_INFINITY}).formatted;g.includes(` +`)?y=!0:d=g}y&&(X(f)||f.type==="Identifier"||Oe(f)||f.type==="ConditionalExpression"||f.type==="SequenceExpression"||Or(f)||$n(f))&&(d=[R([j,d]),j]);let C=h===0&&p.endsWith(` +`)?Hr(Number.NEGATIVE_INFINITY,d):o7(d,h,c);s.push(_(["${",C,hn,"}"]))},"quasis"),s.push("`"),s}function T7(e,t,r){let n=r("quasi"),{node:i}=e,s="",a=ls(i.quasi,ee.Leading)[0];return a&&(cr(t.originalText,de(i.typeArguments??i.tag),me(a))?s=j:s=" "),Ku(n.label&&{tagged:!0,...n.label},[r("tag"),r("typeArguments"),s,hn,n])}function S7(e,t,r){let{node:n}=e,i=n.quasis[0].value.raw.trim().split(/\s*\|\s*/u);if(i.length>1||i.some(s=>s.length>0)){t.__inJestEach=!0;let s=e.map(r,"expressions");t.__inJestEach=!1;let a=s.map(p=>"${"+LA(p,{...t,printWidth:Number.POSITIVE_INFINITY,endOfLine:"lf"}).formatted+"}"),o=[{hasLineBreak:!1,cells:[]}];for(let p=1;pp.cells.length)),l=Array.from({length:u}).fill(0),c=[{cells:i},...o.filter(p=>p.cells.length>0)];for(let{cells:p}of c.filter(h=>!h.hasLineBreak))for(let[h,d]of p.entries())l[h]=Math.max(l[h],Aa(d));return[pn,"`",R([U,ge(U,c.map(p=>ge(" | ",p.cells.map((h,d)=>p.hasLineBreak?h:h+" ".repeat(l[d]-Aa(h))))))]),U,"`"]}}function Z5(e,t){let{node:r}=e,n=t();return X(r)&&(n=I([R([j,n]),j])),["${",n,pn,"}"]}function Ry(e,t){return e.map(()=>Z5(e,t),"expressions")}function EA(e,t){return Ua(e,r=>typeof r=="string"?t?dt(0,r,/(\\*)`/gu,"$1$1\\`"):xA(r):r)}function xA(e){return dt(0,e,/([\\`]|\$\{)/gu,"\\$1")}function eL({node:e,parent:t}){let r=/^[fx]?(?:describe|it|test)$/u;return t.type==="TaggedTemplateExpression"&&t.quasi===e&&t.tag.type==="MemberExpression"&&t.tag.property.type==="Identifier"&&t.tag.property.name==="each"&&(t.tag.object.type==="Identifier"&&r.test(t.tag.object.name)||t.tag.object.type==="MemberExpression"&&t.tag.object.property.type==="Identifier"&&(t.tag.object.property.name==="only"||t.tag.object.property.name==="skip")&&t.tag.object.object.type==="Identifier"&&r.test(t.tag.object.object.name))}var df=[(e,t)=>e.type==="ObjectExpression"&&t==="properties",(e,t)=>e.type==="CallExpression"&&e.callee.type==="Identifier"&&e.callee.name==="Component"&&t==="arguments",(e,t)=>e.type==="Decorator"&&t==="expression"];function tL(e){let t=n=>n.type==="TemplateLiteral",r=(n,i)=>Li(n)&&!n.computed&&n.key.type==="Identifier"&&n.key.name==="styles"&&i==="value";return e.match(t,(n,i)=>At(n)&&i==="elements",r,...df)||e.match(t,r,...df)}function rL(e){return e.match(t=>t.type==="TemplateLiteral",(t,r)=>Li(t)&&!t.computed&&t.key.type==="Identifier"&&t.key.name==="template"&&r==="value",...df)}function Ih(e,t){return X(e,ee.Block|ee.Leading,({value:r})=>r===` ${t} `)}function CA({node:e,parent:t},r){return Ih(e,r)||nL(t)&&Ih(t,r)||t.type==="ExpressionStatement"&&Ih(t,r)}function nL(e){return e.type==="AsConstExpression"||e.type==="TSAsExpression"&&e.typeAnnotation.type==="TSTypeReference"&&e.typeAnnotation.typeName.type==="Identifier"&&e.typeAnnotation.typeName.name==="const"}async function iL(e,t,r){let{node:n}=r,i="";for(let[u,l]of n.quasis.entries()){let{raw:c}=l.value;u>0&&(i+="@prettier-placeholder-"+(u-1)+"-id"),i+=c}let s=await e(i,{parser:"scss"}),a=Ry(r,t),o=sL(s,a);if(!o)throw new Error("Couldn't insert all the expressions");return["`",R([U,o]),j,"`"]}function sL(e,t){if(!Me(t))return e;let r=0,n=Ua(jy(e),i=>typeof i!="string"||!i.includes("@prettier-placeholder")?i:i.split(/@prettier-placeholder-(\d+)-id/u).map((s,a)=>a%2===0?fs(s):(r++,t[s])));return t.length===r?n:null}function aL(e){return e.match(void 0,(t,r)=>r==="quasi"&&t.type==="TaggedTemplateExpression"&&Ty(t.tag,["css","css.global","css.resolve"]))||e.match(void 0,(t,r)=>r==="expression"&&t.type==="JSXExpressionContainer",(t,r)=>r==="children"&&t.type==="JSXElement"&&t.openingElement.name.type==="JSXIdentifier"&&t.openingElement.name.name==="style"&&t.openingElement.attributes.some(n=>n.type==="JSXAttribute"&&n.name.type==="JSXIdentifier"&&n.name.name==="jsx"))}function bl(e){return e.type==="Identifier"&&e.name==="styled"}function Q1(e){return/^[A-Z]/u.test(e.object.name)&&e.property.name==="extend"}function oL({parent:e}){if(!e||e.type!=="TaggedTemplateExpression")return!1;let t=e.tag.type==="ParenthesizedExpression"?e.tag.expression:e.tag;switch(t.type){case"MemberExpression":return bl(t.object)||Q1(t);case"CallExpression":return bl(t.callee)||t.callee.type==="MemberExpression"&&(t.callee.object.type==="MemberExpression"&&(bl(t.callee.object.object)||Q1(t.callee.object))||t.callee.object.type==="CallExpression"&&bl(t.callee.object.callee));case"Identifier":return t.name==="css";default:return!1}}function uL({parent:e,grandparent:t}){return(t==null?void 0:t.type)==="JSXAttribute"&&e.type==="JSXExpressionContainer"&&t.name.type==="JSXIdentifier"&&t.name.name==="css"}var lL=e=>aL(e)||oL(e)||uL(e)||tL(e);async function cL(e,t,r){let{node:n}=r,i=n.quasis.length,s=Ry(r,t),a=[];for(let o=0;o2&&h[0].trim()===""&&h[1].trim()==="",x=d>2&&h[d-1].trim()===""&&h[d-2].trim()==="",g=h.every(D=>/^\s*(?:#[^\n\r]*)?$/u.test(D));if(!c&&/#[^\n\r]*$/u.test(h[d-1]))return null;let m=null;g?m=pL(h):m=await e(p,{parser:"graphql"}),m?(m=EA(m,!1),!l&&y&&a.push(""),a.push(m),!c&&x&&a.push("")):!l&&!c&&y&&a.push(""),f&&a.push(f)}return["`",R([U,ge(U,a)]),U,"`"]}function pL(e){let t=[],r=!1,n=e.map(i=>i.trim());for(let[i,s]of n.entries())s!==""&&(n[i-1]===""&&r?t.push([U,s]):t.push(s),r=!0);return t.length===0?null:ge(U,t)}function hL({node:e,parent:t}){return CA({node:e,parent:t},"GraphQL")||t&&(t.type==="TaggedTemplateExpression"&&(t.tag.type==="MemberExpression"&&t.tag.object.name==="graphql"&&t.tag.property.name==="experimental"||t.tag.type==="Identifier"&&(t.tag.name==="gql"||t.tag.name==="graphql"))||t.type==="CallExpression"&&t.callee.type==="Identifier"&&t.callee.name==="graphql")}var _h=0;async function vA(e,t,r,n,i){let{node:s}=n,a=_h;_h=_h+1>>>0;let o=g=>`PRETTIER_HTML_PLACEHOLDER_${g}_${a}_IN_JS`,u=s.quasis.map((g,m,D)=>m===D.length-1?g.value.cooked:g.value.cooked+o(m)).join(""),l=Ry(n,r),c=new RegExp(o("(\\d+)"),"gu"),p=0,h=await t(u,{parser:e,__onHtmlRoot(g){p=g.children.length}}),d=Ua(h,g=>{if(typeof g!="string")return g;let m=[],D=g.split(c);for(let v=0;v1?R(I(d)):I(d),y,"`"]))}function dL(e){return CA(e,"HTML")||e.match(t=>t.type==="TemplateLiteral",(t,r)=>t.type==="TaggedTemplateExpression"&&t.tag.type==="Identifier"&&t.tag.name==="html"&&r==="quasi")}var fL=vA.bind(void 0,"html"),mL=vA.bind(void 0,"angular");async function yL(e,t,r){let{node:n}=r,i=dt(0,n.quasis[0].value.raw,/((?:\\\\)*)\\`/gu,(u,l)=>"\\".repeat(l.length/2)+"`"),s=gL(i),a=s!=="";a&&(i=dt(0,i,new RegExp(`^${s}`,"gmu"),""));let o=EA(await e(i,{parser:"markdown",__inJsTemplate:!0}),!0);return["`",a?R([j,o]):[dA,B5(o)],j,"`"]}function gL(e){let t=e.match(/^([^\S\n]*)\S/mu);return t===null?"":t[1]}function DL({node:e,parent:t}){return(t==null?void 0:t.type)==="TaggedTemplateExpression"&&e.quasis.length===1&&t.tag.type==="Identifier"&&(t.tag.name==="md"||t.tag.name==="markdown")}var EL=[{test:lL,print:iL},{test:hL,print:cL},{test:dL,print:fL},{test:rL,print:mL},{test:DL,print:yL}].map(({test:e,print:t})=>({test:e,print:CL(t)}));function xL(e){let{node:t}=e;if(t.type!=="TemplateLiteral"||vL(t))return;let r=EL.find(({test:n})=>n(e));if(r)return t.quasis.length===1&&t.quasis[0].value.raw.trim()===""?"``":r.print}function CL(e){return async(...t)=>{let r=await e(...t);return r&&Vu({embed:!0,...r.label},r)}}function vL({quasis:e}){return e.some(({value:{cooked:t}})=>t===null)}var AL=xL,TL=/\*\/$/,SL=/^\/\*\*?/,AA=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,FL=/(^|\s+)\/\/([^\n\r]*)/g,Y1=/^(\r?\n)+/,bL=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,Z1=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,wL=/(\r?\n|^) *\* ?/g,TA=[];function PL(e){let t=e.match(AA);return t?t[0].trimStart():""}function kL(e){var r;let t=(r=e.match(AA))==null?void 0:r[0];return t==null?e:e.slice(t.length)}function NL(e){e=dt(0,e.replace(SL,"").replace(TL,""),wL,"$1");let t="";for(;t!==e;)t=e,e=dt(0,e,bL,` +`)&&o.push({hasLineBreak:!1,cells:[]})}let u=Math.max(i.length,...o.map(p=>p.cells.length)),l=Array.from({length:u}).fill(0),c=[{cells:i},...o.filter(p=>p.cells.length>0)];for(let{cells:p}of c.filter(h=>!h.hasLineBreak))for(let[h,d]of p.entries())l[h]=Math.max(l[h],Fa(d));return[hn,"`",R([U,ge(U,c.map(p=>ge(" | ",p.cells.map((h,d)=>p.hasLineBreak?h:h+" ".repeat(l[d]-Fa(h))))))]),U,"`"]}}function F7(e,t){let{node:r}=e,n=t();return X(r)&&(n=_([R([j,n]),j])),["${",n,hn,"}"]}function Z0(e,t){return e.map(()=>F7(e,t),"expressions")}function OA(e,t){return Ha(e,r=>typeof r=="string"?t?dt(0,r,/(\\*)`/gu,"$1$1\\`"):MA(r):r)}function MA(e){return dt(0,e,/([\\`]|\$\{)/gu,"\\$1")}function w7({node:e,parent:t}){let r=/^[fx]?(?:describe|it|test)$/u;return t.type==="TaggedTemplateExpression"&&t.quasi===e&&t.tag.type==="MemberExpression"&&t.tag.property.type==="Identifier"&&t.tag.property.name==="each"&&(t.tag.object.type==="Identifier"&&r.test(t.tag.object.name)||t.tag.object.type==="MemberExpression"&&t.tag.object.property.type==="Identifier"&&(t.tag.object.property.name==="only"||t.tag.object.property.name==="skip")&&t.tag.object.object.type==="Identifier"&&r.test(t.tag.object.object.name))}var Af=[(e,t)=>e.type==="ObjectExpression"&&t==="properties",(e,t)=>e.type==="CallExpression"&&e.callee.type==="Identifier"&&e.callee.name==="Component"&&t==="arguments",(e,t)=>e.type==="Decorator"&&t==="expression"];function k7(e){let t=n=>n.type==="TemplateLiteral",r=(n,i)=>Oi(n)&&!n.computed&&n.key.type==="Identifier"&&n.key.name==="styles"&&i==="value";return e.match(t,(n,i)=>At(n)&&i==="elements",r,...Af)||e.match(t,r,...Af)}function P7(e){return e.match(t=>t.type==="TemplateLiteral",(t,r)=>Oi(t)&&!t.computed&&t.key.type==="Identifier"&&t.key.name==="template"&&r==="value",...Af)}function Vh(e,t){return X(e,ee.Block|ee.Leading,({value:r})=>r===` ${t} `)}function jA({node:e,parent:t},r){return Vh(e,r)||N7(t)&&Vh(t,r)||t.type==="ExpressionStatement"&&Vh(t,r)}function N7(e){return e.type==="AsConstExpression"||e.type==="TSAsExpression"&&e.typeAnnotation.type==="TSTypeReference"&&e.typeAnnotation.typeName.type==="Identifier"&&e.typeAnnotation.typeName.name==="const"}async function B7(e,t,r){let{node:n}=r,i="";for(let[u,l]of n.quasis.entries()){let{raw:c}=l.value;u>0&&(i+="@prettier-placeholder-"+(u-1)+"-id"),i+=c}let s=await e(i,{parser:"scss"}),a=Z0(r,t),o=I7(s,a);if(!o)throw new Error("Couldn't insert all the expressions");return["`",R([U,o]),j,"`"]}function I7(e,t){if(!Me(t))return e;let r=0,n=Ha(Y0(e),i=>typeof i!="string"||!i.includes("@prettier-placeholder")?i:i.split(/@prettier-placeholder-(\d+)-id/u).map((s,a)=>a%2===0?ys(s):(r++,t[s])));return t.length===r?n:null}function _7(e){return e.match(void 0,(t,r)=>r==="quasi"&&t.type==="TaggedTemplateExpression"&&O0(t.tag,["css","css.global","css.resolve"]))||e.match(void 0,(t,r)=>r==="expression"&&t.type==="JSXExpressionContainer",(t,r)=>r==="children"&&t.type==="JSXElement"&&t.openingElement.name.type==="JSXIdentifier"&&t.openingElement.name.name==="style"&&t.openingElement.attributes.some(n=>n.type==="JSXAttribute"&&n.name.type==="JSXIdentifier"&&n.name.name==="jsx"))}function _l(e){return e.type==="Identifier"&&e.name==="styled"}function h2(e){return/^[A-Z]/u.test(e.object.name)&&e.property.name==="extend"}function L7({parent:e}){if(!e||e.type!=="TaggedTemplateExpression")return!1;let t=e.tag.type==="ParenthesizedExpression"?e.tag.expression:e.tag;switch(t.type){case"MemberExpression":return _l(t.object)||h2(t);case"CallExpression":return _l(t.callee)||t.callee.type==="MemberExpression"&&(t.callee.object.type==="MemberExpression"&&(_l(t.callee.object.object)||h2(t.callee.object))||t.callee.object.type==="CallExpression"&&_l(t.callee.object.callee));case"Identifier":return t.name==="css";default:return!1}}function $7({parent:e,grandparent:t}){return(t==null?void 0:t.type)==="JSXAttribute"&&e.type==="JSXExpressionContainer"&&t.name.type==="JSXIdentifier"&&t.name.name==="css"}var O7=e=>_7(e)||L7(e)||$7(e)||k7(e);async function M7(e,t,r){let{node:n}=r,i=n.quasis.length,s=Z0(r,t),a=[];for(let o=0;o2&&h[0].trim()===""&&h[1].trim()==="",C=d>2&&h[d-1].trim()===""&&h[d-2].trim()==="",g=h.every(x=>/^\s*(?:#[^\n\r]*)?$/u.test(x));if(!c&&/#[^\n\r]*$/u.test(h[d-1]))return null;let m=null;g?m=j7(h):m=await e(p,{parser:"graphql"}),m?(m=OA(m,!1),!l&&y&&a.push(""),a.push(m),!c&&C&&a.push("")):!l&&!c&&y&&a.push(""),f&&a.push(f)}return["`",R([U,ge(U,a)]),U,"`"]}function j7(e){let t=[],r=!1,n=e.map(i=>i.trim());for(let[i,s]of n.entries())s!==""&&(n[i-1]===""&&r?t.push([U,s]):t.push(s),r=!0);return t.length===0?null:ge(U,t)}function R7({node:e,parent:t}){return jA({node:e,parent:t},"GraphQL")||t&&(t.type==="TaggedTemplateExpression"&&(t.tag.type==="MemberExpression"&&t.tag.object.name==="graphql"&&t.tag.property.name==="experimental"||t.tag.type==="Identifier"&&(t.tag.name==="gql"||t.tag.name==="graphql"))||t.type==="CallExpression"&&t.callee.type==="Identifier"&&t.callee.name==="graphql")}var zh=0;async function RA(e,t,r,n,i){let{node:s}=n,a=zh;zh=zh+1>>>0;let o=g=>`PRETTIER_HTML_PLACEHOLDER_${g}_${a}_IN_JS`,u=s.quasis.map((g,m,x)=>m===x.length-1?g.value.cooked:g.value.cooked+o(m)).join(""),l=Z0(n,r),c=new RegExp(o("(\\d+)"),"gu"),p=0,h=await t(u,{parser:e,__onHtmlRoot(g){p=g.children.length}}),d=Ha(h,g=>{if(typeof g!="string")return g;let m=[],x=g.split(c);for(let v=0;v1?R(_(d)):_(d),y,"`"]))}function U7(e){return jA(e,"HTML")||e.match(t=>t.type==="TemplateLiteral",(t,r)=>t.type==="TaggedTemplateExpression"&&t.tag.type==="Identifier"&&t.tag.name==="html"&&r==="quasi")}var V7=RA.bind(void 0,"html"),z7=RA.bind(void 0,"angular");async function q7(e,t,r){let{node:n}=r,i=dt(0,n.quasis[0].value.raw,/((?:\\\\)*)\\`/gu,(u,l)=>"\\".repeat(l.length/2)+"`"),s=H7(i),a=s!=="";a&&(i=dt(0,i,new RegExp(`^${s}`,"gmu"),""));let o=OA(await e(i,{parser:"markdown",__inJsTemplate:!0}),!0);return["`",a?R([j,o]):[NA,a7(o)],j,"`"]}function H7(e){let t=e.match(/^([^\S\n]*)\S/mu);return t===null?"":t[1]}function W7({node:e,parent:t}){return(t==null?void 0:t.type)==="TaggedTemplateExpression"&&e.quasis.length===1&&t.tag.type==="Identifier"&&(t.tag.name==="md"||t.tag.name==="markdown")}var J7=[{test:O7,print:B7},{test:R7,print:M7},{test:U7,print:V7},{test:P7,print:z7},{test:W7,print:q7}].map(({test:e,print:t})=>({test:e,print:K7(t)}));function X7(e){let{node:t}=e;if(t.type!=="TemplateLiteral"||G7(t))return;let r=J7.find(({test:n})=>n(e));if(r)return t.quasis.length===1&&t.quasis[0].value.raw.trim()===""?"``":r.print}function K7(e){return async(...t)=>{let r=await e(...t);return r&&Ku({embed:!0,...r.label},r)}}function G7({quasis:e}){return e.some(({value:{cooked:t}})=>t===null)}var Q7=X7,Y7=/\*\/$/,Z7=/^\/\*\*?/,UA=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,eL=/(^|\s+)\/\/([^\n\r]*)/g,d2=/^(\r?\n)+/,tL=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,f2=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,rL=/(\r?\n|^) *\* ?/g,VA=[];function nL(e){let t=e.match(UA);return t?t[0].trimStart():""}function iL(e){var r;let t=(r=e.match(UA))==null?void 0:r[0];return t==null?e:e.slice(t.length)}function sL(e){e=dt(0,e.replace(Z7,"").replace(Y7,""),rL,"$1");let t="";for(;t!==e;)t=e,e=dt(0,e,tL,` $1 $2 -`);e=e.replace(Y1,"").trimEnd();let r=Object.create(null),n=dt(0,e,Z1,"").replace(Y1,"").trimEnd(),i;for(;i=Z1.exec(e);){let s=dt(0,i[2],FL,"");if(typeof r[i[1]]=="string"||Array.isArray(r[i[1]])){let a=r[i[1]];r[i[1]]=[...TA,...Array.isArray(a)?a:[a],s]}else r[i[1]]=s}return{comments:n,pragmas:r}}function BL({comments:e="",pragmas:t={}}){let r=Object.keys(t),n=r.flatMap(s=>eD(s,t[s])).map(s=>` * ${s} -`).join("");if(!e){if(r.length===0)return"";if(r.length===1&&!Array.isArray(t[r[0]])){let s=t[r[0]];return`/** ${eD(r[0],s)[0]} */`}}let i=e.split(` +`);e=e.replace(d2,"").trimEnd();let r=Object.create(null),n=dt(0,e,f2,"").replace(d2,"").trimEnd(),i;for(;i=f2.exec(e);){let s=dt(0,i[2],eL,"");if(typeof r[i[1]]=="string"||Array.isArray(r[i[1]])){let a=r[i[1]];r[i[1]]=[...VA,...Array.isArray(a)?a:[a],s]}else r[i[1]]=s}return{comments:n,pragmas:r}}function aL({comments:e="",pragmas:t={}}){let r=Object.keys(t),n=r.flatMap(s=>m2(s,t[s])).map(s=>` * ${s} +`).join("");if(!e){if(r.length===0)return"";if(r.length===1&&!Array.isArray(t[r[0]])){let s=t[r[0]];return`/** ${m2(r[0],s)[0]} */`}}let i=e.split(` `).map(s=>` * ${s}`).join(` `)+` `;return`/** `+(e?i:"")+(e&&r.length>0?` * -`:"")+n+" */"}function eD(e,t){return[...TA,...Array.isArray(t)?t:[t]].map(r=>`@${e} ${r}`.trim())}var IL="format";function _L(e){if(!e.startsWith("#!"))return"";let t=e.indexOf(` -`);return t===-1?e:e.slice(0,t)}var LL=_L;function $L(e){let t=LL(e);t&&(e=e.slice(t.length+1));let r=PL(e),{pragmas:n,comments:i}=NL(r);return{shebang:t,text:e,pragmas:n,comments:i}}function OL(e){let{shebang:t,text:r,pragmas:n,comments:i}=$L(e),s=kL(r),a=BL({pragmas:{[IL]:"",...n},comments:i.trimStart()});return(t?`${t} +`:"")+n+" */"}function m2(e,t){return[...VA,...Array.isArray(t)?t:[t]].map(r=>`@${e} ${r}`.trim())}var oL="format";function uL(e){if(!e.startsWith("#!"))return"";let t=e.indexOf(` +`);return t===-1?e:e.slice(0,t)}var lL=uL;function cL(e){let t=lL(e);t&&(e=e.slice(t.length+1));let r=nL(e),{pragmas:n,comments:i}=sL(r);return{shebang:t,text:e,pragmas:n,comments:i}}function pL(e){let{shebang:t,text:r,pragmas:n,comments:i}=cL(e),s=iL(r),a=aL({pragmas:{[oL]:"",...n},comments:i.trimStart()});return(t?`${t} `:"")+a+(s.startsWith(` `)?` `:` -`)+s}function ML(e){if(!qr(e))return!1;let t=`*${e.value}*`.split(` -`);return t.length>1&&t.every(r=>r.trimStart()[0]==="*")}var Lh=new WeakMap;function jL(e){return Lh.has(e)||Lh.set(e,ML(e)),Lh.get(e)}var RL=jL;function UL(e,t){let r=e.node;if(ju(r))return t.originalText.slice(me(r),de(r)).trimEnd();if(RL(r))return VL(r);if(qr(r))return["/*",fs(r.value),"*/"];throw new Error("Not a comment: "+JSON.stringify(r))}function VL(e){let t=e.value.split(` -`);return["/*",ge(U,t.map((r,n)=>n===0?r.trimEnd():" "+(ny.type==="ForOfStatement"))==null?void 0:a.left;if(f&&Lt(f,y=>y===r))return!0}if(n==="object"&&r.name==="let"&&i.type==="MemberExpression"&&i.computed&&!i.optional){let f=e.findAncestor(x=>x.type==="ExpressionStatement"||x.type==="ForStatement"||x.type==="ForInStatement"),y=f?f.type==="ExpressionStatement"?f.expression:f.type==="ForStatement"?f.init:f.left:void 0;if(y&&Lt(y,x=>x===r))return!0}if(n==="expression")switch(r.name){case"await":case"interface":case"module":case"using":case"yield":case"let":case"component":case"hook":case"type":{let f=e.findAncestor(y=>!$r(y));if(f!==i&&f.type==="ExpressionStatement")return!0}}return!1}if(r.type==="ObjectExpression"||r.type==="FunctionExpression"||r.type==="ClassExpression"||r.type==="DoExpression"){let f=(o=e.findAncestor(y=>y.type==="ExpressionStatement"))==null?void 0:o.expression;if(f&&Lt(f,y=>y===r))return!0}if(r.type==="ObjectExpression"){let f=(u=e.findAncestor(y=>y.type==="ArrowFunctionExpression"))==null?void 0:u.body;if(f&&f.type!=="SequenceExpression"&&f.type!=="AssignmentExpression"&&Lt(f,y=>y===r))return!0}switch(i.type){case"ParenthesizedExpression":return!1;case"ClassDeclaration":case"ClassExpression":if(n==="superClass"&&(r.type==="ArrowFunctionExpression"||r.type==="AssignmentExpression"||r.type==="AwaitExpression"||r.type==="BinaryExpression"||r.type==="ConditionalExpression"||r.type==="LogicalExpression"||r.type==="NewExpression"||r.type==="ObjectExpression"||r.type==="SequenceExpression"||r.type==="TaggedTemplateExpression"||r.type==="UnaryExpression"||r.type==="UpdateExpression"||r.type==="YieldExpression"||r.type==="TSNonNullExpression"||r.type==="ClassExpression"&&Me(r.decorators)))return!0;break;case"ExportDefaultDeclaration":return SA(e,t)||r.type==="SequenceExpression";case"Decorator":if(n==="expression"&&!XL(r))return!0;break;case"TypeAnnotation":if(e.match(void 0,void 0,(f,y)=>y==="returnType"&&f.type==="ArrowFunctionExpression")&&HL(r))return!0;break;case"BinaryExpression":if(n==="left"&&(i.operator==="in"||i.operator==="instanceof")&&r.type==="UnaryExpression")return!0;break;case"VariableDeclarator":if(n==="init"&&e.match(void 0,void 0,(f,y)=>y==="declarations"&&f.type==="VariableDeclaration",(f,y)=>y==="left"&&f.type==="ForInStatement"))return!0;break}switch(r.type){case"UpdateExpression":if(i.type==="UnaryExpression")return r.prefix&&(r.operator==="++"&&i.operator==="+"||r.operator==="--"&&i.operator==="-");case"UnaryExpression":switch(i.type){case"UnaryExpression":return r.operator===i.operator&&(r.operator==="+"||r.operator==="-");case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"TaggedTemplateExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"BinaryExpression":return n==="left"&&i.operator==="**";case"TSNonNullExpression":return!0;default:return!1}case"BinaryExpression":if(i.type==="UpdateExpression"||r.operator==="in"&&qL(e))return!0;if(r.operator==="|>"&&((l=r.extra)!=null&&l.parenthesized)){let f=e.grandparent;if(f.type==="BinaryExpression"&&f.operator==="|>")return!0}case"TSTypeAssertion":case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"LogicalExpression":switch(i.type){case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return!$r(r);case"ConditionalExpression":return $r(r)||u9(r);case"CallExpression":case"NewExpression":case"OptionalCallExpression":return n==="callee";case"ClassExpression":case"ClassDeclaration":return n==="superClass";case"TSTypeAssertion":case"TaggedTemplateExpression":case"UnaryExpression":case"JSXSpreadAttribute":case"SpreadElement":case"BindExpression":case"AwaitExpression":case"TSNonNullExpression":case"UpdateExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"AssignmentExpression":case"AssignmentPattern":return n==="left"&&(r.type==="TSTypeAssertion"||$r(r));case"LogicalExpression":if(r.type==="LogicalExpression")return i.operator!==r.operator;case"BinaryExpression":{let{operator:f,type:y}=r;if(!f&&y!=="TSTypeAssertion")return!0;let x=Ic(f),g=i.operator,m=Ic(g);return!!(m>x||n==="right"&&m===x||m===x&&!ky(g,f)||m");default:return!1}case"TSFunctionType":if(e.match(f=>f.type==="TSFunctionType",(f,y)=>y==="typeAnnotation"&&f.type==="TSTypeAnnotation",(f,y)=>y==="returnType"&&f.type==="ArrowFunctionExpression"))return!0;case"TSConditionalType":case"TSConstructorType":case"ConditionalTypeAnnotation":if(n==="extendsType"&&wi(r)&&i.type===r.type||n==="checkType"&&wi(i))return!0;if(n==="extendsType"&&i.type==="TSConditionalType"){let{typeAnnotation:f}=r.returnType||r.typeAnnotation;if(f.type==="TSTypePredicate"&&f.typeAnnotation&&(f=f.typeAnnotation.typeAnnotation),f.type==="TSInferType"&&f.typeParameter.constraint)return!0}case"TSUnionType":case"TSIntersectionType":if(cn(i)||Uu(i))return!0;case"TSInferType":if(r.type==="TSInferType"){if(i.type==="TSRestType")return!1;if(n==="types"&&(i.type==="TSUnionType"||i.type==="TSIntersectionType")&&r.typeParameter.type==="TSTypeParameter"&&r.typeParameter.constraint)return!0}case"TSTypeOperator":return i.type==="TSArrayType"||i.type==="TSOptionalType"||i.type==="TSRestType"||n==="objectType"&&i.type==="TSIndexedAccessType"||i.type==="TSTypeOperator"||i.type==="TSTypeAnnotation"&&e.grandparent.type.startsWith("TSJSDoc");case"TSTypeQuery":return n==="objectType"&&i.type==="TSIndexedAccessType"||n==="elementType"&&i.type==="TSArrayType";case"TypeOperator":return i.type==="ArrayTypeAnnotation"||i.type==="NullableTypeAnnotation"||n==="objectType"&&(i.type==="IndexedAccessType"||i.type==="OptionalIndexedAccessType")||i.type==="TypeOperator";case"TypeofTypeAnnotation":return n==="objectType"&&(i.type==="IndexedAccessType"||i.type==="OptionalIndexedAccessType")||n==="elementType"&&i.type==="ArrayTypeAnnotation";case"ArrayTypeAnnotation":return i.type==="NullableTypeAnnotation";case"IntersectionTypeAnnotation":case"UnionTypeAnnotation":return i.type==="TypeOperator"||i.type==="KeyofTypeAnnotation"||i.type==="ArrayTypeAnnotation"||i.type==="NullableTypeAnnotation"||i.type==="IntersectionTypeAnnotation"||i.type==="UnionTypeAnnotation"||n==="objectType"&&(i.type==="IndexedAccessType"||i.type==="OptionalIndexedAccessType");case"InferTypeAnnotation":case"NullableTypeAnnotation":return i.type==="ArrayTypeAnnotation"||n==="objectType"&&(i.type==="IndexedAccessType"||i.type==="OptionalIndexedAccessType");case"ComponentTypeAnnotation":case"FunctionTypeAnnotation":{if(r.type==="ComponentTypeAnnotation"&&(r.rendersType===null||r.rendersType===void 0))return!1;if(e.match(void 0,(y,x)=>x==="typeAnnotation"&&y.type==="TypeAnnotation",(y,x)=>x==="returnType"&&y.type==="ArrowFunctionExpression")||e.match(void 0,(y,x)=>x==="typeAnnotation"&&y.type==="TypePredicate",(y,x)=>x==="typeAnnotation"&&y.type==="TypeAnnotation",(y,x)=>x==="returnType"&&y.type==="ArrowFunctionExpression"))return!0;let f=i.type==="NullableTypeAnnotation"?e.grandparent:i;return f.type==="UnionTypeAnnotation"||f.type==="IntersectionTypeAnnotation"||f.type==="ArrayTypeAnnotation"||n==="objectType"&&(f.type==="IndexedAccessType"||f.type==="OptionalIndexedAccessType")||n==="checkType"&&i.type==="ConditionalTypeAnnotation"||n==="extendsType"&&i.type==="ConditionalTypeAnnotation"&&((c=r.returnType)==null?void 0:c.type)==="InferTypeAnnotation"&&((p=r.returnType)==null?void 0:p.typeParameter.bound)||f.type==="NullableTypeAnnotation"||i.type==="FunctionTypeParam"&&i.name===null&&Nt(r).some(y=>{var x;return((x=y.typeAnnotation)==null?void 0:x.type)==="NullableTypeAnnotation"})}case"OptionalIndexedAccessType":return n==="objectType"&&i.type==="IndexedAccessType";case"StringLiteral":case"NumericLiteral":case"Literal":if(typeof r.value=="string"&&i.type==="ExpressionStatement"&&typeof i.directive!="string"){let f=e.grandparent;return f.type==="Program"||f.type==="BlockStatement"}return n==="object"&&Oe(i)&&ln(r);case"AssignmentExpression":return!((n==="init"||n==="update")&&i.type==="ForStatement"||n==="expression"&&r.left.type!=="ObjectPattern"&&i.type==="ExpressionStatement"||n==="key"&&i.type==="TSPropertySignature"||i.type==="AssignmentExpression"||n==="expressions"&&i.type==="SequenceExpression"&&e.match(void 0,void 0,(f,y)=>(y==="init"||y==="update")&&f.type==="ForStatement")||n==="value"&&i.type==="Property"&&e.match(void 0,void 0,(f,y)=>y==="properties"&&f.type==="ObjectPattern")||i.type==="NGChainedExpression"||n==="node"&&i.type==="JsExpressionRoot");case"ConditionalExpression":switch(i.type){case"TaggedTemplateExpression":case"UnaryExpression":case"SpreadElement":case"BinaryExpression":case"LogicalExpression":case"NGPipeExpression":case"ExportDefaultDeclaration":case"AwaitExpression":case"JSXSpreadAttribute":case"TSTypeAssertion":case"TypeCastExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"TSNonNullExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"ConditionalExpression":return t.experimentalTernaries?!1:n==="test";case"MemberExpression":case"OptionalMemberExpression":return n==="object";default:return!1}case"FunctionExpression":switch(i.type){case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"TaggedTemplateExpression":return!0;default:return!1}case"ArrowFunctionExpression":switch(i.type){case"BinaryExpression":return i.operator!=="|>"||((h=r.extra)==null?void 0:h.parenthesized);case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"TSNonNullExpression":case"BindExpression":case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"AwaitExpression":case"TSTypeAssertion":case"MatchExpressionCase":return!0;case"TSInstantiationExpression":return n==="expression";case"ConditionalExpression":return n==="test";default:return!1}case"ClassExpression":switch(i.type){case"NewExpression":return n==="callee";default:return!1}case"OptionalMemberExpression":case"OptionalCallExpression":case"CallExpression":case"MemberExpression":if(JL(e))return!0;case"TaggedTemplateExpression":case"TSNonNullExpression":if(n==="callee"&&(i.type==="BindExpression"||i.type==="NewExpression")){let f=r;for(;f;)switch(f.type){case"CallExpression":case"OptionalCallExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":case"BindExpression":f=f.object;break;case"TaggedTemplateExpression":f=f.tag;break;case"TSNonNullExpression":f=f.expression;break;default:return!1}}return!1;case"BindExpression":return n==="callee"&&(i.type==="BindExpression"||i.type==="NewExpression")||n==="object"&&Oe(i);case"NGPipeExpression":return!(i.type==="NGRoot"||i.type==="NGMicrosyntaxExpression"||i.type==="ObjectProperty"&&!((d=r.extra)!=null&&d.parenthesized)||At(i)||n==="arguments"&&Ae(i)||n==="right"&&i.type==="NGPipeExpression"||n==="property"&&i.type==="MemberExpression"||i.type==="AssignmentExpression");case"JSXFragment":case"JSXElement":return n==="callee"||n==="left"&&i.type==="BinaryExpression"&&i.operator==="<"||!At(i)&&i.type!=="ArrowFunctionExpression"&&i.type!=="AssignmentExpression"&&i.type!=="AssignmentPattern"&&i.type!=="BinaryExpression"&&i.type!=="NewExpression"&&i.type!=="ConditionalExpression"&&i.type!=="ExpressionStatement"&&i.type!=="JsExpressionRoot"&&i.type!=="JSXAttribute"&&i.type!=="JSXElement"&&i.type!=="JSXExpressionContainer"&&i.type!=="JSXFragment"&&i.type!=="LogicalExpression"&&!Ae(i)&&!Li(i)&&i.type!=="ReturnStatement"&&i.type!=="ThrowStatement"&&i.type!=="TypeCastExpression"&&i.type!=="VariableDeclarator"&&i.type!=="YieldExpression"&&i.type!=="MatchExpressionCase";case"TSInstantiationExpression":return n==="object"&&Oe(i);case"MatchOrPattern":return i.type==="MatchAsPattern"}return!1}var zL=le(["BlockStatement","BreakStatement","ComponentDeclaration","ClassBody","ClassDeclaration","ClassMethod","ClassProperty","PropertyDefinition","ClassPrivateProperty","ContinueStatement","DebuggerStatement","DeclareComponent","DeclareClass","DeclareExportAllDeclaration","DeclareExportDeclaration","DeclareFunction","DeclareHook","DeclareInterface","DeclareModule","DeclareModuleExports","DeclareNamespace","DeclareVariable","DeclareEnum","DoWhileStatement","EnumDeclaration","ExportAllDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExpressionStatement","ForInStatement","ForOfStatement","ForStatement","FunctionDeclaration","HookDeclaration","IfStatement","ImportDeclaration","InterfaceDeclaration","LabeledStatement","MethodDefinition","ReturnStatement","SwitchStatement","ThrowStatement","TryStatement","TSDeclareFunction","TSEnumDeclaration","TSImportEqualsDeclaration","TSInterfaceDeclaration","TSModuleDeclaration","TSNamespaceExportDeclaration","TypeAlias","VariableDeclaration","WhileStatement","WithStatement"]);function qL(e){let t=0,{node:r}=e;for(;r;){let n=e.getParentNode(t++);if((n==null?void 0:n.type)==="ForStatement"&&n.init===r)return!0;r=n}return!1}function HL(e){return of(e,t=>t.type==="ObjectTypeAnnotation"&&of(t,r=>r.type==="FunctionTypeAnnotation"))}function WL(e){return Ur(e)}function wo(e){let{parent:t,key:r}=e;switch(t.type){case"NGPipeExpression":if(r==="arguments"&&e.isLast)return e.callParent(wo);break;case"ObjectProperty":if(r==="value")return e.callParent(()=>e.key==="properties"&&e.isLast);break;case"BinaryExpression":case"LogicalExpression":if(r==="right")return e.callParent(wo);break;case"ConditionalExpression":if(r==="alternate")return e.callParent(wo);break;case"UnaryExpression":if(t.prefix)return e.callParent(wo);break}return!1}function SA(e,t){let{node:r,parent:n}=e;return r.type==="FunctionExpression"||r.type==="ClassExpression"?n.type==="ExportDefaultDeclaration"||!ff(e,t):!Fy(r)||n.type!=="ExportDefaultDeclaration"&&ff(e,t)?!1:e.call(()=>SA(e,t),...Mv(r))}function JL(e){return!!(e.match(void 0,(t,r)=>r==="expression"&&t.type==="ChainExpression",(t,r)=>r==="tag"&&t.type==="TaggedTemplateExpression")||e.match(t=>t.type==="OptionalCallExpression"||t.type==="OptionalMemberExpression",(t,r)=>r==="tag"&&t.type==="TaggedTemplateExpression")||e.match(t=>t.type==="OptionalCallExpression"||t.type==="OptionalMemberExpression",(t,r)=>r==="expression"&&t.type==="TSNonNullExpression",(t,r)=>r==="tag"&&t.type==="TaggedTemplateExpression")||e.match(void 0,(t,r)=>r==="expression"&&t.type==="ChainExpression",(t,r)=>r==="expression"&&t.type==="TSNonNullExpression",(t,r)=>r==="tag"&&t.type==="TaggedTemplateExpression")||e.match(void 0,(t,r)=>r==="expression"&&t.type==="TSNonNullExpression",(t,r)=>r==="expression"&&t.type==="ChainExpression",(t,r)=>r==="tag"&&t.type==="TaggedTemplateExpression")||e.match(t=>t.type==="OptionalMemberExpression"||t.type==="OptionalCallExpression",(t,r)=>r==="object"&&t.type==="MemberExpression"||r==="callee"&&(t.type==="CallExpression"||t.type==="NewExpression"))||e.match(t=>t.type==="OptionalMemberExpression"||t.type==="OptionalCallExpression",(t,r)=>r==="expression"&&t.type==="TSNonNullExpression",(t,r)=>r==="object"&&t.type==="MemberExpression"||r==="callee"&&t.type==="CallExpression")||e.match(t=>t.type==="CallExpression"||t.type==="MemberExpression",(t,r)=>r==="expression"&&t.type==="ChainExpression")&&(e.match(void 0,void 0,(t,r)=>r==="callee"&&(t.type==="CallExpression"&&!t.optional||t.type==="NewExpression")||r==="object"&&t.type==="MemberExpression"&&!t.optional)||e.match(void 0,void 0,(t,r)=>r==="expression"&&t.type==="TSNonNullExpression",(t,r)=>r==="object"&&t.type==="MemberExpression"||r==="callee"&&t.type==="CallExpression"))||e.match(t=>t.type==="CallExpression"||t.type==="MemberExpression",(t,r)=>r==="expression"&&t.type==="TSNonNullExpression",(t,r)=>r==="expression"&&t.type==="ChainExpression",(t,r)=>r==="object"&&t.type==="MemberExpression"||r==="callee"&&t.type==="CallExpression"))}function mf(e){return e.type==="Identifier"?!0:Oe(e)?!e.computed&&!e.optional&&e.property.type==="Identifier"&&mf(e.object):!1}function XL(e){return e.type==="ChainExpression"&&(e=e.expression),mf(e)||Ae(e)&&!e.optional&&mf(e.callee)}var ji=ff;function KL(e,t){let r=t-1;r=Ta(e,r,{backwards:!0}),r=Sa(e,r,{backwards:!0}),r=Ta(e,r,{backwards:!0});let n=Sa(e,r,{backwards:!0});return r!==n}var GL=KL,QL=()=>!0;function Uy(e,t){let r=e.node;return r.printed=!0,t.printer.printComment(e,t)}function YL(e,t){var l;let r=e.node,n=[Uy(e,t)],{printer:i,originalText:s,locStart:a,locEnd:o}=t;if((l=i.isBlockComment)!=null&&l.call(i,r)){let c=Qt(s,o(r))?Qt(s,a(r),{backwards:!0})?U:Q:" ";n.push(c)}else n.push(U);let u=Sa(s,Ta(s,o(r)));return u!==!1&&Qt(s,u)&&n.push(U),n}function ZL(e,t,r){var l;let n=e.node,i=Uy(e,t),{printer:s,originalText:a,locStart:o}=t,u=(l=s.isBlockComment)==null?void 0:l.call(s,n);if(r!=null&&r.hasLineSuffix&&!(r!=null&&r.isBlock)||Qt(a,o(n),{backwards:!0})){let c=GL(a,o(n));return{doc:G1([U,c?U:"",i]),isBlock:u,hasLineSuffix:!0}}return!u||r!=null&&r.hasLineSuffix?{doc:[G1([" ",i]),On],isBlock:u,hasLineSuffix:!0}:{doc:[" ",i],isBlock:u,hasLineSuffix:!1}}function $e(e,t,r={}){let{node:n}=e;if(!Me(n==null?void 0:n.comments))return"";let{indent:i=!1,marker:s,filter:a=QL}=r,o=[];if(e.each(({node:l})=>{l.leading||l.trailing||l.marker!==s||!a(l)||o.push(Uy(e,t))},"comments"),o.length===0)return"";let u=ge(U,o);return i?R([U,u]):u}function xp(e,t){let r=e.node;if(!r)return{};let n=t[Symbol.for("printedComments")];if((r.comments||[]).filter(o=>!n.has(o)).length===0)return{leading:"",trailing:""};let i=[],s=[],a;return e.each(()=>{let o=e.node;if(n!=null&&n.has(o))return;let{leading:u,trailing:l}=o;u?i.push(YL(e,t)):l&&(a=ZL(e,t,a),s.push(a.doc))},"comments"),{leading:i,trailing:s}}function Ar(e,t,r){let{leading:n,trailing:i}=xp(e,r);return!n&&!i?t:pf(t,s=>[n,s,i])}var $c=class extends Error{constructor(){super(...arguments);H(this,"name","ArgExpansionBailout")}};function Ps(e,t,r,n,i){let s=e.node,a=Nt(s),o=i&&s.typeParameters?r("typeParameters"):"";if(a.length===0)return[o,"(",$e(e,t,{filter:d=>Vr(t.originalText,de(d))===")"}),")"];let{parent:u}=e,l=Dp(u),c=FA(s),p=[];if(A9(e,(d,f)=>{let y=f===a.length-1;y&&s.rest&&p.push("..."),p.push(r()),!y&&(p.push(","),l||c?p.push(" "):mn(a[f],t)?p.push(U,U):p.push(Q))}),n&&!t7(e)){if($t(o)||$t(p))throw new $c;return I([Lc(o),"(",Lc(p),")"])}let h=a.every(d=>!Me(d.decorators));return c&&h?[o,"(",...p,")"]:l?[o,"(",...p,")"]:(Uv(u)||h9(u)||u.type==="TypeAlias"||u.type==="UnionTypeAnnotation"||u.type==="IntersectionTypeAnnotation"||u.type==="FunctionTypeAnnotation"&&u.returnType===s)&&a.length===1&&a[0].name===null&&s.this!==a[0]&&a[0].typeAnnotation&&s.typeParameters===null&&wy(a[0].typeAnnotation)&&!s.rest?t.arrowParens==="always"||s.type==="HookTypeAnnotation"?["(",...p,")"]:p:[o,"(",R([j,...p]),ue(!v9(s)&&fn(t,"all")?",":""),j,")"]}function FA(e){if(!e)return!1;let t=Nt(e);if(t.length!==1)return!1;let[r]=t;return!X(r)&&(r.type==="ObjectPattern"||r.type==="ArrayPattern"||r.type==="Identifier"&&r.typeAnnotation&&(r.typeAnnotation.type==="TypeAnnotation"||r.typeAnnotation.type==="TSTypeAnnotation")&&bi(r.typeAnnotation.typeAnnotation)||r.type==="FunctionTypeParam"&&bi(r.typeAnnotation)&&r!==e.rest||r.type==="AssignmentPattern"&&(r.left.type==="ObjectPattern"||r.left.type==="ArrayPattern")&&(r.right.type==="Identifier"||Ur(r.right)&&r.right.properties.length===0||At(r.right)&&r.right.elements.length===0))}function e7(e){let t;return e.returnType?(t=e.returnType,t.typeAnnotation&&(t=t.typeAnnotation)):e.typeAnnotation&&(t=e.typeAnnotation),t}function Va(e,t){var i;let r=e7(e);if(!r)return!1;let n=(i=e.typeParameters)==null?void 0:i.params;if(n){if(n.length>1)return!1;if(n.length===1){let s=n[0];if(s.constraint||s.default)return!1}}return Nt(e).length===1&&(bi(r)||$t(t))}function t7(e){return e.match(t=>t.type==="ArrowFunctionExpression"&&t.body.type==="BlockStatement",(t,r)=>{if(t.type==="CallExpression"&&r==="arguments"&&t.arguments.length===1&&t.callee.type==="CallExpression"){let n=t.callee.callee;return n.type==="Identifier"||n.type==="MemberExpression"&&!n.computed&&n.object.type==="Identifier"&&n.property.type==="Identifier"}return!1},(t,r)=>t.type==="VariableDeclarator"&&r==="init"||t.type==="ExportDefaultDeclaration"&&r==="declaration"||t.type==="TSExportAssignment"&&r==="expression"||t.type==="AssignmentExpression"&&r==="right"&&t.left.type==="MemberExpression"&&t.left.object.type==="Identifier"&&t.left.object.name==="module"&&t.left.property.type==="Identifier"&&t.left.property.name==="exports",t=>t.type!=="VariableDeclaration"||t.kind==="const"&&t.declarations.length===1)}function r7(e){let t=Nt(e);return t.length>1&&t.some(r=>r.type==="TSParameterProperty")}function Wo(e,t){return(t==="params"||t==="this"||t==="rest")&&FA(e)}function Mt(e){let{node:t}=e;return!t.optional||t.type==="Identifier"&&t===e.parent.key?"":Ae(t)||Oe(t)&&t.computed||t.type==="OptionalIndexedAccessType"?"?.":"?"}function bA(e){return e.node.definite||e.match(void 0,(t,r)=>r==="id"&&t.type==="VariableDeclarator"&&t.definite)?"!":""}var n7=le(["DeclareClass","DeclareComponent","DeclareFunction","DeclareHook","DeclareVariable","DeclareExportDeclaration","DeclareExportAllDeclaration","DeclareOpaqueType","DeclareTypeAlias","DeclareEnum","DeclareInterface"]);function pr(e){let{node:t}=e;return t.declare||n7(t)&&e.parent.type!=="DeclareExportDeclaration"?"declare ":""}var i7=le(["TSAbstractMethodDefinition","TSAbstractPropertyDefinition","TSAbstractAccessorProperty"]);function Cp({node:e}){return e.abstract||i7(e)?"abstract ":""}function Zn(e,t,r){return e.type==="EmptyStatement"?X(e,ee.Leading)?[" ",t]:t:e.type==="BlockStatement"||r?[" ",t]:R([Q,t])}function vp(e){return e.accessibility?e.accessibility+" ":""}var s7=/^[\$A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC][\$0-9A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]*$/,a7=e=>s7.test(e),o7=a7;function u7(e){return e.length===1?e:e.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(?=\d)/u,"$1$2").replace(/^([+-]?[\d.]+)e[+-]?0+$/u,"$1").replace(/^([+-])?\./u,"$10.").replace(/(\.\d+?)0+(?=e|$)/u,"$1").replace(/\.(?=e|$)/u,"")}var Pa=u7,l7=0;function wA(e,t,r){var v;let{node:n,parent:i,grandparent:s,key:a}=e,o=a!=="body"&&(i.type==="IfStatement"||i.type==="WhileStatement"||i.type==="SwitchStatement"||i.type==="DoWhileStatement"),u=n.operator==="|>"&&((v=e.root.extra)==null?void 0:v.__isUsingHackPipeline),l=yf(e,t,r,!1,o);if(o)return l;if(u)return I(l);if(a==="callee"&&(Ae(i)||i.type==="NewExpression")||i.type==="UnaryExpression"||Oe(i)&&!i.computed)return I([R([j,...l]),j]);let c=i.type==="ReturnStatement"||i.type==="ThrowStatement"||i.type==="JSXExpressionContainer"&&s.type==="JSXAttribute"||n.operator!=="|"&&i.type==="JsExpressionRoot"||n.type!=="NGPipeExpression"&&(i.type==="NGRoot"&&t.parser==="__ng_binding"||i.type==="NGMicrosyntaxExpression"&&s.type==="NGMicrosyntax"&&s.body.length===1)||n===i.body&&i.type==="ArrowFunctionExpression"||n!==i.body&&i.type==="ForStatement"||i.type==="ConditionalExpression"&&s.type!=="ReturnStatement"&&s.type!=="ThrowStatement"&&!Ae(s)&&s.type!=="NewExpression"||i.type==="TemplateLiteral"||p7(e),p=i.type==="AssignmentExpression"||i.type==="VariableDeclarator"||i.type==="ClassProperty"||i.type==="PropertyDefinition"||i.type==="TSAbstractPropertyDefinition"||i.type==="ClassPrivateProperty"||Li(i),h=Ln(n.left)&&ky(n.operator,n.left.operator);if(c||vu(n)&&!h||!vu(n)&&p)return I(l);if(l.length===0)return"";let d=mt(n.right),f=l.findIndex(b=>typeof b!="string"&&!Array.isArray(b)&&b.type===br),y=l.slice(0,f===-1?1:f+1),x=l.slice(y.length,d?-1:void 0),g=Symbol("logicalChain-"+ ++l7),m=I([...y,R(x)],{id:g});if(!d)return m;let D=Se(0,l,-1);return I([m,Cu(D,{groupId:g})])}function yf(e,t,r,n,i){var x;let{node:s}=e;if(!Ln(s))return[I(r())];let a=[];ky(s.operator,s.left.operator)?a=e.call(()=>yf(e,t,r,!0,i),"left"):a.push(I(r("left")));let o=vu(s),u=s.right.type==="ChainExpression"?s.right.expression:s.right,l=(s.operator==="|>"||s.type==="NGPipeExpression"||c7(e,t))&&!jr(t.originalText,u),c=!X(u,ee.Leading,Gv)&&jr(t.originalText,u),p=s.type==="NGPipeExpression"?"|":s.operator,h=s.type==="NGPipeExpression"&&s.arguments.length>0?I(R([j,": ",ge([Q,": "],e.map(()=>zr(2,I(r())),"arguments"))])):"",d;if(o)d=[p,jr(t.originalText,u)?R([Q,r("right"),h]):[" ",r("right"),h]];else{let g=p==="|>"&&((x=e.root.extra)!=null&&x.__isUsingHackPipeline)?e.call(()=>yf(e,t,r,!0,i),"right"):r("right");if(t.experimentalOperatorPosition==="start"){let m="";if(c)switch(Mi(g)){case $n:m=g.splice(0,1)[0];break;case Jn:m=g.contents.splice(0,1)[0];break}d=[Q,m,p," ",g,h]}else d=[l?Q:"",p,l?" ":Q,g,h]}let{parent:f}=e,y=X(s.left,ee.Trailing|ee.Line);if((y||!(i&&s.type==="LogicalExpression")&&f.type!==s.type&&s.left.type!==s.type&&s.right.type!==s.type)&&(d=I(d,{shouldBreak:y})),t.experimentalOperatorPosition==="start"?a.push(o||c?" ":"",d):a.push(l?"":" ",d),n&&X(s)){let g=jy(Ar(e,a,t));return g.type===$i?g.parts:Array.isArray(g)?g:[g]}return a}function vu(e){return e.type!=="LogicalExpression"?!1:!!(Ur(e.right)&&e.right.properties.length>0||At(e.right)&&e.right.elements.length>0||mt(e.right))}var tD=e=>e.type==="BinaryExpression"&&e.operator==="|";function c7(e,t){return(t.parser==="__vue_expression"||t.parser==="__vue_ts_expression")&&tD(e.node)&&!e.hasAncestor(r=>!tD(r)&&r.type!=="JsExpressionRoot")}function p7(e){if(e.key!=="arguments")return!1;let{parent:t}=e;if(!(Ae(t)&&!t.optional&&t.arguments.length===1))return!1;let{callee:r}=t;return r.type==="Identifier"&&r.name==="Boolean"}function PA(e,t,r){let{node:n}=e,{parent:i}=e,s=i.type!=="TypeParameterInstantiation"&&(!wi(i)||!t.experimentalTernaries)&&i.type!=="TSTypeParameterInstantiation"&&i.type!=="GenericTypeAnnotation"&&i.type!=="TSTypeReference"&&i.type!=="TSTypeAssertion"&&i.type!=="TupleTypeAnnotation"&&i.type!=="TSTupleType"&&!(i.type==="FunctionTypeParam"&&!i.name&&e.grandparent.this!==i)&&!((lf(i)||i.type==="VariableDeclarator")&&jr(t.originalText,n))&&!(lf(i)&&X(i.id,ee.Trailing|ee.Line)),a=kA(n),o=e.map(()=>{let d=r();return a||(d=zr(2,d)),Ar(e,d,t)},"types"),u="",l="";if(Xv(e)&&({leading:u,trailing:l}=xp(e,t)),a)return[u,ge(" | ",o),l];let c=s&&!jr(t.originalText,n),p=[ue([c?Q:"","| "]),ge([Q,"| "],o)];if(ji(e,t))return[u,I([R(p),j]),l];let h=[u,I(p)];return(i.type==="TupleTypeAnnotation"||i.type==="TSTupleType")&&i[i.type==="TupleTypeAnnotation"&&i.types?"types":"elementTypes"].length>1?[I([R([ue(["(",j]),h]),j,ue(")")]),l]:[I(s?R(h):h),l]}var h7=le(["VoidTypeAnnotation","TSVoidKeyword","NullLiteralTypeAnnotation","TSNullKeyword"]),d7=le(["ObjectTypeAnnotation","TSTypeLiteral","GenericTypeAnnotation","TSTypeReference"]);function kA(e){let{types:t}=e;if(t.some(n=>X(n)))return!1;let r=t.find(n=>d7(n));return r?t.every(n=>n===r||h7(n)):!1}function f7(e){return wy(e)||bi(e)?!0:cn(e)?kA(e):!1}var m7=new WeakSet;function xt(e,t,r="typeAnnotation"){let{node:{[r]:n}}=e;if(!n)return"";let i=!1;if(n.type==="TSTypeAnnotation"||n.type==="TypeAnnotation"){let s=e.call(NA,r);(s==="=>"||s===":"&&X(n,ee.Leading))&&(i=!0),m7.add(n)}return i?[" ",t(r)]:t(r)}var NA=e=>e.match(t=>t.type==="TSTypeAnnotation",(t,r)=>(r==="returnType"||r==="typeAnnotation")&&(t.type==="TSFunctionType"||t.type==="TSConstructorType"))?"=>":e.match(t=>t.type==="TSTypeAnnotation",(t,r)=>r==="typeAnnotation"&&(t.type==="TSJSDocNullableType"||t.type==="TSJSDocNonNullableType"||t.type==="TSTypePredicate"))||e.match(t=>t.type==="TypeAnnotation",(t,r)=>r==="typeAnnotation"&&t.type==="Identifier",(t,r)=>r==="id"&&t.type==="DeclareFunction")||e.match(t=>t.type==="TypeAnnotation",(t,r)=>r==="typeAnnotation"&&t.type==="Identifier",(t,r)=>r==="id"&&t.type==="DeclareHook")||e.match(t=>t.type==="TypeAnnotation",(t,r)=>r==="bound"&&t.type==="TypeParameter"&&t.usesExtendsBound)?"":":";function BA(e,t,r){let n=NA(e);return n?[n," ",r("typeAnnotation")]:r("typeAnnotation")}function y7(e,t,r,n){let{node:i}=e,s=i.inexact?"...":"";return X(i,ee.Dangling)?I([r,s,$e(e,t,{indent:!0}),j,n]):[r,s,n]}function Vy(e,t,r){let{node:n}=e,i=[],s="[",a="]",o=n.type==="TupleTypeAnnotation"&&n.types?"types":n.type==="TSTupleType"||n.type==="TupleTypeAnnotation"?"elementTypes":"elements",u=n[o];if(u.length===0)i.push(y7(e,t,s,a));else{let l=Se(0,u,-1),c=(l==null?void 0:l.type)!=="RestElement"&&!n.inexact,p=l===null,h=Symbol("array"),d=!t.__inJestEach&&u.length>1&&u.every((x,g,m)=>{let D=x==null?void 0:x.type;if(!At(x)&&!Ur(x))return!1;let v=m[g+1];if(v&&D!==v.type)return!1;let b=At(x)?"elements":"properties";return x[b]&&x[b].length>1}),f=IA(n,t),y=c?p?",":fn(t)?f?ue(",","",{groupId:h}):ue(","):"":"";i.push(I([s,R([j,f?D7(e,t,r,y):[g7(e,t,r,o,n.inexact),y],$e(e,t)]),j,a],{shouldBreak:d,id:h}))}return i.push(Mt(e),xt(e,r)),i}function IA(e,t){return At(e)&&e.elements.length>0&&e.elements.every(r=>r&&(ln(r)||jv(r)&&!X(r.argument))&&!X(r,ee.Trailing|ee.Line,n=>!Qt(t.originalText,me(n),{backwards:!0})))}function _A({node:e},{originalText:t}){let r=de(e);if(r===me(e))return!1;let{length:n}=t;for(;r{s.push(a?I(r()):""),(!o||i)&&s.push([",",Q,a&&_A(e,t)?j:""])},n),i&&s.push("..."),s}function D7(e,t,r,n){let i=[];return e.each(({isLast:s,next:a})=>{i.push([r(),s?n:","]),s||i.push(_A(e,t)?[U,U]:X(a,ee.Leading|ee.Line)?U:Q)},"elements"),pA(i)}function E7(e,t,r){let{node:n}=e,i=fr(n);if(i.length===0)return["(",$e(e,t),")"];let s=i.length-1;if(v7(i)){let p=["("];return _c(e,(h,d)=>{p.push(r()),d!==s&&p.push(", ")}),p.push(")"),p}let a=!1,o=[];_c(e,({node:p},h)=>{let d=r();h===s||(mn(p,t)?(a=!0,d=[d,",",U,U]):d=[d,",",Q]),o.push(d)});let u=!t.parser.startsWith("__ng_")&&n.type!=="ImportExpression"&&n.type!=="TSImportType"&&n.type!=="TSExternalModuleReference"&&fn(t,"all")?",":"";function l(){return I(["(",R([Q,...o]),u,Q,")"],{shouldBreak:!0})}if(a||e.parent.type!=="Decorator"&&D9(i))return l();if(C7(i)){let p=o.slice(1);if(p.some($t))return l();let h;try{h=r(W1(n,0),{expandFirstArg:!0})}catch(d){if(d instanceof $c)return l();throw d}return $t(h)?[On,rs([["(",I(h,{shouldBreak:!0}),", ",...p,")"],l()])]:rs([["(",h,", ",...p,")"],["(",I(h,{shouldBreak:!0}),", ",...p,")"],l()])}if(x7(i,o,t)){let p=o.slice(0,-1);if(p.some($t))return l();let h;try{h=r(W1(n,-1),{expandLastArg:!0})}catch(d){if(d instanceof $c)return l();throw d}return $t(h)?[On,rs([["(",...p,I(h,{shouldBreak:!0}),")"],l()])]:rs([["(",...p,h,")"],["(",...p,I(h,{shouldBreak:!0}),")"],l()])}let c=["(",R([j,...o]),ue(u),j,")"];return Wv(e)?c:I(c,{shouldBreak:o.some($t)||a})}function Jo(e,t=!1){return Ur(e)&&(e.properties.length>0||X(e))||At(e)&&(e.elements.length>0||X(e))||e.type==="TSTypeAssertion"&&Jo(e.expression)||$r(e)&&Jo(e.expression)||e.type==="FunctionExpression"||e.type==="ArrowFunctionExpression"&&(!e.returnType||!e.returnType.typeAnnotation||e.returnType.typeAnnotation.type!=="TSTypeReference"||A7(e.body))&&(e.body.type==="BlockStatement"||e.body.type==="ArrowFunctionExpression"&&Jo(e.body,!0)||Ur(e.body)||At(e.body)||!t&&(Ae(e.body)||e.body.type==="ConditionalExpression")||mt(e.body))||e.type==="DoExpression"||e.type==="ModuleExpression"}function x7(e,t,r){var s,a;let n=Se(0,e,-1);if(e.length===1){let o=Se(0,t,-1);if((s=o.label)!=null&&s.embed&&((a=o.label)==null?void 0:a.hug)!==!1)return!0}let i=Se(0,e,-2);return!X(n,ee.Leading)&&!X(n,ee.Trailing)&&Jo(n)&&(!i||i.type!==n.type)&&(e.length!==2||i.type!=="ArrowFunctionExpression"||!At(n))&&!(e.length>1&&IA(n,r))}function C7(e){if(e.length!==2)return!1;let[t,r]=e;return t.type==="ModuleExpression"&&T7(r)?!0:!X(t)&&(t.type==="FunctionExpression"||t.type==="ArrowFunctionExpression"&&t.body.type==="BlockStatement")&&r.type!=="FunctionExpression"&&r.type!=="ArrowFunctionExpression"&&r.type!=="ConditionalExpression"&&LA(r)&&!Jo(r)}function LA(e){if(e.type==="ParenthesizedExpression")return LA(e.expression);if($r(e)||e.type==="TypeCastExpression"){let{typeAnnotation:t}=e;if(t.type==="TypeAnnotation"&&(t=t.typeAnnotation),t.type==="TSArrayType"&&(t=t.elementType,t.type==="TSArrayType"&&(t=t.elementType)),t.type==="GenericTypeAnnotation"||t.type==="TSTypeReference"){let r=t.type==="GenericTypeAnnotation"?t.typeParameters:t.typeArguments;(r==null?void 0:r.params.length)===1&&(t=r.params[0])}return wy(t)&&_r(e.expression,1)}return wa(e)&&fr(e).length>1?!1:Ln(e)?_r(e.left,1)&&_r(e.right,1):Rv(e)||_r(e)}function v7(e){return e.length===2?rD(e,0):e.length===3?e[0].type==="Identifier"&&rD(e,1):!1}function rD(e,t){let r=e[t],n=e[t+1];return r.type==="ArrowFunctionExpression"&&Nt(r).length===0&&r.body.type==="BlockStatement"&&n.type==="ArrayExpression"&&!e.some(i=>X(i))}function A7(e){return e.type==="BlockStatement"&&(e.body.some(t=>t.type!=="EmptyStatement")||X(e,ee.Dangling))}function T7(e){if(!(e.type==="ObjectExpression"&&e.properties.length===1))return!1;let[t]=e.properties;return Li(t)?!t.computed&&(t.key.type==="Identifier"&&t.key.name==="type"||yt(t.key)&&t.key.value==="type")&&yt(t.value)&&t.value.value==="module":!1}var gf=E7;function S7(e,t,r){return[r("object"),I(R([j,$A(e,t,r)]))]}function $A(e,t,r){return["::",r("callee")]}var F7=e=>((e.type==="ChainExpression"||e.type==="TSNonNullExpression")&&(e=e.expression),Ae(e)&&fr(e).length>0);function b7(e){let{node:t,ancestors:r}=e;for(let n of r){if(!(Oe(n)&&n.object===t||n.type==="TSNonNullExpression"&&n.expression===t))return n.type==="NewExpression"&&n.callee===t;t=n}return!1}function w7(e,t,r){var l;let n=r("object"),i=OA(e,t,r),{node:s}=e,a=e.findAncestor(c=>!(Oe(c)||c.type==="TSNonNullExpression")),o=e.findAncestor(c=>!(c.type==="ChainExpression"||c.type==="TSNonNullExpression")),u=a.type==="BindExpression"||a.type==="AssignmentExpression"&&a.left.type!=="Identifier"||b7(e)||s.computed||s.object.type==="Identifier"&&s.property.type==="Identifier"&&!Oe(o)||(o.type==="AssignmentExpression"||o.type==="VariableDeclarator")&&(F7(s.object)||((l=n.label)==null?void 0:l.memberChain));return Vu(n.label,[n,u?i:I(R([j,i]))])}function OA(e,t,r){let n=r("property"),{node:i}=e,s=Mt(e);return i.computed?!i.property||ln(i.property)?[s,"[",n,"]"]:I([s,"[",R([j,n]),j,"]"]):[s,".",n]}function MA(e,t,r){if(e.node.type==="ChainExpression")return e.call(()=>MA(e,t,r),"expression");let n=(e.parent.type==="ChainExpression"?e.grandparent:e.parent).type==="ExpressionStatement",i=[];function s(k){let{originalText:J}=t,K=ja(J,de(k));return J.charAt(K)===")"?K!==!1&&Ay(J,K+1):mn(k,t)}function a(){let{node:k}=e;if(k.type==="ChainExpression")return e.call(a,"expression");if(Ae(k)&&(js(k.callee)||Ae(k.callee))){let J=s(k);i.unshift({node:k,hasTrailingEmptyLine:J,printed:[Ar(e,[Mt(e),r("typeArguments"),gf(e,t,r)],t),J?U:""]}),e.call(a,"callee")}else js(k)?(i.unshift({node:k,needsParens:ji(e,t),printed:Ar(e,Oe(k)?OA(e,t,r):$A(e,t,r),t)}),e.call(a,"object")):k.type==="TSNonNullExpression"?(i.unshift({node:k,printed:Ar(e,"!",t)}),e.call(a,"expression")):i.unshift({node:k,printed:r()})}let{node:o}=e;i.unshift({node:o,printed:[Mt(e),r("typeArguments"),gf(e,t,r)]}),o.callee&&e.call(a,"callee");let u=[],l=[i[0]],c=1;for(;c0&&u.push(l);function h(k){return/^[A-Z]|^[$_]+$/u.test(k)}function d(k){return k.length<=t.tabWidth}function f(k){var ne;let J=(ne=k[1][0])==null?void 0:ne.node.computed;if(k[0].length===1){let Z=k[0][0].node;return Z.type==="ThisExpression"||Z.type==="Identifier"&&(h(Z.name)||n&&d(Z.name)||J)}let K=Se(0,k[0],-1).node;return Oe(K)&&K.property.type==="Identifier"&&(h(K.property.name)||J)}let y=u.length>=2&&!X(u[1][0].node)&&f(u);function x(k){let J=k.map(K=>K.printed);return k.length>0&&Se(0,k,-1).needsParens?["(",...J,")"]:J}function g(k){return k.length===0?"":R([U,ge(U,k.map(x))])}let m=u.map(x),D=m,v=y?3:2,b=u.flat(),P=b.slice(1,-1).some(k=>X(k.node,ee.Leading))||b.slice(0,-1).some(k=>X(k.node,ee.Trailing))||u[v]&&X(u[v][0].node,ee.Leading);if(u.length<=v&&!P&&!u.some(k=>Se(0,k,-1).hasTrailingEmptyLine))return Wv(e)?D:I(D);let N=Se(0,u[y?1:0],-1).node,E=!Ae(N)&&s(N),A=[x(u[0]),y?u.slice(1,2).map(x):"",E?U:"",g(u.slice(y?2:1))],T=i.map(({node:k})=>k).filter(Ae);function B(){let k=Se(0,Se(0,u,-1),-1).node,J=Se(0,m,-1);return Ae(k)&&$t(J)&&T.slice(0,-1).some(K=>K.arguments.some(Eu))}let M;return P||T.length>2&&T.some(k=>!k.arguments.every(J=>_r(J)))||m.slice(0,-1).some($t)||B()?M=I(A):M=[$t(D)||E?On:"",rs([D,A])],Vu({memberChain:!0},M)}var P7=MA;function Oc(e,t,r){var p;let{node:n}=e,i=n.type==="NewExpression",s=Mt(e),a=fr(n),o=n.type!=="TSImportType"&&n.typeArguments?r("typeArguments"):"",u=a.length===1&&qv(a[0],t.originalText);if(u||N7(e)||B7(e)||Dp(n,e.parent)){let h=[];if(_c(e,()=>{h.push(r())}),!(u&&((p=h[0].label)!=null&&p.embed)))return[i?"new ":"",nD(e,r),s,o,"(",ge(", ",h),")"]}let l=n.type==="ImportExpression"||n.type==="TSImportType"||n.type==="TSExternalModuleReference";if(!l&&!i&&js(n.callee)&&!e.call(()=>ji(e,t),"callee",...n.callee.type==="ChainExpression"?["expression"]:[]))return P7(e,t,r);let c=[i?"new ":"",nD(e,r),s,o,gf(e,t,r)];return l||Ae(n.callee)?I(c):c}function nD(e,t){let{node:r}=e;return r.type==="ImportExpression"?`import${r.phase?`.${r.phase}`:""}`:r.type==="TSImportType"?"import":r.type==="TSExternalModuleReference"?"require":t("callee")}var k7=["require","require.resolve","require.resolve.paths","import.meta.resolve"];function N7(e){let{node:t}=e;if(!(t.type==="ImportExpression"||t.type==="TSImportType"||t.type==="TSExternalModuleReference"||t.type==="CallExpression"&&!t.optional&&Ty(t.callee,k7)))return!1;let r=fr(t);return r.length===1&&yt(r[0])&&!X(r[0])}function B7(e){let{node:t}=e;if(t.type!=="CallExpression"||t.optional||t.callee.type!=="Identifier")return!1;let r=fr(t);return t.callee.name==="require"?(r.length===1&&yt(r[0])||r.length>1)&&!X(r[0]):t.callee.name==="define"&&e.parent.type==="ExpressionStatement"?r.length===1||r.length===2&&r[0].type==="ArrayExpression"||r.length===3&&yt(r[0])&&r[1].type==="ArrayExpression":!1}function zu(e,t,r,n,i,s){let a=L7(e,t,r,n,s),o=s?r(s,{assignmentLayout:a}):"";switch(a){case"break-after-operator":return I([I(n),i,I(R([Q,o]))]);case"never-break-after-operator":return I([I(n),i," ",o]);case"fluid":{let u=Symbol("assignment");return I([I(n),i,I(R(Q),{id:u}),pn,Cu(o,{groupId:u})])}case"break-lhs":return I([n,i," ",I(o)]);case"chain":return[I(n),i,Q,o];case"chain-tail":return[I(n),i,R([Q,o])];case"chain-tail-arrow-chain":return[I(n),i,o];case"only-left":return n}}function I7(e,t,r){let{node:n}=e;return zu(e,t,r,r("left"),[" ",n.operator],"right")}function _7(e,t,r){return zu(e,t,r,r("id")," =","init")}function L7(e,t,r,n,i){let{node:s}=e,a=s[i];if(!a)return"only-left";let o=!Zl(a);if(e.match(Zl,jA,c=>!o||c.type!=="ExpressionStatement"&&c.type!=="VariableDeclaration"))return o?a.type==="ArrowFunctionExpression"&&a.body.type==="ArrowFunctionExpression"?"chain-tail-arrow-chain":"chain-tail":"chain";if(!o&&Zl(a.right)||jr(t.originalText,a))return"break-after-operator";if(s.type==="ImportAttribute"||a.type==="CallExpression"&&a.callee.name==="require"||t.parser==="json5"||t.parser==="jsonc"||t.parser==="json")return"never-break-after-operator";let u=P5(n);if(O7(s)||R7(s)||RA(s)&&u)return"break-lhs";let l=U7(s,n,t);return e.call(()=>$7(e,t,r,l),i)?"break-after-operator":M7(s)?"break-lhs":!u&&(l||a.type==="TemplateLiteral"||a.type==="TaggedTemplateExpression"||l9(a)||ln(a)||a.type==="ClassExpression")?"never-break-after-operator":"fluid"}function $7(e,t,r,n){let i=e.node;if(Ln(i)&&!vu(i))return!0;switch(i.type){case"StringLiteralTypeAnnotation":case"SequenceExpression":return!0;case"TSConditionalType":case"ConditionalTypeAnnotation":if(!t.experimentalTernaries&&!q7(i))break;return!0;case"ConditionalExpression":{if(!t.experimentalTernaries){let{test:l}=i;return Ln(l)&&!vu(l)}let{consequent:o,alternate:u}=i;return o.type==="ConditionalExpression"||u.type==="ConditionalExpression"}case"ClassExpression":return Me(i.decorators)}if(n)return!1;let s=i,a=[];for(;;)if(s.type==="UnaryExpression"||s.type==="AwaitExpression"||s.type==="YieldExpression"&&s.argument!==null)s=s.argument,a.push("argument");else if(s.type==="TSNonNullExpression")s=s.expression,a.push("expression");else break;return!!(yt(s)||e.call(()=>UA(e,t,r),...a))}function O7(e){if(jA(e)){let t=e.left||e.id;return t.type==="ObjectPattern"&&t.properties.length>2&&t.properties.some(r=>{var n;return Li(r)&&(!r.shorthand||((n=r.value)==null?void 0:n.type)==="AssignmentPattern")})}return!1}function Zl(e){return e.type==="AssignmentExpression"}function jA(e){return Zl(e)||e.type==="VariableDeclarator"}function M7(e){let t=j7(e);if(Me(t)){let r=e.type==="TSTypeAliasDeclaration"?"constraint":"bound";if(t.length>1&&t.some(n=>n[r]||n.default))return!0}return!1}function j7(e){var t;if(lf(e))return(t=e.typeParameters)==null?void 0:t.params}function R7(e){if(e.type!=="VariableDeclarator")return!1;let{typeAnnotation:t}=e.id;if(!t||!t.typeAnnotation)return!1;let r=iD(t.typeAnnotation);return Me(r)&&r.length>1&&r.some(n=>Me(iD(n))||n.type==="TSConditionalType")}function RA(e){var t;return e.type==="VariableDeclarator"&&((t=e.init)==null?void 0:t.type)==="ArrowFunctionExpression"}function iD(e){let t;switch(e.type){case"GenericTypeAnnotation":t=e.typeParameters;break;case"TSTypeReference":t=e.typeArguments;break}return t==null?void 0:t.params}function UA(e,t,r,n=!1){var a;let{node:i}=e,s=()=>UA(e,t,r,!0);if(i.type==="ChainExpression"||i.type==="TSNonNullExpression")return e.call(s,"expression");if(Ae(i)){if((a=Oc(e,t,r).label)!=null&&a.memberChain)return!1;let o=fr(i);return!(o.length===0||o.length===1&&Py(o[0],t))||V7(i,r)?!1:e.call(s,"callee")}return Oe(i)?e.call(s,"object"):n&&(i.type==="Identifier"||i.type==="ThisExpression")}function U7(e,t,r){return Li(e)?(t=jy(t),typeof t=="string"&&Aa(t)1)return!0;if(r.length===1){let i=r[0];if(cn(i)||Uu(i)||i.type==="TSTypeLiteral"||i.type==="ObjectTypeAnnotation")return!0}let n=e.typeParameters?"typeParameters":"typeArguments";if($t(t(n)))return!0}return!1}function z7(e){var t;return(t=e.typeParameters??e.typeArguments)==null?void 0:t.params}function sD(e){switch(e.type){case"FunctionTypeAnnotation":case"GenericTypeAnnotation":case"TSFunctionType":return!!e.typeParameters;case"TSTypeReference":return!!e.typeArguments;default:return!1}}function q7(e){return sD(e.checkType)||sD(e.extendsType)}var ec=new WeakMap;function VA(e){return/^(?:\d+|\d+\.\d+)$/u.test(e)}function aD(e,t){return t.parser==="json"||t.parser==="jsonc"||!yt(e.key)||Fa(Yt(e.key),t).slice(1,-1)!==e.key.value?!1:!!(o7(e.key.value)&&!(t.parser==="babel-ts"&&e.type==="ClassProperty"||(t.parser==="typescript"||t.parser==="oxc-ts")&&e.type==="PropertyDefinition")||VA(e.key.value)&&String(Number(e.key.value))===e.key.value&&e.type!=="ImportAttribute"&&(t.parser==="babel"||t.parser==="acorn"||t.parser==="oxc"||t.parser==="espree"||t.parser==="meriyah"||t.parser==="__babel_estree"))}function H7(e,t){let{key:r}=e.node;return(r.type==="Identifier"||ln(r)&&VA(Pa(Yt(r)))&&String(r.value)===Pa(Yt(r))&&!(t.parser==="typescript"||t.parser==="babel-ts"||t.parser==="oxc-ts"))&&(t.parser==="json"||t.parser==="jsonc"||t.quoteProps==="consistent"&&ec.get(e.parent))}function qu(e,t,r){let{node:n}=e;if(n.computed)return["[",r("key"),"]"];let{parent:i}=e,{key:s}=n;if(t.quoteProps==="consistent"&&!ec.has(i)){let a=e.siblings.some(o=>!o.computed&&yt(o.key)&&!aD(o,t));ec.set(i,a)}if(H7(e,t)){let a=Fa(JSON.stringify(s.type==="Identifier"?s.name:s.value.toString()),t);return e.call(()=>Ar(e,a,t),"key")}return aD(n,t)&&(t.quoteProps==="as-needed"||t.quoteProps==="consistent"&&!ec.get(i))?e.call(()=>Ar(e,/^\d/u.test(s.value)?Pa(s.value):s.value,t),"key"):r("key")}function $h(e,t,r){let{node:n}=e;return n.shorthand?r("value"):zu(e,t,r,qu(e,t,r),":","value")}var W7=({node:e,key:t,parent:r})=>t==="value"&&e.type==="FunctionExpression"&&(r.type==="ObjectMethod"||r.type==="ClassMethod"||r.type==="ClassPrivateMethod"||r.type==="MethodDefinition"||r.type==="TSAbstractMethodDefinition"||r.type==="TSDeclareMethod"||r.type==="Property"&&Ru(r));function zA(e,t,r,n){if(W7(e))return zy(e,t,r);let{node:i}=e,s=!1;if((i.type==="FunctionDeclaration"||i.type==="FunctionExpression")&&(n!=null&&n.expandLastArg)){let{parent:c}=e;Ae(c)&&(fr(c).length>1||Nt(i).every(p=>p.type==="Identifier"&&!p.typeAnnotation))&&(s=!0)}let a=[pr(e),i.async?"async ":"",`function${i.generator?"*":""} `,i.id?r("id"):""],o=Ps(e,t,r,s),u=Ap(e,r),l=Va(i,u);return a.push(r("typeParameters"),I([l?I(o):o,u]),i.body?" ":"",r("body")),t.semi&&(i.declare||!i.body)&&a.push(";"),a}function Df(e,t,r){let{node:n}=e,{kind:i}=n,s=n.value||n,a=[];return!i||i==="init"||i==="method"||i==="constructor"?s.async&&a.push("async "):a.push(i," "),s.generator&&a.push("*"),a.push(qu(e,t,r),n.optional?"?":"",n===s?zy(e,t,r):r("value")),a}function zy(e,t,r){let{node:n}=e,i=Ps(e,t,r),s=Ap(e,r),a=r7(n),o=Va(n,s),u=[r("typeParameters"),I([a?I(i,{shouldBreak:!0}):o?I(i):i,s])];return n.body?u.push(" ",r("body")):u.push(t.semi?";":""),u}function J7(e){let t=Nt(e);return t.length===1&&!e.typeParameters&&!X(e,ee.Dangling)&&t[0].type==="Identifier"&&!t[0].typeAnnotation&&!X(t[0])&&!t[0].optional&&!e.predicate&&!e.returnType}function qA(e,t){if(t.arrowParens==="always")return!1;if(t.arrowParens==="avoid"){let{node:r}=e;return J7(r)}return!1}function Ap(e,t){let{node:r}=e,n=[xt(e,t,"returnType")];return r.predicate&&n.push(t("predicate")),n}function HA(e,t,r){let{node:n}=e,i=[];if(n.argument){let o=r("argument");G7(t,n.argument)?o=["(",R([U,o]),U,")"]:(Ln(n.argument)||t.experimentalTernaries&&n.argument.type==="ConditionalExpression"&&(n.argument.consequent.type==="ConditionalExpression"||n.argument.alternate.type==="ConditionalExpression"))&&(o=I([ue("("),R([j,o]),j,ue(")")])),i.push(" ",o)}let s=X(n,ee.Dangling),a=t.semi&&s&&X(n,ee.Last|ee.Line);return a&&i.push(";"),s&&i.push(" ",$e(e,t)),!a&&t.semi&&i.push(";"),i}function X7(e,t,r){return["return",HA(e,t,r)]}function K7(e,t,r){return["throw",HA(e,t,r)]}function G7(e,t){if(jr(e.originalText,t)||X(t,ee.Leading,r=>cr(e.originalText,me(r),de(r)))&&!mt(t))return!0;if(Fy(t)){let r=t,n;for(;n=a9(r);)if(r=n,jr(e.originalText,r))return!0}return!1}function Q7(e,t){if(t.semi||JA(e,t)||KA(e,t)||XA(e,t))return!1;let{node:r,key:n,parent:i}=e;return!!(r.type==="ExpressionStatement"&&(n==="body"&&(i.type==="Program"||i.type==="BlockStatement"||i.type==="StaticBlock"||i.type==="TSModuleBlock")||n==="consequent"&&i.type==="SwitchCase")&&e.call(()=>WA(e,t),"expression"))}function WA(e,t){let{node:r}=e;switch(r.type){case"ParenthesizedExpression":case"TypeCastExpression":case"ArrayExpression":case"ArrayPattern":case"TemplateLiteral":case"TemplateElement":case"RegExpLiteral":return!0;case"ArrowFunctionExpression":if(!qA(e,t))return!0;break;case"UnaryExpression":{let{prefix:n,operator:i}=r;if(n&&(i==="+"||i==="-"))return!0;break}case"BindExpression":if(!r.object)return!0;break;case"Literal":if(r.regex)return!0;break;default:if(mt(r))return!0}return ji(e,t)?!0:Fy(r)?e.call(()=>WA(e,t),...Mv(r)):!1}var qy=({node:e,parent:t})=>e.type==="ExpressionStatement"&&t.type==="Program"&&t.body.length===1&&(Array.isArray(t.directives)&&t.directives.length===0||!t.directives);function JA(e,t){return(t.parentParser==="markdown"||t.parentParser==="mdx")&&qy(e)&&mt(e.node.expression)}function XA(e,t){return t.__isHtmlInlineEventHandler&&qy(e)}function KA(e,t){return(t.parser==="__vue_event_binding"||t.parser==="__vue_ts_event_binding")&&qy(e)}var Y7=class extends Error{constructor(r,n,i="type"){super(`Unexpected ${n} node ${i}: ${JSON.stringify(r[i])}.`);H(this,"name","UnexpectedNodeError");this.node=r}},za=Y7;function Z7(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var mr,Uc,GA,i2,e$=(i2=class{constructor(t){Ui(this,Uc);Ui(this,mr,void 0);$p(this,mr,new Set(t))}getLeadingWhitespaceCount(t){let r=gt(this,mr),n=0;for(let i=0;i=0&&r.has(t.charAt(i));i--)n++;return n}getLeadingWhitespace(t){let r=this.getLeadingWhitespaceCount(t);return t.slice(0,r)}getTrailingWhitespace(t){let r=this.getTrailingWhitespaceCount(t);return t.slice(t.length-r)}hasLeadingWhitespace(t){return gt(this,mr).has(t.charAt(0))}hasTrailingWhitespace(t){return gt(this,mr).has(Se(0,t,-1))}trimStart(t){let r=this.getLeadingWhitespaceCount(t);return t.slice(r)}trimEnd(t){let r=this.getTrailingWhitespaceCount(t);return t.slice(0,t.length-r)}trim(t){return this.trimEnd(this.trimStart(t))}split(t,r=!1){let n=`[${Z7([...gt(this,mr)].join(""))}]+`,i=new RegExp(r?`(${n})`:n,"u");return t.split(i)}hasWhitespaceCharacter(t){let r=gt(this,mr);return Array.prototype.some.call(t,n=>r.has(n))}hasNonWhitespaceCharacter(t){let r=gt(this,mr);return Array.prototype.some.call(t,n=>!r.has(n))}isWhitespaceOnly(t){let r=gt(this,mr);return Array.prototype.every.call(t,n=>r.has(n))}dedentString(t){let r=Kn(this,Uc,GA).call(this,t);return r===0?t:t.split(` +`)+s}function hL(e){if(!Wr(e))return!1;let t=`*${e.value}*`.split(` +`);return t.length>1&&t.every(r=>r.trimStart()[0]==="*")}var qh=new WeakMap;function dL(e){return qh.has(e)||qh.set(e,hL(e)),qh.get(e)}var fL=dL;function mL(e,t){let r=e.node;if(Wu(r))return t.originalText.slice(me(r),de(r)).trimEnd();if(fL(r))return yL(r);if(Wr(r))return["/*",ys(r.value),"*/"];throw new Error("Not a comment: "+JSON.stringify(r))}function yL(e){let t=e.value.split(` +`);return["/*",ge(U,t.map((r,n)=>n===0?r.trimEnd():" "+(ny.type==="ForOfStatement"))==null?void 0:a.left;if(f&&Lt(f,y=>y===r))return!0}if(n==="object"&&r.name==="let"&&i.type==="MemberExpression"&&i.computed&&!i.optional){let f=e.findAncestor(C=>C.type==="ExpressionStatement"||C.type==="ForStatement"||C.type==="ForInStatement"),y=f?f.type==="ExpressionStatement"?f.expression:f.type==="ForStatement"?f.init:f.left:void 0;if(y&&Lt(y,C=>C===r))return!0}if(n==="expression")switch(r.name){case"await":case"interface":case"module":case"using":case"yield":case"let":case"component":case"hook":case"type":{let f=e.findAncestor(y=>!Or(y));if(f!==i&&f.type==="ExpressionStatement")return!0}}return!1}if(r.type==="ObjectExpression"||r.type==="FunctionExpression"||r.type==="ClassExpression"||r.type==="DoExpression"){let f=(o=e.findAncestor(y=>y.type==="ExpressionStatement"))==null?void 0:o.expression;if(f&&Lt(f,y=>y===r))return!0}if(r.type==="ObjectExpression"){let f=(u=e.findAncestor(y=>y.type==="ArrowFunctionExpression"))==null?void 0:u.body;if(f&&f.type!=="SequenceExpression"&&f.type!=="AssignmentExpression"&&Lt(f,y=>y===r))return!0}switch(i.type){case"ParenthesizedExpression":return!1;case"ClassDeclaration":case"ClassExpression":if(n==="superClass"&&(r.type==="ArrowFunctionExpression"||r.type==="AssignmentExpression"||r.type==="AwaitExpression"||r.type==="BinaryExpression"||r.type==="ConditionalExpression"||r.type==="LogicalExpression"||r.type==="NewExpression"||r.type==="ObjectExpression"||r.type==="SequenceExpression"||r.type==="TaggedTemplateExpression"||r.type==="UnaryExpression"||r.type==="UpdateExpression"||r.type==="YieldExpression"||r.type==="TSNonNullExpression"||r.type==="ClassExpression"&&Me(r.decorators)))return!0;break;case"ExportDefaultDeclaration":return zA(e,t)||r.type==="SequenceExpression";case"Decorator":if(n==="expression"&&!vL(r))return!0;break;case"TypeAnnotation":if(e.match(void 0,void 0,(f,y)=>y==="returnType"&&f.type==="ArrowFunctionExpression")&&xL(r))return!0;break;case"BinaryExpression":if(n==="left"&&(i.operator==="in"||i.operator==="instanceof")&&r.type==="UnaryExpression")return!0;break;case"VariableDeclarator":if(n==="init"&&e.match(void 0,void 0,(f,y)=>y==="declarations"&&f.type==="VariableDeclaration",(f,y)=>y==="left"&&f.type==="ForInStatement"))return!0;break}switch(r.type){case"UpdateExpression":if(i.type==="UnaryExpression")return r.prefix&&(r.operator==="++"&&i.operator==="+"||r.operator==="--"&&i.operator==="-");case"UnaryExpression":switch(i.type){case"UnaryExpression":return r.operator===i.operator&&(r.operator==="+"||r.operator==="-");case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"TaggedTemplateExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"BinaryExpression":return n==="left"&&i.operator==="**";case"TSNonNullExpression":return!0;default:return!1}case"BinaryExpression":if(i.type==="UpdateExpression"||r.operator==="in"&&DL(e))return!0;if(r.operator==="|>"&&((l=r.extra)!=null&&l.parenthesized)){let f=e.grandparent;if(f.type==="BinaryExpression"&&f.operator==="|>")return!0}case"TSTypeAssertion":case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"LogicalExpression":switch(i.type){case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return!Or(r);case"ConditionalExpression":return Or(r)||$I(r);case"CallExpression":case"NewExpression":case"OptionalCallExpression":return n==="callee";case"ClassExpression":case"ClassDeclaration":return n==="superClass";case"TSTypeAssertion":case"TaggedTemplateExpression":case"UnaryExpression":case"JSXSpreadAttribute":case"SpreadElement":case"BindExpression":case"AwaitExpression":case"TSNonNullExpression":case"UpdateExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"AssignmentExpression":case"AssignmentPattern":return n==="left"&&(r.type==="TSTypeAssertion"||Or(r));case"LogicalExpression":if(r.type==="LogicalExpression")return i.operator!==r.operator;case"BinaryExpression":{let{operator:f,type:y}=r;if(!f&&y!=="TSTypeAssertion")return!0;let C=Uc(f),g=i.operator,m=Uc(g);return!!(m>C||n==="right"&&m===C||m===C&&!z0(g,f)||m");default:return!1}case"TSFunctionType":if(e.match(f=>f.type==="TSFunctionType",(f,y)=>y==="typeAnnotation"&&f.type==="TSTypeAnnotation",(f,y)=>y==="returnType"&&f.type==="ArrowFunctionExpression"))return!0;case"TSConditionalType":case"TSConstructorType":case"ConditionalTypeAnnotation":if(n==="extendsType"&&Pi(r)&&i.type===r.type||n==="checkType"&&Pi(i))return!0;if(n==="extendsType"&&i.type==="TSConditionalType"){let{typeAnnotation:f}=r.returnType||r.typeAnnotation;if(f.type==="TSTypePredicate"&&f.typeAnnotation&&(f=f.typeAnnotation.typeAnnotation),f.type==="TSInferType"&&f.typeParameter.constraint)return!0}case"TSUnionType":case"TSIntersectionType":if(pn(i)||Xu(i))return!0;case"TSInferType":if(r.type==="TSInferType"){if(i.type==="TSRestType")return!1;if(n==="types"&&(i.type==="TSUnionType"||i.type==="TSIntersectionType")&&r.typeParameter.type==="TSTypeParameter"&&r.typeParameter.constraint)return!0}case"TSTypeOperator":return i.type==="TSArrayType"||i.type==="TSOptionalType"||i.type==="TSRestType"||n==="objectType"&&i.type==="TSIndexedAccessType"||i.type==="TSTypeOperator"||i.type==="TSTypeAnnotation"&&e.grandparent.type.startsWith("TSJSDoc");case"TSTypeQuery":return n==="objectType"&&i.type==="TSIndexedAccessType"||n==="elementType"&&i.type==="TSArrayType";case"TypeOperator":return i.type==="ArrayTypeAnnotation"||i.type==="NullableTypeAnnotation"||n==="objectType"&&(i.type==="IndexedAccessType"||i.type==="OptionalIndexedAccessType")||i.type==="TypeOperator";case"TypeofTypeAnnotation":return n==="objectType"&&(i.type==="IndexedAccessType"||i.type==="OptionalIndexedAccessType")||n==="elementType"&&i.type==="ArrayTypeAnnotation";case"ArrayTypeAnnotation":return i.type==="NullableTypeAnnotation";case"IntersectionTypeAnnotation":case"UnionTypeAnnotation":return i.type==="TypeOperator"||i.type==="KeyofTypeAnnotation"||i.type==="ArrayTypeAnnotation"||i.type==="NullableTypeAnnotation"||i.type==="IntersectionTypeAnnotation"||i.type==="UnionTypeAnnotation"||n==="objectType"&&(i.type==="IndexedAccessType"||i.type==="OptionalIndexedAccessType");case"InferTypeAnnotation":case"NullableTypeAnnotation":return i.type==="ArrayTypeAnnotation"||n==="objectType"&&(i.type==="IndexedAccessType"||i.type==="OptionalIndexedAccessType");case"ComponentTypeAnnotation":case"FunctionTypeAnnotation":{if(r.type==="ComponentTypeAnnotation"&&(r.rendersType===null||r.rendersType===void 0))return!1;if(e.match(void 0,(y,C)=>C==="typeAnnotation"&&y.type==="TypeAnnotation",(y,C)=>C==="returnType"&&y.type==="ArrowFunctionExpression")||e.match(void 0,(y,C)=>C==="typeAnnotation"&&y.type==="TypePredicate",(y,C)=>C==="typeAnnotation"&&y.type==="TypeAnnotation",(y,C)=>C==="returnType"&&y.type==="ArrowFunctionExpression"))return!0;let f=i.type==="NullableTypeAnnotation"?e.grandparent:i;return f.type==="UnionTypeAnnotation"||f.type==="IntersectionTypeAnnotation"||f.type==="ArrayTypeAnnotation"||n==="objectType"&&(f.type==="IndexedAccessType"||f.type==="OptionalIndexedAccessType")||n==="checkType"&&i.type==="ConditionalTypeAnnotation"||n==="extendsType"&&i.type==="ConditionalTypeAnnotation"&&((c=r.returnType)==null?void 0:c.type)==="InferTypeAnnotation"&&((p=r.returnType)==null?void 0:p.typeParameter.bound)||f.type==="NullableTypeAnnotation"||i.type==="FunctionTypeParam"&&i.name===null&&Nt(r).some(y=>{var C;return((C=y.typeAnnotation)==null?void 0:C.type)==="NullableTypeAnnotation"})}case"OptionalIndexedAccessType":return n==="objectType"&&i.type==="IndexedAccessType";case"StringLiteral":case"NumericLiteral":case"Literal":if(typeof r.value=="string"&&i.type==="ExpressionStatement"&&typeof i.directive!="string"){let f=e.grandparent;return f.type==="Program"||f.type==="BlockStatement"}return n==="object"&&Oe(i)&&cn(r);case"AssignmentExpression":return!((n==="init"||n==="update")&&i.type==="ForStatement"||n==="expression"&&r.left.type!=="ObjectPattern"&&i.type==="ExpressionStatement"||n==="key"&&i.type==="TSPropertySignature"||i.type==="AssignmentExpression"||n==="expressions"&&i.type==="SequenceExpression"&&e.match(void 0,void 0,(f,y)=>(y==="init"||y==="update")&&f.type==="ForStatement")||n==="value"&&i.type==="Property"&&e.match(void 0,void 0,(f,y)=>y==="properties"&&f.type==="ObjectPattern")||i.type==="NGChainedExpression"||n==="node"&&i.type==="JsExpressionRoot");case"ConditionalExpression":switch(i.type){case"TaggedTemplateExpression":case"UnaryExpression":case"SpreadElement":case"BinaryExpression":case"LogicalExpression":case"NGPipeExpression":case"ExportDefaultDeclaration":case"AwaitExpression":case"JSXSpreadAttribute":case"TSTypeAssertion":case"TypeCastExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"TSNonNullExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"ConditionalExpression":return t.experimentalTernaries?!1:n==="test";case"MemberExpression":case"OptionalMemberExpression":return n==="object";default:return!1}case"FunctionExpression":switch(i.type){case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"TaggedTemplateExpression":return!0;default:return!1}case"ArrowFunctionExpression":switch(i.type){case"BinaryExpression":return i.operator!=="|>"||((h=r.extra)==null?void 0:h.parenthesized);case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"TSNonNullExpression":case"BindExpression":case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"AwaitExpression":case"TSTypeAssertion":case"MatchExpressionCase":return!0;case"TSInstantiationExpression":return n==="expression";case"ConditionalExpression":return n==="test";default:return!1}case"ClassExpression":switch(i.type){case"NewExpression":return n==="callee";default:return!1}case"OptionalMemberExpression":case"OptionalCallExpression":case"CallExpression":case"MemberExpression":if(CL(e))return!0;case"TaggedTemplateExpression":case"TSNonNullExpression":if(n==="callee"&&(i.type==="BindExpression"||i.type==="NewExpression")){let f=r;for(;f;)switch(f.type){case"CallExpression":case"OptionalCallExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":case"BindExpression":f=f.object;break;case"TaggedTemplateExpression":f=f.tag;break;case"TSNonNullExpression":f=f.expression;break;default:return!1}}return!1;case"BindExpression":return n==="callee"&&(i.type==="BindExpression"||i.type==="NewExpression")||n==="object"&&Oe(i);case"NGPipeExpression":return!(i.type==="NGRoot"||i.type==="NGMicrosyntaxExpression"||i.type==="ObjectProperty"&&!((d=r.extra)!=null&&d.parenthesized)||At(i)||n==="arguments"&&be(i)||n==="right"&&i.type==="NGPipeExpression"||n==="property"&&i.type==="MemberExpression"||i.type==="AssignmentExpression");case"JSXFragment":case"JSXElement":return n==="callee"||n==="left"&&i.type==="BinaryExpression"&&i.operator==="<"||!At(i)&&i.type!=="ArrowFunctionExpression"&&i.type!=="AssignmentExpression"&&i.type!=="AssignmentPattern"&&i.type!=="BinaryExpression"&&i.type!=="NewExpression"&&i.type!=="ConditionalExpression"&&i.type!=="ExpressionStatement"&&i.type!=="JsExpressionRoot"&&i.type!=="JSXAttribute"&&i.type!=="JSXElement"&&i.type!=="JSXExpressionContainer"&&i.type!=="JSXFragment"&&i.type!=="LogicalExpression"&&!be(i)&&!Oi(i)&&i.type!=="ReturnStatement"&&i.type!=="ThrowStatement"&&i.type!=="TypeCastExpression"&&i.type!=="VariableDeclarator"&&i.type!=="YieldExpression"&&i.type!=="MatchExpressionCase";case"TSInstantiationExpression":return n==="object"&&Oe(i);case"MatchOrPattern":return i.type==="MatchAsPattern"}return!1}var gL=le(["BlockStatement","BreakStatement","ComponentDeclaration","ClassBody","ClassDeclaration","ClassMethod","ClassProperty","PropertyDefinition","ClassPrivateProperty","ContinueStatement","DebuggerStatement","DeclareComponent","DeclareClass","DeclareExportAllDeclaration","DeclareExportDeclaration","DeclareFunction","DeclareHook","DeclareInterface","DeclareModule","DeclareModuleExports","DeclareNamespace","DeclareVariable","DeclareEnum","DoWhileStatement","EnumDeclaration","ExportAllDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExpressionStatement","ForInStatement","ForOfStatement","ForStatement","FunctionDeclaration","HookDeclaration","IfStatement","ImportDeclaration","InterfaceDeclaration","LabeledStatement","MethodDefinition","ReturnStatement","SwitchStatement","ThrowStatement","TryStatement","TSDeclareFunction","TSEnumDeclaration","TSImportEqualsDeclaration","TSInterfaceDeclaration","TSModuleDeclaration","TSNamespaceExportDeclaration","TypeAlias","VariableDeclaration","WhileStatement","WithStatement"]);function DL(e){let t=0,{node:r}=e;for(;r;){let n=e.getParentNode(t++);if((n==null?void 0:n.type)==="ForStatement"&&n.init===r)return!0;r=n}return!1}function xL(e){return gf(e,t=>t.type==="ObjectTypeAnnotation"&&gf(t,r=>r.type==="FunctionTypeAnnotation"))}function EL(e){return zr(e)}function Bo(e){let{parent:t,key:r}=e;switch(t.type){case"NGPipeExpression":if(r==="arguments"&&e.isLast)return e.callParent(Bo);break;case"ObjectProperty":if(r==="value")return e.callParent(()=>e.key==="properties"&&e.isLast);break;case"BinaryExpression":case"LogicalExpression":if(r==="right")return e.callParent(Bo);break;case"ConditionalExpression":if(r==="alternate")return e.callParent(Bo);break;case"UnaryExpression":if(t.prefix)return e.callParent(Bo);break}return!1}function zA(e,t){let{node:r,parent:n}=e;return r.type==="FunctionExpression"||r.type==="ClassExpression"?n.type==="ExportDefaultDeclaration"||!bf(e,t):!j0(r)||n.type!=="ExportDefaultDeclaration"&&bf(e,t)?!1:e.call(()=>zA(e,t),...rA(r))}function CL(e){return!!(e.match(void 0,(t,r)=>r==="expression"&&t.type==="ChainExpression",(t,r)=>r==="tag"&&t.type==="TaggedTemplateExpression")||e.match(t=>t.type==="OptionalCallExpression"||t.type==="OptionalMemberExpression",(t,r)=>r==="tag"&&t.type==="TaggedTemplateExpression")||e.match(t=>t.type==="OptionalCallExpression"||t.type==="OptionalMemberExpression",(t,r)=>r==="expression"&&t.type==="TSNonNullExpression",(t,r)=>r==="tag"&&t.type==="TaggedTemplateExpression")||e.match(void 0,(t,r)=>r==="expression"&&t.type==="ChainExpression",(t,r)=>r==="expression"&&t.type==="TSNonNullExpression",(t,r)=>r==="tag"&&t.type==="TaggedTemplateExpression")||e.match(void 0,(t,r)=>r==="expression"&&t.type==="TSNonNullExpression",(t,r)=>r==="expression"&&t.type==="ChainExpression",(t,r)=>r==="tag"&&t.type==="TaggedTemplateExpression")||e.match(t=>t.type==="OptionalMemberExpression"||t.type==="OptionalCallExpression",(t,r)=>r==="object"&&t.type==="MemberExpression"||r==="callee"&&(t.type==="CallExpression"||t.type==="NewExpression"))||e.match(t=>t.type==="OptionalMemberExpression"||t.type==="OptionalCallExpression",(t,r)=>r==="expression"&&t.type==="TSNonNullExpression",(t,r)=>r==="object"&&t.type==="MemberExpression"||r==="callee"&&t.type==="CallExpression")||e.match(t=>t.type==="CallExpression"||t.type==="MemberExpression",(t,r)=>r==="expression"&&t.type==="ChainExpression")&&(e.match(void 0,void 0,(t,r)=>r==="callee"&&(t.type==="CallExpression"&&!t.optional||t.type==="NewExpression")||r==="object"&&t.type==="MemberExpression"&&!t.optional)||e.match(void 0,void 0,(t,r)=>r==="expression"&&t.type==="TSNonNullExpression",(t,r)=>r==="object"&&t.type==="MemberExpression"||r==="callee"&&t.type==="CallExpression"))||e.match(t=>t.type==="CallExpression"||t.type==="MemberExpression",(t,r)=>r==="expression"&&t.type==="TSNonNullExpression",(t,r)=>r==="expression"&&t.type==="ChainExpression",(t,r)=>r==="object"&&t.type==="MemberExpression"||r==="callee"&&t.type==="CallExpression"))}function Tf(e){return e.type==="Identifier"?!0:Oe(e)?!e.computed&&!e.optional&&e.property.type==="Identifier"&&Tf(e.object):!1}function vL(e){return e.type==="ChainExpression"&&(e=e.expression),Tf(e)||be(e)&&!e.optional&&Tf(e.callee)}var Ui=bf;function AL(e,t){let r=t-1;r=wa(e,r,{backwards:!0}),r=ka(e,r,{backwards:!0}),r=wa(e,r,{backwards:!0});let n=ka(e,r,{backwards:!0});return r!==n}var bL=AL,TL=()=>!0;function ey(e,t){let r=e.node;return r.printed=!0,t.printer.printComment(e,t)}function SL(e,t){var l;let r=e.node,n=[ey(e,t)],{printer:i,originalText:s,locStart:a,locEnd:o}=t;if((l=i.isBlockComment)!=null&&l.call(i,r)){let c=Qt(s,o(r))?Qt(s,a(r),{backwards:!0})?U:Q:" ";n.push(c)}else n.push(U);let u=ka(s,wa(s,o(r)));return u!==!1&&Qt(s,u)&&n.push(U),n}function FL(e,t,r){var l;let n=e.node,i=ey(e,t),{printer:s,originalText:a,locStart:o}=t,u=(l=s.isBlockComment)==null?void 0:l.call(s,n);if(r!=null&&r.hasLineSuffix&&!(r!=null&&r.isBlock)||Qt(a,o(n),{backwards:!0})){let c=bL(a,o(n));return{doc:p2([U,c?U:"",i]),isBlock:u,hasLineSuffix:!0}}return!u||r!=null&&r.hasLineSuffix?{doc:[p2([" ",i]),Mn],isBlock:u,hasLineSuffix:!0}:{doc:[" ",i],isBlock:u,hasLineSuffix:!1}}function $e(e,t,r={}){let{node:n}=e;if(!Me(n==null?void 0:n.comments))return"";let{indent:i=!1,marker:s,filter:a=TL}=r,o=[];if(e.each(({node:l})=>{l.leading||l.trailing||l.marker!==s||!a(l)||o.push(ey(e,t))},"comments"),o.length===0)return"";let u=ge(U,o);return i?R([U,u]):u}function kp(e,t){let r=e.node;if(!r)return{};let n=t[Symbol.for("printedComments")];if((r.comments||[]).filter(o=>!n.has(o)).length===0)return{leading:"",trailing:""};let i=[],s=[],a;return e.each(()=>{let o=e.node;if(n!=null&&n.has(o))return;let{leading:u,trailing:l}=o;u?i.push(SL(e,t)):l&&(a=FL(e,t,a),s.push(a.doc))},"comments"),{leading:i,trailing:s}}function Ar(e,t,r){let{leading:n,trailing:i}=kp(e,r);return!n&&!i?t:Cf(t,s=>[n,s,i])}var qc=class extends Error{constructor(){super(...arguments);H(this,"name","ArgExpansionBailout")}};function Ns(e,t,r,n,i){let s=e.node,a=Nt(s),o=i&&s.typeParameters?r("typeParameters"):"";if(a.length===0)return[o,"(",$e(e,t,{filter:d=>qr(t.originalText,de(d))===")"}),")"];let{parent:u}=e,l=Fp(u),c=qA(s),p=[];if(QI(e,(d,f)=>{let y=f===a.length-1;y&&s.rest&&p.push("..."),p.push(r()),!y&&(p.push(","),l||c?p.push(" "):yn(a[f],t)?p.push(U,U):p.push(Q))}),n&&!kL(e)){if($t(o)||$t(p))throw new qc;return _([zc(o),"(",zc(p),")"])}let h=a.every(d=>!Me(d.decorators));return c&&h?[o,"(",...p,")"]:l?[o,"(",...p,")"]:(sA(u)||RI(u)||u.type==="TypeAlias"||u.type==="UnionTypeAnnotation"||u.type==="IntersectionTypeAnnotation"||u.type==="FunctionTypeAnnotation"&&u.returnType===s)&&a.length===1&&a[0].name===null&&s.this!==a[0]&&a[0].typeAnnotation&&s.typeParameters===null&&U0(a[0].typeAnnotation)&&!s.rest?t.arrowParens==="always"||s.type==="HookTypeAnnotation"?["(",...p,")"]:p:[o,"(",R([j,...p]),ue(!GI(s)&&mn(t,"all")?",":""),j,")"]}function qA(e){if(!e)return!1;let t=Nt(e);if(t.length!==1)return!1;let[r]=t;return!X(r)&&(r.type==="ObjectPattern"||r.type==="ArrayPattern"||r.type==="Identifier"&&r.typeAnnotation&&(r.typeAnnotation.type==="TypeAnnotation"||r.typeAnnotation.type==="TSTypeAnnotation")&&ki(r.typeAnnotation.typeAnnotation)||r.type==="FunctionTypeParam"&&ki(r.typeAnnotation)&&r!==e.rest||r.type==="AssignmentPattern"&&(r.left.type==="ObjectPattern"||r.left.type==="ArrayPattern")&&(r.right.type==="Identifier"||zr(r.right)&&r.right.properties.length===0||At(r.right)&&r.right.elements.length===0))}function wL(e){let t;return e.returnType?(t=e.returnType,t.typeAnnotation&&(t=t.typeAnnotation)):e.typeAnnotation&&(t=e.typeAnnotation),t}function Wa(e,t){var i;let r=wL(e);if(!r)return!1;let n=(i=e.typeParameters)==null?void 0:i.params;if(n){if(n.length>1)return!1;if(n.length===1){let s=n[0];if(s.constraint||s.default)return!1}}return Nt(e).length===1&&(ki(r)||$t(t))}function kL(e){return e.match(t=>t.type==="ArrowFunctionExpression"&&t.body.type==="BlockStatement",(t,r)=>{if(t.type==="CallExpression"&&r==="arguments"&&t.arguments.length===1&&t.callee.type==="CallExpression"){let n=t.callee.callee;return n.type==="Identifier"||n.type==="MemberExpression"&&!n.computed&&n.object.type==="Identifier"&&n.property.type==="Identifier"}return!1},(t,r)=>t.type==="VariableDeclarator"&&r==="init"||t.type==="ExportDefaultDeclaration"&&r==="declaration"||t.type==="TSExportAssignment"&&r==="expression"||t.type==="AssignmentExpression"&&r==="right"&&t.left.type==="MemberExpression"&&t.left.object.type==="Identifier"&&t.left.object.name==="module"&&t.left.property.type==="Identifier"&&t.left.property.name==="exports",t=>t.type!=="VariableDeclaration"||t.kind==="const"&&t.declarations.length===1)}function PL(e){let t=Nt(e);return t.length>1&&t.some(r=>r.type==="TSParameterProperty")}function Qo(e,t){return(t==="params"||t==="this"||t==="rest")&&qA(e)}function Mt(e){let{node:t}=e;return!t.optional||t.type==="Identifier"&&t===e.parent.key?"":be(t)||Oe(t)&&t.computed||t.type==="OptionalIndexedAccessType"?"?.":"?"}function HA(e){return e.node.definite||e.match(void 0,(t,r)=>r==="id"&&t.type==="VariableDeclarator"&&t.definite)?"!":""}var NL=le(["DeclareClass","DeclareComponent","DeclareFunction","DeclareHook","DeclareVariable","DeclareExportDeclaration","DeclareExportAllDeclaration","DeclareOpaqueType","DeclareTypeAlias","DeclareEnum","DeclareInterface"]);function pr(e){let{node:t}=e;return t.declare||NL(t)&&e.parent.type!=="DeclareExportDeclaration"?"declare ":""}var BL=le(["TSAbstractMethodDefinition","TSAbstractPropertyDefinition","TSAbstractAccessorProperty"]);function Pp({node:e}){return e.abstract||BL(e)?"abstract ":""}function ei(e,t,r){return e.type==="EmptyStatement"?X(e,ee.Leading)?[" ",t]:t:e.type==="BlockStatement"||r?[" ",t]:R([Q,t])}function Np(e){return e.accessibility?e.accessibility+" ":""}var IL=/^[\$A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC][\$0-9A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]*$/,_L=e=>IL.test(e),LL=_L;function $L(e){return e.length===1?e:e.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(?=\d)/u,"$1$2").replace(/^([+-]?[\d.]+)e[+-]?0+$/u,"$1").replace(/^([+-])?\./u,"$10.").replace(/(\.\d+?)0+(?=e|$)/u,"$1").replace(/\.(?=e|$)/u,"")}var Ia=$L,OL=0;function WA(e,t,r){var v;let{node:n,parent:i,grandparent:s,key:a}=e,o=a!=="body"&&(i.type==="IfStatement"||i.type==="WhileStatement"||i.type==="SwitchStatement"||i.type==="DoWhileStatement"),u=n.operator==="|>"&&((v=e.root.extra)==null?void 0:v.__isUsingHackPipeline),l=Sf(e,t,r,!1,o);if(o)return l;if(u)return _(l);if(a==="callee"&&(be(i)||i.type==="NewExpression")||i.type==="UnaryExpression"||Oe(i)&&!i.computed)return _([R([j,...l]),j]);let c=i.type==="ReturnStatement"||i.type==="ThrowStatement"||i.type==="JSXExpressionContainer"&&s.type==="JSXAttribute"||n.operator!=="|"&&i.type==="JsExpressionRoot"||n.type!=="NGPipeExpression"&&(i.type==="NGRoot"&&t.parser==="__ng_binding"||i.type==="NGMicrosyntaxExpression"&&s.type==="NGMicrosyntax"&&s.body.length===1)||n===i.body&&i.type==="ArrowFunctionExpression"||n!==i.body&&i.type==="ForStatement"||i.type==="ConditionalExpression"&&s.type!=="ReturnStatement"&&s.type!=="ThrowStatement"&&!be(s)&&s.type!=="NewExpression"||i.type==="TemplateLiteral"||jL(e),p=i.type==="AssignmentExpression"||i.type==="VariableDeclarator"||i.type==="ClassProperty"||i.type==="PropertyDefinition"||i.type==="TSAbstractPropertyDefinition"||i.type==="ClassPrivateProperty"||Oi(i),h=$n(n.left)&&z0(n.operator,n.left.operator);if(c||Fu(n)&&!h||!Fu(n)&&p)return _(l);if(l.length===0)return"";let d=mt(n.right),f=l.findIndex(T=>typeof T!="string"&&!Array.isArray(T)&&T.type===Fr),y=l.slice(0,f===-1?1:f+1),C=l.slice(y.length,d?-1:void 0),g=Symbol("logicalChain-"+ ++OL),m=_([...y,R(C)],{id:g});if(!d)return m;let x=Se(0,l,-1);return _([m,Su(x,{groupId:g})])}function Sf(e,t,r,n,i){var C;let{node:s}=e;if(!$n(s))return[_(r())];let a=[];z0(s.operator,s.left.operator)?a=e.call(()=>Sf(e,t,r,!0,i),"left"):a.push(_(r("left")));let o=Fu(s),u=s.right.type==="ChainExpression"?s.right.expression:s.right,l=(s.operator==="|>"||s.type==="NGPipeExpression"||ML(e,t))&&!Ur(t.originalText,u),c=!X(u,ee.Leading,fA)&&Ur(t.originalText,u),p=s.type==="NGPipeExpression"?"|":s.operator,h=s.type==="NGPipeExpression"&&s.arguments.length>0?_(R([j,": ",ge([Q,": "],e.map(()=>Hr(2,_(r())),"arguments"))])):"",d;if(o)d=[p,Ur(t.originalText,u)?R([Q,r("right"),h]):[" ",r("right"),h]];else{let g=p==="|>"&&((C=e.root.extra)!=null&&C.__isUsingHackPipeline)?e.call(()=>Sf(e,t,r,!0,i),"right"):r("right");if(t.experimentalOperatorPosition==="start"){let m="";if(c)switch(Ri(g)){case On:m=g.splice(0,1)[0];break;case Xn:m=g.contents.splice(0,1)[0];break}d=[Q,m,p," ",g,h]}else d=[l?Q:"",p,l?" ":Q,g,h]}let{parent:f}=e,y=X(s.left,ee.Trailing|ee.Line);if((y||!(i&&s.type==="LogicalExpression")&&f.type!==s.type&&s.left.type!==s.type&&s.right.type!==s.type)&&(d=_(d,{shouldBreak:y})),t.experimentalOperatorPosition==="start"?a.push(o||c?" ":"",d):a.push(l?"":" ",d),n&&X(s)){let g=Y0(Ar(e,a,t));return g.type===Mi?g.parts:Array.isArray(g)?g:[g]}return a}function Fu(e){return e.type!=="LogicalExpression"?!1:!!(zr(e.right)&&e.right.properties.length>0||At(e.right)&&e.right.elements.length>0||mt(e.right))}var y2=e=>e.type==="BinaryExpression"&&e.operator==="|";function ML(e,t){return(t.parser==="__vue_expression"||t.parser==="__vue_ts_expression")&&y2(e.node)&&!e.hasAncestor(r=>!y2(r)&&r.type!=="JsExpressionRoot")}function jL(e){if(e.key!=="arguments")return!1;let{parent:t}=e;if(!(be(t)&&!t.optional&&t.arguments.length===1))return!1;let{callee:r}=t;return r.type==="Identifier"&&r.name==="Boolean"}function JA(e,t,r){let{node:n}=e,{parent:i}=e,s=i.type!=="TypeParameterInstantiation"&&(!Pi(i)||!t.experimentalTernaries)&&i.type!=="TSTypeParameterInstantiation"&&i.type!=="GenericTypeAnnotation"&&i.type!=="TSTypeReference"&&i.type!=="TSTypeAssertion"&&i.type!=="TupleTypeAnnotation"&&i.type!=="TSTupleType"&&!(i.type==="FunctionTypeParam"&&!i.name&&e.grandparent.this!==i)&&!((xf(i)||i.type==="VariableDeclarator")&&Ur(t.originalText,n))&&!(xf(i)&&X(i.id,ee.Trailing|ee.Line)),a=XA(n),o=e.map(()=>{let d=r();return a||(d=Hr(2,d)),Ar(e,d,t)},"types"),u="",l="";if(hA(e)&&({leading:u,trailing:l}=kp(e,t)),a)return[u,ge(" | ",o),l];let c=s&&!Ur(t.originalText,n),p=[ue([c?Q:"","| "]),ge([Q,"| "],o)];if(Ui(e,t))return[u,_([R(p),j]),l];let h=[u,_(p)];return(i.type==="TupleTypeAnnotation"||i.type==="TSTupleType")&&i[i.type==="TupleTypeAnnotation"&&i.types?"types":"elementTypes"].length>1?[_([R([ue(["(",j]),h]),j,ue(")")]),l]:[_(s?R(h):h),l]}var RL=le(["VoidTypeAnnotation","TSVoidKeyword","NullLiteralTypeAnnotation","TSNullKeyword"]),UL=le(["ObjectTypeAnnotation","TSTypeLiteral","GenericTypeAnnotation","TSTypeReference"]);function XA(e){let{types:t}=e;if(t.some(n=>X(n)))return!1;let r=t.find(n=>UL(n));return r?t.every(n=>n===r||RL(n)):!1}function VL(e){return U0(e)||ki(e)?!0:pn(e)?XA(e):!1}var zL=new WeakSet;function Et(e,t,r="typeAnnotation"){let{node:{[r]:n}}=e;if(!n)return"";let i=!1;if(n.type==="TSTypeAnnotation"||n.type==="TypeAnnotation"){let s=e.call(KA,r);(s==="=>"||s===":"&&X(n,ee.Leading))&&(i=!0),zL.add(n)}return i?[" ",t(r)]:t(r)}var KA=e=>e.match(t=>t.type==="TSTypeAnnotation",(t,r)=>(r==="returnType"||r==="typeAnnotation")&&(t.type==="TSFunctionType"||t.type==="TSConstructorType"))?"=>":e.match(t=>t.type==="TSTypeAnnotation",(t,r)=>r==="typeAnnotation"&&(t.type==="TSJSDocNullableType"||t.type==="TSJSDocNonNullableType"||t.type==="TSTypePredicate"))||e.match(t=>t.type==="TypeAnnotation",(t,r)=>r==="typeAnnotation"&&t.type==="Identifier",(t,r)=>r==="id"&&t.type==="DeclareFunction")||e.match(t=>t.type==="TypeAnnotation",(t,r)=>r==="typeAnnotation"&&t.type==="Identifier",(t,r)=>r==="id"&&t.type==="DeclareHook")||e.match(t=>t.type==="TypeAnnotation",(t,r)=>r==="bound"&&t.type==="TypeParameter"&&t.usesExtendsBound)?"":":";function GA(e,t,r){let n=KA(e);return n?[n," ",r("typeAnnotation")]:r("typeAnnotation")}function qL(e,t,r,n){let{node:i}=e,s=i.inexact?"...":"";return X(i,ee.Dangling)?_([r,s,$e(e,t,{indent:!0}),j,n]):[r,s,n]}function ty(e,t,r){let{node:n}=e,i=[],s="[",a="]",o=n.type==="TupleTypeAnnotation"&&n.types?"types":n.type==="TSTupleType"||n.type==="TupleTypeAnnotation"?"elementTypes":"elements",u=n[o];if(u.length===0)i.push(qL(e,t,s,a));else{let l=Se(0,u,-1),c=(l==null?void 0:l.type)!=="RestElement"&&!n.inexact,p=l===null,h=Symbol("array"),d=!t.__inJestEach&&u.length>1&&u.every((C,g,m)=>{let x=C==null?void 0:C.type;if(!At(C)&&!zr(C))return!1;let v=m[g+1];if(v&&x!==v.type)return!1;let T=At(C)?"elements":"properties";return C[T]&&C[T].length>1}),f=QA(n,t),y=c?p?",":mn(t)?f?ue(",","",{groupId:h}):ue(","):"":"";i.push(_([s,R([j,f?WL(e,t,r,y):[HL(e,t,r,o,n.inexact),y],$e(e,t)]),j,a],{shouldBreak:d,id:h}))}return i.push(Mt(e),Et(e,r)),i}function QA(e,t){return At(e)&&e.elements.length>0&&e.elements.every(r=>r&&(cn(r)||nA(r)&&!X(r.argument))&&!X(r,ee.Trailing|ee.Line,n=>!Qt(t.originalText,me(n),{backwards:!0})))}function YA({node:e},{originalText:t}){let r=de(e);if(r===me(e))return!1;let{length:n}=t;for(;r{s.push(a?_(r()):""),(!o||i)&&s.push([",",Q,a&&YA(e,t)?j:""])},n),i&&s.push("..."),s}function WL(e,t,r,n){let i=[];return e.each(({isLast:s,next:a})=>{i.push([r(),s?n:","]),s||i.push(YA(e,t)?[U,U]:X(a,ee.Leading|ee.Line)?U:Q)},"elements"),kA(i)}function JL(e,t,r){let{node:n}=e,i=fr(n);if(i.length===0)return["(",$e(e,t),")"];let s=i.length-1;if(GL(i)){let p=["("];return Vc(e,(h,d)=>{p.push(r()),d!==s&&p.push(", ")}),p.push(")"),p}let a=!1,o=[];Vc(e,({node:p},h)=>{let d=r();h===s||(yn(p,t)?(a=!0,d=[d,",",U,U]):d=[d,",",Q]),o.push(d)});let u=!t.parser.startsWith("__ng_")&&n.type!=="ImportExpression"&&n.type!=="TSImportType"&&n.type!=="TSExternalModuleReference"&&mn(t,"all")?",":"";function l(){return _(["(",R([Q,...o]),u,Q,")"],{shouldBreak:!0})}if(a||e.parent.type!=="Decorator"&&WI(i))return l();if(KL(i)){let p=o.slice(1);if(p.some($t))return l();let h;try{h=r(o2(n,0),{expandFirstArg:!0})}catch(d){if(d instanceof qc)return l();throw d}return $t(h)?[Mn,is([["(",_(h,{shouldBreak:!0}),", ",...p,")"],l()])]:is([["(",h,", ",...p,")"],["(",_(h,{shouldBreak:!0}),", ",...p,")"],l()])}if(XL(i,o,t)){let p=o.slice(0,-1);if(p.some($t))return l();let h;try{h=r(o2(n,-1),{expandLastArg:!0})}catch(d){if(d instanceof qc)return l();throw d}return $t(h)?[Mn,is([["(",...p,_(h,{shouldBreak:!0}),")"],l()])]:is([["(",...p,h,")"],["(",...p,_(h,{shouldBreak:!0}),")"],l()])}let c=["(",R([j,...o]),ue(u),j,")"];return cA(e)?c:_(c,{shouldBreak:o.some($t)||a})}function Yo(e,t=!1){return zr(e)&&(e.properties.length>0||X(e))||At(e)&&(e.elements.length>0||X(e))||e.type==="TSTypeAssertion"&&Yo(e.expression)||Or(e)&&Yo(e.expression)||e.type==="FunctionExpression"||e.type==="ArrowFunctionExpression"&&(!e.returnType||!e.returnType.typeAnnotation||e.returnType.typeAnnotation.type!=="TSTypeReference"||QL(e.body))&&(e.body.type==="BlockStatement"||e.body.type==="ArrowFunctionExpression"&&Yo(e.body,!0)||zr(e.body)||At(e.body)||!t&&(be(e.body)||e.body.type==="ConditionalExpression")||mt(e.body))||e.type==="DoExpression"||e.type==="ModuleExpression"}function XL(e,t,r){var s,a;let n=Se(0,e,-1);if(e.length===1){let o=Se(0,t,-1);if((s=o.label)!=null&&s.embed&&((a=o.label)==null?void 0:a.hug)!==!1)return!0}let i=Se(0,e,-2);return!X(n,ee.Leading)&&!X(n,ee.Trailing)&&Yo(n)&&(!i||i.type!==n.type)&&(e.length!==2||i.type!=="ArrowFunctionExpression"||!At(n))&&!(e.length>1&&QA(n,r))}function KL(e){if(e.length!==2)return!1;let[t,r]=e;return t.type==="ModuleExpression"&&YL(r)?!0:!X(t)&&(t.type==="FunctionExpression"||t.type==="ArrowFunctionExpression"&&t.body.type==="BlockStatement")&&r.type!=="FunctionExpression"&&r.type!=="ArrowFunctionExpression"&&r.type!=="ConditionalExpression"&&ZA(r)&&!Yo(r)}function ZA(e){if(e.type==="ParenthesizedExpression")return ZA(e.expression);if(Or(e)||e.type==="TypeCastExpression"){let{typeAnnotation:t}=e;if(t.type==="TypeAnnotation"&&(t=t.typeAnnotation),t.type==="TSArrayType"&&(t=t.elementType,t.type==="TSArrayType"&&(t=t.elementType)),t.type==="GenericTypeAnnotation"||t.type==="TSTypeReference"){let r=t.type==="GenericTypeAnnotation"?t.typeParameters:t.typeArguments;(r==null?void 0:r.params.length)===1&&(t=r.params[0])}return U0(t)&&Lr(e.expression,1)}return Ba(e)&&fr(e).length>1?!1:$n(e)?Lr(e.left,1)&&Lr(e.right,1):iA(e)||Lr(e)}function GL(e){return e.length===2?g2(e,0):e.length===3?e[0].type==="Identifier"&&g2(e,1):!1}function g2(e,t){let r=e[t],n=e[t+1];return r.type==="ArrowFunctionExpression"&&Nt(r).length===0&&r.body.type==="BlockStatement"&&n.type==="ArrayExpression"&&!e.some(i=>X(i))}function QL(e){return e.type==="BlockStatement"&&(e.body.some(t=>t.type!=="EmptyStatement")||X(e,ee.Dangling))}function YL(e){if(!(e.type==="ObjectExpression"&&e.properties.length===1))return!1;let[t]=e.properties;return Oi(t)?!t.computed&&(t.key.type==="Identifier"&&t.key.name==="type"||yt(t.key)&&t.key.value==="type")&&yt(t.value)&&t.value.value==="module":!1}var Ff=JL;function ZL(e,t,r){return[r("object"),_(R([j,eb(e,t,r)]))]}function eb(e,t,r){return["::",r("callee")]}var e$=e=>((e.type==="ChainExpression"||e.type==="TSNonNullExpression")&&(e=e.expression),be(e)&&fr(e).length>0);function t$(e){let{node:t,ancestors:r}=e;for(let n of r){if(!(Oe(n)&&n.object===t||n.type==="TSNonNullExpression"&&n.expression===t))return n.type==="NewExpression"&&n.callee===t;t=n}return!1}function r$(e,t,r){var l;let n=r("object"),i=tb(e,t,r),{node:s}=e,a=e.findAncestor(c=>!(Oe(c)||c.type==="TSNonNullExpression")),o=e.findAncestor(c=>!(c.type==="ChainExpression"||c.type==="TSNonNullExpression")),u=a.type==="BindExpression"||a.type==="AssignmentExpression"&&a.left.type!=="Identifier"||t$(e)||s.computed||s.object.type==="Identifier"&&s.property.type==="Identifier"&&!Oe(o)||(o.type==="AssignmentExpression"||o.type==="VariableDeclarator")&&(e$(s.object)||((l=n.label)==null?void 0:l.memberChain));return Ku(n.label,[n,u?i:_(R([j,i]))])}function tb(e,t,r){let n=r("property"),{node:i}=e,s=Mt(e);return i.computed?!i.property||cn(i.property)?[s,"[",n,"]"]:_([s,"[",R([j,n]),j,"]"]):[s,".",n]}function rb(e,t,r){if(e.node.type==="ChainExpression")return e.call(()=>rb(e,t,r),"expression");let n=(e.parent.type==="ChainExpression"?e.grandparent:e.parent).type==="ExpressionStatement",i=[];function s(P){let{originalText:J}=t,K=za(J,de(P));return J.charAt(K)===")"?K!==!1&&$0(J,K+1):yn(P,t)}function a(){let{node:P}=e;if(P.type==="ChainExpression")return e.call(a,"expression");if(be(P)&&(Vs(P.callee)||be(P.callee))){let J=s(P);i.unshift({node:P,hasTrailingEmptyLine:J,printed:[Ar(e,[Mt(e),r("typeArguments"),Ff(e,t,r)],t),J?U:""]}),e.call(a,"callee")}else Vs(P)?(i.unshift({node:P,needsParens:Ui(e,t),printed:Ar(e,Oe(P)?tb(e,t,r):eb(e,t,r),t)}),e.call(a,"object")):P.type==="TSNonNullExpression"?(i.unshift({node:P,printed:Ar(e,"!",t)}),e.call(a,"expression")):i.unshift({node:P,printed:r()})}let{node:o}=e;i.unshift({node:o,printed:[Mt(e),r("typeArguments"),Ff(e,t,r)]}),o.callee&&e.call(a,"callee");let u=[],l=[i[0]],c=1;for(;c0&&u.push(l);function h(P){return/^[A-Z]|^[$_]+$/u.test(P)}function d(P){return P.length<=t.tabWidth}function f(P){var ne;let J=(ne=P[1][0])==null?void 0:ne.node.computed;if(P[0].length===1){let Z=P[0][0].node;return Z.type==="ThisExpression"||Z.type==="Identifier"&&(h(Z.name)||n&&d(Z.name)||J)}let K=Se(0,P[0],-1).node;return Oe(K)&&K.property.type==="Identifier"&&(h(K.property.name)||J)}let y=u.length>=2&&!X(u[1][0].node)&&f(u);function C(P){let J=P.map(K=>K.printed);return P.length>0&&Se(0,P,-1).needsParens?["(",...J,")"]:J}function g(P){return P.length===0?"":R([U,ge(U,P.map(C))])}let m=u.map(C),x=m,v=y?3:2,T=u.flat(),k=T.slice(1,-1).some(P=>X(P.node,ee.Leading))||T.slice(0,-1).some(P=>X(P.node,ee.Trailing))||u[v]&&X(u[v][0].node,ee.Leading);if(u.length<=v&&!k&&!u.some(P=>Se(0,P,-1).hasTrailingEmptyLine))return cA(e)?x:_(x);let N=Se(0,u[y?1:0],-1).node,E=!be(N)&&s(N),A=[C(u[0]),y?u.slice(1,2).map(C):"",E?U:"",g(u.slice(y?2:1))],b=i.map(({node:P})=>P).filter(be);function B(){let P=Se(0,Se(0,u,-1),-1).node,J=Se(0,m,-1);return be(P)&&$t(J)&&b.slice(0,-1).some(K=>K.arguments.some(bu))}let M;return k||b.length>2&&b.some(P=>!P.arguments.every(J=>Lr(J)))||m.slice(0,-1).some($t)||B()?M=_(A):M=[$t(x)||E?Mn:"",is([x,A])],Ku({memberChain:!0},M)}var n$=rb;function Hc(e,t,r){var p;let{node:n}=e,i=n.type==="NewExpression",s=Mt(e),a=fr(n),o=n.type!=="TSImportType"&&n.typeArguments?r("typeArguments"):"",u=a.length===1&&uA(a[0],t.originalText);if(u||s$(e)||a$(e)||Fp(n,e.parent)){let h=[];if(Vc(e,()=>{h.push(r())}),!(u&&((p=h[0].label)!=null&&p.embed)))return[i?"new ":"",D2(e,r),s,o,"(",ge(", ",h),")"]}let l=n.type==="ImportExpression"||n.type==="TSImportType"||n.type==="TSExternalModuleReference";if(!l&&!i&&Vs(n.callee)&&!e.call(()=>Ui(e,t),"callee",...n.callee.type==="ChainExpression"?["expression"]:[]))return n$(e,t,r);let c=[i?"new ":"",D2(e,r),s,o,Ff(e,t,r)];return l||be(n.callee)?_(c):c}function D2(e,t){let{node:r}=e;return r.type==="ImportExpression"?`import${r.phase?`.${r.phase}`:""}`:r.type==="TSImportType"?"import":r.type==="TSExternalModuleReference"?"require":t("callee")}var i$=["require","require.resolve","require.resolve.paths","import.meta.resolve"];function s$(e){let{node:t}=e;if(!(t.type==="ImportExpression"||t.type==="TSImportType"||t.type==="TSExternalModuleReference"||t.type==="CallExpression"&&!t.optional&&O0(t.callee,i$)))return!1;let r=fr(t);return r.length===1&&yt(r[0])&&!X(r[0])}function a$(e){let{node:t}=e;if(t.type!=="CallExpression"||t.optional||t.callee.type!=="Identifier")return!1;let r=fr(t);return t.callee.name==="require"?(r.length===1&&yt(r[0])||r.length>1)&&!X(r[0]):t.callee.name==="define"&&e.parent.type==="ExpressionStatement"?r.length===1||r.length===2&&r[0].type==="ArrayExpression"||r.length===3&&yt(r[0])&&r[1].type==="ArrayExpression":!1}function Gu(e,t,r,n,i,s){let a=l$(e,t,r,n,s),o=s?r(s,{assignmentLayout:a}):"";switch(a){case"break-after-operator":return _([_(n),i,_(R([Q,o]))]);case"never-break-after-operator":return _([_(n),i," ",o]);case"fluid":{let u=Symbol("assignment");return _([_(n),i,_(R(Q),{id:u}),hn,Su(o,{groupId:u})])}case"break-lhs":return _([n,i," ",_(o)]);case"chain":return[_(n),i,Q,o];case"chain-tail":return[_(n),i,R([Q,o])];case"chain-tail-arrow-chain":return[_(n),i,o];case"only-left":return n}}function o$(e,t,r){let{node:n}=e;return Gu(e,t,r,r("left"),[" ",n.operator],"right")}function u$(e,t,r){return Gu(e,t,r,r("id")," =","init")}function l$(e,t,r,n,i){let{node:s}=e,a=s[i];if(!a)return"only-left";let o=!oc(a);if(e.match(oc,nb,c=>!o||c.type!=="ExpressionStatement"&&c.type!=="VariableDeclaration"))return o?a.type==="ArrowFunctionExpression"&&a.body.type==="ArrowFunctionExpression"?"chain-tail-arrow-chain":"chain-tail":"chain";if(!o&&oc(a.right)||Ur(t.originalText,a))return"break-after-operator";if(s.type==="ImportAttribute"||a.type==="CallExpression"&&a.callee.name==="require"||t.parser==="json5"||t.parser==="jsonc"||t.parser==="json")return"never-break-after-operator";let u=n7(n);if(p$(s)||f$(s)||ib(s)&&u)return"break-lhs";let l=m$(s,n,t);return e.call(()=>c$(e,t,r,l),i)?"break-after-operator":h$(s)?"break-lhs":!u&&(l||a.type==="TemplateLiteral"||a.type==="TaggedTemplateExpression"||OI(a)||cn(a)||a.type==="ClassExpression")?"never-break-after-operator":"fluid"}function c$(e,t,r,n){let i=e.node;if($n(i)&&!Fu(i))return!0;switch(i.type){case"StringLiteralTypeAnnotation":case"SequenceExpression":return!0;case"TSConditionalType":case"ConditionalTypeAnnotation":if(!t.experimentalTernaries&&!D$(i))break;return!0;case"ConditionalExpression":{if(!t.experimentalTernaries){let{test:l}=i;return $n(l)&&!Fu(l)}let{consequent:o,alternate:u}=i;return o.type==="ConditionalExpression"||u.type==="ConditionalExpression"}case"ClassExpression":return Me(i.decorators)}if(n)return!1;let s=i,a=[];for(;;)if(s.type==="UnaryExpression"||s.type==="AwaitExpression"||s.type==="YieldExpression"&&s.argument!==null)s=s.argument,a.push("argument");else if(s.type==="TSNonNullExpression")s=s.expression,a.push("expression");else break;return!!(yt(s)||e.call(()=>sb(e,t,r),...a))}function p$(e){if(nb(e)){let t=e.left||e.id;return t.type==="ObjectPattern"&&t.properties.length>2&&t.properties.some(r=>{var n;return Oi(r)&&(!r.shorthand||((n=r.value)==null?void 0:n.type)==="AssignmentPattern")})}return!1}function oc(e){return e.type==="AssignmentExpression"}function nb(e){return oc(e)||e.type==="VariableDeclarator"}function h$(e){let t=d$(e);if(Me(t)){let r=e.type==="TSTypeAliasDeclaration"?"constraint":"bound";if(t.length>1&&t.some(n=>n[r]||n.default))return!0}return!1}function d$(e){var t;if(xf(e))return(t=e.typeParameters)==null?void 0:t.params}function f$(e){if(e.type!=="VariableDeclarator")return!1;let{typeAnnotation:t}=e.id;if(!t||!t.typeAnnotation)return!1;let r=x2(t.typeAnnotation);return Me(r)&&r.length>1&&r.some(n=>Me(x2(n))||n.type==="TSConditionalType")}function ib(e){var t;return e.type==="VariableDeclarator"&&((t=e.init)==null?void 0:t.type)==="ArrowFunctionExpression"}function x2(e){let t;switch(e.type){case"GenericTypeAnnotation":t=e.typeParameters;break;case"TSTypeReference":t=e.typeArguments;break}return t==null?void 0:t.params}function sb(e,t,r,n=!1){var a;let{node:i}=e,s=()=>sb(e,t,r,!0);if(i.type==="ChainExpression"||i.type==="TSNonNullExpression")return e.call(s,"expression");if(be(i)){if((a=Hc(e,t,r).label)!=null&&a.memberChain)return!1;let o=fr(i);return!(o.length===0||o.length===1&&V0(o[0],t))||y$(i,r)?!1:e.call(s,"callee")}return Oe(i)?e.call(s,"object"):n&&(i.type==="Identifier"||i.type==="ThisExpression")}function m$(e,t,r){return Oi(e)?(t=Y0(t),typeof t=="string"&&Fa(t)1)return!0;if(r.length===1){let i=r[0];if(pn(i)||Xu(i)||i.type==="TSTypeLiteral"||i.type==="ObjectTypeAnnotation")return!0}let n=e.typeParameters?"typeParameters":"typeArguments";if($t(t(n)))return!0}return!1}function g$(e){var t;return(t=e.typeParameters??e.typeArguments)==null?void 0:t.params}function E2(e){switch(e.type){case"FunctionTypeAnnotation":case"GenericTypeAnnotation":case"TSFunctionType":return!!e.typeParameters;case"TSTypeReference":return!!e.typeArguments;default:return!1}}function D$(e){return E2(e.checkType)||E2(e.extendsType)}var uc=new WeakMap;function ab(e){return/^(?:\d+|\d+\.\d+)$/u.test(e)}function C2(e,t){return t.parser==="json"||t.parser==="jsonc"||!yt(e.key)||Pa(Yt(e.key),t).slice(1,-1)!==e.key.value?!1:!!(LL(e.key.value)&&!(t.parser==="babel-ts"&&e.type==="ClassProperty"||(t.parser==="typescript"||t.parser==="oxc-ts")&&e.type==="PropertyDefinition")||ab(e.key.value)&&String(Number(e.key.value))===e.key.value&&e.type!=="ImportAttribute"&&(t.parser==="babel"||t.parser==="acorn"||t.parser==="oxc"||t.parser==="espree"||t.parser==="meriyah"||t.parser==="__babel_estree"))}function x$(e,t){let{key:r}=e.node;return(r.type==="Identifier"||cn(r)&&ab(Ia(Yt(r)))&&String(r.value)===Ia(Yt(r))&&!(t.parser==="typescript"||t.parser==="babel-ts"||t.parser==="oxc-ts"))&&(t.parser==="json"||t.parser==="jsonc"||t.quoteProps==="consistent"&&uc.get(e.parent))}function Qu(e,t,r){let{node:n}=e;if(n.computed)return["[",r("key"),"]"];let{parent:i}=e,{key:s}=n;if(t.quoteProps==="consistent"&&!uc.has(i)){let a=e.siblings.some(o=>!o.computed&&yt(o.key)&&!C2(o,t));uc.set(i,a)}if(x$(e,t)){let a=Pa(JSON.stringify(s.type==="Identifier"?s.name:s.value.toString()),t);return e.call(()=>Ar(e,a,t),"key")}return C2(n,t)&&(t.quoteProps==="as-needed"||t.quoteProps==="consistent"&&!uc.get(i))?e.call(()=>Ar(e,/^\d/u.test(s.value)?Ia(s.value):s.value,t),"key"):r("key")}function Hh(e,t,r){let{node:n}=e;return n.shorthand?r("value"):Gu(e,t,r,Qu(e,t,r),":","value")}var E$=({node:e,key:t,parent:r})=>t==="value"&&e.type==="FunctionExpression"&&(r.type==="ObjectMethod"||r.type==="ClassMethod"||r.type==="ClassPrivateMethod"||r.type==="MethodDefinition"||r.type==="TSAbstractMethodDefinition"||r.type==="TSDeclareMethod"||r.type==="Property"&&Ju(r));function ob(e,t,r,n){if(E$(e))return ry(e,t,r);let{node:i}=e,s=!1;if((i.type==="FunctionDeclaration"||i.type==="FunctionExpression")&&(n!=null&&n.expandLastArg)){let{parent:c}=e;be(c)&&(fr(c).length>1||Nt(i).every(p=>p.type==="Identifier"&&!p.typeAnnotation))&&(s=!0)}let a=[pr(e),i.async?"async ":"",`function${i.generator?"*":""} `,i.id?r("id"):""],o=Ns(e,t,r,s),u=Bp(e,r),l=Wa(i,u);return a.push(r("typeParameters"),_([l?_(o):o,u]),i.body?" ":"",r("body")),t.semi&&(i.declare||!i.body)&&a.push(";"),a}function wf(e,t,r){let{node:n}=e,{kind:i}=n,s=n.value||n,a=[];return!i||i==="init"||i==="method"||i==="constructor"?s.async&&a.push("async "):a.push(i," "),s.generator&&a.push("*"),a.push(Qu(e,t,r),n.optional?"?":"",n===s?ry(e,t,r):r("value")),a}function ry(e,t,r){let{node:n}=e,i=Ns(e,t,r),s=Bp(e,r),a=PL(n),o=Wa(n,s),u=[r("typeParameters"),_([a?_(i,{shouldBreak:!0}):o?_(i):i,s])];return n.body?u.push(" ",r("body")):u.push(t.semi?";":""),u}function C$(e){let t=Nt(e);return t.length===1&&!e.typeParameters&&!X(e,ee.Dangling)&&t[0].type==="Identifier"&&!t[0].typeAnnotation&&!X(t[0])&&!t[0].optional&&!e.predicate&&!e.returnType}function ub(e,t){if(t.arrowParens==="always")return!1;if(t.arrowParens==="avoid"){let{node:r}=e;return C$(r)}return!1}function Bp(e,t){let{node:r}=e,n=[Et(e,t,"returnType")];return r.predicate&&n.push(t("predicate")),n}function lb(e,t,r){let{node:n}=e,i=[];if(n.argument){let o=r("argument");b$(t,n.argument)?o=["(",R([U,o]),U,")"]:($n(n.argument)||t.experimentalTernaries&&n.argument.type==="ConditionalExpression"&&(n.argument.consequent.type==="ConditionalExpression"||n.argument.alternate.type==="ConditionalExpression"))&&(o=_([ue("("),R([j,o]),j,ue(")")])),i.push(" ",o)}let s=X(n,ee.Dangling),a=t.semi&&s&&X(n,ee.Last|ee.Line);return a&&i.push(";"),s&&i.push(" ",$e(e,t)),!a&&t.semi&&i.push(";"),i}function v$(e,t,r){return["return",lb(e,t,r)]}function A$(e,t,r){return["throw",lb(e,t,r)]}function b$(e,t){if(Ur(e.originalText,t)||X(t,ee.Leading,r=>cr(e.originalText,me(r),de(r)))&&!mt(t))return!0;if(j0(t)){let r=t,n;for(;n=_I(r);)if(r=n,Ur(e.originalText,r))return!0}return!1}function T$(e,t){if(t.semi||pb(e,t)||db(e,t)||hb(e,t))return!1;let{node:r,key:n,parent:i}=e;return!!(r.type==="ExpressionStatement"&&(n==="body"&&(i.type==="Program"||i.type==="BlockStatement"||i.type==="StaticBlock"||i.type==="TSModuleBlock")||n==="consequent"&&i.type==="SwitchCase")&&e.call(()=>cb(e,t),"expression"))}function cb(e,t){let{node:r}=e;switch(r.type){case"ParenthesizedExpression":case"TypeCastExpression":case"ArrayExpression":case"ArrayPattern":case"TemplateLiteral":case"TemplateElement":case"RegExpLiteral":return!0;case"ArrowFunctionExpression":if(!ub(e,t))return!0;break;case"UnaryExpression":{let{prefix:n,operator:i}=r;if(n&&(i==="+"||i==="-"))return!0;break}case"BindExpression":if(!r.object)return!0;break;case"Literal":if(r.regex)return!0;break;default:if(mt(r))return!0}return Ui(e,t)?!0:j0(r)?e.call(()=>cb(e,t),...rA(r)):!1}var ny=({node:e,parent:t})=>e.type==="ExpressionStatement"&&t.type==="Program"&&t.body.length===1&&(Array.isArray(t.directives)&&t.directives.length===0||!t.directives);function pb(e,t){return(t.parentParser==="markdown"||t.parentParser==="mdx")&&ny(e)&&mt(e.node.expression)}function hb(e,t){return t.__isHtmlInlineEventHandler&&ny(e)}function db(e,t){return(t.parser==="__vue_event_binding"||t.parser==="__vue_ts_event_binding")&&ny(e)}var S$=class extends Error{constructor(r,n,i="type"){super(`Unexpected ${n} node ${i}: ${JSON.stringify(r[i])}.`);H(this,"name","UnexpectedNodeError");this.node=r}},Ja=S$;function F$(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var mr,Gc,fb,AD,w$=(AD=class{constructor(t){zi(this,Gc);zi(this,mr,void 0);Hp(this,mr,new Set(t))}getLeadingWhitespaceCount(t){let r=gt(this,mr),n=0;for(let i=0;i=0&&r.has(t.charAt(i));i--)n++;return n}getLeadingWhitespace(t){let r=this.getLeadingWhitespaceCount(t);return t.slice(0,r)}getTrailingWhitespace(t){let r=this.getTrailingWhitespaceCount(t);return t.slice(t.length-r)}hasLeadingWhitespace(t){return gt(this,mr).has(t.charAt(0))}hasTrailingWhitespace(t){return gt(this,mr).has(Se(0,t,-1))}trimStart(t){let r=this.getLeadingWhitespaceCount(t);return t.slice(r)}trimEnd(t){let r=this.getTrailingWhitespaceCount(t);return t.slice(0,t.length-r)}trim(t){return this.trimEnd(this.trimStart(t))}split(t,r=!1){let n=`[${F$([...gt(this,mr)].join(""))}]+`,i=new RegExp(r?`(${n})`:n,"u");return t.split(i)}hasWhitespaceCharacter(t){let r=gt(this,mr);return Array.prototype.some.call(t,n=>r.has(n))}hasNonWhitespaceCharacter(t){let r=gt(this,mr);return Array.prototype.some.call(t,n=>!r.has(n))}isWhitespaceOnly(t){let r=gt(this,mr);return Array.prototype.every.call(t,n=>r.has(n))}dedentString(t){let r=Gn(this,Gc,fb).call(this,t);return r===0?t:t.split(` `).map(n=>n.slice(r)).join(` -`)}},mr=new WeakMap,Uc=new WeakSet,GA=function(t){let r=Number.POSITIVE_INFINITY;for(let n of t.split(` -`)){if(n.length===0)continue;let i=this.getLeadingWhitespaceCount(n);if(i===0)return 0;n.length!==i&&ie===""||e===Q||e===U||e===j;function r$(e,t,r){var D,v,b,P,N;let{node:n}=e;if(n.type==="JSXElement"&&D$(n))return[r("openingElement"),r("closingElement")];let i=n.type==="JSXElement"?r("openingElement"):r("openingFragment"),s=n.type==="JSXElement"?r("closingElement"):r("closingFragment");if(n.children.length===1&&n.children[0].type==="JSXExpressionContainer"&&(n.children[0].expression.type==="TemplateLiteral"||n.children[0].expression.type==="TaggedTemplateExpression"))return[i,...e.map(r,"children"),s];n.children=n.children.map(E=>E$(E)?{type:"JSXText",value:" ",raw:" "}:E);let a=n.children.some(mt),o=n.children.filter(E=>E.type==="JSXExpressionContainer").length>1,u=n.type==="JSXElement"&&n.openingElement.attributes.length>1,l=$t(i)||a||u||o,c=e.parent.rootMarker==="mdx",p=t.singleQuote?"{' '}":'{" "}',h=c?Q:ue([p,j]," "),d=((v=(D=n.openingElement)==null?void 0:D.name)==null?void 0:v.name)==="fbt",f=n$(e,t,r,h,d),y=n.children.some(E=>Au(E));for(let E=f.length-2;E>=0;E--){let A=f[E]===""&&f[E+1]==="",T=f[E]===U&&f[E+1]===""&&f[E+2]===U,B=(f[E]===j||f[E]===U)&&f[E+1]===""&&f[E+2]===h,M=f[E]===h&&f[E+1]===""&&(f[E+2]===j||f[E+2]===U),k=f[E]===h&&f[E+1]===""&&f[E+2]===h,J=f[E]===j&&f[E+1]===""&&f[E+2]===U||f[E]===U&&f[E+1]===""&&f[E+2]===j;T&&y||A||B||k||J?f.splice(E,2):M&&f.splice(E+1,2)}for(;f.length>0&&Oh(Se(0,f,-1));)f.pop();for(;f.length>1&&Oh(f[0])&&Oh(f[1]);)f.shift(),f.shift();let x=[""];for(let[E,A]of f.entries()){if(A===h){if(E===1&&k5(f[E-1])){if(f.length===2){x.push([x.pop(),p]);continue}x.push([p,U],"");continue}else if(E===f.length-1){x.push([x.pop(),p]);continue}else if(f[E-1]===""&&f[E-2]===U){x.push([x.pop(),p]);continue}}E%2===0?x.push([x.pop(),A]):x.push(A,""),$t(A)&&(l=!0)}let g=y?pA(x):I(x,{shouldBreak:!0});if(((b=t.cursorNode)==null?void 0:b.type)==="JSXText"&&n.children.includes(t.cursorNode)?g=[Sl,g,Sl]:((P=t.nodeBeforeCursor)==null?void 0:P.type)==="JSXText"&&n.children.includes(t.nodeBeforeCursor)?g=[Sl,g]:((N=t.nodeAfterCursor)==null?void 0:N.type)==="JSXText"&&n.children.includes(t.nodeAfterCursor)&&(g=[g,Sl]),c)return g;let m=I([i,R([U,g]),U,s]);return l?m:rs([I([i,...f,s]),m])}function n$(e,t,r,n,i){let s="",a=[s];function o(l){s=l,a.push([a.pop(),l])}function u(l){l!==""&&(s=l,a.push(l,""))}return e.each(({node:l,next:c})=>{if(l.type==="JSXText"){let p=Yt(l);if(Au(l)){let h=tc.split(p,!0);h[0]===""&&(h.shift(),/\n/u.test(h[0])?u(uD(i,h[1],l,c)):u(n),h.shift());let d;if(Se(0,h,-1)===""&&(h.pop(),d=h.pop()),h.length===0)return;for(let[f,y]of h.entries())f%2===1?u(Q):o(y);d!==void 0?/\n/u.test(d)?u(uD(i,s,l,c)):u(n):u(oD(i,s,l,c))}else/\n/u.test(p)?p.match(/\n/gu).length>1&&u(U):u(n)}else{let p=r();if(o(p),c&&Au(c)){let h=tc.trim(Yt(c)),[d]=tc.split(h);u(oD(i,d,l,c))}else u(U)}},"children"),a}function oD(e,t,r,n){return e?"":r.type==="JSXElement"&&!r.closingElement||(n==null?void 0:n.type)==="JSXElement"&&!n.closingElement?t.length===1?j:U:j}function uD(e,t,r,n){return e?U:t.length===1?r.type==="JSXElement"&&!r.closingElement||(n==null?void 0:n.type)==="JSXElement"&&!n.closingElement?U:j:U}var i$=le(["ArrayExpression","JSXAttribute","JSXElement","JSXExpressionContainer","JSXFragment","ExpressionStatement","NewExpression","CallExpression","OptionalCallExpression","ConditionalExpression","JsExpressionRoot","MatchExpressionCase"]);function s$(e,t,r){let{parent:n}=e;if(i$(n))return t;let i=a$(e),s=ji(e,r);return I([s?"":ue("("),R([j,t]),j,s?"":ue(")")],{shouldBreak:i})}function a$(e){return e.match(void 0,(t,r)=>r==="body"&&t.type==="ArrowFunctionExpression",(t,r)=>r==="arguments"&&Ae(t))&&(e.match(void 0,void 0,void 0,(t,r)=>r==="expression"&&t.type==="JSXExpressionContainer")||e.match(void 0,void 0,void 0,(t,r)=>r==="expression"&&t.type==="ChainExpression",(t,r)=>r==="expression"&&t.type==="JSXExpressionContainer"))}function o$(e,t,r){let{node:n}=e,i=[r("name")];if(n.value){let s;if(yt(n.value)){let a=Yt(n.value),o=dt(0,dt(0,a.slice(1,-1),"'","'"),""",'"'),u=Bv(o,t.jsxSingleQuote);o=u==='"'?dt(0,o,'"',"""):dt(0,o,"'","'"),s=e.call(()=>Ar(e,fs(u+o+u),t),"value")}else s=r("value");i.push("=",s)}return i}function u$(e,t,r){let{node:n}=e,i=(s,a)=>s.type==="JSXEmptyExpression"||!X(s)&&(At(s)||Ur(s)||s.type==="ArrowFunctionExpression"||s.type==="AwaitExpression"&&(i(s.argument,s)||s.argument.type==="JSXElement")||Ae(s)||s.type==="ChainExpression"&&Ae(s.expression)||s.type==="FunctionExpression"||s.type==="TemplateLiteral"||s.type==="TaggedTemplateExpression"||s.type==="DoExpression"||mt(a)&&(s.type==="ConditionalExpression"||Ln(s)));return i(n.expression,e.parent)?I(["{",r("expression"),pn,"}"]):I(["{",R([j,r("expression")]),j,pn,"}"])}function l$(e,t,r){var o,u;let{node:n}=e,i=X(n.name)||X(n.typeArguments);if(n.selfClosing&&n.attributes.length===0&&!i)return["<",r("name"),r("typeArguments")," />"];if(((o=n.attributes)==null?void 0:o.length)===1&&yt(n.attributes[0].value)&&!n.attributes[0].value.value.includes(` -`)&&!i&&!X(n.attributes[0]))return I(["<",r("name"),r("typeArguments")," ",...e.map(r,"attributes"),n.selfClosing?" />":">"]);let s=(u=n.attributes)==null?void 0:u.some(l=>yt(l.value)&&l.value.value.includes(` -`)),a=t.singleAttributePerLine&&n.attributes.length>1?U:Q;return I(["<",r("name"),r("typeArguments"),R(e.map(()=>[a,r()],"attributes")),...c$(n,t,i)],{shouldBreak:s})}function c$(e,t,r){return e.selfClosing?[Q,"/>"]:p$(e,t,r)?[">"]:[j,">"]}function p$(e,t,r){let n=e.attributes.length>0&&X(Se(0,e.attributes,-1),ee.Trailing);return e.attributes.length===0&&!r||(t.bracketSameLine||t.jsxBracketSameLine)&&(!r||e.attributes.length>0)&&!n}function h$(e,t,r){let{node:n}=e,i=[""),i}function d$(e,t){let{node:r}=e,n=X(r),i=X(r,ee.Line),s=r.type==="JSXOpeningFragment";return[s?"<":""]}function f$(e,t,r){let n=Ar(e,r$(e,t,r),t);return s$(e,n,t)}function m$(e,t){let{node:r}=e,n=X(r,ee.Line);return[$e(e,t,{indent:n}),n?U:""]}function y$(e,t,r){let{node:n}=e;return["{",e.call(({node:i})=>{let s=["...",r()];return X(i)?[R([j,Ar(e,s,t)]),j]:s},n.type==="JSXSpreadAttribute"?"argument":"expression"),"}"]}function g$(e,t,r){let{node:n}=e;if(n.type.startsWith("JSX"))switch(n.type){case"JSXAttribute":return o$(e,t,r);case"JSXIdentifier":return n.name;case"JSXNamespacedName":return ge(":",[r("namespace"),r("name")]);case"JSXMemberExpression":return ge(".",[r("object"),r("property")]);case"JSXSpreadAttribute":case"JSXSpreadChild":return y$(e,t,r);case"JSXExpressionContainer":return u$(e,t,r);case"JSXFragment":case"JSXElement":return f$(e,t,r);case"JSXOpeningElement":return l$(e,t,r);case"JSXClosingElement":return h$(e,t,r);case"JSXOpeningFragment":case"JSXClosingFragment":return d$(e,t);case"JSXEmptyExpression":return m$(e,t);case"JSXText":throw new Error("JSXText should be handled by JSXElement");default:throw new za(n,"JSX")}}function D$(e){if(e.children.length===0)return!0;if(e.children.length>1)return!1;let t=e.children[0];return t.type==="JSXText"&&!Au(t)}function Au(e){return e.type==="JSXText"&&(tc.hasNonWhitespaceCharacter(Yt(e))||!/\n/u.test(Yt(e)))}function E$(e){return e.type==="JSXExpressionContainer"&&yt(e.expression)&&e.expression.value===" "&&!X(e.expression)}function x$(e){let{node:t,parent:r}=e;if(!mt(t)||!mt(r))return!1;let{index:n,siblings:i}=e,s;for(let a=n;a>0;a--){let o=i[a-1];if(!(o.type==="JSXText"&&!Au(o))){s=o;break}}return(s==null?void 0:s.type)==="JSXExpressionContainer"&&s.expression.type==="JSXEmptyExpression"&&Ep(s.expression)}function C$(e){return Ep(e.node)||x$(e)}var Hy=C$;function v$(e,t,r){let{node:n}=e;if(n.type.startsWith("NG"))switch(n.type){case"NGRoot":return r("node");case"NGPipeExpression":return wA(e,t,r);case"NGChainedExpression":return I(ge([";",Q],e.map(()=>S$(e)?r():["(",r(),")"],"expressions")));case"NGEmptyExpression":return"";case"NGMicrosyntax":return e.map(()=>[e.isFirst?"":lD(e)?" ":[";",Q],r()],"body");case"NGMicrosyntaxKey":return/^[$_a-z][\w$]*(?:-[$_a-z][\w$])*$/iu.test(n.name)?n.name:JSON.stringify(n.name);case"NGMicrosyntaxExpression":return[r("expression"),n.alias===null?"":[" as ",r("alias")]];case"NGMicrosyntaxKeyedExpression":{let{index:i,parent:s}=e,a=lD(e)||A$(e)||(i===1&&(n.key.name==="then"||n.key.name==="else"||n.key.name==="as")||i===2&&(n.key.name==="else"&&s.body[i-1].type==="NGMicrosyntaxKeyedExpression"&&s.body[i-1].key.name==="then"||n.key.name==="track"))&&s.body[0].type==="NGMicrosyntaxExpression";return[r("key"),a?" ":": ",r("expression")]}case"NGMicrosyntaxLet":return["let ",r("key"),n.value===null?"":[" = ",r("value")]];case"NGMicrosyntaxAs":return[r("key")," as ",r("alias")];default:throw new za(n,"Angular")}}function lD({node:e,index:t}){return e.type==="NGMicrosyntaxKeyedExpression"&&e.key.name==="of"&&t===1}function A$(e){let{node:t}=e;return e.parent.body[1].key.name==="of"&&t.type==="NGMicrosyntaxKeyedExpression"&&t.key.name==="track"&&t.key.type==="NGMicrosyntaxKey"}var T$=le(["CallExpression","OptionalCallExpression","AssignmentExpression"]);function S$({node:e}){return of(e,T$)}function QA(e,t,r){let{node:n}=e;return I([ge(Q,e.map(r,"decorators")),YA(n,t)?U:Q])}function F$(e,t,r){return ZA(e.node)?[ge(U,e.map(r,"declaration","decorators")),U]:""}function b$(e,t,r){let{node:n,parent:i}=e,{decorators:s}=n;if(!Me(s)||ZA(i)||Hy(e))return"";let a=n.type==="ClassExpression"||n.type==="ClassDeclaration"||YA(n,t);return[e.key==="declaration"&&o9(i)?U:a?On:"",ge(Q,e.map(r,"decorators")),Q]}function YA(e,t){return e.decorators.some(r=>Qt(t.originalText,de(r)))}function ZA(e){var r;if(e.type!=="ExportDefaultDeclaration"&&e.type!=="ExportNamedDeclaration"&&e.type!=="DeclareExportDeclaration")return!1;let t=(r=e.declaration)==null?void 0:r.decorators;return Me(t)&&gp(e,t[0])}var Mh=new WeakMap;function eT(e){return Mh.has(e)||Mh.set(e,e.type==="ConditionalExpression"&&!Lt(e,t=>t.type==="ObjectExpression")),Mh.get(e)}var w$=e=>e.type==="SequenceExpression";function P$(e,t,r,n={}){let i=[],s,a=[],o=!1,u=!n.expandLastArg&&e.node.body.type==="ArrowFunctionExpression",l;(function g(){let{node:m}=e,D=k$(e,t,r,n);if(i.length===0)i.push(D);else{let{leading:v,trailing:b}=xp(e,t);i.push([v,D]),a.unshift(b)}u&&(o||(o=m.returnType&&Nt(m).length>0||m.typeParameters||Nt(m).some(v=>v.type!=="Identifier"))),!u||m.body.type!=="ArrowFunctionExpression"?(s=r("body",n),l=m.body):e.call(g,"body")})();let c=!jr(t.originalText,l)&&(w$(l)||N$(l,s,t)||!o&&eT(l)),p=e.key==="callee"&&wa(e.parent),h=Symbol("arrow-chain"),d=B$(e,n,{signatureDocs:i,shouldBreak:o}),f=!1,y=!1,x=!1;return u&&(p||n.assignmentLayout)&&(y=!0,x=!X(e.node,ee.Leading&ee.Line),f=n.assignmentLayout==="chain-tail-arrow-chain"||p&&!c),s=I$(e,t,n,{bodyDoc:s,bodyComments:a,functionBody:l,shouldPutBodyOnSameLine:c}),I([I(y?R([x?j:"",d]):d,{shouldBreak:f,id:h})," =>",u?Cu(s,{groupId:h}):I(s),u&&p?ue(j,"",{groupId:h}):""])}function k$(e,t,r,n){let{node:i}=e,s=[];if(i.async&&s.push("async "),qA(e,t))s.push(r(["params",0]));else{let o=n.expandLastArg||n.expandFirstArg,u=Ap(e,r);if(o){if($t(u))throw new $c;u=I(Lc(u))}s.push(I([Ps(e,t,r,o,!0),u]))}let a=$e(e,t,{filter(o){let u=ja(t.originalText,de(o));return u!==!1&&t.originalText.slice(u,u+2)==="=>"}});return a&&s.push(" ",a),s}function N$(e,t,r){var n,i;return At(e)||Ur(e)||e.type==="ArrowFunctionExpression"||e.type==="DoExpression"||e.type==="BlockStatement"||mt(e)||((n=t.label)==null?void 0:n.hug)!==!1&&(((i=t.label)==null?void 0:i.embed)||qv(e,r.originalText))}function B$(e,t,{signatureDocs:r,shouldBreak:n}){if(r.length===1)return r[0];let{parent:i,key:s}=e;return s!=="callee"&&wa(i)||Ln(i)?I([r[0]," =>",R([Q,ge([" =>",Q],r.slice(1))])],{shouldBreak:n}):s==="callee"&&wa(i)||t.assignmentLayout?I(ge([" =>",Q],r),{shouldBreak:n}):I(R(ge([" =>",Q],r)),{shouldBreak:n})}function I$(e,t,r,{bodyDoc:n,bodyComments:i,functionBody:s,shouldPutBodyOnSameLine:a}){let{node:o,parent:u}=e,l=r.expandLastArg&&fn(t,"all")?ue(","):"",c=(r.expandLastArg||u.type==="JSXExpressionContainer")&&!X(o)?j:"";return a&&eT(s)?[" ",I([ue("","("),R([j,n]),ue("",")"),l,c]),i]:a?[" ",n,i]:[R([Q,n,i]),l,c]}var _$=Array.prototype.findLast??function(e){for(let t=this.length-1;t>=0;t--){let r=this[t];if(e(r,t,this))return r}},L$=Ey("findLast",function(){if(Array.isArray(this))return _$}),$$=L$;function Ef(e,t,r,n){let{node:i}=e,s=[],a=$$(0,i[n],o=>o.type!=="EmptyStatement");return e.each(({node:o})=>{o.type!=="EmptyStatement"&&(s.push(r()),o!==a&&(s.push(U),mn(o,t)&&s.push(U)))},n),s}function tT(e,t,r){let n=O$(e,t,r),{node:i,parent:s}=e;if(i.type==="Program"&&(s==null?void 0:s.type)!=="ModuleExpression")return n?[n,U]:"";let a=[];if(i.type==="StaticBlock"&&a.push("static "),a.push("{"),n)a.push(R([U,n]),U);else{let o=e.grandparent;s.type==="ArrowFunctionExpression"||s.type==="FunctionExpression"||s.type==="FunctionDeclaration"||s.type==="ComponentDeclaration"||s.type==="HookDeclaration"||s.type==="ObjectMethod"||s.type==="ClassMethod"||s.type==="ClassPrivateMethod"||s.type==="ForStatement"||s.type==="WhileStatement"||s.type==="DoWhileStatement"||s.type==="DoExpression"||s.type==="ModuleExpression"||s.type==="CatchClause"&&!o.finalizer||s.type==="TSModuleDeclaration"||s.type==="MatchStatementCase"||i.type==="StaticBlock"||a.push(U)}return a.push("}"),a}function O$(e,t,r){let{node:n}=e,i=Me(n.directives),s=n.body.some(u=>u.type!=="EmptyStatement"),a=X(n,ee.Dangling);if(!i&&!s&&!a)return"";let o=[];return i&&(o.push(Ef(e,t,r,"directives")),(s||a)&&(o.push(U),mn(Se(0,n.directives,-1),t)&&o.push(U))),s&&o.push(Ef(e,t,r,"body")),a&&o.push($e(e,t)),o}function M$(e){let t=new WeakMap;return function(r){return t.has(r)||t.set(r,Symbol(e)),t.get(r)}}var j$=M$;function Wy(e,t,r){let{node:n}=e,i=[],s=n.type==="ObjectTypeAnnotation",a=!rT(e),o=a?Q:U,u=X(n,ee.Dangling),[l,c]=s&&n.exact?["{|","|}"]:"{}",p;if(R$(e,({node:h,next:d,isLast:f})=>{if(p??(p=h),i.push(r()),a&&s){let{parent:y}=e;y.inexact||!f?i.push(","):fn(t)&&i.push(ue(","))}!a&&(U$({node:h,next:d},t)||iT({node:h,next:d},t))&&i.push(";"),f||(i.push(o),mn(h,t)&&i.push(U))}),u&&i.push($e(e,t)),n.type==="ObjectTypeAnnotation"&&n.inexact){let h;X(n,ee.Dangling)?h=[X(n,ee.Line)||Qt(t.originalText,de(Se(0,os(n),-1)))?U:Q,"..."]:h=[p?Q:"","..."],i.push(h)}if(a){let h=u||t.objectWrap==="preserve"&&p&&cr(t.originalText,me(n),me(p)),d;if(i.length===0)d=l+c;else{let f=t.bracketSpacing?Q:j;d=[l,R([f,...i]),f,c]}return e.match(void 0,(f,y)=>y==="typeAnnotation",(f,y)=>y==="typeAnnotation",Wo)||e.match(void 0,(f,y)=>f.type==="FunctionTypeParam"&&y==="typeAnnotation",Wo)?d:I(d,{shouldBreak:h})}return[l,i.length>0?[R([U,i]),U]:"",c]}function rT(e){let{node:t}=e;if(t.type==="ObjectTypeAnnotation"){let{key:r,parent:n}=e;return r==="body"&&(n.type==="InterfaceDeclaration"||n.type==="DeclareInterface"||n.type==="DeclareClass")}return t.type==="ClassBody"||t.type==="TSInterfaceBody"}function R$(e,t){let{node:r}=e;if(r.type==="ClassBody"||r.type==="TSInterfaceBody"){e.each(t,"body");return}if(r.type==="TSTypeLiteral"){e.each(t,"members");return}if(r.type==="ObjectTypeAnnotation"){let n=["properties","indexers","callProperties","internalSlots"].flatMap(i=>e.map(({node:s,index:a})=>({node:s,loc:me(s),selector:[i,a]}),i)).sort((i,s)=>i.loc-s.loc);for(let[i,{node:s,selector:a}]of n.entries())e.call(()=>{var o;return t({node:s,next:(o=n[i+1])==null?void 0:o.node,isLast:i===n.length-1})},...a)}}function Sn(e,t){let{parent:r}=e;return e.callParent(rT)?t.semi||r.type==="ObjectTypeAnnotation"?";":"":r.type==="TSTypeLiteral"?e.isLast?t.semi?ue(";"):"":t.semi||iT({node:e.node,next:e.next},t)?";":ue("",";"):""}var cD=le(["ClassProperty","PropertyDefinition","ClassPrivateProperty","ClassAccessorProperty","AccessorProperty","TSAbstractPropertyDefinition","TSAbstractAccessorProperty"]),nT=e=>{if(e.computed||e.typeAnnotation)return!1;let{type:t,name:r}=e.key;return t==="Identifier"&&(r==="static"||r==="get"||r==="set")};function U$({node:e,next:t},r){var n;if(r.semi||!cD(e))return!1;if(!e.value&&nT(e))return!0;if(!t||t.static||t.accessibility||t.readonly)return!1;if(!t.computed){let i=(n=t.key)==null?void 0:n.name;if(i==="in"||i==="instanceof")return!0}if(cD(t)&&t.variance&&!t.static&&!t.declare)return!0;switch(t.type){case"ClassProperty":case"PropertyDefinition":case"TSAbstractPropertyDefinition":return t.computed;case"MethodDefinition":case"TSAbstractMethodDefinition":case"ClassMethod":case"ClassPrivateMethod":{if((t.value?t.value.async:t.async)||t.kind==="get"||t.kind==="set")return!1;let i=t.value?t.value.generator:t.generator;return!!(t.computed||i)}case"TSIndexSignature":return!0}return!1}var V$=le(["TSPropertySignature"]);function iT({node:e,next:t},r){if(r.semi||!V$(e))return!1;if(nT(e))return!0;if(!t)return!1;switch(t.type){case"TSCallSignatureDeclaration":return!0}return!1}var z$=j$("heritageGroup"),q$=le(["TSInterfaceDeclaration","DeclareInterface","InterfaceDeclaration","InterfaceTypeAnnotation"]);function Jy(e,t,r){let{node:n}=e,i=q$(n),s=[pr(e),Cp(e),i?"interface":"class"],a=aT(e),o=[],u=[];if(n.type!=="InterfaceTypeAnnotation"){n.id&&o.push(" ");for(let c of["id","typeParameters"])if(n[c]){let{leading:p,trailing:h}=e.call(()=>xp(e,t),c);o.push(p,r(c),R(h))}}if(n.superClass){let c=[J$(e,t,r),r(n.superTypeArguments?"superTypeArguments":"superTypeParameters")],p=e.call(()=>["extends ",Ar(e,c,t)],"superClass");a?u.push(Q,I(p)):u.push(" ",p)}else u.push(Rh(e,t,r,"extends"));u.push(Rh(e,t,r,"mixins"),Rh(e,t,r,"implements"));let l;return a?(l=z$(n),s.push(I([...o,R(u)],{id:l}))):s.push(...o,...u),!i&&a&&H$(n.body)?s.push(ue(U," ",{groupId:l})):s.push(" "),s.push(r("body")),s}function H$(e){return e.type==="ObjectTypeAnnotation"?["properties","indexers","callProperties","internalSlots"].some(t=>Me(e[t])):Me(e.body)}function sT(e){let t=e.superClass?1:0;for(let r of["extends","mixins","implements"])if(Array.isArray(e[r])&&(t+=e[r].length),t>1)return!0;return t>1}function W$(e){var n,i,s;let{node:t}=e;if(X(t.id,ee.Trailing)||X(t.typeParameters,ee.Trailing)||X(t.superClass)||sT(t))return!0;if(t.superClass)return e.parent.type==="AssignmentExpression"?!1:!(t.superTypeArguments??t.superTypeParameters)&&Oe(t.superClass);let r=((n=t.extends)==null?void 0:n[0])??((i=t.mixins)==null?void 0:i[0])??((s=t.implements)==null?void 0:s[0]);return r?r.type==="InterfaceExtends"&&r.id.type==="QualifiedTypeIdentifier"&&!r.typeParameters||(r.type==="TSClassImplements"||r.type==="TSInterfaceHeritage")&&Oe(r.expression)&&!r.typeArguments:!1}var jh=new WeakMap;function aT(e){let{node:t}=e;return jh.has(t)||jh.set(t,W$(e)),jh.get(t)}function Rh(e,t,r,n){let{node:i}=e;if(!Me(i[n]))return"";let s=$e(e,t,{marker:n}),a=ge([",",Q],e.map(r,n));if(!sT(i)){let o=[`${n} `,s,a];return aT(e)?[Q,I(o)]:[" ",o]}return[Q,s,s&&U,n,I(R([Q,a]))]}function J$(e,t,r){let n=r("superClass"),{parent:i}=e;return i.type==="AssignmentExpression"?I(ue(["(",R([j,n]),j,")"],n)):n}function oT(e,t,r){let{node:n}=e,i=[];return Me(n.decorators)&&i.push(QA(e,t,r)),i.push(vp(n)),n.static&&i.push("static "),i.push(Cp(e)),n.override&&i.push("override "),i.push(Df(e,t,r)),i}function uT(e,t,r){let{node:n}=e,i=[];Me(n.decorators)&&i.push(QA(e,t,r)),i.push(pr(e),vp(n)),n.static&&i.push("static "),i.push(Cp(e)),n.override&&i.push("override "),n.readonly&&i.push("readonly "),n.variance&&i.push(r("variance")),(n.type==="ClassAccessorProperty"||n.type==="AccessorProperty"||n.type==="TSAbstractAccessorProperty")&&i.push("accessor "),i.push(qu(e,t,r),Mt(e),bA(e),xt(e,r));let s=n.type==="TSAbstractPropertyDefinition"||n.type==="TSAbstractAccessorProperty";return[zu(e,t,r,i," =",s?void 0:"value"),t.semi?";":""]}var X$=le(["TSAsExpression","TSTypeAssertion","TSNonNullExpression","TSInstantiationExpression","TSSatisfiesExpression"]);function lT(e){return X$(e)?lT(e.expression):e}var K$=le(["FunctionExpression","ArrowFunctionExpression"]);function G$(e){return e.type==="MemberExpression"||e.type==="OptionalMemberExpression"||e.type==="Identifier"&&e.name!=="undefined"}function Q$(e,t){if(KA(e,t)){let r=lT(e.node.expression);return K$(r)||G$(r)}return!(!t.semi||JA(e,t)||XA(e,t))}function Y$(e,t,r){return[r("expression"),Q$(e,t)?";":""]}function Z$(e,t,r){if(t.__isVueBindings||t.__isVueForBindingLeft){let n=e.map(r,"program","body",0,"params");if(n.length===1)return n[0];let i=ge([",",Q],n);return t.__isVueForBindingLeft?["(",R([j,I(i)]),j,")"]:i}if(t.__isEmbeddedTypescriptGenericParameters){let n=e.map(r,"program","body",0,"typeParameters","params");return ge([",",Q],n)}}function eO(e,t){let{node:r}=e;switch(r.type){case"RegExpLiteral":return pD(r);case"BigIntLiteral":return xf(r.extra.raw);case"NumericLiteral":return Pa(r.extra.raw);case"StringLiteral":return fs(Fa(r.extra.raw,t));case"NullLiteral":return"null";case"BooleanLiteral":return String(r.value);case"DirectiveLiteral":return hD(r.extra.raw,t);case"Literal":{if(r.regex)return pD(r.regex);if(r.bigint)return xf(r.raw);let{value:n}=r;return typeof n=="number"?Pa(r.raw):typeof n=="string"?tO(e)?hD(r.raw,t):fs(Fa(r.raw,t)):String(n)}}}function tO(e){if(e.key!=="expression")return;let{parent:t}=e;return t.type==="ExpressionStatement"&&typeof t.directive=="string"}function xf(e){return e.toLowerCase()}function pD({pattern:e,flags:t}){return t=[...t].sort().join(""),`/${e}/${t}`}var rO="use strict";function hD(e,t){let r=e.slice(1,-1);if(r===rO||!(r.includes('"')||r.includes("'"))){let n=t.singleQuote?"'":'"';return n+r+n}return e}function nO(e,t,r){let n=e.originalText.slice(t,r);for(let i of e[Symbol.for("comments")]){let s=me(i);if(s>r)break;let a=de(i);if(ag.value&&(g.value.type==="ObjectPattern"||g.value.type==="ArrayPattern"))||n.type!=="ObjectPattern"&&t.objectWrap==="preserve"&&c.length>0&&sO(n,c[0],t),h=[],d=e.map(({node:g})=>{let m=[...h,I(r())];return h=[",",Q],mn(g,t)&&h.push(U),m},l);if(u){let g;if(X(n,ee.Dangling)){let m=X(n,ee.Line);g=[$e(e,t),m||Qt(t.originalText,de(Se(0,os(n),-1)))?U:Q,"..."]}else g=["..."];d.push([...h,...g])}let f=!(u||((x=Se(0,c,-1))==null?void 0:x.type)==="RestElement"),y;if(d.length===0){if(!X(n,ee.Dangling))return["{}",xt(e,r)];y=I(["{",$e(e,t,{indent:!0}),j,"}",Mt(e),xt(e,r)])}else{let g=t.bracketSpacing?Q:j;y=["{",R([g,...d]),ue(f&&fn(t)?",":""),g,"}",Mt(e),xt(e,r)]}return e.match(g=>g.type==="ObjectPattern"&&!Me(g.decorators),Wo)||bi(n)&&(e.match(void 0,(g,m)=>m==="typeAnnotation",(g,m)=>m==="typeAnnotation",Wo)||e.match(void 0,(g,m)=>g.type==="FunctionTypeParam"&&m==="typeAnnotation",Wo))||!p&&e.match(g=>g.type==="ObjectPattern",g=>g.type==="AssignmentExpression"||g.type==="VariableDeclarator")?y:I(y,{shouldBreak:p})}function sO(e,t,r){let n=r.originalText,i=me(e),s=me(t);if(cT(e)){let a=me(e),o=Tp(r,a,s);i=a+o.lastIndexOf("{")}return cr(n,i,s)}function aO(e,t,r){let{node:n}=e;return["import",n.phase?` ${n.phase}`:"",dT(n),mT(e,t,r),fT(e,t,r),gT(e,t,r),t.semi?";":""]}var pT=e=>e.type==="ExportDefaultDeclaration"||e.type==="DeclareExportDeclaration"&&e.default;function hT(e,t,r){let{node:n}=e,i=[F$(e,t,r),pr(e),"export",pT(n)?" default":""],{declaration:s,exported:a}=n;return X(n,ee.Dangling)&&(i.push(" ",$e(e,t)),Hv(n)&&i.push(U)),s?i.push(" ",r("declaration")):(i.push(lO(n)),n.type==="ExportAllDeclaration"||n.type==="DeclareExportAllDeclaration"?(i.push(" *"),a&&i.push(" as ",r("exported"))):i.push(mT(e,t,r)),i.push(fT(e,t,r),gT(e,t,r))),i.push(uO(n,t)),i}var oO=le(["ClassDeclaration","ComponentDeclaration","FunctionDeclaration","TSInterfaceDeclaration","DeclareClass","DeclareComponent","DeclareFunction","DeclareHook","HookDeclaration","TSDeclareFunction","EnumDeclaration"]);function uO(e,t){return t.semi&&(!e.declaration||pT(e)&&!oO(e.declaration))?";":""}function Ky(e,t=!0){return e&&e!=="value"?`${t?" ":""}${e}${t?"":" "}`:""}function dT(e,t){return Ky(e.importKind,t)}function lO(e){return Ky(e.exportKind)}function fT(e,t,r){let{node:n}=e;return n.source?[yT(n,t)?" from":""," ",r("source")]:""}function mT(e,t,r){let{node:n}=e;if(!yT(n,t))return"";let i=[" "];if(Me(n.specifiers)){let s=[],a=[];e.each(()=>{let o=e.node.type;if(o==="ExportNamespaceSpecifier"||o==="ExportDefaultSpecifier"||o==="ImportNamespaceSpecifier"||o==="ImportDefaultSpecifier")s.push(r());else if(o==="ExportSpecifier"||o==="ImportSpecifier")a.push(r());else throw new za(n,"specifier")},"specifiers"),i.push(ge(", ",s)),a.length>0&&(s.length>0&&i.push(", "),a.length>1||s.length>0||n.specifiers.some(o=>X(o))?i.push(I(["{",R([t.bracketSpacing?Q:j,ge([",",Q],a)]),ue(fn(t)?",":""),t.bracketSpacing?Q:j,"}"])):i.push(["{",t.bracketSpacing?" ":"",...a,t.bracketSpacing?" ":"","}"]))}else i.push("{}");return i}function yT(e,t){return e.type!=="ImportDeclaration"||Me(e.specifiers)||e.importKind==="type"?!0:Tp(t,me(e),me(e.source)).trimEnd().endsWith("from")}function cO(e,t){var n,i;if((n=e.extra)!=null&&n.deprecatedAssertSyntax)return"assert";let r=Tp(t,de(e.source),(i=e.attributes)!=null&&i[0]?me(e.attributes[0]):de(e)).trimStart();return r.startsWith("assert")?"assert":r.startsWith("with")||Me(e.attributes)?"with":void 0}var pO=e=>{let{attributes:t}=e;if(t.length!==1)return!1;let[r]=t,{type:n,key:i,value:s}=r;return n==="ImportAttribute"&&(i.type==="Identifier"&&i.name==="type"||yt(i)&&i.value==="type")&&yt(s)&&!X(r)&&!X(i)&&!X(s)};function gT(e,t,r){let{node:n}=e;if(!n.source)return"";let i=cO(n,t);if(!i)return"";let s=Xy(e,t,r);return pO(n)&&(s=Lc(s)),[` ${i} `,s]}function hO(e,t,r){let{node:n}=e,{type:i}=n,s=i.startsWith("Import"),a=s?"imported":"local",o=s?"local":"exported",u=n[a],l=n[o],c="",p="";return i==="ExportNamespaceSpecifier"||i==="ImportNamespaceSpecifier"?c="*":u&&(c=r(a)),l&&!dO(n)&&(p=r(o)),[Ky(i==="ImportSpecifier"?n.importKind:n.exportKind,!1),c,c&&p?" as ":"",p]}function dO(e){if(e.type!=="ImportSpecifier"&&e.type!=="ExportSpecifier")return!1;let{local:t,[e.type==="ImportSpecifier"?"imported":"exported"]:r}=e;if(t.type!==r.type||!H6(t,r))return!1;if(yt(t))return t.value===r.value&&Yt(t)===Yt(r);switch(t.type){case"Identifier":return t.name===r.name;default:return!1}}function Cf(e,t){return["...",t("argument"),xt(e,t)]}function fO(e){let t=[e];for(let r=0;rh[E]===n),f=h.type===n.type&&!d,y,x,g=0;do x=y||n,y=e.getParentNode(g),g++;while(y&&y.type===n.type&&o.every(E=>y[E]!==x));let m=y||h,D=x;if(i&&(mt(n[o[0]])||mt(u)||mt(l)||fO(D))){p=!0,f=!0;let E=T=>[ue("("),R([j,T]),j,ue(")")],A=T=>T.type==="NullLiteral"||T.type==="Literal"&&T.value===null||T.type==="Identifier"&&T.name==="undefined";c.push(" ? ",A(u)?r(s):E(r(s))," : ",l.type===n.type||A(l)?r(a):E(r(a)))}else{let E=T=>t.useTabs?R(r(T)):zr(2,r(T)),A=[Q,"? ",u.type===n.type?ue("","("):"",E(s),u.type===n.type?ue("",")"):"",Q,": ",E(a)];c.push(h.type!==n.type||h[a]===n||d?A:t.useTabs?cA(R(A)):zr(Math.max(0,t.tabWidth-2),A))}let v=E=>h===m?I(E):E,b=!p&&(Oe(h)||h.type==="NGPipeExpression"&&h.left===n)&&!h.computed,P=gO(e),N=v([mO(e,t,r),f?c:R(c),i&&b&&!P?j:""]);return d||P?I([R([j,N]),j]):N}function EO(e,t){return(Oe(t)||t.type==="NGPipeExpression"&&t.left===e)&&!t.computed}function xO(e,t,r,n){return[...e.map(i=>os(i)),os(t),os(r)].flat().some(i=>qr(i)&&cr(n.originalText,me(i),de(i)))}var CO=new Map([["AssignmentExpression","right"],["VariableDeclarator","init"],["ReturnStatement","argument"],["ThrowStatement","argument"],["UnaryExpression","argument"],["YieldExpression","argument"],["AwaitExpression","argument"]]);function vO(e){let{node:t}=e;if(t.type!=="ConditionalExpression")return!1;let r,n=t;for(let i=0;!r;i++){let s=e.getParentNode(i);if(s.type==="ChainExpression"&&s.expression===n||Ae(s)&&s.callee===n||Oe(s)&&s.object===n||s.type==="TSNonNullExpression"&&s.expression===n){n=s;continue}s.type==="NewExpression"&&s.callee===n||$r(s)&&s.expression===n?(r=e.getParentNode(i+1),n=s):r=s}return n===t?!1:r[CO.get(r.type)]===n}var Uh=e=>[ue("("),R([j,e]),j,ue(")")];function Gy(e,t,r,n){if(!t.experimentalTernaries)return DO(e,t,r);let{node:i}=e,s=i.type==="ConditionalExpression",a=wi(i),o=s?"consequent":"trueType",u=s?"alternate":"falseType",l=s?["test"]:["checkType","extendsType"],c=i[o],p=i[u],h=l.map(be=>i[be]),{parent:d}=e,f=d.type===i.type,y=f&&l.some(be=>d[be]===i),x=f&&d[u]===i,g=c.type===i.type,m=p.type===i.type,D=m||x,v=t.tabWidth>2||t.useTabs,b,P,N=0;do P=b||i,b=e.getParentNode(N),N++;while(b&&b.type===i.type&&l.every(be=>b[be]!==P));let E=b||d,A=n&&n.assignmentLayout&&n.assignmentLayout!=="break-after-operator"&&(d.type==="AssignmentExpression"||d.type==="VariableDeclarator"||d.type==="ClassProperty"||d.type==="PropertyDefinition"||d.type==="ClassPrivateProperty"||d.type==="ObjectProperty"||d.type==="Property"),T=(d.type==="ReturnStatement"||d.type==="ThrowStatement")&&!(g||m),B=s&&E.type==="JSXExpressionContainer"&&e.grandparent.type!=="JSXAttribute",M=vO(e),k=EO(i,d),J=a&&ji(e,t),K=v?t.useTabs?" ":" ".repeat(t.tabWidth-1):"",ne=xO(h,c,p,t)||g||m,Z=!D&&!f&&!a&&(B?c.type==="NullLiteral"||c.type==="Literal"&&c.value===null:Py(c,t)&&z1(i.test,3)),$=D||x||a&&!f||f&&s&&z1(i.test,1)||Z,V=[];!g&&X(c,ee.Dangling)&&e.call(()=>{V.push($e(e,t),U)},"consequent");let W=[];X(i.test,ee.Dangling)&&e.call(()=>{W.push($e(e,t))},"test"),!m&&X(p,ee.Dangling)&&e.call(()=>{W.push($e(e,t))},"alternate"),X(i,ee.Dangling)&&W.push($e(e,t));let z=Symbol("test"),G=Symbol("consequent"),O=Symbol("test-and-consequent"),re=s?[Uh(r("test")),i.test.type==="ConditionalExpression"?On:""]:[r("checkType")," ","extends"," ",wi(i.extendsType)||i.extendsType.type==="TSMappedType"?r("extendsType"):I(Uh(r("extendsType")))],se=I([re," ?"],{id:z}),Be=r(o),Ke=R([g||B&&(mt(c)||f||D)?U:Q,V,Be]),De=$?I([se,D?Ke:ue(Ke,I(Ke,{id:G}),{groupId:z})],{id:O}):[se,Ke],Ce=r(u),je=Z?ue(Ce,cA(Uh(Ce)),{groupId:O}):Ce,ce=[De,W.length>0?[R([U,W]),U]:m?U:Z?ue(Q," ",{groupId:O}):Q,":",m?" ":v?$?ue(K,ue(D||Z?" ":K," "),{groupId:O}):ue(K," "):" ",m?je:I([R(je),B&&!Z?j:""]),k&&!M?j:"",ne?On:""];return A&&!ne?I(R([j,I(ce)])):A||T?I(R(ce)):M||a&&y?I([R([j,ce]),J?j:""]):d===E?I(ce):ce}function AO(e,t,r,n){let{node:i}=e;if(by(i))return eO(e,t);switch(i.type){case"JsExpressionRoot":return r("node");case"JsonRoot":return[$e(e,t),r("node"),U];case"File":return Z$(e,t,r)??r("program");case"ExpressionStatement":return Y$(e,t,r);case"ChainExpression":return r("expression");case"ParenthesizedExpression":return!X(i.expression)&&(Ur(i.expression)||At(i.expression))?["(",r("expression"),")"]:I(["(",R([j,r("expression")]),j,")"]);case"AssignmentExpression":return I7(e,t,r);case"VariableDeclarator":return _7(e,t,r);case"BinaryExpression":case"LogicalExpression":return wA(e,t,r);case"AssignmentPattern":return[r("left")," = ",r("right")];case"OptionalMemberExpression":case"MemberExpression":return w7(e,t,r);case"MetaProperty":return[r("meta"),".",r("property")];case"BindExpression":return S7(e,t,r);case"Identifier":return[i.name,Mt(e),bA(e),xt(e,r)];case"V8IntrinsicIdentifier":return["%",i.name];case"SpreadElement":return Cf(e,r);case"RestElement":return Cf(e,r);case"FunctionDeclaration":case"FunctionExpression":return zA(e,t,r,n);case"ArrowFunctionExpression":return P$(e,t,r,n);case"YieldExpression":return[`yield${i.delegate?"*":""}`,i.argument?[" ",r("argument")]:""];case"AwaitExpression":{let s=["await"];if(i.argument){s.push(" ",r("argument"));let{parent:a}=e;if(Ae(a)&&a.callee===i||Oe(a)&&a.object===i){s=[R([j,...s]),j];let o=e.findAncestor(u=>u.type==="AwaitExpression"||u.type==="BlockStatement");if((o==null?void 0:o.type)!=="AwaitExpression"||!Lt(o.argument,u=>u===i))return I(s)}}return s}case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ExportAllDeclaration":return hT(e,t,r);case"ImportDeclaration":return aO(e,t,r);case"ImportSpecifier":case"ExportSpecifier":case"ImportNamespaceSpecifier":case"ExportNamespaceSpecifier":case"ImportDefaultSpecifier":case"ExportDefaultSpecifier":return hO(e,t,r);case"ImportAttribute":return $h(e,t,r);case"Program":case"BlockStatement":case"StaticBlock":return tT(e,t,r);case"ClassBody":return Wy(e,t,r);case"ThrowStatement":return K7(e,t,r);case"ReturnStatement":return X7(e,t,r);case"NewExpression":case"ImportExpression":case"OptionalCallExpression":case"CallExpression":return Oc(e,t,r);case"ObjectExpression":case"ObjectPattern":return Xy(e,t,r);case"Property":return Ru(i)?Df(e,t,r):$h(e,t,r);case"ObjectProperty":return $h(e,t,r);case"ObjectMethod":return Df(e,t,r);case"Decorator":return["@",r("expression")];case"ArrayExpression":case"ArrayPattern":return Vy(e,t,r);case"SequenceExpression":{let{parent:s}=e;if(s.type==="ExpressionStatement"||s.type==="ForStatement"){let o=[];return e.each(({isFirst:u})=>{u?o.push(r()):o.push(",",R([Q,r()]))},"expressions"),I(o)}let a=ge([",",Q],e.map(r,"expressions"));return(s.type==="ReturnStatement"||s.type==="ThrowStatement")&&e.key==="argument"||s.type==="ArrowFunctionExpression"&&e.key==="body"?I(ue([R([j,a]),j],a)):I(a)}case"ThisExpression":return"this";case"Super":return"super";case"Directive":return[r("value"),t.semi?";":""];case"UnaryExpression":{let s=[i.operator];return/[a-z]$/u.test(i.operator)&&s.push(" "),X(i.argument)?s.push(I(["(",R([j,r("argument")]),j,")"])):s.push(r("argument")),s}case"UpdateExpression":return[i.prefix?i.operator:"",r("argument"),i.prefix?"":i.operator];case"ConditionalExpression":return Gy(e,t,r,n);case"VariableDeclaration":{let s=e.map(r,"declarations"),a=e.parent,o=a.type==="ForStatement"||a.type==="ForInStatement"||a.type==="ForOfStatement",u=i.declarations.some(c=>c.init),l;return s.length===1&&!X(i.declarations[0])?l=s[0]:s.length>0&&(l=R(s[0])),I([pr(e),i.kind,l?[" ",l]:"",R(s.slice(1).map(c=>[",",u&&!o?U:Q,c])),t.semi&&!(o&&a.body!==i)?";":""])}case"WithStatement":return I(["with (",r("object"),")",Zn(i.body,r("body"))]);case"IfStatement":{let s=Zn(i.consequent,r("consequent")),a=[I(["if (",I([R([j,r("test")]),j]),")",s])];if(i.alternate){let o=X(i.consequent,ee.Trailing|ee.Line)||Hv(i),u=i.consequent.type==="BlockStatement"&&!o;a.push(u?" ":U),X(i,ee.Dangling)&&a.push($e(e,t),o?U:" "),a.push("else",I(Zn(i.alternate,r("alternate"),i.alternate.type==="IfStatement")))}return a}case"ForStatement":{let s=Zn(i.body,r("body")),a=$e(e,t),o=a?[a,j]:"";return!i.init&&!i.test&&!i.update?[o,I(["for (;;)",s])]:[o,I(["for (",I([R([j,r("init"),";",Q,r("test"),";",i.update?[Q,r("update")]:ue("",Q)]),j]),")",s])]}case"WhileStatement":return I(["while (",I([R([j,r("test")]),j]),")",Zn(i.body,r("body"))]);case"ForInStatement":return I(["for (",r("left")," in ",r("right"),")",Zn(i.body,r("body"))]);case"ForOfStatement":return I(["for",i.await?" await":""," (",r("left")," of ",r("right"),")",Zn(i.body,r("body"))]);case"DoWhileStatement":{let s=Zn(i.body,r("body"));return[I(["do",s]),i.body.type==="BlockStatement"?" ":U,"while (",I([R([j,r("test")]),j]),")",t.semi?";":""]}case"DoExpression":return[i.async?"async ":"","do ",r("body")];case"BreakStatement":case"ContinueStatement":return[i.type==="BreakStatement"?"break":"continue",i.label?[" ",r("label")]:"",t.semi?";":""];case"LabeledStatement":return[r("label"),`:${i.body.type==="EmptyStatement"&&!X(i.body,ee.Leading)?"":" "}`,r("body")];case"TryStatement":return["try ",r("block"),i.handler?[" ",r("handler")]:"",i.finalizer?[" finally ",r("finalizer")]:""];case"CatchClause":if(i.param){let s=X(i.param,o=>!qr(o)||o.leading&&Qt(t.originalText,de(o))||o.trailing&&Qt(t.originalText,me(o),{backwards:!0})),a=r("param");return["catch ",s?["(",R([j,a]),j,") "]:["(",a,") "],r("body")]}return["catch ",r("body")];case"SwitchStatement":return[I(["switch (",R([j,r("discriminant")]),j,")"])," {",i.cases.length>0?R([U,ge(U,e.map(({node:s,isLast:a})=>[r(),!a&&mn(s,t)?U:""],"cases"))]):"",U,"}"];case"SwitchCase":{let s=[];i.test?s.push("case ",r("test"),":"):s.push("default:"),X(i,ee.Dangling)&&s.push(" ",$e(e,t));let a=i.consequent.filter(o=>o.type!=="EmptyStatement");if(a.length>0){let o=Ef(e,t,r,"consequent");s.push(a.length===1&&a[0].type==="BlockStatement"?[" ",o]:R([U,o]))}return s}case"DebuggerStatement":return["debugger",t.semi?";":""];case"ClassDeclaration":case"ClassExpression":return Jy(e,t,r);case"ClassMethod":case"ClassPrivateMethod":case"MethodDefinition":return oT(e,t,r);case"ClassProperty":case"PropertyDefinition":case"ClassPrivateProperty":case"ClassAccessorProperty":case"AccessorProperty":return uT(e,t,r);case"TemplateElement":return fs(i.value.raw);case"TemplateLiteral":return DA(e,t,r);case"TaggedTemplateExpression":return Q5(e,t,r);case"PrivateIdentifier":return["#",i.name];case"PrivateName":return["#",r("id")];case"TopicReference":return"%";case"ArgumentPlaceholder":return"?";case"ModuleExpression":return["module ",r("body")];case"VoidPattern":return"void";case"EmptyStatement":if(Sy(e))return";";case"InterpreterDirective":default:throw new za(i,"ESTree")}}function DT(e){return[e("elementType"),"[]"]}var TO=le(["SatisfiesExpression","TSSatisfiesExpression"]);function ET(e,t,r){let{parent:n,node:i,key:s}=e,a=i.type==="AsConstExpression"?"const":r("typeAnnotation"),o=[r("expression")," ",TO(i)?"satisfies":"as"," ",a];return s==="callee"&&Ae(n)||s==="object"&&Oe(n)?I([R([j,...o]),j]):o}function SO(e,t,r){let{node:n}=e,i=[pr(e),"component"];n.id&&i.push(" ",r("id")),i.push(r("typeParameters"));let s=FO(e,t,r);return n.rendersType?i.push(I([s," ",r("rendersType")])):i.push(I([s])),n.body&&i.push(" ",r("body")),t.semi&&n.type==="DeclareComponent"&&i.push(";"),i}function FO(e,t,r){let{node:n}=e,i=n.params;if(n.rest&&(i=[...i,n.rest]),i.length===0)return["(",$e(e,t,{filter:a=>Vr(t.originalText,de(a))===")"}),")"];let s=[];return wO(e,(a,o)=>{let u=o===i.length-1;u&&n.rest&&s.push("..."),s.push(r()),!u&&(s.push(","),mn(i[o],t)?s.push(U,U):s.push(Q))}),["(",R([j,...s]),ue(fn(t,"all")&&!bO(n,i)?",":""),j,")"]}function bO(e,t){var r;return e.rest||((r=Se(0,t,-1))==null?void 0:r.type)==="RestElement"}function wO(e,t){let{node:r}=e,n=0,i=s=>t(s,n++);e.each(i,"params"),r.rest&&e.call(i,"rest")}function PO(e,t,r){let{node:n}=e;return n.shorthand?r("local"):[r("name")," as ",r("local")]}function kO(e,t,r){let{node:n}=e,i=[];return n.name&&i.push(r("name"),n.optional?"?: ":": "),i.push(r("typeAnnotation")),i}function xT(e,t,r){return Xy(e,t,r)}function NO(e,t,r){let{node:n}=e;return[n.type==="EnumSymbolBody"||n.explicitType?`of ${n.type.slice(4,-4).toLowerCase()} `:"",xT(e,t,r)]}function CT(e,t){let{node:r}=e,n=t("id");r.computed&&(n=["[",n,"]"]);let i="";return r.initializer&&(i=t("initializer")),r.init&&(i=t("init")),i?[n," = ",i]:n}function vT(e,t){let{node:r}=e;return[pr(e),r.const?"const ":"","enum ",t("id")," ",t("body")]}function AT(e,t,r){let{node:n}=e,i=[Cp(e)];(n.type==="TSConstructorType"||n.type==="TSConstructSignatureDeclaration")&&i.push("new ");let s=Ps(e,t,r,!1,!0),a=[];return n.type==="FunctionTypeAnnotation"?a.push(BO(e)?" => ":": ",r("returnType")):a.push(xt(e,r,"returnType")),Va(n,a)&&(s=I(s)),i.push(s,a),[I(i),n.type==="TSConstructSignatureDeclaration"||n.type==="TSCallSignatureDeclaration"?Sn(e,t):""]}function BO(e){var n;let{node:t,parent:r}=e;return t.type==="FunctionTypeAnnotation"&&(Uv(r)||!((r.type==="ObjectTypeProperty"||r.type==="ObjectTypeInternalSlot")&&!r.variance&&!r.optional&&gp(r,t)||r.type==="ObjectTypeCallProperty"||((n=e.getParentNode(2))==null?void 0:n.type)==="DeclareFunction"))}function IO(e,t,r){let{node:n}=e,i=["hook"];n.id&&i.push(" ",r("id"));let s=Ps(e,t,r,!1,!0),a=Ap(e,r),o=Va(n,a);return i.push(I([o?I(s):s,a]),n.body?" ":"",r("body")),i}function _O(e,t,r){let{node:n}=e,i=[pr(e),"hook"];return n.id&&i.push(" ",r("id")),t.semi&&i.push(";"),i}function dD(e){var r;let{node:t}=e;return t.type==="HookTypeAnnotation"&&((r=e.getParentNode(2))==null?void 0:r.type)==="DeclareHook"}function LO(e,t,r){let{node:n}=e,i=Ps(e,t,r,!1,!0),s=[dD(e)?": ":" => ",r("returnType")];return I([dD(e)?"":"hook ",Va(n,s)?I(i):i,s])}function TT(e,t,r){return[r("objectType"),Mt(e),"[",r("indexType"),"]"]}function ST(e,t,r){return["infer ",r("typeParameter")]}function FT(e,t,r){let n=!1;return I(e.map(({isFirst:i,previous:s,node:a,index:o})=>{let u=r();if(i)return u;let l=bi(a),c=bi(s);return c&&l?[" & ",n?R(u):u]:!c&&!l||jr(t.originalText,a)?t.experimentalOperatorPosition==="start"?R([Q,"& ",u]):R([" &",Q,u]):(o>1&&(n=!0),[" & ",o>1?R(u):u])},"types"))}function $O(e){switch(e){case null:return"";case"PlusOptional":return"+?";case"MinusOptional":return"-?";case"Optional":return"?"}}function OO(e,t,r){let{node:n}=e;return[I([n.variance?r("variance"):"","[",R([r("keyTparam")," in ",r("sourceType")]),"]",$O(n.optional),": ",r("propType")]),Sn(e,t)]}function fD(e,t){return e==="+"||e==="-"?e+t:t}function MO(e,t,r){let{node:n}=e,i=!1;if(t.objectWrap==="preserve"){let s=me(n),a=Tp(t,s+1,me(n.key)),o=s+1+a.search(/\S/u);cr(t.originalText,s,o)&&(i=!0)}return I(["{",R([t.bracketSpacing?Q:j,X(n,ee.Dangling)?I([$e(e,t),U]):"",I([n.readonly?[fD(n.readonly,"readonly")," "]:"","[",r("key")," in ",r("constraint"),n.nameType?[" as ",r("nameType")]:"","]",n.optional?fD(n.optional,"?"):"",n.typeAnnotation?": ":"",r("typeAnnotation")]),t.semi?ue(";"):""]),t.bracketSpacing?Q:j,"}"],{shouldBreak:i})}function jO(e,t,r){let{node:n}=e;return[I(["match (",R([j,r("argument")]),j,")"])," {",n.cases.length>0?R([U,ge(U,e.map(({node:i,isLast:s})=>[r(),!s&&mn(i,t)?U:""],"cases"))]):"",U,"}"]}function RO(e,t,r){let{node:n}=e,i=X(n,ee.Dangling)?[" ",$e(e,t)]:[],s=n.type==="MatchStatementCase"?[" ",r("body")]:R([Q,r("body"),","]);return[r("pattern"),n.guard?I([R([Q,"if (",r("guard"),")"])]):"",I([" =>",i,s])]}function UO(e,t,r){let{node:n}=e;switch(n.type){case"MatchOrPattern":return qO(e,t,r);case"MatchAsPattern":return[r("pattern")," as ",r("target")];case"MatchWildcardPattern":return["_"];case"MatchLiteralPattern":return r("literal");case"MatchUnaryPattern":return[n.operator,r("argument")];case"MatchIdentifierPattern":return r("id");case"MatchMemberPattern":{let i=n.property.type==="Identifier"?[".",r("property")]:["[",R([j,r("property")]),j,"]"];return I([r("base"),i])}case"MatchBindingPattern":return[n.kind," ",r("id")];case"MatchObjectPattern":{let i=e.map(r,"properties");return n.rest&&i.push(r("rest")),I(["{",R([j,ge([",",Q],i)]),n.rest?"":ue(","),j,"}"])}case"MatchArrayPattern":{let i=e.map(r,"elements");return n.rest&&i.push(r("rest")),I(["[",R([j,ge([",",Q],i)]),n.rest?"":ue(","),j,"]"])}case"MatchObjectPatternProperty":return n.shorthand?r("pattern"):I([r("key"),":",R([Q,r("pattern")])]);case"MatchRestPattern":{let i=["..."];return n.argument&&i.push(r("argument")),i}}}var bT=le(["MatchWildcardPattern","MatchLiteralPattern","MatchUnaryPattern","MatchIdentifierPattern"]);function VO(e){let{patterns:t}=e;if(t.some(n=>X(n)))return!1;let r=t.find(n=>n.type==="MatchObjectPattern");return r?t.every(n=>n===r||bT(n)):!1}function zO(e){return bT(e)||e.type==="MatchObjectPattern"?!0:e.type==="MatchOrPattern"?VO(e):!1}function qO(e,t,r){let{node:n}=e,{parent:i}=e,s=i.type!=="MatchStatementCase"&&i.type!=="MatchExpressionCase"&&i.type!=="MatchArrayPattern"&&i.type!=="MatchObjectPatternProperty"&&!jr(t.originalText,n),a=zO(n),o=e.map(()=>{let l=r();return a||(l=zr(2,l)),Ar(e,l,t)},"patterns");if(a)return ge(" | ",o);let u=[ue(["| "]),ge([Q,"| "],o)];return ji(e,t)?I([R([ue([j]),u]),j]):i.type==="MatchArrayPattern"&&i.elements.length>1?I([R([ue(["(",j]),u]),j,ue(")")]):I(s?R(u):u)}function HO(e,t,r){let{node:n}=e,i=[pr(e),"opaque type ",r("id"),r("typeParameters")];if(n.supertype&&i.push(": ",r("supertype")),n.lowerBound||n.upperBound){let s=[];n.lowerBound&&s.push(R([Q,"super ",r("lowerBound")])),n.upperBound&&s.push(R([Q,"extends ",r("upperBound")])),i.push(I(s))}return n.impltype&&i.push(" = ",r("impltype")),i.push(t.semi?";":""),i}function wT(e,t,r){let{node:n}=e;return["...",...n.type==="TupleTypeSpreadElement"&&n.label?[r("label"),": "]:[],r("typeAnnotation")]}function PT(e,t,r){let{node:n}=e;return[n.variance?r("variance"):"",r("label"),n.optional?"?":"",": ",r("elementType")]}function kT(e,t,r){let{node:n}=e,i=[pr(e),"type ",r("id"),r("typeParameters")],s=n.type==="TSTypeAliasDeclaration"?"typeAnnotation":"right";return[zu(e,t,r,i," =",s),t.semi?";":""]}function WO(e,t,r){let{node:n}=e;return Nt(n).length===1&&n.type.startsWith("TS")&&!n[r][0].constraint&&e.parent.type==="ArrowFunctionExpression"&&!(t.filepath&&/\.ts$/u.test(t.filepath))}function Xo(e,t,r,n){let{node:i}=e;if(!i[n])return"";if(!Array.isArray(i[n]))return r(n);let s=Dp(e.grandparent),a=e.match(u=>!(u[n].length===1&&bi(u[n][0])),void 0,(u,l)=>l==="typeAnnotation",u=>u.type==="Identifier",RA);if(i[n].length===0||!a&&(s||i[n].length===1&&(i[n][0].type==="NullableTypeAnnotation"||f7(i[n][0]))))return["<",ge(", ",e.map(r,n)),JO(e,t),">"];let o=i.type==="TSTypeParameterInstantiation"?"":WO(e,t,n)?",":fn(t)?ue(","):"";return I(["<",R([j,ge([",",Q],e.map(r,n))]),o,j,">"])}function JO(e,t){let{node:r}=e;if(!X(r,ee.Dangling))return"";let n=!X(r,ee.Line),i=$e(e,t,{indent:!n});return n?i:[i,U]}function NT(e,t,r){let{node:n}=e,i=[n.const?"const ":""],s=n.type==="TSTypeParameter"?r("name"):n.name;if(n.variance&&i.push(r("variance")),n.in&&i.push("in "),n.out&&i.push("out "),i.push(s),n.bound&&(n.usesExtendsBound&&i.push(" extends "),i.push(xt(e,r,"bound"))),n.constraint){let a=Symbol("constraint");i.push(" extends",I(R(Q),{id:a}),pn,Cu(r("constraint"),{groupId:a}))}if(n.default){let a=Symbol("default");i.push(" =",I(R(Q),{id:a}),pn,Cu(r("default"),{groupId:a}))}return I(i)}function BT(e,t){let{node:r}=e;return[r.type==="TSTypePredicate"&&r.asserts?"asserts ":r.type==="TypePredicate"&&r.kind?`${r.kind} `:"",t("parameterName"),r.typeAnnotation?[" is ",xt(e,t)]:""]}function IT({node:e},t){let r=e.type==="TSTypeQuery"?"exprName":"argument";return["typeof ",t(r),t("typeArguments")]}function XO(e,t,r){let{node:n}=e;if($v(n))return n.type.slice(0,-14).toLowerCase();switch(n.type){case"ComponentDeclaration":case"DeclareComponent":case"ComponentTypeAnnotation":return SO(e,t,r);case"ComponentParameter":return PO(e,t,r);case"ComponentTypeParameter":return kO(e,t,r);case"HookDeclaration":return IO(e,t,r);case"DeclareHook":return _O(e,t,r);case"HookTypeAnnotation":return LO(e,t,r);case"DeclareFunction":return[pr(e),"function ",r("id"),r("predicate"),t.semi?";":""];case"DeclareModule":return["declare module ",r("id")," ",r("body")];case"DeclareModuleExports":return["declare module.exports",xt(e,r),t.semi?";":""];case"DeclareNamespace":return["declare namespace ",r("id")," ",r("body")];case"DeclareVariable":return[pr(e),n.kind??"var"," ",r("id"),t.semi?";":""];case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":return hT(e,t,r);case"DeclareOpaqueType":case"OpaqueType":return HO(e,t,r);case"DeclareTypeAlias":case"TypeAlias":return kT(e,t,r);case"IntersectionTypeAnnotation":return FT(e,t,r);case"UnionTypeAnnotation":return PA(e,t,r);case"ConditionalTypeAnnotation":return Gy(e,t,r);case"InferTypeAnnotation":return ST(e,t,r);case"FunctionTypeAnnotation":return AT(e,t,r);case"TupleTypeAnnotation":return Vy(e,t,r);case"TupleTypeLabeledElement":return PT(e,t,r);case"TupleTypeSpreadElement":return wT(e,t,r);case"GenericTypeAnnotation":return[r("id"),Xo(e,t,r,"typeParameters")];case"IndexedAccessType":case"OptionalIndexedAccessType":return TT(e,t,r);case"TypeAnnotation":return BA(e,t,r);case"TypeParameter":return NT(e,t,r);case"TypeofTypeAnnotation":return IT(e,r);case"ExistsTypeAnnotation":return"*";case"ArrayTypeAnnotation":return DT(r);case"DeclareEnum":case"EnumDeclaration":return vT(e,r);case"EnumBooleanBody":case"EnumNumberBody":case"EnumBigIntBody":case"EnumStringBody":case"EnumSymbolBody":return NO(e,t,r);case"EnumBooleanMember":case"EnumNumberMember":case"EnumBigIntMember":case"EnumStringMember":case"EnumDefaultedMember":return CT(e,r);case"FunctionTypeParam":{let i=n.name?r("name"):e.parent.this===n?"this":"";return[i,Mt(e),i?": ":"",r("typeAnnotation")]}case"DeclareClass":case"DeclareInterface":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":return Jy(e,t,r);case"ObjectTypeAnnotation":return Wy(e,t,r);case"ClassImplements":case"InterfaceExtends":return[r("id"),r("typeParameters")];case"NullableTypeAnnotation":return["?",r("typeAnnotation")];case"Variance":{let{kind:i}=n;return i==="plus"?"+":"-"}case"KeyofTypeAnnotation":return["keyof ",r("argument")];case"ObjectTypeCallProperty":return[n.static?"static ":"",r("value"),Sn(e,t)];case"ObjectTypeMappedTypeProperty":return OO(e,t,r);case"ObjectTypeIndexer":return[n.static?"static ":"",n.variance?r("variance"):"","[",r("id"),n.id?": ":"",r("key"),"]: ",r("value"),Sn(e,t)];case"ObjectTypeProperty":{let i="";return n.proto?i="proto ":n.static&&(i="static "),[i,n.kind!=="init"?n.kind+" ":"",n.variance?r("variance"):"",qu(e,t,r),Mt(e),Ru(n)?"":": ",r("value"),Sn(e,t)]}case"ObjectTypeInternalSlot":return[n.static?"static ":"","[[",r("id"),"]]",Mt(e),n.method?"":": ",r("value"),Sn(e,t)];case"ObjectTypeSpreadProperty":return Cf(e,r);case"QualifiedTypeofIdentifier":case"QualifiedTypeIdentifier":return[r("qualification"),".",r("id")];case"NullLiteralTypeAnnotation":return"null";case"BooleanLiteralTypeAnnotation":return String(n.value);case"StringLiteralTypeAnnotation":return fs(Fa(Yt(n),t));case"NumberLiteralTypeAnnotation":return Pa(Yt(n));case"BigIntLiteralTypeAnnotation":return xf(Yt(n));case"TypeCastExpression":return["(",r("expression"),xt(e,r),")"];case"TypePredicate":return BT(e,r);case"TypeOperator":return[n.operator," ",r("typeAnnotation")];case"TypeParameterDeclaration":case"TypeParameterInstantiation":return Xo(e,t,r,"params");case"InferredPredicate":case"DeclaredPredicate":return[e.key==="predicate"&&e.parent.type!=="DeclareFunction"&&!e.parent.returnType?": ":" ","%checks",...n.type==="DeclaredPredicate"?["(",r("value"),")"]:[]];case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return ET(e,t,r);case"MatchExpression":case"MatchStatement":return jO(e,t,r);case"MatchExpressionCase":case"MatchStatementCase":return RO(e,t,r);case"MatchOrPattern":case"MatchAsPattern":case"MatchWildcardPattern":case"MatchLiteralPattern":case"MatchUnaryPattern":case"MatchIdentifierPattern":case"MatchMemberPattern":case"MatchBindingPattern":case"MatchObjectPattern":case"MatchObjectPatternProperty":case"MatchRestPattern":case"MatchArrayPattern":return UO(e,t,r)}}function KO(e,t,r){let{node:n}=e,i=n.parameters.length>1?ue(fn(t)?",":""):"",s=I([R([j,ge([", ",j],e.map(r,"parameters"))]),i,j]);return[e.key==="body"&&e.parent.type==="ClassBody"&&n.static?"static ":"",n.readonly?"readonly ":"","[",n.parameters?s:"","]",xt(e,r),Sn(e,t)]}function mD(e,t,r){let{node:n}=e;return[n.postfix?"":r,xt(e,t),n.postfix?r:""]}function GO(e,t,r){let{node:n}=e,i=[],s=n.kind&&n.kind!=="method"?`${n.kind} `:"";i.push(vp(n),s,n.computed?"[":"",r("key"),n.computed?"]":"",Mt(e));let a=Ps(e,t,r,!1,!0),o=xt(e,r,"returnType"),u=Va(n,o);return i.push(u?I(a):a),n.returnType&&i.push(I(o)),[I(i),Sn(e,t)]}function QO(e,t,r){let{node:n}=e;return[pr(e),n.kind==="global"?"":`${n.kind} `,r("id"),n.body?[" ",I(r("body"))]:t.semi?";":""]}function YO(e,t,r){let{node:n}=e,i=!(At(n.expression)||Ur(n.expression)),s=I(["<",R([j,r("typeAnnotation")]),j,">"]),a=[ue("("),R([j,r("expression")]),j,ue(")")];return i?rs([[s,r("expression")],[s,I(a,{shouldBreak:!0})],[s,r("expression")]]):I([s,r("expression")])}function ZO(e,t,r){let{node:n}=e;if(n.type.startsWith("TS")){if(Ov(n))return n.type.slice(2,-7).toLowerCase();switch(n.type){case"TSThisType":return"this";case"TSTypeAssertion":return YO(e,t,r);case"TSDeclareFunction":return zA(e,t,r);case"TSExportAssignment":return["export = ",r("expression"),t.semi?";":""];case"TSModuleBlock":return tT(e,t,r);case"TSInterfaceBody":case"TSTypeLiteral":return Wy(e,t,r);case"TSTypeAliasDeclaration":return kT(e,t,r);case"TSQualifiedName":return[r("left"),".",r("right")];case"TSAbstractMethodDefinition":case"TSDeclareMethod":return oT(e,t,r);case"TSAbstractAccessorProperty":case"TSAbstractPropertyDefinition":return uT(e,t,r);case"TSInterfaceHeritage":case"TSClassImplements":case"TSInstantiationExpression":return[r("expression"),r("typeArguments")];case"TSTemplateLiteralType":return DA(e,t,r);case"TSNamedTupleMember":return PT(e,t,r);case"TSRestType":return wT(e,t,r);case"TSOptionalType":return[r("typeAnnotation"),"?"];case"TSInterfaceDeclaration":return Jy(e,t,r);case"TSTypeParameterDeclaration":case"TSTypeParameterInstantiation":return Xo(e,t,r,"params");case"TSTypeParameter":return NT(e,t,r);case"TSAsExpression":case"TSSatisfiesExpression":return ET(e,t,r);case"TSArrayType":return DT(r);case"TSPropertySignature":return[n.readonly?"readonly ":"",qu(e,t,r),Mt(e),xt(e,r),Sn(e,t)];case"TSParameterProperty":return[vp(n),n.static?"static ":"",n.override?"override ":"",n.readonly?"readonly ":"",r("parameter")];case"TSTypeQuery":return IT(e,r);case"TSIndexSignature":return KO(e,t,r);case"TSTypePredicate":return BT(e,r);case"TSNonNullExpression":return[r("expression"),"!"];case"TSImportType":return[Oc(e,t,r),n.qualifier?[".",r("qualifier")]:"",Xo(e,t,r,"typeArguments")];case"TSLiteralType":return r("literal");case"TSIndexedAccessType":return TT(e,t,r);case"TSTypeOperator":return[n.operator," ",r("typeAnnotation")];case"TSMappedType":return MO(e,t,r);case"TSMethodSignature":return GO(e,t,r);case"TSNamespaceExportDeclaration":return["export as namespace ",r("id"),t.semi?";":""];case"TSEnumDeclaration":return vT(e,r);case"TSEnumBody":return xT(e,t,r);case"TSEnumMember":return CT(e,r);case"TSImportEqualsDeclaration":return["import ",dT(n,!1),r("id")," = ",r("moduleReference"),t.semi?";":""];case"TSExternalModuleReference":return Oc(e,t,r);case"TSModuleDeclaration":return QO(e,t,r);case"TSConditionalType":return Gy(e,t,r);case"TSInferType":return ST(e,t,r);case"TSIntersectionType":return FT(e,t,r);case"TSUnionType":return PA(e,t,r);case"TSFunctionType":case"TSCallSignatureDeclaration":case"TSConstructorType":case"TSConstructSignatureDeclaration":return AT(e,t,r);case"TSTupleType":return Vy(e,t,r);case"TSTypeReference":return[r("typeName"),Xo(e,t,r,"typeArguments")];case"TSTypeAnnotation":return BA(e,t,r);case"TSEmptyBodyFunctionExpression":return zy(e,t,r);case"TSJSDocAllType":return"*";case"TSJSDocUnknownType":return"?";case"TSJSDocNullableType":return mD(e,r,"?");case"TSJSDocNonNullableType":return mD(e,r,"!");case"TSParenthesizedType":default:throw new za(n,"TypeScript")}}}function eM(e,t,r,n){for(let i of[v$,g$,XO,ZO,AO]){let s=i(e,t,r,n);if(s!==void 0)return s}}var tM=le(["ClassMethod","ClassPrivateMethod","ClassProperty","ClassAccessorProperty","AccessorProperty","TSAbstractAccessorProperty","PropertyDefinition","TSAbstractPropertyDefinition","ClassPrivateProperty","MethodDefinition","TSAbstractMethodDefinition","TSDeclareMethod"]);function rM(e,t,r,n){var p;e.isRoot&&((p=t.__onHtmlBindingRoot)==null||p.call(t,e.node,t));let{node:i}=e,s=Hy(e)?t.originalText.slice(me(i),de(i)):eM(e,t,r,n);if(!s)return"";if(tM(i))return s;let a=Me(i.decorators),o=b$(e,t,r),u=i.type==="ClassExpression";if(a&&!u)return pf(s,h=>I([o,h]));let l=ji(e,t),c=Q7(e,t);return!o&&!l&&!c?s:pf(s,h=>[c?";":"",l?"(":"",l&&u&&a?[R([Q,o,h]),Q]:[o,h],l?")":""])}var yD=rM,nM={experimental_avoidAstMutation:!0},iM=[{name:"JSON.stringify",type:"data",aceMode:"json",extensions:[".importmap"],filenames:["package.json","package-lock.json","composer.json"],tmScope:"source.json",aliases:["geojson","jsonl","sarif","topojson"],codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json-stringify"],vscodeLanguageIds:["json"],linguistLanguageId:174},{name:"JSON",type:"data",aceMode:"json",extensions:[".json",".4DForm",".4DProject",".avsc",".geojson",".gltf",".har",".ice",".JSON-tmLanguage",".json.example",".mcmeta",".sarif",".tact",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest",".yy",".yyp"],filenames:[".all-contributorsrc",".arcconfig",".auto-changelog",".c8rc",".htmlhintrc",".imgbotconfig",".nycrc",".tern-config",".tern-project",".watchmanconfig",".babelrc",".jscsrc",".jshintrc",".jslintrc",".swcrc"],tmScope:"source.json",aliases:["geojson","jsonl","sarif","topojson"],codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json"],vscodeLanguageIds:["json"],linguistLanguageId:174},{name:"JSON with Comments",type:"data",aceMode:"javascript",extensions:[".jsonc",".code-snippets",".code-workspace",".sublime-build",".sublime-color-scheme",".sublime-commands",".sublime-completions",".sublime-keymap",".sublime-macro",".sublime-menu",".sublime-mousemap",".sublime-project",".sublime-settings",".sublime-theme",".sublime-workspace",".sublime_metrics",".sublime_session"],filenames:[],tmScope:"source.json.comments",aliases:["jsonc"],codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",group:"JSON",parsers:["jsonc"],vscodeLanguageIds:["jsonc"],linguistLanguageId:423},{name:"JSON5",type:"data",aceMode:"json5",extensions:[".json5"],tmScope:"source.js",codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json5"],vscodeLanguageIds:["json5"],linguistLanguageId:175}],_T={};Dy(_T,{getVisitorKeys:()=>oM,massageAstNode:()=>LT,print:()=>uM});var $s=[[]],sM={JsonRoot:["node"],ArrayExpression:["elements"],ObjectExpression:["properties"],ObjectProperty:["key","value"],UnaryExpression:["argument"],NullLiteral:$s[0],BooleanLiteral:$s[0],StringLiteral:$s[0],NumericLiteral:$s[0],Identifier:$s[0],TemplateLiteral:["quasis"],TemplateElement:$s[0]},aM=_v(sM),oM=aM;function uM(e,t,r){let{node:n}=e;switch(n.type){case"JsonRoot":return[r("node"),U];case"ArrayExpression":{if(n.elements.length===0)return"[]";let i=e.map(()=>e.node===null?"null":r(),"elements");return["[",R([U,ge([",",U],i)]),U,"]"]}case"ObjectExpression":return n.properties.length===0?"{}":["{",R([U,ge([",",U],e.map(r,"properties"))]),U,"}"];case"ObjectProperty":return[r("key"),": ",r("value")];case"UnaryExpression":return[n.operator==="+"?"":n.operator,r("argument")];case"NullLiteral":return"null";case"BooleanLiteral":return n.value?"true":"false";case"StringLiteral":return JSON.stringify(n.value);case"NumericLiteral":return gD(e)?JSON.stringify(String(n.value)):JSON.stringify(n.value);case"Identifier":return gD(e)?JSON.stringify(n.name):n.name;case"TemplateLiteral":return r(["quasis",0]);case"TemplateElement":return JSON.stringify(n.value.cooked);default:throw new za(n,"JSON")}}function gD(e){return e.key==="key"&&e.parent.type==="ObjectProperty"}var lM=new Set(["start","end","extra","loc","comments","leadingComments","trailingComments","innerComments","errors","range","tokens"]);function LT(e,t){let{type:r}=e;if(r==="ObjectProperty"){let{key:n}=e;n.type==="Identifier"?t.key={type:"StringLiteral",value:n.name}:n.type==="NumericLiteral"&&(t.key={type:"StringLiteral",value:String(n.value)});return}if(r==="UnaryExpression"&&e.operator==="+")return t.argument;if(r==="ArrayExpression"){for(let[n,i]of e.elements.entries())i===null&&t.elements.splice(n,0,{type:"NullLiteral"});return}if(r==="TemplateLiteral")return{type:"StringLiteral",value:e.quasis[0].value.cooked}}LT.ignoredProperties=lM;var po={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},objectWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap object literals.",choices:[{value:"preserve",description:"Keep as multi-line, if there is a newline between the opening brace and first property."},{value:"collapse",description:"Fit to a single line when possible."}]},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}},ei="JavaScript",cM={arrowParens:{category:ei,type:"choice",default:"always",description:"Include parentheses around a sole arrow function parameter.",choices:[{value:"always",description:"Always include parens. Example: `(x) => x`"},{value:"avoid",description:"Omit parens when possible. Example: `x => x`"}]},bracketSameLine:po.bracketSameLine,objectWrap:po.objectWrap,bracketSpacing:po.bracketSpacing,jsxBracketSameLine:{category:ei,type:"boolean",description:"Put > on the last line instead of at a new line.",deprecated:"2.4.0"},semi:{category:ei,type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},experimentalOperatorPosition:{category:ei,type:"choice",default:"end",description:"Where to print operators when binary expressions wrap lines.",choices:[{value:"start",description:"Print operators at the start of new lines."},{value:"end",description:"Print operators at the end of previous lines."}]},experimentalTernaries:{category:ei,type:"boolean",default:!1,description:"Use curious ternaries, with the question mark after the condition.",oppositeDescription:"Default behavior of ternaries; keep question marks on the same line as the consequent."},singleQuote:po.singleQuote,jsxSingleQuote:{category:ei,type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{category:ei,type:"choice",default:"as-needed",description:"Change when properties in objects are quoted.",choices:[{value:"as-needed",description:"Only add quotes around object properties where required."},{value:"consistent",description:"If at least one property in an object requires quotes, quote all properties."},{value:"preserve",description:"Respect the input use of quotes in object properties."}]},trailingComma:{category:ei,type:"choice",default:"all",description:"Print trailing commas wherever possible when multi-line.",choices:[{value:"all",description:"Trailing commas wherever possible (including function arguments)."},{value:"es5",description:"Trailing commas where valid in ES5 (objects, arrays, etc.)"},{value:"none",description:"No trailing commas."}]},singleAttributePerLine:po.singleAttributePerLine},$T=cM,OT={estree:wv,"estree-json":_T},MT=[...p6,...iM];const pM=Object.freeze(Object.defineProperty({__proto__:null,default:bv,languages:MT,options:$T,printers:OT},Symbol.toStringTag,{value:"Module"}));var jT=Object.defineProperty,RT=e=>{throw TypeError(e)},hM=(e,t,r)=>t in e?jT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,UT=(e,t)=>{for(var r in t)jT(e,r,{get:t[r],enumerable:!0})},DD=(e,t,r)=>hM(e,typeof t!="symbol"?t+"":t,r),dM=(e,t,r)=>t.has(e)||RT("Cannot "+r),wl=(e,t,r)=>(dM(e,t,"read from private field"),r?r.call(e):t.get(e)),fM=(e,t,r)=>t.has(e)?RT("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),VT={};UT(VT,{languages:()=>_S,options:()=>LS,parsers:()=>f0,printers:()=>RS});var Qy=(e,t)=>(r,n,...i)=>r|1&&n==null?void 0:(t.call(n)??n[e]).apply(n,i),mM=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},yM=Qy("replaceAll",function(){if(typeof this=="string")return mM}),jt=yM;function gM(e){return this[e<0?this.length+e:e]}var DM=Qy("at",function(){if(Array.isArray(this)||typeof this=="string")return gM}),qa=DM,EM=()=>{},xM=EM,zT="string",qT="array",HT="cursor",Yy="indent",Zy="align",WT="trim",e0="group",t0="fill",r0="if-break",n0="indent-if-break",JT="line-suffix",XT="line-suffix-boundary",Ha="line",KT="label",i0="break-parent",GT=new Set([HT,Yy,Zy,WT,e0,t0,r0,n0,JT,XT,Ha,KT,i0]);function CM(e){if(typeof e=="string")return zT;if(Array.isArray(e))return qT;if(!e)return;let{type:t}=e;if(GT.has(t))return t}var QT=CM,vM=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function AM(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}', -Expected it to be 'string' or 'object'.`;if(QT(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=vM([...GT].map(i=>`'${i}'`));return`Unexpected doc.type '${e.type}'. -Expected it to be ${n}.`}var TM=class extends Error{constructor(t){super(AM(t));H(this,"name","InvalidDocError");this.doc=t}},SM=TM;function YT(e,t){if(typeof e=="string")return t(e);let r=new Map;return n(e);function n(s){if(r.has(s))return r.get(s);let a=i(s);return r.set(s,a),a}function i(s){switch(QT(s)){case qT:return t(s.map(n));case t0:return t({...s,parts:s.parts.map(n)});case r0:return t({...s,breakContents:n(s.breakContents),flatContents:n(s.flatContents)});case e0:{let{expandedStates:a,contents:o}=s;return a?(a=a.map(n),o=a[0]):o=n(o),t({...s,contents:o,expandedStates:a})}case Zy:case Yy:case n0:case KT:case JT:return t({...s,contents:n(s.contents)});case zT:case HT:case WT:case XT:case Ha:case i0:return t(s);default:throw new SM(s)}}}function un(e,t=BM){return YT(e,r=>typeof r=="string"?Wa(t,r.split(` -`)):r)}var FM=xM;function yn(e){return{type:Yy,contents:e}}function bM(e,t){return{type:Zy,contents:t,n:e}}function wM(e){return bM(Number.NEGATIVE_INFINITY,e)}var Hu={type:i0};function ZT(e){return{type:t0,parts:e}}function ot(e,t={}){return FM(t.expandedStates),{type:e0,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function Tu(e,t="",r={}){return{type:r0,breakContents:e,flatContents:t,groupId:r.groupId}}function PM(e,t){return{type:n0,contents:e,groupId:t.groupId,negate:t.negate}}function Wa(e,t){let r=[];for(let n=0;na?n:r).character}var $M=LM;function OM(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var yr,Vc,rS,s2,MM=(s2=class{constructor(e){Ui(this,Vc);Ui(this,yr,void 0);$p(this,yr,new Set(e))}getLeadingWhitespaceCount(e){let t=gt(this,yr),r=0;for(let n=0;n=0&&t.has(e.charAt(n));n--)r++;return r}getLeadingWhitespace(e){let t=this.getLeadingWhitespaceCount(e);return e.slice(0,t)}getTrailingWhitespace(e){let t=this.getTrailingWhitespaceCount(e);return e.slice(e.length-t)}hasLeadingWhitespace(e){return gt(this,yr).has(e.charAt(0))}hasTrailingWhitespace(e){return gt(this,yr).has(qa(0,e,-1))}trimStart(e){let t=this.getLeadingWhitespaceCount(e);return e.slice(t)}trimEnd(e){let t=this.getTrailingWhitespaceCount(e);return e.slice(0,e.length-t)}trim(e){return this.trimEnd(this.trimStart(e))}split(e,t=!1){let r=`[${OM([...gt(this,yr)].join(""))}]+`,n=new RegExp(t?`(${r})`:r,"u");return e.split(n)}hasWhitespaceCharacter(e){let t=gt(this,yr);return Array.prototype.some.call(e,r=>t.has(r))}hasNonWhitespaceCharacter(e){let t=gt(this,yr);return Array.prototype.some.call(e,r=>!t.has(r))}isWhitespaceOnly(e){let t=gt(this,yr);return Array.prototype.every.call(e,r=>t.has(r))}dedentString(e){let t=Kn(this,Vc,rS).call(this,e);return t===0?e:e.split(` +`)}},mr=new WeakMap,Gc=new WeakSet,fb=function(t){let r=Number.POSITIVE_INFINITY;for(let n of t.split(` +`)){if(n.length===0)continue;let i=this.getLeadingWhitespaceCount(n);if(i===0)return 0;n.length!==i&&ie===""||e===Q||e===U||e===j;function P$(e,t,r){var x,v,T,k,N;let{node:n}=e;if(n.type==="JSXElement"&&W$(n))return[r("openingElement"),r("closingElement")];let i=n.type==="JSXElement"?r("openingElement"):r("openingFragment"),s=n.type==="JSXElement"?r("closingElement"):r("closingFragment");if(n.children.length===1&&n.children[0].type==="JSXExpressionContainer"&&(n.children[0].expression.type==="TemplateLiteral"||n.children[0].expression.type==="TaggedTemplateExpression"))return[i,...e.map(r,"children"),s];n.children=n.children.map(E=>J$(E)?{type:"JSXText",value:" ",raw:" "}:E);let a=n.children.some(mt),o=n.children.filter(E=>E.type==="JSXExpressionContainer").length>1,u=n.type==="JSXElement"&&n.openingElement.attributes.length>1,l=$t(i)||a||u||o,c=e.parent.rootMarker==="mdx",p=t.singleQuote?"{' '}":'{" "}',h=c?Q:ue([p,j]," "),d=((v=(x=n.openingElement)==null?void 0:x.name)==null?void 0:v.name)==="fbt",f=N$(e,t,r,h,d),y=n.children.some(E=>wu(E));for(let E=f.length-2;E>=0;E--){let A=f[E]===""&&f[E+1]==="",b=f[E]===U&&f[E+1]===""&&f[E+2]===U,B=(f[E]===j||f[E]===U)&&f[E+1]===""&&f[E+2]===h,M=f[E]===h&&f[E+1]===""&&(f[E+2]===j||f[E+2]===U),P=f[E]===h&&f[E+1]===""&&f[E+2]===h,J=f[E]===j&&f[E+1]===""&&f[E+2]===U||f[E]===U&&f[E+1]===""&&f[E+2]===j;b&&y||A||B||P||J?f.splice(E,2):M&&f.splice(E+1,2)}for(;f.length>0&&Wh(Se(0,f,-1));)f.pop();for(;f.length>1&&Wh(f[0])&&Wh(f[1]);)f.shift(),f.shift();let C=[""];for(let[E,A]of f.entries()){if(A===h){if(E===1&&i7(f[E-1])){if(f.length===2){C.push([C.pop(),p]);continue}C.push([p,U],"");continue}else if(E===f.length-1){C.push([C.pop(),p]);continue}else if(f[E-1]===""&&f[E-2]===U){C.push([C.pop(),p]);continue}}E%2===0?C.push([C.pop(),A]):C.push(A,""),$t(A)&&(l=!0)}let g=y?kA(C):_(C,{shouldBreak:!0});if(((T=t.cursorNode)==null?void 0:T.type)==="JSXText"&&n.children.includes(t.cursorNode)?g=[Bl,g,Bl]:((k=t.nodeBeforeCursor)==null?void 0:k.type)==="JSXText"&&n.children.includes(t.nodeBeforeCursor)?g=[Bl,g]:((N=t.nodeAfterCursor)==null?void 0:N.type)==="JSXText"&&n.children.includes(t.nodeAfterCursor)&&(g=[g,Bl]),c)return g;let m=_([i,R([U,g]),U,s]);return l?m:is([_([i,...f,s]),m])}function N$(e,t,r,n,i){let s="",a=[s];function o(l){s=l,a.push([a.pop(),l])}function u(l){l!==""&&(s=l,a.push(l,""))}return e.each(({node:l,next:c})=>{if(l.type==="JSXText"){let p=Yt(l);if(wu(l)){let h=lc.split(p,!0);h[0]===""&&(h.shift(),/\n/u.test(h[0])?u(A2(i,h[1],l,c)):u(n),h.shift());let d;if(Se(0,h,-1)===""&&(h.pop(),d=h.pop()),h.length===0)return;for(let[f,y]of h.entries())f%2===1?u(Q):o(y);d!==void 0?/\n/u.test(d)?u(A2(i,s,l,c)):u(n):u(v2(i,s,l,c))}else/\n/u.test(p)?p.match(/\n/gu).length>1&&u(U):u(n)}else{let p=r();if(o(p),c&&wu(c)){let h=lc.trim(Yt(c)),[d]=lc.split(h);u(v2(i,d,l,c))}else u(U)}},"children"),a}function v2(e,t,r,n){return e?"":r.type==="JSXElement"&&!r.closingElement||(n==null?void 0:n.type)==="JSXElement"&&!n.closingElement?t.length===1?j:U:j}function A2(e,t,r,n){return e?U:t.length===1?r.type==="JSXElement"&&!r.closingElement||(n==null?void 0:n.type)==="JSXElement"&&!n.closingElement?U:j:U}var B$=le(["ArrayExpression","JSXAttribute","JSXElement","JSXExpressionContainer","JSXFragment","ExpressionStatement","NewExpression","CallExpression","OptionalCallExpression","ConditionalExpression","JsExpressionRoot","MatchExpressionCase"]);function I$(e,t,r){let{parent:n}=e;if(B$(n))return t;let i=_$(e),s=Ui(e,r);return _([s?"":ue("("),R([j,t]),j,s?"":ue(")")],{shouldBreak:i})}function _$(e){return e.match(void 0,(t,r)=>r==="body"&&t.type==="ArrowFunctionExpression",(t,r)=>r==="arguments"&&be(t))&&(e.match(void 0,void 0,void 0,(t,r)=>r==="expression"&&t.type==="JSXExpressionContainer")||e.match(void 0,void 0,void 0,(t,r)=>r==="expression"&&t.type==="ChainExpression",(t,r)=>r==="expression"&&t.type==="JSXExpressionContainer"))}function L$(e,t,r){let{node:n}=e,i=[r("name")];if(n.value){let s;if(yt(n.value)){let a=Yt(n.value),o=dt(0,dt(0,a.slice(1,-1),"'","'"),""",'"'),u=Gv(o,t.jsxSingleQuote);o=u==='"'?dt(0,o,'"',"""):dt(0,o,"'","'"),s=e.call(()=>Ar(e,ys(u+o+u),t),"value")}else s=r("value");i.push("=",s)}return i}function $$(e,t,r){let{node:n}=e,i=(s,a)=>s.type==="JSXEmptyExpression"||!X(s)&&(At(s)||zr(s)||s.type==="ArrowFunctionExpression"||s.type==="AwaitExpression"&&(i(s.argument,s)||s.argument.type==="JSXElement")||be(s)||s.type==="ChainExpression"&&be(s.expression)||s.type==="FunctionExpression"||s.type==="TemplateLiteral"||s.type==="TaggedTemplateExpression"||s.type==="DoExpression"||mt(a)&&(s.type==="ConditionalExpression"||$n(s)));return i(n.expression,e.parent)?_(["{",r("expression"),hn,"}"]):_(["{",R([j,r("expression")]),j,hn,"}"])}function O$(e,t,r){var o,u;let{node:n}=e,i=X(n.name)||X(n.typeArguments);if(n.selfClosing&&n.attributes.length===0&&!i)return["<",r("name"),r("typeArguments")," />"];if(((o=n.attributes)==null?void 0:o.length)===1&&yt(n.attributes[0].value)&&!n.attributes[0].value.value.includes(` +`)&&!i&&!X(n.attributes[0]))return _(["<",r("name"),r("typeArguments")," ",...e.map(r,"attributes"),n.selfClosing?" />":">"]);let s=(u=n.attributes)==null?void 0:u.some(l=>yt(l.value)&&l.value.value.includes(` +`)),a=t.singleAttributePerLine&&n.attributes.length>1?U:Q;return _(["<",r("name"),r("typeArguments"),R(e.map(()=>[a,r()],"attributes")),...M$(n,t,i)],{shouldBreak:s})}function M$(e,t,r){return e.selfClosing?[Q,"/>"]:j$(e,t,r)?[">"]:[j,">"]}function j$(e,t,r){let n=e.attributes.length>0&&X(Se(0,e.attributes,-1),ee.Trailing);return e.attributes.length===0&&!r||(t.bracketSameLine||t.jsxBracketSameLine)&&(!r||e.attributes.length>0)&&!n}function R$(e,t,r){let{node:n}=e,i=[""),i}function U$(e,t){let{node:r}=e,n=X(r),i=X(r,ee.Line),s=r.type==="JSXOpeningFragment";return[s?"<":""]}function V$(e,t,r){let n=Ar(e,P$(e,t,r),t);return I$(e,n,t)}function z$(e,t){let{node:r}=e,n=X(r,ee.Line);return[$e(e,t,{indent:n}),n?U:""]}function q$(e,t,r){let{node:n}=e;return["{",e.call(({node:i})=>{let s=["...",r()];return X(i)?[R([j,Ar(e,s,t)]),j]:s},n.type==="JSXSpreadAttribute"?"argument":"expression"),"}"]}function H$(e,t,r){let{node:n}=e;if(n.type.startsWith("JSX"))switch(n.type){case"JSXAttribute":return L$(e,t,r);case"JSXIdentifier":return n.name;case"JSXNamespacedName":return ge(":",[r("namespace"),r("name")]);case"JSXMemberExpression":return ge(".",[r("object"),r("property")]);case"JSXSpreadAttribute":case"JSXSpreadChild":return q$(e,t,r);case"JSXExpressionContainer":return $$(e,t,r);case"JSXFragment":case"JSXElement":return V$(e,t,r);case"JSXOpeningElement":return O$(e,t,r);case"JSXClosingElement":return R$(e,t,r);case"JSXOpeningFragment":case"JSXClosingFragment":return U$(e,t);case"JSXEmptyExpression":return z$(e,t);case"JSXText":throw new Error("JSXText should be handled by JSXElement");default:throw new Ja(n,"JSX")}}function W$(e){if(e.children.length===0)return!0;if(e.children.length>1)return!1;let t=e.children[0];return t.type==="JSXText"&&!wu(t)}function wu(e){return e.type==="JSXText"&&(lc.hasNonWhitespaceCharacter(Yt(e))||!/\n/u.test(Yt(e)))}function J$(e){return e.type==="JSXExpressionContainer"&&yt(e.expression)&&e.expression.value===" "&&!X(e.expression)}function X$(e){let{node:t,parent:r}=e;if(!mt(t)||!mt(r))return!1;let{index:n,siblings:i}=e,s;for(let a=n;a>0;a--){let o=i[a-1];if(!(o.type==="JSXText"&&!wu(o))){s=o;break}}return(s==null?void 0:s.type)==="JSXExpressionContainer"&&s.expression.type==="JSXEmptyExpression"&&wp(s.expression)}function K$(e){return wp(e.node)||X$(e)}var iy=K$;function G$(e,t,r){let{node:n}=e;if(n.type.startsWith("NG"))switch(n.type){case"NGRoot":return r("node");case"NGPipeExpression":return WA(e,t,r);case"NGChainedExpression":return _(ge([";",Q],e.map(()=>Z$(e)?r():["(",r(),")"],"expressions")));case"NGEmptyExpression":return"";case"NGMicrosyntax":return e.map(()=>[e.isFirst?"":b2(e)?" ":[";",Q],r()],"body");case"NGMicrosyntaxKey":return/^[$_a-z][\w$]*(?:-[$_a-z][\w$])*$/iu.test(n.name)?n.name:JSON.stringify(n.name);case"NGMicrosyntaxExpression":return[r("expression"),n.alias===null?"":[" as ",r("alias")]];case"NGMicrosyntaxKeyedExpression":{let{index:i,parent:s}=e,a=b2(e)||Q$(e)||(i===1&&(n.key.name==="then"||n.key.name==="else"||n.key.name==="as")||i===2&&(n.key.name==="else"&&s.body[i-1].type==="NGMicrosyntaxKeyedExpression"&&s.body[i-1].key.name==="then"||n.key.name==="track"))&&s.body[0].type==="NGMicrosyntaxExpression";return[r("key"),a?" ":": ",r("expression")]}case"NGMicrosyntaxLet":return["let ",r("key"),n.value===null?"":[" = ",r("value")]];case"NGMicrosyntaxAs":return[r("key")," as ",r("alias")];default:throw new Ja(n,"Angular")}}function b2({node:e,index:t}){return e.type==="NGMicrosyntaxKeyedExpression"&&e.key.name==="of"&&t===1}function Q$(e){let{node:t}=e;return e.parent.body[1].key.name==="of"&&t.type==="NGMicrosyntaxKeyedExpression"&&t.key.name==="track"&&t.key.type==="NGMicrosyntaxKey"}var Y$=le(["CallExpression","OptionalCallExpression","AssignmentExpression"]);function Z$({node:e}){return gf(e,Y$)}function mb(e,t,r){let{node:n}=e;return _([ge(Q,e.map(r,"decorators")),yb(n,t)?U:Q])}function eO(e,t,r){return gb(e.node)?[ge(U,e.map(r,"declaration","decorators")),U]:""}function tO(e,t,r){let{node:n,parent:i}=e,{decorators:s}=n;if(!Me(s)||gb(i)||iy(e))return"";let a=n.type==="ClassExpression"||n.type==="ClassDeclaration"||yb(n,t);return[e.key==="declaration"&&LI(i)?U:a?Mn:"",ge(Q,e.map(r,"decorators")),Q]}function yb(e,t){return e.decorators.some(r=>Qt(t.originalText,de(r)))}function gb(e){var r;if(e.type!=="ExportDefaultDeclaration"&&e.type!=="ExportNamedDeclaration"&&e.type!=="DeclareExportDeclaration")return!1;let t=(r=e.declaration)==null?void 0:r.decorators;return Me(t)&&Sp(e,t[0])}var Jh=new WeakMap;function Db(e){return Jh.has(e)||Jh.set(e,e.type==="ConditionalExpression"&&!Lt(e,t=>t.type==="ObjectExpression")),Jh.get(e)}var rO=e=>e.type==="SequenceExpression";function nO(e,t,r,n={}){let i=[],s,a=[],o=!1,u=!n.expandLastArg&&e.node.body.type==="ArrowFunctionExpression",l;(function g(){let{node:m}=e,x=iO(e,t,r,n);if(i.length===0)i.push(x);else{let{leading:v,trailing:T}=kp(e,t);i.push([v,x]),a.unshift(T)}u&&(o||(o=m.returnType&&Nt(m).length>0||m.typeParameters||Nt(m).some(v=>v.type!=="Identifier"))),!u||m.body.type!=="ArrowFunctionExpression"?(s=r("body",n),l=m.body):e.call(g,"body")})();let c=!Ur(t.originalText,l)&&(rO(l)||sO(l,s,t)||!o&&Db(l)),p=e.key==="callee"&&Ba(e.parent),h=Symbol("arrow-chain"),d=aO(e,n,{signatureDocs:i,shouldBreak:o}),f=!1,y=!1,C=!1;return u&&(p||n.assignmentLayout)&&(y=!0,C=!X(e.node,ee.Leading&ee.Line),f=n.assignmentLayout==="chain-tail-arrow-chain"||p&&!c),s=oO(e,t,n,{bodyDoc:s,bodyComments:a,functionBody:l,shouldPutBodyOnSameLine:c}),_([_(y?R([C?j:"",d]):d,{shouldBreak:f,id:h})," =>",u?Su(s,{groupId:h}):_(s),u&&p?ue(j,"",{groupId:h}):""])}function iO(e,t,r,n){let{node:i}=e,s=[];if(i.async&&s.push("async "),ub(e,t))s.push(r(["params",0]));else{let o=n.expandLastArg||n.expandFirstArg,u=Bp(e,r);if(o){if($t(u))throw new qc;u=_(zc(u))}s.push(_([Ns(e,t,r,o,!0),u]))}let a=$e(e,t,{filter(o){let u=za(t.originalText,de(o));return u!==!1&&t.originalText.slice(u,u+2)==="=>"}});return a&&s.push(" ",a),s}function sO(e,t,r){var n,i;return At(e)||zr(e)||e.type==="ArrowFunctionExpression"||e.type==="DoExpression"||e.type==="BlockStatement"||mt(e)||((n=t.label)==null?void 0:n.hug)!==!1&&(((i=t.label)==null?void 0:i.embed)||uA(e,r.originalText))}function aO(e,t,{signatureDocs:r,shouldBreak:n}){if(r.length===1)return r[0];let{parent:i,key:s}=e;return s!=="callee"&&Ba(i)||$n(i)?_([r[0]," =>",R([Q,ge([" =>",Q],r.slice(1))])],{shouldBreak:n}):s==="callee"&&Ba(i)||t.assignmentLayout?_(ge([" =>",Q],r),{shouldBreak:n}):_(R(ge([" =>",Q],r)),{shouldBreak:n})}function oO(e,t,r,{bodyDoc:n,bodyComments:i,functionBody:s,shouldPutBodyOnSameLine:a}){let{node:o,parent:u}=e,l=r.expandLastArg&&mn(t,"all")?ue(","):"",c=(r.expandLastArg||u.type==="JSXExpressionContainer")&&!X(o)?j:"";return a&&Db(s)?[" ",_([ue("","("),R([j,n]),ue("",")"),l,c]),i]:a?[" ",n,i]:[R([Q,n,i]),l,c]}var uO=Array.prototype.findLast??function(e){for(let t=this.length-1;t>=0;t--){let r=this[t];if(e(r,t,this))return r}},lO=B0("findLast",function(){if(Array.isArray(this))return uO}),cO=lO;function kf(e,t,r,n){let{node:i}=e,s=[],a=cO(0,i[n],o=>o.type!=="EmptyStatement");return e.each(({node:o})=>{o.type!=="EmptyStatement"&&(s.push(r()),o!==a&&(s.push(U),yn(o,t)&&s.push(U)))},n),s}function xb(e,t,r){let n=pO(e,t,r),{node:i,parent:s}=e;if(i.type==="Program"&&(s==null?void 0:s.type)!=="ModuleExpression")return n?[n,U]:"";let a=[];if(i.type==="StaticBlock"&&a.push("static "),a.push("{"),n)a.push(R([U,n]),U);else{let o=e.grandparent;s.type==="ArrowFunctionExpression"||s.type==="FunctionExpression"||s.type==="FunctionDeclaration"||s.type==="ComponentDeclaration"||s.type==="HookDeclaration"||s.type==="ObjectMethod"||s.type==="ClassMethod"||s.type==="ClassPrivateMethod"||s.type==="ForStatement"||s.type==="WhileStatement"||s.type==="DoWhileStatement"||s.type==="DoExpression"||s.type==="ModuleExpression"||s.type==="CatchClause"&&!o.finalizer||s.type==="TSModuleDeclaration"||s.type==="MatchStatementCase"||i.type==="StaticBlock"||a.push(U)}return a.push("}"),a}function pO(e,t,r){let{node:n}=e,i=Me(n.directives),s=n.body.some(u=>u.type!=="EmptyStatement"),a=X(n,ee.Dangling);if(!i&&!s&&!a)return"";let o=[];return i&&(o.push(kf(e,t,r,"directives")),(s||a)&&(o.push(U),yn(Se(0,n.directives,-1),t)&&o.push(U))),s&&o.push(kf(e,t,r,"body")),a&&o.push($e(e,t)),o}function hO(e){let t=new WeakMap;return function(r){return t.has(r)||t.set(r,Symbol(e)),t.get(r)}}var dO=hO;function sy(e,t,r){let{node:n}=e,i=[],s=n.type==="ObjectTypeAnnotation",a=!Eb(e),o=a?Q:U,u=X(n,ee.Dangling),[l,c]=s&&n.exact?["{|","|}"]:"{}",p;if(fO(e,({node:h,next:d,isLast:f})=>{if(p??(p=h),i.push(r()),a&&s){let{parent:y}=e;y.inexact||!f?i.push(","):mn(t)&&i.push(ue(","))}!a&&(mO({node:h,next:d},t)||vb({node:h,next:d},t))&&i.push(";"),f||(i.push(o),yn(h,t)&&i.push(U))}),u&&i.push($e(e,t)),n.type==="ObjectTypeAnnotation"&&n.inexact){let h;X(n,ee.Dangling)?h=[X(n,ee.Line)||Qt(t.originalText,de(Se(0,ls(n),-1)))?U:Q,"..."]:h=[p?Q:"","..."],i.push(h)}if(a){let h=u||t.objectWrap==="preserve"&&p&&cr(t.originalText,me(n),me(p)),d;if(i.length===0)d=l+c;else{let f=t.bracketSpacing?Q:j;d=[l,R([f,...i]),f,c]}return e.match(void 0,(f,y)=>y==="typeAnnotation",(f,y)=>y==="typeAnnotation",Qo)||e.match(void 0,(f,y)=>f.type==="FunctionTypeParam"&&y==="typeAnnotation",Qo)?d:_(d,{shouldBreak:h})}return[l,i.length>0?[R([U,i]),U]:"",c]}function Eb(e){let{node:t}=e;if(t.type==="ObjectTypeAnnotation"){let{key:r,parent:n}=e;return r==="body"&&(n.type==="InterfaceDeclaration"||n.type==="DeclareInterface"||n.type==="DeclareClass")}return t.type==="ClassBody"||t.type==="TSInterfaceBody"}function fO(e,t){let{node:r}=e;if(r.type==="ClassBody"||r.type==="TSInterfaceBody"){e.each(t,"body");return}if(r.type==="TSTypeLiteral"){e.each(t,"members");return}if(r.type==="ObjectTypeAnnotation"){let n=["properties","indexers","callProperties","internalSlots"].flatMap(i=>e.map(({node:s,index:a})=>({node:s,loc:me(s),selector:[i,a]}),i)).sort((i,s)=>i.loc-s.loc);for(let[i,{node:s,selector:a}]of n.entries())e.call(()=>{var o;return t({node:s,next:(o=n[i+1])==null?void 0:o.node,isLast:i===n.length-1})},...a)}}function Sn(e,t){let{parent:r}=e;return e.callParent(Eb)?t.semi||r.type==="ObjectTypeAnnotation"?";":"":r.type==="TSTypeLiteral"?e.isLast?t.semi?ue(";"):"":t.semi||vb({node:e.node,next:e.next},t)?";":ue("",";"):""}var T2=le(["ClassProperty","PropertyDefinition","ClassPrivateProperty","ClassAccessorProperty","AccessorProperty","TSAbstractPropertyDefinition","TSAbstractAccessorProperty"]),Cb=e=>{if(e.computed||e.typeAnnotation)return!1;let{type:t,name:r}=e.key;return t==="Identifier"&&(r==="static"||r==="get"||r==="set")};function mO({node:e,next:t},r){var n;if(r.semi||!T2(e))return!1;if(!e.value&&Cb(e))return!0;if(!t||t.static||t.accessibility||t.readonly)return!1;if(!t.computed){let i=(n=t.key)==null?void 0:n.name;if(i==="in"||i==="instanceof")return!0}if(T2(t)&&t.variance&&!t.static&&!t.declare)return!0;switch(t.type){case"ClassProperty":case"PropertyDefinition":case"TSAbstractPropertyDefinition":return t.computed;case"MethodDefinition":case"TSAbstractMethodDefinition":case"ClassMethod":case"ClassPrivateMethod":{if((t.value?t.value.async:t.async)||t.kind==="get"||t.kind==="set")return!1;let i=t.value?t.value.generator:t.generator;return!!(t.computed||i)}case"TSIndexSignature":return!0}return!1}var yO=le(["TSPropertySignature"]);function vb({node:e,next:t},r){if(r.semi||!yO(e))return!1;if(Cb(e))return!0;if(!t)return!1;switch(t.type){case"TSCallSignatureDeclaration":return!0}return!1}var gO=dO("heritageGroup"),DO=le(["TSInterfaceDeclaration","DeclareInterface","InterfaceDeclaration","InterfaceTypeAnnotation"]);function ay(e,t,r){let{node:n}=e,i=DO(n),s=[pr(e),Pp(e),i?"interface":"class"],a=bb(e),o=[],u=[];if(n.type!=="InterfaceTypeAnnotation"){n.id&&o.push(" ");for(let c of["id","typeParameters"])if(n[c]){let{leading:p,trailing:h}=e.call(()=>kp(e,t),c);o.push(p,r(c),R(h))}}if(n.superClass){let c=[CO(e,t,r),r(n.superTypeArguments?"superTypeArguments":"superTypeParameters")],p=e.call(()=>["extends ",Ar(e,c,t)],"superClass");a?u.push(Q,_(p)):u.push(" ",p)}else u.push(Kh(e,t,r,"extends"));u.push(Kh(e,t,r,"mixins"),Kh(e,t,r,"implements"));let l;return a?(l=gO(n),s.push(_([...o,R(u)],{id:l}))):s.push(...o,...u),!i&&a&&xO(n.body)?s.push(ue(U," ",{groupId:l})):s.push(" "),s.push(r("body")),s}function xO(e){return e.type==="ObjectTypeAnnotation"?["properties","indexers","callProperties","internalSlots"].some(t=>Me(e[t])):Me(e.body)}function Ab(e){let t=e.superClass?1:0;for(let r of["extends","mixins","implements"])if(Array.isArray(e[r])&&(t+=e[r].length),t>1)return!0;return t>1}function EO(e){var n,i,s;let{node:t}=e;if(X(t.id,ee.Trailing)||X(t.typeParameters,ee.Trailing)||X(t.superClass)||Ab(t))return!0;if(t.superClass)return e.parent.type==="AssignmentExpression"?!1:!(t.superTypeArguments??t.superTypeParameters)&&Oe(t.superClass);let r=((n=t.extends)==null?void 0:n[0])??((i=t.mixins)==null?void 0:i[0])??((s=t.implements)==null?void 0:s[0]);return r?r.type==="InterfaceExtends"&&r.id.type==="QualifiedTypeIdentifier"&&!r.typeParameters||(r.type==="TSClassImplements"||r.type==="TSInterfaceHeritage")&&Oe(r.expression)&&!r.typeArguments:!1}var Xh=new WeakMap;function bb(e){let{node:t}=e;return Xh.has(t)||Xh.set(t,EO(e)),Xh.get(t)}function Kh(e,t,r,n){let{node:i}=e;if(!Me(i[n]))return"";let s=$e(e,t,{marker:n}),a=ge([",",Q],e.map(r,n));if(!Ab(i)){let o=[`${n} `,s,a];return bb(e)?[Q,_(o)]:[" ",o]}return[Q,s,s&&U,n,_(R([Q,a]))]}function CO(e,t,r){let n=r("superClass"),{parent:i}=e;return i.type==="AssignmentExpression"?_(ue(["(",R([j,n]),j,")"],n)):n}function Tb(e,t,r){let{node:n}=e,i=[];return Me(n.decorators)&&i.push(mb(e,t,r)),i.push(Np(n)),n.static&&i.push("static "),i.push(Pp(e)),n.override&&i.push("override "),i.push(wf(e,t,r)),i}function Sb(e,t,r){let{node:n}=e,i=[];Me(n.decorators)&&i.push(mb(e,t,r)),i.push(pr(e),Np(n)),n.static&&i.push("static "),i.push(Pp(e)),n.override&&i.push("override "),n.readonly&&i.push("readonly "),n.variance&&i.push(r("variance")),(n.type==="ClassAccessorProperty"||n.type==="AccessorProperty"||n.type==="TSAbstractAccessorProperty")&&i.push("accessor "),i.push(Qu(e,t,r),Mt(e),HA(e),Et(e,r));let s=n.type==="TSAbstractPropertyDefinition"||n.type==="TSAbstractAccessorProperty";return[Gu(e,t,r,i," =",s?void 0:"value"),t.semi?";":""]}var vO=le(["TSAsExpression","TSTypeAssertion","TSNonNullExpression","TSInstantiationExpression","TSSatisfiesExpression"]);function Fb(e){return vO(e)?Fb(e.expression):e}var AO=le(["FunctionExpression","ArrowFunctionExpression"]);function bO(e){return e.type==="MemberExpression"||e.type==="OptionalMemberExpression"||e.type==="Identifier"&&e.name!=="undefined"}function TO(e,t){if(db(e,t)){let r=Fb(e.node.expression);return AO(r)||bO(r)}return!(!t.semi||pb(e,t)||hb(e,t))}function SO(e,t,r){return[r("expression"),TO(e,t)?";":""]}function FO(e,t,r){if(t.__isVueBindings||t.__isVueForBindingLeft){let n=e.map(r,"program","body",0,"params");if(n.length===1)return n[0];let i=ge([",",Q],n);return t.__isVueForBindingLeft?["(",R([j,_(i)]),j,")"]:i}if(t.__isEmbeddedTypescriptGenericParameters){let n=e.map(r,"program","body",0,"typeParameters","params");return ge([",",Q],n)}}function wO(e,t){let{node:r}=e;switch(r.type){case"RegExpLiteral":return S2(r);case"BigIntLiteral":return Pf(r.extra.raw);case"NumericLiteral":return Ia(r.extra.raw);case"StringLiteral":return ys(Pa(r.extra.raw,t));case"NullLiteral":return"null";case"BooleanLiteral":return String(r.value);case"DirectiveLiteral":return F2(r.extra.raw,t);case"Literal":{if(r.regex)return S2(r.regex);if(r.bigint)return Pf(r.raw);let{value:n}=r;return typeof n=="number"?Ia(r.raw):typeof n=="string"?kO(e)?F2(r.raw,t):ys(Pa(r.raw,t)):String(n)}}}function kO(e){if(e.key!=="expression")return;let{parent:t}=e;return t.type==="ExpressionStatement"&&typeof t.directive=="string"}function Pf(e){return e.toLowerCase()}function S2({pattern:e,flags:t}){return t=[...t].sort().join(""),`/${e}/${t}`}var PO="use strict";function F2(e,t){let r=e.slice(1,-1);if(r===PO||!(r.includes('"')||r.includes("'"))){let n=t.singleQuote?"'":'"';return n+r+n}return e}function NO(e,t,r){let n=e.originalText.slice(t,r);for(let i of e[Symbol.for("comments")]){let s=me(i);if(s>r)break;let a=de(i);if(ag.value&&(g.value.type==="ObjectPattern"||g.value.type==="ArrayPattern"))||n.type!=="ObjectPattern"&&t.objectWrap==="preserve"&&c.length>0&&IO(n,c[0],t),h=[],d=e.map(({node:g})=>{let m=[...h,_(r())];return h=[",",Q],yn(g,t)&&h.push(U),m},l);if(u){let g;if(X(n,ee.Dangling)){let m=X(n,ee.Line);g=[$e(e,t),m||Qt(t.originalText,de(Se(0,ls(n),-1)))?U:Q,"..."]}else g=["..."];d.push([...h,...g])}let f=!(u||((C=Se(0,c,-1))==null?void 0:C.type)==="RestElement"),y;if(d.length===0){if(!X(n,ee.Dangling))return["{}",Et(e,r)];y=_(["{",$e(e,t,{indent:!0}),j,"}",Mt(e),Et(e,r)])}else{let g=t.bracketSpacing?Q:j;y=["{",R([g,...d]),ue(f&&mn(t)?",":""),g,"}",Mt(e),Et(e,r)]}return e.match(g=>g.type==="ObjectPattern"&&!Me(g.decorators),Qo)||ki(n)&&(e.match(void 0,(g,m)=>m==="typeAnnotation",(g,m)=>m==="typeAnnotation",Qo)||e.match(void 0,(g,m)=>g.type==="FunctionTypeParam"&&m==="typeAnnotation",Qo))||!p&&e.match(g=>g.type==="ObjectPattern",g=>g.type==="AssignmentExpression"||g.type==="VariableDeclarator")?y:_(y,{shouldBreak:p})}function IO(e,t,r){let n=r.originalText,i=me(e),s=me(t);if(wb(e)){let a=me(e),o=Ip(r,a,s);i=a+o.lastIndexOf("{")}return cr(n,i,s)}function _O(e,t,r){let{node:n}=e;return["import",n.phase?` ${n.phase}`:"",Nb(n),Ib(e,t,r),Bb(e,t,r),Lb(e,t,r),t.semi?";":""]}var kb=e=>e.type==="ExportDefaultDeclaration"||e.type==="DeclareExportDeclaration"&&e.default;function Pb(e,t,r){let{node:n}=e,i=[eO(e,t,r),pr(e),"export",kb(n)?" default":""],{declaration:s,exported:a}=n;return X(n,ee.Dangling)&&(i.push(" ",$e(e,t)),lA(n)&&i.push(U)),s?i.push(" ",r("declaration")):(i.push(OO(n)),n.type==="ExportAllDeclaration"||n.type==="DeclareExportAllDeclaration"?(i.push(" *"),a&&i.push(" as ",r("exported"))):i.push(Ib(e,t,r)),i.push(Bb(e,t,r),Lb(e,t,r))),i.push($O(n,t)),i}var LO=le(["ClassDeclaration","ComponentDeclaration","FunctionDeclaration","TSInterfaceDeclaration","DeclareClass","DeclareComponent","DeclareFunction","DeclareHook","HookDeclaration","TSDeclareFunction","EnumDeclaration"]);function $O(e,t){return t.semi&&(!e.declaration||kb(e)&&!LO(e.declaration))?";":""}function uy(e,t=!0){return e&&e!=="value"?`${t?" ":""}${e}${t?"":" "}`:""}function Nb(e,t){return uy(e.importKind,t)}function OO(e){return uy(e.exportKind)}function Bb(e,t,r){let{node:n}=e;return n.source?[_b(n,t)?" from":""," ",r("source")]:""}function Ib(e,t,r){let{node:n}=e;if(!_b(n,t))return"";let i=[" "];if(Me(n.specifiers)){let s=[],a=[];e.each(()=>{let o=e.node.type;if(o==="ExportNamespaceSpecifier"||o==="ExportDefaultSpecifier"||o==="ImportNamespaceSpecifier"||o==="ImportDefaultSpecifier")s.push(r());else if(o==="ExportSpecifier"||o==="ImportSpecifier")a.push(r());else throw new Ja(n,"specifier")},"specifiers"),i.push(ge(", ",s)),a.length>0&&(s.length>0&&i.push(", "),a.length>1||s.length>0||n.specifiers.some(o=>X(o))?i.push(_(["{",R([t.bracketSpacing?Q:j,ge([",",Q],a)]),ue(mn(t)?",":""),t.bracketSpacing?Q:j,"}"])):i.push(["{",t.bracketSpacing?" ":"",...a,t.bracketSpacing?" ":"","}"]))}else i.push("{}");return i}function _b(e,t){return e.type!=="ImportDeclaration"||Me(e.specifiers)||e.importKind==="type"?!0:Ip(t,me(e),me(e.source)).trimEnd().endsWith("from")}function MO(e,t){var n,i;if((n=e.extra)!=null&&n.deprecatedAssertSyntax)return"assert";let r=Ip(t,de(e.source),(i=e.attributes)!=null&&i[0]?me(e.attributes[0]):de(e)).trimStart();return r.startsWith("assert")?"assert":r.startsWith("with")||Me(e.attributes)?"with":void 0}var jO=e=>{let{attributes:t}=e;if(t.length!==1)return!1;let[r]=t,{type:n,key:i,value:s}=r;return n==="ImportAttribute"&&(i.type==="Identifier"&&i.name==="type"||yt(i)&&i.value==="type")&&yt(s)&&!X(r)&&!X(i)&&!X(s)};function Lb(e,t,r){let{node:n}=e;if(!n.source)return"";let i=MO(n,t);if(!i)return"";let s=oy(e,t,r);return jO(n)&&(s=zc(s)),[` ${i} `,s]}function RO(e,t,r){let{node:n}=e,{type:i}=n,s=i.startsWith("Import"),a=s?"imported":"local",o=s?"local":"exported",u=n[a],l=n[o],c="",p="";return i==="ExportNamespaceSpecifier"||i==="ImportNamespaceSpecifier"?c="*":u&&(c=r(a)),l&&!UO(n)&&(p=r(o)),[uy(i==="ImportSpecifier"?n.importKind:n.exportKind,!1),c,c&&p?" as ":"",p]}function UO(e){if(e.type!=="ImportSpecifier"&&e.type!=="ExportSpecifier")return!1;let{local:t,[e.type==="ImportSpecifier"?"imported":"exported"]:r}=e;if(t.type!==r.type||!xI(t,r))return!1;if(yt(t))return t.value===r.value&&Yt(t)===Yt(r);switch(t.type){case"Identifier":return t.name===r.name;default:return!1}}function Nf(e,t){return["...",t("argument"),Et(e,t)]}function VO(e){let t=[e];for(let r=0;rh[E]===n),f=h.type===n.type&&!d,y,C,g=0;do C=y||n,y=e.getParentNode(g),g++;while(y&&y.type===n.type&&o.every(E=>y[E]!==C));let m=y||h,x=C;if(i&&(mt(n[o[0]])||mt(u)||mt(l)||VO(x))){p=!0,f=!0;let E=b=>[ue("("),R([j,b]),j,ue(")")],A=b=>b.type==="NullLiteral"||b.type==="Literal"&&b.value===null||b.type==="Identifier"&&b.name==="undefined";c.push(" ? ",A(u)?r(s):E(r(s))," : ",l.type===n.type||A(l)?r(a):E(r(a)))}else{let E=b=>t.useTabs?R(r(b)):Hr(2,r(b)),A=[Q,"? ",u.type===n.type?ue("","("):"",E(s),u.type===n.type?ue("",")"):"",Q,": ",E(a)];c.push(h.type!==n.type||h[a]===n||d?A:t.useTabs?wA(R(A)):Hr(Math.max(0,t.tabWidth-2),A))}let v=E=>h===m?_(E):E,T=!p&&(Oe(h)||h.type==="NGPipeExpression"&&h.left===n)&&!h.computed,k=HO(e),N=v([zO(e,t,r),f?c:R(c),i&&T&&!k?j:""]);return d||k?_([R([j,N]),j]):N}function JO(e,t){return(Oe(t)||t.type==="NGPipeExpression"&&t.left===e)&&!t.computed}function XO(e,t,r,n){return[...e.map(i=>ls(i)),ls(t),ls(r)].flat().some(i=>Wr(i)&&cr(n.originalText,me(i),de(i)))}var KO=new Map([["AssignmentExpression","right"],["VariableDeclarator","init"],["ReturnStatement","argument"],["ThrowStatement","argument"],["UnaryExpression","argument"],["YieldExpression","argument"],["AwaitExpression","argument"]]);function GO(e){let{node:t}=e;if(t.type!=="ConditionalExpression")return!1;let r,n=t;for(let i=0;!r;i++){let s=e.getParentNode(i);if(s.type==="ChainExpression"&&s.expression===n||be(s)&&s.callee===n||Oe(s)&&s.object===n||s.type==="TSNonNullExpression"&&s.expression===n){n=s;continue}s.type==="NewExpression"&&s.callee===n||Or(s)&&s.expression===n?(r=e.getParentNode(i+1),n=s):r=s}return n===t?!1:r[KO.get(r.type)]===n}var Gh=e=>[ue("("),R([j,e]),j,ue(")")];function ly(e,t,r,n){if(!t.experimentalTernaries)return WO(e,t,r);let{node:i}=e,s=i.type==="ConditionalExpression",a=Pi(i),o=s?"consequent":"trueType",u=s?"alternate":"falseType",l=s?["test"]:["checkType","extendsType"],c=i[o],p=i[u],h=l.map(we=>i[we]),{parent:d}=e,f=d.type===i.type,y=f&&l.some(we=>d[we]===i),C=f&&d[u]===i,g=c.type===i.type,m=p.type===i.type,x=m||C,v=t.tabWidth>2||t.useTabs,T,k,N=0;do k=T||i,T=e.getParentNode(N),N++;while(T&&T.type===i.type&&l.every(we=>T[we]!==k));let E=T||d,A=n&&n.assignmentLayout&&n.assignmentLayout!=="break-after-operator"&&(d.type==="AssignmentExpression"||d.type==="VariableDeclarator"||d.type==="ClassProperty"||d.type==="PropertyDefinition"||d.type==="ClassPrivateProperty"||d.type==="ObjectProperty"||d.type==="Property"),b=(d.type==="ReturnStatement"||d.type==="ThrowStatement")&&!(g||m),B=s&&E.type==="JSXExpressionContainer"&&e.grandparent.type!=="JSXAttribute",M=GO(e),P=JO(i,d),J=a&&Ui(e,t),K=v?t.useTabs?" ":" ".repeat(t.tabWidth-1):"",ne=XO(h,c,p,t)||g||m,Z=!x&&!f&&!a&&(B?c.type==="NullLiteral"||c.type==="Literal"&&c.value===null:V0(c,t)&&i2(i.test,3)),$=x||C||a&&!f||f&&s&&i2(i.test,1)||Z,V=[];!g&&X(c,ee.Dangling)&&e.call(()=>{V.push($e(e,t),U)},"consequent");let W=[];X(i.test,ee.Dangling)&&e.call(()=>{W.push($e(e,t))},"test"),!m&&X(p,ee.Dangling)&&e.call(()=>{W.push($e(e,t))},"alternate"),X(i,ee.Dangling)&&W.push($e(e,t));let z=Symbol("test"),G=Symbol("consequent"),O=Symbol("test-and-consequent"),re=s?[Gh(r("test")),i.test.type==="ConditionalExpression"?Mn:""]:[r("checkType")," ","extends"," ",Pi(i.extendsType)||i.extendsType.type==="TSMappedType"?r("extendsType"):_(Gh(r("extendsType")))],se=_([re," ?"],{id:z}),Be=r(o),Ke=R([g||B&&(mt(c)||f||x)?U:Q,V,Be]),De=$?_([se,x?Ke:ue(Ke,_(Ke,{id:G}),{groupId:z})],{id:O}):[se,Ke],Ce=r(u),je=Z?ue(Ce,wA(Gh(Ce)),{groupId:O}):Ce,ce=[De,W.length>0?[R([U,W]),U]:m?U:Z?ue(Q," ",{groupId:O}):Q,":",m?" ":v?$?ue(K,ue(x||Z?" ":K," "),{groupId:O}):ue(K," "):" ",m?je:_([R(je),B&&!Z?j:""]),P&&!M?j:"",ne?Mn:""];return A&&!ne?_(R([j,_(ce)])):A||b?_(R(ce)):M||a&&y?_([R([j,ce]),J?j:""]):d===E?_(ce):ce}function QO(e,t,r,n){let{node:i}=e;if(R0(i))return wO(e,t);switch(i.type){case"JsExpressionRoot":return r("node");case"JsonRoot":return[$e(e,t),r("node"),U];case"File":return FO(e,t,r)??r("program");case"ExpressionStatement":return SO(e,t,r);case"ChainExpression":return r("expression");case"ParenthesizedExpression":return!X(i.expression)&&(zr(i.expression)||At(i.expression))?["(",r("expression"),")"]:_(["(",R([j,r("expression")]),j,")"]);case"AssignmentExpression":return o$(e,t,r);case"VariableDeclarator":return u$(e,t,r);case"BinaryExpression":case"LogicalExpression":return WA(e,t,r);case"AssignmentPattern":return[r("left")," = ",r("right")];case"OptionalMemberExpression":case"MemberExpression":return r$(e,t,r);case"MetaProperty":return[r("meta"),".",r("property")];case"BindExpression":return ZL(e,t,r);case"Identifier":return[i.name,Mt(e),HA(e),Et(e,r)];case"V8IntrinsicIdentifier":return["%",i.name];case"SpreadElement":return Nf(e,r);case"RestElement":return Nf(e,r);case"FunctionDeclaration":case"FunctionExpression":return ob(e,t,r,n);case"ArrowFunctionExpression":return nO(e,t,r,n);case"YieldExpression":return[`yield${i.delegate?"*":""}`,i.argument?[" ",r("argument")]:""];case"AwaitExpression":{let s=["await"];if(i.argument){s.push(" ",r("argument"));let{parent:a}=e;if(be(a)&&a.callee===i||Oe(a)&&a.object===i){s=[R([j,...s]),j];let o=e.findAncestor(u=>u.type==="AwaitExpression"||u.type==="BlockStatement");if((o==null?void 0:o.type)!=="AwaitExpression"||!Lt(o.argument,u=>u===i))return _(s)}}return s}case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ExportAllDeclaration":return Pb(e,t,r);case"ImportDeclaration":return _O(e,t,r);case"ImportSpecifier":case"ExportSpecifier":case"ImportNamespaceSpecifier":case"ExportNamespaceSpecifier":case"ImportDefaultSpecifier":case"ExportDefaultSpecifier":return RO(e,t,r);case"ImportAttribute":return Hh(e,t,r);case"Program":case"BlockStatement":case"StaticBlock":return xb(e,t,r);case"ClassBody":return sy(e,t,r);case"ThrowStatement":return A$(e,t,r);case"ReturnStatement":return v$(e,t,r);case"NewExpression":case"ImportExpression":case"OptionalCallExpression":case"CallExpression":return Hc(e,t,r);case"ObjectExpression":case"ObjectPattern":return oy(e,t,r);case"Property":return Ju(i)?wf(e,t,r):Hh(e,t,r);case"ObjectProperty":return Hh(e,t,r);case"ObjectMethod":return wf(e,t,r);case"Decorator":return["@",r("expression")];case"ArrayExpression":case"ArrayPattern":return ty(e,t,r);case"SequenceExpression":{let{parent:s}=e;if(s.type==="ExpressionStatement"||s.type==="ForStatement"){let o=[];return e.each(({isFirst:u})=>{u?o.push(r()):o.push(",",R([Q,r()]))},"expressions"),_(o)}let a=ge([",",Q],e.map(r,"expressions"));return(s.type==="ReturnStatement"||s.type==="ThrowStatement")&&e.key==="argument"||s.type==="ArrowFunctionExpression"&&e.key==="body"?_(ue([R([j,a]),j],a)):_(a)}case"ThisExpression":return"this";case"Super":return"super";case"Directive":return[r("value"),t.semi?";":""];case"UnaryExpression":{let s=[i.operator];return/[a-z]$/u.test(i.operator)&&s.push(" "),X(i.argument)?s.push(_(["(",R([j,r("argument")]),j,")"])):s.push(r("argument")),s}case"UpdateExpression":return[i.prefix?i.operator:"",r("argument"),i.prefix?"":i.operator];case"ConditionalExpression":return ly(e,t,r,n);case"VariableDeclaration":{let s=e.map(r,"declarations"),a=e.parent,o=a.type==="ForStatement"||a.type==="ForInStatement"||a.type==="ForOfStatement",u=i.declarations.some(c=>c.init),l;return s.length===1&&!X(i.declarations[0])?l=s[0]:s.length>0&&(l=R(s[0])),_([pr(e),i.kind,l?[" ",l]:"",R(s.slice(1).map(c=>[",",u&&!o?U:Q,c])),t.semi&&!(o&&a.body!==i)?";":""])}case"WithStatement":return _(["with (",r("object"),")",ei(i.body,r("body"))]);case"IfStatement":{let s=ei(i.consequent,r("consequent")),a=[_(["if (",_([R([j,r("test")]),j]),")",s])];if(i.alternate){let o=X(i.consequent,ee.Trailing|ee.Line)||lA(i),u=i.consequent.type==="BlockStatement"&&!o;a.push(u?" ":U),X(i,ee.Dangling)&&a.push($e(e,t),o?U:" "),a.push("else",_(ei(i.alternate,r("alternate"),i.alternate.type==="IfStatement")))}return a}case"ForStatement":{let s=ei(i.body,r("body")),a=$e(e,t),o=a?[a,j]:"";return!i.init&&!i.test&&!i.update?[o,_(["for (;;)",s])]:[o,_(["for (",_([R([j,r("init"),";",Q,r("test"),";",i.update?[Q,r("update")]:ue("",Q)]),j]),")",s])]}case"WhileStatement":return _(["while (",_([R([j,r("test")]),j]),")",ei(i.body,r("body"))]);case"ForInStatement":return _(["for (",r("left")," in ",r("right"),")",ei(i.body,r("body"))]);case"ForOfStatement":return _(["for",i.await?" await":""," (",r("left")," of ",r("right"),")",ei(i.body,r("body"))]);case"DoWhileStatement":{let s=ei(i.body,r("body"));return[_(["do",s]),i.body.type==="BlockStatement"?" ":U,"while (",_([R([j,r("test")]),j]),")",t.semi?";":""]}case"DoExpression":return[i.async?"async ":"","do ",r("body")];case"BreakStatement":case"ContinueStatement":return[i.type==="BreakStatement"?"break":"continue",i.label?[" ",r("label")]:"",t.semi?";":""];case"LabeledStatement":return[r("label"),`:${i.body.type==="EmptyStatement"&&!X(i.body,ee.Leading)?"":" "}`,r("body")];case"TryStatement":return["try ",r("block"),i.handler?[" ",r("handler")]:"",i.finalizer?[" finally ",r("finalizer")]:""];case"CatchClause":if(i.param){let s=X(i.param,o=>!Wr(o)||o.leading&&Qt(t.originalText,de(o))||o.trailing&&Qt(t.originalText,me(o),{backwards:!0})),a=r("param");return["catch ",s?["(",R([j,a]),j,") "]:["(",a,") "],r("body")]}return["catch ",r("body")];case"SwitchStatement":return[_(["switch (",R([j,r("discriminant")]),j,")"])," {",i.cases.length>0?R([U,ge(U,e.map(({node:s,isLast:a})=>[r(),!a&&yn(s,t)?U:""],"cases"))]):"",U,"}"];case"SwitchCase":{let s=[];i.test?s.push("case ",r("test"),":"):s.push("default:"),X(i,ee.Dangling)&&s.push(" ",$e(e,t));let a=i.consequent.filter(o=>o.type!=="EmptyStatement");if(a.length>0){let o=kf(e,t,r,"consequent");s.push(a.length===1&&a[0].type==="BlockStatement"?[" ",o]:R([U,o]))}return s}case"DebuggerStatement":return["debugger",t.semi?";":""];case"ClassDeclaration":case"ClassExpression":return ay(e,t,r);case"ClassMethod":case"ClassPrivateMethod":case"MethodDefinition":return Tb(e,t,r);case"ClassProperty":case"PropertyDefinition":case"ClassPrivateProperty":case"ClassAccessorProperty":case"AccessorProperty":return Sb(e,t,r);case"TemplateElement":return ys(i.value.raw);case"TemplateLiteral":return $A(e,t,r);case"TaggedTemplateExpression":return T7(e,t,r);case"PrivateIdentifier":return["#",i.name];case"PrivateName":return["#",r("id")];case"TopicReference":return"%";case"ArgumentPlaceholder":return"?";case"ModuleExpression":return["module ",r("body")];case"VoidPattern":return"void";case"EmptyStatement":if(M0(e))return";";case"InterpreterDirective":default:throw new Ja(i,"ESTree")}}function $b(e){return[e("elementType"),"[]"]}var YO=le(["SatisfiesExpression","TSSatisfiesExpression"]);function Ob(e,t,r){let{parent:n,node:i,key:s}=e,a=i.type==="AsConstExpression"?"const":r("typeAnnotation"),o=[r("expression")," ",YO(i)?"satisfies":"as"," ",a];return s==="callee"&&be(n)||s==="object"&&Oe(n)?_([R([j,...o]),j]):o}function ZO(e,t,r){let{node:n}=e,i=[pr(e),"component"];n.id&&i.push(" ",r("id")),i.push(r("typeParameters"));let s=eM(e,t,r);return n.rendersType?i.push(_([s," ",r("rendersType")])):i.push(_([s])),n.body&&i.push(" ",r("body")),t.semi&&n.type==="DeclareComponent"&&i.push(";"),i}function eM(e,t,r){let{node:n}=e,i=n.params;if(n.rest&&(i=[...i,n.rest]),i.length===0)return["(",$e(e,t,{filter:a=>qr(t.originalText,de(a))===")"}),")"];let s=[];return rM(e,(a,o)=>{let u=o===i.length-1;u&&n.rest&&s.push("..."),s.push(r()),!u&&(s.push(","),yn(i[o],t)?s.push(U,U):s.push(Q))}),["(",R([j,...s]),ue(mn(t,"all")&&!tM(n,i)?",":""),j,")"]}function tM(e,t){var r;return e.rest||((r=Se(0,t,-1))==null?void 0:r.type)==="RestElement"}function rM(e,t){let{node:r}=e,n=0,i=s=>t(s,n++);e.each(i,"params"),r.rest&&e.call(i,"rest")}function nM(e,t,r){let{node:n}=e;return n.shorthand?r("local"):[r("name")," as ",r("local")]}function iM(e,t,r){let{node:n}=e,i=[];return n.name&&i.push(r("name"),n.optional?"?: ":": "),i.push(r("typeAnnotation")),i}function Mb(e,t,r){return oy(e,t,r)}function sM(e,t,r){let{node:n}=e;return[n.type==="EnumSymbolBody"||n.explicitType?`of ${n.type.slice(4,-4).toLowerCase()} `:"",Mb(e,t,r)]}function jb(e,t){let{node:r}=e,n=t("id");r.computed&&(n=["[",n,"]"]);let i="";return r.initializer&&(i=t("initializer")),r.init&&(i=t("init")),i?[n," = ",i]:n}function Rb(e,t){let{node:r}=e;return[pr(e),r.const?"const ":"","enum ",t("id")," ",t("body")]}function Ub(e,t,r){let{node:n}=e,i=[Pp(e)];(n.type==="TSConstructorType"||n.type==="TSConstructSignatureDeclaration")&&i.push("new ");let s=Ns(e,t,r,!1,!0),a=[];return n.type==="FunctionTypeAnnotation"?a.push(aM(e)?" => ":": ",r("returnType")):a.push(Et(e,r,"returnType")),Wa(n,a)&&(s=_(s)),i.push(s,a),[_(i),n.type==="TSConstructSignatureDeclaration"||n.type==="TSCallSignatureDeclaration"?Sn(e,t):""]}function aM(e){var n;let{node:t,parent:r}=e;return t.type==="FunctionTypeAnnotation"&&(sA(r)||!((r.type==="ObjectTypeProperty"||r.type==="ObjectTypeInternalSlot")&&!r.variance&&!r.optional&&Sp(r,t)||r.type==="ObjectTypeCallProperty"||((n=e.getParentNode(2))==null?void 0:n.type)==="DeclareFunction"))}function oM(e,t,r){let{node:n}=e,i=["hook"];n.id&&i.push(" ",r("id"));let s=Ns(e,t,r,!1,!0),a=Bp(e,r),o=Wa(n,a);return i.push(_([o?_(s):s,a]),n.body?" ":"",r("body")),i}function uM(e,t,r){let{node:n}=e,i=[pr(e),"hook"];return n.id&&i.push(" ",r("id")),t.semi&&i.push(";"),i}function w2(e){var r;let{node:t}=e;return t.type==="HookTypeAnnotation"&&((r=e.getParentNode(2))==null?void 0:r.type)==="DeclareHook"}function lM(e,t,r){let{node:n}=e,i=Ns(e,t,r,!1,!0),s=[w2(e)?": ":" => ",r("returnType")];return _([w2(e)?"":"hook ",Wa(n,s)?_(i):i,s])}function Vb(e,t,r){return[r("objectType"),Mt(e),"[",r("indexType"),"]"]}function zb(e,t,r){return["infer ",r("typeParameter")]}function qb(e,t,r){let n=!1;return _(e.map(({isFirst:i,previous:s,node:a,index:o})=>{let u=r();if(i)return u;let l=ki(a),c=ki(s);return c&&l?[" & ",n?R(u):u]:!c&&!l||Ur(t.originalText,a)?t.experimentalOperatorPosition==="start"?R([Q,"& ",u]):R([" &",Q,u]):(o>1&&(n=!0),[" & ",o>1?R(u):u])},"types"))}function cM(e){switch(e){case null:return"";case"PlusOptional":return"+?";case"MinusOptional":return"-?";case"Optional":return"?"}}function pM(e,t,r){let{node:n}=e;return[_([n.variance?r("variance"):"","[",R([r("keyTparam")," in ",r("sourceType")]),"]",cM(n.optional),": ",r("propType")]),Sn(e,t)]}function k2(e,t){return e==="+"||e==="-"?e+t:t}function hM(e,t,r){let{node:n}=e,i=!1;if(t.objectWrap==="preserve"){let s=me(n),a=Ip(t,s+1,me(n.key)),o=s+1+a.search(/\S/u);cr(t.originalText,s,o)&&(i=!0)}return _(["{",R([t.bracketSpacing?Q:j,X(n,ee.Dangling)?_([$e(e,t),U]):"",_([n.readonly?[k2(n.readonly,"readonly")," "]:"","[",r("key")," in ",r("constraint"),n.nameType?[" as ",r("nameType")]:"","]",n.optional?k2(n.optional,"?"):"",n.typeAnnotation?": ":"",r("typeAnnotation")]),t.semi?ue(";"):""]),t.bracketSpacing?Q:j,"}"],{shouldBreak:i})}function dM(e,t,r){let{node:n}=e;return[_(["match (",R([j,r("argument")]),j,")"])," {",n.cases.length>0?R([U,ge(U,e.map(({node:i,isLast:s})=>[r(),!s&&yn(i,t)?U:""],"cases"))]):"",U,"}"]}function fM(e,t,r){let{node:n}=e,i=X(n,ee.Dangling)?[" ",$e(e,t)]:[],s=n.type==="MatchStatementCase"?[" ",r("body")]:R([Q,r("body"),","]);return[r("pattern"),n.guard?_([R([Q,"if (",r("guard"),")"])]):"",_([" =>",i,s])]}function mM(e,t,r){let{node:n}=e;switch(n.type){case"MatchOrPattern":return DM(e,t,r);case"MatchAsPattern":return[r("pattern")," as ",r("target")];case"MatchWildcardPattern":return["_"];case"MatchLiteralPattern":return r("literal");case"MatchUnaryPattern":return[n.operator,r("argument")];case"MatchIdentifierPattern":return r("id");case"MatchMemberPattern":{let i=n.property.type==="Identifier"?[".",r("property")]:["[",R([j,r("property")]),j,"]"];return _([r("base"),i])}case"MatchBindingPattern":return[n.kind," ",r("id")];case"MatchObjectPattern":{let i=e.map(r,"properties");return n.rest&&i.push(r("rest")),_(["{",R([j,ge([",",Q],i)]),n.rest?"":ue(","),j,"}"])}case"MatchArrayPattern":{let i=e.map(r,"elements");return n.rest&&i.push(r("rest")),_(["[",R([j,ge([",",Q],i)]),n.rest?"":ue(","),j,"]"])}case"MatchObjectPatternProperty":return n.shorthand?r("pattern"):_([r("key"),":",R([Q,r("pattern")])]);case"MatchRestPattern":{let i=["..."];return n.argument&&i.push(r("argument")),i}}}var Hb=le(["MatchWildcardPattern","MatchLiteralPattern","MatchUnaryPattern","MatchIdentifierPattern"]);function yM(e){let{patterns:t}=e;if(t.some(n=>X(n)))return!1;let r=t.find(n=>n.type==="MatchObjectPattern");return r?t.every(n=>n===r||Hb(n)):!1}function gM(e){return Hb(e)||e.type==="MatchObjectPattern"?!0:e.type==="MatchOrPattern"?yM(e):!1}function DM(e,t,r){let{node:n}=e,{parent:i}=e,s=i.type!=="MatchStatementCase"&&i.type!=="MatchExpressionCase"&&i.type!=="MatchArrayPattern"&&i.type!=="MatchObjectPatternProperty"&&!Ur(t.originalText,n),a=gM(n),o=e.map(()=>{let l=r();return a||(l=Hr(2,l)),Ar(e,l,t)},"patterns");if(a)return ge(" | ",o);let u=[ue(["| "]),ge([Q,"| "],o)];return Ui(e,t)?_([R([ue([j]),u]),j]):i.type==="MatchArrayPattern"&&i.elements.length>1?_([R([ue(["(",j]),u]),j,ue(")")]):_(s?R(u):u)}function xM(e,t,r){let{node:n}=e,i=[pr(e),"opaque type ",r("id"),r("typeParameters")];if(n.supertype&&i.push(": ",r("supertype")),n.lowerBound||n.upperBound){let s=[];n.lowerBound&&s.push(R([Q,"super ",r("lowerBound")])),n.upperBound&&s.push(R([Q,"extends ",r("upperBound")])),i.push(_(s))}return n.impltype&&i.push(" = ",r("impltype")),i.push(t.semi?";":""),i}function Wb(e,t,r){let{node:n}=e;return["...",...n.type==="TupleTypeSpreadElement"&&n.label?[r("label"),": "]:[],r("typeAnnotation")]}function Jb(e,t,r){let{node:n}=e;return[n.variance?r("variance"):"",r("label"),n.optional?"?":"",": ",r("elementType")]}function Xb(e,t,r){let{node:n}=e,i=[pr(e),"type ",r("id"),r("typeParameters")],s=n.type==="TSTypeAliasDeclaration"?"typeAnnotation":"right";return[Gu(e,t,r,i," =",s),t.semi?";":""]}function EM(e,t,r){let{node:n}=e;return Nt(n).length===1&&n.type.startsWith("TS")&&!n[r][0].constraint&&e.parent.type==="ArrowFunctionExpression"&&!(t.filepath&&/\.ts$/u.test(t.filepath))}function Zo(e,t,r,n){let{node:i}=e;if(!i[n])return"";if(!Array.isArray(i[n]))return r(n);let s=Fp(e.grandparent),a=e.match(u=>!(u[n].length===1&&ki(u[n][0])),void 0,(u,l)=>l==="typeAnnotation",u=>u.type==="Identifier",ib);if(i[n].length===0||!a&&(s||i[n].length===1&&(i[n][0].type==="NullableTypeAnnotation"||VL(i[n][0]))))return["<",ge(", ",e.map(r,n)),CM(e,t),">"];let o=i.type==="TSTypeParameterInstantiation"?"":EM(e,t,n)?",":mn(t)?ue(","):"";return _(["<",R([j,ge([",",Q],e.map(r,n))]),o,j,">"])}function CM(e,t){let{node:r}=e;if(!X(r,ee.Dangling))return"";let n=!X(r,ee.Line),i=$e(e,t,{indent:!n});return n?i:[i,U]}function Kb(e,t,r){let{node:n}=e,i=[n.const?"const ":""],s=n.type==="TSTypeParameter"?r("name"):n.name;if(n.variance&&i.push(r("variance")),n.in&&i.push("in "),n.out&&i.push("out "),i.push(s),n.bound&&(n.usesExtendsBound&&i.push(" extends "),i.push(Et(e,r,"bound"))),n.constraint){let a=Symbol("constraint");i.push(" extends",_(R(Q),{id:a}),hn,Su(r("constraint"),{groupId:a}))}if(n.default){let a=Symbol("default");i.push(" =",_(R(Q),{id:a}),hn,Su(r("default"),{groupId:a}))}return _(i)}function Gb(e,t){let{node:r}=e;return[r.type==="TSTypePredicate"&&r.asserts?"asserts ":r.type==="TypePredicate"&&r.kind?`${r.kind} `:"",t("parameterName"),r.typeAnnotation?[" is ",Et(e,t)]:""]}function Qb({node:e},t){let r=e.type==="TSTypeQuery"?"exprName":"argument";return["typeof ",t(r),t("typeArguments")]}function vM(e,t,r){let{node:n}=e;if(eA(n))return n.type.slice(0,-14).toLowerCase();switch(n.type){case"ComponentDeclaration":case"DeclareComponent":case"ComponentTypeAnnotation":return ZO(e,t,r);case"ComponentParameter":return nM(e,t,r);case"ComponentTypeParameter":return iM(e,t,r);case"HookDeclaration":return oM(e,t,r);case"DeclareHook":return uM(e,t,r);case"HookTypeAnnotation":return lM(e,t,r);case"DeclareFunction":return[pr(e),"function ",r("id"),r("predicate"),t.semi?";":""];case"DeclareModule":return["declare module ",r("id")," ",r("body")];case"DeclareModuleExports":return["declare module.exports",Et(e,r),t.semi?";":""];case"DeclareNamespace":return["declare namespace ",r("id")," ",r("body")];case"DeclareVariable":return[pr(e),n.kind??"var"," ",r("id"),t.semi?";":""];case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":return Pb(e,t,r);case"DeclareOpaqueType":case"OpaqueType":return xM(e,t,r);case"DeclareTypeAlias":case"TypeAlias":return Xb(e,t,r);case"IntersectionTypeAnnotation":return qb(e,t,r);case"UnionTypeAnnotation":return JA(e,t,r);case"ConditionalTypeAnnotation":return ly(e,t,r);case"InferTypeAnnotation":return zb(e,t,r);case"FunctionTypeAnnotation":return Ub(e,t,r);case"TupleTypeAnnotation":return ty(e,t,r);case"TupleTypeLabeledElement":return Jb(e,t,r);case"TupleTypeSpreadElement":return Wb(e,t,r);case"GenericTypeAnnotation":return[r("id"),Zo(e,t,r,"typeParameters")];case"IndexedAccessType":case"OptionalIndexedAccessType":return Vb(e,t,r);case"TypeAnnotation":return GA(e,t,r);case"TypeParameter":return Kb(e,t,r);case"TypeofTypeAnnotation":return Qb(e,r);case"ExistsTypeAnnotation":return"*";case"ArrayTypeAnnotation":return $b(r);case"DeclareEnum":case"EnumDeclaration":return Rb(e,r);case"EnumBooleanBody":case"EnumNumberBody":case"EnumBigIntBody":case"EnumStringBody":case"EnumSymbolBody":return sM(e,t,r);case"EnumBooleanMember":case"EnumNumberMember":case"EnumBigIntMember":case"EnumStringMember":case"EnumDefaultedMember":return jb(e,r);case"FunctionTypeParam":{let i=n.name?r("name"):e.parent.this===n?"this":"";return[i,Mt(e),i?": ":"",r("typeAnnotation")]}case"DeclareClass":case"DeclareInterface":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":return ay(e,t,r);case"ObjectTypeAnnotation":return sy(e,t,r);case"ClassImplements":case"InterfaceExtends":return[r("id"),r("typeParameters")];case"NullableTypeAnnotation":return["?",r("typeAnnotation")];case"Variance":{let{kind:i}=n;return i==="plus"?"+":"-"}case"KeyofTypeAnnotation":return["keyof ",r("argument")];case"ObjectTypeCallProperty":return[n.static?"static ":"",r("value"),Sn(e,t)];case"ObjectTypeMappedTypeProperty":return pM(e,t,r);case"ObjectTypeIndexer":return[n.static?"static ":"",n.variance?r("variance"):"","[",r("id"),n.id?": ":"",r("key"),"]: ",r("value"),Sn(e,t)];case"ObjectTypeProperty":{let i="";return n.proto?i="proto ":n.static&&(i="static "),[i,n.kind!=="init"?n.kind+" ":"",n.variance?r("variance"):"",Qu(e,t,r),Mt(e),Ju(n)?"":": ",r("value"),Sn(e,t)]}case"ObjectTypeInternalSlot":return[n.static?"static ":"","[[",r("id"),"]]",Mt(e),n.method?"":": ",r("value"),Sn(e,t)];case"ObjectTypeSpreadProperty":return Nf(e,r);case"QualifiedTypeofIdentifier":case"QualifiedTypeIdentifier":return[r("qualification"),".",r("id")];case"NullLiteralTypeAnnotation":return"null";case"BooleanLiteralTypeAnnotation":return String(n.value);case"StringLiteralTypeAnnotation":return ys(Pa(Yt(n),t));case"NumberLiteralTypeAnnotation":return Ia(Yt(n));case"BigIntLiteralTypeAnnotation":return Pf(Yt(n));case"TypeCastExpression":return["(",r("expression"),Et(e,r),")"];case"TypePredicate":return Gb(e,r);case"TypeOperator":return[n.operator," ",r("typeAnnotation")];case"TypeParameterDeclaration":case"TypeParameterInstantiation":return Zo(e,t,r,"params");case"InferredPredicate":case"DeclaredPredicate":return[e.key==="predicate"&&e.parent.type!=="DeclareFunction"&&!e.parent.returnType?": ":" ","%checks",...n.type==="DeclaredPredicate"?["(",r("value"),")"]:[]];case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return Ob(e,t,r);case"MatchExpression":case"MatchStatement":return dM(e,t,r);case"MatchExpressionCase":case"MatchStatementCase":return fM(e,t,r);case"MatchOrPattern":case"MatchAsPattern":case"MatchWildcardPattern":case"MatchLiteralPattern":case"MatchUnaryPattern":case"MatchIdentifierPattern":case"MatchMemberPattern":case"MatchBindingPattern":case"MatchObjectPattern":case"MatchObjectPatternProperty":case"MatchRestPattern":case"MatchArrayPattern":return mM(e,t,r)}}function AM(e,t,r){let{node:n}=e,i=n.parameters.length>1?ue(mn(t)?",":""):"",s=_([R([j,ge([", ",j],e.map(r,"parameters"))]),i,j]);return[e.key==="body"&&e.parent.type==="ClassBody"&&n.static?"static ":"",n.readonly?"readonly ":"","[",n.parameters?s:"","]",Et(e,r),Sn(e,t)]}function P2(e,t,r){let{node:n}=e;return[n.postfix?"":r,Et(e,t),n.postfix?r:""]}function bM(e,t,r){let{node:n}=e,i=[],s=n.kind&&n.kind!=="method"?`${n.kind} `:"";i.push(Np(n),s,n.computed?"[":"",r("key"),n.computed?"]":"",Mt(e));let a=Ns(e,t,r,!1,!0),o=Et(e,r,"returnType"),u=Wa(n,o);return i.push(u?_(a):a),n.returnType&&i.push(_(o)),[_(i),Sn(e,t)]}function TM(e,t,r){let{node:n}=e;return[pr(e),n.kind==="global"?"":`${n.kind} `,r("id"),n.body?[" ",_(r("body"))]:t.semi?";":""]}function SM(e,t,r){let{node:n}=e,i=!(At(n.expression)||zr(n.expression)),s=_(["<",R([j,r("typeAnnotation")]),j,">"]),a=[ue("("),R([j,r("expression")]),j,ue(")")];return i?is([[s,r("expression")],[s,_(a,{shouldBreak:!0})],[s,r("expression")]]):_([s,r("expression")])}function FM(e,t,r){let{node:n}=e;if(n.type.startsWith("TS")){if(tA(n))return n.type.slice(2,-7).toLowerCase();switch(n.type){case"TSThisType":return"this";case"TSTypeAssertion":return SM(e,t,r);case"TSDeclareFunction":return ob(e,t,r);case"TSExportAssignment":return["export = ",r("expression"),t.semi?";":""];case"TSModuleBlock":return xb(e,t,r);case"TSInterfaceBody":case"TSTypeLiteral":return sy(e,t,r);case"TSTypeAliasDeclaration":return Xb(e,t,r);case"TSQualifiedName":return[r("left"),".",r("right")];case"TSAbstractMethodDefinition":case"TSDeclareMethod":return Tb(e,t,r);case"TSAbstractAccessorProperty":case"TSAbstractPropertyDefinition":return Sb(e,t,r);case"TSInterfaceHeritage":case"TSClassImplements":case"TSInstantiationExpression":return[r("expression"),r("typeArguments")];case"TSTemplateLiteralType":return $A(e,t,r);case"TSNamedTupleMember":return Jb(e,t,r);case"TSRestType":return Wb(e,t,r);case"TSOptionalType":return[r("typeAnnotation"),"?"];case"TSInterfaceDeclaration":return ay(e,t,r);case"TSTypeParameterDeclaration":case"TSTypeParameterInstantiation":return Zo(e,t,r,"params");case"TSTypeParameter":return Kb(e,t,r);case"TSAsExpression":case"TSSatisfiesExpression":return Ob(e,t,r);case"TSArrayType":return $b(r);case"TSPropertySignature":return[n.readonly?"readonly ":"",Qu(e,t,r),Mt(e),Et(e,r),Sn(e,t)];case"TSParameterProperty":return[Np(n),n.static?"static ":"",n.override?"override ":"",n.readonly?"readonly ":"",r("parameter")];case"TSTypeQuery":return Qb(e,r);case"TSIndexSignature":return AM(e,t,r);case"TSTypePredicate":return Gb(e,r);case"TSNonNullExpression":return[r("expression"),"!"];case"TSImportType":return[Hc(e,t,r),n.qualifier?[".",r("qualifier")]:"",Zo(e,t,r,"typeArguments")];case"TSLiteralType":return r("literal");case"TSIndexedAccessType":return Vb(e,t,r);case"TSTypeOperator":return[n.operator," ",r("typeAnnotation")];case"TSMappedType":return hM(e,t,r);case"TSMethodSignature":return bM(e,t,r);case"TSNamespaceExportDeclaration":return["export as namespace ",r("id"),t.semi?";":""];case"TSEnumDeclaration":return Rb(e,r);case"TSEnumBody":return Mb(e,t,r);case"TSEnumMember":return jb(e,r);case"TSImportEqualsDeclaration":return["import ",Nb(n,!1),r("id")," = ",r("moduleReference"),t.semi?";":""];case"TSExternalModuleReference":return Hc(e,t,r);case"TSModuleDeclaration":return TM(e,t,r);case"TSConditionalType":return ly(e,t,r);case"TSInferType":return zb(e,t,r);case"TSIntersectionType":return qb(e,t,r);case"TSUnionType":return JA(e,t,r);case"TSFunctionType":case"TSCallSignatureDeclaration":case"TSConstructorType":case"TSConstructSignatureDeclaration":return Ub(e,t,r);case"TSTupleType":return ty(e,t,r);case"TSTypeReference":return[r("typeName"),Zo(e,t,r,"typeArguments")];case"TSTypeAnnotation":return GA(e,t,r);case"TSEmptyBodyFunctionExpression":return ry(e,t,r);case"TSJSDocAllType":return"*";case"TSJSDocUnknownType":return"?";case"TSJSDocNullableType":return P2(e,r,"?");case"TSJSDocNonNullableType":return P2(e,r,"!");case"TSParenthesizedType":default:throw new Ja(n,"TypeScript")}}}function wM(e,t,r,n){for(let i of[G$,H$,vM,FM,QO]){let s=i(e,t,r,n);if(s!==void 0)return s}}var kM=le(["ClassMethod","ClassPrivateMethod","ClassProperty","ClassAccessorProperty","AccessorProperty","TSAbstractAccessorProperty","PropertyDefinition","TSAbstractPropertyDefinition","ClassPrivateProperty","MethodDefinition","TSAbstractMethodDefinition","TSDeclareMethod"]);function PM(e,t,r,n){var p;e.isRoot&&((p=t.__onHtmlBindingRoot)==null||p.call(t,e.node,t));let{node:i}=e,s=iy(e)?t.originalText.slice(me(i),de(i)):wM(e,t,r,n);if(!s)return"";if(kM(i))return s;let a=Me(i.decorators),o=tO(e,t,r),u=i.type==="ClassExpression";if(a&&!u)return Cf(s,h=>_([o,h]));let l=Ui(e,t),c=T$(e,t);return!o&&!l&&!c?s:Cf(s,h=>[c?";":"",l?"(":"",l&&u&&a?[R([Q,o,h]),Q]:[o,h],l?")":""])}var N2=PM,NM={experimental_avoidAstMutation:!0},BM=[{name:"JSON.stringify",type:"data",aceMode:"json",extensions:[".importmap"],filenames:["package.json","package-lock.json","composer.json"],tmScope:"source.json",aliases:["geojson","jsonl","sarif","topojson"],codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json-stringify"],vscodeLanguageIds:["json"],linguistLanguageId:174},{name:"JSON",type:"data",aceMode:"json",extensions:[".json",".4DForm",".4DProject",".avsc",".geojson",".gltf",".har",".ice",".JSON-tmLanguage",".json.example",".mcmeta",".sarif",".tact",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest",".yy",".yyp"],filenames:[".all-contributorsrc",".arcconfig",".auto-changelog",".c8rc",".htmlhintrc",".imgbotconfig",".nycrc",".tern-config",".tern-project",".watchmanconfig",".babelrc",".jscsrc",".jshintrc",".jslintrc",".swcrc"],tmScope:"source.json",aliases:["geojson","jsonl","sarif","topojson"],codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json"],vscodeLanguageIds:["json"],linguistLanguageId:174},{name:"JSON with Comments",type:"data",aceMode:"javascript",extensions:[".jsonc",".code-snippets",".code-workspace",".sublime-build",".sublime-color-scheme",".sublime-commands",".sublime-completions",".sublime-keymap",".sublime-macro",".sublime-menu",".sublime-mousemap",".sublime-project",".sublime-settings",".sublime-theme",".sublime-workspace",".sublime_metrics",".sublime_session"],filenames:[],tmScope:"source.json.comments",aliases:["jsonc"],codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",group:"JSON",parsers:["jsonc"],vscodeLanguageIds:["jsonc"],linguistLanguageId:423},{name:"JSON5",type:"data",aceMode:"json5",extensions:[".json5"],tmScope:"source.js",codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json5"],vscodeLanguageIds:["json5"],linguistLanguageId:175}],Yb={};N0(Yb,{getVisitorKeys:()=>LM,massageAstNode:()=>Zb,print:()=>$M});var Ms=[[]],IM={JsonRoot:["node"],ArrayExpression:["elements"],ObjectExpression:["properties"],ObjectProperty:["key","value"],UnaryExpression:["argument"],NullLiteral:Ms[0],BooleanLiteral:Ms[0],StringLiteral:Ms[0],NumericLiteral:Ms[0],Identifier:Ms[0],TemplateLiteral:["quasis"],TemplateElement:Ms[0]},_M=Yv(IM),LM=_M;function $M(e,t,r){let{node:n}=e;switch(n.type){case"JsonRoot":return[r("node"),U];case"ArrayExpression":{if(n.elements.length===0)return"[]";let i=e.map(()=>e.node===null?"null":r(),"elements");return["[",R([U,ge([",",U],i)]),U,"]"]}case"ObjectExpression":return n.properties.length===0?"{}":["{",R([U,ge([",",U],e.map(r,"properties"))]),U,"}"];case"ObjectProperty":return[r("key"),": ",r("value")];case"UnaryExpression":return[n.operator==="+"?"":n.operator,r("argument")];case"NullLiteral":return"null";case"BooleanLiteral":return n.value?"true":"false";case"StringLiteral":return JSON.stringify(n.value);case"NumericLiteral":return B2(e)?JSON.stringify(String(n.value)):JSON.stringify(n.value);case"Identifier":return B2(e)?JSON.stringify(n.name):n.name;case"TemplateLiteral":return r(["quasis",0]);case"TemplateElement":return JSON.stringify(n.value.cooked);default:throw new Ja(n,"JSON")}}function B2(e){return e.key==="key"&&e.parent.type==="ObjectProperty"}var OM=new Set(["start","end","extra","loc","comments","leadingComments","trailingComments","innerComments","errors","range","tokens"]);function Zb(e,t){let{type:r}=e;if(r==="ObjectProperty"){let{key:n}=e;n.type==="Identifier"?t.key={type:"StringLiteral",value:n.name}:n.type==="NumericLiteral"&&(t.key={type:"StringLiteral",value:String(n.value)});return}if(r==="UnaryExpression"&&e.operator==="+")return t.argument;if(r==="ArrayExpression"){for(let[n,i]of e.elements.entries())i===null&&t.elements.splice(n,0,{type:"NullLiteral"});return}if(r==="TemplateLiteral")return{type:"StringLiteral",value:e.quasis[0].value.cooked}}Zb.ignoredProperties=OM;var yo={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},objectWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap object literals.",choices:[{value:"preserve",description:"Keep as multi-line, if there is a newline between the opening brace and first property."},{value:"collapse",description:"Fit to a single line when possible."}]},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}},ti="JavaScript",MM={arrowParens:{category:ti,type:"choice",default:"always",description:"Include parentheses around a sole arrow function parameter.",choices:[{value:"always",description:"Always include parens. Example: `(x) => x`"},{value:"avoid",description:"Omit parens when possible. Example: `x => x`"}]},bracketSameLine:yo.bracketSameLine,objectWrap:yo.objectWrap,bracketSpacing:yo.bracketSpacing,jsxBracketSameLine:{category:ti,type:"boolean",description:"Put > on the last line instead of at a new line.",deprecated:"2.4.0"},semi:{category:ti,type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},experimentalOperatorPosition:{category:ti,type:"choice",default:"end",description:"Where to print operators when binary expressions wrap lines.",choices:[{value:"start",description:"Print operators at the start of new lines."},{value:"end",description:"Print operators at the end of previous lines."}]},experimentalTernaries:{category:ti,type:"boolean",default:!1,description:"Use curious ternaries, with the question mark after the condition.",oppositeDescription:"Default behavior of ternaries; keep question marks on the same line as the consequent."},singleQuote:yo.singleQuote,jsxSingleQuote:{category:ti,type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{category:ti,type:"choice",default:"as-needed",description:"Change when properties in objects are quoted.",choices:[{value:"as-needed",description:"Only add quotes around object properties where required."},{value:"consistent",description:"If at least one property in an object requires quotes, quote all properties."},{value:"preserve",description:"Respect the input use of quotes in object properties."}]},trailingComma:{category:ti,type:"choice",default:"all",description:"Print trailing commas wherever possible when multi-line.",choices:[{value:"all",description:"Trailing commas wherever possible (including function arguments)."},{value:"es5",description:"Trailing commas where valid in ES5 (objects, arrays, etc.)"},{value:"none",description:"No trailing commas."}]},singleAttributePerLine:yo.singleAttributePerLine},eT=MM,tT={estree:Wv,"estree-json":Yb},rT=[...jB,...BM];const jM=Object.freeze(Object.defineProperty({__proto__:null,default:Hv,languages:rT,options:eT,printers:tT},Symbol.toStringTag,{value:"Module"}));var nT=Object.defineProperty,iT=e=>{throw TypeError(e)},RM=(e,t,r)=>t in e?nT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,sT=(e,t)=>{for(var r in t)nT(e,r,{get:t[r],enumerable:!0})},I2=(e,t,r)=>RM(e,typeof t!="symbol"?t+"":t,r),UM=(e,t,r)=>t.has(e)||iT("Cannot "+r),Ll=(e,t,r)=>(UM(e,t,"read from private field"),r?r.call(e):t.get(e)),VM=(e,t,r)=>t.has(e)?iT("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),aT={};sT(aT,{languages:()=>YT,options:()=>ZT,parsers:()=>Fy,printers:()=>iS});var cy=(e,t)=>(r,n,...i)=>r|1&&n==null?void 0:(t.call(n)??n[e]).apply(n,i),zM=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},qM=cy("replaceAll",function(){if(typeof this=="string")return zM}),jt=qM;function HM(e){return this[e<0?this.length+e:e]}var WM=cy("at",function(){if(Array.isArray(this)||typeof this=="string")return HM}),Xa=WM,JM=()=>{},XM=JM,oT="string",uT="array",lT="cursor",py="indent",hy="align",cT="trim",dy="group",fy="fill",my="if-break",yy="indent-if-break",pT="line-suffix",hT="line-suffix-boundary",Ka="line",dT="label",gy="break-parent",fT=new Set([lT,py,hy,cT,dy,fy,my,yy,pT,hT,Ka,dT,gy]);function KM(e){if(typeof e=="string")return oT;if(Array.isArray(e))return uT;if(!e)return;let{type:t}=e;if(fT.has(t))return t}var mT=KM,GM=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function QM(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}', +Expected it to be 'string' or 'object'.`;if(mT(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=GM([...fT].map(i=>`'${i}'`));return`Unexpected doc.type '${e.type}'. +Expected it to be ${n}.`}var YM=class extends Error{constructor(t){super(QM(t));H(this,"name","InvalidDocError");this.doc=t}},ZM=YM;function yT(e,t){if(typeof e=="string")return t(e);let r=new Map;return n(e);function n(s){if(r.has(s))return r.get(s);let a=i(s);return r.set(s,a),a}function i(s){switch(mT(s)){case uT:return t(s.map(n));case fy:return t({...s,parts:s.parts.map(n)});case my:return t({...s,breakContents:n(s.breakContents),flatContents:n(s.flatContents)});case dy:{let{expandedStates:a,contents:o}=s;return a?(a=a.map(n),o=a[0]):o=n(o),t({...s,contents:o,expandedStates:a})}case hy:case py:case yy:case dT:case pT:return t({...s,contents:n(s.contents)});case oT:case lT:case cT:case hT:case Ka:case gy:return t(s);default:throw new ZM(s)}}}function ln(e,t=aj){return yT(e,r=>typeof r=="string"?Ga(t,r.split(` +`)):r)}var ej=XM;function gn(e){return{type:py,contents:e}}function tj(e,t){return{type:hy,contents:t,n:e}}function rj(e){return tj(Number.NEGATIVE_INFINITY,e)}var Yu={type:gy};function gT(e){return{type:fy,parts:e}}function ot(e,t={}){return ej(t.expandedStates),{type:dy,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function ku(e,t="",r={}){return{type:my,breakContents:e,flatContents:t,groupId:r.groupId}}function nj(e,t){return{type:yy,contents:e,groupId:t.groupId,negate:t.negate}}function Ga(e,t){let r=[];for(let n=0;na?n:r).character}var cj=lj;function pj(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var yr,Qc,ET,bD,hj=(bD=class{constructor(e){zi(this,Qc);zi(this,yr,void 0);Hp(this,yr,new Set(e))}getLeadingWhitespaceCount(e){let t=gt(this,yr),r=0;for(let n=0;n=0&&t.has(e.charAt(n));n--)r++;return r}getLeadingWhitespace(e){let t=this.getLeadingWhitespaceCount(e);return e.slice(0,t)}getTrailingWhitespace(e){let t=this.getTrailingWhitespaceCount(e);return e.slice(e.length-t)}hasLeadingWhitespace(e){return gt(this,yr).has(e.charAt(0))}hasTrailingWhitespace(e){return gt(this,yr).has(Xa(0,e,-1))}trimStart(e){let t=this.getLeadingWhitespaceCount(e);return e.slice(t)}trimEnd(e){let t=this.getTrailingWhitespaceCount(e);return e.slice(0,e.length-t)}trim(e){return this.trimEnd(this.trimStart(e))}split(e,t=!1){let r=`[${pj([...gt(this,yr)].join(""))}]+`,n=new RegExp(t?`(${r})`:r,"u");return e.split(n)}hasWhitespaceCharacter(e){let t=gt(this,yr);return Array.prototype.some.call(e,r=>t.has(r))}hasNonWhitespaceCharacter(e){let t=gt(this,yr);return Array.prototype.some.call(e,r=>!t.has(r))}isWhitespaceOnly(e){let t=gt(this,yr);return Array.prototype.every.call(e,r=>t.has(r))}dedentString(e){let t=Gn(this,Qc,ET).call(this,e);return t===0?e:e.split(` `).map(r=>r.slice(t)).join(` -`)}},yr=new WeakMap,Vc=new WeakSet,rS=function(e){let t=Number.POSITIVE_INFINITY;for(let r of e.split(` -`)){if(r.length===0)continue;let n=this.getLeadingWhitespaceCount(r);if(n===0)return 0;r.length!==n&&n{i=n(a,o)});let s=await t(e,r,t);return i?ot(s):Wu(s)}function JM(e,t,r,n){let{node:i}=r,s=n.originalText.slice(i.sourceSpan.start.offset,i.sourceSpan.end.offset);return/^\s*$/u.test(s)?"":Pr(s,e,{parser:"__ng_directive",__isInHtmlAttribute:!1},Ja)}var XM=JM,KM=Array.prototype.toReversed??function(){return[...this].reverse()},GM=Qy("toReversed",function(){if(Array.isArray(this))return KM}),QM=GM;function YM(){var r,n,i,s,a,o;let e=globalThis,t=(n=(r=e.Deno)==null?void 0:r.build)==null?void 0:n.os;return typeof t=="string"?t==="windows":((s=(i=e.navigator)==null?void 0:i.platform)==null?void 0:s.startsWith("Win"))??((o=(a=e.process)==null?void 0:a.platform)==null?void 0:o.startsWith("win"))??!1}var ZM=YM();function iS(e){if(e=e instanceof URL?e:new URL(e),e.protocol!=="file:")throw new TypeError(`URL must be a file URL: received "${e.protocol}"`);return e}function ej(e){return e=iS(e),decodeURIComponent(e.pathname.replace(/%(?![0-9A-Fa-f]{2})/g,"%25"))}function tj(e){e=iS(e);let t=decodeURIComponent(e.pathname.replace(/\//g,"\\").replace(/%(?![0-9A-Fa-f]{2})/g,"%25")).replace(/^\\*([A-Za-z]:)(\\|$)/,"$1\\");return e.hostname!==""&&(t=`\\\\${e.hostname}${t}`),t}function rj(e){return ZM?tj(e):ej(e)}var nj=e=>String(e).split(/[/\\]/u).pop(),ij=e=>String(e).startsWith("file:");function sj(e){return Array.isArray(e)&&e.length>0}var s0=sj;function ED(e,t){if(!t)return;let r=nj(t).toLowerCase();return e.find(({filenames:n})=>n==null?void 0:n.some(i=>i.toLowerCase()===r))??e.find(({extensions:n})=>n==null?void 0:n.some(i=>r.endsWith(i)))}function aj(e,t){if(t)return e.find(({name:r})=>r.toLowerCase()===t)??e.find(({aliases:r})=>r==null?void 0:r.includes(t))??e.find(({extensions:r})=>r==null?void 0:r.includes(`.${t}`))}var Vh=void 0;function xD(e,t){if(t){if(ij(t))try{t=rj(t)}catch{return}if(typeof t=="string")return e.find(({isSupported:r})=>r==null?void 0:r({filepath:t}))}}function oj(e,t){var n;let r=QM(0,e.plugins).flatMap(i=>i.languages??[]);return(n=aj(r,t.language)??ED(r,t.physicalFile)??ED(r,t.file)??xD(r,t.physicalFile)??xD(r,t.file)??(Vh==null?void 0:Vh(r,t.physicalFile)))==null?void 0:n.parsers[0]}var a0=oj,sS=Symbol.for("PRETTIER_IS_FRONT_MATTER");function uj(e){return!!(e!=null&&e[sS])}var Sp=uj,ho=3;function lj(e){let t=e.slice(0,ho);if(t!=="---"&&t!=="+++")return;let r=e.indexOf(` -`,ho);if(r===-1)return;let n=e.slice(ho,r).trim(),i=e.indexOf(` +`)}},yr=new WeakMap,Qc=new WeakSet,ET=function(e){let t=Number.POSITIVE_INFINITY;for(let r of e.split(` +`)){if(r.length===0)continue;let n=this.getLeadingWhitespaceCount(r);if(n===0)return 0;r.length!==n&&n{i=n(a,o)});let s=await t(e,r,t);return i?ot(s):Zu(s)}function Cj(e,t,r,n){let{node:i}=r,s=n.originalText.slice(i.sourceSpan.start.offset,i.sourceSpan.end.offset);return/^\s*$/u.test(s)?"":kr(s,e,{parser:"__ng_directive",__isInHtmlAttribute:!1},Qa)}var vj=Cj,Aj=Array.prototype.toReversed??function(){return[...this].reverse()},bj=cy("toReversed",function(){if(Array.isArray(this))return Aj}),Tj=bj;function Sj(){var r,n,i,s,a,o;let e=globalThis,t=(n=(r=e.Deno)==null?void 0:r.build)==null?void 0:n.os;return typeof t=="string"?t==="windows":((s=(i=e.navigator)==null?void 0:i.platform)==null?void 0:s.startsWith("Win"))??((o=(a=e.process)==null?void 0:a.platform)==null?void 0:o.startsWith("win"))??!1}var Fj=Sj();function vT(e){if(e=e instanceof URL?e:new URL(e),e.protocol!=="file:")throw new TypeError(`URL must be a file URL: received "${e.protocol}"`);return e}function wj(e){return e=vT(e),decodeURIComponent(e.pathname.replace(/%(?![0-9A-Fa-f]{2})/g,"%25"))}function kj(e){e=vT(e);let t=decodeURIComponent(e.pathname.replace(/\//g,"\\").replace(/%(?![0-9A-Fa-f]{2})/g,"%25")).replace(/^\\*([A-Za-z]:)(\\|$)/,"$1\\");return e.hostname!==""&&(t=`\\\\${e.hostname}${t}`),t}function Pj(e){return Fj?kj(e):wj(e)}var Nj=e=>String(e).split(/[/\\]/u).pop(),Bj=e=>String(e).startsWith("file:");function Ij(e){return Array.isArray(e)&&e.length>0}var Dy=Ij;function _2(e,t){if(!t)return;let r=Nj(t).toLowerCase();return e.find(({filenames:n})=>n==null?void 0:n.some(i=>i.toLowerCase()===r))??e.find(({extensions:n})=>n==null?void 0:n.some(i=>r.endsWith(i)))}function _j(e,t){if(t)return e.find(({name:r})=>r.toLowerCase()===t)??e.find(({aliases:r})=>r==null?void 0:r.includes(t))??e.find(({extensions:r})=>r==null?void 0:r.includes(`.${t}`))}var Qh=void 0;function L2(e,t){if(t){if(Bj(t))try{t=Pj(t)}catch{return}if(typeof t=="string")return e.find(({isSupported:r})=>r==null?void 0:r({filepath:t}))}}function Lj(e,t){var n;let r=Tj(0,e.plugins).flatMap(i=>i.languages??[]);return(n=_j(r,t.language)??_2(r,t.physicalFile)??_2(r,t.file)??L2(r,t.physicalFile)??L2(r,t.file)??(Qh==null?void 0:Qh(r,t.physicalFile)))==null?void 0:n.parsers[0]}var xy=Lj,AT=Symbol.for("PRETTIER_IS_FRONT_MATTER");function $j(e){return!!(e!=null&&e[AT])}var _p=$j,go=3;function Oj(e){let t=e.slice(0,go);if(t!=="---"&&t!=="+++")return;let r=e.indexOf(` +`,go);if(r===-1)return;let n=e.slice(go,r).trim(),i=e.indexOf(` ${t}`,r),s=n;if(s||(s=t==="+++"?"toml":"yaml"),i===-1&&t==="---"&&s==="yaml"&&(i=e.indexOf(` -...`,r)),i===-1)return;let a=i+1+ho,o=e.charAt(a+1);if(!/\s?/u.test(o))return;let u=e.slice(0,a),l;return{language:s,explicitLanguage:n||null,value:e.slice(r+1,i),startDelimiter:t,endDelimiter:u.slice(-ho),raw:u,start:{line:1,column:0,index:0},end:{index:u.length,get line(){return l??(l=u.split(` +...`,r)),i===-1)return;let a=i+1+go,o=e.charAt(a+1);if(!/\s?/u.test(o))return;let u=e.slice(0,a),l;return{language:s,explicitLanguage:n||null,value:e.slice(r+1,i),startDelimiter:t,endDelimiter:u.slice(-go),raw:u,start:{line:1,column:0,index:0},end:{index:u.length,get line(){return l??(l=u.split(` `)),l.length},get column(){return l??(l=u.split(` -`)),qa(0,l,-1).length}},[sS]:!0}}function cj(e){let t=lj(e);return t?{frontMatter:t,get content(){let{raw:r}=t;return jt(0,r,/[^\n]/gu," ")+e.slice(r.length)}}:{content:e}}var pj=cj,hj="inline",CD={area:"none",base:"none",basefont:"none",datalist:"none",head:"none",link:"none",meta:"none",noembed:"none",noframes:"none",param:"block",rp:"none",script:"block",style:"none",template:"inline",title:"none",html:"block",body:"block",address:"block",blockquote:"block",center:"block",dialog:"block",div:"block",figure:"block",figcaption:"block",footer:"block",form:"block",header:"block",hr:"block",legend:"block",listing:"block",main:"block",p:"block",plaintext:"block",pre:"block",search:"block",xmp:"block",slot:"contents",ruby:"ruby",rt:"ruby-text",article:"block",aside:"block",h1:"block",h2:"block",h3:"block",h4:"block",h5:"block",h6:"block",hgroup:"block",nav:"block",section:"block",dir:"block",dd:"block",dl:"block",dt:"block",menu:"block",ol:"block",ul:"block",li:"list-item",table:"table",caption:"table-caption",colgroup:"table-column-group",col:"table-column",thead:"table-header-group",tbody:"table-row-group",tfoot:"table-footer-group",tr:"table-row",td:"table-cell",th:"table-cell",input:"inline-block",button:"inline-block",fieldset:"block",details:"block",summary:"block",marquee:"inline-block",select:"inline-block",source:"block",track:"block",meter:"inline-block",progress:"inline-block",object:"inline-block",video:"inline-block",audio:"inline-block",option:"block",optgroup:"block"},dj="normal",vD={listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"};function fj(e){return e.kind==="element"&&!e.hasExplicitNamespace&&!["html","svg"].includes(e.namespace)}var Ju=fj,mj=e=>jt(0,e,/^[\t\f\r ]*\n/gu,""),aS=e=>mj(wr.trimEnd(e)),yj=e=>{let t=e,r=wr.getLeadingWhitespace(t);r&&(t=t.slice(r.length));let n=wr.getTrailingWhitespace(t);return n&&(t=t.slice(0,-n.length)),{leadingWhitespace:r,trailingWhitespace:n,text:t}};function oS(e,t){return!!(e.kind==="ieConditionalComment"&&e.lastChild&&!e.lastChild.isSelfClosing&&!e.lastChild.endSourceSpan||e.kind==="ieConditionalComment"&&!e.complete||ka(e)&&e.children.some(r=>r.kind!=="text"&&r.kind!=="interpolation")||u0(e,t)&&!Mn(e,t)&&e.kind!=="interpolation")}function Fp(e){return e.kind==="attribute"||!e.parent||!e.prev?!1:gj(e.prev)}function gj(e){return e.kind==="comment"&&e.value.trim()==="prettier-ignore"}function xr(e){return e.kind==="text"||e.kind==="comment"}function Mn(e,t){return e.kind==="element"&&(e.fullName==="script"||e.fullName==="style"||e.fullName==="svg:style"||e.fullName==="svg:script"||e.fullName==="mj-style"&&t.parser==="mjml"||Ju(e)&&(e.name==="script"||e.name==="style"))}function Dj(e,t){return e.children&&!Mn(e,t)}function Ej(e,t){return Mn(e,t)||e.kind==="interpolation"||uS(e)}function uS(e){return mS(e).startsWith("pre")}function xj(e,t){var i,s;let r=n();if(r&&!e.prev&&((s=(i=e.parent)==null?void 0:i.tagDefinition)!=null&&s.ignoreFirstLf))return e.kind==="interpolation";return r;function n(){return Sp(e)||e.kind==="angularControlFlowBlock"?!1:(e.kind==="text"||e.kind==="interpolation")&&e.prev&&(e.prev.kind==="text"||e.prev.kind==="interpolation")?!0:!e.parent||e.parent.cssDisplay==="none"?!1:ka(e.parent)?!0:!(!e.prev&&(e.parent.kind==="root"||ka(e)&&e.parent||Mn(e.parent,t)||bp(e.parent,t)||!Pj(e.parent.cssDisplay))||e.prev&&!Bj(e.prev.cssDisplay))}}function Cj(e,t){return Sp(e)||e.kind==="angularControlFlowBlock"?!1:(e.kind==="text"||e.kind==="interpolation")&&e.next&&(e.next.kind==="text"||e.next.kind==="interpolation")?!0:!e.parent||e.parent.cssDisplay==="none"?!1:ka(e.parent)?!0:!(!e.next&&(e.parent.kind==="root"||ka(e)&&e.parent||Mn(e.parent,t)||bp(e.parent,t)||!kj(e.parent.cssDisplay))||e.next&&!Nj(e.next.cssDisplay))}function vj(e,t){return Ij(e.cssDisplay)&&!Mn(e,t)}function Pl(e){return Sp(e)||e.next&&e.sourceSpan.end&&e.sourceSpan.end.line+10&&(["body","script","style"].includes(e.name)||e.children.some(t=>Sj(t)))||e.firstChild&&e.firstChild===e.lastChild&&e.firstChild.kind!=="text"&&pS(e.firstChild)&&(!e.lastChild.isTrailingSpaceSensitive||hS(e.lastChild))}function lS(e){return e.kind==="element"&&e.children.length>0&&(["html","head","ul","ol","select"].includes(e.name)||e.cssDisplay.startsWith("table")&&e.cssDisplay!=="table-cell")}function zh(e){return dS(e)||e.prev&&Tj(e.prev)||cS(e)}function Tj(e){return dS(e)||e.kind==="element"&&e.fullName==="br"||cS(e)}function cS(e){return pS(e)&&hS(e)}function pS(e){return e.hasLeadingSpaces&&(e.prev?e.prev.sourceSpan.end.linee.sourceSpan.end.line:e.parent.kind==="root"||e.parent.endSourceSpan&&e.parent.endSourceSpan.start.line>e.sourceSpan.end.line)}function dS(e){switch(e.kind){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return["script","select"].includes(e.name)}return!1}function o0(e){return e.lastChild?o0(e.lastChild):e}function Sj(e){var t;return(t=e.children)==null?void 0:t.some(r=>r.kind!=="text")}function fS(e){if(e)switch(e){case"module":case"text/javascript":case"text/babel":case"text/jsx":case"application/javascript":return"babel";case"application/x-typescript":return"typescript";case"text/markdown":return"markdown";case"text/html":return"html";case"text/x-handlebars-template":return"glimmer";default:if(e.endsWith("json")||e.endsWith("importmap")||e==="speculationrules")return"json"}}function Fj(e,t){let{name:r,attrMap:n}=e;if(r!=="script"||Object.prototype.hasOwnProperty.call(n,"src"))return;let{type:i,lang:s}=e.attrMap;return!s&&!i?"babel":a0(t,{language:s})??fS(i)}function bj(e,t){if(!u0(e,t))return;let{attrMap:r}=e;if(Object.prototype.hasOwnProperty.call(r,"src"))return;let{type:n,lang:i}=r;return a0(t,{language:i})??fS(n)}function wj(e,t){if(e.name==="style"){let{lang:r}=e.attrMap;return r?a0(t,{language:r}):"css"}if(e.name==="mj-style"&&t.parser==="mjml")return"css"}function AD(e,t){return Fj(e,t)??wj(e,t)??bj(e,t)}function Xu(e){return e==="block"||e==="list-item"||e.startsWith("table")}function Pj(e){return!Xu(e)&&e!=="inline-block"}function kj(e){return!Xu(e)&&e!=="inline-block"}function Nj(e){return!Xu(e)}function Bj(e){return!Xu(e)}function Ij(e){return!Xu(e)&&e!=="inline-block"}function ka(e){return mS(e).startsWith("pre")}function _j(e,t){let r=e;for(;r;){if(t(r))return!0;r=r.parent}return!1}function Lj(e,t){var n;if(Xa(e,t))return"block";if(((n=e.prev)==null?void 0:n.kind)==="comment"){let i=e.prev.value.match(/^\s*display:\s*([a-z]+)\s*$/u);if(i)return i[1]}let r=!1;if(e.kind==="element"&&e.namespace==="svg")if(_j(e,i=>i.fullName==="svg:foreignObject"))r=!0;else return e.name==="svg"?"inline-block":"block";switch(t.htmlWhitespaceSensitivity){case"strict":return"inline";case"ignore":return"block";default:if(e.kind==="element"&&(!e.namespace||r||Ju(e))&&Object.prototype.hasOwnProperty.call(CD,e.name))return CD[e.name]}return hj}function mS(e){return e.kind==="element"&&(!e.namespace||Ju(e))&&Object.prototype.hasOwnProperty.call(vD,e.name)?vD[e.name]:dj}function yS(e){return jt(0,jt(0,e,"'","'"),""",'"')}function tr(e){return yS(e.value)}var $j=new Set(["template","style","script"]);function bp(e,t){return Xa(e,t)&&!$j.has(e.fullName)}function Xa(e,t){return t.parser==="vue"&&e.kind==="element"&&e.parent.kind==="root"&&e.fullName.toLowerCase()!=="html"}function u0(e,t){return Xa(e,t)&&(bp(e,t)||e.attrMap.lang&&e.attrMap.lang!=="html")}function Oj(e){let t=e.fullName;return t.charAt(0)==="#"||t==="slot-scope"||t==="v-slot"||t.startsWith("v-slot:")}function Mj(e,t){let r=e.parent;if(!Xa(r,t))return!1;let n=r.fullName,i=e.fullName;return n==="script"&&i==="setup"||n==="style"&&i==="vars"}function gS(e,t=e.value){return e.parent.isWhitespaceSensitive?e.parent.isIndentationSensitive?un(t):un(wr.dedentString(aS(t)),Ge):Wa(rt,wr.split(t))}function DS(e,t){return Xa(e,t)&&e.name==="script"}function jj(e){let{valueSpan:t,value:r}=e;return t.end.offset-t.start.offset===r.length+2}function ES(e,t){if(jj(e))return!1;let{value:r}=e;return/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/u.test(r)||t.parser==="lwc"&&r.startsWith("{")&&r.endsWith("}")}var xS=/\{\{(.+?)\}\}/su,Rj=({node:{value:e}})=>xS.test(e);async function Uj(e,t,r){let n=tr(r.node),i=[];for(let[s,a]of n.split(xS).entries())if(s%2===0)i.push(un(a));else try{i.push(ot(["{{",yn([rt,await Pr(a,e,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0})]),rt,"}}"]))}catch{i.push("{{",un(a),"}}")}return i}var qh=e=>(t,r,n)=>Pr(tr(n.node),t,{parser:e},Ja),Vj=[{test(e){let t=e.node.fullName;return t.startsWith("(")&&t.endsWith(")")||t.startsWith("on-")},print:qh("__ng_action")},{test(e){let t=e.node.fullName;return t.startsWith("[")&&t.endsWith("]")||/^bind(?:on)?-/u.test(t)||/^ng-(?:if|show|hide|class|style)$/u.test(t)},print:qh("__ng_binding")},{test:e=>e.node.fullName.startsWith("*"),print:qh("__ng_directive")},{test:e=>/^i18n(?:-.+)?$/u.test(e.node.fullName),print:zj},{test:Rj,print:Uj}].map(({test:e,print:t})=>({test:(r,n)=>n.parser==="angular"&&e(r),print:t}));function zj(e,t,{node:r}){let n=tr(r);return Wu(ZT(gS(r,n.trim())),!n.includes("@@"))}var qj=Vj,Hj=({node:e},t)=>!t.parentParser&&e.fullName==="class"&&!e.value.includes("{{"),Wj=(e,t,r)=>tr(r.node).trim().split(/\s+/u).join(" "),Jj=["onabort","onafterprint","onauxclick","onbeforeinput","onbeforematch","onbeforeprint","onbeforetoggle","onbeforeunload","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncommand","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","onhashchange","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onlanguagechange","onload","onloadeddata","onloadedmetadata","onloadstart","onmessage","onmessageerror","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onoffline","ononline","onpagehide","onpagereveal","onpageshow","onpageswap","onpaste","onpause","onplay","onplaying","onpopstate","onprogress","onratechange","onrejectionhandled","onreset","onresize","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onstorage","onsubmit","onsuspend","ontimeupdate","ontoggle","onunhandledrejection","onunload","onvolumechange","onwaiting","onwheel"],Xj=new Set(Jj),Kj=({node:e},t)=>Xj.has(e.fullName)&&!t.parentParser&&!e.value.includes("{{"),Gj=(e,t,r)=>Pr(tr(r.node),e,{parser:"babel",__isHtmlInlineEventHandler:!0},()=>!1);function Qj(e){let t=[];for(let r of e.split(";")){if(r=wr.trim(r),!r)continue;let[n,...i]=wr.split(r);t.push({name:n,value:i})}return t}var Yj=Qj,Zj=({node:e},t)=>e.fullName==="allow"&&!t.parentParser&&e.parent.fullName==="iframe"&&!e.value.includes("{{");function eR(e,t,r){let{node:n}=r,i=Yj(tr(n));return i.length===0?[""]:Wu(i.map(({name:s,value:a},o)=>[[s,...a].join(" "),o===i.length-1?Tu(";"):[";",rt]]))}function TD(e){return e===" "||e===` -`||e==="\f"||e==="\r"||e===" "}var tR=/^[ \t\n\r\u000c]+/,rR=/^[, \t\n\r\u000c]+/,nR=/^[^ \t\n\r\u000c]+/,iR=/[,]+$/,SD=/^\d+$/,sR=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/;function aR(e){let t=e.length,r,n,i,s,a,o=0,u;function l(d){let f,y=d.exec(e.substring(o));if(y)return[f]=y,o+=f.length,f}let c=[];for(;;){if(l(rR),o>=t){if(c.length===0)throw new Error("Must contain one or more image candidate strings.");return c}u=o,r=l(nR),n=[],r.slice(-1)===","?(r=r.replace(iR,""),h()):p()}function p(){for(l(tR),i="",s="in descriptor";;){if(a=e.charAt(o),s==="in descriptor")if(TD(a))i&&(n.push(i),i="",s="after descriptor");else if(a===","){o+=1,i&&n.push(i),h();return}else if(a==="(")i+=a,s="in parens";else if(a===""){i&&n.push(i),h();return}else i+=a;else if(s==="in parens")if(a===")")i+=a,s="in descriptor";else if(a===""){n.push(i),h();return}else i+=a;else if(s==="after descriptor"&&!TD(a))if(a===""){h();return}else s="in descriptor",o-=1;o+=1}}function h(){let d=!1,f,y,x,g,m={},D,v,b,P,N;for(g=0;ge.node.fullName==="srcset"&&(e.parent.fullName==="img"||e.parent.fullName==="source"),CS={width:"w",height:"h",density:"x"},lR=Object.keys(CS);function cR(e,t,r){let n=tr(r.node),i=oR(n),s=lR.filter(d=>i.some(f=>Object.prototype.hasOwnProperty.call(f,d)));if(s.length>1)throw new Error("Mixed descriptor in srcset is not supported");let[a]=s,o=CS[a],u=i.map(d=>d.source.value),l=Math.max(...u.map(d=>d.length)),c=i.map(d=>d[a]?String(d[a].value):""),p=c.map(d=>{let f=d.indexOf(".");return f===-1?d.length:f}),h=Math.max(...p);return Wu(Wa([",",rt],u.map((d,f)=>{let y=[d],x=c[f];if(x){let g=l-d.length+1,m=h-p[f],D=" ".repeat(g+m);y.push(Tu(D," "),x+o)}return y})))}var pR=({node:e},t)=>e.fullName==="style"&&!t.parentParser&&!e.value.includes("{{"),hR=async(e,t,r)=>Wu(await e(tr(r.node),{parser:"css",__isHTMLStyleAttribute:!0})),Hh=new WeakMap;function dR(e,t){let{root:r}=e;return Hh.has(r)||Hh.set(r,r.children.some(n=>DS(n,t)&&["ts","typescript"].includes(n.attrMap.lang))),Hh.get(r)}var Ka=dR;function fR(e,t,r){let n=tr(r.node);return Pr(`type T<${n}> = any`,e,{parser:"babel-ts",__isEmbeddedTypescriptGenericParameters:!0},Ja)}function mR(e,t,r,n){let i=tr(r.node),s=Ka(r,n)?"babel-ts":"babel";return Pr(`function _(${i}) {}`,e,{parser:s,__isVueBindings:!0})}async function yR(e,t,r,n){let i=tr(r.node),{left:s,operator:a,right:o}=gR(i),u=Ka(r,n);return[ot(await Pr(`function _(${s}) {}`,e,{parser:u?"babel-ts":"babel",__isVueForBindingLeft:!0}))," ",a," ",await Pr(o,e,{parser:u?"__ts_expression":"__js_expression"})]}function gR(e){let t=/(.*?)\s+(in|of)\s+(.*)/su,r=/,([^,\]}]*)(?:,([^,\]}]*))?$/u,n=/^\(|\)$/gu,i=e.match(t);if(!i)return;let s={for:i[3].trim()};if(!s.for)return;let a=jt(0,i[1].trim(),n,""),o=a.match(r);o?(s.alias=a.replace(r,""),s.iterator1=o[1].trim(),o[2]&&(s.iterator2=o[2].trim())):s.alias=a;let u=[s.alias,s.iterator1,s.iterator2];if(!u.some((l,c)=>!l&&(c===0||u.slice(c+1).some(Boolean))))return{left:u.filter(Boolean).join(","),operator:i[2],right:s.for}}var DR=[{test:e=>e.node.fullName==="v-for",print:yR},{test:(e,t)=>e.node.fullName==="generic"&&DS(e.parent,t),print:fR},{test:({node:e},t)=>Oj(e)||Mj(e,t),print:mR},{test(e){let t=e.node.fullName;return t.startsWith("@")||t.startsWith("v-on:")},print:ER},{test(e){let t=e.node.fullName;return t.startsWith(":")||t.startsWith(".")||t.startsWith("v-bind:")},print:xR},{test:e=>e.node.fullName.startsWith("v-"),print:vS}].map(({test:e,print:t})=>({test:(r,n)=>n.parser==="vue"&&e(r,n),print:t}));async function ER(e,t,r,n){var a;try{return await vS(e,t,r,n)}catch(o){if(((a=o.cause)==null?void 0:a.code)!=="BABEL_PARSER_SYNTAX_ERROR")throw o}let i=tr(r.node),s=Ka(r,n)?"__vue_ts_event_binding":"__vue_event_binding";return Pr(i,e,{parser:s},Ja)}function xR(e,t,r,n){let i=tr(r.node),s=Ka(r,n)?"__vue_ts_expression":"__vue_expression";return Pr(i,e,{parser:s},Ja)}function vS(e,t,r,n){let i=tr(r.node),s=Ka(r,n)?"__ts_expression":"__js_expression";return Pr(i,e,{parser:s},Ja)}var CR=DR,vR=[{test:uR,print:cR},{test:pR,print:hR},{test:Kj,print:Gj},{test:Hj,print:Wj},{test:Zj,print:eR},...CR,...qj].map(({test:e,print:t})=>({test:e,print:TR(t)}));function AR(e,t){var i;let{node:r}=e,{value:n}=r;if(n)return ES(r,t)?[r.rawName,"=",n]:(i=vR.find(({test:s})=>s(e,t)))==null?void 0:i.print}function TR(e){return async(t,r,n,i)=>{let s=await e(t,r,n,i);if(s)return s=YT(s,a=>typeof a=="string"?jt(0,a,'"',"""):a),[n.node.rawName,'="',ot(s),'"']}}var SR=AR,Ku=e=>e.sourceSpan.start.offset,wp=e=>e.sourceSpan.end.offset;function vf(e,t){return[e.isSelfClosing?"":FR(e,t),Ko(e,t)]}function FR(e,t){return e.lastChild&&Su(e.lastChild)?"":[bR(e,t),l0(e,t)]}function Ko(e,t){return(e.next?ys(e.next):Qu(e.parent))?"":[Gu(e,t),ms(e,t)]}function bR(e,t){return Qu(e)?Gu(e.lastChild,t):""}function ms(e,t){return Su(e)?l0(e.parent,t):Pp(e)?c0(e.next,t):""}function l0(e,t){if(AS(e,t))return"";switch(e.kind){case"ieConditionalComment":return"";case"ieConditionalStartComment":return"]>";case"interpolation":return"}}";case"angularIcuExpression":return"}";case"element":if(e.isSelfClosing)return"/>";default:return">"}}function AS(e,t){return!e.isSelfClosing&&!e.endSourceSpan&&(Fp(e)||oS(e.parent,t))}function ys(e){return e.prev&&e.prev.kind!=="docType"&&e.kind!=="angularControlFlowBlock"&&!xr(e.prev)&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function Qu(e){var t;return((t=e.lastChild)==null?void 0:t.isTrailingSpaceSensitive)&&!e.lastChild.hasTrailingSpaces&&!xr(o0(e.lastChild))&&!ka(e)}function Su(e){return!e.next&&!e.hasTrailingSpaces&&e.isTrailingSpaceSensitive&&xr(o0(e))}function Pp(e){return e.next&&!xr(e.next)&&xr(e)&&e.isTrailingSpaceSensitive&&!e.hasTrailingSpaces}function wR(e){let t=e.trim().match(/^prettier-ignore-attribute(?:\s+(.+))?$/su);return t?t[1]?t[1].split(/\s+/u):!0:!1}function kp(e){return!e.prev&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function PR(e,t,r){var c;let{node:n}=e;if(!s0(n.attrs))return n.isSelfClosing?" ":"";let i=((c=n.prev)==null?void 0:c.kind)==="comment"&&wR(n.prev.value),s=typeof i=="boolean"?()=>i:Array.isArray(i)?p=>i.includes(p.rawName):()=>!1,a=e.map(({node:p})=>s(p)?un(t.originalText.slice(Ku(p),wp(p))):r(),"attrs"),o=n.kind==="element"&&n.fullName==="script"&&n.attrs.length===1&&n.attrs[0].fullName==="src"&&n.children.length===0,u=t.singleAttributePerLine&&n.attrs.length>1&&!Xa(n,t)?Ge:rt,l=[yn([o?" ":rt,Wa(u,a)])];return n.firstChild&&kp(n.firstChild)||n.isSelfClosing&&Qu(n.parent)||o?l.push(n.isSelfClosing?" ":""):l.push(t.bracketSameLine?n.isSelfClosing?" ":"":n.isSelfClosing?rt:Pt),l}function kR(e){return e.firstChild&&kp(e.firstChild)?"":p0(e)}function Af(e,t,r){let{node:n}=e;return[Go(n,t),PR(e,t,r),n.isSelfClosing?"":kR(n)]}function Go(e,t){return e.prev&&Pp(e.prev)?"":[gs(e,t),c0(e,t)]}function gs(e,t){return kp(e)?p0(e.parent):ys(e)?Gu(e.prev,t):""}var FD="<${e.rawName}`;default:return`<${e.rawName}`}}function p0(e){switch(e.kind){case"ieConditionalComment":return"]>";case"element":if(e.condition)return">";default:return">"}}function NR(e,t){if(!e.endSourceSpan)return"";let r=e.startSourceSpan.end.offset;e.firstChild&&kp(e.firstChild)&&(r-=p0(e).length);let n=e.endSourceSpan.start.offset;return e.lastChild&&Su(e.lastChild)?n+=l0(e,t).length:Qu(e)&&(n-=Gu(e.lastChild,t).length),t.originalText.slice(r,n)}var TS=NR,BR=new Set(["if","else if","for","switch","case"]);function IR(e,t){let{node:r}=e;switch(r.kind){case"element":if(Mn(r,t)||r.kind==="interpolation")return;if(!r.isSelfClosing&&u0(r,t)){let n=AD(r,t);return n?async(i,s)=>{let a=TS(r,t),o=/^\s*$/u.test(a),u="";return o||(u=await i(aS(a),{parser:n,__embeddedInHtml:!0}),o=u===""),[gs(r,t),ot(Af(e,t,s)),o?"":Ge,u,o?"":Ge,vf(r,t),ms(r,t)]}:void 0}break;case"text":if(Mn(r.parent,t)){let n=AD(r.parent,t);if(n)return async i=>{let s=n==="markdown"?wr.dedentString(r.value.replace(/^[^\S\n]*\n/u,"")):r.value,a={parser:n,__embeddedInHtml:!0};if(t.parser==="html"&&n==="babel"){let o="script",{attrMap:u}=r.parent;u&&(u.type==="module"||(u.type==="text/babel"||u.type==="text/jsx")&&u["data-type"]==="module")&&(o="module"),a.__babelSourceType=o}return[Hu,gs(r,t),await i(s,a),ms(r,t)]}}else if(r.parent.kind==="interpolation")return async n=>{let i={__isInHtmlInterpolation:!0,__embeddedInHtml:!0};return t.parser==="angular"?i.parser="__ng_interpolation":t.parser==="vue"?i.parser=Ka(e,t)?"__vue_ts_expression":"__vue_expression":i.parser="__js_expression",[yn([rt,await n(r.value,i)]),r.parent.next&&ys(r.parent.next)?" ":rt]};break;case"attribute":return SR(e,t);case"angularControlFlowBlockParameters":return BR.has(e.parent.name)?XM:void 0;case"angularLetDeclarationInitializer":return n=>Pr(r.value,n,{parser:"__ng_binding",__isInHtmlAttribute:!1})}}var _R=IR,fo=null;function Qo(e){if(fo!==null&&typeof fo.property){let t=fo;return fo=Qo.prototype=null,t}return fo=Qo.prototype=e??Object.create(null),new Qo}var LR=10;for(let e=0;e<=LR;e++)Qo();function $R(e){return Qo(e)}function OR(e,t="type"){$R(e);function r(n){let i=n[t],s=e[i];if(!Array.isArray(s))throw Object.assign(new Error(`Missing visitor keys for '${i}'.`),{node:n});return s}return r}var MR=OR,rr=[["children"],[]],jR={root:rr[0],element:["attrs","children"],ieConditionalComment:rr[0],ieConditionalStartComment:rr[1],ieConditionalEndComment:rr[1],interpolation:rr[0],text:rr[0],docType:rr[1],comment:rr[1],attribute:rr[1],cdata:rr[1],angularControlFlowBlock:["children","parameters"],angularControlFlowBlockParameters:rr[0],angularControlFlowBlockParameter:rr[1],angularLetDeclaration:["init"],angularLetDeclarationInitializer:rr[1],angularIcuExpression:["cases"],angularIcuCase:["expression"]},RR=MR(jR,"kind"),UR=RR,VR="format",zR=/^\s*/u,qR=/^\s*/u,HR=e=>qR.test(e),WR=e=>zR.test(e),JR=e=>` +`)),Xa(0,l,-1).length}},[AT]:!0}}function Mj(e){let t=Oj(e);return t?{frontMatter:t,get content(){let{raw:r}=t;return jt(0,r,/[^\n]/gu," ")+e.slice(r.length)}}:{content:e}}var jj=Mj,Rj="inline",$2={area:"none",base:"none",basefont:"none",datalist:"none",head:"none",link:"none",meta:"none",noembed:"none",noframes:"none",param:"block",rp:"none",script:"block",style:"none",template:"inline",title:"none",html:"block",body:"block",address:"block",blockquote:"block",center:"block",dialog:"block",div:"block",figure:"block",figcaption:"block",footer:"block",form:"block",header:"block",hr:"block",legend:"block",listing:"block",main:"block",p:"block",plaintext:"block",pre:"block",search:"block",xmp:"block",slot:"contents",ruby:"ruby",rt:"ruby-text",article:"block",aside:"block",h1:"block",h2:"block",h3:"block",h4:"block",h5:"block",h6:"block",hgroup:"block",nav:"block",section:"block",dir:"block",dd:"block",dl:"block",dt:"block",menu:"block",ol:"block",ul:"block",li:"list-item",table:"table",caption:"table-caption",colgroup:"table-column-group",col:"table-column",thead:"table-header-group",tbody:"table-row-group",tfoot:"table-footer-group",tr:"table-row",td:"table-cell",th:"table-cell",input:"inline-block",button:"inline-block",fieldset:"block",details:"block",summary:"block",marquee:"inline-block",select:"inline-block",source:"block",track:"block",meter:"inline-block",progress:"inline-block",object:"inline-block",video:"inline-block",audio:"inline-block",option:"block",optgroup:"block"},Uj="normal",O2={listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"};function Vj(e){return e.kind==="element"&&!e.hasExplicitNamespace&&!["html","svg"].includes(e.namespace)}var el=Vj,zj=e=>jt(0,e,/^[\t\f\r ]*\n/gu,""),bT=e=>zj(wr.trimEnd(e)),qj=e=>{let t=e,r=wr.getLeadingWhitespace(t);r&&(t=t.slice(r.length));let n=wr.getTrailingWhitespace(t);return n&&(t=t.slice(0,-n.length)),{leadingWhitespace:r,trailingWhitespace:n,text:t}};function TT(e,t){return!!(e.kind==="ieConditionalComment"&&e.lastChild&&!e.lastChild.isSelfClosing&&!e.lastChild.endSourceSpan||e.kind==="ieConditionalComment"&&!e.complete||_a(e)&&e.children.some(r=>r.kind!=="text"&&r.kind!=="interpolation")||Cy(e,t)&&!jn(e,t)&&e.kind!=="interpolation")}function Lp(e){return e.kind==="attribute"||!e.parent||!e.prev?!1:Hj(e.prev)}function Hj(e){return e.kind==="comment"&&e.value.trim()==="prettier-ignore"}function Er(e){return e.kind==="text"||e.kind==="comment"}function jn(e,t){return e.kind==="element"&&(e.fullName==="script"||e.fullName==="style"||e.fullName==="svg:style"||e.fullName==="svg:script"||e.fullName==="mj-style"&&t.parser==="mjml"||el(e)&&(e.name==="script"||e.name==="style"))}function Wj(e,t){return e.children&&!jn(e,t)}function Jj(e,t){return jn(e,t)||e.kind==="interpolation"||ST(e)}function ST(e){return IT(e).startsWith("pre")}function Xj(e,t){var i,s;let r=n();if(r&&!e.prev&&((s=(i=e.parent)==null?void 0:i.tagDefinition)!=null&&s.ignoreFirstLf))return e.kind==="interpolation";return r;function n(){return _p(e)||e.kind==="angularControlFlowBlock"?!1:(e.kind==="text"||e.kind==="interpolation")&&e.prev&&(e.prev.kind==="text"||e.prev.kind==="interpolation")?!0:!e.parent||e.parent.cssDisplay==="none"?!1:_a(e.parent)?!0:!(!e.prev&&(e.parent.kind==="root"||_a(e)&&e.parent||jn(e.parent,t)||$p(e.parent,t)||!nR(e.parent.cssDisplay))||e.prev&&!aR(e.prev.cssDisplay))}}function Kj(e,t){return _p(e)||e.kind==="angularControlFlowBlock"?!1:(e.kind==="text"||e.kind==="interpolation")&&e.next&&(e.next.kind==="text"||e.next.kind==="interpolation")?!0:!e.parent||e.parent.cssDisplay==="none"?!1:_a(e.parent)?!0:!(!e.next&&(e.parent.kind==="root"||_a(e)&&e.parent||jn(e.parent,t)||$p(e.parent,t)||!iR(e.parent.cssDisplay))||e.next&&!sR(e.next.cssDisplay))}function Gj(e,t){return oR(e.cssDisplay)&&!jn(e,t)}function $l(e){return _p(e)||e.next&&e.sourceSpan.end&&e.sourceSpan.end.line+10&&(["body","script","style"].includes(e.name)||e.children.some(t=>Zj(t)))||e.firstChild&&e.firstChild===e.lastChild&&e.firstChild.kind!=="text"&&kT(e.firstChild)&&(!e.lastChild.isTrailingSpaceSensitive||PT(e.lastChild))}function FT(e){return e.kind==="element"&&e.children.length>0&&(["html","head","ul","ol","select"].includes(e.name)||e.cssDisplay.startsWith("table")&&e.cssDisplay!=="table-cell")}function Yh(e){return NT(e)||e.prev&&Yj(e.prev)||wT(e)}function Yj(e){return NT(e)||e.kind==="element"&&e.fullName==="br"||wT(e)}function wT(e){return kT(e)&&PT(e)}function kT(e){return e.hasLeadingSpaces&&(e.prev?e.prev.sourceSpan.end.linee.sourceSpan.end.line:e.parent.kind==="root"||e.parent.endSourceSpan&&e.parent.endSourceSpan.start.line>e.sourceSpan.end.line)}function NT(e){switch(e.kind){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return["script","select"].includes(e.name)}return!1}function Ey(e){return e.lastChild?Ey(e.lastChild):e}function Zj(e){var t;return(t=e.children)==null?void 0:t.some(r=>r.kind!=="text")}function BT(e){if(e)switch(e){case"module":case"text/javascript":case"text/babel":case"text/jsx":case"application/javascript":return"babel";case"application/x-typescript":return"typescript";case"text/markdown":return"markdown";case"text/html":return"html";case"text/x-handlebars-template":return"glimmer";default:if(e.endsWith("json")||e.endsWith("importmap")||e==="speculationrules")return"json"}}function eR(e,t){let{name:r,attrMap:n}=e;if(r!=="script"||Object.prototype.hasOwnProperty.call(n,"src"))return;let{type:i,lang:s}=e.attrMap;return!s&&!i?"babel":xy(t,{language:s})??BT(i)}function tR(e,t){if(!Cy(e,t))return;let{attrMap:r}=e;if(Object.prototype.hasOwnProperty.call(r,"src"))return;let{type:n,lang:i}=r;return xy(t,{language:i})??BT(n)}function rR(e,t){if(e.name==="style"){let{lang:r}=e.attrMap;return r?xy(t,{language:r}):"css"}if(e.name==="mj-style"&&t.parser==="mjml")return"css"}function M2(e,t){return eR(e,t)??rR(e,t)??tR(e,t)}function tl(e){return e==="block"||e==="list-item"||e.startsWith("table")}function nR(e){return!tl(e)&&e!=="inline-block"}function iR(e){return!tl(e)&&e!=="inline-block"}function sR(e){return!tl(e)}function aR(e){return!tl(e)}function oR(e){return!tl(e)&&e!=="inline-block"}function _a(e){return IT(e).startsWith("pre")}function uR(e,t){let r=e;for(;r;){if(t(r))return!0;r=r.parent}return!1}function lR(e,t){var n;if(Ya(e,t))return"block";if(((n=e.prev)==null?void 0:n.kind)==="comment"){let i=e.prev.value.match(/^\s*display:\s*([a-z]+)\s*$/u);if(i)return i[1]}let r=!1;if(e.kind==="element"&&e.namespace==="svg")if(uR(e,i=>i.fullName==="svg:foreignObject"))r=!0;else return e.name==="svg"?"inline-block":"block";switch(t.htmlWhitespaceSensitivity){case"strict":return"inline";case"ignore":return"block";default:if(e.kind==="element"&&(!e.namespace||r||el(e))&&Object.prototype.hasOwnProperty.call($2,e.name))return $2[e.name]}return Rj}function IT(e){return e.kind==="element"&&(!e.namespace||el(e))&&Object.prototype.hasOwnProperty.call(O2,e.name)?O2[e.name]:Uj}function _T(e){return jt(0,jt(0,e,"'","'"),""",'"')}function tr(e){return _T(e.value)}var cR=new Set(["template","style","script"]);function $p(e,t){return Ya(e,t)&&!cR.has(e.fullName)}function Ya(e,t){return t.parser==="vue"&&e.kind==="element"&&e.parent.kind==="root"&&e.fullName.toLowerCase()!=="html"}function Cy(e,t){return Ya(e,t)&&($p(e,t)||e.attrMap.lang&&e.attrMap.lang!=="html")}function pR(e){let t=e.fullName;return t.charAt(0)==="#"||t==="slot-scope"||t==="v-slot"||t.startsWith("v-slot:")}function hR(e,t){let r=e.parent;if(!Ya(r,t))return!1;let n=r.fullName,i=e.fullName;return n==="script"&&i==="setup"||n==="style"&&i==="vars"}function LT(e,t=e.value){return e.parent.isWhitespaceSensitive?e.parent.isIndentationSensitive?ln(t):ln(wr.dedentString(bT(t)),Ge):Ga(rt,wr.split(t))}function $T(e,t){return Ya(e,t)&&e.name==="script"}function dR(e){let{valueSpan:t,value:r}=e;return t.end.offset-t.start.offset===r.length+2}function OT(e,t){if(dR(e))return!1;let{value:r}=e;return/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/u.test(r)||t.parser==="lwc"&&r.startsWith("{")&&r.endsWith("}")}var MT=/\{\{(.+?)\}\}/su,fR=({node:{value:e}})=>MT.test(e);async function mR(e,t,r){let n=tr(r.node),i=[];for(let[s,a]of n.split(MT).entries())if(s%2===0)i.push(ln(a));else try{i.push(ot(["{{",gn([rt,await kr(a,e,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0})]),rt,"}}"]))}catch{i.push("{{",ln(a),"}}")}return i}var Zh=e=>(t,r,n)=>kr(tr(n.node),t,{parser:e},Qa),yR=[{test(e){let t=e.node.fullName;return t.startsWith("(")&&t.endsWith(")")||t.startsWith("on-")},print:Zh("__ng_action")},{test(e){let t=e.node.fullName;return t.startsWith("[")&&t.endsWith("]")||/^bind(?:on)?-/u.test(t)||/^ng-(?:if|show|hide|class|style)$/u.test(t)},print:Zh("__ng_binding")},{test:e=>e.node.fullName.startsWith("*"),print:Zh("__ng_directive")},{test:e=>/^i18n(?:-.+)?$/u.test(e.node.fullName),print:gR},{test:fR,print:mR}].map(({test:e,print:t})=>({test:(r,n)=>n.parser==="angular"&&e(r),print:t}));function gR(e,t,{node:r}){let n=tr(r);return Zu(gT(LT(r,n.trim())),!n.includes("@@"))}var DR=yR,xR=({node:e},t)=>!t.parentParser&&e.fullName==="class"&&!e.value.includes("{{"),ER=(e,t,r)=>tr(r.node).trim().split(/\s+/u).join(" "),CR=["onabort","onafterprint","onauxclick","onbeforeinput","onbeforematch","onbeforeprint","onbeforetoggle","onbeforeunload","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncommand","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","onhashchange","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onlanguagechange","onload","onloadeddata","onloadedmetadata","onloadstart","onmessage","onmessageerror","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onoffline","ononline","onpagehide","onpagereveal","onpageshow","onpageswap","onpaste","onpause","onplay","onplaying","onpopstate","onprogress","onratechange","onrejectionhandled","onreset","onresize","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onstorage","onsubmit","onsuspend","ontimeupdate","ontoggle","onunhandledrejection","onunload","onvolumechange","onwaiting","onwheel"],vR=new Set(CR),AR=({node:e},t)=>vR.has(e.fullName)&&!t.parentParser&&!e.value.includes("{{"),bR=(e,t,r)=>kr(tr(r.node),e,{parser:"babel",__isHtmlInlineEventHandler:!0},()=>!1);function TR(e){let t=[];for(let r of e.split(";")){if(r=wr.trim(r),!r)continue;let[n,...i]=wr.split(r);t.push({name:n,value:i})}return t}var SR=TR,FR=({node:e},t)=>e.fullName==="allow"&&!t.parentParser&&e.parent.fullName==="iframe"&&!e.value.includes("{{");function wR(e,t,r){let{node:n}=r,i=SR(tr(n));return i.length===0?[""]:Zu(i.map(({name:s,value:a},o)=>[[s,...a].join(" "),o===i.length-1?ku(";"):[";",rt]]))}function j2(e){return e===" "||e===` +`||e==="\f"||e==="\r"||e===" "}var kR=/^[ \t\n\r\u000c]+/,PR=/^[, \t\n\r\u000c]+/,NR=/^[^ \t\n\r\u000c]+/,BR=/[,]+$/,R2=/^\d+$/,IR=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/;function _R(e){let t=e.length,r,n,i,s,a,o=0,u;function l(d){let f,y=d.exec(e.substring(o));if(y)return[f]=y,o+=f.length,f}let c=[];for(;;){if(l(PR),o>=t){if(c.length===0)throw new Error("Must contain one or more image candidate strings.");return c}u=o,r=l(NR),n=[],r.slice(-1)===","?(r=r.replace(BR,""),h()):p()}function p(){for(l(kR),i="",s="in descriptor";;){if(a=e.charAt(o),s==="in descriptor")if(j2(a))i&&(n.push(i),i="",s="after descriptor");else if(a===","){o+=1,i&&n.push(i),h();return}else if(a==="(")i+=a,s="in parens";else if(a===""){i&&n.push(i),h();return}else i+=a;else if(s==="in parens")if(a===")")i+=a,s="in descriptor";else if(a===""){n.push(i),h();return}else i+=a;else if(s==="after descriptor"&&!j2(a))if(a===""){h();return}else s="in descriptor",o-=1;o+=1}}function h(){let d=!1,f,y,C,g,m={},x,v,T,k,N;for(g=0;ge.node.fullName==="srcset"&&(e.parent.fullName==="img"||e.parent.fullName==="source"),jT={width:"w",height:"h",density:"x"},OR=Object.keys(jT);function MR(e,t,r){let n=tr(r.node),i=LR(n),s=OR.filter(d=>i.some(f=>Object.prototype.hasOwnProperty.call(f,d)));if(s.length>1)throw new Error("Mixed descriptor in srcset is not supported");let[a]=s,o=jT[a],u=i.map(d=>d.source.value),l=Math.max(...u.map(d=>d.length)),c=i.map(d=>d[a]?String(d[a].value):""),p=c.map(d=>{let f=d.indexOf(".");return f===-1?d.length:f}),h=Math.max(...p);return Zu(Ga([",",rt],u.map((d,f)=>{let y=[d],C=c[f];if(C){let g=l-d.length+1,m=h-p[f],x=" ".repeat(g+m);y.push(ku(x," "),C+o)}return y})))}var jR=({node:e},t)=>e.fullName==="style"&&!t.parentParser&&!e.value.includes("{{"),RR=async(e,t,r)=>Zu(await e(tr(r.node),{parser:"css",__isHTMLStyleAttribute:!0})),ed=new WeakMap;function UR(e,t){let{root:r}=e;return ed.has(r)||ed.set(r,r.children.some(n=>$T(n,t)&&["ts","typescript"].includes(n.attrMap.lang))),ed.get(r)}var Za=UR;function VR(e,t,r){let n=tr(r.node);return kr(`type T<${n}> = any`,e,{parser:"babel-ts",__isEmbeddedTypescriptGenericParameters:!0},Qa)}function zR(e,t,r,n){let i=tr(r.node),s=Za(r,n)?"babel-ts":"babel";return kr(`function _(${i}) {}`,e,{parser:s,__isVueBindings:!0})}async function qR(e,t,r,n){let i=tr(r.node),{left:s,operator:a,right:o}=HR(i),u=Za(r,n);return[ot(await kr(`function _(${s}) {}`,e,{parser:u?"babel-ts":"babel",__isVueForBindingLeft:!0}))," ",a," ",await kr(o,e,{parser:u?"__ts_expression":"__js_expression"})]}function HR(e){let t=/(.*?)\s+(in|of)\s+(.*)/su,r=/,([^,\]}]*)(?:,([^,\]}]*))?$/u,n=/^\(|\)$/gu,i=e.match(t);if(!i)return;let s={for:i[3].trim()};if(!s.for)return;let a=jt(0,i[1].trim(),n,""),o=a.match(r);o?(s.alias=a.replace(r,""),s.iterator1=o[1].trim(),o[2]&&(s.iterator2=o[2].trim())):s.alias=a;let u=[s.alias,s.iterator1,s.iterator2];if(!u.some((l,c)=>!l&&(c===0||u.slice(c+1).some(Boolean))))return{left:u.filter(Boolean).join(","),operator:i[2],right:s.for}}var WR=[{test:e=>e.node.fullName==="v-for",print:qR},{test:(e,t)=>e.node.fullName==="generic"&&$T(e.parent,t),print:VR},{test:({node:e},t)=>pR(e)||hR(e,t),print:zR},{test(e){let t=e.node.fullName;return t.startsWith("@")||t.startsWith("v-on:")},print:JR},{test(e){let t=e.node.fullName;return t.startsWith(":")||t.startsWith(".")||t.startsWith("v-bind:")},print:XR},{test:e=>e.node.fullName.startsWith("v-"),print:RT}].map(({test:e,print:t})=>({test:(r,n)=>n.parser==="vue"&&e(r,n),print:t}));async function JR(e,t,r,n){var a;try{return await RT(e,t,r,n)}catch(o){if(((a=o.cause)==null?void 0:a.code)!=="BABEL_PARSER_SYNTAX_ERROR")throw o}let i=tr(r.node),s=Za(r,n)?"__vue_ts_event_binding":"__vue_event_binding";return kr(i,e,{parser:s},Qa)}function XR(e,t,r,n){let i=tr(r.node),s=Za(r,n)?"__vue_ts_expression":"__vue_expression";return kr(i,e,{parser:s},Qa)}function RT(e,t,r,n){let i=tr(r.node),s=Za(r,n)?"__ts_expression":"__js_expression";return kr(i,e,{parser:s},Qa)}var KR=WR,GR=[{test:$R,print:MR},{test:jR,print:RR},{test:AR,print:bR},{test:xR,print:ER},{test:FR,print:wR},...KR,...DR].map(({test:e,print:t})=>({test:e,print:YR(t)}));function QR(e,t){var i;let{node:r}=e,{value:n}=r;if(n)return OT(r,t)?[r.rawName,"=",n]:(i=GR.find(({test:s})=>s(e,t)))==null?void 0:i.print}function YR(e){return async(t,r,n,i)=>{let s=await e(t,r,n,i);if(s)return s=yT(s,a=>typeof a=="string"?jt(0,a,'"',"""):a),[n.node.rawName,'="',ot(s),'"']}}var ZR=QR,rl=e=>e.sourceSpan.start.offset,Op=e=>e.sourceSpan.end.offset;function Bf(e,t){return[e.isSelfClosing?"":eU(e,t),eu(e,t)]}function eU(e,t){return e.lastChild&&Pu(e.lastChild)?"":[tU(e,t),vy(e,t)]}function eu(e,t){return(e.next?Ds(e.next):il(e.parent))?"":[nl(e,t),gs(e,t)]}function tU(e,t){return il(e)?nl(e.lastChild,t):""}function gs(e,t){return Pu(e)?vy(e.parent,t):Mp(e)?Ay(e.next,t):""}function vy(e,t){if(UT(e,t))return"";switch(e.kind){case"ieConditionalComment":return"";case"ieConditionalStartComment":return"]>";case"interpolation":return"}}";case"angularIcuExpression":return"}";case"element":if(e.isSelfClosing)return"/>";default:return">"}}function UT(e,t){return!e.isSelfClosing&&!e.endSourceSpan&&(Lp(e)||TT(e.parent,t))}function Ds(e){return e.prev&&e.prev.kind!=="docType"&&e.kind!=="angularControlFlowBlock"&&!Er(e.prev)&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function il(e){var t;return((t=e.lastChild)==null?void 0:t.isTrailingSpaceSensitive)&&!e.lastChild.hasTrailingSpaces&&!Er(Ey(e.lastChild))&&!_a(e)}function Pu(e){return!e.next&&!e.hasTrailingSpaces&&e.isTrailingSpaceSensitive&&Er(Ey(e))}function Mp(e){return e.next&&!Er(e.next)&&Er(e)&&e.isTrailingSpaceSensitive&&!e.hasTrailingSpaces}function rU(e){let t=e.trim().match(/^prettier-ignore-attribute(?:\s+(.+))?$/su);return t?t[1]?t[1].split(/\s+/u):!0:!1}function jp(e){return!e.prev&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function nU(e,t,r){var c;let{node:n}=e;if(!Dy(n.attrs))return n.isSelfClosing?" ":"";let i=((c=n.prev)==null?void 0:c.kind)==="comment"&&rU(n.prev.value),s=typeof i=="boolean"?()=>i:Array.isArray(i)?p=>i.includes(p.rawName):()=>!1,a=e.map(({node:p})=>s(p)?ln(t.originalText.slice(rl(p),Op(p))):r(),"attrs"),o=n.kind==="element"&&n.fullName==="script"&&n.attrs.length===1&&n.attrs[0].fullName==="src"&&n.children.length===0,u=t.singleAttributePerLine&&n.attrs.length>1&&!Ya(n,t)?Ge:rt,l=[gn([o?" ":rt,Ga(u,a)])];return n.firstChild&&jp(n.firstChild)||n.isSelfClosing&&il(n.parent)||o?l.push(n.isSelfClosing?" ":""):l.push(t.bracketSameLine?n.isSelfClosing?" ":"":n.isSelfClosing?rt:kt),l}function iU(e){return e.firstChild&&jp(e.firstChild)?"":by(e)}function If(e,t,r){let{node:n}=e;return[tu(n,t),nU(e,t,r),n.isSelfClosing?"":iU(n)]}function tu(e,t){return e.prev&&Mp(e.prev)?"":[xs(e,t),Ay(e,t)]}function xs(e,t){return jp(e)?by(e.parent):Ds(e)?nl(e.prev,t):""}var U2="<${e.rawName}`;default:return`<${e.rawName}`}}function by(e){switch(e.kind){case"ieConditionalComment":return"]>";case"element":if(e.condition)return">";default:return">"}}function sU(e,t){if(!e.endSourceSpan)return"";let r=e.startSourceSpan.end.offset;e.firstChild&&jp(e.firstChild)&&(r-=by(e).length);let n=e.endSourceSpan.start.offset;return e.lastChild&&Pu(e.lastChild)?n+=vy(e,t).length:il(e)&&(n-=nl(e.lastChild,t).length),t.originalText.slice(r,n)}var VT=sU,aU=new Set(["if","else if","for","switch","case"]);function oU(e,t){let{node:r}=e;switch(r.kind){case"element":if(jn(r,t)||r.kind==="interpolation")return;if(!r.isSelfClosing&&Cy(r,t)){let n=M2(r,t);return n?async(i,s)=>{let a=VT(r,t),o=/^\s*$/u.test(a),u="";return o||(u=await i(bT(a),{parser:n,__embeddedInHtml:!0}),o=u===""),[xs(r,t),ot(If(e,t,s)),o?"":Ge,u,o?"":Ge,Bf(r,t),gs(r,t)]}:void 0}break;case"text":if(jn(r.parent,t)){let n=M2(r.parent,t);if(n)return async i=>{let s=n==="markdown"?wr.dedentString(r.value.replace(/^[^\S\n]*\n/u,"")):r.value,a={parser:n,__embeddedInHtml:!0};if(t.parser==="html"&&n==="babel"){let o="script",{attrMap:u}=r.parent;u&&(u.type==="module"||(u.type==="text/babel"||u.type==="text/jsx")&&u["data-type"]==="module")&&(o="module"),a.__babelSourceType=o}return[Yu,xs(r,t),await i(s,a),gs(r,t)]}}else if(r.parent.kind==="interpolation")return async n=>{let i={__isInHtmlInterpolation:!0,__embeddedInHtml:!0};return t.parser==="angular"?i.parser="__ng_interpolation":t.parser==="vue"?i.parser=Za(e,t)?"__vue_ts_expression":"__vue_expression":i.parser="__js_expression",[gn([rt,await n(r.value,i)]),r.parent.next&&Ds(r.parent.next)?" ":rt]};break;case"attribute":return ZR(e,t);case"angularControlFlowBlockParameters":return aU.has(e.parent.name)?vj:void 0;case"angularLetDeclarationInitializer":return n=>kr(r.value,n,{parser:"__ng_binding",__isInHtmlAttribute:!1})}}var uU=oU,Do=null;function ru(e){if(Do!==null&&typeof Do.property){let t=Do;return Do=ru.prototype=null,t}return Do=ru.prototype=e??Object.create(null),new ru}var lU=10;for(let e=0;e<=lU;e++)ru();function cU(e){return ru(e)}function pU(e,t="type"){cU(e);function r(n){let i=n[t],s=e[i];if(!Array.isArray(s))throw Object.assign(new Error(`Missing visitor keys for '${i}'.`),{node:n});return s}return r}var hU=pU,rr=[["children"],[]],dU={root:rr[0],element:["attrs","children"],ieConditionalComment:rr[0],ieConditionalStartComment:rr[1],ieConditionalEndComment:rr[1],interpolation:rr[0],text:rr[0],docType:rr[1],comment:rr[1],attribute:rr[1],cdata:rr[1],angularControlFlowBlock:["children","parameters"],angularControlFlowBlockParameters:rr[0],angularControlFlowBlockParameter:rr[1],angularLetDeclaration:["init"],angularLetDeclarationInitializer:rr[1],angularIcuExpression:["cases"],angularIcuCase:["expression"]},fU=hU(dU,"kind"),mU=fU,yU="format",gU=/^\s*/u,DU=/^\s*/u,xU=e=>DU.test(e),EU=e=>gU.test(e),CU=e=>` -${e}`,XR=new Map([["if",new Set(["else if","else"])],["else if",new Set(["else if","else"])],["for",new Set(["empty"])],["defer",new Set(["placeholder","error","loading"])],["placeholder",new Set(["placeholder","error","loading"])],["error",new Set(["placeholder","error","loading"])],["loading",new Set(["placeholder","error","loading"])]]);function SS(e){let t=wp(e);return e.kind==="element"&&!e.endSourceSpan&&s0(e.children)?Math.max(t,SS(qa(0,e.children,-1))):t}function mo(e,t,r){let n=e.node;if(Fp(n)){let i=SS(n);return[gs(n,t),un(wr.trimEnd(t.originalText.slice(Ku(n)+(n.prev&&Pp(n.prev)?c0(n).length:0),i-(n.next&&ys(n.next)?Gu(n,t).length:0)))),ms(n,t)]}return r()}function kl(e,t){return xr(e)&&xr(t)?e.isTrailingSpaceSensitive?e.hasTrailingSpaces?zh(t)?Ge:rt:"":zh(t)?Ge:Pt:Pp(e)&&(Fp(t)||t.firstChild||t.isSelfClosing||t.kind==="element"&&t.attrs.length>0)||e.kind==="element"&&e.isSelfClosing&&ys(t)?"":!t.isLeadingSpaceSensitive||zh(t)||ys(t)&&e.lastChild&&Su(e.lastChild)&&e.lastChild.lastChild&&Su(e.lastChild.lastChild)?Ge:t.hasLeadingSpaces?rt:Pt}function h0(e,t,r){let{node:n}=e;if(lS(n))return[Hu,...e.map(()=>{let s=e.node,a=s.prev?kl(s.prev,s):"";return[a?[a,Pl(s.prev)?Ge:""]:"",mo(e,t,r)]},"children")];let i=n.children.map(()=>Symbol(""));return e.map(({node:s,index:a})=>{if(xr(s)){if(s.prev&&xr(s.prev)){let d=kl(s.prev,s);if(d)return Pl(s.prev)?[Ge,Ge,mo(e,t,r)]:[d,mo(e,t,r)]}return mo(e,t,r)}let o=[],u=[],l=[],c=[],p=s.prev?kl(s.prev,s):"",h=s.next?kl(s,s.next):"";return p&&(Pl(s.prev)?o.push(Ge,Ge):p===Ge?o.push(Ge):xr(s.prev)?u.push(p):u.push(Tu("",Pt,{groupId:i[a-1]}))),h&&(Pl(s)?xr(s.next)&&c.push(Ge,Ge):h===Ge?xr(s.next)&&c.push(Ge):l.push(h)),[...o,ot([...u,ot([mo(e,t,r),...l],{id:i[a]})]),...c]},"children")}function KR(e,t,r){let{node:n}=e,i=[];if(YR(e)&&i.push("} "),i.push("@",n.name),n.parameters&&i.push(" (",ot(r("parameters")),")"),!QR(n)){i.push(" {");let s=FS(n);n.children.length>0?(n.firstChild.hasLeadingSpaces=!0,n.lastChild.hasTrailingSpaces=!0,i.push(yn([Ge,h0(e,t,r)])),s&&i.push(Ge,"}")):s&&i.push("}")}return ot(i,{shouldBreak:!0})}function FS(e){var t,r;return!(((t=e.next)==null?void 0:t.kind)==="angularControlFlowBlock"&&((r=XR.get(e.name))!=null&&r.has(e.next.name)))}var GR=e=>(e==null?void 0:e.kind)==="angularControlFlowBlock"&&(e.name==="case"||e.name==="default");function QR(e){return GR(e)&&e.endSourceSpan&&e.endSourceSpan.start.offset===e.endSourceSpan.end.offset}function YR(e){let{previous:t}=e;return(t==null?void 0:t.kind)==="angularControlFlowBlock"&&!Fp(t)&&!FS(t)}function ZR(e,t,r){return[yn([Pt,Wa([";",rt],e.map(r,"children"))]),Pt]}function eU(e,t,r){let{node:n}=e;return[Go(n,t),ot([n.switchValue.trim(),", ",n.type,n.cases.length>0?[",",yn([rt,Wa(rt,e.map(r,"cases"))])]:"",Pt]),Ko(n,t)]}function tU(e,t,r){let{node:n}=e;return[n.value," {",ot([yn([Pt,e.map(({node:i,isLast:s})=>{let a=[r()];return i.kind==="text"&&(i.hasLeadingSpaces&&a.unshift(rt),i.hasTrailingSpaces&&!s&&a.push(rt)),a},"expression")]),Pt]),"}"]}function rU(e,t,r){let{node:n}=e;if(oS(n,t))return[gs(n,t),ot(Af(e,t,r)),un(TS(n,t)),...vf(n,t),ms(n,t)];let i=n.children.length===1&&(n.firstChild.kind==="interpolation"||n.firstChild.kind==="angularIcuExpression")&&n.firstChild.isLeadingSpaceSensitive&&!n.firstChild.hasLeadingSpaces&&n.lastChild.isTrailingSpaceSensitive&&!n.lastChild.hasTrailingSpaces,s=Symbol("element-attr-group-id"),a=c=>ot([ot(Af(e,t,r),{id:s}),c,vf(n,t)]),o=c=>i?PM(c,{groupId:s}):(Mn(n,t)||bp(n,t))&&n.parent.kind==="root"&&t.parser==="vue"&&!t.vueIndentScriptAndStyle?c:yn(c),u=()=>i?Tu(Pt,"",{groupId:s}):n.firstChild.hasLeadingSpaces&&n.firstChild.isLeadingSpaceSensitive?rt:n.firstChild.kind==="text"&&n.isWhitespaceSensitive&&n.isIndentationSensitive?wM(Pt):Pt,l=()=>(n.next?ys(n.next):Qu(n.parent))?n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?" ":"":i?Tu(Pt,"",{groupId:s}):n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?rt:(n.lastChild.kind==="comment"||n.lastChild.kind==="text"&&n.isWhitespaceSensitive&&n.isIndentationSensitive)&&new RegExp(`\\n[\\t ]{${t.tabWidth*(e.ancestors.length-1)}}$`,"u").test(n.lastChild.value)?"":Pt;return n.children.length===0?a(n.hasDanglingSpaces&&n.isDanglingSpaceSensitive?rt:""):a([Aj(n)?Hu:"",o([u(),h0(e,t,r)]),l()])}var vn=function(e){return e[e.RAW_TEXT=0]="RAW_TEXT",e[e.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",e[e.PARSABLE_DATA=2]="PARSABLE_DATA",e}({});function Np(e,t=!0){if(e[0]!=":")return[null,e];let r=e.indexOf(":",1);if(r===-1){if(t)throw new Error(`Unsupported format "${e}" expecting ":namespace:name"`);return[null,e]}return[e.slice(1,r),e.slice(r+1)]}function bD(e){return Np(e)[1]==="ng-container"}function wD(e){return Np(e)[1]==="ng-content"}function rc(e){return e===null?null:Np(e)[0]}function Yo(e,t){return e?`:${e}:${t}`:t}var PD={name:"custom-elements"},kD={name:"no-errors-schema"},Rs=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e[e.ATTRIBUTE_NO_BINDING=6]="ATTRIBUTE_NO_BINDING",e}({}),nU=/-+([a-z0-9])/g;function iU(e){return e.replace(nU,(...t)=>t[1].toUpperCase())}var nc;function ND(){return nc||(nc={},yo(Rs.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),yo(Rs.STYLE,["*|style"]),yo(Rs.URL,["*|formAction","area|href","a|href","a|xlink:href","form|action","annotation|href","annotation|xlink:href","annotation-xml|href","annotation-xml|xlink:href","maction|href","maction|xlink:href","malignmark|href","malignmark|xlink:href","math|href","math|xlink:href","mroot|href","mroot|xlink:href","msqrt|href","msqrt|xlink:href","merror|href","merror|xlink:href","mfrac|href","mfrac|xlink:href","mglyph|href","mglyph|xlink:href","msub|href","msub|xlink:href","msup|href","msup|xlink:href","msubsup|href","msubsup|xlink:href","mmultiscripts|href","mmultiscripts|xlink:href","mprescripts|href","mprescripts|xlink:href","mi|href","mi|xlink:href","mn|href","mn|xlink:href","mo|href","mo|xlink:href","mpadded|href","mpadded|xlink:href","mphantom|href","mphantom|xlink:href","mrow|href","mrow|xlink:href","ms|href","ms|xlink:href","mspace|href","mspace|xlink:href","mstyle|href","mstyle|xlink:href","mtable|href","mtable|xlink:href","mtd|href","mtd|xlink:href","mtr|href","mtr|xlink:href","mtext|href","mtext|xlink:href","mover|href","mover|xlink:href","munder|href","munder|xlink:href","munderover|href","munderover|xlink:href","semantics|href","semantics|xlink:href","none|href","none|xlink:href","img|src","video|src"]),yo(Rs.RESOURCE_URL,["base|href","embed|src","frame|src","iframe|src","link|href","object|codebase","object|data","script|src","script|href","script|xlink:href"]),yo(Rs.ATTRIBUTE_NO_BINDING,["animate|attributeName","set|attributeName","animateMotion|attributeName","animateTransform|attributeName","unknown|attributeName","iframe|sandbox","iframe|allow","iframe|allowFullscreen","iframe|referrerPolicy","iframe|csp","iframe|fetchPriority","unknown|sandbox","unknown|allow","unknown|allowFullscreen","unknown|referrerPolicy","unknown|csp","unknown|fetchPriority"])),nc}function yo(e,t){for(let r of t)nc[r.toLowerCase()]=e}var sU=class{},aU="boolean",oU="number",uU="string",lU="object",cU=["[Element]|textContent,%ariaActiveDescendantElement,%ariaAtomic,%ariaAutoComplete,%ariaBusy,%ariaChecked,%ariaColCount,%ariaColIndex,%ariaColIndexText,%ariaColSpan,%ariaControlsElements,%ariaCurrent,%ariaDescribedByElements,%ariaDescription,%ariaDetailsElements,%ariaDisabled,%ariaErrorMessageElements,%ariaExpanded,%ariaFlowToElements,%ariaHasPopup,%ariaHidden,%ariaInvalid,%ariaKeyShortcuts,%ariaLabel,%ariaLabelledByElements,%ariaLevel,%ariaLive,%ariaModal,%ariaMultiLine,%ariaMultiSelectable,%ariaOrientation,%ariaOwnsElements,%ariaPlaceholder,%ariaPosInSet,%ariaPressed,%ariaReadOnly,%ariaRelevant,%ariaRequired,%ariaRoleDescription,%ariaRowCount,%ariaRowIndex,%ariaRowIndexText,%ariaRowSpan,%ariaSelected,%ariaSetSize,%ariaSort,%ariaValueMax,%ariaValueMin,%ariaValueNow,%ariaValueText,%classList,className,elementTiming,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*fullscreenchange,*fullscreenerror,*search,*webkitfullscreenchange,*webkitfullscreenerror,outerHTML,%part,#scrollLeft,#scrollTop,slot,*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored","[HTMLElement]^[Element]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,!inert,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","abbr,address,article,aside,b,bdi,bdo,cite,content,code,dd,dfn,dt,em,figcaption,figure,footer,header,hgroup,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,search,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","media^[HTMLElement]|!autoplay,!controls,%controlsList,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,*waitingforkey,#playbackRate,preload,!preservesPitch,src,%srcObject,#volume",":svg:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":svg:graphics^:svg:|",":svg:animation^:svg:|*begin,*end,*repeat",":svg:geometry^:svg:|",":svg:componentTransferFunction^:svg:|",":svg:gradient^:svg:|",":svg:textContent^:svg:graphics|",":svg:textPositioning^:svg:textContent|","a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,rev,search,shape,target,text,type,username","area^[HTMLElement]|alt,coords,download,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,search,shape,target,username","audio^media|","br^[HTMLElement]|clear","base^[HTMLElement]|href,target","body^[HTMLElement]|aLink,background,bgColor,link,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink","button^[HTMLElement]|!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value","canvas^[HTMLElement]|#height,#width","content^[HTMLElement]|select","dl^[HTMLElement]|!compact","data^[HTMLElement]|value","datalist^[HTMLElement]|","details^[HTMLElement]|!open","dialog^[HTMLElement]|!open,returnValue","dir^[HTMLElement]|!compact","div^[HTMLElement]|align","embed^[HTMLElement]|align,height,name,src,type,width","fieldset^[HTMLElement]|!disabled,name","font^[HTMLElement]|color,face,size","form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target","frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src","frameset^[HTMLElement]|cols,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows","hr^[HTMLElement]|align,color,!noShade,size,width","head^[HTMLElement]|","h1,h2,h3,h4,h5,h6^[HTMLElement]|align","html^[HTMLElement]|version","iframe^[HTMLElement]|align,allow,!allowFullscreen,!allowPaymentRequest,csp,frameBorder,height,loading,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width","img^[HTMLElement]|align,alt,border,%crossOrigin,decoding,#height,#hspace,!isMap,loading,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width","input^[HTMLElement]|accept,align,alt,autocomplete,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,imageSizes,imageSrcset,integrity,media,referrerPolicy,rel,%relList,rev,%sizes,target,type","map^[HTMLElement]|name","marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width","menu^[HTMLElement]|!compact","meta^[HTMLElement]|content,httpEquiv,media,name,scheme","meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value","ins,del^[HTMLElement]|cite,dateTime","ol^[HTMLElement]|!compact,!reversed,#start,type","object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width","optgroup^[HTMLElement]|!disabled,label","option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value","output^[HTMLElement]|defaultValue,%htmlFor,name,value","p^[HTMLElement]|align","param^[HTMLElement]|name,type,value,valueType","picture^[HTMLElement]|","pre^[HTMLElement]|#width","progress^[HTMLElement]|#max,#value","q,blockquote,cite^[HTMLElement]|","script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,!noModule,%referrerPolicy,src,text,type","select^[HTMLElement]|autocomplete,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value","selectedcontent^[HTMLElement]|","slot^[HTMLElement]|name","source^[HTMLElement]|#height,media,sizes,src,srcset,type,#width","span^[HTMLElement]|","style^[HTMLElement]|!disabled,media,type","search^[HTMLELement]|","caption^[HTMLElement]|align","th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width","col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width","table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width","tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign","tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign","template^[HTMLElement]|","textarea^[HTMLElement]|autocomplete,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap","time^[HTMLElement]|dateTime","title^[HTMLElement]|text","track^[HTMLElement]|!default,kind,label,src,srclang","ul^[HTMLElement]|!compact,type","unknown^[HTMLElement]|","video^media|!disablePictureInPicture,#height,*enterpictureinpicture,*leavepictureinpicture,!playsInline,poster,#width",":svg:a^:svg:graphics|",":svg:animate^:svg:animation|",":svg:animateMotion^:svg:animation|",":svg:animateTransform^:svg:animation|",":svg:circle^:svg:geometry|",":svg:clipPath^:svg:graphics|",":svg:defs^:svg:graphics|",":svg:desc^:svg:|",":svg:discard^:svg:|",":svg:ellipse^:svg:geometry|",":svg:feBlend^:svg:|",":svg:feColorMatrix^:svg:|",":svg:feComponentTransfer^:svg:|",":svg:feComposite^:svg:|",":svg:feConvolveMatrix^:svg:|",":svg:feDiffuseLighting^:svg:|",":svg:feDisplacementMap^:svg:|",":svg:feDistantLight^:svg:|",":svg:feDropShadow^:svg:|",":svg:feFlood^:svg:|",":svg:feFuncA^:svg:componentTransferFunction|",":svg:feFuncB^:svg:componentTransferFunction|",":svg:feFuncG^:svg:componentTransferFunction|",":svg:feFuncR^:svg:componentTransferFunction|",":svg:feGaussianBlur^:svg:|",":svg:feImage^:svg:|",":svg:feMerge^:svg:|",":svg:feMergeNode^:svg:|",":svg:feMorphology^:svg:|",":svg:feOffset^:svg:|",":svg:fePointLight^:svg:|",":svg:feSpecularLighting^:svg:|",":svg:feSpotLight^:svg:|",":svg:feTile^:svg:|",":svg:feTurbulence^:svg:|",":svg:filter^:svg:|",":svg:foreignObject^:svg:graphics|",":svg:g^:svg:graphics|",":svg:image^:svg:graphics|decoding",":svg:line^:svg:geometry|",":svg:linearGradient^:svg:gradient|",":svg:mpath^:svg:|",":svg:marker^:svg:|",":svg:mask^:svg:|",":svg:metadata^:svg:|",":svg:path^:svg:geometry|",":svg:pattern^:svg:|",":svg:polygon^:svg:geometry|",":svg:polyline^:svg:geometry|",":svg:radialGradient^:svg:gradient|",":svg:rect^:svg:geometry|",":svg:svg^:svg:graphics|#currentScale,#zoomAndPan",":svg:script^:svg:|type",":svg:set^:svg:animation|",":svg:stop^:svg:|",":svg:style^:svg:|!disabled,media,title,type",":svg:switch^:svg:graphics|",":svg:symbol^:svg:|",":svg:tspan^:svg:textPositioning|",":svg:text^:svg:textPositioning|",":svg:textPath^:svg:textContent|",":svg:title^:svg:|",":svg:use^:svg:graphics|",":svg:view^:svg:|#zoomAndPan","data^[HTMLElement]|value","keygen^[HTMLElement]|!autofocus,challenge,!disabled,form,keytype,name","menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default","summary^[HTMLElement]|","time^[HTMLElement]|dateTime",":svg:cursor^:svg:|",":math:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforeinput,*beforematch,*beforetoggle,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contentvisibilityautostatechange,*contextlost,*contextmenu,*contextrestored,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*scrollend,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":math:math^:math:|",":math:maction^:math:|",":math:menclose^:math:|",":math:merror^:math:|",":math:mfenced^:math:|",":math:mfrac^:math:|",":math:mi^:math:|",":math:mmultiscripts^:math:|",":math:mn^:math:|",":math:mo^:math:|",":math:mover^:math:|",":math:mpadded^:math:|",":math:mphantom^:math:|",":math:mroot^:math:|",":math:mrow^:math:|",":math:ms^:math:|",":math:mspace^:math:|",":math:msqrt^:math:|",":math:mstyle^:math:|",":math:msub^:math:|",":math:msubsup^:math:|",":math:msup^:math:|",":math:mtable^:math:|",":math:mtd^:math:|",":math:mtext^:math:|",":math:mtr^:math:|",":math:munder^:math:|",":math:munderover^:math:|",":math:semantics^:math:|"],bS=new Map(Object.entries({class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex","aria-activedescendant":"ariaActiveDescendantElement","aria-atomic":"ariaAtomic","aria-autocomplete":"ariaAutoComplete","aria-busy":"ariaBusy","aria-checked":"ariaChecked","aria-colcount":"ariaColCount","aria-colindex":"ariaColIndex","aria-colindextext":"ariaColIndexText","aria-colspan":"ariaColSpan","aria-controls":"ariaControlsElements","aria-current":"ariaCurrent","aria-describedby":"ariaDescribedByElements","aria-description":"ariaDescription","aria-details":"ariaDetailsElements","aria-disabled":"ariaDisabled","aria-errormessage":"ariaErrorMessageElements","aria-expanded":"ariaExpanded","aria-flowto":"ariaFlowToElements","aria-haspopup":"ariaHasPopup","aria-hidden":"ariaHidden","aria-invalid":"ariaInvalid","aria-keyshortcuts":"ariaKeyShortcuts","aria-label":"ariaLabel","aria-labelledby":"ariaLabelledByElements","aria-level":"ariaLevel","aria-live":"ariaLive","aria-modal":"ariaModal","aria-multiline":"ariaMultiLine","aria-multiselectable":"ariaMultiSelectable","aria-orientation":"ariaOrientation","aria-owns":"ariaOwnsElements","aria-placeholder":"ariaPlaceholder","aria-posinset":"ariaPosInSet","aria-pressed":"ariaPressed","aria-readonly":"ariaReadOnly","aria-required":"ariaRequired","aria-roledescription":"ariaRoleDescription","aria-rowcount":"ariaRowCount","aria-rowindex":"ariaRowIndex","aria-rowindextext":"ariaRowIndexText","aria-rowspan":"ariaRowSpan","aria-selected":"ariaSelected","aria-setsize":"ariaSetSize","aria-sort":"ariaSort","aria-valuemax":"ariaValueMax","aria-valuemin":"ariaValueMin","aria-valuenow":"ariaValueNow","aria-valuetext":"ariaValueText"})),pU=Array.from(bS).reduce((e,[t,r])=>(e.set(t,r),e),new Map),hU=class extends sU{constructor(){super(),this._schema=new Map,this._eventSchema=new Map,cU.forEach(e=>{let t=new Map,r=new Set,[n,i]=e.split("|"),s=i.split(","),[a,o]=n.split("^");a.split(",").forEach(l=>{this._schema.set(l.toLowerCase(),t),this._eventSchema.set(l.toLowerCase(),r)});let u=o&&this._schema.get(o.toLowerCase());if(u){for(let[l,c]of u)t.set(l,c);for(let l of this._eventSchema.get(o.toLowerCase()))r.add(l)}s.forEach(l=>{if(l.length>0)switch(l[0]){case"*":r.add(l.substring(1));break;case"!":t.set(l.substring(1),aU);break;case"#":t.set(l.substring(1),oU);break;case"%":t.set(l.substring(1),lU);break;default:t.set(l,uU)}})})}hasProperty(e,t,r){if(r.some(n=>n.name===kD.name))return!0;if(e.indexOf("-")>-1){if(bD(e)||wD(e))return!1;if(r.some(n=>n.name===PD.name))return!0}return(this._schema.get(e.toLowerCase())||this._schema.get("unknown")).has(t)}hasElement(e,t){return t.some(r=>r.name===kD.name)||e.indexOf("-")>-1&&(bD(e)||wD(e)||t.some(r=>r.name===PD.name))?!0:this._schema.has(e.toLowerCase())}securityContext(e,t,r){r&&(t=this.getMappedPropName(t)),e=e.toLowerCase(),t=t.toLowerCase();let n=ND()[e+"|"+t];return n||(n=ND()["*|"+t],n||Rs.NONE)}getMappedPropName(e){return bS.get(e)??e}getDefaultComponentElementName(){return"ng-component"}validateProperty(e){return e.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event property '${e}' is disallowed for security reasons, please use (${e.slice(2)})=... -If '${e}' is a directive input, make sure the directive is imported by the current module.`}:{error:!1}}validateAttribute(e){return e.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event attribute '${e}' is disallowed for security reasons, please use (${e.slice(2)})=...`}:{error:!1}}allKnownElementNames(){return Array.from(this._schema.keys())}allKnownAttributesOfElement(e){let t=this._schema.get(e.toLowerCase())||this._schema.get("unknown");return Array.from(t.keys()).map(r=>pU.get(r)??r)}allKnownEventsOfElement(e){return Array.from(this._eventSchema.get(e.toLowerCase())??[])}normalizeAnimationStyleProperty(e){return iU(e)}normalizeAnimationStyleValue(e,t,r){let n="",i=r.toString().trim(),s=null;if(dU(e)&&r!==0&&r!=="0")if(typeof r=="number")n="px";else{let a=r.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&(s=`Please provide a CSS unit value for ${t}:${r}`)}return{error:s,value:i+n}}};function dU(e){switch(e){case"width":case"height":case"minWidth":case"minHeight":case"maxWidth":case"maxHeight":case"left":case"top":case"bottom":case"right":case"fontSize":case"outlineWidth":case"outlineOffset":case"paddingTop":case"paddingLeft":case"paddingBottom":case"paddingRight":case"marginTop":case"marginLeft":case"marginBottom":case"marginRight":case"borderRadius":case"borderWidth":case"borderTopWidth":case"borderLeftWidth":case"borderRightWidth":case"borderBottomWidth":case"textIndent":return!0;default:return!1}}var he=class{constructor({closedByChildren:e,implicitNamespacePrefix:t,contentType:r=vn.PARSABLE_DATA,closedByParent:n=!1,isVoid:i=!1,ignoreFirstLf:s=!1,preventNamespaceInheritance:a=!1,canSelfClose:o=!1}={}){this.closedByChildren={},this.closedByParent=!1,e&&e.length>0&&e.forEach(u=>this.closedByChildren[u]=!0),this.isVoid=i,this.closedByParent=n||i,this.implicitNamespacePrefix=t||null,this.contentType=r,this.ignoreFirstLf=s,this.preventNamespaceInheritance=a,this.canSelfClose=o??i}isClosedByChild(e){return this.isVoid||e.toLowerCase()in this.closedByChildren}getContentType(e){return typeof this.contentType=="object"?(e===void 0?void 0:this.contentType[e])??this.contentType.default:this.contentType}},BD,go;function Tf(e){return go||(BD=new he({canSelfClose:!0}),go=Object.assign(Object.create(null),{base:new he({isVoid:!0}),meta:new he({isVoid:!0}),area:new he({isVoid:!0}),embed:new he({isVoid:!0}),link:new he({isVoid:!0}),img:new he({isVoid:!0}),input:new he({isVoid:!0}),param:new he({isVoid:!0}),hr:new he({isVoid:!0}),br:new he({isVoid:!0}),source:new he({isVoid:!0}),track:new he({isVoid:!0}),wbr:new he({isVoid:!0}),p:new he({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new he({closedByChildren:["tbody","tfoot"]}),tbody:new he({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new he({closedByChildren:["tbody"],closedByParent:!0}),tr:new he({closedByChildren:["tr"],closedByParent:!0}),td:new he({closedByChildren:["td","th"],closedByParent:!0}),th:new he({closedByChildren:["td","th"],closedByParent:!0}),col:new he({isVoid:!0}),svg:new he({implicitNamespacePrefix:"svg"}),foreignObject:new he({implicitNamespacePrefix:"svg",preventNamespaceInheritance:!0}),math:new he({implicitNamespacePrefix:"math"}),li:new he({closedByChildren:["li"],closedByParent:!0}),dt:new he({closedByChildren:["dt","dd"]}),dd:new he({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new he({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new he({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new he({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new he({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new he({closedByChildren:["optgroup"],closedByParent:!0}),option:new he({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new he({ignoreFirstLf:!0}),listing:new he({ignoreFirstLf:!0}),style:new he({contentType:vn.RAW_TEXT}),script:new he({contentType:vn.RAW_TEXT}),title:new he({contentType:{default:vn.ESCAPABLE_RAW_TEXT,svg:vn.PARSABLE_DATA}}),textarea:new he({contentType:vn.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),new hU().allKnownElementNames().forEach(t=>{!go[t]&&rc(t)===null&&(go[t]=new he({canSelfClose:!1}))})),go[e]??BD}function Mc(e){return e>=9&&e<=32||e==160}function Bp(e){return 48<=e&&e<=57}function Fu(e){return e>=97&&e<=122||e>=65&&e<=90}function fU(e){return e>=97&&e<=102||e>=65&&e<=70||Bp(e)}function jc(e){return e===10||e===13}function ID(e){return 48<=e&&e<=55}function Wh(e){return e===39||e===34||e===96}var Sf=class wS{constructor(t,r,n,i){this.file=t,this.offset=r,this.line=n,this.col=i}toString(){return this.offset!=null?`${this.file.url}@${this.line}:${this.col}`:this.file.url}moveBy(t){let r=this.file.content,n=r.length,i=this.offset,s=this.line,a=this.col;for(;i>0&&t<0;)if(i--,t++,r.charCodeAt(i)==10){s--;let o=r.substring(0,i-1).lastIndexOf(String.fromCharCode(10));a=o>0?i-o:i}else a--;for(;i0;){let o=r.charCodeAt(i);i++,t--,o==10?(s++,a=0):a++}return new wS(this.file,i,s,a)}getContext(t,r){let n=this.file.content,i=this.offset;if(i!=null){i>n.length-1&&(i=n.length-1);let s=i,a=0,o=0;for(;a0&&(i--,a++,!(n[i]==` +${e}`,vU=new Map([["if",new Set(["else if","else"])],["else if",new Set(["else if","else"])],["for",new Set(["empty"])],["defer",new Set(["placeholder","error","loading"])],["placeholder",new Set(["placeholder","error","loading"])],["error",new Set(["placeholder","error","loading"])],["loading",new Set(["placeholder","error","loading"])]]);function zT(e){let t=Op(e);return e.kind==="element"&&!e.endSourceSpan&&Dy(e.children)?Math.max(t,zT(Xa(0,e.children,-1))):t}function xo(e,t,r){let n=e.node;if(Lp(n)){let i=zT(n);return[xs(n,t),ln(wr.trimEnd(t.originalText.slice(rl(n)+(n.prev&&Mp(n.prev)?Ay(n).length:0),i-(n.next&&Ds(n.next)?nl(n,t).length:0)))),gs(n,t)]}return r()}function Ol(e,t){return Er(e)&&Er(t)?e.isTrailingSpaceSensitive?e.hasTrailingSpaces?Yh(t)?Ge:rt:"":Yh(t)?Ge:kt:Mp(e)&&(Lp(t)||t.firstChild||t.isSelfClosing||t.kind==="element"&&t.attrs.length>0)||e.kind==="element"&&e.isSelfClosing&&Ds(t)?"":!t.isLeadingSpaceSensitive||Yh(t)||Ds(t)&&e.lastChild&&Pu(e.lastChild)&&e.lastChild.lastChild&&Pu(e.lastChild.lastChild)?Ge:t.hasLeadingSpaces?rt:kt}function Ty(e,t,r){let{node:n}=e;if(FT(n))return[Yu,...e.map(()=>{let s=e.node,a=s.prev?Ol(s.prev,s):"";return[a?[a,$l(s.prev)?Ge:""]:"",xo(e,t,r)]},"children")];let i=n.children.map(()=>Symbol(""));return e.map(({node:s,index:a})=>{if(Er(s)){if(s.prev&&Er(s.prev)){let d=Ol(s.prev,s);if(d)return $l(s.prev)?[Ge,Ge,xo(e,t,r)]:[d,xo(e,t,r)]}return xo(e,t,r)}let o=[],u=[],l=[],c=[],p=s.prev?Ol(s.prev,s):"",h=s.next?Ol(s,s.next):"";return p&&($l(s.prev)?o.push(Ge,Ge):p===Ge?o.push(Ge):Er(s.prev)?u.push(p):u.push(ku("",kt,{groupId:i[a-1]}))),h&&($l(s)?Er(s.next)&&c.push(Ge,Ge):h===Ge?Er(s.next)&&c.push(Ge):l.push(h)),[...o,ot([...u,ot([xo(e,t,r),...l],{id:i[a]})]),...c]},"children")}function AU(e,t,r){let{node:n}=e,i=[];if(SU(e)&&i.push("} "),i.push("@",n.name),n.parameters&&i.push(" (",ot(r("parameters")),")"),!TU(n)){i.push(" {");let s=qT(n);n.children.length>0?(n.firstChild.hasLeadingSpaces=!0,n.lastChild.hasTrailingSpaces=!0,i.push(gn([Ge,Ty(e,t,r)])),s&&i.push(Ge,"}")):s&&i.push("}")}return ot(i,{shouldBreak:!0})}function qT(e){var t,r;return!(((t=e.next)==null?void 0:t.kind)==="angularControlFlowBlock"&&((r=vU.get(e.name))!=null&&r.has(e.next.name)))}var bU=e=>(e==null?void 0:e.kind)==="angularControlFlowBlock"&&(e.name==="case"||e.name==="default");function TU(e){return bU(e)&&e.endSourceSpan&&e.endSourceSpan.start.offset===e.endSourceSpan.end.offset}function SU(e){let{previous:t}=e;return(t==null?void 0:t.kind)==="angularControlFlowBlock"&&!Lp(t)&&!qT(t)}function FU(e,t,r){return[gn([kt,Ga([";",rt],e.map(r,"children"))]),kt]}function wU(e,t,r){let{node:n}=e;return[tu(n,t),ot([n.switchValue.trim(),", ",n.type,n.cases.length>0?[",",gn([rt,Ga(rt,e.map(r,"cases"))])]:"",kt]),eu(n,t)]}function kU(e,t,r){let{node:n}=e;return[n.value," {",ot([gn([kt,e.map(({node:i,isLast:s})=>{let a=[r()];return i.kind==="text"&&(i.hasLeadingSpaces&&a.unshift(rt),i.hasTrailingSpaces&&!s&&a.push(rt)),a},"expression")]),kt]),"}"]}function PU(e,t,r){let{node:n}=e;if(TT(n,t))return[xs(n,t),ot(If(e,t,r)),ln(VT(n,t)),...Bf(n,t),gs(n,t)];let i=n.children.length===1&&(n.firstChild.kind==="interpolation"||n.firstChild.kind==="angularIcuExpression")&&n.firstChild.isLeadingSpaceSensitive&&!n.firstChild.hasLeadingSpaces&&n.lastChild.isTrailingSpaceSensitive&&!n.lastChild.hasTrailingSpaces,s=Symbol("element-attr-group-id"),a=c=>ot([ot(If(e,t,r),{id:s}),c,Bf(n,t)]),o=c=>i?nj(c,{groupId:s}):(jn(n,t)||$p(n,t))&&n.parent.kind==="root"&&t.parser==="vue"&&!t.vueIndentScriptAndStyle?c:gn(c),u=()=>i?ku(kt,"",{groupId:s}):n.firstChild.hasLeadingSpaces&&n.firstChild.isLeadingSpaceSensitive?rt:n.firstChild.kind==="text"&&n.isWhitespaceSensitive&&n.isIndentationSensitive?rj(kt):kt,l=()=>(n.next?Ds(n.next):il(n.parent))?n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?" ":"":i?ku(kt,"",{groupId:s}):n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?rt:(n.lastChild.kind==="comment"||n.lastChild.kind==="text"&&n.isWhitespaceSensitive&&n.isIndentationSensitive)&&new RegExp(`\\n[\\t ]{${t.tabWidth*(e.ancestors.length-1)}}$`,"u").test(n.lastChild.value)?"":kt;return n.children.length===0?a(n.hasDanglingSpaces&&n.isDanglingSpaceSensitive?rt:""):a([Qj(n)?Yu:"",o([u(),Ty(e,t,r)]),l()])}var An=function(e){return e[e.RAW_TEXT=0]="RAW_TEXT",e[e.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",e[e.PARSABLE_DATA=2]="PARSABLE_DATA",e}({});function Rp(e,t=!0){if(e[0]!=":")return[null,e];let r=e.indexOf(":",1);if(r===-1){if(t)throw new Error(`Unsupported format "${e}" expecting ":namespace:name"`);return[null,e]}return[e.slice(1,r),e.slice(r+1)]}function V2(e){return Rp(e)[1]==="ng-container"}function z2(e){return Rp(e)[1]==="ng-content"}function cc(e){return e===null?null:Rp(e)[0]}function nu(e,t){return e?`:${e}:${t}`:t}var q2={name:"custom-elements"},H2={name:"no-errors-schema"},zs=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e[e.ATTRIBUTE_NO_BINDING=6]="ATTRIBUTE_NO_BINDING",e}({}),NU=/-+([a-z0-9])/g;function BU(e){return e.replace(NU,(...t)=>t[1].toUpperCase())}var pc;function W2(){return pc||(pc={},Eo(zs.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),Eo(zs.STYLE,["*|style"]),Eo(zs.URL,["*|formAction","area|href","a|href","a|xlink:href","form|action","annotation|href","annotation|xlink:href","annotation-xml|href","annotation-xml|xlink:href","maction|href","maction|xlink:href","malignmark|href","malignmark|xlink:href","math|href","math|xlink:href","mroot|href","mroot|xlink:href","msqrt|href","msqrt|xlink:href","merror|href","merror|xlink:href","mfrac|href","mfrac|xlink:href","mglyph|href","mglyph|xlink:href","msub|href","msub|xlink:href","msup|href","msup|xlink:href","msubsup|href","msubsup|xlink:href","mmultiscripts|href","mmultiscripts|xlink:href","mprescripts|href","mprescripts|xlink:href","mi|href","mi|xlink:href","mn|href","mn|xlink:href","mo|href","mo|xlink:href","mpadded|href","mpadded|xlink:href","mphantom|href","mphantom|xlink:href","mrow|href","mrow|xlink:href","ms|href","ms|xlink:href","mspace|href","mspace|xlink:href","mstyle|href","mstyle|xlink:href","mtable|href","mtable|xlink:href","mtd|href","mtd|xlink:href","mtr|href","mtr|xlink:href","mtext|href","mtext|xlink:href","mover|href","mover|xlink:href","munder|href","munder|xlink:href","munderover|href","munderover|xlink:href","semantics|href","semantics|xlink:href","none|href","none|xlink:href","img|src","video|src"]),Eo(zs.RESOURCE_URL,["base|href","embed|src","frame|src","iframe|src","link|href","object|codebase","object|data","script|src","script|href","script|xlink:href"]),Eo(zs.ATTRIBUTE_NO_BINDING,["animate|attributeName","set|attributeName","animateMotion|attributeName","animateTransform|attributeName","unknown|attributeName","iframe|sandbox","iframe|allow","iframe|allowFullscreen","iframe|referrerPolicy","iframe|csp","iframe|fetchPriority","unknown|sandbox","unknown|allow","unknown|allowFullscreen","unknown|referrerPolicy","unknown|csp","unknown|fetchPriority"])),pc}function Eo(e,t){for(let r of t)pc[r.toLowerCase()]=e}var IU=class{},_U="boolean",LU="number",$U="string",OU="object",MU=["[Element]|textContent,%ariaActiveDescendantElement,%ariaAtomic,%ariaAutoComplete,%ariaBusy,%ariaChecked,%ariaColCount,%ariaColIndex,%ariaColIndexText,%ariaColSpan,%ariaControlsElements,%ariaCurrent,%ariaDescribedByElements,%ariaDescription,%ariaDetailsElements,%ariaDisabled,%ariaErrorMessageElements,%ariaExpanded,%ariaFlowToElements,%ariaHasPopup,%ariaHidden,%ariaInvalid,%ariaKeyShortcuts,%ariaLabel,%ariaLabelledByElements,%ariaLevel,%ariaLive,%ariaModal,%ariaMultiLine,%ariaMultiSelectable,%ariaOrientation,%ariaOwnsElements,%ariaPlaceholder,%ariaPosInSet,%ariaPressed,%ariaReadOnly,%ariaRelevant,%ariaRequired,%ariaRoleDescription,%ariaRowCount,%ariaRowIndex,%ariaRowIndexText,%ariaRowSpan,%ariaSelected,%ariaSetSize,%ariaSort,%ariaValueMax,%ariaValueMin,%ariaValueNow,%ariaValueText,%classList,className,elementTiming,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*fullscreenchange,*fullscreenerror,*search,*webkitfullscreenchange,*webkitfullscreenerror,outerHTML,%part,#scrollLeft,#scrollTop,slot,*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored","[HTMLElement]^[Element]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,!inert,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","abbr,address,article,aside,b,bdi,bdo,cite,content,code,dd,dfn,dt,em,figcaption,figure,footer,header,hgroup,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,search,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","media^[HTMLElement]|!autoplay,!controls,%controlsList,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,*waitingforkey,#playbackRate,preload,!preservesPitch,src,%srcObject,#volume",":svg:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":svg:graphics^:svg:|",":svg:animation^:svg:|*begin,*end,*repeat",":svg:geometry^:svg:|",":svg:componentTransferFunction^:svg:|",":svg:gradient^:svg:|",":svg:textContent^:svg:graphics|",":svg:textPositioning^:svg:textContent|","a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,rev,search,shape,target,text,type,username","area^[HTMLElement]|alt,coords,download,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,search,shape,target,username","audio^media|","br^[HTMLElement]|clear","base^[HTMLElement]|href,target","body^[HTMLElement]|aLink,background,bgColor,link,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink","button^[HTMLElement]|!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value","canvas^[HTMLElement]|#height,#width","content^[HTMLElement]|select","dl^[HTMLElement]|!compact","data^[HTMLElement]|value","datalist^[HTMLElement]|","details^[HTMLElement]|!open","dialog^[HTMLElement]|!open,returnValue","dir^[HTMLElement]|!compact","div^[HTMLElement]|align","embed^[HTMLElement]|align,height,name,src,type,width","fieldset^[HTMLElement]|!disabled,name","font^[HTMLElement]|color,face,size","form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target","frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src","frameset^[HTMLElement]|cols,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows","hr^[HTMLElement]|align,color,!noShade,size,width","head^[HTMLElement]|","h1,h2,h3,h4,h5,h6^[HTMLElement]|align","html^[HTMLElement]|version","iframe^[HTMLElement]|align,allow,!allowFullscreen,!allowPaymentRequest,csp,frameBorder,height,loading,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width","img^[HTMLElement]|align,alt,border,%crossOrigin,decoding,#height,#hspace,!isMap,loading,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width","input^[HTMLElement]|accept,align,alt,autocomplete,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,imageSizes,imageSrcset,integrity,media,referrerPolicy,rel,%relList,rev,%sizes,target,type","map^[HTMLElement]|name","marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width","menu^[HTMLElement]|!compact","meta^[HTMLElement]|content,httpEquiv,media,name,scheme","meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value","ins,del^[HTMLElement]|cite,dateTime","ol^[HTMLElement]|!compact,!reversed,#start,type","object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width","optgroup^[HTMLElement]|!disabled,label","option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value","output^[HTMLElement]|defaultValue,%htmlFor,name,value","p^[HTMLElement]|align","param^[HTMLElement]|name,type,value,valueType","picture^[HTMLElement]|","pre^[HTMLElement]|#width","progress^[HTMLElement]|#max,#value","q,blockquote,cite^[HTMLElement]|","script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,!noModule,%referrerPolicy,src,text,type","select^[HTMLElement]|autocomplete,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value","selectedcontent^[HTMLElement]|","slot^[HTMLElement]|name","source^[HTMLElement]|#height,media,sizes,src,srcset,type,#width","span^[HTMLElement]|","style^[HTMLElement]|!disabled,media,type","search^[HTMLELement]|","caption^[HTMLElement]|align","th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width","col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width","table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width","tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign","tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign","template^[HTMLElement]|","textarea^[HTMLElement]|autocomplete,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap","time^[HTMLElement]|dateTime","title^[HTMLElement]|text","track^[HTMLElement]|!default,kind,label,src,srclang","ul^[HTMLElement]|!compact,type","unknown^[HTMLElement]|","video^media|!disablePictureInPicture,#height,*enterpictureinpicture,*leavepictureinpicture,!playsInline,poster,#width",":svg:a^:svg:graphics|",":svg:animate^:svg:animation|",":svg:animateMotion^:svg:animation|",":svg:animateTransform^:svg:animation|",":svg:circle^:svg:geometry|",":svg:clipPath^:svg:graphics|",":svg:defs^:svg:graphics|",":svg:desc^:svg:|",":svg:discard^:svg:|",":svg:ellipse^:svg:geometry|",":svg:feBlend^:svg:|",":svg:feColorMatrix^:svg:|",":svg:feComponentTransfer^:svg:|",":svg:feComposite^:svg:|",":svg:feConvolveMatrix^:svg:|",":svg:feDiffuseLighting^:svg:|",":svg:feDisplacementMap^:svg:|",":svg:feDistantLight^:svg:|",":svg:feDropShadow^:svg:|",":svg:feFlood^:svg:|",":svg:feFuncA^:svg:componentTransferFunction|",":svg:feFuncB^:svg:componentTransferFunction|",":svg:feFuncG^:svg:componentTransferFunction|",":svg:feFuncR^:svg:componentTransferFunction|",":svg:feGaussianBlur^:svg:|",":svg:feImage^:svg:|",":svg:feMerge^:svg:|",":svg:feMergeNode^:svg:|",":svg:feMorphology^:svg:|",":svg:feOffset^:svg:|",":svg:fePointLight^:svg:|",":svg:feSpecularLighting^:svg:|",":svg:feSpotLight^:svg:|",":svg:feTile^:svg:|",":svg:feTurbulence^:svg:|",":svg:filter^:svg:|",":svg:foreignObject^:svg:graphics|",":svg:g^:svg:graphics|",":svg:image^:svg:graphics|decoding",":svg:line^:svg:geometry|",":svg:linearGradient^:svg:gradient|",":svg:mpath^:svg:|",":svg:marker^:svg:|",":svg:mask^:svg:|",":svg:metadata^:svg:|",":svg:path^:svg:geometry|",":svg:pattern^:svg:|",":svg:polygon^:svg:geometry|",":svg:polyline^:svg:geometry|",":svg:radialGradient^:svg:gradient|",":svg:rect^:svg:geometry|",":svg:svg^:svg:graphics|#currentScale,#zoomAndPan",":svg:script^:svg:|type",":svg:set^:svg:animation|",":svg:stop^:svg:|",":svg:style^:svg:|!disabled,media,title,type",":svg:switch^:svg:graphics|",":svg:symbol^:svg:|",":svg:tspan^:svg:textPositioning|",":svg:text^:svg:textPositioning|",":svg:textPath^:svg:textContent|",":svg:title^:svg:|",":svg:use^:svg:graphics|",":svg:view^:svg:|#zoomAndPan","data^[HTMLElement]|value","keygen^[HTMLElement]|!autofocus,challenge,!disabled,form,keytype,name","menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default","summary^[HTMLElement]|","time^[HTMLElement]|dateTime",":svg:cursor^:svg:|",":math:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforeinput,*beforematch,*beforetoggle,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contentvisibilityautostatechange,*contextlost,*contextmenu,*contextrestored,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*scrollend,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":math:math^:math:|",":math:maction^:math:|",":math:menclose^:math:|",":math:merror^:math:|",":math:mfenced^:math:|",":math:mfrac^:math:|",":math:mi^:math:|",":math:mmultiscripts^:math:|",":math:mn^:math:|",":math:mo^:math:|",":math:mover^:math:|",":math:mpadded^:math:|",":math:mphantom^:math:|",":math:mroot^:math:|",":math:mrow^:math:|",":math:ms^:math:|",":math:mspace^:math:|",":math:msqrt^:math:|",":math:mstyle^:math:|",":math:msub^:math:|",":math:msubsup^:math:|",":math:msup^:math:|",":math:mtable^:math:|",":math:mtd^:math:|",":math:mtext^:math:|",":math:mtr^:math:|",":math:munder^:math:|",":math:munderover^:math:|",":math:semantics^:math:|"],HT=new Map(Object.entries({class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex","aria-activedescendant":"ariaActiveDescendantElement","aria-atomic":"ariaAtomic","aria-autocomplete":"ariaAutoComplete","aria-busy":"ariaBusy","aria-checked":"ariaChecked","aria-colcount":"ariaColCount","aria-colindex":"ariaColIndex","aria-colindextext":"ariaColIndexText","aria-colspan":"ariaColSpan","aria-controls":"ariaControlsElements","aria-current":"ariaCurrent","aria-describedby":"ariaDescribedByElements","aria-description":"ariaDescription","aria-details":"ariaDetailsElements","aria-disabled":"ariaDisabled","aria-errormessage":"ariaErrorMessageElements","aria-expanded":"ariaExpanded","aria-flowto":"ariaFlowToElements","aria-haspopup":"ariaHasPopup","aria-hidden":"ariaHidden","aria-invalid":"ariaInvalid","aria-keyshortcuts":"ariaKeyShortcuts","aria-label":"ariaLabel","aria-labelledby":"ariaLabelledByElements","aria-level":"ariaLevel","aria-live":"ariaLive","aria-modal":"ariaModal","aria-multiline":"ariaMultiLine","aria-multiselectable":"ariaMultiSelectable","aria-orientation":"ariaOrientation","aria-owns":"ariaOwnsElements","aria-placeholder":"ariaPlaceholder","aria-posinset":"ariaPosInSet","aria-pressed":"ariaPressed","aria-readonly":"ariaReadOnly","aria-required":"ariaRequired","aria-roledescription":"ariaRoleDescription","aria-rowcount":"ariaRowCount","aria-rowindex":"ariaRowIndex","aria-rowindextext":"ariaRowIndexText","aria-rowspan":"ariaRowSpan","aria-selected":"ariaSelected","aria-setsize":"ariaSetSize","aria-sort":"ariaSort","aria-valuemax":"ariaValueMax","aria-valuemin":"ariaValueMin","aria-valuenow":"ariaValueNow","aria-valuetext":"ariaValueText"})),jU=Array.from(HT).reduce((e,[t,r])=>(e.set(t,r),e),new Map),RU=class extends IU{constructor(){super(),this._schema=new Map,this._eventSchema=new Map,MU.forEach(e=>{let t=new Map,r=new Set,[n,i]=e.split("|"),s=i.split(","),[a,o]=n.split("^");a.split(",").forEach(l=>{this._schema.set(l.toLowerCase(),t),this._eventSchema.set(l.toLowerCase(),r)});let u=o&&this._schema.get(o.toLowerCase());if(u){for(let[l,c]of u)t.set(l,c);for(let l of this._eventSchema.get(o.toLowerCase()))r.add(l)}s.forEach(l=>{if(l.length>0)switch(l[0]){case"*":r.add(l.substring(1));break;case"!":t.set(l.substring(1),_U);break;case"#":t.set(l.substring(1),LU);break;case"%":t.set(l.substring(1),OU);break;default:t.set(l,$U)}})})}hasProperty(e,t,r){if(r.some(n=>n.name===H2.name))return!0;if(e.indexOf("-")>-1){if(V2(e)||z2(e))return!1;if(r.some(n=>n.name===q2.name))return!0}return(this._schema.get(e.toLowerCase())||this._schema.get("unknown")).has(t)}hasElement(e,t){return t.some(r=>r.name===H2.name)||e.indexOf("-")>-1&&(V2(e)||z2(e)||t.some(r=>r.name===q2.name))?!0:this._schema.has(e.toLowerCase())}securityContext(e,t,r){r&&(t=this.getMappedPropName(t)),e=e.toLowerCase(),t=t.toLowerCase();let n=W2()[e+"|"+t];return n||(n=W2()["*|"+t],n||zs.NONE)}getMappedPropName(e){return HT.get(e)??e}getDefaultComponentElementName(){return"ng-component"}validateProperty(e){return e.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event property '${e}' is disallowed for security reasons, please use (${e.slice(2)})=... +If '${e}' is a directive input, make sure the directive is imported by the current module.`}:{error:!1}}validateAttribute(e){return e.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event attribute '${e}' is disallowed for security reasons, please use (${e.slice(2)})=...`}:{error:!1}}allKnownElementNames(){return Array.from(this._schema.keys())}allKnownAttributesOfElement(e){let t=this._schema.get(e.toLowerCase())||this._schema.get("unknown");return Array.from(t.keys()).map(r=>jU.get(r)??r)}allKnownEventsOfElement(e){return Array.from(this._eventSchema.get(e.toLowerCase())??[])}normalizeAnimationStyleProperty(e){return BU(e)}normalizeAnimationStyleValue(e,t,r){let n="",i=r.toString().trim(),s=null;if(UU(e)&&r!==0&&r!=="0")if(typeof r=="number")n="px";else{let a=r.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&(s=`Please provide a CSS unit value for ${t}:${r}`)}return{error:s,value:i+n}}};function UU(e){switch(e){case"width":case"height":case"minWidth":case"minHeight":case"maxWidth":case"maxHeight":case"left":case"top":case"bottom":case"right":case"fontSize":case"outlineWidth":case"outlineOffset":case"paddingTop":case"paddingLeft":case"paddingBottom":case"paddingRight":case"marginTop":case"marginLeft":case"marginBottom":case"marginRight":case"borderRadius":case"borderWidth":case"borderTopWidth":case"borderLeftWidth":case"borderRightWidth":case"borderBottomWidth":case"textIndent":return!0;default:return!1}}var he=class{constructor({closedByChildren:e,implicitNamespacePrefix:t,contentType:r=An.PARSABLE_DATA,closedByParent:n=!1,isVoid:i=!1,ignoreFirstLf:s=!1,preventNamespaceInheritance:a=!1,canSelfClose:o=!1}={}){this.closedByChildren={},this.closedByParent=!1,e&&e.length>0&&e.forEach(u=>this.closedByChildren[u]=!0),this.isVoid=i,this.closedByParent=n||i,this.implicitNamespacePrefix=t||null,this.contentType=r,this.ignoreFirstLf=s,this.preventNamespaceInheritance=a,this.canSelfClose=o??i}isClosedByChild(e){return this.isVoid||e.toLowerCase()in this.closedByChildren}getContentType(e){return typeof this.contentType=="object"?(e===void 0?void 0:this.contentType[e])??this.contentType.default:this.contentType}},J2,Co;function _f(e){return Co||(J2=new he({canSelfClose:!0}),Co=Object.assign(Object.create(null),{base:new he({isVoid:!0}),meta:new he({isVoid:!0}),area:new he({isVoid:!0}),embed:new he({isVoid:!0}),link:new he({isVoid:!0}),img:new he({isVoid:!0}),input:new he({isVoid:!0}),param:new he({isVoid:!0}),hr:new he({isVoid:!0}),br:new he({isVoid:!0}),source:new he({isVoid:!0}),track:new he({isVoid:!0}),wbr:new he({isVoid:!0}),p:new he({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new he({closedByChildren:["tbody","tfoot"]}),tbody:new he({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new he({closedByChildren:["tbody"],closedByParent:!0}),tr:new he({closedByChildren:["tr"],closedByParent:!0}),td:new he({closedByChildren:["td","th"],closedByParent:!0}),th:new he({closedByChildren:["td","th"],closedByParent:!0}),col:new he({isVoid:!0}),svg:new he({implicitNamespacePrefix:"svg"}),foreignObject:new he({implicitNamespacePrefix:"svg",preventNamespaceInheritance:!0}),math:new he({implicitNamespacePrefix:"math"}),li:new he({closedByChildren:["li"],closedByParent:!0}),dt:new he({closedByChildren:["dt","dd"]}),dd:new he({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new he({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new he({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new he({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new he({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new he({closedByChildren:["optgroup"],closedByParent:!0}),option:new he({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new he({ignoreFirstLf:!0}),listing:new he({ignoreFirstLf:!0}),style:new he({contentType:An.RAW_TEXT}),script:new he({contentType:An.RAW_TEXT}),title:new he({contentType:{default:An.ESCAPABLE_RAW_TEXT,svg:An.PARSABLE_DATA}}),textarea:new he({contentType:An.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),new RU().allKnownElementNames().forEach(t=>{!Co[t]&&cc(t)===null&&(Co[t]=new he({canSelfClose:!1}))})),Co[e]??J2}function Wc(e){return e>=9&&e<=32||e==160}function Up(e){return 48<=e&&e<=57}function Nu(e){return e>=97&&e<=122||e>=65&&e<=90}function VU(e){return e>=97&&e<=102||e>=65&&e<=70||Up(e)}function Jc(e){return e===10||e===13}function X2(e){return 48<=e&&e<=55}function td(e){return e===39||e===34||e===96}var Lf=class WT{constructor(t,r,n,i){this.file=t,this.offset=r,this.line=n,this.col=i}toString(){return this.offset!=null?`${this.file.url}@${this.line}:${this.col}`:this.file.url}moveBy(t){let r=this.file.content,n=r.length,i=this.offset,s=this.line,a=this.col;for(;i>0&&t<0;)if(i--,t++,r.charCodeAt(i)==10){s--;let o=r.substring(0,i-1).lastIndexOf(String.fromCharCode(10));a=o>0?i-o:i}else a--;for(;i0;){let o=r.charCodeAt(i);i++,t--,o==10?(s++,a=0):a++}return new WT(this.file,i,s,a)}getContext(t,r){let n=this.file.content,i=this.offset;if(i!=null){i>n.length-1&&(i=n.length-1);let s=i,a=0,o=0;for(;a0&&(i--,a++,!(n[i]==` `&&++o==r)););for(a=0,o=0;a]${e.after}")`:this.msg}toString(){let e=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${e}`}},ks=class{constructor(e,t){this.sourceSpan=e,this.i18n=t}},mU=class extends ks{constructor(e,t,r,n){super(t,n),this.value=e,this.tokens=r,this.kind="text"}visit(e,t){return e.visitText(this,t)}},yU=class extends ks{constructor(e,t,r,n){super(t,n),this.value=e,this.tokens=r,this.kind="cdata"}visit(e,t){return e.visitCdata(this,t)}},gU=class extends ks{constructor(e,t,r,n,i,s){super(n,s),this.switchValue=e,this.type=t,this.cases=r,this.switchValueSourceSpan=i,this.kind="expansion"}visit(e,t){return e.visitExpansion(this,t)}},DU=class{constructor(e,t,r,n,i){this.value=e,this.expression=t,this.sourceSpan=r,this.valueSourceSpan=n,this.expSourceSpan=i,this.kind="expansionCase"}visit(e,t){return e.visitExpansionCase(this,t)}},EU=class extends ks{constructor(e,t,r,n,i,s,a){super(r,a),this.name=e,this.value=t,this.keySpan=n,this.valueSpan=i,this.valueTokens=s,this.kind="attribute"}visit(e,t){return e.visitAttribute(this,t)}get nameSpan(){return this.keySpan}},zi=class extends ks{constructor(e,t,r,n,i,s,a,o=null,u=null,l,c){super(s,c),this.name=e,this.attrs=t,this.directives=r,this.children=n,this.isSelfClosing=i,this.startSourceSpan=a,this.endSourceSpan=o,this.nameSpan=u,this.isVoid=l,this.kind="element"}visit(e,t){return e.visitElement(this,t)}},xU=class{constructor(e,t){this.value=e,this.sourceSpan=t,this.kind="comment"}visit(e,t){return e.visitComment(this,t)}},CU=class{constructor(e,t){this.value=e,this.sourceSpan=t,this.kind="docType"}visit(e,t){return e.visitDocType(this,t)}},Os=class extends ks{constructor(e,t,r,n,i,s,a=null,o){super(n,o),this.name=e,this.parameters=t,this.children=r,this.nameSpan=i,this.startSourceSpan=s,this.endSourceSpan=a,this.kind="block"}visit(e,t){return e.visitBlock(this,t)}},ti=class extends ks{constructor(e,t,r,n,i,s,a,o,u,l=null,c){super(o,c),this.componentName=e,this.tagName=t,this.fullName=r,this.attrs=n,this.directives=i,this.children=s,this.isSelfClosing=a,this.startSourceSpan=u,this.endSourceSpan=l,this.kind="component"}visit(e,t){return e.visitComponent(this,t)}},vU=class{constructor(e,t,r,n,i=null){this.name=e,this.attrs=t,this.sourceSpan=r,this.startSourceSpan=n,this.endSourceSpan=i,this.kind="directive"}visit(e,t){return e.visitDirective(this,t)}},LD=class{constructor(e,t){this.expression=e,this.sourceSpan=t,this.kind="blockParameter",this.startSourceSpan=null,this.endSourceSpan=null}visit(e,t){return e.visitBlockParameter(this,t)}},$D=class{constructor(e,t,r,n,i){this.name=e,this.value=t,this.sourceSpan=r,this.nameSpan=n,this.valueSpan=i,this.kind="letDeclaration",this.startSourceSpan=null,this.endSourceSpan=null}visit(e,t){return e.visitLetDeclaration(this,t)}};function kS(e,t,r=null){let n=[],i=e.visit?s=>e.visit(s,r)||s.visit(e,r):s=>s.visit(e,r);return t.forEach(s=>{let a=i(s);a&&n.push(a)}),n}var AU=class{constructor(){}visitElement(e,t){this.visitChildren(t,r=>{r(e.attrs),r(e.directives),r(e.children)})}visitAttribute(e,t){}visitText(e,t){}visitCdata(e,t){}visitComment(e,t){}visitDocType(e,t){}visitExpansion(e,t){return this.visitChildren(t,r=>{r(e.cases)})}visitExpansionCase(e,t){}visitBlock(e,t){this.visitChildren(t,r=>{r(e.parameters),r(e.children)})}visitBlockParameter(e,t){}visitLetDeclaration(e,t){}visitComponent(e,t){this.visitChildren(t,r=>{r(e.attrs),r(e.children)})}visitDirective(e,t){this.visitChildren(t,r=>{r(e.attrs)})}visitChildren(e,t){let r=[],n=this;function i(s){s&&r.push(kS(n,s,e))}return t(i),Array.prototype.concat.apply([],r)}},bu={AElig:"Æ",AMP:"&",amp:"&",Aacute:"Á",Abreve:"Ă",Acirc:"Â",Acy:"А",Afr:"𝔄",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"𝔸",ApplyFunction:"⁡",af:"⁡",Aring:"Å",angst:"Å",Ascr:"𝒜",Assign:"≔",colone:"≔",coloneq:"≔",Atilde:"Ã",Auml:"Ä",Backslash:"∖",setminus:"∖",setmn:"∖",smallsetminus:"∖",ssetmn:"∖",Barv:"⫧",Barwed:"⌆",doublebarwedge:"⌆",Bcy:"Б",Because:"∵",becaus:"∵",because:"∵",Bernoullis:"ℬ",Bscr:"ℬ",bernou:"ℬ",Beta:"Β",Bfr:"𝔅",Bopf:"𝔹",Breve:"˘",breve:"˘",Bumpeq:"≎",HumpDownHump:"≎",bump:"≎",CHcy:"Ч",COPY:"©",copy:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",DD:"ⅅ",Cayleys:"ℭ",Cfr:"ℭ",Ccaron:"Č",Ccedil:"Ç",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"¸",cedil:"¸",CenterDot:"·",centerdot:"·",middot:"·",Chi:"Χ",CircleDot:"⊙",odot:"⊙",CircleMinus:"⊖",ominus:"⊖",CirclePlus:"⊕",oplus:"⊕",CircleTimes:"⊗",otimes:"⊗",ClockwiseContourIntegral:"∲",cwconint:"∲",CloseCurlyDoubleQuote:"”",rdquo:"”",rdquor:"”",CloseCurlyQuote:"’",rsquo:"’",rsquor:"’",Colon:"∷",Proportion:"∷",Colone:"⩴",Congruent:"≡",equiv:"≡",Conint:"∯",DoubleContourIntegral:"∯",ContourIntegral:"∮",conint:"∮",oint:"∮",Copf:"ℂ",complexes:"ℂ",Coproduct:"∐",coprod:"∐",CounterClockwiseContourIntegral:"∳",awconint:"∳",Cross:"⨯",Cscr:"𝒞",Cup:"⋓",CupCap:"≍",asympeq:"≍",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",ddagger:"‡",Darr:"↡",Dashv:"⫤",DoubleLeftTee:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",nabla:"∇",Delta:"Δ",Dfr:"𝔇",DiacriticalAcute:"´",acute:"´",DiacriticalDot:"˙",dot:"˙",DiacriticalDoubleAcute:"˝",dblac:"˝",DiacriticalGrave:"`",grave:"`",DiacriticalTilde:"˜",tilde:"˜",Diamond:"⋄",diam:"⋄",diamond:"⋄",DifferentialD:"ⅆ",dd:"ⅆ",Dopf:"𝔻",Dot:"¨",DoubleDot:"¨",die:"¨",uml:"¨",DotDot:"⃜",DotEqual:"≐",doteq:"≐",esdot:"≐",DoubleDownArrow:"⇓",Downarrow:"⇓",dArr:"⇓",DoubleLeftArrow:"⇐",Leftarrow:"⇐",lArr:"⇐",DoubleLeftRightArrow:"⇔",Leftrightarrow:"⇔",hArr:"⇔",iff:"⇔",DoubleLongLeftArrow:"⟸",Longleftarrow:"⟸",xlArr:"⟸",DoubleLongLeftRightArrow:"⟺",Longleftrightarrow:"⟺",xhArr:"⟺",DoubleLongRightArrow:"⟹",Longrightarrow:"⟹",xrArr:"⟹",DoubleRightArrow:"⇒",Implies:"⇒",Rightarrow:"⇒",rArr:"⇒",DoubleRightTee:"⊨",vDash:"⊨",DoubleUpArrow:"⇑",Uparrow:"⇑",uArr:"⇑",DoubleUpDownArrow:"⇕",Updownarrow:"⇕",vArr:"⇕",DoubleVerticalBar:"∥",par:"∥",parallel:"∥",shortparallel:"∥",spar:"∥",DownArrow:"↓",ShortDownArrow:"↓",darr:"↓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",duarr:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",leftharpoondown:"↽",lhard:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",rhard:"⇁",rightharpoondown:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",top:"⊤",DownTeeArrow:"↧",mapstodown:"↧",Dscr:"𝒟",Dstrok:"Đ",ENG:"Ŋ",ETH:"Ð",Eacute:"É",Ecaron:"Ě",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"𝔈",Egrave:"È",Element:"∈",in:"∈",isin:"∈",isinv:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"𝔼",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",eqsim:"≂",esim:"≂",Equilibrium:"⇌",rightleftharpoons:"⇌",rlhar:"⇌",Escr:"ℰ",expectation:"ℰ",Esim:"⩳",Eta:"Η",Euml:"Ë",Exists:"∃",exist:"∃",ExponentialE:"ⅇ",ee:"ⅇ",exponentiale:"ⅇ",Fcy:"Ф",Ffr:"𝔉",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",blacksquare:"▪",squarf:"▪",squf:"▪",Fopf:"𝔽",ForAll:"∀",forall:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",GT:">",gt:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"𝔊",Gg:"⋙",ggg:"⋙",Gopf:"𝔾",GreaterEqual:"≥",ge:"≥",geq:"≥",GreaterEqualLess:"⋛",gel:"⋛",gtreqless:"⋛",GreaterFullEqual:"≧",gE:"≧",geqq:"≧",GreaterGreater:"⪢",GreaterLess:"≷",gl:"≷",gtrless:"≷",GreaterSlantEqual:"⩾",geqslant:"⩾",ges:"⩾",GreaterTilde:"≳",gsim:"≳",gtrsim:"≳",Gscr:"𝒢",Gt:"≫",NestedGreaterGreater:"≫",gg:"≫",HARDcy:"Ъ",Hacek:"ˇ",caron:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",Poincareplane:"ℌ",HilbertSpace:"ℋ",Hscr:"ℋ",hamilt:"ℋ",Hopf:"ℍ",quaternions:"ℍ",HorizontalLine:"─",boxh:"─",Hstrok:"Ħ",HumpEqual:"≏",bumpe:"≏",bumpeq:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacute:"Í",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"ℑ",Im:"ℑ",image:"ℑ",imagpart:"ℑ",Igrave:"Ì",Imacr:"Ī",ImaginaryI:"ⅈ",ii:"ⅈ",Int:"∬",Integral:"∫",int:"∫",Intersection:"⋂",bigcap:"⋂",xcap:"⋂",InvisibleComma:"⁣",ic:"⁣",InvisibleTimes:"⁢",it:"⁢",Iogon:"Į",Iopf:"𝕀",Iota:"Ι",Iscr:"ℐ",imagline:"ℐ",Itilde:"Ĩ",Iukcy:"І",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",LJcy:"Љ",LT:"<",lt:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Lscr:"ℒ",lagran:"ℒ",Larr:"↞",twoheadleftarrow:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",lang:"⟨",langle:"⟨",LeftArrow:"←",ShortLeftArrow:"←",larr:"←",leftarrow:"←",slarr:"←",LeftArrowBar:"⇤",larrb:"⇤",LeftArrowRightArrow:"⇆",leftrightarrows:"⇆",lrarr:"⇆",LeftCeiling:"⌈",lceil:"⌈",LeftDoubleBracket:"⟦",lobrk:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",dharl:"⇃",downharpoonleft:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",lfloor:"⌊",LeftRightArrow:"↔",harr:"↔",leftrightarrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",dashv:"⊣",LeftTeeArrow:"↤",mapstoleft:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",vartriangleleft:"⊲",vltri:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",ltrie:"⊴",trianglelefteq:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",uharl:"↿",upharpoonleft:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",leftharpoonup:"↼",lharu:"↼",LeftVectorBar:"⥒",LessEqualGreater:"⋚",leg:"⋚",lesseqgtr:"⋚",LessFullEqual:"≦",lE:"≦",leqq:"≦",LessGreater:"≶",lessgtr:"≶",lg:"≶",LessLess:"⪡",LessSlantEqual:"⩽",leqslant:"⩽",les:"⩽",LessTilde:"≲",lesssim:"≲",lsim:"≲",Lfr:"𝔏",Ll:"⋘",Lleftarrow:"⇚",lAarr:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",longleftarrow:"⟵",xlarr:"⟵",LongLeftRightArrow:"⟷",longleftrightarrow:"⟷",xharr:"⟷",LongRightArrow:"⟶",longrightarrow:"⟶",xrarr:"⟶",Lopf:"𝕃",LowerLeftArrow:"↙",swarr:"↙",swarrow:"↙",LowerRightArrow:"↘",searr:"↘",searrow:"↘",Lsh:"↰",lsh:"↰",Lstrok:"Ł",Lt:"≪",NestedLessLess:"≪",ll:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mscr:"ℳ",phmmat:"ℳ",Mfr:"𝔐",MinusPlus:"∓",mnplus:"∓",mp:"∓",Mopf:"𝕄",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",ZeroWidthSpace:"​",NewLine:` -`,Nfr:"𝔑",NoBreak:"⁠",NonBreakingSpace:" ",nbsp:" ",Nopf:"ℕ",naturals:"ℕ",Not:"⫬",NotCongruent:"≢",nequiv:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",npar:"∦",nparallel:"∦",nshortparallel:"∦",nspar:"∦",NotElement:"∉",notin:"∉",notinva:"∉",NotEqual:"≠",ne:"≠",NotEqualTilde:"≂̸",nesim:"≂̸",NotExists:"∄",nexist:"∄",nexists:"∄",NotGreater:"≯",ngt:"≯",ngtr:"≯",NotGreaterEqual:"≱",nge:"≱",ngeq:"≱",NotGreaterFullEqual:"≧̸",ngE:"≧̸",ngeqq:"≧̸",NotGreaterGreater:"≫̸",nGtv:"≫̸",NotGreaterLess:"≹",ntgl:"≹",NotGreaterSlantEqual:"⩾̸",ngeqslant:"⩾̸",nges:"⩾̸",NotGreaterTilde:"≵",ngsim:"≵",NotHumpDownHump:"≎̸",nbump:"≎̸",NotHumpEqual:"≏̸",nbumpe:"≏̸",NotLeftTriangle:"⋪",nltri:"⋪",ntriangleleft:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",nltrie:"⋬",ntrianglelefteq:"⋬",NotLess:"≮",nless:"≮",nlt:"≮",NotLessEqual:"≰",nle:"≰",nleq:"≰",NotLessGreater:"≸",ntlg:"≸",NotLessLess:"≪̸",nLtv:"≪̸",NotLessSlantEqual:"⩽̸",nleqslant:"⩽̸",nles:"⩽̸",NotLessTilde:"≴",nlsim:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",npr:"⊀",nprec:"⊀",NotPrecedesEqual:"⪯̸",npre:"⪯̸",npreceq:"⪯̸",NotPrecedesSlantEqual:"⋠",nprcue:"⋠",NotReverseElement:"∌",notni:"∌",notniva:"∌",NotRightTriangle:"⋫",nrtri:"⋫",ntriangleright:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",nrtrie:"⋭",ntrianglerighteq:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",nsqsube:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",nsqsupe:"⋣",NotSubset:"⊂⃒",nsubset:"⊂⃒",vnsub:"⊂⃒",NotSubsetEqual:"⊈",nsube:"⊈",nsubseteq:"⊈",NotSucceeds:"⊁",nsc:"⊁",nsucc:"⊁",NotSucceedsEqual:"⪰̸",nsce:"⪰̸",nsucceq:"⪰̸",NotSucceedsSlantEqual:"⋡",nsccue:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",nsupset:"⊃⃒",vnsup:"⊃⃒",NotSupersetEqual:"⊉",nsupe:"⊉",nsupseteq:"⊉",NotTilde:"≁",nsim:"≁",NotTildeEqual:"≄",nsime:"≄",nsimeq:"≄",NotTildeFullEqual:"≇",ncong:"≇",NotTildeTilde:"≉",nap:"≉",napprox:"≉",NotVerticalBar:"∤",nmid:"∤",nshortmid:"∤",nsmid:"∤",Nscr:"𝒩",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacute:"Ó",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",ohm:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",ldquo:"“",OpenCurlyQuote:"‘",lsquo:"‘",Or:"⩔",Oscr:"𝒪",Oslash:"Ø",Otilde:"Õ",Otimes:"⨷",Ouml:"Ö",OverBar:"‾",oline:"‾",OverBrace:"⏞",OverBracket:"⎴",tbrk:"⎴",OverParenthesis:"⏜",PartialD:"∂",part:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",plusmn:"±",pm:"±",Popf:"ℙ",primes:"ℙ",Pr:"⪻",Precedes:"≺",pr:"≺",prec:"≺",PrecedesEqual:"⪯",pre:"⪯",preceq:"⪯",PrecedesSlantEqual:"≼",prcue:"≼",preccurlyeq:"≼",PrecedesTilde:"≾",precsim:"≾",prsim:"≾",Prime:"″",Product:"∏",prod:"∏",Proportional:"∝",prop:"∝",propto:"∝",varpropto:"∝",vprop:"∝",Pscr:"𝒫",Psi:"Ψ",QUOT:'"',quot:'"',Qfr:"𝔔",Qopf:"ℚ",rationals:"ℚ",Qscr:"𝒬",RBarr:"⤐",drbkarow:"⤐",REG:"®",circledR:"®",reg:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",twoheadrightarrow:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",Rfr:"ℜ",real:"ℜ",realpart:"ℜ",ReverseElement:"∋",SuchThat:"∋",ni:"∋",niv:"∋",ReverseEquilibrium:"⇋",leftrightharpoons:"⇋",lrhar:"⇋",ReverseUpEquilibrium:"⥯",duhar:"⥯",Rho:"Ρ",RightAngleBracket:"⟩",rang:"⟩",rangle:"⟩",RightArrow:"→",ShortRightArrow:"→",rarr:"→",rightarrow:"→",srarr:"→",RightArrowBar:"⇥",rarrb:"⇥",RightArrowLeftArrow:"⇄",rightleftarrows:"⇄",rlarr:"⇄",RightCeiling:"⌉",rceil:"⌉",RightDoubleBracket:"⟧",robrk:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",dharr:"⇂",downharpoonright:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rfloor:"⌋",RightTee:"⊢",vdash:"⊢",RightTeeArrow:"↦",map:"↦",mapsto:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",vartriangleright:"⊳",vrtri:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",rtrie:"⊵",trianglerighteq:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",uharr:"↾",upharpoonright:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",rharu:"⇀",rightharpoonup:"⇀",RightVectorBar:"⥓",Ropf:"ℝ",reals:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",rAarr:"⇛",Rscr:"ℛ",realine:"ℛ",Rsh:"↱",rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"𝔖",ShortUpArrow:"↑",UpArrow:"↑",uarr:"↑",uparrow:"↑",Sigma:"Σ",SmallCircle:"∘",compfn:"∘",Sopf:"𝕊",Sqrt:"√",radic:"√",Square:"□",squ:"□",square:"□",SquareIntersection:"⊓",sqcap:"⊓",SquareSubset:"⊏",sqsub:"⊏",sqsubset:"⊏",SquareSubsetEqual:"⊑",sqsube:"⊑",sqsubseteq:"⊑",SquareSuperset:"⊐",sqsup:"⊐",sqsupset:"⊐",SquareSupersetEqual:"⊒",sqsupe:"⊒",sqsupseteq:"⊒",SquareUnion:"⊔",sqcup:"⊔",Sscr:"𝒮",Star:"⋆",sstarf:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",sube:"⊆",subseteq:"⊆",Succeeds:"≻",sc:"≻",succ:"≻",SucceedsEqual:"⪰",sce:"⪰",succeq:"⪰",SucceedsSlantEqual:"≽",sccue:"≽",succcurlyeq:"≽",SucceedsTilde:"≿",scsim:"≿",succsim:"≿",Sum:"∑",sum:"∑",Sup:"⋑",Supset:"⋑",Superset:"⊃",sup:"⊃",supset:"⊃",SupersetEqual:"⊇",supe:"⊇",supseteq:"⊇",THORN:"Þ",TRADE:"™",trade:"™",TSHcy:"Ћ",TScy:"Ц",Tab:" ",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",there4:"∴",therefore:"∴",Theta:"Θ",ThickSpace:"  ",ThinSpace:" ",thinsp:" ",Tilde:"∼",sim:"∼",thicksim:"∼",thksim:"∼",TildeEqual:"≃",sime:"≃",simeq:"≃",TildeFullEqual:"≅",cong:"≅",TildeTilde:"≈",ap:"≈",approx:"≈",asymp:"≈",thickapprox:"≈",thkap:"≈",Topf:"𝕋",TripleDot:"⃛",tdot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",lowbar:"_",UnderBrace:"⏟",UnderBracket:"⎵",bbrk:"⎵",UnderParenthesis:"⏝",Union:"⋃",bigcup:"⋃",xcup:"⋃",UnionPlus:"⊎",uplus:"⊎",Uogon:"Ų",Uopf:"𝕌",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",udarr:"⇅",UpDownArrow:"↕",updownarrow:"↕",varr:"↕",UpEquilibrium:"⥮",udhar:"⥮",UpTee:"⊥",bot:"⊥",bottom:"⊥",perp:"⊥",UpTeeArrow:"↥",mapstoup:"↥",UpperLeftArrow:"↖",nwarr:"↖",nwarrow:"↖",UpperRightArrow:"↗",nearr:"↗",nearrow:"↗",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"𝒰",Utilde:"Ũ",Uuml:"Ü",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",bigvee:"⋁",xvee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",mid:"∣",shortmid:"∣",smid:"∣",VerticalLine:"|",verbar:"|",vert:"|",VerticalSeparator:"❘",VerticalTilde:"≀",wr:"≀",wreath:"≀",VeryThinSpace:" ",hairsp:" ",Vfr:"𝔙",Vopf:"𝕍",Vscr:"𝒱",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",bigwedge:"⋀",xwedge:"⋀",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",Xfr:"𝔛",Xi:"Ξ",Xopf:"𝕏",Xscr:"𝒳",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",Zeta:"Ζ",Zfr:"ℨ",zeetrf:"ℨ",Zopf:"ℤ",integers:"ℤ",Zscr:"𝒵",aacute:"á",abreve:"ă",ac:"∾",mstpos:"∾",acE:"∾̳",acd:"∿",acirc:"â",acy:"а",aelig:"æ",afr:"𝔞",agrave:"à",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",and:"∧",wedge:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",angle:"∠",ange:"⦤",angmsd:"∡",measuredangle:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angzarr:"⍼",aogon:"ą",aopf:"𝕒",apE:"⩰",apacir:"⩯",ape:"≊",approxeq:"≊",apid:"≋",apos:"'",aring:"å",ascr:"𝒶",ast:"*",midast:"*",atilde:"ã",auml:"ä",awint:"⨑",bNot:"⫭",backcong:"≌",bcong:"≌",backepsilon:"϶",bepsi:"϶",backprime:"‵",bprime:"‵",backsim:"∽",bsim:"∽",backsimeq:"⋍",bsime:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrktbrk:"⎶",bcy:"б",bdquo:"„",ldquor:"„",bemptyv:"⦰",beta:"β",beth:"ℶ",between:"≬",twixt:"≬",bfr:"𝔟",bigcirc:"◯",xcirc:"◯",bigodot:"⨀",xodot:"⨀",bigoplus:"⨁",xoplus:"⨁",bigotimes:"⨂",xotime:"⨂",bigsqcup:"⨆",xsqcup:"⨆",bigstar:"★",starf:"★",bigtriangledown:"▽",xdtri:"▽",bigtriangleup:"△",xutri:"△",biguplus:"⨄",xuplus:"⨄",bkarow:"⤍",rbarr:"⤍",blacklozenge:"⧫",lozf:"⧫",blacktriangle:"▴",utrif:"▴",blacktriangledown:"▾",dtrif:"▾",blacktriangleleft:"◂",ltrif:"◂",blacktriangleright:"▸",rtrif:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bopf:"𝕓",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",minusb:"⊟",boxplus:"⊞",plusb:"⊞",boxtimes:"⊠",timesb:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",brvbar:"¦",bscr:"𝒷",bsemi:"⁏",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bumpE:"⪮",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",ccaps:"⩍",ccaron:"č",ccedil:"ç",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cemptyv:"⦲",cent:"¢",cfr:"𝔠",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",cire:"≗",circlearrowleft:"↺",olarr:"↺",circlearrowright:"↻",orarr:"↻",circledS:"Ⓢ",oS:"Ⓢ",circledast:"⊛",oast:"⊛",circledcirc:"⊚",ocir:"⊚",circleddash:"⊝",odash:"⊝",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",comma:",",commat:"@",comp:"∁",complement:"∁",congdot:"⩭",copf:"𝕔",copysr:"℗",crarr:"↵",cross:"✗",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",curlyeqprec:"⋞",cuesc:"⋟",curlyeqsucc:"⋟",cularr:"↶",curvearrowleft:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curvearrowright:"↷",curarrm:"⤼",curlyvee:"⋎",cuvee:"⋎",curlywedge:"⋏",cuwed:"⋏",curren:"¤",cwint:"∱",cylcty:"⌭",dHar:"⥥",dagger:"†",daleth:"ℸ",dash:"‐",hyphen:"‐",dbkarow:"⤏",rBarr:"⤏",dcaron:"ď",dcy:"д",ddarr:"⇊",downdownarrows:"⇊",ddotseq:"⩷",eDDot:"⩷",deg:"°",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",diamondsuit:"♦",diams:"♦",digamma:"ϝ",gammad:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",llcorner:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",doteqdot:"≑",eDot:"≑",dotminus:"∸",minusd:"∸",dotplus:"∔",plusdo:"∔",dotsquare:"⊡",sdotb:"⊡",drcorn:"⌟",lrcorner:"⌟",drcrop:"⌌",dscr:"𝒹",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",triangledown:"▿",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"≖",eqcirc:"≖",ecirc:"ê",ecolon:"≕",eqcolon:"≕",ecy:"э",edot:"ė",efDot:"≒",fallingdotseq:"≒",efr:"𝔢",eg:"⪚",egrave:"è",egs:"⪖",eqslantgtr:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",eqslantless:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",varnothing:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",straightepsilon:"ϵ",varepsilon:"ϵ",equals:"=",equest:"≟",questeq:"≟",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",risingdotseq:"≓",erarr:"⥱",escr:"ℯ",eta:"η",eth:"ð",euml:"ë",euro:"€",excl:"!",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",fork:"⋔",pitchfork:"⋔",forkv:"⫙",fpartint:"⨍",frac12:"½",half:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",sfrown:"⌢",fscr:"𝒻",gEl:"⪌",gtreqqless:"⪌",gacute:"ǵ",gamma:"γ",gap:"⪆",gtrapprox:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",gimel:"ℷ",gjcy:"ѓ",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gneqq:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gnsim:"⋧",gopf:"𝕘",gscr:"ℊ",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtrdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrarr:"⥸",gvertneqq:"≩︀",gvnE:"≩︀",hardcy:"ъ",harrcir:"⥈",harrw:"↭",leftrightsquigarrow:"↭",hbar:"ℏ",hslash:"ℏ",planck:"ℏ",plankv:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",mldr:"…",hercon:"⊹",hfr:"𝔥",hksearow:"⤥",searhk:"⤥",hkswarow:"⤦",swarhk:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",larrhk:"↩",hookrightarrow:"↪",rarrhk:"↪",hopf:"𝕙",horbar:"―",hscr:"𝒽",hstrok:"ħ",hybull:"⁃",iacute:"í",icirc:"î",icy:"и",iecy:"е",iexcl:"¡",ifr:"𝔦",igrave:"ì",iiiint:"⨌",qint:"⨌",iiint:"∭",tint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",imath:"ı",inodot:"ı",imof:"⊷",imped:"Ƶ",incare:"℅",infin:"∞",infintie:"⧝",intcal:"⊺",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iprod:"⨼",iocy:"ё",iogon:"į",iopf:"𝕚",iota:"ι",iquest:"¿",iscr:"𝒾",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",itilde:"ĩ",iukcy:"і",iuml:"ï",jcirc:"ĵ",jcy:"й",jfr:"𝔧",jmath:"ȷ",jopf:"𝕛",jscr:"𝒿",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",varkappa:"ϰ",kcedil:"ķ",kcy:"к",kfr:"𝔨",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"𝕜",kscr:"𝓀",lAtail:"⤛",lBarr:"⤎",lEg:"⪋",lesseqqgtr:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lambda:"λ",langd:"⦑",lap:"⪅",lessapprox:"⪅",laquo:"«",larrbfs:"⤟",larrfs:"⤝",larrlp:"↫",looparrowleft:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",leftarrowtail:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lcub:"{",lbrack:"[",lsqb:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lcy:"л",ldca:"⤶",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leq:"≤",leftleftarrows:"⇇",llarr:"⇇",leftthreetimes:"⋋",lthree:"⋋",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessdot:"⋖",ltdot:"⋖",lfisht:"⥼",lfr:"𝔩",lgE:"⪑",lharul:"⥪",lhblk:"▄",ljcy:"љ",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lneqq:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lnsim:"⋦",loang:"⟬",loarr:"⇽",longmapsto:"⟼",xmap:"⟼",looparrowright:"↬",rarrlp:"↬",lopar:"⦅",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",loz:"◊",lozenge:"◊",lpar:"(",lparlt:"⦓",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",lsime:"⪍",lsimg:"⪏",lsquor:"‚",sbquo:"‚",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",triangleleft:"◃",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",macr:"¯",strns:"¯",male:"♂",malt:"✠",maltese:"✠",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",mfr:"𝔪",mho:"℧",micro:"µ",midcir:"⫰",minus:"−",minusdu:"⨪",mlcp:"⫛",models:"⊧",mopf:"𝕞",mscr:"𝓂",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nLeftarrow:"⇍",nlArr:"⇍",nLeftrightarrow:"⇎",nhArr:"⇎",nLl:"⋘̸",nLt:"≪⃒",nRightarrow:"⇏",nrArr:"⇏",nVDash:"⊯",nVdash:"⊮",nacute:"ń",nang:"∠⃒",napE:"⩰̸",napid:"≋̸",napos:"ʼn",natur:"♮",natural:"♮",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",neArr:"⇗",nearhk:"⤤",nedot:"≐̸",nesear:"⤨",toea:"⤨",nfr:"𝔫",nharr:"↮",nleftrightarrow:"↮",nhpar:"⫲",nis:"⋼",nisd:"⋺",njcy:"њ",nlE:"≦̸",nleqq:"≦̸",nlarr:"↚",nleftarrow:"↚",nldr:"‥",nopf:"𝕟",not:"¬",notinE:"⋹̸",notindot:"⋵̸",notinvb:"⋷",notinvc:"⋶",notnivb:"⋾",notnivc:"⋽",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",nrarr:"↛",nrightarrow:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nscr:"𝓃",nsub:"⊄",nsubE:"⫅̸",nsubseteqq:"⫅̸",nsup:"⊅",nsupE:"⫆̸",nsupseteqq:"⫆̸",ntilde:"ñ",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwnear:"⤧",oacute:"ó",ocirc:"ô",ocy:"о",odblac:"ő",odiv:"⨸",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"𝔬",ogon:"˛",ograve:"ò",ogt:"⧁",ohbar:"⦵",olcir:"⦾",olcross:"⦻",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",oopf:"𝕠",opar:"⦷",operp:"⦹",or:"∨",vee:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",oscr:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oslash:"ø",osol:"⊘",otilde:"õ",otimesas:"⨶",ouml:"ö",ovbar:"⌽",para:"¶",parsim:"⫳",parsl:"⫽",pcy:"п",percnt:"%",period:".",permil:"‰",pertenk:"‱",pfr:"𝔭",phi:"φ",phiv:"ϕ",straightphi:"ϕ",varphi:"ϕ",phone:"☎",pi:"π",piv:"ϖ",varpi:"ϖ",planckh:"ℎ",plus:"+",plusacir:"⨣",pluscir:"⨢",plusdu:"⨥",pluse:"⩲",plussim:"⨦",plustwo:"⨧",pointint:"⨕",popf:"𝕡",pound:"£",prE:"⪳",prap:"⪷",precapprox:"⪷",precnapprox:"⪹",prnap:"⪹",precneqq:"⪵",prnE:"⪵",precnsim:"⋨",prnsim:"⋨",prime:"′",profalar:"⌮",profline:"⌒",profsurf:"⌓",prurel:"⊰",pscr:"𝓅",psi:"ψ",puncsp:" ",qfr:"𝔮",qopf:"𝕢",qprime:"⁗",qscr:"𝓆",quatint:"⨖",quest:"?",rAtail:"⤜",rHar:"⥤",race:"∽̱",racute:"ŕ",raemptyv:"⦳",rangd:"⦒",range:"⦥",raquo:"»",rarrap:"⥵",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rightarrowtail:"↣",rarrw:"↝",rightsquigarrow:"↝",ratail:"⤚",ratio:"∶",rbbrk:"❳",rbrace:"}",rcub:"}",rbrack:"]",rsqb:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdsh:"↳",rect:"▭",rfisht:"⥽",rfr:"𝔯",rharul:"⥬",rho:"ρ",rhov:"ϱ",varrho:"ϱ",rightrightarrows:"⇉",rrarr:"⇉",rightthreetimes:"⋌",rthree:"⋌",ring:"˚",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",ropar:"⦆",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rsaquo:"›",rscr:"𝓇",rtimes:"⋊",rtri:"▹",triangleright:"▹",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",scE:"⪴",scap:"⪸",succapprox:"⪸",scaron:"š",scedil:"ş",scirc:"ŝ",scnE:"⪶",succneqq:"⪶",scnap:"⪺",succnapprox:"⪺",scnsim:"⋩",succnsim:"⋩",scpolint:"⨓",scy:"с",sdot:"⋅",sdote:"⩦",seArr:"⇘",sect:"§",semi:";",seswar:"⤩",tosa:"⤩",sext:"✶",sfr:"𝔰",sharp:"♯",shchcy:"щ",shcy:"ш",shy:"­",sigma:"σ",sigmaf:"ς",sigmav:"ς",varsigma:"ς",simdot:"⩪",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",smashp:"⨳",smeparsl:"⧤",smile:"⌣",ssmile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",spades:"♠",spadesuit:"♠",sqcaps:"⊓︀",sqcups:"⊔︀",sscr:"𝓈",star:"☆",sub:"⊂",subset:"⊂",subE:"⫅",subseteqq:"⫅",subdot:"⪽",subedot:"⫃",submult:"⫁",subnE:"⫋",subsetneqq:"⫋",subne:"⊊",subsetneq:"⊊",subplus:"⪿",subrarr:"⥹",subsim:"⫇",subsub:"⫕",subsup:"⫓",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",supE:"⫆",supseteqq:"⫆",supdot:"⪾",supdsub:"⫘",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supsetneqq:"⫌",supne:"⊋",supsetneq:"⊋",supplus:"⫀",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swnwar:"⤪",szlig:"ß",target:"⌖",tau:"τ",tcaron:"ť",tcedil:"ţ",tcy:"т",telrec:"⌕",tfr:"𝔱",theta:"θ",thetasym:"ϑ",thetav:"ϑ",vartheta:"ϑ",thorn:"þ",times:"×",timesbar:"⨱",timesd:"⨰",topbot:"⌶",topcir:"⫱",topf:"𝕥",topfork:"⫚",tprime:"‴",triangle:"▵",utri:"▵",triangleq:"≜",trie:"≜",tridot:"◬",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",uHar:"⥣",uacute:"ú",ubrcy:"ў",ubreve:"ŭ",ucirc:"û",ucy:"у",udblac:"ű",ufisht:"⥾",ufr:"𝔲",ugrave:"ù",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",uogon:"ų",uopf:"𝕦",upsi:"υ",upsilon:"υ",upuparrows:"⇈",uuarr:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"𝓊",utdot:"⋰",utilde:"ũ",uuml:"ü",uwangle:"⦧",vBar:"⫨",vBarv:"⫩",vangrt:"⦜",varsubsetneq:"⊊︀",vsubne:"⊊︀",varsubsetneqq:"⫋︀",vsubnE:"⫋︀",varsupsetneq:"⊋︀",vsupne:"⊋︀",varsupsetneqq:"⫌︀",vsupnE:"⫌︀",vcy:"в",veebar:"⊻",veeeq:"≚",vellip:"⋮",vfr:"𝔳",vopf:"𝕧",vscr:"𝓋",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedgeq:"≙",weierp:"℘",wp:"℘",wfr:"𝔴",wopf:"𝕨",wscr:"𝓌",xfr:"𝔵",xi:"ξ",xnis:"⋻",xopf:"𝕩",xscr:"𝓍",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",yen:"¥",yfr:"𝔶",yicy:"ї",yopf:"𝕪",yscr:"𝓎",yucy:"ю",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeta:"ζ",zfr:"𝔷",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",zscr:"𝓏",zwj:"‍",zwnj:"‌"},TU="";bu.ngsp=TU;var L=function(e){return e[e.TAG_OPEN_START=0]="TAG_OPEN_START",e[e.TAG_OPEN_END=1]="TAG_OPEN_END",e[e.TAG_OPEN_END_VOID=2]="TAG_OPEN_END_VOID",e[e.TAG_CLOSE=3]="TAG_CLOSE",e[e.INCOMPLETE_TAG_OPEN=4]="INCOMPLETE_TAG_OPEN",e[e.TEXT=5]="TEXT",e[e.ESCAPABLE_RAW_TEXT=6]="ESCAPABLE_RAW_TEXT",e[e.RAW_TEXT=7]="RAW_TEXT",e[e.INTERPOLATION=8]="INTERPOLATION",e[e.ENCODED_ENTITY=9]="ENCODED_ENTITY",e[e.COMMENT_START=10]="COMMENT_START",e[e.COMMENT_END=11]="COMMENT_END",e[e.CDATA_START=12]="CDATA_START",e[e.CDATA_END=13]="CDATA_END",e[e.ATTR_NAME=14]="ATTR_NAME",e[e.ATTR_QUOTE=15]="ATTR_QUOTE",e[e.ATTR_VALUE_TEXT=16]="ATTR_VALUE_TEXT",e[e.ATTR_VALUE_INTERPOLATION=17]="ATTR_VALUE_INTERPOLATION",e[e.DOC_TYPE_START=18]="DOC_TYPE_START",e[e.DOC_TYPE_END=19]="DOC_TYPE_END",e[e.EXPANSION_FORM_START=20]="EXPANSION_FORM_START",e[e.EXPANSION_CASE_VALUE=21]="EXPANSION_CASE_VALUE",e[e.EXPANSION_CASE_EXP_START=22]="EXPANSION_CASE_EXP_START",e[e.EXPANSION_CASE_EXP_END=23]="EXPANSION_CASE_EXP_END",e[e.EXPANSION_FORM_END=24]="EXPANSION_FORM_END",e[e.BLOCK_OPEN_START=25]="BLOCK_OPEN_START",e[e.BLOCK_OPEN_END=26]="BLOCK_OPEN_END",e[e.BLOCK_CLOSE=27]="BLOCK_CLOSE",e[e.BLOCK_PARAMETER=28]="BLOCK_PARAMETER",e[e.INCOMPLETE_BLOCK_OPEN=29]="INCOMPLETE_BLOCK_OPEN",e[e.LET_START=30]="LET_START",e[e.LET_VALUE=31]="LET_VALUE",e[e.LET_END=32]="LET_END",e[e.INCOMPLETE_LET=33]="INCOMPLETE_LET",e[e.COMPONENT_OPEN_START=34]="COMPONENT_OPEN_START",e[e.COMPONENT_OPEN_END=35]="COMPONENT_OPEN_END",e[e.COMPONENT_OPEN_END_VOID=36]="COMPONENT_OPEN_END_VOID",e[e.COMPONENT_CLOSE=37]="COMPONENT_CLOSE",e[e.INCOMPLETE_COMPONENT_OPEN=38]="INCOMPLETE_COMPONENT_OPEN",e[e.DIRECTIVE_NAME=39]="DIRECTIVE_NAME",e[e.DIRECTIVE_OPEN=40]="DIRECTIVE_OPEN",e[e.DIRECTIVE_CLOSE=41]="DIRECTIVE_CLOSE",e[e.EOF=42]="EOF",e}({}),SU=class{constructor(e,t,r){this.tokens=e,this.errors=t,this.nonNormalizedIcuExpressions=r}};function FU(e,t,r,n={}){let i=new kU(new PS(e,t),r,n);return i.tokenize(),new SU(OU(i.tokens),i.errors,i.nonNormalizedIcuExpressions)}var bU=/\r\n?/g;function qi(e){return`Unexpected character "${e===0?"EOF":String.fromCharCode(e)}"`}function OD(e){return`Unknown entity "${e}" - use the "&#;" or "&#x;" syntax`}function wU(e,t){return`Unable to parse entity "${t}" - ${e} character reference entities must end with ";"`}var Ff=function(e){return e.HEX="hexadecimal",e.DEC="decimal",e}(Ff||{}),PU=["@if","@else","@for","@switch","@case","@default","@empty","@defer","@placeholder","@loading","@error"],Do={start:"{{",end:"}}"},kU=class{constructor(e,t,r){this._getTagContentType=t,this._currentTokenStart=null,this._currentTokenType=null,this._expansionCaseStack=[],this._openDirectiveCount=0,this._inInterpolation=!1,this._fullNameStack=[],this.tokens=[],this.errors=[],this.nonNormalizedIcuExpressions=[],this._tokenizeIcu=r.tokenizeExpansionForms||!1,this._leadingTriviaCodePoints=r.leadingTriviaChars&&r.leadingTriviaChars.map(i=>i.codePointAt(0)||0),this._canSelfClose=r.canSelfClose||!1,this._allowHtmComponentClosingTags=r.allowHtmComponentClosingTags||!1;let n=r.range||{endPos:e.content.length,startPos:0,startLine:0,startCol:0};this._cursor=r.escapedString?new MU(e,n):new NS(e,n),this._preserveLineEndings=r.preserveLineEndings||!1,this._i18nNormalizeLineEndingsInICUs=r.i18nNormalizeLineEndingsInICUs||!1,this._tokenizeBlocks=r.tokenizeBlocks??!0,this._tokenizeLet=r.tokenizeLet??!0,this._selectorlessEnabled=r.selectorlessEnabled??!1;try{this._cursor.init()}catch(i){this.handleError(i)}}_processCarriageReturns(e){return this._preserveLineEndings?e:e.replace(bU,` -`)}tokenize(){for(;this._cursor.peek()!==0;){let e=this._cursor.clone();try{if(this._attemptCharCode(60))if(this._attemptCharCode(33))this._attemptStr("[CDATA[")?this._consumeCdata(e):this._attemptStr("--")?this._consumeComment(e):this._attemptStrCaseInsensitive("doctype")?this._consumeDocType(e):this._consumeBogusComment(e);else if(this._attemptCharCode(47))this._consumeTagClose(e);else{let t=this._cursor.clone();this._attemptCharCode(63)?(this._cursor=t,this._consumeBogusComment(e)):this._consumeTagOpen(e)}else this._tokenizeLet&&this._cursor.peek()===64&&!this._inInterpolation&&this._isLetStart()?this._consumeLetDeclaration(e):this._tokenizeBlocks&&this._isBlockStart()?this._consumeBlockStart(e):this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansionCase()&&!this._isInExpansionForm()&&this._attemptCharCode(125)?this._consumeBlockEnd(e):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeWithInterpolation(L.TEXT,L.INTERPOLATION,()=>this._isTextEnd(),()=>this._isTagStart())}catch(t){this.handleError(t)}}this._beginToken(L.EOF),this._endToken([])}_getBlockName(){let e=!1,t=this._cursor.clone();return this._attemptCharCodeUntilFn(r=>Mc(r)?!e:$U(r)?(e=!0,!1):!0),this._cursor.getChars(t).trim()}_consumeBlockStart(e){this._requireCharCode(64),this._beginToken(L.BLOCK_OPEN_START,e);let t=this._endToken([this._getBlockName()]);if(this._cursor.peek()===40)if(this._cursor.advance(),this._consumeBlockParameters(),this._attemptCharCodeUntilFn(Ie),this._attemptCharCode(41))this._attemptCharCodeUntilFn(Ie);else{t.type=L.INCOMPLETE_BLOCK_OPEN;return}this._attemptCharCode(123)?(this._beginToken(L.BLOCK_OPEN_END),this._endToken([])):this._isBlockStart()&&(t.parts[0]==="case"||t.parts[0]==="default")?(this._beginToken(L.BLOCK_OPEN_END),this._endToken([]),this._beginToken(L.BLOCK_CLOSE),this._endToken([])):t.type=L.INCOMPLETE_BLOCK_OPEN}_consumeBlockEnd(e){this._beginToken(L.BLOCK_CLOSE,e),this._endToken([])}_consumeBlockParameters(){for(this._attemptCharCodeUntilFn(jD);this._cursor.peek()!==41&&this._cursor.peek()!==0;){this._beginToken(L.BLOCK_PARAMETER);let e=this._cursor.clone(),t=null,r=0;for(;this._cursor.peek()!==59&&this._cursor.peek()!==0||t!==null;){let n=this._cursor.peek();if(n===92)this._cursor.advance();else if(n===t)t=null;else if(t===null&&Wh(n))t=n;else if(n===40&&t===null)r++;else if(n===41&&t===null){if(r===0)break;r>0&&r--}this._cursor.advance()}this._endToken([this._cursor.getChars(e)]),this._attemptCharCodeUntilFn(jD)}}_consumeLetDeclaration(e){if(this._requireStr("@let"),this._beginToken(L.LET_START,e),Mc(this._cursor.peek()))this._attemptCharCodeUntilFn(Ie);else{let r=this._endToken([this._cursor.getChars(e)]);r.type=L.INCOMPLETE_LET;return}let t=this._endToken([this._getLetDeclarationName()]);if(this._attemptCharCodeUntilFn(Ie),!this._attemptCharCode(61)){t.type=L.INCOMPLETE_LET;return}this._attemptCharCodeUntilFn(r=>Ie(r)&&!jc(r)),this._consumeLetDeclarationValue(),this._cursor.peek()===59?(this._beginToken(L.LET_END),this._endToken([]),this._cursor.advance()):(t.type=L.INCOMPLETE_LET,t.sourceSpan=this._cursor.getSpan(e))}_getLetDeclarationName(){let e=this._cursor.clone(),t=!1;return this._attemptCharCodeUntilFn(r=>Fu(r)||r===36||r===95||t&&Bp(r)?(t=!0,!1):!0),this._cursor.getChars(e).trim()}_consumeLetDeclarationValue(){let e=this._cursor.clone();for(this._beginToken(L.LET_VALUE,e);this._cursor.peek()!==0;){let t=this._cursor.peek();if(t===59)break;Wh(t)&&(this._cursor.advance(),this._attemptCharCodeUntilFn(r=>r===92?(this._cursor.advance(),!1):r===t)),this._cursor.advance()}this._endToken([this._cursor.getChars(e)])}_tokenizeExpansionForm(){if(this.isExpansionFormStart())return this._consumeExpansionFormStart(),!0;if(_U(this._cursor.peek())&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._cursor.peek()===125){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1}_beginToken(e,t=this._cursor.clone()){this._currentTokenStart=t,this._currentTokenType=e}_endToken(e,t){if(this._currentTokenStart===null)throw new Us(this._cursor.getSpan(t),"Programming error - attempted to end a token when there was no start to the token");if(this._currentTokenType===null)throw new Us(this._cursor.getSpan(this._currentTokenStart),"Programming error - attempted to end a token which has no token type");let r={type:this._currentTokenType,parts:e,sourceSpan:(t??this._cursor).getSpan(this._currentTokenStart,this._leadingTriviaCodePoints)};return this.tokens.push(r),this._currentTokenStart=null,this._currentTokenType=null,r}_createError(e,t){this._isInExpansionForm()&&(e+=` (Do you have an unescaped "{" in your template? Use "{{ '{' }}") to escape it.)`);let r=new Us(t,e);return this._currentTokenStart=null,this._currentTokenType=null,r}handleError(e){if(e instanceof d0&&(e=this._createError(e.msg,this._cursor.getSpan(e.cursor))),e instanceof Us)this.errors.push(e);else throw e}_attemptCharCode(e){return this._cursor.peek()===e?(this._cursor.advance(),!0):!1}_attemptCharCodeCaseInsensitive(e){return LU(this._cursor.peek(),e)?(this._cursor.advance(),!0):!1}_requireCharCode(e){let t=this._cursor.clone();if(!this._attemptCharCode(e))throw this._createError(qi(this._cursor.peek()),this._cursor.getSpan(t))}_attemptStr(e){let t=e.length;if(this._cursor.charsLeft()this._peekStr(e))}_isLetStart(){return this._cursor.peek()===64&&this._peekStr("@let")}_consumeEntity(e){this._beginToken(L.ENCODED_ENTITY);let t=this._cursor.clone();if(this._cursor.advance(),this._attemptCharCode(35)){let r=this._attemptCharCode(120)||this._attemptCharCode(88),n=this._cursor.clone();if(this._attemptCharCodeUntilFn(BU),this._cursor.peek()!=59){this._cursor.advance();let s=r?Ff.HEX:Ff.DEC;throw this._createError(wU(s,this._cursor.getChars(t)),this._cursor.getSpan())}let i=this._cursor.getChars(n);this._cursor.advance();try{let s=parseInt(i,r?16:10);this._endToken([String.fromCodePoint(s),this._cursor.getChars(t)])}catch{throw this._createError(OD(this._cursor.getChars(t)),this._cursor.getSpan())}}else{let r=this._cursor.clone();if(this._attemptCharCodeUntilFn(IU),this._cursor.peek()!=59)this._beginToken(e,t),this._cursor=r,this._endToken(["&"]);else{let n=this._cursor.getChars(r);this._cursor.advance();let i=bu.hasOwnProperty(n)&&bu[n];if(!i)throw this._createError(OD(n),this._cursor.getSpan(t));this._endToken([i,`&${n};`])}}}_consumeRawText(e,t){this._beginToken(e?L.ESCAPABLE_RAW_TEXT:L.RAW_TEXT);let r=[];for(;;){let n=this._cursor.clone(),i=t();if(this._cursor=n,i)break;e&&this._cursor.peek()===38?(this._endToken([this._processCarriageReturns(r.join(""))]),r.length=0,this._consumeEntity(L.ESCAPABLE_RAW_TEXT),this._beginToken(L.ESCAPABLE_RAW_TEXT)):r.push(this._readChar())}this._endToken([this._processCarriageReturns(r.join(""))])}_consumeComment(e){this._beginToken(L.COMMENT_START,e),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("-->")),this._beginToken(L.COMMENT_END),this._requireStr("-->"),this._endToken([])}_consumeBogusComment(e){this._beginToken(L.COMMENT_START,e),this._endToken([]),this._consumeRawText(!1,()=>this._cursor.peek()===62),this._beginToken(L.COMMENT_END),this._cursor.advance(),this._endToken([])}_consumeCdata(e){this._beginToken(L.CDATA_START,e),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("]]>")),this._beginToken(L.CDATA_END),this._requireStr("]]>"),this._endToken([])}_consumeDocType(e){this._beginToken(L.DOC_TYPE_START,e),this._endToken([]),this._consumeRawText(!1,()=>this._cursor.peek()===62),this._beginToken(L.DOC_TYPE_END),this._cursor.advance(),this._endToken([])}_consumePrefixAndName(e){let t=this._cursor.clone(),r="";for(;this._cursor.peek()!==58&&!NU(this._cursor.peek());)this._cursor.advance();let n;this._cursor.peek()===58?(r=this._cursor.getChars(t),this._cursor.advance(),n=this._cursor.clone()):n=t,this._requireCharCodeUntilFn(e,r===""?0:1);let i=this._cursor.getChars(n);return[r,i]}_consumeTagOpen(e){let t,r,n,i,s=[];try{if(this._selectorlessEnabled&&Nl(this._cursor.peek()))i=this._consumeComponentOpenStart(e),[n,r,t]=i.parts,r&&(n+=`:${r}`),t&&(n+=`:${t}`),this._attemptCharCodeUntilFn(Ie);else{if(!Fu(this._cursor.peek()))throw this._createError(qi(this._cursor.peek()),this._cursor.getSpan(e));i=this._consumeTagOpenStart(e),r=i.parts[0],t=n=i.parts[1],this._attemptCharCodeUntilFn(Ie)}for(;!UD(this._cursor.peek());)if(this._selectorlessEnabled&&this._cursor.peek()===64){let o=this._cursor.clone(),u=o.clone();u.advance(),Nl(u.peek())&&this._consumeDirective(o,u)}else{let o=this._consumeAttribute();s.push(o)}i.type===L.COMPONENT_OPEN_START?this._consumeComponentOpenEnd():this._consumeTagOpenEnd()}catch(o){if(o instanceof Us){i?i.type=i.type===L.COMPONENT_OPEN_START?L.INCOMPLETE_COMPONENT_OPEN:L.INCOMPLETE_TAG_OPEN:(this._beginToken(L.TEXT,e),this._endToken(["<"]));return}throw o}if(this._canSelfClose&&this.tokens[this.tokens.length-1].type===L.TAG_OPEN_END_VOID)return;let a=this._getTagContentType(t,r,this._fullNameStack.length>0,s);this._handleFullNameStackForTagOpen(r,t),a===vn.RAW_TEXT?this._consumeRawTextWithTagClose(r,i,n,!1):a===vn.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(r,i,n,!0)}_consumeRawTextWithTagClose(e,t,r,n){this._consumeRawText(n,()=>!this._attemptCharCode(60)||!this._attemptCharCode(47)||(this._attemptCharCodeUntilFn(Ie),!this._attemptStrCaseInsensitive(e&&t.type!==L.COMPONENT_OPEN_START?`${e}:${r}`:r))?!1:(this._attemptCharCodeUntilFn(Ie),this._attemptCharCode(62))),this._beginToken(t.type===L.COMPONENT_OPEN_START?L.COMPONENT_CLOSE:L.TAG_CLOSE),this._requireCharCodeUntilFn(i=>i===62,3),this._cursor.advance(),this._endToken(t.parts),this._handleFullNameStackForTagClose(e,r)}_consumeTagOpenStart(e){this._beginToken(L.TAG_OPEN_START,e);let t=this._consumePrefixAndName(Hi);return this._endToken(t)}_consumeComponentOpenStart(e){this._beginToken(L.COMPONENT_OPEN_START,e);let t=this._consumeComponentName();return this._endToken(t)}_consumeComponentName(){let e=this._cursor.clone();for(;RD(this._cursor.peek());)this._cursor.advance();let t=this._cursor.getChars(e),r="",n="";return this._cursor.peek()===58&&(this._cursor.advance(),[r,n]=this._consumePrefixAndName(Hi)),[t,r,n]}_consumeAttribute(){let[e,t]=this._consumeAttributeName(),r;return this._attemptCharCodeUntilFn(Ie),this._attemptCharCode(61)&&(this._attemptCharCodeUntilFn(Ie),r=this._consumeAttributeValue()),this._attemptCharCodeUntilFn(Ie),{prefix:e,name:t,value:r}}_consumeAttributeName(){let e=this._cursor.peek();if(e===39||e===34)throw this._createError(qi(e),this._cursor.getSpan());this._beginToken(L.ATTR_NAME);let t;if(this._openDirectiveCount>0){let n=0;t=i=>{if(this._openDirectiveCount>0){if(i===40)n++;else if(i===41){if(n===0)return!0;n--}}return Hi(i)}}else if(e===91){let n=0;t=i=>(i===91?n++:i===93&&n--,n<=0?Hi(i):jc(i))}else t=Hi;let r=this._consumePrefixAndName(t);return this._endToken(r),r}_consumeAttributeValue(){let e;if(this._cursor.peek()===39||this._cursor.peek()===34){let t=this._cursor.peek();this._consumeQuote(t);let r=()=>this._cursor.peek()===t;e=this._consumeWithInterpolation(L.ATTR_VALUE_TEXT,L.ATTR_VALUE_INTERPOLATION,r,r),this._consumeQuote(t)}else{let t=()=>Hi(this._cursor.peek());e=this._consumeWithInterpolation(L.ATTR_VALUE_TEXT,L.ATTR_VALUE_INTERPOLATION,t,t)}return e}_consumeQuote(e){this._beginToken(L.ATTR_QUOTE),this._requireCharCode(e),this._endToken([String.fromCodePoint(e)])}_consumeTagOpenEnd(){let e=this._attemptCharCode(47)?L.TAG_OPEN_END_VOID:L.TAG_OPEN_END;this._beginToken(e),this._requireCharCode(62),this._endToken([])}_consumeComponentOpenEnd(){let e=this._attemptCharCode(47)?L.COMPONENT_OPEN_END_VOID:L.COMPONENT_OPEN_END;this._beginToken(e),this._requireCharCode(62),this._endToken([])}_consumeTagClose(e){if(this._selectorlessEnabled){let t=e.clone();for(;t.peek()!==62&&!Nl(t.peek());)t.advance();if(Nl(t.peek())){this._beginToken(L.COMPONENT_CLOSE,e);let r=this._consumeComponentName();this._attemptCharCodeUntilFn(Ie),this._requireCharCode(62),this._endToken(r);return}}if(this._beginToken(L.TAG_CLOSE,e),this._attemptCharCodeUntilFn(Ie),this._allowHtmComponentClosingTags&&this._attemptCharCode(47))this._attemptCharCodeUntilFn(Ie),this._requireCharCode(62),this._endToken([]);else{let[t,r]=this._consumePrefixAndName(Hi);this._attemptCharCodeUntilFn(Ie),this._requireCharCode(62),this._endToken([t,r]),this._handleFullNameStackForTagClose(t,r)}}_consumeExpansionFormStart(){this._beginToken(L.EXPANSION_FORM_START),this._requireCharCode(123),this._endToken([]),this._expansionCaseStack.push(L.EXPANSION_FORM_START),this._beginToken(L.RAW_TEXT);let e=this._readUntil(44),t=this._processCarriageReturns(e);if(this._i18nNormalizeLineEndingsInICUs)this._endToken([t]);else{let n=this._endToken([e]);t!==e&&this.nonNormalizedIcuExpressions.push(n)}this._requireCharCode(44),this._attemptCharCodeUntilFn(Ie),this._beginToken(L.RAW_TEXT);let r=this._readUntil(44);this._endToken([r]),this._requireCharCode(44),this._attemptCharCodeUntilFn(Ie)}_consumeExpansionCaseStart(){this._beginToken(L.EXPANSION_CASE_VALUE);let e=this._readUntil(123).trim();this._endToken([e]),this._attemptCharCodeUntilFn(Ie),this._beginToken(L.EXPANSION_CASE_EXP_START),this._requireCharCode(123),this._endToken([]),this._attemptCharCodeUntilFn(Ie),this._expansionCaseStack.push(L.EXPANSION_CASE_EXP_START)}_consumeExpansionCaseEnd(){this._beginToken(L.EXPANSION_CASE_EXP_END),this._requireCharCode(125),this._endToken([]),this._attemptCharCodeUntilFn(Ie),this._expansionCaseStack.pop()}_consumeExpansionFormEnd(){this._beginToken(L.EXPANSION_FORM_END),this._requireCharCode(125),this._endToken([]),this._expansionCaseStack.pop()}_consumeWithInterpolation(e,t,r,n){this._beginToken(e);let i=[];for(;!r();){let a=this._cursor.clone();this._attemptStr(Do.start)?(this._endToken([this._processCarriageReturns(i.join(""))],a),i.length=0,this._consumeInterpolation(t,a,n),this._beginToken(e)):this._cursor.peek()===38?(this._endToken([this._processCarriageReturns(i.join(""))]),i.length=0,this._consumeEntity(e),this._beginToken(e)):i.push(this._readChar())}this._inInterpolation=!1;let s=this._processCarriageReturns(i.join(""));return this._endToken([s]),s}_consumeInterpolation(e,t,r){let n=[];this._beginToken(e,t),n.push(Do.start);let i=this._cursor.clone(),s=null,a=!1;for(;this._cursor.peek()!==0&&(r===null||!r());){let o=this._cursor.clone();if(this._isTagStart()){this._cursor=o,n.push(this._getProcessedChars(i,o)),this._endToken(n);return}if(s===null)if(this._attemptStr(Do.end)){n.push(this._getProcessedChars(i,o)),n.push(Do.end),this._endToken(n);return}else this._attemptStr("//")&&(a=!0);let u=this._cursor.peek();this._cursor.advance(),u===92?this._cursor.advance():u===s?s=null:!a&&s===null&&Wh(u)&&(s=u)}n.push(this._getProcessedChars(i,this._cursor)),this._endToken(n)}_consumeDirective(e,t){for(this._requireCharCode(64),this._cursor.advance();RD(this._cursor.peek());)this._cursor.advance();this._beginToken(L.DIRECTIVE_NAME,e);let r=this._cursor.getChars(t);if(this._endToken([r]),this._attemptCharCodeUntilFn(Ie),this._cursor.peek()===40){for(this._openDirectiveCount++,this._beginToken(L.DIRECTIVE_OPEN),this._cursor.advance(),this._endToken([]),this._attemptCharCodeUntilFn(Ie);!UD(this._cursor.peek())&&this._cursor.peek()!==41;)this._consumeAttribute();if(this._attemptCharCodeUntilFn(Ie),this._openDirectiveCount--,this._cursor.peek()!==41){if(this._cursor.peek()===62||this._cursor.peek()===47)return;throw this._createError(qi(this._cursor.peek()),this._cursor.getSpan(e))}this._beginToken(L.DIRECTIVE_CLOSE),this._cursor.advance(),this._endToken([]),this._attemptCharCodeUntilFn(Ie)}}_getProcessedChars(e,t){return this._processCarriageReturns(t.getChars(e))}_isTextEnd(){return!!(this._isTagStart()||this._cursor.peek()===0||this._tokenizeIcu&&!this._inInterpolation&&(this.isExpansionFormStart()||this._cursor.peek()===125&&this._isInExpansionCase())||this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansion()&&(this._isBlockStart()||this._isLetStart()||this._cursor.peek()===125))}_isTagStart(){if(this._cursor.peek()===60){let e=this._cursor.clone();e.advance();let t=e.peek();if(97<=t&&t<=122||65<=t&&t<=90||t===47||t===33)return!0}return!1}_readUntil(e){let t=this._cursor.clone();return this._attemptUntilChar(e),this._cursor.getChars(t)}_isInExpansion(){return this._isInExpansionCase()||this._isInExpansionForm()}_isInExpansionCase(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===L.EXPANSION_CASE_EXP_START}_isInExpansionForm(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===L.EXPANSION_FORM_START}isExpansionFormStart(){if(this._cursor.peek()!==123)return!1;let e=this._cursor.clone(),t=this._attemptStr(Do.start);return this._cursor=e,!t}_handleFullNameStackForTagOpen(e,t){let r=Yo(e,t);(this._fullNameStack.length===0||this._fullNameStack[this._fullNameStack.length-1]===r)&&this._fullNameStack.push(r)}_handleFullNameStackForTagClose(e,t){let r=Yo(e,t);this._fullNameStack.length!==0&&this._fullNameStack[this._fullNameStack.length-1]===r&&this._fullNameStack.pop()}};function Ie(e){return!Mc(e)||e===0}function Hi(e){return Mc(e)||e===62||e===60||e===47||e===39||e===34||e===61||e===0}function NU(e){return(e<97||12257)}function BU(e){return e===59||e===0||!fU(e)}function IU(e){return e===59||e===0||!Fu(e)}function _U(e){return e!==125}function LU(e,t){return MD(e)===MD(t)}function MD(e){return e>=97&&e<=122?e-97+65:e}function $U(e){return Fu(e)||Bp(e)||e===95}function jD(e){return e!==59&&Ie(e)}function Nl(e){return e===95||e>=65&&e<=90}function RD(e){return Fu(e)||Bp(e)||e===95}function UD(e){return e===47||e===62||e===60||e===0}function OU(e){let t=[],r;for(let n=0;n0&&r.indexOf(t.peek())!==-1;)n===t&&(t=t.clone()),t.advance();let i=this.locationFromCursor(t);return new pe(i,this.locationFromCursor(this),n!==t?this.locationFromCursor(n):i)}getChars(t){return this.input.substring(t.state.offset,this.state.offset)}charAt(t){return this.input.charCodeAt(t)}advanceState(t){if(t.offset>=this.end)throw this.state=t,new d0('Unexpected character "EOF"',this);let r=this.charAt(t.offset);r===10?(t.line++,t.column=0):jc(r)||t.column++,t.offset++,this.updatePeek(t)}updatePeek(t){t.peek=t.offset>=this.end?0:this.charAt(t.offset)}locationFromCursor(t){return new Sf(t.file,t.state.offset,t.state.line,t.state.column)}},MU=class wf extends NS{constructor(t,r){t instanceof wf?(super(t),this.internalState={...t.internalState}):(super(t,r),this.internalState=this.state)}advance(){this.state=this.internalState,super.advance(),this.processEscapeSequence()}init(){super.init(),this.processEscapeSequence()}clone(){return new wf(this)}getChars(t){let r=t.clone(),n="";for(;r.internalState.offsetthis.internalState.peek;if(t()===92)if(this.internalState={...this.state},this.advanceState(this.internalState),t()===110)this.state.peek=10;else if(t()===114)this.state.peek=13;else if(t()===118)this.state.peek=11;else if(t()===116)this.state.peek=9;else if(t()===98)this.state.peek=8;else if(t()===102)this.state.peek=12;else if(t()===117)if(this.advanceState(this.internalState),t()===123){this.advanceState(this.internalState);let r=this.clone(),n=0;for(;t()!==125;)this.advanceState(this.internalState),n++;this.state.peek=this.decodeHexDigits(r,n)}else{let r=this.clone();this.advanceState(this.internalState),this.advanceState(this.internalState),this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(r,4)}else if(t()===120){this.advanceState(this.internalState);let r=this.clone();this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(r,2)}else if(ID(t())){let r="",n=0,i=this.clone();for(;ID(t())&&n<3;)i=this.clone(),r+=String.fromCodePoint(t()),this.advanceState(this.internalState),n++;this.state.peek=parseInt(r,8),this.internalState=i.internalState}else jc(this.internalState.peek)?(this.advanceState(this.internalState),this.state=this.internalState):this.state.peek=this.internalState.peek}decodeHexDigits(t,r){let n=this.input.slice(t.internalState.offset,t.internalState.offset+r),i=parseInt(n,16);if(isNaN(i))throw t.state=t.internalState,new d0("Invalid hexadecimal escape sequence",t);return i}},d0=class extends Error{constructor(e,t){super(e),this.msg=e,this.cursor=t,Object.setPrototypeOf(this,new.target.prototype)}},pt=class BS extends Us{static create(t,r,n){return new BS(t,r,n)}constructor(t,r,n){super(r,n),this.elementName=t}},jU=class{constructor(e,t){this.rootNodes=e,this.errors=t}},RU=class{constructor(e){this.getTagDefinition=e}parse(e,t,r,n=!1,i){let s=d=>(f,...y)=>d(f.toLowerCase(),...y),a=n?this.getTagDefinition:s(this.getTagDefinition),o=d=>a(d).getContentType(),u=n?i:s(i),l=FU(e,t,i?(d,f,y,x)=>{let g=u(d,f,y,x);return g!==void 0?g:o(d)}:o,r),c=r&&r.canSelfClose||!1,p=r&&r.allowHtmComponentClosingTags||!1,h=new UU(l.tokens,a,c,p,n);return h.build(),new jU(h.rootNodes,[...l.errors,...h.errors])}},UU=class IS{constructor(t,r,n,i,s){this.tokens=t,this.tagDefinitionResolver=r,this.canSelfClose=n,this.allowHtmComponentClosingTags=i,this.isTagNameCaseSensitive=s,this._index=-1,this._containerStack=[],this.rootNodes=[],this.errors=[],this._advance()}build(){for(;this._peek.type!==L.EOF;)this._peek.type===L.TAG_OPEN_START||this._peek.type===L.INCOMPLETE_TAG_OPEN?this._consumeElementStartTag(this._advance()):this._peek.type===L.TAG_CLOSE?(this._closeVoidElement(),this._consumeElementEndTag(this._advance())):this._peek.type===L.CDATA_START?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===L.COMMENT_START?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===L.TEXT||this._peek.type===L.RAW_TEXT||this._peek.type===L.ESCAPABLE_RAW_TEXT?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===L.EXPANSION_FORM_START?this._consumeExpansion(this._advance()):this._peek.type===L.BLOCK_OPEN_START?(this._closeVoidElement(),this._consumeBlockOpen(this._advance())):this._peek.type===L.BLOCK_CLOSE?(this._closeVoidElement(),this._consumeBlockClose(this._advance())):this._peek.type===L.INCOMPLETE_BLOCK_OPEN?(this._closeVoidElement(),this._consumeIncompleteBlock(this._advance())):this._peek.type===L.LET_START?(this._closeVoidElement(),this._consumeLet(this._advance())):this._peek.type===L.DOC_TYPE_START?this._consumeDocType(this._advance()):this._peek.type===L.INCOMPLETE_LET?(this._closeVoidElement(),this._consumeIncompleteLet(this._advance())):this._peek.type===L.COMPONENT_OPEN_START||this._peek.type===L.INCOMPLETE_COMPONENT_OPEN?this._consumeComponentStartTag(this._advance()):this._peek.type===L.COMPONENT_CLOSE?this._consumeComponentEndTag(this._advance()):this._advance();for(let t of this._containerStack)t instanceof Os&&this.errors.push(pt.create(t.name,t.sourceSpan,`Unclosed block "${t.name}"`))}_advance(){let t=this._peek;return this._index0)return this.errors=this.errors.concat(s.errors),null;let a=new pe(t.sourceSpan.start,i.sourceSpan.end,t.sourceSpan.fullStart),o=new pe(r.sourceSpan.start,i.sourceSpan.end,r.sourceSpan.fullStart);return new DU(t.parts[0],s.rootNodes,a,t.sourceSpan,o)}_collectExpansionExpTokens(t){let r=[],n=[L.EXPANSION_CASE_EXP_START];for(;;){if((this._peek.type===L.EXPANSION_FORM_START||this._peek.type===L.EXPANSION_CASE_EXP_START)&&n.push(this._peek.type),this._peek.type===L.EXPANSION_CASE_EXP_END)if(VD(n,L.EXPANSION_CASE_EXP_START)){if(n.pop(),n.length===0)return r}else return this.errors.push(pt.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===L.EXPANSION_FORM_END)if(VD(n,L.EXPANSION_FORM_START))n.pop();else return this.errors.push(pt.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===L.EOF)return this.errors.push(pt.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;r.push(this._advance())}}_getText(t){let r=t.parts[0];if(r.length>0&&r[0]==` +`&&++o==r)););return{before:n.substring(i,this.offset),after:n.substring(this.offset,s+1)}}return null}},JT=class{constructor(e,t){this.content=e,this.url=t}},pe=class{constructor(e,t,r=e,n=null){this.start=e,this.end=t,this.fullStart=r,this.details=n}toString(){return this.start.file.content.substring(this.start.offset,this.end.offset)}},K2=function(e){return e[e.WARNING=0]="WARNING",e[e.ERROR=1]="ERROR",e}({}),qs=class extends Error{constructor(e,t,r=K2.ERROR,n){super(t),this.span=e,this.msg=t,this.level=r,this.relatedError=n,Object.setPrototypeOf(this,new.target.prototype)}contextualMessage(){let e=this.span.start.getContext(100,3);return e?`${this.msg} ("${e.before}[${K2[this.level]} ->]${e.after}")`:this.msg}toString(){let e=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${e}`}},Bs=class{constructor(e,t){this.sourceSpan=e,this.i18n=t}},zU=class extends Bs{constructor(e,t,r,n){super(t,n),this.value=e,this.tokens=r,this.kind="text"}visit(e,t){return e.visitText(this,t)}},qU=class extends Bs{constructor(e,t,r,n){super(t,n),this.value=e,this.tokens=r,this.kind="cdata"}visit(e,t){return e.visitCdata(this,t)}},HU=class extends Bs{constructor(e,t,r,n,i,s){super(n,s),this.switchValue=e,this.type=t,this.cases=r,this.switchValueSourceSpan=i,this.kind="expansion"}visit(e,t){return e.visitExpansion(this,t)}},WU=class{constructor(e,t,r,n,i){this.value=e,this.expression=t,this.sourceSpan=r,this.valueSourceSpan=n,this.expSourceSpan=i,this.kind="expansionCase"}visit(e,t){return e.visitExpansionCase(this,t)}},JU=class extends Bs{constructor(e,t,r,n,i,s,a){super(r,a),this.name=e,this.value=t,this.keySpan=n,this.valueSpan=i,this.valueTokens=s,this.kind="attribute"}visit(e,t){return e.visitAttribute(this,t)}get nameSpan(){return this.keySpan}},Hi=class extends Bs{constructor(e,t,r,n,i,s,a,o=null,u=null,l,c){super(s,c),this.name=e,this.attrs=t,this.directives=r,this.children=n,this.isSelfClosing=i,this.startSourceSpan=a,this.endSourceSpan=o,this.nameSpan=u,this.isVoid=l,this.kind="element"}visit(e,t){return e.visitElement(this,t)}},XU=class{constructor(e,t){this.value=e,this.sourceSpan=t,this.kind="comment"}visit(e,t){return e.visitComment(this,t)}},KU=class{constructor(e,t){this.value=e,this.sourceSpan=t,this.kind="docType"}visit(e,t){return e.visitDocType(this,t)}},js=class extends Bs{constructor(e,t,r,n,i,s,a=null,o){super(n,o),this.name=e,this.parameters=t,this.children=r,this.nameSpan=i,this.startSourceSpan=s,this.endSourceSpan=a,this.kind="block"}visit(e,t){return e.visitBlock(this,t)}},ri=class extends Bs{constructor(e,t,r,n,i,s,a,o,u,l=null,c){super(o,c),this.componentName=e,this.tagName=t,this.fullName=r,this.attrs=n,this.directives=i,this.children=s,this.isSelfClosing=a,this.startSourceSpan=u,this.endSourceSpan=l,this.kind="component"}visit(e,t){return e.visitComponent(this,t)}},GU=class{constructor(e,t,r,n,i=null){this.name=e,this.attrs=t,this.sourceSpan=r,this.startSourceSpan=n,this.endSourceSpan=i,this.kind="directive"}visit(e,t){return e.visitDirective(this,t)}},G2=class{constructor(e,t){this.expression=e,this.sourceSpan=t,this.kind="blockParameter",this.startSourceSpan=null,this.endSourceSpan=null}visit(e,t){return e.visitBlockParameter(this,t)}},Q2=class{constructor(e,t,r,n,i){this.name=e,this.value=t,this.sourceSpan=r,this.nameSpan=n,this.valueSpan=i,this.kind="letDeclaration",this.startSourceSpan=null,this.endSourceSpan=null}visit(e,t){return e.visitLetDeclaration(this,t)}};function XT(e,t,r=null){let n=[],i=e.visit?s=>e.visit(s,r)||s.visit(e,r):s=>s.visit(e,r);return t.forEach(s=>{let a=i(s);a&&n.push(a)}),n}var QU=class{constructor(){}visitElement(e,t){this.visitChildren(t,r=>{r(e.attrs),r(e.directives),r(e.children)})}visitAttribute(e,t){}visitText(e,t){}visitCdata(e,t){}visitComment(e,t){}visitDocType(e,t){}visitExpansion(e,t){return this.visitChildren(t,r=>{r(e.cases)})}visitExpansionCase(e,t){}visitBlock(e,t){this.visitChildren(t,r=>{r(e.parameters),r(e.children)})}visitBlockParameter(e,t){}visitLetDeclaration(e,t){}visitComponent(e,t){this.visitChildren(t,r=>{r(e.attrs),r(e.children)})}visitDirective(e,t){this.visitChildren(t,r=>{r(e.attrs)})}visitChildren(e,t){let r=[],n=this;function i(s){s&&r.push(XT(n,s,e))}return t(i),Array.prototype.concat.apply([],r)}},Bu={AElig:"Æ",AMP:"&",amp:"&",Aacute:"Á",Abreve:"Ă",Acirc:"Â",Acy:"А",Afr:"𝔄",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"𝔸",ApplyFunction:"⁡",af:"⁡",Aring:"Å",angst:"Å",Ascr:"𝒜",Assign:"≔",colone:"≔",coloneq:"≔",Atilde:"Ã",Auml:"Ä",Backslash:"∖",setminus:"∖",setmn:"∖",smallsetminus:"∖",ssetmn:"∖",Barv:"⫧",Barwed:"⌆",doublebarwedge:"⌆",Bcy:"Б",Because:"∵",becaus:"∵",because:"∵",Bernoullis:"ℬ",Bscr:"ℬ",bernou:"ℬ",Beta:"Β",Bfr:"𝔅",Bopf:"𝔹",Breve:"˘",breve:"˘",Bumpeq:"≎",HumpDownHump:"≎",bump:"≎",CHcy:"Ч",COPY:"©",copy:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",DD:"ⅅ",Cayleys:"ℭ",Cfr:"ℭ",Ccaron:"Č",Ccedil:"Ç",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"¸",cedil:"¸",CenterDot:"·",centerdot:"·",middot:"·",Chi:"Χ",CircleDot:"⊙",odot:"⊙",CircleMinus:"⊖",ominus:"⊖",CirclePlus:"⊕",oplus:"⊕",CircleTimes:"⊗",otimes:"⊗",ClockwiseContourIntegral:"∲",cwconint:"∲",CloseCurlyDoubleQuote:"”",rdquo:"”",rdquor:"”",CloseCurlyQuote:"’",rsquo:"’",rsquor:"’",Colon:"∷",Proportion:"∷",Colone:"⩴",Congruent:"≡",equiv:"≡",Conint:"∯",DoubleContourIntegral:"∯",ContourIntegral:"∮",conint:"∮",oint:"∮",Copf:"ℂ",complexes:"ℂ",Coproduct:"∐",coprod:"∐",CounterClockwiseContourIntegral:"∳",awconint:"∳",Cross:"⨯",Cscr:"𝒞",Cup:"⋓",CupCap:"≍",asympeq:"≍",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",ddagger:"‡",Darr:"↡",Dashv:"⫤",DoubleLeftTee:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",nabla:"∇",Delta:"Δ",Dfr:"𝔇",DiacriticalAcute:"´",acute:"´",DiacriticalDot:"˙",dot:"˙",DiacriticalDoubleAcute:"˝",dblac:"˝",DiacriticalGrave:"`",grave:"`",DiacriticalTilde:"˜",tilde:"˜",Diamond:"⋄",diam:"⋄",diamond:"⋄",DifferentialD:"ⅆ",dd:"ⅆ",Dopf:"𝔻",Dot:"¨",DoubleDot:"¨",die:"¨",uml:"¨",DotDot:"⃜",DotEqual:"≐",doteq:"≐",esdot:"≐",DoubleDownArrow:"⇓",Downarrow:"⇓",dArr:"⇓",DoubleLeftArrow:"⇐",Leftarrow:"⇐",lArr:"⇐",DoubleLeftRightArrow:"⇔",Leftrightarrow:"⇔",hArr:"⇔",iff:"⇔",DoubleLongLeftArrow:"⟸",Longleftarrow:"⟸",xlArr:"⟸",DoubleLongLeftRightArrow:"⟺",Longleftrightarrow:"⟺",xhArr:"⟺",DoubleLongRightArrow:"⟹",Longrightarrow:"⟹",xrArr:"⟹",DoubleRightArrow:"⇒",Implies:"⇒",Rightarrow:"⇒",rArr:"⇒",DoubleRightTee:"⊨",vDash:"⊨",DoubleUpArrow:"⇑",Uparrow:"⇑",uArr:"⇑",DoubleUpDownArrow:"⇕",Updownarrow:"⇕",vArr:"⇕",DoubleVerticalBar:"∥",par:"∥",parallel:"∥",shortparallel:"∥",spar:"∥",DownArrow:"↓",ShortDownArrow:"↓",darr:"↓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",duarr:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",leftharpoondown:"↽",lhard:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",rhard:"⇁",rightharpoondown:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",top:"⊤",DownTeeArrow:"↧",mapstodown:"↧",Dscr:"𝒟",Dstrok:"Đ",ENG:"Ŋ",ETH:"Ð",Eacute:"É",Ecaron:"Ě",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"𝔈",Egrave:"È",Element:"∈",in:"∈",isin:"∈",isinv:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"𝔼",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",eqsim:"≂",esim:"≂",Equilibrium:"⇌",rightleftharpoons:"⇌",rlhar:"⇌",Escr:"ℰ",expectation:"ℰ",Esim:"⩳",Eta:"Η",Euml:"Ë",Exists:"∃",exist:"∃",ExponentialE:"ⅇ",ee:"ⅇ",exponentiale:"ⅇ",Fcy:"Ф",Ffr:"𝔉",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",blacksquare:"▪",squarf:"▪",squf:"▪",Fopf:"𝔽",ForAll:"∀",forall:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",GT:">",gt:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"𝔊",Gg:"⋙",ggg:"⋙",Gopf:"𝔾",GreaterEqual:"≥",ge:"≥",geq:"≥",GreaterEqualLess:"⋛",gel:"⋛",gtreqless:"⋛",GreaterFullEqual:"≧",gE:"≧",geqq:"≧",GreaterGreater:"⪢",GreaterLess:"≷",gl:"≷",gtrless:"≷",GreaterSlantEqual:"⩾",geqslant:"⩾",ges:"⩾",GreaterTilde:"≳",gsim:"≳",gtrsim:"≳",Gscr:"𝒢",Gt:"≫",NestedGreaterGreater:"≫",gg:"≫",HARDcy:"Ъ",Hacek:"ˇ",caron:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",Poincareplane:"ℌ",HilbertSpace:"ℋ",Hscr:"ℋ",hamilt:"ℋ",Hopf:"ℍ",quaternions:"ℍ",HorizontalLine:"─",boxh:"─",Hstrok:"Ħ",HumpEqual:"≏",bumpe:"≏",bumpeq:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacute:"Í",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"ℑ",Im:"ℑ",image:"ℑ",imagpart:"ℑ",Igrave:"Ì",Imacr:"Ī",ImaginaryI:"ⅈ",ii:"ⅈ",Int:"∬",Integral:"∫",int:"∫",Intersection:"⋂",bigcap:"⋂",xcap:"⋂",InvisibleComma:"⁣",ic:"⁣",InvisibleTimes:"⁢",it:"⁢",Iogon:"Į",Iopf:"𝕀",Iota:"Ι",Iscr:"ℐ",imagline:"ℐ",Itilde:"Ĩ",Iukcy:"І",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",LJcy:"Љ",LT:"<",lt:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Lscr:"ℒ",lagran:"ℒ",Larr:"↞",twoheadleftarrow:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",lang:"⟨",langle:"⟨",LeftArrow:"←",ShortLeftArrow:"←",larr:"←",leftarrow:"←",slarr:"←",LeftArrowBar:"⇤",larrb:"⇤",LeftArrowRightArrow:"⇆",leftrightarrows:"⇆",lrarr:"⇆",LeftCeiling:"⌈",lceil:"⌈",LeftDoubleBracket:"⟦",lobrk:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",dharl:"⇃",downharpoonleft:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",lfloor:"⌊",LeftRightArrow:"↔",harr:"↔",leftrightarrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",dashv:"⊣",LeftTeeArrow:"↤",mapstoleft:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",vartriangleleft:"⊲",vltri:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",ltrie:"⊴",trianglelefteq:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",uharl:"↿",upharpoonleft:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",leftharpoonup:"↼",lharu:"↼",LeftVectorBar:"⥒",LessEqualGreater:"⋚",leg:"⋚",lesseqgtr:"⋚",LessFullEqual:"≦",lE:"≦",leqq:"≦",LessGreater:"≶",lessgtr:"≶",lg:"≶",LessLess:"⪡",LessSlantEqual:"⩽",leqslant:"⩽",les:"⩽",LessTilde:"≲",lesssim:"≲",lsim:"≲",Lfr:"𝔏",Ll:"⋘",Lleftarrow:"⇚",lAarr:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",longleftarrow:"⟵",xlarr:"⟵",LongLeftRightArrow:"⟷",longleftrightarrow:"⟷",xharr:"⟷",LongRightArrow:"⟶",longrightarrow:"⟶",xrarr:"⟶",Lopf:"𝕃",LowerLeftArrow:"↙",swarr:"↙",swarrow:"↙",LowerRightArrow:"↘",searr:"↘",searrow:"↘",Lsh:"↰",lsh:"↰",Lstrok:"Ł",Lt:"≪",NestedLessLess:"≪",ll:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mscr:"ℳ",phmmat:"ℳ",Mfr:"𝔐",MinusPlus:"∓",mnplus:"∓",mp:"∓",Mopf:"𝕄",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",ZeroWidthSpace:"​",NewLine:` +`,Nfr:"𝔑",NoBreak:"⁠",NonBreakingSpace:" ",nbsp:" ",Nopf:"ℕ",naturals:"ℕ",Not:"⫬",NotCongruent:"≢",nequiv:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",npar:"∦",nparallel:"∦",nshortparallel:"∦",nspar:"∦",NotElement:"∉",notin:"∉",notinva:"∉",NotEqual:"≠",ne:"≠",NotEqualTilde:"≂̸",nesim:"≂̸",NotExists:"∄",nexist:"∄",nexists:"∄",NotGreater:"≯",ngt:"≯",ngtr:"≯",NotGreaterEqual:"≱",nge:"≱",ngeq:"≱",NotGreaterFullEqual:"≧̸",ngE:"≧̸",ngeqq:"≧̸",NotGreaterGreater:"≫̸",nGtv:"≫̸",NotGreaterLess:"≹",ntgl:"≹",NotGreaterSlantEqual:"⩾̸",ngeqslant:"⩾̸",nges:"⩾̸",NotGreaterTilde:"≵",ngsim:"≵",NotHumpDownHump:"≎̸",nbump:"≎̸",NotHumpEqual:"≏̸",nbumpe:"≏̸",NotLeftTriangle:"⋪",nltri:"⋪",ntriangleleft:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",nltrie:"⋬",ntrianglelefteq:"⋬",NotLess:"≮",nless:"≮",nlt:"≮",NotLessEqual:"≰",nle:"≰",nleq:"≰",NotLessGreater:"≸",ntlg:"≸",NotLessLess:"≪̸",nLtv:"≪̸",NotLessSlantEqual:"⩽̸",nleqslant:"⩽̸",nles:"⩽̸",NotLessTilde:"≴",nlsim:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",npr:"⊀",nprec:"⊀",NotPrecedesEqual:"⪯̸",npre:"⪯̸",npreceq:"⪯̸",NotPrecedesSlantEqual:"⋠",nprcue:"⋠",NotReverseElement:"∌",notni:"∌",notniva:"∌",NotRightTriangle:"⋫",nrtri:"⋫",ntriangleright:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",nrtrie:"⋭",ntrianglerighteq:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",nsqsube:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",nsqsupe:"⋣",NotSubset:"⊂⃒",nsubset:"⊂⃒",vnsub:"⊂⃒",NotSubsetEqual:"⊈",nsube:"⊈",nsubseteq:"⊈",NotSucceeds:"⊁",nsc:"⊁",nsucc:"⊁",NotSucceedsEqual:"⪰̸",nsce:"⪰̸",nsucceq:"⪰̸",NotSucceedsSlantEqual:"⋡",nsccue:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",nsupset:"⊃⃒",vnsup:"⊃⃒",NotSupersetEqual:"⊉",nsupe:"⊉",nsupseteq:"⊉",NotTilde:"≁",nsim:"≁",NotTildeEqual:"≄",nsime:"≄",nsimeq:"≄",NotTildeFullEqual:"≇",ncong:"≇",NotTildeTilde:"≉",nap:"≉",napprox:"≉",NotVerticalBar:"∤",nmid:"∤",nshortmid:"∤",nsmid:"∤",Nscr:"𝒩",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacute:"Ó",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",ohm:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",ldquo:"“",OpenCurlyQuote:"‘",lsquo:"‘",Or:"⩔",Oscr:"𝒪",Oslash:"Ø",Otilde:"Õ",Otimes:"⨷",Ouml:"Ö",OverBar:"‾",oline:"‾",OverBrace:"⏞",OverBracket:"⎴",tbrk:"⎴",OverParenthesis:"⏜",PartialD:"∂",part:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",plusmn:"±",pm:"±",Popf:"ℙ",primes:"ℙ",Pr:"⪻",Precedes:"≺",pr:"≺",prec:"≺",PrecedesEqual:"⪯",pre:"⪯",preceq:"⪯",PrecedesSlantEqual:"≼",prcue:"≼",preccurlyeq:"≼",PrecedesTilde:"≾",precsim:"≾",prsim:"≾",Prime:"″",Product:"∏",prod:"∏",Proportional:"∝",prop:"∝",propto:"∝",varpropto:"∝",vprop:"∝",Pscr:"𝒫",Psi:"Ψ",QUOT:'"',quot:'"',Qfr:"𝔔",Qopf:"ℚ",rationals:"ℚ",Qscr:"𝒬",RBarr:"⤐",drbkarow:"⤐",REG:"®",circledR:"®",reg:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",twoheadrightarrow:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",Rfr:"ℜ",real:"ℜ",realpart:"ℜ",ReverseElement:"∋",SuchThat:"∋",ni:"∋",niv:"∋",ReverseEquilibrium:"⇋",leftrightharpoons:"⇋",lrhar:"⇋",ReverseUpEquilibrium:"⥯",duhar:"⥯",Rho:"Ρ",RightAngleBracket:"⟩",rang:"⟩",rangle:"⟩",RightArrow:"→",ShortRightArrow:"→",rarr:"→",rightarrow:"→",srarr:"→",RightArrowBar:"⇥",rarrb:"⇥",RightArrowLeftArrow:"⇄",rightleftarrows:"⇄",rlarr:"⇄",RightCeiling:"⌉",rceil:"⌉",RightDoubleBracket:"⟧",robrk:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",dharr:"⇂",downharpoonright:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rfloor:"⌋",RightTee:"⊢",vdash:"⊢",RightTeeArrow:"↦",map:"↦",mapsto:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",vartriangleright:"⊳",vrtri:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",rtrie:"⊵",trianglerighteq:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",uharr:"↾",upharpoonright:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",rharu:"⇀",rightharpoonup:"⇀",RightVectorBar:"⥓",Ropf:"ℝ",reals:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",rAarr:"⇛",Rscr:"ℛ",realine:"ℛ",Rsh:"↱",rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"𝔖",ShortUpArrow:"↑",UpArrow:"↑",uarr:"↑",uparrow:"↑",Sigma:"Σ",SmallCircle:"∘",compfn:"∘",Sopf:"𝕊",Sqrt:"√",radic:"√",Square:"□",squ:"□",square:"□",SquareIntersection:"⊓",sqcap:"⊓",SquareSubset:"⊏",sqsub:"⊏",sqsubset:"⊏",SquareSubsetEqual:"⊑",sqsube:"⊑",sqsubseteq:"⊑",SquareSuperset:"⊐",sqsup:"⊐",sqsupset:"⊐",SquareSupersetEqual:"⊒",sqsupe:"⊒",sqsupseteq:"⊒",SquareUnion:"⊔",sqcup:"⊔",Sscr:"𝒮",Star:"⋆",sstarf:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",sube:"⊆",subseteq:"⊆",Succeeds:"≻",sc:"≻",succ:"≻",SucceedsEqual:"⪰",sce:"⪰",succeq:"⪰",SucceedsSlantEqual:"≽",sccue:"≽",succcurlyeq:"≽",SucceedsTilde:"≿",scsim:"≿",succsim:"≿",Sum:"∑",sum:"∑",Sup:"⋑",Supset:"⋑",Superset:"⊃",sup:"⊃",supset:"⊃",SupersetEqual:"⊇",supe:"⊇",supseteq:"⊇",THORN:"Þ",TRADE:"™",trade:"™",TSHcy:"Ћ",TScy:"Ц",Tab:" ",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",there4:"∴",therefore:"∴",Theta:"Θ",ThickSpace:"  ",ThinSpace:" ",thinsp:" ",Tilde:"∼",sim:"∼",thicksim:"∼",thksim:"∼",TildeEqual:"≃",sime:"≃",simeq:"≃",TildeFullEqual:"≅",cong:"≅",TildeTilde:"≈",ap:"≈",approx:"≈",asymp:"≈",thickapprox:"≈",thkap:"≈",Topf:"𝕋",TripleDot:"⃛",tdot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",lowbar:"_",UnderBrace:"⏟",UnderBracket:"⎵",bbrk:"⎵",UnderParenthesis:"⏝",Union:"⋃",bigcup:"⋃",xcup:"⋃",UnionPlus:"⊎",uplus:"⊎",Uogon:"Ų",Uopf:"𝕌",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",udarr:"⇅",UpDownArrow:"↕",updownarrow:"↕",varr:"↕",UpEquilibrium:"⥮",udhar:"⥮",UpTee:"⊥",bot:"⊥",bottom:"⊥",perp:"⊥",UpTeeArrow:"↥",mapstoup:"↥",UpperLeftArrow:"↖",nwarr:"↖",nwarrow:"↖",UpperRightArrow:"↗",nearr:"↗",nearrow:"↗",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"𝒰",Utilde:"Ũ",Uuml:"Ü",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",bigvee:"⋁",xvee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",mid:"∣",shortmid:"∣",smid:"∣",VerticalLine:"|",verbar:"|",vert:"|",VerticalSeparator:"❘",VerticalTilde:"≀",wr:"≀",wreath:"≀",VeryThinSpace:" ",hairsp:" ",Vfr:"𝔙",Vopf:"𝕍",Vscr:"𝒱",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",bigwedge:"⋀",xwedge:"⋀",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",Xfr:"𝔛",Xi:"Ξ",Xopf:"𝕏",Xscr:"𝒳",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",Zeta:"Ζ",Zfr:"ℨ",zeetrf:"ℨ",Zopf:"ℤ",integers:"ℤ",Zscr:"𝒵",aacute:"á",abreve:"ă",ac:"∾",mstpos:"∾",acE:"∾̳",acd:"∿",acirc:"â",acy:"а",aelig:"æ",afr:"𝔞",agrave:"à",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",and:"∧",wedge:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",angle:"∠",ange:"⦤",angmsd:"∡",measuredangle:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angzarr:"⍼",aogon:"ą",aopf:"𝕒",apE:"⩰",apacir:"⩯",ape:"≊",approxeq:"≊",apid:"≋",apos:"'",aring:"å",ascr:"𝒶",ast:"*",midast:"*",atilde:"ã",auml:"ä",awint:"⨑",bNot:"⫭",backcong:"≌",bcong:"≌",backepsilon:"϶",bepsi:"϶",backprime:"‵",bprime:"‵",backsim:"∽",bsim:"∽",backsimeq:"⋍",bsime:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrktbrk:"⎶",bcy:"б",bdquo:"„",ldquor:"„",bemptyv:"⦰",beta:"β",beth:"ℶ",between:"≬",twixt:"≬",bfr:"𝔟",bigcirc:"◯",xcirc:"◯",bigodot:"⨀",xodot:"⨀",bigoplus:"⨁",xoplus:"⨁",bigotimes:"⨂",xotime:"⨂",bigsqcup:"⨆",xsqcup:"⨆",bigstar:"★",starf:"★",bigtriangledown:"▽",xdtri:"▽",bigtriangleup:"△",xutri:"△",biguplus:"⨄",xuplus:"⨄",bkarow:"⤍",rbarr:"⤍",blacklozenge:"⧫",lozf:"⧫",blacktriangle:"▴",utrif:"▴",blacktriangledown:"▾",dtrif:"▾",blacktriangleleft:"◂",ltrif:"◂",blacktriangleright:"▸",rtrif:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bopf:"𝕓",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",minusb:"⊟",boxplus:"⊞",plusb:"⊞",boxtimes:"⊠",timesb:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",brvbar:"¦",bscr:"𝒷",bsemi:"⁏",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bumpE:"⪮",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",ccaps:"⩍",ccaron:"č",ccedil:"ç",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cemptyv:"⦲",cent:"¢",cfr:"𝔠",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",cire:"≗",circlearrowleft:"↺",olarr:"↺",circlearrowright:"↻",orarr:"↻",circledS:"Ⓢ",oS:"Ⓢ",circledast:"⊛",oast:"⊛",circledcirc:"⊚",ocir:"⊚",circleddash:"⊝",odash:"⊝",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",comma:",",commat:"@",comp:"∁",complement:"∁",congdot:"⩭",copf:"𝕔",copysr:"℗",crarr:"↵",cross:"✗",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",curlyeqprec:"⋞",cuesc:"⋟",curlyeqsucc:"⋟",cularr:"↶",curvearrowleft:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curvearrowright:"↷",curarrm:"⤼",curlyvee:"⋎",cuvee:"⋎",curlywedge:"⋏",cuwed:"⋏",curren:"¤",cwint:"∱",cylcty:"⌭",dHar:"⥥",dagger:"†",daleth:"ℸ",dash:"‐",hyphen:"‐",dbkarow:"⤏",rBarr:"⤏",dcaron:"ď",dcy:"д",ddarr:"⇊",downdownarrows:"⇊",ddotseq:"⩷",eDDot:"⩷",deg:"°",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",diamondsuit:"♦",diams:"♦",digamma:"ϝ",gammad:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",llcorner:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",doteqdot:"≑",eDot:"≑",dotminus:"∸",minusd:"∸",dotplus:"∔",plusdo:"∔",dotsquare:"⊡",sdotb:"⊡",drcorn:"⌟",lrcorner:"⌟",drcrop:"⌌",dscr:"𝒹",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",triangledown:"▿",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"≖",eqcirc:"≖",ecirc:"ê",ecolon:"≕",eqcolon:"≕",ecy:"э",edot:"ė",efDot:"≒",fallingdotseq:"≒",efr:"𝔢",eg:"⪚",egrave:"è",egs:"⪖",eqslantgtr:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",eqslantless:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",varnothing:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",straightepsilon:"ϵ",varepsilon:"ϵ",equals:"=",equest:"≟",questeq:"≟",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",risingdotseq:"≓",erarr:"⥱",escr:"ℯ",eta:"η",eth:"ð",euml:"ë",euro:"€",excl:"!",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",fork:"⋔",pitchfork:"⋔",forkv:"⫙",fpartint:"⨍",frac12:"½",half:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",sfrown:"⌢",fscr:"𝒻",gEl:"⪌",gtreqqless:"⪌",gacute:"ǵ",gamma:"γ",gap:"⪆",gtrapprox:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",gimel:"ℷ",gjcy:"ѓ",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gneqq:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gnsim:"⋧",gopf:"𝕘",gscr:"ℊ",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtrdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrarr:"⥸",gvertneqq:"≩︀",gvnE:"≩︀",hardcy:"ъ",harrcir:"⥈",harrw:"↭",leftrightsquigarrow:"↭",hbar:"ℏ",hslash:"ℏ",planck:"ℏ",plankv:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",mldr:"…",hercon:"⊹",hfr:"𝔥",hksearow:"⤥",searhk:"⤥",hkswarow:"⤦",swarhk:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",larrhk:"↩",hookrightarrow:"↪",rarrhk:"↪",hopf:"𝕙",horbar:"―",hscr:"𝒽",hstrok:"ħ",hybull:"⁃",iacute:"í",icirc:"î",icy:"и",iecy:"е",iexcl:"¡",ifr:"𝔦",igrave:"ì",iiiint:"⨌",qint:"⨌",iiint:"∭",tint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",imath:"ı",inodot:"ı",imof:"⊷",imped:"Ƶ",incare:"℅",infin:"∞",infintie:"⧝",intcal:"⊺",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iprod:"⨼",iocy:"ё",iogon:"į",iopf:"𝕚",iota:"ι",iquest:"¿",iscr:"𝒾",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",itilde:"ĩ",iukcy:"і",iuml:"ï",jcirc:"ĵ",jcy:"й",jfr:"𝔧",jmath:"ȷ",jopf:"𝕛",jscr:"𝒿",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",varkappa:"ϰ",kcedil:"ķ",kcy:"к",kfr:"𝔨",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"𝕜",kscr:"𝓀",lAtail:"⤛",lBarr:"⤎",lEg:"⪋",lesseqqgtr:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lambda:"λ",langd:"⦑",lap:"⪅",lessapprox:"⪅",laquo:"«",larrbfs:"⤟",larrfs:"⤝",larrlp:"↫",looparrowleft:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",leftarrowtail:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lcub:"{",lbrack:"[",lsqb:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lcy:"л",ldca:"⤶",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leq:"≤",leftleftarrows:"⇇",llarr:"⇇",leftthreetimes:"⋋",lthree:"⋋",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessdot:"⋖",ltdot:"⋖",lfisht:"⥼",lfr:"𝔩",lgE:"⪑",lharul:"⥪",lhblk:"▄",ljcy:"љ",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lneqq:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lnsim:"⋦",loang:"⟬",loarr:"⇽",longmapsto:"⟼",xmap:"⟼",looparrowright:"↬",rarrlp:"↬",lopar:"⦅",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",loz:"◊",lozenge:"◊",lpar:"(",lparlt:"⦓",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",lsime:"⪍",lsimg:"⪏",lsquor:"‚",sbquo:"‚",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",triangleleft:"◃",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",macr:"¯",strns:"¯",male:"♂",malt:"✠",maltese:"✠",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",mfr:"𝔪",mho:"℧",micro:"µ",midcir:"⫰",minus:"−",minusdu:"⨪",mlcp:"⫛",models:"⊧",mopf:"𝕞",mscr:"𝓂",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nLeftarrow:"⇍",nlArr:"⇍",nLeftrightarrow:"⇎",nhArr:"⇎",nLl:"⋘̸",nLt:"≪⃒",nRightarrow:"⇏",nrArr:"⇏",nVDash:"⊯",nVdash:"⊮",nacute:"ń",nang:"∠⃒",napE:"⩰̸",napid:"≋̸",napos:"ʼn",natur:"♮",natural:"♮",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",neArr:"⇗",nearhk:"⤤",nedot:"≐̸",nesear:"⤨",toea:"⤨",nfr:"𝔫",nharr:"↮",nleftrightarrow:"↮",nhpar:"⫲",nis:"⋼",nisd:"⋺",njcy:"њ",nlE:"≦̸",nleqq:"≦̸",nlarr:"↚",nleftarrow:"↚",nldr:"‥",nopf:"𝕟",not:"¬",notinE:"⋹̸",notindot:"⋵̸",notinvb:"⋷",notinvc:"⋶",notnivb:"⋾",notnivc:"⋽",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",nrarr:"↛",nrightarrow:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nscr:"𝓃",nsub:"⊄",nsubE:"⫅̸",nsubseteqq:"⫅̸",nsup:"⊅",nsupE:"⫆̸",nsupseteqq:"⫆̸",ntilde:"ñ",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwnear:"⤧",oacute:"ó",ocirc:"ô",ocy:"о",odblac:"ő",odiv:"⨸",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"𝔬",ogon:"˛",ograve:"ò",ogt:"⧁",ohbar:"⦵",olcir:"⦾",olcross:"⦻",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",oopf:"𝕠",opar:"⦷",operp:"⦹",or:"∨",vee:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",oscr:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oslash:"ø",osol:"⊘",otilde:"õ",otimesas:"⨶",ouml:"ö",ovbar:"⌽",para:"¶",parsim:"⫳",parsl:"⫽",pcy:"п",percnt:"%",period:".",permil:"‰",pertenk:"‱",pfr:"𝔭",phi:"φ",phiv:"ϕ",straightphi:"ϕ",varphi:"ϕ",phone:"☎",pi:"π",piv:"ϖ",varpi:"ϖ",planckh:"ℎ",plus:"+",plusacir:"⨣",pluscir:"⨢",plusdu:"⨥",pluse:"⩲",plussim:"⨦",plustwo:"⨧",pointint:"⨕",popf:"𝕡",pound:"£",prE:"⪳",prap:"⪷",precapprox:"⪷",precnapprox:"⪹",prnap:"⪹",precneqq:"⪵",prnE:"⪵",precnsim:"⋨",prnsim:"⋨",prime:"′",profalar:"⌮",profline:"⌒",profsurf:"⌓",prurel:"⊰",pscr:"𝓅",psi:"ψ",puncsp:" ",qfr:"𝔮",qopf:"𝕢",qprime:"⁗",qscr:"𝓆",quatint:"⨖",quest:"?",rAtail:"⤜",rHar:"⥤",race:"∽̱",racute:"ŕ",raemptyv:"⦳",rangd:"⦒",range:"⦥",raquo:"»",rarrap:"⥵",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rightarrowtail:"↣",rarrw:"↝",rightsquigarrow:"↝",ratail:"⤚",ratio:"∶",rbbrk:"❳",rbrace:"}",rcub:"}",rbrack:"]",rsqb:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdsh:"↳",rect:"▭",rfisht:"⥽",rfr:"𝔯",rharul:"⥬",rho:"ρ",rhov:"ϱ",varrho:"ϱ",rightrightarrows:"⇉",rrarr:"⇉",rightthreetimes:"⋌",rthree:"⋌",ring:"˚",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",ropar:"⦆",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rsaquo:"›",rscr:"𝓇",rtimes:"⋊",rtri:"▹",triangleright:"▹",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",scE:"⪴",scap:"⪸",succapprox:"⪸",scaron:"š",scedil:"ş",scirc:"ŝ",scnE:"⪶",succneqq:"⪶",scnap:"⪺",succnapprox:"⪺",scnsim:"⋩",succnsim:"⋩",scpolint:"⨓",scy:"с",sdot:"⋅",sdote:"⩦",seArr:"⇘",sect:"§",semi:";",seswar:"⤩",tosa:"⤩",sext:"✶",sfr:"𝔰",sharp:"♯",shchcy:"щ",shcy:"ш",shy:"­",sigma:"σ",sigmaf:"ς",sigmav:"ς",varsigma:"ς",simdot:"⩪",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",smashp:"⨳",smeparsl:"⧤",smile:"⌣",ssmile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",spades:"♠",spadesuit:"♠",sqcaps:"⊓︀",sqcups:"⊔︀",sscr:"𝓈",star:"☆",sub:"⊂",subset:"⊂",subE:"⫅",subseteqq:"⫅",subdot:"⪽",subedot:"⫃",submult:"⫁",subnE:"⫋",subsetneqq:"⫋",subne:"⊊",subsetneq:"⊊",subplus:"⪿",subrarr:"⥹",subsim:"⫇",subsub:"⫕",subsup:"⫓",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",supE:"⫆",supseteqq:"⫆",supdot:"⪾",supdsub:"⫘",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supsetneqq:"⫌",supne:"⊋",supsetneq:"⊋",supplus:"⫀",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swnwar:"⤪",szlig:"ß",target:"⌖",tau:"τ",tcaron:"ť",tcedil:"ţ",tcy:"т",telrec:"⌕",tfr:"𝔱",theta:"θ",thetasym:"ϑ",thetav:"ϑ",vartheta:"ϑ",thorn:"þ",times:"×",timesbar:"⨱",timesd:"⨰",topbot:"⌶",topcir:"⫱",topf:"𝕥",topfork:"⫚",tprime:"‴",triangle:"▵",utri:"▵",triangleq:"≜",trie:"≜",tridot:"◬",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",uHar:"⥣",uacute:"ú",ubrcy:"ў",ubreve:"ŭ",ucirc:"û",ucy:"у",udblac:"ű",ufisht:"⥾",ufr:"𝔲",ugrave:"ù",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",uogon:"ų",uopf:"𝕦",upsi:"υ",upsilon:"υ",upuparrows:"⇈",uuarr:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"𝓊",utdot:"⋰",utilde:"ũ",uuml:"ü",uwangle:"⦧",vBar:"⫨",vBarv:"⫩",vangrt:"⦜",varsubsetneq:"⊊︀",vsubne:"⊊︀",varsubsetneqq:"⫋︀",vsubnE:"⫋︀",varsupsetneq:"⊋︀",vsupne:"⊋︀",varsupsetneqq:"⫌︀",vsupnE:"⫌︀",vcy:"в",veebar:"⊻",veeeq:"≚",vellip:"⋮",vfr:"𝔳",vopf:"𝕧",vscr:"𝓋",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedgeq:"≙",weierp:"℘",wp:"℘",wfr:"𝔴",wopf:"𝕨",wscr:"𝓌",xfr:"𝔵",xi:"ξ",xnis:"⋻",xopf:"𝕩",xscr:"𝓍",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",yen:"¥",yfr:"𝔶",yicy:"ї",yopf:"𝕪",yscr:"𝓎",yucy:"ю",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeta:"ζ",zfr:"𝔷",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",zscr:"𝓏",zwj:"‍",zwnj:"‌"},YU="";Bu.ngsp=YU;var L=function(e){return e[e.TAG_OPEN_START=0]="TAG_OPEN_START",e[e.TAG_OPEN_END=1]="TAG_OPEN_END",e[e.TAG_OPEN_END_VOID=2]="TAG_OPEN_END_VOID",e[e.TAG_CLOSE=3]="TAG_CLOSE",e[e.INCOMPLETE_TAG_OPEN=4]="INCOMPLETE_TAG_OPEN",e[e.TEXT=5]="TEXT",e[e.ESCAPABLE_RAW_TEXT=6]="ESCAPABLE_RAW_TEXT",e[e.RAW_TEXT=7]="RAW_TEXT",e[e.INTERPOLATION=8]="INTERPOLATION",e[e.ENCODED_ENTITY=9]="ENCODED_ENTITY",e[e.COMMENT_START=10]="COMMENT_START",e[e.COMMENT_END=11]="COMMENT_END",e[e.CDATA_START=12]="CDATA_START",e[e.CDATA_END=13]="CDATA_END",e[e.ATTR_NAME=14]="ATTR_NAME",e[e.ATTR_QUOTE=15]="ATTR_QUOTE",e[e.ATTR_VALUE_TEXT=16]="ATTR_VALUE_TEXT",e[e.ATTR_VALUE_INTERPOLATION=17]="ATTR_VALUE_INTERPOLATION",e[e.DOC_TYPE_START=18]="DOC_TYPE_START",e[e.DOC_TYPE_END=19]="DOC_TYPE_END",e[e.EXPANSION_FORM_START=20]="EXPANSION_FORM_START",e[e.EXPANSION_CASE_VALUE=21]="EXPANSION_CASE_VALUE",e[e.EXPANSION_CASE_EXP_START=22]="EXPANSION_CASE_EXP_START",e[e.EXPANSION_CASE_EXP_END=23]="EXPANSION_CASE_EXP_END",e[e.EXPANSION_FORM_END=24]="EXPANSION_FORM_END",e[e.BLOCK_OPEN_START=25]="BLOCK_OPEN_START",e[e.BLOCK_OPEN_END=26]="BLOCK_OPEN_END",e[e.BLOCK_CLOSE=27]="BLOCK_CLOSE",e[e.BLOCK_PARAMETER=28]="BLOCK_PARAMETER",e[e.INCOMPLETE_BLOCK_OPEN=29]="INCOMPLETE_BLOCK_OPEN",e[e.LET_START=30]="LET_START",e[e.LET_VALUE=31]="LET_VALUE",e[e.LET_END=32]="LET_END",e[e.INCOMPLETE_LET=33]="INCOMPLETE_LET",e[e.COMPONENT_OPEN_START=34]="COMPONENT_OPEN_START",e[e.COMPONENT_OPEN_END=35]="COMPONENT_OPEN_END",e[e.COMPONENT_OPEN_END_VOID=36]="COMPONENT_OPEN_END_VOID",e[e.COMPONENT_CLOSE=37]="COMPONENT_CLOSE",e[e.INCOMPLETE_COMPONENT_OPEN=38]="INCOMPLETE_COMPONENT_OPEN",e[e.DIRECTIVE_NAME=39]="DIRECTIVE_NAME",e[e.DIRECTIVE_OPEN=40]="DIRECTIVE_OPEN",e[e.DIRECTIVE_CLOSE=41]="DIRECTIVE_CLOSE",e[e.EOF=42]="EOF",e}({}),ZU=class{constructor(e,t,r){this.tokens=e,this.errors=t,this.nonNormalizedIcuExpressions=r}};function eV(e,t,r,n={}){let i=new iV(new JT(e,t),r,n);return i.tokenize(),new ZU(pV(i.tokens),i.errors,i.nonNormalizedIcuExpressions)}var tV=/\r\n?/g;function Wi(e){return`Unexpected character "${e===0?"EOF":String.fromCharCode(e)}"`}function Y2(e){return`Unknown entity "${e}" - use the "&#;" or "&#x;" syntax`}function rV(e,t){return`Unable to parse entity "${t}" - ${e} character reference entities must end with ";"`}var $f=function(e){return e.HEX="hexadecimal",e.DEC="decimal",e}($f||{}),nV=["@if","@else","@for","@switch","@case","@default","@empty","@defer","@placeholder","@loading","@error"],vo={start:"{{",end:"}}"},iV=class{constructor(e,t,r){this._getTagContentType=t,this._currentTokenStart=null,this._currentTokenType=null,this._expansionCaseStack=[],this._openDirectiveCount=0,this._inInterpolation=!1,this._fullNameStack=[],this.tokens=[],this.errors=[],this.nonNormalizedIcuExpressions=[],this._tokenizeIcu=r.tokenizeExpansionForms||!1,this._leadingTriviaCodePoints=r.leadingTriviaChars&&r.leadingTriviaChars.map(i=>i.codePointAt(0)||0),this._canSelfClose=r.canSelfClose||!1,this._allowHtmComponentClosingTags=r.allowHtmComponentClosingTags||!1;let n=r.range||{endPos:e.content.length,startPos:0,startLine:0,startCol:0};this._cursor=r.escapedString?new hV(e,n):new KT(e,n),this._preserveLineEndings=r.preserveLineEndings||!1,this._i18nNormalizeLineEndingsInICUs=r.i18nNormalizeLineEndingsInICUs||!1,this._tokenizeBlocks=r.tokenizeBlocks??!0,this._tokenizeLet=r.tokenizeLet??!0,this._selectorlessEnabled=r.selectorlessEnabled??!1;try{this._cursor.init()}catch(i){this.handleError(i)}}_processCarriageReturns(e){return this._preserveLineEndings?e:e.replace(tV,` +`)}tokenize(){for(;this._cursor.peek()!==0;){let e=this._cursor.clone();try{if(this._attemptCharCode(60))if(this._attemptCharCode(33))this._attemptStr("[CDATA[")?this._consumeCdata(e):this._attemptStr("--")?this._consumeComment(e):this._attemptStrCaseInsensitive("doctype")?this._consumeDocType(e):this._consumeBogusComment(e);else if(this._attemptCharCode(47))this._consumeTagClose(e);else{let t=this._cursor.clone();this._attemptCharCode(63)?(this._cursor=t,this._consumeBogusComment(e)):this._consumeTagOpen(e)}else this._tokenizeLet&&this._cursor.peek()===64&&!this._inInterpolation&&this._isLetStart()?this._consumeLetDeclaration(e):this._tokenizeBlocks&&this._isBlockStart()?this._consumeBlockStart(e):this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansionCase()&&!this._isInExpansionForm()&&this._attemptCharCode(125)?this._consumeBlockEnd(e):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeWithInterpolation(L.TEXT,L.INTERPOLATION,()=>this._isTextEnd(),()=>this._isTagStart())}catch(t){this.handleError(t)}}this._beginToken(L.EOF),this._endToken([])}_getBlockName(){let e=!1,t=this._cursor.clone();return this._attemptCharCodeUntilFn(r=>Wc(r)?!e:cV(r)?(e=!0,!1):!0),this._cursor.getChars(t).trim()}_consumeBlockStart(e){this._requireCharCode(64),this._beginToken(L.BLOCK_OPEN_START,e);let t=this._endToken([this._getBlockName()]);if(this._cursor.peek()===40)if(this._cursor.advance(),this._consumeBlockParameters(),this._attemptCharCodeUntilFn(Ie),this._attemptCharCode(41))this._attemptCharCodeUntilFn(Ie);else{t.type=L.INCOMPLETE_BLOCK_OPEN;return}this._attemptCharCode(123)?(this._beginToken(L.BLOCK_OPEN_END),this._endToken([])):this._isBlockStart()&&(t.parts[0]==="case"||t.parts[0]==="default")?(this._beginToken(L.BLOCK_OPEN_END),this._endToken([]),this._beginToken(L.BLOCK_CLOSE),this._endToken([])):t.type=L.INCOMPLETE_BLOCK_OPEN}_consumeBlockEnd(e){this._beginToken(L.BLOCK_CLOSE,e),this._endToken([])}_consumeBlockParameters(){for(this._attemptCharCodeUntilFn(eD);this._cursor.peek()!==41&&this._cursor.peek()!==0;){this._beginToken(L.BLOCK_PARAMETER);let e=this._cursor.clone(),t=null,r=0;for(;this._cursor.peek()!==59&&this._cursor.peek()!==0||t!==null;){let n=this._cursor.peek();if(n===92)this._cursor.advance();else if(n===t)t=null;else if(t===null&&td(n))t=n;else if(n===40&&t===null)r++;else if(n===41&&t===null){if(r===0)break;r>0&&r--}this._cursor.advance()}this._endToken([this._cursor.getChars(e)]),this._attemptCharCodeUntilFn(eD)}}_consumeLetDeclaration(e){if(this._requireStr("@let"),this._beginToken(L.LET_START,e),Wc(this._cursor.peek()))this._attemptCharCodeUntilFn(Ie);else{let r=this._endToken([this._cursor.getChars(e)]);r.type=L.INCOMPLETE_LET;return}let t=this._endToken([this._getLetDeclarationName()]);if(this._attemptCharCodeUntilFn(Ie),!this._attemptCharCode(61)){t.type=L.INCOMPLETE_LET;return}this._attemptCharCodeUntilFn(r=>Ie(r)&&!Jc(r)),this._consumeLetDeclarationValue(),this._cursor.peek()===59?(this._beginToken(L.LET_END),this._endToken([]),this._cursor.advance()):(t.type=L.INCOMPLETE_LET,t.sourceSpan=this._cursor.getSpan(e))}_getLetDeclarationName(){let e=this._cursor.clone(),t=!1;return this._attemptCharCodeUntilFn(r=>Nu(r)||r===36||r===95||t&&Up(r)?(t=!0,!1):!0),this._cursor.getChars(e).trim()}_consumeLetDeclarationValue(){let e=this._cursor.clone();for(this._beginToken(L.LET_VALUE,e);this._cursor.peek()!==0;){let t=this._cursor.peek();if(t===59)break;td(t)&&(this._cursor.advance(),this._attemptCharCodeUntilFn(r=>r===92?(this._cursor.advance(),!1):r===t)),this._cursor.advance()}this._endToken([this._cursor.getChars(e)])}_tokenizeExpansionForm(){if(this.isExpansionFormStart())return this._consumeExpansionFormStart(),!0;if(uV(this._cursor.peek())&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._cursor.peek()===125){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1}_beginToken(e,t=this._cursor.clone()){this._currentTokenStart=t,this._currentTokenType=e}_endToken(e,t){if(this._currentTokenStart===null)throw new qs(this._cursor.getSpan(t),"Programming error - attempted to end a token when there was no start to the token");if(this._currentTokenType===null)throw new qs(this._cursor.getSpan(this._currentTokenStart),"Programming error - attempted to end a token which has no token type");let r={type:this._currentTokenType,parts:e,sourceSpan:(t??this._cursor).getSpan(this._currentTokenStart,this._leadingTriviaCodePoints)};return this.tokens.push(r),this._currentTokenStart=null,this._currentTokenType=null,r}_createError(e,t){this._isInExpansionForm()&&(e+=` (Do you have an unescaped "{" in your template? Use "{{ '{' }}") to escape it.)`);let r=new qs(t,e);return this._currentTokenStart=null,this._currentTokenType=null,r}handleError(e){if(e instanceof Sy&&(e=this._createError(e.msg,this._cursor.getSpan(e.cursor))),e instanceof qs)this.errors.push(e);else throw e}_attemptCharCode(e){return this._cursor.peek()===e?(this._cursor.advance(),!0):!1}_attemptCharCodeCaseInsensitive(e){return lV(this._cursor.peek(),e)?(this._cursor.advance(),!0):!1}_requireCharCode(e){let t=this._cursor.clone();if(!this._attemptCharCode(e))throw this._createError(Wi(this._cursor.peek()),this._cursor.getSpan(t))}_attemptStr(e){let t=e.length;if(this._cursor.charsLeft()this._peekStr(e))}_isLetStart(){return this._cursor.peek()===64&&this._peekStr("@let")}_consumeEntity(e){this._beginToken(L.ENCODED_ENTITY);let t=this._cursor.clone();if(this._cursor.advance(),this._attemptCharCode(35)){let r=this._attemptCharCode(120)||this._attemptCharCode(88),n=this._cursor.clone();if(this._attemptCharCodeUntilFn(aV),this._cursor.peek()!=59){this._cursor.advance();let s=r?$f.HEX:$f.DEC;throw this._createError(rV(s,this._cursor.getChars(t)),this._cursor.getSpan())}let i=this._cursor.getChars(n);this._cursor.advance();try{let s=parseInt(i,r?16:10);this._endToken([String.fromCodePoint(s),this._cursor.getChars(t)])}catch{throw this._createError(Y2(this._cursor.getChars(t)),this._cursor.getSpan())}}else{let r=this._cursor.clone();if(this._attemptCharCodeUntilFn(oV),this._cursor.peek()!=59)this._beginToken(e,t),this._cursor=r,this._endToken(["&"]);else{let n=this._cursor.getChars(r);this._cursor.advance();let i=Bu.hasOwnProperty(n)&&Bu[n];if(!i)throw this._createError(Y2(n),this._cursor.getSpan(t));this._endToken([i,`&${n};`])}}}_consumeRawText(e,t){this._beginToken(e?L.ESCAPABLE_RAW_TEXT:L.RAW_TEXT);let r=[];for(;;){let n=this._cursor.clone(),i=t();if(this._cursor=n,i)break;e&&this._cursor.peek()===38?(this._endToken([this._processCarriageReturns(r.join(""))]),r.length=0,this._consumeEntity(L.ESCAPABLE_RAW_TEXT),this._beginToken(L.ESCAPABLE_RAW_TEXT)):r.push(this._readChar())}this._endToken([this._processCarriageReturns(r.join(""))])}_consumeComment(e){this._beginToken(L.COMMENT_START,e),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("-->")),this._beginToken(L.COMMENT_END),this._requireStr("-->"),this._endToken([])}_consumeBogusComment(e){this._beginToken(L.COMMENT_START,e),this._endToken([]),this._consumeRawText(!1,()=>this._cursor.peek()===62),this._beginToken(L.COMMENT_END),this._cursor.advance(),this._endToken([])}_consumeCdata(e){this._beginToken(L.CDATA_START,e),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("]]>")),this._beginToken(L.CDATA_END),this._requireStr("]]>"),this._endToken([])}_consumeDocType(e){this._beginToken(L.DOC_TYPE_START,e),this._endToken([]),this._consumeRawText(!1,()=>this._cursor.peek()===62),this._beginToken(L.DOC_TYPE_END),this._cursor.advance(),this._endToken([])}_consumePrefixAndName(e){let t=this._cursor.clone(),r="";for(;this._cursor.peek()!==58&&!sV(this._cursor.peek());)this._cursor.advance();let n;this._cursor.peek()===58?(r=this._cursor.getChars(t),this._cursor.advance(),n=this._cursor.clone()):n=t,this._requireCharCodeUntilFn(e,r===""?0:1);let i=this._cursor.getChars(n);return[r,i]}_consumeTagOpen(e){let t,r,n,i,s=[];try{if(this._selectorlessEnabled&&Ml(this._cursor.peek()))i=this._consumeComponentOpenStart(e),[n,r,t]=i.parts,r&&(n+=`:${r}`),t&&(n+=`:${t}`),this._attemptCharCodeUntilFn(Ie);else{if(!Nu(this._cursor.peek()))throw this._createError(Wi(this._cursor.peek()),this._cursor.getSpan(e));i=this._consumeTagOpenStart(e),r=i.parts[0],t=n=i.parts[1],this._attemptCharCodeUntilFn(Ie)}for(;!rD(this._cursor.peek());)if(this._selectorlessEnabled&&this._cursor.peek()===64){let o=this._cursor.clone(),u=o.clone();u.advance(),Ml(u.peek())&&this._consumeDirective(o,u)}else{let o=this._consumeAttribute();s.push(o)}i.type===L.COMPONENT_OPEN_START?this._consumeComponentOpenEnd():this._consumeTagOpenEnd()}catch(o){if(o instanceof qs){i?i.type=i.type===L.COMPONENT_OPEN_START?L.INCOMPLETE_COMPONENT_OPEN:L.INCOMPLETE_TAG_OPEN:(this._beginToken(L.TEXT,e),this._endToken(["<"]));return}throw o}if(this._canSelfClose&&this.tokens[this.tokens.length-1].type===L.TAG_OPEN_END_VOID)return;let a=this._getTagContentType(t,r,this._fullNameStack.length>0,s);this._handleFullNameStackForTagOpen(r,t),a===An.RAW_TEXT?this._consumeRawTextWithTagClose(r,i,n,!1):a===An.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(r,i,n,!0)}_consumeRawTextWithTagClose(e,t,r,n){this._consumeRawText(n,()=>!this._attemptCharCode(60)||!this._attemptCharCode(47)||(this._attemptCharCodeUntilFn(Ie),!this._attemptStrCaseInsensitive(e&&t.type!==L.COMPONENT_OPEN_START?`${e}:${r}`:r))?!1:(this._attemptCharCodeUntilFn(Ie),this._attemptCharCode(62))),this._beginToken(t.type===L.COMPONENT_OPEN_START?L.COMPONENT_CLOSE:L.TAG_CLOSE),this._requireCharCodeUntilFn(i=>i===62,3),this._cursor.advance(),this._endToken(t.parts),this._handleFullNameStackForTagClose(e,r)}_consumeTagOpenStart(e){this._beginToken(L.TAG_OPEN_START,e);let t=this._consumePrefixAndName(Ji);return this._endToken(t)}_consumeComponentOpenStart(e){this._beginToken(L.COMPONENT_OPEN_START,e);let t=this._consumeComponentName();return this._endToken(t)}_consumeComponentName(){let e=this._cursor.clone();for(;tD(this._cursor.peek());)this._cursor.advance();let t=this._cursor.getChars(e),r="",n="";return this._cursor.peek()===58&&(this._cursor.advance(),[r,n]=this._consumePrefixAndName(Ji)),[t,r,n]}_consumeAttribute(){let[e,t]=this._consumeAttributeName(),r;return this._attemptCharCodeUntilFn(Ie),this._attemptCharCode(61)&&(this._attemptCharCodeUntilFn(Ie),r=this._consumeAttributeValue()),this._attemptCharCodeUntilFn(Ie),{prefix:e,name:t,value:r}}_consumeAttributeName(){let e=this._cursor.peek();if(e===39||e===34)throw this._createError(Wi(e),this._cursor.getSpan());this._beginToken(L.ATTR_NAME);let t;if(this._openDirectiveCount>0){let n=0;t=i=>{if(this._openDirectiveCount>0){if(i===40)n++;else if(i===41){if(n===0)return!0;n--}}return Ji(i)}}else if(e===91){let n=0;t=i=>(i===91?n++:i===93&&n--,n<=0?Ji(i):Jc(i))}else t=Ji;let r=this._consumePrefixAndName(t);return this._endToken(r),r}_consumeAttributeValue(){let e;if(this._cursor.peek()===39||this._cursor.peek()===34){let t=this._cursor.peek();this._consumeQuote(t);let r=()=>this._cursor.peek()===t;e=this._consumeWithInterpolation(L.ATTR_VALUE_TEXT,L.ATTR_VALUE_INTERPOLATION,r,r),this._consumeQuote(t)}else{let t=()=>Ji(this._cursor.peek());e=this._consumeWithInterpolation(L.ATTR_VALUE_TEXT,L.ATTR_VALUE_INTERPOLATION,t,t)}return e}_consumeQuote(e){this._beginToken(L.ATTR_QUOTE),this._requireCharCode(e),this._endToken([String.fromCodePoint(e)])}_consumeTagOpenEnd(){let e=this._attemptCharCode(47)?L.TAG_OPEN_END_VOID:L.TAG_OPEN_END;this._beginToken(e),this._requireCharCode(62),this._endToken([])}_consumeComponentOpenEnd(){let e=this._attemptCharCode(47)?L.COMPONENT_OPEN_END_VOID:L.COMPONENT_OPEN_END;this._beginToken(e),this._requireCharCode(62),this._endToken([])}_consumeTagClose(e){if(this._selectorlessEnabled){let t=e.clone();for(;t.peek()!==62&&!Ml(t.peek());)t.advance();if(Ml(t.peek())){this._beginToken(L.COMPONENT_CLOSE,e);let r=this._consumeComponentName();this._attemptCharCodeUntilFn(Ie),this._requireCharCode(62),this._endToken(r);return}}if(this._beginToken(L.TAG_CLOSE,e),this._attemptCharCodeUntilFn(Ie),this._allowHtmComponentClosingTags&&this._attemptCharCode(47))this._attemptCharCodeUntilFn(Ie),this._requireCharCode(62),this._endToken([]);else{let[t,r]=this._consumePrefixAndName(Ji);this._attemptCharCodeUntilFn(Ie),this._requireCharCode(62),this._endToken([t,r]),this._handleFullNameStackForTagClose(t,r)}}_consumeExpansionFormStart(){this._beginToken(L.EXPANSION_FORM_START),this._requireCharCode(123),this._endToken([]),this._expansionCaseStack.push(L.EXPANSION_FORM_START),this._beginToken(L.RAW_TEXT);let e=this._readUntil(44),t=this._processCarriageReturns(e);if(this._i18nNormalizeLineEndingsInICUs)this._endToken([t]);else{let n=this._endToken([e]);t!==e&&this.nonNormalizedIcuExpressions.push(n)}this._requireCharCode(44),this._attemptCharCodeUntilFn(Ie),this._beginToken(L.RAW_TEXT);let r=this._readUntil(44);this._endToken([r]),this._requireCharCode(44),this._attemptCharCodeUntilFn(Ie)}_consumeExpansionCaseStart(){this._beginToken(L.EXPANSION_CASE_VALUE);let e=this._readUntil(123).trim();this._endToken([e]),this._attemptCharCodeUntilFn(Ie),this._beginToken(L.EXPANSION_CASE_EXP_START),this._requireCharCode(123),this._endToken([]),this._attemptCharCodeUntilFn(Ie),this._expansionCaseStack.push(L.EXPANSION_CASE_EXP_START)}_consumeExpansionCaseEnd(){this._beginToken(L.EXPANSION_CASE_EXP_END),this._requireCharCode(125),this._endToken([]),this._attemptCharCodeUntilFn(Ie),this._expansionCaseStack.pop()}_consumeExpansionFormEnd(){this._beginToken(L.EXPANSION_FORM_END),this._requireCharCode(125),this._endToken([]),this._expansionCaseStack.pop()}_consumeWithInterpolation(e,t,r,n){this._beginToken(e);let i=[];for(;!r();){let a=this._cursor.clone();this._attemptStr(vo.start)?(this._endToken([this._processCarriageReturns(i.join(""))],a),i.length=0,this._consumeInterpolation(t,a,n),this._beginToken(e)):this._cursor.peek()===38?(this._endToken([this._processCarriageReturns(i.join(""))]),i.length=0,this._consumeEntity(e),this._beginToken(e)):i.push(this._readChar())}this._inInterpolation=!1;let s=this._processCarriageReturns(i.join(""));return this._endToken([s]),s}_consumeInterpolation(e,t,r){let n=[];this._beginToken(e,t),n.push(vo.start);let i=this._cursor.clone(),s=null,a=!1;for(;this._cursor.peek()!==0&&(r===null||!r());){let o=this._cursor.clone();if(this._isTagStart()){this._cursor=o,n.push(this._getProcessedChars(i,o)),this._endToken(n);return}if(s===null)if(this._attemptStr(vo.end)){n.push(this._getProcessedChars(i,o)),n.push(vo.end),this._endToken(n);return}else this._attemptStr("//")&&(a=!0);let u=this._cursor.peek();this._cursor.advance(),u===92?this._cursor.advance():u===s?s=null:!a&&s===null&&td(u)&&(s=u)}n.push(this._getProcessedChars(i,this._cursor)),this._endToken(n)}_consumeDirective(e,t){for(this._requireCharCode(64),this._cursor.advance();tD(this._cursor.peek());)this._cursor.advance();this._beginToken(L.DIRECTIVE_NAME,e);let r=this._cursor.getChars(t);if(this._endToken([r]),this._attemptCharCodeUntilFn(Ie),this._cursor.peek()===40){for(this._openDirectiveCount++,this._beginToken(L.DIRECTIVE_OPEN),this._cursor.advance(),this._endToken([]),this._attemptCharCodeUntilFn(Ie);!rD(this._cursor.peek())&&this._cursor.peek()!==41;)this._consumeAttribute();if(this._attemptCharCodeUntilFn(Ie),this._openDirectiveCount--,this._cursor.peek()!==41){if(this._cursor.peek()===62||this._cursor.peek()===47)return;throw this._createError(Wi(this._cursor.peek()),this._cursor.getSpan(e))}this._beginToken(L.DIRECTIVE_CLOSE),this._cursor.advance(),this._endToken([]),this._attemptCharCodeUntilFn(Ie)}}_getProcessedChars(e,t){return this._processCarriageReturns(t.getChars(e))}_isTextEnd(){return!!(this._isTagStart()||this._cursor.peek()===0||this._tokenizeIcu&&!this._inInterpolation&&(this.isExpansionFormStart()||this._cursor.peek()===125&&this._isInExpansionCase())||this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansion()&&(this._isBlockStart()||this._isLetStart()||this._cursor.peek()===125))}_isTagStart(){if(this._cursor.peek()===60){let e=this._cursor.clone();e.advance();let t=e.peek();if(97<=t&&t<=122||65<=t&&t<=90||t===47||t===33)return!0}return!1}_readUntil(e){let t=this._cursor.clone();return this._attemptUntilChar(e),this._cursor.getChars(t)}_isInExpansion(){return this._isInExpansionCase()||this._isInExpansionForm()}_isInExpansionCase(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===L.EXPANSION_CASE_EXP_START}_isInExpansionForm(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===L.EXPANSION_FORM_START}isExpansionFormStart(){if(this._cursor.peek()!==123)return!1;let e=this._cursor.clone(),t=this._attemptStr(vo.start);return this._cursor=e,!t}_handleFullNameStackForTagOpen(e,t){let r=nu(e,t);(this._fullNameStack.length===0||this._fullNameStack[this._fullNameStack.length-1]===r)&&this._fullNameStack.push(r)}_handleFullNameStackForTagClose(e,t){let r=nu(e,t);this._fullNameStack.length!==0&&this._fullNameStack[this._fullNameStack.length-1]===r&&this._fullNameStack.pop()}};function Ie(e){return!Wc(e)||e===0}function Ji(e){return Wc(e)||e===62||e===60||e===47||e===39||e===34||e===61||e===0}function sV(e){return(e<97||12257)}function aV(e){return e===59||e===0||!VU(e)}function oV(e){return e===59||e===0||!Nu(e)}function uV(e){return e!==125}function lV(e,t){return Z2(e)===Z2(t)}function Z2(e){return e>=97&&e<=122?e-97+65:e}function cV(e){return Nu(e)||Up(e)||e===95}function eD(e){return e!==59&&Ie(e)}function Ml(e){return e===95||e>=65&&e<=90}function tD(e){return Nu(e)||Up(e)||e===95}function rD(e){return e===47||e===62||e===60||e===0}function pV(e){let t=[],r;for(let n=0;n0&&r.indexOf(t.peek())!==-1;)n===t&&(t=t.clone()),t.advance();let i=this.locationFromCursor(t);return new pe(i,this.locationFromCursor(this),n!==t?this.locationFromCursor(n):i)}getChars(t){return this.input.substring(t.state.offset,this.state.offset)}charAt(t){return this.input.charCodeAt(t)}advanceState(t){if(t.offset>=this.end)throw this.state=t,new Sy('Unexpected character "EOF"',this);let r=this.charAt(t.offset);r===10?(t.line++,t.column=0):Jc(r)||t.column++,t.offset++,this.updatePeek(t)}updatePeek(t){t.peek=t.offset>=this.end?0:this.charAt(t.offset)}locationFromCursor(t){return new Lf(t.file,t.state.offset,t.state.line,t.state.column)}},hV=class Mf extends KT{constructor(t,r){t instanceof Mf?(super(t),this.internalState={...t.internalState}):(super(t,r),this.internalState=this.state)}advance(){this.state=this.internalState,super.advance(),this.processEscapeSequence()}init(){super.init(),this.processEscapeSequence()}clone(){return new Mf(this)}getChars(t){let r=t.clone(),n="";for(;r.internalState.offsetthis.internalState.peek;if(t()===92)if(this.internalState={...this.state},this.advanceState(this.internalState),t()===110)this.state.peek=10;else if(t()===114)this.state.peek=13;else if(t()===118)this.state.peek=11;else if(t()===116)this.state.peek=9;else if(t()===98)this.state.peek=8;else if(t()===102)this.state.peek=12;else if(t()===117)if(this.advanceState(this.internalState),t()===123){this.advanceState(this.internalState);let r=this.clone(),n=0;for(;t()!==125;)this.advanceState(this.internalState),n++;this.state.peek=this.decodeHexDigits(r,n)}else{let r=this.clone();this.advanceState(this.internalState),this.advanceState(this.internalState),this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(r,4)}else if(t()===120){this.advanceState(this.internalState);let r=this.clone();this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(r,2)}else if(X2(t())){let r="",n=0,i=this.clone();for(;X2(t())&&n<3;)i=this.clone(),r+=String.fromCodePoint(t()),this.advanceState(this.internalState),n++;this.state.peek=parseInt(r,8),this.internalState=i.internalState}else Jc(this.internalState.peek)?(this.advanceState(this.internalState),this.state=this.internalState):this.state.peek=this.internalState.peek}decodeHexDigits(t,r){let n=this.input.slice(t.internalState.offset,t.internalState.offset+r),i=parseInt(n,16);if(isNaN(i))throw t.state=t.internalState,new Sy("Invalid hexadecimal escape sequence",t);return i}},Sy=class extends Error{constructor(e,t){super(e),this.msg=e,this.cursor=t,Object.setPrototypeOf(this,new.target.prototype)}},pt=class GT extends qs{static create(t,r,n){return new GT(t,r,n)}constructor(t,r,n){super(r,n),this.elementName=t}},dV=class{constructor(e,t){this.rootNodes=e,this.errors=t}},fV=class{constructor(e){this.getTagDefinition=e}parse(e,t,r,n=!1,i){let s=d=>(f,...y)=>d(f.toLowerCase(),...y),a=n?this.getTagDefinition:s(this.getTagDefinition),o=d=>a(d).getContentType(),u=n?i:s(i),l=eV(e,t,i?(d,f,y,C)=>{let g=u(d,f,y,C);return g!==void 0?g:o(d)}:o,r),c=r&&r.canSelfClose||!1,p=r&&r.allowHtmComponentClosingTags||!1,h=new mV(l.tokens,a,c,p,n);return h.build(),new dV(h.rootNodes,[...l.errors,...h.errors])}},mV=class QT{constructor(t,r,n,i,s){this.tokens=t,this.tagDefinitionResolver=r,this.canSelfClose=n,this.allowHtmComponentClosingTags=i,this.isTagNameCaseSensitive=s,this._index=-1,this._containerStack=[],this.rootNodes=[],this.errors=[],this._advance()}build(){for(;this._peek.type!==L.EOF;)this._peek.type===L.TAG_OPEN_START||this._peek.type===L.INCOMPLETE_TAG_OPEN?this._consumeElementStartTag(this._advance()):this._peek.type===L.TAG_CLOSE?(this._closeVoidElement(),this._consumeElementEndTag(this._advance())):this._peek.type===L.CDATA_START?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===L.COMMENT_START?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===L.TEXT||this._peek.type===L.RAW_TEXT||this._peek.type===L.ESCAPABLE_RAW_TEXT?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===L.EXPANSION_FORM_START?this._consumeExpansion(this._advance()):this._peek.type===L.BLOCK_OPEN_START?(this._closeVoidElement(),this._consumeBlockOpen(this._advance())):this._peek.type===L.BLOCK_CLOSE?(this._closeVoidElement(),this._consumeBlockClose(this._advance())):this._peek.type===L.INCOMPLETE_BLOCK_OPEN?(this._closeVoidElement(),this._consumeIncompleteBlock(this._advance())):this._peek.type===L.LET_START?(this._closeVoidElement(),this._consumeLet(this._advance())):this._peek.type===L.DOC_TYPE_START?this._consumeDocType(this._advance()):this._peek.type===L.INCOMPLETE_LET?(this._closeVoidElement(),this._consumeIncompleteLet(this._advance())):this._peek.type===L.COMPONENT_OPEN_START||this._peek.type===L.INCOMPLETE_COMPONENT_OPEN?this._consumeComponentStartTag(this._advance()):this._peek.type===L.COMPONENT_CLOSE?this._consumeComponentEndTag(this._advance()):this._advance();for(let t of this._containerStack)t instanceof js&&this.errors.push(pt.create(t.name,t.sourceSpan,`Unclosed block "${t.name}"`))}_advance(){let t=this._peek;return this._index0)return this.errors=this.errors.concat(s.errors),null;let a=new pe(t.sourceSpan.start,i.sourceSpan.end,t.sourceSpan.fullStart),o=new pe(r.sourceSpan.start,i.sourceSpan.end,r.sourceSpan.fullStart);return new WU(t.parts[0],s.rootNodes,a,t.sourceSpan,o)}_collectExpansionExpTokens(t){let r=[],n=[L.EXPANSION_CASE_EXP_START];for(;;){if((this._peek.type===L.EXPANSION_FORM_START||this._peek.type===L.EXPANSION_CASE_EXP_START)&&n.push(this._peek.type),this._peek.type===L.EXPANSION_CASE_EXP_END)if(nD(n,L.EXPANSION_CASE_EXP_START)){if(n.pop(),n.length===0)return r}else return this.errors.push(pt.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===L.EXPANSION_FORM_END)if(nD(n,L.EXPANSION_FORM_START))n.pop();else return this.errors.push(pt.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===L.EOF)return this.errors.push(pt.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;r.push(this._advance())}}_getText(t){let r=t.parts[0];if(r.length>0&&r[0]==` `){var n;let i=this._getClosestElementLikeParent();i!=null&&i.children.length==0&&!((n=this._getTagDefinition(i))===null||n===void 0)&&n.ignoreFirstLf&&(r=r.substring(1))}return r}_consumeText(t){let r=[t],n=t.sourceSpan,i=t.parts[0];if(i.length>0&&i[0]===` -`){var s;let a=this._getContainer();a!=null&&a.children.length===0&&!((s=this._getTagDefinition(a))===null||s===void 0)&&s.ignoreFirstLf&&(i=i.substring(1),r[0]={type:t.type,sourceSpan:t.sourceSpan,parts:[i]})}for(;this._peek.type===L.INTERPOLATION||this._peek.type===L.TEXT||this._peek.type===L.ENCODED_ENTITY;)t=this._advance(),r.push(t),t.type===L.INTERPOLATION?i+=t.parts.join("").replace(/&([^;]+);/g,zD):t.type===L.ENCODED_ENTITY?i+=t.parts[0]:i+=t.parts.join("");if(i.length>0){let a=t.sourceSpan;this._addToParent(new mU(i,new pe(n.start,a.end,n.fullStart,n.details),r))}}_closeVoidElement(){var t;let r=this._getContainer();r!==null&&!((t=this._getTagDefinition(r))===null||t===void 0)&&t.isVoid&&this._containerStack.pop()}_consumeElementStartTag(t){var r;let n=[],i=[];this._consumeAttributesAndDirectives(n,i);let s=this._getElementFullName(t,this._getClosestElementLikeParent()),a=this._getTagDefinition(s),o=!1;if(this._peek.type===L.TAG_OPEN_END_VOID){this._advance(),o=!0;let y=this._getTagDefinition(s);this.canSelfClose||y!=null&&y.canSelfClose||rc(s)!==null||y!=null&&y.isVoid||this.errors.push(pt.create(s,t.sourceSpan,`Only void, custom and foreign elements can be self closed "${t.parts[1]}"`))}else this._peek.type===L.TAG_OPEN_END&&(this._advance(),o=!1);let u=this._peek.sourceSpan.fullStart,l=new pe(t.sourceSpan.start,u,t.sourceSpan.fullStart),c=new pe(t.sourceSpan.start,u,t.sourceSpan.fullStart),p=new pe(t.sourceSpan.start.moveBy(1),t.sourceSpan.end),h=new zi(s,n,i,[],o,l,c,void 0,p,(a==null?void 0:a.isVoid)??!1),d=this._getContainer(),f=d!==null&&!!(!((r=this._getTagDefinition(d))===null||r===void 0)&&r.isClosedByChild(h.name));this._pushContainer(h,f),o?this._popContainer(s,zi,l):t.type===L.INCOMPLETE_TAG_OPEN&&(this._popContainer(s,zi,null),this.errors.push(pt.create(s,l,`Opening tag "${s}" not terminated.`)))}_consumeComponentStartTag(t){var r;let n=t.parts[0],i=[],s=[];this._consumeAttributesAndDirectives(i,s);let a=this._getClosestElementLikeParent(),o=this._getComponentTagName(t,a),u=this._getComponentFullName(t,a),l=this._peek.type===L.COMPONENT_OPEN_END_VOID;this._advance();let c=this._peek.sourceSpan.fullStart,p=new pe(t.sourceSpan.start,c,t.sourceSpan.fullStart),h=new pe(t.sourceSpan.start,c,t.sourceSpan.fullStart),d=new ti(n,o,u,i,s,[],l,p,h,void 0),f=this._getContainer(),y=f!==null&&d.tagName!==null&&!!(!((r=this._getTagDefinition(f))===null||r===void 0)&&r.isClosedByChild(d.tagName));this._pushContainer(d,y),l?this._popContainer(u,ti,p):t.type===L.INCOMPLETE_COMPONENT_OPEN&&(this._popContainer(u,ti,null),this.errors.push(pt.create(u,p,`Opening tag "${u}" not terminated.`)))}_consumeAttributesAndDirectives(t,r){for(;this._peek.type===L.ATTR_NAME||this._peek.type===L.DIRECTIVE_NAME;)this._peek.type===L.DIRECTIVE_NAME?r.push(this._consumeDirective(this._peek)):t.push(this._consumeAttr(this._advance()))}_consumeComponentEndTag(t){let r=this._getComponentFullName(t,this._getClosestElementLikeParent());if(!this._popContainer(r,ti,t.sourceSpan)){let n=this._containerStack[this._containerStack.length-1],i;n instanceof ti&&n.componentName===t.parts[0]?i=`, did you mean "${n.fullName}"?`:i=". It may happen when the tag has already been closed by another tag.";let s=`Unexpected closing tag "${r}"${i}`;this.errors.push(pt.create(r,t.sourceSpan,s))}}_getTagDefinition(t){return typeof t=="string"?this.tagDefinitionResolver(t):t instanceof zi?this.tagDefinitionResolver(t.name):t instanceof ti&&t.tagName!==null?this.tagDefinitionResolver(t.tagName):null}_pushContainer(t,r){r&&this._containerStack.pop(),this._addToParent(t),this._containerStack.push(t)}_consumeElementEndTag(t){var r;let n=this.allowHtmComponentClosingTags&&t.parts.length===0?null:this._getElementFullName(t,this._getClosestElementLikeParent());if(n&&!((r=this._getTagDefinition(n))===null||r===void 0)&&r.isVoid)this.errors.push(pt.create(n,t.sourceSpan,`Void elements do not have end tags "${t.parts[1]}"`));else if(!this._popContainer(n,zi,t.sourceSpan)){let i=`Unexpected closing tag "${n}". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags`;this.errors.push(pt.create(n,t.sourceSpan,i))}}_popContainer(t,r,n){let i=!1;for(let a=this._containerStack.length-1;a>=0;a--){var s;let o=this._containerStack[a],u=o instanceof ti?o.fullName:o.name;if(rc(u)?u===t:(u===t||t===null)&&o instanceof r)return o.endSourceSpan=n,o.sourceSpan.end=n!==null?n.end:o.sourceSpan.end,this._containerStack.splice(a,this._containerStack.length-a),!i;(o instanceof Os||!(!((s=this._getTagDefinition(o))===null||s===void 0)&&s.closedByParent))&&(i=!0)}return!1}_consumeAttr(t){let r=Yo(t.parts[0],t.parts[1]),n=t.sourceSpan.end,i;this._peek.type===L.ATTR_QUOTE&&(i=this._advance());let s="",a=[],o,u;if(this._peek.type===L.ATTR_VALUE_TEXT)for(o=this._peek.sourceSpan,u=this._peek.sourceSpan.end;this._peek.type===L.ATTR_VALUE_TEXT||this._peek.type===L.ATTR_VALUE_INTERPOLATION||this._peek.type===L.ENCODED_ENTITY;){let c=this._advance();a.push(c),c.type===L.ATTR_VALUE_INTERPOLATION?s+=c.parts.join("").replace(/&([^;]+);/g,zD):c.type===L.ENCODED_ENTITY?s+=c.parts[0]:s+=c.parts.join(""),u=n=c.sourceSpan.end}this._peek.type===L.ATTR_QUOTE&&(u=n=this._advance().sourceSpan.end);let l=o&&u&&new pe((i==null?void 0:i.sourceSpan.start)??o.start,u,(i==null?void 0:i.sourceSpan.fullStart)??o.fullStart);return new EU(r,s,new pe(t.sourceSpan.start,n,t.sourceSpan.fullStart),t.sourceSpan,l,a.length>0?a:void 0,void 0)}_consumeDirective(t){let r=[],n=t.sourceSpan.end,i=null;if(this._advance(),this._peek.type===L.DIRECTIVE_OPEN){for(n=this._peek.sourceSpan.end,this._advance();this._peek.type===L.ATTR_NAME;)r.push(this._consumeAttr(this._advance()));this._peek.type===L.DIRECTIVE_CLOSE?(i=this._peek.sourceSpan,this._advance()):this.errors.push(pt.create(null,t.sourceSpan,"Unterminated directive definition"))}let s=new pe(t.sourceSpan.start,n,t.sourceSpan.fullStart),a=new pe(s.start,i===null?t.sourceSpan.end:i.end,s.fullStart);return new vU(t.parts[0],r,a,s,i)}_consumeBlockOpen(t){let r=[];for(;this._peek.type===L.BLOCK_PARAMETER;){let o=this._advance();r.push(new LD(o.parts[0],o.sourceSpan))}this._peek.type===L.BLOCK_OPEN_END&&this._advance();let n=this._peek.sourceSpan.fullStart,i=new pe(t.sourceSpan.start,n,t.sourceSpan.fullStart),s=new pe(t.sourceSpan.start,n,t.sourceSpan.fullStart),a=new Os(t.parts[0],r,[],i,t.sourceSpan,s);this._pushContainer(a,!1)}_consumeBlockClose(t){this._popContainer(null,Os,t.sourceSpan)||this.errors.push(pt.create(null,t.sourceSpan,'Unexpected closing block. The block may have been closed earlier. If you meant to write the } character, you should use the "}" HTML entity instead.'))}_consumeIncompleteBlock(t){let r=[];for(;this._peek.type===L.BLOCK_PARAMETER;){let o=this._advance();r.push(new LD(o.parts[0],o.sourceSpan))}let n=this._peek.sourceSpan.fullStart,i=new pe(t.sourceSpan.start,n,t.sourceSpan.fullStart),s=new pe(t.sourceSpan.start,n,t.sourceSpan.fullStart),a=new Os(t.parts[0],r,[],i,t.sourceSpan,s);this._pushContainer(a,!1),this._popContainer(null,Os,null),this.errors.push(pt.create(t.parts[0],i,`Incomplete block "${t.parts[0]}". If you meant to write the @ character, you should use the "@" HTML entity instead.`))}_consumeLet(t){let r=t.parts[0],n,i;if(this._peek.type!==L.LET_VALUE){this.errors.push(pt.create(t.parts[0],t.sourceSpan,`Invalid @let declaration "${r}". Declaration must have a value.`));return}else n=this._advance();if(this._peek.type!==L.LET_END){this.errors.push(pt.create(t.parts[0],t.sourceSpan,`Unterminated @let declaration "${r}". Declaration must be terminated with a semicolon.`));return}else i=this._advance();let s=i.sourceSpan.fullStart,a=new pe(t.sourceSpan.start,s,t.sourceSpan.fullStart),o=t.sourceSpan.toString().lastIndexOf(r),u=new pe(t.sourceSpan.start.moveBy(o),t.sourceSpan.end),l=new $D(r,n.parts[0],a,u,n.sourceSpan);this._addToParent(l)}_consumeIncompleteLet(t){let r=t.parts[0]??"",n=r?` "${r}"`:"";if(r.length>0){let i=t.sourceSpan.toString().lastIndexOf(r),s=new pe(t.sourceSpan.start.moveBy(i),t.sourceSpan.end),a=new pe(t.sourceSpan.start,t.sourceSpan.start.moveBy(0)),o=new $D(r,"",t.sourceSpan,s,a);this._addToParent(o)}this.errors.push(pt.create(t.parts[0],t.sourceSpan,`Incomplete @let declaration${n}. @let declarations must be written as \`@let = ;\``))}_getContainer(){return this._containerStack.length>0?this._containerStack[this._containerStack.length-1]:null}_getClosestElementLikeParent(){for(let t=this._containerStack.length-1;t>-1;t--){let r=this._containerStack[t];if(r instanceof zi||r instanceof ti)return r}return null}_addToParent(t){let r=this._getContainer();r===null?this.rootNodes.push(t):r.children.push(t)}_getElementFullName(t,r){return Yo(this._getPrefix(t,r),t.parts[1])}_getComponentFullName(t,r){let n=t.parts[0],i=this._getComponentTagName(t,r);return i===null?n:i.startsWith(":")?n+i:`${n}:${i}`}_getComponentTagName(t,r){let n=this._getPrefix(t,r),i=t.parts[2];return!n&&!i?null:!n&&i?i:Yo(n,i||"ng-component")}_getPrefix(t,r){var n;let i,s;if(t.type===L.COMPONENT_OPEN_START||t.type===L.INCOMPLETE_COMPONENT_OPEN||t.type===L.COMPONENT_CLOSE?(i=t.parts[1],s=t.parts[2]):(i=t.parts[0],s=t.parts[1]),i=i||((n=this._getTagDefinition(s))===null||n===void 0?void 0:n.implicitNamespacePrefix)||"",!i&&r){let a=r instanceof zi?r.name:r.tagName;if(a!==null){let o=Np(a)[1],u=this._getTagDefinition(o);u!==null&&!u.preventNamespaceInheritance&&(i=rc(a))}}return i}};function VD(e,t){return e.length>0&&e[e.length-1]===t}function zD(e,t){return bu[t]!==void 0?bu[t]||e:/^#x[a-f0-9]+$/i.test(t)?String.fromCodePoint(parseInt(t.slice(2),16)):/^#\d+$/.test(t)?String.fromCodePoint(parseInt(t.slice(1),10)):e}var VU=class extends RU{constructor(){super(Tf)}parse(e,t,r,n=!1,i){return super.parse(e,t,r,n,i)}},Jh=null,zU=()=>(Jh||(Jh=new VU),Jh);function Pf(e,t={}){let{canSelfClose:r=!1,allowHtmComponentClosingTags:n=!1,isTagNameCaseSensitive:i=!1,getTagContentType:s,tokenizeAngularBlocks:a=!1,tokenizeAngularLetDeclaration:o=!1,enableAngularSelectorlessSyntax:u=!1}=t;return zU().parse(e,"angular-html-parser",{tokenizeExpansionForms:a,canSelfClose:r,allowHtmComponentClosingTags:n,tokenizeBlocks:a,tokenizeLet:o,selectorlessEnabled:u},i,s)}var qU=[WU,JU,KU,QU,YU,tV,ZU,eV,rV,GU];function HU(e,t){for(let r of qU)r(e,t);return e}function WU(e){e.walk(t=>{if(t.kind==="element"&&t.tagDefinition.ignoreFirstLf&&t.children.length>0&&t.children[0].kind==="text"&&t.children[0].value[0]===` -`){let r=t.children[0];r.value.length===1?t.removeChild(r):r.value=r.value.slice(1)}})}function JU(e){let t=r=>{var n,i;return r.kind==="element"&&((n=r.prev)==null?void 0:n.kind)==="ieConditionalStartComment"&&r.prev.sourceSpan.end.offset===r.startSourceSpan.start.offset&&((i=r.firstChild)==null?void 0:i.kind)==="ieConditionalEndComment"&&r.firstChild.sourceSpan.start.offset===r.startSourceSpan.end.offset};e.walk(r=>{if(r.children)for(let n=0;n{if(n.children)for(let i=0;it.kind==="cdata",t=>``)}function GU(e){let t=r=>{var n,i;return r.kind==="element"&&r.attrs.length===0&&r.children.length===1&&r.firstChild.kind==="text"&&!wr.hasWhitespaceCharacter(r.children[0].value)&&!r.firstChild.hasLeadingSpaces&&!r.firstChild.hasTrailingSpaces&&r.isLeadingSpaceSensitive&&!r.hasLeadingSpaces&&r.isTrailingSpaceSensitive&&!r.hasTrailingSpaces&&((n=r.prev)==null?void 0:n.kind)==="text"&&((i=r.next)==null?void 0:i.kind)==="text"};e.walk(r=>{if(r.children)for(let n=0;n`+i.firstChild.value+``+a.value,s.sourceSpan=new pe(s.sourceSpan.start,a.sourceSpan.end),s.isTrailingSpaceSensitive=a.isTrailingSpaceSensitive,s.hasTrailingSpaces=a.hasTrailingSpaces,r.removeChild(i),n--,r.removeChild(a)}})}function QU(e,t){if(t.parser==="html")return;let r=/\{\{(.+?)\}\}/su;e.walk(n=>{if(Dj(n,t))for(let i of n.children){if(i.kind!=="text")continue;let s=i.sourceSpan.start,a=null,o=i.value.split(r);for(let u=0;u0&&n.insertChildBefore(i,{kind:"text",value:l,sourceSpan:new pe(s,a)});continue}a=s.moveBy(l.length+4),n.insertChildBefore(i,{kind:"interpolation",sourceSpan:new pe(s,a),children:l.length===0?[]:[{kind:"text",value:l,sourceSpan:new pe(s.moveBy(2),a.moveBy(-2))}]})}n.removeChild(i)}})}function YU(e,t){e.walk(r=>{let n=r.$children;if(!n)return;if(n.length===0||n.length===1&&n[0].kind==="text"&&wr.trim(n[0].value).length===0){r.hasDanglingSpaces=n.length>0,r.$children=[];return}let i=Ej(r,t),s=uS(r);if(!i)for(let a=0;a{t.isSelfClosing=!t.children||t.kind==="element"&&(t.tagDefinition.isVoid||t.endSourceSpan&&t.startSourceSpan.start===t.endSourceSpan.start&&t.startSourceSpan.end===t.endSourceSpan.end)})}function eV(e,t){e.walk(r=>{r.kind==="element"&&(r.hasHtmComponentClosingTag=r.endSourceSpan&&/^<\s*\/\s*\/\s*>$/u.test(t.originalText.slice(r.endSourceSpan.start.offset,r.endSourceSpan.end.offset)))})}function tV(e,t){e.walk(r=>{r.cssDisplay=Lj(r,t)})}function rV(e,t){e.walk(r=>{let{children:n}=r;if(n){if(n.length===0){r.isDanglingSpaceSensitive=vj(r,t);return}for(let i of n)i.isLeadingSpaceSensitive=xj(i,t),i.isTrailingSpaceSensitive=Cj(i,t);for(let i=0;i of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}},HD="HTML",oV={bracketSameLine:qD.bracketSameLine,htmlWhitespaceSensitivity:{category:HD,type:"choice",default:"css",description:"How to handle whitespaces in HTML.",choices:[{value:"css",description:"Respect the default value of CSS display property."},{value:"strict",description:"Whitespaces are considered sensitive."},{value:"ignore",description:"Whitespaces are considered insensitive."}]},singleAttributePerLine:qD.singleAttributePerLine,vueIndentScriptAndStyle:{category:HD,type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}},LS=oV,f0={};UT(f0,{angular:()=>LV,html:()=>BV,lwc:()=>OV,mjml:()=>_V,vue:()=>$V});function uV(e,t){let r=new SyntaxError(e+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(r,t)}var lV=uV,cV={canSelfClose:!0,normalizeTagName:!1,normalizeAttributeName:!1,allowHtmComponentClosingTags:!1,isTagNameCaseSensitive:!1,shouldParseFrontMatter:!0};function $S(e){return{...cV,...e}}function OS(e){let{canSelfClose:t,allowHtmComponentClosingTags:r,isTagNameCaseSensitive:n,shouldParseAsRawText:i,tokenizeAngularBlocks:s,tokenizeAngularLetDeclaration:a}=e;return{canSelfClose:t,allowHtmComponentClosingTags:r,isTagNameCaseSensitive:n,getTagContentType:i?(...o)=>i(...o)?vn.RAW_TEXT:void 0:void 0,tokenizeAngularBlocks:s,tokenizeAngularLetDeclaration:a}}var Xh=new Map([["*",new Set(["accesskey","autocapitalize","autocorrect","autofocus","class","contenteditable","dir","draggable","enterkeyhint","exportparts","hidden","id","inert","inputmode","is","itemid","itemprop","itemref","itemscope","itemtype","lang","nonce","part","popover","slot","spellcheck","style","tabindex","title","translate","writingsuggestions"])],["a",new Set(["charset","coords","download","href","hreflang","name","ping","referrerpolicy","rel","rev","shape","target","type"])],["applet",new Set(["align","alt","archive","code","codebase","height","hspace","name","object","vspace","width"])],["area",new Set(["alt","coords","download","href","hreflang","nohref","ping","referrerpolicy","rel","shape","target","type"])],["audio",new Set(["autoplay","controls","crossorigin","loop","muted","preload","src"])],["base",new Set(["href","target"])],["basefont",new Set(["color","face","size"])],["blockquote",new Set(["cite"])],["body",new Set(["alink","background","bgcolor","link","text","vlink"])],["br",new Set(["clear"])],["button",new Set(["command","commandfor","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","popovertarget","popovertargetaction","type","value"])],["canvas",new Set(["height","width"])],["caption",new Set(["align"])],["col",new Set(["align","char","charoff","span","valign","width"])],["colgroup",new Set(["align","char","charoff","span","valign","width"])],["data",new Set(["value"])],["del",new Set(["cite","datetime"])],["details",new Set(["name","open"])],["dialog",new Set(["closedby","open"])],["dir",new Set(["compact"])],["div",new Set(["align"])],["dl",new Set(["compact"])],["embed",new Set(["height","src","type","width"])],["fieldset",new Set(["disabled","form","name"])],["font",new Set(["color","face","size"])],["form",new Set(["accept","accept-charset","action","autocomplete","enctype","method","name","novalidate","target"])],["frame",new Set(["frameborder","longdesc","marginheight","marginwidth","name","noresize","scrolling","src"])],["frameset",new Set(["cols","rows"])],["h1",new Set(["align"])],["h2",new Set(["align"])],["h3",new Set(["align"])],["h4",new Set(["align"])],["h5",new Set(["align"])],["h6",new Set(["align"])],["head",new Set(["profile"])],["hr",new Set(["align","noshade","size","width"])],["html",new Set(["manifest","version"])],["iframe",new Set(["align","allow","allowfullscreen","allowpaymentrequest","allowusermedia","frameborder","height","loading","longdesc","marginheight","marginwidth","name","referrerpolicy","sandbox","scrolling","src","srcdoc","width"])],["img",new Set(["align","alt","border","crossorigin","decoding","fetchpriority","height","hspace","ismap","loading","longdesc","name","referrerpolicy","sizes","src","srcset","usemap","vspace","width"])],["input",new Set(["accept","align","alpha","alt","autocomplete","checked","colorspace","dirname","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","ismap","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","popovertarget","popovertargetaction","readonly","required","size","src","step","type","usemap","value","width"])],["ins",new Set(["cite","datetime"])],["isindex",new Set(["prompt"])],["label",new Set(["for","form"])],["legend",new Set(["align"])],["li",new Set(["type","value"])],["link",new Set(["as","blocking","charset","color","crossorigin","disabled","fetchpriority","href","hreflang","imagesizes","imagesrcset","integrity","media","referrerpolicy","rel","rev","sizes","target","type"])],["map",new Set(["name"])],["menu",new Set(["compact"])],["meta",new Set(["charset","content","http-equiv","media","name","scheme"])],["meter",new Set(["high","low","max","min","optimum","value"])],["object",new Set(["align","archive","border","classid","codebase","codetype","data","declare","form","height","hspace","name","standby","type","typemustmatch","usemap","vspace","width"])],["ol",new Set(["compact","reversed","start","type"])],["optgroup",new Set(["disabled","label"])],["option",new Set(["disabled","label","selected","value"])],["output",new Set(["for","form","name"])],["p",new Set(["align"])],["param",new Set(["name","type","value","valuetype"])],["pre",new Set(["width"])],["progress",new Set(["max","value"])],["q",new Set(["cite"])],["script",new Set(["async","blocking","charset","crossorigin","defer","fetchpriority","integrity","language","nomodule","referrerpolicy","src","type"])],["select",new Set(["autocomplete","disabled","form","multiple","name","required","size"])],["slot",new Set(["name"])],["source",new Set(["height","media","sizes","src","srcset","type","width"])],["style",new Set(["blocking","media","type"])],["table",new Set(["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"])],["tbody",new Set(["align","char","charoff","valign"])],["td",new Set(["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"])],["template",new Set(["shadowrootclonable","shadowrootcustomelementregistry","shadowrootdelegatesfocus","shadowrootmode","shadowrootserializable"])],["textarea",new Set(["autocomplete","cols","dirname","disabled","form","maxlength","minlength","name","placeholder","readonly","required","rows","wrap"])],["tfoot",new Set(["align","char","charoff","valign"])],["th",new Set(["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"])],["thead",new Set(["align","char","charoff","valign"])],["time",new Set(["datetime"])],["tr",new Set(["align","bgcolor","char","charoff","valign"])],["track",new Set(["default","kind","label","src","srclang"])],["ul",new Set(["compact","type"])],["video",new Set(["autoplay","controls","crossorigin","height","loop","muted","playsinline","poster","preload","src","width"])]]),pV=new Set(["a","abbr","acronym","address","applet","area","article","aside","audio","b","base","basefont","bdi","bdo","bgsound","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","command","content","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","em","embed","fencedframe","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","image","img","input","ins","isindex","kbd","keygen","label","legend","li","link","listing","main","map","mark","marquee","math","menu","menuitem","meta","meter","multicol","nav","nextid","nobr","noembed","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","plaintext","pre","progress","q","rb","rbc","rp","rt","rtc","ruby","s","samp","script","search","section","select","selectedcontent","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","tt","u","ul","var","video","wbr","xmp"]),Bl={attrs:!0,children:!0,cases:!0,expression:!0},WD=new Set(["parent"]),Vs,kf,Nf,hV=class Po{constructor(t={}){fM(this,Vs),DD(this,"kind"),DD(this,"parent");for(let r of new Set([...WD,...Object.keys(t)]))this.setProperty(r,t[r]);if(Sp(t))for(let r of Object.getOwnPropertySymbols(t))this.setProperty(r,t[r])}setProperty(t,r){if(this[t]!==r){if(t in Bl&&(r=r.map(n=>this.createChild(n))),!WD.has(t)){this[t]=r;return}Object.defineProperty(this,t,{value:r,enumerable:!1,configurable:!0})}}map(t){let r;for(let n in Bl){let i=this[n];if(i){let s=fV(i,a=>a.map(t));r!==i&&(r||(r=new Po({parent:this.parent})),r.setProperty(n,s))}}if(r)for(let n in this)n in Bl||(r[n]=this[n]);return t(r||this)}walk(t){for(let r in Bl){let n=this[r];if(n)for(let i=0;i[t.fullName,t.value]))}};Vs=new WeakSet,kf=function(){return this.kind==="angularIcuCase"?"expression":this.kind==="angularIcuExpression"?"cases":"children"},Nf=function(){var e;return((e=this.parent)==null?void 0:e.$children)??[]};var dV=hV;function fV(e,t){let r=e.map(t);return r.some((n,i)=>n!==e[i])?r:e}var mV=[{regex:/^(?\[if(?[^\]]*)\]>)(?.*?)[^\]]*)\]>{try{return[!0,r(s,o).children]}catch{return[!1,[{kind:"text",value:s,sourceSpan:new pe(o,u)}]]}})();return{kind:"ieConditionalComment",complete:l,children:c,condition:jt(0,i.trim(),/\s+/gu," "),sourceSpan:e.sourceSpan,startSourceSpan:new pe(e.sourceSpan.start,o),endSourceSpan:new pe(u,e.sourceSpan.end)}}function DV(e,t){let{condition:r}=t.groups;return{kind:"ieConditionalStartComment",condition:jt(0,r.trim(),/\s+/gu," "),sourceSpan:e.sourceSpan}}function EV(e){return{kind:"ieConditionalEndComment",sourceSpan:e.sourceSpan}}var xV=class extends AU{visitExpansionCase(e,t){t.parseOptions.name==="angular"&&this.visitChildren(t,r=>{r(e.expression)})}visit(e,{parseOptions:t}){SV(e),FV(e,t),wV(e,t),bV(e)}};function CV(e,t,r,n){kS(new xV,e.children,{parseOptions:r}),t&&e.children.unshift(t);let i=new dV(e);return i.walk(s=>{if(s.kind==="comment"){let a=yV(s,n);a&&s.parent.replaceChild(s,a)}vV(s),AV(s),TV(s)}),i}function vV(e){if(e.kind==="block"){if(e.name=jt(0,e.name.toLowerCase(),/\s+/gu," ").trim(),e.kind="angularControlFlowBlock",!s0(e.parameters)){delete e.parameters;return}for(let t of e.parameters)t.kind="angularControlFlowBlockParameter";e.parameters={kind:"angularControlFlowBlockParameters",children:e.parameters,sourceSpan:new pe(e.parameters[0].sourceSpan.start,qa(0,e.parameters,-1).sourceSpan.end)}}}function AV(e){e.kind==="letDeclaration"&&(e.kind="angularLetDeclaration",e.id=e.name,e.init={kind:"angularLetDeclarationInitializer",sourceSpan:new pe(e.valueSpan.start,e.valueSpan.end),value:e.value},delete e.name,delete e.value)}function TV(e){e.kind==="expansion"&&(e.kind="angularIcuExpression"),e.kind==="expansionCase"&&(e.kind="angularIcuCase")}function JD(e,t){let r=e.toLowerCase();return t(r)?r:e}function XD(e){let t=e.name.startsWith(":")?e.name.slice(1).split(":")[0]:null,r=e.nameSpan.toString(),n=t!==null&&r.startsWith(`${t}:`),i=n?r.slice(t.length+1):r;e.name=i,e.namespace=t,e.hasExplicitNamespace=n}function SV(e){switch(e.kind){case"element":XD(e);for(let t of e.attrs)XD(t),t.valueSpan?(t.value=t.valueSpan.toString(),/["']/u.test(t.value[0])&&(t.value=t.value.slice(1,-1))):t.value=null;break;case"comment":e.value=e.sourceSpan.toString().slice(4,-3);break;case"text":e.value=e.sourceSpan.toString();break}}function FV(e,t){if(e.kind==="element"){let r=Tf(t.isTagNameCaseSensitive?e.name:e.name.toLowerCase());!e.namespace||e.namespace===r.implicitNamespacePrefix||Ju(e)?e.tagDefinition=r:e.tagDefinition=Tf("")}}function bV(e){e.sourceSpan&&e.endSourceSpan&&(e.sourceSpan=new pe(e.sourceSpan.start,e.endSourceSpan.end))}function wV(e,t){if(e.kind==="element"&&(t.normalizeTagName&&(!e.namespace||e.namespace===e.tagDefinition.implicitNamespacePrefix||Ju(e))&&(e.name=JD(e.name,r=>pV.has(r))),t.normalizeAttributeName))for(let r of e.attrs)r.namespace||(r.name=JD(r.name,n=>Xh.has(e.name)&&(Xh.get("*").has(n)||Xh.get(e.name).has(n))))}function MS(e,t){let{rootNodes:r,errors:n}=Pf(e,OS(t));return n.length>0&&Bf(n[0]),{parseOptions:t,rootNodes:r}}function PV(e,t){let r=OS(t),{rootNodes:n,errors:i}=Pf(e,r);if(n.some(u=>u.kind==="docType"&&u.value==="html"||u.kind==="element"&&u.name.toLowerCase()==="html"))return MS(e,m0);let s,a=()=>s??(s=Pf(e,{...r,getTagContentType:void 0})),o=u=>{let{offset:l}=u.startSourceSpan.start;return a().rootNodes.find(c=>c.kind==="element"&&c.startSourceSpan.start.offset===l)??u};for(let[u,l]of n.entries())if(l.kind==="element"){if(l.isVoid)i=a().errors,n[u]=o(l);else if(kV(l)){let{endSourceSpan:c,startSourceSpan:p}=l,h=a().errors.find(d=>d.span.start.offset>p.start.offset&&d.span.start.offset0&&Bf(i[0]),{parseOptions:t,rootNodes:n}}function kV(e){var r;if(e.kind!=="element"||e.name!=="template")return!1;let t=(r=e.attrs.find(n=>n.name==="lang"))==null?void 0:r.value;return!t||t==="html"}function Bf(e){let{msg:t,span:{start:r,end:n}}=e;throw lV(t,{loc:{start:{line:r.line+1,column:r.col+1},end:{line:n.line+1,column:n.col+1}},cause:e})}function NV(e,t,r,n,i,s){let{offset:a}=n,o=jt(0,t.slice(0,a),/[^\n]/gu," ")+r,u=jS(o,e,{...i,shouldParseFrontMatter:!1},s);u.sourceSpan=new pe(n,qa(0,u.children,-1).sourceSpan.end);let l=u.children[0];return l.length===a?u.children.shift():(l.sourceSpan=new pe(l.sourceSpan.start.moveBy(a),l.sourceSpan.end),l.value=l.value.slice(a)),u}function jS(e,t,r,n={}){let{frontMatter:i,content:s}=r.shouldParseFrontMatter?pj(e):{content:e},a=new PS(e,n.filepath),o=new Sf(a,0,0,0),u=o.moveBy(e.length),{parseOptions:l,rootNodes:c}=t(s,r),p={kind:"root",sourceSpan:new pe(o,u),children:c},h;if(i){let[d,f]=[i.start,i.end].map(y=>new Sf(a,y.index,y.line-1,y.column));h={...i,kind:"frontMatter",sourceSpan:new pe(d,f)}}return CV(p,h,l,(d,f)=>NV(t,e,d,f,l,n))}var m0=$S({name:"html",normalizeTagName:!0,normalizeAttributeName:!0,allowHtmComponentClosingTags:!0});function Yu(e){let t=$S(e),r=t.name==="vue"?PV:MS;return{parse:(n,i)=>jS(n,r,t,i),hasPragma:HR,hasIgnorePragma:WR,astFormat:"html",locStart:Ku,locEnd:wp}}var BV=Yu(m0),IV=new Set(["mj-style","mj-raw"]),_V=Yu({...m0,name:"mjml",shouldParseAsRawText:e=>IV.has(e)}),LV=Yu({name:"angular",tokenizeAngularBlocks:!0,tokenizeAngularLetDeclaration:!0}),$V=Yu({name:"vue",isTagNameCaseSensitive:!0,shouldParseAsRawText(e,t,r,n){return e.toLowerCase()!=="html"&&!r&&(e!=="template"||n.some(({name:i,value:s})=>i==="lang"&&s!=="html"&&s!==""&&s!==void 0))}}),OV=Yu({name:"lwc",canSelfClose:!1}),RS={html:aV};const MV=Object.freeze(Object.defineProperty({__proto__:null,default:VT,languages:_S,options:LS,parsers:f0,printers:RS},Symbol.toStringTag,{value:"Module"}));function jV(e){const t=e.trim();if(t.startsWith("\s+<");let i=0;for(;i",i);if(s===-1)break;const a=e.substring(i,s+1);a.startsWith("0){let a=t.sourceSpan;this._addToParent(new zU(i,new pe(n.start,a.end,n.fullStart,n.details),r))}}_closeVoidElement(){var t;let r=this._getContainer();r!==null&&!((t=this._getTagDefinition(r))===null||t===void 0)&&t.isVoid&&this._containerStack.pop()}_consumeElementStartTag(t){var r;let n=[],i=[];this._consumeAttributesAndDirectives(n,i);let s=this._getElementFullName(t,this._getClosestElementLikeParent()),a=this._getTagDefinition(s),o=!1;if(this._peek.type===L.TAG_OPEN_END_VOID){this._advance(),o=!0;let y=this._getTagDefinition(s);this.canSelfClose||y!=null&&y.canSelfClose||cc(s)!==null||y!=null&&y.isVoid||this.errors.push(pt.create(s,t.sourceSpan,`Only void, custom and foreign elements can be self closed "${t.parts[1]}"`))}else this._peek.type===L.TAG_OPEN_END&&(this._advance(),o=!1);let u=this._peek.sourceSpan.fullStart,l=new pe(t.sourceSpan.start,u,t.sourceSpan.fullStart),c=new pe(t.sourceSpan.start,u,t.sourceSpan.fullStart),p=new pe(t.sourceSpan.start.moveBy(1),t.sourceSpan.end),h=new Hi(s,n,i,[],o,l,c,void 0,p,(a==null?void 0:a.isVoid)??!1),d=this._getContainer(),f=d!==null&&!!(!((r=this._getTagDefinition(d))===null||r===void 0)&&r.isClosedByChild(h.name));this._pushContainer(h,f),o?this._popContainer(s,Hi,l):t.type===L.INCOMPLETE_TAG_OPEN&&(this._popContainer(s,Hi,null),this.errors.push(pt.create(s,l,`Opening tag "${s}" not terminated.`)))}_consumeComponentStartTag(t){var r;let n=t.parts[0],i=[],s=[];this._consumeAttributesAndDirectives(i,s);let a=this._getClosestElementLikeParent(),o=this._getComponentTagName(t,a),u=this._getComponentFullName(t,a),l=this._peek.type===L.COMPONENT_OPEN_END_VOID;this._advance();let c=this._peek.sourceSpan.fullStart,p=new pe(t.sourceSpan.start,c,t.sourceSpan.fullStart),h=new pe(t.sourceSpan.start,c,t.sourceSpan.fullStart),d=new ri(n,o,u,i,s,[],l,p,h,void 0),f=this._getContainer(),y=f!==null&&d.tagName!==null&&!!(!((r=this._getTagDefinition(f))===null||r===void 0)&&r.isClosedByChild(d.tagName));this._pushContainer(d,y),l?this._popContainer(u,ri,p):t.type===L.INCOMPLETE_COMPONENT_OPEN&&(this._popContainer(u,ri,null),this.errors.push(pt.create(u,p,`Opening tag "${u}" not terminated.`)))}_consumeAttributesAndDirectives(t,r){for(;this._peek.type===L.ATTR_NAME||this._peek.type===L.DIRECTIVE_NAME;)this._peek.type===L.DIRECTIVE_NAME?r.push(this._consumeDirective(this._peek)):t.push(this._consumeAttr(this._advance()))}_consumeComponentEndTag(t){let r=this._getComponentFullName(t,this._getClosestElementLikeParent());if(!this._popContainer(r,ri,t.sourceSpan)){let n=this._containerStack[this._containerStack.length-1],i;n instanceof ri&&n.componentName===t.parts[0]?i=`, did you mean "${n.fullName}"?`:i=". It may happen when the tag has already been closed by another tag.";let s=`Unexpected closing tag "${r}"${i}`;this.errors.push(pt.create(r,t.sourceSpan,s))}}_getTagDefinition(t){return typeof t=="string"?this.tagDefinitionResolver(t):t instanceof Hi?this.tagDefinitionResolver(t.name):t instanceof ri&&t.tagName!==null?this.tagDefinitionResolver(t.tagName):null}_pushContainer(t,r){r&&this._containerStack.pop(),this._addToParent(t),this._containerStack.push(t)}_consumeElementEndTag(t){var r;let n=this.allowHtmComponentClosingTags&&t.parts.length===0?null:this._getElementFullName(t,this._getClosestElementLikeParent());if(n&&!((r=this._getTagDefinition(n))===null||r===void 0)&&r.isVoid)this.errors.push(pt.create(n,t.sourceSpan,`Void elements do not have end tags "${t.parts[1]}"`));else if(!this._popContainer(n,Hi,t.sourceSpan)){let i=`Unexpected closing tag "${n}". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags`;this.errors.push(pt.create(n,t.sourceSpan,i))}}_popContainer(t,r,n){let i=!1;for(let a=this._containerStack.length-1;a>=0;a--){var s;let o=this._containerStack[a],u=o instanceof ri?o.fullName:o.name;if(cc(u)?u===t:(u===t||t===null)&&o instanceof r)return o.endSourceSpan=n,o.sourceSpan.end=n!==null?n.end:o.sourceSpan.end,this._containerStack.splice(a,this._containerStack.length-a),!i;(o instanceof js||!(!((s=this._getTagDefinition(o))===null||s===void 0)&&s.closedByParent))&&(i=!0)}return!1}_consumeAttr(t){let r=nu(t.parts[0],t.parts[1]),n=t.sourceSpan.end,i;this._peek.type===L.ATTR_QUOTE&&(i=this._advance());let s="",a=[],o,u;if(this._peek.type===L.ATTR_VALUE_TEXT)for(o=this._peek.sourceSpan,u=this._peek.sourceSpan.end;this._peek.type===L.ATTR_VALUE_TEXT||this._peek.type===L.ATTR_VALUE_INTERPOLATION||this._peek.type===L.ENCODED_ENTITY;){let c=this._advance();a.push(c),c.type===L.ATTR_VALUE_INTERPOLATION?s+=c.parts.join("").replace(/&([^;]+);/g,iD):c.type===L.ENCODED_ENTITY?s+=c.parts[0]:s+=c.parts.join(""),u=n=c.sourceSpan.end}this._peek.type===L.ATTR_QUOTE&&(u=n=this._advance().sourceSpan.end);let l=o&&u&&new pe((i==null?void 0:i.sourceSpan.start)??o.start,u,(i==null?void 0:i.sourceSpan.fullStart)??o.fullStart);return new JU(r,s,new pe(t.sourceSpan.start,n,t.sourceSpan.fullStart),t.sourceSpan,l,a.length>0?a:void 0,void 0)}_consumeDirective(t){let r=[],n=t.sourceSpan.end,i=null;if(this._advance(),this._peek.type===L.DIRECTIVE_OPEN){for(n=this._peek.sourceSpan.end,this._advance();this._peek.type===L.ATTR_NAME;)r.push(this._consumeAttr(this._advance()));this._peek.type===L.DIRECTIVE_CLOSE?(i=this._peek.sourceSpan,this._advance()):this.errors.push(pt.create(null,t.sourceSpan,"Unterminated directive definition"))}let s=new pe(t.sourceSpan.start,n,t.sourceSpan.fullStart),a=new pe(s.start,i===null?t.sourceSpan.end:i.end,s.fullStart);return new GU(t.parts[0],r,a,s,i)}_consumeBlockOpen(t){let r=[];for(;this._peek.type===L.BLOCK_PARAMETER;){let o=this._advance();r.push(new G2(o.parts[0],o.sourceSpan))}this._peek.type===L.BLOCK_OPEN_END&&this._advance();let n=this._peek.sourceSpan.fullStart,i=new pe(t.sourceSpan.start,n,t.sourceSpan.fullStart),s=new pe(t.sourceSpan.start,n,t.sourceSpan.fullStart),a=new js(t.parts[0],r,[],i,t.sourceSpan,s);this._pushContainer(a,!1)}_consumeBlockClose(t){this._popContainer(null,js,t.sourceSpan)||this.errors.push(pt.create(null,t.sourceSpan,'Unexpected closing block. The block may have been closed earlier. If you meant to write the } character, you should use the "}" HTML entity instead.'))}_consumeIncompleteBlock(t){let r=[];for(;this._peek.type===L.BLOCK_PARAMETER;){let o=this._advance();r.push(new G2(o.parts[0],o.sourceSpan))}let n=this._peek.sourceSpan.fullStart,i=new pe(t.sourceSpan.start,n,t.sourceSpan.fullStart),s=new pe(t.sourceSpan.start,n,t.sourceSpan.fullStart),a=new js(t.parts[0],r,[],i,t.sourceSpan,s);this._pushContainer(a,!1),this._popContainer(null,js,null),this.errors.push(pt.create(t.parts[0],i,`Incomplete block "${t.parts[0]}". If you meant to write the @ character, you should use the "@" HTML entity instead.`))}_consumeLet(t){let r=t.parts[0],n,i;if(this._peek.type!==L.LET_VALUE){this.errors.push(pt.create(t.parts[0],t.sourceSpan,`Invalid @let declaration "${r}". Declaration must have a value.`));return}else n=this._advance();if(this._peek.type!==L.LET_END){this.errors.push(pt.create(t.parts[0],t.sourceSpan,`Unterminated @let declaration "${r}". Declaration must be terminated with a semicolon.`));return}else i=this._advance();let s=i.sourceSpan.fullStart,a=new pe(t.sourceSpan.start,s,t.sourceSpan.fullStart),o=t.sourceSpan.toString().lastIndexOf(r),u=new pe(t.sourceSpan.start.moveBy(o),t.sourceSpan.end),l=new Q2(r,n.parts[0],a,u,n.sourceSpan);this._addToParent(l)}_consumeIncompleteLet(t){let r=t.parts[0]??"",n=r?` "${r}"`:"";if(r.length>0){let i=t.sourceSpan.toString().lastIndexOf(r),s=new pe(t.sourceSpan.start.moveBy(i),t.sourceSpan.end),a=new pe(t.sourceSpan.start,t.sourceSpan.start.moveBy(0)),o=new Q2(r,"",t.sourceSpan,s,a);this._addToParent(o)}this.errors.push(pt.create(t.parts[0],t.sourceSpan,`Incomplete @let declaration${n}. @let declarations must be written as \`@let = ;\``))}_getContainer(){return this._containerStack.length>0?this._containerStack[this._containerStack.length-1]:null}_getClosestElementLikeParent(){for(let t=this._containerStack.length-1;t>-1;t--){let r=this._containerStack[t];if(r instanceof Hi||r instanceof ri)return r}return null}_addToParent(t){let r=this._getContainer();r===null?this.rootNodes.push(t):r.children.push(t)}_getElementFullName(t,r){return nu(this._getPrefix(t,r),t.parts[1])}_getComponentFullName(t,r){let n=t.parts[0],i=this._getComponentTagName(t,r);return i===null?n:i.startsWith(":")?n+i:`${n}:${i}`}_getComponentTagName(t,r){let n=this._getPrefix(t,r),i=t.parts[2];return!n&&!i?null:!n&&i?i:nu(n,i||"ng-component")}_getPrefix(t,r){var n;let i,s;if(t.type===L.COMPONENT_OPEN_START||t.type===L.INCOMPLETE_COMPONENT_OPEN||t.type===L.COMPONENT_CLOSE?(i=t.parts[1],s=t.parts[2]):(i=t.parts[0],s=t.parts[1]),i=i||((n=this._getTagDefinition(s))===null||n===void 0?void 0:n.implicitNamespacePrefix)||"",!i&&r){let a=r instanceof Hi?r.name:r.tagName;if(a!==null){let o=Rp(a)[1],u=this._getTagDefinition(o);u!==null&&!u.preventNamespaceInheritance&&(i=cc(a))}}return i}};function nD(e,t){return e.length>0&&e[e.length-1]===t}function iD(e,t){return Bu[t]!==void 0?Bu[t]||e:/^#x[a-f0-9]+$/i.test(t)?String.fromCodePoint(parseInt(t.slice(2),16)):/^#\d+$/.test(t)?String.fromCodePoint(parseInt(t.slice(1),10)):e}var yV=class extends fV{constructor(){super(_f)}parse(e,t,r,n=!1,i){return super.parse(e,t,r,n,i)}},rd=null,gV=()=>(rd||(rd=new yV),rd);function jf(e,t={}){let{canSelfClose:r=!1,allowHtmComponentClosingTags:n=!1,isTagNameCaseSensitive:i=!1,getTagContentType:s,tokenizeAngularBlocks:a=!1,tokenizeAngularLetDeclaration:o=!1,enableAngularSelectorlessSyntax:u=!1}=t;return gV().parse(e,"angular-html-parser",{tokenizeExpansionForms:a,canSelfClose:r,allowHtmComponentClosingTags:n,tokenizeBlocks:a,tokenizeLet:o,selectorlessEnabled:u},i,s)}var DV=[EV,CV,AV,TV,SV,kV,FV,wV,PV,bV];function xV(e,t){for(let r of DV)r(e,t);return e}function EV(e){e.walk(t=>{if(t.kind==="element"&&t.tagDefinition.ignoreFirstLf&&t.children.length>0&&t.children[0].kind==="text"&&t.children[0].value[0]===` +`){let r=t.children[0];r.value.length===1?t.removeChild(r):r.value=r.value.slice(1)}})}function CV(e){let t=r=>{var n,i;return r.kind==="element"&&((n=r.prev)==null?void 0:n.kind)==="ieConditionalStartComment"&&r.prev.sourceSpan.end.offset===r.startSourceSpan.start.offset&&((i=r.firstChild)==null?void 0:i.kind)==="ieConditionalEndComment"&&r.firstChild.sourceSpan.start.offset===r.startSourceSpan.end.offset};e.walk(r=>{if(r.children)for(let n=0;n{if(n.children)for(let i=0;it.kind==="cdata",t=>``)}function bV(e){let t=r=>{var n,i;return r.kind==="element"&&r.attrs.length===0&&r.children.length===1&&r.firstChild.kind==="text"&&!wr.hasWhitespaceCharacter(r.children[0].value)&&!r.firstChild.hasLeadingSpaces&&!r.firstChild.hasTrailingSpaces&&r.isLeadingSpaceSensitive&&!r.hasLeadingSpaces&&r.isTrailingSpaceSensitive&&!r.hasTrailingSpaces&&((n=r.prev)==null?void 0:n.kind)==="text"&&((i=r.next)==null?void 0:i.kind)==="text"};e.walk(r=>{if(r.children)for(let n=0;n`+i.firstChild.value+``+a.value,s.sourceSpan=new pe(s.sourceSpan.start,a.sourceSpan.end),s.isTrailingSpaceSensitive=a.isTrailingSpaceSensitive,s.hasTrailingSpaces=a.hasTrailingSpaces,r.removeChild(i),n--,r.removeChild(a)}})}function TV(e,t){if(t.parser==="html")return;let r=/\{\{(.+?)\}\}/su;e.walk(n=>{if(Wj(n,t))for(let i of n.children){if(i.kind!=="text")continue;let s=i.sourceSpan.start,a=null,o=i.value.split(r);for(let u=0;u0&&n.insertChildBefore(i,{kind:"text",value:l,sourceSpan:new pe(s,a)});continue}a=s.moveBy(l.length+4),n.insertChildBefore(i,{kind:"interpolation",sourceSpan:new pe(s,a),children:l.length===0?[]:[{kind:"text",value:l,sourceSpan:new pe(s.moveBy(2),a.moveBy(-2))}]})}n.removeChild(i)}})}function SV(e,t){e.walk(r=>{let n=r.$children;if(!n)return;if(n.length===0||n.length===1&&n[0].kind==="text"&&wr.trim(n[0].value).length===0){r.hasDanglingSpaces=n.length>0,r.$children=[];return}let i=Jj(r,t),s=ST(r);if(!i)for(let a=0;a{t.isSelfClosing=!t.children||t.kind==="element"&&(t.tagDefinition.isVoid||t.endSourceSpan&&t.startSourceSpan.start===t.endSourceSpan.start&&t.startSourceSpan.end===t.endSourceSpan.end)})}function wV(e,t){e.walk(r=>{r.kind==="element"&&(r.hasHtmComponentClosingTag=r.endSourceSpan&&/^<\s*\/\s*\/\s*>$/u.test(t.originalText.slice(r.endSourceSpan.start.offset,r.endSourceSpan.end.offset)))})}function kV(e,t){e.walk(r=>{r.cssDisplay=lR(r,t)})}function PV(e,t){e.walk(r=>{let{children:n}=r;if(n){if(n.length===0){r.isDanglingSpaceSensitive=Gj(r,t);return}for(let i of n)i.isLeadingSpaceSensitive=Xj(i,t),i.isTrailingSpaceSensitive=Kj(i,t);for(let i=0;i of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}},aD="HTML",LV={bracketSameLine:sD.bracketSameLine,htmlWhitespaceSensitivity:{category:aD,type:"choice",default:"css",description:"How to handle whitespaces in HTML.",choices:[{value:"css",description:"Respect the default value of CSS display property."},{value:"strict",description:"Whitespaces are considered sensitive."},{value:"ignore",description:"Whitespaces are considered insensitive."}]},singleAttributePerLine:sD.singleAttributePerLine,vueIndentScriptAndStyle:{category:aD,type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}},ZT=LV,Fy={};sT(Fy,{angular:()=>lz,html:()=>az,lwc:()=>pz,mjml:()=>uz,vue:()=>cz});function $V(e,t){let r=new SyntaxError(e+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(r,t)}var OV=$V,MV={canSelfClose:!0,normalizeTagName:!1,normalizeAttributeName:!1,allowHtmComponentClosingTags:!1,isTagNameCaseSensitive:!1,shouldParseFrontMatter:!0};function eS(e){return{...MV,...e}}function tS(e){let{canSelfClose:t,allowHtmComponentClosingTags:r,isTagNameCaseSensitive:n,shouldParseAsRawText:i,tokenizeAngularBlocks:s,tokenizeAngularLetDeclaration:a}=e;return{canSelfClose:t,allowHtmComponentClosingTags:r,isTagNameCaseSensitive:n,getTagContentType:i?(...o)=>i(...o)?An.RAW_TEXT:void 0:void 0,tokenizeAngularBlocks:s,tokenizeAngularLetDeclaration:a}}var nd=new Map([["*",new Set(["accesskey","autocapitalize","autocorrect","autofocus","class","contenteditable","dir","draggable","enterkeyhint","exportparts","hidden","id","inert","inputmode","is","itemid","itemprop","itemref","itemscope","itemtype","lang","nonce","part","popover","slot","spellcheck","style","tabindex","title","translate","writingsuggestions"])],["a",new Set(["charset","coords","download","href","hreflang","name","ping","referrerpolicy","rel","rev","shape","target","type"])],["applet",new Set(["align","alt","archive","code","codebase","height","hspace","name","object","vspace","width"])],["area",new Set(["alt","coords","download","href","hreflang","nohref","ping","referrerpolicy","rel","shape","target","type"])],["audio",new Set(["autoplay","controls","crossorigin","loop","muted","preload","src"])],["base",new Set(["href","target"])],["basefont",new Set(["color","face","size"])],["blockquote",new Set(["cite"])],["body",new Set(["alink","background","bgcolor","link","text","vlink"])],["br",new Set(["clear"])],["button",new Set(["command","commandfor","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","popovertarget","popovertargetaction","type","value"])],["canvas",new Set(["height","width"])],["caption",new Set(["align"])],["col",new Set(["align","char","charoff","span","valign","width"])],["colgroup",new Set(["align","char","charoff","span","valign","width"])],["data",new Set(["value"])],["del",new Set(["cite","datetime"])],["details",new Set(["name","open"])],["dialog",new Set(["closedby","open"])],["dir",new Set(["compact"])],["div",new Set(["align"])],["dl",new Set(["compact"])],["embed",new Set(["height","src","type","width"])],["fieldset",new Set(["disabled","form","name"])],["font",new Set(["color","face","size"])],["form",new Set(["accept","accept-charset","action","autocomplete","enctype","method","name","novalidate","target"])],["frame",new Set(["frameborder","longdesc","marginheight","marginwidth","name","noresize","scrolling","src"])],["frameset",new Set(["cols","rows"])],["h1",new Set(["align"])],["h2",new Set(["align"])],["h3",new Set(["align"])],["h4",new Set(["align"])],["h5",new Set(["align"])],["h6",new Set(["align"])],["head",new Set(["profile"])],["hr",new Set(["align","noshade","size","width"])],["html",new Set(["manifest","version"])],["iframe",new Set(["align","allow","allowfullscreen","allowpaymentrequest","allowusermedia","frameborder","height","loading","longdesc","marginheight","marginwidth","name","referrerpolicy","sandbox","scrolling","src","srcdoc","width"])],["img",new Set(["align","alt","border","crossorigin","decoding","fetchpriority","height","hspace","ismap","loading","longdesc","name","referrerpolicy","sizes","src","srcset","usemap","vspace","width"])],["input",new Set(["accept","align","alpha","alt","autocomplete","checked","colorspace","dirname","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","ismap","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","popovertarget","popovertargetaction","readonly","required","size","src","step","type","usemap","value","width"])],["ins",new Set(["cite","datetime"])],["isindex",new Set(["prompt"])],["label",new Set(["for","form"])],["legend",new Set(["align"])],["li",new Set(["type","value"])],["link",new Set(["as","blocking","charset","color","crossorigin","disabled","fetchpriority","href","hreflang","imagesizes","imagesrcset","integrity","media","referrerpolicy","rel","rev","sizes","target","type"])],["map",new Set(["name"])],["menu",new Set(["compact"])],["meta",new Set(["charset","content","http-equiv","media","name","scheme"])],["meter",new Set(["high","low","max","min","optimum","value"])],["object",new Set(["align","archive","border","classid","codebase","codetype","data","declare","form","height","hspace","name","standby","type","typemustmatch","usemap","vspace","width"])],["ol",new Set(["compact","reversed","start","type"])],["optgroup",new Set(["disabled","label"])],["option",new Set(["disabled","label","selected","value"])],["output",new Set(["for","form","name"])],["p",new Set(["align"])],["param",new Set(["name","type","value","valuetype"])],["pre",new Set(["width"])],["progress",new Set(["max","value"])],["q",new Set(["cite"])],["script",new Set(["async","blocking","charset","crossorigin","defer","fetchpriority","integrity","language","nomodule","referrerpolicy","src","type"])],["select",new Set(["autocomplete","disabled","form","multiple","name","required","size"])],["slot",new Set(["name"])],["source",new Set(["height","media","sizes","src","srcset","type","width"])],["style",new Set(["blocking","media","type"])],["table",new Set(["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"])],["tbody",new Set(["align","char","charoff","valign"])],["td",new Set(["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"])],["template",new Set(["shadowrootclonable","shadowrootcustomelementregistry","shadowrootdelegatesfocus","shadowrootmode","shadowrootserializable"])],["textarea",new Set(["autocomplete","cols","dirname","disabled","form","maxlength","minlength","name","placeholder","readonly","required","rows","wrap"])],["tfoot",new Set(["align","char","charoff","valign"])],["th",new Set(["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"])],["thead",new Set(["align","char","charoff","valign"])],["time",new Set(["datetime"])],["tr",new Set(["align","bgcolor","char","charoff","valign"])],["track",new Set(["default","kind","label","src","srclang"])],["ul",new Set(["compact","type"])],["video",new Set(["autoplay","controls","crossorigin","height","loop","muted","playsinline","poster","preload","src","width"])]]),jV=new Set(["a","abbr","acronym","address","applet","area","article","aside","audio","b","base","basefont","bdi","bdo","bgsound","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","command","content","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","em","embed","fencedframe","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","image","img","input","ins","isindex","kbd","keygen","label","legend","li","link","listing","main","map","mark","marquee","math","menu","menuitem","meta","meter","multicol","nav","nextid","nobr","noembed","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","plaintext","pre","progress","q","rb","rbc","rp","rt","rtc","ruby","s","samp","script","search","section","select","selectedcontent","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","tt","u","ul","var","video","wbr","xmp"]),jl={attrs:!0,children:!0,cases:!0,expression:!0},oD=new Set(["parent"]),Hs,Rf,Uf,RV=class Io{constructor(t={}){VM(this,Hs),I2(this,"kind"),I2(this,"parent");for(let r of new Set([...oD,...Object.keys(t)]))this.setProperty(r,t[r]);if(_p(t))for(let r of Object.getOwnPropertySymbols(t))this.setProperty(r,t[r])}setProperty(t,r){if(this[t]!==r){if(t in jl&&(r=r.map(n=>this.createChild(n))),!oD.has(t)){this[t]=r;return}Object.defineProperty(this,t,{value:r,enumerable:!1,configurable:!0})}}map(t){let r;for(let n in jl){let i=this[n];if(i){let s=VV(i,a=>a.map(t));r!==i&&(r||(r=new Io({parent:this.parent})),r.setProperty(n,s))}}if(r)for(let n in this)n in jl||(r[n]=this[n]);return t(r||this)}walk(t){for(let r in jl){let n=this[r];if(n)for(let i=0;i[t.fullName,t.value]))}};Hs=new WeakSet,Rf=function(){return this.kind==="angularIcuCase"?"expression":this.kind==="angularIcuExpression"?"cases":"children"},Uf=function(){var e;return((e=this.parent)==null?void 0:e.$children)??[]};var UV=RV;function VV(e,t){let r=e.map(t);return r.some((n,i)=>n!==e[i])?r:e}var zV=[{regex:/^(?\[if(?[^\]]*)\]>)(?.*?)[^\]]*)\]>{try{return[!0,r(s,o).children]}catch{return[!1,[{kind:"text",value:s,sourceSpan:new pe(o,u)}]]}})();return{kind:"ieConditionalComment",complete:l,children:c,condition:jt(0,i.trim(),/\s+/gu," "),sourceSpan:e.sourceSpan,startSourceSpan:new pe(e.sourceSpan.start,o),endSourceSpan:new pe(u,e.sourceSpan.end)}}function WV(e,t){let{condition:r}=t.groups;return{kind:"ieConditionalStartComment",condition:jt(0,r.trim(),/\s+/gu," "),sourceSpan:e.sourceSpan}}function JV(e){return{kind:"ieConditionalEndComment",sourceSpan:e.sourceSpan}}var XV=class extends QU{visitExpansionCase(e,t){t.parseOptions.name==="angular"&&this.visitChildren(t,r=>{r(e.expression)})}visit(e,{parseOptions:t}){ZV(e),ez(e,t),rz(e,t),tz(e)}};function KV(e,t,r,n){XT(new XV,e.children,{parseOptions:r}),t&&e.children.unshift(t);let i=new UV(e);return i.walk(s=>{if(s.kind==="comment"){let a=qV(s,n);a&&s.parent.replaceChild(s,a)}GV(s),QV(s),YV(s)}),i}function GV(e){if(e.kind==="block"){if(e.name=jt(0,e.name.toLowerCase(),/\s+/gu," ").trim(),e.kind="angularControlFlowBlock",!Dy(e.parameters)){delete e.parameters;return}for(let t of e.parameters)t.kind="angularControlFlowBlockParameter";e.parameters={kind:"angularControlFlowBlockParameters",children:e.parameters,sourceSpan:new pe(e.parameters[0].sourceSpan.start,Xa(0,e.parameters,-1).sourceSpan.end)}}}function QV(e){e.kind==="letDeclaration"&&(e.kind="angularLetDeclaration",e.id=e.name,e.init={kind:"angularLetDeclarationInitializer",sourceSpan:new pe(e.valueSpan.start,e.valueSpan.end),value:e.value},delete e.name,delete e.value)}function YV(e){e.kind==="expansion"&&(e.kind="angularIcuExpression"),e.kind==="expansionCase"&&(e.kind="angularIcuCase")}function uD(e,t){let r=e.toLowerCase();return t(r)?r:e}function lD(e){let t=e.name.startsWith(":")?e.name.slice(1).split(":")[0]:null,r=e.nameSpan.toString(),n=t!==null&&r.startsWith(`${t}:`),i=n?r.slice(t.length+1):r;e.name=i,e.namespace=t,e.hasExplicitNamespace=n}function ZV(e){switch(e.kind){case"element":lD(e);for(let t of e.attrs)lD(t),t.valueSpan?(t.value=t.valueSpan.toString(),/["']/u.test(t.value[0])&&(t.value=t.value.slice(1,-1))):t.value=null;break;case"comment":e.value=e.sourceSpan.toString().slice(4,-3);break;case"text":e.value=e.sourceSpan.toString();break}}function ez(e,t){if(e.kind==="element"){let r=_f(t.isTagNameCaseSensitive?e.name:e.name.toLowerCase());!e.namespace||e.namespace===r.implicitNamespacePrefix||el(e)?e.tagDefinition=r:e.tagDefinition=_f("")}}function tz(e){e.sourceSpan&&e.endSourceSpan&&(e.sourceSpan=new pe(e.sourceSpan.start,e.endSourceSpan.end))}function rz(e,t){if(e.kind==="element"&&(t.normalizeTagName&&(!e.namespace||e.namespace===e.tagDefinition.implicitNamespacePrefix||el(e))&&(e.name=uD(e.name,r=>jV.has(r))),t.normalizeAttributeName))for(let r of e.attrs)r.namespace||(r.name=uD(r.name,n=>nd.has(e.name)&&(nd.get("*").has(n)||nd.get(e.name).has(n))))}function rS(e,t){let{rootNodes:r,errors:n}=jf(e,tS(t));return n.length>0&&Vf(n[0]),{parseOptions:t,rootNodes:r}}function nz(e,t){let r=tS(t),{rootNodes:n,errors:i}=jf(e,r);if(n.some(u=>u.kind==="docType"&&u.value==="html"||u.kind==="element"&&u.name.toLowerCase()==="html"))return rS(e,wy);let s,a=()=>s??(s=jf(e,{...r,getTagContentType:void 0})),o=u=>{let{offset:l}=u.startSourceSpan.start;return a().rootNodes.find(c=>c.kind==="element"&&c.startSourceSpan.start.offset===l)??u};for(let[u,l]of n.entries())if(l.kind==="element"){if(l.isVoid)i=a().errors,n[u]=o(l);else if(iz(l)){let{endSourceSpan:c,startSourceSpan:p}=l,h=a().errors.find(d=>d.span.start.offset>p.start.offset&&d.span.start.offset0&&Vf(i[0]),{parseOptions:t,rootNodes:n}}function iz(e){var r;if(e.kind!=="element"||e.name!=="template")return!1;let t=(r=e.attrs.find(n=>n.name==="lang"))==null?void 0:r.value;return!t||t==="html"}function Vf(e){let{msg:t,span:{start:r,end:n}}=e;throw OV(t,{loc:{start:{line:r.line+1,column:r.col+1},end:{line:n.line+1,column:n.col+1}},cause:e})}function sz(e,t,r,n,i,s){let{offset:a}=n,o=jt(0,t.slice(0,a),/[^\n]/gu," ")+r,u=nS(o,e,{...i,shouldParseFrontMatter:!1},s);u.sourceSpan=new pe(n,Xa(0,u.children,-1).sourceSpan.end);let l=u.children[0];return l.length===a?u.children.shift():(l.sourceSpan=new pe(l.sourceSpan.start.moveBy(a),l.sourceSpan.end),l.value=l.value.slice(a)),u}function nS(e,t,r,n={}){let{frontMatter:i,content:s}=r.shouldParseFrontMatter?jj(e):{content:e},a=new JT(e,n.filepath),o=new Lf(a,0,0,0),u=o.moveBy(e.length),{parseOptions:l,rootNodes:c}=t(s,r),p={kind:"root",sourceSpan:new pe(o,u),children:c},h;if(i){let[d,f]=[i.start,i.end].map(y=>new Lf(a,y.index,y.line-1,y.column));h={...i,kind:"frontMatter",sourceSpan:new pe(d,f)}}return KV(p,h,l,(d,f)=>sz(t,e,d,f,l,n))}var wy=eS({name:"html",normalizeTagName:!0,normalizeAttributeName:!0,allowHtmComponentClosingTags:!0});function sl(e){let t=eS(e),r=t.name==="vue"?nz:rS;return{parse:(n,i)=>nS(n,r,t,i),hasPragma:xU,hasIgnorePragma:EU,astFormat:"html",locStart:rl,locEnd:Op}}var az=sl(wy),oz=new Set(["mj-style","mj-raw"]),uz=sl({...wy,name:"mjml",shouldParseAsRawText:e=>oz.has(e)}),lz=sl({name:"angular",tokenizeAngularBlocks:!0,tokenizeAngularLetDeclaration:!0}),cz=sl({name:"vue",isTagNameCaseSensitive:!0,shouldParseAsRawText(e,t,r,n){return e.toLowerCase()!=="html"&&!r&&(e!=="template"||n.some(({name:i,value:s})=>i==="lang"&&s!=="html"&&s!==""&&s!==void 0))}}),pz=sl({name:"lwc",canSelfClose:!1}),iS={html:_V};const hz=Object.freeze(Object.defineProperty({__proto__:null,default:aT,languages:YT,options:ZT,parsers:Fy,printers:iS},Symbol.toStringTag,{value:"Module"}));function dz(e){const t=e.trim();if(t.startsWith("\s+<");let i=0;for(;i",i);if(s===-1)break;const a=e.substring(i,s+1);a.startsWith("")||a.startsWith(""u"&&(this.Diff_Timeout<=0?u=Number.MAX_VALUE:u=new Date().getTime()+this.Diff_Timeout*1e3);var l=u;if(s==null||a==null)throw new Error("Null input. (diff_main)");if(s==a)return s?[new t.Diff(i,s)]:[];typeof o>"u"&&(o=!0);var c=o,p=this.diff_commonPrefix(s,a),h=s.substring(0,p);s=s.substring(p),a=a.substring(p),p=this.diff_commonSuffix(s,a);var d=s.substring(s.length-p);s=s.substring(0,s.length-p),a=a.substring(0,a.length-p);var f=this.diff_compute_(s,a,c,l);return h&&f.unshift(new t.Diff(i,h)),d&&f.push(new t.Diff(i,d)),this.diff_cleanupMerge(f),f},t.prototype.diff_compute_=function(s,a,o,u){var l;if(!s)return[new t.Diff(n,a)];if(!a)return[new t.Diff(r,s)];var c=s.length>a.length?s:a,p=s.length>a.length?a:s,h=c.indexOf(p);if(h!=-1)return l=[new t.Diff(n,c.substring(0,h)),new t.Diff(i,p),new t.Diff(n,c.substring(h+p.length))],s.length>a.length&&(l[0][0]=l[2][0]=r),l;if(p.length==1)return[new t.Diff(r,s),new t.Diff(n,a)];var d=this.diff_halfMatch_(s,a);if(d){var f=d[0],y=d[1],x=d[2],g=d[3],m=d[4],D=this.diff_main(f,x,o,u),v=this.diff_main(y,g,o,u);return D.concat([new t.Diff(i,m)],v)}return o&&s.length>100&&a.length>100?this.diff_lineMode_(s,a,u):this.diff_bisect_(s,a,u)},t.prototype.diff_lineMode_=function(s,a,o){var u=this.diff_linesToChars_(s,a);s=u.chars1,a=u.chars2;var l=u.lineArray,c=this.diff_main(s,a,!1,o);this.diff_charsToLines_(c,l),this.diff_cleanupSemantic(c),c.push(new t.Diff(i,""));for(var p=0,h=0,d=0,f="",y="";p=1&&d>=1){c.splice(p-h-d,h+d),p=p-h-d;for(var x=this.diff_main(f,y,!1,o),g=x.length-1;g>=0;g--)c.splice(p,0,x[g]);p=p+x.length}d=0,h=0,f="",y="";break}p++}return c.pop(),c},t.prototype.diff_bisect_=function(s,a,o){for(var u=s.length,l=a.length,c=Math.ceil((u+l)/2),p=c,h=2*c,d=new Array(h),f=new Array(h),y=0;yo);P++){for(var N=-P+m;N<=P-D;N+=2){var E=p+N,A;N==-P||N!=P&&d[E-1]u)D+=2;else if(T>l)m+=2;else if(g){var B=p+x-N;if(B>=0&&B=M)return this.diff_bisectSplit_(s,a,A,T,o)}}}for(var k=-P+v;k<=P-b;k+=2){var B=p+k,M;k==-P||k!=P&&f[B-1]u)b+=2;else if(J>l)v+=2;else if(!g){var E=p+x-k;if(E>=0&&E=M)return this.diff_bisectSplit_(s,a,A,T,o)}}}}return[new t.Diff(r,s),new t.Diff(n,a)]},t.prototype.diff_bisectSplit_=function(s,a,o,u,l){var c=s.substring(0,o),p=a.substring(0,u),h=s.substring(o),d=a.substring(u),f=this.diff_main(c,p,!1,l),y=this.diff_main(h,d,!1,l);return f.concat(y)},t.prototype.diff_linesToChars_=function(s,a){var o=[],u={};o[0]="";function l(d){for(var f="",y=0,x=-1,g=o.length;xu?s=s.substring(o-u):oa.length?s:a,u=s.length>a.length?a:s;if(o.length<4||u.length*2=D.length?[A,T,B,M,E]:null}var p=c(o,u,Math.ceil(o.length/4)),h=c(o,u,Math.ceil(o.length/2)),d;if(!p&&!h)return null;h?p?d=p[4].length>h[4].length?p:h:d=h:d=p;var f,y,x,g;s.length>a.length?(f=d[0],y=d[1],x=d[2],g=d[3]):(x=d[0],g=d[1],f=d[2],y=d[3]);var m=d[4];return[f,y,x,g,m]},t.prototype.diff_cleanupSemantic=function(s){for(var a=!1,o=[],u=0,l=null,c=0,p=0,h=0,d=0,f=0;c0?o[u-1]:-1,p=0,h=0,d=0,f=0,l=null,a=!0)),c++;for(a&&this.diff_cleanupMerge(s),this.diff_cleanupSemanticLossless(s),c=1;c=m?(g>=y.length/2||g>=x.length/2)&&(s.splice(c,0,new t.Diff(i,x.substring(0,g))),s[c-1][1]=y.substring(0,y.length-g),s[c+1][1]=x.substring(g),c++):(m>=y.length/2||m>=x.length/2)&&(s.splice(c,0,new t.Diff(i,y.substring(0,m))),s[c-1][0]=n,s[c-1][1]=x.substring(0,x.length-m),s[c+1][0]=r,s[c+1][1]=y.substring(m),c++),c++}c++}},t.prototype.diff_cleanupSemanticLossless=function(s){function a(m,D){if(!m||!D)return 6;var v=m.charAt(m.length-1),b=D.charAt(0),P=v.match(t.nonAlphaNumericRegex_),N=b.match(t.nonAlphaNumericRegex_),E=P&&v.match(t.whitespaceRegex_),A=N&&b.match(t.whitespaceRegex_),T=E&&v.match(t.linebreakRegex_),B=A&&b.match(t.linebreakRegex_),M=T&&m.match(t.blanklineEndRegex_),k=B&&D.match(t.blanklineStartRegex_);return M||k?5:T||B?4:P&&!E&&A?3:E||A?2:P||N?1:0}for(var o=1;o=x&&(x=g,d=u,f=l,y=c)}s[o-1][1]!=d&&(d?s[o-1][1]=d:(s.splice(o-1,1),o--),s[o][1]=f,y?s[o+1][1]=y:(s.splice(o+1,1),o--))}o++}},t.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,t.whitespaceRegex_=/\s/,t.linebreakRegex_=/[\r\n]/,t.blanklineEndRegex_=/\n\r?\n$/,t.blanklineStartRegex_=/^\r?\n\r?\n/,t.prototype.diff_cleanupEfficiency=function(s){for(var a=!1,o=[],u=0,l=null,c=0,p=!1,h=!1,d=!1,f=!1;c0?o[u-1]:-1,d=f=!1),a=!0)),c++;a&&this.diff_cleanupMerge(s)},t.prototype.diff_cleanupMerge=function(s){s.push(new t.Diff(i,""));for(var a=0,o=0,u=0,l="",c="",p;a1?(o!==0&&u!==0&&(p=this.diff_commonPrefix(c,l),p!==0&&(a-o-u>0&&s[a-o-u-1][0]==i?s[a-o-u-1][1]+=c.substring(0,p):(s.splice(0,0,new t.Diff(i,c.substring(0,p))),a++),c=c.substring(p),l=l.substring(p)),p=this.diff_commonSuffix(c,l),p!==0&&(s[a][1]=c.substring(c.length-p)+s[a][1],c=c.substring(0,c.length-p),l=l.substring(0,l.length-p))),a-=o+u,s.splice(a,o+u),l.length&&(s.splice(a,0,new t.Diff(r,l)),a++),c.length&&(s.splice(a,0,new t.Diff(n,c)),a++),a++):a!==0&&s[a-1][0]==i?(s[a-1][1]+=s[a][1],s.splice(a,1)):a++,u=0,o=0,l="",c="";break}s[s.length-1][1]===""&&s.pop();var h=!1;for(a=1;aa));p++)l=o,c=u;return s.length!=p&&s[p][0]===r?c:c+(a-l)},t.prototype.diff_prettyHtml=function(s){for(var a=[],o=/&/g,u=//g,c=/\n/g,p=0;p");switch(h){case n:a[p]=''+f+"";break;case r:a[p]=''+f+"";break;case i:a[p]=""+f+"";break}}return a.join("")},t.prototype.diff_text1=function(s){for(var a=[],o=0;othis.Match_MaxBits)throw new Error("Pattern too long for this browser.");var u=this.match_alphabet_(a),l=this;function c(A,T){var B=A/a.length,M=Math.abs(o-T);return l.Match_Distance?B+M/l.Match_Distance:M?1:B}var p=this.Match_Threshold,h=s.indexOf(a,o);h!=-1&&(p=Math.min(c(0,h),p),h=s.lastIndexOf(a,o+a.length),h!=-1&&(p=Math.min(c(0,h),p)));var d=1<=D;P--){var N=u[s.charAt(P-1)];if(m===0?b[P]=(b[P+1]<<1|1)&N:b[P]=(b[P+1]<<1|1)&N|((g[P+1]|g[P])<<1|1)|g[P+1],b[P]&d){var E=c(m,P-1);if(E<=p)if(p=E,h=P-1,h>o)D=Math.max(1,2*o-h);else break}}if(c(m+1,o)>p)break;g=b}return h},t.prototype.match_alphabet_=function(s){for(var a={},o=0;o"u")u=s,l=this.diff_main(u,a,!0),l.length>2&&(this.diff_cleanupSemantic(l),this.diff_cleanupEfficiency(l));else if(s&&typeof s=="object"&&typeof a>"u"&&typeof o>"u")l=s,u=this.diff_text1(l);else if(typeof s=="string"&&a&&typeof a=="object"&&typeof o>"u")u=s,l=a;else if(typeof s=="string"&&typeof a=="string"&&o&&typeof o=="object")u=s,l=o;else throw new Error("Unknown call format to patch_make.");if(l.length===0)return[];for(var c=[],p=new t.patch_obj,h=0,d=0,f=0,y=u,x=u,g=0;g=2*this.Patch_Margin&&h&&(this.patch_addContext_(p,y),c.push(p),p=new t.patch_obj,h=0,y=x,d=f);break}m!==n&&(d+=D.length),m!==r&&(f+=D.length)}return h&&(this.patch_addContext_(p,y),c.push(p)),c},t.prototype.patch_deepCopy=function(s){for(var a=[],o=0;othis.Match_MaxBits?(d=this.match_main(a,h.substring(0,this.Match_MaxBits),p),d!=-1&&(f=this.match_main(a,h.substring(h.length-this.Match_MaxBits),p+h.length-this.Match_MaxBits),(f==-1||d>=f)&&(d=-1))):d=this.match_main(a,h,p),d==-1)l[c]=!1,u-=s[c].length2-s[c].length1;else{l[c]=!0,u=d-p;var y;if(f==-1?y=a.substring(d,d+h.length):y=a.substring(d,f+this.Match_MaxBits),h==y)a=a.substring(0,d)+this.diff_text2(s[c].diffs)+a.substring(d+h.length);else{var x=this.diff_main(h,y,!1);if(h.length>this.Match_MaxBits&&this.diff_levenshtein(x)/h.length>this.Patch_DeleteThreshold)l[c]=!1;else{this.diff_cleanupSemanticLossless(x);for(var g=0,m,D=0;Dc[0][1].length){var p=a-c[0][1].length;c[0][1]=o.substring(c[0][1].length)+c[0][1],l.start1-=p,l.start2-=p,l.length1+=p,l.length2+=p}if(l=s[s.length-1],c=l.diffs,c.length==0||c[c.length-1][0]!=i)c.push(new t.Diff(i,o)),l.length1+=a,l.length2+=a;else if(a>c[c.length-1][1].length){var p=a-c[c.length-1][1].length;c[c.length-1][1]+=o.substring(0,p),l.length1+=p,l.length2+=p}return o},t.prototype.patch_splitMax=function(s){for(var a=this.Match_MaxBits,o=0;o2*a?(h.length1+=y.length,l+=y.length,d=!1,h.diffs.push(new t.Diff(f,y)),u.diffs.shift()):(y=y.substring(0,a-h.length1-this.Patch_Margin),h.length1+=y.length,l+=y.length,f===i?(h.length2+=y.length,c+=y.length):d=!1,h.diffs.push(new t.Diff(f,y)),y==u.diffs[0][1]?u.diffs.shift():u.diffs[0][1]=u.diffs[0][1].substring(y.length))}p=this.diff_text2(h.diffs),p=p.substring(p.length-this.Patch_Margin);var x=this.diff_text1(u.diffs).substring(0,this.Patch_Margin);x!==""&&(h.length1+=x.length,h.length2+=x.length,h.diffs.length!==0&&h.diffs[h.diffs.length-1][0]===i?h.diffs[h.diffs.length-1][1]+=x:h.diffs.push(new t.Diff(i,x))),d||s.splice(++o,0,h)}}},t.prototype.patch_toText=function(s){for(var a=[],o=0;o"u"&&(this.Diff_Timeout<=0?u=Number.MAX_VALUE:u=new Date().getTime()+this.Diff_Timeout*1e3);var l=u;if(s==null||a==null)throw new Error("Null input. (diff_main)");if(s==a)return s?[new t.Diff(i,s)]:[];typeof o>"u"&&(o=!0);var c=o,p=this.diff_commonPrefix(s,a),h=s.substring(0,p);s=s.substring(p),a=a.substring(p),p=this.diff_commonSuffix(s,a);var d=s.substring(s.length-p);s=s.substring(0,s.length-p),a=a.substring(0,a.length-p);var f=this.diff_compute_(s,a,c,l);return h&&f.unshift(new t.Diff(i,h)),d&&f.push(new t.Diff(i,d)),this.diff_cleanupMerge(f),f},t.prototype.diff_compute_=function(s,a,o,u){var l;if(!s)return[new t.Diff(n,a)];if(!a)return[new t.Diff(r,s)];var c=s.length>a.length?s:a,p=s.length>a.length?a:s,h=c.indexOf(p);if(h!=-1)return l=[new t.Diff(n,c.substring(0,h)),new t.Diff(i,p),new t.Diff(n,c.substring(h+p.length))],s.length>a.length&&(l[0][0]=l[2][0]=r),l;if(p.length==1)return[new t.Diff(r,s),new t.Diff(n,a)];var d=this.diff_halfMatch_(s,a);if(d){var f=d[0],y=d[1],C=d[2],g=d[3],m=d[4],x=this.diff_main(f,C,o,u),v=this.diff_main(y,g,o,u);return x.concat([new t.Diff(i,m)],v)}return o&&s.length>100&&a.length>100?this.diff_lineMode_(s,a,u):this.diff_bisect_(s,a,u)},t.prototype.diff_lineMode_=function(s,a,o){var u=this.diff_linesToChars_(s,a);s=u.chars1,a=u.chars2;var l=u.lineArray,c=this.diff_main(s,a,!1,o);this.diff_charsToLines_(c,l),this.diff_cleanupSemantic(c),c.push(new t.Diff(i,""));for(var p=0,h=0,d=0,f="",y="";p=1&&d>=1){c.splice(p-h-d,h+d),p=p-h-d;for(var C=this.diff_main(f,y,!1,o),g=C.length-1;g>=0;g--)c.splice(p,0,C[g]);p=p+C.length}d=0,h=0,f="",y="";break}p++}return c.pop(),c},t.prototype.diff_bisect_=function(s,a,o){for(var u=s.length,l=a.length,c=Math.ceil((u+l)/2),p=c,h=2*c,d=new Array(h),f=new Array(h),y=0;yo);k++){for(var N=-k+m;N<=k-x;N+=2){var E=p+N,A;N==-k||N!=k&&d[E-1]u)x+=2;else if(b>l)m+=2;else if(g){var B=p+C-N;if(B>=0&&B=M)return this.diff_bisectSplit_(s,a,A,b,o)}}}for(var P=-k+v;P<=k-T;P+=2){var B=p+P,M;P==-k||P!=k&&f[B-1]u)T+=2;else if(J>l)v+=2;else if(!g){var E=p+C-P;if(E>=0&&E=M)return this.diff_bisectSplit_(s,a,A,b,o)}}}}return[new t.Diff(r,s),new t.Diff(n,a)]},t.prototype.diff_bisectSplit_=function(s,a,o,u,l){var c=s.substring(0,o),p=a.substring(0,u),h=s.substring(o),d=a.substring(u),f=this.diff_main(c,p,!1,l),y=this.diff_main(h,d,!1,l);return f.concat(y)},t.prototype.diff_linesToChars_=function(s,a){var o=[],u={};o[0]="";function l(d){for(var f="",y=0,C=-1,g=o.length;Cu?s=s.substring(o-u):oa.length?s:a,u=s.length>a.length?a:s;if(o.length<4||u.length*2=x.length?[A,b,B,M,E]:null}var p=c(o,u,Math.ceil(o.length/4)),h=c(o,u,Math.ceil(o.length/2)),d;if(!p&&!h)return null;h?p?d=p[4].length>h[4].length?p:h:d=h:d=p;var f,y,C,g;s.length>a.length?(f=d[0],y=d[1],C=d[2],g=d[3]):(C=d[0],g=d[1],f=d[2],y=d[3]);var m=d[4];return[f,y,C,g,m]},t.prototype.diff_cleanupSemantic=function(s){for(var a=!1,o=[],u=0,l=null,c=0,p=0,h=0,d=0,f=0;c0?o[u-1]:-1,p=0,h=0,d=0,f=0,l=null,a=!0)),c++;for(a&&this.diff_cleanupMerge(s),this.diff_cleanupSemanticLossless(s),c=1;c=m?(g>=y.length/2||g>=C.length/2)&&(s.splice(c,0,new t.Diff(i,C.substring(0,g))),s[c-1][1]=y.substring(0,y.length-g),s[c+1][1]=C.substring(g),c++):(m>=y.length/2||m>=C.length/2)&&(s.splice(c,0,new t.Diff(i,y.substring(0,m))),s[c-1][0]=n,s[c-1][1]=C.substring(0,C.length-m),s[c+1][0]=r,s[c+1][1]=y.substring(m),c++),c++}c++}},t.prototype.diff_cleanupSemanticLossless=function(s){function a(m,x){if(!m||!x)return 6;var v=m.charAt(m.length-1),T=x.charAt(0),k=v.match(t.nonAlphaNumericRegex_),N=T.match(t.nonAlphaNumericRegex_),E=k&&v.match(t.whitespaceRegex_),A=N&&T.match(t.whitespaceRegex_),b=E&&v.match(t.linebreakRegex_),B=A&&T.match(t.linebreakRegex_),M=b&&m.match(t.blanklineEndRegex_),P=B&&x.match(t.blanklineStartRegex_);return M||P?5:b||B?4:k&&!E&&A?3:E||A?2:k||N?1:0}for(var o=1;o=C&&(C=g,d=u,f=l,y=c)}s[o-1][1]!=d&&(d?s[o-1][1]=d:(s.splice(o-1,1),o--),s[o][1]=f,y?s[o+1][1]=y:(s.splice(o+1,1),o--))}o++}},t.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,t.whitespaceRegex_=/\s/,t.linebreakRegex_=/[\r\n]/,t.blanklineEndRegex_=/\n\r?\n$/,t.blanklineStartRegex_=/^\r?\n\r?\n/,t.prototype.diff_cleanupEfficiency=function(s){for(var a=!1,o=[],u=0,l=null,c=0,p=!1,h=!1,d=!1,f=!1;c0?o[u-1]:-1,d=f=!1),a=!0)),c++;a&&this.diff_cleanupMerge(s)},t.prototype.diff_cleanupMerge=function(s){s.push(new t.Diff(i,""));for(var a=0,o=0,u=0,l="",c="",p;a1?(o!==0&&u!==0&&(p=this.diff_commonPrefix(c,l),p!==0&&(a-o-u>0&&s[a-o-u-1][0]==i?s[a-o-u-1][1]+=c.substring(0,p):(s.splice(0,0,new t.Diff(i,c.substring(0,p))),a++),c=c.substring(p),l=l.substring(p)),p=this.diff_commonSuffix(c,l),p!==0&&(s[a][1]=c.substring(c.length-p)+s[a][1],c=c.substring(0,c.length-p),l=l.substring(0,l.length-p))),a-=o+u,s.splice(a,o+u),l.length&&(s.splice(a,0,new t.Diff(r,l)),a++),c.length&&(s.splice(a,0,new t.Diff(n,c)),a++),a++):a!==0&&s[a-1][0]==i?(s[a-1][1]+=s[a][1],s.splice(a,1)):a++,u=0,o=0,l="",c="";break}s[s.length-1][1]===""&&s.pop();var h=!1;for(a=1;aa));p++)l=o,c=u;return s.length!=p&&s[p][0]===r?c:c+(a-l)},t.prototype.diff_prettyHtml=function(s){for(var a=[],o=/&/g,u=//g,c=/\n/g,p=0;p");switch(h){case n:a[p]=''+f+"";break;case r:a[p]=''+f+"";break;case i:a[p]=""+f+"";break}}return a.join("")},t.prototype.diff_text1=function(s){for(var a=[],o=0;othis.Match_MaxBits)throw new Error("Pattern too long for this browser.");var u=this.match_alphabet_(a),l=this;function c(A,b){var B=A/a.length,M=Math.abs(o-b);return l.Match_Distance?B+M/l.Match_Distance:M?1:B}var p=this.Match_Threshold,h=s.indexOf(a,o);h!=-1&&(p=Math.min(c(0,h),p),h=s.lastIndexOf(a,o+a.length),h!=-1&&(p=Math.min(c(0,h),p)));var d=1<=x;k--){var N=u[s.charAt(k-1)];if(m===0?T[k]=(T[k+1]<<1|1)&N:T[k]=(T[k+1]<<1|1)&N|((g[k+1]|g[k])<<1|1)|g[k+1],T[k]&d){var E=c(m,k-1);if(E<=p)if(p=E,h=k-1,h>o)x=Math.max(1,2*o-h);else break}}if(c(m+1,o)>p)break;g=T}return h},t.prototype.match_alphabet_=function(s){for(var a={},o=0;o"u")u=s,l=this.diff_main(u,a,!0),l.length>2&&(this.diff_cleanupSemantic(l),this.diff_cleanupEfficiency(l));else if(s&&typeof s=="object"&&typeof a>"u"&&typeof o>"u")l=s,u=this.diff_text1(l);else if(typeof s=="string"&&a&&typeof a=="object"&&typeof o>"u")u=s,l=a;else if(typeof s=="string"&&typeof a=="string"&&o&&typeof o=="object")u=s,l=o;else throw new Error("Unknown call format to patch_make.");if(l.length===0)return[];for(var c=[],p=new t.patch_obj,h=0,d=0,f=0,y=u,C=u,g=0;g=2*this.Patch_Margin&&h&&(this.patch_addContext_(p,y),c.push(p),p=new t.patch_obj,h=0,y=C,d=f);break}m!==n&&(d+=x.length),m!==r&&(f+=x.length)}return h&&(this.patch_addContext_(p,y),c.push(p)),c},t.prototype.patch_deepCopy=function(s){for(var a=[],o=0;othis.Match_MaxBits?(d=this.match_main(a,h.substring(0,this.Match_MaxBits),p),d!=-1&&(f=this.match_main(a,h.substring(h.length-this.Match_MaxBits),p+h.length-this.Match_MaxBits),(f==-1||d>=f)&&(d=-1))):d=this.match_main(a,h,p),d==-1)l[c]=!1,u-=s[c].length2-s[c].length1;else{l[c]=!0,u=d-p;var y;if(f==-1?y=a.substring(d,d+h.length):y=a.substring(d,f+this.Match_MaxBits),h==y)a=a.substring(0,d)+this.diff_text2(s[c].diffs)+a.substring(d+h.length);else{var C=this.diff_main(h,y,!1);if(h.length>this.Match_MaxBits&&this.diff_levenshtein(C)/h.length>this.Patch_DeleteThreshold)l[c]=!1;else{this.diff_cleanupSemanticLossless(C);for(var g=0,m,x=0;xc[0][1].length){var p=a-c[0][1].length;c[0][1]=o.substring(c[0][1].length)+c[0][1],l.start1-=p,l.start2-=p,l.length1+=p,l.length2+=p}if(l=s[s.length-1],c=l.diffs,c.length==0||c[c.length-1][0]!=i)c.push(new t.Diff(i,o)),l.length1+=a,l.length2+=a;else if(a>c[c.length-1][1].length){var p=a-c[c.length-1][1].length;c[c.length-1][1]+=o.substring(0,p),l.length1+=p,l.length2+=p}return o},t.prototype.patch_splitMax=function(s){for(var a=this.Match_MaxBits,o=0;o2*a?(h.length1+=y.length,l+=y.length,d=!1,h.diffs.push(new t.Diff(f,y)),u.diffs.shift()):(y=y.substring(0,a-h.length1-this.Patch_Margin),h.length1+=y.length,l+=y.length,f===i?(h.length2+=y.length,c+=y.length):d=!1,h.diffs.push(new t.Diff(f,y)),y==u.diffs[0][1]?u.diffs.shift():u.diffs[0][1]=u.diffs[0][1].substring(y.length))}p=this.diff_text2(h.diffs),p=p.substring(p.length-this.Patch_Margin);var C=this.diff_text1(u.diffs).substring(0,this.Patch_Margin);C!==""&&(h.length1+=C.length,h.length2+=C.length,h.diffs.length!==0&&h.diffs[h.diffs.length-1][0]===i?h.diffs[h.diffs.length-1][1]+=C:h.diffs.push(new t.Diff(i,C))),d||s.splice(++o,0,h)}}},t.prototype.patch_toText=function(s){for(var a=[],o=0;otypeof window>"u"?16:parseFloat(getComputedStyle(document.documentElement).fontSize),JV=(e,t=VS())=>e/t,XV=(e,t=VS())=>e*t,KV=(e,t=16)=>e/t,GV=(e,t=16)=>e*t,QV=(e,t=typeof window<"u"?window.innerWidth:1920)=>e/t*100,YV=(e,t=typeof window<"u"?window.innerWidth:1920)=>e/100*t,ZV=(e,t=typeof window<"u"?window.innerHeight:1080)=>e/t*100,ez=(e,t=typeof window<"u"?window.innerHeight:1080)=>e/100*t,tz=(e,t)=>e/t*100,rz=(e,t)=>e/100*t,nz=e=>e/96,iz=e=>e*96,sz=e=>e/(96/2.54),az=e=>e*(96/2.54),oz=e=>new Promise((t,r)=>{const n=new FileReader;n.onload=()=>t(n.result),n.onerror=r,n.readAsDataURL(e)}),uz=e=>e.split(",")[1]||"",KD=(e,t)=>`data:${t};base64,${e}`,GD=e=>{try{const t=atob(e),r=new Uint8Array(t.length);for(let n=0;n{try{const t=new Uint8Array(e.split(" ").map(Number));let r="";for(let n=0;n{if(!e)return 0;const t=(e.match(/=/g)||[]).length;return e.length*3/4-t},zS=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",cz=zS+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",pz="["+zS+"]["+cz+"]*",hz=new RegExp("^"+pz+"$");function qS(e,t){const r=[];let n=t.exec(e);for(;n;){const i=[];i.startIndex=t.lastIndex-n[0].length;const s=n.length;for(let a=0;a"u")};function dz(e){return typeof e<"u"}const fz={allowBooleanAttributes:!1,unpairedTags:[]};function mz(e,t){t=Object.assign({},fz,t);const r=[];let n=!1,i=!1;e[0]==="\uFEFF"&&(e=e.substr(1));for(let s=0;s"&&e[s]!==" "&&e[s]!==" "&&e[s]!==` -`&&e[s]!=="\r";s++)u+=e[s];if(u=u.trim(),u[u.length-1]==="/"&&(u=u.substring(0,u.length-1),s--),!Az(u)){let p;return u.trim().length===0?p="Invalid space after '<'.":p="Tag '"+u+"' is an invalid name.",Ye("InvalidTag",p,It(e,s))}const l=Dz(e,s);if(l===!1)return Ye("InvalidAttr","Attributes for '"+u+"' have open quote.",It(e,s));let c=l.value;if(s=l.index,c[c.length-1]==="/"){const p=s-c.length;c=c.substring(0,c.length-1);const h=t2(c,t);if(h===!0)n=!0;else return Ye(h.err.code,h.err.msg,It(e,p+h.err.line))}else if(o)if(l.tagClosed){if(c.trim().length>0)return Ye("InvalidTag","Closing tag '"+u+"' can't have attributes or invalid starting.",It(e,a));if(r.length===0)return Ye("InvalidTag","Closing tag '"+u+"' has not been opened.",It(e,a));{const p=r.pop();if(u!==p.tagName){let h=It(e,p.tagStartPos);return Ye("InvalidTag","Expected closing tag '"+p.tagName+"' (opened in line "+h.line+", col "+h.col+") instead of closing tag '"+u+"'.",It(e,a))}r.length==0&&(i=!0)}}else return Ye("InvalidTag","Closing tag '"+u+"' doesn't have proper closing.",It(e,s));else{const p=t2(c,t);if(p!==!0)return Ye(p.err.code,p.err.msg,It(e,s-c.length+p.err.line));if(i===!0)return Ye("InvalidXml","Multiple possible root nodes found.",It(e,s));t.unpairedTags.indexOf(u)!==-1||r.push({tagName:u,tagStartPos:a}),n=!0}for(s++;s0)return Ye("InvalidXml","Invalid '"+JSON.stringify(r.map(s=>s.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Ye("InvalidXml","Start tag expected.",1);return!0}function YD(e){return e===" "||e===" "||e===` -`||e==="\r"}function ZD(e,t){const r=t;for(;t5&&n==="xml")return Ye("InvalidXml","XML declaration allowed only at the start of the document.",It(e,t));if(e[t]=="?"&&e[t+1]==">"){t++;break}else continue}return t}function e2(e,t){if(e.length>t+5&&e[t+1]==="-"&&e[t+2]==="-"){for(t+=3;t"){t+=2;break}}else if(e.length>t+8&&e[t+1]==="D"&&e[t+2]==="O"&&e[t+3]==="C"&&e[t+4]==="T"&&e[t+5]==="Y"&&e[t+6]==="P"&&e[t+7]==="E"){let r=1;for(t+=8;t"&&(r--,r===0))break}else if(e.length>t+9&&e[t+1]==="["&&e[t+2]==="C"&&e[t+3]==="D"&&e[t+4]==="A"&&e[t+5]==="T"&&e[t+6]==="A"&&e[t+7]==="["){for(t+=8;t"){t+=2;break}}return t}const yz='"',gz="'";function Dz(e,t){let r="",n="",i=!1;for(;t"&&n===""){i=!0;break}r+=e[t]}return n!==""?!1:{value:r,index:t,tagClosed:i}}const Ez=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function t2(e,t){const r=qS(e,Ez),n={};for(let i=0;i!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(e,t,r){return e},captureMetaData:!1},Sz=function(e){return Object.assign({},Tz,e)};let Rc;typeof Symbol!="function"?Rc="@@xmlMetadata":Rc=Symbol("XML Node Metadata");class Qi{constructor(t){this.tagname=t,this.child=[],this[":@"]={}}add(t,r){t==="__proto__"&&(t="#__proto__"),this.child.push({[t]:r})}addChild(t,r){t.tagname==="__proto__"&&(t.tagname="#__proto__"),t[":@"]&&Object.keys(t[":@"]).length>0?this.child.push({[t.tagname]:t.child,":@":t[":@"]}):this.child.push({[t.tagname]:t.child}),r!==void 0&&(this.child[this.child.length-1][Rc]={startIndex:r})}static getMetaDataSymbol(){return Rc}}class Fz{constructor(t){this.suppressValidationErr=!t}readDocType(t,r){const n={};if(t[r+3]==="O"&&t[r+4]==="C"&&t[r+5]==="T"&&t[r+6]==="Y"&&t[r+7]==="P"&&t[r+8]==="E"){r=r+9;let i=1,s=!1,a=!1,o="";for(;r"){if(a?t[r-1]==="-"&&t[r-2]==="-"&&(a=!1,i--):i--,i===0)break}else t[r]==="["?s=!0:o+=t[r];if(i!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:n,i:r}}readEntityExp(t,r){r=zt(t,r);let n="";for(;r{for(;t1||s.length===1&&!o))return e;{const u=Number(r),l=String(u);if(u===0)return u;if(l.search(/[eE]/)!==-1)return t.eNotation?u:e;if(r.indexOf(".")!==-1)return l==="0"||l===a||l===`${i}${a}`?u:e;let c=s?a:r;return s?c===l||i+c===l?u:e:c===l||c===i+l?u:e}}else return e}}const Nz=/^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;function Bz(e,t,r){if(!r.eNotation)return e;const n=t.match(Nz);if(n){let i=n[1]||"";const s=n[3].indexOf("e")===-1?"E":"e",a=n[2],o=i?e[a.length+1]===s:e[a.length]===s;return a.length>1&&o?e:a.length===1&&(n[3].startsWith(`.${s}`)||n[3][0]===s)?Number(t):r.leadingZeros&&!o?(t=(n[1]||"")+n[3],Number(t)):e}else return e}function Iz(e){return e&&e.indexOf(".")!==-1&&(e=e.replace(/0+$/,""),e==="."?e="0":e[0]==="."?e="0"+e:e[e.length-1]==="."&&(e=e.substring(0,e.length-1))),e}function _z(e,t){if(parseInt)return parseInt(e,t);if(Number.parseInt)return Number.parseInt(e,t);if(window&&window.parseInt)return window.parseInt(e,t);throw new Error("parseInt, Number.parseInt, window.parseInt are not supported")}function HS(e){return typeof e=="function"?e:Array.isArray(e)?t=>{for(const r of e)if(typeof r=="string"&&t===r||r instanceof RegExp&&r.test(t))return!0}:()=>!1}class Lz{constructor(t){if(this.options=t,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(r,n)=>String.fromCodePoint(Number.parseInt(n,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(r,n)=>String.fromCodePoint(Number.parseInt(n,16))}},this.addExternalEntities=$z,this.parseXml=Uz,this.parseTextData=Oz,this.resolveNameSpace=Mz,this.buildAttributesMap=Rz,this.isItStopNode=Hz,this.replaceEntitiesValue=zz,this.readStopNodeData=Jz,this.saveTextToParentTag=qz,this.addChild=Vz,this.ignoreAttributesFn=HS(this.options.ignoreAttributes),this.options.stopNodes&&this.options.stopNodes.length>0){this.stopNodesExact=new Set,this.stopNodesWildcard=new Set;for(let r=0;r0)){a||(e=this.replaceEntitiesValue(e));const o=this.options.tagValueProcessor(t,e,r,i,s);return o==null?e:typeof o!=typeof e||o!==e?o:this.options.trimValues?_f(e,this.options.parseTagValue,this.options.numberParseOptions):e.trim()===e?_f(e,this.options.parseTagValue,this.options.numberParseOptions):e}}function Mz(e){if(this.options.removeNSPrefix){const t=e.split(":"),r=e.charAt(0)==="/"?"/":"";if(t[0]==="xmlns")return"";t.length===2&&(e=r+t[1])}return e}const jz=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function Rz(e,t){if(this.options.ignoreAttributes!==!0&&typeof e=="string"){const r=qS(e,jz),n=r.length,i={};for(let s=0;s",a,"Closing Tag is not closed.");let l=e.substring(a+2,u).trim();if(this.options.removeNSPrefix){const h=l.indexOf(":");h!==-1&&(l=l.substr(h+1))}this.options.transformTagName&&(l=this.options.transformTagName(l)),r&&(n=this.saveTextToParentTag(n,r,i));const c=i.substring(i.lastIndexOf(".")+1);if(l&&this.options.unpairedTags.indexOf(l)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: `);let p=0;c&&this.options.unpairedTags.indexOf(c)!==-1?(p=i.lastIndexOf(".",i.lastIndexOf(".")-1),this.tagsNodeStack.pop()):p=i.lastIndexOf("."),i=i.substring(0,p),r=this.tagsNodeStack.pop(),n="",a=u}else if(e[a+1]==="?"){let u=If(e,a,!1,"?>");if(!u)throw new Error("Pi Tag is not closed.");if(n=this.saveTextToParentTag(n,r,i),!(this.options.ignoreDeclaration&&u.tagName==="?xml"||this.options.ignorePiTags)){const l=new Qi(u.tagName);l.add(this.options.textNodeName,""),u.tagName!==u.tagExp&&u.attrExpPresent&&(l[":@"]=this.buildAttributesMap(u.tagExp,i)),this.addChild(r,l,i,a)}a=u.closeIndex+1}else if(e.substr(a+1,3)==="!--"){const u=ns(e,"-->",a+4,"Comment is not closed.");if(this.options.commentPropName){const l=e.substring(a+4,u-2);n=this.saveTextToParentTag(n,r,i),r.add(this.options.commentPropName,[{[this.options.textNodeName]:l}])}a=u}else if(e.substr(a+1,2)==="!D"){const u=s.readDocType(e,a);this.docTypeEntities=u.entities,a=u.i}else if(e.substr(a+1,2)==="!["){const u=ns(e,"]]>",a,"CDATA is not closed.")-2,l=e.substring(a+9,u);n=this.saveTextToParentTag(n,r,i);let c=this.parseTextData(l,r.tagname,i,!0,!1,!0,!0);c==null&&(c=""),this.options.cdataPropName?r.add(this.options.cdataPropName,[{[this.options.textNodeName]:l}]):r.add(this.options.textNodeName,c),a=u+2}else{let u=If(e,a,this.options.removeNSPrefix),l=u.tagName;const c=u.rawTagName;let p=u.tagExp,h=u.attrExpPresent,d=u.closeIndex;if(this.options.transformTagName){const x=this.options.transformTagName(l);p===l&&(p=x),l=x}r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,i,!1));const f=r;f&&this.options.unpairedTags.indexOf(f.tagname)!==-1&&(r=this.tagsNodeStack.pop(),i=i.substring(0,i.lastIndexOf("."))),l!==t.tagname&&(i+=i?"."+l:l);const y=a;if(this.isItStopNode(this.stopNodesExact,this.stopNodesWildcard,i,l)){let x="";if(p.length>0&&p.lastIndexOf("/")===p.length-1)l[l.length-1]==="/"?(l=l.substr(0,l.length-1),i=i.substr(0,i.length-1),p=l):p=p.substr(0,p.length-1),a=u.closeIndex;else if(this.options.unpairedTags.indexOf(l)!==-1)a=u.closeIndex;else{const m=this.readStopNodeData(e,c,d+1);if(!m)throw new Error(`Unexpected end of ${c}`);a=m.i,x=m.tagContent}const g=new Qi(l);l!==p&&h&&(g[":@"]=this.buildAttributesMap(p,i)),x&&(x=this.parseTextData(x,l,i,!0,h,!0,!0)),i=i.substr(0,i.lastIndexOf(".")),g.add(this.options.textNodeName,x),this.addChild(r,g,i,y)}else{if(p.length>0&&p.lastIndexOf("/")===p.length-1){if(l[l.length-1]==="/"?(l=l.substr(0,l.length-1),i=i.substr(0,i.length-1),p=l):p=p.substr(0,p.length-1),this.options.transformTagName){const g=this.options.transformTagName(l);p===l&&(p=g),l=g}const x=new Qi(l);l!==p&&h&&(x[":@"]=this.buildAttributesMap(p,i)),this.addChild(r,x,i,y),i=i.substr(0,i.lastIndexOf("."))}else{const x=new Qi(l);this.tagsNodeStack.push(r),l!==p&&h&&(x[":@"]=this.buildAttributesMap(p,i)),this.addChild(r,x,i,y),r=x}n="",a=d}}else n+=e[a];return t.child};function Vz(e,t,r,n){this.options.captureMetaData||(n=void 0);const i=this.options.updateTag(t.tagname,r,t[":@"]);i===!1||(typeof i=="string"&&(t.tagname=i),e.addChild(t,n))}const zz=function(e){if(this.options.processEntities){for(let t in this.docTypeEntities){const r=this.docTypeEntities[t];e=e.replace(r.regx,r.val)}for(let t in this.lastEntities){const r=this.lastEntities[t];e=e.replace(r.regex,r.val)}if(this.options.htmlEntities)for(let t in this.htmlEntities){const r=this.htmlEntities[t];e=e.replace(r.regex,r.val)}e=e.replace(this.ampEntity.regex,this.ampEntity.val)}return e};function qz(e,t,r,n){return e&&(n===void 0&&(n=t.child.length===0),e=this.parseTextData(e,t.tagname,r,!1,t[":@"]?Object.keys(t[":@"]).length!==0:!1,n),e!==void 0&&e!==""&&t.add(this.options.textNodeName,e),e=""),e}function Hz(e,t,r,n){return!!(t&&t.has(n)||e&&e.has(r))}function Wz(e,t,r=">"){let n,i="";for(let s=t;s",r,`${t} is not closed`);if(e.substring(r+2,s).trim()===t&&(i--,i===0))return{tagContent:e.substring(n,r),i:s};r=s}else if(e[r+1]==="?")r=ns(e,"?>",r+1,"StopNode is not closed.");else if(e.substr(r+1,3)==="!--")r=ns(e,"-->",r+3,"StopNode is not closed.");else if(e.substr(r+1,2)==="![")r=ns(e,"]]>",r,"StopNode is not closed.")-2;else{const s=If(e,r,">");s&&((s&&s.tagName)===t&&s.tagExp[s.tagExp.length-1]!=="/"&&i++,r=s.closeIndex)}}function _f(e,t,r){if(t&&typeof e=="string"){const n=e.trim();return n==="true"?!0:n==="false"?!1:kz(e,r)}else return dz(e)?e:""}const Kh=Qi.getMetaDataSymbol();function Xz(e,t){return WS(e,t)}function WS(e,t,r){let n;const i={};for(let s=0;s0&&(i[t.textNodeName]=n):n!==void 0&&(i[t.textNodeName]=n),i}function Kz(e){const t=Object.keys(e);for(let r=0;r0&&(r=Zz),JS(e,t,"",r)}function JS(e,t,r,n){let i="",s=!1;for(let a=0;a`,s=!1;continue}else if(u===t.commentPropName){i+=n+``,s=!0;continue}else if(u[0]==="?"){const f=r2(o[":@"],t),y=u==="?xml"?"":n;let x=o[u][0][t.textNodeName];x=x.length!==0?" "+x:"",i+=y+`<${u}${x}${f}?>`,s=!0;continue}let c=n;c!==""&&(c+=t.indentBy);const p=r2(o[":@"],t),h=n+`<${u}${p}`,d=JS(o[u],t,l,c);t.unpairedTags.indexOf(u)!==-1?t.suppressUnpairedNode?i+=h+">":i+=h+"/>":(!d||d.length===0)&&t.suppressEmptyNode?i+=h+"/>":d&&d.endsWith(">")?i+=h+`>${d}${n}`:(i+=h+">",d&&n!==""&&(d.includes("/>")||d.includes("`),s=!0}return i}function tq(e){const t=Object.keys(e);for(let r=0;r0&&t.processEntities)for(let r=0;r","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1};function Ri(e){this.options=Object.assign({},nq,e),this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=HS(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=aq),this.processTextOrObjNode=iq,this.options.format?(this.indentate=sq,this.tagEndChar=`> +`}return o.join("").replace(/%20/g," ")},e.exports=t,e.exports.diff_match_patch=t,e.exports.DIFF_DELETE=r,e.exports.DIFF_INSERT=n,e.exports.DIFF_EQUAL=i})(sS);var xz=sS.exports;function Ez(e,t){const r=new xz.diff_match_patch,n=r.diff_main(e,t);return r.diff_cleanupSemantic(n),n}const aS=()=>typeof window>"u"?16:parseFloat(getComputedStyle(document.documentElement).fontSize),Cz=(e,t=aS())=>e/t,vz=(e,t=aS())=>e*t,Az=(e,t=16)=>e/t,bz=(e,t=16)=>e*t,Tz=(e,t=typeof window<"u"?window.innerWidth:1920)=>e/t*100,Sz=(e,t=typeof window<"u"?window.innerWidth:1920)=>e/100*t,Fz=(e,t=typeof window<"u"?window.innerHeight:1080)=>e/t*100,wz=(e,t=typeof window<"u"?window.innerHeight:1080)=>e/100*t,kz=(e,t)=>e/t*100,Pz=(e,t)=>e/100*t,Nz=e=>e/96,Bz=e=>e*96,Iz=e=>e/(96/2.54),_z=e=>e*(96/2.54),Lz=e=>new Promise((t,r)=>{const n=new FileReader;n.onload=()=>t(n.result),n.onerror=r,n.readAsDataURL(e)}),$z=e=>e.split(",")[1]||"",cD=(e,t)=>`data:${t};base64,${e}`,pD=e=>{try{const t=atob(e),r=new Uint8Array(t.length);for(let n=0;n{try{const t=new Uint8Array(e.split(" ").map(Number));let r="";for(let n=0;n{if(!e)return 0;const t=(e.match(/=/g)||[]).length;return e.length*3/4-t},oS=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",Mz=oS+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",jz="["+oS+"]["+Mz+"]*",Rz=new RegExp("^"+jz+"$");function uS(e,t){const r=[];let n=t.exec(e);for(;n;){const i=[];i.startIndex=t.lastIndex-n[0].length;const s=n.length;for(let a=0;a"u")};function Uz(e){return typeof e<"u"}const Vz={allowBooleanAttributes:!1,unpairedTags:[]};function zz(e,t){t=Object.assign({},Vz,t);const r=[];let n=!1,i=!1;e[0]==="\uFEFF"&&(e=e.substr(1));for(let s=0;s"&&e[s]!==" "&&e[s]!==" "&&e[s]!==` +`&&e[s]!=="\r";s++)u+=e[s];if(u=u.trim(),u[u.length-1]==="/"&&(u=u.substring(0,u.length-1),s--),!Qz(u)){let p;return u.trim().length===0?p="Invalid space after '<'.":p="Tag '"+u+"' is an invalid name.",Ye("InvalidTag",p,It(e,s))}const l=Wz(e,s);if(l===!1)return Ye("InvalidAttr","Attributes for '"+u+"' have open quote.",It(e,s));let c=l.value;if(s=l.index,c[c.length-1]==="/"){const p=s-c.length;c=c.substring(0,c.length-1);const h=yD(c,t);if(h===!0)n=!0;else return Ye(h.err.code,h.err.msg,It(e,p+h.err.line))}else if(o)if(l.tagClosed){if(c.trim().length>0)return Ye("InvalidTag","Closing tag '"+u+"' can't have attributes or invalid starting.",It(e,a));if(r.length===0)return Ye("InvalidTag","Closing tag '"+u+"' has not been opened.",It(e,a));{const p=r.pop();if(u!==p.tagName){let h=It(e,p.tagStartPos);return Ye("InvalidTag","Expected closing tag '"+p.tagName+"' (opened in line "+h.line+", col "+h.col+") instead of closing tag '"+u+"'.",It(e,a))}r.length==0&&(i=!0)}}else return Ye("InvalidTag","Closing tag '"+u+"' doesn't have proper closing.",It(e,s));else{const p=yD(c,t);if(p!==!0)return Ye(p.err.code,p.err.msg,It(e,s-c.length+p.err.line));if(i===!0)return Ye("InvalidXml","Multiple possible root nodes found.",It(e,s));t.unpairedTags.indexOf(u)!==-1||r.push({tagName:u,tagStartPos:a}),n=!0}for(s++;s0)return Ye("InvalidXml","Invalid '"+JSON.stringify(r.map(s=>s.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Ye("InvalidXml","Start tag expected.",1);return!0}function dD(e){return e===" "||e===" "||e===` +`||e==="\r"}function fD(e,t){const r=t;for(;t5&&n==="xml")return Ye("InvalidXml","XML declaration allowed only at the start of the document.",It(e,t));if(e[t]=="?"&&e[t+1]==">"){t++;break}else continue}return t}function mD(e,t){if(e.length>t+5&&e[t+1]==="-"&&e[t+2]==="-"){for(t+=3;t"){t+=2;break}}else if(e.length>t+8&&e[t+1]==="D"&&e[t+2]==="O"&&e[t+3]==="C"&&e[t+4]==="T"&&e[t+5]==="Y"&&e[t+6]==="P"&&e[t+7]==="E"){let r=1;for(t+=8;t"&&(r--,r===0))break}else if(e.length>t+9&&e[t+1]==="["&&e[t+2]==="C"&&e[t+3]==="D"&&e[t+4]==="A"&&e[t+5]==="T"&&e[t+6]==="A"&&e[t+7]==="["){for(t+=8;t"){t+=2;break}}return t}const qz='"',Hz="'";function Wz(e,t){let r="",n="",i=!1;for(;t"&&n===""){i=!0;break}r+=e[t]}return n!==""?!1:{value:r,index:t,tagClosed:i}}const Jz=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function yD(e,t){const r=uS(e,Jz),n={};for(let i=0;i!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(e,t,r){return e},captureMetaData:!1},Zz=function(e){return Object.assign({},Yz,e)};let Xc;typeof Symbol!="function"?Xc="@@xmlMetadata":Xc=Symbol("XML Node Metadata");class Zi{constructor(t){this.tagname=t,this.child=[],this[":@"]={}}add(t,r){t==="__proto__"&&(t="#__proto__"),this.child.push({[t]:r})}addChild(t,r){t.tagname==="__proto__"&&(t.tagname="#__proto__"),t[":@"]&&Object.keys(t[":@"]).length>0?this.child.push({[t.tagname]:t.child,":@":t[":@"]}):this.child.push({[t.tagname]:t.child}),r!==void 0&&(this.child[this.child.length-1][Xc]={startIndex:r})}static getMetaDataSymbol(){return Xc}}class eq{constructor(t){this.suppressValidationErr=!t}readDocType(t,r){const n={};if(t[r+3]==="O"&&t[r+4]==="C"&&t[r+5]==="T"&&t[r+6]==="Y"&&t[r+7]==="P"&&t[r+8]==="E"){r=r+9;let i=1,s=!1,a=!1,o="";for(;r"){if(a?t[r-1]==="-"&&t[r-2]==="-"&&(a=!1,i--):i--,i===0)break}else t[r]==="["?s=!0:o+=t[r];if(i!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:n,i:r}}readEntityExp(t,r){r=zt(t,r);let n="";for(;r{for(;t1||s.length===1&&!o))return e;{const u=Number(r),l=String(u);if(u===0)return u;if(l.search(/[eE]/)!==-1)return t.eNotation?u:e;if(r.indexOf(".")!==-1)return l==="0"||l===a||l===`${i}${a}`?u:e;let c=s?a:r;return s?c===l||i+c===l?u:e:c===l||c===i+l?u:e}}else return e}}const sq=/^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;function aq(e,t,r){if(!r.eNotation)return e;const n=t.match(sq);if(n){let i=n[1]||"";const s=n[3].indexOf("e")===-1?"E":"e",a=n[2],o=i?e[a.length+1]===s:e[a.length]===s;return a.length>1&&o?e:a.length===1&&(n[3].startsWith(`.${s}`)||n[3][0]===s)?Number(t):r.leadingZeros&&!o?(t=(n[1]||"")+n[3],Number(t)):e}else return e}function oq(e){return e&&e.indexOf(".")!==-1&&(e=e.replace(/0+$/,""),e==="."?e="0":e[0]==="."?e="0"+e:e[e.length-1]==="."&&(e=e.substring(0,e.length-1))),e}function uq(e,t){if(parseInt)return parseInt(e,t);if(Number.parseInt)return Number.parseInt(e,t);if(window&&window.parseInt)return window.parseInt(e,t);throw new Error("parseInt, Number.parseInt, window.parseInt are not supported")}function lS(e){return typeof e=="function"?e:Array.isArray(e)?t=>{for(const r of e)if(typeof r=="string"&&t===r||r instanceof RegExp&&r.test(t))return!0}:()=>!1}class lq{constructor(t){if(this.options=t,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(r,n)=>String.fromCodePoint(Number.parseInt(n,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(r,n)=>String.fromCodePoint(Number.parseInt(n,16))}},this.addExternalEntities=cq,this.parseXml=mq,this.parseTextData=pq,this.resolveNameSpace=hq,this.buildAttributesMap=fq,this.isItStopNode=xq,this.replaceEntitiesValue=gq,this.readStopNodeData=Cq,this.saveTextToParentTag=Dq,this.addChild=yq,this.ignoreAttributesFn=lS(this.options.ignoreAttributes),this.options.stopNodes&&this.options.stopNodes.length>0){this.stopNodesExact=new Set,this.stopNodesWildcard=new Set;for(let r=0;r0)){a||(e=this.replaceEntitiesValue(e));const o=this.options.tagValueProcessor(t,e,r,i,s);return o==null?e:typeof o!=typeof e||o!==e?o:this.options.trimValues?qf(e,this.options.parseTagValue,this.options.numberParseOptions):e.trim()===e?qf(e,this.options.parseTagValue,this.options.numberParseOptions):e}}function hq(e){if(this.options.removeNSPrefix){const t=e.split(":"),r=e.charAt(0)==="/"?"/":"";if(t[0]==="xmlns")return"";t.length===2&&(e=r+t[1])}return e}const dq=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function fq(e,t){if(this.options.ignoreAttributes!==!0&&typeof e=="string"){const r=uS(e,dq),n=r.length,i={};for(let s=0;s",a,"Closing Tag is not closed.");let l=e.substring(a+2,u).trim();if(this.options.removeNSPrefix){const h=l.indexOf(":");h!==-1&&(l=l.substr(h+1))}this.options.transformTagName&&(l=this.options.transformTagName(l)),r&&(n=this.saveTextToParentTag(n,r,i));const c=i.substring(i.lastIndexOf(".")+1);if(l&&this.options.unpairedTags.indexOf(l)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: `);let p=0;c&&this.options.unpairedTags.indexOf(c)!==-1?(p=i.lastIndexOf(".",i.lastIndexOf(".")-1),this.tagsNodeStack.pop()):p=i.lastIndexOf("."),i=i.substring(0,p),r=this.tagsNodeStack.pop(),n="",a=u}else if(e[a+1]==="?"){let u=zf(e,a,!1,"?>");if(!u)throw new Error("Pi Tag is not closed.");if(n=this.saveTextToParentTag(n,r,i),!(this.options.ignoreDeclaration&&u.tagName==="?xml"||this.options.ignorePiTags)){const l=new Zi(u.tagName);l.add(this.options.textNodeName,""),u.tagName!==u.tagExp&&u.attrExpPresent&&(l[":@"]=this.buildAttributesMap(u.tagExp,i)),this.addChild(r,l,i,a)}a=u.closeIndex+1}else if(e.substr(a+1,3)==="!--"){const u=ss(e,"-->",a+4,"Comment is not closed.");if(this.options.commentPropName){const l=e.substring(a+4,u-2);n=this.saveTextToParentTag(n,r,i),r.add(this.options.commentPropName,[{[this.options.textNodeName]:l}])}a=u}else if(e.substr(a+1,2)==="!D"){const u=s.readDocType(e,a);this.docTypeEntities=u.entities,a=u.i}else if(e.substr(a+1,2)==="!["){const u=ss(e,"]]>",a,"CDATA is not closed.")-2,l=e.substring(a+9,u);n=this.saveTextToParentTag(n,r,i);let c=this.parseTextData(l,r.tagname,i,!0,!1,!0,!0);c==null&&(c=""),this.options.cdataPropName?r.add(this.options.cdataPropName,[{[this.options.textNodeName]:l}]):r.add(this.options.textNodeName,c),a=u+2}else{let u=zf(e,a,this.options.removeNSPrefix),l=u.tagName;const c=u.rawTagName;let p=u.tagExp,h=u.attrExpPresent,d=u.closeIndex;if(this.options.transformTagName){const C=this.options.transformTagName(l);p===l&&(p=C),l=C}r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,i,!1));const f=r;f&&this.options.unpairedTags.indexOf(f.tagname)!==-1&&(r=this.tagsNodeStack.pop(),i=i.substring(0,i.lastIndexOf("."))),l!==t.tagname&&(i+=i?"."+l:l);const y=a;if(this.isItStopNode(this.stopNodesExact,this.stopNodesWildcard,i,l)){let C="";if(p.length>0&&p.lastIndexOf("/")===p.length-1)l[l.length-1]==="/"?(l=l.substr(0,l.length-1),i=i.substr(0,i.length-1),p=l):p=p.substr(0,p.length-1),a=u.closeIndex;else if(this.options.unpairedTags.indexOf(l)!==-1)a=u.closeIndex;else{const m=this.readStopNodeData(e,c,d+1);if(!m)throw new Error(`Unexpected end of ${c}`);a=m.i,C=m.tagContent}const g=new Zi(l);l!==p&&h&&(g[":@"]=this.buildAttributesMap(p,i)),C&&(C=this.parseTextData(C,l,i,!0,h,!0,!0)),i=i.substr(0,i.lastIndexOf(".")),g.add(this.options.textNodeName,C),this.addChild(r,g,i,y)}else{if(p.length>0&&p.lastIndexOf("/")===p.length-1){if(l[l.length-1]==="/"?(l=l.substr(0,l.length-1),i=i.substr(0,i.length-1),p=l):p=p.substr(0,p.length-1),this.options.transformTagName){const g=this.options.transformTagName(l);p===l&&(p=g),l=g}const C=new Zi(l);l!==p&&h&&(C[":@"]=this.buildAttributesMap(p,i)),this.addChild(r,C,i,y),i=i.substr(0,i.lastIndexOf("."))}else{const C=new Zi(l);this.tagsNodeStack.push(r),l!==p&&h&&(C[":@"]=this.buildAttributesMap(p,i)),this.addChild(r,C,i,y),r=C}n="",a=d}}else n+=e[a];return t.child};function yq(e,t,r,n){this.options.captureMetaData||(n=void 0);const i=this.options.updateTag(t.tagname,r,t[":@"]);i===!1||(typeof i=="string"&&(t.tagname=i),e.addChild(t,n))}const gq=function(e){if(this.options.processEntities){for(let t in this.docTypeEntities){const r=this.docTypeEntities[t];e=e.replace(r.regx,r.val)}for(let t in this.lastEntities){const r=this.lastEntities[t];e=e.replace(r.regex,r.val)}if(this.options.htmlEntities)for(let t in this.htmlEntities){const r=this.htmlEntities[t];e=e.replace(r.regex,r.val)}e=e.replace(this.ampEntity.regex,this.ampEntity.val)}return e};function Dq(e,t,r,n){return e&&(n===void 0&&(n=t.child.length===0),e=this.parseTextData(e,t.tagname,r,!1,t[":@"]?Object.keys(t[":@"]).length!==0:!1,n),e!==void 0&&e!==""&&t.add(this.options.textNodeName,e),e=""),e}function xq(e,t,r,n){return!!(t&&t.has(n)||e&&e.has(r))}function Eq(e,t,r=">"){let n,i="";for(let s=t;s",r,`${t} is not closed`);if(e.substring(r+2,s).trim()===t&&(i--,i===0))return{tagContent:e.substring(n,r),i:s};r=s}else if(e[r+1]==="?")r=ss(e,"?>",r+1,"StopNode is not closed.");else if(e.substr(r+1,3)==="!--")r=ss(e,"-->",r+3,"StopNode is not closed.");else if(e.substr(r+1,2)==="![")r=ss(e,"]]>",r,"StopNode is not closed.")-2;else{const s=zf(e,r,">");s&&((s&&s.tagName)===t&&s.tagExp[s.tagExp.length-1]!=="/"&&i++,r=s.closeIndex)}}function qf(e,t,r){if(t&&typeof e=="string"){const n=e.trim();return n==="true"?!0:n==="false"?!1:iq(e,r)}else return Uz(e)?e:""}const id=Zi.getMetaDataSymbol();function vq(e,t){return cS(e,t)}function cS(e,t,r){let n;const i={};for(let s=0;s0&&(i[t.textNodeName]=n):n!==void 0&&(i[t.textNodeName]=n),i}function Aq(e){const t=Object.keys(e);for(let r=0;r0&&(r=Fq),pS(e,t,"",r)}function pS(e,t,r,n){let i="",s=!1;for(let a=0;a`,s=!1;continue}else if(u===t.commentPropName){i+=n+``,s=!0;continue}else if(u[0]==="?"){const f=gD(o[":@"],t),y=u==="?xml"?"":n;let C=o[u][0][t.textNodeName];C=C.length!==0?" "+C:"",i+=y+`<${u}${C}${f}?>`,s=!0;continue}let c=n;c!==""&&(c+=t.indentBy);const p=gD(o[":@"],t),h=n+`<${u}${p}`,d=pS(o[u],t,l,c);t.unpairedTags.indexOf(u)!==-1?t.suppressUnpairedNode?i+=h+">":i+=h+"/>":(!d||d.length===0)&&t.suppressEmptyNode?i+=h+"/>":d&&d.endsWith(">")?i+=h+`>${d}${n}`:(i+=h+">",d&&n!==""&&(d.includes("/>")||d.includes("`),s=!0}return i}function kq(e){const t=Object.keys(e);for(let r=0;r0&&t.processEntities)for(let r=0;r","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1};function Vi(e){this.options=Object.assign({},Nq,e),this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=lS(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=_q),this.processTextOrObjNode=Bq,this.options.format?(this.indentate=Iq,this.tagEndChar=`> `,this.newLine=` -`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}Ri.prototype.build=function(e){return this.options.preserveOrder?eq(e,this.options):(Array.isArray(e)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(e={[this.options.arrayNodeName]:e}),this.j2x(e,0,[]).val)};Ri.prototype.j2x=function(e,t,r){let n="",i="";const s=r.join(".");for(let a in e)if(Object.prototype.hasOwnProperty.call(e,a))if(typeof e[a]>"u")this.isAttribute(a)&&(i+="");else if(e[a]===null)this.isAttribute(a)||a===this.options.cdataPropName?i+="":a[0]==="?"?i+=this.indentate(t)+"<"+a+"?"+this.tagEndChar:i+=this.indentate(t)+"<"+a+"/"+this.tagEndChar;else if(e[a]instanceof Date)i+=this.buildTextValNode(e[a],a,"",t);else if(typeof e[a]!="object"){const o=this.isAttribute(a);if(o&&!this.ignoreAttributesFn(o,s))n+=this.buildAttrPairStr(o,""+e[a]);else if(!o)if(a===this.options.textNodeName){let u=this.options.tagValueProcessor(a,""+e[a]);i+=this.replaceEntitiesValue(u)}else i+=this.buildTextValNode(e[a],a,"",t)}else if(Array.isArray(e[a])){const o=e[a].length;let u="",l="";for(let c=0;c"u"))if(p===null)a[0]==="?"?i+=this.indentate(t)+"<"+a+"?"+this.tagEndChar:i+=this.indentate(t)+"<"+a+"/"+this.tagEndChar;else if(typeof p=="object")if(this.options.oneListGroup){const h=this.j2x(p,t+1,r.concat(a));u+=h.val,this.options.attributesGroupName&&p.hasOwnProperty(this.options.attributesGroupName)&&(l+=h.attrStr)}else u+=this.processTextOrObjNode(p,a,t,r);else if(this.options.oneListGroup){let h=this.options.tagValueProcessor(a,p);h=this.replaceEntitiesValue(h),u+=h}else u+=this.buildTextValNode(p,a,"",t)}this.options.oneListGroup&&(u=this.buildObjectNode(u,a,l,t)),i+=u}else if(this.options.attributesGroupName&&a===this.options.attributesGroupName){const o=Object.keys(e[a]),u=o.length;for(let l=0;l"+e+i:this.options.commentPropName!==!1&&t===this.options.commentPropName&&s.length===0?this.indentate(n)+``+this.newLine:this.indentate(n)+"<"+t+r+s+this.tagEndChar+e+this.indentate(n)+i}};Ri.prototype.closeTag=function(e){let t="";return this.options.unpairedTags.indexOf(e)!==-1?this.options.suppressUnpairedNode||(t="/"):this.options.suppressEmptyNode?t="/":t=`>`+this.newLine;if(this.options.commentPropName!==!1&&t===this.options.commentPropName)return this.indentate(n)+``+this.newLine;if(t[0]==="?")return this.indentate(n)+"<"+t+r+"?"+this.tagEndChar;{let i=this.options.tagValueProcessor(t,e);return i=this.replaceEntitiesValue(i),i===""?this.indentate(n)+"<"+t+r+this.closeTag(t)+this.tagEndChar:this.indentate(n)+"<"+t+r+">"+i+"0&&this.options.processEntities)for(let t=0;t",this.newLine="")}Vi.prototype.build=function(e){return this.options.preserveOrder?wq(e,this.options):(Array.isArray(e)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(e={[this.options.arrayNodeName]:e}),this.j2x(e,0,[]).val)};Vi.prototype.j2x=function(e,t,r){let n="",i="";const s=r.join(".");for(let a in e)if(Object.prototype.hasOwnProperty.call(e,a))if(typeof e[a]>"u")this.isAttribute(a)&&(i+="");else if(e[a]===null)this.isAttribute(a)||a===this.options.cdataPropName?i+="":a[0]==="?"?i+=this.indentate(t)+"<"+a+"?"+this.tagEndChar:i+=this.indentate(t)+"<"+a+"/"+this.tagEndChar;else if(e[a]instanceof Date)i+=this.buildTextValNode(e[a],a,"",t);else if(typeof e[a]!="object"){const o=this.isAttribute(a);if(o&&!this.ignoreAttributesFn(o,s))n+=this.buildAttrPairStr(o,""+e[a]);else if(!o)if(a===this.options.textNodeName){let u=this.options.tagValueProcessor(a,""+e[a]);i+=this.replaceEntitiesValue(u)}else i+=this.buildTextValNode(e[a],a,"",t)}else if(Array.isArray(e[a])){const o=e[a].length;let u="",l="";for(let c=0;c"u"))if(p===null)a[0]==="?"?i+=this.indentate(t)+"<"+a+"?"+this.tagEndChar:i+=this.indentate(t)+"<"+a+"/"+this.tagEndChar;else if(typeof p=="object")if(this.options.oneListGroup){const h=this.j2x(p,t+1,r.concat(a));u+=h.val,this.options.attributesGroupName&&p.hasOwnProperty(this.options.attributesGroupName)&&(l+=h.attrStr)}else u+=this.processTextOrObjNode(p,a,t,r);else if(this.options.oneListGroup){let h=this.options.tagValueProcessor(a,p);h=this.replaceEntitiesValue(h),u+=h}else u+=this.buildTextValNode(p,a,"",t)}this.options.oneListGroup&&(u=this.buildObjectNode(u,a,l,t)),i+=u}else if(this.options.attributesGroupName&&a===this.options.attributesGroupName){const o=Object.keys(e[a]),u=o.length;for(let l=0;l"+e+i:this.options.commentPropName!==!1&&t===this.options.commentPropName&&s.length===0?this.indentate(n)+``+this.newLine:this.indentate(n)+"<"+t+r+s+this.tagEndChar+e+this.indentate(n)+i}};Vi.prototype.closeTag=function(e){let t="";return this.options.unpairedTags.indexOf(e)!==-1?this.options.suppressUnpairedNode||(t="/"):this.options.suppressEmptyNode?t="/":t=`>`+this.newLine;if(this.options.commentPropName!==!1&&t===this.options.commentPropName)return this.indentate(n)+``+this.newLine;if(t[0]==="?")return this.indentate(n)+"<"+t+r+"?"+this.tagEndChar;{let i=this.options.tagValueProcessor(t,e);return i=this.replaceEntitiesValue(i),i===""?this.indentate(n)+"<"+t+r+this.closeTag(t)+this.tagEndChar:this.indentate(n)+"<"+t+r+">"+i+"0&&this.options.processEntities)for(let t=0;t{e.exports=n()})(nF,function r(){var n=typeof self<"u"?self:typeof window<"u"?window:n!==void 0?n:{},i,s=!n.document&&!!n.postMessage,a=n.IS_PAPA_WORKER||!1,o={},u=0,l={};function c(E){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},(function(A){var T=b(A);T.chunkSize=parseInt(T.chunkSize),A.step||A.chunk||(T.chunkSize=null),this._handle=new y(T),(this._handle.streamer=this)._config=T}).call(this,E),this.parseChunk=function(A,T){var B=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0=this._config.preview),a)n.postMessage({results:M,workerId:l.WORKER_ID,finished:B});else if(N(this._config.chunk)&&!T){if(this._config.chunk(M,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=M=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(M.data),this._completeResults.errors=this._completeResults.errors.concat(M.errors),this._completeResults.meta=M.meta),this._completed||!B||!N(this._config.complete)||M&&M.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),B||M&&M.meta.paused||this._nextChunk(),M}this._halted=!0},this._sendError=function(A){N(this._config.error)?this._config.error(A):a&&this._config.error&&n.postMessage({workerId:l.WORKER_ID,error:A,finished:!1})}}function p(E){var A;(E=E||{}).chunkSize||(E.chunkSize=l.RemoteChunkSize),c.call(this,E),this._nextChunk=s?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(T){this._input=T,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(A=new XMLHttpRequest,this._config.withCredentials&&(A.withCredentials=this._config.withCredentials),s||(A.onload=P(this._chunkLoaded,this),A.onerror=P(this._chunkError,this)),A.open(this._config.downloadRequestBody?"POST":"GET",this._input,!s),this._config.downloadRequestHeaders){var T,B=this._config.downloadRequestHeaders;for(T in B)A.setRequestHeader(T,B[T])}var M;this._config.chunkSize&&(M=this._start+this._config.chunkSize-1,A.setRequestHeader("Range","bytes="+this._start+"-"+M));try{A.send(this._config.downloadRequestBody)}catch(k){this._chunkError(k.message)}s&&A.status===0&&this._chunkError()}},this._chunkLoaded=function(){A.readyState===4&&(A.status<200||400<=A.status?this._chunkError():(this._start+=this._config.chunkSize||A.responseText.length,this._finished=!this._config.chunkSize||this._start>=(T=>(T=T.getResponseHeader("Content-Range"))!==null?parseInt(T.substring(T.lastIndexOf("/")+1)):-1)(A),this.parseChunk(A.responseText)))},this._chunkError=function(T){T=A.statusText||T,this._sendError(new Error(T))}}function h(E){(E=E||{}).chunkSize||(E.chunkSize=l.LocalChunkSize),c.call(this,E);var A,T,B=typeof FileReader<"u";this.stream=function(M){this._input=M,T=M.slice||M.webkitSlice||M.mozSlice,B?((A=new FileReader).onload=P(this._chunkLoaded,this),A.onerror=P(this._chunkError,this)):A=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount=this._input.size,this.parseChunk(M.target.result)},this._chunkError=function(){this._sendError(A.error)}}function d(E){var A;c.call(this,E=E||{}),this.stream=function(T){return A=T,this._nextChunk()},this._nextChunk=function(){var T,B;if(!this._finished)return T=this._config.chunkSize,A=T?(B=A.substring(0,T),A.substring(T)):(B=A,""),this._finished=!A,this.parseChunk(B)}}function f(E){c.call(this,E=E||{});var A=[],T=!0,B=!1;this.pause=function(){c.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){c.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(M){this._input=M,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){B&&A.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),A.length?this.parseChunk(A.shift()):T=!0},this._streamData=P(function(M){try{A.push(typeof M=="string"?M:M.toString(this._config.encoding)),T&&(T=!1,this._checkIsFinished(),this.parseChunk(A.shift()))}catch(k){this._streamError(k)}},this),this._streamError=P(function(M){this._streamCleanUp(),this._sendError(M)},this),this._streamEnd=P(function(){this._streamCleanUp(),B=!0,this._streamData("")},this),this._streamCleanUp=P(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function y(E){var A,T,B,M,k=Math.pow(2,53),J=-k,K=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,ne=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,Z=this,$=0,V=0,W=!1,z=!1,G=[],O={data:[],errors:[],meta:{}};function re(De){return E.skipEmptyLines==="greedy"?De.join("").trim()==="":De.length===1&&De[0].length===0}function se(){if(O&&B&&(Ke("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+l.DefaultDelimiter+"'"),B=!1),E.skipEmptyLines&&(O.data=O.data.filter(function(be){return!re(be)})),Be()){let be=function(lt,Ve){N(E.transformHeader)&&(lt=E.transformHeader(lt,Ve)),G.push(lt)};var ce=be;if(O)if(Array.isArray(O.data[0])){for(var De=0;Be()&&De(it=>(E.dynamicTypingFunction&&E.dynamicTyping[it]===void 0&&(E.dynamicTyping[it]=E.dynamicTypingFunction(it)),(E.dynamicTyping[it]||E.dynamicTyping)===!0))(we)?ze==="true"||ze==="TRUE"||ze!=="false"&&ze!=="FALSE"&&((it=>{if(K.test(it)&&(it=parseFloat(it),J=G.length?"__parsed_extra":G[Ne]:Ee,Tt=E.transform?E.transform(Tt,Ee):Tt);Ee==="__parsed_extra"?(Ve[Ee]=Ve[Ee]||[],Ve[Ee].push(Tt)):Ve[Ee]=Tt}return E.header&&(Ne>G.length?Ke("FieldMismatch","TooManyFields","Too many fields: expected "+G.length+" fields but parsed "+Ne,V+lt):NeE.preview?T.abort():(O.data=O.data[0],M(O,Z))))}),this.parse=function(De,Ce,je){var ce=E.quoteChar||'"',ce=(E.newline||(E.newline=this.guessLineEndings(De,ce)),B=!1,E.delimiter?N(E.delimiter)&&(E.delimiter=E.delimiter(De),O.meta.delimiter=E.delimiter):((ce=((be,lt,Ve,Ne,Ee)=>{var Tt,we,ze,it;Ee=Ee||[","," ","|",";",l.RECORD_SEP,l.UNIT_SEP];for(var Ns=0;Ns{e.exports=n()})(kS,function r(){var n=typeof self<"u"?self:typeof window<"u"?window:n!==void 0?n:{},i,s=!n.document&&!!n.postMessage,a=n.IS_PAPA_WORKER||!1,o={},u=0,l={};function c(E){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},(function(A){var b=T(A);b.chunkSize=parseInt(b.chunkSize),A.step||A.chunk||(b.chunkSize=null),this._handle=new y(b),(this._handle.streamer=this)._config=b}).call(this,E),this.parseChunk=function(A,b){var B=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0=this._config.preview),a)n.postMessage({results:M,workerId:l.WORKER_ID,finished:B});else if(N(this._config.chunk)&&!b){if(this._config.chunk(M,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=M=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(M.data),this._completeResults.errors=this._completeResults.errors.concat(M.errors),this._completeResults.meta=M.meta),this._completed||!B||!N(this._config.complete)||M&&M.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),B||M&&M.meta.paused||this._nextChunk(),M}this._halted=!0},this._sendError=function(A){N(this._config.error)?this._config.error(A):a&&this._config.error&&n.postMessage({workerId:l.WORKER_ID,error:A,finished:!1})}}function p(E){var A;(E=E||{}).chunkSize||(E.chunkSize=l.RemoteChunkSize),c.call(this,E),this._nextChunk=s?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(b){this._input=b,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(A=new XMLHttpRequest,this._config.withCredentials&&(A.withCredentials=this._config.withCredentials),s||(A.onload=k(this._chunkLoaded,this),A.onerror=k(this._chunkError,this)),A.open(this._config.downloadRequestBody?"POST":"GET",this._input,!s),this._config.downloadRequestHeaders){var b,B=this._config.downloadRequestHeaders;for(b in B)A.setRequestHeader(b,B[b])}var M;this._config.chunkSize&&(M=this._start+this._config.chunkSize-1,A.setRequestHeader("Range","bytes="+this._start+"-"+M));try{A.send(this._config.downloadRequestBody)}catch(P){this._chunkError(P.message)}s&&A.status===0&&this._chunkError()}},this._chunkLoaded=function(){A.readyState===4&&(A.status<200||400<=A.status?this._chunkError():(this._start+=this._config.chunkSize||A.responseText.length,this._finished=!this._config.chunkSize||this._start>=(b=>(b=b.getResponseHeader("Content-Range"))!==null?parseInt(b.substring(b.lastIndexOf("/")+1)):-1)(A),this.parseChunk(A.responseText)))},this._chunkError=function(b){b=A.statusText||b,this._sendError(new Error(b))}}function h(E){(E=E||{}).chunkSize||(E.chunkSize=l.LocalChunkSize),c.call(this,E);var A,b,B=typeof FileReader<"u";this.stream=function(M){this._input=M,b=M.slice||M.webkitSlice||M.mozSlice,B?((A=new FileReader).onload=k(this._chunkLoaded,this),A.onerror=k(this._chunkError,this)):A=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount=this._input.size,this.parseChunk(M.target.result)},this._chunkError=function(){this._sendError(A.error)}}function d(E){var A;c.call(this,E=E||{}),this.stream=function(b){return A=b,this._nextChunk()},this._nextChunk=function(){var b,B;if(!this._finished)return b=this._config.chunkSize,A=b?(B=A.substring(0,b),A.substring(b)):(B=A,""),this._finished=!A,this.parseChunk(B)}}function f(E){c.call(this,E=E||{});var A=[],b=!0,B=!1;this.pause=function(){c.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){c.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(M){this._input=M,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){B&&A.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),A.length?this.parseChunk(A.shift()):b=!0},this._streamData=k(function(M){try{A.push(typeof M=="string"?M:M.toString(this._config.encoding)),b&&(b=!1,this._checkIsFinished(),this.parseChunk(A.shift()))}catch(P){this._streamError(P)}},this),this._streamError=k(function(M){this._streamCleanUp(),this._sendError(M)},this),this._streamEnd=k(function(){this._streamCleanUp(),B=!0,this._streamData("")},this),this._streamCleanUp=k(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function y(E){var A,b,B,M,P=Math.pow(2,53),J=-P,K=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,ne=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,Z=this,$=0,V=0,W=!1,z=!1,G=[],O={data:[],errors:[],meta:{}};function re(De){return E.skipEmptyLines==="greedy"?De.join("").trim()==="":De.length===1&&De[0].length===0}function se(){if(O&&B&&(Ke("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+l.DefaultDelimiter+"'"),B=!1),E.skipEmptyLines&&(O.data=O.data.filter(function(we){return!re(we)})),Be()){let we=function(lt,Ve){N(E.transformHeader)&&(lt=E.transformHeader(lt,Ve)),G.push(lt)};var ce=we;if(O)if(Array.isArray(O.data[0])){for(var De=0;Be()&&De(it=>(E.dynamicTypingFunction&&E.dynamicTyping[it]===void 0&&(E.dynamicTyping[it]=E.dynamicTypingFunction(it)),(E.dynamicTyping[it]||E.dynamicTyping)===!0))(ke)?ze==="true"||ze==="TRUE"||ze!=="false"&&ze!=="FALSE"&&((it=>{if(K.test(it)&&(it=parseFloat(it),J=G.length?"__parsed_extra":G[Ne]:xe,bt=E.transform?E.transform(bt,xe):bt);xe==="__parsed_extra"?(Ve[xe]=Ve[xe]||[],Ve[xe].push(bt)):Ve[xe]=bt}return E.header&&(Ne>G.length?Ke("FieldMismatch","TooManyFields","Too many fields: expected "+G.length+" fields but parsed "+Ne,V+lt):NeE.preview?b.abort():(O.data=O.data[0],M(O,Z))))}),this.parse=function(De,Ce,je){var ce=E.quoteChar||'"',ce=(E.newline||(E.newline=this.guessLineEndings(De,ce)),B=!1,E.delimiter?N(E.delimiter)&&(E.delimiter=E.delimiter(De),O.meta.delimiter=E.delimiter):((ce=((we,lt,Ve,Ne,xe)=>{var bt,ke,ze,it;xe=xe||[","," ","|",";",l.RECORD_SEP,l.UNIT_SEP];for(var Is=0;Is=je.length/2?`\r -`:"\r"}}function x(E){return E.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function g(E){var A=(E=E||{}).delimiter,T=E.newline,B=E.comments,M=E.step,k=E.preview,J=E.fastMode,K=null,ne=!1,Z=E.quoteChar==null?'"':E.quoteChar,$=Z;if(E.escapeChar!==void 0&&($=E.escapeChar),(typeof A!="string"||-1=k)return St(!0);break}je.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:Ce.length,index:V}),we++}}else if(B&&ce.length===0&&z.substring(V,V+Ke)===B){if(Ee===-1)return St();V=Ee+Be,Ee=z.indexOf(T,V),Ne=z.indexOf(A,V)}else if(Ne!==-1&&(Ne=k)return St(!0)}return Hr();function it(ct){Ce.push(ct),be=V}function Ns(ct){var Vt=0;return Vt=ct!==-1&&(ct=z.substring(we+1,ct))&&ct.trim()===""?ct.length:Vt}function Hr(ct){return O||(ct===void 0&&(ct=z.substring(V)),ce.push(ct),V=re,it(ce),De&&Wr()),St()}function Ga(ct){V=ct,it(ce),ce=[],Ee=z.indexOf(T,V)}function St(ct){if(E.header&&!G&&Ce.length&&!ne){var Vt=Ce[0],gn=Object.create(null),_p=new Set(Vt);let y0=!1;for(let Bs=0;BsB.charCodeAt(0)!==65279?B:B.slice(1))(E),T=new(A.download?p:d)(A)):E.readable===!0&&N(E.read)&&N(E.on)?T=new f(A):(n.File&&E instanceof File||E instanceof Object)&&(T=new h(A)),T.stream(E);(T=(()=>{var B;return!!l.WORKERS_SUPPORTED&&(B=(()=>{var M=n.URL||n.webkitURL||null,k=r.toString();return l.BLOB_URL||(l.BLOB_URL=M.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",k,")();"],{type:"text/javascript"})))})(),(B=new n.Worker(B)).onmessage=m,B.id=u++,o[B.id]=B)})()).userStep=A.step,T.userChunk=A.chunk,T.userComplete=A.complete,T.userError=A.error,A.step=N(A.step),A.chunk=N(A.chunk),A.complete=N(A.complete),A.error=N(A.error),delete A.worker,T.postMessage({input:E,config:A,workerId:T.id})},l.unparse=function(E,A){var T=!1,B=!0,M=",",k=`\r -`,J='"',K=J+J,ne=!1,Z=null,$=!1,V=((()=>{if(typeof A=="object"){if(typeof A.delimiter!="string"||l.BAD_DELIMITERS.filter(function(G){return A.delimiter.indexOf(G)!==-1}).length||(M=A.delimiter),typeof A.quotes!="boolean"&&typeof A.quotes!="function"&&!Array.isArray(A.quotes)||(T=A.quotes),typeof A.skipEmptyLines!="boolean"&&typeof A.skipEmptyLines!="string"||(ne=A.skipEmptyLines),typeof A.newline=="string"&&(k=A.newline),typeof A.quoteChar=="string"&&(J=A.quoteChar),typeof A.header=="boolean"&&(B=A.header),Array.isArray(A.columns)){if(A.columns.length===0)throw new Error("Option columns is empty");Z=A.columns}A.escapeChar!==void 0&&(K=A.escapeChar+J),A.escapeFormulae instanceof RegExp?$=A.escapeFormulae:typeof A.escapeFormulae=="boolean"&&A.escapeFormulae&&($=/^[=+\-@\t\r].*$/)}})(),new RegExp(x(J),"g"));if(typeof E=="string"&&(E=JSON.parse(E)),Array.isArray(E)){if(!E.length||Array.isArray(E[0]))return W(null,E,ne);if(typeof E[0]=="object")return W(Z||Object.keys(E[0]),E,ne)}else if(typeof E=="object")return typeof E.data=="string"&&(E.data=JSON.parse(E.data)),Array.isArray(E.data)&&(E.fields||(E.fields=E.meta&&E.meta.fields||Z),E.fields||(E.fields=Array.isArray(E.data[0])?E.fields:typeof E.data[0]=="object"?Object.keys(E.data[0]):[]),Array.isArray(E.data[0])||typeof E.data[0]=="object"||(E.data=[E.data])),W(E.fields||[],E.data||[],ne);throw new Error("Unable to serialize unrecognized input");function W(G,O,re){var se="",Be=(typeof G=="string"&&(G=JSON.parse(G)),typeof O=="string"&&(O=JSON.parse(O)),Array.isArray(G)&&0{for(var De=0;De0?{success:!1,error:t.errors[0].message||"Failed to parse CSV"}:{success:!0,data:JSON.stringify(t.data,null,2)}}catch(t){return{success:!1,error:t instanceof Error?t.message:"Failed to convert CSV to JSON"}}}function uq(e){try{const t=QS(e);return!t.success||!t.data?t:YS(t.data)}catch(t){return{success:!1,error:t instanceof Error?t.message:"Failed to convert XML to CSV"}}}function lq(e){try{const t=ZS(e);return!t.success||!t.data?t:GS(t.data)}catch(t){return{success:!1,error:t instanceof Error?t.message:"Failed to convert CSV to XML"}}}function cq(e){if(!e)return{totalCharsWithSpaces:0,totalCharsWithoutSpaces:0,blankSpaces:0,numbers:0,words:0,sentences:0,paragraphs:0};const t=e.length,r=(e.match(/\s/g)||[]).length,n=t-r,i=(e.match(/\d/g)||[]).length,s=e.trim()?e.trim().split(/\s+/).length:0,a=e.trim()?e.split(/[.!?]+/).filter(u=>u.trim().length>0).length:0,o=e.trim()?e.split(/\n\s*\n/).filter(u=>u.trim().length>0).length:0;return{totalCharsWithSpaces:t,totalCharsWithoutSpaces:n,blankSpaces:r,numbers:i,words:s,sentences:a,paragraphs:o}}function pq(){const[e,t]=_.useState(""),[r,n]=_.useState(""),[i,s]=_.useState("json"),[a,o]=_.useState(!0),[u,l]=_.useState(!1),c=async()=>{try{let h=i;a&&e.trim()&&(h=jV(e),s(h));let d="";h==="json"?d=await RV(e):d=await zV(e),n(d)}catch(h){n("Error formatting: "+h.message)}},p=()=>{navigator.clipboard.writeText(r),l(!0),setTimeout(()=>l(!1),2e3)};return C.jsxs("div",{className:"flex flex-col h-full gap-4",children:[C.jsxs("div",{className:"flex items-center justifying-between gap-4 py-2",children:[C.jsx("h2",{className:"text-2xl font-bold",children:"Code Formatter"}),C.jsxs("div",{className:"flex items-center gap-2 ml-auto",children:[C.jsxs("label",{className:"flex items-center gap-2 px-3 py-2 bg-card border border-input rounded-md text-sm cursor-pointer hover:bg-accent",children:[C.jsx("input",{type:"checkbox",checked:a,onChange:h=>o(h.target.checked),className:"w-4 h-4 cursor-pointer"}),C.jsx(nP,{className:"w-4 h-4"}),"Auto-detect"]}),C.jsxs("select",{value:i,onChange:h=>s(h.target.value),disabled:a,className:"px-3 py-2 bg-card border border-input rounded-md text-sm ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed",children:[C.jsx("option",{value:"json",children:"JSON"}),C.jsx("option",{value:"xml",children:"XML"})]}),C.jsxs("button",{onClick:c,className:"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 bg-primary text-primary-foreground hover:bg-primary/90 h-10 px-4 py-2",children:[C.jsx(_x,{className:"w-4 h-4"}),"Format"]})]})]}),C.jsxs("div",{className:"grid grid-cols-2 gap-4 flex-1 min-h-0",children:[C.jsxs("div",{className:"flex flex-col gap-2 h-full",children:[C.jsx("label",{className:"text-sm font-medium text-muted-foreground",children:"Input"}),C.jsx("div",{className:"flex-1 border border-input rounded-md overflow-hidden bg-card",children:C.jsx(xa,{height:"100%",defaultLanguage:i,language:i,theme:"vs-dark",value:e,onChange:h=>t(h||""),options:{minimap:{enabled:!1},fontSize:14}})})]}),C.jsxs("div",{className:"flex flex-col gap-2 h-full",children:[C.jsxs("div",{className:"flex items-center justify-between",children:[C.jsx("label",{className:"text-sm font-medium text-muted-foreground",children:"Output"}),C.jsxs("button",{onClick:p,disabled:!r,className:"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-xs font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 hover:bg-accent hover:text-accent-foreground h-8 px-3",children:[u?C.jsx(Px,{className:"w-3 h-3"}):C.jsx(kx,{className:"w-3 h-3"}),u?"Copied":"Copy"]})]}),C.jsx("div",{className:"flex-1 border border-input rounded-md overflow-hidden bg-card",children:C.jsx(xa,{height:"100%",defaultLanguage:i,language:i,theme:"vs-dark",value:r,options:{readOnly:!0,minimap:{enabled:!1},fontSize:14}})})]})]})]})}function hq(){const[e,t]=_.useState(""),[r,n]=_.useState(""),[i,s]=_.useState([]),a=()=>{const o=WV(e,r);s(o)};return C.jsxs("div",{className:"flex flex-col h-full gap-4",children:[C.jsxs("div",{className:"flex items-center justify-between py-2",children:[C.jsx("h2",{className:"text-2xl font-bold",children:"Diff Viewer"}),C.jsxs("button",{onClick:a,className:"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 bg-primary text-primary-foreground hover:bg-primary/90 h-10 px-4 py-2",children:[C.jsx(H3,{className:"w-4 h-4"}),"Compare"]})]}),C.jsxs("div",{className:"grid grid-cols-2 gap-4 h-[40%]",children:[C.jsxs("div",{className:"flex flex-col gap-2",children:[C.jsx("label",{className:"text-sm font-medium text-muted-foreground",children:"Original Text"}),C.jsx("div",{className:"flex-1 border border-input rounded-md overflow-hidden bg-card",children:C.jsx(xa,{height:"100%",defaultLanguage:"text",theme:"vs-dark",value:e,onChange:o=>t(o||""),options:{minimap:{enabled:!1},fontSize:14}})})]}),C.jsxs("div",{className:"flex flex-col gap-2",children:[C.jsx("label",{className:"text-sm font-medium text-muted-foreground",children:"Modified Text"}),C.jsx("div",{className:"flex-1 border border-input rounded-md overflow-hidden bg-card",children:C.jsx(xa,{height:"100%",defaultLanguage:"text",theme:"vs-dark",value:r,onChange:o=>n(o||""),options:{minimap:{enabled:!1},fontSize:14}})})]})]}),C.jsxs("div",{className:"flex flex-col gap-2 flex-1 min-h-0",children:[C.jsx("label",{className:"text-sm font-medium text-muted-foreground",children:"Diff Result"}),C.jsxs("div",{className:"flex-1 p-4 border border-input rounded-md bg-card overflow-auto font-mono text-sm whitespace-pre-wrap",children:[i.map((o,u)=>{const[l,c]=o;let p="";return l===1&&(p="bg-green-900/30 text-green-300"),l===-1&&(p="bg-red-900/30 text-red-300 line-through opacity-70"),C.jsx("span",{className:p,children:c},u)}),i.length===0&&C.jsx("span",{className:"text-muted-foreground italic",children:"No diffs computed yet..."})]})]})]})}function dq(){const[e,t]=_.useState(""),[r,n]=_.useState(""),[i,s]=_.useState("parse"),[a,o]=_.useState(!1),[u,l]=_.useState(""),c=()=>{l("");try{let d="";i==="parse"?d=UV(e):d=VV(e),n(d)}catch(d){const f=d.message;l(f),n("")}},p=()=>{navigator.clipboard.writeText(r),o(!0),setTimeout(()=>o(!1),2e3)},h=()=>{t(""),n(""),l("")};return C.jsxs("div",{className:"flex flex-col h-full gap-4",children:[C.jsxs("div",{className:"flex items-center justifying-between gap-4 py-2",children:[C.jsx("h2",{className:"text-2xl font-bold",children:"JSON Parser & Stringifier"}),C.jsxs("div",{className:"flex items-center gap-2 ml-auto",children:[C.jsxs("div",{className:"flex gap-2 px-3 py-2 bg-card border border-input rounded-md",children:[C.jsxs("label",{className:"flex items-center gap-2 cursor-pointer text-sm",children:[C.jsx("input",{type:"radio",name:"action",value:"parse",checked:i==="parse",onChange:d=>s(d.target.value),className:"w-4 h-4 cursor-pointer"}),"Parse (Prettify)"]}),C.jsxs("label",{className:"flex items-center gap-2 cursor-pointer text-sm",children:[C.jsx("input",{type:"radio",name:"action",value:"stringify",checked:i==="stringify",onChange:d=>s(d.target.value),className:"w-4 h-4 cursor-pointer"}),"Stringify (Minify)"]})]}),C.jsxs("button",{onClick:c,disabled:!e.trim(),className:"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 bg-primary text-primary-foreground hover:bg-primary/90 h-10 px-4 py-2",children:[C.jsx(_x,{className:"w-4 h-4"}),"Execute"]}),C.jsxs("button",{onClick:h,disabled:!e&&!r,className:"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 bg-muted text-muted-foreground hover:bg-muted/80 h-10 px-4 py-2",children:[C.jsx(Q3,{className:"w-4 h-4"}),"Clear"]})]})]}),u&&C.jsx("div",{className:"p-3 rounded-md bg-destructive/10 border border-destructive text-destructive text-sm",children:u}),C.jsxs("div",{className:"grid grid-cols-2 gap-4 flex-1 min-h-0",children:[C.jsxs("div",{className:"flex flex-col gap-2 h-full",children:[C.jsx("label",{className:"text-sm font-medium text-muted-foreground",children:i==="parse"?"Input (Minified JSON)":"Input (Formatted JSON)"}),C.jsx("div",{className:"flex-1 border border-input rounded-md overflow-hidden bg-card",children:C.jsx(xa,{height:"100%",defaultLanguage:"json",language:"json",theme:"vs-dark",value:e,onChange:d=>{t(d||""),l("")},options:{minimap:{enabled:!1},fontSize:14}})})]}),C.jsxs("div",{className:"flex flex-col gap-2 h-full",children:[C.jsxs("div",{className:"flex items-center justify-between",children:[C.jsx("label",{className:"text-sm font-medium text-muted-foreground",children:i==="parse"?"Output (Prettified JSON)":"Output (Minified JSON)"}),C.jsxs("button",{onClick:p,disabled:!r,className:"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-xs font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 hover:bg-accent hover:text-accent-foreground h-8 px-3",children:[a?C.jsx(Px,{className:"w-3 h-3"}):C.jsx(kx,{className:"w-3 h-3"}),a?"Copied":"Copy"]})]}),C.jsx("div",{className:"flex-1 border border-input rounded-md overflow-hidden bg-card",children:C.jsx(xa,{height:"100%",defaultLanguage:"json",language:"json",theme:"vs-dark",value:r,options:{readOnly:!0,minimap:{enabled:!1},fontSize:14}})})]})]})]})}function fq(){const[e,t]=_.useState(16),[r,n]=_.useState(!0),[i,s]=_.useState(16),[a,o]=_.useState(window.innerWidth),[u,l]=_.useState(window.innerHeight),[c,p]=_.useState(1e3),[h,d]=_.useState("16"),[f,y]=_.useState("1"),[x,g]=_.useState("1"),[m,D]=_.useState("0.8333"),[v,b]=_.useState("1.4815"),[P,N]=_.useState("1.6"),[E,A]=_.useState("0.1667"),[T,B]=_.useState("0.4233"),M=r?e:i,k=O=>isNaN(O)?"":parseFloat(O.toFixed(4)).toString(),J=_.useCallback((O,re)=>{re!=="px"&&d(O.toString()),re!=="rem"&&y(k(JV(O,e))),re!=="em"&&g(k(KV(O,M))),re!=="vw"&&D(k(QV(O,a))),re!=="vh"&&b(k(ZV(O,u))),re!=="percent"&&N(k(tz(O,c))),re!=="in"&&A(k(nz(O))),re!=="cm"&&B(k(sz(O)))},[e,M,a,u,c]);_.useEffect(()=>{const O=parseFloat(h);isNaN(O)||J(O,"px")},[e,M,a,u,c]);const K=O=>{const re=O.target.value;d(re);const se=parseFloat(re);isNaN(se)||J(se,"px")},ne=O=>{const re=O.target.value;y(re);const se=parseFloat(re);isNaN(se)||J(XV(se,e),"rem")},Z=O=>{const re=O.target.value;g(re);const se=parseFloat(re);isNaN(se)||J(GV(se,M),"em")},$=O=>{const re=O.target.value;D(re);const se=parseFloat(re);isNaN(se)||J(YV(se,a),"vw")},V=O=>{const re=O.target.value;b(re);const se=parseFloat(re);isNaN(se)||J(ez(se,u),"vh")},W=O=>{const re=O.target.value;N(re);const se=parseFloat(re);isNaN(se)||J(rz(se,c),"percent")},z=O=>{const re=O.target.value;A(re);const se=parseFloat(re);isNaN(se)||J(iz(se),"in")},G=O=>{const re=O.target.value;B(re);const se=parseFloat(re);isNaN(se)||J(az(se),"cm")};return C.jsxs("div",{className:"space-y-6 pb-20",children:[C.jsx("div",{className:"flex items-center justify-between",children:C.jsxs("div",{children:[C.jsx("h2",{className:"text-3xl font-bold tracking-tight",children:"Unit Converter"}),C.jsx("p",{className:"text-muted-foreground mt-2",children:"Convert between screen and physical units. Changing one updates all others in real-time."})]})}),C.jsxs("div",{className:"bg-card border border-border rounded-lg p-6 shadow-sm",children:[C.jsxs("div",{className:"flex items-center gap-2 mb-6",children:[C.jsx(Y3,{className:"w-5 h-5 text-primary"}),C.jsx("h3",{className:"font-semibold text-lg",children:"Configuration"})]}),C.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-5 gap-6",children:[C.jsxs("div",{className:"space-y-2",children:[C.jsx("label",{className:"text-sm font-medium text-muted-foreground whitespace-nowrap",children:"Root Font Size (px)"}),C.jsx("input",{type:"number",value:e,onChange:O=>t(Number(O.target.value)),className:"w-full bg-background border border-input rounded-md px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary min-w-0"})]}),C.jsxs("div",{className:"space-y-2",children:[C.jsx("label",{className:"text-sm font-medium text-muted-foreground whitespace-nowrap",children:"Viewport Width (px)"}),C.jsx("input",{type:"number",value:a,onChange:O=>o(Number(O.target.value)),className:"w-full bg-background border border-input rounded-md px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary min-w-0"})]}),C.jsxs("div",{className:"space-y-2",children:[C.jsx("label",{className:"text-sm font-medium text-muted-foreground whitespace-nowrap",children:"Viewport Height (px)"}),C.jsx("input",{type:"number",value:u,onChange:O=>l(Number(O.target.value)),className:"w-full bg-background border border-input rounded-md px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary min-w-0"})]}),C.jsxs("div",{className:"space-y-2",children:[C.jsx("label",{className:"text-sm font-medium text-muted-foreground whitespace-nowrap",children:"Parent Container (px)"}),C.jsx("input",{type:"number",value:c,onChange:O=>p(Number(O.target.value)),className:"w-full bg-background border border-input rounded-md px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary min-w-0"})]}),C.jsxs("div",{className:"space-y-3",children:[C.jsxs("div",{className:"flex items-center gap-2 h-9",children:[C.jsx("input",{type:"checkbox",id:"parentSameAsRoot",checked:r,onChange:O=>n(O.target.checked),className:"w-4 h-4 rounded border-gray-300 text-primary focus:ring-primary"}),C.jsx("label",{htmlFor:"parentSameAsRoot",className:"text-sm font-medium text-muted-foreground whitespace-nowrap",children:"Parent = Root"})]}),!r&&C.jsxs("div",{className:"space-y-2",children:[C.jsx("label",{className:"text-sm font-medium text-muted-foreground whitespace-nowrap",children:"Parent Font Size (px)"}),C.jsx("input",{type:"number",value:i,onChange:O=>s(Number(O.target.value)),className:"w-full bg-background border border-input rounded-md px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary min-w-0"})]})]})]})]}),C.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:[C.jsxs("div",{className:"bg-card border border-border rounded-lg p-6 shadow-sm hover:border-primary/50 transition-colors overflow-hidden",children:[C.jsx("h3",{className:"font-semibold text-lg mb-4",children:"Pixels (px)"}),C.jsxs("div",{className:"flex items-end gap-2",children:[C.jsx("input",{type:"text",inputMode:"decimal",value:h,onChange:K,className:"flex-1 min-w-0 bg-background border border-input rounded-md px-4 py-3 text-xl font-mono font-bold focus:outline-none focus:ring-2 focus:ring-primary"}),C.jsx("span",{className:"pb-3 text-muted-foreground font-bold whitespace-nowrap",children:"px"})]})]}),C.jsxs("div",{className:"bg-card border border-border rounded-lg p-6 shadow-sm hover:border-primary/50 transition-colors overflow-hidden",children:[C.jsx("h3",{className:"font-semibold text-lg mb-4",children:"Root EM (rem)"}),C.jsxs("div",{className:"flex items-end gap-2",children:[C.jsx("input",{type:"text",inputMode:"decimal",value:f,onChange:ne,className:"flex-1 min-w-0 bg-background border border-input rounded-md px-4 py-3 text-xl font-mono focus:outline-none focus:ring-2 focus:ring-primary"}),C.jsx("span",{className:"pb-3 text-muted-foreground font-bold whitespace-nowrap",children:"rem"})]}),C.jsxs("p",{className:"text-xs text-muted-foreground mt-2 truncate",children:["Based on ",e,"px root size"]})]}),C.jsxs("div",{className:"bg-card border border-border rounded-lg p-6 shadow-sm hover:border-primary/50 transition-colors overflow-hidden",children:[C.jsx("h3",{className:"font-semibold text-lg mb-4",children:"Element EM (em)"}),C.jsxs("div",{className:"flex items-end gap-2",children:[C.jsx("input",{type:"text",inputMode:"decimal",value:x,onChange:Z,className:"flex-1 min-w-0 bg-background border border-input rounded-md px-4 py-3 text-xl font-mono focus:outline-none focus:ring-2 focus:ring-primary"}),C.jsx("span",{className:"pb-3 text-muted-foreground font-bold whitespace-nowrap",children:"em"})]}),C.jsxs("p",{className:"text-xs text-muted-foreground mt-2 truncate",children:["Relative to parent (",M,"px)"]})]}),C.jsxs("div",{className:"bg-card border border-border rounded-lg p-6 shadow-sm hover:border-primary/50 transition-colors overflow-hidden",children:[C.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[C.jsx(J3,{className:"w-4 h-4 text-muted-foreground"}),C.jsx("h3",{className:"font-semibold text-lg",children:"Viewport Width (vw)"})]}),C.jsxs("div",{className:"flex items-end gap-2",children:[C.jsx("input",{type:"text",inputMode:"decimal",value:m,onChange:$,className:"flex-1 min-w-0 bg-background border border-input rounded-md px-4 py-3 text-xl font-mono focus:outline-none focus:ring-2 focus:ring-primary"}),C.jsx("span",{className:"pb-3 text-muted-foreground font-bold whitespace-nowrap",children:"vw"})]}),C.jsxs("p",{className:"text-xs text-muted-foreground mt-2 truncate",children:["Based on ",a,"px width"]})]}),C.jsxs("div",{className:"bg-card border border-border rounded-lg p-6 shadow-sm hover:border-primary/50 transition-colors overflow-hidden",children:[C.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[C.jsx(Z3,{className:"w-4 h-4 text-muted-foreground"}),C.jsx("h3",{className:"font-semibold text-lg",children:"Viewport Height (vh)"})]}),C.jsxs("div",{className:"flex items-end gap-2",children:[C.jsx("input",{type:"text",inputMode:"decimal",value:v,onChange:V,className:"flex-1 min-w-0 bg-background border border-input rounded-md px-4 py-3 text-xl font-mono focus:outline-none focus:ring-2 focus:ring-primary"}),C.jsx("span",{className:"pb-3 text-muted-foreground font-bold whitespace-nowrap",children:"vh"})]}),C.jsxs("p",{className:"text-xs text-muted-foreground mt-2 truncate",children:["Based on ",u,"px height"]})]}),C.jsxs("div",{className:"bg-card border border-border rounded-lg p-6 shadow-sm hover:border-primary/50 transition-colors overflow-hidden",children:[C.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[C.jsx(Lx,{className:"w-4 h-4 text-muted-foreground"}),C.jsx("h3",{className:"font-semibold text-lg",children:"Percentage (%)"})]}),C.jsxs("div",{className:"flex items-end gap-2",children:[C.jsx("input",{type:"text",inputMode:"decimal",value:P,onChange:W,className:"flex-1 min-w-0 bg-background border border-input rounded-md px-4 py-3 text-xl font-mono focus:outline-none focus:ring-2 focus:ring-primary"}),C.jsx("span",{className:"pb-3 text-muted-foreground font-bold whitespace-nowrap",children:"%"})]}),C.jsxs("p",{className:"text-xs text-muted-foreground mt-2 truncate",children:["Relative to container (",c,"px)"]})]}),C.jsxs("div",{className:"bg-card border border-border rounded-lg p-6 shadow-sm hover:border-primary/50 transition-colors overflow-hidden",children:[C.jsx("h3",{className:"font-semibold text-lg mb-4",children:"Inches (in)"}),C.jsxs("div",{className:"flex items-end gap-2",children:[C.jsx("input",{type:"text",inputMode:"decimal",value:E,onChange:z,className:"flex-1 min-w-0 bg-background border border-input rounded-md px-4 py-3 text-xl font-mono focus:outline-none focus:ring-2 focus:ring-primary"}),C.jsx("span",{className:"pb-3 text-muted-foreground font-bold whitespace-nowrap",children:"in"})]}),C.jsx("p",{className:"text-xs text-muted-foreground mt-2",children:"1in = 96px"})]}),C.jsxs("div",{className:"bg-card border border-border rounded-lg p-6 shadow-sm hover:border-primary/50 transition-colors overflow-hidden",children:[C.jsx("h3",{className:"font-semibold text-lg mb-4",children:"Centimeters (cm)"}),C.jsxs("div",{className:"flex items-end gap-2",children:[C.jsx("input",{type:"text",inputMode:"decimal",value:T,onChange:G,className:"flex-1 min-w-0 bg-background border border-input rounded-md px-4 py-3 text-xl font-mono focus:outline-none focus:ring-2 focus:ring-primary"}),C.jsx("span",{className:"pb-3 text-muted-foreground font-bold whitespace-nowrap",children:"cm"})]}),C.jsx("p",{className:"text-xs text-muted-foreground mt-2",children:"1in = 2.54cm"})]})]})]})}function mq(){const[e,t]=_.useState(""),[r,n]=_.useState(""),[i,s]=_.useState(""),[a,o]=_.useState("image/png"),[u,l]=_.useState(""),[c,p]=_.useState(0),h=async m=>{var v;const D=(v=m.target.files)==null?void 0:v[0];if(D){l(D.name),p(D.size),o(D.type);try{const b=await oz(D);t(b);const P=uz(b);n(P),s(GD(P))}catch(b){console.error("Failed to process image",b)}}},d=m=>{const D=m.target.value;n(D),s(GD(D)),t(KD(D,a)),p(QD(D))},f=m=>{const D=m.target.value;s(D);const v=lz(D);n(v),t(KD(v,a)),p(QD(v))},y=m=>{navigator.clipboard.writeText(m)},x=()=>{t(""),n(""),s(""),l(""),p(0)},g=m=>{if(m===0)return"0 Bytes";const D=1024,v=["Bytes","KB","MB"],b=Math.floor(Math.log(m)/Math.log(D));return parseFloat((m/Math.pow(D,b)).toFixed(2))+" "+v[b]};return C.jsxs("div",{className:"space-y-6 pb-20",children:[C.jsxs("div",{children:[C.jsx("h2",{className:"text-3xl font-bold tracking-tight",children:"Image Converter"}),C.jsx("p",{className:"text-muted-foreground",children:"Convert images to Base64/ByteCode and vice-versa."})]}),C.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[C.jsx("div",{className:"space-y-6",children:C.jsxs("div",{className:"bg-card border border-border rounded-lg p-6 overflow-hidden",children:[C.jsxs("div",{className:"flex items-center justify-between mb-4",children:[C.jsxs("h3",{className:"text-lg font-semibold flex items-center gap-2",children:[C.jsx(Ix,{className:"w-5 h-5 text-primary"}),"Image Preview"]}),e&&C.jsx("button",{onClick:x,className:"p-2 text-destructive hover:bg-destructive/10 rounded-md transition-colors",title:"Clear",children:C.jsx($x,{className:"w-5 h-5"})})]}),e?C.jsxs("div",{className:"space-y-4",children:[C.jsx("div",{className:"relative group rounded-lg overflow-hidden border border-border bg-muted/30",children:C.jsx("img",{src:e,alt:"Preview",className:"max-w-full h-auto mx-auto max-h-[400px] object-contain"})}),C.jsxs("div",{className:"flex flex-wrap gap-4 text-sm text-muted-foreground",children:[C.jsxs("div",{className:"px-3 py-1 bg-muted rounded-full",children:[C.jsx("span",{className:"font-medium text-foreground",children:"Name:"})," ",u]}),C.jsxs("div",{className:"px-3 py-1 bg-muted rounded-full",children:[C.jsx("span",{className:"font-medium text-foreground",children:"Type:"})," ",a]}),C.jsxs("div",{className:"px-3 py-1 bg-muted rounded-full",children:[C.jsx("span",{className:"font-medium text-foreground",children:"Size:"})," ",g(c)]})]})]}):C.jsxs("label",{className:"flex flex-col items-center justify-center w-full h-64 border-2 border-dashed border-muted-foreground/25 rounded-lg cursor-pointer hover:border-primary/50 hover:bg-muted/50 transition-all",children:[C.jsxs("div",{className:"flex flex-col items-center justify-center pt-5 pb-6",children:[C.jsx(rP,{className:"w-12 h-12 text-muted-foreground mb-3"}),C.jsxs("p",{className:"mb-2 text-sm text-foreground",children:[C.jsx("span",{className:"font-semibold",children:"Click to upload"})," or drag and drop"]}),C.jsx("p",{className:"text-xs text-muted-foreground",children:"PNG, JPG, SVG or WEBP (Max 5MB)"})]}),C.jsx("input",{type:"file",className:"hidden",accept:"image/*",onChange:h})]})]})}),C.jsxs("div",{className:"space-y-6",children:[C.jsxs("div",{className:"bg-card border border-border rounded-lg p-6 overflow-hidden",children:[C.jsxs("div",{className:"flex items-center justify-between mb-4",children:[C.jsxs("h3",{className:"text-lg font-semibold flex items-center gap-2",children:[C.jsx(Nx,{className:"w-5 h-5 text-primary"}),"Base64 String"]}),C.jsx("button",{onClick:()=>y(r),className:"p-2 hover:bg-muted rounded-md transition-colors",title:"Copy to clipboard",disabled:!r,children:C.jsx(Jd,{className:"w-5 h-5"})})]}),C.jsx("textarea",{value:r,onChange:d,placeholder:"Base64 encoded image string will appear here...",className:"w-full h-40 p-4 bg-muted/50 border border-border rounded-md font-mono text-xs resize-none focus:outline-none focus:ring-2 focus:ring-primary/50"})]}),C.jsxs("div",{className:"bg-card border border-border rounded-lg p-6 overflow-hidden",children:[C.jsxs("div",{className:"flex items-center justify-between mb-4",children:[C.jsxs("h3",{className:"text-lg font-semibold flex items-center gap-2",children:[C.jsx(j3,{className:"w-5 h-5 text-primary"}),"ByteCode (Decimal)"]}),C.jsx("button",{onClick:()=>y(i),className:"p-2 hover:bg-muted rounded-md transition-colors",title:"Copy to clipboard",disabled:!i,children:C.jsx(Jd,{className:"w-5 h-5"})})]}),C.jsx("textarea",{value:i,onChange:f,placeholder:"Space-separated decimal byte values will appear here...",className:"w-full h-40 p-4 bg-muted/50 border border-border rounded-md font-mono text-xs resize-none focus:outline-none focus:ring-2 focus:ring-primary/50"})]})]})]})]})}const yq={json:`{ +`:"\r"}}function C(E){return E.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function g(E){var A=(E=E||{}).delimiter,b=E.newline,B=E.comments,M=E.step,P=E.preview,J=E.fastMode,K=null,ne=!1,Z=E.quoteChar==null?'"':E.quoteChar,$=Z;if(E.escapeChar!==void 0&&($=E.escapeChar),(typeof A!="string"||-1=P)return Tt(!0);break}je.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:Ce.length,index:V}),ke++}}else if(B&&ce.length===0&&z.substring(V,V+Ke)===B){if(xe===-1)return Tt();V=xe+Be,xe=z.indexOf(b,V),Ne=z.indexOf(A,V)}else if(Ne!==-1&&(Ne=P)return Tt(!0)}return Jr();function it(ct){Ce.push(ct),we=V}function Is(ct){var Vt=0;return Vt=ct!==-1&&(ct=z.substring(ke+1,ct))&&ct.trim()===""?ct.length:Vt}function Jr(ct){return O||(ct===void 0&&(ct=z.substring(V)),ce.push(ct),V=re,it(ce),De&&Xr()),Tt()}function eo(ct){V=ct,it(ce),ce=[],xe=z.indexOf(b,V)}function Tt(ct){if(E.header&&!G&&Ce.length&&!ne){var Vt=Ce[0],Dn=Object.create(null),zp=new Set(Vt);let Ny=!1;for(let _s=0;_sB.charCodeAt(0)!==65279?B:B.slice(1))(E),b=new(A.download?p:d)(A)):E.readable===!0&&N(E.read)&&N(E.on)?b=new f(A):(n.File&&E instanceof File||E instanceof Object)&&(b=new h(A)),b.stream(E);(b=(()=>{var B;return!!l.WORKERS_SUPPORTED&&(B=(()=>{var M=n.URL||n.webkitURL||null,P=r.toString();return l.BLOB_URL||(l.BLOB_URL=M.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",P,")();"],{type:"text/javascript"})))})(),(B=new n.Worker(B)).onmessage=m,B.id=u++,o[B.id]=B)})()).userStep=A.step,b.userChunk=A.chunk,b.userComplete=A.complete,b.userError=A.error,A.step=N(A.step),A.chunk=N(A.chunk),A.complete=N(A.complete),A.error=N(A.error),delete A.worker,b.postMessage({input:E,config:A,workerId:b.id})},l.unparse=function(E,A){var b=!1,B=!0,M=",",P=`\r +`,J='"',K=J+J,ne=!1,Z=null,$=!1,V=((()=>{if(typeof A=="object"){if(typeof A.delimiter!="string"||l.BAD_DELIMITERS.filter(function(G){return A.delimiter.indexOf(G)!==-1}).length||(M=A.delimiter),typeof A.quotes!="boolean"&&typeof A.quotes!="function"&&!Array.isArray(A.quotes)||(b=A.quotes),typeof A.skipEmptyLines!="boolean"&&typeof A.skipEmptyLines!="string"||(ne=A.skipEmptyLines),typeof A.newline=="string"&&(P=A.newline),typeof A.quoteChar=="string"&&(J=A.quoteChar),typeof A.header=="boolean"&&(B=A.header),Array.isArray(A.columns)){if(A.columns.length===0)throw new Error("Option columns is empty");Z=A.columns}A.escapeChar!==void 0&&(K=A.escapeChar+J),A.escapeFormulae instanceof RegExp?$=A.escapeFormulae:typeof A.escapeFormulae=="boolean"&&A.escapeFormulae&&($=/^[=+\-@\t\r].*$/)}})(),new RegExp(C(J),"g"));if(typeof E=="string"&&(E=JSON.parse(E)),Array.isArray(E)){if(!E.length||Array.isArray(E[0]))return W(null,E,ne);if(typeof E[0]=="object")return W(Z||Object.keys(E[0]),E,ne)}else if(typeof E=="object")return typeof E.data=="string"&&(E.data=JSON.parse(E.data)),Array.isArray(E.data)&&(E.fields||(E.fields=E.meta&&E.meta.fields||Z),E.fields||(E.fields=Array.isArray(E.data[0])?E.fields:typeof E.data[0]=="object"?Object.keys(E.data[0]):[]),Array.isArray(E.data[0])||typeof E.data[0]=="object"||(E.data=[E.data])),W(E.fields||[],E.data||[],ne);throw new Error("Unable to serialize unrecognized input");function W(G,O,re){var se="",Be=(typeof G=="string"&&(G=JSON.parse(G)),typeof O=="string"&&(O=JSON.parse(O)),Array.isArray(G)&&0{for(var De=0;De0?{success:!1,error:t.errors[0].message||"Failed to parse CSV"}:{success:!0,data:JSON.stringify(t.data,null,2)}}catch(t){return{success:!1,error:t instanceof Error?t.message:"Failed to convert CSV to JSON"}}}function $q(e){try{const t=mS(e);return!t.success||!t.data?t:yS(t.data)}catch(t){return{success:!1,error:t instanceof Error?t.message:"Failed to convert XML to CSV"}}}function Oq(e){try{const t=gS(e);return!t.success||!t.data?t:fS(t.data)}catch(t){return{success:!1,error:t instanceof Error?t.message:"Failed to convert CSV to XML"}}}function Mq(e){if(!e)return{totalCharsWithSpaces:0,totalCharsWithoutSpaces:0,blankSpaces:0,numbers:0,words:0,sentences:0,paragraphs:0,hexCount:0,binaryCount:0};const t=e.length,r=(e.match(/\s/g)||[]).length,n=t-r,i=(e.match(new RegExp("(?c.trim().length>0).length:0,o=e.trim()?e.split(/\n\s*\n/).filter(c=>c.trim().length>0).length:0,u=(e.match(/\b0x[0-9a-fA-F]+\b|\B#[0-9a-fA-F]{3,6}\b/g)||[]).length,l=(e.match(/\b0b[01]+\b|\b[01]{4,}\b/g)||[]).length;return{totalCharsWithSpaces:t,totalCharsWithoutSpaces:n,blankSpaces:r,numbers:i,words:s,sentences:a,paragraphs:o,hexCount:u,binaryCount:l}}const jq={};var Wf=null;function Rq(e){try{return crypto.getRandomValues(new Uint8Array(e))}catch{}try{return jq.randomBytes(e)}catch{}if(!Wf)throw Error("Neither WebCryptoAPI nor a crypto module is available. Use bcrypt.setRandomFallback to set an alternative");return Wf(e)}function Uq(e){Wf=e}function ky(e,t){if(e=e||Py,typeof e!="number")throw Error("Illegal arguments: "+typeof e+", "+typeof t);e<4?e=4:e>31&&(e=31);var r=[];return r.push("$2b$"),e<10&&r.push("0"),r.push(e.toString()),r.push("$"),r.push(Kc(Rq(Iu),Iu)),r.join("")}function DS(e,t,r){if(typeof t=="function"&&(r=t,t=void 0),typeof e=="function"&&(r=e,e=void 0),typeof e>"u")e=Py;else if(typeof e!="number")throw Error("illegal arguments: "+typeof e);function n(i){Mr(function(){try{i(null,ky(e))}catch(s){i(s)}})}if(r){if(typeof r!="function")throw Error("Illegal callback: "+typeof r);n(r)}else return new Promise(function(i,s){n(function(a,o){if(a){s(a);return}i(o)})})}function xS(e,t){if(typeof t>"u"&&(t=Py),typeof t=="number"&&(t=ky(t)),typeof e!="string"||typeof t!="string")throw Error("Illegal arguments: "+typeof e+", "+typeof t);return Jf(e,t)}function ES(e,t,r,n){function i(s){typeof e=="string"&&typeof t=="number"?DS(t,function(a,o){Jf(e,o,s,n)}):typeof e=="string"&&typeof t=="string"?Jf(e,t,s,n):Mr(s.bind(this,Error("Illegal arguments: "+typeof e+", "+typeof t)))}if(r){if(typeof r!="function")throw Error("Illegal callback: "+typeof r);i(r)}else return new Promise(function(s,a){i(function(o,u){if(o){a(o);return}s(u)})})}function CS(e,t){for(var r=e.length^t.length,n=0;n72}var Mr=typeof setImmediate=="function"?setImmediate:typeof scheduler=="object"&&typeof scheduler.postTask=="function"?scheduler.postTask.bind(scheduler):setTimeout;function vS(e){for(var t=0,r=0,n=0;n>6|192,i[t++]=r&63|128):(r&64512)===55296&&((n=e.charCodeAt(s+1))&64512)===56320?(r=65536+((r&1023)<<10)+(n&1023),++s,i[t++]=r>>18|240,i[t++]=r>>12&63|128,i[t++]=r>>6&63|128,i[t++]=r&63|128):(i[t++]=r>>12|224,i[t++]=r>>6&63|128,i[t++]=r&63|128);return i}var Rs="./ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),ni=[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,0,1,54,55,56,57,58,59,60,61,62,63,-1,-1,-1,-1,-1,-1,-1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,-1,-1,-1,-1,-1,-1,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,-1,-1,-1,-1,-1];function Kc(e,t){var r=0,n=[],i,s;if(t<=0||t>e.length)throw Error("Illegal len: "+t);for(;r>2&63]),i=(i&3)<<4,r>=t){n.push(Rs[i&63]);break}if(s=e[r++]&255,i|=s>>4&15,n.push(Rs[i&63]),i=(s&15)<<2,r>=t){n.push(Rs[i&63]);break}s=e[r++]&255,i|=s>>6&3,n.push(Rs[i&63]),n.push(Rs[s&63])}return n.join("")}function AS(e,t){var r=0,n=e.length,i=0,s=[],a,o,u,l,c,p;if(t<=0)throw Error("Illegal len: "+t);for(;r>>0,c|=(o&48)>>4,s.push(String.fromCharCode(c)),++i>=t||r>=n)||(p=e.charCodeAt(r++),u=p>>0,c|=(u&60)>>2,s.push(String.fromCharCode(c)),++i>=t||r>=n)));)p=e.charCodeAt(r++),l=p>>0,c|=l,s.push(String.fromCharCode(c)),++i;var h=[];for(r=0;r>>24],i+=n[256|s>>16&255],i^=n[512|s>>8&255],i+=n[768|s&255],a^=i^r[1],i=n[a>>>24],i+=n[256|a>>16&255],i^=n[512|a>>8&255],i+=n[768|a&255],s^=i^r[2],i=n[s>>>24],i+=n[256|s>>16&255],i^=n[512|s>>8&255],i+=n[768|s&255],a^=i^r[3],i=n[a>>>24],i+=n[256|a>>16&255],i^=n[512|a>>8&255],i+=n[768|a&255],s^=i^r[4],i=n[s>>>24],i+=n[256|s>>16&255],i^=n[512|s>>8&255],i+=n[768|s&255],a^=i^r[5],i=n[a>>>24],i+=n[256|a>>16&255],i^=n[512|a>>8&255],i+=n[768|a&255],s^=i^r[6],i=n[s>>>24],i+=n[256|s>>16&255],i^=n[512|s>>8&255],i+=n[768|s&255],a^=i^r[7],i=n[a>>>24],i+=n[256|a>>16&255],i^=n[512|a>>8&255],i+=n[768|a&255],s^=i^r[8],i=n[s>>>24],i+=n[256|s>>16&255],i^=n[512|s>>8&255],i+=n[768|s&255],a^=i^r[9],i=n[a>>>24],i+=n[256|a>>16&255],i^=n[512|a>>8&255],i+=n[768|a&255],s^=i^r[10],i=n[s>>>24],i+=n[256|s>>16&255],i^=n[512|s>>8&255],i+=n[768|s&255],a^=i^r[11],i=n[a>>>24],i+=n[256|a>>16&255],i^=n[512|a>>8&255],i+=n[768|a&255],s^=i^r[12],i=n[s>>>24],i+=n[256|s>>16&255],i^=n[512|s>>8&255],i+=n[768|s&255],a^=i^r[13],i=n[a>>>24],i+=n[256|a>>16&255],i^=n[512|a>>8&255],i+=n[768|a&255],s^=i^r[14],i=n[s>>>24],i+=n[256|s>>16&255],i^=n[512|s>>8&255],i+=n[768|s&255],a^=i^r[15],i=n[a>>>24],i+=n[256|a>>16&255],i^=n[512|a>>8&255],i+=n[768|a&255],s^=i^r[16],e[t]=a^r[Xq+1],e[t+1]=s,e}function Ws(e,t){for(var r=0,n=0;r<4;++r)n=n<<8|e[t]&255,t=(t+1)%e.length;return{key:n,offp:t}}function ED(e,t,r){for(var n=0,i=[0,0],s=t.length,a=r.length,o,u=0;u31)if(o=Error("Illegal number of rounds (4-31): "+r),n){Mr(n.bind(this,o));return}else throw o;if(t.length!==Iu)if(o=Error("Illegal salt length: "+t.length+" != "+Iu),n){Mr(n.bind(this,o));return}else throw o;r=1<>>0;var u,l,c=0,p;typeof Int32Array=="function"?(u=new Int32Array(DD),l=new Int32Array(xD)):(u=DD.slice(),l=xD.slice()),Gq(t,e,u,l);function h(){if(i&&i(c/r),cKq)););else{for(c=0;c<64;c++)for(p=0;p>1;p++)_u(s,p<<1,u,l);var y=[];for(c=0;c>24&255)>>>0),y.push((s[c]>>16&255)>>>0),y.push((s[c]>>8&255)>>>0),y.push((s[c]&255)>>>0);if(n){n(null,y);return}else return y}n&&Mr(h)}if(typeof n<"u")h();else for(var d;;)if(typeof(d=h())<"u")return d||[]}function Jf(e,t,r,n){var i;if(typeof e!="string"||typeof t!="string")if(i=Error("Invalid string / salt: Not a string"),r){Mr(r.bind(this,i));return}else throw i;var s,a;if(t.charAt(0)!=="$"||t.charAt(1)!=="2")if(i=Error("Invalid salt version: "+t.substring(0,2)),r){Mr(r.bind(this,i));return}else throw i;if(t.charAt(2)==="$")s=String.fromCharCode(0),a=3;else{if(s=t.charAt(2),s!=="a"&&s!=="b"&&s!=="y"||t.charAt(3)!=="$")if(i=Error("Invalid salt revision: "+t.substring(2,4)),r){Mr(r.bind(this,i));return}else throw i;a=4}if(t.charAt(a+2)>"$")if(i=Error("Missing salt rounds"),r){Mr(r.bind(this,i));return}else throw i;var o=parseInt(t.substring(a,a+1),10)*10,u=parseInt(t.substring(a+1,a+2),10),l=o+u,c=t.substring(a+3,a+25);e+=s>="a"?"\0":"";var p=Jq(e),h=AS(c,Iu);function d(f){var y=[];return y.push("$2"),s>="a"&&y.push(s),y.push("$"),l<10&&y.push("0"),y.push(l.toString()),y.push("$"),y.push(Kc(h,h.length)),y.push(Kc(f,bS.length*4-1)),y.join("")}if(typeof r>"u")return d(CD(p,h,l));CD(p,h,l,function(f,y){f?r(f,null):r(null,d(y))},n)}function Qq(e,t){return Kc(e,t)}function Yq(e,t){return AS(e,t)}const TS={setRandomFallback:Uq,genSaltSync:ky,genSalt:DS,hashSync:xS,hash:ES,compareSync:Vq,compare:zq,getRounds:qq,getSalt:Hq,truncates:Wq,encodeBase64:Qq,decodeBase64:Yq};async function Zq(e,t=10){return new Promise((r,n)=>{TS.hash(e,t,(i,s)=>{i?n(i):s===void 0?n(new Error("Hash is undefined")):r(s)})})}async function eH(e,t){return new Promise((r,n)=>{TS.compare(e,t,(i,s)=>{i?n(i):s===void 0?n(new Error("Comparison result is undefined")):r(s)})})}function tH(){const[e,t]=I.useState(""),[r,n]=I.useState(""),[i,s]=I.useState("json"),[a,o]=I.useState(!0),[u,l]=I.useState(!1),c=async()=>{try{let h=i;a&&e.trim()&&(h=dz(e),s(h));let d="";h==="json"?d=await fz(e):d=await gz(e),n(d)}catch(h){n("Error formatting: "+h.message)}},p=()=>{navigator.clipboard.writeText(r),l(!0),setTimeout(()=>l(!1),2e3)};return D.jsxs("div",{className:"flex flex-col h-full gap-4",children:[D.jsxs("div",{className:"flex items-center justifying-between gap-4 py-2",children:[D.jsx("h2",{className:"text-2xl font-bold",children:"Code Formatter"}),D.jsxs("div",{className:"flex items-center gap-2 ml-auto",children:[D.jsxs("label",{className:"flex items-center gap-2 px-3 py-2 bg-card border border-input rounded-md text-sm cursor-pointer hover:bg-accent",children:[D.jsx("input",{type:"checkbox",checked:a,onChange:h=>o(h.target.checked),className:"w-4 h-4 cursor-pointer"}),D.jsx(Nk,{className:"w-4 h-4"}),"Auto-detect"]}),D.jsxs("select",{value:i,onChange:h=>s(h.target.value),disabled:a,className:"px-3 py-2 bg-card border border-input rounded-md text-sm ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed",children:[D.jsx("option",{value:"json",children:"JSON"}),D.jsx("option",{value:"xml",children:"XML"})]}),D.jsxs("button",{onClick:c,className:"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 bg-primary text-primary-foreground hover:bg-primary/90 h-10 px-4 py-2",children:[D.jsx(YE,{className:"w-4 h-4"}),"Format"]})]})]}),D.jsxs("div",{className:"grid grid-cols-2 gap-4 flex-1 min-h-0",children:[D.jsxs("div",{className:"flex flex-col gap-2 h-full",children:[D.jsx("label",{className:"text-sm font-medium text-muted-foreground",children:"Input"}),D.jsx("div",{className:"flex-1 border border-input rounded-md overflow-hidden bg-card",children:D.jsx(ba,{height:"100%",defaultLanguage:i,language:i,theme:"vs-dark",value:e,onChange:h=>t(h||""),options:{minimap:{enabled:!1},fontSize:14}})})]}),D.jsxs("div",{className:"flex flex-col gap-2 h-full",children:[D.jsxs("div",{className:"flex items-center justify-between",children:[D.jsx("label",{className:"text-sm font-medium text-muted-foreground",children:"Output"}),D.jsxs("button",{onClick:p,disabled:!r,className:"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-xs font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 hover:bg-accent hover:text-accent-foreground h-8 px-3",children:[u?D.jsx(zo,{className:"w-3 h-3"}):D.jsx(Jm,{className:"w-3 h-3"}),u?"Copied":"Copy"]})]}),D.jsx("div",{className:"flex-1 border border-input rounded-md overflow-hidden bg-card",children:D.jsx(ba,{height:"100%",defaultLanguage:i,language:i,theme:"vs-dark",value:r,options:{readOnly:!0,minimap:{enabled:!1},fontSize:14}})})]})]})]})}function rH(){const[e,t]=I.useState(""),[r,n]=I.useState(""),[i,s]=I.useState([]),a=()=>{const o=Ez(e,r);s(o)};return D.jsxs("div",{className:"flex flex-col h-full gap-4",children:[D.jsxs("div",{className:"flex items-center justify-between py-2",children:[D.jsx("h2",{className:"text-2xl font-bold",children:"Diff Viewer"}),D.jsxs("button",{onClick:a,className:"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 bg-primary text-primary-foreground hover:bg-primary/90 h-10 px-4 py-2",children:[D.jsx(yk,{className:"w-4 h-4"}),"Compare"]})]}),D.jsxs("div",{className:"grid grid-cols-2 gap-4 h-[40%]",children:[D.jsxs("div",{className:"flex flex-col gap-2",children:[D.jsx("label",{className:"text-sm font-medium text-muted-foreground",children:"Original Text"}),D.jsx("div",{className:"flex-1 border border-input rounded-md overflow-hidden bg-card",children:D.jsx(ba,{height:"100%",defaultLanguage:"text",theme:"vs-dark",value:e,onChange:o=>t(o||""),options:{minimap:{enabled:!1},fontSize:14}})})]}),D.jsxs("div",{className:"flex flex-col gap-2",children:[D.jsx("label",{className:"text-sm font-medium text-muted-foreground",children:"Modified Text"}),D.jsx("div",{className:"flex-1 border border-input rounded-md overflow-hidden bg-card",children:D.jsx(ba,{height:"100%",defaultLanguage:"text",theme:"vs-dark",value:r,onChange:o=>n(o||""),options:{minimap:{enabled:!1},fontSize:14}})})]})]}),D.jsxs("div",{className:"flex flex-col gap-2 flex-1 min-h-0",children:[D.jsx("label",{className:"text-sm font-medium text-muted-foreground",children:"Diff Result"}),D.jsxs("div",{className:"flex-1 p-4 border border-input rounded-md bg-card overflow-auto font-mono text-sm whitespace-pre-wrap",children:[i.map((o,u)=>{const[l,c]=o;let p="";return l===1&&(p="bg-green-900/30 text-green-300"),l===-1&&(p="bg-red-900/30 text-red-300 line-through opacity-70"),D.jsx("span",{className:p,children:c},u)}),i.length===0&&D.jsx("span",{className:"text-muted-foreground italic",children:"No diffs computed yet..."})]})]})]})}function nH(){const[e,t]=I.useState(""),[r,n]=I.useState(""),[i,s]=I.useState("parse"),[a,o]=I.useState(!1),[u,l]=I.useState(""),c=()=>{l("");try{let d="";i==="parse"?d=mz(e):d=yz(e),n(d)}catch(d){const f=d.message;l(f),n("")}},p=()=>{navigator.clipboard.writeText(r),o(!0),setTimeout(()=>o(!1),2e3)},h=()=>{t(""),n(""),l("")};return D.jsxs("div",{className:"flex flex-col h-full gap-4",children:[D.jsxs("div",{className:"flex items-center justifying-between gap-4 py-2",children:[D.jsx("h2",{className:"text-2xl font-bold",children:"JSON Parser & Stringifier"}),D.jsxs("div",{className:"flex items-center gap-2 ml-auto",children:[D.jsxs("div",{className:"flex gap-2 px-3 py-2 bg-card border border-input rounded-md",children:[D.jsxs("label",{className:"flex items-center gap-2 cursor-pointer text-sm",children:[D.jsx("input",{type:"radio",name:"action",value:"parse",checked:i==="parse",onChange:d=>s(d.target.value),className:"w-4 h-4 cursor-pointer"}),"Parse (Prettify)"]}),D.jsxs("label",{className:"flex items-center gap-2 cursor-pointer text-sm",children:[D.jsx("input",{type:"radio",name:"action",value:"stringify",checked:i==="stringify",onChange:d=>s(d.target.value),className:"w-4 h-4 cursor-pointer"}),"Stringify (Minify)"]})]}),D.jsxs("button",{onClick:c,disabled:!e.trim(),className:"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 bg-primary text-primary-foreground hover:bg-primary/90 h-10 px-4 py-2",children:[D.jsx(YE,{className:"w-4 h-4"}),"Execute"]}),D.jsxs("button",{onClick:h,disabled:!e&&!r,className:"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 bg-muted text-muted-foreground hover:bg-muted/80 h-10 px-4 py-2",children:[D.jsx(bk,{className:"w-4 h-4"}),"Clear"]})]})]}),u&&D.jsx("div",{className:"p-3 rounded-md bg-destructive/10 border border-destructive text-destructive text-sm",children:u}),D.jsxs("div",{className:"grid grid-cols-2 gap-4 flex-1 min-h-0",children:[D.jsxs("div",{className:"flex flex-col gap-2 h-full",children:[D.jsx("label",{className:"text-sm font-medium text-muted-foreground",children:i==="parse"?"Input (Minified JSON)":"Input (Formatted JSON)"}),D.jsx("div",{className:"flex-1 border border-input rounded-md overflow-hidden bg-card",children:D.jsx(ba,{height:"100%",defaultLanguage:"json",language:"json",theme:"vs-dark",value:e,onChange:d=>{t(d||""),l("")},options:{minimap:{enabled:!1},fontSize:14}})})]}),D.jsxs("div",{className:"flex flex-col gap-2 h-full",children:[D.jsxs("div",{className:"flex items-center justify-between",children:[D.jsx("label",{className:"text-sm font-medium text-muted-foreground",children:i==="parse"?"Output (Prettified JSON)":"Output (Minified JSON)"}),D.jsxs("button",{onClick:p,disabled:!r,className:"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-xs font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 hover:bg-accent hover:text-accent-foreground h-8 px-3",children:[a?D.jsx(zo,{className:"w-3 h-3"}):D.jsx(Jm,{className:"w-3 h-3"}),a?"Copied":"Copy"]})]}),D.jsx("div",{className:"flex-1 border border-input rounded-md overflow-hidden bg-card",children:D.jsx(ba,{height:"100%",defaultLanguage:"json",language:"json",theme:"vs-dark",value:r,options:{readOnly:!0,minimap:{enabled:!1},fontSize:14}})})]})]})]})}function iH(){const[e,t]=I.useState(16),[r,n]=I.useState(!0),[i,s]=I.useState(16),[a,o]=I.useState(window.innerWidth),[u,l]=I.useState(window.innerHeight),[c,p]=I.useState(1e3),[h,d]=I.useState("16"),[f,y]=I.useState("1"),[C,g]=I.useState("1"),[m,x]=I.useState("0.8333"),[v,T]=I.useState("1.4815"),[k,N]=I.useState("1.6"),[E,A]=I.useState("0.1667"),[b,B]=I.useState("0.4233"),M=r?e:i,P=O=>isNaN(O)?"":parseFloat(O.toFixed(4)).toString(),J=I.useCallback((O,re)=>{re!=="px"&&d(O.toString()),re!=="rem"&&y(P(Cz(O,e))),re!=="em"&&g(P(Az(O,M))),re!=="vw"&&x(P(Tz(O,a))),re!=="vh"&&T(P(Fz(O,u))),re!=="percent"&&N(P(kz(O,c))),re!=="in"&&A(P(Nz(O))),re!=="cm"&&B(P(Iz(O)))},[e,M,a,u,c]);I.useEffect(()=>{const O=parseFloat(h);isNaN(O)||J(O,"px")},[e,M,a,u,c]);const K=O=>{const re=O.target.value;d(re);const se=parseFloat(re);isNaN(se)||J(se,"px")},ne=O=>{const re=O.target.value;y(re);const se=parseFloat(re);isNaN(se)||J(vz(se,e),"rem")},Z=O=>{const re=O.target.value;g(re);const se=parseFloat(re);isNaN(se)||J(bz(se,M),"em")},$=O=>{const re=O.target.value;x(re);const se=parseFloat(re);isNaN(se)||J(Sz(se,a),"vw")},V=O=>{const re=O.target.value;T(re);const se=parseFloat(re);isNaN(se)||J(wz(se,u),"vh")},W=O=>{const re=O.target.value;N(re);const se=parseFloat(re);isNaN(se)||J(Pz(se,c),"percent")},z=O=>{const re=O.target.value;A(re);const se=parseFloat(re);isNaN(se)||J(Bz(se),"in")},G=O=>{const re=O.target.value;B(re);const se=parseFloat(re);isNaN(se)||J(_z(se),"cm")};return D.jsxs("div",{className:"space-y-6 pb-20",children:[D.jsx("div",{className:"flex items-center justify-between",children:D.jsxs("div",{children:[D.jsx("h2",{className:"text-3xl font-bold tracking-tight",children:"Unit Converter"}),D.jsx("p",{className:"text-muted-foreground mt-2",children:"Convert between screen and physical units. Changing one updates all others in real-time."})]})}),D.jsxs("div",{className:"bg-card border border-border rounded-lg p-6 shadow-sm",children:[D.jsxs("div",{className:"flex items-center gap-2 mb-6",children:[D.jsx(Tk,{className:"w-5 h-5 text-primary"}),D.jsx("h3",{className:"font-semibold text-lg",children:"Configuration"})]}),D.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-5 gap-6",children:[D.jsxs("div",{className:"space-y-2",children:[D.jsx("label",{className:"text-sm font-medium text-muted-foreground whitespace-nowrap",children:"Root Font Size (px)"}),D.jsx("input",{type:"number",value:e,onChange:O=>t(Number(O.target.value)),className:"w-full bg-background border border-input rounded-md px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary min-w-0"})]}),D.jsxs("div",{className:"space-y-2",children:[D.jsx("label",{className:"text-sm font-medium text-muted-foreground whitespace-nowrap",children:"Viewport Width (px)"}),D.jsx("input",{type:"number",value:a,onChange:O=>o(Number(O.target.value)),className:"w-full bg-background border border-input rounded-md px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary min-w-0"})]}),D.jsxs("div",{className:"space-y-2",children:[D.jsx("label",{className:"text-sm font-medium text-muted-foreground whitespace-nowrap",children:"Viewport Height (px)"}),D.jsx("input",{type:"number",value:u,onChange:O=>l(Number(O.target.value)),className:"w-full bg-background border border-input rounded-md px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary min-w-0"})]}),D.jsxs("div",{className:"space-y-2",children:[D.jsx("label",{className:"text-sm font-medium text-muted-foreground whitespace-nowrap",children:"Parent Container (px)"}),D.jsx("input",{type:"number",value:c,onChange:O=>p(Number(O.target.value)),className:"w-full bg-background border border-input rounded-md px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary min-w-0"})]}),D.jsxs("div",{className:"space-y-3",children:[D.jsxs("div",{className:"flex items-center gap-2 h-9",children:[D.jsx("input",{type:"checkbox",id:"parentSameAsRoot",checked:r,onChange:O=>n(O.target.checked),className:"w-4 h-4 rounded border-gray-300 text-primary focus:ring-primary"}),D.jsx("label",{htmlFor:"parentSameAsRoot",className:"text-sm font-medium text-muted-foreground whitespace-nowrap",children:"Parent = Root"})]}),!r&&D.jsxs("div",{className:"space-y-2",children:[D.jsx("label",{className:"text-sm font-medium text-muted-foreground whitespace-nowrap",children:"Parent Font Size (px)"}),D.jsx("input",{type:"number",value:i,onChange:O=>s(Number(O.target.value)),className:"w-full bg-background border border-input rounded-md px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary min-w-0"})]})]})]})]}),D.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:[D.jsxs("div",{className:"bg-card border border-border rounded-lg p-6 shadow-sm hover:border-primary/50 transition-colors overflow-hidden",children:[D.jsx("h3",{className:"font-semibold text-lg mb-4",children:"Pixels (px)"}),D.jsxs("div",{className:"flex items-end gap-2",children:[D.jsx("input",{type:"text",inputMode:"decimal",value:h,onChange:K,className:"flex-1 min-w-0 bg-background border border-input rounded-md px-4 py-3 text-xl font-mono font-bold focus:outline-none focus:ring-2 focus:ring-primary"}),D.jsx("span",{className:"pb-3 text-muted-foreground font-bold whitespace-nowrap",children:"px"})]})]}),D.jsxs("div",{className:"bg-card border border-border rounded-lg p-6 shadow-sm hover:border-primary/50 transition-colors overflow-hidden",children:[D.jsx("h3",{className:"font-semibold text-lg mb-4",children:"Root EM (rem)"}),D.jsxs("div",{className:"flex items-end gap-2",children:[D.jsx("input",{type:"text",inputMode:"decimal",value:f,onChange:ne,className:"flex-1 min-w-0 bg-background border border-input rounded-md px-4 py-3 text-xl font-mono focus:outline-none focus:ring-2 focus:ring-primary"}),D.jsx("span",{className:"pb-3 text-muted-foreground font-bold whitespace-nowrap",children:"rem"})]}),D.jsxs("p",{className:"text-xs text-muted-foreground mt-2 truncate",children:["Based on ",e,"px root size"]})]}),D.jsxs("div",{className:"bg-card border border-border rounded-lg p-6 shadow-sm hover:border-primary/50 transition-colors overflow-hidden",children:[D.jsx("h3",{className:"font-semibold text-lg mb-4",children:"Element EM (em)"}),D.jsxs("div",{className:"flex items-end gap-2",children:[D.jsx("input",{type:"text",inputMode:"decimal",value:C,onChange:Z,className:"flex-1 min-w-0 bg-background border border-input rounded-md px-4 py-3 text-xl font-mono focus:outline-none focus:ring-2 focus:ring-primary"}),D.jsx("span",{className:"pb-3 text-muted-foreground font-bold whitespace-nowrap",children:"em"})]}),D.jsxs("p",{className:"text-xs text-muted-foreground mt-2 truncate",children:["Relative to parent (",M,"px)"]})]}),D.jsxs("div",{className:"bg-card border border-border rounded-lg p-6 shadow-sm hover:border-primary/50 transition-colors overflow-hidden",children:[D.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[D.jsx(Ck,{className:"w-4 h-4 text-muted-foreground"}),D.jsx("h3",{className:"font-semibold text-lg",children:"Viewport Width (vw)"})]}),D.jsxs("div",{className:"flex items-end gap-2",children:[D.jsx("input",{type:"text",inputMode:"decimal",value:m,onChange:$,className:"flex-1 min-w-0 bg-background border border-input rounded-md px-4 py-3 text-xl font-mono focus:outline-none focus:ring-2 focus:ring-primary"}),D.jsx("span",{className:"pb-3 text-muted-foreground font-bold whitespace-nowrap",children:"vw"})]}),D.jsxs("p",{className:"text-xs text-muted-foreground mt-2 truncate",children:["Based on ",a,"px width"]})]}),D.jsxs("div",{className:"bg-card border border-border rounded-lg p-6 shadow-sm hover:border-primary/50 transition-colors overflow-hidden",children:[D.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[D.jsx(Sk,{className:"w-4 h-4 text-muted-foreground"}),D.jsx("h3",{className:"font-semibold text-lg",children:"Viewport Height (vh)"})]}),D.jsxs("div",{className:"flex items-end gap-2",children:[D.jsx("input",{type:"text",inputMode:"decimal",value:v,onChange:V,className:"flex-1 min-w-0 bg-background border border-input rounded-md px-4 py-3 text-xl font-mono focus:outline-none focus:ring-2 focus:ring-primary"}),D.jsx("span",{className:"pb-3 text-muted-foreground font-bold whitespace-nowrap",children:"vh"})]}),D.jsxs("p",{className:"text-xs text-muted-foreground mt-2 truncate",children:["Based on ",u,"px height"]})]}),D.jsxs("div",{className:"bg-card border border-border rounded-lg p-6 shadow-sm hover:border-primary/50 transition-colors overflow-hidden",children:[D.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[D.jsx(ZE,{className:"w-4 h-4 text-muted-foreground"}),D.jsx("h3",{className:"font-semibold text-lg",children:"Percentage (%)"})]}),D.jsxs("div",{className:"flex items-end gap-2",children:[D.jsx("input",{type:"text",inputMode:"decimal",value:k,onChange:W,className:"flex-1 min-w-0 bg-background border border-input rounded-md px-4 py-3 text-xl font-mono focus:outline-none focus:ring-2 focus:ring-primary"}),D.jsx("span",{className:"pb-3 text-muted-foreground font-bold whitespace-nowrap",children:"%"})]}),D.jsxs("p",{className:"text-xs text-muted-foreground mt-2 truncate",children:["Relative to container (",c,"px)"]})]}),D.jsxs("div",{className:"bg-card border border-border rounded-lg p-6 shadow-sm hover:border-primary/50 transition-colors overflow-hidden",children:[D.jsx("h3",{className:"font-semibold text-lg mb-4",children:"Inches (in)"}),D.jsxs("div",{className:"flex items-end gap-2",children:[D.jsx("input",{type:"text",inputMode:"decimal",value:E,onChange:z,className:"flex-1 min-w-0 bg-background border border-input rounded-md px-4 py-3 text-xl font-mono focus:outline-none focus:ring-2 focus:ring-primary"}),D.jsx("span",{className:"pb-3 text-muted-foreground font-bold whitespace-nowrap",children:"in"})]}),D.jsx("p",{className:"text-xs text-muted-foreground mt-2",children:"1in = 96px"})]}),D.jsxs("div",{className:"bg-card border border-border rounded-lg p-6 shadow-sm hover:border-primary/50 transition-colors overflow-hidden",children:[D.jsx("h3",{className:"font-semibold text-lg mb-4",children:"Centimeters (cm)"}),D.jsxs("div",{className:"flex items-end gap-2",children:[D.jsx("input",{type:"text",inputMode:"decimal",value:b,onChange:G,className:"flex-1 min-w-0 bg-background border border-input rounded-md px-4 py-3 text-xl font-mono focus:outline-none focus:ring-2 focus:ring-primary"}),D.jsx("span",{className:"pb-3 text-muted-foreground font-bold whitespace-nowrap",children:"cm"})]}),D.jsx("p",{className:"text-xs text-muted-foreground mt-2",children:"1in = 2.54cm"})]})]})]})}function sH(){const[e,t]=I.useState(""),[r,n]=I.useState(""),[i,s]=I.useState(""),[a,o]=I.useState("image/png"),[u,l]=I.useState(""),[c,p]=I.useState(0),h=async m=>{var v;const x=(v=m.target.files)==null?void 0:v[0];if(x){l(x.name),p(x.size),o(x.type);try{const T=await Lz(x);t(T);const k=$z(T);n(k),s(pD(k))}catch(T){console.error("Failed to process image",T)}}},d=m=>{const x=m.target.value;n(x),s(pD(x)),t(cD(x,a)),p(hD(x))},f=m=>{const x=m.target.value;s(x);const v=Oz(x);n(v),t(cD(v,a)),p(hD(v))},y=m=>{navigator.clipboard.writeText(m)},C=()=>{t(""),n(""),s(""),l(""),p(0)},g=m=>{if(m===0)return"0 Bytes";const x=1024,v=["Bytes","KB","MB"],T=Math.floor(Math.log(m)/Math.log(x));return parseFloat((m/Math.pow(x,T)).toFixed(2))+" "+v[T]};return D.jsxs("div",{className:"space-y-6 pb-20",children:[D.jsxs("div",{children:[D.jsx("h2",{className:"text-3xl font-bold tracking-tight",children:"Image Converter"}),D.jsx("p",{className:"text-muted-foreground",children:"Convert images to Base64/ByteCode and vice-versa."})]}),D.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[D.jsx("div",{className:"space-y-6",children:D.jsxs("div",{className:"bg-card border border-border rounded-lg p-6 overflow-hidden",children:[D.jsxs("div",{className:"flex items-center justify-between mb-4",children:[D.jsxs("h3",{className:"text-lg font-semibold flex items-center gap-2",children:[D.jsx(QE,{className:"w-5 h-5 text-primary"}),"Image Preview"]}),e&&D.jsx("button",{onClick:C,className:"p-2 text-destructive hover:bg-destructive/10 rounded-md transition-colors",title:"Clear",children:D.jsx(eC,{className:"w-5 h-5"})})]}),e?D.jsxs("div",{className:"space-y-4",children:[D.jsx("div",{className:"relative group rounded-lg overflow-hidden border border-border bg-muted/30",children:D.jsx("img",{src:e,alt:"Preview",className:"max-w-full h-auto mx-auto max-h-[400px] object-contain"})}),D.jsxs("div",{className:"flex flex-wrap gap-4 text-sm text-muted-foreground",children:[D.jsxs("div",{className:"px-3 py-1 bg-muted rounded-full",children:[D.jsx("span",{className:"font-medium text-foreground",children:"Name:"})," ",u]}),D.jsxs("div",{className:"px-3 py-1 bg-muted rounded-full",children:[D.jsx("span",{className:"font-medium text-foreground",children:"Type:"})," ",a]}),D.jsxs("div",{className:"px-3 py-1 bg-muted rounded-full",children:[D.jsx("span",{className:"font-medium text-foreground",children:"Size:"})," ",g(c)]})]})]}):D.jsxs("label",{className:"flex flex-col items-center justify-center w-full h-64 border-2 border-dashed border-muted-foreground/25 rounded-lg cursor-pointer hover:border-primary/50 hover:bg-muted/50 transition-all",children:[D.jsxs("div",{className:"flex flex-col items-center justify-center pt-5 pb-6",children:[D.jsx(Pk,{className:"w-12 h-12 text-muted-foreground mb-3"}),D.jsxs("p",{className:"mb-2 text-sm text-foreground",children:[D.jsx("span",{className:"font-semibold",children:"Click to upload"})," or drag and drop"]}),D.jsx("p",{className:"text-xs text-muted-foreground",children:"PNG, JPG, SVG or WEBP (Max 5MB)"})]}),D.jsx("input",{type:"file",className:"hidden",accept:"image/*",onChange:h})]})]})}),D.jsxs("div",{className:"space-y-6",children:[D.jsxs("div",{className:"bg-card border border-border rounded-lg p-6 overflow-hidden",children:[D.jsxs("div",{className:"flex items-center justify-between mb-4",children:[D.jsxs("h3",{className:"text-lg font-semibold flex items-center gap-2",children:[D.jsx(KE,{className:"w-5 h-5 text-primary"}),"Base64 String"]}),D.jsx("button",{onClick:()=>y(r),className:"p-2 hover:bg-muted rounded-md transition-colors",title:"Copy to clipboard",disabled:!r,children:D.jsx(rf,{className:"w-5 h-5"})})]}),D.jsx("textarea",{value:r,onChange:d,placeholder:"Base64 encoded image string will appear here...",className:"w-full h-40 p-4 bg-muted/50 border border-border rounded-md font-mono text-xs resize-none focus:outline-none focus:ring-2 focus:ring-primary/50"})]}),D.jsxs("div",{className:"bg-card border border-border rounded-lg p-6 overflow-hidden",children:[D.jsxs("div",{className:"flex items-center justify-between mb-4",children:[D.jsxs("h3",{className:"text-lg font-semibold flex items-center gap-2",children:[D.jsx(XE,{className:"w-5 h-5 text-primary"}),"ByteCode (Decimal)"]}),D.jsx("button",{onClick:()=>y(i),className:"p-2 hover:bg-muted rounded-md transition-colors",title:"Copy to clipboard",disabled:!i,children:D.jsx(rf,{className:"w-5 h-5"})})]}),D.jsx("textarea",{value:i,onChange:f,placeholder:"Space-separated decimal byte values will appear here...",className:"w-full h-40 p-4 bg-muted/50 border border-border rounded-md font-mono text-xs resize-none focus:outline-none focus:ring-2 focus:ring-primary/50"})]})]})]})]})}const aH={json:`{ "users": [ { "id": 1, @@ -244,4 +244,4 @@ License: MIT `,csv:`id,name,email,active 1,John Doe,john@example.com,true -2,Jane Smith,jane@example.com,false`};function gq(){const[e,t]=_.useState("json"),[r,n]=_.useState("xml"),[i,s]=_.useState(""),[a,o]=_.useState(""),[u,l]=_.useState(""),[c,p]=_.useState(!1),h={json:Bx,xml:Nx,csv:eP},d={json:"JSON",xml:"XML",csv:"CSV"};_.useEffect(()=>{i.trim()?f():(o(""),l(""))},[i,e,r]);const f=()=>{if(!i.trim()){o(""),l("");return}p(!0),l("");try{let P;e==="json"&&r==="xml"?P=GS(i):e==="json"&&r==="csv"?P=YS(i):e==="xml"&&r==="json"?P=QS(i):e==="xml"&&r==="csv"?P=uq(i):e==="csv"&&r==="json"?P=ZS(i):e==="csv"&&r==="xml"?P=lq(i):P={success:!0,data:i},P.success&&P.data?(o(P.data),l("")):(o(""),l(P.error||"Conversion failed"))}catch(P){o(""),l(P instanceof Error?P.message:"An unexpected error occurred")}finally{p(!1)}},y=P=>{navigator.clipboard.writeText(P)},x=()=>{s(""),o(""),l("")},g=()=>{t(r),n(e),s(a)},m=()=>{s(yq[e])},D=()=>{if(!a)return;const P=new Blob([a],{type:"text/plain"}),N=URL.createObjectURL(P),E=document.createElement("a");E.href=N,E.download=`converted.${r}`,document.body.appendChild(E),E.click(),document.body.removeChild(E),URL.revokeObjectURL(N)},v=h[e],b=h[r];return C.jsxs("div",{className:"space-y-6 pb-20",children:[C.jsxs("div",{children:[C.jsx("h2",{className:"text-3xl font-bold tracking-tight",children:"Data Format Converter"}),C.jsx("p",{className:"text-muted-foreground",children:"Convert between JSON, XML, and CSV formats seamlessly."})]}),C.jsx("div",{className:"bg-card border border-border rounded-lg p-6",children:C.jsxs("div",{className:"flex items-center justify-center gap-4 flex-wrap",children:[C.jsxs("div",{className:"flex-1 min-w-[200px]",children:[C.jsx("label",{className:"block text-sm font-medium mb-2",children:"Source Format"}),C.jsxs("select",{value:e,onChange:P=>t(P.target.value),className:"w-full px-4 py-2 bg-muted border border-border rounded-md focus:outline-none focus:ring-2 focus:ring-primary/50",children:[C.jsx("option",{value:"json",children:"JSON"}),C.jsx("option",{value:"xml",children:"XML"}),C.jsx("option",{value:"csv",children:"CSV"})]})]}),C.jsx("button",{onClick:g,className:"mt-6 p-3 hover:bg-muted rounded-full transition-colors",title:"Swap formats",children:C.jsx(wx,{className:"w-5 h-5"})}),C.jsxs("div",{className:"flex-1 min-w-[200px]",children:[C.jsx("label",{className:"block text-sm font-medium mb-2",children:"Target Format"}),C.jsxs("select",{value:r,onChange:P=>n(P.target.value),className:"w-full px-4 py-2 bg-muted border border-border rounded-md focus:outline-none focus:ring-2 focus:ring-primary/50",children:[C.jsx("option",{value:"json",children:"JSON"}),C.jsx("option",{value:"xml",children:"XML"}),C.jsx("option",{value:"csv",children:"CSV"})]})]})]})}),C.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[C.jsxs("div",{className:"bg-card border border-border rounded-lg p-6 overflow-hidden",children:[C.jsxs("div",{className:"flex items-center justify-between mb-4",children:[C.jsxs("h3",{className:"text-lg font-semibold flex items-center gap-2",children:[C.jsx(v,{className:"w-5 h-5 text-primary"}),"Input (",d[e],")"]}),C.jsxs("div",{className:"flex gap-2",children:[C.jsx("button",{onClick:m,className:"px-3 py-1 text-sm bg-primary/10 text-primary hover:bg-primary/20 rounded-md transition-colors",title:"Load sample data",children:"Sample"}),C.jsx("button",{onClick:x,className:"p-2 text-destructive hover:bg-destructive/10 rounded-md transition-colors",title:"Clear all",disabled:!i,children:C.jsx($x,{className:"w-5 h-5"})})]})]}),C.jsx("textarea",{value:i,onChange:P=>s(P.target.value),placeholder:`Paste your ${d[e]} data here...`,className:"w-full h-[500px] p-4 bg-muted/50 border border-border rounded-md font-mono text-sm resize-none focus:outline-none focus:ring-2 focus:ring-primary/50"})]}),C.jsxs("div",{className:"bg-card border border-border rounded-lg p-6 overflow-hidden",children:[C.jsxs("div",{className:"flex items-center justify-between mb-4",children:[C.jsxs("h3",{className:"text-lg font-semibold flex items-center gap-2",children:[C.jsx(b,{className:"w-5 h-5 text-primary"}),"Output (",d[r],")",c&&C.jsx(G3,{className:"w-4 h-4 animate-spin text-muted-foreground"})]}),C.jsxs("div",{className:"flex gap-2",children:[C.jsx("button",{onClick:D,className:"p-2 hover:bg-muted rounded-md transition-colors",title:"Download output",disabled:!a,children:C.jsx(z3,{className:"w-5 h-5"})}),C.jsx("button",{onClick:()=>y(a),className:"p-2 hover:bg-muted rounded-md transition-colors",title:"Copy to clipboard",disabled:!a,children:C.jsx(Jd,{className:"w-5 h-5"})})]})]}),u?C.jsx("div",{className:"w-full h-[500px] p-4 bg-destructive/10 border border-destructive/20 rounded-md overflow-auto",children:C.jsxs("div",{className:"flex items-start gap-2 text-destructive",children:[C.jsx("span",{className:"font-semibold",children:"Error:"}),C.jsx("span",{className:"flex-1",children:u})]})}):C.jsx("textarea",{value:a,readOnly:!0,placeholder:`Converted ${d[r]} will appear here...`,className:"w-full h-[500px] p-4 bg-muted/50 border border-border rounded-md font-mono text-sm resize-none focus:outline-none focus:ring-2 focus:ring-primary/50"})]})]}),C.jsxs("div",{className:"bg-card border border-border rounded-lg p-6",children:[C.jsx("h3",{className:"text-lg font-semibold mb-3",children:"Conversion Tips"}),C.jsxs("ul",{className:"space-y-2 text-sm text-muted-foreground",children:[C.jsxs("li",{className:"flex items-start gap-2",children:[C.jsx("span",{className:"text-primary mt-1",children:"•"}),C.jsxs("span",{children:[C.jsx("strong",{children:"JSON to CSV:"})," Works best with arrays of objects or single objects. Nested objects will be flattened."]})]}),C.jsxs("li",{className:"flex items-start gap-2",children:[C.jsx("span",{className:"text-primary mt-1",children:"•"}),C.jsxs("span",{children:[C.jsx("strong",{children:"CSV to JSON:"})," First row is treated as headers. Numbers are automatically detected and typed."]})]}),C.jsxs("li",{className:"flex items-start gap-2",children:[C.jsx("span",{className:"text-primary mt-1",children:"•"}),C.jsxs("span",{children:[C.jsx("strong",{children:"XML conversions:"})," XML attributes are merged with element content. Arrays are detected automatically."]})]}),C.jsxs("li",{className:"flex items-start gap-2",children:[C.jsx("span",{className:"text-primary mt-1",children:"•"}),C.jsxs("span",{children:[C.jsx("strong",{children:"Auto-conversion:"})," Output updates automatically as you type or change formats."]})]})]})]})]})}function Dq(){const[e,t]=_.useState(""),r=_.useMemo(()=>cq(e),[e]),n=[{label:"Characters (with spaces)",value:r.totalCharsWithSpaces,icon:C.jsx(tP,{className:"w-5 h-5 text-blue-500"}),description:"Total character count"},{label:"Characters (without spaces)",value:r.totalCharsWithoutSpaces,icon:C.jsx(Wd,{className:"w-5 h-5 text-indigo-500"}),description:"Excluding whitespace"},{label:"Blank Spaces",value:r.blankSpaces,icon:C.jsx(X3,{className:"w-5 h-5 text-cyan-500"}),description:"Spaces, tabs, newlines"},{label:"Words",value:r.words,icon:C.jsx(q3,{className:"w-5 h-5 text-emerald-500"}),description:"Individual words"},{label:"Sentences",value:r.sentences,icon:C.jsx(K3,{className:"w-5 h-5 text-amber-500"}),description:"Ending with . ! or ?"},{label:"Paragraphs",value:r.paragraphs,icon:C.jsx(Wd,{className:"w-5 h-5 text-purple-500"}),description:"Separated by empty lines"},{label:"Numbers",value:r.numbers,icon:C.jsx(W3,{className:"w-5 h-5 text-rose-500"}),description:"Count of digits (0-9)"}];return C.jsxs("div",{className:"flex flex-col h-full gap-6 animate-in fade-in duration-500",children:[C.jsx("div",{className:"flex items-center justify-between gap-4 py-2",children:C.jsxs("div",{children:[C.jsx("h2",{className:"text-2xl font-bold bg-clip-text text-transparent bg-gradient-to-r from-primary to-primary/60",children:"Passage Text Counter"}),C.jsx("p",{className:"text-sm text-muted-foreground",children:"Analyze your text for various metrics in real-time."})]})}),C.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6 flex-1 min-h-0",children:[C.jsxs("div",{className:"lg:col-span-2 flex flex-col gap-2 h-full",children:[C.jsx("label",{className:"text-sm font-medium text-muted-foreground ml-1",children:"Input Text"}),C.jsx("textarea",{className:"flex-1 w-full p-4 rounded-xl border border-input bg-card/50 backdrop-blur-sm text-card-foreground shadow-sm focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary transition-all resize-none font-mono text-sm",placeholder:"Paste or type your text here to analyze...",value:e,onChange:i=>t(i.target.value)})]}),C.jsxs("div",{className:"flex flex-col gap-4 overflow-y-auto pr-2 custom-scrollbar",children:[C.jsx("label",{className:"text-sm font-medium text-muted-foreground ml-1",children:"Analysis Results"}),C.jsx("div",{className:"grid grid-cols-1 gap-3",children:n.map((i,s)=>C.jsxs("div",{className:"group p-4 rounded-xl border border-input bg-card hover:bg-accent/50 hover:border-primary/30 transition-all duration-300 shadow-sm",children:[C.jsxs("div",{className:"flex items-start justify-between",children:[C.jsxs("div",{className:"flex flex-col gap-1",children:[C.jsx("span",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wider",children:i.label}),C.jsx("span",{className:"text-2xl font-bold font-mono group-hover:text-primary transition-colors",children:i.value.toLocaleString()})]}),C.jsx("div",{className:"p-2 rounded-lg bg-background border border-input group-hover:scale-110 transition-transform",children:i.icon})]}),C.jsx("p",{className:"mt-2 text-xs text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity",children:i.description})]},s))})]})]})]})}function Eq(){return C.jsx(B3,{children:C.jsx(S3,{children:C.jsxs(Kr,{path:"/",element:C.jsx(iP,{}),children:[C.jsx(Kr,{index:!0,element:C.jsx(v3,{to:"/formatter",replace:!0})}),C.jsx(Kr,{path:"formatter",element:C.jsx(pq,{})}),C.jsx(Kr,{path:"diff",element:C.jsx(hq,{})}),C.jsx(Kr,{path:"parser",element:C.jsx(dq,{})}),C.jsx(Kr,{path:"unit-conversion",element:C.jsx(fq,{})}),C.jsx(Kr,{path:"image-converter",element:C.jsx(mq,{})}),C.jsx(Kr,{path:"data-converter",element:C.jsx(gq,{})}),C.jsx(Kr,{path:"text-analyzer",element:C.jsx(Dq,{})})]})})})}Gh.createRoot(document.getElementById("root")).render(C.jsx(ci.StrictMode,{children:C.jsx(Eq,{})})); +2,Jane Smith,jane@example.com,false`};function oH(){const[e,t]=I.useState("json"),[r,n]=I.useState("xml"),[i,s]=I.useState(""),[a,o]=I.useState(""),[u,l]=I.useState(""),[c,p]=I.useState(!1),h={json:GE,xml:KE,csv:Fk},d={json:"JSON",xml:"XML",csv:"CSV"};I.useEffect(()=>{i.trim()?f():(o(""),l(""))},[i,e,r]);const f=()=>{if(!i.trim()){o(""),l("");return}p(!0),l("");try{let k;e==="json"&&r==="xml"?k=fS(i):e==="json"&&r==="csv"?k=yS(i):e==="xml"&&r==="json"?k=mS(i):e==="xml"&&r==="csv"?k=$q(i):e==="csv"&&r==="json"?k=gS(i):e==="csv"&&r==="xml"?k=Oq(i):k={success:!0,data:i},k.success&&k.data?(o(k.data),l("")):(o(""),l(k.error||"Conversion failed"))}catch(k){o(""),l(k instanceof Error?k.message:"An unexpected error occurred")}finally{p(!1)}},y=k=>{navigator.clipboard.writeText(k)},C=()=>{s(""),o(""),l("")},g=()=>{t(r),n(e),s(a)},m=()=>{s(aH[e])},x=()=>{if(!a)return;const k=new Blob([a],{type:"text/plain"}),N=URL.createObjectURL(k),E=document.createElement("a");E.href=N,E.download=`converted.${r}`,document.body.appendChild(E),E.click(),document.body.removeChild(E),URL.revokeObjectURL(N)},v=h[e],T=h[r];return D.jsxs("div",{className:"space-y-6 pb-20",children:[D.jsxs("div",{children:[D.jsx("h2",{className:"text-3xl font-bold tracking-tight",children:"Data Format Converter"}),D.jsx("p",{className:"text-muted-foreground",children:"Convert between JSON, XML, and CSV formats seamlessly."})]}),D.jsx("div",{className:"bg-card border border-border rounded-lg p-6",children:D.jsxs("div",{className:"flex items-center justify-center gap-4 flex-wrap",children:[D.jsxs("div",{className:"flex-1 min-w-[200px]",children:[D.jsx("label",{className:"block text-sm font-medium mb-2",children:"Source Format"}),D.jsxs("select",{value:e,onChange:k=>t(k.target.value),className:"w-full px-4 py-2 bg-muted border border-border rounded-md focus:outline-none focus:ring-2 focus:ring-primary/50",children:[D.jsx("option",{value:"json",children:"JSON"}),D.jsx("option",{value:"xml",children:"XML"}),D.jsx("option",{value:"csv",children:"CSV"})]})]}),D.jsx("button",{onClick:g,className:"mt-6 p-3 hover:bg-muted rounded-full transition-colors",title:"Swap formats",children:D.jsx(JE,{className:"w-5 h-5"})}),D.jsxs("div",{className:"flex-1 min-w-[200px]",children:[D.jsx("label",{className:"block text-sm font-medium mb-2",children:"Target Format"}),D.jsxs("select",{value:r,onChange:k=>n(k.target.value),className:"w-full px-4 py-2 bg-muted border border-border rounded-md focus:outline-none focus:ring-2 focus:ring-primary/50",children:[D.jsx("option",{value:"json",children:"JSON"}),D.jsx("option",{value:"xml",children:"XML"}),D.jsx("option",{value:"csv",children:"CSV"})]})]})]})}),D.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[D.jsxs("div",{className:"bg-card border border-border rounded-lg p-6 overflow-hidden",children:[D.jsxs("div",{className:"flex items-center justify-between mb-4",children:[D.jsxs("h3",{className:"text-lg font-semibold flex items-center gap-2",children:[D.jsx(v,{className:"w-5 h-5 text-primary"}),"Input (",d[e],")"]}),D.jsxs("div",{className:"flex gap-2",children:[D.jsx("button",{onClick:m,className:"px-3 py-1 text-sm bg-primary/10 text-primary hover:bg-primary/20 rounded-md transition-colors",title:"Load sample data",children:"Sample"}),D.jsx("button",{onClick:C,className:"p-2 text-destructive hover:bg-destructive/10 rounded-md transition-colors",title:"Clear all",disabled:!i,children:D.jsx(eC,{className:"w-5 h-5"})})]})]}),D.jsx("textarea",{value:i,onChange:k=>s(k.target.value),placeholder:`Paste your ${d[e]} data here...`,className:"w-full h-[500px] p-4 bg-muted/50 border border-border rounded-md font-mono text-sm resize-none focus:outline-none focus:ring-2 focus:ring-primary/50"})]}),D.jsxs("div",{className:"bg-card border border-border rounded-lg p-6 overflow-hidden",children:[D.jsxs("div",{className:"flex items-center justify-between mb-4",children:[D.jsxs("h3",{className:"text-lg font-semibold flex items-center gap-2",children:[D.jsx(T,{className:"w-5 h-5 text-primary"}),"Output (",d[r],")",c&&D.jsx(nf,{className:"w-4 h-4 animate-spin text-muted-foreground"})]}),D.jsxs("div",{className:"flex gap-2",children:[D.jsx("button",{onClick:x,className:"p-2 hover:bg-muted rounded-md transition-colors",title:"Download output",disabled:!a,children:D.jsx(fk,{className:"w-5 h-5"})}),D.jsx("button",{onClick:()=>y(a),className:"p-2 hover:bg-muted rounded-md transition-colors",title:"Copy to clipboard",disabled:!a,children:D.jsx(rf,{className:"w-5 h-5"})})]})]}),u?D.jsx("div",{className:"w-full h-[500px] p-4 bg-destructive/10 border border-destructive/20 rounded-md overflow-auto",children:D.jsxs("div",{className:"flex items-start gap-2 text-destructive",children:[D.jsx("span",{className:"font-semibold",children:"Error:"}),D.jsx("span",{className:"flex-1",children:u})]})}):D.jsx("textarea",{value:a,readOnly:!0,placeholder:`Converted ${d[r]} will appear here...`,className:"w-full h-[500px] p-4 bg-muted/50 border border-border rounded-md font-mono text-sm resize-none focus:outline-none focus:ring-2 focus:ring-primary/50"})]})]}),D.jsxs("div",{className:"bg-card border border-border rounded-lg p-6",children:[D.jsx("h3",{className:"text-lg font-semibold mb-3",children:"Conversion Tips"}),D.jsxs("ul",{className:"space-y-2 text-sm text-muted-foreground",children:[D.jsxs("li",{className:"flex items-start gap-2",children:[D.jsx("span",{className:"text-primary mt-1",children:"•"}),D.jsxs("span",{children:[D.jsx("strong",{children:"JSON to CSV:"})," Works best with arrays of objects or single objects. Nested objects will be flattened."]})]}),D.jsxs("li",{className:"flex items-start gap-2",children:[D.jsx("span",{className:"text-primary mt-1",children:"•"}),D.jsxs("span",{children:[D.jsx("strong",{children:"CSV to JSON:"})," First row is treated as headers. Numbers are automatically detected and typed."]})]}),D.jsxs("li",{className:"flex items-start gap-2",children:[D.jsx("span",{className:"text-primary mt-1",children:"•"}),D.jsxs("span",{children:[D.jsx("strong",{children:"XML conversions:"})," XML attributes are merged with element content. Arrays are detected automatically."]})]}),D.jsxs("li",{className:"flex items-start gap-2",children:[D.jsx("span",{className:"text-primary mt-1",children:"•"}),D.jsxs("span",{children:[D.jsx("strong",{children:"Auto-conversion:"})," Output updates automatically as you type or change formats."]})]})]})]})]})}function uH(){const[e,t]=I.useState(""),r=I.useMemo(()=>Mq(e),[e]),n=[{label:"Characters (with spaces)",value:r.totalCharsWithSpaces,icon:D.jsx(wk,{className:"w-5 h-5 text-blue-500"}),description:"Total character count"},{label:"Characters (without spaces)",value:r.totalCharsWithoutSpaces,icon:D.jsx(tf,{className:"w-5 h-5 text-indigo-500"}),description:"Excluding whitespace"},{label:"Blank Spaces",value:r.blankSpaces,icon:D.jsx(vk,{className:"w-5 h-5 text-cyan-500"}),description:"Spaces, tabs, newlines"},{label:"Words",value:r.words,icon:D.jsx(mk,{className:"w-5 h-5 text-emerald-500"}),description:"Individual words"},{label:"Sentences",value:r.sentences,icon:D.jsx(Ak,{className:"w-5 h-5 text-amber-500"}),description:"Ending with . ! or ?"},{label:"Paragraphs",value:r.paragraphs,icon:D.jsx(tf,{className:"w-5 h-5 text-purple-500"}),description:"Separated by empty lines"},{label:"Numbers",value:r.numbers,icon:D.jsx(gk,{className:"w-5 h-5 text-rose-500"}),description:"Count of digits (0-9)"},{label:"Hexadecimal",value:r.hexCount,icon:D.jsx(Dk,{className:"w-5 h-5 text-orange-500"}),description:"e.g., 0x1A or #FFFFFF"},{label:"Binary",value:r.binaryCount,icon:D.jsx(XE,{className:"w-5 h-5 text-lime-500"}),description:"e.g., 0b1010 or 1101"}];return D.jsxs("div",{className:"flex flex-col h-full gap-6 animate-in fade-in duration-500",children:[D.jsx("div",{className:"flex items-center justify-between gap-4 py-2",children:D.jsxs("div",{children:[D.jsx("h2",{className:"text-2xl font-bold bg-clip-text text-transparent bg-gradient-to-r from-primary to-primary/60",children:"Passage Text Counter"}),D.jsx("p",{className:"text-sm text-muted-foreground",children:"Analyze your text for various metrics in real-time."})]})}),D.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6 flex-1 min-h-0",children:[D.jsxs("div",{className:"lg:col-span-2 flex flex-col gap-2 h-full",children:[D.jsx("label",{className:"text-sm font-medium text-muted-foreground ml-1",children:"Input Text"}),D.jsx("textarea",{className:"flex-1 w-full p-4 rounded-xl border border-input bg-card/50 backdrop-blur-sm text-card-foreground shadow-sm focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary transition-all resize-none font-mono text-sm",placeholder:"Paste or type your text here to analyze...",value:e,onChange:i=>t(i.target.value)})]}),D.jsxs("div",{className:"flex flex-col gap-4 overflow-y-auto pr-2 custom-scrollbar",children:[D.jsx("label",{className:"text-sm font-medium text-muted-foreground ml-1",children:"Analysis Results"}),D.jsx("div",{className:"grid grid-cols-1 gap-3",children:n.map((i,s)=>D.jsxs("div",{className:"group p-4 rounded-xl border border-input bg-card hover:bg-accent/50 hover:border-primary/30 transition-all duration-300 shadow-sm",children:[D.jsxs("div",{className:"flex items-start justify-between",children:[D.jsxs("div",{className:"flex flex-col gap-1",children:[D.jsx("span",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wider",children:i.label}),D.jsx("span",{className:"text-2xl font-bold font-mono group-hover:text-primary transition-colors",children:i.value.toLocaleString()})]}),D.jsx("div",{className:"p-2 rounded-lg bg-background border border-input group-hover:scale-110 transition-transform",children:i.icon})]}),D.jsx("p",{className:"mt-2 text-xs text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity",children:i.description})]},s))})]})]})]})}function lH(){const[e,t]=I.useState(""),[r,n]=I.useState(10),[i,s]=I.useState(""),[a,o]=I.useState(!1),[u,l]=I.useState(!1),[c,p]=I.useState(""),[h,d]=I.useState(""),[f,y]=I.useState(null),[C,g]=I.useState(!1),m=async()=>{if(e){o(!0);try{const T=await Zq(e,r);s(T)}catch(T){console.error("Hashing error:",T),s("Error generating hash")}finally{o(!1)}}},x=async()=>{if(!(!c||!h)){g(!0);try{const T=await eH(c,h);y(T)}catch(T){console.error("Verification error:",T),y(!1)}finally{g(!1)}}},v=()=>{i&&(navigator.clipboard.writeText(i),l(!0),setTimeout(()=>l(!1),2e3))};return D.jsxs("div",{className:"flex flex-col gap-8",children:[D.jsxs("div",{className:"flex items-center gap-3",children:[D.jsx(Yl,{className:"w-8 h-8 text-primary"}),D.jsx("h2",{className:"text-3xl font-bold",children:"BCrypt Tool"})]}),D.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8",children:[D.jsxs("div",{className:"flex flex-col gap-4 p-6 bg-card border border-border rounded-lg shadow-sm",children:[D.jsxs("div",{className:"flex items-center gap-2 mb-2 text-lg font-semibold border-b border-border pb-2",children:[D.jsx(xk,{className:"w-5 h-5 text-primary"}),D.jsx("h3",{children:"Generate Hash"})]}),D.jsxs("div",{className:"flex flex-col gap-2",children:[D.jsx("label",{className:"text-sm font-medium text-muted-foreground",children:"Plain Text Password"}),D.jsx("input",{type:"text",value:e,onChange:T=>t(T.target.value),placeholder:"Enter password to hash...",className:"w-full px-4 py-2 bg-background border border-input rounded-md focus:outline-none focus:ring-2 focus:ring-primary/50"})]}),D.jsxs("div",{className:"flex flex-col gap-2",children:[D.jsxs("label",{className:"text-sm font-medium text-muted-foreground",children:["Salt Rounds (",r,")"]}),D.jsx("input",{type:"range",min:"4",max:"15",value:r,onChange:T=>n(parseInt(T.target.value)),className:"w-full h-2 bg-secondary rounded-lg appearance-none cursor-pointer accent-primary"}),D.jsxs("div",{className:"flex justify-between text-xs text-muted-foreground px-1",children:[D.jsx("span",{children:"Faster (4)"}),D.jsx("span",{children:"Slower (15)"})]})]}),D.jsxs("button",{onClick:m,disabled:!e||a,className:"mt-2 inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 bg-primary text-primary-foreground hover:bg-primary/90 h-10 px-4 py-2",children:[a?D.jsx(nf,{className:"w-4 h-4 animate-spin"}):D.jsx(Ek,{className:"w-4 h-4"}),a?"Hashing...":"Generate Hash"]}),i&&D.jsxs("div",{className:"mt-4 flex flex-col gap-2 animate-in fade-in slide-in-from-top-2 duration-300",children:[D.jsxs("div",{className:"flex items-center justify-between",children:[D.jsx("label",{className:"text-sm font-medium text-muted-foreground",children:"Resulting Hash"}),D.jsxs("button",{onClick:v,className:"inline-flex items-center gap-1 text-xs text-primary hover:underline",children:[u?D.jsx(zo,{className:"w-3 h-3"}):D.jsx(Jm,{className:"w-3 h-3"}),u?"Copied":"Copy"]})]}),D.jsx("div",{className:"p-3 bg-muted rounded-md font-mono text-xs break-all border border-border select-all",children:i})]})]}),D.jsxs("div",{className:"flex flex-col gap-4 p-6 bg-card border border-border rounded-lg shadow-sm",children:[D.jsxs("div",{className:"flex items-center gap-2 mb-2 text-lg font-semibold border-b border-border pb-2",children:[D.jsx(kk,{className:"w-5 h-5 text-primary"}),D.jsx("h3",{children:"Verify Password"})]}),D.jsxs("div",{className:"flex flex-col gap-2",children:[D.jsx("label",{className:"text-sm font-medium text-muted-foreground",children:"Password to Verify"}),D.jsx("input",{type:"text",value:c,onChange:T=>p(T.target.value),placeholder:"Enter plain text password...",className:"w-full px-4 py-2 bg-background border border-input rounded-md focus:outline-none focus:ring-2 focus:ring-primary/50"})]}),D.jsxs("div",{className:"flex flex-col gap-2",children:[D.jsx("label",{className:"text-sm font-medium text-muted-foreground",children:"Hash to Compare Against"}),D.jsx("textarea",{value:h,onChange:T=>d(T.target.value),placeholder:"Paste BCrypt hash here...",rows:3,className:"w-full px-4 py-2 bg-background border border-input rounded-md focus:outline-none focus:ring-2 focus:ring-primary/50 font-mono text-sm resize-none"})]}),D.jsxs("button",{onClick:x,disabled:!c||!h||C,className:"mt-2 inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 bg-secondary text-secondary-foreground hover:bg-secondary/80 h-10 px-4 py-2",children:[C?D.jsx(nf,{className:"w-4 h-4 animate-spin"}):D.jsx(zo,{className:"w-4 h-4"}),C?"Verifying...":"Verify Match"]}),f!==null&&D.jsxs("div",{className:`mt-4 p-4 rounded-md border flex items-center gap-3 animate-in fade-in zoom-in-95 duration-300 ${f?"bg-green-500/10 border-green-500/50 text-green-700 dark:text-green-400":"bg-red-500/10 border-red-500/50 text-red-700 dark:text-red-400"}`,children:[f?D.jsx(zo,{className:"w-5 h-5"}):D.jsx(Yl,{className:"w-5 h-5"}),D.jsx("span",{className:"font-semibold",children:f?"Passwords Match!":"Passwords do NOT match."})]})]})]}),D.jsxs("div",{className:"p-6 bg-accent/30 rounded-lg border border-border",children:[D.jsxs("h4",{className:"font-semibold mb-2 flex items-center gap-2 text-muted-foreground",children:[D.jsx(Yl,{className:"w-4 h-4"}),"Security Note"]}),D.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:"BCrypt is a password hashing function designed by Niels Provos and David Mazières, based on the Blowfish cipher. It incorporates a salt to protect against rainbow table attacks and is an adaptive function: over time, the iteration count can be increased to make it slower, so it remains resistant to brute-force search attacks even with increasing computing power."})]})]})}function cH(){return D.jsx(ik,{children:D.jsx(Q3,{children:D.jsxs(Nr,{path:"/",element:D.jsx(Bk,{}),children:[D.jsx(Nr,{index:!0,element:D.jsx(X3,{to:"/formatter",replace:!0})}),D.jsx(Nr,{path:"formatter",element:D.jsx(tH,{})}),D.jsx(Nr,{path:"diff",element:D.jsx(rH,{})}),D.jsx(Nr,{path:"parser",element:D.jsx(nH,{})}),D.jsx(Nr,{path:"unit-conversion",element:D.jsx(iH,{})}),D.jsx(Nr,{path:"image-converter",element:D.jsx(sH,{})}),D.jsx(Nr,{path:"data-converter",element:D.jsx(oH,{})}),D.jsx(Nr,{path:"text-analyzer",element:D.jsx(uH,{})}),D.jsx(Nr,{path:"bcrypt",element:D.jsx(lH,{})})]})})})}sd.createRoot(document.getElementById("root")).render(D.jsx(hi.StrictMode,{children:D.jsx(cH,{})})); diff --git a/apps/web/dist/assets/index-e7cfa360.css b/apps/web/dist/assets/index-e7cfa360.css new file mode 100644 index 0000000..2a23b23 --- /dev/null +++ b/apps/web/dist/assets/index-e7cfa360.css @@ -0,0 +1 @@ +*,: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:#e5e7eb}: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:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";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:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,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}:root{--background: 222.2 84% 4.9%;--foreground: 210 40% 98%;--card: 222.2 84% 4.9%;--card-foreground: 210 40% 98%;--popover: 222.2 84% 4.9%;--popover-foreground: 210 40% 98%;--primary: 210 40% 98%;--primary-foreground: 222.2 47.4% 11.2%;--secondary: 217.2 32.6% 17.5%;--secondary-foreground: 210 40% 98%;--muted: 217.2 32.6% 17.5%;--muted-foreground: 215 20.2% 65.1%;--accent: 217.2 32.6% 17.5%;--accent-foreground: 210 40% 98%;--destructive: 0 62.8% 30.6%;--destructive-foreground: 210 40% 98%;--border: 217.2 32.6% 17.5%;--input: 217.2 32.6% 17.5%;--ring: 212.7 26.8% 83.9%;--radius: .5rem}body{background-color:hsl(var(--background));color:hsl(var(--foreground));-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.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}}.relative{position:relative}.mx-auto{margin-left:auto;margin-right:auto}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.ml-1{margin-left:.25rem}.ml-auto{margin-left:auto}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.block{display:block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-10{height:2.5rem}.h-12{height:3rem}.h-2{height:.5rem}.h-3{height:.75rem}.h-4{height:1rem}.h-40{height:10rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-64{height:16rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\[40\%\]{height:40%}.h-\[500px\]{height:500px}.h-auto{height:auto}.h-full{height:100%}.h-screen{height:100vh}.max-h-\[400px\]{max-height:400px}.min-h-0{min-height:0px}.w-12{width:3rem}.w-3{width:.75rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-64{width:16rem}.w-8{width:2rem}.w-full{width:100%}.min-w-0{min-width:0px}.min-w-\[200px\]{min-width:200px}.max-w-7xl{max-width:80rem}.max-w-full{max-width:100%}.flex-1{flex:1 1 0%}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.select-all{-webkit-user-select:all;-moz-user-select:all;user-select:all}.resize-none{resize:none}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.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}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-r{border-right-width:1px}.border-dashed{border-style:dashed}.border-border{border-color:hsl(var(--border))}.border-destructive{border-color:hsl(var(--destructive))}.border-destructive\/20{border-color:hsl(var(--destructive) / .2)}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.border-green-500\/50{border-color:#22c55e80}.border-input{border-color:hsl(var(--input))}.border-muted-foreground\/25{border-color:hsl(var(--muted-foreground) / .25)}.border-red-500\/50{border-color:#ef444480}.bg-accent\/30{background-color:hsl(var(--accent) / .3)}.bg-background{background-color:hsl(var(--background))}.bg-background\/50{background-color:hsl(var(--background) / .5)}.bg-card{background-color:hsl(var(--card))}.bg-card\/50{background-color:hsl(var(--card) / .5)}.bg-destructive\/10{background-color:hsl(var(--destructive) / .1)}.bg-green-500\/10{background-color:#22c55e1a}.bg-green-900\/30{background-color:#14532d4d}.bg-muted{background-color:hsl(var(--muted))}.bg-muted\/30{background-color:hsl(var(--muted) / .3)}.bg-muted\/50{background-color:hsl(var(--muted) / .5)}.bg-primary{background-color:hsl(var(--primary))}.bg-primary\/10{background-color:hsl(var(--primary) / .1)}.bg-red-500\/10{background-color:#ef44441a}.bg-red-900\/30{background-color:#7f1d1d4d}.bg-secondary{background-color:hsl(var(--secondary))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-primary{--tw-gradient-from: hsl(var(--primary)) var(--tw-gradient-from-position);--tw-gradient-to: hsl(var(--primary) / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.to-primary\/60{--tw-gradient-to: hsl(var(--primary) / .6) var(--tw-gradient-to-position)}.bg-clip-text{-webkit-background-clip:text;background-clip:text}.object-contain{-o-object-fit:contain;object-fit:contain}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.pb-2{padding-bottom:.5rem}.pb-20{padding-bottom:5rem}.pb-3{padding-bottom:.75rem}.pb-6{padding-bottom:1.5rem}.pr-2{padding-right:.5rem}.pt-5{padding-top:1.25rem}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.font-sans{font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.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-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.italic{font-style:italic}.leading-relaxed{line-height:1.625}.tracking-tight{letter-spacing:-.025em}.tracking-wider{letter-spacing:.05em}.text-amber-500{--tw-text-opacity: 1;color:rgb(245 158 11 / var(--tw-text-opacity, 1))}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-card-foreground{color:hsl(var(--card-foreground))}.text-cyan-500{--tw-text-opacity: 1;color:rgb(6 182 212 / var(--tw-text-opacity, 1))}.text-destructive{color:hsl(var(--destructive))}.text-emerald-500{--tw-text-opacity: 1;color:rgb(16 185 129 / var(--tw-text-opacity, 1))}.text-foreground{color:hsl(var(--foreground))}.text-green-300{--tw-text-opacity: 1;color:rgb(134 239 172 / var(--tw-text-opacity, 1))}.text-green-700{--tw-text-opacity: 1;color:rgb(21 128 61 / var(--tw-text-opacity, 1))}.text-indigo-500{--tw-text-opacity: 1;color:rgb(99 102 241 / var(--tw-text-opacity, 1))}.text-lime-500{--tw-text-opacity: 1;color:rgb(132 204 22 / var(--tw-text-opacity, 1))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-orange-500{--tw-text-opacity: 1;color:rgb(249 115 22 / var(--tw-text-opacity, 1))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-purple-500{--tw-text-opacity: 1;color:rgb(168 85 247 / var(--tw-text-opacity, 1))}.text-red-300{--tw-text-opacity: 1;color:rgb(252 165 165 / var(--tw-text-opacity, 1))}.text-red-700{--tw-text-opacity: 1;color:rgb(185 28 28 / var(--tw-text-opacity, 1))}.text-rose-500{--tw-text-opacity: 1;color:rgb(244 63 94 / var(--tw-text-opacity, 1))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.text-transparent{color:transparent}.line-through{text-decoration-line:line-through}.accent-primary{accent-color:hsl(var(--primary))}.opacity-0{opacity:0}.opacity-70{opacity:.7}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.ring-offset-background{--tw-ring-offset-color: hsl(var(--background))}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-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-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}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-300{transition-duration:.3s}.duration-500{transition-duration:.5s}.hover\:border-primary\/30:hover{border-color:hsl(var(--primary) / .3)}.hover\:border-primary\/50:hover{border-color:hsl(var(--primary) / .5)}.hover\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\:bg-accent\/50:hover{background-color:hsl(var(--accent) / .5)}.hover\:bg-destructive\/10:hover{background-color:hsl(var(--destructive) / .1)}.hover\:bg-muted:hover{background-color:hsl(var(--muted))}.hover\:bg-muted\/50:hover{background-color:hsl(var(--muted) / .5)}.hover\:bg-muted\/80:hover{background-color:hsl(var(--muted) / .8)}.hover\:bg-primary\/20:hover{background-color:hsl(var(--primary) / .2)}.hover\:bg-primary\/90:hover{background-color:hsl(var(--primary) / .9)}.hover\:bg-secondary\/80:hover{background-color:hsl(var(--secondary) / .8)}.hover\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\:text-foreground:hover{color:hsl(var(--foreground))}.hover\:underline:hover{text-decoration-line:underline}.focus\:border-primary:focus{border-color:hsl(var(--primary))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.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-primary:focus{--tw-ring-color: hsl(var(--primary))}.focus\:ring-primary\/20:focus{--tw-ring-color: hsl(var(--primary) / .2)}.focus\:ring-primary\/50:focus{--tw-ring-color: hsl(var(--primary) / .5)}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.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-ring:focus-visible{--tw-ring-color: hsl(var(--ring))}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\:scale-110{--tw-scale-x: 1.1;--tw-scale-y: 1.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))}.group:hover .group-hover\:text-primary{color:hsl(var(--primary))}.group:hover .group-hover\:opacity-100{opacity:1}@media (min-width: 768px){.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (min-width: 1024px){.lg\:col-span-2{grid-column:span 2 / span 2}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (min-width: 1280px){.xl\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}}@media (prefers-color-scheme: dark){.dark\:text-green-400{--tw-text-opacity: 1;color:rgb(74 222 128 / var(--tw-text-opacity, 1))}.dark\:text-red-400{--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity, 1))}} diff --git a/apps/web/dist/index.html b/apps/web/dist/index.html index 5046482..78ca4a8 100644 --- a/apps/web/dist/index.html +++ b/apps/web/dist/index.html @@ -5,8 +5,8 @@ DevAssistant - - + +
diff --git a/apps/web/src/App.tsx b/apps/web/src/App.tsx index 6b9706b..526d414 100644 --- a/apps/web/src/App.tsx +++ b/apps/web/src/App.tsx @@ -7,6 +7,7 @@ import UnitConversionPage from './pages/UnitConversionPage'; import ImageConverterPage from './pages/ImageConverterPage'; import DataConverterPage from './pages/DataConverterPage'; import TextAnalyzerPage from './pages/TextAnalyzerPage'; +import BCryptPage from './pages/BCryptPage'; function App() { return ( @@ -21,6 +22,7 @@ function App() { } /> } /> } /> + } /> diff --git a/apps/web/src/components/Layout.tsx b/apps/web/src/components/Layout.tsx index 5d7601e..154458a 100644 --- a/apps/web/src/components/Layout.tsx +++ b/apps/web/src/components/Layout.tsx @@ -1,5 +1,5 @@ import { Link, Outlet, useLocation } from 'react-router-dom'; -import { FileJson, ArrowLeftRight, Code2, Braces, Ruler, Image, Database, AlignLeft } from 'lucide-react'; +import { FileJson, ArrowLeftRight, Code2, Braces, Ruler, Image, Database, AlignLeft, Shield } from 'lucide-react'; export default function Layout() { const location = useLocation(); @@ -12,6 +12,7 @@ export default function Layout() { { path: '/image-converter', label: 'Image Converter', icon: Image }, { path: '/data-converter', label: 'Data Converter', icon: Database }, { path: '/text-analyzer', label: 'Text Analyzer', icon: AlignLeft }, + { path: '/bcrypt', label: 'BCrypt Tool', icon: Shield }, ]; return ( diff --git a/apps/web/src/pages/BCryptPage.tsx b/apps/web/src/pages/BCryptPage.tsx new file mode 100644 index 0000000..f1757b0 --- /dev/null +++ b/apps/web/src/pages/BCryptPage.tsx @@ -0,0 +1,191 @@ +import { useState } from 'react'; +import { hashPassword, comparePassword } from '@dev-assistant/core'; +import { Shield, Key, Lock, Unlock, Clipboard, Check, RefreshCw } from 'lucide-react'; + +export default function BCryptPage() { + // Hash Generation State + const [plainText, setPlainText] = useState(''); + const [saltRounds, setSaltRounds] = useState(10); + const [generatedHash, setGeneratedHash] = useState(''); + const [isHashing, setIsHashing] = useState(false); + const [hashCopied, setHashCopied] = useState(false); + + // Verification State + const [verifyPassword, setVerifyPassword] = useState(''); + const [verifyHash, setVerifyHash] = useState(''); + const [isMatch, setIsMatch] = useState(null); + const [isComparing, setIsComparing] = useState(false); + + const handleHash = async () => { + if (!plainText) return; + setIsHashing(true); + try { + const hash = await hashPassword(plainText, saltRounds); + setGeneratedHash(hash); + } catch (error) { + console.error('Hashing error:', error); + setGeneratedHash('Error generating hash'); + } finally { + setIsHashing(false); + } + }; + + const handleVerify = async () => { + if (!verifyPassword || !verifyHash) return; + setIsComparing(true); + try { + const match = await comparePassword(verifyPassword, verifyHash); + setIsMatch(match); + } catch (error) { + console.error('Verification error:', error); + setIsMatch(false); + } finally { + setIsComparing(false); + } + }; + + const copyHash = () => { + if (!generatedHash) return; + navigator.clipboard.writeText(generatedHash); + setHashCopied(true); + setTimeout(() => setHashCopied(false), 2000); + }; + + return ( +
+
+ +

BCrypt Tool

+
+ +
+ {/* Generation Section */} +
+
+ +

Generate Hash

+
+ +
+ + setPlainText(e.target.value)} + placeholder="Enter password to hash..." + className="w-full px-4 py-2 bg-background border border-input rounded-md focus:outline-none focus:ring-2 focus:ring-primary/50" + /> +
+ +
+ + setSaltRounds(parseInt(e.target.value))} + className="w-full h-2 bg-secondary rounded-lg appearance-none cursor-pointer accent-primary" + /> +
+ Faster (4) + Slower (15) +
+
+ + + + {generatedHash && ( +
+
+ + +
+
+ {generatedHash} +
+
+ )} +
+ + {/* Verification Section */} +
+
+ +

Verify Password

+
+ +
+ + setVerifyPassword(e.target.value)} + placeholder="Enter plain text password..." + className="w-full px-4 py-2 bg-background border border-input rounded-md focus:outline-none focus:ring-2 focus:ring-primary/50" + /> +
+ +
+ +