diff --git a/apps/web/dist/assets/index-47fcc8e3.css b/apps/web/dist/assets/index-47fcc8e3.css deleted file mode 100644 index dc7cf14..0000000 --- a/apps/web/dist/assets/index-47fcc8e3.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}}.mx-auto{margin-left:auto;margin-right:auto}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.ml-auto{margin-left:auto}.mt-2{margin-top:.5rem}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.h-10{height:2.5rem}.h-3{height:.75rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\[40\%\]{height:40%}.h-full{height:100%}.h-screen{height:100vh}.min-h-0{min-height:0px}.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}.max-w-7xl{max-width:80rem}.flex-1{flex:1 1 0%}.cursor-pointer{cursor:pointer}.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}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.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-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}.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-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-r{border-right-width:1px}.border-border{border-color:hsl(var(--border))}.border-destructive{border-color:hsl(var(--destructive))}.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))}.bg-background{background-color:hsl(var(--background))}.bg-background\/50{background-color:hsl(var(--background) / .5)}.bg-card{background-color:hsl(var(--card))}.bg-destructive\/10{background-color:hsl(var(--destructive) / .1)}.bg-green-900\/30{background-color:#14532d4d}.bg-muted{background-color:hsl(var(--muted))}.bg-primary{background-color:hsl(var(--primary))}.bg-red-900\/30{background-color:#7f1d1d4d}.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-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}.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}.italic{font-style:italic}.tracking-tight{letter-spacing:-.025em}.text-destructive{color:hsl(var(--destructive))}.text-foreground{color:hsl(var(--foreground))}.text-green-300{--tw-text-opacity: 1;color:rgb(134 239 172 / 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-red-300{--tw-text-opacity: 1;color:rgb(252 165 165 / var(--tw-text-opacity, 1))}.line-through{text-decoration-line:line-through}.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))}.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}.hover\:border-primary\/50:hover{border-color:hsl(var(--primary) / .5)}.hover\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\:bg-muted:hover{background-color:hsl(var(--muted))}.hover\:bg-muted\/80:hover{background-color:hsl(var(--muted) / .8)}.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\: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-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}@media (min-width: 768px){.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (min-width: 1024px){.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-688746db.js b/apps/web/dist/assets/index-499283bb.js similarity index 71% rename from apps/web/dist/assets/index-688746db.js rename to apps/web/dist/assets/index-499283bb.js index 2dc605b..1fda259 100644 --- a/apps/web/dist/assets/index-688746db.js +++ b/apps/web/dist/assets/index-499283bb.js @@ -1,4 +1,4 @@ -var qT=Object.defineProperty;var HT=(e,t,r)=>t in e?qT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var U=(e,t,r)=>(HT(e,typeof t!="symbol"?t+"":t,r),r),rp=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)};var et=(e,t,r)=>(rp(e,t,"read from private field"),r?r.call(e):t.get(e)),yi=(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)},np=(e,t,r,n)=>(rp(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);var Sn=(e,t,r)=>(rp(e,t,"access private method"),r);function WT(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)}})();function JT(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var hD={exports:{}},pc={},dD={exports:{}},ye={};/** +var KT=Object.defineProperty;var GT=(e,t,r)=>t in e?KT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var U=(e,t,r)=>(GT(e,typeof t!="symbol"?t+"":t,r),r),rp=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)};var tt=(e,t,r)=>(rp(e,t,"read from private field"),r?r.call(e):t.get(e)),gi=(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)},np=(e,t,r,n)=>(rp(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);var Sn=(e,t,r)=>(rp(e,t,"access private method"),r);function QT(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)}})();function YT(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var yD={exports:{}},pc={},gD={exports:{}},ye={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ var qT=Object.defineProperty;var HT=(e,t,r)=>t in e?qT(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 Yo=Symbol.for("react.element"),XT=Symbol.for("react.portal"),KT=Symbol.for("react.fragment"),GT=Symbol.for("react.strict_mode"),QT=Symbol.for("react.profiler"),YT=Symbol.for("react.provider"),ZT=Symbol.for("react.context"),eS=Symbol.for("react.forward_ref"),tS=Symbol.for("react.suspense"),rS=Symbol.for("react.memo"),nS=Symbol.for("react.lazy"),By=Symbol.iterator;function iS(e){return e===null||typeof e!="object"?null:(e=By&&e[By]||e["@@iterator"],typeof e=="function"?e:null)}var fD={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},mD=Object.assign,yD={};function ra(e,t,r){this.props=e,this.context=t,this.refs=yD,this.updater=r||fD}ra.prototype.isReactComponent={};ra.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")};ra.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function gD(){}gD.prototype=ra.prototype;function Gd(e,t,r){this.props=e,this.context=t,this.refs=yD,this.updater=r||fD}var Qd=Gd.prototype=new gD;Qd.constructor=Gd;mD(Qd,ra.prototype);Qd.isPureReactComponent=!0;var Iy=Array.isArray,DD=Object.prototype.hasOwnProperty,Yd={current:null},ED={key:!0,ref:!0,__self:!0,__source:!0};function xD(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)DD.call(t,n)&&!ED.hasOwnProperty(n)&&(i[n]=t[n]);var o=arguments.length-2;if(o===1)i.children=r;else if(1t in e?qT(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 cS=I,pS=Symbol.for("react.element"),hS=Symbol.for("react.fragment"),dS=Object.prototype.hasOwnProperty,fS=cS.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,mS={key:!0,ref:!0,__self:!0,__source:!0};function vD(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)dS.call(t,n)&&!mS.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:pS,type:e,key:s,ref:a,props:i,_owner:fS.current}}pc.Fragment=hS;pc.jsx=vD;pc.jsxs=vD;hD.exports=pc;var S=hD.exports,yh={},AD={exports:{}},Ht={},TD={exports:{}},SD={};/** + */var mS=B,yS=Symbol.for("react.element"),gS=Symbol.for("react.fragment"),DS=Object.prototype.hasOwnProperty,ES=mS.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,xS={key:!0,ref:!0,__self:!0,__source:!0};function FD(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)DS.call(t,n)&&!xS.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:yS,type:e,key:s,ref:a,props:i,_owner:ES.current}}pc.Fragment=gS;pc.jsx=FD;pc.jsxs=FD;yD.exports=pc;var T=yD.exports,yh={},bD={exports:{}},Ht={},wD={exports:{}},PD={};/** * @license React * scheduler.production.min.js * @@ -22,7 +22,7 @@ var qT=Object.defineProperty;var HT=(e,t,r)=>t in e?qT(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($,Z){var J=$.length;$.push(Z);e:for(;0>>1,ae=$[te];if(0>>1;tei(me,J))Hri(Wr,me)?($[te]=Wr,$[Hr]=J,te=Hr):($[te]=me,$[se]=J,te=se);else if(Hri(Wr,J))$[te]=Wr,$[Hr]=J,te=Hr;else break e}}return Z}function i($,Z){var J=$.sortIndex-Z.sortIndex;return J!==0?J:$.id-Z.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,E=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 Z=r(l);Z!==null;){if(Z.callback===null)n(l);else if(Z.startTime<=$)n(l),Z.sortIndex=Z.expirationTime,t(u,Z);else break;Z=r(l)}}function x($){if(y=!1,D($),!f)if(r(u)!==null)f=!0,ne(A);else{var Z=r(l);Z!==null&&ge(x,Z.startTime-$)}}function A($,Z){f=!1,y&&(y=!1,g(F),F=-1),d=!0;var J=h;try{for(D(Z),p=r(u);p!==null&&(!(p.expirationTime>Z)||$&&!j());){var te=p.callback;if(typeof te=="function"){p.callback=null,h=p.priorityLevel;var ae=te(p.expirationTime<=Z);Z=e.unstable_now(),typeof ae=="function"?p.callback=ae:p===r(u)&&n(u),D(Z)}else n(u);p=r(u)}if(p!==null)var K=!0;else{var se=r(l);se!==null&&ge(x,se.startTime-Z),K=!1}return K}finally{p=null,h=J,d=!1}}var b=!1,k=null,F=-1,M=5,P=-1;function j(){return!(e.unstable_now()-P$||125<$?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):M=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 Z=3;break;default:Z=h}var J=h;h=Z;try{return $()}finally{h=J}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function($,Z){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var J=h;h=$;try{return Z()}finally{h=J}},e.unstable_scheduleCallback=function($,Z,J){var te=e.unstable_now();switch(typeof J=="object"&&J!==null?(J=J.delay,J=typeof J=="number"&&0te?($.sortIndex=J,t(l,$),r(u)===null&&$===r(l)&&(y?(g(F),F=-1):y=!0,ge(x,J-te))):($.sortIndex=ae,t(u,$),f||d||(f=!0,ne(A))),$},e.unstable_shouldYield=j,e.unstable_wrapCallback=function($){var Z=h;return function(){var J=h;h=Z;try{return $.apply(this,arguments)}finally{h=J}}}})(SD);TD.exports=SD;var yS=TD.exports;/** + */(function(e){function t($,Z){var J=$.length;$.push(Z);e:for(;0>>1,ae=$[te];if(0>>1;tei(me,J))Hri(Wr,me)?($[te]=Wr,$[Hr]=J,te=Hr):($[te]=me,$[se]=J,te=se);else if(Hri(Wr,J))$[te]=Wr,$[Hr]=J,te=Hr;else break e}}return Z}function i($,Z){var J=$.sortIndex-Z.sortIndex;return J!==0?J:$.id-Z.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 Z=r(l);Z!==null;){if(Z.callback===null)n(l);else if(Z.startTime<=$)n(l),Z.sortIndex=Z.expirationTime,t(u,Z);else break;Z=r(l)}}function E($){if(y=!1,D($),!f)if(r(u)!==null)f=!0,ne(A);else{var Z=r(l);Z!==null&&ge(E,Z.startTime-$)}}function A($,Z){f=!1,y&&(y=!1,g(b),b=-1),d=!0;var J=h;try{for(D(Z),p=r(u);p!==null&&(!(p.expirationTime>Z)||$&&!j());){var te=p.callback;if(typeof te=="function"){p.callback=null,h=p.priorityLevel;var ae=te(p.expirationTime<=Z);Z=e.unstable_now(),typeof ae=="function"?p.callback=ae:p===r(u)&&n(u),D(Z)}else n(u);p=r(u)}if(p!==null)var K=!0;else{var se=r(l);se!==null&&ge(E,se.startTime-Z),K=!1}return K}finally{p=null,h=J,d=!1}}var F=!1,k=null,b=-1,O=5,P=-1;function j(){return!(e.unstable_now()-P$||125<$?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=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 Z=3;break;default:Z=h}var J=h;h=Z;try{return $()}finally{h=J}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function($,Z){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var J=h;h=$;try{return Z()}finally{h=J}},e.unstable_scheduleCallback=function($,Z,J){var te=e.unstable_now();switch(typeof J=="object"&&J!==null?(J=J.delay,J=typeof J=="number"&&0te?($.sortIndex=J,t(l,$),r(u)===null&&$===r(l)&&(y?(g(b),b=-1):y=!0,ge(E,J-te))):($.sortIndex=ae,t(u,$),f||d||(f=!0,ne(A))),$},e.unstable_shouldYield=j,e.unstable_wrapCallback=function($){var Z=h;return function(){var J=h;h=Z;try{return $.apply(this,arguments)}finally{h=J}}}})(PD);wD.exports=PD;var CS=wD.exports;/** * @license React * react-dom.production.min.js * @@ -30,14 +30,14 @@ var qT=Object.defineProperty;var HT=(e,t,r)=>t in e?qT(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 gS=I,Ut=yS;function R(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"),gh=Object.prototype.hasOwnProperty,DS=/^[: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]*$/,Ly={},$y={};function ES(e){return gh.call($y,e)?!0:gh.call(Ly,e)?!1:DS.test(e)?$y[e]=!0:(Ly[e]=!0,!1)}function xS(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 CS(e,t,r,n){if(t===null||typeof t>"u"||xS(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 Ct(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 it={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){it[e]=new Ct(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];it[t]=new Ct(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){it[e]=new Ct(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){it[e]=new Ct(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){it[e]=new Ct(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){it[e]=new Ct(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){it[e]=new Ct(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){it[e]=new Ct(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){it[e]=new Ct(e,5,!1,e.toLowerCase(),null,!1,!1)});var ef=/[\-:]([a-z])/g;function tf(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(ef,tf);it[t]=new Ct(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(ef,tf);it[t]=new Ct(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(ef,tf);it[t]=new Ct(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){it[e]=new Ct(e,1,!1,e.toLowerCase(),null,!1,!1)});it.xlinkHref=new Ct("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){it[e]=new Ct(e,1,!1,e.toLowerCase(),null,!0,!0)});function rf(e,t,r,n){var i=it.hasOwnProperty(t)?it[t]:null;(i!==null?i.type!==0:n||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),gh=Object.prototype.hasOwnProperty,AS=/^[: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]*$/,Ly={},$y={};function TS(e){return gh.call($y,e)?!0:gh.call(Ly,e)?!1:AS.test(e)?$y[e]=!0:(Ly[e]=!0,!1)}function SS(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 FS(e,t,r,n){if(t===null||typeof t>"u"||SS(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 vt(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 st={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){st[e]=new vt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];st[t]=new vt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){st[e]=new vt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){st[e]=new vt(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){st[e]=new vt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){st[e]=new vt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){st[e]=new vt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){st[e]=new vt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){st[e]=new vt(e,5,!1,e.toLowerCase(),null,!1,!1)});var ef=/[\-:]([a-z])/g;function tf(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(ef,tf);st[t]=new vt(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(ef,tf);st[t]=new vt(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(ef,tf);st[t]=new vt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){st[e]=new vt(e,1,!1,e.toLowerCase(),null,!1,!1)});st.xlinkHref=new vt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){st[e]=new vt(e,1,!1,e.toLowerCase(),null,!0,!0)});function rf(e,t,r,n){var i=st.hasOwnProperty(t)?st[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{ap=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Va(e):""}function vS(e){switch(e.tag){case 5:return Va(e.type);case 16:return Va("Lazy");case 13:return Va("Suspense");case 19:return Va("SuspenseList");case 0:case 2:case 15:return e=op(e.type,!1),e;case 11:return e=op(e.type.render,!1),e;case 1:return e=op(e.type,!0),e;default:return""}}function Ch(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 ms:return"Fragment";case fs:return"Portal";case Dh:return"Profiler";case nf:return"StrictMode";case Eh:return"Suspense";case xh:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case wD:return(e.displayName||"Context")+".Consumer";case bD:return(e._context.displayName||"Context")+".Provider";case sf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case af:return t=e.displayName||null,t!==null?t:Ch(e.type)||"Memo";case In:t=e._payload,e=e._init;try{return Ch(e(t))}catch{}}return null}function AS(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 Ch(t);case 8:return t===nf?"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 ei(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function kD(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function TS(e){var t=kD(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 Tu(e){e._valueTracker||(e._valueTracker=TS(e))}function ND(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=kD(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function bl(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 vh(e,t){var r=t.checked;return $e({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function My(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=ei(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 BD(e,t){t=t.checked,t!=null&&rf(e,"checked",t,!1)}function Ah(e,t){BD(e,t);var r=ei(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")?Th(e,t.type,r):t.hasOwnProperty("defaultValue")&&Th(e,t.type,ei(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function jy(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 Th(e,t,r){(t!=="number"||bl(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var qa=Array.isArray;function Ps(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Su.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ao(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Ya={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},SS=["Webkit","ms","Moz","O"];Object.keys(Ya).forEach(function(e){SS.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ya[t]=Ya[e]})});function $D(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Ya.hasOwnProperty(e)&&Ya[e]?(""+t).trim():t+"px"}function OD(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=$D(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var FS=$e({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 bh(e,t){if(t){if(FS[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(R(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(R(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(R(61))}if(t.style!=null&&typeof t.style!="object")throw Error(R(62))}}function wh(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 Ph=null;function of(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var kh=null,ks=null,Ns=null;function zy(e){if(e=tu(e)){if(typeof kh!="function")throw Error(R(280));var t=e.stateNode;t&&(t=yc(t),kh(e.stateNode,e.type,t))}}function MD(e){ks?Ns?Ns.push(e):Ns=[e]:ks=e}function jD(){if(ks){var e=ks,t=Ns;if(Ns=ks=null,zy(e),t)for(e=0;e>>=0,e===0?32:31-(OS(e)/MS|0)|0}var Fu=64,bu=4194304;function Ha(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 Nl(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=Ha(o):(s&=a,s!==0&&(n=Ha(s)))}else a=r&~i,a!==0?n=Ha(a):s!==0&&(n=Ha(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 Zo(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-yr(t),e[t]=r}function zS(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=eo),Qy=String.fromCharCode(32),Yy=!1;function s2(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 a2(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ys=!1;function DF(e,t){switch(e){case"compositionend":return a2(t);case"keypress":return t.which!==32?null:(Yy=!0,Qy);case"textInput":return e=t.data,e===Qy&&Yy?null:e;default:return null}}function EF(e,t){if(ys)return e==="compositionend"||!mf&&s2(e,t)?(e=n2(),sl=hf=On=null,ys=!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=r0(r)}}function c2(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?c2(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function p2(){for(var e=window,t=bl();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=bl(e.document)}return t}function yf(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 wF(e){var t=p2(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&c2(r.ownerDocument.documentElement,r)){if(n!==null&&yf(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=n0(r,s);var a=n0(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,$h=null,ro=null,Oh=!1;function i0(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Oh||gs==null||gs!==bl(n)||(n=gs,"selectionStart"in n&&yf(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}),ro&&Po(ro,n)||(ro=n,n=_l($h,"onSelect"),0xs||(e.current=Vh[xs],Vh[xs]=null,xs--)}function Fe(e,t){xs++,Vh[xs]=e.current,e.current=t}var ti={},pt=ai(ti),Ft=ai(!1),Li=ti;function js(e,t){var r=e.type.contextTypes;if(!r)return ti;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 bt(e){return e=e.childContextTypes,e!=null}function $l(){Ne(Ft),Ne(pt)}function p0(e,t,r){if(pt.current!==ti)throw Error(R(168));Fe(pt,t),Fe(Ft,r)}function x2(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(R(108,AS(e)||"Unknown",i));return $e({},r,n)}function Ol(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ti,Li=pt.current,Fe(pt,e),Fe(Ft,Ft.current),!0}function h0(e,t,r){var n=e.stateNode;if(!n)throw Error(R(169));r?(e=x2(e,t,Li),n.__reactInternalMemoizedMergedChildContext=e,Ne(Ft),Ne(pt),Fe(pt,e)):Ne(Ft),Fe(Ft,r)}var Gr=null,gc=!1,Cp=!1;function C2(e){Gr===null?Gr=[e]:Gr.push(e)}function RF(e){gc=!0,C2(e)}function oi(){if(!Cp&&Gr!==null){Cp=!0;var e=0,t=Ae;try{var r=Gr;for(Ae=1;e>=a,i-=a,Yr=1<<32-yr(t)+i|r<F?(M=k,k=null):M=k.sibling;var P=h(g,k,D[F],x);if(P===null){k===null&&(k=M);break}e&&k&&P.alternate===null&&t(g,k),m=s(P,m,F),b===null?A=P:b.sibling=P,b=P,k=M}if(F===D.length)return r(g,k),Be&&Ci(g,F),A;if(k===null){for(;FF?(M=k,k=null):M=k.sibling;var j=h(g,k,P.value,x);if(j===null){k===null&&(k=M);break}e&&k&&j.alternate===null&&t(g,k),m=s(j,m,F),b===null?A=j:b.sibling=j,b=j,k=M}if(P.done)return r(g,k),Be&&Ci(g,F),A;if(k===null){for(;!P.done;F++,P=D.next())P=p(g,P.value,x),P!==null&&(m=s(P,m,F),b===null?A=P:b.sibling=P,b=P);return Be&&Ci(g,F),A}for(k=n(g,k);!P.done;F++,P=D.next())P=d(k,g,F,P.value,x),P!==null&&(e&&P.alternate!==null&&k.delete(P.key===null?F:P.key),m=s(P,m,F),b===null?A=P:b.sibling=P,b=P);return e&&k.forEach(function(Y){return t(g,Y)}),Be&&Ci(g,F),A}function E(g,m,D,x){if(typeof D=="object"&&D!==null&&D.type===ms&&D.key===null&&(D=D.props.children),typeof D=="object"&&D!==null){switch(D.$$typeof){case Au:e:{for(var A=D.key,b=m;b!==null;){if(b.key===A){if(A=D.type,A===ms){if(b.tag===7){r(g,b.sibling),m=i(b,D.props.children),m.return=g,g=m;break e}}else if(b.elementType===A||typeof A=="object"&&A!==null&&A.$$typeof===In&&m0(A)===b.type){r(g,b.sibling),m=i(b,D.props),m.ref=wa(g,b,D),m.return=g,g=m;break e}r(g,b);break}else t(g,b);b=b.sibling}D.type===ms?(m=Bi(D.props.children,g.mode,x,D.key),m.return=g,g=m):(x=dl(D.type,D.key,D.props,null,g.mode,x),x.ref=wa(g,m,D),x.return=g,g=x)}return a(g);case fs:e:{for(b=D.key;m!==null;){if(m.key===b)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=Pp(D,g.mode,x),m.return=g,g=m}return a(g);case In:return b=D._init,E(g,m,b(D._payload),x)}if(qa(D))return f(g,m,D,x);if(Aa(D))return y(g,m,D,x);_u(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=wp(D,g.mode,x),m.return=g,g=m),a(g)):r(g,m)}return E}var Us=S2(!0),F2=S2(!1),Rl=ai(null),Ul=null,As=null,xf=null;function Cf(){xf=As=Ul=null}function vf(e){var t=Rl.current;Ne(Rl),e._currentValue=t}function Wh(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 Is(e,t){Ul=e,xf=As=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(St=!0),e.firstContext=null)}function nr(e){var t=e._currentValue;if(xf!==e)if(e={context:e,memoizedValue:t,next:null},As===null){if(Ul===null)throw Error(R(308));As=e,Ul.dependencies={lanes:0,firstContext:e}}else As=As.next=e;return t}var bi=null;function Af(e){bi===null?bi=[e]:bi.push(e)}function b2(e,t,r,n){var i=t.interleaved;return i===null?(r.next=r,Af(t)):(r.next=i.next,i.next=r),t.interleaved=r,on(e,n)}function on(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 _n=!1;function Tf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function w2(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 tn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Hn(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,xe&2){var i=n.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),n.pending=t,on(e,r)}return i=n.interleaved,i===null?(t.next=t,Af(n)):(t.next=i.next,i.next=t),n.interleaved=t,on(e,r)}function ol(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,lf(e,r)}}function y0(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 zl(e,t,r,n){var i=e.updateQueue;_n=!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=$e({},p,h);break e;case 2:_n=!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);Mi|=a,e.lanes=a,e.memoizedState=p}}function g0(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;tr?r:4,e(!0);var n=Ap.transition;Ap.transition={};try{e(!1),t()}finally{Ae=r,Ap.transition=n}}function H2(){return ir().memoizedState}function qF(e,t,r){var n=Jn(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},W2(e))J2(t,r);else if(r=b2(e,t,r,n),r!==null){var i=gt();gr(r,e,n,i),X2(r,t,n)}}function HF(e,t,r){var n=Jn(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(W2(e))J2(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,Er(o,a)){var u=t.interleaved;u===null?(i.next=i,Af(t)):(i.next=u.next,u.next=i),t.interleaved=i;return}}catch{}finally{}r=b2(e,t,i,n),r!==null&&(i=gt(),gr(r,e,n,i),X2(r,t,n))}}function W2(e){var t=e.alternate;return e===Le||t!==null&&t===Le}function J2(e,t){no=ql=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function X2(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,lf(e,r)}}var Hl={readContext:nr,useCallback:ot,useContext:ot,useEffect:ot,useImperativeHandle:ot,useInsertionEffect:ot,useLayoutEffect:ot,useMemo:ot,useReducer:ot,useRef:ot,useState:ot,useDebugValue:ot,useDeferredValue:ot,useTransition:ot,useMutableSource:ot,useSyncExternalStore:ot,useId:ot,unstable_isNewReconciler:!1},WF={readContext:nr,useCallback:function(e,t){return br().memoizedState=[e,t===void 0?null:t],e},useContext:nr,useEffect:E0,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,ll(4194308,4,R2.bind(null,t,e),r)},useLayoutEffect:function(e,t){return ll(4194308,4,e,t)},useInsertionEffect:function(e,t){return ll(4,2,e,t)},useMemo:function(e,t){var r=br();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=br();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=qF.bind(null,Le,e),[n.memoizedState,e]},useRef:function(e){var t=br();return e={current:e},t.memoizedState=e},useState:D0,useDebugValue:Bf,useDeferredValue:function(e){return br().memoizedState=e},useTransition:function(){var e=D0(!1),t=e[0];return e=VF.bind(null,e[1]),br().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Le,i=br();if(Be){if(r===void 0)throw Error(R(407));r=r()}else{if(r=t(),Qe===null)throw Error(R(349));Oi&30||B2(n,t,r)}i.memoizedState=r;var s={value:r,getSnapshot:t};return i.queue=s,E0(_2.bind(null,n,s,e),[e]),n.flags|=2048,Oo(9,I2.bind(null,n,s,r,t),void 0,null),r},useId:function(){var e=br(),t=Qe.identifierPrefix;if(Be){var r=Zr,n=Yr;r=(n&~(1<<32-yr(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Lo++,0")&&(u=u.replace("",e.displayName)),u}while(1<=a&&0<=o);break}}}finally{ap=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Va(e):""}function bS(e){switch(e.tag){case 5:return Va(e.type);case 16:return Va("Lazy");case 13:return Va("Suspense");case 19:return Va("SuspenseList");case 0:case 2:case 15:return e=op(e.type,!1),e;case 11:return e=op(e.type.render,!1),e;case 1:return e=op(e.type,!0),e;default:return""}}function Ch(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 ms:return"Fragment";case fs:return"Portal";case Dh:return"Profiler";case nf:return"StrictMode";case Eh:return"Suspense";case xh:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case BD:return(e.displayName||"Context")+".Consumer";case ND:return(e._context.displayName||"Context")+".Provider";case sf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case af:return t=e.displayName||null,t!==null?t:Ch(e.type)||"Memo";case _n:t=e._payload,e=e._init;try{return Ch(e(t))}catch{}}return null}function wS(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 Ch(t);case 8:return t===nf?"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 _D(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function PS(e){var t=_D(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 Tu(e){e._valueTracker||(e._valueTracker=PS(e))}function LD(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=_D(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function bl(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 vh(e,t){var r=t.checked;return $e({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function Oy(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 $D(e,t){t=t.checked,t!=null&&rf(e,"checked",t,!1)}function Ah(e,t){$D(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")?Th(e,t.type,r):t.hasOwnProperty("defaultValue")&&Th(e,t.type,ti(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function jy(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 Th(e,t,r){(t!=="number"||bl(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var qa=Array.isArray;function Ps(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Su.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ao(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Ya={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},kS=["Webkit","ms","Moz","O"];Object.keys(Ya).forEach(function(e){kS.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ya[t]=Ya[e]})});function RD(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Ya.hasOwnProperty(e)&&Ya[e]?(""+t).trim():t+"px"}function UD(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=RD(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var NS=$e({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 bh(e,t){if(t){if(NS[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(R(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(R(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(R(61))}if(t.style!=null&&typeof t.style!="object")throw Error(R(62))}}function wh(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 Ph=null;function of(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var kh=null,ks=null,Ns=null;function zy(e){if(e=tu(e)){if(typeof kh!="function")throw Error(R(280));var t=e.stateNode;t&&(t=yc(t),kh(e.stateNode,e.type,t))}}function zD(e){ks?Ns?Ns.push(e):Ns=[e]:ks=e}function VD(){if(ks){var e=ks,t=Ns;if(Ns=ks=null,zy(e),t)for(e=0;e>>=0,e===0?32:31-(zS(e)/VS|0)|0}var Fu=64,bu=4194304;function Ha(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 Nl(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=Ha(o):(s&=a,s!==0&&(n=Ha(s)))}else a=r&~i,a!==0?n=Ha(a):s!==0&&(n=Ha(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 Zo(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-yr(t),e[t]=r}function JS(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=eo),Qy=String.fromCharCode(32),Yy=!1;function l2(e,t){switch(e){case"keyup":return CF.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function c2(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ys=!1;function AF(e,t){switch(e){case"compositionend":return c2(t);case"keypress":return t.which!==32?null:(Yy=!0,Qy);case"textInput":return e=t.data,e===Qy&&Yy?null:e;default:return null}}function TF(e,t){if(ys)return e==="compositionend"||!mf&&l2(e,t)?(e=o2(),sl=hf=On=null,ys=!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=r0(r)}}function f2(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?f2(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function m2(){for(var e=window,t=bl();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=bl(e.document)}return t}function yf(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 IF(e){var t=m2(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&f2(r.ownerDocument.documentElement,r)){if(n!==null&&yf(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=n0(r,s);var a=n0(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,$h=null,ro=null,Mh=!1;function i0(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Mh||gs==null||gs!==bl(n)||(n=gs,"selectionStart"in n&&yf(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}),ro&&Po(ro,n)||(ro=n,n=_l($h,"onSelect"),0xs||(e.current=Vh[xs],Vh[xs]=null,xs--)}function Fe(e,t){xs++,Vh[xs]=e.current,e.current=t}var ri={},ht=oi(ri),bt=oi(!1),Li=ri;function js(e,t){var r=e.type.contextTypes;if(!r)return ri;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 wt(e){return e=e.childContextTypes,e!=null}function $l(){Ne(bt),Ne(ht)}function p0(e,t,r){if(ht.current!==ri)throw Error(R(168));Fe(ht,t),Fe(bt,r)}function T2(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(R(108,wS(e)||"Unknown",i));return $e({},r,n)}function Ml(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ri,Li=ht.current,Fe(ht,e),Fe(bt,bt.current),!0}function h0(e,t,r){var n=e.stateNode;if(!n)throw Error(R(169));r?(e=T2(e,t,Li),n.__reactInternalMemoizedMergedChildContext=e,Ne(bt),Ne(ht),Fe(ht,e)):Ne(bt),Fe(bt,r)}var Gr=null,gc=!1,Cp=!1;function S2(e){Gr===null?Gr=[e]:Gr.push(e)}function HF(e){gc=!0,S2(e)}function ui(){if(!Cp&&Gr!==null){Cp=!0;var e=0,t=Ae;try{var r=Gr;for(Ae=1;e>=a,i-=a,Yr=1<<32-yr(t)+i|r<b?(O=k,k=null):O=k.sibling;var P=h(g,k,D[b],E);if(P===null){k===null&&(k=O);break}e&&k&&P.alternate===null&&t(g,k),m=s(P,m,b),F===null?A=P:F.sibling=P,F=P,k=O}if(b===D.length)return r(g,k),Be&&vi(g,b),A;if(k===null){for(;bb?(O=k,k=null):O=k.sibling;var j=h(g,k,P.value,E);if(j===null){k===null&&(k=O);break}e&&k&&j.alternate===null&&t(g,k),m=s(j,m,b),F===null?A=j:F.sibling=j,F=j,k=O}if(P.done)return r(g,k),Be&&vi(g,b),A;if(k===null){for(;!P.done;b++,P=D.next())P=p(g,P.value,E),P!==null&&(m=s(P,m,b),F===null?A=P:F.sibling=P,F=P);return Be&&vi(g,b),A}for(k=n(g,k);!P.done;b++,P=D.next())P=d(k,g,b,P.value,E),P!==null&&(e&&P.alternate!==null&&k.delete(P.key===null?b:P.key),m=s(P,m,b),F===null?A=P:F.sibling=P,F=P);return e&&k.forEach(function(Y){return t(g,Y)}),Be&&vi(g,b),A}function x(g,m,D,E){if(typeof D=="object"&&D!==null&&D.type===ms&&D.key===null&&(D=D.props.children),typeof D=="object"&&D!==null){switch(D.$$typeof){case Au:e:{for(var A=D.key,F=m;F!==null;){if(F.key===A){if(A=D.type,A===ms){if(F.tag===7){r(g,F.sibling),m=i(F,D.props.children),m.return=g,g=m;break e}}else if(F.elementType===A||typeof A=="object"&&A!==null&&A.$$typeof===_n&&m0(A)===F.type){r(g,F.sibling),m=i(F,D.props),m.ref=wa(g,F,D),m.return=g,g=m;break e}r(g,F);break}else t(g,F);F=F.sibling}D.type===ms?(m=Bi(D.props.children,g.mode,E,D.key),m.return=g,g=m):(E=dl(D.type,D.key,D.props,null,g.mode,E),E.ref=wa(g,m,D),E.return=g,g=E)}return a(g);case fs:e:{for(F=D.key;m!==null;){if(m.key===F)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=Pp(D,g.mode,E),m.return=g,g=m}return a(g);case _n:return F=D._init,x(g,m,F(D._payload),E)}if(qa(D))return f(g,m,D,E);if(Aa(D))return y(g,m,D,E);_u(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=wp(D,g.mode,E),m.return=g,g=m),a(g)):r(g,m)}return x}var Us=P2(!0),k2=P2(!1),Rl=oi(null),Ul=null,As=null,xf=null;function Cf(){xf=As=Ul=null}function vf(e){var t=Rl.current;Ne(Rl),e._currentValue=t}function Wh(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 Is(e,t){Ul=e,xf=As=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ft=!0),e.firstContext=null)}function nr(e){var t=e._currentValue;if(xf!==e)if(e={context:e,memoizedValue:t,next:null},As===null){if(Ul===null)throw Error(R(308));As=e,Ul.dependencies={lanes:0,firstContext:e}}else As=As.next=e;return t}var bi=null;function Af(e){bi===null?bi=[e]:bi.push(e)}function N2(e,t,r,n){var i=t.interleaved;return i===null?(r.next=r,Af(t)):(r.next=i.next,i.next=r),t.interleaved=r,on(e,n)}function on(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 Ln=!1;function Tf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function B2(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 tn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Wn(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,xe&2){var i=n.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),n.pending=t,on(e,r)}return i=n.interleaved,i===null?(t.next=t,Af(n)):(t.next=i.next,i.next=t),n.interleaved=t,on(e,r)}function ol(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,lf(e,r)}}function y0(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 zl(e,t,r,n){var i=e.updateQueue;Ln=!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=$e({},p,h);break e;case 2:Ln=!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);Oi|=a,e.lanes=a,e.memoizedState=p}}function g0(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;tr?r:4,e(!0);var n=Ap.transition;Ap.transition={};try{e(!1),t()}finally{Ae=r,Ap.transition=n}}function K2(){return ir().memoizedState}function KF(e,t,r){var n=Xn(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},G2(e))Q2(t,r);else if(r=N2(e,t,r,n),r!==null){var i=Dt();gr(r,e,n,i),Y2(r,t,n)}}function GF(e,t,r){var n=Xn(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(G2(e))Q2(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,Er(o,a)){var u=t.interleaved;u===null?(i.next=i,Af(t)):(i.next=u.next,u.next=i),t.interleaved=i;return}}catch{}finally{}r=N2(e,t,i,n),r!==null&&(i=Dt(),gr(r,e,n,i),Y2(r,t,n))}}function G2(e){var t=e.alternate;return e===Le||t!==null&&t===Le}function Q2(e,t){no=ql=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function Y2(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,lf(e,r)}}var Hl={readContext:nr,useCallback:ut,useContext:ut,useEffect:ut,useImperativeHandle:ut,useInsertionEffect:ut,useLayoutEffect:ut,useMemo:ut,useReducer:ut,useRef:ut,useState:ut,useDebugValue:ut,useDeferredValue:ut,useTransition:ut,useMutableSource:ut,useSyncExternalStore:ut,useId:ut,unstable_isNewReconciler:!1},QF={readContext:nr,useCallback:function(e,t){return br().memoizedState=[e,t===void 0?null:t],e},useContext:nr,useEffect:E0,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,ll(4194308,4,q2.bind(null,t,e),r)},useLayoutEffect:function(e,t){return ll(4194308,4,e,t)},useInsertionEffect:function(e,t){return ll(4,2,e,t)},useMemo:function(e,t){var r=br();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=br();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=KF.bind(null,Le,e),[n.memoizedState,e]},useRef:function(e){var t=br();return e={current:e},t.memoizedState=e},useState:D0,useDebugValue:Bf,useDeferredValue:function(e){return br().memoizedState=e},useTransition:function(){var e=D0(!1),t=e[0];return e=XF.bind(null,e[1]),br().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Le,i=br();if(Be){if(r===void 0)throw Error(R(407));r=r()}else{if(r=t(),Ye===null)throw Error(R(349));Mi&30||$2(n,t,r)}i.memoizedState=r;var s={value:r,getSnapshot:t};return i.queue=s,E0(O2.bind(null,n,s,e),[e]),n.flags|=2048,Mo(9,M2.bind(null,n,s,r,t),void 0,null),r},useId:function(){var e=br(),t=Ye.identifierPrefix;if(Be){var r=Zr,n=Yr;r=(n&~(1<<32-yr(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Lo++,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[wr]=t,e[Bo]=n,iE(e,t,!1,!1),t.stateNode=e;e:{switch(a=wh(r,n),r){case"dialog":ke("cancel",e),ke("close",e),i=n;break;case"iframe":case"object":case"embed":ke("load",e),i=n;break;case"video":case"audio":for(i=0;iqs&&(t.flags|=128,n=!0,Pa(s,!1),t.lanes=4194304)}else{if(!n)if(e=Vl(a),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Pa(s,!0),s.tail===null&&s.tailMode==="hidden"&&!a.alternate&&!Be)return ut(t),null}else 2*je()-s.renderingStartTime>qs&&r!==1073741824&&(t.flags|=128,n=!0,Pa(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=je(),t.sibling=null,r=_e.current,Fe(_e,n?r&1|2:r&1),t):(ut(t),null);case 22:case 23:return Mf(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?$t&1073741824&&(ut(t),t.subtreeFlags&6&&(t.flags|=8192)):ut(t),null;case 24:return null;case 25:return null}throw Error(R(156,t.tag))}function eb(e,t){switch(Df(t),t.tag){case 1:return bt(t.type)&&$l(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return zs(),Ne(Ft),Ne(pt),bf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ff(t),null;case 13:if(Ne(_e),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(R(340));Rs()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ne(_e),null;case 4:return zs(),null;case 10:return vf(t.type._context),null;case 22:case 23:return Mf(),null;case 24:return null;default:return null}}var $u=!1,lt=!1,tb=typeof WeakSet=="function"?WeakSet:Set,G=null;function Ts(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Me(e,t,n)}else r.current=null}function td(e,t,r){try{r()}catch(n){Me(e,t,n)}}var k0=!1;function rb(e,t){if(Mh=Bl,e=p2(),yf(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(jh={focusedElem:e,selectionRange:r},Bl=!1,G=t;G!==null;)if(t=G,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,G=e;else for(;G!==null;){t=G;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,E=f.memoizedState,g=t.stateNode,m=g.getSnapshotBeforeUpdate(t.elementType===t.type?y:cr(t.type,y),E);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(R(163))}}catch(x){Me(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,G=e;break}G=t.return}return f=k0,k0=!1,f}function io(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&&td(t,r,s)}i=i.next}while(i!==n)}}function xc(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 rd(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 oE(e){var t=e.alternate;t!==null&&(e.alternate=null,oE(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[wr],delete t[Bo],delete t[zh],delete t[MF],delete t[jF])),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 uE(e){return e.tag===5||e.tag===3||e.tag===4}function N0(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||uE(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 nd(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=Ll));else if(n!==4&&(e=e.child,e!==null))for(nd(e,t,r),e=e.sibling;e!==null;)nd(e,t,r),e=e.sibling}function id(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(id(e,t,r),e=e.sibling;e!==null;)id(e,t,r),e=e.sibling}var tt=null,pr=!1;function Fn(e,t,r){for(r=r.child;r!==null;)lE(e,t,r),r=r.sibling}function lE(e,t,r){if(Ir&&typeof Ir.onCommitFiberUnmount=="function")try{Ir.onCommitFiberUnmount(hc,r)}catch{}switch(r.tag){case 5:lt||Ts(r,t);case 6:var n=tt,i=pr;tt=null,Fn(e,t,r),tt=n,pr=i,tt!==null&&(pr?(e=tt,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):tt.removeChild(r.stateNode));break;case 18:tt!==null&&(pr?(e=tt,r=r.stateNode,e.nodeType===8?xp(e.parentNode,r):e.nodeType===1&&xp(e,r),bo(e)):xp(tt,r.stateNode));break;case 4:n=tt,i=pr,tt=r.stateNode.containerInfo,pr=!0,Fn(e,t,r),tt=n,pr=i;break;case 0:case 11:case 14:case 15:if(!lt&&(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)&&td(r,t,a),i=i.next}while(i!==n)}Fn(e,t,r);break;case 1:if(!lt&&(Ts(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(o){Me(r,t,o)}Fn(e,t,r);break;case 21:Fn(e,t,r);break;case 22:r.mode&1?(lt=(n=lt)||r.memoizedState!==null,Fn(e,t,r),lt=n):Fn(e,t,r);break;default:Fn(e,t,r)}}function B0(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new tb),t.forEach(function(n){var i=pb.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function lr(e,t){var r=t.deletions;if(r!==null)for(var n=0;ni&&(i=a),n&=~s}if(n=i,n=je()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*ib(n/1960))-n,10e?16:e,Mn===null)var n=!1;else{if(e=Mn,Mn=null,Xl=0,xe&6)throw Error(R(331));var i=xe;for(xe|=4,G=e.current;G!==null;){var s=G,a=s.child;if(G.flags&16){var o=s.deletions;if(o!==null){for(var u=0;uje()-$f?Ni(e,0):Lf|=r),wt(e,t)}function gE(e,t){t===0&&(e.mode&1?(t=bu,bu<<=1,!(bu&130023424)&&(bu=4194304)):t=1);var r=gt();e=on(e,t),e!==null&&(Zo(e,t,r),wt(e,r))}function cb(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),gE(e,r)}function pb(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(R(314))}n!==null&&n.delete(t),gE(e,r)}var DE;DE=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ft.current)St=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return St=!1,YF(e,t,r);St=!!(e.flags&131072)}else St=!1,Be&&t.flags&1048576&&v2(t,jl,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;cl(e,t),e=t.pendingProps;var i=js(t,pt.current);Is(t,r),i=Pf(null,t,n,e,i,r);var s=kf();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,bt(n)?(s=!0,Ol(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Tf(t),i.updater=Ec,t.stateNode=i,i._reactInternals=t,Xh(t,n,e,r),t=Qh(null,t,n,!0,s,r)):(t.tag=0,Be&&s&&gf(t),ft(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(cl(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=db(n),e=cr(n,e),i){case 0:t=Gh(null,t,n,e,r);break e;case 1:t=b0(null,t,n,e,r);break e;case 11:t=S0(null,t,n,e,r);break e;case 14:t=F0(null,t,n,cr(n.type,e),r);break e}throw Error(R(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:cr(n,i),Gh(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:cr(n,i),b0(e,t,n,i,r);case 3:e:{if(tE(t),e===null)throw Error(R(387));n=t.pendingProps,s=t.memoizedState,i=s.element,w2(e,t),zl(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=Vs(Error(R(423)),t),t=w0(e,t,n,r,i);break e}else if(n!==i){i=Vs(Error(R(424)),t),t=w0(e,t,n,r,i);break e}else for(Mt=qn(t.stateNode.containerInfo.firstChild),jt=t,Be=!0,hr=null,r=F2(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Rs(),n===i){t=un(e,t,r);break e}ft(e,t,n,r)}t=t.child}return t;case 5:return P2(t),e===null&&Hh(t),n=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,a=i.children,Rh(n,i)?a=null:s!==null&&Rh(n,s)&&(t.flags|=32),eE(e,t),ft(e,t,a,r),t.child;case 6:return e===null&&Hh(t),null;case 13:return rE(e,t,r);case 4:return Sf(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Us(t,null,n,r):ft(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:cr(n,i),S0(e,t,n,i,r);case 7:return ft(e,t,t.pendingProps,r),t.child;case 8:return ft(e,t,t.pendingProps.children,r),t.child;case 12:return ft(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,Fe(Rl,n._currentValue),n._currentValue=a,s!==null)if(Er(s.value,a)){if(s.children===i.children&&!Ft.current){t=un(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=tn(-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),Wh(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(R(341));a.lanes|=r,o=a.alternate,o!==null&&(o.lanes|=r),Wh(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}ft(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,Is(t,r),i=nr(i),n=n(i),t.flags|=1,ft(e,t,n,r),t.child;case 14:return n=t.type,i=cr(n,t.pendingProps),i=cr(n.type,i),F0(e,t,n,i,r);case 15:return Y2(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:cr(n,i),cl(e,t),t.tag=1,bt(n)?(e=!0,Ol(t)):e=!1,Is(t,r),K2(t,n,i),Xh(t,n,i,r),Qh(null,t,n,!0,e,r);case 19:return nE(e,t,r);case 22:return Z2(e,t,r)}throw Error(R(156,t.tag))};function EE(e,t){return WD(e,t)}function hb(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 er(e,t,r,n){return new hb(e,t,r,n)}function Rf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function db(e){if(typeof e=="function")return Rf(e)?1:0;if(e!=null){if(e=e.$$typeof,e===sf)return 11;if(e===af)return 14}return 2}function Xn(e,t){var r=e.alternate;return r===null?(r=er(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 dl(e,t,r,n,i,s){var a=2;if(n=e,typeof e=="function")Rf(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case ms:return Bi(r.children,i,s,t);case nf:a=8,i|=8;break;case Dh:return e=er(12,r,t,i|2),e.elementType=Dh,e.lanes=s,e;case Eh:return e=er(13,r,t,i),e.elementType=Eh,e.lanes=s,e;case xh:return e=er(19,r,t,i),e.elementType=xh,e.lanes=s,e;case PD:return vc(r,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case bD:a=10;break e;case wD:a=9;break e;case sf:a=11;break e;case af:a=14;break e;case In:a=16,n=null;break e}throw Error(R(130,e==null?e:typeof e,""))}return t=er(a,r,t,i),t.elementType=e,t.type=n,t.lanes=s,t}function Bi(e,t,r,n){return e=er(7,e,n,t),e.lanes=r,e}function vc(e,t,r,n){return e=er(22,e,n,t),e.elementType=PD,e.lanes=r,e.stateNode={isHidden:!1},e}function wp(e,t,r){return e=er(6,e,null,t),e.lanes=r,e}function Pp(e,t,r){return t=er(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function fb(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=lp(0),this.expirationTimes=lp(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=lp(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Uf(e,t,r,n,i,s,a,o,u){return e=new fb(e,t,r,o,u),t===1?(t=1,s===!0&&(t|=8)):t=0,s=er(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Tf(s),e}function mb(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(AE)}catch(e){console.error(e)}}AE(),AD.exports=Ht;var xb=AD.exports,R0=xb;yh.createRoot=R0.createRoot,yh.hydrateRoot=R0.hydrateRoot;/** +`+s.stack}return{value:e,source:t,stack:i,digest:null}}function Fp(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function Kh(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var eb=typeof WeakMap=="function"?WeakMap:Map;function eE(e,t,r){r=tn(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Jl||(Jl=!0,sd=n),Kh(e,t)},r}function tE(e,t,r){r=tn(-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(){Kh(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(r.callback=function(){Kh(e,t),typeof n!="function"&&(Jn===null?Jn=new Set([this]):Jn.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),r}function v0(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new eb;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=fb.bind(null,e,t,r),t.then(e,e))}function A0(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 T0(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=tn(-1,1),t.tag=2,Wn(r,t,1))),r.lanes|=1),e)}var tb=mn.ReactCurrentOwner,Ft=!1;function mt(e,t,r,n){t.child=e===null?k2(t,null,r,n):Us(t,e.child,r,n)}function S0(e,t,r,n,i){r=r.render;var s=t.ref;return Is(t,i),n=Pf(e,t,r,n,s,i),r=kf(),e!==null&&!Ft?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,un(e,t,i)):(Be&&r&&gf(t),t.flags|=1,mt(e,t,n,i),t.child)}function F0(e,t,r,n,i){if(e===null){var s=r.type;return typeof s=="function"&&!Rf(s)&&s.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=s,rE(e,t,s,n,i)):(e=dl(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:Po,r(a,n)&&e.ref===t.ref)return un(e,t,i)}return t.flags|=1,e=Kn(s,n),e.ref=t.ref,e.return=t,t.child=e}function rE(e,t,r,n,i){if(e!==null){var s=e.memoizedProps;if(Po(s,n)&&e.ref===t.ref)if(Ft=!1,t.pendingProps=n=s,(e.lanes&i)!==0)e.flags&131072&&(Ft=!0);else return t.lanes=e.lanes,un(e,t,i)}return Gh(e,t,r,n,i)}function nE(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},Fe(Ss,$t),$t|=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,Fe(Ss,$t),$t|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=s!==null?s.baseLanes:r,Fe(Ss,$t),$t|=n}else s!==null?(n=s.baseLanes|r,t.memoizedState=null):n=r,Fe(Ss,$t),$t|=n;return mt(e,t,i,r),t.child}function iE(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function Gh(e,t,r,n,i){var s=wt(r)?Li:ht.current;return s=js(t,s),Is(t,i),r=Pf(e,t,r,n,s,i),n=kf(),e!==null&&!Ft?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,un(e,t,i)):(Be&&n&&gf(t),t.flags|=1,mt(e,t,r,i),t.child)}function b0(e,t,r,n,i){if(wt(r)){var s=!0;Ml(t)}else s=!1;if(Is(t,i),t.stateNode===null)cl(e,t),Z2(t,r,n),Xh(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=nr(l):(l=wt(r)?Li:ht.current,l=js(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)&&C0(t,a,n,l),Ln=!1;var h=t.memoizedState;a.state=h,zl(t,n,a,i),u=t.memoizedState,o!==n||h!==u||bt.current||Ln?(typeof c=="function"&&(Jh(t,r,c,n),u=t.memoizedState),(o=Ln||x0(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,B2(e,t),o=t.memoizedProps,l=t.type===t.elementType?o:cr(t.type,o),a.props=l,p=t.pendingProps,h=a.context,u=r.contextType,typeof u=="object"&&u!==null?u=nr(u):(u=wt(r)?Li:ht.current,u=js(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)&&C0(t,a,n,u),Ln=!1,h=t.memoizedState,a.state=h,zl(t,n,a,i);var f=t.memoizedState;o!==p||h!==f||bt.current||Ln?(typeof d=="function"&&(Jh(t,r,d,n),f=t.memoizedState),(l=Ln||x0(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 Qh(e,t,r,n,s,i)}function Qh(e,t,r,n,i,s){iE(e,t);var a=(t.flags&128)!==0;if(!n&&!a)return i&&h0(t,r,!1),un(e,t,s);n=t.stateNode,tb.current=t;var o=a&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&a?(t.child=Us(t,e.child,null,s),t.child=Us(t,null,o,s)):mt(e,t,o,s),t.memoizedState=n.state,i&&h0(t,r,!0),t.child}function sE(e){var t=e.stateNode;t.pendingContext?p0(e,t.pendingContext,t.pendingContext!==t.context):t.context&&p0(e,t.context,!1),Sf(e,t.containerInfo)}function w0(e,t,r,n,i){return Rs(),Ef(i),t.flags|=256,mt(e,t,r,n),t.child}var Yh={dehydrated:null,treeContext:null,retryLane:0};function Zh(e){return{baseLanes:e,cachePool:null,transitions:null}}function aE(e,t,r){var n=t.pendingProps,i=_e.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),Fe(_e,i&1),e===null)return Hh(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=vc(a,n,0,null),e=Bi(e,n,r,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Zh(r),t.memoizedState=Yh,e):If(t,a));if(i=e.memoizedState,i!==null&&(o=i.dehydrated,o!==null))return rb(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=Kn(i,u),n.subtreeFlags=i.subtreeFlags&14680064),o!==null?s=Kn(o,s):(s=Bi(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?Zh(r):{baseLanes:a.baseLanes|r,cachePool:null,transitions:a.transitions},s.memoizedState=a,s.childLanes=e.childLanes&~r,t.memoizedState=Yh,n}return s=e.child,e=s.sibling,n=Kn(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 If(e,t){return t=vc({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Lu(e,t,r,n){return n!==null&&Ef(n),Us(t,e.child,null,r),e=If(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function rb(e,t,r,n,i,s,a){if(r)return t.flags&256?(t.flags&=-257,n=Fp(Error(R(422))),Lu(e,t,a,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=n.fallback,i=t.mode,n=vc({mode:"visible",children:n.children},i,0,null),s=Bi(s,i,a,null),s.flags|=2,n.return=t,s.return=t,n.sibling=s,t.child=n,t.mode&1&&Us(t,e.child,null,a),t.child.memoizedState=Zh(a),t.memoizedState=Yh,s);if(!(t.mode&1))return Lu(e,t,a,null);if(i.data==="$!"){if(n=i.nextSibling&&i.nextSibling.dataset,n)var o=n.dgst;return n=o,s=Error(R(419)),n=Fp(s,n,void 0),Lu(e,t,a,n)}if(o=(a&e.childLanes)!==0,Ft||o){if(n=Ye,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,on(e,i),gr(n,e,i,-1))}return jf(),n=Fp(Error(R(421))),Lu(e,t,a,n)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=mb.bind(null,e),i._reactRetry=t,null):(e=s.treeContext,Ot=Hn(i.nextSibling),jt=t,Be=!0,hr=null,e!==null&&(Gt[Qt++]=Yr,Gt[Qt++]=Zr,Gt[Qt++]=$i,Yr=e.id,Zr=e.overflow,$i=t),t=If(t,n.children),t.flags|=4096,t)}function P0(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),Wh(e.return,t,r)}function bp(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 oE(e,t,r){var n=t.pendingProps,i=n.revealOrder,s=n.tail;if(mt(e,t,n.children,r),n=_e.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&&P0(e,r,t);else if(e.tag===19)P0(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(Fe(_e,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&&Vl(e)===null&&(i=r),r=r.sibling;r=i,r===null?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),bp(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&&Vl(e)===null){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}bp(t,!0,r,null,s);break;case"together":bp(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function cl(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function un(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Oi|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(R(153));if(t.child!==null){for(e=t.child,r=Kn(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=Kn(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function nb(e,t,r){switch(t.tag){case 3:sE(t),Rs();break;case 5:I2(t);break;case 1:wt(t.type)&&Ml(t);break;case 4:Sf(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,i=t.memoizedProps.value;Fe(Rl,n._currentValue),n._currentValue=i;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(Fe(_e,_e.current&1),t.flags|=128,null):r&t.child.childLanes?aE(e,t,r):(Fe(_e,_e.current&1),e=un(e,t,r),e!==null?e.sibling:null);Fe(_e,_e.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&128){if(n)return oE(e,t,r);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Fe(_e,_e.current),n)break;return null;case 22:case 23:return t.lanes=0,nE(e,t,r)}return un(e,t,r)}var uE,ed,lE,cE;uE=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}};ed=function(){};lE=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,wi(_r.current);var s=null;switch(r){case"input":i=vh(e,i),n=vh(e,n),s=[];break;case"select":i=$e({},i,{value:void 0}),n=$e({},n,{value:void 0}),s=[];break;case"textarea":i=Sh(e,i),n=Sh(e,n),s=[];break;default:typeof i.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=Ll)}bh(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"&&(vo.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"&&(vo.hasOwnProperty(l)?(u!=null&&l==="onScroll"&&ke("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)}};cE=function(e,t,r,n){r!==n&&(t.flags|=4)};function Pa(e,t){if(!Be)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 lt(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 ib(e,t,r){var n=t.pendingProps;switch(Df(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return lt(t),null;case 1:return wt(t.type)&&$l(),lt(t),null;case 3:return n=t.stateNode,zs(),Ne(bt),Ne(ht),bf(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Iu(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,hr!==null&&(ud(hr),hr=null))),ed(e,t),lt(t),null;case 5:Ff(t);var i=wi(_o.current);if(r=t.type,e!==null&&t.stateNode!=null)lE(e,t,r,n,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(R(166));return lt(t),null}if(e=wi(_r.current),Iu(t)){n=t.stateNode,r=t.type;var s=t.memoizedProps;switch(n[wr]=t,n[Bo]=s,e=(t.mode&1)!==0,r){case"dialog":ke("cancel",n),ke("close",n);break;case"iframe":case"object":case"embed":ke("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[wr]=t,e[Bo]=n,uE(e,t,!1,!1),t.stateNode=e;e:{switch(a=wh(r,n),r){case"dialog":ke("cancel",e),ke("close",e),i=n;break;case"iframe":case"object":case"embed":ke("load",e),i=n;break;case"video":case"audio":for(i=0;iqs&&(t.flags|=128,n=!0,Pa(s,!1),t.lanes=4194304)}else{if(!n)if(e=Vl(a),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Pa(s,!0),s.tail===null&&s.tailMode==="hidden"&&!a.alternate&&!Be)return lt(t),null}else 2*je()-s.renderingStartTime>qs&&r!==1073741824&&(t.flags|=128,n=!0,Pa(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=je(),t.sibling=null,r=_e.current,Fe(_e,n?r&1|2:r&1),t):(lt(t),null);case 22:case 23:return Of(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?$t&1073741824&&(lt(t),t.subtreeFlags&6&&(t.flags|=8192)):lt(t),null;case 24:return null;case 25:return null}throw Error(R(156,t.tag))}function sb(e,t){switch(Df(t),t.tag){case 1:return wt(t.type)&&$l(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return zs(),Ne(bt),Ne(ht),bf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ff(t),null;case 13:if(Ne(_e),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(R(340));Rs()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ne(_e),null;case 4:return zs(),null;case 10:return vf(t.type._context),null;case 22:case 23:return Of(),null;case 24:return null;default:return null}}var $u=!1,ct=!1,ab=typeof WeakSet=="function"?WeakSet:Set,G=null;function Ts(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Oe(e,t,n)}else r.current=null}function td(e,t,r){try{r()}catch(n){Oe(e,t,n)}}var k0=!1;function ob(e,t){if(Oh=Bl,e=m2(),yf(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(jh={focusedElem:e,selectionRange:r},Bl=!1,G=t;G!==null;)if(t=G,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,G=e;else for(;G!==null;){t=G;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:cr(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(R(163))}}catch(E){Oe(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,G=e;break}G=t.return}return f=k0,k0=!1,f}function io(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&&td(t,r,s)}i=i.next}while(i!==n)}}function xc(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 rd(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 pE(e){var t=e.alternate;t!==null&&(e.alternate=null,pE(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[wr],delete t[Bo],delete t[zh],delete t[VF],delete t[qF])),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 hE(e){return e.tag===5||e.tag===3||e.tag===4}function N0(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||hE(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 nd(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=Ll));else if(n!==4&&(e=e.child,e!==null))for(nd(e,t,r),e=e.sibling;e!==null;)nd(e,t,r),e=e.sibling}function id(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(id(e,t,r),e=e.sibling;e!==null;)id(e,t,r),e=e.sibling}var rt=null,pr=!1;function Fn(e,t,r){for(r=r.child;r!==null;)dE(e,t,r),r=r.sibling}function dE(e,t,r){if(Ir&&typeof Ir.onCommitFiberUnmount=="function")try{Ir.onCommitFiberUnmount(hc,r)}catch{}switch(r.tag){case 5:ct||Ts(r,t);case 6:var n=rt,i=pr;rt=null,Fn(e,t,r),rt=n,pr=i,rt!==null&&(pr?(e=rt,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):rt.removeChild(r.stateNode));break;case 18:rt!==null&&(pr?(e=rt,r=r.stateNode,e.nodeType===8?xp(e.parentNode,r):e.nodeType===1&&xp(e,r),bo(e)):xp(rt,r.stateNode));break;case 4:n=rt,i=pr,rt=r.stateNode.containerInfo,pr=!0,Fn(e,t,r),rt=n,pr=i;break;case 0:case 11:case 14:case 15:if(!ct&&(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)&&td(r,t,a),i=i.next}while(i!==n)}Fn(e,t,r);break;case 1:if(!ct&&(Ts(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(o){Oe(r,t,o)}Fn(e,t,r);break;case 21:Fn(e,t,r);break;case 22:r.mode&1?(ct=(n=ct)||r.memoizedState!==null,Fn(e,t,r),ct=n):Fn(e,t,r);break;default:Fn(e,t,r)}}function B0(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new ab),t.forEach(function(n){var i=yb.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function lr(e,t){var r=t.deletions;if(r!==null)for(var n=0;ni&&(i=a),n&=~s}if(n=i,n=je()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*lb(n/1960))-n,10e?16:e,jn===null)var n=!1;else{if(e=jn,jn=null,Xl=0,xe&6)throw Error(R(331));var i=xe;for(xe|=4,G=e.current;G!==null;){var s=G,a=s.child;if(G.flags&16){var o=s.deletions;if(o!==null){for(var u=0;uje()-$f?Ni(e,0):Lf|=r),Pt(e,t)}function CE(e,t){t===0&&(e.mode&1?(t=bu,bu<<=1,!(bu&130023424)&&(bu=4194304)):t=1);var r=Dt();e=on(e,t),e!==null&&(Zo(e,t,r),Pt(e,r))}function mb(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),CE(e,r)}function yb(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(R(314))}n!==null&&n.delete(t),CE(e,r)}var vE;vE=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||bt.current)Ft=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return Ft=!1,nb(e,t,r);Ft=!!(e.flags&131072)}else Ft=!1,Be&&t.flags&1048576&&F2(t,jl,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;cl(e,t),e=t.pendingProps;var i=js(t,ht.current);Is(t,r),i=Pf(null,t,n,e,i,r);var s=kf();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,wt(n)?(s=!0,Ml(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Tf(t),i.updater=Ec,t.stateNode=i,i._reactInternals=t,Xh(t,n,e,r),t=Qh(null,t,n,!0,s,r)):(t.tag=0,Be&&s&&gf(t),mt(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(cl(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=Db(n),e=cr(n,e),i){case 0:t=Gh(null,t,n,e,r);break e;case 1:t=b0(null,t,n,e,r);break e;case 11:t=S0(null,t,n,e,r);break e;case 14:t=F0(null,t,n,cr(n.type,e),r);break e}throw Error(R(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:cr(n,i),Gh(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:cr(n,i),b0(e,t,n,i,r);case 3:e:{if(sE(t),e===null)throw Error(R(387));n=t.pendingProps,s=t.memoizedState,i=s.element,B2(e,t),zl(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=Vs(Error(R(423)),t),t=w0(e,t,n,r,i);break e}else if(n!==i){i=Vs(Error(R(424)),t),t=w0(e,t,n,r,i);break e}else for(Ot=Hn(t.stateNode.containerInfo.firstChild),jt=t,Be=!0,hr=null,r=k2(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Rs(),n===i){t=un(e,t,r);break e}mt(e,t,n,r)}t=t.child}return t;case 5:return I2(t),e===null&&Hh(t),n=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,a=i.children,Rh(n,i)?a=null:s!==null&&Rh(n,s)&&(t.flags|=32),iE(e,t),mt(e,t,a,r),t.child;case 6:return e===null&&Hh(t),null;case 13:return aE(e,t,r);case 4:return Sf(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Us(t,null,n,r):mt(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:cr(n,i),S0(e,t,n,i,r);case 7:return mt(e,t,t.pendingProps,r),t.child;case 8:return mt(e,t,t.pendingProps.children,r),t.child;case 12:return mt(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,Fe(Rl,n._currentValue),n._currentValue=a,s!==null)if(Er(s.value,a)){if(s.children===i.children&&!bt.current){t=un(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=tn(-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),Wh(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(R(341));a.lanes|=r,o=a.alternate,o!==null&&(o.lanes|=r),Wh(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}mt(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,Is(t,r),i=nr(i),n=n(i),t.flags|=1,mt(e,t,n,r),t.child;case 14:return n=t.type,i=cr(n,t.pendingProps),i=cr(n.type,i),F0(e,t,n,i,r);case 15:return rE(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:cr(n,i),cl(e,t),t.tag=1,wt(n)?(e=!0,Ml(t)):e=!1,Is(t,r),Z2(t,n,i),Xh(t,n,i,r),Qh(null,t,n,!0,e,r);case 19:return oE(e,t,r);case 22:return nE(e,t,r)}throw Error(R(156,t.tag))};function AE(e,t){return GD(e,t)}function gb(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 er(e,t,r,n){return new gb(e,t,r,n)}function Rf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Db(e){if(typeof e=="function")return Rf(e)?1:0;if(e!=null){if(e=e.$$typeof,e===sf)return 11;if(e===af)return 14}return 2}function Kn(e,t){var r=e.alternate;return r===null?(r=er(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 dl(e,t,r,n,i,s){var a=2;if(n=e,typeof e=="function")Rf(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case ms:return Bi(r.children,i,s,t);case nf:a=8,i|=8;break;case Dh:return e=er(12,r,t,i|2),e.elementType=Dh,e.lanes=s,e;case Eh:return e=er(13,r,t,i),e.elementType=Eh,e.lanes=s,e;case xh:return e=er(19,r,t,i),e.elementType=xh,e.lanes=s,e;case ID:return vc(r,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ND:a=10;break e;case BD:a=9;break e;case sf:a=11;break e;case af:a=14;break e;case _n:a=16,n=null;break e}throw Error(R(130,e==null?e:typeof e,""))}return t=er(a,r,t,i),t.elementType=e,t.type=n,t.lanes=s,t}function Bi(e,t,r,n){return e=er(7,e,n,t),e.lanes=r,e}function vc(e,t,r,n){return e=er(22,e,n,t),e.elementType=ID,e.lanes=r,e.stateNode={isHidden:!1},e}function wp(e,t,r){return e=er(6,e,null,t),e.lanes=r,e}function Pp(e,t,r){return t=er(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Eb(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=lp(0),this.expirationTimes=lp(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=lp(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Uf(e,t,r,n,i,s,a,o,u){return e=new Eb(e,t,r,o,u),t===1?(t=1,s===!0&&(t|=8)):t=0,s=er(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Tf(s),e}function xb(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(bE)}catch(e){console.error(e)}}bE(),bD.exports=Ht;var Sb=bD.exports,R0=Sb;yh.createRoot=R0.createRoot,yh.hydrateRoot=R0.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 jo(){return jo=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Hf(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function vb(){return Math.random().toString(36).substr(2,8)}function z0(e,t){return{usr:e.state,key:e.key,idx:t}}function ld(e,t,r,n){return r===void 0&&(r=null),jo({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?sa(t):t,{state:r,key:t&&t.key||n||vb()})}function Ql(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 sa(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 Ab(e,t,r,n){n===void 0&&(n={});let{window:i=document.defaultView,v5Compat:s=!1}=n,a=i.history,o=jn.Pop,u=null,l=c();l==null&&(l=0,a.replaceState(jo({},a.state,{idx:l}),""));function c(){return(a.state||{idx:null}).idx}function p(){o=jn.Pop;let E=c(),g=E==null?null:E-l;l=E,u&&u({action:o,location:y.location,delta:g})}function h(E,g){o=jn.Push;let m=ld(y.location,E,g);r&&r(m,E),l=c()+1;let D=z0(m,l),x=y.createHref(m);try{a.pushState(D,"",x)}catch(A){if(A instanceof DOMException&&A.name==="DataCloneError")throw A;i.location.assign(x)}s&&u&&u({action:o,location:y.location,delta:1})}function d(E,g){o=jn.Replace;let m=ld(y.location,E,g);r&&r(m,E),l=c();let D=z0(m,l),x=y.createHref(m);a.replaceState(D,"",x),s&&u&&u({action:o,location:y.location,delta:0})}function f(E){let g=i.location.origin!=="null"?i.location.origin:i.location.href,m=typeof E=="string"?E:Ql(E);return m=m.replace(/ $/,"%20"),Re(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(E){if(u)throw new Error("A history only accepts one active listener");return i.addEventListener(U0,p),u=E,()=>{i.removeEventListener(U0,p),u=null}},createHref(E){return t(i,E)},createURL:f,encodeLocation(E){let g=f(E);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:h,replace:d,go(E){return a.go(E)}};return y}var V0;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(V0||(V0={}));function Tb(e,t,r){return r===void 0&&(r="/"),Sb(e,t,r,!1)}function Sb(e,t,r,n){let i=typeof t=="string"?sa(t):t,s=Wf(i.pathname||"/",r);if(s==null)return null;let a=TE(e);Fb(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("/")&&(Re(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=Kn([n,u.relativePath]),c=r.concat(u);s.children&&s.children.length>0&&(Re(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+l+'".')),TE(s.children,t,c,l)),!(s.path==null&&!s.index)&&t.push({path:l,score:Ib(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 SE(s.path))i(s,a,u)}),t}function SE(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=SE(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 Fb(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:_b(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const bb=/^:[\w-]+$/,wb=3,Pb=2,kb=1,Nb=10,Bb=-2,q0=e=>e==="*";function Ib(e,t){let r=e.split("/"),n=r.length;return r.some(q0)&&(n+=Bb),t&&(n+=Pb),r.filter(i=>!q0(i)).reduce((i,s)=>i+(bb.test(s)?wb:s===""?kb:Nb),n)}function _b(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 Lb(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 $b(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),Hf(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 Ob(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Hf(!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 Wf(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 Mb=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,jb=e=>Mb.test(e);function Rb(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:i=""}=typeof e=="string"?sa(e):e,s;if(r)if(jb(r))s=r;else{if(r.includes("//")){let a=r;r=r.replace(/\/\/+/g,"/"),Hf(!1,"Pathnames cannot have embedded double slashes - normalizing "+(a+" -> "+r))}r.startsWith("/")?s=W0(r.substring(1),"/"):s=W0(r,t)}else s=t;return{pathname:s,search:Vb(n),hash:qb(i)}}function W0(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 kp(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 Ub(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function Jf(e,t){let r=Ub(e);return t?r.map((n,i)=>i===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function Xf(e,t,r,n){n===void 0&&(n=!1);let i;typeof e=="string"?i=sa(e):(i=jo({},e),Re(!i.pathname||!i.pathname.includes("?"),kp("?","pathname","search",i)),Re(!i.pathname||!i.pathname.includes("#"),kp("#","pathname","hash",i)),Re(!i.search||!i.search.includes("#"),kp("#","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=Rb(i,o),l=a&&a!=="/"&&a.endsWith("/"),c=(s||a===".")&&r.endsWith("/");return!u.pathname.endsWith("/")&&(l||c)&&(u.pathname+="/"),u}const Kn=e=>e.join("/").replace(/\/\/+/g,"/"),zb=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Vb=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,qb=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Hb(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const FE=["post","put","patch","delete"];new Set(FE);const Wb=["get",...FE];new Set(Wb);/** + */function jo(){return jo=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Hf(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function bb(){return Math.random().toString(36).substr(2,8)}function z0(e,t){return{usr:e.state,key:e.key,idx:t}}function ld(e,t,r,n){return r===void 0&&(r=null),jo({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?sa(t):t,{state:r,key:t&&t.key||n||bb()})}function Ql(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 sa(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 wb(e,t,r,n){n===void 0&&(n={});let{window:i=document.defaultView,v5Compat:s=!1}=n,a=i.history,o=Rn.Pop,u=null,l=c();l==null&&(l=0,a.replaceState(jo({},a.state,{idx:l}),""));function c(){return(a.state||{idx:null}).idx}function p(){o=Rn.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=Rn.Push;let m=ld(y.location,x,g);r&&r(m,x),l=c()+1;let D=z0(m,l),E=y.createHref(m);try{a.pushState(D,"",E)}catch(A){if(A instanceof DOMException&&A.name==="DataCloneError")throw A;i.location.assign(E)}s&&u&&u({action:o,location:y.location,delta:1})}function d(x,g){o=Rn.Replace;let m=ld(y.location,x,g);r&&r(m,x),l=c();let D=z0(m,l),E=y.createHref(m);a.replaceState(D,"",E),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:Ql(x);return m=m.replace(/ $/,"%20"),Re(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(U0,p),u=x,()=>{i.removeEventListener(U0,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 V0;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(V0||(V0={}));function Pb(e,t,r){return r===void 0&&(r="/"),kb(e,t,r,!1)}function kb(e,t,r,n){let i=typeof t=="string"?sa(t):t,s=Wf(i.pathname||"/",r);if(s==null)return null;let a=wE(e);Nb(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("/")&&(Re(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=Gn([n,u.relativePath]),c=r.concat(u);s.children&&s.children.length>0&&(Re(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+l+'".')),wE(s.children,t,c,l)),!(s.path==null&&!s.index)&&t.push({path:l,score:Ob(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 PE(s.path))i(s,a,u)}),t}function PE(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=PE(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 Nb(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:jb(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const Bb=/^:[\w-]+$/,Ib=3,_b=2,Lb=1,$b=10,Mb=-2,q0=e=>e==="*";function Ob(e,t){let r=e.split("/"),n=r.length;return r.some(q0)&&(n+=Mb),t&&(n+=_b),r.filter(i=>!q0(i)).reduce((i,s)=>i+(Bb.test(s)?Ib:s===""?Lb:$b),n)}function jb(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 Rb(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 Ub(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),Hf(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 zb(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Hf(!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 Wf(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 Vb=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,qb=e=>Vb.test(e);function Hb(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:i=""}=typeof e=="string"?sa(e):e,s;if(r)if(qb(r))s=r;else{if(r.includes("//")){let a=r;r=r.replace(/\/\/+/g,"/"),Hf(!1,"Pathnames cannot have embedded double slashes - normalizing "+(a+" -> "+r))}r.startsWith("/")?s=W0(r.substring(1),"/"):s=W0(r,t)}else s=t;return{pathname:s,search:Xb(n),hash:Kb(i)}}function W0(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 kp(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 Wb(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function Jf(e,t){let r=Wb(e);return t?r.map((n,i)=>i===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function Xf(e,t,r,n){n===void 0&&(n=!1);let i;typeof e=="string"?i=sa(e):(i=jo({},e),Re(!i.pathname||!i.pathname.includes("?"),kp("?","pathname","search",i)),Re(!i.pathname||!i.pathname.includes("#"),kp("#","pathname","hash",i)),Re(!i.search||!i.search.includes("#"),kp("#","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=Hb(i,o),l=a&&a!=="/"&&a.endsWith("/"),c=(s||a===".")&&r.endsWith("/");return!u.pathname.endsWith("/")&&(l||c)&&(u.pathname+="/"),u}const Gn=e=>e.join("/").replace(/\/\/+/g,"/"),Jb=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Xb=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Kb=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Gb(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const kE=["post","put","patch","delete"];new Set(kE);const Qb=["get",...kE];new Set(Qb);/** * 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 Ro(){return Ro=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=Xf(l,JSON.parse(a),s,c.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:Kn([t,p.pathname])),(c.replace?n.replace:n.push)(p,c.state,c)},[t,n,a,s,e])}const Gb=I.createContext(null);function Qb(e){let t=I.useContext(yn).outlet;return t&&I.createElement(Gb.Provider,{value:e},t)}function kE(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=I.useContext(ui),{matches:i}=I.useContext(yn),{pathname:s}=oa(),a=JSON.stringify(Jf(i,n.v7_relativeSplatPath));return I.useMemo(()=>Xf(e,JSON.parse(a),s,r==="path"),[e,a,s,r])}function Yb(e,t){return Zb(e,t)}function Zb(e,t,r,n){aa()||Re(!1);let{navigator:i}=I.useContext(ui),{matches:s}=I.useContext(yn),a=s[s.length-1],o=a?a.params:{};a&&a.pathname;let u=a?a.pathnameBase:"/";a&&a.route;let l=oa(),c;if(t){var p;let E=typeof t=="string"?sa(t):t;u==="/"||(p=E.pathname)!=null&&p.startsWith(u)||Re(!1),c=E}else c=l;let h=c.pathname||"/",d=h;if(u!=="/"){let E=u.replace(/^\//,"").split("/");d="/"+h.replace(/^\//,"").split("/").slice(E.length).join("/")}let f=Tb(e,{pathname:d}),y=iw(f&&f.map(E=>Object.assign({},E,{params:Object.assign({},o,E.params),pathname:Kn([u,i.encodeLocation?i.encodeLocation(E.pathname).pathname:E.pathname]),pathnameBase:E.pathnameBase==="/"?u:Kn([u,i.encodeLocation?i.encodeLocation(E.pathnameBase).pathname:E.pathnameBase])})),s,r,n);return t&&y?I.createElement(bc.Provider,{value:{location:Ro({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:jn.Pop}},y):y}function ew(){let e=uw(),t=Hb(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 tw=I.createElement(ew,null);class rw 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(yn.Provider,{value:this.props.routeContext},I.createElement(bE.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function nw(e){let{routeContext:t,match:r,children:n}=e,i=I.useContext(Kf);return i&&i.static&&i.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=r.route.id),I.createElement(yn.Provider,{value:t},n)}function iw(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||Re(!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,E=null;r&&(d=o&&p.route.id?o[p.route.id]:void 0,y=p.route.errorElement||tw,u&&(l<0&&h===0?(cw("route-fallback",!1),f=!0,E=null):l===h&&(f=!0,E=p.route.hydrateFallbackElement||null)));let g=t.concat(a.slice(0,h+1)),m=()=>{let D;return d?D=y:f?D=E:p.route.Component?D=I.createElement(p.route.Component,null):p.route.element?D=p.route.element:D=c,I.createElement(nw,{match:p,routeContext:{outlet:c,matches:g,isDataRoute:r!=null},children:D})};return r&&(p.route.ErrorBoundary||p.route.errorElement||h===0)?I.createElement(rw,{location:r.location,revalidation:r.revalidation,component:y,error:d,children:m(),routeContext:{outlet:null,matches:g,isDataRoute:!0}}):m()},null)}var NE=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(NE||{}),Yl=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}(Yl||{});function sw(e){let t=I.useContext(Kf);return t||Re(!1),t}function aw(e){let t=I.useContext(Jb);return t||Re(!1),t}function ow(e){let t=I.useContext(yn);return t||Re(!1),t}function BE(e){let t=ow(),r=t.matches[t.matches.length-1];return r.route.id||Re(!1),r.route.id}function uw(){var e;let t=I.useContext(bE),r=aw(Yl.UseRouteError),n=BE(Yl.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function lw(){let{router:e}=sw(NE.UseNavigateStable),t=BE(Yl.UseNavigateStable),r=I.useRef(!1);return wE(()=>{r.current=!0}),I.useCallback(function(i,s){s===void 0&&(s={}),r.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Ro({fromRouteId:t},s)))},[e,t])}const J0={};function cw(e,t,r){!t&&!J0[e]&&(J0[e]=!0)}function pw(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 hw(e){let{to:t,replace:r,state:n,relative:i}=e;aa()||Re(!1);let{future:s,static:a}=I.useContext(ui),{matches:o}=I.useContext(yn),{pathname:u}=oa(),l=PE(),c=Xf(t,Jf(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 dw(e){return Qb(e.context)}function Ai(e){Re(!1)}function fw(e){let{basename:t="/",children:r=null,location:n,navigationType:i=jn.Pop,navigator:s,static:a=!1,future:o}=e;aa()&&Re(!1);let u=t.replace(/^\/*/,"/"),l=I.useMemo(()=>({basename:u,navigator:s,static:a,future:Ro({v7_relativeSplatPath:!1},o)}),[u,o,s,a]);typeof n=="string"&&(n=sa(n));let{pathname:c="/",search:p="",hash:h="",state:d=null,key:f="default"}=n,y=I.useMemo(()=>{let E=Wf(c,u);return E==null?null:{location:{pathname:E,search:p,hash:h,state:d,key:f},navigationType:i}},[u,c,p,h,d,f,i]);return y==null?null:I.createElement(ui.Provider,{value:l},I.createElement(bc.Provider,{children:r,value:y}))}function mw(e){let{children:t,location:r}=e;return Yb(cd(t),r)}new Promise(()=>{});function cd(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,cd(n.props.children,s));return}n.type!==Ai&&Re(!1),!n.props.index||!n.props.children||Re(!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=cd(n.props.children,s)),r.push(a)}),r}/** + */function Ro(){return Ro=Object.assign?Object.assign.bind():function(e){for(var t=1;t{o.current=!0}),B.useCallback(function(l,c){if(c===void 0&&(c={}),!o.current)return;if(typeof l=="number"){n.go(l);return}let p=Xf(l,JSON.parse(a),s,c.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:Gn([t,p.pathname])),(c.replace?n.replace:n.push)(p,c.state,c)},[t,n,a,s,e])}const tw=B.createContext(null);function rw(e){let t=B.useContext(yn).outlet;return t&&B.createElement(tw.Provider,{value:e},t)}function _E(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=B.useContext(li),{matches:i}=B.useContext(yn),{pathname:s}=oa(),a=JSON.stringify(Jf(i,n.v7_relativeSplatPath));return B.useMemo(()=>Xf(e,JSON.parse(a),s,r==="path"),[e,a,s,r])}function nw(e,t){return iw(e,t)}function iw(e,t,r,n){aa()||Re(!1);let{navigator:i}=B.useContext(li),{matches:s}=B.useContext(yn),a=s[s.length-1],o=a?a.params:{};a&&a.pathname;let u=a?a.pathnameBase:"/";a&&a.route;let l=oa(),c;if(t){var p;let x=typeof t=="string"?sa(t):t;u==="/"||(p=x.pathname)!=null&&p.startsWith(u)||Re(!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=Pb(e,{pathname:d}),y=lw(f&&f.map(x=>Object.assign({},x,{params:Object.assign({},o,x.params),pathname:Gn([u,i.encodeLocation?i.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?u:Gn([u,i.encodeLocation?i.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),s,r,n);return t&&y?B.createElement(bc.Provider,{value:{location:Ro({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:Rn.Pop}},y):y}function sw(){let e=dw(),t=Gb(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 B.createElement(B.Fragment,null,B.createElement("h2",null,"Unexpected Application Error!"),B.createElement("h3",{style:{fontStyle:"italic"}},t),r?B.createElement("pre",{style:i},r):null,s)}const aw=B.createElement(sw,null);class ow extends B.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?B.createElement(yn.Provider,{value:this.props.routeContext},B.createElement(NE.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function uw(e){let{routeContext:t,match:r,children:n}=e,i=B.useContext(Kf);return i&&i.static&&i.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=r.route.id),B.createElement(yn.Provider,{value:t},n)}function lw(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||Re(!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||aw,u&&(l<0&&h===0?(mw("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=B.createElement(p.route.Component,null):p.route.element?D=p.route.element:D=c,B.createElement(uw,{match:p,routeContext:{outlet:c,matches:g,isDataRoute:r!=null},children:D})};return r&&(p.route.ErrorBoundary||p.route.errorElement||h===0)?B.createElement(ow,{location:r.location,revalidation:r.revalidation,component:y,error:d,children:m(),routeContext:{outlet:null,matches:g,isDataRoute:!0}}):m()},null)}var LE=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(LE||{}),Yl=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}(Yl||{});function cw(e){let t=B.useContext(Kf);return t||Re(!1),t}function pw(e){let t=B.useContext(Yb);return t||Re(!1),t}function hw(e){let t=B.useContext(yn);return t||Re(!1),t}function $E(e){let t=hw(),r=t.matches[t.matches.length-1];return r.route.id||Re(!1),r.route.id}function dw(){var e;let t=B.useContext(NE),r=pw(Yl.UseRouteError),n=$E(Yl.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function fw(){let{router:e}=cw(LE.UseNavigateStable),t=$E(Yl.UseNavigateStable),r=B.useRef(!1);return BE(()=>{r.current=!0}),B.useCallback(function(i,s){s===void 0&&(s={}),r.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Ro({fromRouteId:t},s)))},[e,t])}const J0={};function mw(e,t,r){!t&&!J0[e]&&(J0[e]=!0)}function yw(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 gw(e){let{to:t,replace:r,state:n,relative:i}=e;aa()||Re(!1);let{future:s,static:a}=B.useContext(li),{matches:o}=B.useContext(yn),{pathname:u}=oa(),l=IE(),c=Xf(t,Jf(o,s.v7_relativeSplatPath),u,i==="path"),p=JSON.stringify(c);return B.useEffect(()=>l(JSON.parse(p),{replace:r,state:n,relative:i}),[l,p,i,r,n]),null}function Dw(e){return rw(e.context)}function Bn(e){Re(!1)}function Ew(e){let{basename:t="/",children:r=null,location:n,navigationType:i=Rn.Pop,navigator:s,static:a=!1,future:o}=e;aa()&&Re(!1);let u=t.replace(/^\/*/,"/"),l=B.useMemo(()=>({basename:u,navigator:s,static:a,future:Ro({v7_relativeSplatPath:!1},o)}),[u,o,s,a]);typeof n=="string"&&(n=sa(n));let{pathname:c="/",search:p="",hash:h="",state:d=null,key:f="default"}=n,y=B.useMemo(()=>{let x=Wf(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:B.createElement(li.Provider,{value:l},B.createElement(bc.Provider,{children:r,value:y}))}function xw(e){let{children:t,location:r}=e;return nw(cd(t),r)}new Promise(()=>{});function cd(e,t){t===void 0&&(t=[]);let r=[];return B.Children.forEach(e,(n,i)=>{if(!B.isValidElement(n))return;let s=[...t,i];if(n.type===B.Fragment){r.push.apply(r,cd(n.props.children,s));return}n.type!==Bn&&Re(!1),!n.props.index||!n.props.children||Re(!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=cd(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 pd(){return pd=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[i]=e[i]);return r}function gw(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Dw(e,t){return e.button===0&&(!t||t==="_self")&&!gw(e)}const Ew=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],xw="6";try{window.__reactRouterVersion=xw}catch{}const Cw="startTransition",X0=lS[Cw];function vw(e){let{basename:t,children:r,future:n,window:i}=e,s=I.useRef();s.current==null&&(s.current=Cb({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&&X0?X0(()=>u(p)):u(p)},[u,l]);return I.useLayoutEffect(()=>a.listen(c),[a,c]),I.useEffect(()=>pw(n),[n]),I.createElement(fw,{basename:t,children:r,location:o.location,navigationType:o.action,navigator:a,future:n})}const Aw=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Tw=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Sw=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=yw(t,Ew),{basename:d}=I.useContext(ui),f,y=!1;if(typeof l=="string"&&Tw.test(l)&&(f=l,Aw))try{let D=new URL(window.location.href),x=l.startsWith("//")?new URL(D.protocol+l):new URL(l),A=Wf(x.pathname,d);x.origin===D.origin&&A!=null?l=A+x.search+x.hash:y=!0}catch{}let E=Xb(l,{relative:i}),g=Fw(l,{replace:a,state:o,target:u,preventScrollReset:c,relative:i,viewTransition:p});function m(D){n&&n(D),D.defaultPrevented||g(D)}return I.createElement("a",pd({},h,{href:f||E,onClick:y||s?n:m,ref:r,target:u}))});var K0;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(K0||(K0={}));var G0;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(G0||(G0={}));function Fw(e,t){let{target:r,replace:n,state:i,preventScrollReset:s,relative:a,viewTransition:o}=t===void 0?{}:t,u=PE(),l=oa(),c=kE(e,{relative:a});return I.useCallback(p=>{if(Dw(p,r)){p.preventDefault();let h=n!==void 0?n:Ql(l)===Ql(c);u(e,{replace:h,state:i,preventScrollReset:s,relative:a,viewTransition:o})}},[l,u,c,n,i,r,e,s,a,o])}var bw={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 ww=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Bt=(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,...bw,width:i,height:i,stroke:n,strokeWidth:a?Number(s)*24/Number(i):s,className:`lucide lucide-${ww(e)}`,...u},[...t.map(([c,p])=>I.createElement(c,p)),...(Array.isArray(o)?o:[o])||[]]));return r.displayName=`${e}`,r},Pw=Bt("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"}]]),kw=Bt("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"}]]),IE=Bt("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),_E=Bt("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"}]]),Nw=Bt("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"}]]),Bw=Bt("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"}]]),Iw=Bt("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"}]]),_w=Bt("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"}]]),LE=Bt("Play",[["polygon",{points:"5 3 19 12 5 21 5 3",key:"191637"}]]),Lw=Bt("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"}]]),$E=Bt("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"}]]),$w=Bt("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"}]]),Ow=Bt("Smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]),Mw=Bt("Zap",[["polygon",{points:"13 2 3 14 12 14 11 22 21 10 12 10 13 2",key:"45s27k"}]]);function jw(){const e=oa(),t=[{path:"/formatter",label:"Formatter",icon:Bw},{path:"/parser",label:"JSON Parser",icon:kw},{path:"/diff",label:"Diff Viewer",icon:Pw},{path:"/unit-conversion",label:"Unit Converter",icon:$E}];return S.jsxs("div",{className:"flex h-screen bg-background text-foreground font-sans",children:[S.jsxs("aside",{className:"w-64 border-r border-border bg-card",children:[S.jsxs("div",{className:"p-6 flex items-center gap-2 border-b border-border",children:[S.jsx(Nw,{className:"w-6 h-6 text-primary"}),S.jsx("h1",{className:"text-xl font-bold tracking-tight",children:"DevAssistant"})]}),S.jsx("nav",{className:"p-4 space-y-2",children:t.map(r=>{const n=e.pathname===r.path,i=r.icon;return S.jsxs(Sw,{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:[S.jsx(i,{className:"w-5 h-5"}),r.label]},r.path)})})]}),S.jsx("main",{className:"flex-1 overflow-auto bg-background/50",children:S.jsx("div",{className:"h-full p-8 max-w-7xl mx-auto",children:S.jsx(dw,{})})})]})}function Q0(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]:{};ju.initial(e),ju.handler(t);var r={current:e},n=Ja(l3)(r,t),i=Ja(u3)(r),s=Ja(ju.changes)(e),a=Ja(o3)(r);function o(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(c){return c};return ju.selector(l),l(r.current)}function u(l){Qw(n,i,s,a)(l)}return[o,u]}function o3(e,t){return Uo(t)?t(e.current):t}function u3(e,t){return e.current=tg(tg({},e.current),t),t}function l3(e,t,r){return Uo(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 c3={create:a3},p3={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"}};function h3(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 vw(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Aw(e,t){return e.button===0&&(!t||t==="_self")&&!vw(e)}const Tw=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],Sw="6";try{window.__reactRouterVersion=Sw}catch{}const Fw="startTransition",X0=fS[Fw];function bw(e){let{basename:t,children:r,future:n,window:i}=e,s=B.useRef();s.current==null&&(s.current=Fb({window:i,v5Compat:!0}));let a=s.current,[o,u]=B.useState({action:a.action,location:a.location}),{v7_startTransition:l}=n||{},c=B.useCallback(p=>{l&&X0?X0(()=>u(p)):u(p)},[u,l]);return B.useLayoutEffect(()=>a.listen(c),[a,c]),B.useEffect(()=>yw(n),[n]),B.createElement(Ew,{basename:t,children:r,location:o.location,navigationType:o.action,navigator:a,future:n})}const ww=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Pw=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,kw=B.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=Cw(t,Tw),{basename:d}=B.useContext(li),f,y=!1;if(typeof l=="string"&&Pw.test(l)&&(f=l,ww))try{let D=new URL(window.location.href),E=l.startsWith("//")?new URL(D.protocol+l):new URL(l),A=Wf(E.pathname,d);E.origin===D.origin&&A!=null?l=A+E.search+E.hash:y=!0}catch{}let x=Zb(l,{relative:i}),g=Nw(l,{replace:a,state:o,target:u,preventScrollReset:c,relative:i,viewTransition:p});function m(D){n&&n(D),D.defaultPrevented||g(D)}return B.createElement("a",pd({},h,{href:f||x,onClick:y||s?n:m,ref:r,target:u}))});var K0;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(K0||(K0={}));var G0;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(G0||(G0={}));function Nw(e,t){let{target:r,replace:n,state:i,preventScrollReset:s,relative:a,viewTransition:o}=t===void 0?{}:t,u=IE(),l=oa(),c=_E(e,{relative:a});return B.useCallback(p=>{if(Aw(p,r)){p.preventDefault();let h=n!==void 0?n:Ql(l)===Ql(c);u(e,{replace:h,state:i,preventScrollReset:s,relative:a,viewTransition:o})}},[l,u,c,n,i,r,e,s,a,o])}var Bw={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 Iw=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),qe=(e,t)=>{const r=B.forwardRef(({color:n="currentColor",size:i=24,strokeWidth:s=2,absoluteStrokeWidth:a,children:o,...u},l)=>B.createElement("svg",{ref:l,...Bw,width:i,height:i,stroke:n,strokeWidth:a?Number(s)*24/Number(i):s,className:`lucide lucide-${Iw(e)}`,...u},[...t.map(([c,p])=>B.createElement(c,p)),...(Array.isArray(o)?o:[o])||[]]));return r.displayName=`${e}`,r},_w=qe("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"}]]),Lw=qe("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"}]]),$w=qe("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"}]]),ME=qe("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),OE=qe("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"}]]),Mw=qe("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"}]]),Q0=qe("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"}]]),Ow=qe("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"}]]),jw=qe("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"}]]),Rw=qe("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"}]]),jE=qe("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"}]]),Uw=qe("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"}]]),RE=qe("Play",[["polygon",{points:"5 3 19 12 5 21 5 3",key:"191637"}]]),zw=qe("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"}]]),UE=qe("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"}]]),Vw=qe("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"}]]),qw=qe("Smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]),Hw=qe("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"}]]),Ww=qe("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"}]]),Jw=qe("Zap",[["polygon",{points:"13 2 3 14 12 14 11 22 21 10 12 10 13 2",key:"45s27k"}]]);function Xw(){const e=oa(),t=[{path:"/formatter",label:"Formatter",icon:jw},{path:"/parser",label:"JSON Parser",icon:$w},{path:"/diff",label:"Diff Viewer",icon:_w},{path:"/unit-conversion",label:"Unit Converter",icon:UE},{path:"/image-converter",label:"Image Converter",icon:jE}];return T.jsxs("div",{className:"flex h-screen bg-background text-foreground font-sans",children:[T.jsxs("aside",{className:"w-64 border-r border-border bg-card",children:[T.jsxs("div",{className:"p-6 flex items-center gap-2 border-b border-border",children:[T.jsx(Mw,{className:"w-6 h-6 text-primary"}),T.jsx("h1",{className:"text-xl font-bold tracking-tight",children:"DevAssistant"})]}),T.jsx("nav",{className:"p-4 space-y-2",children:t.map(r=>{const n=e.pathname===r.path,i=r.icon;return T.jsxs(kw,{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:[T.jsx(i,{className:"w-5 h-5"}),r.label]},r.path)})})]}),T.jsx("main",{className:"flex-1 overflow-auto bg-background/50",children:T.jsx("div",{className:"h-full p-8 max-w-7xl mx-auto",children:T.jsx(Dw,{})})})]})}function Y0(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]:{};ju.initial(e),ju.handler(t);var r={current:e},n=Ja(D3)(r,t),i=Ja(g3)(r),s=Ja(ju.changes)(e),a=Ja(y3)(r);function o(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(c){return c};return ju.selector(l),l(r.current)}function u(l){a3(n,i,s,a)(l)}return[o,u]}function y3(e,t){return Uo(t)?t(e.current):t}function g3(e,t){return e.current=rg(rg({},e.current),t),t}function D3(e,t,r){return Uo(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 E3={create:m3},x3={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"}};function C3(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 Ot=M3;function oo(){}function Fs(e,t,r,n){return j3(e,n)||R3(e,t,r,n)}function j3(e,t){return e.editor.getModel(qE(e,t))}function R3(e,t,r,n){return e.editor.createModel(t,r,n?qE(e,n):void 0)}function qE(e,t){return e.Uri.parse(t)}function U3({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:E=oo,onMount:g=oo}){let[m,D]=I.useState(!1),[x,A]=I.useState(!0),b=I.useRef(null),k=I.useRef(null),F=I.useRef(null),M=I.useRef(g),P=I.useRef(E),j=I.useRef(!1);VE(()=>{let H=UE.init();return H.then(ne=>(k.current=ne)&&A(!1)).catch(ne=>(ne==null?void 0:ne.type)!=="cancelation"&&console.error("Monaco initialization: error:",ne)),()=>b.current?Q():H.cancel()}),Ot(()=>{if(b.current&&k.current){let H=b.current.getOriginalEditor(),ne=Fs(k.current,e||"",n||r||"text",s||"");ne!==H.getModel()&&H.setModel(ne)}},[s],m),Ot(()=>{if(b.current&&k.current){let H=b.current.getModifiedEditor(),ne=Fs(k.current,t||"",i||r||"text",a||"");ne!==H.getModel()&&H.setModel(ne)}},[a],m),Ot(()=>{let H=b.current.getModifiedEditor();H.getOption(k.current.editor.EditorOption.readOnly)?H.setValue(t||""):t!==H.getValue()&&(H.executeEdits("",[{range:H.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),H.pushUndoStop())},[t],m),Ot(()=>{var H,ne;(ne=(H=b.current)==null?void 0:H.getModel())==null||ne.original.setValue(e||"")},[e],m),Ot(()=>{let{original:H,modified:ne}=b.current.getModel();k.current.editor.setModelLanguage(H,n||r||"text"),k.current.editor.setModelLanguage(ne,i||r||"text")},[r,n,i],m),Ot(()=>{var H;(H=k.current)==null||H.editor.setTheme(l)},[l],m),Ot(()=>{var H;(H=b.current)==null||H.updateOptions(p)},[p],m);let Y=I.useCallback(()=>{var ge;if(!k.current)return;P.current(k.current);let H=Fs(k.current,e||"",n||r||"text",s||""),ne=Fs(k.current,t||"",i||r||"text",a||"");(ge=b.current)==null||ge.setModel({original:H,modified:ne})},[r,t,i,e,n,s,a]),N=I.useCallback(()=>{var H;!j.current&&F.current&&(b.current=k.current.editor.createDiffEditor(F.current,{automaticLayout:!0,...p}),Y(),(H=k.current)==null||H.editor.setTheme(l),D(!0),j.current=!0)},[p,l,Y]);I.useEffect(()=>{m&&M.current(b.current,k.current)},[m]),I.useEffect(()=>{!x&&!m&&N()},[x,m,N]);function Q(){var ne,ge,$,Z;let H=(ne=b.current)==null?void 0:ne.getModel();o||((ge=H==null?void 0:H.original)==null||ge.dispose()),u||(($=H==null?void 0:H.modified)==null||$.dispose()),(Z=b.current)==null||Z.dispose()}return Rn.createElement(zE,{width:d,height:h,isEditorReady:m,loading:c,_ref:F,className:f,wrapperProps:y})}var z3=U3;I.memo(z3);function V3(e){let t=I.useRef();return I.useEffect(()=>{t.current=e},[e]),t.current}var q3=V3,Ru=new Map;function H3({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:E={},beforeMount:g=oo,onMount:m=oo,onChange:D,onValidate:x=oo}){let[A,b]=I.useState(!1),[k,F]=I.useState(!0),M=I.useRef(null),P=I.useRef(null),j=I.useRef(null),Y=I.useRef(m),N=I.useRef(g),Q=I.useRef(),H=I.useRef(n),ne=q3(s),ge=I.useRef(!1),$=I.useRef(!1);VE(()=>{let te=UE.init();return te.then(ae=>(M.current=ae)&&F(!1)).catch(ae=>(ae==null?void 0:ae.type)!=="cancelation"&&console.error("Monaco initialization: error:",ae)),()=>P.current?J():te.cancel()}),Ot(()=>{var ae,K,se,me;let te=Fs(M.current,e||n||"",t||i||"",s||r||"");te!==((ae=P.current)==null?void 0:ae.getModel())&&(p&&Ru.set(ne,(K=P.current)==null?void 0:K.saveViewState()),(se=P.current)==null||se.setModel(te),p&&((me=P.current)==null||me.restoreViewState(Ru.get(s))))},[s],A),Ot(()=>{var te;(te=P.current)==null||te.updateOptions(l)},[l],A),Ot(()=>{!P.current||n===void 0||(P.current.getOption(M.current.editor.EditorOption.readOnly)?P.current.setValue(n):n!==P.current.getValue()&&($.current=!0,P.current.executeEdits("",[{range:P.current.getModel().getFullModelRange(),text:n,forceMoveMarkers:!0}]),P.current.pushUndoStop(),$.current=!1))},[n],A),Ot(()=>{var ae,K;let te=(ae=P.current)==null?void 0:ae.getModel();te&&i&&((K=M.current)==null||K.editor.setModelLanguage(te,i))},[i],A),Ot(()=>{var te;o!==void 0&&((te=P.current)==null||te.revealLine(o))},[o],A),Ot(()=>{var te;(te=M.current)==null||te.editor.setTheme(a)},[a],A);let Z=I.useCallback(()=>{var te;if(!(!j.current||!M.current)&&!ge.current){N.current(M.current);let ae=s||r,K=Fs(M.current,n||e||"",t||i||"",ae||"");P.current=(te=M.current)==null?void 0:te.editor.create(j.current,{model:K,automaticLayout:!0,...l},c),p&&P.current.restoreViewState(Ru.get(ae)),M.current.editor.setTheme(a),o!==void 0&&P.current.revealLine(o),b(!0),ge.current=!0}},[e,t,r,n,i,s,l,c,p,a,o]);I.useEffect(()=>{A&&Y.current(P.current,M.current)},[A]),I.useEffect(()=>{!k&&!A&&Z()},[k,A,Z]),H.current=n,I.useEffect(()=>{var te,ae;A&&D&&((te=Q.current)==null||te.dispose(),Q.current=(ae=P.current)==null?void 0:ae.onDidChangeModelContent(K=>{$.current||D(P.current.getValue(),K)}))},[A,D]),I.useEffect(()=>{if(A){let te=M.current.editor.onDidChangeMarkers(ae=>{var se;let K=(se=P.current.getModel())==null?void 0:se.uri;if(K&&ae.find(me=>me.path===K.path)){let me=M.current.editor.getModelMarkers({resource:K});x==null||x(me)}});return()=>{te==null||te.dispose()}}return()=>{}},[A,x]);function J(){var te,ae;(te=Q.current)==null||te.dispose(),h?p&&Ru.set(s,P.current.saveViewState()):(ae=P.current.getModel())==null||ae.dispose(),P.current.dispose()}return Rn.createElement(zE,{width:d,height:f,isEditorReady:A,loading:u,_ref:j,className:y,wrapperProps:E})}var W3=H3,J3=I.memo(W3),Hs=J3,X3=Object.create,Gf=Object.defineProperty,K3=Object.getOwnPropertyDescriptor,G3=Object.getOwnPropertyNames,Q3=Object.getPrototypeOf,Y3=Object.prototype.hasOwnProperty,Z3=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Qf=(e,t)=>{for(var r in t)Gf(e,r,{get:t[r],enumerable:!0})},eP=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of G3(t))!Y3.call(e,i)&&i!==r&&Gf(e,i,{get:()=>t[i],enumerable:!(n=K3(t,i))||n.enumerable});return e},tP=(e,t,r)=>(r=e!=null?X3(Q3(e)):{},eP(t||!e||!e.__esModule?Gf(r,"default",{value:e,enumerable:!0}):r,e)),rP=Z3((e,t)=>{var r,n,i,s,a,o,u,l,c,p,h,d,f,y,E,g,m,D,x;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,E=/(['"])(?:[^'"\\\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,x=/[\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*(A,{jsx:b=!1}={}){var k,F,M,P,j,Y,N,Q,H,ne,ge,$,Z,J;for({length:Y}=A,P=0,j="",J=[{tag:"JS"}],k=[],ge=0,$=!1;P":J.pop(),j==="/"||Q.tag==="JSXTagEnd"?(ne="?JSX",$=!0):J.push({tag:"JSXChildren"});break;case"{":J.push({tag:"InterpolationInJSX",nesting:k.length}),ne="?InterpolationInJSX",$=!1;break;case"/":j==="<"&&(J.pop(),J[J.length-1].tag==="JSXChildren"&&J.pop(),J.push({tag:"JSXTagEnd"}))}j=ne,yield{type:"JSXPunctuator",value:N[0]};continue}if(n.lastIndex=P,N=n.exec(A)){P=n.lastIndex,j=N[0],yield{type:"JSXIdentifier",value:N[0]};continue}if(s.lastIndex=P,N=s.exec(A)){P=s.lastIndex,j=N[0],yield{type:"JSXString",value:N[0],closed:N[2]!==void 0};continue}break;case"JSXChildren":if(a.lastIndex=P,N=a.exec(A)){P=a.lastIndex,j=N[0],yield{type:"JSXText",value:N[0]};continue}switch(A[P]){case"<":J.push({tag:"JSXTag"}),P++,j="<",yield{type:"JSXPunctuator",value:"<"};continue;case"{":J.push({tag:"InterpolationInJSX",nesting:k.length}),P++,j="?InterpolationInJSX",$=!1,yield{type:"JSXPunctuator",value:"{"};continue}}if(x.lastIndex=P,N=x.exec(A)){P=x.lastIndex,yield{type:"WhiteSpace",value:N[0]};continue}if(l.lastIndex=P,N=l.exec(A)){P=l.lastIndex,$=!1,u.test(j)&&(j="?NoLineTerminatorHere"),yield{type:"LineTerminatorSequence",value:N[0]};continue}if(c.lastIndex=P,N=c.exec(A)){P=c.lastIndex,p.test(N[0])&&($=!1,u.test(j)&&(j="?NoLineTerminatorHere")),yield{type:"MultiLineComment",value:N[0],closed:N[1]!==void 0};continue}if(y.lastIndex=P,N=y.exec(A)){P=y.lastIndex,$=!1,yield{type:"SingleLineComment",value:N[0]};continue}F=String.fromCodePoint(A.codePointAt(P)),P+=F.length,j=F,$=!1,yield{type:Q.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:F}}}}),nP={};Qf(nP,{__debug:()=>H8,check:()=>V8,doc:()=>jx,format:()=>$c,formatWithCursor:()=>Vx,getSupportInfo:()=>q8,util:()=>Rx,version:()=>y8});var iu=(e,t)=>(r,n,...i)=>r|1&&n==null?void 0:(t.call(n)??n[e]).apply(n,i),iP=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},sP=iu("replaceAll",function(){if(typeof this=="string")return iP}),Pc=sP,aP=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,E=1/0,g=()=>{for(let m=Math.max(y,-l);m<=Math.min(E,l);m+=2){let D,x=d[m-1],A=d[m+1];x&&(d[m-1]=void 0);let b=!1;if(A){let F=A.oldPos-m;b=A&&0<=F&&F=u&&f+1>=o)return a(this.buildValues(D.lastComponent,r,t))||!0;d[m]=D,D.oldPos+1>=u&&(E=Math.min(E,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}},oP=class extends aP{tokenize(t){return t.slice()}join(t){return t}removeEmpty(t){return t}},uP=new oP;function lP(e,t,r){return uP.diff(e,t,r)}var cP=()=>{},pP=cP,HE="cr",WE="crlf",hP="lf",dP=hP,Yf="\r",JE=`\r + `},ng=C3(S3)(zE),F3={config:A3},b3=function(){for(var t=arguments.length,r=new Array(t),n=0;n{n.current=!1}:e,t)}var Mt=J3;function oo(){}function Fs(e,t,r,n){return X3(e,n)||K3(e,t,r,n)}function X3(e,t){return e.editor.getModel(KE(e,t))}function K3(e,t,r,n){return e.editor.createModel(t,r,n?KE(e,n):void 0)}function KE(e,t){return e.Uri.parse(t)}function G3({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=oo,onMount:g=oo}){let[m,D]=B.useState(!1),[E,A]=B.useState(!0),F=B.useRef(null),k=B.useRef(null),b=B.useRef(null),O=B.useRef(g),P=B.useRef(x),j=B.useRef(!1);XE(()=>{let H=WE.init();return H.then(ne=>(k.current=ne)&&A(!1)).catch(ne=>(ne==null?void 0:ne.type)!=="cancelation"&&console.error("Monaco initialization: error:",ne)),()=>F.current?Q():H.cancel()}),Mt(()=>{if(F.current&&k.current){let H=F.current.getOriginalEditor(),ne=Fs(k.current,e||"",n||r||"text",s||"");ne!==H.getModel()&&H.setModel(ne)}},[s],m),Mt(()=>{if(F.current&&k.current){let H=F.current.getModifiedEditor(),ne=Fs(k.current,t||"",i||r||"text",a||"");ne!==H.getModel()&&H.setModel(ne)}},[a],m),Mt(()=>{let H=F.current.getModifiedEditor();H.getOption(k.current.editor.EditorOption.readOnly)?H.setValue(t||""):t!==H.getValue()&&(H.executeEdits("",[{range:H.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),H.pushUndoStop())},[t],m),Mt(()=>{var H,ne;(ne=(H=F.current)==null?void 0:H.getModel())==null||ne.original.setValue(e||"")},[e],m),Mt(()=>{let{original:H,modified:ne}=F.current.getModel();k.current.editor.setModelLanguage(H,n||r||"text"),k.current.editor.setModelLanguage(ne,i||r||"text")},[r,n,i],m),Mt(()=>{var H;(H=k.current)==null||H.editor.setTheme(l)},[l],m),Mt(()=>{var H;(H=F.current)==null||H.updateOptions(p)},[p],m);let Y=B.useCallback(()=>{var ge;if(!k.current)return;P.current(k.current);let H=Fs(k.current,e||"",n||r||"text",s||""),ne=Fs(k.current,t||"",i||r||"text",a||"");(ge=F.current)==null||ge.setModel({original:H,modified:ne})},[r,t,i,e,n,s,a]),N=B.useCallback(()=>{var H;!j.current&&b.current&&(F.current=k.current.editor.createDiffEditor(b.current,{automaticLayout:!0,...p}),Y(),(H=k.current)==null||H.editor.setTheme(l),D(!0),j.current=!0)},[p,l,Y]);B.useEffect(()=>{m&&O.current(F.current,k.current)},[m]),B.useEffect(()=>{!E&&!m&&N()},[E,m,N]);function Q(){var ne,ge,$,Z;let H=(ne=F.current)==null?void 0:ne.getModel();o||((ge=H==null?void 0:H.original)==null||ge.dispose()),u||(($=H==null?void 0:H.modified)==null||$.dispose()),(Z=F.current)==null||Z.dispose()}return Un.createElement(JE,{width:d,height:h,isEditorReady:m,loading:c,_ref:b,className:f,wrapperProps:y})}var Q3=G3;B.memo(Q3);function Y3(e){let t=B.useRef();return B.useEffect(()=>{t.current=e},[e]),t.current}var Z3=Y3,Ru=new Map;function eP({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=oo,onMount:m=oo,onChange:D,onValidate:E=oo}){let[A,F]=B.useState(!1),[k,b]=B.useState(!0),O=B.useRef(null),P=B.useRef(null),j=B.useRef(null),Y=B.useRef(m),N=B.useRef(g),Q=B.useRef(),H=B.useRef(n),ne=Z3(s),ge=B.useRef(!1),$=B.useRef(!1);XE(()=>{let te=WE.init();return te.then(ae=>(O.current=ae)&&b(!1)).catch(ae=>(ae==null?void 0:ae.type)!=="cancelation"&&console.error("Monaco initialization: error:",ae)),()=>P.current?J():te.cancel()}),Mt(()=>{var ae,K,se,me;let te=Fs(O.current,e||n||"",t||i||"",s||r||"");te!==((ae=P.current)==null?void 0:ae.getModel())&&(p&&Ru.set(ne,(K=P.current)==null?void 0:K.saveViewState()),(se=P.current)==null||se.setModel(te),p&&((me=P.current)==null||me.restoreViewState(Ru.get(s))))},[s],A),Mt(()=>{var te;(te=P.current)==null||te.updateOptions(l)},[l],A),Mt(()=>{!P.current||n===void 0||(P.current.getOption(O.current.editor.EditorOption.readOnly)?P.current.setValue(n):n!==P.current.getValue()&&($.current=!0,P.current.executeEdits("",[{range:P.current.getModel().getFullModelRange(),text:n,forceMoveMarkers:!0}]),P.current.pushUndoStop(),$.current=!1))},[n],A),Mt(()=>{var ae,K;let te=(ae=P.current)==null?void 0:ae.getModel();te&&i&&((K=O.current)==null||K.editor.setModelLanguage(te,i))},[i],A),Mt(()=>{var te;o!==void 0&&((te=P.current)==null||te.revealLine(o))},[o],A),Mt(()=>{var te;(te=O.current)==null||te.editor.setTheme(a)},[a],A);let Z=B.useCallback(()=>{var te;if(!(!j.current||!O.current)&&!ge.current){N.current(O.current);let ae=s||r,K=Fs(O.current,n||e||"",t||i||"",ae||"");P.current=(te=O.current)==null?void 0:te.editor.create(j.current,{model:K,automaticLayout:!0,...l},c),p&&P.current.restoreViewState(Ru.get(ae)),O.current.editor.setTheme(a),o!==void 0&&P.current.revealLine(o),F(!0),ge.current=!0}},[e,t,r,n,i,s,l,c,p,a,o]);B.useEffect(()=>{A&&Y.current(P.current,O.current)},[A]),B.useEffect(()=>{!k&&!A&&Z()},[k,A,Z]),H.current=n,B.useEffect(()=>{var te,ae;A&&D&&((te=Q.current)==null||te.dispose(),Q.current=(ae=P.current)==null?void 0:ae.onDidChangeModelContent(K=>{$.current||D(P.current.getValue(),K)}))},[A,D]),B.useEffect(()=>{if(A){let te=O.current.editor.onDidChangeMarkers(ae=>{var se;let K=(se=P.current.getModel())==null?void 0:se.uri;if(K&&ae.find(me=>me.path===K.path)){let me=O.current.editor.getModelMarkers({resource:K});E==null||E(me)}});return()=>{te==null||te.dispose()}}return()=>{}},[A,E]);function J(){var te,ae;(te=Q.current)==null||te.dispose(),h?p&&Ru.set(s,P.current.saveViewState()):(ae=P.current.getModel())==null||ae.dispose(),P.current.dispose()}return Un.createElement(JE,{width:d,height:f,isEditorReady:A,loading:u,_ref:j,className:y,wrapperProps:x})}var tP=eP,rP=B.memo(tP),Hs=rP,nP=Object.create,Gf=Object.defineProperty,iP=Object.getOwnPropertyDescriptor,sP=Object.getOwnPropertyNames,aP=Object.getPrototypeOf,oP=Object.prototype.hasOwnProperty,uP=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Qf=(e,t)=>{for(var r in t)Gf(e,r,{get:t[r],enumerable:!0})},lP=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of sP(t))!oP.call(e,i)&&i!==r&&Gf(e,i,{get:()=>t[i],enumerable:!(n=iP(t,i))||n.enumerable});return e},cP=(e,t,r)=>(r=e!=null?nP(aP(e)):{},lP(t||!e||!e.__esModule?Gf(r,"default",{value:e,enumerable:!0}):r,e)),pP=uP((e,t)=>{var r,n,i,s,a,o,u,l,c,p,h,d,f,y,x,g,m,D,E;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,E=/[\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*(A,{jsx:F=!1}={}){var k,b,O,P,j,Y,N,Q,H,ne,ge,$,Z,J;for({length:Y}=A,P=0,j="",J=[{tag:"JS"}],k=[],ge=0,$=!1;P":J.pop(),j==="/"||Q.tag==="JSXTagEnd"?(ne="?JSX",$=!0):J.push({tag:"JSXChildren"});break;case"{":J.push({tag:"InterpolationInJSX",nesting:k.length}),ne="?InterpolationInJSX",$=!1;break;case"/":j==="<"&&(J.pop(),J[J.length-1].tag==="JSXChildren"&&J.pop(),J.push({tag:"JSXTagEnd"}))}j=ne,yield{type:"JSXPunctuator",value:N[0]};continue}if(n.lastIndex=P,N=n.exec(A)){P=n.lastIndex,j=N[0],yield{type:"JSXIdentifier",value:N[0]};continue}if(s.lastIndex=P,N=s.exec(A)){P=s.lastIndex,j=N[0],yield{type:"JSXString",value:N[0],closed:N[2]!==void 0};continue}break;case"JSXChildren":if(a.lastIndex=P,N=a.exec(A)){P=a.lastIndex,j=N[0],yield{type:"JSXText",value:N[0]};continue}switch(A[P]){case"<":J.push({tag:"JSXTag"}),P++,j="<",yield{type:"JSXPunctuator",value:"<"};continue;case"{":J.push({tag:"InterpolationInJSX",nesting:k.length}),P++,j="?InterpolationInJSX",$=!1,yield{type:"JSXPunctuator",value:"{"};continue}}if(E.lastIndex=P,N=E.exec(A)){P=E.lastIndex,yield{type:"WhiteSpace",value:N[0]};continue}if(l.lastIndex=P,N=l.exec(A)){P=l.lastIndex,$=!1,u.test(j)&&(j="?NoLineTerminatorHere"),yield{type:"LineTerminatorSequence",value:N[0]};continue}if(c.lastIndex=P,N=c.exec(A)){P=c.lastIndex,p.test(N[0])&&($=!1,u.test(j)&&(j="?NoLineTerminatorHere")),yield{type:"MultiLineComment",value:N[0],closed:N[1]!==void 0};continue}if(y.lastIndex=P,N=y.exec(A)){P=y.lastIndex,$=!1,yield{type:"SingleLineComment",value:N[0]};continue}b=String.fromCodePoint(A.codePointAt(P)),P+=b.length,j=b,$=!1,yield{type:Q.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:b}}}}),hP={};Qf(hP,{__debug:()=>eB,check:()=>Y8,doc:()=>qx,format:()=>$c,formatWithCursor:()=>Xx,getSupportInfo:()=>Z8,util:()=>Hx,version:()=>S8});var iu=(e,t)=>(r,n,...i)=>r|1&&n==null?void 0:(t.call(n)??n[e]).apply(n,i),dP=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},fP=iu("replaceAll",function(){if(typeof this=="string")return dP}),Pc=fP,mP=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,E=d[m-1],A=d[m+1];E&&(d[m-1]=void 0);let F=!1;if(A){let b=A.oldPos-m;F=A&&0<=b&&b=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}},yP=class extends mP{tokenize(t){return t.slice()}join(t){return t}removeEmpty(t){return t}},gP=new yP;function DP(e,t,r){return gP.diff(e,t,r)}var EP=()=>{},xP=EP,GE="cr",QE="crlf",CP="lf",vP=CP,Yf="\r",YE=`\r `,kc=` -`,fP=kc;function mP(e){let t=e.indexOf(Yf);return t!==-1?e.charAt(t+1)===kc?WE:HE:dP}function Zf(e){return e===HE?Yf:e===WE?JE:fP}var yP=new Map([[kc,/\n/gu],[Yf,/\r/gu],[JE,/\r\n/gu]]);function XE(e,t){var n;let r=yP.get(t);return((n=e.match(r))==null?void 0:n.length)??0}var gP=/\r\n?/gu;function DP(e){return Pc(0,e,gP,kc)}function EP(e){return this[e<0?this.length+e:e]}var xP=iu("at",function(){if(Array.isArray(this)||typeof this=="string")return EP}),He=xP,Ji="string",ln="array",li="cursor",gn="indent",Dn="align",En="trim",Nt="group",Rr="fill",Rt="if-break",xn="indent-if-break",Cn="line-suffix",vn="line-suffix-boundary",st="line",Ur="label",sr="break-parent",KE=new Set([li,gn,Dn,En,Nt,Rr,Rt,xn,Cn,vn,st,Ur,sr]);function CP(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 TP(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(Xi(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=AP([...KE].map(i=>`'${i}'`));return`Unexpected doc.type '${e.type}'. -Expected it to be ${n}.`}var SP=class extends Error{constructor(r){super(TP(r));U(this,"name","InvalidDocError");this.doc=r}},Ws=SP,ng={};function FP(e,t,r,n){let i=[e];for(;i.length>0;){let s=i.pop();if(s===ng){r(i.pop());continue}r&&i.push(s,ng);let a=Xi(s);if(!a)throw new Ws(s);if((t==null?void 0:t(s))!==!1)switch(a){case ln:case Rr:{let o=a===ln?s:s.parts;for(let u=o.length,l=u-1;l>=0;--l)i.push(o[l]);break}case Rt:i.push(s.flatContents,s.breakContents);break;case Nt: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 Dn:case gn:case xn:case Ur:case Cn:i.push(s.contents);break;case Ji:case li:case En:case vn:case st:case sr:break;default:throw new Ws(s)}}}var em=FP;function Nc(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(Xi(s)){case ln:return t(s.map(n));case Rr:return t({...s,parts:s.parts.map(n)});case Rt:return t({...s,breakContents:n(s.breakContents),flatContents:n(s.flatContents)});case Nt:{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 Dn:case gn:case xn:case Ur:case Cn:return t({...s,contents:n(s.contents)});case Ji:case li:case En:case vn:case st:case sr:return t(s);default:throw new Ws(s)}}}function tm(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 em(e,s),n}function bP(e){if(e.type===Nt&&e.break||e.type===st&&e.hard||e.type===sr)return!0}function wP(e){return tm(e,bP,!1)}function ig(e){if(e.length>0){let t=He(0,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function PP(e){let t=new Set,r=[];function n(s){if(s.type===sr&&ig(r),s.type===Nt){if(r.push(s),t.has(s))return!1;t.add(s)}}function i(s){s.type===Nt&&r.pop().break&&ig(r)}em(e,n,i,!0)}function kP(e){return e.type===st&&!e.hard?e.soft?"":" ":e.type===Rt?e.flatContents:e}function NP(e){return Nc(e,kP)}function sg(e){for(e=[...e];e.length>=2&&He(0,e,-2).type===st&&He(0,e,-1).type===sr;)e.length-=2;if(e.length>0){let t=uo(He(0,e,-1));e[e.length-1]=t}return e}function uo(e){switch(Xi(e)){case gn:case xn:case Nt:case Cn:case Ur:{let t=uo(e.contents);return{...e,contents:t}}case Rt:return{...e,breakContents:uo(e.breakContents),flatContents:uo(e.flatContents)};case Rr:return{...e,parts:sg(e.parts)};case ln:return sg(e);case Ji:return CP(e);case Dn:case li:case En:case vn:case st:case sr:break;default:throw new Ws(e)}return e}function GE(e){return uo(IP(e))}function BP(e){switch(Xi(e)){case Rr:if(e.parts.every(t=>t===""))return"";break;case Nt:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===Nt&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case Dn:case gn:case xn:case Cn:if(!e.contents)return"";break;case Rt:if(!e.flatContents&&!e.breakContents)return"";break;case ln:{let t=[];for(let r of e){if(!r)continue;let[n,...i]=Array.isArray(r)?r:[r];typeof n=="string"&&typeof He(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 Ji:case li:case En:case vn:case st:case Ur:case sr:break;default:throw new Ws(e)}return e}function IP(e){return Nc(e,t=>BP(t))}function _P(e,t=nx){return Nc(e,r=>typeof r=="string"?ex(t,r.split(` -`)):r)}function LP(e){if(e.type===st)return!0}function $P(e){return tm(e,LP,!1)}function fl(e,t){return e.type===Ur?{...e,contents:t(e.contents)}:t(e)}var OP=pP;function ec(e){return{type:gn,contents:e}}function Js(e,t){return{type:Dn,contents:t,n:e}}function MP(e){return Js(Number.NEGATIVE_INFINITY,e)}function QE(e){return Js({type:"root"},e)}function jP(e){return Js(-1,e)}function YE(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===Nt){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===Rr)return`fill([${s.parts.map(c=>n(c)).join(", ")}])`;if(s.type===Cn)return"lineSuffix("+n(s.contents)+")";if(s.type===vn)return"lineSuffixBoundary";if(s.type===Ur)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 KP=()=>/[#*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 GP(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function QP(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 YP="©®‼⁉™ℹ↔↕↖↗↘↙↩↪⌨⏏⏱⏲⏸⏹⏺▪▫▶◀◻◼☀☁☂☃☄☎☑☘☝☠☢☣☦☪☮☯☸☹☺♀♂♟♠♣♥♦♨♻♾⚒⚔⚕⚖⚗⚙⚛⚜⚠⚧⚰⚱⛈⛏⛑⛓⛩⛱⛷⛸⛹✂✈✉✌✍✏✒✔✖✝✡✳✴❄❇❣❤➡⤴⤵⬅⬆⬇",ZP=/[^\x20-\x7F]/u,ek=new Set(YP);function tk(e){if(!e)return 0;if(!ZP.test(e))return e.length;e=e.replace(KP(),r=>ek.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+=GP(n)||QP(n)?2:1)}return t}var nm=tk,rk={type:0},nk={type:1},ix={value:"",length:0,queue:[],get root(){return ix}};function sx(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 ik(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=nk:n={type:2,width:t}:n={type:3,string:t},sx(e,n,r)}function sk(e,t){return sx(e,rk,t)}function ak(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 ax(e){let t=ak(e);return{text:t===0?e:e.slice(0,e.length-t),count:t}}var vt=Symbol("MODE_BREAK"),Sr=Symbol("MODE_FLAT"),dd=Symbol("DOC_FILL_PRINTED_LENGTH");function Uu(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=Xi(p);switch(h){case Ji:p&&(o&&(l+=" ",r-=1,o=!1),l+=p,r-=nm(p));break;case ln:case Rr:{let d=h===ln?p:p.parts,f=p[dd]??0;for(let y=d.length-1;y>=f;y--)u.push({mode:c,doc:d[y]});break}case gn:case Dn:case xn:case Ur:u.push({mode:c,doc:p.contents});break;case En:{let{text:d,count:f}=ax(l);l=d,r+=f;break}case Nt:{if(s&&p.break)return!1;let d=p.break?vt:c,f=p.expandedStates&&d===vt?He(0,p.expandedStates,-1):p.contents;u.push({mode:d,doc:f});break}case Rt:{let d=(p.groupId?i[p.groupId]||Sr:c)===vt?p.breakContents:p.flatContents;d&&u.push({mode:c,doc:d});break}case st:if(c===vt||p.hard)return!0;p.soft||(o=!0);break;case Cn:n=!0;break;case vn:if(n)return!1;break}}return!1}function Ic(e,t){let r=Object.create(null),n=t.printWidth,i=Zf(t.endOfLine),s=0,a=[{indent:ix,mode:vt,doc:e}],o="",u=!1,l=[],c=[],p=[],h=[],d=0;for(PP(e);a.length>0;){let{indent:m,mode:D,doc:x}=a.pop();switch(Xi(x)){case Ji:{let A=i!==` -`?Pc(0,x,` -`,i):x;A&&(o+=A,a.length>0&&(s+=nm(A)));break}case ln:for(let A=x.length-1;A>=0;A--)a.push({indent:m,mode:D,doc:x[A]});break;case li:if(c.length>=2)throw new Error("There are too many 'cursor' in doc.");c.push(d+o.length);break;case gn:a.push({indent:sk(m,t),mode:D,doc:x.contents});break;case Dn:a.push({indent:ik(m,x.n,t),mode:D,doc:x.contents});break;case En:g();break;case Nt:switch(D){case Sr:if(!u){a.push({indent:m,mode:x.break?vt:Sr,doc:x.contents});break}case vt:{u=!1;let A={indent:m,mode:Sr,doc:x.contents},b=n-s,k=l.length>0;if(!x.break&&Uu(A,a,b,k,r))a.push(A);else if(x.expandedStates){let F=He(0,x.expandedStates,-1);if(x.break){a.push({indent:m,mode:vt,doc:F});break}else for(let M=1;M=x.expandedStates.length){a.push({indent:m,mode:vt,doc:F});break}else{let P=x.expandedStates[M],j={indent:m,mode:Sr,doc:P};if(Uu(j,a,b,k,r)){a.push(j);break}}}else a.push({indent:m,mode:vt,doc:x.contents});break}}x.id&&(r[x.id]=He(0,a,-1).mode);break;case Rr:{let A=n-s,b=x[dd]??0,{parts:k}=x,F=k.length-b;if(F===0)break;let M=k[b+0],P=k[b+1],j={indent:m,mode:Sr,doc:M},Y={indent:m,mode:vt,doc:M},N=Uu(j,[],A,l.length>0,r,!0);if(F===1){N?a.push(j):a.push(Y);break}let Q={indent:m,mode:Sr,doc:P},H={indent:m,mode:vt,doc:P};if(F===2){N?a.push(Q,j):a.push(H,Y);break}let ne=k[b+2],ge={indent:m,mode:D,doc:{...x,[dd]:b+2}},$=Uu({indent:m,mode:Sr,doc:[M,P,ne]},[],A,l.length>0,r,!0);a.push(ge),$?a.push(Q,j):N?a.push(H,j):a.push(H,Y);break}case Rt:case xn:{let A=x.groupId?r[x.groupId]:D;if(A===vt){let b=x.type===Rt?x.breakContents:x.negate?x.contents:ec(x.contents);b&&a.push({indent:m,mode:D,doc:b})}if(A===Sr){let b=x.type===Rt?x.flatContents:x.negate?ec(x.contents):x.contents;b&&a.push({indent:m,mode:D,doc:b})}break}case Cn:l.push({indent:m,mode:D,doc:x.contents});break;case vn:l.length>0&&a.push({indent:m,mode:D,doc:rm});break;case st:switch(D){case Sr:if(x.hard)u=!0;else{x.soft||(o+=" ",s+=1);break}case vt:if(l.length>0){a.push({indent:m,mode:D,doc:x},...l.reverse()),l.length=0;break}x.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 Ur:a.push({indent:m,mode:D,doc:x.contents});break;case sr:break;default:throw new Ws(x)}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 E=y[0];return{formatted:f,cursorNodeStart:E,cursorNodeText:f.slice(E,He(0,y,-1))};function g(){let{text:m,count:D}=ax(o);m&&(p.push(m),d+=m.length),o="",s-=D,c.length>0&&(h.push(...c.map(x=>Math.min(x,d))),c.length=0)}}function ok(e,t,r=0){let n=0;for(let i=r;i1?He(0,t,-2):null}getValue(){return He(0,this.stack,-1)}getNode(t=0){let r=Sn(this,Qo,fd).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=He(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=Sn(this,Qo,fd).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=He(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 Sn(this,Os,ml).call(this))if(t(r))return r}hasAncestor(t){for(let r of Sn(this,Os,ml).call(this))if(t(r))return!0;return!1}},Qo=new WeakSet,fd=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},Os=new WeakSet,ml=function*(){let{stack:t}=this;for(let r=t.length-3;r>=0;r-=2){let n=t[r];Array.isArray(n)||(yield n)}},lD),lk=uk;function ck(e){return e!==null&&typeof e=="object"}var sm=ck;function su(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 hk(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(ag(i))return t-1}else{if(i==="\r"&&e.charAt(t+1)===` -`)return t+2;if(ag(i))return t+1}return t}var Ri=hk;function dk(e,t,r={}){let n=ri(e,r.backwards?t-1:t,r),i=Ri(e,n,r);return n!==i}var Qn=dk;function fk(e){return Array.isArray(e)&&e.length>0}var mk=fk;function*_c(e,t){let{getVisitorKeys:r,filter:n=()=>!0}=t,i=s=>sm(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*yk(e,t){let r=[e];for(let n=0;n(s??(s=[e,...t]),i(c,s)?[c]:lx(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 cx=lx;function Dk(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 am(e,t){(e.comments??(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=Dk(e)}function lo(e,t){t.leading=!0,t.trailing=!1,am(e,t)}function Ti(e,t,r){t.leading=!1,t.trailing=!1,r&&(t.marker=r),am(e,t)}function co(e,t){t.leading=!1,t.trailing=!0,am(e,t)}var px=new WeakMap;function hx(e,t,r,n,i=[]){let{locStart:s,locEnd:a}=r,o=s(t),u=a(t),l=cx(e,i,{cache:px,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],E=s(y),g=a(y);if(E<=o&&u<=g)return hx(y,t,r,y,[y,...i]);if(g<=o){c=y,h=f+1;continue}if(u<=E){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=Lp(f,t,r);c&&Lp(f,c,r)!==y&&(c=null),p&&Lp(f,p,r)!==y&&(p=null)}return{enclosingNode:n,precedingNode:c,followingNode:p}}var _p=()=>!1;function Ek(e,t){let{comments:r}=e;if(delete e.comments,!mk(r)||!t.printer.canAttachComment)return;let n=[],{printer:{features:{experimental_avoidAstMutation:i},handleComments:s={}},originalText:a}=t,{ownLine:o=_p,endOfLine:u=_p,remaining:l=_p}=s,c=r.map((p,h)=>({...hx(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:E,text:g,options:m,ast:D,isLastComment:x}=h,A;if(i?A=[h]:(d.enclosingNode=y,d.precedingNode=f,d.followingNode=E,A=[d,g,m,D,x]),xk(g,m,c,p))d.placement="ownLine",o(...A)||(E?lo(E,d):f?co(f,d):Ti(y||D,d));else if(Ck(g,m,c,p))d.placement="endOfLine",u(...A)||(f?co(f,d):E?lo(E,d):Ti(y||D,d));else if(d.placement="remaining",!l(...A))if(f&&E){let b=n.length;b>0&&n[b-1].followingNode!==E&&og(n,m),n.push(h)}else f?co(f,d):E?lo(E,d):Ti(y||D,d)}if(og(n,t),!i)for(let p of r)delete p.precedingNode,delete p.enclosingNode,delete p.followingNode}var dx=e=>!/[\S\n\u2028\u2029]/u.test(e);function xk(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||!dx(e.slice(o(c),u)))break;u=a(c)}return Qn(e,u,{backwards:!0})}function Ck(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 Lp(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(Ak(e,t)):l&&(a=Tk(e,t,a),s.push(a.doc))},"comments"),{leading:i,trailing:s}}function Fk(e,t,r){let{leading:n,trailing:i}=Sk(e,r);return!n&&!i?t:fl(t,s=>[n,s,i])}function bk(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 mx=class extends Error{constructor(){super(...arguments);U(this,"name","ConfigError")}},ug=class extends Error{constructor(){super(...arguments);U(this,"name","UndefinedParserError")}},wk={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 +`,AP=kc;function TP(e){let t=e.indexOf(Yf);return t!==-1?e.charAt(t+1)===kc?QE:GE:vP}function Zf(e){return e===GE?Yf:e===QE?YE:AP}var SP=new Map([[kc,/\n/gu],[Yf,/\r/gu],[YE,/\r\n/gu]]);function ZE(e,t){var n;let r=SP.get(t);return((n=e.match(r))==null?void 0:n.length)??0}var FP=/\r\n?/gu;function bP(e){return Pc(0,e,FP,kc)}function wP(e){return this[e<0?this.length+e:e]}var PP=iu("at",function(){if(Array.isArray(this)||typeof this=="string")return wP}),We=PP,Ji="string",ln="array",ci="cursor",gn="indent",Dn="align",En="trim",Bt="group",Rr="fill",Rt="if-break",xn="indent-if-break",Cn="line-suffix",vn="line-suffix-boundary",at="line",Ur="label",sr="break-parent",ex=new Set([ci,gn,Dn,En,Bt,Rr,Rt,xn,Cn,vn,at,Ur,sr]);function kP(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 IP(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(Xi(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=BP([...ex].map(i=>`'${i}'`));return`Unexpected doc.type '${e.type}'. +Expected it to be ${n}.`}var _P=class extends Error{constructor(r){super(IP(r));U(this,"name","InvalidDocError");this.doc=r}},Ws=_P,ig={};function LP(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=Xi(s);if(!a)throw new Ws(s);if((t==null?void 0:t(s))!==!1)switch(a){case ln:case Rr:{let o=a===ln?s:s.parts;for(let u=o.length,l=u-1;l>=0;--l)i.push(o[l]);break}case Rt:i.push(s.flatContents,s.breakContents);break;case Bt: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 Dn:case gn:case xn:case Ur:case Cn:i.push(s.contents);break;case Ji:case ci:case En:case vn:case at:case sr:break;default:throw new Ws(s)}}}var em=LP;function Nc(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(Xi(s)){case ln:return t(s.map(n));case Rr:return t({...s,parts:s.parts.map(n)});case Rt:return t({...s,breakContents:n(s.breakContents),flatContents:n(s.flatContents)});case Bt:{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 Dn:case gn:case xn:case Ur:case Cn:return t({...s,contents:n(s.contents)});case Ji:case ci:case En:case vn:case at:case sr:return t(s);default:throw new Ws(s)}}}function tm(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 em(e,s),n}function $P(e){if(e.type===Bt&&e.break||e.type===at&&e.hard||e.type===sr)return!0}function MP(e){return tm(e,$P,!1)}function sg(e){if(e.length>0){let t=We(0,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function OP(e){let t=new Set,r=[];function n(s){if(s.type===sr&&sg(r),s.type===Bt){if(r.push(s),t.has(s))return!1;t.add(s)}}function i(s){s.type===Bt&&r.pop().break&&sg(r)}em(e,n,i,!0)}function jP(e){return e.type===at&&!e.hard?e.soft?"":" ":e.type===Rt?e.flatContents:e}function RP(e){return Nc(e,jP)}function ag(e){for(e=[...e];e.length>=2&&We(0,e,-2).type===at&&We(0,e,-1).type===sr;)e.length-=2;if(e.length>0){let t=uo(We(0,e,-1));e[e.length-1]=t}return e}function uo(e){switch(Xi(e)){case gn:case xn:case Bt:case Cn:case Ur:{let t=uo(e.contents);return{...e,contents:t}}case Rt:return{...e,breakContents:uo(e.breakContents),flatContents:uo(e.flatContents)};case Rr:return{...e,parts:ag(e.parts)};case ln:return ag(e);case Ji:return kP(e);case Dn:case ci:case En:case vn:case at:case sr:break;default:throw new Ws(e)}return e}function tx(e){return uo(zP(e))}function UP(e){switch(Xi(e)){case Rr:if(e.parts.every(t=>t===""))return"";break;case Bt:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===Bt&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case Dn:case gn:case xn:case Cn:if(!e.contents)return"";break;case Rt:if(!e.flatContents&&!e.breakContents)return"";break;case ln:{let t=[];for(let r of e){if(!r)continue;let[n,...i]=Array.isArray(r)?r:[r];typeof n=="string"&&typeof We(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 Ji:case ci:case En:case vn:case at:case Ur:case sr:break;default:throw new Ws(e)}return e}function zP(e){return Nc(e,t=>UP(t))}function VP(e,t=ux){return Nc(e,r=>typeof r=="string"?sx(t,r.split(` +`)):r)}function qP(e){if(e.type===at)return!0}function HP(e){return tm(e,qP,!1)}function fl(e,t){return e.type===Ur?{...e,contents:t(e.contents)}:t(e)}var WP=xP;function ec(e){return{type:gn,contents:e}}function Js(e,t){return{type:Dn,contents:t,n:e}}function JP(e){return Js(Number.NEGATIVE_INFINITY,e)}function rx(e){return Js({type:"root"},e)}function XP(e){return Js(-1,e)}function nx(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===Bt){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===Rr)return`fill([${s.parts.map(c=>n(c)).join(", ")}])`;if(s.type===Cn)return"lineSuffix("+n(s.contents)+")";if(s.type===vn)return"lineSuffixBoundary";if(s.type===Ur)return`label(${JSON.stringify(s.label)}, ${n(s.contents)})`;if(s.type===ci)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 ik=()=>/[#*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 sk(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function ak(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 ok="©®‼⁉™ℹ↔↕↖↗↘↙↩↪⌨⏏⏱⏲⏸⏹⏺▪▫▶◀◻◼☀☁☂☃☄☎☑☘☝☠☢☣☦☪☮☯☸☹☺♀♂♟♠♣♥♦♨♻♾⚒⚔⚕⚖⚗⚙⚛⚜⚠⚧⚰⚱⛈⛏⛑⛓⛩⛱⛷⛸⛹✂✈✉✌✍✏✒✔✖✝✡✳✴❄❇❣❤➡⤴⤵⬅⬆⬇",uk=/[^\x20-\x7F]/u,lk=new Set(ok);function ck(e){if(!e)return 0;if(!uk.test(e))return e.length;e=e.replace(ik(),r=>lk.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+=sk(n)||ak(n)?2:1)}return t}var nm=ck,pk={type:0},hk={type:1},lx={value:"",length:0,queue:[],get root(){return lx}};function cx(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 dk(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=hk:n={type:2,width:t}:n={type:3,string:t},cx(e,n,r)}function fk(e,t){return cx(e,pk,t)}function mk(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 px(e){let t=mk(e);return{text:t===0?e:e.slice(0,e.length-t),count:t}}var At=Symbol("MODE_BREAK"),Sr=Symbol("MODE_FLAT"),dd=Symbol("DOC_FILL_PRINTED_LENGTH");function Uu(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=Xi(p);switch(h){case Ji:p&&(o&&(l+=" ",r-=1,o=!1),l+=p,r-=nm(p));break;case ln:case Rr:{let d=h===ln?p:p.parts,f=p[dd]??0;for(let y=d.length-1;y>=f;y--)u.push({mode:c,doc:d[y]});break}case gn:case Dn:case xn:case Ur:u.push({mode:c,doc:p.contents});break;case En:{let{text:d,count:f}=px(l);l=d,r+=f;break}case Bt:{if(s&&p.break)return!1;let d=p.break?At:c,f=p.expandedStates&&d===At?We(0,p.expandedStates,-1):p.contents;u.push({mode:d,doc:f});break}case Rt:{let d=(p.groupId?i[p.groupId]||Sr:c)===At?p.breakContents:p.flatContents;d&&u.push({mode:c,doc:d});break}case at:if(c===At||p.hard)return!0;p.soft||(o=!0);break;case Cn:n=!0;break;case vn:if(n)return!1;break}}return!1}function Ic(e,t){let r=Object.create(null),n=t.printWidth,i=Zf(t.endOfLine),s=0,a=[{indent:lx,mode:At,doc:e}],o="",u=!1,l=[],c=[],p=[],h=[],d=0;for(OP(e);a.length>0;){let{indent:m,mode:D,doc:E}=a.pop();switch(Xi(E)){case Ji:{let A=i!==` +`?Pc(0,E,` +`,i):E;A&&(o+=A,a.length>0&&(s+=nm(A)));break}case ln:for(let A=E.length-1;A>=0;A--)a.push({indent:m,mode:D,doc:E[A]});break;case ci:if(c.length>=2)throw new Error("There are too many 'cursor' in doc.");c.push(d+o.length);break;case gn:a.push({indent:fk(m,t),mode:D,doc:E.contents});break;case Dn:a.push({indent:dk(m,E.n,t),mode:D,doc:E.contents});break;case En:g();break;case Bt:switch(D){case Sr:if(!u){a.push({indent:m,mode:E.break?At:Sr,doc:E.contents});break}case At:{u=!1;let A={indent:m,mode:Sr,doc:E.contents},F=n-s,k=l.length>0;if(!E.break&&Uu(A,a,F,k,r))a.push(A);else if(E.expandedStates){let b=We(0,E.expandedStates,-1);if(E.break){a.push({indent:m,mode:At,doc:b});break}else for(let O=1;O=E.expandedStates.length){a.push({indent:m,mode:At,doc:b});break}else{let P=E.expandedStates[O],j={indent:m,mode:Sr,doc:P};if(Uu(j,a,F,k,r)){a.push(j);break}}}else a.push({indent:m,mode:At,doc:E.contents});break}}E.id&&(r[E.id]=We(0,a,-1).mode);break;case Rr:{let A=n-s,F=E[dd]??0,{parts:k}=E,b=k.length-F;if(b===0)break;let O=k[F+0],P=k[F+1],j={indent:m,mode:Sr,doc:O},Y={indent:m,mode:At,doc:O},N=Uu(j,[],A,l.length>0,r,!0);if(b===1){N?a.push(j):a.push(Y);break}let Q={indent:m,mode:Sr,doc:P},H={indent:m,mode:At,doc:P};if(b===2){N?a.push(Q,j):a.push(H,Y);break}let ne=k[F+2],ge={indent:m,mode:D,doc:{...E,[dd]:F+2}},$=Uu({indent:m,mode:Sr,doc:[O,P,ne]},[],A,l.length>0,r,!0);a.push(ge),$?a.push(Q,j):N?a.push(H,j):a.push(H,Y);break}case Rt:case xn:{let A=E.groupId?r[E.groupId]:D;if(A===At){let F=E.type===Rt?E.breakContents:E.negate?E.contents:ec(E.contents);F&&a.push({indent:m,mode:D,doc:F})}if(A===Sr){let F=E.type===Rt?E.flatContents:E.negate?ec(E.contents):E.contents;F&&a.push({indent:m,mode:D,doc:F})}break}case Cn:l.push({indent:m,mode:D,doc:E.contents});break;case vn:l.length>0&&a.push({indent:m,mode:D,doc:rm});break;case at:switch(D){case Sr:if(E.hard)u=!0;else{E.soft||(o+=" ",s+=1);break}case At:if(l.length>0){a.push({indent:m,mode:D,doc:E},...l.reverse()),l.length=0;break}E.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 Ur:a.push({indent:m,mode:D,doc:E.contents});break;case sr:break;default:throw new Ws(E)}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,We(0,y,-1))};function g(){let{text:m,count:D}=px(o);m&&(p.push(m),d+=m.length),o="",s-=D,c.length>0&&(h.push(...c.map(E=>Math.min(E,d))),c.length=0)}}function yk(e,t,r=0){let n=0;for(let i=r;i1?We(0,t,-2):null}getValue(){return We(0,this.stack,-1)}getNode(t=0){let r=Sn(this,Qo,fd).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=We(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=Sn(this,Qo,fd).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=We(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 Sn(this,Ms,ml).call(this))if(t(r))return r}hasAncestor(t){for(let r of Sn(this,Ms,ml).call(this))if(t(r))return!0;return!1}},Qo=new WeakSet,fd=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},Ms=new WeakSet,ml=function*(){let{stack:t}=this;for(let r=t.length-3;r>=0;r-=2){let n=t[r];Array.isArray(n)||(yield n)}},dD),Dk=gk;function Ek(e){return e!==null&&typeof e=="object"}var sm=Ek;function su(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 Ck(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 Ri=Ck;function vk(e,t,r={}){let n=ni(e,r.backwards?t-1:t,r),i=Ri(e,n,r);return n!==i}var Yn=vk;function Ak(e){return Array.isArray(e)&&e.length>0}var Tk=Ak;function*_c(e,t){let{getVisitorKeys:r,filter:n=()=>!0}=t,i=s=>sm(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*Sk(e,t){let r=[e];for(let n=0;n(s??(s=[e,...t]),i(c,s)?[c]:fx(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 mx=fx;function bk(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 am(e,t){(e.comments??(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=bk(e)}function lo(e,t){t.leading=!0,t.trailing=!1,am(e,t)}function Ti(e,t,r){t.leading=!1,t.trailing=!1,r&&(t.marker=r),am(e,t)}function co(e,t){t.leading=!1,t.trailing=!0,am(e,t)}var yx=new WeakMap;function gx(e,t,r,n,i=[]){let{locStart:s,locEnd:a}=r,o=s(t),u=a(t),l=mx(e,i,{cache:yx,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 gx(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=Lp(f,t,r);c&&Lp(f,c,r)!==y&&(c=null),p&&Lp(f,p,r)!==y&&(p=null)}return{enclosingNode:n,precedingNode:c,followingNode:p}}var _p=()=>!1;function wk(e,t){let{comments:r}=e;if(delete e.comments,!Tk(r)||!t.printer.canAttachComment)return;let n=[],{printer:{features:{experimental_avoidAstMutation:i},handleComments:s={}},originalText:a}=t,{ownLine:o=_p,endOfLine:u=_p,remaining:l=_p}=s,c=r.map((p,h)=>({...gx(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:E}=h,A;if(i?A=[h]:(d.enclosingNode=y,d.precedingNode=f,d.followingNode=x,A=[d,g,m,D,E]),Pk(g,m,c,p))d.placement="ownLine",o(...A)||(x?lo(x,d):f?co(f,d):Ti(y||D,d));else if(kk(g,m,c,p))d.placement="endOfLine",u(...A)||(f?co(f,d):x?lo(x,d):Ti(y||D,d));else if(d.placement="remaining",!l(...A))if(f&&x){let F=n.length;F>0&&n[F-1].followingNode!==x&&ug(n,m),n.push(h)}else f?co(f,d):x?lo(x,d):Ti(y||D,d)}if(ug(n,t),!i)for(let p of r)delete p.precedingNode,delete p.enclosingNode,delete p.followingNode}var Dx=e=>!/[\S\n\u2028\u2029]/u.test(e);function Pk(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||!Dx(e.slice(o(c),u)))break;u=a(c)}return Yn(e,u,{backwards:!0})}function kk(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 Lp(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(Bk(e,t)):l&&(a=Ik(e,t,a),s.push(a.doc))},"comments"),{leading:i,trailing:s}}function Lk(e,t,r){let{leading:n,trailing:i}=_k(e,r);return!n&&!i?t:fl(t,s=>[n,s,i])}function $k(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 xx=class extends Error{constructor(){super(...arguments);U(this,"name","ConfigError")}},lg=class extends Error{constructor(){super(...arguments);U(this,"name","UndefinedParserError")}},Mk={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 yx({plugins:e=[],showDeprecated:t=!1}={}){let r=e.flatMap(i=>i.languages??[]),n=[];for(let i of kk(Object.assign({},...e.map(({options:s})=>s),wk)))!t&&i.deprecated||(Array.isArray(i.choices)&&(t||(i.choices=i.choices.filter(s=>!s.deprecated)),i.name==="parser"&&(i.choices=[...i.choices,...Pk(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*Pk(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 kk(e){let t=[];for(let[r,n]of Object.entries(e)){let i={name:r,...n};Array.isArray(i.default)&&(i.default=He(0,i.default,-1).value),t.push(i)}return t}var Nk=Array.prototype.toReversed??function(){return[...this].reverse()},Bk=iu("toReversed",function(){if(Array.isArray(this))return Nk}),Ik=Bk;function _k(){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 Lk=_k();function gx(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 $k(e){return e=gx(e),decodeURIComponent(e.pathname.replace(/%(?![0-9A-Fa-f]{2})/g,"%25"))}function Ok(e){e=gx(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 Mk(e){return Lk?Ok(e):$k(e)}var jk=e=>String(e).split(/[/\\]/u).pop(),Rk=e=>String(e).startsWith("file:");function lg(e,t){if(!t)return;let r=jk(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 Uk(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 $p=void 0;function cg(e,t){if(t){if(Rk(t))try{t=Mk(t)}catch{return}if(typeof t=="string")return e.find(({isSupported:r})=>r==null?void 0:r({filepath:t}))}}function zk(e,t){var n;let r=Ik(0,e.plugins).flatMap(i=>i.languages??[]);return(n=Uk(r,t.language)??lg(r,t.physicalFile)??lg(r,t.file)??cg(r,t.physicalFile)??cg(r,t.file)??($p==null?void 0:$p(r,t.physicalFile)))==null?void 0:n.parsers[0]}var Dx=zk,bs={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=>bs.value(r)).join(", ")}]`;let t=Object.keys(e);return t.length===0?"{}":`{ ${t.map(r=>`${bs.key(r)}: ${bs.value(e[r])}`).join(", ")} }`},pair:({key:e,value:t})=>bs.value({[e]:t})},um=new Proxy(String,{get:()=>um}),Br=um,Ex=()=>um,Vk=(e,t,{descriptor:r})=>{let n=[`${Br.yellow(typeof e=="string"?r.key(e):r.pair(e))} is deprecated`];return t&&n.push(`we now treat it as ${Br.blue(typeof t=="string"?r.key(t):r.pair(t))}`),n.join("; ")+"."},xx=Symbol.for("vnopts.VALUE_NOT_EXIST"),yl=Symbol.for("vnopts.VALUE_UNCHANGED"),pg=" ".repeat(2),qk=(e,t,r)=>{let{text:n,list:i}=r.normalizeExpectedResult(r.schemas[e].expected(r)),s=[];return n&&s.push(hg(e,t,n,r.descriptor)),i&&s.push([hg(e,t,i.title,r.descriptor)].concat(i.values.map(a=>Cx(a,r.loggerPrintWidth))).join(` -`)),vx(s,r.loggerPrintWidth)};function hg(e,t,r,n){return[`Invalid ${Br.red(n.key(e))} value.`,`Expected ${Br.blue(r)},`,`but received ${t===xx?Br.gray("nothing"):Br.red(n.value(t))}.`].join(" ")}function Cx({text:e,list:t},r){let n=[];return e&&n.push(`- ${Br.blue(e)}`),t&&n.push([`- ${Br.blue(t.title)}:`].concat(t.values.map(i=>Cx(i,r-pg.length).replace(/^|\n/g,`$&${pg}`))).join(` -`)),vx(n,r)}function vx(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 ss=[],Op=[];function Mp(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 ss.length=s,Op.length=s,n!==void 0&&l>n?n:l}function Hk(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?Mp(e,u):Mp(e,u,{maxDistance:c});if(n!==void 0&&p>n)continue;let h=p;if(c!==void 0&&p===c&&c===n&&(h=Mp(e,u)),hn))return s}var Ax=(e,t,{descriptor:r,logger:n,schemas:i})=>{let s=[`Ignored unknown option ${Br.yellow(r.pair({key:e,value:t}))}.`],a=Hk(e,Object.keys(i),{maxDistance:3});a&&s.push(`Did you mean ${Br.blue(r.key(a))}?`),n.warn(s.join(" "))},Wk=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function Jk(e,t){let r=new e(t),n=Object.create(r);for(let i of Wk)i in t&&(n[i]=Xk(t[i],r,ci.prototype[i].length));return n}var ci=class{static create(t){return Jk(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 yl}};function Xk(e,t,r){return typeof e=="function"?(...n)=>e(...n.slice(0,r-1),t,...n.slice(r-1)):()=>e}var Kk=class extends ci{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}},Gk=class extends ci{expected(){return"anything"}validate(){return!0}},Qk=class extends ci{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(dg))}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(dg))}return n.length===0?{redirect:i}:{redirect:i,remain:n}}overlap(t,r){return t.concat(r)}};function dg({from:e,to:t}){return{from:[e],to:t}}var Yk=class extends ci{expected(){return"true or false"}validate(t){return typeof t=="boolean"}};function Zk(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 eN(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 tN(){let e=Object.create(null);return t=>{let r=JSON.stringify(t);return e[r]?!0:(e[r]=!0,!1)}}function rN(e,t){let r=[],n=[];for(let i of e)t(i)?r.push(i):n.push(i);return[r,n]}function nN(e){return e===Math.floor(e)}function iN(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 sN(e){return(...t)=>{let r=e(...t);return typeof r=="string"?new Error(r):r}}function fg(e){return e===void 0?{}:e}function Tx(e){if(typeof e=="string")return{text:e};let{text:t,list:r}=e;return aN((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(Tx)}}:{text:t}}function mg(e,t){return e===!0?!0:e===!1?{value:t}:e}function yg(e,t,r=!1){return e===!1?!1:e===!0?r?!0:[{value:t}]:"value"in e?[e]:e.length===0?!1:e}function gg(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 md(e,t){return e===void 0?[]:Array.isArray(e)?e.map(r=>gg(r,t)):[gg(e,t)]}function Dg(e,t){let r=md(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 aN(e,t){if(!e)throw new Error(t)}var oN=class extends ci{constructor(t){super(t),this._choices=eN(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(iN).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}},uN=class extends ci{expected(){return"a number"}validate(t,r){return typeof t=="number"}},lN=class extends uN{expected(){return"an integer"}validate(t,r){return r.normalizeValidateResult(super.validate(t,r),t)===!0&&nN(t)}},Eg=class extends ci{expected(){return"a string"}validate(t){return typeof t=="string"}},cN=bs,pN=Ax,hN=qk,dN=Vk,fN=class{constructor(t,r){let{logger:n=console,loggerPrintWidth:i=80,descriptor:s=cN,unknown:a=pN,invalid:o=hN,deprecated:u=dN,missing:l=()=>!1,required:c=()=>!1,preprocess:p=d=>d,postprocess:h=()=>yl}=r||{};this._utils={descriptor:s,logger:n||{warn:()=>{}},loggerPrintWidth:i,schemas:Zk(t,"name"),normalizeDefaultResult:fg,normalizeExpectedResult:Tx,normalizeDeprecatedResult:yg,normalizeForwardResult:md,normalizeRedirectResult:Dg,normalizeValidateResult:mg},this._unknownHandler=a,this._invalidHandler=sN(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=tN()}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=fg(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!==yl&&(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=yg(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 E={key:a,value:y};if(!this._hasDeprecationWarned(E)){let g=typeof d=="string"?{key:d,value:y}:d;this._utils.logger.warn(this._deprecatedHandler(E,g,this._utils))}}};md(o.forward(u,this._utils),u).forEach(l);let p=Dg(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,xx,this._utils)}_partitionOptionKeys(t){let[r,n]=rN(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=mg(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!==yl){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})}}}}},jp;function mN(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=bs;let o=i?Array.isArray(i)?(h,d)=>i.includes(h)?{[h]:d}:void 0:(h,d)=>({[h]:d}):(h,d,f)=>{let{_:y,...E}=f.schemas;return Ax(h,d,{...f,schemas:E})},u=yN(t,{isCLI:n,FlagSchema:s}),l=new fN(u,{logger:r,unknown:o,descriptor:a}),c=r!==!1;c&&jp&&(l._hasDeprecationWarned=jp);let p=l.normalize(e);return c&&(jp=l._hasDeprecationWarned),p}function yN(e,{isCLI:t,FlagSchema:r}){let n=[];t&&n.push(Gk.create({name:"_"}));for(let i of e)n.push(gN(i,{isCLI:t,optionInfos:e,FlagSchema:r})),i.alias&&t&&n.push(Kk.create({name:i.alias,sourceName:i.name}));return n}function gN(e,{isCLI:t,optionInfos:r,FlagSchema:n}){let{name:i}=e,s={name:i},a,o={};switch(e.type){case"int":a=lN,t&&(s.preprocess=Number);break;case"string":a=Eg;break;case"choice":a=oN,s.choices=e.choices.map(u=>u!=null&&u.redirect?{...u,redirect:{to:{key:e.name,value:u.redirect}}}:u);break;case"boolean":a=Yk;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)?He(0,l,-1):l),p)}return e.array?Qk.create({...t?{preprocess:u=>Array.isArray(u)?u:[u]}:{},...o,valueSchema:a.create(s)}):a.create({...s,...o})}var DN=mN,EN=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}},xN=iu("findLast",function(){if(Array.isArray(this))return EN}),Sx=xN,CN=Symbol.for("PRETTIER_IS_FRONT_MATTER"),vN=[];function AN(e){return!!(e!=null&&e[CN])}var lm=AN,Fx=new Set(["yaml","toml"]),bx=({node:e})=>lm(e)&&Fx.has(e.language);async function TN(e,t,r,n){let{node:i}=r,{language:s}=i;if(!Fx.has(s))return;let a=i.value.trim(),o;if(a){let u=s==="yaml"?s:Dx(n,{language:s});if(!u)return;o=a?await e(a,{parser:u}):""}else o=a;return QE([i.startDelimiter,i.explicitLanguage??"",rn,o,o?rn:"",i.endDelimiter])}function SN(e,t){return bx({node:e})&&(delete t.end,delete t.raw,delete t.value),t}var FN=SN;function bN({node:e}){return e.raw}var wN=bN,wx=new Set(["tokens","comments","parent","enclosingNode","precedingNode","followingNode"]),PN=e=>Object.keys(e).filter(t=>!wx.has(t));function kN(e,t){let r=e?n=>e(n,wx):PN;return t?new Proxy(r,{apply:(n,i,s)=>lm(s[0])?vN:Reflect.apply(n,i,s)}):r}var xg=kN;function Px(e,t){if(!t)throw new Error("parserName is required.");let r=Sx(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 mx(n)}function NN(e,t){if(!t)throw new Error("astFormat is required.");let r=Sx(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 mx(n)}function cm({plugins:e,parser:t}){let r=Px(e,t);return kx(r,t)}function kx(e,t){let r=e.parsers[t];return typeof r=="function"?r():r}async function BN(e,t){let r=e.printers[t],n=typeof r=="function"?await r():r;return IN(n)}var Rp=new WeakMap;function IN(e){if(Rp.has(e))return Rp.get(e);let{features:t,getVisitorKeys:r,embed:n,massageAstNode:i,print:s,...a}=e;t=ON(t);let o=t.experimental_frontMatterSupport;r=xg(r,o.massageAstNode||o.embed||o.print);let u=i;i&&o.massageAstNode&&(u=new Proxy(i,{apply(h,d,f){return FN(...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?xg(n.getVisitorKeys,o.massageAstNode||o.embed):r),h):Reflect.get(d,f,y)},apply:(d,f,y)=>o.embed&&bx(...y)?TN:Reflect.apply(d,f,y)})}let c=s;o.print&&(c=new Proxy(s,{apply(h,d,f){let[y]=f;return lm(y.node)?wN(y):Reflect.apply(h,d,f)}}));let p={features:t,getVisitorKeys:r,embed:l,massageAstNode:u,print:c,...a};return Rp.set(e,p),p}var _N=["clean","embed","print"],LN=Object.fromEntries(_N.map(e=>[e,!1]));function $N(e){return{...LN,...e}}function ON(e){return{experimental_avoidAstMutation:!1,...e,experimental_frontMatterSupport:$N(e==null?void 0:e.experimental_frontMatterSupport)}}var Cg={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null,getVisitorKeys:null};async function MN(e,t={}){var p;let r={...e};if(!r.parser)if(r.filepath){if(r.parser=Dx(r,{physicalFile:r.filepath}),!r.parser)throw new ug(`No parser could be inferred for file "${r.filepath}".`)}else throw new ug("No parser and no file path given, couldn't infer a parser.");let n=yx({plugins:e.plugins,showDeprecated:!0}).options,i={...Cg,...Object.fromEntries(n.filter(h=>h.default!==void 0).map(h=>[h.name,h.default]))},s=Px(r.plugins,r.parser),a=await kx(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:NN(r.plugins,a.astFormat),u=await BN(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"),DN(r,n,{passThrough:Object.keys(Cg),...t})}var ua=MN;tP(rP(),1);var pm={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(pm.keyword);new Set(pm.strict);new Set(pm.strictBind);var zu=(e,t)=>r=>e(t(r));function Nx(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:zu(zu(e.white,e.bgRed),e.bold),gutter:e.gray,marker:zu(e.red,e.bold),message:zu(e.red,e.bold),reset:e.reset}}Nx(Ex());Nx(Ex());function jN(){return new Proxy({},{get:()=>e=>e})}var vg=/\r\n|[\n\r\u2028\u2029]/;function RN(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 E=y+o;if(!u)f[E]=!0;else if(y===0){let g=t[E-1].length;f[E]=[u,g-u+1]}else if(y===d)f[E]=[0,c];else{let g=t[E-y].length;f[E]=[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 UN(e,t,r={}){let n=jN(),i=e.split(vg),{start:s,end:a,markerLines:o}=RN(t,i,r),u=t.start&&typeof t.start.column=="number",l=String(a).length,c=e.split(vg,a).slice(s,a).map((p,h)=>{let d=s+1+h,f=` ${` ${d}`.slice(-l)} |`,y=o[d],E=!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(""),E&&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 Cx({plugins:e=[],showDeprecated:t=!1}={}){let r=e.flatMap(i=>i.languages??[]),n=[];for(let i of jk(Object.assign({},...e.map(({options:s})=>s),Mk)))!t&&i.deprecated||(Array.isArray(i.choices)&&(t||(i.choices=i.choices.filter(s=>!s.deprecated)),i.name==="parser"&&(i.choices=[...i.choices,...Ok(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*Ok(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 jk(e){let t=[];for(let[r,n]of Object.entries(e)){let i={name:r,...n};Array.isArray(i.default)&&(i.default=We(0,i.default,-1).value),t.push(i)}return t}var Rk=Array.prototype.toReversed??function(){return[...this].reverse()},Uk=iu("toReversed",function(){if(Array.isArray(this))return Rk}),zk=Uk;function Vk(){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 qk=Vk();function vx(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 Hk(e){return e=vx(e),decodeURIComponent(e.pathname.replace(/%(?![0-9A-Fa-f]{2})/g,"%25"))}function Wk(e){e=vx(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 Jk(e){return qk?Wk(e):Hk(e)}var Xk=e=>String(e).split(/[/\\]/u).pop(),Kk=e=>String(e).startsWith("file:");function cg(e,t){if(!t)return;let r=Xk(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 Gk(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 $p=void 0;function pg(e,t){if(t){if(Kk(t))try{t=Jk(t)}catch{return}if(typeof t=="string")return e.find(({isSupported:r})=>r==null?void 0:r({filepath:t}))}}function Qk(e,t){var n;let r=zk(0,e.plugins).flatMap(i=>i.languages??[]);return(n=Gk(r,t.language)??cg(r,t.physicalFile)??cg(r,t.file)??pg(r,t.physicalFile)??pg(r,t.file)??($p==null?void 0:$p(r,t.physicalFile)))==null?void 0:n.parsers[0]}var Ax=Qk,bs={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=>bs.value(r)).join(", ")}]`;let t=Object.keys(e);return t.length===0?"{}":`{ ${t.map(r=>`${bs.key(r)}: ${bs.value(e[r])}`).join(", ")} }`},pair:({key:e,value:t})=>bs.value({[e]:t})},um=new Proxy(String,{get:()=>um}),Br=um,Tx=()=>um,Yk=(e,t,{descriptor:r})=>{let n=[`${Br.yellow(typeof e=="string"?r.key(e):r.pair(e))} is deprecated`];return t&&n.push(`we now treat it as ${Br.blue(typeof t=="string"?r.key(t):r.pair(t))}`),n.join("; ")+"."},Sx=Symbol.for("vnopts.VALUE_NOT_EXIST"),yl=Symbol.for("vnopts.VALUE_UNCHANGED"),hg=" ".repeat(2),Zk=(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=>Fx(a,r.loggerPrintWidth))).join(` +`)),bx(s,r.loggerPrintWidth)};function dg(e,t,r,n){return[`Invalid ${Br.red(n.key(e))} value.`,`Expected ${Br.blue(r)},`,`but received ${t===Sx?Br.gray("nothing"):Br.red(n.value(t))}.`].join(" ")}function Fx({text:e,list:t},r){let n=[];return e&&n.push(`- ${Br.blue(e)}`),t&&n.push([`- ${Br.blue(t.title)}:`].concat(t.values.map(i=>Fx(i,r-hg.length).replace(/^|\n/g,`$&${hg}`))).join(` +`)),bx(n,r)}function bx(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 ss=[],Mp=[];function Op(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 ss.length=s,Mp.length=s,n!==void 0&&l>n?n:l}function eN(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?Op(e,u):Op(e,u,{maxDistance:c});if(n!==void 0&&p>n)continue;let h=p;if(c!==void 0&&p===c&&c===n&&(h=Op(e,u)),hn))return s}var wx=(e,t,{descriptor:r,logger:n,schemas:i})=>{let s=[`Ignored unknown option ${Br.yellow(r.pair({key:e,value:t}))}.`],a=eN(e,Object.keys(i),{maxDistance:3});a&&s.push(`Did you mean ${Br.blue(r.key(a))}?`),n.warn(s.join(" "))},tN=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function rN(e,t){let r=new e(t),n=Object.create(r);for(let i of tN)i in t&&(n[i]=nN(t[i],r,pi.prototype[i].length));return n}var pi=class{static create(t){return rN(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 yl}};function nN(e,t,r){return typeof e=="function"?(...n)=>e(...n.slice(0,r-1),t,...n.slice(r-1)):()=>e}var iN=class extends pi{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}},sN=class extends pi{expected(){return"anything"}validate(){return!0}},aN=class extends pi{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 oN=class extends pi{expected(){return"true or false"}validate(t){return typeof t=="boolean"}};function uN(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 lN(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 cN(){let e=Object.create(null);return t=>{let r=JSON.stringify(t);return e[r]?!0:(e[r]=!0,!1)}}function pN(e,t){let r=[],n=[];for(let i of e)t(i)?r.push(i):n.push(i);return[r,n]}function hN(e){return e===Math.floor(e)}function dN(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 fN(e){return(...t)=>{let r=e(...t);return typeof r=="string"?new Error(r):r}}function mg(e){return e===void 0?{}:e}function Px(e){if(typeof e=="string")return{text:e};let{text:t,list:r}=e;return mN((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(Px)}}:{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 md(e,t){return e===void 0?[]:Array.isArray(e)?e.map(r=>Dg(r,t)):[Dg(e,t)]}function Eg(e,t){let r=md(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 mN(e,t){if(!e)throw new Error(t)}var yN=class extends pi{constructor(t){super(t),this._choices=lN(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(dN).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}},gN=class extends pi{expected(){return"a number"}validate(t,r){return typeof t=="number"}},DN=class extends gN{expected(){return"an integer"}validate(t,r){return r.normalizeValidateResult(super.validate(t,r),t)===!0&&hN(t)}},xg=class extends pi{expected(){return"a string"}validate(t){return typeof t=="string"}},EN=bs,xN=wx,CN=Zk,vN=Yk,AN=class{constructor(t,r){let{logger:n=console,loggerPrintWidth:i=80,descriptor:s=EN,unknown:a=xN,invalid:o=CN,deprecated:u=vN,missing:l=()=>!1,required:c=()=>!1,preprocess:p=d=>d,postprocess:h=()=>yl}=r||{};this._utils={descriptor:s,logger:n||{warn:()=>{}},loggerPrintWidth:i,schemas:uN(t,"name"),normalizeDefaultResult:mg,normalizeExpectedResult:Px,normalizeDeprecatedResult:gg,normalizeForwardResult:md,normalizeRedirectResult:Eg,normalizeValidateResult:yg},this._unknownHandler=a,this._invalidHandler=fN(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=cN()}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!==yl&&(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 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))}}};md(o.forward(u,this._utils),u).forEach(l);let p=Eg(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,Sx,this._utils)}_partitionOptionKeys(t){let[r,n]=pN(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!==yl){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})}}}}},jp;function TN(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=bs;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 wx(h,d,{...f,schemas:x})},u=SN(t,{isCLI:n,FlagSchema:s}),l=new AN(u,{logger:r,unknown:o,descriptor:a}),c=r!==!1;c&&jp&&(l._hasDeprecationWarned=jp);let p=l.normalize(e);return c&&(jp=l._hasDeprecationWarned),p}function SN(e,{isCLI:t,FlagSchema:r}){let n=[];t&&n.push(sN.create({name:"_"}));for(let i of e)n.push(FN(i,{isCLI:t,optionInfos:e,FlagSchema:r})),i.alias&&t&&n.push(iN.create({name:i.alias,sourceName:i.name}));return n}function FN(e,{isCLI:t,optionInfos:r,FlagSchema:n}){let{name:i}=e,s={name:i},a,o={};switch(e.type){case"int":a=DN,t&&(s.preprocess=Number);break;case"string":a=xg;break;case"choice":a=yN,s.choices=e.choices.map(u=>u!=null&&u.redirect?{...u,redirect:{to:{key:e.name,value:u.redirect}}}:u);break;case"boolean":a=oN;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=xg;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)?We(0,l,-1):l),p)}return e.array?aN.create({...t?{preprocess:u=>Array.isArray(u)?u:[u]}:{},...o,valueSchema:a.create(s)}):a.create({...s,...o})}var bN=TN,wN=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}},PN=iu("findLast",function(){if(Array.isArray(this))return wN}),kx=PN,kN=Symbol.for("PRETTIER_IS_FRONT_MATTER"),NN=[];function BN(e){return!!(e!=null&&e[kN])}var lm=BN,Nx=new Set(["yaml","toml"]),Bx=({node:e})=>lm(e)&&Nx.has(e.language);async function IN(e,t,r,n){let{node:i}=r,{language:s}=i;if(!Nx.has(s))return;let a=i.value.trim(),o;if(a){let u=s==="yaml"?s:Ax(n,{language:s});if(!u)return;o=a?await e(a,{parser:u}):""}else o=a;return rx([i.startDelimiter,i.explicitLanguage??"",rn,o,o?rn:"",i.endDelimiter])}function _N(e,t){return Bx({node:e})&&(delete t.end,delete t.raw,delete t.value),t}var LN=_N;function $N({node:e}){return e.raw}var MN=$N,Ix=new Set(["tokens","comments","parent","enclosingNode","precedingNode","followingNode"]),ON=e=>Object.keys(e).filter(t=>!Ix.has(t));function jN(e,t){let r=e?n=>e(n,Ix):ON;return t?new Proxy(r,{apply:(n,i,s)=>lm(s[0])?NN:Reflect.apply(n,i,s)}):r}var Cg=jN;function _x(e,t){if(!t)throw new Error("parserName is required.");let r=kx(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 xx(n)}function RN(e,t){if(!t)throw new Error("astFormat is required.");let r=kx(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 xx(n)}function cm({plugins:e,parser:t}){let r=_x(e,t);return Lx(r,t)}function Lx(e,t){let r=e.parsers[t];return typeof r=="function"?r():r}async function UN(e,t){let r=e.printers[t],n=typeof r=="function"?await r():r;return zN(n)}var Rp=new WeakMap;function zN(e){if(Rp.has(e))return Rp.get(e);let{features:t,getVisitorKeys:r,embed:n,massageAstNode:i,print:s,...a}=e;t=WN(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 LN(...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&&Bx(...y)?IN:Reflect.apply(d,f,y)})}let c=s;o.print&&(c=new Proxy(s,{apply(h,d,f){let[y]=f;return lm(y.node)?MN(y):Reflect.apply(h,d,f)}}));let p={features:t,getVisitorKeys:r,embed:l,massageAstNode:u,print:c,...a};return Rp.set(e,p),p}var VN=["clean","embed","print"],qN=Object.fromEntries(VN.map(e=>[e,!1]));function HN(e){return{...qN,...e}}function WN(e){return{experimental_avoidAstMutation:!1,...e,experimental_frontMatterSupport:HN(e==null?void 0:e.experimental_frontMatterSupport)}}var vg={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null,getVisitorKeys:null};async function JN(e,t={}){var p;let r={...e};if(!r.parser)if(r.filepath){if(r.parser=Ax(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=Cx({plugins:e.plugins,showDeprecated:!0}).options,i={...vg,...Object.fromEntries(n.filter(h=>h.default!==void 0).map(h=>[h.name,h.default]))},s=_x(r.plugins,r.parser),a=await Lx(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:RN(r.plugins,a.astFormat),u=await UN(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"),bN(r,n,{passThrough:Object.keys(vg),...t})}var ua=JN;cP(pP(),1);var pm={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(pm.keyword);new Set(pm.strict);new Set(pm.strictBind);var zu=(e,t)=>r=>e(t(r));function $x(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:zu(zu(e.white,e.bgRed),e.bold),gutter:e.gray,marker:zu(e.red,e.bold),message:zu(e.red,e.bold),reset:e.reset}}$x(Tx());$x(Tx());function XN(){return new Proxy({},{get:()=>e=>e})}var Ag=/\r\n|[\n\r\u2028\u2029]/;function KN(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 GN(e,t,r={}){let n=XN(),i=e.split(Ag),{start:s,end:a,markerLines:o}=KN(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],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(` `);return r.message&&!u&&(c=`${" ".repeat(l+1)}${r.message} -${c}`),c}async function zN(e,t){let r=await cm(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){VN(s,e)}return{text:n,ast:i}}function VN(e,t){let{loc:r}=e;if(r){let n=UN(t,r,{highlightCode:!0});throw e.message+=` -`+n,e.codeFrame=n,e}throw e}var au=zN;async function qN(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 E=await d(p,t,e,r);E&&i.set(f,E)}catch(E){if(globalThis.PRETTIER_DEBUG)throw E}e.stack=c;function p(d,f){return HN(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 HN(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 au(e,i),a=await n(s,i);return GE(a)}function WN(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 JN=WN;async function Lc(e,t){({ast:e}=await Bx(e,t));let r=new Map,n=new lk(e),i=new Map;await qN(n,a,t,Lc,i);let s=await Ag(n,t,a,void 0,i);if(bk(t),t.cursorOffset>=0){if(t.nodeAfterCursor&&!t.nodeBeforeCursor)return[Pi,s];if(t.nodeBeforeCursor&&!t.nodeAfterCursor)return[s,Pi]}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=sm(l)&&u===void 0;if(c&&r.has(l))return r.get(l);let p=Ag(n,t,a,u,i);return c&&r.set(l,p),p}}function Ag(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=JN(e,t,r,n):i.has(s)?o=i.get(s):o=a.print(e,t,r,n),s){case t.cursorNode:o=fl(o,c=>[Pi,c,Pi]);break;case t.nodeBeforeCursor:o=fl(o,c=>[c,Pi]);break;case t.nodeAfterCursor:o=fl(o,c=>[Pi,c]);break}return a.printComment&&!((l=a.willPrintOwnComments)!=null&&l.call(a,e,t))&&(o=Fk(e,o,t)),o}async function Bx(e,t){let r=e.comments??[];t[Symbol.for("comments")]=r,t[Symbol.for("printedComments")]=new Set,Ek(e,t);let{printer:{preprocess:n}}=t;return e=n?await n(e,t):e,{ast:e,comments:r}}function XN(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 yk(e,{getVisitorKeys:s,filter:a}))u.push(d),o=d;if(gk(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 _c(o,{getVisitorKeys:s})){if(!d){let E=i(y);E<=r&&E>p&&(l=y,p=E)}if(!f){let E=n(y);E>=r&&Ea(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 GN=KN,QN=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},YN=iu("findLastIndex",function(){if(Array.isArray(this))return QN}),ZN=YN,e8=({parser:e})=>e==="json"||e==="json5"||e==="jsonc"||e==="json-stringify";function t8(e,t){return t=new Set(t),e.find(r=>_x.has(r.type)&&t.has(r))}function Tg(e){let t=ZN(0,e,r=>r.type!=="Program"&&r.type!=="File");return t===-1?e:e.slice(0,t+1)}function r8(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 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)=>Sg(t,d,f),[],"rangeStart");if(!l)return;let c=u?l:yd(r,i,t,d=>Sg(t,d),[],"rangeEnd");if(!c)return;let p,h;if(e8(t)){let d=t8(l,c);p=d,h=d}else[p,h]=r8(l,c,t);return[Math.min(s(p),s(h)),Math.max(a(p),a(h))]}var Lx="\uFEFF",Fg=Symbol("cursor");async function $x(e,t,r=0){if(!e||e.trim().length===0)return{formatted:"",cursorOffset:-1,comments:[]};let{ast:n,text:i}=await au(e,t);t.cursorOffset>=0&&(t={...t,...Ix(n,t)});let s=await Lc(n,t);r>0&&(s=YE([rn,s],r,t.tabWidth));let a=Ic(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+Zf(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=lP(d,f),E=c;for(let g of y)if(g.removed){if(g.value.includes(Fg))break}else E+=g.count;return{formatted:a.formatted,cursorOffset:E,comments:o}}return{formatted:a.formatted,cursorOffset:-1,comments:o}}async function a8(e,t){let{ast:r,text:n}=await au(e,t),[i,s]=s8(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=im(u,t.tabWidth),c=await $x(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=Zf(t.endOfLine);h>=0&&f===`\r -`&&(h+=XE(d.slice(0,h),` +${c}`),c}async function QN(e,t){let r=await cm(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){YN(s,e)}return{text:n,ast:i}}function YN(e,t){let{loc:r}=e;if(r){let n=GN(t,r,{highlightCode:!0});throw e.message+=` +`+n,e.codeFrame=n,e}throw e}var au=QN;async function ZN(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 e8(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 e8(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 au(e,i),a=await n(s,i);return tx(a)}function t8(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 r8=t8;async function Lc(e,t){({ast:e}=await Mx(e,t));let r=new Map,n=new Dk(e),i=new Map;await ZN(n,a,t,Lc,i);let s=await Tg(n,t,a,void 0,i);if($k(t),t.cursorOffset>=0){if(t.nodeAfterCursor&&!t.nodeBeforeCursor)return[Pi,s];if(t.nodeBeforeCursor&&!t.nodeAfterCursor)return[s,Pi]}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=sm(l)&&u===void 0;if(c&&r.has(l))return r.get(l);let p=Tg(n,t,a,u,i);return c&&r.set(l,p),p}}function Tg(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=r8(e,t,r,n):i.has(s)?o=i.get(s):o=a.print(e,t,r,n),s){case t.cursorNode:o=fl(o,c=>[Pi,c,Pi]);break;case t.nodeBeforeCursor:o=fl(o,c=>[c,Pi]);break;case t.nodeAfterCursor:o=fl(o,c=>[Pi,c]);break}return a.printComment&&!((l=a.willPrintOwnComments)!=null&&l.call(a,e,t))&&(o=Lk(e,o,t)),o}async function Mx(e,t){let r=e.comments??[];t[Symbol.for("comments")]=r,t[Symbol.for("printedComments")]=new Set,wk(e,t);let{printer:{preprocess:n}}=t;return e=n?await n(e,t):e,{ast:e,comments:r}}function n8(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 Sk(e,{getVisitorKeys:s,filter:a}))u.push(d),o=d;if(Fk(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 _c(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 s8=i8,a8=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},o8=iu("findLastIndex",function(){if(Array.isArray(this))return a8}),u8=o8,l8=({parser:e})=>e==="json"||e==="json5"||e==="jsonc"||e==="json-stringify";function c8(e,t){return t=new Set(t),e.find(r=>jx.has(r.type)&&t.has(r))}function Sg(e){let t=u8(0,e,r=>r.type!=="Program"&&r.type!=="File");return t===-1?e:e.slice(0,t+1)}function p8(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 Sg(o))if(r(c)>=u)a=c;else break;let l=n(a);for(let c of Sg(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)=>Fg(t,d,f),[],"rangeStart");if(!l)return;let c=u?l:yd(r,i,t,d=>Fg(t,d),[],"rangeEnd");if(!c)return;let p,h;if(l8(t)){let d=c8(l,c);p=d,h=d}else[p,h]=p8(l,c,t);return[Math.min(s(p),s(h)),Math.max(a(p),a(h))]}var Rx="\uFEFF",bg=Symbol("cursor");async function Ux(e,t,r=0){if(!e||e.trim().length===0)return{formatted:"",cursorOffset:-1,comments:[]};let{ast:n,text:i}=await au(e,t);t.cursorOffset>=0&&(t={...t,...Ox(n,t)});let s=await Lc(n,t);r>0&&(s=nx([rn,s],r,t.tabWidth));let a=Ic(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+Zf(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,bg);let f=p.split(""),y=DP(d,f),x=c;for(let g of y)if(g.removed){if(g.value.includes(bg))break}else x+=g.count;return{formatted:a.formatted,cursorOffset:x,comments:o}}return{formatted:a.formatted,cursorOffset:-1,comments:o}}async function m8(e,t){let{ast:r,text:n}=await au(e,t),[i,s]=f8(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=im(u,t.tabWidth),c=await Ux(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=Zf(t.endOfLine);h>=0&&f===`\r +`&&(h+=ZE(d.slice(0,h),` `)),d=Pc(0,d,` -`,f)}return{formatted:d,cursorOffset:h,comments:c.comments}}function Up(e,t,r){return typeof t!="number"||Number.isNaN(t)||t<0||t>e.length?r:t}function bg(e,t){let{cursorOffset:r,rangeStart:n,rangeEnd:i}=t;return r=Up(e,r,-1),n=Up(e,n,0),i=Up(e,i,e.length),{...t,cursorOffset:r,rangeStart:n,rangeEnd:i}}function Ox(e,t){let{cursorOffset:r,rangeStart:n,rangeEnd:i,endOfLine:s}=bg(e,t),a=e.charAt(0)===Lx;if(a&&(e=e.slice(1),r--,n--,i--),s==="auto"&&(s=mP(e)),e.includes("\r")){let o=u=>XE(e.slice(0,Math.max(u,0)),`\r -`);r-=o(r),n-=o(n),i-=o(i),e=DP(e)}return{hasBOM:a,text:e,options:bg(e,{...t,cursorOffset:r,rangeStart:n,rangeEnd:i,endOfLine:s})}}async function wg(e,t){let r=await cm(t);return!r.hasPragma||r.hasPragma(e)}async function o8(e,t){var r,n;return(n=(r=await cm(t)).hasIgnorePragma)==null?void 0:n.call(r,e)}async function Mx(e,t){let{hasBOM:r,text:n,options:i}=Ox(e,await ua(t));if(i.rangeStart>=i.rangeEnd&&n!==""||i.requirePragma&&!await wg(n,i)||i.checkIgnorePragma&&await o8(n,i))return{formatted:e,cursorOffset:t.cursorOffset,comments:[]};let s;return i.rangeStart>0||i.rangeEnd=0&&s.cursorOffset++),s}async function u8(e,t,r){let{text:n,options:i}=Ox(e,await ua(t)),s=await au(n,i);return r&&(r.preprocessForPrint&&(s.ast=await Bx(s.ast,i)),r.massage&&(s.ast=GN(s.ast,i))),s}async function l8(e,t){t=await ua(t);let r=await Lc(e,t);return Ic(r,t)}async function c8(e,t){let r=XP(e),{formatted:n}=await Mx(r,{...t,parser:"__js_expression"});return n}async function p8(e,t){t=await ua(t);let{ast:r}=await au(e,t);return t.cursorOffset>=0&&(t={...t,...Ix(r,t)}),Lc(r,t)}async function h8(e,t){return Ic(e,await ua(t))}var jx={};Qf(jx,{builders:()=>d8,printer:()=>f8,utils:()=>m8});var d8={join:ex,line:tx,softline:HP,hardline:rn,literalline:nx,group:ZE,conditionalGroup:UP,fill:RP,lineSuffix:hd,lineSuffixBoundary:WP,cursor:Pi,breakParent:Bc,ifBreak:zP,trim:JP,indent:ec,indentIfBreak:VP,align:Js,addAlignmentToDoc:YE,markAsRoot:QE,dedentToRoot:MP,dedent:jP,hardlineWithoutBreakParent:rm,literallineWithoutBreakParent:rx,label:qP,concat:e=>e},f8={printDocToString:Ic},m8={willBreak:wP,traverseDoc:em,findInDoc:tm,mapDoc:Nc,removeLines:NP,stripTrailingHardline:GE,replaceEndOfLine:_P,canBreak:$P},y8="3.8.0",Rx={};Qf(Rx,{addDanglingComment:()=>Ti,addLeadingComment:()=>lo,addTrailingComment:()=>co,getAlignmentSize:()=>im,getIndentSize:()=>v8,getMaxContinuousCount:()=>S8,getNextNonSpaceNonCommentCharacter:()=>b8,getNextNonSpaceNonCommentCharacterIndex:()=>O8,getPreferredQuote:()=>N8,getStringWidth:()=>nm,hasNewline:()=>Qn,hasNewlineInRange:()=>I8,hasSpaces:()=>L8,isNextLineEmpty:()=>z8,isNextLineEmptyAfterIndex:()=>mm,isPreviousLineEmpty:()=>j8,makeString:()=>U8,skip:()=>su,skipEverythingButNewLine:()=>ux,skipInlineComment:()=>hm,skipNewline:()=>Ri,skipSpaces:()=>ri,skipToLineEnd:()=>ox,skipTrailingComment:()=>dm,skipWhitespace:()=>pk});function g8(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 S8=T8;function F8(e,t){let r=fm(e,t);return r===!1?"":e.charAt(r)}var b8=F8,Ux=Object.freeze({character:"'",codePoint:39}),zx=Object.freeze({character:'"',codePoint:34}),w8=Object.freeze({preferred:Ux,alternate:zx}),P8=Object.freeze({preferred:zx,alternate:Ux});function k8(e,t){let{preferred:r,alternate:n}=t===!0||t==="'"?w8:P8,{length:i}=e,s=0,a=0;for(let o=0;oa?n:r).character}var N8=k8;function B8(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 z8(e,t){return arguments.length===2||typeof t=="number"?mm(e,t):R8(...arguments)}function Si(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 Vx=Si(Mx);async function $c(e,t){let{formatted:r}=await Vx(e,{...t,cursorOffset:-1});return r}async function V8(e,t){return await $c(e,t)===e}var q8=Si(yx,0),H8={parse:Si(u8),formatAST:Si(l8),formatDoc:Si(c8),printToDoc:Si(p8),printDocToString:Si(h8)},W8=Object.defineProperty,ym=(e,t)=>{for(var r in t)W8(e,r,{get:t[r],enumerable:!0})},qx={};ym(qx,{parsers:()=>FC});var Hx={};ym(Hx,{__babel_estree:()=>O4,__js_expression:()=>e1,__ts_expression:()=>t1,__vue_event_binding:()=>Yg,__vue_expression:()=>e1,__vue_ts_event_binding:()=>Zg,__vue_ts_expression:()=>t1,babel:()=>Yg,"babel-flow":()=>vC,"babel-ts":()=>Zg});function J8(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 Yn=class{constructor(t,r,n){U(this,"line");U(this,"column");U(this,"index");this.line=t,this.column=r,this.index=n}},tc=class{constructor(t,r){U(this,"start");U(this,"end");U(this,"filename");U(this,"identifierName");this.start=t,this.end=r}};function Yt(e,t){let{line:r,column:n,index:i}=e;return new Yn(r,n+t,i+t)}var Pg="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",X8={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}},kg={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"},gl=e=>e.type==="UpdateExpression"?kg.UpdateExpression[`${e.prefix}`]:kg[e.type],K8={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\`. +`,f)}return{formatted:d,cursorOffset:h,comments:c.comments}}function Up(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=Up(e,r,-1),n=Up(e,n,0),i=Up(e,i,e.length),{...t,cursorOffset:r,rangeStart:n,rangeEnd:i}}function zx(e,t){let{cursorOffset:r,rangeStart:n,rangeEnd:i,endOfLine:s}=wg(e,t),a=e.charAt(0)===Rx;if(a&&(e=e.slice(1),r--,n--,i--),s==="auto"&&(s=TP(e)),e.includes("\r")){let o=u=>ZE(e.slice(0,Math.max(u,0)),`\r +`);r-=o(r),n-=o(n),i-=o(i),e=bP(e)}return{hasBOM:a,text:e,options:wg(e,{...t,cursorOffset:r,rangeStart:n,rangeEnd:i,endOfLine:s})}}async function Pg(e,t){let r=await cm(t);return!r.hasPragma||r.hasPragma(e)}async function y8(e,t){var r,n;return(n=(r=await cm(t)).hasIgnorePragma)==null?void 0:n.call(r,e)}async function Vx(e,t){let{hasBOM:r,text:n,options:i}=zx(e,await ua(t));if(i.rangeStart>=i.rangeEnd&&n!==""||i.requirePragma&&!await Pg(n,i)||i.checkIgnorePragma&&await y8(n,i))return{formatted:e,cursorOffset:t.cursorOffset,comments:[]};let s;return i.rangeStart>0||i.rangeEnd=0&&s.cursorOffset++),s}async function g8(e,t,r){let{text:n,options:i}=zx(e,await ua(t)),s=await au(n,i);return r&&(r.preprocessForPrint&&(s.ast=await Mx(s.ast,i)),r.massage&&(s.ast=s8(s.ast,i))),s}async function D8(e,t){t=await ua(t);let r=await Lc(e,t);return Ic(r,t)}async function E8(e,t){let r=nk(e),{formatted:n}=await Vx(r,{...t,parser:"__js_expression"});return n}async function x8(e,t){t=await ua(t);let{ast:r}=await au(e,t);return t.cursorOffset>=0&&(t={...t,...Ox(r,t)}),Lc(r,t)}async function C8(e,t){return Ic(e,await ua(t))}var qx={};Qf(qx,{builders:()=>v8,printer:()=>A8,utils:()=>T8});var v8={join:sx,line:ax,softline:ek,hardline:rn,literalline:ux,group:ix,conditionalGroup:GP,fill:KP,lineSuffix:hd,lineSuffixBoundary:tk,cursor:Pi,breakParent:Bc,ifBreak:QP,trim:rk,indent:ec,indentIfBreak:YP,align:Js,addAlignmentToDoc:nx,markAsRoot:rx,dedentToRoot:JP,dedent:XP,hardlineWithoutBreakParent:rm,literallineWithoutBreakParent:ox,label:ZP,concat:e=>e},A8={printDocToString:Ic},T8={willBreak:MP,traverseDoc:em,findInDoc:tm,mapDoc:Nc,removeLines:RP,stripTrailingHardline:tx,replaceEndOfLine:VP,canBreak:HP},S8="3.8.0",Hx={};Qf(Hx,{addDanglingComment:()=>Ti,addLeadingComment:()=>lo,addTrailingComment:()=>co,getAlignmentSize:()=>im,getIndentSize:()=>N8,getMaxContinuousCount:()=>_8,getNextNonSpaceNonCommentCharacter:()=>$8,getNextNonSpaceNonCommentCharacterIndex:()=>W8,getPreferredQuote:()=>R8,getStringWidth:()=>nm,hasNewline:()=>Yn,hasNewlineInRange:()=>z8,hasSpaces:()=>q8,isNextLineEmpty:()=>Q8,isNextLineEmptyAfterIndex:()=>mm,isPreviousLineEmpty:()=>X8,makeString:()=>G8,skip:()=>su,skipEverythingButNewLine:()=>dx,skipInlineComment:()=>hm,skipNewline:()=>Ri,skipSpaces:()=>ni,skipToLineEnd:()=>hx,skipTrailingComment:()=>dm,skipWhitespace:()=>xk});function F8(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 _8=I8;function L8(e,t){let r=fm(e,t);return r===!1?"":e.charAt(r)}var $8=L8,Wx=Object.freeze({character:"'",codePoint:39}),Jx=Object.freeze({character:'"',codePoint:34}),M8=Object.freeze({preferred:Wx,alternate:Jx}),O8=Object.freeze({preferred:Jx,alternate:Wx});function j8(e,t){let{preferred:r,alternate:n}=t===!0||t==="'"?M8:O8,{length:i}=e,s=0,a=0;for(let o=0;oa?n:r).character}var R8=j8;function U8(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 Q8(e,t){return arguments.length===2||typeof t=="number"?mm(e,t):K8(...arguments)}function Si(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 Xx=Si(Vx);async function $c(e,t){let{formatted:r}=await Xx(e,{...t,cursorOffset:-1});return r}async function Y8(e,t){return await $c(e,t)===e}var Z8=Si(Cx,0),eB={parse:Si(g8),formatAST:Si(D8),formatDoc:Si(E8),printToDoc:Si(x8),printDocToString:Si(C8)},tB=Object.defineProperty,ym=(e,t)=>{for(var r in t)tB(e,r,{get:t[r],enumerable:!0})},Kx={};ym(Kx,{parsers:()=>NC});var Gx={};ym(Gx,{__babel_estree:()=>WI,__js_expression:()=>t1,__ts_expression:()=>r1,__vue_event_binding:()=>Zg,__vue_expression:()=>t1,__vue_ts_event_binding:()=>e1,__vue_ts_expression:()=>r1,babel:()=>Zg,"babel-flow":()=>bC,"babel-ts":()=>e1});function rB(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 Zn=class{constructor(t,r,n){U(this,"line");U(this,"column");U(this,"index");this.line=t,this.column=r,this.index=n}},tc=class{constructor(t,r){U(this,"start");U(this,"end");U(this,"filename");U(this,"identifierName");this.start=t,this.end=r}};function Yt(e,t){let{line:r,column:n,index:i}=e;return new Zn(r,n+t,i+t)}var kg="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",nB={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:kg},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:kg}},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"},gl=e=>e.type==="UpdateExpression"?Ng.UpdateExpression[`${e.prefix}`]:Ng[e.type],iB={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 ${gl(e)}.`,InvalidLhsBinding:({ancestor:e})=>`Binding invalid left-hand side in ${gl(e)}.`,InvalidLhsOptionalChaining:({ancestor:e})=>`Invalid optional chaining in the left-hand side of ${gl(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."},G8={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."},Q8={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)}\`.`},Y8=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),Z8=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 ${gl({type:e})}; please wrap it in parentheses.`},{}),eB=["message"];function Ng(e,t,r){Object.defineProperty(e,t,{enumerable:!1,configurable:!0,value:r})}function tB({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),Ng(u,"clone",function(l={}){let{line:c,column:p,index:h}=l.loc??a;return s(new Yn(c,p,h),Object.assign({},o,l.details))}),Ng(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 Pr(e,t){if(Array.isArray(e))return n=>Pr(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=J8(s,eB),u=typeof a=="string"?()=>a:a;r[n]=tB(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:n,toMessage:u},t?{syntaxPlugin:t}:{},o))}return r}var T=Object.assign({},Pr(X8),Pr(K8),Pr(G8),Pr(Q8),Pr`pipelineOperator`(Z8));function rB(){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 nB(e){let t=rB();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:iB}=Object,Bg=(e,t)=>{e&&iB(e,t,{enumerable:!1,value:e[t]})};function Na(e){return Bg(e.loc.start,"index"),Bg(e.loc.end,"index"),e}var sB=e=>class extends e{parse(){let t=Na(super.parse());return this.optionFlags&256&&(t.tokens=t.tokens.map(Na)),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(T.PatternHasAccessor,t.key):t.type==="Property"&&t.method?this.raise(T.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 Na(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),Na(t)}resetEndLocation(t,r=this.state.lastTokEndLoc){super.resetEndLocation(t,r),Na(t)}},Vu=class{constructor(t,r){U(this,"token");U(this,"preserveSpace");this.token=t,this.preserveSpace=!!r}},Se={brace:new Vu("{"),j_oTag:new Vu("...",!0)},pe=!0,q=!0,zp=!0,Ba=!0,bn=!0,aB=!0,Wx=class{constructor(t,r={}){U(this,"label");U(this,"keyword");U(this,"beforeExpr");U(this,"startsExpr");U(this,"rightAssociative");U(this,"isLoop");U(this,"isAssign");U(this,"prefix");U(this,"postfix");U(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}},gm=new Map;function De(e,t={}){t.keyword=e;let r=ee(e,t);return gm.set(e,r),r}function dt(e,t){return ee(e,{beforeExpr:pe,binop:t})}var po=-1,Dm=[],Em=[],xm=[],Cm=[],vm=[],Am=[];function ee(e,t={}){return++po,Em.push(e),xm.push(t.binop??-1),Cm.push(t.beforeExpr??!1),vm.push(t.startsExpr??!1),Am.push(t.prefix??!1),Dm.push(new Wx(e,t)),po}function de(e,t={}){return++po,gm.set(e,po),Em.push(e),xm.push(t.binop??-1),Cm.push(t.beforeExpr??!1),vm.push(t.startsExpr??!1),Am.push(t.prefix??!1),Dm.push(new Wx("name",t)),po}var oB={bracketL:ee("[",{beforeExpr:pe,startsExpr:q}),bracketHashL:ee("#[",{beforeExpr:pe,startsExpr:q}),bracketBarL:ee("[|",{beforeExpr:pe,startsExpr:q}),bracketR:ee("]"),bracketBarR:ee("|]"),braceL:ee("{",{beforeExpr:pe,startsExpr:q}),braceBarL:ee("{|",{beforeExpr:pe,startsExpr:q}),braceHashL:ee("#{",{beforeExpr:pe,startsExpr:q}),braceR:ee("}"),braceBarR:ee("|}"),parenL:ee("(",{beforeExpr:pe,startsExpr:q}),parenR:ee(")"),comma:ee(",",{beforeExpr:pe}),semi:ee(";",{beforeExpr:pe}),colon:ee(":",{beforeExpr:pe}),doubleColon:ee("::",{beforeExpr:pe}),dot:ee("."),question:ee("?",{beforeExpr:pe}),questionDot:ee("?."),arrow:ee("=>",{beforeExpr:pe}),template:ee("template"),ellipsis:ee("...",{beforeExpr:pe}),backQuote:ee("`",{startsExpr:q}),dollarBraceL:ee("${",{beforeExpr:pe,startsExpr:q}),templateTail:ee("...`",{startsExpr:q}),templateNonTail:ee("...${",{beforeExpr:pe,startsExpr:q}),at:ee("@"),hash:ee("#",{startsExpr:q}),interpreterDirective:ee("#!..."),eq:ee("=",{beforeExpr:pe,isAssign:Ba}),assign:ee("_=",{beforeExpr:pe,isAssign:Ba}),slashAssign:ee("_=",{beforeExpr:pe,isAssign:Ba}),xorAssign:ee("_=",{beforeExpr:pe,isAssign:Ba}),moduloAssign:ee("_=",{beforeExpr:pe,isAssign:Ba}),incDec:ee("++/--",{prefix:bn,postfix:aB,startsExpr:q}),bang:ee("!",{beforeExpr:pe,prefix:bn,startsExpr:q}),tilde:ee("~",{beforeExpr:pe,prefix:bn,startsExpr:q}),doubleCaret:ee("^^",{startsExpr:q}),doubleAt:ee("@@",{startsExpr:q}),pipeline:dt("|>",0),nullishCoalescing:dt("??",1),logicalOR:dt("||",1),logicalAND:dt("&&",2),bitwiseOR:dt("|",3),bitwiseXOR:dt("^",4),bitwiseAND:dt("&",5),equality:dt("==/!=/===/!==",6),lt:dt("/<=/>=",7),gt:dt("/<=/>=",7),relational:dt("/<=/>=",7),bitShift:dt("<>/>>>",8),bitShiftL:dt("<>/>>>",8),bitShiftR:dt("<>/>>>",8),plusMin:ee("+/-",{beforeExpr:pe,binop:9,prefix:bn,startsExpr:q}),modulo:ee("%",{binop:10,startsExpr:q}),star:ee("*",{binop:10}),slash:dt("/",10),exponent:ee("**",{beforeExpr:pe,binop:11,rightAssociative:!0}),_in:De("in",{beforeExpr:pe,binop:7}),_instanceof:De("instanceof",{beforeExpr:pe,binop:7}),_break:De("break"),_case:De("case",{beforeExpr:pe}),_catch:De("catch"),_continue:De("continue"),_debugger:De("debugger"),_default:De("default",{beforeExpr:pe}),_else:De("else",{beforeExpr:pe}),_finally:De("finally"),_function:De("function",{startsExpr:q}),_if:De("if"),_return:De("return",{beforeExpr:pe}),_switch:De("switch"),_throw:De("throw",{beforeExpr:pe,prefix:bn,startsExpr:q}),_try:De("try"),_var:De("var"),_const:De("const"),_with:De("with"),_new:De("new",{beforeExpr:pe,startsExpr:q}),_this:De("this",{startsExpr:q}),_super:De("super",{startsExpr:q}),_class:De("class",{startsExpr:q}),_extends:De("extends",{beforeExpr:pe}),_export:De("export"),_import:De("import",{startsExpr:q}),_null:De("null",{startsExpr:q}),_true:De("true",{startsExpr:q}),_false:De("false",{startsExpr:q}),_typeof:De("typeof",{beforeExpr:pe,prefix:bn,startsExpr:q}),_void:De("void",{beforeExpr:pe,prefix:bn,startsExpr:q}),_delete:De("delete",{beforeExpr:pe,prefix:bn,startsExpr:q}),_do:De("do",{isLoop:zp,beforeExpr:pe}),_for:De("for",{isLoop:zp}),_while:De("while",{isLoop:zp}),_as:de("as",{startsExpr:q}),_assert:de("assert",{startsExpr:q}),_async:de("async",{startsExpr:q}),_await:de("await",{startsExpr:q}),_defer:de("defer",{startsExpr:q}),_from:de("from",{startsExpr:q}),_get:de("get",{startsExpr:q}),_let:de("let",{startsExpr:q}),_meta:de("meta",{startsExpr:q}),_of:de("of",{startsExpr:q}),_sent:de("sent",{startsExpr:q}),_set:de("set",{startsExpr:q}),_source:de("source",{startsExpr:q}),_static:de("static",{startsExpr:q}),_using:de("using",{startsExpr:q}),_yield:de("yield",{startsExpr:q}),_asserts:de("asserts",{startsExpr:q}),_checks:de("checks",{startsExpr:q}),_exports:de("exports",{startsExpr:q}),_global:de("global",{startsExpr:q}),_implements:de("implements",{startsExpr:q}),_intrinsic:de("intrinsic",{startsExpr:q}),_infer:de("infer",{startsExpr:q}),_is:de("is",{startsExpr:q}),_mixins:de("mixins",{startsExpr:q}),_proto:de("proto",{startsExpr:q}),_require:de("require",{startsExpr:q}),_satisfies:de("satisfies",{startsExpr:q}),_keyof:de("keyof",{startsExpr:q}),_readonly:de("readonly",{startsExpr:q}),_unique:de("unique",{startsExpr:q}),_abstract:de("abstract",{startsExpr:q}),_declare:de("declare",{startsExpr:q}),_enum:de("enum",{startsExpr:q}),_module:de("module",{startsExpr:q}),_namespace:de("namespace",{startsExpr:q}),_interface:de("interface",{startsExpr:q}),_type:de("type",{startsExpr:q}),_opaque:de("opaque",{startsExpr:q}),name:ee("name",{startsExpr:q}),placeholder:ee("%%",{startsExpr:q}),string:ee("string",{startsExpr:q}),num:ee("num",{startsExpr:q}),bigint:ee("bigint",{startsExpr:q}),decimal:ee("decimal",{startsExpr:q}),regexp:ee("regexp",{startsExpr:q}),privateName:ee("#name",{startsExpr:q}),eof:ee("eof"),jsxName:ee("jsxName"),jsxText:ee("jsxText",{beforeExpr:pe}),jsxTagStart:ee("jsxTagStart",{startsExpr:q}),jsxTagEnd:ee("jsxTagEnd")};function ve(e){return e>=93&&e<=133}function uB(e){return e<=92}function fr(e){return e>=58&&e<=133}function Jx(e){return e>=58&&e<=137}function lB(e){return Cm[e]}function Xa(e){return vm[e]}function cB(e){return e>=29&&e<=33}function Ig(e){return e>=129&&e<=131}function pB(e){return e>=90&&e<=92}function Tm(e){return e>=58&&e<=92}function hB(e){return e>=39&&e<=59}function dB(e){return e===34}function fB(e){return Am[e]}function mB(e){return e>=121&&e<=123}function yB(e){return e>=124&&e<=130}function Zn(e){return Em[e]}function Dl(e){return xm[e]}function gB(e){return e===57}function gd(e){return e>=24&&e<=25}function Xx(e){return Dm[e]}var Sm="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-࢏ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚ౜ౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ೜-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ƛ꟱-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",Kx="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-᫝᫠-᫫ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",DB=new RegExp("["+Sm+"]"),EB=new RegExp("["+Sm+Kx+"]");Sm=Kx=null;var Gx=[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],xB=[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 Dd(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 kr(e){return e<65?e===36:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&DB.test(String.fromCharCode(e)):Dd(e,Gx)}function Ii(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&&EB.test(String.fromCharCode(e)):Dd(e,Gx)||Dd(e,xB)}var Fm={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"]},CB=new Set(Fm.keyword),vB=new Set(Fm.strict),AB=new Set(Fm.strictBind);function Qx(e,t){return t&&e==="await"||e==="enum"}function Yx(e,t){return Qx(e,t)||vB.has(e)}function Zx(e){return AB.has(e)}function eC(e,t){return Yx(e,t)||Zx(e)}function TB(e){return CB.has(e)}function SB(e,t,r){return e===64&&t===64&&kr(r)}var FB=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 bB(e){return FB.has(e)}var bm=class{constructor(t){U(this,"flags",0);U(this,"names",new Map);U(this,"firstLexicalName","");this.flags=t}},wm=class{constructor(t,r){U(this,"parser");U(this,"scopeStack",[]);U(this,"inModule");U(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 bm(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(T.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}}},wB=class extends bm{constructor(){super(...arguments);U(this,"declareFunctions",new Set)}},PB=class extends wm{createScope(t){return new wB(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)}},kB=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),re=Pr`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 NB(e){return e.type==="DeclareExportAllDeclaration"||e.type==="DeclareExportDeclaration"&&(!e.declaration||e.declaration.type!=="TypeAlias"&&e.declaration.type!=="InterfaceDeclaration")}function _g(e){return e.importKind==="type"||e.importKind==="typeof"}var BB={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function IB(e,t){let r=[],n=[];for(let i=0;iclass extends e{constructor(){super(...arguments);U(this,"flowPragma")}getScopeHandler(){return PB}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=_B.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(re.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(re.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(re.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),i.push(super.parseImport(o))):(this.expectContextual(125,re.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=>{NB(o)?(s==="CommonJS"&&this.raise(re.AmbiguousDeclareModuleKind,o),s="ES"):o.type==="DeclareModuleExports"&&(a&&this.raise(re.DuplicateDeclareModuleExports,o),s==="ES"&&this.raise(re.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(re.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:i,suggestion:BB[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(re.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(r,n,i){kB.has(r)&&this.raise(i?re.AssignReservedType:re.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(re.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()!==Se.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()===Se.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,E=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(E,d))):u.indexers.push(this.flowParseObjectTypeIndexer(E,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(E,d));else{let m="init";if(this.isContextual(99)||this.isContextual(104)){let x=this.lookahead();Jx(x.type)&&(m=this.state.value,this.next())}let D=this.flowParseObjectTypeProperty(E,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(re.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(re.InexactInsideExact,this.state.lastTokStartLoc):this.raise(re.InexactInsideNonObject,this.state.lastTokStartLoc),s&&this.raise(re.InexactVariance,s),null):(o||this.raise(re.UnexpectedSpreadType,this.state.lastTokStartLoc),i!=null&&this.unexpected(i),s&&this.raise(re.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(re.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"?re.GetterMayNotHaveThisParam:re.SetterMayNotHaveThisParam,r.value.this),i!==n&&this.raise(r.kind==="get"?T.BadGetterArity:T.BadSetterArity,r),r.kind==="set"&&r.value.rest&&this.raise(T.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(fr(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)||ve(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(r)}else if(ve(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||Ig(r)?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){let{type:r}=this.state;return r===126||Ig(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(re.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,[]]):IB(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(re.DeclareClassElement,s):n.value&&this.raise(re.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(T.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):SB(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(re.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(re.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(re.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(re.GetterMayNotHaveThisParam,i):this.isThisParam(i)&&this.raise(re.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(re.PatternIsOptional,r),this.isThisParam(r)&&this.raise(re.ThisParamMayNotBeOptional,r),r.optional=!0),this.match(14)?r.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(r)&&this.raise(re.ThisParamAnnotationRequired,r),this.match(29)&&this.isThisParam(r)&&this.raise(re.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===Se.j_oTag||o===Se.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(re.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(re.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(re.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(re.UnterminatedFlowComment,this.state.curPosition()),i}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(re.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(T.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(r,{enumName:n,memberName:i}){this.raise(re.EnumBooleanMemberNotInitialized,r,{memberName:i,enumName:n})}flowEnumErrorInvalidMemberInitializer(r,n){return this.raise(n.explicitType?n.explicitType==="symbol"?re.EnumInvalidMemberInitializerSymbolType:re.EnumInvalidMemberInitializerPrimaryType:re.EnumInvalidMemberInitializerUnknownType,r,n)}flowEnumErrorNumberMemberNotInitialized(r,n){this.raise(re.EnumNumberMemberNotInitialized,r,n)}flowEnumErrorStringMemberInconsistentlyInitialized(r,n){this.raise(re.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(re.EnumInvalidMemberName,u,{memberName:c,suggestion:c[0].toUpperCase()+c.slice(1),enumName:r}),i.has(c)&&this.raise(re.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(!ve(this.state.type))throw this.raise(re.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:r});let{value:n}=this.state;return this.next(),n!=="boolean"&&n!=="number"&&n!=="string"&&n!=="symbol"&&this.raise(re.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(re.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}},$B=/\r\n|[\r\n\u2028\u2029]/,qu=new RegExp($B.source,"g");function Ls(e){switch(e){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}function Lg(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 wn(e){return e?e.type==="JSXOpeningFragment"||e.type==="JSXClosingFragment":!1}function ws(e){if(e.type==="JSXIdentifier")return e.name;if(e.type==="JSXNamespacedName")return e.namespace.name+":"+e.name.name;if(e.type==="JSXMemberExpression")return ws(e.object)+"."+ws(e.property);throw new Error("Node had unexpected type: "+e.type)}var MB=e=>class extends e{jsxReadToken(){let t="",r=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(Jr.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(Jr.UnexpectedToken,this.state.curPosition(),{unexpected:this.input[this.state.pos],HTMLEntity:n===125?"}":">"});default:Ls(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 ${gl(e)}.`,InvalidLhsBinding:({ancestor:e})=>`Binding invalid left-hand side in ${gl(e)}.`,InvalidLhsOptionalChaining:({ancestor:e})=>`Invalid optional chaining in the left-hand side of ${gl(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."},sB={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."},aB={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)}\`.`},oB=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),uB=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 ${gl({type:e})}; please wrap it in parentheses.`},{}),lB=["message"];function Bg(e,t,r){Object.defineProperty(e,t,{enumerable:!1,configurable:!0,value:r})}function cB({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 Zn(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 Pr(e,t){if(Array.isArray(e))return n=>Pr(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=rB(s,lB),u=typeof a=="string"?()=>a:a;r[n]=cB(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:n,toMessage:u},t?{syntaxPlugin:t}:{},o))}return r}var S=Object.assign({},Pr(nB),Pr(iB),Pr(sB),Pr(aB),Pr`pipelineOperator`(uB));function pB(){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 hB(e){let t=pB();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:dB}=Object,Ig=(e,t)=>{e&&dB(e,t,{enumerable:!1,value:e[t]})};function Na(e){return Ig(e.loc.start,"index"),Ig(e.loc.end,"index"),e}var fB=e=>class extends e{parse(){let t=Na(super.parse());return this.optionFlags&256&&(t.tokens=t.tokens.map(Na)),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(S.PatternHasAccessor,t.key):t.type==="Property"&&t.method?this.raise(S.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 Na(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),Na(t)}resetEndLocation(t,r=this.state.lastTokEndLoc){super.resetEndLocation(t,r),Na(t)}},Vu=class{constructor(t,r){U(this,"token");U(this,"preserveSpace");this.token=t,this.preserveSpace=!!r}},Se={brace:new Vu("{"),j_oTag:new Vu("...",!0)},pe=!0,q=!0,zp=!0,Ba=!0,bn=!0,mB=!0,Qx=class{constructor(t,r={}){U(this,"label");U(this,"keyword");U(this,"beforeExpr");U(this,"startsExpr");U(this,"rightAssociative");U(this,"isLoop");U(this,"isAssign");U(this,"prefix");U(this,"postfix");U(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}},gm=new Map;function De(e,t={}){t.keyword=e;let r=ee(e,t);return gm.set(e,r),r}function ft(e,t){return ee(e,{beforeExpr:pe,binop:t})}var po=-1,Dm=[],Em=[],xm=[],Cm=[],vm=[],Am=[];function ee(e,t={}){return++po,Em.push(e),xm.push(t.binop??-1),Cm.push(t.beforeExpr??!1),vm.push(t.startsExpr??!1),Am.push(t.prefix??!1),Dm.push(new Qx(e,t)),po}function de(e,t={}){return++po,gm.set(e,po),Em.push(e),xm.push(t.binop??-1),Cm.push(t.beforeExpr??!1),vm.push(t.startsExpr??!1),Am.push(t.prefix??!1),Dm.push(new Qx("name",t)),po}var yB={bracketL:ee("[",{beforeExpr:pe,startsExpr:q}),bracketHashL:ee("#[",{beforeExpr:pe,startsExpr:q}),bracketBarL:ee("[|",{beforeExpr:pe,startsExpr:q}),bracketR:ee("]"),bracketBarR:ee("|]"),braceL:ee("{",{beforeExpr:pe,startsExpr:q}),braceBarL:ee("{|",{beforeExpr:pe,startsExpr:q}),braceHashL:ee("#{",{beforeExpr:pe,startsExpr:q}),braceR:ee("}"),braceBarR:ee("|}"),parenL:ee("(",{beforeExpr:pe,startsExpr:q}),parenR:ee(")"),comma:ee(",",{beforeExpr:pe}),semi:ee(";",{beforeExpr:pe}),colon:ee(":",{beforeExpr:pe}),doubleColon:ee("::",{beforeExpr:pe}),dot:ee("."),question:ee("?",{beforeExpr:pe}),questionDot:ee("?."),arrow:ee("=>",{beforeExpr:pe}),template:ee("template"),ellipsis:ee("...",{beforeExpr:pe}),backQuote:ee("`",{startsExpr:q}),dollarBraceL:ee("${",{beforeExpr:pe,startsExpr:q}),templateTail:ee("...`",{startsExpr:q}),templateNonTail:ee("...${",{beforeExpr:pe,startsExpr:q}),at:ee("@"),hash:ee("#",{startsExpr:q}),interpreterDirective:ee("#!..."),eq:ee("=",{beforeExpr:pe,isAssign:Ba}),assign:ee("_=",{beforeExpr:pe,isAssign:Ba}),slashAssign:ee("_=",{beforeExpr:pe,isAssign:Ba}),xorAssign:ee("_=",{beforeExpr:pe,isAssign:Ba}),moduloAssign:ee("_=",{beforeExpr:pe,isAssign:Ba}),incDec:ee("++/--",{prefix:bn,postfix:mB,startsExpr:q}),bang:ee("!",{beforeExpr:pe,prefix:bn,startsExpr:q}),tilde:ee("~",{beforeExpr:pe,prefix:bn,startsExpr:q}),doubleCaret:ee("^^",{startsExpr:q}),doubleAt:ee("@@",{startsExpr:q}),pipeline:ft("|>",0),nullishCoalescing:ft("??",1),logicalOR:ft("||",1),logicalAND:ft("&&",2),bitwiseOR:ft("|",3),bitwiseXOR:ft("^",4),bitwiseAND:ft("&",5),equality:ft("==/!=/===/!==",6),lt:ft("/<=/>=",7),gt:ft("/<=/>=",7),relational:ft("/<=/>=",7),bitShift:ft("<>/>>>",8),bitShiftL:ft("<>/>>>",8),bitShiftR:ft("<>/>>>",8),plusMin:ee("+/-",{beforeExpr:pe,binop:9,prefix:bn,startsExpr:q}),modulo:ee("%",{binop:10,startsExpr:q}),star:ee("*",{binop:10}),slash:ft("/",10),exponent:ee("**",{beforeExpr:pe,binop:11,rightAssociative:!0}),_in:De("in",{beforeExpr:pe,binop:7}),_instanceof:De("instanceof",{beforeExpr:pe,binop:7}),_break:De("break"),_case:De("case",{beforeExpr:pe}),_catch:De("catch"),_continue:De("continue"),_debugger:De("debugger"),_default:De("default",{beforeExpr:pe}),_else:De("else",{beforeExpr:pe}),_finally:De("finally"),_function:De("function",{startsExpr:q}),_if:De("if"),_return:De("return",{beforeExpr:pe}),_switch:De("switch"),_throw:De("throw",{beforeExpr:pe,prefix:bn,startsExpr:q}),_try:De("try"),_var:De("var"),_const:De("const"),_with:De("with"),_new:De("new",{beforeExpr:pe,startsExpr:q}),_this:De("this",{startsExpr:q}),_super:De("super",{startsExpr:q}),_class:De("class",{startsExpr:q}),_extends:De("extends",{beforeExpr:pe}),_export:De("export"),_import:De("import",{startsExpr:q}),_null:De("null",{startsExpr:q}),_true:De("true",{startsExpr:q}),_false:De("false",{startsExpr:q}),_typeof:De("typeof",{beforeExpr:pe,prefix:bn,startsExpr:q}),_void:De("void",{beforeExpr:pe,prefix:bn,startsExpr:q}),_delete:De("delete",{beforeExpr:pe,prefix:bn,startsExpr:q}),_do:De("do",{isLoop:zp,beforeExpr:pe}),_for:De("for",{isLoop:zp}),_while:De("while",{isLoop:zp}),_as:de("as",{startsExpr:q}),_assert:de("assert",{startsExpr:q}),_async:de("async",{startsExpr:q}),_await:de("await",{startsExpr:q}),_defer:de("defer",{startsExpr:q}),_from:de("from",{startsExpr:q}),_get:de("get",{startsExpr:q}),_let:de("let",{startsExpr:q}),_meta:de("meta",{startsExpr:q}),_of:de("of",{startsExpr:q}),_sent:de("sent",{startsExpr:q}),_set:de("set",{startsExpr:q}),_source:de("source",{startsExpr:q}),_static:de("static",{startsExpr:q}),_using:de("using",{startsExpr:q}),_yield:de("yield",{startsExpr:q}),_asserts:de("asserts",{startsExpr:q}),_checks:de("checks",{startsExpr:q}),_exports:de("exports",{startsExpr:q}),_global:de("global",{startsExpr:q}),_implements:de("implements",{startsExpr:q}),_intrinsic:de("intrinsic",{startsExpr:q}),_infer:de("infer",{startsExpr:q}),_is:de("is",{startsExpr:q}),_mixins:de("mixins",{startsExpr:q}),_proto:de("proto",{startsExpr:q}),_require:de("require",{startsExpr:q}),_satisfies:de("satisfies",{startsExpr:q}),_keyof:de("keyof",{startsExpr:q}),_readonly:de("readonly",{startsExpr:q}),_unique:de("unique",{startsExpr:q}),_abstract:de("abstract",{startsExpr:q}),_declare:de("declare",{startsExpr:q}),_enum:de("enum",{startsExpr:q}),_module:de("module",{startsExpr:q}),_namespace:de("namespace",{startsExpr:q}),_interface:de("interface",{startsExpr:q}),_type:de("type",{startsExpr:q}),_opaque:de("opaque",{startsExpr:q}),name:ee("name",{startsExpr:q}),placeholder:ee("%%",{startsExpr:q}),string:ee("string",{startsExpr:q}),num:ee("num",{startsExpr:q}),bigint:ee("bigint",{startsExpr:q}),decimal:ee("decimal",{startsExpr:q}),regexp:ee("regexp",{startsExpr:q}),privateName:ee("#name",{startsExpr:q}),eof:ee("eof"),jsxName:ee("jsxName"),jsxText:ee("jsxText",{beforeExpr:pe}),jsxTagStart:ee("jsxTagStart",{startsExpr:q}),jsxTagEnd:ee("jsxTagEnd")};function ve(e){return e>=93&&e<=133}function gB(e){return e<=92}function fr(e){return e>=58&&e<=133}function Yx(e){return e>=58&&e<=137}function DB(e){return Cm[e]}function Xa(e){return vm[e]}function EB(e){return e>=29&&e<=33}function _g(e){return e>=129&&e<=131}function xB(e){return e>=90&&e<=92}function Tm(e){return e>=58&&e<=92}function CB(e){return e>=39&&e<=59}function vB(e){return e===34}function AB(e){return Am[e]}function TB(e){return e>=121&&e<=123}function SB(e){return e>=124&&e<=130}function ei(e){return Em[e]}function Dl(e){return xm[e]}function FB(e){return e===57}function gd(e){return e>=24&&e<=25}function Zx(e){return Dm[e]}var Sm="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-࢏ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚ౜ౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ೜-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ƛ꟱-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",eC="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-᫝᫠-᫫ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",bB=new RegExp("["+Sm+"]"),wB=new RegExp("["+Sm+eC+"]");Sm=eC=null;var tC=[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],PB=[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 Dd(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 kr(e){return e<65?e===36:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&bB.test(String.fromCharCode(e)):Dd(e,tC)}function Ii(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&&wB.test(String.fromCharCode(e)):Dd(e,tC)||Dd(e,PB)}var Fm={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"]},kB=new Set(Fm.keyword),NB=new Set(Fm.strict),BB=new Set(Fm.strictBind);function rC(e,t){return t&&e==="await"||e==="enum"}function nC(e,t){return rC(e,t)||NB.has(e)}function iC(e){return BB.has(e)}function sC(e,t){return nC(e,t)||iC(e)}function IB(e){return kB.has(e)}function _B(e,t,r){return e===64&&t===64&&kr(r)}var LB=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 $B(e){return LB.has(e)}var bm=class{constructor(t){U(this,"flags",0);U(this,"names",new Map);U(this,"firstLexicalName","");this.flags=t}},wm=class{constructor(t,r){U(this,"parser");U(this,"scopeStack",[]);U(this,"inModule");U(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 bm(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(S.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}}},MB=class extends bm{constructor(){super(...arguments);U(this,"declareFunctions",new Set)}},OB=class extends wm{createScope(t){return new MB(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)}},jB=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),re=Pr`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 RB(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 UB={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function zB(e,t){let r=[],n=[];for(let i=0;iclass extends e{constructor(){super(...arguments);U(this,"flowPragma")}getScopeHandler(){return OB}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=VB.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(re.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(re.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(re.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),i.push(super.parseImport(o))):(this.expectContextual(125,re.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=>{RB(o)?(s==="CommonJS"&&this.raise(re.AmbiguousDeclareModuleKind,o),s="ES"):o.type==="DeclareModuleExports"&&(a&&this.raise(re.DuplicateDeclareModuleExports,o),s==="ES"&&this.raise(re.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(re.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:i,suggestion:UB[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(re.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(r,n,i){jB.has(r)&&this.raise(i?re.AssignReservedType:re.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(re.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()!==Se.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()===Se.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 E=this.lookahead();Yx(E.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(re.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(re.InexactInsideExact,this.state.lastTokStartLoc):this.raise(re.InexactInsideNonObject,this.state.lastTokStartLoc),s&&this.raise(re.InexactVariance,s),null):(o||this.raise(re.UnexpectedSpreadType,this.state.lastTokStartLoc),i!=null&&this.unexpected(i),s&&this.raise(re.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(re.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"?re.GetterMayNotHaveThisParam:re.SetterMayNotHaveThisParam,r.value.this),i!==n&&this.raise(r.kind==="get"?S.BadGetterArity:S.BadSetterArity,r),r.kind==="set"&&r.value.rest&&this.raise(S.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(fr(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)||ve(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(r)}else if(ve(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(re.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,[]]):zB(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(re.DeclareClassElement,s):n.value&&this.raise(re.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(S.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):_B(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(re.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(re.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(re.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(re.GetterMayNotHaveThisParam,i):this.isThisParam(i)&&this.raise(re.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(re.PatternIsOptional,r),this.isThisParam(r)&&this.raise(re.ThisParamMayNotBeOptional,r),r.optional=!0),this.match(14)?r.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(r)&&this.raise(re.ThisParamAnnotationRequired,r),this.match(29)&&this.isThisParam(r)&&this.raise(re.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===Se.j_oTag||o===Se.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(re.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(re.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(re.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(re.UnterminatedFlowComment,this.state.curPosition()),i}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(re.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(S.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(r,{enumName:n,memberName:i}){this.raise(re.EnumBooleanMemberNotInitialized,r,{memberName:i,enumName:n})}flowEnumErrorInvalidMemberInitializer(r,n){return this.raise(n.explicitType?n.explicitType==="symbol"?re.EnumInvalidMemberInitializerSymbolType:re.EnumInvalidMemberInitializerPrimaryType:re.EnumInvalidMemberInitializerUnknownType,r,n)}flowEnumErrorNumberMemberNotInitialized(r,n){this.raise(re.EnumNumberMemberNotInitialized,r,n)}flowEnumErrorStringMemberInconsistentlyInitialized(r,n){this.raise(re.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(re.EnumInvalidMemberName,u,{memberName:c,suggestion:c[0].toUpperCase()+c.slice(1),enumName:r}),i.has(c)&&this.raise(re.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(!ve(this.state.type))throw this.raise(re.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:r});let{value:n}=this.state;return this.next(),n!=="boolean"&&n!=="number"&&n!=="string"&&n!=="symbol"&&this.raise(re.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(re.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}},HB=/\r\n|[\r\n\u2028\u2029]/,qu=new RegExp(HB.source,"g");function Ls(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 wn(e){return e?e.type==="JSXOpeningFragment"||e.type==="JSXClosingFragment":!1}function ws(e){if(e.type==="JSXIdentifier")return e.name;if(e.type==="JSXNamespacedName")return e.namespace.name+":"+e.name.name;if(e.type==="JSXMemberExpression")return ws(e.object)+"."+ws(e.property);throw new Error("Node had unexpected type: "+e.type)}var JB=e=>class extends e{jsxReadToken(){let t="",r=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(Jr.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(Jr.UnexpectedToken,this.state.curPosition(),{unexpected:this.input[this.state.pos],HTMLEntity:n===125?"}":">"});default:Ls(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(T.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):Ls(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)}},UB=class{constructor(){U(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 El(e,t){return(e?2:0)|(t?1:0)}var zB=class{constructor(){U(this,"sawUnambiguousESM",!1);U(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 tC(e,t){e.trailingComments===void 0?e.trailingComments=t:e.trailingComments.unshift(...t)}function VB(e,t){e.leadingComments===void 0?e.leadingComments=t:e.leadingComments.unshift(...t)}function $s(e,t){e.innerComments===void 0?e.innerComments=t:e.innerComments.unshift(...t)}function gi(e,t,r){let n=null,i=t.length;for(;n===null&&i>0;)n=t[--i];n===null||n.start>r.start?$s(e,r.comments):tC(n,r.comments)}var qB=class extends zB{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&&tC(t.leadingNode,r),t.trailingNode!==null&&VB(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":gi(n,n.properties,t);break;case"CallExpression":case"OptionalCallExpression":gi(n,n.arguments,t);break;case"ImportExpression":gi(n,[n.source,n.options??null],t);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":gi(n,n.params,t);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":gi(n,n.elements,t);break;case"ExportNamedDeclaration":case"ImportDeclaration":gi(n,n.specifiers,t);break;case"TSEnumDeclaration":$s(n,r);break;case"TSEnumBody":gi(n,n.members,t);break;default:$s(n,r)}else $s(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 Yn(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 Yn(this.curLine,this.pos-this.lineStart,this.pos+this.startIndex)}clone(){let t=new rC;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}},WB=function(e){return e>=48&&e<=57},$g={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},Hu={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 Og(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(JB(e,d,t,r)){l+=t.slice(p,r);break}if(d===92){l+=t.slice(p,r);let f=XB(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 JB(e,t,r,n){return e==="template"?t===96||t===36&&r.charCodeAt(n+1)===123:t===(e==="double"?34:39)}function XB(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}=Ed(e,t,r,n,2,!1,a,s),o(l===null?null:String.fromCharCode(l))}case 117:{let l;return{code:l,pos:t}=iC(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 Ed(e,t,r,n,i,s,a,o){let u=t,l;return{n:l,pos:t}=nC(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 nC(e,t,r,n,i,s,a,o,u,l){let c=t,p=i===16?$g.hex:$g.decBinOct,h=i===16?Hu.hex:i===10?Hu.dec:i===8?Hu.oct:Hu.bin,d=!1,f=0;for(let y=0,E=s??1/0;y=97?m=g-97+10:g>=65?m=g-65+10:WB(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 iC(e,t,r,n,i,s){let a=e.charCodeAt(t),o;if(a===123){if(++t,{code:o,pos:t}=Ed(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}=Ed(e,t,r,n,4,!1,i,s));return{code:o,pos:t}}function Ia(e,t,r){return new Yn(r,e-t,e)}var KB=new Set([103,109,115,105,121,117,100,118]),GB=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 tc(t.startLoc,t.endLoc)}},QB=class extends qB{constructor(r,n){super();U(this,"isLookahead");U(this,"tokens",[]);U(this,"errorHandlers_readInt",{invalidDigit:(r,n,i,s)=>this.optionFlags&2048?(this.raise(T.InvalidDigit,Ia(r,n,i),{radix:s}),!0):!1,numericSeparatorInEscapeSequence:this.errorBuilder(T.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(T.UnexpectedNumericSeparator)});U(this,"errorHandlers_readCodePoint",Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(T.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(T.InvalidCodePoint)}));U(this,"errorHandlers_readStringContents_string",Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(r,n,i)=>{this.recordStrictModeErrors(T.StrictNumericEscape,Ia(r,n,i))},unterminated:(r,n,i)=>{throw this.raise(T.UnterminatedString,Ia(r-1,n,i))}}));U(this,"errorHandlers_readStringContents_template",Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(T.StrictNumericEscape),unterminated:(r,n,i)=>{throw this.raise(T.UnterminatedTemplate,Ia(r,n,i))}}));this.state=new HB,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 GB(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 Vp.lastIndex=r,Vp.test(this.input)?Vp.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 qp.lastIndex=r,qp.test(this.input)?qp.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(T.UnterminatedComment,this.state.curPosition());for(this.state.pos=s+r.length,qu.lastIndex=i+2;qu.test(this.input)&&qu.lastIndex<=s;)++this.state.curLine,this.state.lineStart=qu.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 tc(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(T.UnexpectedDigitAfterHash,this.state.curPosition());kr(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;!Ls(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(kr(r)){this.readWord(r);return}}throw this.raise(T.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(T.UnterminatedRegExp,Yt(r,1));let c=this.input.charCodeAt(a);if(Ls(c))throw this.raise(T.UnterminatedRegExp,Yt(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=()=>Yt(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(T.StrictOctalLiteral,i),!this.state.strict){let d=h.indexOf("_");d>0&&this.raise(T.ZeroDigitNumericSeparator,Yt(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(T.InvalidOrMissingExponent,i),s=!0,l=this.input.charCodeAt(this.state.pos)),l===110&&((s||u)&&this.raise(T.InvalidBigIntLiteral,i),++this.state.pos,a=!0),kr(this.codePointAtPos(this.state.pos)))throw this.raise(T.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}=iC(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}=Og(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}=Og("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 Yn(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(T.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:r})}errorBuilder(r){return(n,i,s)=>{this.raise(r,Ia(n,i,s))}}},YB=class{constructor(){U(this,"privateNames",new Set);U(this,"loneAccessors",new Map);U(this,"undefinedPrivateNames",new Map)}},ZB=class{constructor(t){U(this,"parser");U(this,"stack",[]);U(this,"undefinedPrivateNames",new Map);this.parser=t}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new YB)}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(T.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(T.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(T.InvalidPrivateFieldResolution,r,{identifierName:t})}},Oc=class{constructor(t=0){this.type=t}canBeArrowParameterDeclaration(){return this.type===2||this.type===1}isCertainlyParameterDeclaration(){return this.type===3}},sC=class extends Oc{constructor(r){super(r);U(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)}},eI=class{constructor(t){U(this,"parser");U(this,"stack",[new Oc]);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(T.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 tI(){return new Oc(3)}function rI(){return new sC(1)}function nI(){return new sC(2)}function aC(){return new Oc}var iI=class extends QB{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!(Ii(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 Lg(this.input,this.offsetToSourcePos(this.state.lastTokEndLoc.index),this.state.start)}hasFollowingLineBreak(){return Lg(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(T.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(T.InvalidCoverInitializedName,n),i!=null&&this.raise(T.DuplicateProto,i),s!=null&&this.raise(T.UnexpectedPrivateField,s),a!=null&&this.unexpected(a),o!=null&&this.raise(T.InvalidCoverDiscardElement,o)}isLiteralPropertyName(){return Jx(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 UB;let u=this.classScope;this.classScope=new ZB(this);let l=this.expressionScope;return this.expressionScope=new eI(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)}},xl=class{constructor(){U(this,"shorthandAssignLoc",null);U(this,"doubleProtoLoc",null);U(this,"privateKeyLoc",null);U(this,"optionalParametersLoc",null);U(this,"voidPatternLoc",null)}},xd=class{constructor(t,r,n){U(this,"type","");this.start=r,this.end=0,this.loc=new tc(n),(t==null?void 0:t.optionFlags)&128&&(this.range=[r,0]),t!=null&&t.filename&&(this.loc.filename=t.filename)}},Mg=xd.prototype,sI=class extends iI{startNode(){let t=this.state.startLoc;return new xd(this,t.index,t)}startNodeAt(t){return new xd(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(Mg);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(Mg);return u.type=r,u.start=n,u.end=i,u.loc=s,u.range=a,u.extra=o,u.value=t.value,u}},Cd=e=>e.type==="ParenthesizedExpression"?Cd(e.expression):e,aI=class extends sI{toAssignable(t,r=!1){var i,s,a;let n;switch((t.type==="ParenthesizedExpression"||(i=t.extra)!=null&&i.parenthesized)&&(n=Cd(t),r?n.type==="Identifier"?this.expressionScope.recordArrowParameterBindingError(T.InvalidParenthesizedAssignment,t):n.type!=="CallExpression"&&n.type!=="MemberExpression"&&!this.isOptionalMemberExpression(n)&&this.raise(T.InvalidParenthesizedAssignment,t):this.raise(T.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(T.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(T.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(T.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(T.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 E;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(T.InvalidLhsOptionalChaining,t,{ancestor:r})),n!==64&&this.raise(T.InvalidPropertyBindingPattern,t);return}if(u==="Identifier"){this.checkIdentifier(t,n,s);let{name:g}=t;i&&(i.has(g)?this.raise(T.ParamDupe,t):i.add(g));return}else u==="VoidPattern"&&r.type==="CatchClause"&&this.raise(T.VoidPatternCatchClauseParam,t);let c=Cd(t);o||(o=c.type==="CallExpression"&&(c.callee.type==="Import"||c.callee.type==="Super"));let p=this.isValidLVal(u,o,!(a||(E=t.extra)!=null&&E.parenthesized)&&r.type==="AssignmentExpression",n);if(p===!0)return;if(p===!1){let g=n===64?T.InvalidLhs:T.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?eC(t.name,this.inModule):Zx(t.name))&&(r===64?this.raise(T.StrictEvalArguments,t,{referenceName:t.name}):this.raise(T.StrictEvalArgumentsBinding,t,{bindingName:t.name})),r&8192&&t.name==="let"&&this.raise(T.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(T.InvalidRestAssignmentPattern,t)}}checkCommaAfterRest(t){return this.match(12)?(this.raise(this.lookaheadCharCode()===t?T.RestTrailingComma:T.ElementAfterRest,this.state.startLoc),!0):!1}},Hp=/in(?:stanceof)?|as|satisfies/y;function oI(e){if(e==null)throw new Error(`Unexpected ${e} value.`);return e}function jg(e){if(!e)throw new Error("Assert fail")}var X=Pr`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 uI(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 Rg(e){return e==="private"||e==="public"||e==="protected"}function lI(e){return e==="in"||e==="out"}function vd(e){var t;if((t=e.extra)!=null&&t.parenthesized)return!1;switch(e.type){case"Identifier":return!0;case"MemberExpression":return!e.computed&&vd(e.object);case"TSInstantiationExpression":return vd(e.expression);default:return!1}}var cI=e=>class extends e{constructor(){super(...arguments);U(this,"tsParseInOutModifiers",this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:X.InvalidModifierOnTypeParameter}));U(this,"tsParseConstModifier",this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:X.InvalidModifierOnTypeParameterPositions}));U(this,"tsParseInOutConstModifiers",this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:X.InvalidModifierOnTypeParameter}))}getScopeHandler(){return RB}tsIsIdentifier(){return ve(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(!ve(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=X.InvalidModifierOnTypeMember},a){let o=(l,c,p,h)=>{c===p&&a[h]&&this.raise(X.InvalidModifiersOrder,l,{orderedModifiers:[p,h]})},u=(l,c,p,h)=>{(a[p]&&c===h||a[h]&&c===p)&&this.raise(X.IncompatibleModifiers,l,{modifiers:[p,h]})};for(;;){let{startLoc:l}=this.state,c=this.tsParseModifier(r.concat(n??[]),i,a.static);if(!c)break;Rg(c)?a.accessibility?this.raise(X.DuplicateAccessibilityModifier,l,{modifier:c}):(o(l,c,c,"override"),o(l,c,c,"static"),o(l,c,c,"readonly"),a.accessibility=c):lI(c)?(a[c]&&this.raise(X.DuplicateModifier,l,{modifier:c}),a[c]=!0,o(l,c,"in","out")):(Object.prototype.hasOwnProperty.call(a,c)?this.raise(X.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 oI(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(X.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;ve(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(X.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(X.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(),ve(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(X.ReadonlyForMethodSignature,r);let i=r;i.kind&&this.match(47)&&this.raise(X.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(T.BadGetterArity,this.state.curPosition()),this.isThisParam(i[s][0])&&this.raise(X.AccessorCannotDeclareThisParameter,this.state.curPosition()));else if(i.kind==="set"){if(i[s].length!==1)this.raise(T.BadSetterArity,this.state.curPosition());else{let o=i[s][0];this.isThisParam(o)&&this.raise(X.AccessorCannotDeclareThisParameter,this.state.curPosition()),o.type==="Identifier"&&o.optional&&this.raise(X.SetAccessorCannotHaveOptionalParameter,this.state.curPosition()),o.type==="RestElement"&&this.raise(X.SetAccessorCannotHaveRestParameter,this.state.curPosition())}i[a]&&this.raise(X.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(X.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=fr(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(X.TupleOptionalAfterType,this.state.lastTokStartLoc))):(c=this.startNodeAt(i),c.optional=o,this.raise(X.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(ve(r)||r===88||r===84){let n=r===88?"TSVoidKeyword":r===84?"TSNullKeyword":uI(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(X.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 mB(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(ve(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(),!ve(this.state.type)&&!this.match(78)?!1:(r&&this.raise(T.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(){jg(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(X.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();vd(s)||this.raise(X.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(X.EmptyHeritageClauseType,n,{token:r}),i}tsParseInterfaceDeclaration(r,n={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(129),n.declare&&(r.declare=!0),ve(this.state.type)?(r.id=this.parseIdentifier(),this.checkIdentifier(r.id,130)):(r.id=null,this.raise(X.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()!==Se.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(X.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(X.InvalidModifierOnUsingDeclaration,this.state.startLoc,"declare"),r.declare=!0,this.parseVarStatement(r,"using",!0);break;case 96:if(this.isAwaitUsing())return this.raise(X.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(ve(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)||ve(this.state.type)))return this.tsParseAbstractDeclaration(r,s);break;case 127:if(this.tsCheckLineTerminator(i)){if(this.match(134))return this.tsParseAmbientExternalModuleDeclaration(r);if(ve(this.state.type))return r.kind="module",this.tsParseModuleOrNamespaceDeclaration(r)}break;case 128:if(this.tsCheckLineTerminator(i)&&ve(this.state.type))return r.kind="namespace",this.tsParseModuleOrNamespaceDeclaration(r);break;case 130:if(this.tsCheckLineTerminator(i)&&ve(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(X.EmptyTypeArguments,r):!this.state.inType&&this.curContext()===Se.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(r,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return yB(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(X.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(X.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(X.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(X.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(X.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(gd(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&&Xa(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(X.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(Dl(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(T.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(X.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(ve(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(X.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(X.UsingDeclarationInAmbientContext,r,n),a;for(let{id:o,init:u}of a.declarations)u&&(n==="var"||n==="let"||o.typeAnnotation?this.raise(X.InitializerNotAllowedInAmbientContext,u):hI(u,this.hasPlugin("estree"))||this.raise(X.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=>Rg(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:X.InvalidModifierOnTypeParameterPositions},n);let a=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(n,s)&&this.raise(X.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(X.IndexSignatureHasAbstract,n),n.accessibility&&this.raise(X.IndexSignatureHasAccessibility,n,{modifier:n.accessibility}),n.declare&&this.raise(X.IndexSignatureHasDeclare,n),n.override&&this.raise(X.IndexSignatureHasOverride,n);return}!this.state.inAbstractClass&&n.abstract&&this.raise(X.NonAbstractClassHasAbstractMethod,n),n.override&&(i.hadSuperClass||this.raise(X.OverrideNotInSubClass,n)),super.parseClassMemberWithIsStatic(r,n,i,s)}parsePostMemberNameModifiers(r){this.eat(17)&&(r.optional=!0),r.readonly&&this.match(10)&&this.raise(X.ClassMethodHasReadonly,r),r.declare&&this.match(10)&&this.raise(X.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(X.ExpectedAmbientAfterExportDeclare,this.state.startLoc);let s=ve(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(X.DeclareClassFieldHasInitializer,this.state.startLoc),r.abstract&&this.match(29)){let{key:n}=r;this.raise(X.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(X.PrivateElementHasAbstract,r),r.accessibility&&this.raise(X.PrivateElementHasAccessibility,r,{modifier:r.accessibility}),this.parseClassPropertyAnnotation(r),super.parseClassPrivateProperty(r)}parseClassAccessorProperty(r){return this.parseClassPropertyAnnotation(r),r.optional&&this.raise(X.AccessorCannotBeOptional,r),super.parseClassAccessorProperty(r)}pushClassMethod(r,n,i,s,a,o){let u=this.tsTryParseTypeParameters(this.tsParseConstModifier);u&&a&&this.raise(X.ConstructorHasTypeParameters,u);let{declare:l=!1,kind:c}=n;l&&(c==="get"||c==="set")&&this.raise(X.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===Se.j_oTag||c===Se.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(X.SingleTypeParameterWithoutTrailingComma,Yt(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&&(jg(!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(X.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(X.UnexpectedTypeCastInParameter,r):this.raise(X.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(X.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(X.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();fr(this.state.type)?(l=!0,o=d,u=n?this.parseIdentifier():this.parseModuleExportName(),c=!1):(u=f,c=!1)}else fr(this.state.type)?(c=!1,u=n?this.parseIdentifier():this.parseModuleExportName()):(l=!0,o=d)}else fr(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?X.TypeModifierIsUsedInTypeImports:X.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(kr(r)){if(Hp.lastIndex=n,Hp.test(this.input)){let i=this.codePointAtPos(Hp.lastIndex);if(!Ii(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 pI(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:uC(e.object)}function hI(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!!(oC(e,t)||dI(e,t)||r==="TemplateLiteral"&&e.expressions.length===0||pI(e))}function oC(e,t){return t?e.type==="Literal"&&(typeof e.value=="number"||"bigint"in e):e.type==="NumericLiteral"||e.type==="BigIntLiteral"}function dI(e,t){if(e.type==="UnaryExpression"){let{operator:r,argument:n}=e;if(r==="-"&&oC(n,t))return!0}return!1}function uC(e){return e.type==="Identifier"?!0:e.type!=="MemberExpression"||e.computed?!1:uC(e.object)}var Ug=Pr`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."}),fI=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(Ug.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(Zn(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(Ug.UnexpectedSpace,this.state.lastTokEndLoc)}},mI=e=>class extends e{parseV8Intrinsic(){if(this.match(54)){let t=this.state.startLoc,r=this.startNode();if(this.next(),ve(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"],Vg=["^^","@@","^","%","#"];function yI(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(!Vg.includes(r)){let n=Vg.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 lC={estree:sB,jsx:MB,flow:LB,typescript:cI,v8intrinsic:mI,placeholders:fI},gI=Object.keys(lC),DI=class extends aI{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(T.RecordNoProto,s),!0):(n&&(i?i.doubleProtoLoc===null&&(i.doubleProtoLoc=s.loc.start):this.raise(T.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(T.ParseExpressionEmptyInput,this.state.startLoc);let t=this.parseExpression();if(!this.match(140))throw this.raise(T.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 xl,s=!0);let{type:a}=this.state;(a===10||ve(a))&&(this.state.potentialArrowAt=this.state.start);let o=this.parseMaybeConditional(t);if(r&&(o=r.call(this,o,n)),cB(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")?Xa(u):Xa(u)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(T.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>=Dl(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(T.PrivateInExpectedIn,t,{identifierName:s}),this.classScope.usePrivateName(s,t.loc.start)}let i=this.state.type;if(hB(i)&&(this.prodParam.hasIn||!this.match(58))){let s=Dl(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=Dl(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(T.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,gB(t)?r-1:r)}parseHackPipeBody(){var n;let{startLoc:t}=this.state,r=this.parseMaybeAssign();return Y8.has(r.type)&&!((n=r.extra)!=null&&n.parenthesized)&&this.raise(T.PipeUnparenthesizedBody,t,{type:r.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(T.PipeTopicUnused,t),r}checkExponentialAfterUnary(t){this.match(57)&&this.raise(T.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(fB(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(T.StrictDelete,a):this.hasPropertyAsPrivateName(l)&&this.raise(T.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")?Xa(u):Xa(u)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(T.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(;dB(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(gd(s))return this.parseTaggedTemplateExpression(t,r,i);let a=!1;if(s===18){if(n&&(this.raise(T.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(T.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(nI()),a=new xl),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(T.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(T.ImportCallArity,t);else for(let n of t.arguments)n.type==="SpreadElement"&&this.raise(T.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&&$s(t,r.innerComments),r.callee.trailingComments&&$s(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(T.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(T.UnsupportedBind,s)}case 139:return this.raise(T.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 kr(s)||s===62?this.expectOnePlugin(["jsx","flow","typescript"]):this.unexpected()}default:if(ve(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(ve(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=Yt(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(T.PipeTopicUnbound,r),this.registerTopicReference(),this.finishNode(t,"TopicReference");throw this.raise(T.PipeTopicUnconfiguredToken,r,{token:Zn(i)})}testTopicReferenceConfiguration(t,r,n){switch(t){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:Zn(n)}]);case"smart":return n===27;default:throw this.raise(T.PipeTopicRequiresHackPipes,r)}}parseAsyncArrowUnaryFunction(t){this.prodParam.enter(El(!0,this.prodParam.hasYield));let r=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(T.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(T.SuperNotAllowed,t):this.scope.allowSuper||this.raise(T.UnexpectedSuper,t),!this.match(10)&&!this.match(0)&&!this.match(16)&&this.raise(T.UnsupportedSuper,t),this.finishNode(t,"Super")}parsePrivateName(){let t=this.startNode(),r=this.startNodeAt(Yt(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(T.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(T.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(rI());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 xl,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(T.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(T.ImportCallNotNewExpression,n)}parseTemplateElement(t){let{start:r,startLoc:n,end:i,value:s}=this.state,a=r+1,o=this.startNodeAt(Yt(n,1));s===null&&(t||this.raise(T.InvalidEscapeSequenceTemplate,Yt(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,Yt(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(T.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(T.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(T.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"?T.BadGetterArity:T.BadSetterArity,t),t.kind==="set"&&((i=n[n.length-1])==null?void 0:i.type)==="RestElement"&&this.raise(T.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(T.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(fr(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(T.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(El(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=El(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(aC()),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(T.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||!bB(t))){if(n&&TB(t)){this.raise(T.UnexpectedKeyword,r,{keyword:t});return}if((this.state.strict?i?eC:Yx:Qx)(t,this.inModule)){this.raise(T.UnexpectedReservedWord,r,{reservedWord:t});return}else if(t==="yield"){if(this.prodParam.hasYield){this.raise(T.YieldBindingIdentifier,r);return}}else if(t==="await"){if(this.prodParam.hasAwait){this.raise(T.AwaitBindingIdentifier,r);return}if(this.scope.inStaticBlock){this.raise(T.AwaitBindingIdentifierInStaticBlock,r);return}this.expressionScope.recordAsyncArrowParametersError(r)}else if(t==="arguments"&&this.scope.inClassAndNotInNonArrowFunction){this.raise(T.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(T.AwaitExpressionFormalParameter,r),this.eat(55)&&this.raise(T.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||gd(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(T.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(T.ImportCallArity,t)}}return this.expect(11),this.finishNode(t,"ImportExpression")}checkPipelineAtInfixOperator(t,r){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&t.type==="SequenceExpression"&&this.raise(T.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(T.PipelineBodyNoArrow,this.state.startLoc);this.topicReferenceWasUsedInCurrentContext()||this.raise(T.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){}},Wp={kind:1},EI={kind:2},xI=/[\uD800-\uDFFF]/u,Jp=/in(?:stanceof)?/y;function CI(e,t,r){for(let n=0;n0)for(let[s,a]of Array.from(this.scope.undefinedExports))this.raise(T.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",Yt(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(kr(t)){if(Jp.lastIndex=r,Jp.test(this.input)){let n=this.codePointAtPos(Jp.lastIndex);if(!Ii(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?T.StrictFunction:this.options.annexB?T.SloppyFunctionAnnexB:T.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(T.AwaitUsingNotInAsyncContext,i):this.raise(T.UnexpectedLexicalDeclaration,i):this.raise(T.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(T.UnexpectedLexicalDeclaration,this.state.startLoc):this.raise(T.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(T.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(T.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(T.AsyncFunctionInSingleStatementContext,this.state.startLoc),this.next(),this.parseFunctionStatement(i,!0,!s&&a)}let u=this.state.value,l=this.parseExpression();return ve(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(T.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(T.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(T.DecoratorExportClass,this.state.startLoc);else if(!this.canHaveLeadingDecorator())throw this.raise(T.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(T.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(Wp);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(T.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(T.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 xl,a=this.parseExpression(!0,s),o=this.isContextual(102);if(o&&(n&&this.raise(T.ForOfLet,a),r===null&&i&&a.type==="Identifier"&&this.raise(T.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(T.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(EI),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(T.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(T.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(T.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(Wp),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.finishNode(t,"WhileStatement")}parseWithStatement(t){return this.state.strict&&this.raise(T.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(T.LabelRedeclaration,n,{labelName:r});let s=pB(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(T.ForInOfLoopInitializer,r,{type:i?"ForInStatement":"ForOfStatement"}),r.type==="AssignmentPattern"&&this.raise(T.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(T.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"}):(n==="const"||n==="using"||n==="await using")&&!(this.match(58)||this.isContextual(102))&&this.raise(T.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(T.UsingDeclarationHasBindingPattern,n.loc.start):n.type==="VoidPattern"&&this.raise(T.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(T.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(El(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||ve(this.state.type)?this.parseIdentifier():null}parseFunctionParams(t,r){this.expect(10),this.expressionScope.enter(tI()),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(T.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(T.DecoratorConstructor,a)}}),this.state.strict=r,this.next(),i.length)throw this.raise(T.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(T.ConstructorIsGenerator,s.key),this.pushClassMethod(t,s,!0,!1,!1,!1);return}let h=!this.state.containsEsc&&ve(this.state.type),d=this.parseClassElementName(r),f=h?d.name:null,y=this.isPrivateName(d),E=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(T.DuplicateConstructor,d),g&&this.hasPlugin("typescript")&&r.override&&this.raise(T.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(E),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(T.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(T.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(T.StaticPrototype,this.state.startLoc),r===139){n==="constructor"&&this.raise(T.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(T.DecoratorStaticBlock,r)}pushClassProperty(t,r){!r.computed&&this.nameIsConstructor(r.key)&&this.raise(T.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(T.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(aC()),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(ve(this.state.type))t.id=this.parseIdentifier(),r&&this.declareNameFromIdentifier(t.id,i);else if(n||!r)t.id=null;else throw this.raise(T.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(T.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(T.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(T.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(T.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(T.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(T.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(ve(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||ve(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(T.DecoratorBeforeExport,this.state.startLoc),!0):this.isUsing()?(this.raise(T.UsingDeclarationExport,this.state.startLoc),!0):this.isAwaitUsing()?(this.raise(T.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(T.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(T.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(T.DuplicateDefaultExport,t):this.raise(T.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=xI.exec(t.value);return r&&this.raise(T.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(T.SourcePhaseImportRequiresDefault,r[0].loc.start):t.phase==="defer"?n!=="ImportNamespaceSpecifier"&&this.raise(T.DeferImportRequiresNamespace,r[0].loc.start):t.module&&(n!=="ImportDefaultSpecifier"&&this.raise(T.ImportReflectionNotBinding,r[0].loc.start),((i=t.assertions)==null?void 0:i.length)>0&&this.raise(T.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(T.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(fr(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 ve(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(T.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(T.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(T.ModuleAttributeDifferentFromType,n.key),r.has(n.key.name)&&this.raise(T.ModuleAttributesWithDuplicateKeys,n.key,{key:n.key.name}),r.add(n.key.name),this.expect(14),!this.match(134))throw this.raise(T.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(T.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(fr(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(T.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(T.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"}},cC=class extends vI{constructor(t,r,n){let i=nB(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 wm}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 pC(e,t){if((t==null?void 0:t.sourceType)==="unambiguous"){t=Object.assign({},t);try{t.sourceType="module";let r=Ka(t,e),n=r.parse();if(r.sawUnambiguousESM)return n;if(r.ambiguousScriptDifferentAst)try{return t.sourceType="script",Ka(t,e).parse()}catch{}else n.program.sourceType="script";return n}catch(r){try{return t.sourceType="script",Ka(t,e).parse()}catch{}throw r}}else return Ka(t,e).parse()}function hC(e,t){let r=Ka(t,e);return r.options.strictMode&&(r.state.strict=!0),r.getExpression()}function AI(e){let t={};for(let r of Object.keys(e))t[r]=Xx(e[r]);return t}AI(oB);function Ka(e,t){let r=cC,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||{})}yI(n),r=TI(n)}return new r(e,t,n)}var qg=new Map;function TI(e){let t=[];for(let i of gI)e.has(i)&&t.push(i);let r=t.join("|"),n=qg.get(r);if(!n){n=cC;for(let i of t)n=lC[i](n);qg.set(r,n)}return n}function dC(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 PI(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(Hg(i))return t-1}else{if(i==="\r"&&e.charAt(t+1)===` -`)return t+2;if(Hg(i))return t+1}return t}var kI=PI;function NI(e,t){return t===!1?!1:e.charAt(t)==="/"&&e.charAt(t+1)==="/"?FI(e,t):t}var BI=NI;function II(e,t){let r=null,n=t;for(;n!==r;)r=n,n=SI(e,n),n=wI(e,n),n=BI(e,n),n=kI(e,n);return n}var _I=II;function LI(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 $I(e){if(!e.startsWith("#!"))return"";let t=e.indexOf(` -`);return t===-1?e:e.slice(0,t)}var fC=$I,Pm=(e,t)=>(r,n,...i)=>r|1&&n==null?void 0:(t.call(n)??n[e]).apply(n,i),OI=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}},MI=Pm("findLast",function(){if(Array.isArray(this))return OI}),jI=MI;function RI(e){return this[e<0?this.length+e:e]}var UI=Pm("at",function(){if(Array.isArray(this)||typeof this=="string")return RI}),zI=UI;function nn(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(nn(r),t):t}function Nr(e){var t;return((t=e.range)==null?void 0:t[1])??e.end}function VI(e){let t=new Set(e);return r=>t.has(r==null?void 0:r.type)}var km=VI,qI=km(["Block","CommentBlock","MultiLine"]),Nm=qI,HI=km(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose","Hashbang","InterpreterDirective"]),WI=HI,Xp=new WeakMap;function JI(e){return Xp.has(e)||Xp.set(e,Nm(e)&&e.value[0]==="*"&&/@(?:type|satisfies)\b/u.test(e.value)),Xp.get(e)}var XI=JI;function KI(e){if(!Nm(e))return!1;let t=`*${e.value}*`.split(` -`);return t.length>1&&t.every(r=>r.trimStart()[0]==="*")}var Kp=new WeakMap;function GI(e){return Kp.has(e)||Kp.set(e,KI(e)),Kp.get(e)}var Wg=GI;function QI(e){if(e.length<2)return;let t;for(let r=e.length-1;r>=0;r--){let n=e[r];if(t&&Nr(n)===nn(t)&&Wg(n)&&Wg(t)&&(e.splice(r+1,1),n.value+="*//*"+t.value,n.range=[nn(n),Nr(t)]),!WI(n)&&!Nm(n))throw new TypeError(`Unknown comment type: "${n.type}".`);t=n}}var YI=QI;function ZI(e){return e!==null&&typeof e=="object"}var e4=ZI,_a=null;function ho(e){if(_a!==null&&typeof _a.property){let t=_a;return _a=ho.prototype=null,t}return _a=ho.prototype=e??Object.create(null),new ho}var t4=10;for(let e=0;e<=t4;e++)ho();function r4(e){return ho(e)}function n4(e,t="type"){r4(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 i4=n4,C=[["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"]],s4={AccessorProperty:C[0],AnyTypeAnnotation:C[1],ArgumentPlaceholder:C[1],ArrayExpression:["elements"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrayTypeAnnotation:C[2],ArrowFunctionExpression:["typeParameters","params","predicate","returnType","body"],AsConstExpression:C[3],AsExpression:C[4],AssignmentExpression:C[5],AssignmentPattern:["left","right","decorators","typeAnnotation"],AwaitExpression:C[6],BigIntLiteral:C[1],BigIntLiteralTypeAnnotation:C[1],BigIntTypeAnnotation:C[1],BinaryExpression:C[5],BindExpression:["object","callee"],BlockStatement:C[7],BooleanLiteral:C[1],BooleanLiteralTypeAnnotation:C[1],BooleanTypeAnnotation:C[1],BreakStatement:C[8],CallExpression:C[9],CatchClause:["param","body"],ChainExpression:C[3],ClassAccessorProperty:C[0],ClassBody:C[10],ClassDeclaration:C[11],ClassExpression:C[11],ClassImplements:C[12],ClassMethod:C[13],ClassPrivateMethod:C[13],ClassPrivateProperty:C[14],ClassProperty:C[14],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:C[15],ConditionalExpression:C[16],ConditionalTypeAnnotation:C[17],ContinueStatement:C[8],DebuggerStatement:C[1],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclaredPredicate:C[18],DeclareEnum:C[19],DeclareExportAllDeclaration:["source","attributes"],DeclareExportDeclaration:C[20],DeclareFunction:["id","predicate"],DeclareHook:C[21],DeclareInterface:C[22],DeclareModule:C[19],DeclareModuleExports:C[23],DeclareNamespace:C[19],DeclareOpaqueType:["id","typeParameters","supertype","lowerBound","upperBound"],DeclareTypeAlias:C[24],DeclareVariable:C[21],Decorator:C[3],Directive:C[18],DirectiveLiteral:C[1],DoExpression:C[10],DoWhileStatement:C[25],EmptyStatement:C[1],EmptyTypeAnnotation:C[1],EnumBigIntBody:C[26],EnumBigIntMember:C[27],EnumBooleanBody:C[26],EnumBooleanMember:C[27],EnumDeclaration:C[19],EnumDefaultedMember:C[21],EnumNumberBody:C[26],EnumNumberMember:C[27],EnumStringBody:C[26],EnumStringMember:C[27],EnumSymbolBody:C[26],ExistsTypeAnnotation:C[1],ExperimentalRestProperty:C[6],ExperimentalSpreadProperty:C[6],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportDefaultSpecifier:C[28],ExportNamedDeclaration:C[20],ExportNamespaceSpecifier:C[28],ExportSpecifier:["local","exported"],ExpressionStatement:C[3],File:["program"],ForInStatement:C[29],ForOfStatement:C[29],ForStatement:["init","test","update","body"],FunctionDeclaration:C[30],FunctionExpression:C[30],FunctionTypeAnnotation:["typeParameters","this","params","rest","returnType"],FunctionTypeParam:C[15],GenericTypeAnnotation:C[12],HookDeclaration:C[31],HookTypeAnnotation:["params","returnType","rest","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:C[16],ImportAttribute:C[32],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:C[33],ImportExpression:["source","options"],ImportNamespaceSpecifier:C[33],ImportSpecifier:["imported","local"],IndexedAccessType:C[34],InferredPredicate:C[1],InferTypeAnnotation:C[35],InterfaceDeclaration:C[22],InterfaceExtends:C[12],InterfaceTypeAnnotation:["extends","body"],InterpreterDirective:C[1],IntersectionTypeAnnotation:C[36],JsExpressionRoot:C[37],JsonRoot:C[37],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXClosingFragment:C[1],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:C[1],JSXExpressionContainer:C[3],JSXFragment:["openingFragment","children","closingFragment"],JSXIdentifier:C[1],JSXMemberExpression:C[38],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","typeArguments","attributes"],JSXOpeningFragment:C[1],JSXSpreadAttribute:C[6],JSXSpreadChild:C[3],JSXText:C[1],KeyofTypeAnnotation:C[6],LabeledStatement:["label","body"],Literal:C[1],LogicalExpression:C[5],MatchArrayPattern:["elements","rest"],MatchAsPattern:["pattern","target"],MatchBindingPattern:C[21],MatchExpression:C[39],MatchExpressionCase:C[40],MatchIdentifierPattern:C[21],MatchLiteralPattern:C[41],MatchMemberPattern:["base","property"],MatchObjectPattern:["properties","rest"],MatchObjectPatternProperty:["key","pattern"],MatchOrPattern:["patterns"],MatchRestPattern:C[6],MatchStatement:C[39],MatchStatementCase:C[40],MatchUnaryPattern:C[6],MatchWildcardPattern:C[1],MemberExpression:C[38],MetaProperty:["meta","property"],MethodDefinition:C[42],MixedTypeAnnotation:C[1],ModuleExpression:C[10],NeverTypeAnnotation:C[1],NewExpression:C[9],NGChainedExpression:C[43],NGEmptyExpression:C[1],NGMicrosyntax:C[10],NGMicrosyntaxAs:["key","alias"],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKey:C[1],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:C[32],NGPipeExpression:["left","right","arguments"],NGRoot:C[37],NullableTypeAnnotation:C[23],NullLiteral:C[1],NullLiteralTypeAnnotation:C[1],NumberLiteralTypeAnnotation:C[1],NumberTypeAnnotation:C[1],NumericLiteral:C[1],ObjectExpression:["properties"],ObjectMethod:C[13],ObjectPattern:["decorators","properties","typeAnnotation"],ObjectProperty:C[42],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeCallProperty:C[18],ObjectTypeIndexer:["variance","id","key","value"],ObjectTypeInternalSlot:["id","value"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:C[6],OpaqueType:["id","typeParameters","supertype","impltype","lowerBound","upperBound"],OptionalCallExpression:C[9],OptionalIndexedAccessType:C[34],OptionalMemberExpression:C[38],ParenthesizedExpression:C[3],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:C[1],PipelineTopicExpression:C[3],Placeholder:C[1],PrivateIdentifier:C[1],PrivateName:C[21],Program:C[7],Property:C[32],PropertyDefinition:C[14],QualifiedTypeIdentifier:C[44],QualifiedTypeofIdentifier:C[44],RegExpLiteral:C[1],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:C[6],SatisfiesExpression:C[4],SequenceExpression:C[43],SpreadElement:C[6],StaticBlock:C[10],StringLiteral:C[1],StringLiteralTypeAnnotation:C[1],StringTypeAnnotation:C[1],Super:C[1],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],SymbolTypeAnnotation:C[1],TaggedTemplateExpression:["tag","typeArguments","quasi"],TemplateElement:C[1],TemplateLiteral:["quasis","expressions"],ThisExpression:C[1],ThisTypeAnnotation:C[1],ThrowStatement:C[6],TopicReference:C[1],TryStatement:["block","handler","finalizer"],TSAbstractAccessorProperty:C[45],TSAbstractKeyword:C[1],TSAbstractMethodDefinition:C[32],TSAbstractPropertyDefinition:C[45],TSAnyKeyword:C[1],TSArrayType:C[2],TSAsExpression:C[4],TSAsyncKeyword:C[1],TSBigIntKeyword:C[1],TSBooleanKeyword:C[1],TSCallSignatureDeclaration:C[46],TSClassImplements:C[47],TSConditionalType:C[17],TSConstructorType:C[46],TSConstructSignatureDeclaration:C[46],TSDeclareFunction:C[31],TSDeclareKeyword:C[1],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSEnumBody:C[26],TSEnumDeclaration:C[19],TSEnumMember:["id","initializer"],TSExportAssignment:C[3],TSExportKeyword:C[1],TSExternalModuleReference:C[3],TSFunctionType:C[46],TSImportEqualsDeclaration:["id","moduleReference"],TSImportType:["options","qualifier","typeArguments","source"],TSIndexedAccessType:C[34],TSIndexSignature:["parameters","typeAnnotation"],TSInferType:C[35],TSInstantiationExpression:C[47],TSInterfaceBody:C[10],TSInterfaceDeclaration:C[22],TSInterfaceHeritage:C[47],TSIntersectionType:C[36],TSIntrinsicKeyword:C[1],TSJSDocAllType:C[1],TSJSDocNonNullableType:C[23],TSJSDocNullableType:C[23],TSJSDocUnknownType:C[1],TSLiteralType:C[41],TSMappedType:["key","constraint","nameType","typeAnnotation"],TSMethodSignature:["key","typeParameters","params","returnType"],TSModuleBlock:C[10],TSModuleDeclaration:C[19],TSNamedTupleMember:["label","elementType"],TSNamespaceExportDeclaration:C[21],TSNeverKeyword:C[1],TSNonNullExpression:C[3],TSNullKeyword:C[1],TSNumberKeyword:C[1],TSObjectKeyword:C[1],TSOptionalType:C[23],TSParameterProperty:["parameter","decorators"],TSParenthesizedType:C[23],TSPrivateKeyword:C[1],TSPropertySignature:["key","typeAnnotation"],TSProtectedKeyword:C[1],TSPublicKeyword:C[1],TSQualifiedName:C[5],TSReadonlyKeyword:C[1],TSRestType:C[23],TSSatisfiesExpression:C[4],TSStaticKeyword:C[1],TSStringKeyword:C[1],TSSymbolKeyword:C[1],TSTemplateLiteralType:["quasis","types"],TSThisType:C[1],TSTupleType:["elementTypes"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSTypeAnnotation:C[23],TSTypeAssertion:C[4],TSTypeLiteral:C[26],TSTypeOperator:C[23],TSTypeParameter:["name","constraint","default"],TSTypeParameterDeclaration:C[48],TSTypeParameterInstantiation:C[48],TSTypePredicate:C[49],TSTypeQuery:["exprName","typeArguments"],TSTypeReference:["typeName","typeArguments"],TSUndefinedKeyword:C[1],TSUnionType:C[36],TSUnknownKeyword:C[1],TSVoidKeyword:C[1],TupleTypeAnnotation:["types","elementTypes"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeAlias:C[24],TypeAnnotation:C[23],TypeCastExpression:C[4],TypeofTypeAnnotation:["argument","typeArguments"],TypeOperator:C[23],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:C[48],TypeParameterInstantiation:C[48],TypePredicate:C[49],UnaryExpression:C[6],UndefinedTypeAnnotation:C[1],UnionTypeAnnotation:C[36],UnknownTypeAnnotation:C[1],UpdateExpression:C[6],V8IntrinsicIdentifier:C[1],VariableDeclaration:["declarations"],VariableDeclarator:C[27],Variance:C[1],VoidPattern:C[1],VoidTypeAnnotation:C[1],WhileStatement:C[25],WithStatement:["object","body"],YieldExpression:C[6]},a4=i4(s4),o4=a4;function Cl(e,t){if(!e4(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=nn(u)+1,c=Nr(u)-(u.tail?1:2);u.range=[l,c]}break;case"VariableDeclaration":{let l=zI(0,u.declarations,-1);l!=null&&l.init&&n[Nr(l)]!==";"&&(u.range=[nn(u),Nr(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(mC(u))return Ad(u);break;case"TSImportType":!u.source&&u.argument.type==="TSLiteralType"&&(u.source=u.argument.literal,delete u.argument);break}}}),e}function mC(e){return e.type==="LogicalExpression"&&e.right.type==="LogicalExpression"&&e.operator===e.right.operator}function Ad(e){return mC(e)?Ad({type:"LogicalExpression",operator:e.operator,left:Ad({type:"LogicalExpression",operator:e.operator,left:e.left,right:e.right.left,range:[nn(e.left),Nr(e.right.left)]}),right:e.right.right,range:[nn(e),Nr(e)]}):e}var c4=l4;function p4(e,t){let r=new SyntaxError(e+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(r,t)}var yC=p4,Jg="Unexpected parseExpression() input: ";function h4(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(Jg)&&(t=t.slice(Jg.length)),yC(t,{loc:{start:{line:i,column:s+1}},cause:a})}var gC=h4,d4=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},f4=Pm("replaceAll",function(){if(typeof this=="string")return d4}),Wu=f4,m4=/\*\/$/,y4=/^\/\*\*?/,g4=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,D4=/(^|\s+)\/\/([^\n\r]*)/g,Xg=/^(\r?\n)+/,E4=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,Kg=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,x4=/(\r?\n|^) *\* ?/g,C4=[];function v4(e){let t=e.match(g4);return t?t[0].trimStart():""}function A4(e){e=Wu(0,e.replace(y4,"").replace(m4,""),x4,"$1");let t="";for(;t!==e;)t=e,e=Wu(0,e,E4,` +`):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(S.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):Ls(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)}},GB=class{constructor(){U(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 El(e,t){return(e?2:0)|(t?1:0)}var QB=class{constructor(){U(this,"sawUnambiguousESM",!1);U(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 aC(e,t){e.trailingComments===void 0?e.trailingComments=t:e.trailingComments.unshift(...t)}function YB(e,t){e.leadingComments===void 0?e.leadingComments=t:e.leadingComments.unshift(...t)}function $s(e,t){e.innerComments===void 0?e.innerComments=t:e.innerComments.unshift(...t)}function Di(e,t,r){let n=null,i=t.length;for(;n===null&&i>0;)n=t[--i];n===null||n.start>r.start?$s(e,r.comments):aC(n,r.comments)}var ZB=class extends QB{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&&aC(t.leadingNode,r),t.trailingNode!==null&&YB(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":Di(n,n.properties,t);break;case"CallExpression":case"OptionalCallExpression":Di(n,n.arguments,t);break;case"ImportExpression":Di(n,[n.source,n.options??null],t);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":Di(n,n.params,t);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":Di(n,n.elements,t);break;case"ExportNamedDeclaration":case"ImportDeclaration":Di(n,n.specifiers,t);break;case"TSEnumDeclaration":$s(n,r);break;case"TSEnumBody":Di(n,n.members,t);break;default:$s(n,r)}else $s(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 Zn(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 Zn(this.curLine,this.pos-this.lineStart,this.pos+this.startIndex)}clone(){let t=new oC;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}},t4=function(e){return e>=48&&e<=57},Mg={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},Hu={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 Og(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(r4(e,d,t,r)){l+=t.slice(p,r);break}if(d===92){l+=t.slice(p,r);let f=n4(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 r4(e,t,r,n){return e==="template"?t===96||t===36&&r.charCodeAt(n+1)===123:t===(e==="double"?34:39)}function n4(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}=Ed(e,t,r,n,2,!1,a,s),o(l===null?null:String.fromCharCode(l))}case 117:{let l;return{code:l,pos:t}=lC(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 Ed(e,t,r,n,i,s,a,o){let u=t,l;return{n:l,pos:t}=uC(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 uC(e,t,r,n,i,s,a,o,u,l){let c=t,p=i===16?Mg.hex:Mg.decBinOct,h=i===16?Hu.hex:i===10?Hu.dec:i===8?Hu.oct:Hu.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:t4(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 lC(e,t,r,n,i,s){let a=e.charCodeAt(t),o;if(a===123){if(++t,{code:o,pos:t}=Ed(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}=Ed(e,t,r,n,4,!1,i,s));return{code:o,pos:t}}function Ia(e,t,r){return new Zn(r,e-t,e)}var i4=new Set([103,109,115,105,121,117,100,118]),s4=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 tc(t.startLoc,t.endLoc)}},a4=class extends ZB{constructor(r,n){super();U(this,"isLookahead");U(this,"tokens",[]);U(this,"errorHandlers_readInt",{invalidDigit:(r,n,i,s)=>this.optionFlags&2048?(this.raise(S.InvalidDigit,Ia(r,n,i),{radix:s}),!0):!1,numericSeparatorInEscapeSequence:this.errorBuilder(S.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(S.UnexpectedNumericSeparator)});U(this,"errorHandlers_readCodePoint",Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(S.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(S.InvalidCodePoint)}));U(this,"errorHandlers_readStringContents_string",Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(r,n,i)=>{this.recordStrictModeErrors(S.StrictNumericEscape,Ia(r,n,i))},unterminated:(r,n,i)=>{throw this.raise(S.UnterminatedString,Ia(r-1,n,i))}}));U(this,"errorHandlers_readStringContents_template",Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(S.StrictNumericEscape),unterminated:(r,n,i)=>{throw this.raise(S.UnterminatedTemplate,Ia(r,n,i))}}));this.state=new e4,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 s4(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 Vp.lastIndex=r,Vp.test(this.input)?Vp.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 qp.lastIndex=r,qp.test(this.input)?qp.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(S.UnterminatedComment,this.state.curPosition());for(this.state.pos=s+r.length,qu.lastIndex=i+2;qu.test(this.input)&&qu.lastIndex<=s;)++this.state.curLine,this.state.lineStart=qu.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 tc(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(S.UnexpectedDigitAfterHash,this.state.curPosition());kr(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;!Ls(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(kr(r)){this.readWord(r);return}}throw this.raise(S.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(S.UnterminatedRegExp,Yt(r,1));let c=this.input.charCodeAt(a);if(Ls(c))throw this.raise(S.UnterminatedRegExp,Yt(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=()=>Yt(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(S.StrictOctalLiteral,i),!this.state.strict){let d=h.indexOf("_");d>0&&this.raise(S.ZeroDigitNumericSeparator,Yt(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(S.InvalidOrMissingExponent,i),s=!0,l=this.input.charCodeAt(this.state.pos)),l===110&&((s||u)&&this.raise(S.InvalidBigIntLiteral,i),++this.state.pos,a=!0),kr(this.codePointAtPos(this.state.pos)))throw this.raise(S.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}=lC(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}=Og(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}=Og("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 Zn(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(S.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:r})}errorBuilder(r){return(n,i,s)=>{this.raise(r,Ia(n,i,s))}}},o4=class{constructor(){U(this,"privateNames",new Set);U(this,"loneAccessors",new Map);U(this,"undefinedPrivateNames",new Map)}},u4=class{constructor(t){U(this,"parser");U(this,"stack",[]);U(this,"undefinedPrivateNames",new Map);this.parser=t}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new o4)}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(S.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(S.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(S.InvalidPrivateFieldResolution,r,{identifierName:t})}},Mc=class{constructor(t=0){this.type=t}canBeArrowParameterDeclaration(){return this.type===2||this.type===1}isCertainlyParameterDeclaration(){return this.type===3}},cC=class extends Mc{constructor(r){super(r);U(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)}},l4=class{constructor(t){U(this,"parser");U(this,"stack",[new Mc]);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(S.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 c4(){return new Mc(3)}function p4(){return new cC(1)}function h4(){return new cC(2)}function pC(){return new Mc}var d4=class extends a4{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!(Ii(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(S.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(S.InvalidCoverInitializedName,n),i!=null&&this.raise(S.DuplicateProto,i),s!=null&&this.raise(S.UnexpectedPrivateField,s),a!=null&&this.unexpected(a),o!=null&&this.raise(S.InvalidCoverDiscardElement,o)}isLiteralPropertyName(){return Yx(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 GB;let u=this.classScope;this.classScope=new u4(this);let l=this.expressionScope;return this.expressionScope=new l4(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)}},xl=class{constructor(){U(this,"shorthandAssignLoc",null);U(this,"doubleProtoLoc",null);U(this,"privateKeyLoc",null);U(this,"optionalParametersLoc",null);U(this,"voidPatternLoc",null)}},xd=class{constructor(t,r,n){U(this,"type","");this.start=r,this.end=0,this.loc=new tc(n),(t==null?void 0:t.optionFlags)&128&&(this.range=[r,0]),t!=null&&t.filename&&(this.loc.filename=t.filename)}},jg=xd.prototype,f4=class extends d4{startNode(){let t=this.state.startLoc;return new xd(this,t.index,t)}startNodeAt(t){return new xd(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}},Cd=e=>e.type==="ParenthesizedExpression"?Cd(e.expression):e,m4=class extends f4{toAssignable(t,r=!1){var i,s,a;let n;switch((t.type==="ParenthesizedExpression"||(i=t.extra)!=null&&i.parenthesized)&&(n=Cd(t),r?n.type==="Identifier"?this.expressionScope.recordArrowParameterBindingError(S.InvalidParenthesizedAssignment,t):n.type!=="CallExpression"&&n.type!=="MemberExpression"&&!this.isOptionalMemberExpression(n)&&this.raise(S.InvalidParenthesizedAssignment,t):this.raise(S.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(S.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(S.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(S.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(S.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(S.InvalidLhsOptionalChaining,t,{ancestor:r})),n!==64&&this.raise(S.InvalidPropertyBindingPattern,t);return}if(u==="Identifier"){this.checkIdentifier(t,n,s);let{name:g}=t;i&&(i.has(g)?this.raise(S.ParamDupe,t):i.add(g));return}else u==="VoidPattern"&&r.type==="CatchClause"&&this.raise(S.VoidPatternCatchClauseParam,t);let c=Cd(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?S.InvalidLhs:S.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?sC(t.name,this.inModule):iC(t.name))&&(r===64?this.raise(S.StrictEvalArguments,t,{referenceName:t.name}):this.raise(S.StrictEvalArgumentsBinding,t,{bindingName:t.name})),r&8192&&t.name==="let"&&this.raise(S.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(S.InvalidRestAssignmentPattern,t)}}checkCommaAfterRest(t){return this.match(12)?(this.raise(this.lookaheadCharCode()===t?S.RestTrailingComma:S.ElementAfterRest,this.state.startLoc),!0):!1}},Hp=/in(?:stanceof)?|as|satisfies/y;function y4(e){if(e==null)throw new Error(`Unexpected ${e} value.`);return e}function Rg(e){if(!e)throw new Error("Assert fail")}var X=Pr`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 g4(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 D4(e){return e==="in"||e==="out"}function vd(e){var t;if((t=e.extra)!=null&&t.parenthesized)return!1;switch(e.type){case"Identifier":return!0;case"MemberExpression":return!e.computed&&vd(e.object);case"TSInstantiationExpression":return vd(e.expression);default:return!1}}var E4=e=>class extends e{constructor(){super(...arguments);U(this,"tsParseInOutModifiers",this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:X.InvalidModifierOnTypeParameter}));U(this,"tsParseConstModifier",this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:X.InvalidModifierOnTypeParameterPositions}));U(this,"tsParseInOutConstModifiers",this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:X.InvalidModifierOnTypeParameter}))}getScopeHandler(){return KB}tsIsIdentifier(){return ve(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(!ve(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=X.InvalidModifierOnTypeMember},a){let o=(l,c,p,h)=>{c===p&&a[h]&&this.raise(X.InvalidModifiersOrder,l,{orderedModifiers:[p,h]})},u=(l,c,p,h)=>{(a[p]&&c===h||a[h]&&c===p)&&this.raise(X.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(X.DuplicateAccessibilityModifier,l,{modifier:c}):(o(l,c,c,"override"),o(l,c,c,"static"),o(l,c,c,"readonly"),a.accessibility=c):D4(c)?(a[c]&&this.raise(X.DuplicateModifier,l,{modifier:c}),a[c]=!0,o(l,c,"in","out")):(Object.prototype.hasOwnProperty.call(a,c)?this.raise(X.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 y4(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(X.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;ve(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(X.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(X.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(),ve(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(X.ReadonlyForMethodSignature,r);let i=r;i.kind&&this.match(47)&&this.raise(X.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(S.BadGetterArity,this.state.curPosition()),this.isThisParam(i[s][0])&&this.raise(X.AccessorCannotDeclareThisParameter,this.state.curPosition()));else if(i.kind==="set"){if(i[s].length!==1)this.raise(S.BadSetterArity,this.state.curPosition());else{let o=i[s][0];this.isThisParam(o)&&this.raise(X.AccessorCannotDeclareThisParameter,this.state.curPosition()),o.type==="Identifier"&&o.optional&&this.raise(X.SetAccessorCannotHaveOptionalParameter,this.state.curPosition()),o.type==="RestElement"&&this.raise(X.SetAccessorCannotHaveRestParameter,this.state.curPosition())}i[a]&&this.raise(X.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(X.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=fr(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(X.TupleOptionalAfterType,this.state.lastTokStartLoc))):(c=this.startNodeAt(i),c.optional=o,this.raise(X.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(ve(r)||r===88||r===84){let n=r===88?"TSVoidKeyword":r===84?"TSNullKeyword":g4(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(X.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 TB(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(ve(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(),!ve(this.state.type)&&!this.match(78)?!1:(r&&this.raise(S.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(X.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();vd(s)||this.raise(X.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(X.EmptyHeritageClauseType,n,{token:r}),i}tsParseInterfaceDeclaration(r,n={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(129),n.declare&&(r.declare=!0),ve(this.state.type)?(r.id=this.parseIdentifier(),this.checkIdentifier(r.id,130)):(r.id=null,this.raise(X.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()!==Se.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(X.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(X.InvalidModifierOnUsingDeclaration,this.state.startLoc,"declare"),r.declare=!0,this.parseVarStatement(r,"using",!0);break;case 96:if(this.isAwaitUsing())return this.raise(X.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(ve(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)||ve(this.state.type)))return this.tsParseAbstractDeclaration(r,s);break;case 127:if(this.tsCheckLineTerminator(i)){if(this.match(134))return this.tsParseAmbientExternalModuleDeclaration(r);if(ve(this.state.type))return r.kind="module",this.tsParseModuleOrNamespaceDeclaration(r)}break;case 128:if(this.tsCheckLineTerminator(i)&&ve(this.state.type))return r.kind="namespace",this.tsParseModuleOrNamespaceDeclaration(r);break;case 130:if(this.tsCheckLineTerminator(i)&&ve(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(X.EmptyTypeArguments,r):!this.state.inType&&this.curContext()===Se.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(r,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return SB(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(X.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(X.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(X.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(X.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(X.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(gd(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&&Xa(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(X.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(Dl(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(S.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(X.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(ve(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(X.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(X.UsingDeclarationInAmbientContext,r,n),a;for(let{id:o,init:u}of a.declarations)u&&(n==="var"||n==="let"||o.typeAnnotation?this.raise(X.InitializerNotAllowedInAmbientContext,u):C4(u,this.hasPlugin("estree"))||this.raise(X.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:X.InvalidModifierOnTypeParameterPositions},n);let a=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(n,s)&&this.raise(X.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(X.IndexSignatureHasAbstract,n),n.accessibility&&this.raise(X.IndexSignatureHasAccessibility,n,{modifier:n.accessibility}),n.declare&&this.raise(X.IndexSignatureHasDeclare,n),n.override&&this.raise(X.IndexSignatureHasOverride,n);return}!this.state.inAbstractClass&&n.abstract&&this.raise(X.NonAbstractClassHasAbstractMethod,n),n.override&&(i.hadSuperClass||this.raise(X.OverrideNotInSubClass,n)),super.parseClassMemberWithIsStatic(r,n,i,s)}parsePostMemberNameModifiers(r){this.eat(17)&&(r.optional=!0),r.readonly&&this.match(10)&&this.raise(X.ClassMethodHasReadonly,r),r.declare&&this.match(10)&&this.raise(X.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(X.ExpectedAmbientAfterExportDeclare,this.state.startLoc);let s=ve(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(X.DeclareClassFieldHasInitializer,this.state.startLoc),r.abstract&&this.match(29)){let{key:n}=r;this.raise(X.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(X.PrivateElementHasAbstract,r),r.accessibility&&this.raise(X.PrivateElementHasAccessibility,r,{modifier:r.accessibility}),this.parseClassPropertyAnnotation(r),super.parseClassPrivateProperty(r)}parseClassAccessorProperty(r){return this.parseClassPropertyAnnotation(r),r.optional&&this.raise(X.AccessorCannotBeOptional,r),super.parseClassAccessorProperty(r)}pushClassMethod(r,n,i,s,a,o){let u=this.tsTryParseTypeParameters(this.tsParseConstModifier);u&&a&&this.raise(X.ConstructorHasTypeParameters,u);let{declare:l=!1,kind:c}=n;l&&(c==="get"||c==="set")&&this.raise(X.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===Se.j_oTag||c===Se.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(X.SingleTypeParameterWithoutTrailingComma,Yt(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(X.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(X.UnexpectedTypeCastInParameter,r):this.raise(X.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(X.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(X.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();fr(this.state.type)?(l=!0,o=d,u=n?this.parseIdentifier():this.parseModuleExportName(),c=!1):(u=f,c=!1)}else fr(this.state.type)?(c=!1,u=n?this.parseIdentifier():this.parseModuleExportName()):(l=!0,o=d)}else fr(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?X.TypeModifierIsUsedInTypeImports:X.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(kr(r)){if(Hp.lastIndex=n,Hp.test(this.input)){let i=this.codePointAtPos(Hp.lastIndex);if(!Ii(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 x4(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:dC(e.object)}function C4(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!!(hC(e,t)||v4(e,t)||r==="TemplateLiteral"&&e.expressions.length===0||x4(e))}function hC(e,t){return t?e.type==="Literal"&&(typeof e.value=="number"||"bigint"in e):e.type==="NumericLiteral"||e.type==="BigIntLiteral"}function v4(e,t){if(e.type==="UnaryExpression"){let{operator:r,argument:n}=e;if(r==="-"&&hC(n,t))return!0}return!1}function dC(e){return e.type==="Identifier"?!0:e.type!=="MemberExpression"||e.computed?!1:dC(e.object)}var zg=Pr`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."}),A4=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(zg.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(ei(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(zg.UnexpectedSpace,this.state.lastTokEndLoc)}},T4=e=>class extends e{parseV8Intrinsic(){if(this.match(54)){let t=this.state.startLoc,r=this.startNode();if(this.next(),ve(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)}},Vg=["fsharp","hack"],qg=["^^","@@","^","%","#"];function S4(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(!Vg.includes(t)){let r=Vg.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 fC={estree:fB,jsx:JB,flow:qB,typescript:E4,v8intrinsic:T4,placeholders:A4},F4=Object.keys(fC),b4=class extends m4{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(S.RecordNoProto,s),!0):(n&&(i?i.doubleProtoLoc===null&&(i.doubleProtoLoc=s.loc.start):this.raise(S.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(S.ParseExpressionEmptyInput,this.state.startLoc);let t=this.parseExpression();if(!this.match(140))throw this.raise(S.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 xl,s=!0);let{type:a}=this.state;(a===10||ve(a))&&(this.state.potentialArrowAt=this.state.start);let o=this.parseMaybeConditional(t);if(r&&(o=r.call(this,o,n)),EB(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")?Xa(u):Xa(u)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(S.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>=Dl(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(S.PrivateInExpectedIn,t,{identifierName:s}),this.classScope.usePrivateName(s,t.loc.start)}let i=this.state.type;if(CB(i)&&(this.prodParam.hasIn||!this.match(58))){let s=Dl(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=Dl(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(S.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,FB(t)?r-1:r)}parseHackPipeBody(){var n;let{startLoc:t}=this.state,r=this.parseMaybeAssign();return oB.has(r.type)&&!((n=r.extra)!=null&&n.parenthesized)&&this.raise(S.PipeUnparenthesizedBody,t,{type:r.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(S.PipeTopicUnused,t),r}checkExponentialAfterUnary(t){this.match(57)&&this.raise(S.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(AB(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(S.StrictDelete,a):this.hasPropertyAsPrivateName(l)&&this.raise(S.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")?Xa(u):Xa(u)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(S.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(;vB(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(gd(s))return this.parseTaggedTemplateExpression(t,r,i);let a=!1;if(s===18){if(n&&(this.raise(S.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(S.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(h4()),a=new xl),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(S.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(S.ImportCallArity,t);else for(let n of t.arguments)n.type==="SpreadElement"&&this.raise(S.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&&$s(t,r.innerComments),r.callee.trailingComments&&$s(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(S.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(S.UnsupportedBind,s)}case 139:return this.raise(S.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 kr(s)||s===62?this.expectOnePlugin(["jsx","flow","typescript"]):this.unexpected()}default:if(ve(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(ve(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=Yt(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(S.PipeTopicUnbound,r),this.registerTopicReference(),this.finishNode(t,"TopicReference");throw this.raise(S.PipeTopicUnconfiguredToken,r,{token:ei(i)})}testTopicReferenceConfiguration(t,r,n){switch(t){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:ei(n)}]);case"smart":return n===27;default:throw this.raise(S.PipeTopicRequiresHackPipes,r)}}parseAsyncArrowUnaryFunction(t){this.prodParam.enter(El(!0,this.prodParam.hasYield));let r=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(S.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(S.SuperNotAllowed,t):this.scope.allowSuper||this.raise(S.UnexpectedSuper,t),!this.match(10)&&!this.match(0)&&!this.match(16)&&this.raise(S.UnsupportedSuper,t),this.finishNode(t,"Super")}parsePrivateName(){let t=this.startNode(),r=this.startNodeAt(Yt(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(S.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(S.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(p4());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 xl,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(S.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(S.ImportCallNotNewExpression,n)}parseTemplateElement(t){let{start:r,startLoc:n,end:i,value:s}=this.state,a=r+1,o=this.startNodeAt(Yt(n,1));s===null&&(t||this.raise(S.InvalidEscapeSequenceTemplate,Yt(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,Yt(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(S.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(S.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(S.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"?S.BadGetterArity:S.BadSetterArity,t),t.kind==="set"&&((i=n[n.length-1])==null?void 0:i.type)==="RestElement"&&this.raise(S.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(S.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(fr(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(S.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(El(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=El(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(pC()),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(S.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||!$B(t))){if(n&&IB(t)){this.raise(S.UnexpectedKeyword,r,{keyword:t});return}if((this.state.strict?i?sC:nC:rC)(t,this.inModule)){this.raise(S.UnexpectedReservedWord,r,{reservedWord:t});return}else if(t==="yield"){if(this.prodParam.hasYield){this.raise(S.YieldBindingIdentifier,r);return}}else if(t==="await"){if(this.prodParam.hasAwait){this.raise(S.AwaitBindingIdentifier,r);return}if(this.scope.inStaticBlock){this.raise(S.AwaitBindingIdentifierInStaticBlock,r);return}this.expressionScope.recordAsyncArrowParametersError(r)}else if(t==="arguments"&&this.scope.inClassAndNotInNonArrowFunction){this.raise(S.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(S.AwaitExpressionFormalParameter,r),this.eat(55)&&this.raise(S.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||gd(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(S.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(S.ImportCallArity,t)}}return this.expect(11),this.finishNode(t,"ImportExpression")}checkPipelineAtInfixOperator(t,r){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&t.type==="SequenceExpression"&&this.raise(S.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(S.PipelineBodyNoArrow,this.state.startLoc);this.topicReferenceWasUsedInCurrentContext()||this.raise(S.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){}},Wp={kind:1},w4={kind:2},P4=/[\uD800-\uDFFF]/u,Jp=/in(?:stanceof)?/y;function k4(e,t,r){for(let n=0;n0)for(let[s,a]of Array.from(this.scope.undefinedExports))this.raise(S.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",Yt(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(kr(t)){if(Jp.lastIndex=r,Jp.test(this.input)){let n=this.codePointAtPos(Jp.lastIndex);if(!Ii(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?S.StrictFunction:this.options.annexB?S.SloppyFunctionAnnexB:S.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(S.AwaitUsingNotInAsyncContext,i):this.raise(S.UnexpectedLexicalDeclaration,i):this.raise(S.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(S.UnexpectedLexicalDeclaration,this.state.startLoc):this.raise(S.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(S.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(S.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(S.AsyncFunctionInSingleStatementContext,this.state.startLoc),this.next(),this.parseFunctionStatement(i,!0,!s&&a)}let u=this.state.value,l=this.parseExpression();return ve(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(S.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(S.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(S.DecoratorExportClass,this.state.startLoc);else if(!this.canHaveLeadingDecorator())throw this.raise(S.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(S.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(Wp);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(S.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(S.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 xl,a=this.parseExpression(!0,s),o=this.isContextual(102);if(o&&(n&&this.raise(S.ForOfLet,a),r===null&&i&&a.type==="Identifier"&&this.raise(S.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(S.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(w4),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(S.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(S.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(S.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(Wp),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.finishNode(t,"WhileStatement")}parseWithStatement(t){return this.state.strict&&this.raise(S.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(S.LabelRedeclaration,n,{labelName:r});let s=xB(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(S.ForInOfLoopInitializer,r,{type:i?"ForInStatement":"ForOfStatement"}),r.type==="AssignmentPattern"&&this.raise(S.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(S.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"}):(n==="const"||n==="using"||n==="await using")&&!(this.match(58)||this.isContextual(102))&&this.raise(S.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(S.UsingDeclarationHasBindingPattern,n.loc.start):n.type==="VoidPattern"&&this.raise(S.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(S.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(El(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||ve(this.state.type)?this.parseIdentifier():null}parseFunctionParams(t,r){this.expect(10),this.expressionScope.enter(c4()),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(S.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(S.DecoratorConstructor,a)}}),this.state.strict=r,this.next(),i.length)throw this.raise(S.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(S.ConstructorIsGenerator,s.key),this.pushClassMethod(t,s,!0,!1,!1,!1);return}let h=!this.state.containsEsc&&ve(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(S.DuplicateConstructor,d),g&&this.hasPlugin("typescript")&&r.override&&this.raise(S.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(S.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(S.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(S.StaticPrototype,this.state.startLoc),r===139){n==="constructor"&&this.raise(S.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(S.DecoratorStaticBlock,r)}pushClassProperty(t,r){!r.computed&&this.nameIsConstructor(r.key)&&this.raise(S.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(S.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(pC()),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(ve(this.state.type))t.id=this.parseIdentifier(),r&&this.declareNameFromIdentifier(t.id,i);else if(n||!r)t.id=null;else throw this.raise(S.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(S.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(S.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(S.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(S.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(S.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(S.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(ve(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||ve(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(S.DecoratorBeforeExport,this.state.startLoc),!0):this.isUsing()?(this.raise(S.UsingDeclarationExport,this.state.startLoc),!0):this.isAwaitUsing()?(this.raise(S.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(S.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(S.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(S.DuplicateDefaultExport,t):this.raise(S.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=P4.exec(t.value);return r&&this.raise(S.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(S.SourcePhaseImportRequiresDefault,r[0].loc.start):t.phase==="defer"?n!=="ImportNamespaceSpecifier"&&this.raise(S.DeferImportRequiresNamespace,r[0].loc.start):t.module&&(n!=="ImportDefaultSpecifier"&&this.raise(S.ImportReflectionNotBinding,r[0].loc.start),((i=t.assertions)==null?void 0:i.length)>0&&this.raise(S.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(S.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(fr(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 ve(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(S.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(S.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(S.ModuleAttributeDifferentFromType,n.key),r.has(n.key.name)&&this.raise(S.ModuleAttributesWithDuplicateKeys,n.key,{key:n.key.name}),r.add(n.key.name),this.expect(14),!this.match(134))throw this.raise(S.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(S.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(fr(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(S.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(S.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"}},mC=class extends N4{constructor(t,r,n){let i=hB(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 wm}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 yC(e,t){if((t==null?void 0:t.sourceType)==="unambiguous"){t=Object.assign({},t);try{t.sourceType="module";let r=Ka(t,e),n=r.parse();if(r.sawUnambiguousESM)return n;if(r.ambiguousScriptDifferentAst)try{return t.sourceType="script",Ka(t,e).parse()}catch{}else n.program.sourceType="script";return n}catch(r){try{return t.sourceType="script",Ka(t,e).parse()}catch{}throw r}}else return Ka(t,e).parse()}function gC(e,t){let r=Ka(t,e);return r.options.strictMode&&(r.state.strict=!0),r.getExpression()}function B4(e){let t={};for(let r of Object.keys(e))t[r]=Zx(e[r]);return t}B4(yB);function Ka(e,t){let r=mC,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||{})}S4(n),r=I4(n)}return new r(e,t,n)}var Hg=new Map;function I4(e){let t=[];for(let i of F4)e.has(i)&&t.push(i);let r=t.join("|"),n=Hg.get(r);if(!n){n=mC;for(let i of t)n=fC[i](n);Hg.set(r,n)}return n}function DC(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 O4(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 j4=O4;function R4(e,t){return t===!1?!1:e.charAt(t)==="/"&&e.charAt(t+1)==="/"?L4(e,t):t}var U4=R4;function z4(e,t){let r=null,n=t;for(;n!==r;)r=n,n=_4(e,n),n=M4(e,n),n=U4(e,n),n=j4(e,n);return n}var V4=z4;function q4(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 H4(e){if(!e.startsWith("#!"))return"";let t=e.indexOf(` +`);return t===-1?e:e.slice(0,t)}var EC=H4,Pm=(e,t)=>(r,n,...i)=>r|1&&n==null?void 0:(t.call(n)??n[e]).apply(n,i),W4=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}},J4=Pm("findLast",function(){if(Array.isArray(this))return W4}),X4=J4;function K4(e){return this[e<0?this.length+e:e]}var G4=Pm("at",function(){if(Array.isArray(this)||typeof this=="string")return K4}),Q4=G4;function nn(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(nn(r),t):t}function Nr(e){var t;return((t=e.range)==null?void 0:t[1])??e.end}function Y4(e){let t=new Set(e);return r=>t.has(r==null?void 0:r.type)}var km=Y4,Z4=km(["Block","CommentBlock","MultiLine"]),Nm=Z4,eI=km(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose","Hashbang","InterpreterDirective"]),tI=eI,Xp=new WeakMap;function rI(e){return Xp.has(e)||Xp.set(e,Nm(e)&&e.value[0]==="*"&&/@(?:type|satisfies)\b/u.test(e.value)),Xp.get(e)}var nI=rI;function iI(e){if(!Nm(e))return!1;let t=`*${e.value}*`.split(` +`);return t.length>1&&t.every(r=>r.trimStart()[0]==="*")}var Kp=new WeakMap;function sI(e){return Kp.has(e)||Kp.set(e,iI(e)),Kp.get(e)}var Jg=sI;function aI(e){if(e.length<2)return;let t;for(let r=e.length-1;r>=0;r--){let n=e[r];if(t&&Nr(n)===nn(t)&&Jg(n)&&Jg(t)&&(e.splice(r+1,1),n.value+="*//*"+t.value,n.range=[nn(n),Nr(t)]),!tI(n)&&!Nm(n))throw new TypeError(`Unknown comment type: "${n.type}".`);t=n}}var oI=aI;function uI(e){return e!==null&&typeof e=="object"}var lI=uI,_a=null;function ho(e){if(_a!==null&&typeof _a.property){let t=_a;return _a=ho.prototype=null,t}return _a=ho.prototype=e??Object.create(null),new ho}var cI=10;for(let e=0;e<=cI;e++)ho();function pI(e){return ho(e)}function hI(e,t="type"){pI(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 dI=hI,C=[["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"]],fI={AccessorProperty:C[0],AnyTypeAnnotation:C[1],ArgumentPlaceholder:C[1],ArrayExpression:["elements"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrayTypeAnnotation:C[2],ArrowFunctionExpression:["typeParameters","params","predicate","returnType","body"],AsConstExpression:C[3],AsExpression:C[4],AssignmentExpression:C[5],AssignmentPattern:["left","right","decorators","typeAnnotation"],AwaitExpression:C[6],BigIntLiteral:C[1],BigIntLiteralTypeAnnotation:C[1],BigIntTypeAnnotation:C[1],BinaryExpression:C[5],BindExpression:["object","callee"],BlockStatement:C[7],BooleanLiteral:C[1],BooleanLiteralTypeAnnotation:C[1],BooleanTypeAnnotation:C[1],BreakStatement:C[8],CallExpression:C[9],CatchClause:["param","body"],ChainExpression:C[3],ClassAccessorProperty:C[0],ClassBody:C[10],ClassDeclaration:C[11],ClassExpression:C[11],ClassImplements:C[12],ClassMethod:C[13],ClassPrivateMethod:C[13],ClassPrivateProperty:C[14],ClassProperty:C[14],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:C[15],ConditionalExpression:C[16],ConditionalTypeAnnotation:C[17],ContinueStatement:C[8],DebuggerStatement:C[1],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclaredPredicate:C[18],DeclareEnum:C[19],DeclareExportAllDeclaration:["source","attributes"],DeclareExportDeclaration:C[20],DeclareFunction:["id","predicate"],DeclareHook:C[21],DeclareInterface:C[22],DeclareModule:C[19],DeclareModuleExports:C[23],DeclareNamespace:C[19],DeclareOpaqueType:["id","typeParameters","supertype","lowerBound","upperBound"],DeclareTypeAlias:C[24],DeclareVariable:C[21],Decorator:C[3],Directive:C[18],DirectiveLiteral:C[1],DoExpression:C[10],DoWhileStatement:C[25],EmptyStatement:C[1],EmptyTypeAnnotation:C[1],EnumBigIntBody:C[26],EnumBigIntMember:C[27],EnumBooleanBody:C[26],EnumBooleanMember:C[27],EnumDeclaration:C[19],EnumDefaultedMember:C[21],EnumNumberBody:C[26],EnumNumberMember:C[27],EnumStringBody:C[26],EnumStringMember:C[27],EnumSymbolBody:C[26],ExistsTypeAnnotation:C[1],ExperimentalRestProperty:C[6],ExperimentalSpreadProperty:C[6],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportDefaultSpecifier:C[28],ExportNamedDeclaration:C[20],ExportNamespaceSpecifier:C[28],ExportSpecifier:["local","exported"],ExpressionStatement:C[3],File:["program"],ForInStatement:C[29],ForOfStatement:C[29],ForStatement:["init","test","update","body"],FunctionDeclaration:C[30],FunctionExpression:C[30],FunctionTypeAnnotation:["typeParameters","this","params","rest","returnType"],FunctionTypeParam:C[15],GenericTypeAnnotation:C[12],HookDeclaration:C[31],HookTypeAnnotation:["params","returnType","rest","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:C[16],ImportAttribute:C[32],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:C[33],ImportExpression:["source","options"],ImportNamespaceSpecifier:C[33],ImportSpecifier:["imported","local"],IndexedAccessType:C[34],InferredPredicate:C[1],InferTypeAnnotation:C[35],InterfaceDeclaration:C[22],InterfaceExtends:C[12],InterfaceTypeAnnotation:["extends","body"],InterpreterDirective:C[1],IntersectionTypeAnnotation:C[36],JsExpressionRoot:C[37],JsonRoot:C[37],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXClosingFragment:C[1],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:C[1],JSXExpressionContainer:C[3],JSXFragment:["openingFragment","children","closingFragment"],JSXIdentifier:C[1],JSXMemberExpression:C[38],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","typeArguments","attributes"],JSXOpeningFragment:C[1],JSXSpreadAttribute:C[6],JSXSpreadChild:C[3],JSXText:C[1],KeyofTypeAnnotation:C[6],LabeledStatement:["label","body"],Literal:C[1],LogicalExpression:C[5],MatchArrayPattern:["elements","rest"],MatchAsPattern:["pattern","target"],MatchBindingPattern:C[21],MatchExpression:C[39],MatchExpressionCase:C[40],MatchIdentifierPattern:C[21],MatchLiteralPattern:C[41],MatchMemberPattern:["base","property"],MatchObjectPattern:["properties","rest"],MatchObjectPatternProperty:["key","pattern"],MatchOrPattern:["patterns"],MatchRestPattern:C[6],MatchStatement:C[39],MatchStatementCase:C[40],MatchUnaryPattern:C[6],MatchWildcardPattern:C[1],MemberExpression:C[38],MetaProperty:["meta","property"],MethodDefinition:C[42],MixedTypeAnnotation:C[1],ModuleExpression:C[10],NeverTypeAnnotation:C[1],NewExpression:C[9],NGChainedExpression:C[43],NGEmptyExpression:C[1],NGMicrosyntax:C[10],NGMicrosyntaxAs:["key","alias"],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKey:C[1],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:C[32],NGPipeExpression:["left","right","arguments"],NGRoot:C[37],NullableTypeAnnotation:C[23],NullLiteral:C[1],NullLiteralTypeAnnotation:C[1],NumberLiteralTypeAnnotation:C[1],NumberTypeAnnotation:C[1],NumericLiteral:C[1],ObjectExpression:["properties"],ObjectMethod:C[13],ObjectPattern:["decorators","properties","typeAnnotation"],ObjectProperty:C[42],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeCallProperty:C[18],ObjectTypeIndexer:["variance","id","key","value"],ObjectTypeInternalSlot:["id","value"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:C[6],OpaqueType:["id","typeParameters","supertype","impltype","lowerBound","upperBound"],OptionalCallExpression:C[9],OptionalIndexedAccessType:C[34],OptionalMemberExpression:C[38],ParenthesizedExpression:C[3],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:C[1],PipelineTopicExpression:C[3],Placeholder:C[1],PrivateIdentifier:C[1],PrivateName:C[21],Program:C[7],Property:C[32],PropertyDefinition:C[14],QualifiedTypeIdentifier:C[44],QualifiedTypeofIdentifier:C[44],RegExpLiteral:C[1],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:C[6],SatisfiesExpression:C[4],SequenceExpression:C[43],SpreadElement:C[6],StaticBlock:C[10],StringLiteral:C[1],StringLiteralTypeAnnotation:C[1],StringTypeAnnotation:C[1],Super:C[1],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],SymbolTypeAnnotation:C[1],TaggedTemplateExpression:["tag","typeArguments","quasi"],TemplateElement:C[1],TemplateLiteral:["quasis","expressions"],ThisExpression:C[1],ThisTypeAnnotation:C[1],ThrowStatement:C[6],TopicReference:C[1],TryStatement:["block","handler","finalizer"],TSAbstractAccessorProperty:C[45],TSAbstractKeyword:C[1],TSAbstractMethodDefinition:C[32],TSAbstractPropertyDefinition:C[45],TSAnyKeyword:C[1],TSArrayType:C[2],TSAsExpression:C[4],TSAsyncKeyword:C[1],TSBigIntKeyword:C[1],TSBooleanKeyword:C[1],TSCallSignatureDeclaration:C[46],TSClassImplements:C[47],TSConditionalType:C[17],TSConstructorType:C[46],TSConstructSignatureDeclaration:C[46],TSDeclareFunction:C[31],TSDeclareKeyword:C[1],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSEnumBody:C[26],TSEnumDeclaration:C[19],TSEnumMember:["id","initializer"],TSExportAssignment:C[3],TSExportKeyword:C[1],TSExternalModuleReference:C[3],TSFunctionType:C[46],TSImportEqualsDeclaration:["id","moduleReference"],TSImportType:["options","qualifier","typeArguments","source"],TSIndexedAccessType:C[34],TSIndexSignature:["parameters","typeAnnotation"],TSInferType:C[35],TSInstantiationExpression:C[47],TSInterfaceBody:C[10],TSInterfaceDeclaration:C[22],TSInterfaceHeritage:C[47],TSIntersectionType:C[36],TSIntrinsicKeyword:C[1],TSJSDocAllType:C[1],TSJSDocNonNullableType:C[23],TSJSDocNullableType:C[23],TSJSDocUnknownType:C[1],TSLiteralType:C[41],TSMappedType:["key","constraint","nameType","typeAnnotation"],TSMethodSignature:["key","typeParameters","params","returnType"],TSModuleBlock:C[10],TSModuleDeclaration:C[19],TSNamedTupleMember:["label","elementType"],TSNamespaceExportDeclaration:C[21],TSNeverKeyword:C[1],TSNonNullExpression:C[3],TSNullKeyword:C[1],TSNumberKeyword:C[1],TSObjectKeyword:C[1],TSOptionalType:C[23],TSParameterProperty:["parameter","decorators"],TSParenthesizedType:C[23],TSPrivateKeyword:C[1],TSPropertySignature:["key","typeAnnotation"],TSProtectedKeyword:C[1],TSPublicKeyword:C[1],TSQualifiedName:C[5],TSReadonlyKeyword:C[1],TSRestType:C[23],TSSatisfiesExpression:C[4],TSStaticKeyword:C[1],TSStringKeyword:C[1],TSSymbolKeyword:C[1],TSTemplateLiteralType:["quasis","types"],TSThisType:C[1],TSTupleType:["elementTypes"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSTypeAnnotation:C[23],TSTypeAssertion:C[4],TSTypeLiteral:C[26],TSTypeOperator:C[23],TSTypeParameter:["name","constraint","default"],TSTypeParameterDeclaration:C[48],TSTypeParameterInstantiation:C[48],TSTypePredicate:C[49],TSTypeQuery:["exprName","typeArguments"],TSTypeReference:["typeName","typeArguments"],TSUndefinedKeyword:C[1],TSUnionType:C[36],TSUnknownKeyword:C[1],TSVoidKeyword:C[1],TupleTypeAnnotation:["types","elementTypes"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeAlias:C[24],TypeAnnotation:C[23],TypeCastExpression:C[4],TypeofTypeAnnotation:["argument","typeArguments"],TypeOperator:C[23],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:C[48],TypeParameterInstantiation:C[48],TypePredicate:C[49],UnaryExpression:C[6],UndefinedTypeAnnotation:C[1],UnionTypeAnnotation:C[36],UnknownTypeAnnotation:C[1],UpdateExpression:C[6],V8IntrinsicIdentifier:C[1],VariableDeclaration:["declarations"],VariableDeclarator:C[27],Variance:C[1],VoidPattern:C[1],VoidTypeAnnotation:C[1],WhileStatement:C[25],WithStatement:["object","body"],YieldExpression:C[6]},mI=dI(fI),yI=mI;function Cl(e,t){if(!lI(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=nn(u)+1,c=Nr(u)-(u.tail?1:2);u.range=[l,c]}break;case"VariableDeclaration":{let l=Q4(0,u.declarations,-1);l!=null&&l.init&&n[Nr(l)]!==";"&&(u.range=[nn(u),Nr(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(xC(u))return Ad(u);break;case"TSImportType":!u.source&&u.argument.type==="TSLiteralType"&&(u.source=u.argument.literal,delete u.argument);break}}}),e}function xC(e){return e.type==="LogicalExpression"&&e.right.type==="LogicalExpression"&&e.operator===e.right.operator}function Ad(e){return xC(e)?Ad({type:"LogicalExpression",operator:e.operator,left:Ad({type:"LogicalExpression",operator:e.operator,left:e.left,right:e.right.left,range:[nn(e.left),Nr(e.right.left)]}),right:e.right.right,range:[nn(e),Nr(e)]}):e}var EI=DI;function xI(e,t){let r=new SyntaxError(e+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(r,t)}var CC=xI,Xg="Unexpected parseExpression() input: ";function CI(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)),CC(t,{loc:{start:{line:i,column:s+1}},cause:a})}var vC=CI,vI=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},AI=Pm("replaceAll",function(){if(typeof this=="string")return vI}),Wu=AI,TI=/\*\/$/,SI=/^\/\*\*?/,FI=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,bI=/(^|\s+)\/\/([^\n\r]*)/g,Kg=/^(\r?\n)+/,wI=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,Gg=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,PI=/(\r?\n|^) *\* ?/g,kI=[];function NI(e){let t=e.match(FI);return t?t[0].trimStart():""}function BI(e){e=Wu(0,e.replace(SI,"").replace(TI,""),PI,"$1");let t="";for(;t!==e;)t=e,e=Wu(0,e,wI,` $1 $2 -`);e=e.replace(Xg,"").trimEnd();let r=Object.create(null),n=Wu(0,e,Kg,"").replace(Xg,"").trimEnd(),i;for(;i=Kg.exec(e);){let s=Wu(0,i[2],D4,"");if(typeof r[i[1]]=="string"||Array.isArray(r[i[1]])){let a=r[i[1]];r[i[1]]=[...C4,...Array.isArray(a)?a:[a],s]}else r[i[1]]=s}return{comments:n,pragmas:r}}var T4=["noformat","noprettier"],S4=["format","prettier"];function DC(e){let t=fC(e);t&&(e=e.slice(t.length+1));let r=v4(e),{pragmas:n,comments:i}=A4(r);return{shebang:t,text:e,pragmas:n,comments:i}}function F4(e){let{pragmas:t}=DC(e);return S4.some(r=>Object.prototype.hasOwnProperty.call(t,r))}function b4(e){let{pragmas:t}=DC(e);return T4.some(r=>Object.prototype.hasOwnProperty.call(t,r))}function w4(e){return e=typeof e=="function"?{parse:e}:e,{astFormat:"estree",hasPragma:F4,hasIgnorePragma:b4,locStart:nn,locEnd:Nr,...e}}var ou=w4,Bm="module",EC="commonjs";function P4(e){if(typeof e=="string"){if(e=e.toLowerCase(),/\.(?:mjs|mts)$/iu.test(e))return Bm;if(/\.(?:cjs|cts)$/iu.test(e))return EC}}function k4(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 xC=k4,la=e=>ou(L4(e)),N4={sourceType:Bm,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},Gg="v8intrinsic",Qg=[["pipelineOperator",{proposal:"hack",topicToken:"%"}],["pipelineOperator",{proposal:"fsharp"}]],cn=(e,t=N4)=>({...t,plugins:[...t.plugins,...e]}),B4=/@(?:no)?flow\b/u;function I4(e,t){if(t!=null&&t.endsWith(".js.flow"))return!0;let r=fC(e);r&&(e=e.slice(r.length));let n=_I(e,0);return n!==!1&&(e=e.slice(0,n)),B4.test(e)}function _4(e,t,r){let n=e(t,r),i=n.errors.find(s=>!$4.has(s.reasonCode));if(i)throw i;return n}function L4({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")&&I4(r,i))return n.parser="babel-flow",vC.parse(r,n);let s=t,a=n.__babelSourceType??P4(i);a&&a!==Bm&&(s=s.map(c=>({...c,sourceType:a,...a===EC?{allowReturnOutsideFunction:void 0,allowNewTargetOutsideFunction:void 0}:void 0})));let o=/%[A-Z]/u.test(r);r.includes("|>")?s=(o?[...Qg,Gg]:Qg).flatMap(c=>s.map(p=>cn([c],p))):o&&(s=s.map(c=>cn([Gg],c)));let u=e?hC:pC,l;try{l=LI(s.map(c=>()=>_4(u,r,c)))}catch({errors:[c]}){throw gC(c)}return e&&(l=xC(l,{text:r,rootMarker:n.rootMarker})),c4(l,{text:r})}}var $4=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"]),CC=[cn(["jsx"])],Yg=la({optionsCombinations:CC}),Zg=la({optionsCombinations:[cn(["jsx","typescript"]),cn(["typescript"])]}),e1=la({isExpression:!0,optionsCombinations:[cn(["jsx"])]}),t1=la({isExpression:!0,optionsCombinations:[cn(["typescript"])]}),vC=la({optionsCombinations:[cn(["jsx",["flow",{all:!0}],"flowComments"])]}),O4=la({optionsCombinations:CC.map(e=>cn(["estree"],e))}),AC={};ym(AC,{json:()=>R4,"json-stringify":()=>V4,json5:()=>U4,jsonc:()=>z4});function M4(e){return Array.isArray(e)&&e.length>0}var TC=M4,SC={tokens:!1,ranges:!1,attachComment:!1,createParenthesizedExpressions:!0};function j4(e){let t=pC(e,SC),{program:r}=t;if(r.body.length===0&&r.directives.length===0&&!r.interpreter)return t}function Mc(e,t={}){let{allowComments:r=!0,allowEmpty:n=!1}=t,i;try{i=hC(e,SC)}catch(s){if(n&&s.code==="BABEL_PARSER_SYNTAX_ERROR"&&s.reasonCode==="ParseExpressionEmptyInput")try{i=j4(e)}catch{}if(!i)throw gC(s)}if(!r&&TC(i.comments))throw Bn(i.comments[0],"Comment");return i=xC(i,{type:"JsonRoot",text:e}),i.node.type==="File"?delete i.node:ls(i.node),i}function Bn(e,t){let[r,n]=[e.loc.start,e.loc.end].map(({line:i,column:s})=>({line:i,column:s+1}));return yC(`${t} is not allowed in JSON.`,{loc:{start:r,end:n}})}function ls(e){switch(e.type){case"ArrayExpression":for(let t of e.elements)t!==null&&ls(t);return;case"ObjectExpression":for(let t of e.properties)ls(t);return;case"ObjectProperty":if(e.computed)throw Bn(e.key,"Computed key");if(e.shorthand)throw Bn(e.key,"Shorthand property");e.key.type!=="Identifier"&&ls(e.key),ls(e.value);return;case"UnaryExpression":{let{operator:t,argument:r}=e;if(t!=="+"&&t!=="-")throw Bn(e,`Operator '${e.operator}'`);if(r.type==="NumericLiteral"||r.type==="Identifier"&&(r.name==="Infinity"||r.name==="NaN"))return;throw Bn(r,`Operator '${t}' before '${r.type}'`)}case"Identifier":if(e.name!=="Infinity"&&e.name!=="NaN"&&e.name!=="undefined")throw Bn(e,`Identifier '${e.name}'`);return;case"TemplateLiteral":if(TC(e.expressions))throw Bn(e.expressions[0],"'TemplateLiteral' with expression");for(let t of e.quasis)ls(t);return;case"NullLiteral":case"BooleanLiteral":case"NumericLiteral":case"StringLiteral":case"TemplateElement":return;default:throw Bn(e,`'${e.type}'`)}}var R4=ou({parse:e=>Mc(e),hasPragma:()=>!0,hasIgnorePragma:()=>!1}),U4=ou(e=>Mc(e)),z4=ou(e=>Mc(e,{allowEmpty:!0})),V4=ou({parse:e=>Mc(e,{allowComments:!1}),astFormat:"estree-json"}),FC={...Hx,...AC};const q4=Object.freeze(Object.defineProperty({__proto__:null,default:qx,parsers:FC},Symbol.toStringTag,{value:"Module"}));var H4=Object.defineProperty,Im=(e,t)=>{for(var r in t)H4(e,r,{get:t[r],enumerable:!0})},bC={};Im(bC,{languages:()=>MA,options:()=>$A,printers:()=>OA});var W4=[{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}],wC={};Im(wC,{canAttachComment:()=>d_,embed:()=>i5,features:()=>M$,getVisitorKeys:()=>LC,handleComments:()=>X_,hasPrettierIgnore:()=>ay,insertPragma:()=>D5,isBlockComment:()=>Ar,isGap:()=>G_,massageAstNode:()=>o_,print:()=>k1,printComment:()=>v5,printPrettierIgnored:()=>k1,willPrintOwnComments:()=>Z_});var _m=(e,t)=>(r,n,...i)=>r|1&&n==null?void 0:(t.call(n)??n[e]).apply(n,i),J4=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},X4=_m("replaceAll",function(){if(typeof this=="string")return J4}),Ge=X4;function K4(e){return this[e<0?this.length+e:e]}var G4=_m("at",function(){if(Array.isArray(this)||typeof this=="string")return K4}),Ce=G4;function Q4(e){return e!==null&&typeof e=="object"}var PC=Q4;function*Y4(e,t){let{getVisitorKeys:r,filter:n=()=>!0}=t,i=s=>PC(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*Z4(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 r6(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function n6(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 i6="©®‼⁉™ℹ↔↕↖↗↘↙↩↪⌨⏏⏱⏲⏸⏹⏺▪▫▶◀◻◼☀☁☂☃☄☎☑☘☝☠☢☣☦☪☮☯☸☹☺♀♂♟♠♣♥♦♨♻♾⚒⚔⚕⚖⚗⚙⚛⚜⚠⚧⚰⚱⛈⛏⛑⛓⛩⛱⛷⛸⛹✂✈✉✌✍✏✒✔✖✝✡✳✴❄❇❣❤➡⤴⤵⬅⬆⬇",s6=/[^\x20-\x7F]/u,a6=new Set(i6);function o6(e){if(!e)return 0;if(!s6.test(e))return e.length;e=e.replace(t6(),r=>a6.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+=r6(n)||n6(n)?2:1)}return t}var Xs=o6;function Lm(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 c6(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(r1(i))return t-1}else{if(i==="\r"&&e.charAt(t+1)===` -`)return t+2;if(r1(i))return t+1}return t}var Gs=c6;function p6(e,t,r={}){let n=Ks(e,r.backwards?t-1:t,r),i=Gs(e,n,r);return n!==i}var Pt=p6;function h6(e,t){if(t===!1)return!1;if(e.charAt(t)==="/"&&e.charAt(t+1)==="*"){for(let r=t+2;r0}var Pe=m6,y6=()=>{},g6=y6,kC=Object.freeze({character:"'",codePoint:39}),NC=Object.freeze({character:'"',codePoint:34}),D6=Object.freeze({preferred:kC,alternate:NC}),E6=Object.freeze({preferred:NC,alternate:kC});function x6(e,t){let{preferred:r,alternate:n}=t===!0||t==="'"?D6:E6,{length:i}=e,s=0,a=0;for(let o=0;oa?n:r).character}var BC=x6,C6=/\\(["'\\])|(["'])/gu;function v6(e,t){let r=t==='"'?"'":'"',n=Ge(0,e,C6,(i,s,a)=>s?s===r?r:i:a===t?"\\"+a:a);return t+n+t}var A6=v6;function T6(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?"'":BC(r,t.singleQuote);return e.charAt(0)===n?e:A6(r,n)}var Qs=T6,IC=e=>Number.isInteger(e)&&e>=0;function he(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(he(r),t):t}function ce(e){var t;return((t=e.range)==null?void 0:t[1])??e.end}function jc(e,t){let r=he(e);return IC(r)&&r===he(t)}function S6(e,t){let r=ce(e);return IC(r)&&r===ce(t)}function F6(e,t){return jc(e,t)&&S6(e,t)}var La=null;function fo(e){if(La!==null&&typeof La.property){let t=La;return La=fo.prototype=null,t}return La=fo.prototype=e??Object.create(null),new fo}var b6=10;for(let e=0;e<=b6;e++)fo();function w6(e){return fo(e)}function P6(e,t="type"){w6(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 _C=P6,v=[["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:v[0],AnyTypeAnnotation:v[1],ArgumentPlaceholder:v[1],ArrayExpression:["elements"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrayTypeAnnotation:v[2],ArrowFunctionExpression:["typeParameters","params","predicate","returnType","body"],AsConstExpression:v[3],AsExpression:v[4],AssignmentExpression:v[5],AssignmentPattern:["left","right","decorators","typeAnnotation"],AwaitExpression:v[6],BigIntLiteral:v[1],BigIntLiteralTypeAnnotation:v[1],BigIntTypeAnnotation:v[1],BinaryExpression:v[5],BindExpression:["object","callee"],BlockStatement:v[7],BooleanLiteral:v[1],BooleanLiteralTypeAnnotation:v[1],BooleanTypeAnnotation:v[1],BreakStatement:v[8],CallExpression:v[9],CatchClause:["param","body"],ChainExpression:v[3],ClassAccessorProperty:v[0],ClassBody:v[10],ClassDeclaration:v[11],ClassExpression:v[11],ClassImplements:v[12],ClassMethod:v[13],ClassPrivateMethod:v[13],ClassPrivateProperty:v[14],ClassProperty:v[14],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:v[15],ConditionalExpression:v[16],ConditionalTypeAnnotation:v[17],ContinueStatement:v[8],DebuggerStatement:v[1],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclaredPredicate:v[18],DeclareEnum:v[19],DeclareExportAllDeclaration:["source","attributes"],DeclareExportDeclaration:v[20],DeclareFunction:["id","predicate"],DeclareHook:v[21],DeclareInterface:v[22],DeclareModule:v[19],DeclareModuleExports:v[23],DeclareNamespace:v[19],DeclareOpaqueType:["id","typeParameters","supertype","lowerBound","upperBound"],DeclareTypeAlias:v[24],DeclareVariable:v[21],Decorator:v[3],Directive:v[18],DirectiveLiteral:v[1],DoExpression:v[10],DoWhileStatement:v[25],EmptyStatement:v[1],EmptyTypeAnnotation:v[1],EnumBigIntBody:v[26],EnumBigIntMember:v[27],EnumBooleanBody:v[26],EnumBooleanMember:v[27],EnumDeclaration:v[19],EnumDefaultedMember:v[21],EnumNumberBody:v[26],EnumNumberMember:v[27],EnumStringBody:v[26],EnumStringMember:v[27],EnumSymbolBody:v[26],ExistsTypeAnnotation:v[1],ExperimentalRestProperty:v[6],ExperimentalSpreadProperty:v[6],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportDefaultSpecifier:v[28],ExportNamedDeclaration:v[20],ExportNamespaceSpecifier:v[28],ExportSpecifier:["local","exported"],ExpressionStatement:v[3],File:["program"],ForInStatement:v[29],ForOfStatement:v[29],ForStatement:["init","test","update","body"],FunctionDeclaration:v[30],FunctionExpression:v[30],FunctionTypeAnnotation:["typeParameters","this","params","rest","returnType"],FunctionTypeParam:v[15],GenericTypeAnnotation:v[12],HookDeclaration:v[31],HookTypeAnnotation:["params","returnType","rest","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:v[16],ImportAttribute:v[32],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:v[33],ImportExpression:["source","options"],ImportNamespaceSpecifier:v[33],ImportSpecifier:["imported","local"],IndexedAccessType:v[34],InferredPredicate:v[1],InferTypeAnnotation:v[35],InterfaceDeclaration:v[22],InterfaceExtends:v[12],InterfaceTypeAnnotation:["extends","body"],InterpreterDirective:v[1],IntersectionTypeAnnotation:v[36],JsExpressionRoot:v[37],JsonRoot:v[37],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXClosingFragment:v[1],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:v[1],JSXExpressionContainer:v[3],JSXFragment:["openingFragment","children","closingFragment"],JSXIdentifier:v[1],JSXMemberExpression:v[38],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","typeArguments","attributes"],JSXOpeningFragment:v[1],JSXSpreadAttribute:v[6],JSXSpreadChild:v[3],JSXText:v[1],KeyofTypeAnnotation:v[6],LabeledStatement:["label","body"],Literal:v[1],LogicalExpression:v[5],MatchArrayPattern:["elements","rest"],MatchAsPattern:["pattern","target"],MatchBindingPattern:v[21],MatchExpression:v[39],MatchExpressionCase:v[40],MatchIdentifierPattern:v[21],MatchLiteralPattern:v[41],MatchMemberPattern:["base","property"],MatchObjectPattern:["properties","rest"],MatchObjectPatternProperty:["key","pattern"],MatchOrPattern:["patterns"],MatchRestPattern:v[6],MatchStatement:v[39],MatchStatementCase:v[40],MatchUnaryPattern:v[6],MatchWildcardPattern:v[1],MemberExpression:v[38],MetaProperty:["meta","property"],MethodDefinition:v[42],MixedTypeAnnotation:v[1],ModuleExpression:v[10],NeverTypeAnnotation:v[1],NewExpression:v[9],NGChainedExpression:v[43],NGEmptyExpression:v[1],NGMicrosyntax:v[10],NGMicrosyntaxAs:["key","alias"],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKey:v[1],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:v[32],NGPipeExpression:["left","right","arguments"],NGRoot:v[37],NullableTypeAnnotation:v[23],NullLiteral:v[1],NullLiteralTypeAnnotation:v[1],NumberLiteralTypeAnnotation:v[1],NumberTypeAnnotation:v[1],NumericLiteral:v[1],ObjectExpression:["properties"],ObjectMethod:v[13],ObjectPattern:["decorators","properties","typeAnnotation"],ObjectProperty:v[42],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeCallProperty:v[18],ObjectTypeIndexer:["variance","id","key","value"],ObjectTypeInternalSlot:["id","value"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:v[6],OpaqueType:["id","typeParameters","supertype","impltype","lowerBound","upperBound"],OptionalCallExpression:v[9],OptionalIndexedAccessType:v[34],OptionalMemberExpression:v[38],ParenthesizedExpression:v[3],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:v[1],PipelineTopicExpression:v[3],Placeholder:v[1],PrivateIdentifier:v[1],PrivateName:v[21],Program:v[7],Property:v[32],PropertyDefinition:v[14],QualifiedTypeIdentifier:v[44],QualifiedTypeofIdentifier:v[44],RegExpLiteral:v[1],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:v[6],SatisfiesExpression:v[4],SequenceExpression:v[43],SpreadElement:v[6],StaticBlock:v[10],StringLiteral:v[1],StringLiteralTypeAnnotation:v[1],StringTypeAnnotation:v[1],Super:v[1],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],SymbolTypeAnnotation:v[1],TaggedTemplateExpression:["tag","typeArguments","quasi"],TemplateElement:v[1],TemplateLiteral:["quasis","expressions"],ThisExpression:v[1],ThisTypeAnnotation:v[1],ThrowStatement:v[6],TopicReference:v[1],TryStatement:["block","handler","finalizer"],TSAbstractAccessorProperty:v[45],TSAbstractKeyword:v[1],TSAbstractMethodDefinition:v[32],TSAbstractPropertyDefinition:v[45],TSAnyKeyword:v[1],TSArrayType:v[2],TSAsExpression:v[4],TSAsyncKeyword:v[1],TSBigIntKeyword:v[1],TSBooleanKeyword:v[1],TSCallSignatureDeclaration:v[46],TSClassImplements:v[47],TSConditionalType:v[17],TSConstructorType:v[46],TSConstructSignatureDeclaration:v[46],TSDeclareFunction:v[31],TSDeclareKeyword:v[1],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSEnumBody:v[26],TSEnumDeclaration:v[19],TSEnumMember:["id","initializer"],TSExportAssignment:v[3],TSExportKeyword:v[1],TSExternalModuleReference:v[3],TSFunctionType:v[46],TSImportEqualsDeclaration:["id","moduleReference"],TSImportType:["options","qualifier","typeArguments","source"],TSIndexedAccessType:v[34],TSIndexSignature:["parameters","typeAnnotation"],TSInferType:v[35],TSInstantiationExpression:v[47],TSInterfaceBody:v[10],TSInterfaceDeclaration:v[22],TSInterfaceHeritage:v[47],TSIntersectionType:v[36],TSIntrinsicKeyword:v[1],TSJSDocAllType:v[1],TSJSDocNonNullableType:v[23],TSJSDocNullableType:v[23],TSJSDocUnknownType:v[1],TSLiteralType:v[41],TSMappedType:["key","constraint","nameType","typeAnnotation"],TSMethodSignature:["key","typeParameters","params","returnType"],TSModuleBlock:v[10],TSModuleDeclaration:v[19],TSNamedTupleMember:["label","elementType"],TSNamespaceExportDeclaration:v[21],TSNeverKeyword:v[1],TSNonNullExpression:v[3],TSNullKeyword:v[1],TSNumberKeyword:v[1],TSObjectKeyword:v[1],TSOptionalType:v[23],TSParameterProperty:["parameter","decorators"],TSParenthesizedType:v[23],TSPrivateKeyword:v[1],TSPropertySignature:["key","typeAnnotation"],TSProtectedKeyword:v[1],TSPublicKeyword:v[1],TSQualifiedName:v[5],TSReadonlyKeyword:v[1],TSRestType:v[23],TSSatisfiesExpression:v[4],TSStaticKeyword:v[1],TSStringKeyword:v[1],TSSymbolKeyword:v[1],TSTemplateLiteralType:["quasis","types"],TSThisType:v[1],TSTupleType:["elementTypes"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSTypeAnnotation:v[23],TSTypeAssertion:v[4],TSTypeLiteral:v[26],TSTypeOperator:v[23],TSTypeParameter:["name","constraint","default"],TSTypeParameterDeclaration:v[48],TSTypeParameterInstantiation:v[48],TSTypePredicate:v[49],TSTypeQuery:["exprName","typeArguments"],TSTypeReference:["typeName","typeArguments"],TSUndefinedKeyword:v[1],TSUnionType:v[36],TSUnknownKeyword:v[1],TSVoidKeyword:v[1],TupleTypeAnnotation:["types","elementTypes"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeAlias:v[24],TypeAnnotation:v[23],TypeCastExpression:v[4],TypeofTypeAnnotation:["argument","typeArguments"],TypeOperator:v[23],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:v[48],TypeParameterInstantiation:v[48],TypePredicate:v[49],UnaryExpression:v[6],UndefinedTypeAnnotation:v[1],UnionTypeAnnotation:v[36],UnknownTypeAnnotation:v[1],UpdateExpression:v[6],V8IntrinsicIdentifier:v[1],VariableDeclaration:["declarations"],VariableDeclarator:v[27],Variance:v[1],VoidPattern:v[1],VoidTypeAnnotation:v[1],WhileStatement:v[25],WithStatement:["object","body"],YieldExpression:v[6]},N6=_C(k6),LC=N6;function B6(e){let t=new Set(e);return r=>t.has(r==null?void 0:r.type)}var oe=B6;function I6(e){var t;return((t=e.extra)==null?void 0:t.raw)??e.raw}var kt=I6,_6=oe(["Block","CommentBlock","MultiLine"]),Ar=_6,L6=oe(["AnyTypeAnnotation","ThisTypeAnnotation","NumberTypeAnnotation","VoidTypeAnnotation","BooleanTypeAnnotation","BigIntTypeAnnotation","SymbolTypeAnnotation","StringTypeAnnotation","NeverTypeAnnotation","UndefinedTypeAnnotation","UnknownTypeAnnotation","EmptyTypeAnnotation","MixedTypeAnnotation"]),$C=L6,$6=oe(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose","Hashbang","InterpreterDirective"]),uu=$6;function O6(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 M6(e,t){return t.some(r=>O6(e,r))}var jm=M6;function j6({type:e}){return e.startsWith("TS")&&e.endsWith("Keyword")}var OC=j6;function R6({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 Rm=R6;function Td(e,t){return t(e)||e6(e,{getVisitorKeys:LC,predicate:t})}function Um(e){return e.type==="AssignmentExpression"||e.type==="BinaryExpression"||e.type==="LogicalExpression"||e.type==="NGPipeExpression"||e.type==="ConditionalExpression"||Ee(e)||we(e)||e.type==="SequenceExpression"||e.type==="TaggedTemplateExpression"||e.type==="BindExpression"||e.type==="UpdateExpression"&&!e.prefix||mr(e)||e.type==="TSNonNullExpression"||e.type==="ChainExpression"}function U6(e){return e.expressions?e.expressions[0]:e.left??e.test??e.callee??e.object??e.tag??e.argument??e.expression}function MC(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 z6=oe(["ExportDefaultDeclaration","DeclareExportDeclaration","ExportNamedDeclaration","ExportAllDeclaration","DeclareExportAllDeclaration"]),at=oe(["ArrayExpression"]),xr=oe(["ObjectExpression"]);function V6(e){return e.type==="LogicalExpression"&&e.operator==="??"}function Or(e){return e.type==="NumericLiteral"||e.type==="Literal"&&typeof e.value=="number"}function q6(e){return e.type==="BooleanLiteral"||e.type==="Literal"&&typeof e.value=="boolean"}function jC(e){return e.type==="UnaryExpression"&&(e.operator==="+"||e.operator==="-")&&Or(e.argument)}function Ze(e){return!!(e&&(e.type==="StringLiteral"||e.type==="Literal"&&typeof e.value=="string"))}function RC(e){return e.type==="RegExpLiteral"||e.type==="Literal"&&!!e.regex}var zm=oe(["Literal","BooleanLiteral","BigIntLiteral","DirectiveLiteral","NullLiteral","NumericLiteral","RegExpLiteral","StringLiteral"]),H6=oe(["Identifier","ThisExpression","Super","PrivateName","PrivateIdentifier"]),ni=oe(["ObjectTypeAnnotation","TSTypeLiteral","TSMappedType"]),zo=oe(["FunctionExpression","ArrowFunctionExpression"]);function W6(e){return e.type==="FunctionExpression"||e.type==="ArrowFunctionExpression"&&e.body.type==="BlockStatement"}function Gp(e){return Ee(e)&&e.callee.type==="Identifier"&&["async","inject","fakeAsync","waitForAsync"].includes(e.callee.name)}var Ye=oe(["JSXElement","JSXFragment"]);function lu(e){return e.method&&e.kind==="init"||e.kind==="get"||e.kind==="set"}function UC(e){return(e.type==="ObjectTypeProperty"||e.type==="ObjectTypeInternalSlot")&&!e.static&&!e.method&&e.kind!=="get"&&e.kind!=="set"&&e.value.type==="FunctionTypeAnnotation"}function J6(e){return(e.type==="TypeAnnotation"||e.type==="TSTypeAnnotation")&&e.typeAnnotation.type==="FunctionTypeAnnotation"&&!e.static&&!jc(e,e.typeAnnotation)}var pn=oe(["BinaryExpression","LogicalExpression","NGPipeExpression"]);function cs(e){return we(e)||e.type==="BindExpression"&&!!e.object}var X6=oe(["TSThisType","NullLiteralTypeAnnotation","BooleanLiteralTypeAnnotation","StringLiteralTypeAnnotation","BigIntLiteralTypeAnnotation","NumberLiteralTypeAnnotation","TSLiteralType","TSTemplateLiteralType"]);function Vm(e){return OC(e)||$C(e)||X6(e)||e.type==="GenericTypeAnnotation"&&!e.typeParameters||e.type==="TSTypeReference"&&!e.typeArguments}function K6(e){return e.type==="Identifier"&&(e.name==="beforeEach"||e.name==="beforeAll"||e.name==="afterEach"||e.name==="afterAll")}var G6=["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 Q6(e){return jm(e,G6)}function Rc(e,t){if((e==null?void 0:e.type)!=="CallExpression"||e.optional)return!1;let r=Jt(e);if(r.length===1){if(Gp(e)&&Rc(t))return zo(r[0]);if(K6(e.callee))return Gp(r[0])}else if((r.length===2||r.length===3)&&(r[0].type==="TemplateLiteral"||Ze(r[0]))&&Q6(e.callee))return r[2]&&!Or(r[2])?!1:(r.length===2?zo(r[1]):W6(r[1])&&ht(r[1]).length<=1)||Gp(r[1]);return!1}var zC=e=>t=>((t==null?void 0:t.type)==="ChainExpression"&&(t=t.expression),e(t)),Ee=zC(oe(["CallExpression","OptionalCallExpression"])),we=zC(oe(["MemberExpression","OptionalMemberExpression"]));function n1(e,t=5){return VC(e,t)<=t}function VC(e,t){let r=0;for(let n in e){let i=e[n];if(PC(i)&&typeof i.type=="string"&&(r++,r+=VC(i,t-r)),r>t)return r}return r}var Y6=.25;function qm(e,t){let{printWidth:r}=t;if(z(e))return!1;let n=r*Y6;if(e.type==="ThisExpression"||e.type==="Identifier"&&e.name.length<=n||jC(e)&&!z(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:Ze(e)?Qs(kt(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"?qm(e.argument,{printWidth:r}):e.type==="CallExpression"&&e.arguments.length===0&&e.callee.type==="Identifier"?e.callee.name.length<=n-2:zm(e)}function Dr(e,t){return Ye(t)?Uc(t):z(t,W.Leading,r=>Pt(e,ce(r)))}function i1(e){return e.quasis.some(t=>t.value.raw.includes(` -`))}function qC(e,t){return(e.type==="TemplateLiteral"&&i1(e)||e.type==="TaggedTemplateExpression"&&i1(e.quasi))&&!Pt(t,he(e),{backwards:!0})}function HC(e){if(!z(e))return!1;let t=Ce(0,_i(e,W.Dangling),-1);return t&&!Ar(t)}function Z6(e){if(e.length<=1)return!1;let t=0;for(let r of e)if(zo(r)){if(t+=1,t>1)return!0}else if(Ee(r)){for(let n of Jt(r))if(zo(n))return!0}return!1}function WC(e){let{node:t,parent:r,key:n}=e;return n==="callee"&&Ee(t)&&Ee(r)&&r.arguments.length>0&&t.arguments.length>r.arguments.length}var e_=new Set(["!","-","+","~"]);function dr(e,t=2){if(t<=0)return!1;if(e.type==="ChainExpression"||e.type==="TSNonNullExpression")return dr(e.expression,t);let r=n=>dr(n,t-1);if(RC(e))return Xs(e.pattern??e.regex.pattern)<=5;if(zm(e)||H6(e)||e.type==="ArgumentPlaceholder")return!0;if(e.type==="TemplateLiteral")return e.quasis.every(n=>!n.value.raw.includes(` -`))&&e.expressions.every(r);if(xr(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(Zs(e)){if(e.type==="ImportExpression"||dr(e.callee,t)){let n=Jt(e);return n.length<=t&&n.every(r)}return!1}return we(e)?dr(e.object,t)&&dr(e.property,t):e.type==="UnaryExpression"&&e_.has(e.operator)||e.type==="UpdateExpression"?dr(e.argument,t):!1}function zr(e,t="es5"){return e.trailingComma==="es5"&&t==="es5"||e.trailingComma==="all"&&(t==="all"||t==="es5")}function mt(e,t){switch(e.type){case"BinaryExpression":case"LogicalExpression":case"AssignmentExpression":case"NGPipeExpression":return mt(e.left,t);case"MemberExpression":case"OptionalMemberExpression":return mt(e.object,t);case"TaggedTemplateExpression":return e.tag.type==="FunctionExpression"?!1:mt(e.tag,t);case"CallExpression":case"OptionalCallExpression":return e.callee.type==="FunctionExpression"?!1:mt(e.callee,t);case"ConditionalExpression":return mt(e.test,t);case"UpdateExpression":return!e.prefix&&mt(e.argument,t);case"BindExpression":return e.object&&mt(e.object,t);case"SequenceExpression":return mt(e.expressions[0],t);case"ChainExpression":case"TSSatisfiesExpression":case"TSAsExpression":case"TSNonNullExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return mt(e.expression,t);default:return t(e)}}var s1={"==":!0,"!=":!0,"===":!0,"!==":!0},Ju={"*":!0,"/":!0,"%":!0},Sd={">>":!0,">>>":!0,"<<":!0};function Hm(e,t){return!(rc(t)!==rc(e)||e==="**"||s1[e]&&s1[t]||t==="%"&&Ju[e]||e==="%"&&Ju[t]||t!==e&&Ju[t]&&Ju[e]||Sd[e]&&Sd[t])}var t_=new Map([["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].flatMap((e,t)=>e.map(r=>[r,t])));function rc(e){return t_.get(e)}function r_(e){return!!Sd[e]||e==="|"||e==="^"||e==="&"}function n_(e){var r;if(e.rest)return!0;let t=ht(e);return((r=Ce(0,t,-1))==null?void 0:r.type)==="RestElement"}var Qp=new WeakMap;function ht(e){if(Qp.has(e))return Qp.get(e);let t=[];return e.this&&t.push(e.this),t.push(...e.params),e.rest&&t.push(e.rest),Qp.set(e,t),t}function i_(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 Yp=new WeakMap;function Jt(e){if(Yp.has(e))return Yp.get(e);if(e.type==="ChainExpression")return Jt(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,Yp.set(e,t),t}function nc(e,t){let{node:r}=e;if(r.type==="ChainExpression")return e.call(()=>nc(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 a1(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&W.Leading&&!r.leading||e&W.Trailing&&!r.trailing||e&W.Dangling&&(r.leading||r.trailing)||e&W.Block&&!Ar(r)||e&W.Line&&!uu(r)||e&W.First&&n!==0||e&W.Last&&n!==i.length-1||e&W.PrettierIgnore&&!Ys(r)||t&&!t(r))};function z(e,t,r){if(!Pe(e==null?void 0:e.comments))return!1;let n=JC(t,r);return n?e.comments.some(n):!0}function _i(e,t,r){if(!Array.isArray(e==null?void 0:e.comments))return[];let n=JC(t,r);return n?e.comments.filter(n):e.comments}var Vr=(e,{originalText:t})=>Mm(t,ce(e));function Zs(e){return Ee(e)||e.type==="NewExpression"||e.type==="ImportExpression"}function pi(e){return e&&(e.type==="ObjectProperty"||e.type==="Property"&&!lu(e))}var mr=oe(["TSAsExpression","TSSatisfiesExpression","AsExpression","AsConstExpression","SatisfiesExpression"]),Mr=oe(["TSUnionType","UnionTypeAnnotation"]),cu=oe(["TSIntersectionType","IntersectionTypeAnnotation"]),ii=oe(["TSConditionalType","ConditionalTypeAnnotation"]),s_=e=>(e==null?void 0:e.type)==="TSAsExpression"&&e.typeAnnotation.type==="TSTypeReference"&&e.typeAnnotation.typeName.type==="Identifier"&&e.typeAnnotation.typeName.name==="const",Fd=oe(["TSTypeAliasDeclaration","TypeAlias"]);function XC({key:e,parent:t}){return!(e==="types"&&Mr(t)||e==="types"&&cu(t))}var a_=new Set(["range","raw","comments","leadingComments","trailingComments","innerComments","extra","start","end","loc","flags","errors","tokens"]),as=e=>{for(let t of e.quasis)delete t.value};function KC(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"&&!Rm({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;Ze(s)||Or(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"&&as(a);e.type==="JSXAttribute"&&e.name.name==="css"&&e.value.type==="JSXExpressionContainer"&&e.value.expression.type==="TemplateLiteral"&&as(t.value.expression),e.type==="JSXAttribute"&&((i=e.value)==null?void 0:i.type)==="Literal"&&/["']|"|'/u.test(e.value.value)&&(t.value.value=Ge(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)&&as(o.value.elements[0]);break;case"template":o.value.type==="TemplateLiteral"&&as(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")&&as(t.quasi),e.type==="TemplateLiteral"&&as(t),e.type==="ChainExpression"&&e.expression.type==="TSNonNullExpression"&&(t.type="TSNonNullExpression",t.expression.type="ChainExpression")}KC.ignoredProperties=a_;var o_=KC,u_=oe(["File","TemplateElement","TSEmptyBodyFunctionExpression","ChainExpression"]),l_=(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&&!lu(t)&&t.value!==t.key,c_=(e,[t])=>!!(e.type==="FunctionExpression"&&t.type==="MethodDefinition"&&t.value===e&&ht(e).length===0&&!e.returnType&&!Pe(e.typeParameters)&&e.body),o1=(e,[t])=>(t==null?void 0:t.typeAnnotation)===e&&s_(t),p_=(e,[t,...r])=>o1(e,[t])||(t==null?void 0:t.typeName)===e&&o1(t,r);function h_(e,t){return u_(e)||l_(e,t)||c_(e,t)?!1:e.type==="EmptyStatement"?Rm({node:e,parent:t[0]}):!(p_(e,t)||e.type==="TSTypeAnnotation"&&t[0].type==="TSPropertySignature")}var d_=h_;function f_(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 Wm(e,t){(e.comments??(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=f_(e)}function Ue(e,t){t.leading=!0,t.trailing=!1,Wm(e,t)}function zt(e,t,r){t.leading=!1,t.trailing=!1,r&&(t.marker=r),Wm(e,t)}function Ie(e,t){t.leading=!1,t.trailing=!0,Wm(e,t)}function m_(e,t){let r=null,n=t;for(;n!==r;)r=n,n=Ks(e,n),n=$m(e,n),n=Om(e,n),n=Gs(e,n);return n}var ca=m_;function y_(e,t){let r=ca(e,t);return r===!1?"":e.charAt(r)}var Cr=y_;function g_(e,t,r){for(let n=t;nuu(e)||!Vt(t,he(e),ce(e));function E_(e){return[sv,YC,rv,k_,A_,Xm,Km,QC,ZC,L_,B_,I_,Qm,iv,$_,ev,nv,Gm,T_,V_,av,Ym].some(t=>t(e))}function x_(e){return[v_,rv,YC,iv,Xm,Km,QC,ZC,nv,N_,__,Qm,j_,Gm,U_,z_,q_,av,W_,H_,Ym].some(t=>t(e))}function C_(e){return[sv,Xm,Km,P_,ev,Qm,w_,b_,Gm,R_,Ym].some(t=>t(e))}function Ki(e,t){let r=(e.body||e.properties).find(({type:n})=>n!=="EmptyStatement");r?Ue(r,t):zt(e,t)}function bd(e,t){e.type==="BlockStatement"?Ki(e,t):Ue(e,t)}function v_({comment:e,followingNode:t}){return t&&GC(e)?(Ue(t,e),!0):!1}function Xm({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:i}){if((r==null?void 0:r.type)!=="IfStatement"||!n)return!1;if(Cr(i,ce(e))===")")return Ie(t,e),!0;if(n.type==="BlockStatement"&&n===r.consequent&&he(e)>=ce(t)&&ce(e)<=he(n))return Ue(n,e),!0;if(t===r.consequent&&n===r.alternate){let s=ca(i,ce(r.consequent));if(n.type==="BlockStatement"&&he(e)>=s&&ce(e)<=he(n))return Ue(n,e),!0;if(he(e)"?(zt(t,e),!0):!1}function P_({comment:e,enclosingNode:t,text:r}){return Cr(r,ce(e))!==")"?!1:t&&(ov(t)&&ht(t).length===0||Zs(t)&&Jt(t).length===0)?(zt(t,e),!0):((t==null?void 0:t.type)==="MethodDefinition"||(t==null?void 0:t.type)==="TSAbstractMethodDefinition")&&ht(t.value).length===0?(zt(t.value,e),!0):!1}function k_({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"&&Cr(i,ce(e))===")"?(Ie(t,e),!0):!1}function rv({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")&&ov(r)&&Cr(i,ce(e))===")"?(Ie(t,e),!0):!Ar(e)&&(n==null?void 0:n.type)==="BlockStatement"&&tv(r)&&(r.type==="MethodDefinition"?r.value.body:r.body)===n&&ca(i,ce(e))===he(n)?(Ki(n,e),!0):!1}function nv({comment:e,enclosingNode:t}){return(t==null?void 0:t.type)==="LabeledStatement"?(Ue(t,e),!0):!1}function Gm({comment:e,enclosingNode:t}){return((t==null?void 0:t.type)==="ContinueStatement"||(t==null?void 0:t.type)==="BreakStatement")&&!t.label?(Ie(t,e),!0):!1}function N_({comment:e,precedingNode:t,enclosingNode:r}){return Ee(r)&&t&&r.callee===t&&r.arguments.length>0?(Ue(r.arguments[0],e),!0):!1}function B_({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){return Mr(r)?(Ys(e)&&(n.prettierIgnore=!0,e.unignore=!0),t?(Ie(t,e),!0):!1):(Mr(n)&&Ys(e)&&(n.types[0].prettierIgnore=!0,e.unignore=!0),!1)}function I_({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){return r&&r.type==="MatchOrPattern"?(Ys(e)&&(n.prettierIgnore=!0,e.unignore=!0),t?(Ie(t,e),!0):!1):(n&&n.type==="MatchOrPattern"&&Ys(e)&&(n.types[0].prettierIgnore=!0,e.unignore=!0),!1)}function __({comment:e,enclosingNode:t}){return pi(t)?(Ue(t,e),!0):!1}function Qm({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?zt(r,e):Ue(r,e),!0):(t==null?void 0:t.type)==="Program"&&t.body.length===0&&!Pe(t.directives)?(n?zt(t,e):Ue(t,e),!0):!1}function L_({comment:e,enclosingNode:t,followingNode:r}){return((t==null?void 0:t.type)==="ForInStatement"||(t==null?void 0:t.type)==="ForOfStatement")&&r!==t.body?(Ue(t,e),!0):!1}function iv({comment:e,precedingNode:t,enclosingNode:r,text:n}){if((r==null?void 0:r.type)==="ImportSpecifier"||(r==null?void 0:r.type)==="ExportSpecifier")return Ue(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)&&Pt(n,ce(e))?(Ie(t,e),!0):!1}function $_({comment:e,enclosingNode:t}){return(t==null?void 0:t.type)==="AssignmentPattern"?(Ue(t,e),!0):!1}var O_=oe(["VariableDeclarator","AssignmentExpression","TypeAlias","TSTypeAliasDeclaration"]),M_=oe(["ObjectExpression","ArrayExpression","TemplateLiteral","TaggedTemplateExpression","ObjectTypeAnnotation","TSTypeLiteral"]);function j_({comment:e,enclosingNode:t,followingNode:r}){return O_(t)&&r&&(M_(r)||Ar(e))?(Ue(r,e),!0):!1}function R_({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)&&Cr(i,ce(e))===";"?(Ie(t,e),!0):!1}function sv({comment:e,enclosingNode:t,followingNode:r}){if(Ys(e)&&(t==null?void 0:t.type)==="TSMappedType"&&r===t.key)return t.prettierIgnore=!0,e.unignore=!0,!0}function av({comment:e,precedingNode:t,enclosingNode:r}){if((r==null?void 0:r.type)==="TSMappedType"&&!t)return zt(r,e),!0}function U_({comment:e,enclosingNode:t,followingNode:r}){return!t||t.type!=="SwitchCase"||t.test||!r||r!==t.consequent[0]?!1:(r.type==="BlockStatement"&&uu(e)?Ki(r,e):zt(t,e),!0)}function z_({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){return Mr(t)&&((r.type==="TSArrayType"||r.type==="ArrayTypeAnnotation")&&!n||cu(r))?(Ie(Ce(0,t.types,-1),e),!0):!1}function V_({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?Ie(r,e):zt(t,e),!0}function q_({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")&&Vt(i,he(r.argument),he(t.right))&&Jm(e,i)&&!Vt(i,he(t.right),he(e))?(Ie(t.right,e),!0):!1}function H_({enclosingNode:e,followingNode:t,comment:r}){if(e&&(e.type==="TSPropertySignature"||e.type==="ObjectTypeProperty")&&(Mr(t)||cu(t)))return Ue(t,r),!0}function Ym({enclosingNode:e,precedingNode:t,followingNode:r,comment:n,text:i}){if(mr(e)&&t===e.expression&&!Jm(n,i))return r?Ue(r,n):Ie(e,n),!0}function W_({comment:e,enclosingNode:t,followingNode:r,precedingNode:n}){return t&&r&&n&&t.type==="ArrowFunctionExpression"&&t.returnType===n&&(n.type==="TSTypeAnnotation"||n.type==="TypeAnnotation")?(Ue(r,e),!0):!1}var ov=oe(["ArrowFunctionExpression","FunctionExpression","FunctionDeclaration","ObjectMethod","ClassMethod","TSDeclareFunction","TSCallSignatureDeclaration","TSConstructSignatureDeclaration","TSMethodSignature","TSConstructorType","TSFunctionType","TSDeclareMethod"]),J_={endOfLine:x_,ownLine:E_,remaining:C_},X_=J_;function K_(e,{parser:t}){if(t==="flow"||t==="hermes"||t==="babel-flow")return e=Ge(0,e,/[\s(]/gu,""),e===""||e==="/*"||e==="/*::"}var G_=K_,Q_=oe(["ClassDeclaration","ClassExpression","DeclareClass","DeclareInterface","InterfaceDeclaration","TSInterfaceDeclaration"]);function Y_(e){let{key:t,parent:r}=e;if(t==="types"&&Mr(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 Uc(n)?!1:Mr(n)?XC(e):!!Ye(n)}var Z_=Y_,Gi="string",hn="array",pa="cursor",Qi="indent",Yi="align",Zi="trim",ar="group",hi="fill",Lr="if-break",es="indent-if-break",ts="line-suffix",di="line-suffix-boundary",It="line",An="label",Tn="break-parent",uv=new Set([pa,Qi,Yi,Zi,ar,hi,Lr,es,ts,di,It,An,Tn]);function e9(e){if(typeof e=="string")return Gi;if(Array.isArray(e))return hn;if(!e)return;let{type:t}=e;if(uv.has(t))return t}var fi=e9,t9=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function r9(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(fi(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=t9([...uv].map(i=>`'${i}'`));return`Unexpected doc.type '${e.type}'. -Expected it to be ${n}.`}var n9=class extends Error{constructor(r){super(r9(r));U(this,"name","InvalidDocError");this.doc=r}},Vo=n9,u1={};function i9(e,t,r,n){let i=[e];for(;i.length>0;){let s=i.pop();if(s===u1){r(i.pop());continue}r&&i.push(s,u1);let a=fi(s);if(!a)throw new Vo(s);if((t==null?void 0:t(s))!==!1)switch(a){case hn:case hi:{let o=a===hn?s:s.parts;for(let u=o.length,l=u-1;l>=0;--l)i.push(o[l]);break}case Lr:i.push(s.flatContents,s.breakContents);break;case ar: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 Yi:case Qi:case es:case An:case ts:i.push(s.contents);break;case Gi:case pa:case Zi:case di:case It:case Tn:break;default:throw new Vo(s)}}}var Zm=i9;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(fi(s)){case hn:return t(s.map(n));case hi:return t({...s,parts:s.parts.map(n)});case Lr:return t({...s,breakContents:n(s.breakContents),flatContents:n(s.flatContents)});case ar:{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 Yi:case Qi:case es:case An:case ts:return t({...s,contents:n(s.contents)});case Gi:case pa:case Zi:case di:case It:case Tn:return t(s);default:throw new Vo(s)}}}function lv(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 Zm(e,s),n}function s9(e){if(e.type===ar&&e.break||e.type===It&&e.hard||e.type===Tn)return!0}function yt(e){return lv(e,s9,!1)}function l1(e){if(e.length>0){let t=Ce(0,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function a9(e){let t=new Set,r=[];function n(s){if(s.type===Tn&&l1(r),s.type===ar){if(r.push(s),t.has(s))return!1;t.add(s)}}function i(s){s.type===ar&&r.pop().break&&l1(r)}Zm(e,n,i,!0)}function o9(e){return e.type===It&&!e.hard?e.soft?"":" ":e.type===Lr?e.flatContents:e}function ic(e){return ha(e,o9)}function u9(e){switch(fi(e)){case hi:if(e.parts.every(t=>t===""))return"";break;case ar:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===ar&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case Yi:case Qi:case es:case ts:if(!e.contents)return"";break;case Lr:if(!e.flatContents&&!e.breakContents)return"";break;case hn:{let t=[];for(let r of e){if(!r)continue;let[n,...i]=Array.isArray(r)?r:[r];typeof n=="string"&&typeof Ce(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 Gi:case pa:case Zi:case di:case It:case An:case Tn:break;default:throw new Vo(e)}return e}function ey(e){return ha(e,t=>u9(t))}function Ui(e,t=dv){return ha(e,r=>typeof r=="string"?fe(t,r.split(` -`)):r)}function l9(e){if(e.type===It)return!0}function c9(e){return lv(e,l9,!1)}function wd(e,t){return e.type===An?{...e,contents:t(e.contents)}:t(e)}function p9(e){let t=!0;return Zm(e,r=>{switch(fi(r)){case Gi:if(r==="")break;case Zi:case di:case It:case Tn:return t=!1,!1}}),t}var h9=g6;function L(e){return{type:Qi,contents:e}}function vr(e,t){return{type:Yi,contents:t,n:e}}function d9(e){return vr(Number.NEGATIVE_INFINITY,e)}function cv(e){return vr(-1,e)}function f9(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 S9(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=T9:n={type:2,width:t}:n={type:3,string:t},mv(e,n,r)}function F9(e,t){return mv(e,A9,t)}function b9(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 yv(e){let t=b9(e);return{text:t===0?e:e.slice(0,e.length-t),count:t}}var At=Symbol("MODE_BREAK"),Fr=Symbol("MODE_FLAT"),Pd=Symbol("DOC_FILL_PRINTED_LENGTH");function Ku(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=fi(p);switch(h){case Gi:p&&(o&&(l+=" ",r-=1,o=!1),l+=p,r-=Xs(p));break;case hn:case hi:{let d=h===hn?p:p.parts,f=p[Pd]??0;for(let y=d.length-1;y>=f;y--)u.push({mode:c,doc:d[y]});break}case Qi:case Yi:case es:case An:u.push({mode:c,doc:p.contents});break;case Zi:{let{text:d,count:f}=yv(l);l=d,r+=f;break}case ar:{if(s&&p.break)return!1;let d=p.break?At:c,f=p.expandedStates&&d===At?Ce(0,p.expandedStates,-1):p.contents;u.push({mode:d,doc:f});break}case Lr:{let d=(p.groupId?i[p.groupId]||Fr:c)===At?p.breakContents:p.flatContents;d&&u.push({mode:c,doc:d});break}case It:if(c===At||p.hard)return!0;p.soft||(o=!0);break;case ts:n=!0;break;case di:if(n)return!1;break}}return!1}function gv(e,t){let r=Object.create(null),n=t.printWidth,i=v9(t.endOfLine),s=0,a=[{indent:fv,mode:At,doc:e}],o="",u=!1,l=[],c=[],p=[],h=[],d=0;for(a9(e);a.length>0;){let{indent:m,mode:D,doc:x}=a.pop();switch(fi(x)){case Gi:{let A=i!==` -`?Ge(0,x,` -`,i):x;A&&(o+=A,a.length>0&&(s+=Xs(A)));break}case hn:for(let A=x.length-1;A>=0;A--)a.push({indent:m,mode:D,doc:x[A]});break;case pa:if(c.length>=2)throw new Error("There are too many 'cursor' in doc.");c.push(d+o.length);break;case Qi:a.push({indent:F9(m,t),mode:D,doc:x.contents});break;case Yi:a.push({indent:S9(m,x.n,t),mode:D,doc:x.contents});break;case Zi:g();break;case ar:switch(D){case Fr:if(!u){a.push({indent:m,mode:x.break?At:Fr,doc:x.contents});break}case At:{u=!1;let A={indent:m,mode:Fr,doc:x.contents},b=n-s,k=l.length>0;if(!x.break&&Ku(A,a,b,k,r))a.push(A);else if(x.expandedStates){let F=Ce(0,x.expandedStates,-1);if(x.break){a.push({indent:m,mode:At,doc:F});break}else for(let M=1;M=x.expandedStates.length){a.push({indent:m,mode:At,doc:F});break}else{let P=x.expandedStates[M],j={indent:m,mode:Fr,doc:P};if(Ku(j,a,b,k,r)){a.push(j);break}}}else a.push({indent:m,mode:At,doc:x.contents});break}}x.id&&(r[x.id]=Ce(0,a,-1).mode);break;case hi:{let A=n-s,b=x[Pd]??0,{parts:k}=x,F=k.length-b;if(F===0)break;let M=k[b+0],P=k[b+1],j={indent:m,mode:Fr,doc:M},Y={indent:m,mode:At,doc:M},N=Ku(j,[],A,l.length>0,r,!0);if(F===1){N?a.push(j):a.push(Y);break}let Q={indent:m,mode:Fr,doc:P},H={indent:m,mode:At,doc:P};if(F===2){N?a.push(Q,j):a.push(H,Y);break}let ne=k[b+2],ge={indent:m,mode:D,doc:{...x,[Pd]:b+2}},$=Ku({indent:m,mode:Fr,doc:[M,P,ne]},[],A,l.length>0,r,!0);a.push(ge),$?a.push(Q,j):N?a.push(H,j):a.push(H,Y);break}case Lr:case es:{let A=x.groupId?r[x.groupId]:D;if(A===At){let b=x.type===Lr?x.breakContents:x.negate?x.contents:L(x.contents);b&&a.push({indent:m,mode:D,doc:b})}if(A===Fr){let b=x.type===Lr?x.flatContents:x.negate?L(x.contents):x.contents;b&&a.push({indent:m,mode:D,doc:b})}break}case ts:l.push({indent:m,mode:D,doc:x.contents});break;case di:l.length>0&&a.push({indent:m,mode:D,doc:hv});break;case It:switch(D){case Fr:if(x.hard)u=!0;else{x.soft||(o+=" ",s+=1);break}case At:if(l.length>0){a.push({indent:m,mode:D,doc:x},...l.reverse()),l.length=0;break}x.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 An:a.push({indent:m,mode:D,doc:x.contents});break;case Tn:break;default:throw new Vo(x)}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 E=y[0];return{formatted:f,cursorNodeStart:E,cursorNodeText:f.slice(E,Ce(0,y,-1))};function g(){let{text:m,count:D}=yv(o);m&&(p.push(m),d+=m.length),o="",s-=D,c.length>0&&(h.push(...c.map(x=>Math.min(x,d))),c.length=0)}}function w9(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(` -`)?N9(p,c):o;o=h;let d=a[u],f=n[i][u],y=Vt(t.originalText,ce(l),he(n.quasis[u+1]));if(!y){let g=gv(d,{...t,printWidth:Number.POSITIVE_INFINITY}).formatted;g.includes(` -`)?y=!0:d=g}y&&(z(f)||f.type==="Identifier"||we(f)||f.type==="ConditionalExpression"||f.type==="SequenceExpression"||mr(f)||pn(f))&&(d=[L([_,d]),_]);let E=h===0&&p.endsWith(` -`)?vr(Number.NEGATIVE_INFINITY,d):f9(d,h,c);s.push(w(["${",E,jr,"}"]))},"quasis"),s.push("`"),s}function B9(e,t,r){let n=r("quasi"),{node:i}=e,s="",a=_i(i.quasi,W.Leading)[0];return a&&(Vt(t.originalText,ce(i.typeArguments??i.tag),he(a))?s=_:s=" "),pu(n.label&&{tagged:!0,...n.label},[r("tag"),r("typeArguments"),s,jr,n])}function I9(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=>"${"+gv(p,{...t,printWidth:Number.POSITIVE_INFINITY,endOfLine:"lf"}).formatted+"}"),o=[{hasLineBreak:!1,cells:[]}];for(let p=1;pObject.prototype.hasOwnProperty.call(t,r))}function $I(e){let{pragmas:t}=AC(e);return II.some(r=>Object.prototype.hasOwnProperty.call(t,r))}function MI(e){return e=typeof e=="function"?{parse:e}:e,{astFormat:"estree",hasPragma:LI,hasIgnorePragma:$I,locStart:nn,locEnd:Nr,...e}}var ou=MI,Bm="module",TC="commonjs";function OI(e){if(typeof e=="string"){if(e=e.toLowerCase(),/\.(?:mjs|mts)$/iu.test(e))return Bm;if(/\.(?:cjs|cts)$/iu.test(e))return TC}}function jI(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 SC=jI,la=e=>ou(qI(e)),RI={sourceType:Bm,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"}]],cn=(e,t=RI)=>({...t,plugins:[...t.plugins,...e]}),UI=/@(?:no)?flow\b/u;function zI(e,t){if(t!=null&&t.endsWith(".js.flow"))return!0;let r=EC(e);r&&(e=e.slice(r.length));let n=V4(e,0);return n!==!1&&(e=e.slice(0,n)),UI.test(e)}function VI(e,t,r){let n=e(t,r),i=n.errors.find(s=>!HI.has(s.reasonCode));if(i)throw i;return n}function qI({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")&&zI(r,i))return n.parser="babel-flow",bC.parse(r,n);let s=t,a=n.__babelSourceType??OI(i);a&&a!==Bm&&(s=s.map(c=>({...c,sourceType:a,...a===TC?{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=>cn([c],p))):o&&(s=s.map(c=>cn([Qg],c)));let u=e?gC:yC,l;try{l=q4(s.map(c=>()=>VI(u,r,c)))}catch({errors:[c]}){throw vC(c)}return e&&(l=SC(l,{text:r,rootMarker:n.rootMarker})),EI(l,{text:r})}}var HI=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"]),FC=[cn(["jsx"])],Zg=la({optionsCombinations:FC}),e1=la({optionsCombinations:[cn(["jsx","typescript"]),cn(["typescript"])]}),t1=la({isExpression:!0,optionsCombinations:[cn(["jsx"])]}),r1=la({isExpression:!0,optionsCombinations:[cn(["typescript"])]}),bC=la({optionsCombinations:[cn(["jsx",["flow",{all:!0}],"flowComments"])]}),WI=la({optionsCombinations:FC.map(e=>cn(["estree"],e))}),wC={};ym(wC,{json:()=>KI,"json-stringify":()=>YI,json5:()=>GI,jsonc:()=>QI});function JI(e){return Array.isArray(e)&&e.length>0}var PC=JI,kC={tokens:!1,ranges:!1,attachComment:!1,createParenthesizedExpressions:!0};function XI(e){let t=yC(e,kC),{program:r}=t;if(r.body.length===0&&r.directives.length===0&&!r.interpreter)return t}function Oc(e,t={}){let{allowComments:r=!0,allowEmpty:n=!1}=t,i;try{i=gC(e,kC)}catch(s){if(n&&s.code==="BABEL_PARSER_SYNTAX_ERROR"&&s.reasonCode==="ParseExpressionEmptyInput")try{i=XI(e)}catch{}if(!i)throw vC(s)}if(!r&&PC(i.comments))throw In(i.comments[0],"Comment");return i=SC(i,{type:"JsonRoot",text:e}),i.node.type==="File"?delete i.node:ls(i.node),i}function In(e,t){let[r,n]=[e.loc.start,e.loc.end].map(({line:i,column:s})=>({line:i,column:s+1}));return CC(`${t} is not allowed in JSON.`,{loc:{start:r,end:n}})}function ls(e){switch(e.type){case"ArrayExpression":for(let t of e.elements)t!==null&&ls(t);return;case"ObjectExpression":for(let t of e.properties)ls(t);return;case"ObjectProperty":if(e.computed)throw In(e.key,"Computed key");if(e.shorthand)throw In(e.key,"Shorthand property");e.key.type!=="Identifier"&&ls(e.key),ls(e.value);return;case"UnaryExpression":{let{operator:t,argument:r}=e;if(t!=="+"&&t!=="-")throw In(e,`Operator '${e.operator}'`);if(r.type==="NumericLiteral"||r.type==="Identifier"&&(r.name==="Infinity"||r.name==="NaN"))return;throw In(r,`Operator '${t}' before '${r.type}'`)}case"Identifier":if(e.name!=="Infinity"&&e.name!=="NaN"&&e.name!=="undefined")throw In(e,`Identifier '${e.name}'`);return;case"TemplateLiteral":if(PC(e.expressions))throw In(e.expressions[0],"'TemplateLiteral' with expression");for(let t of e.quasis)ls(t);return;case"NullLiteral":case"BooleanLiteral":case"NumericLiteral":case"StringLiteral":case"TemplateElement":return;default:throw In(e,`'${e.type}'`)}}var KI=ou({parse:e=>Oc(e),hasPragma:()=>!0,hasIgnorePragma:()=>!1}),GI=ou(e=>Oc(e)),QI=ou(e=>Oc(e,{allowEmpty:!0})),YI=ou({parse:e=>Oc(e,{allowComments:!1}),astFormat:"estree-json"}),NC={...Gx,...wC};const ZI=Object.freeze(Object.defineProperty({__proto__:null,default:Kx,parsers:NC},Symbol.toStringTag,{value:"Module"}));var e6=Object.defineProperty,Im=(e,t)=>{for(var r in t)e6(e,r,{get:t[r],enumerable:!0})},BC={};Im(BC,{languages:()=>VA,options:()=>UA,printers:()=>zA});var t6=[{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}],IC={};Im(IC,{canAttachComment:()=>v_,embed:()=>d5,features:()=>J$,getVisitorKeys:()=>RC,handleComments:()=>n9,hasPrettierIgnore:()=>ay,insertPragma:()=>b5,isBlockComment:()=>Ar,isGap:()=>s9,massageAstNode:()=>y_,print:()=>N1,printComment:()=>N5,printPrettierIgnored:()=>N1,willPrintOwnComments:()=>u9});var _m=(e,t)=>(r,n,...i)=>r|1&&n==null?void 0:(t.call(n)??n[e]).apply(n,i),r6=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},n6=_m("replaceAll",function(){if(typeof this=="string")return r6}),Qe=n6;function i6(e){return this[e<0?this.length+e:e]}var s6=_m("at",function(){if(Array.isArray(this)||typeof this=="string")return i6}),Ce=s6;function a6(e){return e!==null&&typeof e=="object"}var _C=a6;function*o6(e,t){let{getVisitorKeys:r,filter:n=()=>!0}=t,i=s=>_C(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*u6(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 p6(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function h6(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 d6="©®‼⁉™ℹ↔↕↖↗↘↙↩↪⌨⏏⏱⏲⏸⏹⏺▪▫▶◀◻◼☀☁☂☃☄☎☑☘☝☠☢☣☦☪☮☯☸☹☺♀♂♟♠♣♥♦♨♻♾⚒⚔⚕⚖⚗⚙⚛⚜⚠⚧⚰⚱⛈⛏⛑⛓⛩⛱⛷⛸⛹✂✈✉✌✍✏✒✔✖✝✡✳✴❄❇❣❤➡⤴⤵⬅⬆⬇",f6=/[^\x20-\x7F]/u,m6=new Set(d6);function y6(e){if(!e)return 0;if(!f6.test(e))return e.length;e=e.replace(c6(),r=>m6.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+=p6(n)||h6(n)?2:1)}return t}var Xs=y6;function Lm(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 E6(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 Gs=E6;function x6(e,t,r={}){let n=Ks(e,r.backwards?t-1:t,r),i=Gs(e,n,r);return n!==i}var kt=x6;function C6(e,t){if(t===!1)return!1;if(e.charAt(t)==="/"&&e.charAt(t+1)==="*"){for(let r=t+2;r0}var Pe=T6,S6=()=>{},F6=S6,LC=Object.freeze({character:"'",codePoint:39}),$C=Object.freeze({character:'"',codePoint:34}),b6=Object.freeze({preferred:LC,alternate:$C}),w6=Object.freeze({preferred:$C,alternate:LC});function P6(e,t){let{preferred:r,alternate:n}=t===!0||t==="'"?b6:w6,{length:i}=e,s=0,a=0;for(let o=0;oa?n:r).character}var MC=P6,k6=/\\(["'\\])|(["'])/gu;function N6(e,t){let r=t==='"'?"'":'"',n=Qe(0,e,k6,(i,s,a)=>s?s===r?r:i:a===t?"\\"+a:a);return t+n+t}var B6=N6;function I6(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?"'":MC(r,t.singleQuote);return e.charAt(0)===n?e:B6(r,n)}var Qs=I6,OC=e=>Number.isInteger(e)&&e>=0;function he(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(he(r),t):t}function ce(e){var t;return((t=e.range)==null?void 0:t[1])??e.end}function jc(e,t){let r=he(e);return OC(r)&&r===he(t)}function _6(e,t){let r=ce(e);return OC(r)&&r===ce(t)}function L6(e,t){return jc(e,t)&&_6(e,t)}var La=null;function fo(e){if(La!==null&&typeof La.property){let t=La;return La=fo.prototype=null,t}return La=fo.prototype=e??Object.create(null),new fo}var $6=10;for(let e=0;e<=$6;e++)fo();function M6(e){return fo(e)}function O6(e,t="type"){M6(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 jC=O6,v=[["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"]],j6={AccessorProperty:v[0],AnyTypeAnnotation:v[1],ArgumentPlaceholder:v[1],ArrayExpression:["elements"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrayTypeAnnotation:v[2],ArrowFunctionExpression:["typeParameters","params","predicate","returnType","body"],AsConstExpression:v[3],AsExpression:v[4],AssignmentExpression:v[5],AssignmentPattern:["left","right","decorators","typeAnnotation"],AwaitExpression:v[6],BigIntLiteral:v[1],BigIntLiteralTypeAnnotation:v[1],BigIntTypeAnnotation:v[1],BinaryExpression:v[5],BindExpression:["object","callee"],BlockStatement:v[7],BooleanLiteral:v[1],BooleanLiteralTypeAnnotation:v[1],BooleanTypeAnnotation:v[1],BreakStatement:v[8],CallExpression:v[9],CatchClause:["param","body"],ChainExpression:v[3],ClassAccessorProperty:v[0],ClassBody:v[10],ClassDeclaration:v[11],ClassExpression:v[11],ClassImplements:v[12],ClassMethod:v[13],ClassPrivateMethod:v[13],ClassPrivateProperty:v[14],ClassProperty:v[14],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:v[15],ConditionalExpression:v[16],ConditionalTypeAnnotation:v[17],ContinueStatement:v[8],DebuggerStatement:v[1],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclaredPredicate:v[18],DeclareEnum:v[19],DeclareExportAllDeclaration:["source","attributes"],DeclareExportDeclaration:v[20],DeclareFunction:["id","predicate"],DeclareHook:v[21],DeclareInterface:v[22],DeclareModule:v[19],DeclareModuleExports:v[23],DeclareNamespace:v[19],DeclareOpaqueType:["id","typeParameters","supertype","lowerBound","upperBound"],DeclareTypeAlias:v[24],DeclareVariable:v[21],Decorator:v[3],Directive:v[18],DirectiveLiteral:v[1],DoExpression:v[10],DoWhileStatement:v[25],EmptyStatement:v[1],EmptyTypeAnnotation:v[1],EnumBigIntBody:v[26],EnumBigIntMember:v[27],EnumBooleanBody:v[26],EnumBooleanMember:v[27],EnumDeclaration:v[19],EnumDefaultedMember:v[21],EnumNumberBody:v[26],EnumNumberMember:v[27],EnumStringBody:v[26],EnumStringMember:v[27],EnumSymbolBody:v[26],ExistsTypeAnnotation:v[1],ExperimentalRestProperty:v[6],ExperimentalSpreadProperty:v[6],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportDefaultSpecifier:v[28],ExportNamedDeclaration:v[20],ExportNamespaceSpecifier:v[28],ExportSpecifier:["local","exported"],ExpressionStatement:v[3],File:["program"],ForInStatement:v[29],ForOfStatement:v[29],ForStatement:["init","test","update","body"],FunctionDeclaration:v[30],FunctionExpression:v[30],FunctionTypeAnnotation:["typeParameters","this","params","rest","returnType"],FunctionTypeParam:v[15],GenericTypeAnnotation:v[12],HookDeclaration:v[31],HookTypeAnnotation:["params","returnType","rest","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:v[16],ImportAttribute:v[32],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:v[33],ImportExpression:["source","options"],ImportNamespaceSpecifier:v[33],ImportSpecifier:["imported","local"],IndexedAccessType:v[34],InferredPredicate:v[1],InferTypeAnnotation:v[35],InterfaceDeclaration:v[22],InterfaceExtends:v[12],InterfaceTypeAnnotation:["extends","body"],InterpreterDirective:v[1],IntersectionTypeAnnotation:v[36],JsExpressionRoot:v[37],JsonRoot:v[37],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXClosingFragment:v[1],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:v[1],JSXExpressionContainer:v[3],JSXFragment:["openingFragment","children","closingFragment"],JSXIdentifier:v[1],JSXMemberExpression:v[38],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","typeArguments","attributes"],JSXOpeningFragment:v[1],JSXSpreadAttribute:v[6],JSXSpreadChild:v[3],JSXText:v[1],KeyofTypeAnnotation:v[6],LabeledStatement:["label","body"],Literal:v[1],LogicalExpression:v[5],MatchArrayPattern:["elements","rest"],MatchAsPattern:["pattern","target"],MatchBindingPattern:v[21],MatchExpression:v[39],MatchExpressionCase:v[40],MatchIdentifierPattern:v[21],MatchLiteralPattern:v[41],MatchMemberPattern:["base","property"],MatchObjectPattern:["properties","rest"],MatchObjectPatternProperty:["key","pattern"],MatchOrPattern:["patterns"],MatchRestPattern:v[6],MatchStatement:v[39],MatchStatementCase:v[40],MatchUnaryPattern:v[6],MatchWildcardPattern:v[1],MemberExpression:v[38],MetaProperty:["meta","property"],MethodDefinition:v[42],MixedTypeAnnotation:v[1],ModuleExpression:v[10],NeverTypeAnnotation:v[1],NewExpression:v[9],NGChainedExpression:v[43],NGEmptyExpression:v[1],NGMicrosyntax:v[10],NGMicrosyntaxAs:["key","alias"],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKey:v[1],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:v[32],NGPipeExpression:["left","right","arguments"],NGRoot:v[37],NullableTypeAnnotation:v[23],NullLiteral:v[1],NullLiteralTypeAnnotation:v[1],NumberLiteralTypeAnnotation:v[1],NumberTypeAnnotation:v[1],NumericLiteral:v[1],ObjectExpression:["properties"],ObjectMethod:v[13],ObjectPattern:["decorators","properties","typeAnnotation"],ObjectProperty:v[42],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeCallProperty:v[18],ObjectTypeIndexer:["variance","id","key","value"],ObjectTypeInternalSlot:["id","value"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:v[6],OpaqueType:["id","typeParameters","supertype","impltype","lowerBound","upperBound"],OptionalCallExpression:v[9],OptionalIndexedAccessType:v[34],OptionalMemberExpression:v[38],ParenthesizedExpression:v[3],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:v[1],PipelineTopicExpression:v[3],Placeholder:v[1],PrivateIdentifier:v[1],PrivateName:v[21],Program:v[7],Property:v[32],PropertyDefinition:v[14],QualifiedTypeIdentifier:v[44],QualifiedTypeofIdentifier:v[44],RegExpLiteral:v[1],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:v[6],SatisfiesExpression:v[4],SequenceExpression:v[43],SpreadElement:v[6],StaticBlock:v[10],StringLiteral:v[1],StringLiteralTypeAnnotation:v[1],StringTypeAnnotation:v[1],Super:v[1],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],SymbolTypeAnnotation:v[1],TaggedTemplateExpression:["tag","typeArguments","quasi"],TemplateElement:v[1],TemplateLiteral:["quasis","expressions"],ThisExpression:v[1],ThisTypeAnnotation:v[1],ThrowStatement:v[6],TopicReference:v[1],TryStatement:["block","handler","finalizer"],TSAbstractAccessorProperty:v[45],TSAbstractKeyword:v[1],TSAbstractMethodDefinition:v[32],TSAbstractPropertyDefinition:v[45],TSAnyKeyword:v[1],TSArrayType:v[2],TSAsExpression:v[4],TSAsyncKeyword:v[1],TSBigIntKeyword:v[1],TSBooleanKeyword:v[1],TSCallSignatureDeclaration:v[46],TSClassImplements:v[47],TSConditionalType:v[17],TSConstructorType:v[46],TSConstructSignatureDeclaration:v[46],TSDeclareFunction:v[31],TSDeclareKeyword:v[1],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSEnumBody:v[26],TSEnumDeclaration:v[19],TSEnumMember:["id","initializer"],TSExportAssignment:v[3],TSExportKeyword:v[1],TSExternalModuleReference:v[3],TSFunctionType:v[46],TSImportEqualsDeclaration:["id","moduleReference"],TSImportType:["options","qualifier","typeArguments","source"],TSIndexedAccessType:v[34],TSIndexSignature:["parameters","typeAnnotation"],TSInferType:v[35],TSInstantiationExpression:v[47],TSInterfaceBody:v[10],TSInterfaceDeclaration:v[22],TSInterfaceHeritage:v[47],TSIntersectionType:v[36],TSIntrinsicKeyword:v[1],TSJSDocAllType:v[1],TSJSDocNonNullableType:v[23],TSJSDocNullableType:v[23],TSJSDocUnknownType:v[1],TSLiteralType:v[41],TSMappedType:["key","constraint","nameType","typeAnnotation"],TSMethodSignature:["key","typeParameters","params","returnType"],TSModuleBlock:v[10],TSModuleDeclaration:v[19],TSNamedTupleMember:["label","elementType"],TSNamespaceExportDeclaration:v[21],TSNeverKeyword:v[1],TSNonNullExpression:v[3],TSNullKeyword:v[1],TSNumberKeyword:v[1],TSObjectKeyword:v[1],TSOptionalType:v[23],TSParameterProperty:["parameter","decorators"],TSParenthesizedType:v[23],TSPrivateKeyword:v[1],TSPropertySignature:["key","typeAnnotation"],TSProtectedKeyword:v[1],TSPublicKeyword:v[1],TSQualifiedName:v[5],TSReadonlyKeyword:v[1],TSRestType:v[23],TSSatisfiesExpression:v[4],TSStaticKeyword:v[1],TSStringKeyword:v[1],TSSymbolKeyword:v[1],TSTemplateLiteralType:["quasis","types"],TSThisType:v[1],TSTupleType:["elementTypes"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSTypeAnnotation:v[23],TSTypeAssertion:v[4],TSTypeLiteral:v[26],TSTypeOperator:v[23],TSTypeParameter:["name","constraint","default"],TSTypeParameterDeclaration:v[48],TSTypeParameterInstantiation:v[48],TSTypePredicate:v[49],TSTypeQuery:["exprName","typeArguments"],TSTypeReference:["typeName","typeArguments"],TSUndefinedKeyword:v[1],TSUnionType:v[36],TSUnknownKeyword:v[1],TSVoidKeyword:v[1],TupleTypeAnnotation:["types","elementTypes"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeAlias:v[24],TypeAnnotation:v[23],TypeCastExpression:v[4],TypeofTypeAnnotation:["argument","typeArguments"],TypeOperator:v[23],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:v[48],TypeParameterInstantiation:v[48],TypePredicate:v[49],UnaryExpression:v[6],UndefinedTypeAnnotation:v[1],UnionTypeAnnotation:v[36],UnknownTypeAnnotation:v[1],UpdateExpression:v[6],V8IntrinsicIdentifier:v[1],VariableDeclaration:["declarations"],VariableDeclarator:v[27],Variance:v[1],VoidPattern:v[1],VoidTypeAnnotation:v[1],WhileStatement:v[25],WithStatement:["object","body"],YieldExpression:v[6]},R6=jC(j6),RC=R6;function U6(e){let t=new Set(e);return r=>t.has(r==null?void 0:r.type)}var oe=U6;function z6(e){var t;return((t=e.extra)==null?void 0:t.raw)??e.raw}var Nt=z6,V6=oe(["Block","CommentBlock","MultiLine"]),Ar=V6,q6=oe(["AnyTypeAnnotation","ThisTypeAnnotation","NumberTypeAnnotation","VoidTypeAnnotation","BooleanTypeAnnotation","BigIntTypeAnnotation","SymbolTypeAnnotation","StringTypeAnnotation","NeverTypeAnnotation","UndefinedTypeAnnotation","UnknownTypeAnnotation","EmptyTypeAnnotation","MixedTypeAnnotation"]),UC=q6,H6=oe(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose","Hashbang","InterpreterDirective"]),uu=H6;function W6(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 J6(e,t){return t.some(r=>W6(e,r))}var jm=J6;function X6({type:e}){return e.startsWith("TS")&&e.endsWith("Keyword")}var zC=X6;function K6({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 Rm=K6;function Td(e,t){return t(e)||l6(e,{getVisitorKeys:RC,predicate:t})}function Um(e){return e.type==="AssignmentExpression"||e.type==="BinaryExpression"||e.type==="LogicalExpression"||e.type==="NGPipeExpression"||e.type==="ConditionalExpression"||Ee(e)||we(e)||e.type==="SequenceExpression"||e.type==="TaggedTemplateExpression"||e.type==="BindExpression"||e.type==="UpdateExpression"&&!e.prefix||mr(e)||e.type==="TSNonNullExpression"||e.type==="ChainExpression"}function G6(e){return e.expressions?e.expressions[0]:e.left??e.test??e.callee??e.object??e.tag??e.argument??e.expression}function VC(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 Q6=oe(["ExportDefaultDeclaration","DeclareExportDeclaration","ExportNamedDeclaration","ExportAllDeclaration","DeclareExportAllDeclaration"]),ot=oe(["ArrayExpression"]),xr=oe(["ObjectExpression"]);function Y6(e){return e.type==="LogicalExpression"&&e.operator==="??"}function Mr(e){return e.type==="NumericLiteral"||e.type==="Literal"&&typeof e.value=="number"}function Z6(e){return e.type==="BooleanLiteral"||e.type==="Literal"&&typeof e.value=="boolean"}function qC(e){return e.type==="UnaryExpression"&&(e.operator==="+"||e.operator==="-")&&Mr(e.argument)}function et(e){return!!(e&&(e.type==="StringLiteral"||e.type==="Literal"&&typeof e.value=="string"))}function HC(e){return e.type==="RegExpLiteral"||e.type==="Literal"&&!!e.regex}var zm=oe(["Literal","BooleanLiteral","BigIntLiteral","DirectiveLiteral","NullLiteral","NumericLiteral","RegExpLiteral","StringLiteral"]),e_=oe(["Identifier","ThisExpression","Super","PrivateName","PrivateIdentifier"]),ii=oe(["ObjectTypeAnnotation","TSTypeLiteral","TSMappedType"]),zo=oe(["FunctionExpression","ArrowFunctionExpression"]);function t_(e){return e.type==="FunctionExpression"||e.type==="ArrowFunctionExpression"&&e.body.type==="BlockStatement"}function Gp(e){return Ee(e)&&e.callee.type==="Identifier"&&["async","inject","fakeAsync","waitForAsync"].includes(e.callee.name)}var Ze=oe(["JSXElement","JSXFragment"]);function lu(e){return e.method&&e.kind==="init"||e.kind==="get"||e.kind==="set"}function WC(e){return(e.type==="ObjectTypeProperty"||e.type==="ObjectTypeInternalSlot")&&!e.static&&!e.method&&e.kind!=="get"&&e.kind!=="set"&&e.value.type==="FunctionTypeAnnotation"}function r_(e){return(e.type==="TypeAnnotation"||e.type==="TSTypeAnnotation")&&e.typeAnnotation.type==="FunctionTypeAnnotation"&&!e.static&&!jc(e,e.typeAnnotation)}var pn=oe(["BinaryExpression","LogicalExpression","NGPipeExpression"]);function cs(e){return we(e)||e.type==="BindExpression"&&!!e.object}var n_=oe(["TSThisType","NullLiteralTypeAnnotation","BooleanLiteralTypeAnnotation","StringLiteralTypeAnnotation","BigIntLiteralTypeAnnotation","NumberLiteralTypeAnnotation","TSLiteralType","TSTemplateLiteralType"]);function Vm(e){return zC(e)||UC(e)||n_(e)||e.type==="GenericTypeAnnotation"&&!e.typeParameters||e.type==="TSTypeReference"&&!e.typeArguments}function i_(e){return e.type==="Identifier"&&(e.name==="beforeEach"||e.name==="beforeAll"||e.name==="afterEach"||e.name==="afterAll")}var s_=["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 a_(e){return jm(e,s_)}function Rc(e,t){if((e==null?void 0:e.type)!=="CallExpression"||e.optional)return!1;let r=Jt(e);if(r.length===1){if(Gp(e)&&Rc(t))return zo(r[0]);if(i_(e.callee))return Gp(r[0])}else if((r.length===2||r.length===3)&&(r[0].type==="TemplateLiteral"||et(r[0]))&&a_(e.callee))return r[2]&&!Mr(r[2])?!1:(r.length===2?zo(r[1]):t_(r[1])&&dt(r[1]).length<=1)||Gp(r[1]);return!1}var JC=e=>t=>((t==null?void 0:t.type)==="ChainExpression"&&(t=t.expression),e(t)),Ee=JC(oe(["CallExpression","OptionalCallExpression"])),we=JC(oe(["MemberExpression","OptionalMemberExpression"]));function i1(e,t=5){return XC(e,t)<=t}function XC(e,t){let r=0;for(let n in e){let i=e[n];if(_C(i)&&typeof i.type=="string"&&(r++,r+=XC(i,t-r)),r>t)return r}return r}var o_=.25;function qm(e,t){let{printWidth:r}=t;if(z(e))return!1;let n=r*o_;if(e.type==="ThisExpression"||e.type==="Identifier"&&e.name.length<=n||qC(e)&&!z(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:et(e)?Qs(Nt(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"?qm(e.argument,{printWidth:r}):e.type==="CallExpression"&&e.arguments.length===0&&e.callee.type==="Identifier"?e.callee.name.length<=n-2:zm(e)}function Dr(e,t){return Ze(t)?Uc(t):z(t,W.Leading,r=>kt(e,ce(r)))}function s1(e){return e.quasis.some(t=>t.value.raw.includes(` +`))}function KC(e,t){return(e.type==="TemplateLiteral"&&s1(e)||e.type==="TaggedTemplateExpression"&&s1(e.quasi))&&!kt(t,he(e),{backwards:!0})}function GC(e){if(!z(e))return!1;let t=Ce(0,_i(e,W.Dangling),-1);return t&&!Ar(t)}function u_(e){if(e.length<=1)return!1;let t=0;for(let r of e)if(zo(r)){if(t+=1,t>1)return!0}else if(Ee(r)){for(let n of Jt(r))if(zo(n))return!0}return!1}function QC(e){let{node:t,parent:r,key:n}=e;return n==="callee"&&Ee(t)&&Ee(r)&&r.arguments.length>0&&t.arguments.length>r.arguments.length}var l_=new Set(["!","-","+","~"]);function dr(e,t=2){if(t<=0)return!1;if(e.type==="ChainExpression"||e.type==="TSNonNullExpression")return dr(e.expression,t);let r=n=>dr(n,t-1);if(HC(e))return Xs(e.pattern??e.regex.pattern)<=5;if(zm(e)||e_(e)||e.type==="ArgumentPlaceholder")return!0;if(e.type==="TemplateLiteral")return e.quasis.every(n=>!n.value.raw.includes(` +`))&&e.expressions.every(r);if(xr(e))return e.properties.every(n=>!n.computed&&(n.shorthand||n.value&&r(n.value)));if(ot(e))return e.elements.every(n=>n===null||r(n));if(Zs(e)){if(e.type==="ImportExpression"||dr(e.callee,t)){let n=Jt(e);return n.length<=t&&n.every(r)}return!1}return we(e)?dr(e.object,t)&&dr(e.property,t):e.type==="UnaryExpression"&&l_.has(e.operator)||e.type==="UpdateExpression"?dr(e.argument,t):!1}function zr(e,t="es5"){return e.trailingComma==="es5"&&t==="es5"||e.trailingComma==="all"&&(t==="all"||t==="es5")}function yt(e,t){switch(e.type){case"BinaryExpression":case"LogicalExpression":case"AssignmentExpression":case"NGPipeExpression":return yt(e.left,t);case"MemberExpression":case"OptionalMemberExpression":return yt(e.object,t);case"TaggedTemplateExpression":return e.tag.type==="FunctionExpression"?!1:yt(e.tag,t);case"CallExpression":case"OptionalCallExpression":return e.callee.type==="FunctionExpression"?!1:yt(e.callee,t);case"ConditionalExpression":return yt(e.test,t);case"UpdateExpression":return!e.prefix&&yt(e.argument,t);case"BindExpression":return e.object&&yt(e.object,t);case"SequenceExpression":return yt(e.expressions[0],t);case"ChainExpression":case"TSSatisfiesExpression":case"TSAsExpression":case"TSNonNullExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return yt(e.expression,t);default:return t(e)}}var a1={"==":!0,"!=":!0,"===":!0,"!==":!0},Ju={"*":!0,"/":!0,"%":!0},Sd={">>":!0,">>>":!0,"<<":!0};function Hm(e,t){return!(rc(t)!==rc(e)||e==="**"||a1[e]&&a1[t]||t==="%"&&Ju[e]||e==="%"&&Ju[t]||t!==e&&Ju[t]&&Ju[e]||Sd[e]&&Sd[t])}var c_=new Map([["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].flatMap((e,t)=>e.map(r=>[r,t])));function rc(e){return c_.get(e)}function p_(e){return!!Sd[e]||e==="|"||e==="^"||e==="&"}function h_(e){var r;if(e.rest)return!0;let t=dt(e);return((r=Ce(0,t,-1))==null?void 0:r.type)==="RestElement"}var Qp=new WeakMap;function dt(e){if(Qp.has(e))return Qp.get(e);let t=[];return e.this&&t.push(e.this),t.push(...e.params),e.rest&&t.push(e.rest),Qp.set(e,t),t}function d_(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 Yp=new WeakMap;function Jt(e){if(Yp.has(e))return Yp.get(e);if(e.type==="ChainExpression")return Jt(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,Yp.set(e,t),t}function nc(e,t){let{node:r}=e;if(r.type==="ChainExpression")return e.call(()=>nc(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 o1(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&W.Leading&&!r.leading||e&W.Trailing&&!r.trailing||e&W.Dangling&&(r.leading||r.trailing)||e&W.Block&&!Ar(r)||e&W.Line&&!uu(r)||e&W.First&&n!==0||e&W.Last&&n!==i.length-1||e&W.PrettierIgnore&&!Ys(r)||t&&!t(r))};function z(e,t,r){if(!Pe(e==null?void 0:e.comments))return!1;let n=YC(t,r);return n?e.comments.some(n):!0}function _i(e,t,r){if(!Array.isArray(e==null?void 0:e.comments))return[];let n=YC(t,r);return n?e.comments.filter(n):e.comments}var Vr=(e,{originalText:t})=>Om(t,ce(e));function Zs(e){return Ee(e)||e.type==="NewExpression"||e.type==="ImportExpression"}function hi(e){return e&&(e.type==="ObjectProperty"||e.type==="Property"&&!lu(e))}var mr=oe(["TSAsExpression","TSSatisfiesExpression","AsExpression","AsConstExpression","SatisfiesExpression"]),Or=oe(["TSUnionType","UnionTypeAnnotation"]),cu=oe(["TSIntersectionType","IntersectionTypeAnnotation"]),si=oe(["TSConditionalType","ConditionalTypeAnnotation"]),f_=e=>(e==null?void 0:e.type)==="TSAsExpression"&&e.typeAnnotation.type==="TSTypeReference"&&e.typeAnnotation.typeName.type==="Identifier"&&e.typeAnnotation.typeName.name==="const",Fd=oe(["TSTypeAliasDeclaration","TypeAlias"]);function ZC({key:e,parent:t}){return!(e==="types"&&Or(t)||e==="types"&&cu(t))}var m_=new Set(["range","raw","comments","leadingComments","trailingComments","innerComments","extra","start","end","loc","flags","errors","tokens"]),as=e=>{for(let t of e.quasis)delete t.value};function ev(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"&&!Rm({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;et(s)||Mr(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"&&as(a);e.type==="JSXAttribute"&&e.name.name==="css"&&e.value.type==="JSXExpressionContainer"&&e.value.expression.type==="TemplateLiteral"&&as(t.value.expression),e.type==="JSXAttribute"&&((i=e.value)==null?void 0:i.type)==="Literal"&&/["']|"|'/u.test(e.value.value)&&(t.value.value=Qe(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":ot(o.value)&&as(o.value.elements[0]);break;case"template":o.value.type==="TemplateLiteral"&&as(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")&&as(t.quasi),e.type==="TemplateLiteral"&&as(t),e.type==="ChainExpression"&&e.expression.type==="TSNonNullExpression"&&(t.type="TSNonNullExpression",t.expression.type="ChainExpression")}ev.ignoredProperties=m_;var y_=ev,g_=oe(["File","TemplateElement","TSEmptyBodyFunctionExpression","ChainExpression"]),D_=(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&&!lu(t)&&t.value!==t.key,E_=(e,[t])=>!!(e.type==="FunctionExpression"&&t.type==="MethodDefinition"&&t.value===e&&dt(e).length===0&&!e.returnType&&!Pe(e.typeParameters)&&e.body),u1=(e,[t])=>(t==null?void 0:t.typeAnnotation)===e&&f_(t),x_=(e,[t,...r])=>u1(e,[t])||(t==null?void 0:t.typeName)===e&&u1(t,r);function C_(e,t){return g_(e)||D_(e,t)||E_(e,t)?!1:e.type==="EmptyStatement"?Rm({node:e,parent:t[0]}):!(x_(e,t)||e.type==="TSTypeAnnotation"&&t[0].type==="TSPropertySignature")}var v_=C_;function A_(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 Wm(e,t){(e.comments??(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=A_(e)}function Ue(e,t){t.leading=!0,t.trailing=!1,Wm(e,t)}function zt(e,t,r){t.leading=!1,t.trailing=!1,r&&(t.marker=r),Wm(e,t)}function Ie(e,t){t.leading=!1,t.trailing=!0,Wm(e,t)}function T_(e,t){let r=null,n=t;for(;n!==r;)r=n,n=Ks(e,n),n=$m(e,n),n=Mm(e,n),n=Gs(e,n);return n}var ca=T_;function S_(e,t){let r=ca(e,t);return r===!1?"":e.charAt(r)}var Cr=S_;function F_(e,t,r){for(let n=t;nuu(e)||!Vt(t,he(e),ce(e));function w_(e){return[cv,nv,ov,j_,B_,Xm,Km,rv,iv,q_,U_,z_,Qm,lv,H_,sv,uv,Gm,I_,Y_,pv,Ym].some(t=>t(e))}function P_(e){return[N_,ov,nv,lv,Xm,Km,rv,iv,uv,R_,V_,Qm,X_,Gm,G_,Q_,Z_,pv,t9,e9,Ym].some(t=>t(e))}function k_(e){return[cv,Xm,Km,O_,sv,Qm,M_,$_,Gm,K_,Ym].some(t=>t(e))}function Ki(e,t){let r=(e.body||e.properties).find(({type:n})=>n!=="EmptyStatement");r?Ue(r,t):zt(e,t)}function bd(e,t){e.type==="BlockStatement"?Ki(e,t):Ue(e,t)}function N_({comment:e,followingNode:t}){return t&&tv(e)?(Ue(t,e),!0):!1}function Xm({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:i}){if((r==null?void 0:r.type)!=="IfStatement"||!n)return!1;if(Cr(i,ce(e))===")")return Ie(t,e),!0;if(n.type==="BlockStatement"&&n===r.consequent&&he(e)>=ce(t)&&ce(e)<=he(n))return Ue(n,e),!0;if(t===r.consequent&&n===r.alternate){let s=ca(i,ce(r.consequent));if(n.type==="BlockStatement"&&he(e)>=s&&ce(e)<=he(n))return Ue(n,e),!0;if(he(e)"?(zt(t,e),!0):!1}function O_({comment:e,enclosingNode:t,text:r}){return Cr(r,ce(e))!==")"?!1:t&&(hv(t)&&dt(t).length===0||Zs(t)&&Jt(t).length===0)?(zt(t,e),!0):((t==null?void 0:t.type)==="MethodDefinition"||(t==null?void 0:t.type)==="TSAbstractMethodDefinition")&&dt(t.value).length===0?(zt(t.value,e),!0):!1}function j_({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"&&Cr(i,ce(e))===")"?(Ie(t,e),!0):!1}function ov({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")&&hv(r)&&Cr(i,ce(e))===")"?(Ie(t,e),!0):!Ar(e)&&(n==null?void 0:n.type)==="BlockStatement"&&av(r)&&(r.type==="MethodDefinition"?r.value.body:r.body)===n&&ca(i,ce(e))===he(n)?(Ki(n,e),!0):!1}function uv({comment:e,enclosingNode:t}){return(t==null?void 0:t.type)==="LabeledStatement"?(Ue(t,e),!0):!1}function Gm({comment:e,enclosingNode:t}){return((t==null?void 0:t.type)==="ContinueStatement"||(t==null?void 0:t.type)==="BreakStatement")&&!t.label?(Ie(t,e),!0):!1}function R_({comment:e,precedingNode:t,enclosingNode:r}){return Ee(r)&&t&&r.callee===t&&r.arguments.length>0?(Ue(r.arguments[0],e),!0):!1}function U_({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){return Or(r)?(Ys(e)&&(n.prettierIgnore=!0,e.unignore=!0),t?(Ie(t,e),!0):!1):(Or(n)&&Ys(e)&&(n.types[0].prettierIgnore=!0,e.unignore=!0),!1)}function z_({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){return r&&r.type==="MatchOrPattern"?(Ys(e)&&(n.prettierIgnore=!0,e.unignore=!0),t?(Ie(t,e),!0):!1):(n&&n.type==="MatchOrPattern"&&Ys(e)&&(n.types[0].prettierIgnore=!0,e.unignore=!0),!1)}function V_({comment:e,enclosingNode:t}){return hi(t)?(Ue(t,e),!0):!1}function Qm({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?zt(r,e):Ue(r,e),!0):(t==null?void 0:t.type)==="Program"&&t.body.length===0&&!Pe(t.directives)?(n?zt(t,e):Ue(t,e),!0):!1}function q_({comment:e,enclosingNode:t,followingNode:r}){return((t==null?void 0:t.type)==="ForInStatement"||(t==null?void 0:t.type)==="ForOfStatement")&&r!==t.body?(Ue(t,e),!0):!1}function lv({comment:e,precedingNode:t,enclosingNode:r,text:n}){if((r==null?void 0:r.type)==="ImportSpecifier"||(r==null?void 0:r.type)==="ExportSpecifier")return Ue(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)&&kt(n,ce(e))?(Ie(t,e),!0):!1}function H_({comment:e,enclosingNode:t}){return(t==null?void 0:t.type)==="AssignmentPattern"?(Ue(t,e),!0):!1}var W_=oe(["VariableDeclarator","AssignmentExpression","TypeAlias","TSTypeAliasDeclaration"]),J_=oe(["ObjectExpression","ArrayExpression","TemplateLiteral","TaggedTemplateExpression","ObjectTypeAnnotation","TSTypeLiteral"]);function X_({comment:e,enclosingNode:t,followingNode:r}){return W_(t)&&r&&(J_(r)||Ar(e))?(Ue(r,e),!0):!1}function K_({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)&&Cr(i,ce(e))===";"?(Ie(t,e),!0):!1}function cv({comment:e,enclosingNode:t,followingNode:r}){if(Ys(e)&&(t==null?void 0:t.type)==="TSMappedType"&&r===t.key)return t.prettierIgnore=!0,e.unignore=!0,!0}function pv({comment:e,precedingNode:t,enclosingNode:r}){if((r==null?void 0:r.type)==="TSMappedType"&&!t)return zt(r,e),!0}function G_({comment:e,enclosingNode:t,followingNode:r}){return!t||t.type!=="SwitchCase"||t.test||!r||r!==t.consequent[0]?!1:(r.type==="BlockStatement"&&uu(e)?Ki(r,e):zt(t,e),!0)}function Q_({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){return Or(t)&&((r.type==="TSArrayType"||r.type==="ArrayTypeAnnotation")&&!n||cu(r))?(Ie(Ce(0,t.types,-1),e),!0):!1}function Y_({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?Ie(r,e):zt(t,e),!0}function Z_({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")&&Vt(i,he(r.argument),he(t.right))&&Jm(e,i)&&!Vt(i,he(t.right),he(e))?(Ie(t.right,e),!0):!1}function e9({enclosingNode:e,followingNode:t,comment:r}){if(e&&(e.type==="TSPropertySignature"||e.type==="ObjectTypeProperty")&&(Or(t)||cu(t)))return Ue(t,r),!0}function Ym({enclosingNode:e,precedingNode:t,followingNode:r,comment:n,text:i}){if(mr(e)&&t===e.expression&&!Jm(n,i))return r?Ue(r,n):Ie(e,n),!0}function t9({comment:e,enclosingNode:t,followingNode:r,precedingNode:n}){return t&&r&&n&&t.type==="ArrowFunctionExpression"&&t.returnType===n&&(n.type==="TSTypeAnnotation"||n.type==="TypeAnnotation")?(Ue(r,e),!0):!1}var hv=oe(["ArrowFunctionExpression","FunctionExpression","FunctionDeclaration","ObjectMethod","ClassMethod","TSDeclareFunction","TSCallSignatureDeclaration","TSConstructSignatureDeclaration","TSMethodSignature","TSConstructorType","TSFunctionType","TSDeclareMethod"]),r9={endOfLine:P_,ownLine:w_,remaining:k_},n9=r9;function i9(e,{parser:t}){if(t==="flow"||t==="hermes"||t==="babel-flow")return e=Qe(0,e,/[\s(]/gu,""),e===""||e==="/*"||e==="/*::"}var s9=i9,a9=oe(["ClassDeclaration","ClassExpression","DeclareClass","DeclareInterface","InterfaceDeclaration","TSInterfaceDeclaration"]);function o9(e){let{key:t,parent:r}=e;if(t==="types"&&Or(r)||t==="argument"&&r.type==="JSXSpreadAttribute"||t==="expression"&&r.type==="JSXSpreadChild"||t==="superClass"&&(r.type==="ClassDeclaration"||r.type==="ClassExpression")||(t==="id"||t==="typeParameters")&&a9(r)||t==="patterns"&&r.type==="MatchOrPattern")return!0;let{node:n}=e;return Uc(n)?!1:Or(n)?ZC(e):!!Ze(n)}var u9=o9,Gi="string",hn="array",pa="cursor",Qi="indent",Yi="align",Zi="trim",ar="group",di="fill",Lr="if-break",es="indent-if-break",ts="line-suffix",fi="line-suffix-boundary",It="line",An="label",Tn="break-parent",dv=new Set([pa,Qi,Yi,Zi,ar,di,Lr,es,ts,fi,It,An,Tn]);function l9(e){if(typeof e=="string")return Gi;if(Array.isArray(e))return hn;if(!e)return;let{type:t}=e;if(dv.has(t))return t}var mi=l9,c9=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function p9(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=c9([...dv].map(i=>`'${i}'`));return`Unexpected doc.type '${e.type}'. +Expected it to be ${n}.`}var h9=class extends Error{constructor(r){super(p9(r));U(this,"name","InvalidDocError");this.doc=r}},Vo=h9,l1={};function d9(e,t,r,n){let i=[e];for(;i.length>0;){let s=i.pop();if(s===l1){r(i.pop());continue}r&&i.push(s,l1);let a=mi(s);if(!a)throw new Vo(s);if((t==null?void 0:t(s))!==!1)switch(a){case hn:case di:{let o=a===hn?s:s.parts;for(let u=o.length,l=u-1;l>=0;--l)i.push(o[l]);break}case Lr:i.push(s.flatContents,s.breakContents);break;case ar: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 Yi:case Qi:case es:case An:case ts:i.push(s.contents);break;case Gi:case pa:case Zi:case fi:case It:case Tn:break;default:throw new Vo(s)}}}var Zm=d9;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(mi(s)){case hn:return t(s.map(n));case di:return t({...s,parts:s.parts.map(n)});case Lr:return t({...s,breakContents:n(s.breakContents),flatContents:n(s.flatContents)});case ar:{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 Yi:case Qi:case es:case An:case ts:return t({...s,contents:n(s.contents)});case Gi:case pa:case Zi:case fi:case It:case Tn:return t(s);default:throw new Vo(s)}}}function fv(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 Zm(e,s),n}function f9(e){if(e.type===ar&&e.break||e.type===It&&e.hard||e.type===Tn)return!0}function gt(e){return fv(e,f9,!1)}function c1(e){if(e.length>0){let t=Ce(0,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function m9(e){let t=new Set,r=[];function n(s){if(s.type===Tn&&c1(r),s.type===ar){if(r.push(s),t.has(s))return!1;t.add(s)}}function i(s){s.type===ar&&r.pop().break&&c1(r)}Zm(e,n,i,!0)}function y9(e){return e.type===It&&!e.hard?e.soft?"":" ":e.type===Lr?e.flatContents:e}function ic(e){return ha(e,y9)}function g9(e){switch(mi(e)){case di:if(e.parts.every(t=>t===""))return"";break;case ar:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===ar&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case Yi:case Qi:case es:case ts:if(!e.contents)return"";break;case Lr:if(!e.flatContents&&!e.breakContents)return"";break;case hn:{let t=[];for(let r of e){if(!r)continue;let[n,...i]=Array.isArray(r)?r:[r];typeof n=="string"&&typeof Ce(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 Gi:case pa:case Zi:case fi:case It:case An:case Tn:break;default:throw new Vo(e)}return e}function ey(e){return ha(e,t=>g9(t))}function Ui(e,t=Dv){return ha(e,r=>typeof r=="string"?fe(t,r.split(` +`)):r)}function D9(e){if(e.type===It)return!0}function E9(e){return fv(e,D9,!1)}function wd(e,t){return e.type===An?{...e,contents:t(e.contents)}:t(e)}function x9(e){let t=!0;return Zm(e,r=>{switch(mi(r)){case Gi:if(r==="")break;case Zi:case fi:case It:case Tn:return t=!1,!1}}),t}var C9=F6;function L(e){return{type:Qi,contents:e}}function vr(e,t){return{type:Yi,contents:t,n:e}}function v9(e){return vr(Number.NEGATIVE_INFINITY,e)}function mv(e){return vr(-1,e)}function A9(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 _9(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=I9:n={type:2,width:t}:n={type:3,string:t},xv(e,n,r)}function L9(e,t){return xv(e,B9,t)}function $9(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 Cv(e){let t=$9(e);return{text:t===0?e:e.slice(0,e.length-t),count:t}}var Tt=Symbol("MODE_BREAK"),Fr=Symbol("MODE_FLAT"),Pd=Symbol("DOC_FILL_PRINTED_LENGTH");function Ku(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 Gi:p&&(o&&(l+=" ",r-=1,o=!1),l+=p,r-=Xs(p));break;case hn:case di:{let d=h===hn?p:p.parts,f=p[Pd]??0;for(let y=d.length-1;y>=f;y--)u.push({mode:c,doc:d[y]});break}case Qi:case Yi:case es:case An:u.push({mode:c,doc:p.contents});break;case Zi:{let{text:d,count:f}=Cv(l);l=d,r+=f;break}case ar:{if(s&&p.break)return!1;let d=p.break?Tt:c,f=p.expandedStates&&d===Tt?Ce(0,p.expandedStates,-1):p.contents;u.push({mode:d,doc:f});break}case Lr:{let d=(p.groupId?i[p.groupId]||Fr:c)===Tt?p.breakContents:p.flatContents;d&&u.push({mode:c,doc:d});break}case It:if(c===Tt||p.hard)return!0;p.soft||(o=!0);break;case ts:n=!0;break;case fi:if(n)return!1;break}}return!1}function vv(e,t){let r=Object.create(null),n=t.printWidth,i=N9(t.endOfLine),s=0,a=[{indent:Ev,mode:Tt,doc:e}],o="",u=!1,l=[],c=[],p=[],h=[],d=0;for(m9(e);a.length>0;){let{indent:m,mode:D,doc:E}=a.pop();switch(mi(E)){case Gi:{let A=i!==` +`?Qe(0,E,` +`,i):E;A&&(o+=A,a.length>0&&(s+=Xs(A)));break}case hn:for(let A=E.length-1;A>=0;A--)a.push({indent:m,mode:D,doc:E[A]});break;case pa:if(c.length>=2)throw new Error("There are too many 'cursor' in doc.");c.push(d+o.length);break;case Qi:a.push({indent:L9(m,t),mode:D,doc:E.contents});break;case Yi:a.push({indent:_9(m,E.n,t),mode:D,doc:E.contents});break;case Zi:g();break;case ar:switch(D){case Fr:if(!u){a.push({indent:m,mode:E.break?Tt:Fr,doc:E.contents});break}case Tt:{u=!1;let A={indent:m,mode:Fr,doc:E.contents},F=n-s,k=l.length>0;if(!E.break&&Ku(A,a,F,k,r))a.push(A);else if(E.expandedStates){let b=Ce(0,E.expandedStates,-1);if(E.break){a.push({indent:m,mode:Tt,doc:b});break}else for(let O=1;O=E.expandedStates.length){a.push({indent:m,mode:Tt,doc:b});break}else{let P=E.expandedStates[O],j={indent:m,mode:Fr,doc:P};if(Ku(j,a,F,k,r)){a.push(j);break}}}else a.push({indent:m,mode:Tt,doc:E.contents});break}}E.id&&(r[E.id]=Ce(0,a,-1).mode);break;case di:{let A=n-s,F=E[Pd]??0,{parts:k}=E,b=k.length-F;if(b===0)break;let O=k[F+0],P=k[F+1],j={indent:m,mode:Fr,doc:O},Y={indent:m,mode:Tt,doc:O},N=Ku(j,[],A,l.length>0,r,!0);if(b===1){N?a.push(j):a.push(Y);break}let Q={indent:m,mode:Fr,doc:P},H={indent:m,mode:Tt,doc:P};if(b===2){N?a.push(Q,j):a.push(H,Y);break}let ne=k[F+2],ge={indent:m,mode:D,doc:{...E,[Pd]:F+2}},$=Ku({indent:m,mode:Fr,doc:[O,P,ne]},[],A,l.length>0,r,!0);a.push(ge),$?a.push(Q,j):N?a.push(H,j):a.push(H,Y);break}case Lr:case es:{let A=E.groupId?r[E.groupId]:D;if(A===Tt){let F=E.type===Lr?E.breakContents:E.negate?E.contents:L(E.contents);F&&a.push({indent:m,mode:D,doc:F})}if(A===Fr){let F=E.type===Lr?E.flatContents:E.negate?L(E.contents):E.contents;F&&a.push({indent:m,mode:D,doc:F})}break}case ts:l.push({indent:m,mode:D,doc:E.contents});break;case fi:l.length>0&&a.push({indent:m,mode:D,doc:gv});break;case It:switch(D){case Fr:if(E.hard)u=!0;else{E.soft||(o+=" ",s+=1);break}case Tt:if(l.length>0){a.push({indent:m,mode:D,doc:E},...l.reverse()),l.length=0;break}E.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 An:a.push({indent:m,mode:D,doc:E.contents});break;case Tn:break;default:throw new Vo(E)}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,Ce(0,y,-1))};function g(){let{text:m,count:D}=Cv(o);m&&(p.push(m),d+=m.length),o="",s-=D,c.length>0&&(h.push(...c.map(E=>Math.min(E,d))),c.length=0)}}function M9(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(` +`)?R9(p,c):o;o=h;let d=a[u],f=n[i][u],y=Vt(t.originalText,ce(l),he(n.quasis[u+1]));if(!y){let g=vv(d,{...t,printWidth:Number.POSITIVE_INFINITY}).formatted;g.includes(` +`)?y=!0:d=g}y&&(z(f)||f.type==="Identifier"||we(f)||f.type==="ConditionalExpression"||f.type==="SequenceExpression"||mr(f)||pn(f))&&(d=[L([_,d]),_]);let x=h===0&&p.endsWith(` +`)?vr(Number.NEGATIVE_INFINITY,d):A9(d,h,c);s.push(w(["${",x,jr,"}"]))},"quasis"),s.push("`"),s}function U9(e,t,r){let n=r("quasi"),{node:i}=e,s="",a=_i(i.quasi,W.Leading)[0];return a&&(Vt(t.originalText,ce(i.typeArguments??i.tag),he(a))?s=_:s=" "),pu(n.label&&{tagged:!0,...n.label},[r("tag"),r("typeArguments"),s,jr,n])}function z9(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=>"${"+vv(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],Xs(d));return[jr,"`",L([O,fe(O,c.map(p=>fe(" | ",p.cells.map((h,d)=>p.hasLineBreak?h:h+" ".repeat(l[d]-Xs(h))))))]),O,"`"]}}function _9(e,t){let{node:r}=e,n=t();return z(r)&&(n=w([L([_,n]),_])),["${",n,jr,"}"]}function ty(e,t){return e.map(()=>_9(e,t),"expressions")}function Ev(e,t){return ha(e,r=>typeof r=="string"?t?Ge(0,r,/(\\*)`/gu,"$1$1\\`"):xv(r):r)}function xv(e){return Ge(0,e,/([\\`]|\$\{)/gu,"\\$1")}function L9({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 kd=[(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 $9(e){let t=n=>n.type==="TemplateLiteral",r=(n,i)=>pi(n)&&!n.computed&&n.key.type==="Identifier"&&n.key.name==="styles"&&i==="value";return e.match(t,(n,i)=>at(n)&&i==="elements",r,...kd)||e.match(t,r,...kd)}function O9(e){return e.match(t=>t.type==="TemplateLiteral",(t,r)=>pi(t)&&!t.computed&&t.key.type==="Identifier"&&t.key.name==="template"&&r==="value",...kd)}function eh(e,t){return z(e,W.Block|W.Leading,({value:r})=>r===` ${t} `)}function Cv({node:e,parent:t},r){return eh(e,r)||M9(t)&&eh(t,r)||t.type==="ExpressionStatement"&&eh(t,r)}function M9(e){return e.type==="AsConstExpression"||e.type==="TSAsExpression"&&e.typeAnnotation.type==="TSTypeReference"&&e.typeAnnotation.typeName.type==="Identifier"&&e.typeAnnotation.typeName.name==="const"}async function j9(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=ty(r,t),o=R9(s,a);if(!o)throw new Error("Couldn't insert all the expressions");return["`",L([O,o]),_,"`"]}function R9(e,t){if(!Pe(t))return e;let r=0,n=ha(ey(e),i=>typeof i!="string"||!i.includes("@prettier-placeholder")?i:i.split(/@prettier-placeholder-(\d+)-id/u).map((s,a)=>a%2===0?Ui(s):(r++,t[s])));return t.length===r?n:null}function U9(e){return e.match(void 0,(t,r)=>r==="quasi"&&t.type==="TaggedTemplateExpression"&&jm(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 Gu(e){return e.type==="Identifier"&&e.name==="styled"}function p1(e){return/^[A-Z]/u.test(e.object.name)&&e.property.name==="extend"}function z9({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 Gu(t.object)||p1(t);case"CallExpression":return Gu(t.callee)||t.callee.type==="MemberExpression"&&(t.callee.object.type==="MemberExpression"&&(Gu(t.callee.object.object)||p1(t.callee.object))||t.callee.object.type==="CallExpression"&&Gu(t.callee.object.callee));case"Identifier":return t.name==="css";default:return!1}}function V9({parent:e,grandparent:t}){return(t==null?void 0:t.type)==="JSXAttribute"&&e.type==="JSXExpressionContainer"&&t.name.type==="JSXIdentifier"&&t.name.name==="css"}var q9=e=>U9(e)||z9(e)||V9(e)||$9(e);async function H9(e,t,r){let{node:n}=r,i=n.quasis.length,s=ty(r,t),a=[];for(let o=0;o2&&h[0].trim()===""&&h[1].trim()==="",E=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=W9(h):m=await e(p,{parser:"graphql"}),m?(m=Ev(m,!1),!l&&y&&a.push(""),a.push(m),!c&&E&&a.push("")):!l&&!c&&y&&a.push(""),f&&a.push(f)}return["`",L([O,fe(O,a)]),O,"`"]}function W9(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([O,s]):t.push(s),r=!0);return t.length===0?null:fe(O,t)}function J9({node:e,parent:t}){return Cv({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 th=0;async function vv(e,t,r,n,i){let{node:s}=n,a=th;th=th+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=ty(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=[],D=g.split(c);for(let x=0;x1?L(w(d)):w(d),y,"`"]))}function X9(e){return Cv(e,"HTML")||e.match(t=>t.type==="TemplateLiteral",(t,r)=>t.type==="TaggedTemplateExpression"&&t.tag.type==="Identifier"&&t.tag.name==="html"&&r==="quasi")}var K9=vv.bind(void 0,"html"),G9=vv.bind(void 0,"angular");async function Q9(e,t,r){let{node:n}=r,i=Ge(0,n.quasis[0].value.raw,/((?:\\\\)*)\\`/gu,(u,l)=>"\\".repeat(l.length/2)+"`"),s=Y9(i),a=s!=="";a&&(i=Ge(0,i,new RegExp(`^${s}`,"gmu"),""));let o=Ev(await e(i,{parser:"markdown",__inJsTemplate:!0}),!0);return["`",a?L([_,o]):[dv,d9(o)],_,"`"]}function Y9(e){let t=e.match(/^([^\S\n]*)\S/mu);return t===null?"":t[1]}function Z9({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 e5=[{test:q9,print:j9},{test:J9,print:H9},{test:X9,print:K9},{test:O9,print:G9},{test:Z9,print:Q9}].map(({test:e,print:t})=>({test:e,print:r5(t)}));function t5(e){let{node:t}=e;if(t.type!=="TemplateLiteral"||n5(t))return;let r=e5.find(({test:n})=>n(e));if(r)return t.quasis.length===1&&t.quasis[0].value.raw.trim()===""?"``":r.print}function r5(e){return async(...t)=>{let r=await e(...t);return r&&pu({embed:!0,...r.label},r)}}function n5({quasis:e}){return e.some(({value:{cooked:t}})=>t===null)}var i5=t5,s5=/\*\/$/,a5=/^\/\*\*?/,Av=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,o5=/(^|\s+)\/\/([^\n\r]*)/g,h1=/^(\r?\n)+/,u5=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,d1=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,l5=/(\r?\n|^) *\* ?/g,Tv=[];function c5(e){let t=e.match(Av);return t?t[0].trimStart():""}function p5(e){var r;let t=(r=e.match(Av))==null?void 0:r[0];return t==null?e:e.slice(t.length)}function h5(e){e=Ge(0,e.replace(a5,"").replace(s5,""),l5,"$1");let t="";for(;t!==e;)t=e,e=Ge(0,e,u5,` +`)&&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],Xs(d));return[jr,"`",L([M,fe(M,c.map(p=>fe(" | ",p.cells.map((h,d)=>p.hasLineBreak?h:h+" ".repeat(l[d]-Xs(h))))))]),M,"`"]}}function V9(e,t){let{node:r}=e,n=t();return z(r)&&(n=w([L([_,n]),_])),["${",n,jr,"}"]}function ty(e,t){return e.map(()=>V9(e,t),"expressions")}function Tv(e,t){return ha(e,r=>typeof r=="string"?t?Qe(0,r,/(\\*)`/gu,"$1$1\\`"):Sv(r):r)}function Sv(e){return Qe(0,e,/([\\`]|\$\{)/gu,"\\$1")}function q9({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 kd=[(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 H9(e){let t=n=>n.type==="TemplateLiteral",r=(n,i)=>hi(n)&&!n.computed&&n.key.type==="Identifier"&&n.key.name==="styles"&&i==="value";return e.match(t,(n,i)=>ot(n)&&i==="elements",r,...kd)||e.match(t,r,...kd)}function W9(e){return e.match(t=>t.type==="TemplateLiteral",(t,r)=>hi(t)&&!t.computed&&t.key.type==="Identifier"&&t.key.name==="template"&&r==="value",...kd)}function eh(e,t){return z(e,W.Block|W.Leading,({value:r})=>r===` ${t} `)}function Fv({node:e,parent:t},r){return eh(e,r)||J9(t)&&eh(t,r)||t.type==="ExpressionStatement"&&eh(t,r)}function J9(e){return e.type==="AsConstExpression"||e.type==="TSAsExpression"&&e.typeAnnotation.type==="TSTypeReference"&&e.typeAnnotation.typeName.type==="Identifier"&&e.typeAnnotation.typeName.name==="const"}async function X9(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=ty(r,t),o=K9(s,a);if(!o)throw new Error("Couldn't insert all the expressions");return["`",L([M,o]),_,"`"]}function K9(e,t){if(!Pe(t))return e;let r=0,n=ha(ey(e),i=>typeof i!="string"||!i.includes("@prettier-placeholder")?i:i.split(/@prettier-placeholder-(\d+)-id/u).map((s,a)=>a%2===0?Ui(s):(r++,t[s])));return t.length===r?n:null}function G9(e){return e.match(void 0,(t,r)=>r==="quasi"&&t.type==="TaggedTemplateExpression"&&jm(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 Gu(e){return e.type==="Identifier"&&e.name==="styled"}function h1(e){return/^[A-Z]/u.test(e.object.name)&&e.property.name==="extend"}function Q9({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 Gu(t.object)||h1(t);case"CallExpression":return Gu(t.callee)||t.callee.type==="MemberExpression"&&(t.callee.object.type==="MemberExpression"&&(Gu(t.callee.object.object)||h1(t.callee.object))||t.callee.object.type==="CallExpression"&&Gu(t.callee.object.callee));case"Identifier":return t.name==="css";default:return!1}}function Y9({parent:e,grandparent:t}){return(t==null?void 0:t.type)==="JSXAttribute"&&e.type==="JSXExpressionContainer"&&t.name.type==="JSXIdentifier"&&t.name.name==="css"}var Z9=e=>G9(e)||Q9(e)||Y9(e)||H9(e);async function e5(e,t,r){let{node:n}=r,i=n.quasis.length,s=ty(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=t5(h):m=await e(p,{parser:"graphql"}),m?(m=Tv(m,!1),!l&&y&&a.push(""),a.push(m),!c&&x&&a.push("")):!l&&!c&&y&&a.push(""),f&&a.push(f)}return["`",L([M,fe(M,a)]),M,"`"]}function t5(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([M,s]):t.push(s),r=!0);return t.length===0?null:fe(M,t)}function r5({node:e,parent:t}){return Fv({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 th=0;async function bv(e,t,r,n,i){let{node:s}=n,a=th;th=th+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=ty(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=[],D=g.split(c);for(let E=0;E1?L(w(d)):w(d),y,"`"]))}function n5(e){return Fv(e,"HTML")||e.match(t=>t.type==="TemplateLiteral",(t,r)=>t.type==="TaggedTemplateExpression"&&t.tag.type==="Identifier"&&t.tag.name==="html"&&r==="quasi")}var i5=bv.bind(void 0,"html"),s5=bv.bind(void 0,"angular");async function a5(e,t,r){let{node:n}=r,i=Qe(0,n.quasis[0].value.raw,/((?:\\\\)*)\\`/gu,(u,l)=>"\\".repeat(l.length/2)+"`"),s=o5(i),a=s!=="";a&&(i=Qe(0,i,new RegExp(`^${s}`,"gmu"),""));let o=Tv(await e(i,{parser:"markdown",__inJsTemplate:!0}),!0);return["`",a?L([_,o]):[Dv,v9(o)],_,"`"]}function o5(e){let t=e.match(/^([^\S\n]*)\S/mu);return t===null?"":t[1]}function u5({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 l5=[{test:Z9,print:X9},{test:r5,print:e5},{test:n5,print:i5},{test:W9,print:s5},{test:u5,print:a5}].map(({test:e,print:t})=>({test:e,print:p5(t)}));function c5(e){let{node:t}=e;if(t.type!=="TemplateLiteral"||h5(t))return;let r=l5.find(({test:n})=>n(e));if(r)return t.quasis.length===1&&t.quasis[0].value.raw.trim()===""?"``":r.print}function p5(e){return async(...t)=>{let r=await e(...t);return r&&pu({embed:!0,...r.label},r)}}function h5({quasis:e}){return e.some(({value:{cooked:t}})=>t===null)}var d5=c5,f5=/\*\/$/,m5=/^\/\*\*?/,wv=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,y5=/(^|\s+)\/\/([^\n\r]*)/g,d1=/^(\r?\n)+/,g5=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,f1=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,D5=/(\r?\n|^) *\* ?/g,Pv=[];function E5(e){let t=e.match(wv);return t?t[0].trimStart():""}function x5(e){var r;let t=(r=e.match(wv))==null?void 0:r[0];return t==null?e:e.slice(t.length)}function C5(e){e=Qe(0,e.replace(m5,"").replace(f5,""),D5,"$1");let t="";for(;t!==e;)t=e,e=Qe(0,e,g5,` $1 $2 -`);e=e.replace(h1,"").trimEnd();let r=Object.create(null),n=Ge(0,e,d1,"").replace(h1,"").trimEnd(),i;for(;i=d1.exec(e);){let s=Ge(0,i[2],o5,"");if(typeof r[i[1]]=="string"||Array.isArray(r[i[1]])){let a=r[i[1]];r[i[1]]=[...Tv,...Array.isArray(a)?a:[a],s]}else r[i[1]]=s}return{comments:n,pragmas:r}}function d5({comments:e="",pragmas:t={}}){let r=Object.keys(t),n=r.flatMap(s=>f1(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`/** ${f1(r[0],s)[0]} */`}}let i=e.split(` +`);e=e.replace(d1,"").trimEnd();let r=Object.create(null),n=Qe(0,e,f1,"").replace(d1,"").trimEnd(),i;for(;i=f1.exec(e);){let s=Qe(0,i[2],y5,"");if(typeof r[i[1]]=="string"||Array.isArray(r[i[1]])){let a=r[i[1]];r[i[1]]=[...Pv,...Array.isArray(a)?a:[a],s]}else r[i[1]]=s}return{comments:n,pragmas:r}}function v5({comments:e="",pragmas:t={}}){let r=Object.keys(t),n=r.flatMap(s=>m1(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`/** ${m1(r[0],s)[0]} */`}}let i=e.split(` `).map(s=>` * ${s}`).join(` `)+` `;return`/** `+(e?i:"")+(e&&r.length>0?` * -`:"")+n+" */"}function f1(e,t){return[...Tv,...Array.isArray(t)?t:[t]].map(r=>`@${e} ${r}`.trim())}var f5="format";function m5(e){if(!e.startsWith("#!"))return"";let t=e.indexOf(` -`);return t===-1?e:e.slice(0,t)}var y5=m5;function g5(e){let t=y5(e);t&&(e=e.slice(t.length+1));let r=c5(e),{pragmas:n,comments:i}=h5(r);return{shebang:t,text:e,pragmas:n,comments:i}}function D5(e){let{shebang:t,text:r,pragmas:n,comments:i}=g5(e),s=p5(r),a=d5({pragmas:{[f5]:"",...n},comments:i.trimStart()});return(t?`${t} +`:"")+n+" */"}function m1(e,t){return[...Pv,...Array.isArray(t)?t:[t]].map(r=>`@${e} ${r}`.trim())}var A5="format";function T5(e){if(!e.startsWith("#!"))return"";let t=e.indexOf(` +`);return t===-1?e:e.slice(0,t)}var S5=T5;function F5(e){let t=S5(e);t&&(e=e.slice(t.length+1));let r=E5(e),{pragmas:n,comments:i}=C5(r);return{shebang:t,text:e,pragmas:n,comments:i}}function b5(e){let{shebang:t,text:r,pragmas:n,comments:i}=F5(e),s=x5(r),a=v5({pragmas:{[A5]:"",...n},comments:i.trimStart()});return(t?`${t} `:"")+a+(s.startsWith(` `)?` `:` -`)+s}function E5(e){if(!Ar(e))return!1;let t=`*${e.value}*`.split(` -`);return t.length>1&&t.every(r=>r.trimStart()[0]==="*")}var rh=new WeakMap;function x5(e){return rh.has(e)||rh.set(e,E5(e)),rh.get(e)}var C5=x5;function v5(e,t){let r=e.node;if(uu(r))return t.originalText.slice(he(r),ce(r)).trimEnd();if(C5(r))return A5(r);if(Ar(r))return["/*",Ui(r.value),"*/"];throw new Error("Not a comment: "+JSON.stringify(r))}function A5(e){let t=e.value.split(` -`);return["/*",fe(O,t.map((r,n)=>n===0?r.trimEnd():" "+(ny.type==="ForOfStatement"))==null?void 0:a.left;if(f&&mt(f,y=>y===r))return!0}if(n==="object"&&r.name==="let"&&i.type==="MemberExpression"&&i.computed&&!i.optional){let f=e.findAncestor(E=>E.type==="ExpressionStatement"||E.type==="ForStatement"||E.type==="ForInStatement"),y=f?f.type==="ExpressionStatement"?f.expression:f.type==="ForStatement"?f.init:f.left:void 0;if(y&&mt(y,E=>E===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=>!mr(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&&mt(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"&&mt(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"&&Pe(r.decorators)))return!0;break;case"ExportDefaultDeclaration":return Sv(e,t)||r.type==="SequenceExpression";case"Decorator":if(n==="expression"&&!P5(r))return!0;break;case"TypeAnnotation":if(e.match(void 0,void 0,(f,y)=>y==="returnType"&&f.type==="ArrowFunctionExpression")&&F5(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"&&S5(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!mr(r);case"ConditionalExpression":return mr(r)||V6(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"||mr(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 E=rc(f),g=i.operator,m=rc(g);return!!(m>E||n==="right"&&m===E||m===E&&!Hm(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"&&ii(r)&&i.type===r.type||n==="checkType"&&ii(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(Mr(i)||cu(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,E)=>E==="typeAnnotation"&&y.type==="TypeAnnotation",(y,E)=>E==="returnType"&&y.type==="ArrowFunctionExpression")||e.match(void 0,(y,E)=>E==="typeAnnotation"&&y.type==="TypePredicate",(y,E)=>E==="typeAnnotation"&&y.type==="TypeAnnotation",(y,E)=>E==="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&&ht(r).some(y=>{var E;return((E=y.typeAnnotation)==null?void 0:E.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"&&we(i)&&Or(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(w5(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"&&we(i);case"NGPipeExpression":return!(i.type==="NGRoot"||i.type==="NGMicrosyntaxExpression"||i.type==="ObjectProperty"&&!((d=r.extra)!=null&&d.parenthesized)||at(i)||n==="arguments"&&Ee(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"&&!Ee(i)&&!pi(i)&&i.type!=="ReturnStatement"&&i.type!=="ThrowStatement"&&i.type!=="TypeCastExpression"&&i.type!=="VariableDeclarator"&&i.type!=="YieldExpression"&&i.type!=="MatchExpressionCase";case"TSInstantiationExpression":return n==="object"&&we(i);case"MatchOrPattern":return i.type==="MatchAsPattern"}return!1}var T5=oe(["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 S5(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 F5(e){return Td(e,t=>t.type==="ObjectTypeAnnotation"&&Td(t,r=>r.type==="FunctionTypeAnnotation"))}function b5(e){return xr(e)}function Ga(e){let{parent:t,key:r}=e;switch(t.type){case"NGPipeExpression":if(r==="arguments"&&e.isLast)return e.callParent(Ga);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(Ga);break;case"ConditionalExpression":if(r==="alternate")return e.callParent(Ga);break;case"UnaryExpression":if(t.prefix)return e.callParent(Ga);break}return!1}function Sv(e,t){let{node:r,parent:n}=e;return r.type==="FunctionExpression"||r.type==="ClassExpression"?n.type==="ExportDefaultDeclaration"||!Nd(e,t):!Um(r)||n.type!=="ExportDefaultDeclaration"&&Nd(e,t)?!1:e.call(()=>Sv(e,t),...MC(r))}function w5(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 Bd(e){return e.type==="Identifier"?!0:we(e)?!e.computed&&!e.optional&&e.property.type==="Identifier"&&Bd(e.object):!1}function P5(e){return e.type==="ChainExpression"&&(e=e.expression),Bd(e)||Ee(e)&&!e.optional&&Bd(e.callee)}var mi=Nd;function k5(e,t){let r=t-1;r=Ks(e,r,{backwards:!0}),r=Gs(e,r,{backwards:!0}),r=Ks(e,r,{backwards:!0});let n=Gs(e,r,{backwards:!0});return r!==n}var N5=k5,B5=()=>!0;function ry(e,t){let r=e.node;return r.printed=!0,t.printer.printComment(e,t)}function I5(e,t){var l;let r=e.node,n=[ry(e,t)],{printer:i,originalText:s,locStart:a,locEnd:o}=t;if((l=i.isBlockComment)!=null&&l.call(i,r)){let c=Pt(s,o(r))?Pt(s,a(r),{backwards:!0})?O:V:" ";n.push(c)}else n.push(O);let u=Gs(s,Ks(s,o(r)));return u!==!1&&Pt(s,u)&&n.push(O),n}function _5(e,t,r){var l;let n=e.node,i=ry(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)||Pt(a,o(n),{backwards:!0})){let c=N5(a,o(n));return{doc:c1([O,c?O:"",i]),isBlock:u,hasLineSuffix:!0}}return!u||r!=null&&r.hasLineSuffix?{doc:[c1([" ",i]),dn],isBlock:u,hasLineSuffix:!0}:{doc:[" ",i],isBlock:u,hasLineSuffix:!1}}function be(e,t,r={}){let{node:n}=e;if(!Pe(n==null?void 0:n.comments))return"";let{indent:i=!1,marker:s,filter:a=B5}=r,o=[];if(e.each(({node:l})=>{l.leading||l.trailing||l.marker!==s||!a(l)||o.push(ry(e,t))},"comments"),o.length===0)return"";let u=fe(O,o);return i?L([O,u]):u}function zc(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(I5(e,t)):l&&(a=_5(e,t,a),s.push(a.doc))},"comments"),{leading:i,trailing:s}}function rr(e,t,r){let{leading:n,trailing:i}=zc(e,r);return!n&&!i?t:wd(t,s=>[n,s,i])}var sc=class extends Error{constructor(){super(...arguments);U(this,"name","ArgExpansionBailout")}};function rs(e,t,r,n,i){let s=e.node,a=ht(s),o=i&&s.typeParameters?r("typeParameters"):"";if(a.length===0)return[o,"(",be(e,t,{filter:d=>Cr(t.originalText,ce(d))===")"}),")"];let{parent:u}=e,l=Rc(u),c=Fv(s),p=[];if(i_(e,(d,f)=>{let y=f===a.length-1;y&&s.rest&&p.push("..."),p.push(r()),!y&&(p.push(","),l||c?p.push(" "):Vr(a[f],t)?p.push(O,O):p.push(V))}),n&&!$5(e)){if(yt(o)||yt(p))throw new sc;return w([ic(o),"(",ic(p),")"])}let h=a.every(d=>!Pe(d.decorators));return c&&h?[o,"(",...p,")"]:l?[o,"(",...p,")"]:(UC(u)||J6(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&&Vm(a[0].typeAnnotation)&&!s.rest?t.arrowParens==="always"||s.type==="HookTypeAnnotation"?["(",...p,")"]:p:[o,"(",L([_,...p]),ie(!n_(s)&&zr(t,"all")?",":""),_,")"]}function Fv(e){if(!e)return!1;let t=ht(e);if(t.length!==1)return!1;let[r]=t;return!z(r)&&(r.type==="ObjectPattern"||r.type==="ArrayPattern"||r.type==="Identifier"&&r.typeAnnotation&&(r.typeAnnotation.type==="TypeAnnotation"||r.typeAnnotation.type==="TSTypeAnnotation")&&ni(r.typeAnnotation.typeAnnotation)||r.type==="FunctionTypeParam"&&ni(r.typeAnnotation)&&r!==e.rest||r.type==="AssignmentPattern"&&(r.left.type==="ObjectPattern"||r.left.type==="ArrayPattern")&&(r.right.type==="Identifier"||xr(r.right)&&r.right.properties.length===0||at(r.right)&&r.right.elements.length===0))}function L5(e){let t;return e.returnType?(t=e.returnType,t.typeAnnotation&&(t=t.typeAnnotation)):e.typeAnnotation&&(t=e.typeAnnotation),t}function da(e,t){var i;let r=L5(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 ht(e).length===1&&(ni(r)||yt(t))}function $5(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 O5(e){let t=ht(e);return t.length>1&&t.some(r=>r.type==="TSParameterProperty")}function mo(e,t){return(t==="params"||t==="this"||t==="rest")&&Fv(e)}function Dt(e){let{node:t}=e;return!t.optional||t.type==="Identifier"&&t===e.parent.key?"":Ee(t)||we(t)&&t.computed||t.type==="OptionalIndexedAccessType"?"?.":"?"}function bv(e){return e.node.definite||e.match(void 0,(t,r)=>r==="id"&&t.type==="VariableDeclarator"&&t.definite)?"!":""}var M5=oe(["DeclareClass","DeclareComponent","DeclareFunction","DeclareHook","DeclareVariable","DeclareExportDeclaration","DeclareExportAllDeclaration","DeclareOpaqueType","DeclareTypeAlias","DeclareEnum","DeclareInterface"]);function qt(e){let{node:t}=e;return t.declare||M5(t)&&e.parent.type!=="DeclareExportDeclaration"?"declare ":""}var j5=oe(["TSAbstractMethodDefinition","TSAbstractPropertyDefinition","TSAbstractAccessorProperty"]);function Vc({node:e}){return e.abstract||j5(e)?"abstract ":""}function Pn(e,t,r){return e.type==="EmptyStatement"?z(e,W.Leading)?[" ",t]:t:e.type==="BlockStatement"||r?[" ",t]:L([V,t])}function qc(e){return e.accessibility?e.accessibility+" ":""}var R5=/^[\$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]*$/,U5=e=>R5.test(e),z5=U5;function V5(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 ea=V5,q5=0;function wv(e,t,r){var x;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==="|>"&&((x=e.root.extra)==null?void 0:x.__isUsingHackPipeline),l=Id(e,t,r,!1,o);if(o)return l;if(u)return w(l);if(a==="callee"&&(Ee(i)||i.type==="NewExpression")||i.type==="UnaryExpression"||we(i)&&!i.computed)return w([L([_,...l]),_]);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"&&!Ee(s)&&s.type!=="NewExpression"||i.type==="TemplateLiteral"||W5(e),p=i.type==="AssignmentExpression"||i.type==="VariableDeclarator"||i.type==="ClassProperty"||i.type==="PropertyDefinition"||i.type==="TSAbstractPropertyDefinition"||i.type==="ClassPrivateProperty"||pi(i),h=pn(n.left)&&Hm(n.operator,n.left.operator);if(c||Ho(n)&&!h||!Ho(n)&&p)return w(l);if(l.length===0)return"";let d=Ye(n.right),f=l.findIndex(A=>typeof A!="string"&&!Array.isArray(A)&&A.type===ar),y=l.slice(0,f===-1?1:f+1),E=l.slice(y.length,d?-1:void 0),g=Symbol("logicalChain-"+ ++q5),m=w([...y,L(E)],{id:g});if(!d)return m;let D=Ce(0,l,-1);return w([m,qo(D,{groupId:g})])}function Id(e,t,r,n,i){var E;let{node:s}=e;if(!pn(s))return[w(r())];let a=[];Hm(s.operator,s.left.operator)?a=e.call(()=>Id(e,t,r,!0,i),"left"):a.push(w(r("left")));let o=Ho(s),u=s.right.type==="ChainExpression"?s.right.expression:s.right,l=(s.operator==="|>"||s.type==="NGPipeExpression"||H5(e,t))&&!Dr(t.originalText,u),c=!z(u,W.Leading,GC)&&Dr(t.originalText,u),p=s.type==="NGPipeExpression"?"|":s.operator,h=s.type==="NGPipeExpression"&&s.arguments.length>0?w(L([_,": ",fe([V,": "],e.map(()=>vr(2,w(r())),"arguments"))])):"",d;if(o)d=[p,Dr(t.originalText,u)?L([V,r("right"),h]):[" ",r("right"),h]];else{let g=p==="|>"&&((E=e.root.extra)!=null&&E.__isUsingHackPipeline)?e.call(()=>Id(e,t,r,!0,i),"right"):r("right");if(t.experimentalOperatorPosition==="start"){let m="";if(c)switch(fi(g)){case hn:m=g.splice(0,1)[0];break;case An:m=g.contents.splice(0,1)[0];break}d=[V,m,p," ",g,h]}else d=[l?V:"",p,l?" ":V,g,h]}let{parent:f}=e,y=z(s.left,W.Trailing|W.Line);if((y||!(i&&s.type==="LogicalExpression")&&f.type!==s.type&&s.left.type!==s.type&&s.right.type!==s.type)&&(d=w(d,{shouldBreak:y})),t.experimentalOperatorPosition==="start"?a.push(o||c?" ":"",d):a.push(l?"":" ",d),n&&z(s)){let g=ey(rr(e,a,t));return g.type===hi?g.parts:Array.isArray(g)?g:[g]}return a}function Ho(e){return e.type!=="LogicalExpression"?!1:!!(xr(e.right)&&e.right.properties.length>0||at(e.right)&&e.right.elements.length>0||Ye(e.right))}var m1=e=>e.type==="BinaryExpression"&&e.operator==="|";function H5(e,t){return(t.parser==="__vue_expression"||t.parser==="__vue_ts_expression")&&m1(e.node)&&!e.hasAncestor(r=>!m1(r)&&r.type!=="JsExpressionRoot")}function W5(e){if(e.key!=="arguments")return!1;let{parent:t}=e;if(!(Ee(t)&&!t.optional&&t.arguments.length===1))return!1;let{callee:r}=t;return r.type==="Identifier"&&r.name==="Boolean"}function Pv(e,t,r){let{node:n}=e,{parent:i}=e,s=i.type!=="TypeParameterInstantiation"&&(!ii(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)&&!((Fd(i)||i.type==="VariableDeclarator")&&Dr(t.originalText,n))&&!(Fd(i)&&z(i.id,W.Trailing|W.Line)),a=kv(n),o=e.map(()=>{let d=r();return a||(d=vr(2,d)),rr(e,d,t)},"types"),u="",l="";if(XC(e)&&({leading:u,trailing:l}=zc(e,t)),a)return[u,fe(" | ",o),l];let c=s&&!Dr(t.originalText,n),p=[ie([c?V:"","| "]),fe([V,"| "],o)];if(mi(e,t))return[u,w([L(p),_]),l];let h=[u,w(p)];return(i.type==="TupleTypeAnnotation"||i.type==="TSTupleType")&&i[i.type==="TupleTypeAnnotation"&&i.types?"types":"elementTypes"].length>1?[w([L([ie(["(",_]),h]),_,ie(")")]),l]:[w(s?L(h):h),l]}var J5=oe(["VoidTypeAnnotation","TSVoidKeyword","NullLiteralTypeAnnotation","TSNullKeyword"]),X5=oe(["ObjectTypeAnnotation","TSTypeLiteral","GenericTypeAnnotation","TSTypeReference"]);function kv(e){let{types:t}=e;if(t.some(n=>z(n)))return!1;let r=t.find(n=>X5(n));return r?t.every(n=>n===r||J5(n)):!1}function K5(e){return Vm(e)||ni(e)?!0:Mr(e)?kv(e):!1}var G5=new WeakSet;function nt(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(Nv,r);(s==="=>"||s===":"&&z(n,W.Leading))&&(i=!0),G5.add(n)}return i?[" ",t(r)]:t(r)}var Nv=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 Bv(e,t,r){let n=Nv(e);return n?[n," ",r("typeAnnotation")]:r("typeAnnotation")}function Q5(e,t,r,n){let{node:i}=e,s=i.inexact?"...":"";return z(i,W.Dangling)?w([r,s,be(e,t,{indent:!0}),_,n]):[r,s,n]}function ny(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(Q5(e,t,s,a));else{let l=Ce(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((E,g,m)=>{let D=E==null?void 0:E.type;if(!at(E)&&!xr(E))return!1;let x=m[g+1];if(x&&D!==x.type)return!1;let A=at(E)?"elements":"properties";return E[A]&&E[A].length>1}),f=Iv(n,t),y=c?p?",":zr(t)?f?ie(",","",{groupId:h}):ie(","):"":"";i.push(w([s,L([_,f?Z5(e,t,r,y):[Y5(e,t,r,o,n.inexact),y],be(e,t)]),_,a],{shouldBreak:d,id:h}))}return i.push(Dt(e),nt(e,r)),i}function Iv(e,t){return at(e)&&e.elements.length>0&&e.elements.every(r=>r&&(Or(r)||jC(r)&&!z(r.argument))&&!z(r,W.Trailing|W.Line,n=>!Pt(t.originalText,he(n),{backwards:!0})))}function _v({node:e},{originalText:t}){let r=ce(e);if(r===he(e))return!1;let{length:n}=t;for(;r{s.push(a?w(r()):""),(!o||i)&&s.push([",",V,a&&_v(e,t)?_:""])},n),i&&s.push("..."),s}function Z5(e,t,r,n){let i=[];return e.each(({isLast:s,next:a})=>{i.push([r(),s?n:","]),s||i.push(_v(e,t)?[O,O]:z(a,W.Leading|W.Line)?O:V)},"elements"),pv(i)}function eL(e,t,r){let{node:n}=e,i=Jt(n);if(i.length===0)return["(",be(e,t),")"];let s=i.length-1;if(nL(i)){let p=["("];return nc(e,(h,d)=>{p.push(r()),d!==s&&p.push(", ")}),p.push(")"),p}let a=!1,o=[];nc(e,({node:p},h)=>{let d=r();h===s||(Vr(p,t)?(a=!0,d=[d,",",O,O]):d=[d,",",V]),o.push(d)});let u=!t.parser.startsWith("__ng_")&&n.type!=="ImportExpression"&&n.type!=="TSImportType"&&n.type!=="TSExternalModuleReference"&&zr(t,"all")?",":"";function l(){return w(["(",L([V,...o]),u,V,")"],{shouldBreak:!0})}if(a||e.parent.type!=="Decorator"&&Z6(i))return l();if(rL(i)){let p=o.slice(1);if(p.some(yt))return l();let h;try{h=r(a1(n,0),{expandFirstArg:!0})}catch(d){if(d instanceof sc)return l();throw d}return yt(h)?[dn,ki([["(",w(h,{shouldBreak:!0}),", ",...p,")"],l()])]:ki([["(",h,", ",...p,")"],["(",w(h,{shouldBreak:!0}),", ",...p,")"],l()])}if(tL(i,o,t)){let p=o.slice(0,-1);if(p.some(yt))return l();let h;try{h=r(a1(n,-1),{expandLastArg:!0})}catch(d){if(d instanceof sc)return l();throw d}return yt(h)?[dn,ki([["(",...p,w(h,{shouldBreak:!0}),")"],l()])]:ki([["(",...p,h,")"],["(",...p,w(h,{shouldBreak:!0}),")"],l()])}let c=["(",L([_,...o]),ie(u),_,")"];return WC(e)?c:w(c,{shouldBreak:o.some(yt)||a})}function yo(e,t=!1){return xr(e)&&(e.properties.length>0||z(e))||at(e)&&(e.elements.length>0||z(e))||e.type==="TSTypeAssertion"&&yo(e.expression)||mr(e)&&yo(e.expression)||e.type==="FunctionExpression"||e.type==="ArrowFunctionExpression"&&(!e.returnType||!e.returnType.typeAnnotation||e.returnType.typeAnnotation.type!=="TSTypeReference"||iL(e.body))&&(e.body.type==="BlockStatement"||e.body.type==="ArrowFunctionExpression"&&yo(e.body,!0)||xr(e.body)||at(e.body)||!t&&(Ee(e.body)||e.body.type==="ConditionalExpression")||Ye(e.body))||e.type==="DoExpression"||e.type==="ModuleExpression"}function tL(e,t,r){var s,a;let n=Ce(0,e,-1);if(e.length===1){let o=Ce(0,t,-1);if((s=o.label)!=null&&s.embed&&((a=o.label)==null?void 0:a.hug)!==!1)return!0}let i=Ce(0,e,-2);return!z(n,W.Leading)&&!z(n,W.Trailing)&&yo(n)&&(!i||i.type!==n.type)&&(e.length!==2||i.type!=="ArrowFunctionExpression"||!at(n))&&!(e.length>1&&Iv(n,r))}function rL(e){if(e.length!==2)return!1;let[t,r]=e;return t.type==="ModuleExpression"&&sL(r)?!0:!z(t)&&(t.type==="FunctionExpression"||t.type==="ArrowFunctionExpression"&&t.body.type==="BlockStatement")&&r.type!=="FunctionExpression"&&r.type!=="ArrowFunctionExpression"&&r.type!=="ConditionalExpression"&&Lv(r)&&!yo(r)}function Lv(e){if(e.type==="ParenthesizedExpression")return Lv(e.expression);if(mr(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 Vm(t)&&dr(e.expression,1)}return Zs(e)&&Jt(e).length>1?!1:pn(e)?dr(e.left,1)&&dr(e.right,1):RC(e)||dr(e)}function nL(e){return e.length===2?y1(e,0):e.length===3?e[0].type==="Identifier"&&y1(e,1):!1}function y1(e,t){let r=e[t],n=e[t+1];return r.type==="ArrowFunctionExpression"&&ht(r).length===0&&r.body.type==="BlockStatement"&&n.type==="ArrayExpression"&&!e.some(i=>z(i))}function iL(e){return e.type==="BlockStatement"&&(e.body.some(t=>t.type!=="EmptyStatement")||z(e,W.Dangling))}function sL(e){if(!(e.type==="ObjectExpression"&&e.properties.length===1))return!1;let[t]=e.properties;return pi(t)?!t.computed&&(t.key.type==="Identifier"&&t.key.name==="type"||Ze(t.key)&&t.key.value==="type")&&Ze(t.value)&&t.value.value==="module":!1}var _d=eL;function aL(e,t,r){return[r("object"),w(L([_,$v(e,t,r)]))]}function $v(e,t,r){return["::",r("callee")]}var oL=e=>((e.type==="ChainExpression"||e.type==="TSNonNullExpression")&&(e=e.expression),Ee(e)&&Jt(e).length>0);function uL(e){let{node:t,ancestors:r}=e;for(let n of r){if(!(we(n)&&n.object===t||n.type==="TSNonNullExpression"&&n.expression===t))return n.type==="NewExpression"&&n.callee===t;t=n}return!1}function lL(e,t,r){var l;let n=r("object"),i=Ov(e,t,r),{node:s}=e,a=e.findAncestor(c=>!(we(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"||uL(e)||s.computed||s.object.type==="Identifier"&&s.property.type==="Identifier"&&!we(o)||(o.type==="AssignmentExpression"||o.type==="VariableDeclarator")&&(oL(s.object)||((l=n.label)==null?void 0:l.memberChain));return pu(n.label,[n,u?i:w(L([_,i]))])}function Ov(e,t,r){let n=r("property"),{node:i}=e,s=Dt(e);return i.computed?!i.property||Or(i.property)?[s,"[",n,"]"]:w([s,"[",L([_,n]),_,"]"]):[s,".",n]}function Mv(e,t,r){if(e.node.type==="ChainExpression")return e.call(()=>Mv(e,t,r),"expression");let n=(e.parent.type==="ChainExpression"?e.grandparent:e.parent).type==="ExpressionStatement",i=[];function s(N){let{originalText:Q}=t,H=ca(Q,ce(N));return Q.charAt(H)===")"?H!==!1&&Mm(Q,H+1):Vr(N,t)}function a(){let{node:N}=e;if(N.type==="ChainExpression")return e.call(a,"expression");if(Ee(N)&&(cs(N.callee)||Ee(N.callee))){let Q=s(N);i.unshift({node:N,hasTrailingEmptyLine:Q,printed:[rr(e,[Dt(e),r("typeArguments"),_d(e,t,r)],t),Q?O:""]}),e.call(a,"callee")}else cs(N)?(i.unshift({node:N,needsParens:mi(e,t),printed:rr(e,we(N)?Ov(e,t,r):$v(e,t,r),t)}),e.call(a,"object")):N.type==="TSNonNullExpression"?(i.unshift({node:N,printed:rr(e,"!",t)}),e.call(a,"expression")):i.unshift({node:N,printed:r()})}let{node:o}=e;i.unshift({node:o,printed:[Dt(e),r("typeArguments"),_d(e,t,r)]}),o.callee&&e.call(a,"callee");let u=[],l=[i[0]],c=1;for(;c0&&u.push(l);function h(N){return/^[A-Z]|^[$_]+$/u.test(N)}function d(N){return N.length<=t.tabWidth}function f(N){var ne;let Q=(ne=N[1][0])==null?void 0:ne.node.computed;if(N[0].length===1){let ge=N[0][0].node;return ge.type==="ThisExpression"||ge.type==="Identifier"&&(h(ge.name)||n&&d(ge.name)||Q)}let H=Ce(0,N[0],-1).node;return we(H)&&H.property.type==="Identifier"&&(h(H.property.name)||Q)}let y=u.length>=2&&!z(u[1][0].node)&&f(u);function E(N){let Q=N.map(H=>H.printed);return N.length>0&&Ce(0,N,-1).needsParens?["(",...Q,")"]:Q}function g(N){return N.length===0?"":L([O,fe(O,N.map(E))])}let m=u.map(E),D=m,x=y?3:2,A=u.flat(),b=A.slice(1,-1).some(N=>z(N.node,W.Leading))||A.slice(0,-1).some(N=>z(N.node,W.Trailing))||u[x]&&z(u[x][0].node,W.Leading);if(u.length<=x&&!b&&!u.some(N=>Ce(0,N,-1).hasTrailingEmptyLine))return WC(e)?D:w(D);let k=Ce(0,u[y?1:0],-1).node,F=!Ee(k)&&s(k),M=[E(u[0]),y?u.slice(1,2).map(E):"",F?O:"",g(u.slice(y?2:1))],P=i.map(({node:N})=>N).filter(Ee);function j(){let N=Ce(0,Ce(0,u,-1),-1).node,Q=Ce(0,m,-1);return Ee(N)&&yt(Q)&&P.slice(0,-1).some(H=>H.arguments.some(zo))}let Y;return b||P.length>2&&P.some(N=>!N.arguments.every(Q=>dr(Q)))||m.slice(0,-1).some(yt)||j()?Y=w(M):Y=[yt(D)||F?dn:"",ki([D,M])],pu({memberChain:!0},Y)}var cL=Mv;function ac(e,t,r){var p;let{node:n}=e,i=n.type==="NewExpression",s=Dt(e),a=Jt(n),o=n.type!=="TSImportType"&&n.typeArguments?r("typeArguments"):"",u=a.length===1&&qC(a[0],t.originalText);if(u||hL(e)||dL(e)||Rc(n,e.parent)){let h=[];if(nc(e,()=>{h.push(r())}),!(u&&((p=h[0].label)!=null&&p.embed)))return[i?"new ":"",g1(e,r),s,o,"(",fe(", ",h),")"]}let l=n.type==="ImportExpression"||n.type==="TSImportType"||n.type==="TSExternalModuleReference";if(!l&&!i&&cs(n.callee)&&!e.call(()=>mi(e,t),"callee",...n.callee.type==="ChainExpression"?["expression"]:[]))return cL(e,t,r);let c=[i?"new ":"",g1(e,r),s,o,_d(e,t,r)];return l||Ee(n.callee)?w(c):c}function g1(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 pL=["require","require.resolve","require.resolve.paths","import.meta.resolve"];function hL(e){let{node:t}=e;if(!(t.type==="ImportExpression"||t.type==="TSImportType"||t.type==="TSExternalModuleReference"||t.type==="CallExpression"&&!t.optional&&jm(t.callee,pL)))return!1;let r=Jt(t);return r.length===1&&Ze(r[0])&&!z(r[0])}function dL(e){let{node:t}=e;if(t.type!=="CallExpression"||t.optional||t.callee.type!=="Identifier")return!1;let r=Jt(t);return t.callee.name==="require"?(r.length===1&&Ze(r[0])||r.length>1)&&!z(r[0]):t.callee.name==="define"&&e.parent.type==="ExpressionStatement"?r.length===1||r.length===2&&r[0].type==="ArrayExpression"||r.length===3&&Ze(r[0])&&r[1].type==="ArrayExpression":!1}function hu(e,t,r,n,i,s){let a=yL(e,t,r,n,s),o=s?r(s,{assignmentLayout:a}):"";switch(a){case"break-after-operator":return w([w(n),i,w(L([V,o]))]);case"never-break-after-operator":return w([w(n),i," ",o]);case"fluid":{let u=Symbol("assignment");return w([w(n),i,w(L(V),{id:u}),jr,qo(o,{groupId:u})])}case"break-lhs":return w([n,i," ",w(o)]);case"chain":return[w(n),i,V,o];case"chain-tail":return[w(n),i,L([V,o])];case"chain-tail-arrow-chain":return[w(n),i,o];case"only-left":return n}}function fL(e,t,r){let{node:n}=e;return hu(e,t,r,r("left"),[" ",n.operator],"right")}function mL(e,t,r){return hu(e,t,r,r("id")," =","init")}function yL(e,t,r,n,i){let{node:s}=e,a=s[i];if(!a)return"only-left";let o=!vl(a);if(e.match(vl,jv,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&&vl(a.right)||Dr(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=c9(n);if(DL(s)||CL(s)||Rv(s)&&u)return"break-lhs";let l=vL(s,n,t);return e.call(()=>gL(e,t,r,l),i)?"break-after-operator":EL(s)?"break-lhs":!u&&(l||a.type==="TemplateLiteral"||a.type==="TaggedTemplateExpression"||q6(a)||Or(a)||a.type==="ClassExpression")?"never-break-after-operator":"fluid"}function gL(e,t,r,n){let i=e.node;if(pn(i)&&!Ho(i))return!0;switch(i.type){case"StringLiteralTypeAnnotation":case"SequenceExpression":return!0;case"TSConditionalType":case"ConditionalTypeAnnotation":if(!t.experimentalTernaries&&!SL(i))break;return!0;case"ConditionalExpression":{if(!t.experimentalTernaries){let{test:l}=i;return pn(l)&&!Ho(l)}let{consequent:o,alternate:u}=i;return o.type==="ConditionalExpression"||u.type==="ConditionalExpression"}case"ClassExpression":return Pe(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!!(Ze(s)||e.call(()=>Uv(e,t,r),...a))}function DL(e){if(jv(e)){let t=e.left||e.id;return t.type==="ObjectPattern"&&t.properties.length>2&&t.properties.some(r=>{var n;return pi(r)&&(!r.shorthand||((n=r.value)==null?void 0:n.type)==="AssignmentPattern")})}return!1}function vl(e){return e.type==="AssignmentExpression"}function jv(e){return vl(e)||e.type==="VariableDeclarator"}function EL(e){let t=xL(e);if(Pe(t)){let r=e.type==="TSTypeAliasDeclaration"?"constraint":"bound";if(t.length>1&&t.some(n=>n[r]||n.default))return!0}return!1}function xL(e){var t;if(Fd(e))return(t=e.typeParameters)==null?void 0:t.params}function CL(e){if(e.type!=="VariableDeclarator")return!1;let{typeAnnotation:t}=e.id;if(!t||!t.typeAnnotation)return!1;let r=D1(t.typeAnnotation);return Pe(r)&&r.length>1&&r.some(n=>Pe(D1(n))||n.type==="TSConditionalType")}function Rv(e){var t;return e.type==="VariableDeclarator"&&((t=e.init)==null?void 0:t.type)==="ArrowFunctionExpression"}function D1(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 Uv(e,t,r,n=!1){var a;let{node:i}=e,s=()=>Uv(e,t,r,!0);if(i.type==="ChainExpression"||i.type==="TSNonNullExpression")return e.call(s,"expression");if(Ee(i)){if((a=ac(e,t,r).label)!=null&&a.memberChain)return!1;let o=Jt(i);return!(o.length===0||o.length===1&&qm(o[0],t))||AL(i,r)?!1:e.call(s,"callee")}return we(i)?e.call(s,"object"):n&&(i.type==="Identifier"||i.type==="ThisExpression")}function vL(e,t,r){return pi(e)?(t=ey(t),typeof t=="string"&&Xs(t)1)return!0;if(r.length===1){let i=r[0];if(Mr(i)||cu(i)||i.type==="TSTypeLiteral"||i.type==="ObjectTypeAnnotation")return!0}let n=e.typeParameters?"typeParameters":"typeArguments";if(yt(t(n)))return!0}return!1}function TL(e){var t;return(t=e.typeParameters??e.typeArguments)==null?void 0:t.params}function E1(e){switch(e.type){case"FunctionTypeAnnotation":case"GenericTypeAnnotation":case"TSFunctionType":return!!e.typeParameters;case"TSTypeReference":return!!e.typeArguments;default:return!1}}function SL(e){return E1(e.checkType)||E1(e.extendsType)}var Al=new WeakMap;function zv(e){return/^(?:\d+|\d+\.\d+)$/u.test(e)}function x1(e,t){return t.parser==="json"||t.parser==="jsonc"||!Ze(e.key)||Qs(kt(e.key),t).slice(1,-1)!==e.key.value?!1:!!(z5(e.key.value)&&!(t.parser==="babel-ts"&&e.type==="ClassProperty"||(t.parser==="typescript"||t.parser==="oxc-ts")&&e.type==="PropertyDefinition")||zv(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 FL(e,t){let{key:r}=e.node;return(r.type==="Identifier"||Or(r)&&zv(ea(kt(r)))&&String(r.value)===ea(kt(r))&&!(t.parser==="typescript"||t.parser==="babel-ts"||t.parser==="oxc-ts"))&&(t.parser==="json"||t.parser==="jsonc"||t.quoteProps==="consistent"&&Al.get(e.parent))}function du(e,t,r){let{node:n}=e;if(n.computed)return["[",r("key"),"]"];let{parent:i}=e,{key:s}=n;if(t.quoteProps==="consistent"&&!Al.has(i)){let a=e.siblings.some(o=>!o.computed&&Ze(o.key)&&!x1(o,t));Al.set(i,a)}if(FL(e,t)){let a=Qs(JSON.stringify(s.type==="Identifier"?s.name:s.value.toString()),t);return e.call(()=>rr(e,a,t),"key")}return x1(n,t)&&(t.quoteProps==="as-needed"||t.quoteProps==="consistent"&&!Al.get(i))?e.call(()=>rr(e,/^\d/u.test(s.value)?ea(s.value):s.value,t),"key"):r("key")}function nh(e,t,r){let{node:n}=e;return n.shorthand?r("value"):hu(e,t,r,du(e,t,r),":","value")}var bL=({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"&&lu(r));function Vv(e,t,r,n){if(bL(e))return iy(e,t,r);let{node:i}=e,s=!1;if((i.type==="FunctionDeclaration"||i.type==="FunctionExpression")&&(n!=null&&n.expandLastArg)){let{parent:c}=e;Ee(c)&&(Jt(c).length>1||ht(i).every(p=>p.type==="Identifier"&&!p.typeAnnotation))&&(s=!0)}let a=[qt(e),i.async?"async ":"",`function${i.generator?"*":""} `,i.id?r("id"):""],o=rs(e,t,r,s),u=Hc(e,r),l=da(i,u);return a.push(r("typeParameters"),w([l?w(o):o,u]),i.body?" ":"",r("body")),t.semi&&(i.declare||!i.body)&&a.push(";"),a}function Ld(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(du(e,t,r),n.optional?"?":"",n===s?iy(e,t,r):r("value")),a}function iy(e,t,r){let{node:n}=e,i=rs(e,t,r),s=Hc(e,r),a=O5(n),o=da(n,s),u=[r("typeParameters"),w([a?w(i,{shouldBreak:!0}):o?w(i):i,s])];return n.body?u.push(" ",r("body")):u.push(t.semi?";":""),u}function wL(e){let t=ht(e);return t.length===1&&!e.typeParameters&&!z(e,W.Dangling)&&t[0].type==="Identifier"&&!t[0].typeAnnotation&&!z(t[0])&&!t[0].optional&&!e.predicate&&!e.returnType}function qv(e,t){if(t.arrowParens==="always")return!1;if(t.arrowParens==="avoid"){let{node:r}=e;return wL(r)}return!1}function Hc(e,t){let{node:r}=e,n=[nt(e,t,"returnType")];return r.predicate&&n.push(t("predicate")),n}function Hv(e,t,r){let{node:n}=e,i=[];if(n.argument){let o=r("argument");NL(t,n.argument)?o=["(",L([O,o]),O,")"]:(pn(n.argument)||t.experimentalTernaries&&n.argument.type==="ConditionalExpression"&&(n.argument.consequent.type==="ConditionalExpression"||n.argument.alternate.type==="ConditionalExpression"))&&(o=w([ie("("),L([_,o]),_,ie(")")])),i.push(" ",o)}let s=z(n,W.Dangling),a=t.semi&&s&&z(n,W.Last|W.Line);return a&&i.push(";"),s&&i.push(" ",be(e,t)),!a&&t.semi&&i.push(";"),i}function PL(e,t,r){return["return",Hv(e,t,r)]}function kL(e,t,r){return["throw",Hv(e,t,r)]}function NL(e,t){if(Dr(e.originalText,t)||z(t,W.Leading,r=>Vt(e.originalText,he(r),ce(r)))&&!Ye(t))return!0;if(Um(t)){let r=t,n;for(;n=U6(r);)if(r=n,Dr(e.originalText,r))return!0}return!1}function BL(e,t){if(t.semi||Jv(e,t)||Kv(e,t)||Xv(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(()=>Wv(e,t),"expression"))}function Wv(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(!qv(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(Ye(r))return!0}return mi(e,t)?!0:Um(r)?e.call(()=>Wv(e,t),...MC(r)):!1}var sy=({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 Jv(e,t){return(t.parentParser==="markdown"||t.parentParser==="mdx")&&sy(e)&&Ye(e.node.expression)}function Xv(e,t){return t.__isHtmlInlineEventHandler&&sy(e)}function Kv(e,t){return(t.parser==="__vue_event_binding"||t.parser==="__vue_ts_event_binding")&&sy(e)}var IL=class extends Error{constructor(r,n,i="type"){super(`Unexpected ${n} node ${i}: ${JSON.stringify(r[i])}.`);U(this,"name","UnexpectedNodeError");this.node=r}},fa=IL;function _L(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var Xt,lc,Gv,cD,LL=(cD=class{constructor(t){yi(this,lc);yi(this,Xt,void 0);np(this,Xt,new Set(t))}getLeadingWhitespaceCount(t){let r=et(this,Xt),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 et(this,Xt).has(t.charAt(0))}hasTrailingWhitespace(t){return et(this,Xt).has(Ce(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=`[${_L([...et(this,Xt)].join(""))}]+`,i=new RegExp(r?`(${n})`:n,"u");return t.split(i)}hasWhitespaceCharacter(t){let r=et(this,Xt);return Array.prototype.some.call(t,n=>r.has(n))}hasNonWhitespaceCharacter(t){let r=et(this,Xt);return Array.prototype.some.call(t,n=>!r.has(n))}isWhitespaceOnly(t){let r=et(this,Xt);return Array.prototype.every.call(t,n=>r.has(n))}dedentString(t){let r=Sn(this,lc,Gv).call(this,t);return r===0?t:t.split(` +`)+s}function w5(e){if(!Ar(e))return!1;let t=`*${e.value}*`.split(` +`);return t.length>1&&t.every(r=>r.trimStart()[0]==="*")}var rh=new WeakMap;function P5(e){return rh.has(e)||rh.set(e,w5(e)),rh.get(e)}var k5=P5;function N5(e,t){let r=e.node;if(uu(r))return t.originalText.slice(he(r),ce(r)).trimEnd();if(k5(r))return B5(r);if(Ar(r))return["/*",Ui(r.value),"*/"];throw new Error("Not a comment: "+JSON.stringify(r))}function B5(e){let t=e.value.split(` +`);return["/*",fe(M,t.map((r,n)=>n===0?r.trimEnd():" "+(ny.type==="ForOfStatement"))==null?void 0:a.left;if(f&&yt(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&&yt(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=>!mr(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&&yt(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"&&yt(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"&&Pe(r.decorators)))return!0;break;case"ExportDefaultDeclaration":return kv(e,t)||r.type==="SequenceExpression";case"Decorator":if(n==="expression"&&!O5(r))return!0;break;case"TypeAnnotation":if(e.match(void 0,void 0,(f,y)=>y==="returnType"&&f.type==="ArrowFunctionExpression")&&L5(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"&&_5(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!mr(r);case"ConditionalExpression":return mr(r)||Y6(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"||mr(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=rc(f),g=i.operator,m=rc(g);return!!(m>x||n==="right"&&m===x||m===x&&!Hm(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"&&si(r)&&i.type===r.type||n==="checkType"&&si(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(Or(i)||cu(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&&dt(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"&&we(i)&&Mr(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(M5(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"&&we(i);case"NGPipeExpression":return!(i.type==="NGRoot"||i.type==="NGMicrosyntaxExpression"||i.type==="ObjectProperty"&&!((d=r.extra)!=null&&d.parenthesized)||ot(i)||n==="arguments"&&Ee(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==="<"||!ot(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"&&!Ee(i)&&!hi(i)&&i.type!=="ReturnStatement"&&i.type!=="ThrowStatement"&&i.type!=="TypeCastExpression"&&i.type!=="VariableDeclarator"&&i.type!=="YieldExpression"&&i.type!=="MatchExpressionCase";case"TSInstantiationExpression":return n==="object"&&we(i);case"MatchOrPattern":return i.type==="MatchAsPattern"}return!1}var I5=oe(["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 _5(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 L5(e){return Td(e,t=>t.type==="ObjectTypeAnnotation"&&Td(t,r=>r.type==="FunctionTypeAnnotation"))}function $5(e){return xr(e)}function Ga(e){let{parent:t,key:r}=e;switch(t.type){case"NGPipeExpression":if(r==="arguments"&&e.isLast)return e.callParent(Ga);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(Ga);break;case"ConditionalExpression":if(r==="alternate")return e.callParent(Ga);break;case"UnaryExpression":if(t.prefix)return e.callParent(Ga);break}return!1}function kv(e,t){let{node:r,parent:n}=e;return r.type==="FunctionExpression"||r.type==="ClassExpression"?n.type==="ExportDefaultDeclaration"||!Nd(e,t):!Um(r)||n.type!=="ExportDefaultDeclaration"&&Nd(e,t)?!1:e.call(()=>kv(e,t),...VC(r))}function M5(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 Bd(e){return e.type==="Identifier"?!0:we(e)?!e.computed&&!e.optional&&e.property.type==="Identifier"&&Bd(e.object):!1}function O5(e){return e.type==="ChainExpression"&&(e=e.expression),Bd(e)||Ee(e)&&!e.optional&&Bd(e.callee)}var yi=Nd;function j5(e,t){let r=t-1;r=Ks(e,r,{backwards:!0}),r=Gs(e,r,{backwards:!0}),r=Ks(e,r,{backwards:!0});let n=Gs(e,r,{backwards:!0});return r!==n}var R5=j5,U5=()=>!0;function ry(e,t){let r=e.node;return r.printed=!0,t.printer.printComment(e,t)}function z5(e,t){var l;let r=e.node,n=[ry(e,t)],{printer:i,originalText:s,locStart:a,locEnd:o}=t;if((l=i.isBlockComment)!=null&&l.call(i,r)){let c=kt(s,o(r))?kt(s,a(r),{backwards:!0})?M:V:" ";n.push(c)}else n.push(M);let u=Gs(s,Ks(s,o(r)));return u!==!1&&kt(s,u)&&n.push(M),n}function V5(e,t,r){var l;let n=e.node,i=ry(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)||kt(a,o(n),{backwards:!0})){let c=R5(a,o(n));return{doc:p1([M,c?M:"",i]),isBlock:u,hasLineSuffix:!0}}return!u||r!=null&&r.hasLineSuffix?{doc:[p1([" ",i]),dn],isBlock:u,hasLineSuffix:!0}:{doc:[" ",i],isBlock:u,hasLineSuffix:!1}}function be(e,t,r={}){let{node:n}=e;if(!Pe(n==null?void 0:n.comments))return"";let{indent:i=!1,marker:s,filter:a=U5}=r,o=[];if(e.each(({node:l})=>{l.leading||l.trailing||l.marker!==s||!a(l)||o.push(ry(e,t))},"comments"),o.length===0)return"";let u=fe(M,o);return i?L([M,u]):u}function zc(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(z5(e,t)):l&&(a=V5(e,t,a),s.push(a.doc))},"comments"),{leading:i,trailing:s}}function rr(e,t,r){let{leading:n,trailing:i}=zc(e,r);return!n&&!i?t:wd(t,s=>[n,s,i])}var sc=class extends Error{constructor(){super(...arguments);U(this,"name","ArgExpansionBailout")}};function rs(e,t,r,n,i){let s=e.node,a=dt(s),o=i&&s.typeParameters?r("typeParameters"):"";if(a.length===0)return[o,"(",be(e,t,{filter:d=>Cr(t.originalText,ce(d))===")"}),")"];let{parent:u}=e,l=Rc(u),c=Nv(s),p=[];if(d_(e,(d,f)=>{let y=f===a.length-1;y&&s.rest&&p.push("..."),p.push(r()),!y&&(p.push(","),l||c?p.push(" "):Vr(a[f],t)?p.push(M,M):p.push(V))}),n&&!H5(e)){if(gt(o)||gt(p))throw new sc;return w([ic(o),"(",ic(p),")"])}let h=a.every(d=>!Pe(d.decorators));return c&&h?[o,"(",...p,")"]:l?[o,"(",...p,")"]:(WC(u)||r_(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&&Vm(a[0].typeAnnotation)&&!s.rest?t.arrowParens==="always"||s.type==="HookTypeAnnotation"?["(",...p,")"]:p:[o,"(",L([_,...p]),ie(!h_(s)&&zr(t,"all")?",":""),_,")"]}function Nv(e){if(!e)return!1;let t=dt(e);if(t.length!==1)return!1;let[r]=t;return!z(r)&&(r.type==="ObjectPattern"||r.type==="ArrayPattern"||r.type==="Identifier"&&r.typeAnnotation&&(r.typeAnnotation.type==="TypeAnnotation"||r.typeAnnotation.type==="TSTypeAnnotation")&&ii(r.typeAnnotation.typeAnnotation)||r.type==="FunctionTypeParam"&&ii(r.typeAnnotation)&&r!==e.rest||r.type==="AssignmentPattern"&&(r.left.type==="ObjectPattern"||r.left.type==="ArrayPattern")&&(r.right.type==="Identifier"||xr(r.right)&&r.right.properties.length===0||ot(r.right)&&r.right.elements.length===0))}function q5(e){let t;return e.returnType?(t=e.returnType,t.typeAnnotation&&(t=t.typeAnnotation)):e.typeAnnotation&&(t=e.typeAnnotation),t}function da(e,t){var i;let r=q5(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 dt(e).length===1&&(ii(r)||gt(t))}function H5(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 W5(e){let t=dt(e);return t.length>1&&t.some(r=>r.type==="TSParameterProperty")}function mo(e,t){return(t==="params"||t==="this"||t==="rest")&&Nv(e)}function Et(e){let{node:t}=e;return!t.optional||t.type==="Identifier"&&t===e.parent.key?"":Ee(t)||we(t)&&t.computed||t.type==="OptionalIndexedAccessType"?"?.":"?"}function Bv(e){return e.node.definite||e.match(void 0,(t,r)=>r==="id"&&t.type==="VariableDeclarator"&&t.definite)?"!":""}var J5=oe(["DeclareClass","DeclareComponent","DeclareFunction","DeclareHook","DeclareVariable","DeclareExportDeclaration","DeclareExportAllDeclaration","DeclareOpaqueType","DeclareTypeAlias","DeclareEnum","DeclareInterface"]);function qt(e){let{node:t}=e;return t.declare||J5(t)&&e.parent.type!=="DeclareExportDeclaration"?"declare ":""}var X5=oe(["TSAbstractMethodDefinition","TSAbstractPropertyDefinition","TSAbstractAccessorProperty"]);function Vc({node:e}){return e.abstract||X5(e)?"abstract ":""}function Pn(e,t,r){return e.type==="EmptyStatement"?z(e,W.Leading)?[" ",t]:t:e.type==="BlockStatement"||r?[" ",t]:L([V,t])}function qc(e){return e.accessibility?e.accessibility+" ":""}var K5=/^[\$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]*$/,G5=e=>K5.test(e),Q5=G5;function Y5(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 ea=Y5,Z5=0;function Iv(e,t,r){var E;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==="|>"&&((E=e.root.extra)==null?void 0:E.__isUsingHackPipeline),l=Id(e,t,r,!1,o);if(o)return l;if(u)return w(l);if(a==="callee"&&(Ee(i)||i.type==="NewExpression")||i.type==="UnaryExpression"||we(i)&&!i.computed)return w([L([_,...l]),_]);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"&&!Ee(s)&&s.type!=="NewExpression"||i.type==="TemplateLiteral"||tL(e),p=i.type==="AssignmentExpression"||i.type==="VariableDeclarator"||i.type==="ClassProperty"||i.type==="PropertyDefinition"||i.type==="TSAbstractPropertyDefinition"||i.type==="ClassPrivateProperty"||hi(i),h=pn(n.left)&&Hm(n.operator,n.left.operator);if(c||Ho(n)&&!h||!Ho(n)&&p)return w(l);if(l.length===0)return"";let d=Ze(n.right),f=l.findIndex(A=>typeof A!="string"&&!Array.isArray(A)&&A.type===ar),y=l.slice(0,f===-1?1:f+1),x=l.slice(y.length,d?-1:void 0),g=Symbol("logicalChain-"+ ++Z5),m=w([...y,L(x)],{id:g});if(!d)return m;let D=Ce(0,l,-1);return w([m,qo(D,{groupId:g})])}function Id(e,t,r,n,i){var x;let{node:s}=e;if(!pn(s))return[w(r())];let a=[];Hm(s.operator,s.left.operator)?a=e.call(()=>Id(e,t,r,!0,i),"left"):a.push(w(r("left")));let o=Ho(s),u=s.right.type==="ChainExpression"?s.right.expression:s.right,l=(s.operator==="|>"||s.type==="NGPipeExpression"||eL(e,t))&&!Dr(t.originalText,u),c=!z(u,W.Leading,tv)&&Dr(t.originalText,u),p=s.type==="NGPipeExpression"?"|":s.operator,h=s.type==="NGPipeExpression"&&s.arguments.length>0?w(L([_,": ",fe([V,": "],e.map(()=>vr(2,w(r())),"arguments"))])):"",d;if(o)d=[p,Dr(t.originalText,u)?L([V,r("right"),h]):[" ",r("right"),h]];else{let g=p==="|>"&&((x=e.root.extra)!=null&&x.__isUsingHackPipeline)?e.call(()=>Id(e,t,r,!0,i),"right"):r("right");if(t.experimentalOperatorPosition==="start"){let m="";if(c)switch(mi(g)){case hn:m=g.splice(0,1)[0];break;case An:m=g.contents.splice(0,1)[0];break}d=[V,m,p," ",g,h]}else d=[l?V:"",p,l?" ":V,g,h]}let{parent:f}=e,y=z(s.left,W.Trailing|W.Line);if((y||!(i&&s.type==="LogicalExpression")&&f.type!==s.type&&s.left.type!==s.type&&s.right.type!==s.type)&&(d=w(d,{shouldBreak:y})),t.experimentalOperatorPosition==="start"?a.push(o||c?" ":"",d):a.push(l?"":" ",d),n&&z(s)){let g=ey(rr(e,a,t));return g.type===di?g.parts:Array.isArray(g)?g:[g]}return a}function Ho(e){return e.type!=="LogicalExpression"?!1:!!(xr(e.right)&&e.right.properties.length>0||ot(e.right)&&e.right.elements.length>0||Ze(e.right))}var y1=e=>e.type==="BinaryExpression"&&e.operator==="|";function eL(e,t){return(t.parser==="__vue_expression"||t.parser==="__vue_ts_expression")&&y1(e.node)&&!e.hasAncestor(r=>!y1(r)&&r.type!=="JsExpressionRoot")}function tL(e){if(e.key!=="arguments")return!1;let{parent:t}=e;if(!(Ee(t)&&!t.optional&&t.arguments.length===1))return!1;let{callee:r}=t;return r.type==="Identifier"&&r.name==="Boolean"}function _v(e,t,r){let{node:n}=e,{parent:i}=e,s=i.type!=="TypeParameterInstantiation"&&(!si(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)&&!((Fd(i)||i.type==="VariableDeclarator")&&Dr(t.originalText,n))&&!(Fd(i)&&z(i.id,W.Trailing|W.Line)),a=Lv(n),o=e.map(()=>{let d=r();return a||(d=vr(2,d)),rr(e,d,t)},"types"),u="",l="";if(ZC(e)&&({leading:u,trailing:l}=zc(e,t)),a)return[u,fe(" | ",o),l];let c=s&&!Dr(t.originalText,n),p=[ie([c?V:"","| "]),fe([V,"| "],o)];if(yi(e,t))return[u,w([L(p),_]),l];let h=[u,w(p)];return(i.type==="TupleTypeAnnotation"||i.type==="TSTupleType")&&i[i.type==="TupleTypeAnnotation"&&i.types?"types":"elementTypes"].length>1?[w([L([ie(["(",_]),h]),_,ie(")")]),l]:[w(s?L(h):h),l]}var rL=oe(["VoidTypeAnnotation","TSVoidKeyword","NullLiteralTypeAnnotation","TSNullKeyword"]),nL=oe(["ObjectTypeAnnotation","TSTypeLiteral","GenericTypeAnnotation","TSTypeReference"]);function Lv(e){let{types:t}=e;if(t.some(n=>z(n)))return!1;let r=t.find(n=>nL(n));return r?t.every(n=>n===r||rL(n)):!1}function iL(e){return Vm(e)||ii(e)?!0:Or(e)?Lv(e):!1}var sL=new WeakSet;function it(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($v,r);(s==="=>"||s===":"&&z(n,W.Leading))&&(i=!0),sL.add(n)}return i?[" ",t(r)]:t(r)}var $v=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 Mv(e,t,r){let n=$v(e);return n?[n," ",r("typeAnnotation")]:r("typeAnnotation")}function aL(e,t,r,n){let{node:i}=e,s=i.inexact?"...":"";return z(i,W.Dangling)?w([r,s,be(e,t,{indent:!0}),_,n]):[r,s,n]}function ny(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(aL(e,t,s,a));else{let l=Ce(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(!ot(x)&&!xr(x))return!1;let E=m[g+1];if(E&&D!==E.type)return!1;let A=ot(x)?"elements":"properties";return x[A]&&x[A].length>1}),f=Ov(n,t),y=c?p?",":zr(t)?f?ie(",","",{groupId:h}):ie(","):"":"";i.push(w([s,L([_,f?uL(e,t,r,y):[oL(e,t,r,o,n.inexact),y],be(e,t)]),_,a],{shouldBreak:d,id:h}))}return i.push(Et(e),it(e,r)),i}function Ov(e,t){return ot(e)&&e.elements.length>0&&e.elements.every(r=>r&&(Mr(r)||qC(r)&&!z(r.argument))&&!z(r,W.Trailing|W.Line,n=>!kt(t.originalText,he(n),{backwards:!0})))}function jv({node:e},{originalText:t}){let r=ce(e);if(r===he(e))return!1;let{length:n}=t;for(;r{s.push(a?w(r()):""),(!o||i)&&s.push([",",V,a&&jv(e,t)?_:""])},n),i&&s.push("..."),s}function uL(e,t,r,n){let i=[];return e.each(({isLast:s,next:a})=>{i.push([r(),s?n:","]),s||i.push(jv(e,t)?[M,M]:z(a,W.Leading|W.Line)?M:V)},"elements"),yv(i)}function lL(e,t,r){let{node:n}=e,i=Jt(n);if(i.length===0)return["(",be(e,t),")"];let s=i.length-1;if(hL(i)){let p=["("];return nc(e,(h,d)=>{p.push(r()),d!==s&&p.push(", ")}),p.push(")"),p}let a=!1,o=[];nc(e,({node:p},h)=>{let d=r();h===s||(Vr(p,t)?(a=!0,d=[d,",",M,M]):d=[d,",",V]),o.push(d)});let u=!t.parser.startsWith("__ng_")&&n.type!=="ImportExpression"&&n.type!=="TSImportType"&&n.type!=="TSExternalModuleReference"&&zr(t,"all")?",":"";function l(){return w(["(",L([V,...o]),u,V,")"],{shouldBreak:!0})}if(a||e.parent.type!=="Decorator"&&u_(i))return l();if(pL(i)){let p=o.slice(1);if(p.some(gt))return l();let h;try{h=r(o1(n,0),{expandFirstArg:!0})}catch(d){if(d instanceof sc)return l();throw d}return gt(h)?[dn,ki([["(",w(h,{shouldBreak:!0}),", ",...p,")"],l()])]:ki([["(",h,", ",...p,")"],["(",w(h,{shouldBreak:!0}),", ",...p,")"],l()])}if(cL(i,o,t)){let p=o.slice(0,-1);if(p.some(gt))return l();let h;try{h=r(o1(n,-1),{expandLastArg:!0})}catch(d){if(d instanceof sc)return l();throw d}return gt(h)?[dn,ki([["(",...p,w(h,{shouldBreak:!0}),")"],l()])]:ki([["(",...p,h,")"],["(",...p,w(h,{shouldBreak:!0}),")"],l()])}let c=["(",L([_,...o]),ie(u),_,")"];return QC(e)?c:w(c,{shouldBreak:o.some(gt)||a})}function yo(e,t=!1){return xr(e)&&(e.properties.length>0||z(e))||ot(e)&&(e.elements.length>0||z(e))||e.type==="TSTypeAssertion"&&yo(e.expression)||mr(e)&&yo(e.expression)||e.type==="FunctionExpression"||e.type==="ArrowFunctionExpression"&&(!e.returnType||!e.returnType.typeAnnotation||e.returnType.typeAnnotation.type!=="TSTypeReference"||dL(e.body))&&(e.body.type==="BlockStatement"||e.body.type==="ArrowFunctionExpression"&&yo(e.body,!0)||xr(e.body)||ot(e.body)||!t&&(Ee(e.body)||e.body.type==="ConditionalExpression")||Ze(e.body))||e.type==="DoExpression"||e.type==="ModuleExpression"}function cL(e,t,r){var s,a;let n=Ce(0,e,-1);if(e.length===1){let o=Ce(0,t,-1);if((s=o.label)!=null&&s.embed&&((a=o.label)==null?void 0:a.hug)!==!1)return!0}let i=Ce(0,e,-2);return!z(n,W.Leading)&&!z(n,W.Trailing)&&yo(n)&&(!i||i.type!==n.type)&&(e.length!==2||i.type!=="ArrowFunctionExpression"||!ot(n))&&!(e.length>1&&Ov(n,r))}function pL(e){if(e.length!==2)return!1;let[t,r]=e;return t.type==="ModuleExpression"&&fL(r)?!0:!z(t)&&(t.type==="FunctionExpression"||t.type==="ArrowFunctionExpression"&&t.body.type==="BlockStatement")&&r.type!=="FunctionExpression"&&r.type!=="ArrowFunctionExpression"&&r.type!=="ConditionalExpression"&&Rv(r)&&!yo(r)}function Rv(e){if(e.type==="ParenthesizedExpression")return Rv(e.expression);if(mr(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 Vm(t)&&dr(e.expression,1)}return Zs(e)&&Jt(e).length>1?!1:pn(e)?dr(e.left,1)&&dr(e.right,1):HC(e)||dr(e)}function hL(e){return e.length===2?g1(e,0):e.length===3?e[0].type==="Identifier"&&g1(e,1):!1}function g1(e,t){let r=e[t],n=e[t+1];return r.type==="ArrowFunctionExpression"&&dt(r).length===0&&r.body.type==="BlockStatement"&&n.type==="ArrayExpression"&&!e.some(i=>z(i))}function dL(e){return e.type==="BlockStatement"&&(e.body.some(t=>t.type!=="EmptyStatement")||z(e,W.Dangling))}function fL(e){if(!(e.type==="ObjectExpression"&&e.properties.length===1))return!1;let[t]=e.properties;return hi(t)?!t.computed&&(t.key.type==="Identifier"&&t.key.name==="type"||et(t.key)&&t.key.value==="type")&&et(t.value)&&t.value.value==="module":!1}var _d=lL;function mL(e,t,r){return[r("object"),w(L([_,Uv(e,t,r)]))]}function Uv(e,t,r){return["::",r("callee")]}var yL=e=>((e.type==="ChainExpression"||e.type==="TSNonNullExpression")&&(e=e.expression),Ee(e)&&Jt(e).length>0);function gL(e){let{node:t,ancestors:r}=e;for(let n of r){if(!(we(n)&&n.object===t||n.type==="TSNonNullExpression"&&n.expression===t))return n.type==="NewExpression"&&n.callee===t;t=n}return!1}function DL(e,t,r){var l;let n=r("object"),i=zv(e,t,r),{node:s}=e,a=e.findAncestor(c=>!(we(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"||gL(e)||s.computed||s.object.type==="Identifier"&&s.property.type==="Identifier"&&!we(o)||(o.type==="AssignmentExpression"||o.type==="VariableDeclarator")&&(yL(s.object)||((l=n.label)==null?void 0:l.memberChain));return pu(n.label,[n,u?i:w(L([_,i]))])}function zv(e,t,r){let n=r("property"),{node:i}=e,s=Et(e);return i.computed?!i.property||Mr(i.property)?[s,"[",n,"]"]:w([s,"[",L([_,n]),_,"]"]):[s,".",n]}function Vv(e,t,r){if(e.node.type==="ChainExpression")return e.call(()=>Vv(e,t,r),"expression");let n=(e.parent.type==="ChainExpression"?e.grandparent:e.parent).type==="ExpressionStatement",i=[];function s(N){let{originalText:Q}=t,H=ca(Q,ce(N));return Q.charAt(H)===")"?H!==!1&&Om(Q,H+1):Vr(N,t)}function a(){let{node:N}=e;if(N.type==="ChainExpression")return e.call(a,"expression");if(Ee(N)&&(cs(N.callee)||Ee(N.callee))){let Q=s(N);i.unshift({node:N,hasTrailingEmptyLine:Q,printed:[rr(e,[Et(e),r("typeArguments"),_d(e,t,r)],t),Q?M:""]}),e.call(a,"callee")}else cs(N)?(i.unshift({node:N,needsParens:yi(e,t),printed:rr(e,we(N)?zv(e,t,r):Uv(e,t,r),t)}),e.call(a,"object")):N.type==="TSNonNullExpression"?(i.unshift({node:N,printed:rr(e,"!",t)}),e.call(a,"expression")):i.unshift({node:N,printed:r()})}let{node:o}=e;i.unshift({node:o,printed:[Et(e),r("typeArguments"),_d(e,t,r)]}),o.callee&&e.call(a,"callee");let u=[],l=[i[0]],c=1;for(;c0&&u.push(l);function h(N){return/^[A-Z]|^[$_]+$/u.test(N)}function d(N){return N.length<=t.tabWidth}function f(N){var ne;let Q=(ne=N[1][0])==null?void 0:ne.node.computed;if(N[0].length===1){let ge=N[0][0].node;return ge.type==="ThisExpression"||ge.type==="Identifier"&&(h(ge.name)||n&&d(ge.name)||Q)}let H=Ce(0,N[0],-1).node;return we(H)&&H.property.type==="Identifier"&&(h(H.property.name)||Q)}let y=u.length>=2&&!z(u[1][0].node)&&f(u);function x(N){let Q=N.map(H=>H.printed);return N.length>0&&Ce(0,N,-1).needsParens?["(",...Q,")"]:Q}function g(N){return N.length===0?"":L([M,fe(M,N.map(x))])}let m=u.map(x),D=m,E=y?3:2,A=u.flat(),F=A.slice(1,-1).some(N=>z(N.node,W.Leading))||A.slice(0,-1).some(N=>z(N.node,W.Trailing))||u[E]&&z(u[E][0].node,W.Leading);if(u.length<=E&&!F&&!u.some(N=>Ce(0,N,-1).hasTrailingEmptyLine))return QC(e)?D:w(D);let k=Ce(0,u[y?1:0],-1).node,b=!Ee(k)&&s(k),O=[x(u[0]),y?u.slice(1,2).map(x):"",b?M:"",g(u.slice(y?2:1))],P=i.map(({node:N})=>N).filter(Ee);function j(){let N=Ce(0,Ce(0,u,-1),-1).node,Q=Ce(0,m,-1);return Ee(N)&>(Q)&&P.slice(0,-1).some(H=>H.arguments.some(zo))}let Y;return F||P.length>2&&P.some(N=>!N.arguments.every(Q=>dr(Q)))||m.slice(0,-1).some(gt)||j()?Y=w(O):Y=[gt(D)||b?dn:"",ki([D,O])],pu({memberChain:!0},Y)}var EL=Vv;function ac(e,t,r){var p;let{node:n}=e,i=n.type==="NewExpression",s=Et(e),a=Jt(n),o=n.type!=="TSImportType"&&n.typeArguments?r("typeArguments"):"",u=a.length===1&&KC(a[0],t.originalText);if(u||CL(e)||vL(e)||Rc(n,e.parent)){let h=[];if(nc(e,()=>{h.push(r())}),!(u&&((p=h[0].label)!=null&&p.embed)))return[i?"new ":"",D1(e,r),s,o,"(",fe(", ",h),")"]}let l=n.type==="ImportExpression"||n.type==="TSImportType"||n.type==="TSExternalModuleReference";if(!l&&!i&&cs(n.callee)&&!e.call(()=>yi(e,t),"callee",...n.callee.type==="ChainExpression"?["expression"]:[]))return EL(e,t,r);let c=[i?"new ":"",D1(e,r),s,o,_d(e,t,r)];return l||Ee(n.callee)?w(c):c}function D1(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 xL=["require","require.resolve","require.resolve.paths","import.meta.resolve"];function CL(e){let{node:t}=e;if(!(t.type==="ImportExpression"||t.type==="TSImportType"||t.type==="TSExternalModuleReference"||t.type==="CallExpression"&&!t.optional&&jm(t.callee,xL)))return!1;let r=Jt(t);return r.length===1&&et(r[0])&&!z(r[0])}function vL(e){let{node:t}=e;if(t.type!=="CallExpression"||t.optional||t.callee.type!=="Identifier")return!1;let r=Jt(t);return t.callee.name==="require"?(r.length===1&&et(r[0])||r.length>1)&&!z(r[0]):t.callee.name==="define"&&e.parent.type==="ExpressionStatement"?r.length===1||r.length===2&&r[0].type==="ArrayExpression"||r.length===3&&et(r[0])&&r[1].type==="ArrayExpression":!1}function hu(e,t,r,n,i,s){let a=SL(e,t,r,n,s),o=s?r(s,{assignmentLayout:a}):"";switch(a){case"break-after-operator":return w([w(n),i,w(L([V,o]))]);case"never-break-after-operator":return w([w(n),i," ",o]);case"fluid":{let u=Symbol("assignment");return w([w(n),i,w(L(V),{id:u}),jr,qo(o,{groupId:u})])}case"break-lhs":return w([n,i," ",w(o)]);case"chain":return[w(n),i,V,o];case"chain-tail":return[w(n),i,L([V,o])];case"chain-tail-arrow-chain":return[w(n),i,o];case"only-left":return n}}function AL(e,t,r){let{node:n}=e;return hu(e,t,r,r("left"),[" ",n.operator],"right")}function TL(e,t,r){return hu(e,t,r,r("id")," =","init")}function SL(e,t,r,n,i){let{node:s}=e,a=s[i];if(!a)return"only-left";let o=!vl(a);if(e.match(vl,qv,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&&vl(a.right)||Dr(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=E9(n);if(bL(s)||kL(s)||Hv(s)&&u)return"break-lhs";let l=NL(s,n,t);return e.call(()=>FL(e,t,r,l),i)?"break-after-operator":wL(s)?"break-lhs":!u&&(l||a.type==="TemplateLiteral"||a.type==="TaggedTemplateExpression"||Z6(a)||Mr(a)||a.type==="ClassExpression")?"never-break-after-operator":"fluid"}function FL(e,t,r,n){let i=e.node;if(pn(i)&&!Ho(i))return!0;switch(i.type){case"StringLiteralTypeAnnotation":case"SequenceExpression":return!0;case"TSConditionalType":case"ConditionalTypeAnnotation":if(!t.experimentalTernaries&&!_L(i))break;return!0;case"ConditionalExpression":{if(!t.experimentalTernaries){let{test:l}=i;return pn(l)&&!Ho(l)}let{consequent:o,alternate:u}=i;return o.type==="ConditionalExpression"||u.type==="ConditionalExpression"}case"ClassExpression":return Pe(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!!(et(s)||e.call(()=>Wv(e,t,r),...a))}function bL(e){if(qv(e)){let t=e.left||e.id;return t.type==="ObjectPattern"&&t.properties.length>2&&t.properties.some(r=>{var n;return hi(r)&&(!r.shorthand||((n=r.value)==null?void 0:n.type)==="AssignmentPattern")})}return!1}function vl(e){return e.type==="AssignmentExpression"}function qv(e){return vl(e)||e.type==="VariableDeclarator"}function wL(e){let t=PL(e);if(Pe(t)){let r=e.type==="TSTypeAliasDeclaration"?"constraint":"bound";if(t.length>1&&t.some(n=>n[r]||n.default))return!0}return!1}function PL(e){var t;if(Fd(e))return(t=e.typeParameters)==null?void 0:t.params}function kL(e){if(e.type!=="VariableDeclarator")return!1;let{typeAnnotation:t}=e.id;if(!t||!t.typeAnnotation)return!1;let r=E1(t.typeAnnotation);return Pe(r)&&r.length>1&&r.some(n=>Pe(E1(n))||n.type==="TSConditionalType")}function Hv(e){var t;return e.type==="VariableDeclarator"&&((t=e.init)==null?void 0:t.type)==="ArrowFunctionExpression"}function E1(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 Wv(e,t,r,n=!1){var a;let{node:i}=e,s=()=>Wv(e,t,r,!0);if(i.type==="ChainExpression"||i.type==="TSNonNullExpression")return e.call(s,"expression");if(Ee(i)){if((a=ac(e,t,r).label)!=null&&a.memberChain)return!1;let o=Jt(i);return!(o.length===0||o.length===1&&qm(o[0],t))||BL(i,r)?!1:e.call(s,"callee")}return we(i)?e.call(s,"object"):n&&(i.type==="Identifier"||i.type==="ThisExpression")}function NL(e,t,r){return hi(e)?(t=ey(t),typeof t=="string"&&Xs(t)1)return!0;if(r.length===1){let i=r[0];if(Or(i)||cu(i)||i.type==="TSTypeLiteral"||i.type==="ObjectTypeAnnotation")return!0}let n=e.typeParameters?"typeParameters":"typeArguments";if(gt(t(n)))return!0}return!1}function IL(e){var t;return(t=e.typeParameters??e.typeArguments)==null?void 0:t.params}function x1(e){switch(e.type){case"FunctionTypeAnnotation":case"GenericTypeAnnotation":case"TSFunctionType":return!!e.typeParameters;case"TSTypeReference":return!!e.typeArguments;default:return!1}}function _L(e){return x1(e.checkType)||x1(e.extendsType)}var Al=new WeakMap;function Jv(e){return/^(?:\d+|\d+\.\d+)$/u.test(e)}function C1(e,t){return t.parser==="json"||t.parser==="jsonc"||!et(e.key)||Qs(Nt(e.key),t).slice(1,-1)!==e.key.value?!1:!!(Q5(e.key.value)&&!(t.parser==="babel-ts"&&e.type==="ClassProperty"||(t.parser==="typescript"||t.parser==="oxc-ts")&&e.type==="PropertyDefinition")||Jv(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 LL(e,t){let{key:r}=e.node;return(r.type==="Identifier"||Mr(r)&&Jv(ea(Nt(r)))&&String(r.value)===ea(Nt(r))&&!(t.parser==="typescript"||t.parser==="babel-ts"||t.parser==="oxc-ts"))&&(t.parser==="json"||t.parser==="jsonc"||t.quoteProps==="consistent"&&Al.get(e.parent))}function du(e,t,r){let{node:n}=e;if(n.computed)return["[",r("key"),"]"];let{parent:i}=e,{key:s}=n;if(t.quoteProps==="consistent"&&!Al.has(i)){let a=e.siblings.some(o=>!o.computed&&et(o.key)&&!C1(o,t));Al.set(i,a)}if(LL(e,t)){let a=Qs(JSON.stringify(s.type==="Identifier"?s.name:s.value.toString()),t);return e.call(()=>rr(e,a,t),"key")}return C1(n,t)&&(t.quoteProps==="as-needed"||t.quoteProps==="consistent"&&!Al.get(i))?e.call(()=>rr(e,/^\d/u.test(s.value)?ea(s.value):s.value,t),"key"):r("key")}function nh(e,t,r){let{node:n}=e;return n.shorthand?r("value"):hu(e,t,r,du(e,t,r),":","value")}var $L=({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"&&lu(r));function Xv(e,t,r,n){if($L(e))return iy(e,t,r);let{node:i}=e,s=!1;if((i.type==="FunctionDeclaration"||i.type==="FunctionExpression")&&(n!=null&&n.expandLastArg)){let{parent:c}=e;Ee(c)&&(Jt(c).length>1||dt(i).every(p=>p.type==="Identifier"&&!p.typeAnnotation))&&(s=!0)}let a=[qt(e),i.async?"async ":"",`function${i.generator?"*":""} `,i.id?r("id"):""],o=rs(e,t,r,s),u=Hc(e,r),l=da(i,u);return a.push(r("typeParameters"),w([l?w(o):o,u]),i.body?" ":"",r("body")),t.semi&&(i.declare||!i.body)&&a.push(";"),a}function Ld(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(du(e,t,r),n.optional?"?":"",n===s?iy(e,t,r):r("value")),a}function iy(e,t,r){let{node:n}=e,i=rs(e,t,r),s=Hc(e,r),a=W5(n),o=da(n,s),u=[r("typeParameters"),w([a?w(i,{shouldBreak:!0}):o?w(i):i,s])];return n.body?u.push(" ",r("body")):u.push(t.semi?";":""),u}function ML(e){let t=dt(e);return t.length===1&&!e.typeParameters&&!z(e,W.Dangling)&&t[0].type==="Identifier"&&!t[0].typeAnnotation&&!z(t[0])&&!t[0].optional&&!e.predicate&&!e.returnType}function Kv(e,t){if(t.arrowParens==="always")return!1;if(t.arrowParens==="avoid"){let{node:r}=e;return ML(r)}return!1}function Hc(e,t){let{node:r}=e,n=[it(e,t,"returnType")];return r.predicate&&n.push(t("predicate")),n}function Gv(e,t,r){let{node:n}=e,i=[];if(n.argument){let o=r("argument");RL(t,n.argument)?o=["(",L([M,o]),M,")"]:(pn(n.argument)||t.experimentalTernaries&&n.argument.type==="ConditionalExpression"&&(n.argument.consequent.type==="ConditionalExpression"||n.argument.alternate.type==="ConditionalExpression"))&&(o=w([ie("("),L([_,o]),_,ie(")")])),i.push(" ",o)}let s=z(n,W.Dangling),a=t.semi&&s&&z(n,W.Last|W.Line);return a&&i.push(";"),s&&i.push(" ",be(e,t)),!a&&t.semi&&i.push(";"),i}function OL(e,t,r){return["return",Gv(e,t,r)]}function jL(e,t,r){return["throw",Gv(e,t,r)]}function RL(e,t){if(Dr(e.originalText,t)||z(t,W.Leading,r=>Vt(e.originalText,he(r),ce(r)))&&!Ze(t))return!0;if(Um(t)){let r=t,n;for(;n=G6(r);)if(r=n,Dr(e.originalText,r))return!0}return!1}function UL(e,t){if(t.semi||Yv(e,t)||eA(e,t)||Zv(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(()=>Qv(e,t),"expression"))}function Qv(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(!Kv(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(Ze(r))return!0}return yi(e,t)?!0:Um(r)?e.call(()=>Qv(e,t),...VC(r)):!1}var sy=({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 Yv(e,t){return(t.parentParser==="markdown"||t.parentParser==="mdx")&&sy(e)&&Ze(e.node.expression)}function Zv(e,t){return t.__isHtmlInlineEventHandler&&sy(e)}function eA(e,t){return(t.parser==="__vue_event_binding"||t.parser==="__vue_ts_event_binding")&&sy(e)}var zL=class extends Error{constructor(r,n,i="type"){super(`Unexpected ${n} node ${i}: ${JSON.stringify(r[i])}.`);U(this,"name","UnexpectedNodeError");this.node=r}},fa=zL;function VL(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var Xt,lc,tA,fD,qL=(fD=class{constructor(t){gi(this,lc);gi(this,Xt,void 0);np(this,Xt,new Set(t))}getLeadingWhitespaceCount(t){let r=tt(this,Xt),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 tt(this,Xt).has(t.charAt(0))}hasTrailingWhitespace(t){return tt(this,Xt).has(Ce(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=`[${VL([...tt(this,Xt)].join(""))}]+`,i=new RegExp(r?`(${n})`:n,"u");return t.split(i)}hasWhitespaceCharacter(t){let r=tt(this,Xt);return Array.prototype.some.call(t,n=>r.has(n))}hasNonWhitespaceCharacter(t){let r=tt(this,Xt);return Array.prototype.some.call(t,n=>!r.has(n))}isWhitespaceOnly(t){let r=tt(this,Xt);return Array.prototype.every.call(t,n=>r.has(n))}dedentString(t){let r=Sn(this,lc,tA).call(this,t);return r===0?t:t.split(` `).map(n=>n.slice(r)).join(` -`)}},Xt=new WeakMap,lc=new WeakSet,Gv=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===V||e===O||e===_;function OL(e,t,r){var D,x,A,b,k;let{node:n}=e;if(n.type==="JSXElement"&&ZL(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(F=>e7(F)?{type:"JSXText",value:" ",raw:" "}:F);let a=n.children.some(Ye),o=n.children.filter(F=>F.type==="JSXExpressionContainer").length>1,u=n.type==="JSXElement"&&n.openingElement.attributes.length>1,l=yt(i)||a||u||o,c=e.parent.rootMarker==="mdx",p=t.singleQuote?"{' '}":'{" "}',h=c?V:ie([p,_]," "),d=((x=(D=n.openingElement)==null?void 0:D.name)==null?void 0:x.name)==="fbt",f=ML(e,t,r,h,d),y=n.children.some(F=>Wo(F));for(let F=f.length-2;F>=0;F--){let M=f[F]===""&&f[F+1]==="",P=f[F]===O&&f[F+1]===""&&f[F+2]===O,j=(f[F]===_||f[F]===O)&&f[F+1]===""&&f[F+2]===h,Y=f[F]===h&&f[F+1]===""&&(f[F+2]===_||f[F+2]===O),N=f[F]===h&&f[F+1]===""&&f[F+2]===h,Q=f[F]===_&&f[F+1]===""&&f[F+2]===O||f[F]===O&&f[F+1]===""&&f[F+2]===_;P&&y||M||j||N||Q?f.splice(F,2):Y&&f.splice(F+1,2)}for(;f.length>0&&ih(Ce(0,f,-1));)f.pop();for(;f.length>1&&ih(f[0])&&ih(f[1]);)f.shift(),f.shift();let E=[""];for(let[F,M]of f.entries()){if(M===h){if(F===1&&p9(f[F-1])){if(f.length===2){E.push([E.pop(),p]);continue}E.push([p,O],"");continue}else if(F===f.length-1){E.push([E.pop(),p]);continue}else if(f[F-1]===""&&f[F-2]===O){E.push([E.pop(),p]);continue}}F%2===0?E.push([E.pop(),M]):E.push(M,""),yt(M)&&(l=!0)}let g=y?pv(E):w(E,{shouldBreak:!0});if(((A=t.cursorNode)==null?void 0:A.type)==="JSXText"&&n.children.includes(t.cursorNode)?g=[Xu,g,Xu]:((b=t.nodeBeforeCursor)==null?void 0:b.type)==="JSXText"&&n.children.includes(t.nodeBeforeCursor)?g=[Xu,g]:((k=t.nodeAfterCursor)==null?void 0:k.type)==="JSXText"&&n.children.includes(t.nodeAfterCursor)&&(g=[g,Xu]),c)return g;let m=w([i,L([O,g]),O,s]);return l?m:ki([w([i,...f,s]),m])}function ML(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=kt(l);if(Wo(l)){let h=Tl.split(p,!0);h[0]===""&&(h.shift(),/\n/u.test(h[0])?u(v1(i,h[1],l,c)):u(n),h.shift());let d;if(Ce(0,h,-1)===""&&(h.pop(),d=h.pop()),h.length===0)return;for(let[f,y]of h.entries())f%2===1?u(V):o(y);d!==void 0?/\n/u.test(d)?u(v1(i,s,l,c)):u(n):u(C1(i,s,l,c))}else/\n/u.test(p)?p.match(/\n/gu).length>1&&u(O):u(n)}else{let p=r();if(o(p),c&&Wo(c)){let h=Tl.trim(kt(c)),[d]=Tl.split(h);u(C1(i,d,l,c))}else u(O)}},"children"),a}function C1(e,t,r,n){return e?"":r.type==="JSXElement"&&!r.closingElement||(n==null?void 0:n.type)==="JSXElement"&&!n.closingElement?t.length===1?_:O:_}function v1(e,t,r,n){return e?O:t.length===1?r.type==="JSXElement"&&!r.closingElement||(n==null?void 0:n.type)==="JSXElement"&&!n.closingElement?O:_:O}var jL=oe(["ArrayExpression","JSXAttribute","JSXElement","JSXExpressionContainer","JSXFragment","ExpressionStatement","NewExpression","CallExpression","OptionalCallExpression","ConditionalExpression","JsExpressionRoot","MatchExpressionCase"]);function RL(e,t,r){let{parent:n}=e;if(jL(n))return t;let i=UL(e),s=mi(e,r);return w([s?"":ie("("),L([_,t]),_,s?"":ie(")")],{shouldBreak:i})}function UL(e){return e.match(void 0,(t,r)=>r==="body"&&t.type==="ArrowFunctionExpression",(t,r)=>r==="arguments"&&Ee(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 zL(e,t,r){let{node:n}=e,i=[r("name")];if(n.value){let s;if(Ze(n.value)){let a=kt(n.value),o=Ge(0,Ge(0,a.slice(1,-1),"'","'"),""",'"'),u=BC(o,t.jsxSingleQuote);o=u==='"'?Ge(0,o,'"',"""):Ge(0,o,"'","'"),s=e.call(()=>rr(e,Ui(u+o+u),t),"value")}else s=r("value");i.push("=",s)}return i}function VL(e,t,r){let{node:n}=e,i=(s,a)=>s.type==="JSXEmptyExpression"||!z(s)&&(at(s)||xr(s)||s.type==="ArrowFunctionExpression"||s.type==="AwaitExpression"&&(i(s.argument,s)||s.argument.type==="JSXElement")||Ee(s)||s.type==="ChainExpression"&&Ee(s.expression)||s.type==="FunctionExpression"||s.type==="TemplateLiteral"||s.type==="TaggedTemplateExpression"||s.type==="DoExpression"||Ye(a)&&(s.type==="ConditionalExpression"||pn(s)));return i(n.expression,e.parent)?w(["{",r("expression"),jr,"}"]):w(["{",L([_,r("expression")]),_,jr,"}"])}function qL(e,t,r){var o,u;let{node:n}=e,i=z(n.name)||z(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&&Ze(n.attributes[0].value)&&!n.attributes[0].value.value.includes(` -`)&&!i&&!z(n.attributes[0]))return w(["<",r("name"),r("typeArguments")," ",...e.map(r,"attributes"),n.selfClosing?" />":">"]);let s=(u=n.attributes)==null?void 0:u.some(l=>Ze(l.value)&&l.value.value.includes(` -`)),a=t.singleAttributePerLine&&n.attributes.length>1?O:V;return w(["<",r("name"),r("typeArguments"),L(e.map(()=>[a,r()],"attributes")),...HL(n,t,i)],{shouldBreak:s})}function HL(e,t,r){return e.selfClosing?[V,"/>"]:WL(e,t,r)?[">"]:[_,">"]}function WL(e,t,r){let n=e.attributes.length>0&&z(Ce(0,e.attributes,-1),W.Trailing);return e.attributes.length===0&&!r||(t.bracketSameLine||t.jsxBracketSameLine)&&(!r||e.attributes.length>0)&&!n}function JL(e,t,r){let{node:n}=e,i=[""),i}function XL(e,t){let{node:r}=e,n=z(r),i=z(r,W.Line),s=r.type==="JSXOpeningFragment";return[s?"<":""]}function KL(e,t,r){let n=rr(e,OL(e,t,r),t);return RL(e,n,t)}function GL(e,t){let{node:r}=e,n=z(r,W.Line);return[be(e,t,{indent:n}),n?O:""]}function QL(e,t,r){let{node:n}=e;return["{",e.call(({node:i})=>{let s=["...",r()];return z(i)?[L([_,rr(e,s,t)]),_]:s},n.type==="JSXSpreadAttribute"?"argument":"expression"),"}"]}function YL(e,t,r){let{node:n}=e;if(n.type.startsWith("JSX"))switch(n.type){case"JSXAttribute":return zL(e,t,r);case"JSXIdentifier":return n.name;case"JSXNamespacedName":return fe(":",[r("namespace"),r("name")]);case"JSXMemberExpression":return fe(".",[r("object"),r("property")]);case"JSXSpreadAttribute":case"JSXSpreadChild":return QL(e,t,r);case"JSXExpressionContainer":return VL(e,t,r);case"JSXFragment":case"JSXElement":return KL(e,t,r);case"JSXOpeningElement":return qL(e,t,r);case"JSXClosingElement":return JL(e,t,r);case"JSXOpeningFragment":case"JSXClosingFragment":return XL(e,t);case"JSXEmptyExpression":return GL(e,t);case"JSXText":throw new Error("JSXText should be handled by JSXElement");default:throw new fa(n,"JSX")}}function ZL(e){if(e.children.length===0)return!0;if(e.children.length>1)return!1;let t=e.children[0];return t.type==="JSXText"&&!Wo(t)}function Wo(e){return e.type==="JSXText"&&(Tl.hasNonWhitespaceCharacter(kt(e))||!/\n/u.test(kt(e)))}function e7(e){return e.type==="JSXExpressionContainer"&&Ze(e.expression)&&e.expression.value===" "&&!z(e.expression)}function t7(e){let{node:t,parent:r}=e;if(!Ye(t)||!Ye(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"&&!Wo(o))){s=o;break}}return(s==null?void 0:s.type)==="JSXExpressionContainer"&&s.expression.type==="JSXEmptyExpression"&&Uc(s.expression)}function r7(e){return Uc(e.node)||t7(e)}var ay=r7;function n7(e,t,r){let{node:n}=e;if(n.type.startsWith("NG"))switch(n.type){case"NGRoot":return r("node");case"NGPipeExpression":return wv(e,t,r);case"NGChainedExpression":return w(fe([";",V],e.map(()=>a7(e)?r():["(",r(),")"],"expressions")));case"NGEmptyExpression":return"";case"NGMicrosyntax":return e.map(()=>[e.isFirst?"":A1(e)?" ":[";",V],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=A1(e)||i7(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 fa(n,"Angular")}}function A1({node:e,index:t}){return e.type==="NGMicrosyntaxKeyedExpression"&&e.key.name==="of"&&t===1}function i7(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 s7=oe(["CallExpression","OptionalCallExpression","AssignmentExpression"]);function a7({node:e}){return Td(e,s7)}function Qv(e,t,r){let{node:n}=e;return w([fe(V,e.map(r,"decorators")),Yv(n,t)?O:V])}function o7(e,t,r){return Zv(e.node)?[fe(O,e.map(r,"declaration","decorators")),O]:""}function u7(e,t,r){let{node:n,parent:i}=e,{decorators:s}=n;if(!Pe(s)||Zv(i)||ay(e))return"";let a=n.type==="ClassExpression"||n.type==="ClassDeclaration"||Yv(n,t);return[e.key==="declaration"&&z6(i)?O:a?dn:"",fe(V,e.map(r,"decorators")),V]}function Yv(e,t){return e.decorators.some(r=>Pt(t.originalText,ce(r)))}function Zv(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 Pe(t)&&jc(e,t[0])}var sh=new WeakMap;function eA(e){return sh.has(e)||sh.set(e,e.type==="ConditionalExpression"&&!mt(e,t=>t.type==="ObjectExpression")),sh.get(e)}var l7=e=>e.type==="SequenceExpression";function c7(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=p7(e,t,r,n);if(i.length===0)i.push(D);else{let{leading:x,trailing:A}=zc(e,t);i.push([x,D]),a.unshift(A)}u&&(o||(o=m.returnType&&ht(m).length>0||m.typeParameters||ht(m).some(x=>x.type!=="Identifier"))),!u||m.body.type!=="ArrowFunctionExpression"?(s=r("body",n),l=m.body):e.call(g,"body")})();let c=!Dr(t.originalText,l)&&(l7(l)||h7(l,s,t)||!o&&eA(l)),p=e.key==="callee"&&Zs(e.parent),h=Symbol("arrow-chain"),d=d7(e,n,{signatureDocs:i,shouldBreak:o}),f=!1,y=!1,E=!1;return u&&(p||n.assignmentLayout)&&(y=!0,E=!z(e.node,W.Leading&W.Line),f=n.assignmentLayout==="chain-tail-arrow-chain"||p&&!c),s=f7(e,t,n,{bodyDoc:s,bodyComments:a,functionBody:l,shouldPutBodyOnSameLine:c}),w([w(y?L([E?_:"",d]):d,{shouldBreak:f,id:h})," =>",u?qo(s,{groupId:h}):w(s),u&&p?ie(_,"",{groupId:h}):""])}function p7(e,t,r,n){let{node:i}=e,s=[];if(i.async&&s.push("async "),qv(e,t))s.push(r(["params",0]));else{let o=n.expandLastArg||n.expandFirstArg,u=Hc(e,r);if(o){if(yt(u))throw new sc;u=w(ic(u))}s.push(w([rs(e,t,r,o,!0),u]))}let a=be(e,t,{filter(o){let u=ca(t.originalText,ce(o));return u!==!1&&t.originalText.slice(u,u+2)==="=>"}});return a&&s.push(" ",a),s}function h7(e,t,r){var n,i;return at(e)||xr(e)||e.type==="ArrowFunctionExpression"||e.type==="DoExpression"||e.type==="BlockStatement"||Ye(e)||((n=t.label)==null?void 0:n.hug)!==!1&&(((i=t.label)==null?void 0:i.embed)||qC(e,r.originalText))}function d7(e,t,{signatureDocs:r,shouldBreak:n}){if(r.length===1)return r[0];let{parent:i,key:s}=e;return s!=="callee"&&Zs(i)||pn(i)?w([r[0]," =>",L([V,fe([" =>",V],r.slice(1))])],{shouldBreak:n}):s==="callee"&&Zs(i)||t.assignmentLayout?w(fe([" =>",V],r),{shouldBreak:n}):w(L(fe([" =>",V],r)),{shouldBreak:n})}function f7(e,t,r,{bodyDoc:n,bodyComments:i,functionBody:s,shouldPutBodyOnSameLine:a}){let{node:o,parent:u}=e,l=r.expandLastArg&&zr(t,"all")?ie(","):"",c=(r.expandLastArg||u.type==="JSXExpressionContainer")&&!z(o)?_:"";return a&&eA(s)?[" ",w([ie("","("),L([_,n]),ie("",")"),l,c]),i]:a?[" ",n,i]:[L([V,n,i]),l,c]}var m7=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}},y7=_m("findLast",function(){if(Array.isArray(this))return m7}),g7=y7;function $d(e,t,r,n){let{node:i}=e,s=[],a=g7(0,i[n],o=>o.type!=="EmptyStatement");return e.each(({node:o})=>{o.type!=="EmptyStatement"&&(s.push(r()),o!==a&&(s.push(O),Vr(o,t)&&s.push(O)))},n),s}function tA(e,t,r){let n=D7(e,t,r),{node:i,parent:s}=e;if(i.type==="Program"&&(s==null?void 0:s.type)!=="ModuleExpression")return n?[n,O]:"";let a=[];if(i.type==="StaticBlock"&&a.push("static "),a.push("{"),n)a.push(L([O,n]),O);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(O)}return a.push("}"),a}function D7(e,t,r){let{node:n}=e,i=Pe(n.directives),s=n.body.some(u=>u.type!=="EmptyStatement"),a=z(n,W.Dangling);if(!i&&!s&&!a)return"";let o=[];return i&&(o.push($d(e,t,r,"directives")),(s||a)&&(o.push(O),Vr(Ce(0,n.directives,-1),t)&&o.push(O))),s&&o.push($d(e,t,r,"body")),a&&o.push(be(e,t)),o}function E7(e){let t=new WeakMap;return function(r){return t.has(r)||t.set(r,Symbol(e)),t.get(r)}}var x7=E7;function oy(e,t,r){let{node:n}=e,i=[],s=n.type==="ObjectTypeAnnotation",a=!rA(e),o=a?V:O,u=z(n,W.Dangling),[l,c]=s&&n.exact?["{|","|}"]:"{}",p;if(C7(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(","):zr(t)&&i.push(ie(","))}!a&&(v7({node:h,next:d},t)||iA({node:h,next:d},t))&&i.push(";"),f||(i.push(o),Vr(h,t)&&i.push(O))}),u&&i.push(be(e,t)),n.type==="ObjectTypeAnnotation"&&n.inexact){let h;z(n,W.Dangling)?h=[z(n,W.Line)||Pt(t.originalText,ce(Ce(0,_i(n),-1)))?O:V,"..."]:h=[p?V:"","..."],i.push(h)}if(a){let h=u||t.objectWrap==="preserve"&&p&&Vt(t.originalText,he(n),he(p)),d;if(i.length===0)d=l+c;else{let f=t.bracketSpacing?V:_;d=[l,L([f,...i]),f,c]}return e.match(void 0,(f,y)=>y==="typeAnnotation",(f,y)=>y==="typeAnnotation",mo)||e.match(void 0,(f,y)=>f.type==="FunctionTypeParam"&&y==="typeAnnotation",mo)?d:w(d,{shouldBreak:h})}return[l,i.length>0?[L([O,i]),O]:"",c]}function rA(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 C7(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:he(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 en(e,t){let{parent:r}=e;return e.callParent(rA)?t.semi||r.type==="ObjectTypeAnnotation"?";":"":r.type==="TSTypeLiteral"?e.isLast?t.semi?ie(";"):"":t.semi||iA({node:e.node,next:e.next},t)?";":ie("",";"):""}var T1=oe(["ClassProperty","PropertyDefinition","ClassPrivateProperty","ClassAccessorProperty","AccessorProperty","TSAbstractPropertyDefinition","TSAbstractAccessorProperty"]),nA=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 v7({node:e,next:t},r){var n;if(r.semi||!T1(e))return!1;if(!e.value&&nA(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(T1(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 A7=oe(["TSPropertySignature"]);function iA({node:e,next:t},r){if(r.semi||!A7(e))return!1;if(nA(e))return!0;if(!t)return!1;switch(t.type){case"TSCallSignatureDeclaration":return!0}return!1}var T7=x7("heritageGroup"),S7=oe(["TSInterfaceDeclaration","DeclareInterface","InterfaceDeclaration","InterfaceTypeAnnotation"]);function uy(e,t,r){let{node:n}=e,i=S7(n),s=[qt(e),Vc(e),i?"interface":"class"],a=aA(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(()=>zc(e,t),c);o.push(p,r(c),L(h))}}if(n.superClass){let c=[w7(e,t,r),r(n.superTypeArguments?"superTypeArguments":"superTypeParameters")],p=e.call(()=>["extends ",rr(e,c,t)],"superClass");a?u.push(V,w(p)):u.push(" ",p)}else u.push(oh(e,t,r,"extends"));u.push(oh(e,t,r,"mixins"),oh(e,t,r,"implements"));let l;return a?(l=T7(n),s.push(w([...o,L(u)],{id:l}))):s.push(...o,...u),!i&&a&&F7(n.body)?s.push(ie(O," ",{groupId:l})):s.push(" "),s.push(r("body")),s}function F7(e){return e.type==="ObjectTypeAnnotation"?["properties","indexers","callProperties","internalSlots"].some(t=>Pe(e[t])):Pe(e.body)}function sA(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 b7(e){var n,i,s;let{node:t}=e;if(z(t.id,W.Trailing)||z(t.typeParameters,W.Trailing)||z(t.superClass)||sA(t))return!0;if(t.superClass)return e.parent.type==="AssignmentExpression"?!1:!(t.superTypeArguments??t.superTypeParameters)&&we(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")&&we(r.expression)&&!r.typeArguments:!1}var ah=new WeakMap;function aA(e){let{node:t}=e;return ah.has(t)||ah.set(t,b7(e)),ah.get(t)}function oh(e,t,r,n){let{node:i}=e;if(!Pe(i[n]))return"";let s=be(e,t,{marker:n}),a=fe([",",V],e.map(r,n));if(!sA(i)){let o=[`${n} `,s,a];return aA(e)?[V,w(o)]:[" ",o]}return[V,s,s&&O,n,w(L([V,a]))]}function w7(e,t,r){let n=r("superClass"),{parent:i}=e;return i.type==="AssignmentExpression"?w(ie(["(",L([_,n]),_,")"],n)):n}function oA(e,t,r){let{node:n}=e,i=[];return Pe(n.decorators)&&i.push(Qv(e,t,r)),i.push(qc(n)),n.static&&i.push("static "),i.push(Vc(e)),n.override&&i.push("override "),i.push(Ld(e,t,r)),i}function uA(e,t,r){let{node:n}=e,i=[];Pe(n.decorators)&&i.push(Qv(e,t,r)),i.push(qt(e),qc(n)),n.static&&i.push("static "),i.push(Vc(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(du(e,t,r),Dt(e),bv(e),nt(e,r));let s=n.type==="TSAbstractPropertyDefinition"||n.type==="TSAbstractAccessorProperty";return[hu(e,t,r,i," =",s?void 0:"value"),t.semi?";":""]}var P7=oe(["TSAsExpression","TSTypeAssertion","TSNonNullExpression","TSInstantiationExpression","TSSatisfiesExpression"]);function lA(e){return P7(e)?lA(e.expression):e}var k7=oe(["FunctionExpression","ArrowFunctionExpression"]);function N7(e){return e.type==="MemberExpression"||e.type==="OptionalMemberExpression"||e.type==="Identifier"&&e.name!=="undefined"}function B7(e,t){if(Kv(e,t)){let r=lA(e.node.expression);return k7(r)||N7(r)}return!(!t.semi||Jv(e,t)||Xv(e,t))}function I7(e,t,r){return[r("expression"),B7(e,t)?";":""]}function _7(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=fe([",",V],n);return t.__isVueForBindingLeft?["(",L([_,w(i)]),_,")"]:i}if(t.__isEmbeddedTypescriptGenericParameters){let n=e.map(r,"program","body",0,"typeParameters","params");return fe([",",V],n)}}function L7(e,t){let{node:r}=e;switch(r.type){case"RegExpLiteral":return S1(r);case"BigIntLiteral":return Od(r.extra.raw);case"NumericLiteral":return ea(r.extra.raw);case"StringLiteral":return Ui(Qs(r.extra.raw,t));case"NullLiteral":return"null";case"BooleanLiteral":return String(r.value);case"DirectiveLiteral":return F1(r.extra.raw,t);case"Literal":{if(r.regex)return S1(r.regex);if(r.bigint)return Od(r.raw);let{value:n}=r;return typeof n=="number"?ea(r.raw):typeof n=="string"?$7(e)?F1(r.raw,t):Ui(Qs(r.raw,t)):String(n)}}}function $7(e){if(e.key!=="expression")return;let{parent:t}=e;return t.type==="ExpressionStatement"&&typeof t.directive=="string"}function Od(e){return e.toLowerCase()}function S1({pattern:e,flags:t}){return t=[...t].sort().join(""),`/${e}/${t}`}var O7="use strict";function F1(e,t){let r=e.slice(1,-1);if(r===O7||!(r.includes('"')||r.includes("'"))){let n=t.singleQuote?"'":'"';return n+r+n}return e}function M7(e,t,r){let n=e.originalText.slice(t,r);for(let i of e[Symbol.for("comments")]){let s=he(i);if(s>r)break;let a=ce(i);if(ag.value&&(g.value.type==="ObjectPattern"||g.value.type==="ArrayPattern"))||n.type!=="ObjectPattern"&&t.objectWrap==="preserve"&&c.length>0&&R7(n,c[0],t),h=[],d=e.map(({node:g})=>{let m=[...h,w(r())];return h=[",",V],Vr(g,t)&&h.push(O),m},l);if(u){let g;if(z(n,W.Dangling)){let m=z(n,W.Line);g=[be(e,t),m||Pt(t.originalText,ce(Ce(0,_i(n),-1)))?O:V,"..."]}else g=["..."];d.push([...h,...g])}let f=!(u||((E=Ce(0,c,-1))==null?void 0:E.type)==="RestElement"),y;if(d.length===0){if(!z(n,W.Dangling))return["{}",nt(e,r)];y=w(["{",be(e,t,{indent:!0}),_,"}",Dt(e),nt(e,r)])}else{let g=t.bracketSpacing?V:_;y=["{",L([g,...d]),ie(f&&zr(t)?",":""),g,"}",Dt(e),nt(e,r)]}return e.match(g=>g.type==="ObjectPattern"&&!Pe(g.decorators),mo)||ni(n)&&(e.match(void 0,(g,m)=>m==="typeAnnotation",(g,m)=>m==="typeAnnotation",mo)||e.match(void 0,(g,m)=>g.type==="FunctionTypeParam"&&m==="typeAnnotation",mo))||!p&&e.match(g=>g.type==="ObjectPattern",g=>g.type==="AssignmentExpression"||g.type==="VariableDeclarator")?y:w(y,{shouldBreak:p})}function R7(e,t,r){let n=r.originalText,i=he(e),s=he(t);if(cA(e)){let a=he(e),o=Wc(r,a,s);i=a+o.lastIndexOf("{")}return Vt(n,i,s)}function U7(e,t,r){let{node:n}=e;return["import",n.phase?` ${n.phase}`:"",dA(n),mA(e,t,r),fA(e,t,r),gA(e,t,r),t.semi?";":""]}var pA=e=>e.type==="ExportDefaultDeclaration"||e.type==="DeclareExportDeclaration"&&e.default;function hA(e,t,r){let{node:n}=e,i=[o7(e,t,r),qt(e),"export",pA(n)?" default":""],{declaration:s,exported:a}=n;return z(n,W.Dangling)&&(i.push(" ",be(e,t)),HC(n)&&i.push(O)),s?i.push(" ",r("declaration")):(i.push(q7(n)),n.type==="ExportAllDeclaration"||n.type==="DeclareExportAllDeclaration"?(i.push(" *"),a&&i.push(" as ",r("exported"))):i.push(mA(e,t,r)),i.push(fA(e,t,r),gA(e,t,r))),i.push(V7(n,t)),i}var z7=oe(["ClassDeclaration","ComponentDeclaration","FunctionDeclaration","TSInterfaceDeclaration","DeclareClass","DeclareComponent","DeclareFunction","DeclareHook","HookDeclaration","TSDeclareFunction","EnumDeclaration"]);function V7(e,t){return t.semi&&(!e.declaration||pA(e)&&!z7(e.declaration))?";":""}function cy(e,t=!0){return e&&e!=="value"?`${t?" ":""}${e}${t?"":" "}`:""}function dA(e,t){return cy(e.importKind,t)}function q7(e){return cy(e.exportKind)}function fA(e,t,r){let{node:n}=e;return n.source?[yA(n,t)?" from":""," ",r("source")]:""}function mA(e,t,r){let{node:n}=e;if(!yA(n,t))return"";let i=[" "];if(Pe(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 fa(n,"specifier")},"specifiers"),i.push(fe(", ",s)),a.length>0&&(s.length>0&&i.push(", "),a.length>1||s.length>0||n.specifiers.some(o=>z(o))?i.push(w(["{",L([t.bracketSpacing?V:_,fe([",",V],a)]),ie(zr(t)?",":""),t.bracketSpacing?V:_,"}"])):i.push(["{",t.bracketSpacing?" ":"",...a,t.bracketSpacing?" ":"","}"]))}else i.push("{}");return i}function yA(e,t){return e.type!=="ImportDeclaration"||Pe(e.specifiers)||e.importKind==="type"?!0:Wc(t,he(e),he(e.source)).trimEnd().endsWith("from")}function H7(e,t){var n,i;if((n=e.extra)!=null&&n.deprecatedAssertSyntax)return"assert";let r=Wc(t,ce(e.source),(i=e.attributes)!=null&&i[0]?he(e.attributes[0]):ce(e)).trimStart();return r.startsWith("assert")?"assert":r.startsWith("with")||Pe(e.attributes)?"with":void 0}var W7=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"||Ze(i)&&i.value==="type")&&Ze(s)&&!z(r)&&!z(i)&&!z(s)};function gA(e,t,r){let{node:n}=e;if(!n.source)return"";let i=H7(n,t);if(!i)return"";let s=ly(e,t,r);return W7(n)&&(s=ic(s)),[` ${i} `,s]}function J7(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&&!X7(n)&&(p=r(o)),[cy(i==="ImportSpecifier"?n.importKind:n.exportKind,!1),c,c&&p?" as ":"",p]}function X7(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||!F6(t,r))return!1;if(Ze(t))return t.value===r.value&&kt(t)===kt(r);switch(t.type){case"Identifier":return t.name===r.name;default:return!1}}function Md(e,t){return["...",t("argument"),nt(e,t)]}function K7(e){let t=[e];for(let r=0;rh[F]===n),f=h.type===n.type&&!d,y,E,g=0;do E=y||n,y=e.getParentNode(g),g++;while(y&&y.type===n.type&&o.every(F=>y[F]!==E));let m=y||h,D=E;if(i&&(Ye(n[o[0]])||Ye(u)||Ye(l)||K7(D))){p=!0,f=!0;let F=P=>[ie("("),L([_,P]),_,ie(")")],M=P=>P.type==="NullLiteral"||P.type==="Literal"&&P.value===null||P.type==="Identifier"&&P.name==="undefined";c.push(" ? ",M(u)?r(s):F(r(s))," : ",l.type===n.type||M(l)?r(a):F(r(a)))}else{let F=P=>t.useTabs?L(r(P)):vr(2,r(P)),M=[V,"? ",u.type===n.type?ie("","("):"",F(s),u.type===n.type?ie("",")"):"",V,": ",F(a)];c.push(h.type!==n.type||h[a]===n||d?M:t.useTabs?cv(L(M)):vr(Math.max(0,t.tabWidth-2),M))}let x=F=>h===m?w(F):F,A=!p&&(we(h)||h.type==="NGPipeExpression"&&h.left===n)&&!h.computed,b=Y7(e),k=x([G7(e,t,r),f?c:L(c),i&&A&&!b?_:""]);return d||b?w([L([_,k]),_]):k}function e$(e,t){return(we(t)||t.type==="NGPipeExpression"&&t.left===e)&&!t.computed}function t$(e,t,r,n){return[...e.map(i=>_i(i)),_i(t),_i(r)].flat().some(i=>Ar(i)&&Vt(n.originalText,he(i),ce(i)))}var r$=new Map([["AssignmentExpression","right"],["VariableDeclarator","init"],["ReturnStatement","argument"],["ThrowStatement","argument"],["UnaryExpression","argument"],["YieldExpression","argument"],["AwaitExpression","argument"]]);function n$(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||Ee(s)&&s.callee===n||we(s)&&s.object===n||s.type==="TSNonNullExpression"&&s.expression===n){n=s;continue}s.type==="NewExpression"&&s.callee===n||mr(s)&&s.expression===n?(r=e.getParentNode(i+1),n=s):r=s}return n===t?!1:r[r$.get(r.type)]===n}var uh=e=>[ie("("),L([_,e]),_,ie(")")];function py(e,t,r,n){if(!t.experimentalTernaries)return Z7(e,t,r);let{node:i}=e,s=i.type==="ConditionalExpression",a=ii(i),o=s?"consequent":"trueType",u=s?"alternate":"falseType",l=s?["test"]:["checkType","extendsType"],c=i[o],p=i[u],h=l.map(va=>i[va]),{parent:d}=e,f=d.type===i.type,y=f&&l.some(va=>d[va]===i),E=f&&d[u]===i,g=c.type===i.type,m=p.type===i.type,D=m||E,x=t.tabWidth>2||t.useTabs,A,b,k=0;do b=A||i,A=e.getParentNode(k),k++;while(A&&A.type===i.type&&l.every(va=>A[va]!==b));let F=A||d,M=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"),P=(d.type==="ReturnStatement"||d.type==="ThrowStatement")&&!(g||m),j=s&&F.type==="JSXExpressionContainer"&&e.grandparent.type!=="JSXAttribute",Y=n$(e),N=e$(i,d),Q=a&&mi(e,t),H=x?t.useTabs?" ":" ".repeat(t.tabWidth-1):"",ne=t$(h,c,p,t)||g||m,ge=!D&&!f&&!a&&(j?c.type==="NullLiteral"||c.type==="Literal"&&c.value===null:qm(c,t)&&n1(i.test,3)),$=D||E||a&&!f||f&&s&&n1(i.test,1)||ge,Z=[];!g&&z(c,W.Dangling)&&e.call(()=>{Z.push(be(e,t),O)},"consequent");let J=[];z(i.test,W.Dangling)&&e.call(()=>{J.push(be(e,t))},"test"),!m&&z(p,W.Dangling)&&e.call(()=>{J.push(be(e,t))},"alternate"),z(i,W.Dangling)&&J.push(be(e,t));let te=Symbol("test"),ae=Symbol("consequent"),K=Symbol("test-and-consequent"),se=s?[uh(r("test")),i.test.type==="ConditionalExpression"?dn:""]:[r("checkType")," ","extends"," ",ii(i.extendsType)||i.extendsType.type==="TSMappedType"?r("extendsType"):w(uh(r("extendsType")))],me=w([se," ?"],{id:te}),Hr=r(o),Wr=L([g||j&&(Ye(c)||f||D)?O:V,Z,Hr]),VT=$?w([me,D?Wr:ie(Wr,w(Wr,{id:ae}),{groupId:te})],{id:K}):[me,Wr],tp=r(u),Ny=ge?ie(tp,cv(uh(tp)),{groupId:K}):tp,Ca=[VT,J.length>0?[L([O,J]),O]:m?O:ge?ie(V," ",{groupId:K}):V,":",m?" ":x?$?ie(H,ie(D||ge?" ":H," "),{groupId:K}):ie(H," "):" ",m?Ny:w([L(Ny),j&&!ge?_:""]),N&&!Y?_:"",ne?dn:""];return M&&!ne?w(L([_,w(Ca)])):M||P?w(L(Ca)):Y||a&&y?w([L([_,Ca]),Q?_:""]):d===F?w(Ca):Ca}function i$(e,t,r,n){let{node:i}=e;if(zm(i))return L7(e,t);switch(i.type){case"JsExpressionRoot":return r("node");case"JsonRoot":return[be(e,t),r("node"),O];case"File":return _7(e,t,r)??r("program");case"ExpressionStatement":return I7(e,t,r);case"ChainExpression":return r("expression");case"ParenthesizedExpression":return!z(i.expression)&&(xr(i.expression)||at(i.expression))?["(",r("expression"),")"]:w(["(",L([_,r("expression")]),_,")"]);case"AssignmentExpression":return fL(e,t,r);case"VariableDeclarator":return mL(e,t,r);case"BinaryExpression":case"LogicalExpression":return wv(e,t,r);case"AssignmentPattern":return[r("left")," = ",r("right")];case"OptionalMemberExpression":case"MemberExpression":return lL(e,t,r);case"MetaProperty":return[r("meta"),".",r("property")];case"BindExpression":return aL(e,t,r);case"Identifier":return[i.name,Dt(e),bv(e),nt(e,r)];case"V8IntrinsicIdentifier":return["%",i.name];case"SpreadElement":return Md(e,r);case"RestElement":return Md(e,r);case"FunctionDeclaration":case"FunctionExpression":return Vv(e,t,r,n);case"ArrowFunctionExpression":return c7(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(Ee(a)&&a.callee===i||we(a)&&a.object===i){s=[L([_,...s]),_];let o=e.findAncestor(u=>u.type==="AwaitExpression"||u.type==="BlockStatement");if((o==null?void 0:o.type)!=="AwaitExpression"||!mt(o.argument,u=>u===i))return w(s)}}return s}case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ExportAllDeclaration":return hA(e,t,r);case"ImportDeclaration":return U7(e,t,r);case"ImportSpecifier":case"ExportSpecifier":case"ImportNamespaceSpecifier":case"ExportNamespaceSpecifier":case"ImportDefaultSpecifier":case"ExportDefaultSpecifier":return J7(e,t,r);case"ImportAttribute":return nh(e,t,r);case"Program":case"BlockStatement":case"StaticBlock":return tA(e,t,r);case"ClassBody":return oy(e,t,r);case"ThrowStatement":return kL(e,t,r);case"ReturnStatement":return PL(e,t,r);case"NewExpression":case"ImportExpression":case"OptionalCallExpression":case"CallExpression":return ac(e,t,r);case"ObjectExpression":case"ObjectPattern":return ly(e,t,r);case"Property":return lu(i)?Ld(e,t,r):nh(e,t,r);case"ObjectProperty":return nh(e,t,r);case"ObjectMethod":return Ld(e,t,r);case"Decorator":return["@",r("expression")];case"ArrayExpression":case"ArrayPattern":return ny(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(",",L([V,r()]))},"expressions"),w(o)}let a=fe([",",V],e.map(r,"expressions"));return(s.type==="ReturnStatement"||s.type==="ThrowStatement")&&e.key==="argument"||s.type==="ArrowFunctionExpression"&&e.key==="body"?w(ie([L([_,a]),_],a)):w(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(" "),z(i.argument)?s.push(w(["(",L([_,r("argument")]),_,")"])):s.push(r("argument")),s}case"UpdateExpression":return[i.prefix?i.operator:"",r("argument"),i.prefix?"":i.operator];case"ConditionalExpression":return py(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&&!z(i.declarations[0])?l=s[0]:s.length>0&&(l=L(s[0])),w([qt(e),i.kind,l?[" ",l]:"",L(s.slice(1).map(c=>[",",u&&!o?O:V,c])),t.semi&&!(o&&a.body!==i)?";":""])}case"WithStatement":return w(["with (",r("object"),")",Pn(i.body,r("body"))]);case"IfStatement":{let s=Pn(i.consequent,r("consequent")),a=[w(["if (",w([L([_,r("test")]),_]),")",s])];if(i.alternate){let o=z(i.consequent,W.Trailing|W.Line)||HC(i),u=i.consequent.type==="BlockStatement"&&!o;a.push(u?" ":O),z(i,W.Dangling)&&a.push(be(e,t),o?O:" "),a.push("else",w(Pn(i.alternate,r("alternate"),i.alternate.type==="IfStatement")))}return a}case"ForStatement":{let s=Pn(i.body,r("body")),a=be(e,t),o=a?[a,_]:"";return!i.init&&!i.test&&!i.update?[o,w(["for (;;)",s])]:[o,w(["for (",w([L([_,r("init"),";",V,r("test"),";",i.update?[V,r("update")]:ie("",V)]),_]),")",s])]}case"WhileStatement":return w(["while (",w([L([_,r("test")]),_]),")",Pn(i.body,r("body"))]);case"ForInStatement":return w(["for (",r("left")," in ",r("right"),")",Pn(i.body,r("body"))]);case"ForOfStatement":return w(["for",i.await?" await":""," (",r("left")," of ",r("right"),")",Pn(i.body,r("body"))]);case"DoWhileStatement":{let s=Pn(i.body,r("body"));return[w(["do",s]),i.body.type==="BlockStatement"?" ":O,"while (",w([L([_,r("test")]),_]),")",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"&&!z(i.body,W.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=z(i.param,o=>!Ar(o)||o.leading&&Pt(t.originalText,ce(o))||o.trailing&&Pt(t.originalText,he(o),{backwards:!0})),a=r("param");return["catch ",s?["(",L([_,a]),_,") "]:["(",a,") "],r("body")]}return["catch ",r("body")];case"SwitchStatement":return[w(["switch (",L([_,r("discriminant")]),_,")"])," {",i.cases.length>0?L([O,fe(O,e.map(({node:s,isLast:a})=>[r(),!a&&Vr(s,t)?O:""],"cases"))]):"",O,"}"];case"SwitchCase":{let s=[];i.test?s.push("case ",r("test"),":"):s.push("default:"),z(i,W.Dangling)&&s.push(" ",be(e,t));let a=i.consequent.filter(o=>o.type!=="EmptyStatement");if(a.length>0){let o=$d(e,t,r,"consequent");s.push(a.length===1&&a[0].type==="BlockStatement"?[" ",o]:L([O,o]))}return s}case"DebuggerStatement":return["debugger",t.semi?";":""];case"ClassDeclaration":case"ClassExpression":return uy(e,t,r);case"ClassMethod":case"ClassPrivateMethod":case"MethodDefinition":return oA(e,t,r);case"ClassProperty":case"PropertyDefinition":case"ClassPrivateProperty":case"ClassAccessorProperty":case"AccessorProperty":return uA(e,t,r);case"TemplateElement":return Ui(i.value.raw);case"TemplateLiteral":return Dv(e,t,r);case"TaggedTemplateExpression":return B9(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(Rm(e))return";";case"InterpreterDirective":default:throw new fa(i,"ESTree")}}function DA(e){return[e("elementType"),"[]"]}var s$=oe(["SatisfiesExpression","TSSatisfiesExpression"]);function EA(e,t,r){let{parent:n,node:i,key:s}=e,a=i.type==="AsConstExpression"?"const":r("typeAnnotation"),o=[r("expression")," ",s$(i)?"satisfies":"as"," ",a];return s==="callee"&&Ee(n)||s==="object"&&we(n)?w([L([_,...o]),_]):o}function a$(e,t,r){let{node:n}=e,i=[qt(e),"component"];n.id&&i.push(" ",r("id")),i.push(r("typeParameters"));let s=o$(e,t,r);return n.rendersType?i.push(w([s," ",r("rendersType")])):i.push(w([s])),n.body&&i.push(" ",r("body")),t.semi&&n.type==="DeclareComponent"&&i.push(";"),i}function o$(e,t,r){let{node:n}=e,i=n.params;if(n.rest&&(i=[...i,n.rest]),i.length===0)return["(",be(e,t,{filter:a=>Cr(t.originalText,ce(a))===")"}),")"];let s=[];return l$(e,(a,o)=>{let u=o===i.length-1;u&&n.rest&&s.push("..."),s.push(r()),!u&&(s.push(","),Vr(i[o],t)?s.push(O,O):s.push(V))}),["(",L([_,...s]),ie(zr(t,"all")&&!u$(n,i)?",":""),_,")"]}function u$(e,t){var r;return e.rest||((r=Ce(0,t,-1))==null?void 0:r.type)==="RestElement"}function l$(e,t){let{node:r}=e,n=0,i=s=>t(s,n++);e.each(i,"params"),r.rest&&e.call(i,"rest")}function c$(e,t,r){let{node:n}=e;return n.shorthand?r("local"):[r("name")," as ",r("local")]}function p$(e,t,r){let{node:n}=e,i=[];return n.name&&i.push(r("name"),n.optional?"?: ":": "),i.push(r("typeAnnotation")),i}function xA(e,t,r){return ly(e,t,r)}function h$(e,t,r){let{node:n}=e;return[n.type==="EnumSymbolBody"||n.explicitType?`of ${n.type.slice(4,-4).toLowerCase()} `:"",xA(e,t,r)]}function CA(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 vA(e,t){let{node:r}=e;return[qt(e),r.const?"const ":"","enum ",t("id")," ",t("body")]}function AA(e,t,r){let{node:n}=e,i=[Vc(e)];(n.type==="TSConstructorType"||n.type==="TSConstructSignatureDeclaration")&&i.push("new ");let s=rs(e,t,r,!1,!0),a=[];return n.type==="FunctionTypeAnnotation"?a.push(d$(e)?" => ":": ",r("returnType")):a.push(nt(e,r,"returnType")),da(n,a)&&(s=w(s)),i.push(s,a),[w(i),n.type==="TSConstructSignatureDeclaration"||n.type==="TSCallSignatureDeclaration"?en(e,t):""]}function d$(e){var n;let{node:t,parent:r}=e;return t.type==="FunctionTypeAnnotation"&&(UC(r)||!((r.type==="ObjectTypeProperty"||r.type==="ObjectTypeInternalSlot")&&!r.variance&&!r.optional&&jc(r,t)||r.type==="ObjectTypeCallProperty"||((n=e.getParentNode(2))==null?void 0:n.type)==="DeclareFunction"))}function f$(e,t,r){let{node:n}=e,i=["hook"];n.id&&i.push(" ",r("id"));let s=rs(e,t,r,!1,!0),a=Hc(e,r),o=da(n,a);return i.push(w([o?w(s):s,a]),n.body?" ":"",r("body")),i}function m$(e,t,r){let{node:n}=e,i=[qt(e),"hook"];return n.id&&i.push(" ",r("id")),t.semi&&i.push(";"),i}function b1(e){var r;let{node:t}=e;return t.type==="HookTypeAnnotation"&&((r=e.getParentNode(2))==null?void 0:r.type)==="DeclareHook"}function y$(e,t,r){let{node:n}=e,i=rs(e,t,r,!1,!0),s=[b1(e)?": ":" => ",r("returnType")];return w([b1(e)?"":"hook ",da(n,s)?w(i):i,s])}function TA(e,t,r){return[r("objectType"),Dt(e),"[",r("indexType"),"]"]}function SA(e,t,r){return["infer ",r("typeParameter")]}function FA(e,t,r){let n=!1;return w(e.map(({isFirst:i,previous:s,node:a,index:o})=>{let u=r();if(i)return u;let l=ni(a),c=ni(s);return c&&l?[" & ",n?L(u):u]:!c&&!l||Dr(t.originalText,a)?t.experimentalOperatorPosition==="start"?L([V,"& ",u]):L([" &",V,u]):(o>1&&(n=!0),[" & ",o>1?L(u):u])},"types"))}function g$(e){switch(e){case null:return"";case"PlusOptional":return"+?";case"MinusOptional":return"-?";case"Optional":return"?"}}function D$(e,t,r){let{node:n}=e;return[w([n.variance?r("variance"):"","[",L([r("keyTparam")," in ",r("sourceType")]),"]",g$(n.optional),": ",r("propType")]),en(e,t)]}function w1(e,t){return e==="+"||e==="-"?e+t:t}function E$(e,t,r){let{node:n}=e,i=!1;if(t.objectWrap==="preserve"){let s=he(n),a=Wc(t,s+1,he(n.key)),o=s+1+a.search(/\S/u);Vt(t.originalText,s,o)&&(i=!0)}return w(["{",L([t.bracketSpacing?V:_,z(n,W.Dangling)?w([be(e,t),O]):"",w([n.readonly?[w1(n.readonly,"readonly")," "]:"","[",r("key")," in ",r("constraint"),n.nameType?[" as ",r("nameType")]:"","]",n.optional?w1(n.optional,"?"):"",n.typeAnnotation?": ":"",r("typeAnnotation")]),t.semi?ie(";"):""]),t.bracketSpacing?V:_,"}"],{shouldBreak:i})}function x$(e,t,r){let{node:n}=e;return[w(["match (",L([_,r("argument")]),_,")"])," {",n.cases.length>0?L([O,fe(O,e.map(({node:i,isLast:s})=>[r(),!s&&Vr(i,t)?O:""],"cases"))]):"",O,"}"]}function C$(e,t,r){let{node:n}=e,i=z(n,W.Dangling)?[" ",be(e,t)]:[],s=n.type==="MatchStatementCase"?[" ",r("body")]:L([V,r("body"),","]);return[r("pattern"),n.guard?w([L([V,"if (",r("guard"),")"])]):"",w([" =>",i,s])]}function v$(e,t,r){let{node:n}=e;switch(n.type){case"MatchOrPattern":return S$(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")]:["[",L([_,r("property")]),_,"]"];return w([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")),w(["{",L([_,fe([",",V],i)]),n.rest?"":ie(","),_,"}"])}case"MatchArrayPattern":{let i=e.map(r,"elements");return n.rest&&i.push(r("rest")),w(["[",L([_,fe([",",V],i)]),n.rest?"":ie(","),_,"]"])}case"MatchObjectPatternProperty":return n.shorthand?r("pattern"):w([r("key"),":",L([V,r("pattern")])]);case"MatchRestPattern":{let i=["..."];return n.argument&&i.push(r("argument")),i}}}var bA=oe(["MatchWildcardPattern","MatchLiteralPattern","MatchUnaryPattern","MatchIdentifierPattern"]);function A$(e){let{patterns:t}=e;if(t.some(n=>z(n)))return!1;let r=t.find(n=>n.type==="MatchObjectPattern");return r?t.every(n=>n===r||bA(n)):!1}function T$(e){return bA(e)||e.type==="MatchObjectPattern"?!0:e.type==="MatchOrPattern"?A$(e):!1}function S$(e,t,r){let{node:n}=e,{parent:i}=e,s=i.type!=="MatchStatementCase"&&i.type!=="MatchExpressionCase"&&i.type!=="MatchArrayPattern"&&i.type!=="MatchObjectPatternProperty"&&!Dr(t.originalText,n),a=T$(n),o=e.map(()=>{let l=r();return a||(l=vr(2,l)),rr(e,l,t)},"patterns");if(a)return fe(" | ",o);let u=[ie(["| "]),fe([V,"| "],o)];return mi(e,t)?w([L([ie([_]),u]),_]):i.type==="MatchArrayPattern"&&i.elements.length>1?w([L([ie(["(",_]),u]),_,ie(")")]):w(s?L(u):u)}function F$(e,t,r){let{node:n}=e,i=[qt(e),"opaque type ",r("id"),r("typeParameters")];if(n.supertype&&i.push(": ",r("supertype")),n.lowerBound||n.upperBound){let s=[];n.lowerBound&&s.push(L([V,"super ",r("lowerBound")])),n.upperBound&&s.push(L([V,"extends ",r("upperBound")])),i.push(w(s))}return n.impltype&&i.push(" = ",r("impltype")),i.push(t.semi?";":""),i}function wA(e,t,r){let{node:n}=e;return["...",...n.type==="TupleTypeSpreadElement"&&n.label?[r("label"),": "]:[],r("typeAnnotation")]}function PA(e,t,r){let{node:n}=e;return[n.variance?r("variance"):"",r("label"),n.optional?"?":"",": ",r("elementType")]}function kA(e,t,r){let{node:n}=e,i=[qt(e),"type ",r("id"),r("typeParameters")],s=n.type==="TSTypeAliasDeclaration"?"typeAnnotation":"right";return[hu(e,t,r,i," =",s),t.semi?";":""]}function b$(e,t,r){let{node:n}=e;return ht(n).length===1&&n.type.startsWith("TS")&&!n[r][0].constraint&&e.parent.type==="ArrowFunctionExpression"&&!(t.filepath&&/\.ts$/u.test(t.filepath))}function go(e,t,r,n){let{node:i}=e;if(!i[n])return"";if(!Array.isArray(i[n]))return r(n);let s=Rc(e.grandparent),a=e.match(u=>!(u[n].length===1&&ni(u[n][0])),void 0,(u,l)=>l==="typeAnnotation",u=>u.type==="Identifier",Rv);if(i[n].length===0||!a&&(s||i[n].length===1&&(i[n][0].type==="NullableTypeAnnotation"||K5(i[n][0]))))return["<",fe(", ",e.map(r,n)),w$(e,t),">"];let o=i.type==="TSTypeParameterInstantiation"?"":b$(e,t,n)?",":zr(t)?ie(","):"";return w(["<",L([_,fe([",",V],e.map(r,n))]),o,_,">"])}function w$(e,t){let{node:r}=e;if(!z(r,W.Dangling))return"";let n=!z(r,W.Line),i=be(e,t,{indent:!n});return n?i:[i,O]}function NA(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(nt(e,r,"bound"))),n.constraint){let a=Symbol("constraint");i.push(" extends",w(L(V),{id:a}),jr,qo(r("constraint"),{groupId:a}))}if(n.default){let a=Symbol("default");i.push(" =",w(L(V),{id:a}),jr,qo(r("default"),{groupId:a}))}return w(i)}function BA(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 ",nt(e,t)]:""]}function IA({node:e},t){let r=e.type==="TSTypeQuery"?"exprName":"argument";return["typeof ",t(r),t("typeArguments")]}function P$(e,t,r){let{node:n}=e;if($C(n))return n.type.slice(0,-14).toLowerCase();switch(n.type){case"ComponentDeclaration":case"DeclareComponent":case"ComponentTypeAnnotation":return a$(e,t,r);case"ComponentParameter":return c$(e,t,r);case"ComponentTypeParameter":return p$(e,t,r);case"HookDeclaration":return f$(e,t,r);case"DeclareHook":return m$(e,t,r);case"HookTypeAnnotation":return y$(e,t,r);case"DeclareFunction":return[qt(e),"function ",r("id"),r("predicate"),t.semi?";":""];case"DeclareModule":return["declare module ",r("id")," ",r("body")];case"DeclareModuleExports":return["declare module.exports",nt(e,r),t.semi?";":""];case"DeclareNamespace":return["declare namespace ",r("id")," ",r("body")];case"DeclareVariable":return[qt(e),n.kind??"var"," ",r("id"),t.semi?";":""];case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":return hA(e,t,r);case"DeclareOpaqueType":case"OpaqueType":return F$(e,t,r);case"DeclareTypeAlias":case"TypeAlias":return kA(e,t,r);case"IntersectionTypeAnnotation":return FA(e,t,r);case"UnionTypeAnnotation":return Pv(e,t,r);case"ConditionalTypeAnnotation":return py(e,t,r);case"InferTypeAnnotation":return SA(e,t,r);case"FunctionTypeAnnotation":return AA(e,t,r);case"TupleTypeAnnotation":return ny(e,t,r);case"TupleTypeLabeledElement":return PA(e,t,r);case"TupleTypeSpreadElement":return wA(e,t,r);case"GenericTypeAnnotation":return[r("id"),go(e,t,r,"typeParameters")];case"IndexedAccessType":case"OptionalIndexedAccessType":return TA(e,t,r);case"TypeAnnotation":return Bv(e,t,r);case"TypeParameter":return NA(e,t,r);case"TypeofTypeAnnotation":return IA(e,r);case"ExistsTypeAnnotation":return"*";case"ArrayTypeAnnotation":return DA(r);case"DeclareEnum":case"EnumDeclaration":return vA(e,r);case"EnumBooleanBody":case"EnumNumberBody":case"EnumBigIntBody":case"EnumStringBody":case"EnumSymbolBody":return h$(e,t,r);case"EnumBooleanMember":case"EnumNumberMember":case"EnumBigIntMember":case"EnumStringMember":case"EnumDefaultedMember":return CA(e,r);case"FunctionTypeParam":{let i=n.name?r("name"):e.parent.this===n?"this":"";return[i,Dt(e),i?": ":"",r("typeAnnotation")]}case"DeclareClass":case"DeclareInterface":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":return uy(e,t,r);case"ObjectTypeAnnotation":return oy(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"),en(e,t)];case"ObjectTypeMappedTypeProperty":return D$(e,t,r);case"ObjectTypeIndexer":return[n.static?"static ":"",n.variance?r("variance"):"","[",r("id"),n.id?": ":"",r("key"),"]: ",r("value"),en(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"):"",du(e,t,r),Dt(e),lu(n)?"":": ",r("value"),en(e,t)]}case"ObjectTypeInternalSlot":return[n.static?"static ":"","[[",r("id"),"]]",Dt(e),n.method?"":": ",r("value"),en(e,t)];case"ObjectTypeSpreadProperty":return Md(e,r);case"QualifiedTypeofIdentifier":case"QualifiedTypeIdentifier":return[r("qualification"),".",r("id")];case"NullLiteralTypeAnnotation":return"null";case"BooleanLiteralTypeAnnotation":return String(n.value);case"StringLiteralTypeAnnotation":return Ui(Qs(kt(n),t));case"NumberLiteralTypeAnnotation":return ea(kt(n));case"BigIntLiteralTypeAnnotation":return Od(kt(n));case"TypeCastExpression":return["(",r("expression"),nt(e,r),")"];case"TypePredicate":return BA(e,r);case"TypeOperator":return[n.operator," ",r("typeAnnotation")];case"TypeParameterDeclaration":case"TypeParameterInstantiation":return go(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 EA(e,t,r);case"MatchExpression":case"MatchStatement":return x$(e,t,r);case"MatchExpressionCase":case"MatchStatementCase":return C$(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 v$(e,t,r)}}function k$(e,t,r){let{node:n}=e,i=n.parameters.length>1?ie(zr(t)?",":""):"",s=w([L([_,fe([", ",_],e.map(r,"parameters"))]),i,_]);return[e.key==="body"&&e.parent.type==="ClassBody"&&n.static?"static ":"",n.readonly?"readonly ":"","[",n.parameters?s:"","]",nt(e,r),en(e,t)]}function P1(e,t,r){let{node:n}=e;return[n.postfix?"":r,nt(e,t),n.postfix?r:""]}function N$(e,t,r){let{node:n}=e,i=[],s=n.kind&&n.kind!=="method"?`${n.kind} `:"";i.push(qc(n),s,n.computed?"[":"",r("key"),n.computed?"]":"",Dt(e));let a=rs(e,t,r,!1,!0),o=nt(e,r,"returnType"),u=da(n,o);return i.push(u?w(a):a),n.returnType&&i.push(w(o)),[w(i),en(e,t)]}function B$(e,t,r){let{node:n}=e;return[qt(e),n.kind==="global"?"":`${n.kind} `,r("id"),n.body?[" ",w(r("body"))]:t.semi?";":""]}function I$(e,t,r){let{node:n}=e,i=!(at(n.expression)||xr(n.expression)),s=w(["<",L([_,r("typeAnnotation")]),_,">"]),a=[ie("("),L([_,r("expression")]),_,ie(")")];return i?ki([[s,r("expression")],[s,w(a,{shouldBreak:!0})],[s,r("expression")]]):w([s,r("expression")])}function _$(e,t,r){let{node:n}=e;if(n.type.startsWith("TS")){if(OC(n))return n.type.slice(2,-7).toLowerCase();switch(n.type){case"TSThisType":return"this";case"TSTypeAssertion":return I$(e,t,r);case"TSDeclareFunction":return Vv(e,t,r);case"TSExportAssignment":return["export = ",r("expression"),t.semi?";":""];case"TSModuleBlock":return tA(e,t,r);case"TSInterfaceBody":case"TSTypeLiteral":return oy(e,t,r);case"TSTypeAliasDeclaration":return kA(e,t,r);case"TSQualifiedName":return[r("left"),".",r("right")];case"TSAbstractMethodDefinition":case"TSDeclareMethod":return oA(e,t,r);case"TSAbstractAccessorProperty":case"TSAbstractPropertyDefinition":return uA(e,t,r);case"TSInterfaceHeritage":case"TSClassImplements":case"TSInstantiationExpression":return[r("expression"),r("typeArguments")];case"TSTemplateLiteralType":return Dv(e,t,r);case"TSNamedTupleMember":return PA(e,t,r);case"TSRestType":return wA(e,t,r);case"TSOptionalType":return[r("typeAnnotation"),"?"];case"TSInterfaceDeclaration":return uy(e,t,r);case"TSTypeParameterDeclaration":case"TSTypeParameterInstantiation":return go(e,t,r,"params");case"TSTypeParameter":return NA(e,t,r);case"TSAsExpression":case"TSSatisfiesExpression":return EA(e,t,r);case"TSArrayType":return DA(r);case"TSPropertySignature":return[n.readonly?"readonly ":"",du(e,t,r),Dt(e),nt(e,r),en(e,t)];case"TSParameterProperty":return[qc(n),n.static?"static ":"",n.override?"override ":"",n.readonly?"readonly ":"",r("parameter")];case"TSTypeQuery":return IA(e,r);case"TSIndexSignature":return k$(e,t,r);case"TSTypePredicate":return BA(e,r);case"TSNonNullExpression":return[r("expression"),"!"];case"TSImportType":return[ac(e,t,r),n.qualifier?[".",r("qualifier")]:"",go(e,t,r,"typeArguments")];case"TSLiteralType":return r("literal");case"TSIndexedAccessType":return TA(e,t,r);case"TSTypeOperator":return[n.operator," ",r("typeAnnotation")];case"TSMappedType":return E$(e,t,r);case"TSMethodSignature":return N$(e,t,r);case"TSNamespaceExportDeclaration":return["export as namespace ",r("id"),t.semi?";":""];case"TSEnumDeclaration":return vA(e,r);case"TSEnumBody":return xA(e,t,r);case"TSEnumMember":return CA(e,r);case"TSImportEqualsDeclaration":return["import ",dA(n,!1),r("id")," = ",r("moduleReference"),t.semi?";":""];case"TSExternalModuleReference":return ac(e,t,r);case"TSModuleDeclaration":return B$(e,t,r);case"TSConditionalType":return py(e,t,r);case"TSInferType":return SA(e,t,r);case"TSIntersectionType":return FA(e,t,r);case"TSUnionType":return Pv(e,t,r);case"TSFunctionType":case"TSCallSignatureDeclaration":case"TSConstructorType":case"TSConstructSignatureDeclaration":return AA(e,t,r);case"TSTupleType":return ny(e,t,r);case"TSTypeReference":return[r("typeName"),go(e,t,r,"typeArguments")];case"TSTypeAnnotation":return Bv(e,t,r);case"TSEmptyBodyFunctionExpression":return iy(e,t,r);case"TSJSDocAllType":return"*";case"TSJSDocUnknownType":return"?";case"TSJSDocNullableType":return P1(e,r,"?");case"TSJSDocNonNullableType":return P1(e,r,"!");case"TSParenthesizedType":default:throw new fa(n,"TypeScript")}}}function L$(e,t,r,n){for(let i of[n7,YL,P$,_$,i$]){let s=i(e,t,r,n);if(s!==void 0)return s}}var $$=oe(["ClassMethod","ClassPrivateMethod","ClassProperty","ClassAccessorProperty","AccessorProperty","TSAbstractAccessorProperty","PropertyDefinition","TSAbstractPropertyDefinition","ClassPrivateProperty","MethodDefinition","TSAbstractMethodDefinition","TSDeclareMethod"]);function O$(e,t,r,n){var p;e.isRoot&&((p=t.__onHtmlBindingRoot)==null||p.call(t,e.node,t));let{node:i}=e,s=ay(e)?t.originalText.slice(he(i),ce(i)):L$(e,t,r,n);if(!s)return"";if($$(i))return s;let a=Pe(i.decorators),o=u7(e,t,r),u=i.type==="ClassExpression";if(a&&!u)return wd(s,h=>w([o,h]));let l=mi(e,t),c=BL(e,t);return!o&&!l&&!c?s:wd(s,h=>[c?";":"",l?"(":"",l&&u&&a?[L([V,o,h]),V]:[o,h],l?")":""])}var k1=O$,M$={experimental_avoidAstMutation:!0},j$=[{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}],_A={};Im(_A,{getVisitorKeys:()=>z$,massageAstNode:()=>LA,print:()=>V$});var os=[[]],R$={JsonRoot:["node"],ArrayExpression:["elements"],ObjectExpression:["properties"],ObjectProperty:["key","value"],UnaryExpression:["argument"],NullLiteral:os[0],BooleanLiteral:os[0],StringLiteral:os[0],NumericLiteral:os[0],Identifier:os[0],TemplateLiteral:["quasis"],TemplateElement:os[0]},U$=_C(R$),z$=U$;function V$(e,t,r){let{node:n}=e;switch(n.type){case"JsonRoot":return[r("node"),O];case"ArrayExpression":{if(n.elements.length===0)return"[]";let i=e.map(()=>e.node===null?"null":r(),"elements");return["[",L([O,fe([",",O],i)]),O,"]"]}case"ObjectExpression":return n.properties.length===0?"{}":["{",L([O,fe([",",O],e.map(r,"properties"))]),O,"}"];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 N1(e)?JSON.stringify(String(n.value)):JSON.stringify(n.value);case"Identifier":return N1(e)?JSON.stringify(n.name):n.name;case"TemplateLiteral":return r(["quasis",0]);case"TemplateElement":return JSON.stringify(n.value.cooked);default:throw new fa(n,"JSON")}}function N1(e){return e.key==="key"&&e.parent.type==="ObjectProperty"}var q$=new Set(["start","end","extra","loc","comments","leadingComments","trailingComments","innerComments","errors","range","tokens"]);function LA(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}}LA.ignoredProperties=q$;var $a={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."}},kn="JavaScript",H$={arrowParens:{category:kn,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:$a.bracketSameLine,objectWrap:$a.objectWrap,bracketSpacing:$a.bracketSpacing,jsxBracketSameLine:{category:kn,type:"boolean",description:"Put > on the last line instead of at a new line.",deprecated:"2.4.0"},semi:{category:kn,type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},experimentalOperatorPosition:{category:kn,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:kn,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:$a.singleQuote,jsxSingleQuote:{category:kn,type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{category:kn,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:kn,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:$a.singleAttributePerLine},$A=H$,OA={estree:wC,"estree-json":_A},MA=[...W4,...j$];const W$=Object.freeze(Object.defineProperty({__proto__:null,default:bC,languages:MA,options:$A,printers:OA},Symbol.toStringTag,{value:"Module"}));var jA=Object.defineProperty,RA=e=>{throw TypeError(e)},J$=(e,t,r)=>t in e?jA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,UA=(e,t)=>{for(var r in t)jA(e,r,{get:t[r],enumerable:!0})},B1=(e,t,r)=>J$(e,typeof t!="symbol"?t+"":t,r),X$=(e,t,r)=>t.has(e)||RA("Cannot "+r),Qu=(e,t,r)=>(X$(e,t,"read from private field"),r?r.call(e):t.get(e)),K$=(e,t,r)=>t.has(e)?RA("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),zA={};UA(zA,{languages:()=>_T,options:()=>LT,parsers:()=>Py,printers:()=>RT});var hy=(e,t)=>(r,n,...i)=>r|1&&n==null?void 0:(t.call(n)??n[e]).apply(n,i),G$=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},Q$=hy("replaceAll",function(){if(typeof this=="string")return G$}),Et=Q$;function Y$(e){return this[e<0?this.length+e:e]}var Z$=hy("at",function(){if(Array.isArray(this)||typeof this=="string")return Y$}),ma=Z$,eO=()=>{},tO=eO,VA="string",qA="array",HA="cursor",dy="indent",fy="align",WA="trim",my="group",yy="fill",gy="if-break",Dy="indent-if-break",JA="line-suffix",XA="line-suffix-boundary",ya="line",KA="label",Ey="break-parent",GA=new Set([HA,dy,fy,WA,my,yy,gy,Dy,JA,XA,ya,KA,Ey]);function rO(e){if(typeof e=="string")return VA;if(Array.isArray(e))return qA;if(!e)return;let{type:t}=e;if(GA.has(t))return t}var QA=rO,nO=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function iO(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(QA(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=nO([...GA].map(i=>`'${i}'`));return`Unexpected doc.type '${e.type}'. -Expected it to be ${n}.`}var sO=class extends Error{constructor(t){super(iO(t));U(this,"name","InvalidDocError");this.doc=t}},aO=sO;function YA(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(QA(s)){case qA:return t(s.map(n));case yy:return t({...s,parts:s.parts.map(n)});case gy:return t({...s,breakContents:n(s.breakContents),flatContents:n(s.flatContents)});case my:{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 fy:case dy:case Dy:case KA:case JA:return t({...s,contents:n(s.contents)});case VA:case HA:case WA:case XA:case ya:case Ey:return t(s);default:throw new aO(s)}}}function $r(e,t=dO){return YA(e,r=>typeof r=="string"?ga(t,r.split(` -`)):r)}var oO=tO;function qr(e){return{type:dy,contents:e}}function uO(e,t){return{type:fy,contents:t,n:e}}function lO(e){return uO(Number.NEGATIVE_INFINITY,e)}var fu={type:Ey};function ZA(e){return{type:yy,parts:e}}function We(e,t={}){return oO(t.expandedStates),{type:my,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function Jo(e,t="",r={}){return{type:gy,breakContents:e,flatContents:t,groupId:r.groupId}}function cO(e,t){return{type:Dy,contents:e,groupId:t.groupId,negate:t.negate}}function ga(e,t){let r=[];for(let n=0;na?n:r).character}var gO=yO;function DO(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var Kt,cc,rT,pD,EO=(pD=class{constructor(e){yi(this,cc);yi(this,Kt,void 0);np(this,Kt,new Set(e))}getLeadingWhitespaceCount(e){let t=et(this,Kt),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 et(this,Kt).has(e.charAt(0))}hasTrailingWhitespace(e){return et(this,Kt).has(ma(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=`[${DO([...et(this,Kt)].join(""))}]+`,n=new RegExp(t?`(${r})`:r,"u");return e.split(n)}hasWhitespaceCharacter(e){let t=et(this,Kt);return Array.prototype.some.call(e,r=>t.has(r))}hasNonWhitespaceCharacter(e){let t=et(this,Kt);return Array.prototype.some.call(e,r=>!t.has(r))}isWhitespaceOnly(e){let t=et(this,Kt);return Array.prototype.every.call(e,r=>t.has(r))}dedentString(e){let t=Sn(this,cc,rT).call(this,e);return t===0?e:e.split(` +`)}},Xt=new WeakMap,lc=new WeakSet,tA=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===V||e===M||e===_;function WL(e,t,r){var D,E,A,F,k;let{node:n}=e;if(n.type==="JSXElement"&&u7(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(b=>l7(b)?{type:"JSXText",value:" ",raw:" "}:b);let a=n.children.some(Ze),o=n.children.filter(b=>b.type==="JSXExpressionContainer").length>1,u=n.type==="JSXElement"&&n.openingElement.attributes.length>1,l=gt(i)||a||u||o,c=e.parent.rootMarker==="mdx",p=t.singleQuote?"{' '}":'{" "}',h=c?V:ie([p,_]," "),d=((E=(D=n.openingElement)==null?void 0:D.name)==null?void 0:E.name)==="fbt",f=JL(e,t,r,h,d),y=n.children.some(b=>Wo(b));for(let b=f.length-2;b>=0;b--){let O=f[b]===""&&f[b+1]==="",P=f[b]===M&&f[b+1]===""&&f[b+2]===M,j=(f[b]===_||f[b]===M)&&f[b+1]===""&&f[b+2]===h,Y=f[b]===h&&f[b+1]===""&&(f[b+2]===_||f[b+2]===M),N=f[b]===h&&f[b+1]===""&&f[b+2]===h,Q=f[b]===_&&f[b+1]===""&&f[b+2]===M||f[b]===M&&f[b+1]===""&&f[b+2]===_;P&&y||O||j||N||Q?f.splice(b,2):Y&&f.splice(b+1,2)}for(;f.length>0&&ih(Ce(0,f,-1));)f.pop();for(;f.length>1&&ih(f[0])&&ih(f[1]);)f.shift(),f.shift();let x=[""];for(let[b,O]of f.entries()){if(O===h){if(b===1&&x9(f[b-1])){if(f.length===2){x.push([x.pop(),p]);continue}x.push([p,M],"");continue}else if(b===f.length-1){x.push([x.pop(),p]);continue}else if(f[b-1]===""&&f[b-2]===M){x.push([x.pop(),p]);continue}}b%2===0?x.push([x.pop(),O]):x.push(O,""),gt(O)&&(l=!0)}let g=y?yv(x):w(x,{shouldBreak:!0});if(((A=t.cursorNode)==null?void 0:A.type)==="JSXText"&&n.children.includes(t.cursorNode)?g=[Xu,g,Xu]:((F=t.nodeBeforeCursor)==null?void 0:F.type)==="JSXText"&&n.children.includes(t.nodeBeforeCursor)?g=[Xu,g]:((k=t.nodeAfterCursor)==null?void 0:k.type)==="JSXText"&&n.children.includes(t.nodeAfterCursor)&&(g=[g,Xu]),c)return g;let m=w([i,L([M,g]),M,s]);return l?m:ki([w([i,...f,s]),m])}function JL(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=Nt(l);if(Wo(l)){let h=Tl.split(p,!0);h[0]===""&&(h.shift(),/\n/u.test(h[0])?u(A1(i,h[1],l,c)):u(n),h.shift());let d;if(Ce(0,h,-1)===""&&(h.pop(),d=h.pop()),h.length===0)return;for(let[f,y]of h.entries())f%2===1?u(V):o(y);d!==void 0?/\n/u.test(d)?u(A1(i,s,l,c)):u(n):u(v1(i,s,l,c))}else/\n/u.test(p)?p.match(/\n/gu).length>1&&u(M):u(n)}else{let p=r();if(o(p),c&&Wo(c)){let h=Tl.trim(Nt(c)),[d]=Tl.split(h);u(v1(i,d,l,c))}else u(M)}},"children"),a}function v1(e,t,r,n){return e?"":r.type==="JSXElement"&&!r.closingElement||(n==null?void 0:n.type)==="JSXElement"&&!n.closingElement?t.length===1?_:M:_}function A1(e,t,r,n){return e?M:t.length===1?r.type==="JSXElement"&&!r.closingElement||(n==null?void 0:n.type)==="JSXElement"&&!n.closingElement?M:_:M}var XL=oe(["ArrayExpression","JSXAttribute","JSXElement","JSXExpressionContainer","JSXFragment","ExpressionStatement","NewExpression","CallExpression","OptionalCallExpression","ConditionalExpression","JsExpressionRoot","MatchExpressionCase"]);function KL(e,t,r){let{parent:n}=e;if(XL(n))return t;let i=GL(e),s=yi(e,r);return w([s?"":ie("("),L([_,t]),_,s?"":ie(")")],{shouldBreak:i})}function GL(e){return e.match(void 0,(t,r)=>r==="body"&&t.type==="ArrowFunctionExpression",(t,r)=>r==="arguments"&&Ee(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 QL(e,t,r){let{node:n}=e,i=[r("name")];if(n.value){let s;if(et(n.value)){let a=Nt(n.value),o=Qe(0,Qe(0,a.slice(1,-1),"'","'"),""",'"'),u=MC(o,t.jsxSingleQuote);o=u==='"'?Qe(0,o,'"',"""):Qe(0,o,"'","'"),s=e.call(()=>rr(e,Ui(u+o+u),t),"value")}else s=r("value");i.push("=",s)}return i}function YL(e,t,r){let{node:n}=e,i=(s,a)=>s.type==="JSXEmptyExpression"||!z(s)&&(ot(s)||xr(s)||s.type==="ArrowFunctionExpression"||s.type==="AwaitExpression"&&(i(s.argument,s)||s.argument.type==="JSXElement")||Ee(s)||s.type==="ChainExpression"&&Ee(s.expression)||s.type==="FunctionExpression"||s.type==="TemplateLiteral"||s.type==="TaggedTemplateExpression"||s.type==="DoExpression"||Ze(a)&&(s.type==="ConditionalExpression"||pn(s)));return i(n.expression,e.parent)?w(["{",r("expression"),jr,"}"]):w(["{",L([_,r("expression")]),_,jr,"}"])}function ZL(e,t,r){var o,u;let{node:n}=e,i=z(n.name)||z(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&&et(n.attributes[0].value)&&!n.attributes[0].value.value.includes(` +`)&&!i&&!z(n.attributes[0]))return w(["<",r("name"),r("typeArguments")," ",...e.map(r,"attributes"),n.selfClosing?" />":">"]);let s=(u=n.attributes)==null?void 0:u.some(l=>et(l.value)&&l.value.value.includes(` +`)),a=t.singleAttributePerLine&&n.attributes.length>1?M:V;return w(["<",r("name"),r("typeArguments"),L(e.map(()=>[a,r()],"attributes")),...e7(n,t,i)],{shouldBreak:s})}function e7(e,t,r){return e.selfClosing?[V,"/>"]:t7(e,t,r)?[">"]:[_,">"]}function t7(e,t,r){let n=e.attributes.length>0&&z(Ce(0,e.attributes,-1),W.Trailing);return e.attributes.length===0&&!r||(t.bracketSameLine||t.jsxBracketSameLine)&&(!r||e.attributes.length>0)&&!n}function r7(e,t,r){let{node:n}=e,i=[""),i}function n7(e,t){let{node:r}=e,n=z(r),i=z(r,W.Line),s=r.type==="JSXOpeningFragment";return[s?"<":""]}function i7(e,t,r){let n=rr(e,WL(e,t,r),t);return KL(e,n,t)}function s7(e,t){let{node:r}=e,n=z(r,W.Line);return[be(e,t,{indent:n}),n?M:""]}function a7(e,t,r){let{node:n}=e;return["{",e.call(({node:i})=>{let s=["...",r()];return z(i)?[L([_,rr(e,s,t)]),_]:s},n.type==="JSXSpreadAttribute"?"argument":"expression"),"}"]}function o7(e,t,r){let{node:n}=e;if(n.type.startsWith("JSX"))switch(n.type){case"JSXAttribute":return QL(e,t,r);case"JSXIdentifier":return n.name;case"JSXNamespacedName":return fe(":",[r("namespace"),r("name")]);case"JSXMemberExpression":return fe(".",[r("object"),r("property")]);case"JSXSpreadAttribute":case"JSXSpreadChild":return a7(e,t,r);case"JSXExpressionContainer":return YL(e,t,r);case"JSXFragment":case"JSXElement":return i7(e,t,r);case"JSXOpeningElement":return ZL(e,t,r);case"JSXClosingElement":return r7(e,t,r);case"JSXOpeningFragment":case"JSXClosingFragment":return n7(e,t);case"JSXEmptyExpression":return s7(e,t);case"JSXText":throw new Error("JSXText should be handled by JSXElement");default:throw new fa(n,"JSX")}}function u7(e){if(e.children.length===0)return!0;if(e.children.length>1)return!1;let t=e.children[0];return t.type==="JSXText"&&!Wo(t)}function Wo(e){return e.type==="JSXText"&&(Tl.hasNonWhitespaceCharacter(Nt(e))||!/\n/u.test(Nt(e)))}function l7(e){return e.type==="JSXExpressionContainer"&&et(e.expression)&&e.expression.value===" "&&!z(e.expression)}function c7(e){let{node:t,parent:r}=e;if(!Ze(t)||!Ze(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"&&!Wo(o))){s=o;break}}return(s==null?void 0:s.type)==="JSXExpressionContainer"&&s.expression.type==="JSXEmptyExpression"&&Uc(s.expression)}function p7(e){return Uc(e.node)||c7(e)}var ay=p7;function h7(e,t,r){let{node:n}=e;if(n.type.startsWith("NG"))switch(n.type){case"NGRoot":return r("node");case"NGPipeExpression":return Iv(e,t,r);case"NGChainedExpression":return w(fe([";",V],e.map(()=>m7(e)?r():["(",r(),")"],"expressions")));case"NGEmptyExpression":return"";case"NGMicrosyntax":return e.map(()=>[e.isFirst?"":T1(e)?" ":[";",V],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=T1(e)||d7(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 fa(n,"Angular")}}function T1({node:e,index:t}){return e.type==="NGMicrosyntaxKeyedExpression"&&e.key.name==="of"&&t===1}function d7(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 f7=oe(["CallExpression","OptionalCallExpression","AssignmentExpression"]);function m7({node:e}){return Td(e,f7)}function rA(e,t,r){let{node:n}=e;return w([fe(V,e.map(r,"decorators")),nA(n,t)?M:V])}function y7(e,t,r){return iA(e.node)?[fe(M,e.map(r,"declaration","decorators")),M]:""}function g7(e,t,r){let{node:n,parent:i}=e,{decorators:s}=n;if(!Pe(s)||iA(i)||ay(e))return"";let a=n.type==="ClassExpression"||n.type==="ClassDeclaration"||nA(n,t);return[e.key==="declaration"&&Q6(i)?M:a?dn:"",fe(V,e.map(r,"decorators")),V]}function nA(e,t){return e.decorators.some(r=>kt(t.originalText,ce(r)))}function iA(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 Pe(t)&&jc(e,t[0])}var sh=new WeakMap;function sA(e){return sh.has(e)||sh.set(e,e.type==="ConditionalExpression"&&!yt(e,t=>t.type==="ObjectExpression")),sh.get(e)}var D7=e=>e.type==="SequenceExpression";function E7(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=x7(e,t,r,n);if(i.length===0)i.push(D);else{let{leading:E,trailing:A}=zc(e,t);i.push([E,D]),a.unshift(A)}u&&(o||(o=m.returnType&&dt(m).length>0||m.typeParameters||dt(m).some(E=>E.type!=="Identifier"))),!u||m.body.type!=="ArrowFunctionExpression"?(s=r("body",n),l=m.body):e.call(g,"body")})();let c=!Dr(t.originalText,l)&&(D7(l)||C7(l,s,t)||!o&&sA(l)),p=e.key==="callee"&&Zs(e.parent),h=Symbol("arrow-chain"),d=v7(e,n,{signatureDocs:i,shouldBreak:o}),f=!1,y=!1,x=!1;return u&&(p||n.assignmentLayout)&&(y=!0,x=!z(e.node,W.Leading&W.Line),f=n.assignmentLayout==="chain-tail-arrow-chain"||p&&!c),s=A7(e,t,n,{bodyDoc:s,bodyComments:a,functionBody:l,shouldPutBodyOnSameLine:c}),w([w(y?L([x?_:"",d]):d,{shouldBreak:f,id:h})," =>",u?qo(s,{groupId:h}):w(s),u&&p?ie(_,"",{groupId:h}):""])}function x7(e,t,r,n){let{node:i}=e,s=[];if(i.async&&s.push("async "),Kv(e,t))s.push(r(["params",0]));else{let o=n.expandLastArg||n.expandFirstArg,u=Hc(e,r);if(o){if(gt(u))throw new sc;u=w(ic(u))}s.push(w([rs(e,t,r,o,!0),u]))}let a=be(e,t,{filter(o){let u=ca(t.originalText,ce(o));return u!==!1&&t.originalText.slice(u,u+2)==="=>"}});return a&&s.push(" ",a),s}function C7(e,t,r){var n,i;return ot(e)||xr(e)||e.type==="ArrowFunctionExpression"||e.type==="DoExpression"||e.type==="BlockStatement"||Ze(e)||((n=t.label)==null?void 0:n.hug)!==!1&&(((i=t.label)==null?void 0:i.embed)||KC(e,r.originalText))}function v7(e,t,{signatureDocs:r,shouldBreak:n}){if(r.length===1)return r[0];let{parent:i,key:s}=e;return s!=="callee"&&Zs(i)||pn(i)?w([r[0]," =>",L([V,fe([" =>",V],r.slice(1))])],{shouldBreak:n}):s==="callee"&&Zs(i)||t.assignmentLayout?w(fe([" =>",V],r),{shouldBreak:n}):w(L(fe([" =>",V],r)),{shouldBreak:n})}function A7(e,t,r,{bodyDoc:n,bodyComments:i,functionBody:s,shouldPutBodyOnSameLine:a}){let{node:o,parent:u}=e,l=r.expandLastArg&&zr(t,"all")?ie(","):"",c=(r.expandLastArg||u.type==="JSXExpressionContainer")&&!z(o)?_:"";return a&&sA(s)?[" ",w([ie("","("),L([_,n]),ie("",")"),l,c]),i]:a?[" ",n,i]:[L([V,n,i]),l,c]}var T7=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}},S7=_m("findLast",function(){if(Array.isArray(this))return T7}),F7=S7;function $d(e,t,r,n){let{node:i}=e,s=[],a=F7(0,i[n],o=>o.type!=="EmptyStatement");return e.each(({node:o})=>{o.type!=="EmptyStatement"&&(s.push(r()),o!==a&&(s.push(M),Vr(o,t)&&s.push(M)))},n),s}function aA(e,t,r){let n=b7(e,t,r),{node:i,parent:s}=e;if(i.type==="Program"&&(s==null?void 0:s.type)!=="ModuleExpression")return n?[n,M]:"";let a=[];if(i.type==="StaticBlock"&&a.push("static "),a.push("{"),n)a.push(L([M,n]),M);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(M)}return a.push("}"),a}function b7(e,t,r){let{node:n}=e,i=Pe(n.directives),s=n.body.some(u=>u.type!=="EmptyStatement"),a=z(n,W.Dangling);if(!i&&!s&&!a)return"";let o=[];return i&&(o.push($d(e,t,r,"directives")),(s||a)&&(o.push(M),Vr(Ce(0,n.directives,-1),t)&&o.push(M))),s&&o.push($d(e,t,r,"body")),a&&o.push(be(e,t)),o}function w7(e){let t=new WeakMap;return function(r){return t.has(r)||t.set(r,Symbol(e)),t.get(r)}}var P7=w7;function oy(e,t,r){let{node:n}=e,i=[],s=n.type==="ObjectTypeAnnotation",a=!oA(e),o=a?V:M,u=z(n,W.Dangling),[l,c]=s&&n.exact?["{|","|}"]:"{}",p;if(k7(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(","):zr(t)&&i.push(ie(","))}!a&&(N7({node:h,next:d},t)||lA({node:h,next:d},t))&&i.push(";"),f||(i.push(o),Vr(h,t)&&i.push(M))}),u&&i.push(be(e,t)),n.type==="ObjectTypeAnnotation"&&n.inexact){let h;z(n,W.Dangling)?h=[z(n,W.Line)||kt(t.originalText,ce(Ce(0,_i(n),-1)))?M:V,"..."]:h=[p?V:"","..."],i.push(h)}if(a){let h=u||t.objectWrap==="preserve"&&p&&Vt(t.originalText,he(n),he(p)),d;if(i.length===0)d=l+c;else{let f=t.bracketSpacing?V:_;d=[l,L([f,...i]),f,c]}return e.match(void 0,(f,y)=>y==="typeAnnotation",(f,y)=>y==="typeAnnotation",mo)||e.match(void 0,(f,y)=>f.type==="FunctionTypeParam"&&y==="typeAnnotation",mo)?d:w(d,{shouldBreak:h})}return[l,i.length>0?[L([M,i]),M]:"",c]}function oA(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 k7(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:he(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 en(e,t){let{parent:r}=e;return e.callParent(oA)?t.semi||r.type==="ObjectTypeAnnotation"?";":"":r.type==="TSTypeLiteral"?e.isLast?t.semi?ie(";"):"":t.semi||lA({node:e.node,next:e.next},t)?";":ie("",";"):""}var S1=oe(["ClassProperty","PropertyDefinition","ClassPrivateProperty","ClassAccessorProperty","AccessorProperty","TSAbstractPropertyDefinition","TSAbstractAccessorProperty"]),uA=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 N7({node:e,next:t},r){var n;if(r.semi||!S1(e))return!1;if(!e.value&&uA(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(S1(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 B7=oe(["TSPropertySignature"]);function lA({node:e,next:t},r){if(r.semi||!B7(e))return!1;if(uA(e))return!0;if(!t)return!1;switch(t.type){case"TSCallSignatureDeclaration":return!0}return!1}var I7=P7("heritageGroup"),_7=oe(["TSInterfaceDeclaration","DeclareInterface","InterfaceDeclaration","InterfaceTypeAnnotation"]);function uy(e,t,r){let{node:n}=e,i=_7(n),s=[qt(e),Vc(e),i?"interface":"class"],a=pA(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(()=>zc(e,t),c);o.push(p,r(c),L(h))}}if(n.superClass){let c=[M7(e,t,r),r(n.superTypeArguments?"superTypeArguments":"superTypeParameters")],p=e.call(()=>["extends ",rr(e,c,t)],"superClass");a?u.push(V,w(p)):u.push(" ",p)}else u.push(oh(e,t,r,"extends"));u.push(oh(e,t,r,"mixins"),oh(e,t,r,"implements"));let l;return a?(l=I7(n),s.push(w([...o,L(u)],{id:l}))):s.push(...o,...u),!i&&a&&L7(n.body)?s.push(ie(M," ",{groupId:l})):s.push(" "),s.push(r("body")),s}function L7(e){return e.type==="ObjectTypeAnnotation"?["properties","indexers","callProperties","internalSlots"].some(t=>Pe(e[t])):Pe(e.body)}function cA(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 $7(e){var n,i,s;let{node:t}=e;if(z(t.id,W.Trailing)||z(t.typeParameters,W.Trailing)||z(t.superClass)||cA(t))return!0;if(t.superClass)return e.parent.type==="AssignmentExpression"?!1:!(t.superTypeArguments??t.superTypeParameters)&&we(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")&&we(r.expression)&&!r.typeArguments:!1}var ah=new WeakMap;function pA(e){let{node:t}=e;return ah.has(t)||ah.set(t,$7(e)),ah.get(t)}function oh(e,t,r,n){let{node:i}=e;if(!Pe(i[n]))return"";let s=be(e,t,{marker:n}),a=fe([",",V],e.map(r,n));if(!cA(i)){let o=[`${n} `,s,a];return pA(e)?[V,w(o)]:[" ",o]}return[V,s,s&&M,n,w(L([V,a]))]}function M7(e,t,r){let n=r("superClass"),{parent:i}=e;return i.type==="AssignmentExpression"?w(ie(["(",L([_,n]),_,")"],n)):n}function hA(e,t,r){let{node:n}=e,i=[];return Pe(n.decorators)&&i.push(rA(e,t,r)),i.push(qc(n)),n.static&&i.push("static "),i.push(Vc(e)),n.override&&i.push("override "),i.push(Ld(e,t,r)),i}function dA(e,t,r){let{node:n}=e,i=[];Pe(n.decorators)&&i.push(rA(e,t,r)),i.push(qt(e),qc(n)),n.static&&i.push("static "),i.push(Vc(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(du(e,t,r),Et(e),Bv(e),it(e,r));let s=n.type==="TSAbstractPropertyDefinition"||n.type==="TSAbstractAccessorProperty";return[hu(e,t,r,i," =",s?void 0:"value"),t.semi?";":""]}var O7=oe(["TSAsExpression","TSTypeAssertion","TSNonNullExpression","TSInstantiationExpression","TSSatisfiesExpression"]);function fA(e){return O7(e)?fA(e.expression):e}var j7=oe(["FunctionExpression","ArrowFunctionExpression"]);function R7(e){return e.type==="MemberExpression"||e.type==="OptionalMemberExpression"||e.type==="Identifier"&&e.name!=="undefined"}function U7(e,t){if(eA(e,t)){let r=fA(e.node.expression);return j7(r)||R7(r)}return!(!t.semi||Yv(e,t)||Zv(e,t))}function z7(e,t,r){return[r("expression"),U7(e,t)?";":""]}function V7(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=fe([",",V],n);return t.__isVueForBindingLeft?["(",L([_,w(i)]),_,")"]:i}if(t.__isEmbeddedTypescriptGenericParameters){let n=e.map(r,"program","body",0,"typeParameters","params");return fe([",",V],n)}}function q7(e,t){let{node:r}=e;switch(r.type){case"RegExpLiteral":return F1(r);case"BigIntLiteral":return Md(r.extra.raw);case"NumericLiteral":return ea(r.extra.raw);case"StringLiteral":return Ui(Qs(r.extra.raw,t));case"NullLiteral":return"null";case"BooleanLiteral":return String(r.value);case"DirectiveLiteral":return b1(r.extra.raw,t);case"Literal":{if(r.regex)return F1(r.regex);if(r.bigint)return Md(r.raw);let{value:n}=r;return typeof n=="number"?ea(r.raw):typeof n=="string"?H7(e)?b1(r.raw,t):Ui(Qs(r.raw,t)):String(n)}}}function H7(e){if(e.key!=="expression")return;let{parent:t}=e;return t.type==="ExpressionStatement"&&typeof t.directive=="string"}function Md(e){return e.toLowerCase()}function F1({pattern:e,flags:t}){return t=[...t].sort().join(""),`/${e}/${t}`}var W7="use strict";function b1(e,t){let r=e.slice(1,-1);if(r===W7||!(r.includes('"')||r.includes("'"))){let n=t.singleQuote?"'":'"';return n+r+n}return e}function J7(e,t,r){let n=e.originalText.slice(t,r);for(let i of e[Symbol.for("comments")]){let s=he(i);if(s>r)break;let a=ce(i);if(ag.value&&(g.value.type==="ObjectPattern"||g.value.type==="ArrayPattern"))||n.type!=="ObjectPattern"&&t.objectWrap==="preserve"&&c.length>0&&K7(n,c[0],t),h=[],d=e.map(({node:g})=>{let m=[...h,w(r())];return h=[",",V],Vr(g,t)&&h.push(M),m},l);if(u){let g;if(z(n,W.Dangling)){let m=z(n,W.Line);g=[be(e,t),m||kt(t.originalText,ce(Ce(0,_i(n),-1)))?M:V,"..."]}else g=["..."];d.push([...h,...g])}let f=!(u||((x=Ce(0,c,-1))==null?void 0:x.type)==="RestElement"),y;if(d.length===0){if(!z(n,W.Dangling))return["{}",it(e,r)];y=w(["{",be(e,t,{indent:!0}),_,"}",Et(e),it(e,r)])}else{let g=t.bracketSpacing?V:_;y=["{",L([g,...d]),ie(f&&zr(t)?",":""),g,"}",Et(e),it(e,r)]}return e.match(g=>g.type==="ObjectPattern"&&!Pe(g.decorators),mo)||ii(n)&&(e.match(void 0,(g,m)=>m==="typeAnnotation",(g,m)=>m==="typeAnnotation",mo)||e.match(void 0,(g,m)=>g.type==="FunctionTypeParam"&&m==="typeAnnotation",mo))||!p&&e.match(g=>g.type==="ObjectPattern",g=>g.type==="AssignmentExpression"||g.type==="VariableDeclarator")?y:w(y,{shouldBreak:p})}function K7(e,t,r){let n=r.originalText,i=he(e),s=he(t);if(mA(e)){let a=he(e),o=Wc(r,a,s);i=a+o.lastIndexOf("{")}return Vt(n,i,s)}function G7(e,t,r){let{node:n}=e;return["import",n.phase?` ${n.phase}`:"",DA(n),xA(e,t,r),EA(e,t,r),vA(e,t,r),t.semi?";":""]}var yA=e=>e.type==="ExportDefaultDeclaration"||e.type==="DeclareExportDeclaration"&&e.default;function gA(e,t,r){let{node:n}=e,i=[y7(e,t,r),qt(e),"export",yA(n)?" default":""],{declaration:s,exported:a}=n;return z(n,W.Dangling)&&(i.push(" ",be(e,t)),GC(n)&&i.push(M)),s?i.push(" ",r("declaration")):(i.push(Z7(n)),n.type==="ExportAllDeclaration"||n.type==="DeclareExportAllDeclaration"?(i.push(" *"),a&&i.push(" as ",r("exported"))):i.push(xA(e,t,r)),i.push(EA(e,t,r),vA(e,t,r))),i.push(Y7(n,t)),i}var Q7=oe(["ClassDeclaration","ComponentDeclaration","FunctionDeclaration","TSInterfaceDeclaration","DeclareClass","DeclareComponent","DeclareFunction","DeclareHook","HookDeclaration","TSDeclareFunction","EnumDeclaration"]);function Y7(e,t){return t.semi&&(!e.declaration||yA(e)&&!Q7(e.declaration))?";":""}function cy(e,t=!0){return e&&e!=="value"?`${t?" ":""}${e}${t?"":" "}`:""}function DA(e,t){return cy(e.importKind,t)}function Z7(e){return cy(e.exportKind)}function EA(e,t,r){let{node:n}=e;return n.source?[CA(n,t)?" from":""," ",r("source")]:""}function xA(e,t,r){let{node:n}=e;if(!CA(n,t))return"";let i=[" "];if(Pe(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 fa(n,"specifier")},"specifiers"),i.push(fe(", ",s)),a.length>0&&(s.length>0&&i.push(", "),a.length>1||s.length>0||n.specifiers.some(o=>z(o))?i.push(w(["{",L([t.bracketSpacing?V:_,fe([",",V],a)]),ie(zr(t)?",":""),t.bracketSpacing?V:_,"}"])):i.push(["{",t.bracketSpacing?" ":"",...a,t.bracketSpacing?" ":"","}"]))}else i.push("{}");return i}function CA(e,t){return e.type!=="ImportDeclaration"||Pe(e.specifiers)||e.importKind==="type"?!0:Wc(t,he(e),he(e.source)).trimEnd().endsWith("from")}function e$(e,t){var n,i;if((n=e.extra)!=null&&n.deprecatedAssertSyntax)return"assert";let r=Wc(t,ce(e.source),(i=e.attributes)!=null&&i[0]?he(e.attributes[0]):ce(e)).trimStart();return r.startsWith("assert")?"assert":r.startsWith("with")||Pe(e.attributes)?"with":void 0}var t$=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"||et(i)&&i.value==="type")&&et(s)&&!z(r)&&!z(i)&&!z(s)};function vA(e,t,r){let{node:n}=e;if(!n.source)return"";let i=e$(n,t);if(!i)return"";let s=ly(e,t,r);return t$(n)&&(s=ic(s)),[` ${i} `,s]}function r$(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&&!n$(n)&&(p=r(o)),[cy(i==="ImportSpecifier"?n.importKind:n.exportKind,!1),c,c&&p?" as ":"",p]}function n$(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||!L6(t,r))return!1;if(et(t))return t.value===r.value&&Nt(t)===Nt(r);switch(t.type){case"Identifier":return t.name===r.name;default:return!1}}function Od(e,t){return["...",t("argument"),it(e,t)]}function i$(e){let t=[e];for(let r=0;rh[b]===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(b=>y[b]!==x));let m=y||h,D=x;if(i&&(Ze(n[o[0]])||Ze(u)||Ze(l)||i$(D))){p=!0,f=!0;let b=P=>[ie("("),L([_,P]),_,ie(")")],O=P=>P.type==="NullLiteral"||P.type==="Literal"&&P.value===null||P.type==="Identifier"&&P.name==="undefined";c.push(" ? ",O(u)?r(s):b(r(s))," : ",l.type===n.type||O(l)?r(a):b(r(a)))}else{let b=P=>t.useTabs?L(r(P)):vr(2,r(P)),O=[V,"? ",u.type===n.type?ie("","("):"",b(s),u.type===n.type?ie("",")"):"",V,": ",b(a)];c.push(h.type!==n.type||h[a]===n||d?O:t.useTabs?mv(L(O)):vr(Math.max(0,t.tabWidth-2),O))}let E=b=>h===m?w(b):b,A=!p&&(we(h)||h.type==="NGPipeExpression"&&h.left===n)&&!h.computed,F=o$(e),k=E([s$(e,t,r),f?c:L(c),i&&A&&!F?_:""]);return d||F?w([L([_,k]),_]):k}function l$(e,t){return(we(t)||t.type==="NGPipeExpression"&&t.left===e)&&!t.computed}function c$(e,t,r,n){return[...e.map(i=>_i(i)),_i(t),_i(r)].flat().some(i=>Ar(i)&&Vt(n.originalText,he(i),ce(i)))}var p$=new Map([["AssignmentExpression","right"],["VariableDeclarator","init"],["ReturnStatement","argument"],["ThrowStatement","argument"],["UnaryExpression","argument"],["YieldExpression","argument"],["AwaitExpression","argument"]]);function h$(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||Ee(s)&&s.callee===n||we(s)&&s.object===n||s.type==="TSNonNullExpression"&&s.expression===n){n=s;continue}s.type==="NewExpression"&&s.callee===n||mr(s)&&s.expression===n?(r=e.getParentNode(i+1),n=s):r=s}return n===t?!1:r[p$.get(r.type)]===n}var uh=e=>[ie("("),L([_,e]),_,ie(")")];function py(e,t,r,n){if(!t.experimentalTernaries)return u$(e,t,r);let{node:i}=e,s=i.type==="ConditionalExpression",a=si(i),o=s?"consequent":"trueType",u=s?"alternate":"falseType",l=s?["test"]:["checkType","extendsType"],c=i[o],p=i[u],h=l.map(va=>i[va]),{parent:d}=e,f=d.type===i.type,y=f&&l.some(va=>d[va]===i),x=f&&d[u]===i,g=c.type===i.type,m=p.type===i.type,D=m||x,E=t.tabWidth>2||t.useTabs,A,F,k=0;do F=A||i,A=e.getParentNode(k),k++;while(A&&A.type===i.type&&l.every(va=>A[va]!==F));let b=A||d,O=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"),P=(d.type==="ReturnStatement"||d.type==="ThrowStatement")&&!(g||m),j=s&&b.type==="JSXExpressionContainer"&&e.grandparent.type!=="JSXAttribute",Y=h$(e),N=l$(i,d),Q=a&&yi(e,t),H=E?t.useTabs?" ":" ".repeat(t.tabWidth-1):"",ne=c$(h,c,p,t)||g||m,ge=!D&&!f&&!a&&(j?c.type==="NullLiteral"||c.type==="Literal"&&c.value===null:qm(c,t)&&i1(i.test,3)),$=D||x||a&&!f||f&&s&&i1(i.test,1)||ge,Z=[];!g&&z(c,W.Dangling)&&e.call(()=>{Z.push(be(e,t),M)},"consequent");let J=[];z(i.test,W.Dangling)&&e.call(()=>{J.push(be(e,t))},"test"),!m&&z(p,W.Dangling)&&e.call(()=>{J.push(be(e,t))},"alternate"),z(i,W.Dangling)&&J.push(be(e,t));let te=Symbol("test"),ae=Symbol("consequent"),K=Symbol("test-and-consequent"),se=s?[uh(r("test")),i.test.type==="ConditionalExpression"?dn:""]:[r("checkType")," ","extends"," ",si(i.extendsType)||i.extendsType.type==="TSMappedType"?r("extendsType"):w(uh(r("extendsType")))],me=w([se," ?"],{id:te}),Hr=r(o),Wr=L([g||j&&(Ze(c)||f||D)?M:V,Z,Hr]),XT=$?w([me,D?Wr:ie(Wr,w(Wr,{id:ae}),{groupId:te})],{id:K}):[me,Wr],tp=r(u),Ny=ge?ie(tp,mv(uh(tp)),{groupId:K}):tp,Ca=[XT,J.length>0?[L([M,J]),M]:m?M:ge?ie(V," ",{groupId:K}):V,":",m?" ":E?$?ie(H,ie(D||ge?" ":H," "),{groupId:K}):ie(H," "):" ",m?Ny:w([L(Ny),j&&!ge?_:""]),N&&!Y?_:"",ne?dn:""];return O&&!ne?w(L([_,w(Ca)])):O||P?w(L(Ca)):Y||a&&y?w([L([_,Ca]),Q?_:""]):d===b?w(Ca):Ca}function d$(e,t,r,n){let{node:i}=e;if(zm(i))return q7(e,t);switch(i.type){case"JsExpressionRoot":return r("node");case"JsonRoot":return[be(e,t),r("node"),M];case"File":return V7(e,t,r)??r("program");case"ExpressionStatement":return z7(e,t,r);case"ChainExpression":return r("expression");case"ParenthesizedExpression":return!z(i.expression)&&(xr(i.expression)||ot(i.expression))?["(",r("expression"),")"]:w(["(",L([_,r("expression")]),_,")"]);case"AssignmentExpression":return AL(e,t,r);case"VariableDeclarator":return TL(e,t,r);case"BinaryExpression":case"LogicalExpression":return Iv(e,t,r);case"AssignmentPattern":return[r("left")," = ",r("right")];case"OptionalMemberExpression":case"MemberExpression":return DL(e,t,r);case"MetaProperty":return[r("meta"),".",r("property")];case"BindExpression":return mL(e,t,r);case"Identifier":return[i.name,Et(e),Bv(e),it(e,r)];case"V8IntrinsicIdentifier":return["%",i.name];case"SpreadElement":return Od(e,r);case"RestElement":return Od(e,r);case"FunctionDeclaration":case"FunctionExpression":return Xv(e,t,r,n);case"ArrowFunctionExpression":return E7(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(Ee(a)&&a.callee===i||we(a)&&a.object===i){s=[L([_,...s]),_];let o=e.findAncestor(u=>u.type==="AwaitExpression"||u.type==="BlockStatement");if((o==null?void 0:o.type)!=="AwaitExpression"||!yt(o.argument,u=>u===i))return w(s)}}return s}case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ExportAllDeclaration":return gA(e,t,r);case"ImportDeclaration":return G7(e,t,r);case"ImportSpecifier":case"ExportSpecifier":case"ImportNamespaceSpecifier":case"ExportNamespaceSpecifier":case"ImportDefaultSpecifier":case"ExportDefaultSpecifier":return r$(e,t,r);case"ImportAttribute":return nh(e,t,r);case"Program":case"BlockStatement":case"StaticBlock":return aA(e,t,r);case"ClassBody":return oy(e,t,r);case"ThrowStatement":return jL(e,t,r);case"ReturnStatement":return OL(e,t,r);case"NewExpression":case"ImportExpression":case"OptionalCallExpression":case"CallExpression":return ac(e,t,r);case"ObjectExpression":case"ObjectPattern":return ly(e,t,r);case"Property":return lu(i)?Ld(e,t,r):nh(e,t,r);case"ObjectProperty":return nh(e,t,r);case"ObjectMethod":return Ld(e,t,r);case"Decorator":return["@",r("expression")];case"ArrayExpression":case"ArrayPattern":return ny(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(",",L([V,r()]))},"expressions"),w(o)}let a=fe([",",V],e.map(r,"expressions"));return(s.type==="ReturnStatement"||s.type==="ThrowStatement")&&e.key==="argument"||s.type==="ArrowFunctionExpression"&&e.key==="body"?w(ie([L([_,a]),_],a)):w(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(" "),z(i.argument)?s.push(w(["(",L([_,r("argument")]),_,")"])):s.push(r("argument")),s}case"UpdateExpression":return[i.prefix?i.operator:"",r("argument"),i.prefix?"":i.operator];case"ConditionalExpression":return py(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&&!z(i.declarations[0])?l=s[0]:s.length>0&&(l=L(s[0])),w([qt(e),i.kind,l?[" ",l]:"",L(s.slice(1).map(c=>[",",u&&!o?M:V,c])),t.semi&&!(o&&a.body!==i)?";":""])}case"WithStatement":return w(["with (",r("object"),")",Pn(i.body,r("body"))]);case"IfStatement":{let s=Pn(i.consequent,r("consequent")),a=[w(["if (",w([L([_,r("test")]),_]),")",s])];if(i.alternate){let o=z(i.consequent,W.Trailing|W.Line)||GC(i),u=i.consequent.type==="BlockStatement"&&!o;a.push(u?" ":M),z(i,W.Dangling)&&a.push(be(e,t),o?M:" "),a.push("else",w(Pn(i.alternate,r("alternate"),i.alternate.type==="IfStatement")))}return a}case"ForStatement":{let s=Pn(i.body,r("body")),a=be(e,t),o=a?[a,_]:"";return!i.init&&!i.test&&!i.update?[o,w(["for (;;)",s])]:[o,w(["for (",w([L([_,r("init"),";",V,r("test"),";",i.update?[V,r("update")]:ie("",V)]),_]),")",s])]}case"WhileStatement":return w(["while (",w([L([_,r("test")]),_]),")",Pn(i.body,r("body"))]);case"ForInStatement":return w(["for (",r("left")," in ",r("right"),")",Pn(i.body,r("body"))]);case"ForOfStatement":return w(["for",i.await?" await":""," (",r("left")," of ",r("right"),")",Pn(i.body,r("body"))]);case"DoWhileStatement":{let s=Pn(i.body,r("body"));return[w(["do",s]),i.body.type==="BlockStatement"?" ":M,"while (",w([L([_,r("test")]),_]),")",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"&&!z(i.body,W.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=z(i.param,o=>!Ar(o)||o.leading&&kt(t.originalText,ce(o))||o.trailing&&kt(t.originalText,he(o),{backwards:!0})),a=r("param");return["catch ",s?["(",L([_,a]),_,") "]:["(",a,") "],r("body")]}return["catch ",r("body")];case"SwitchStatement":return[w(["switch (",L([_,r("discriminant")]),_,")"])," {",i.cases.length>0?L([M,fe(M,e.map(({node:s,isLast:a})=>[r(),!a&&Vr(s,t)?M:""],"cases"))]):"",M,"}"];case"SwitchCase":{let s=[];i.test?s.push("case ",r("test"),":"):s.push("default:"),z(i,W.Dangling)&&s.push(" ",be(e,t));let a=i.consequent.filter(o=>o.type!=="EmptyStatement");if(a.length>0){let o=$d(e,t,r,"consequent");s.push(a.length===1&&a[0].type==="BlockStatement"?[" ",o]:L([M,o]))}return s}case"DebuggerStatement":return["debugger",t.semi?";":""];case"ClassDeclaration":case"ClassExpression":return uy(e,t,r);case"ClassMethod":case"ClassPrivateMethod":case"MethodDefinition":return hA(e,t,r);case"ClassProperty":case"PropertyDefinition":case"ClassPrivateProperty":case"ClassAccessorProperty":case"AccessorProperty":return dA(e,t,r);case"TemplateElement":return Ui(i.value.raw);case"TemplateLiteral":return Av(e,t,r);case"TaggedTemplateExpression":return U9(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(Rm(e))return";";case"InterpreterDirective":default:throw new fa(i,"ESTree")}}function AA(e){return[e("elementType"),"[]"]}var f$=oe(["SatisfiesExpression","TSSatisfiesExpression"]);function TA(e,t,r){let{parent:n,node:i,key:s}=e,a=i.type==="AsConstExpression"?"const":r("typeAnnotation"),o=[r("expression")," ",f$(i)?"satisfies":"as"," ",a];return s==="callee"&&Ee(n)||s==="object"&&we(n)?w([L([_,...o]),_]):o}function m$(e,t,r){let{node:n}=e,i=[qt(e),"component"];n.id&&i.push(" ",r("id")),i.push(r("typeParameters"));let s=y$(e,t,r);return n.rendersType?i.push(w([s," ",r("rendersType")])):i.push(w([s])),n.body&&i.push(" ",r("body")),t.semi&&n.type==="DeclareComponent"&&i.push(";"),i}function y$(e,t,r){let{node:n}=e,i=n.params;if(n.rest&&(i=[...i,n.rest]),i.length===0)return["(",be(e,t,{filter:a=>Cr(t.originalText,ce(a))===")"}),")"];let s=[];return D$(e,(a,o)=>{let u=o===i.length-1;u&&n.rest&&s.push("..."),s.push(r()),!u&&(s.push(","),Vr(i[o],t)?s.push(M,M):s.push(V))}),["(",L([_,...s]),ie(zr(t,"all")&&!g$(n,i)?",":""),_,")"]}function g$(e,t){var r;return e.rest||((r=Ce(0,t,-1))==null?void 0:r.type)==="RestElement"}function D$(e,t){let{node:r}=e,n=0,i=s=>t(s,n++);e.each(i,"params"),r.rest&&e.call(i,"rest")}function E$(e,t,r){let{node:n}=e;return n.shorthand?r("local"):[r("name")," as ",r("local")]}function x$(e,t,r){let{node:n}=e,i=[];return n.name&&i.push(r("name"),n.optional?"?: ":": "),i.push(r("typeAnnotation")),i}function SA(e,t,r){return ly(e,t,r)}function C$(e,t,r){let{node:n}=e;return[n.type==="EnumSymbolBody"||n.explicitType?`of ${n.type.slice(4,-4).toLowerCase()} `:"",SA(e,t,r)]}function FA(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 bA(e,t){let{node:r}=e;return[qt(e),r.const?"const ":"","enum ",t("id")," ",t("body")]}function wA(e,t,r){let{node:n}=e,i=[Vc(e)];(n.type==="TSConstructorType"||n.type==="TSConstructSignatureDeclaration")&&i.push("new ");let s=rs(e,t,r,!1,!0),a=[];return n.type==="FunctionTypeAnnotation"?a.push(v$(e)?" => ":": ",r("returnType")):a.push(it(e,r,"returnType")),da(n,a)&&(s=w(s)),i.push(s,a),[w(i),n.type==="TSConstructSignatureDeclaration"||n.type==="TSCallSignatureDeclaration"?en(e,t):""]}function v$(e){var n;let{node:t,parent:r}=e;return t.type==="FunctionTypeAnnotation"&&(WC(r)||!((r.type==="ObjectTypeProperty"||r.type==="ObjectTypeInternalSlot")&&!r.variance&&!r.optional&&jc(r,t)||r.type==="ObjectTypeCallProperty"||((n=e.getParentNode(2))==null?void 0:n.type)==="DeclareFunction"))}function A$(e,t,r){let{node:n}=e,i=["hook"];n.id&&i.push(" ",r("id"));let s=rs(e,t,r,!1,!0),a=Hc(e,r),o=da(n,a);return i.push(w([o?w(s):s,a]),n.body?" ":"",r("body")),i}function T$(e,t,r){let{node:n}=e,i=[qt(e),"hook"];return n.id&&i.push(" ",r("id")),t.semi&&i.push(";"),i}function w1(e){var r;let{node:t}=e;return t.type==="HookTypeAnnotation"&&((r=e.getParentNode(2))==null?void 0:r.type)==="DeclareHook"}function S$(e,t,r){let{node:n}=e,i=rs(e,t,r,!1,!0),s=[w1(e)?": ":" => ",r("returnType")];return w([w1(e)?"":"hook ",da(n,s)?w(i):i,s])}function PA(e,t,r){return[r("objectType"),Et(e),"[",r("indexType"),"]"]}function kA(e,t,r){return["infer ",r("typeParameter")]}function NA(e,t,r){let n=!1;return w(e.map(({isFirst:i,previous:s,node:a,index:o})=>{let u=r();if(i)return u;let l=ii(a),c=ii(s);return c&&l?[" & ",n?L(u):u]:!c&&!l||Dr(t.originalText,a)?t.experimentalOperatorPosition==="start"?L([V,"& ",u]):L([" &",V,u]):(o>1&&(n=!0),[" & ",o>1?L(u):u])},"types"))}function F$(e){switch(e){case null:return"";case"PlusOptional":return"+?";case"MinusOptional":return"-?";case"Optional":return"?"}}function b$(e,t,r){let{node:n}=e;return[w([n.variance?r("variance"):"","[",L([r("keyTparam")," in ",r("sourceType")]),"]",F$(n.optional),": ",r("propType")]),en(e,t)]}function P1(e,t){return e==="+"||e==="-"?e+t:t}function w$(e,t,r){let{node:n}=e,i=!1;if(t.objectWrap==="preserve"){let s=he(n),a=Wc(t,s+1,he(n.key)),o=s+1+a.search(/\S/u);Vt(t.originalText,s,o)&&(i=!0)}return w(["{",L([t.bracketSpacing?V:_,z(n,W.Dangling)?w([be(e,t),M]):"",w([n.readonly?[P1(n.readonly,"readonly")," "]:"","[",r("key")," in ",r("constraint"),n.nameType?[" as ",r("nameType")]:"","]",n.optional?P1(n.optional,"?"):"",n.typeAnnotation?": ":"",r("typeAnnotation")]),t.semi?ie(";"):""]),t.bracketSpacing?V:_,"}"],{shouldBreak:i})}function P$(e,t,r){let{node:n}=e;return[w(["match (",L([_,r("argument")]),_,")"])," {",n.cases.length>0?L([M,fe(M,e.map(({node:i,isLast:s})=>[r(),!s&&Vr(i,t)?M:""],"cases"))]):"",M,"}"]}function k$(e,t,r){let{node:n}=e,i=z(n,W.Dangling)?[" ",be(e,t)]:[],s=n.type==="MatchStatementCase"?[" ",r("body")]:L([V,r("body"),","]);return[r("pattern"),n.guard?w([L([V,"if (",r("guard"),")"])]):"",w([" =>",i,s])]}function N$(e,t,r){let{node:n}=e;switch(n.type){case"MatchOrPattern":return _$(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")]:["[",L([_,r("property")]),_,"]"];return w([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")),w(["{",L([_,fe([",",V],i)]),n.rest?"":ie(","),_,"}"])}case"MatchArrayPattern":{let i=e.map(r,"elements");return n.rest&&i.push(r("rest")),w(["[",L([_,fe([",",V],i)]),n.rest?"":ie(","),_,"]"])}case"MatchObjectPatternProperty":return n.shorthand?r("pattern"):w([r("key"),":",L([V,r("pattern")])]);case"MatchRestPattern":{let i=["..."];return n.argument&&i.push(r("argument")),i}}}var BA=oe(["MatchWildcardPattern","MatchLiteralPattern","MatchUnaryPattern","MatchIdentifierPattern"]);function B$(e){let{patterns:t}=e;if(t.some(n=>z(n)))return!1;let r=t.find(n=>n.type==="MatchObjectPattern");return r?t.every(n=>n===r||BA(n)):!1}function I$(e){return BA(e)||e.type==="MatchObjectPattern"?!0:e.type==="MatchOrPattern"?B$(e):!1}function _$(e,t,r){let{node:n}=e,{parent:i}=e,s=i.type!=="MatchStatementCase"&&i.type!=="MatchExpressionCase"&&i.type!=="MatchArrayPattern"&&i.type!=="MatchObjectPatternProperty"&&!Dr(t.originalText,n),a=I$(n),o=e.map(()=>{let l=r();return a||(l=vr(2,l)),rr(e,l,t)},"patterns");if(a)return fe(" | ",o);let u=[ie(["| "]),fe([V,"| "],o)];return yi(e,t)?w([L([ie([_]),u]),_]):i.type==="MatchArrayPattern"&&i.elements.length>1?w([L([ie(["(",_]),u]),_,ie(")")]):w(s?L(u):u)}function L$(e,t,r){let{node:n}=e,i=[qt(e),"opaque type ",r("id"),r("typeParameters")];if(n.supertype&&i.push(": ",r("supertype")),n.lowerBound||n.upperBound){let s=[];n.lowerBound&&s.push(L([V,"super ",r("lowerBound")])),n.upperBound&&s.push(L([V,"extends ",r("upperBound")])),i.push(w(s))}return n.impltype&&i.push(" = ",r("impltype")),i.push(t.semi?";":""),i}function IA(e,t,r){let{node:n}=e;return["...",...n.type==="TupleTypeSpreadElement"&&n.label?[r("label"),": "]:[],r("typeAnnotation")]}function _A(e,t,r){let{node:n}=e;return[n.variance?r("variance"):"",r("label"),n.optional?"?":"",": ",r("elementType")]}function LA(e,t,r){let{node:n}=e,i=[qt(e),"type ",r("id"),r("typeParameters")],s=n.type==="TSTypeAliasDeclaration"?"typeAnnotation":"right";return[hu(e,t,r,i," =",s),t.semi?";":""]}function $$(e,t,r){let{node:n}=e;return dt(n).length===1&&n.type.startsWith("TS")&&!n[r][0].constraint&&e.parent.type==="ArrowFunctionExpression"&&!(t.filepath&&/\.ts$/u.test(t.filepath))}function go(e,t,r,n){let{node:i}=e;if(!i[n])return"";if(!Array.isArray(i[n]))return r(n);let s=Rc(e.grandparent),a=e.match(u=>!(u[n].length===1&&ii(u[n][0])),void 0,(u,l)=>l==="typeAnnotation",u=>u.type==="Identifier",Hv);if(i[n].length===0||!a&&(s||i[n].length===1&&(i[n][0].type==="NullableTypeAnnotation"||iL(i[n][0]))))return["<",fe(", ",e.map(r,n)),M$(e,t),">"];let o=i.type==="TSTypeParameterInstantiation"?"":$$(e,t,n)?",":zr(t)?ie(","):"";return w(["<",L([_,fe([",",V],e.map(r,n))]),o,_,">"])}function M$(e,t){let{node:r}=e;if(!z(r,W.Dangling))return"";let n=!z(r,W.Line),i=be(e,t,{indent:!n});return n?i:[i,M]}function $A(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(it(e,r,"bound"))),n.constraint){let a=Symbol("constraint");i.push(" extends",w(L(V),{id:a}),jr,qo(r("constraint"),{groupId:a}))}if(n.default){let a=Symbol("default");i.push(" =",w(L(V),{id:a}),jr,qo(r("default"),{groupId:a}))}return w(i)}function MA(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 ",it(e,t)]:""]}function OA({node:e},t){let r=e.type==="TSTypeQuery"?"exprName":"argument";return["typeof ",t(r),t("typeArguments")]}function O$(e,t,r){let{node:n}=e;if(UC(n))return n.type.slice(0,-14).toLowerCase();switch(n.type){case"ComponentDeclaration":case"DeclareComponent":case"ComponentTypeAnnotation":return m$(e,t,r);case"ComponentParameter":return E$(e,t,r);case"ComponentTypeParameter":return x$(e,t,r);case"HookDeclaration":return A$(e,t,r);case"DeclareHook":return T$(e,t,r);case"HookTypeAnnotation":return S$(e,t,r);case"DeclareFunction":return[qt(e),"function ",r("id"),r("predicate"),t.semi?";":""];case"DeclareModule":return["declare module ",r("id")," ",r("body")];case"DeclareModuleExports":return["declare module.exports",it(e,r),t.semi?";":""];case"DeclareNamespace":return["declare namespace ",r("id")," ",r("body")];case"DeclareVariable":return[qt(e),n.kind??"var"," ",r("id"),t.semi?";":""];case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":return gA(e,t,r);case"DeclareOpaqueType":case"OpaqueType":return L$(e,t,r);case"DeclareTypeAlias":case"TypeAlias":return LA(e,t,r);case"IntersectionTypeAnnotation":return NA(e,t,r);case"UnionTypeAnnotation":return _v(e,t,r);case"ConditionalTypeAnnotation":return py(e,t,r);case"InferTypeAnnotation":return kA(e,t,r);case"FunctionTypeAnnotation":return wA(e,t,r);case"TupleTypeAnnotation":return ny(e,t,r);case"TupleTypeLabeledElement":return _A(e,t,r);case"TupleTypeSpreadElement":return IA(e,t,r);case"GenericTypeAnnotation":return[r("id"),go(e,t,r,"typeParameters")];case"IndexedAccessType":case"OptionalIndexedAccessType":return PA(e,t,r);case"TypeAnnotation":return Mv(e,t,r);case"TypeParameter":return $A(e,t,r);case"TypeofTypeAnnotation":return OA(e,r);case"ExistsTypeAnnotation":return"*";case"ArrayTypeAnnotation":return AA(r);case"DeclareEnum":case"EnumDeclaration":return bA(e,r);case"EnumBooleanBody":case"EnumNumberBody":case"EnumBigIntBody":case"EnumStringBody":case"EnumSymbolBody":return C$(e,t,r);case"EnumBooleanMember":case"EnumNumberMember":case"EnumBigIntMember":case"EnumStringMember":case"EnumDefaultedMember":return FA(e,r);case"FunctionTypeParam":{let i=n.name?r("name"):e.parent.this===n?"this":"";return[i,Et(e),i?": ":"",r("typeAnnotation")]}case"DeclareClass":case"DeclareInterface":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":return uy(e,t,r);case"ObjectTypeAnnotation":return oy(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"),en(e,t)];case"ObjectTypeMappedTypeProperty":return b$(e,t,r);case"ObjectTypeIndexer":return[n.static?"static ":"",n.variance?r("variance"):"","[",r("id"),n.id?": ":"",r("key"),"]: ",r("value"),en(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"):"",du(e,t,r),Et(e),lu(n)?"":": ",r("value"),en(e,t)]}case"ObjectTypeInternalSlot":return[n.static?"static ":"","[[",r("id"),"]]",Et(e),n.method?"":": ",r("value"),en(e,t)];case"ObjectTypeSpreadProperty":return Od(e,r);case"QualifiedTypeofIdentifier":case"QualifiedTypeIdentifier":return[r("qualification"),".",r("id")];case"NullLiteralTypeAnnotation":return"null";case"BooleanLiteralTypeAnnotation":return String(n.value);case"StringLiteralTypeAnnotation":return Ui(Qs(Nt(n),t));case"NumberLiteralTypeAnnotation":return ea(Nt(n));case"BigIntLiteralTypeAnnotation":return Md(Nt(n));case"TypeCastExpression":return["(",r("expression"),it(e,r),")"];case"TypePredicate":return MA(e,r);case"TypeOperator":return[n.operator," ",r("typeAnnotation")];case"TypeParameterDeclaration":case"TypeParameterInstantiation":return go(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 TA(e,t,r);case"MatchExpression":case"MatchStatement":return P$(e,t,r);case"MatchExpressionCase":case"MatchStatementCase":return k$(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 N$(e,t,r)}}function j$(e,t,r){let{node:n}=e,i=n.parameters.length>1?ie(zr(t)?",":""):"",s=w([L([_,fe([", ",_],e.map(r,"parameters"))]),i,_]);return[e.key==="body"&&e.parent.type==="ClassBody"&&n.static?"static ":"",n.readonly?"readonly ":"","[",n.parameters?s:"","]",it(e,r),en(e,t)]}function k1(e,t,r){let{node:n}=e;return[n.postfix?"":r,it(e,t),n.postfix?r:""]}function R$(e,t,r){let{node:n}=e,i=[],s=n.kind&&n.kind!=="method"?`${n.kind} `:"";i.push(qc(n),s,n.computed?"[":"",r("key"),n.computed?"]":"",Et(e));let a=rs(e,t,r,!1,!0),o=it(e,r,"returnType"),u=da(n,o);return i.push(u?w(a):a),n.returnType&&i.push(w(o)),[w(i),en(e,t)]}function U$(e,t,r){let{node:n}=e;return[qt(e),n.kind==="global"?"":`${n.kind} `,r("id"),n.body?[" ",w(r("body"))]:t.semi?";":""]}function z$(e,t,r){let{node:n}=e,i=!(ot(n.expression)||xr(n.expression)),s=w(["<",L([_,r("typeAnnotation")]),_,">"]),a=[ie("("),L([_,r("expression")]),_,ie(")")];return i?ki([[s,r("expression")],[s,w(a,{shouldBreak:!0})],[s,r("expression")]]):w([s,r("expression")])}function V$(e,t,r){let{node:n}=e;if(n.type.startsWith("TS")){if(zC(n))return n.type.slice(2,-7).toLowerCase();switch(n.type){case"TSThisType":return"this";case"TSTypeAssertion":return z$(e,t,r);case"TSDeclareFunction":return Xv(e,t,r);case"TSExportAssignment":return["export = ",r("expression"),t.semi?";":""];case"TSModuleBlock":return aA(e,t,r);case"TSInterfaceBody":case"TSTypeLiteral":return oy(e,t,r);case"TSTypeAliasDeclaration":return LA(e,t,r);case"TSQualifiedName":return[r("left"),".",r("right")];case"TSAbstractMethodDefinition":case"TSDeclareMethod":return hA(e,t,r);case"TSAbstractAccessorProperty":case"TSAbstractPropertyDefinition":return dA(e,t,r);case"TSInterfaceHeritage":case"TSClassImplements":case"TSInstantiationExpression":return[r("expression"),r("typeArguments")];case"TSTemplateLiteralType":return Av(e,t,r);case"TSNamedTupleMember":return _A(e,t,r);case"TSRestType":return IA(e,t,r);case"TSOptionalType":return[r("typeAnnotation"),"?"];case"TSInterfaceDeclaration":return uy(e,t,r);case"TSTypeParameterDeclaration":case"TSTypeParameterInstantiation":return go(e,t,r,"params");case"TSTypeParameter":return $A(e,t,r);case"TSAsExpression":case"TSSatisfiesExpression":return TA(e,t,r);case"TSArrayType":return AA(r);case"TSPropertySignature":return[n.readonly?"readonly ":"",du(e,t,r),Et(e),it(e,r),en(e,t)];case"TSParameterProperty":return[qc(n),n.static?"static ":"",n.override?"override ":"",n.readonly?"readonly ":"",r("parameter")];case"TSTypeQuery":return OA(e,r);case"TSIndexSignature":return j$(e,t,r);case"TSTypePredicate":return MA(e,r);case"TSNonNullExpression":return[r("expression"),"!"];case"TSImportType":return[ac(e,t,r),n.qualifier?[".",r("qualifier")]:"",go(e,t,r,"typeArguments")];case"TSLiteralType":return r("literal");case"TSIndexedAccessType":return PA(e,t,r);case"TSTypeOperator":return[n.operator," ",r("typeAnnotation")];case"TSMappedType":return w$(e,t,r);case"TSMethodSignature":return R$(e,t,r);case"TSNamespaceExportDeclaration":return["export as namespace ",r("id"),t.semi?";":""];case"TSEnumDeclaration":return bA(e,r);case"TSEnumBody":return SA(e,t,r);case"TSEnumMember":return FA(e,r);case"TSImportEqualsDeclaration":return["import ",DA(n,!1),r("id")," = ",r("moduleReference"),t.semi?";":""];case"TSExternalModuleReference":return ac(e,t,r);case"TSModuleDeclaration":return U$(e,t,r);case"TSConditionalType":return py(e,t,r);case"TSInferType":return kA(e,t,r);case"TSIntersectionType":return NA(e,t,r);case"TSUnionType":return _v(e,t,r);case"TSFunctionType":case"TSCallSignatureDeclaration":case"TSConstructorType":case"TSConstructSignatureDeclaration":return wA(e,t,r);case"TSTupleType":return ny(e,t,r);case"TSTypeReference":return[r("typeName"),go(e,t,r,"typeArguments")];case"TSTypeAnnotation":return Mv(e,t,r);case"TSEmptyBodyFunctionExpression":return iy(e,t,r);case"TSJSDocAllType":return"*";case"TSJSDocUnknownType":return"?";case"TSJSDocNullableType":return k1(e,r,"?");case"TSJSDocNonNullableType":return k1(e,r,"!");case"TSParenthesizedType":default:throw new fa(n,"TypeScript")}}}function q$(e,t,r,n){for(let i of[h7,o7,O$,V$,d$]){let s=i(e,t,r,n);if(s!==void 0)return s}}var H$=oe(["ClassMethod","ClassPrivateMethod","ClassProperty","ClassAccessorProperty","AccessorProperty","TSAbstractAccessorProperty","PropertyDefinition","TSAbstractPropertyDefinition","ClassPrivateProperty","MethodDefinition","TSAbstractMethodDefinition","TSDeclareMethod"]);function W$(e,t,r,n){var p;e.isRoot&&((p=t.__onHtmlBindingRoot)==null||p.call(t,e.node,t));let{node:i}=e,s=ay(e)?t.originalText.slice(he(i),ce(i)):q$(e,t,r,n);if(!s)return"";if(H$(i))return s;let a=Pe(i.decorators),o=g7(e,t,r),u=i.type==="ClassExpression";if(a&&!u)return wd(s,h=>w([o,h]));let l=yi(e,t),c=UL(e,t);return!o&&!l&&!c?s:wd(s,h=>[c?";":"",l?"(":"",l&&u&&a?[L([V,o,h]),V]:[o,h],l?")":""])}var N1=W$,J$={experimental_avoidAstMutation:!0},X$=[{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}],jA={};Im(jA,{getVisitorKeys:()=>Q$,massageAstNode:()=>RA,print:()=>Y$});var os=[[]],K$={JsonRoot:["node"],ArrayExpression:["elements"],ObjectExpression:["properties"],ObjectProperty:["key","value"],UnaryExpression:["argument"],NullLiteral:os[0],BooleanLiteral:os[0],StringLiteral:os[0],NumericLiteral:os[0],Identifier:os[0],TemplateLiteral:["quasis"],TemplateElement:os[0]},G$=jC(K$),Q$=G$;function Y$(e,t,r){let{node:n}=e;switch(n.type){case"JsonRoot":return[r("node"),M];case"ArrayExpression":{if(n.elements.length===0)return"[]";let i=e.map(()=>e.node===null?"null":r(),"elements");return["[",L([M,fe([",",M],i)]),M,"]"]}case"ObjectExpression":return n.properties.length===0?"{}":["{",L([M,fe([",",M],e.map(r,"properties"))]),M,"}"];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 B1(e)?JSON.stringify(String(n.value)):JSON.stringify(n.value);case"Identifier":return B1(e)?JSON.stringify(n.name):n.name;case"TemplateLiteral":return r(["quasis",0]);case"TemplateElement":return JSON.stringify(n.value.cooked);default:throw new fa(n,"JSON")}}function B1(e){return e.key==="key"&&e.parent.type==="ObjectProperty"}var Z$=new Set(["start","end","extra","loc","comments","leadingComments","trailingComments","innerComments","errors","range","tokens"]);function RA(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}}RA.ignoredProperties=Z$;var $a={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."}},kn="JavaScript",eM={arrowParens:{category:kn,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:$a.bracketSameLine,objectWrap:$a.objectWrap,bracketSpacing:$a.bracketSpacing,jsxBracketSameLine:{category:kn,type:"boolean",description:"Put > on the last line instead of at a new line.",deprecated:"2.4.0"},semi:{category:kn,type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},experimentalOperatorPosition:{category:kn,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:kn,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:$a.singleQuote,jsxSingleQuote:{category:kn,type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{category:kn,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:kn,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:$a.singleAttributePerLine},UA=eM,zA={estree:IC,"estree-json":jA},VA=[...t6,...X$];const tM=Object.freeze(Object.defineProperty({__proto__:null,default:BC,languages:VA,options:UA,printers:zA},Symbol.toStringTag,{value:"Module"}));var qA=Object.defineProperty,HA=e=>{throw TypeError(e)},rM=(e,t,r)=>t in e?qA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,WA=(e,t)=>{for(var r in t)qA(e,r,{get:t[r],enumerable:!0})},I1=(e,t,r)=>rM(e,typeof t!="symbol"?t+"":t,r),nM=(e,t,r)=>t.has(e)||HA("Cannot "+r),Qu=(e,t,r)=>(nM(e,t,"read from private field"),r?r.call(e):t.get(e)),iM=(e,t,r)=>t.has(e)?HA("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),JA={};WA(JA,{languages:()=>jT,options:()=>RT,parsers:()=>Py,printers:()=>HT});var hy=(e,t)=>(r,n,...i)=>r|1&&n==null?void 0:(t.call(n)??n[e]).apply(n,i),sM=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},aM=hy("replaceAll",function(){if(typeof this=="string")return sM}),xt=aM;function oM(e){return this[e<0?this.length+e:e]}var uM=hy("at",function(){if(Array.isArray(this)||typeof this=="string")return oM}),ma=uM,lM=()=>{},cM=lM,XA="string",KA="array",GA="cursor",dy="indent",fy="align",QA="trim",my="group",yy="fill",gy="if-break",Dy="indent-if-break",YA="line-suffix",ZA="line-suffix-boundary",ya="line",eT="label",Ey="break-parent",tT=new Set([GA,dy,fy,QA,my,yy,gy,Dy,YA,ZA,ya,eT,Ey]);function pM(e){if(typeof e=="string")return XA;if(Array.isArray(e))return KA;if(!e)return;let{type:t}=e;if(tT.has(t))return t}var rT=pM,hM=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function dM(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(rT(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=hM([...tT].map(i=>`'${i}'`));return`Unexpected doc.type '${e.type}'. +Expected it to be ${n}.`}var fM=class extends Error{constructor(t){super(dM(t));U(this,"name","InvalidDocError");this.doc=t}},mM=fM;function nT(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(rT(s)){case KA:return t(s.map(n));case yy:return t({...s,parts:s.parts.map(n)});case gy:return t({...s,breakContents:n(s.breakContents),flatContents:n(s.flatContents)});case my:{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 fy:case dy:case Dy:case eT:case YA:return t({...s,contents:n(s.contents)});case XA:case GA:case QA:case ZA:case ya:case Ey:return t(s);default:throw new mM(s)}}}function $r(e,t=vM){return nT(e,r=>typeof r=="string"?ga(t,r.split(` +`)):r)}var yM=cM;function qr(e){return{type:dy,contents:e}}function gM(e,t){return{type:fy,contents:t,n:e}}function DM(e){return gM(Number.NEGATIVE_INFINITY,e)}var fu={type:Ey};function iT(e){return{type:yy,parts:e}}function Je(e,t={}){return yM(t.expandedStates),{type:my,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function Jo(e,t="",r={}){return{type:gy,breakContents:e,flatContents:t,groupId:r.groupId}}function EM(e,t){return{type:Dy,contents:e,groupId:t.groupId,negate:t.negate}}function ga(e,t){let r=[];for(let n=0;na?n:r).character}var FM=SM;function bM(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var Kt,cc,oT,mD,wM=(mD=class{constructor(e){gi(this,cc);gi(this,Kt,void 0);np(this,Kt,new Set(e))}getLeadingWhitespaceCount(e){let t=tt(this,Kt),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 tt(this,Kt).has(e.charAt(0))}hasTrailingWhitespace(e){return tt(this,Kt).has(ma(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=`[${bM([...tt(this,Kt)].join(""))}]+`,n=new RegExp(t?`(${r})`:r,"u");return e.split(n)}hasWhitespaceCharacter(e){let t=tt(this,Kt);return Array.prototype.some.call(e,r=>t.has(r))}hasNonWhitespaceCharacter(e){let t=tt(this,Kt);return Array.prototype.some.call(e,r=>!t.has(r))}isWhitespaceOnly(e){let t=tt(this,Kt);return Array.prototype.every.call(e,r=>t.has(r))}dedentString(e){let t=Sn(this,cc,oT).call(this,e);return t===0?e:e.split(` `).map(r=>r.slice(t)).join(` -`)}},Kt=new WeakMap,cc=new WeakSet,rT=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?We(s):mu(s)}function wO(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)?"":ur(s,e,{parser:"__ng_directive",__isInHtmlAttribute:!1},Da)}var PO=wO,kO=Array.prototype.toReversed??function(){return[...this].reverse()},NO=hy("toReversed",function(){if(Array.isArray(this))return kO}),BO=NO;function IO(){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 _O=IO();function iT(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 LO(e){return e=iT(e),decodeURIComponent(e.pathname.replace(/%(?![0-9A-Fa-f]{2})/g,"%25"))}function $O(e){e=iT(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 OO(e){return _O?$O(e):LO(e)}var MO=e=>String(e).split(/[/\\]/u).pop(),jO=e=>String(e).startsWith("file:");function RO(e){return Array.isArray(e)&&e.length>0}var xy=RO;function I1(e,t){if(!t)return;let r=MO(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 UO(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 lh=void 0;function _1(e,t){if(t){if(jO(t))try{t=OO(t)}catch{return}if(typeof t=="string")return e.find(({isSupported:r})=>r==null?void 0:r({filepath:t}))}}function zO(e,t){var n;let r=BO(0,e.plugins).flatMap(i=>i.languages??[]);return(n=UO(r,t.language)??I1(r,t.physicalFile)??I1(r,t.file)??_1(r,t.physicalFile)??_1(r,t.file)??(lh==null?void 0:lh(r,t.physicalFile)))==null?void 0:n.parsers[0]}var Cy=zO,sT=Symbol.for("PRETTIER_IS_FRONT_MATTER");function VO(e){return!!(e!=null&&e[sT])}var Jc=VO,Oa=3;function qO(e){let t=e.slice(0,Oa);if(t!=="---"&&t!=="+++")return;let r=e.indexOf(` -`,Oa);if(r===-1)return;let n=e.slice(Oa,r).trim(),i=e.indexOf(` +`)}},Kt=new WeakMap,cc=new WeakSet,oT=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?Je(s):mu(s)}function MM(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)?"":ur(s,e,{parser:"__ng_directive",__isInHtmlAttribute:!1},Da)}var OM=MM,jM=Array.prototype.toReversed??function(){return[...this].reverse()},RM=hy("toReversed",function(){if(Array.isArray(this))return jM}),UM=RM;function zM(){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 VM=zM();function lT(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 qM(e){return e=lT(e),decodeURIComponent(e.pathname.replace(/%(?![0-9A-Fa-f]{2})/g,"%25"))}function HM(e){e=lT(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 WM(e){return VM?HM(e):qM(e)}var JM=e=>String(e).split(/[/\\]/u).pop(),XM=e=>String(e).startsWith("file:");function KM(e){return Array.isArray(e)&&e.length>0}var xy=KM;function _1(e,t){if(!t)return;let r=JM(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 GM(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 lh=void 0;function L1(e,t){if(t){if(XM(t))try{t=WM(t)}catch{return}if(typeof t=="string")return e.find(({isSupported:r})=>r==null?void 0:r({filepath:t}))}}function QM(e,t){var n;let r=UM(0,e.plugins).flatMap(i=>i.languages??[]);return(n=GM(r,t.language)??_1(r,t.physicalFile)??_1(r,t.file)??L1(r,t.physicalFile)??L1(r,t.file)??(lh==null?void 0:lh(r,t.physicalFile)))==null?void 0:n.parsers[0]}var Cy=QM,cT=Symbol.for("PRETTIER_IS_FRONT_MATTER");function YM(e){return!!(e!=null&&e[cT])}var Jc=YM,Ma=3;function ZM(e){let t=e.slice(0,Ma);if(t!=="---"&&t!=="+++")return;let r=e.indexOf(` +`,Ma);if(r===-1)return;let n=e.slice(Ma,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+Oa,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(-Oa),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+Ma,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(-Ma),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(` -`)),ma(0,l,-1).length}},[sT]:!0}}function HO(e){let t=qO(e);return t?{frontMatter:t,get content(){let{raw:r}=t;return Et(0,r,/[^\n]/gu," ")+e.slice(r.length)}}:{content:e}}var WO=HO,JO="inline",L1={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"},XO="normal",$1={listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"};function KO(e){return e.kind==="element"&&!e.hasExplicitNamespace&&!["html","svg"].includes(e.namespace)}var yu=KO,GO=e=>Et(0,e,/^[\t\f\r ]*\n/gu,""),aT=e=>GO(or.trimEnd(e)),QO=e=>{let t=e,r=or.getLeadingWhitespace(t);r&&(t=t.slice(r.length));let n=or.getTrailingWhitespace(t);return n&&(t=t.slice(0,-n.length)),{leadingWhitespace:r,trailingWhitespace:n,text:t}};function oT(e,t){return!!(e.kind==="ieConditionalComment"&&e.lastChild&&!e.lastChild.isSelfClosing&&!e.lastChild.endSourceSpan||e.kind==="ieConditionalComment"&&!e.complete||ta(e)&&e.children.some(r=>r.kind!=="text"&&r.kind!=="interpolation")||Ay(e,t)&&!fn(e,t)&&e.kind!=="interpolation")}function Xc(e){return e.kind==="attribute"||!e.parent||!e.prev?!1:YO(e.prev)}function YO(e){return e.kind==="comment"&&e.value.trim()==="prettier-ignore"}function Zt(e){return e.kind==="text"||e.kind==="comment"}function fn(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"||yu(e)&&(e.name==="script"||e.name==="style"))}function ZO(e,t){return e.children&&!fn(e,t)}function eM(e,t){return fn(e,t)||e.kind==="interpolation"||uT(e)}function uT(e){return mT(e).startsWith("pre")}function tM(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 Jc(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:ta(e.parent)?!0:!(!e.prev&&(e.parent.kind==="root"||ta(e)&&e.parent||fn(e.parent,t)||Kc(e.parent,t)||!cM(e.parent.cssDisplay))||e.prev&&!dM(e.prev.cssDisplay))}}function rM(e,t){return Jc(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:ta(e.parent)?!0:!(!e.next&&(e.parent.kind==="root"||ta(e)&&e.parent||fn(e.parent,t)||Kc(e.parent,t)||!pM(e.parent.cssDisplay))||e.next&&!hM(e.next.cssDisplay))}function nM(e,t){return fM(e.cssDisplay)&&!fn(e,t)}function Yu(e){return Jc(e)||e.next&&e.sourceSpan.end&&e.sourceSpan.end.line+10&&(["body","script","style"].includes(e.name)||e.children.some(t=>aM(t)))||e.firstChild&&e.firstChild===e.lastChild&&e.firstChild.kind!=="text"&&pT(e.firstChild)&&(!e.lastChild.isTrailingSpaceSensitive||hT(e.lastChild))}function lT(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 ch(e){return dT(e)||e.prev&&sM(e.prev)||cT(e)}function sM(e){return dT(e)||e.kind==="element"&&e.fullName==="br"||cT(e)}function cT(e){return pT(e)&&hT(e)}function pT(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 dT(e){switch(e.kind){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return["script","select"].includes(e.name)}return!1}function vy(e){return e.lastChild?vy(e.lastChild):e}function aM(e){var t;return(t=e.children)==null?void 0:t.some(r=>r.kind!=="text")}function fT(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 oM(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":Cy(t,{language:s})??fT(i)}function uM(e,t){if(!Ay(e,t))return;let{attrMap:r}=e;if(Object.prototype.hasOwnProperty.call(r,"src"))return;let{type:n,lang:i}=r;return Cy(t,{language:i})??fT(n)}function lM(e,t){if(e.name==="style"){let{lang:r}=e.attrMap;return r?Cy(t,{language:r}):"css"}if(e.name==="mj-style"&&t.parser==="mjml")return"css"}function O1(e,t){return oM(e,t)??lM(e,t)??uM(e,t)}function gu(e){return e==="block"||e==="list-item"||e.startsWith("table")}function cM(e){return!gu(e)&&e!=="inline-block"}function pM(e){return!gu(e)&&e!=="inline-block"}function hM(e){return!gu(e)}function dM(e){return!gu(e)}function fM(e){return!gu(e)&&e!=="inline-block"}function ta(e){return mT(e).startsWith("pre")}function mM(e,t){let r=e;for(;r;){if(t(r))return!0;r=r.parent}return!1}function yM(e,t){var n;if(Ea(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(mM(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||yu(e))&&Object.prototype.hasOwnProperty.call(L1,e.name))return L1[e.name]}return JO}function mT(e){return e.kind==="element"&&(!e.namespace||yu(e))&&Object.prototype.hasOwnProperty.call($1,e.name)?$1[e.name]:XO}function yT(e){return Et(0,Et(0,e,"'","'"),""",'"')}function _t(e){return yT(e.value)}var gM=new Set(["template","style","script"]);function Kc(e,t){return Ea(e,t)&&!gM.has(e.fullName)}function Ea(e,t){return t.parser==="vue"&&e.kind==="element"&&e.parent.kind==="root"&&e.fullName.toLowerCase()!=="html"}function Ay(e,t){return Ea(e,t)&&(Kc(e,t)||e.attrMap.lang&&e.attrMap.lang!=="html")}function DM(e){let t=e.fullName;return t.charAt(0)==="#"||t==="slot-scope"||t==="v-slot"||t.startsWith("v-slot:")}function EM(e,t){let r=e.parent;if(!Ea(r,t))return!1;let n=r.fullName,i=e.fullName;return n==="script"&&i==="setup"||n==="style"&&i==="vars"}function gT(e,t=e.value){return e.parent.isWhitespaceSensitive?e.parent.isIndentationSensitive?$r(t):$r(or.dedentString(aT(t)),Oe):ga(ze,or.split(t))}function DT(e,t){return Ea(e,t)&&e.name==="script"}function xM(e){let{valueSpan:t,value:r}=e;return t.end.offset-t.start.offset===r.length+2}function ET(e,t){if(xM(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 xT=/\{\{(.+?)\}\}/su,CM=({node:{value:e}})=>xT.test(e);async function vM(e,t,r){let n=_t(r.node),i=[];for(let[s,a]of n.split(xT).entries())if(s%2===0)i.push($r(a));else try{i.push(We(["{{",qr([ze,await ur(a,e,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0})]),ze,"}}"]))}catch{i.push("{{",$r(a),"}}")}return i}var ph=e=>(t,r,n)=>ur(_t(n.node),t,{parser:e},Da),AM=[{test(e){let t=e.node.fullName;return t.startsWith("(")&&t.endsWith(")")||t.startsWith("on-")},print:ph("__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:ph("__ng_binding")},{test:e=>e.node.fullName.startsWith("*"),print:ph("__ng_directive")},{test:e=>/^i18n(?:-.+)?$/u.test(e.node.fullName),print:TM},{test:CM,print:vM}].map(({test:e,print:t})=>({test:(r,n)=>n.parser==="angular"&&e(r),print:t}));function TM(e,t,{node:r}){let n=_t(r);return mu(ZA(gT(r,n.trim())),!n.includes("@@"))}var SM=AM,FM=({node:e},t)=>!t.parentParser&&e.fullName==="class"&&!e.value.includes("{{"),bM=(e,t,r)=>_t(r.node).trim().split(/\s+/u).join(" "),wM=["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"],PM=new Set(wM),kM=({node:e},t)=>PM.has(e.fullName)&&!t.parentParser&&!e.value.includes("{{"),NM=(e,t,r)=>ur(_t(r.node),e,{parser:"babel",__isHtmlInlineEventHandler:!0},()=>!1);function BM(e){let t=[];for(let r of e.split(";")){if(r=or.trim(r),!r)continue;let[n,...i]=or.split(r);t.push({name:n,value:i})}return t}var IM=BM,_M=({node:e},t)=>e.fullName==="allow"&&!t.parentParser&&e.parent.fullName==="iframe"&&!e.value.includes("{{");function LM(e,t,r){let{node:n}=r,i=IM(_t(n));return i.length===0?[""]:mu(i.map(({name:s,value:a},o)=>[[s,...a].join(" "),o===i.length-1?Jo(";"):[";",ze]]))}function M1(e){return e===" "||e===` -`||e==="\f"||e==="\r"||e===" "}var $M=/^[ \t\n\r\u000c]+/,OM=/^[, \t\n\r\u000c]+/,MM=/^[^ \t\n\r\u000c]+/,jM=/[,]+$/,j1=/^\d+$/,RM=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/;function UM(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(OM),o>=t){if(c.length===0)throw new Error("Must contain one or more image candidate strings.");return c}u=o,r=l(MM),n=[],r.slice(-1)===","?(r=r.replace(jM,""),h()):p()}function p(){for(l($M),i="",s="in descriptor";;){if(a=e.charAt(o),s==="in descriptor")if(M1(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"&&!M1(a))if(a===""){h();return}else s="in descriptor",o-=1;o+=1}}function h(){let d=!1,f,y,E,g,m={},D,x,A,b,k;for(g=0;ge.node.fullName==="srcset"&&(e.parent.fullName==="img"||e.parent.fullName==="source"),CT={width:"w",height:"h",density:"x"},qM=Object.keys(CT);function HM(e,t,r){let n=_t(r.node),i=zM(n),s=qM.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=CT[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 mu(ga([",",ze],u.map((d,f)=>{let y=[d],E=c[f];if(E){let g=l-d.length+1,m=h-p[f],D=" ".repeat(g+m);y.push(Jo(D," "),E+o)}return y})))}var WM=({node:e},t)=>e.fullName==="style"&&!t.parentParser&&!e.value.includes("{{"),JM=async(e,t,r)=>mu(await e(_t(r.node),{parser:"css",__isHTMLStyleAttribute:!0})),hh=new WeakMap;function XM(e,t){let{root:r}=e;return hh.has(r)||hh.set(r,r.children.some(n=>DT(n,t)&&["ts","typescript"].includes(n.attrMap.lang))),hh.get(r)}var xa=XM;function KM(e,t,r){let n=_t(r.node);return ur(`type T<${n}> = any`,e,{parser:"babel-ts",__isEmbeddedTypescriptGenericParameters:!0},Da)}function GM(e,t,r,n){let i=_t(r.node),s=xa(r,n)?"babel-ts":"babel";return ur(`function _(${i}) {}`,e,{parser:s,__isVueBindings:!0})}async function QM(e,t,r,n){let i=_t(r.node),{left:s,operator:a,right:o}=YM(i),u=xa(r,n);return[We(await ur(`function _(${s}) {}`,e,{parser:u?"babel-ts":"babel",__isVueForBindingLeft:!0}))," ",a," ",await ur(o,e,{parser:u?"__ts_expression":"__js_expression"})]}function YM(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=Et(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 ZM=[{test:e=>e.node.fullName==="v-for",print:QM},{test:(e,t)=>e.node.fullName==="generic"&&DT(e.parent,t),print:KM},{test:({node:e},t)=>DM(e)||EM(e,t),print:GM},{test(e){let t=e.node.fullName;return t.startsWith("@")||t.startsWith("v-on:")},print:ej},{test(e){let t=e.node.fullName;return t.startsWith(":")||t.startsWith(".")||t.startsWith("v-bind:")},print:tj},{test:e=>e.node.fullName.startsWith("v-"),print:vT}].map(({test:e,print:t})=>({test:(r,n)=>n.parser==="vue"&&e(r,n),print:t}));async function ej(e,t,r,n){var a;try{return await vT(e,t,r,n)}catch(o){if(((a=o.cause)==null?void 0:a.code)!=="BABEL_PARSER_SYNTAX_ERROR")throw o}let i=_t(r.node),s=xa(r,n)?"__vue_ts_event_binding":"__vue_event_binding";return ur(i,e,{parser:s},Da)}function tj(e,t,r,n){let i=_t(r.node),s=xa(r,n)?"__vue_ts_expression":"__vue_expression";return ur(i,e,{parser:s},Da)}function vT(e,t,r,n){let i=_t(r.node),s=xa(r,n)?"__ts_expression":"__js_expression";return ur(i,e,{parser:s},Da)}var rj=ZM,nj=[{test:VM,print:HM},{test:WM,print:JM},{test:kM,print:NM},{test:FM,print:bM},{test:_M,print:LM},...rj,...SM].map(({test:e,print:t})=>({test:e,print:sj(t)}));function ij(e,t){var i;let{node:r}=e,{value:n}=r;if(n)return ET(r,t)?[r.rawName,"=",n]:(i=nj.find(({test:s})=>s(e,t)))==null?void 0:i.print}function sj(e){return async(t,r,n,i)=>{let s=await e(t,r,n,i);if(s)return s=YA(s,a=>typeof a=="string"?Et(0,a,'"',"""):a),[n.node.rawName,'="',We(s),'"']}}var aj=ij,Du=e=>e.sourceSpan.start.offset,Gc=e=>e.sourceSpan.end.offset;function jd(e,t){return[e.isSelfClosing?"":oj(e,t),Do(e,t)]}function oj(e,t){return e.lastChild&&Xo(e.lastChild)?"":[uj(e,t),Ty(e,t)]}function Do(e,t){return(e.next?Vi(e.next):xu(e.parent))?"":[Eu(e,t),zi(e,t)]}function uj(e,t){return xu(e)?Eu(e.lastChild,t):""}function zi(e,t){return Xo(e)?Ty(e.parent,t):Qc(e)?Sy(e.next,t):""}function Ty(e,t){if(AT(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 AT(e,t){return!e.isSelfClosing&&!e.endSourceSpan&&(Xc(e)||oT(e.parent,t))}function Vi(e){return e.prev&&e.prev.kind!=="docType"&&e.kind!=="angularControlFlowBlock"&&!Zt(e.prev)&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function xu(e){var t;return((t=e.lastChild)==null?void 0:t.isTrailingSpaceSensitive)&&!e.lastChild.hasTrailingSpaces&&!Zt(vy(e.lastChild))&&!ta(e)}function Xo(e){return!e.next&&!e.hasTrailingSpaces&&e.isTrailingSpaceSensitive&&Zt(vy(e))}function Qc(e){return e.next&&!Zt(e.next)&&Zt(e)&&e.isTrailingSpaceSensitive&&!e.hasTrailingSpaces}function lj(e){let t=e.trim().match(/^prettier-ignore-attribute(?:\s+(.+))?$/su);return t?t[1]?t[1].split(/\s+/u):!0:!1}function Yc(e){return!e.prev&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function cj(e,t,r){var c;let{node:n}=e;if(!xy(n.attrs))return n.isSelfClosing?" ":"";let i=((c=n.prev)==null?void 0:c.kind)==="comment"&&lj(n.prev.value),s=typeof i=="boolean"?()=>i:Array.isArray(i)?p=>i.includes(p.rawName):()=>!1,a=e.map(({node:p})=>s(p)?$r(t.originalText.slice(Du(p),Gc(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&&!Ea(n,t)?Oe:ze,l=[qr([o?" ":ze,ga(u,a)])];return n.firstChild&&Yc(n.firstChild)||n.isSelfClosing&&xu(n.parent)||o?l.push(n.isSelfClosing?" ":""):l.push(t.bracketSameLine?n.isSelfClosing?" ":"":n.isSelfClosing?ze:ct),l}function pj(e){return e.firstChild&&Yc(e.firstChild)?"":Fy(e)}function Rd(e,t,r){let{node:n}=e;return[Eo(n,t),cj(e,t,r),n.isSelfClosing?"":pj(n)]}function Eo(e,t){return e.prev&&Qc(e.prev)?"":[qi(e,t),Sy(e,t)]}function qi(e,t){return Yc(e)?Fy(e.parent):Vi(e)?Eu(e.prev,t):""}var R1="<${e.rawName}`;default:return`<${e.rawName}`}}function Fy(e){switch(e.kind){case"ieConditionalComment":return"]>";case"element":if(e.condition)return">";default:return">"}}function hj(e,t){if(!e.endSourceSpan)return"";let r=e.startSourceSpan.end.offset;e.firstChild&&Yc(e.firstChild)&&(r-=Fy(e).length);let n=e.endSourceSpan.start.offset;return e.lastChild&&Xo(e.lastChild)?n+=Ty(e,t).length:xu(e)&&(n-=Eu(e.lastChild,t).length),t.originalText.slice(r,n)}var TT=hj,dj=new Set(["if","else if","for","switch","case"]);function fj(e,t){let{node:r}=e;switch(r.kind){case"element":if(fn(r,t)||r.kind==="interpolation")return;if(!r.isSelfClosing&&Ay(r,t)){let n=O1(r,t);return n?async(i,s)=>{let a=TT(r,t),o=/^\s*$/u.test(a),u="";return o||(u=await i(aT(a),{parser:n,__embeddedInHtml:!0}),o=u===""),[qi(r,t),We(Rd(e,t,s)),o?"":Oe,u,o?"":Oe,jd(r,t),zi(r,t)]}:void 0}break;case"text":if(fn(r.parent,t)){let n=O1(r.parent,t);if(n)return async i=>{let s=n==="markdown"?or.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[fu,qi(r,t),await i(s,a),zi(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=xa(e,t)?"__vue_ts_expression":"__vue_expression":i.parser="__js_expression",[qr([ze,await n(r.value,i)]),r.parent.next&&Vi(r.parent.next)?" ":ze]};break;case"attribute":return aj(e,t);case"angularControlFlowBlockParameters":return dj.has(e.parent.name)?PO:void 0;case"angularLetDeclarationInitializer":return n=>ur(r.value,n,{parser:"__ng_binding",__isInHtmlAttribute:!1})}}var mj=fj,Ma=null;function xo(e){if(Ma!==null&&typeof Ma.property){let t=Ma;return Ma=xo.prototype=null,t}return Ma=xo.prototype=e??Object.create(null),new xo}var yj=10;for(let e=0;e<=yj;e++)xo();function gj(e){return xo(e)}function Dj(e,t="type"){gj(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 Ej=Dj,Lt=[["children"],[]],xj={root:Lt[0],element:["attrs","children"],ieConditionalComment:Lt[0],ieConditionalStartComment:Lt[1],ieConditionalEndComment:Lt[1],interpolation:Lt[0],text:Lt[0],docType:Lt[1],comment:Lt[1],attribute:Lt[1],cdata:Lt[1],angularControlFlowBlock:["children","parameters"],angularControlFlowBlockParameters:Lt[0],angularControlFlowBlockParameter:Lt[1],angularLetDeclaration:["init"],angularLetDeclarationInitializer:Lt[1],angularIcuExpression:["cases"],angularIcuCase:["expression"]},Cj=Ej(xj,"kind"),vj=Cj,Aj="format",Tj=/^\s*/u,Sj=/^\s*/u,Fj=e=>Sj.test(e),bj=e=>Tj.test(e),wj=e=>` +`)),ma(0,l,-1).length}},[cT]:!0}}function eO(e){let t=ZM(e);return t?{frontMatter:t,get content(){let{raw:r}=t;return xt(0,r,/[^\n]/gu," ")+e.slice(r.length)}}:{content:e}}var tO=eO,rO="inline",$1={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"},nO="normal",M1={listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"};function iO(e){return e.kind==="element"&&!e.hasExplicitNamespace&&!["html","svg"].includes(e.namespace)}var yu=iO,sO=e=>xt(0,e,/^[\t\f\r ]*\n/gu,""),pT=e=>sO(or.trimEnd(e)),aO=e=>{let t=e,r=or.getLeadingWhitespace(t);r&&(t=t.slice(r.length));let n=or.getTrailingWhitespace(t);return n&&(t=t.slice(0,-n.length)),{leadingWhitespace:r,trailingWhitespace:n,text:t}};function hT(e,t){return!!(e.kind==="ieConditionalComment"&&e.lastChild&&!e.lastChild.isSelfClosing&&!e.lastChild.endSourceSpan||e.kind==="ieConditionalComment"&&!e.complete||ta(e)&&e.children.some(r=>r.kind!=="text"&&r.kind!=="interpolation")||Ay(e,t)&&!fn(e,t)&&e.kind!=="interpolation")}function Xc(e){return e.kind==="attribute"||!e.parent||!e.prev?!1:oO(e.prev)}function oO(e){return e.kind==="comment"&&e.value.trim()==="prettier-ignore"}function Zt(e){return e.kind==="text"||e.kind==="comment"}function fn(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"||yu(e)&&(e.name==="script"||e.name==="style"))}function uO(e,t){return e.children&&!fn(e,t)}function lO(e,t){return fn(e,t)||e.kind==="interpolation"||dT(e)}function dT(e){return xT(e).startsWith("pre")}function cO(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 Jc(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:ta(e.parent)?!0:!(!e.prev&&(e.parent.kind==="root"||ta(e)&&e.parent||fn(e.parent,t)||Kc(e.parent,t)||!EO(e.parent.cssDisplay))||e.prev&&!vO(e.prev.cssDisplay))}}function pO(e,t){return Jc(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:ta(e.parent)?!0:!(!e.next&&(e.parent.kind==="root"||ta(e)&&e.parent||fn(e.parent,t)||Kc(e.parent,t)||!xO(e.parent.cssDisplay))||e.next&&!CO(e.next.cssDisplay))}function hO(e,t){return AO(e.cssDisplay)&&!fn(e,t)}function Yu(e){return Jc(e)||e.next&&e.sourceSpan.end&&e.sourceSpan.end.line+10&&(["body","script","style"].includes(e.name)||e.children.some(t=>mO(t)))||e.firstChild&&e.firstChild===e.lastChild&&e.firstChild.kind!=="text"&&yT(e.firstChild)&&(!e.lastChild.isTrailingSpaceSensitive||gT(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 ch(e){return DT(e)||e.prev&&fO(e.prev)||mT(e)}function fO(e){return DT(e)||e.kind==="element"&&e.fullName==="br"||mT(e)}function mT(e){return yT(e)&&gT(e)}function yT(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 DT(e){switch(e.kind){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return["script","select"].includes(e.name)}return!1}function vy(e){return e.lastChild?vy(e.lastChild):e}function mO(e){var t;return(t=e.children)==null?void 0:t.some(r=>r.kind!=="text")}function ET(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 yO(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":Cy(t,{language:s})??ET(i)}function gO(e,t){if(!Ay(e,t))return;let{attrMap:r}=e;if(Object.prototype.hasOwnProperty.call(r,"src"))return;let{type:n,lang:i}=r;return Cy(t,{language:i})??ET(n)}function DO(e,t){if(e.name==="style"){let{lang:r}=e.attrMap;return r?Cy(t,{language:r}):"css"}if(e.name==="mj-style"&&t.parser==="mjml")return"css"}function O1(e,t){return yO(e,t)??DO(e,t)??gO(e,t)}function gu(e){return e==="block"||e==="list-item"||e.startsWith("table")}function EO(e){return!gu(e)&&e!=="inline-block"}function xO(e){return!gu(e)&&e!=="inline-block"}function CO(e){return!gu(e)}function vO(e){return!gu(e)}function AO(e){return!gu(e)&&e!=="inline-block"}function ta(e){return xT(e).startsWith("pre")}function TO(e,t){let r=e;for(;r;){if(t(r))return!0;r=r.parent}return!1}function SO(e,t){var n;if(Ea(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(TO(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||yu(e))&&Object.prototype.hasOwnProperty.call($1,e.name))return $1[e.name]}return rO}function xT(e){return e.kind==="element"&&(!e.namespace||yu(e))&&Object.prototype.hasOwnProperty.call(M1,e.name)?M1[e.name]:nO}function CT(e){return xt(0,xt(0,e,"'","'"),""",'"')}function _t(e){return CT(e.value)}var FO=new Set(["template","style","script"]);function Kc(e,t){return Ea(e,t)&&!FO.has(e.fullName)}function Ea(e,t){return t.parser==="vue"&&e.kind==="element"&&e.parent.kind==="root"&&e.fullName.toLowerCase()!=="html"}function Ay(e,t){return Ea(e,t)&&(Kc(e,t)||e.attrMap.lang&&e.attrMap.lang!=="html")}function bO(e){let t=e.fullName;return t.charAt(0)==="#"||t==="slot-scope"||t==="v-slot"||t.startsWith("v-slot:")}function wO(e,t){let r=e.parent;if(!Ea(r,t))return!1;let n=r.fullName,i=e.fullName;return n==="script"&&i==="setup"||n==="style"&&i==="vars"}function vT(e,t=e.value){return e.parent.isWhitespaceSensitive?e.parent.isIndentationSensitive?$r(t):$r(or.dedentString(pT(t)),Me):ga(ze,or.split(t))}function AT(e,t){return Ea(e,t)&&e.name==="script"}function PO(e){let{valueSpan:t,value:r}=e;return t.end.offset-t.start.offset===r.length+2}function TT(e,t){if(PO(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 ST=/\{\{(.+?)\}\}/su,kO=({node:{value:e}})=>ST.test(e);async function NO(e,t,r){let n=_t(r.node),i=[];for(let[s,a]of n.split(ST).entries())if(s%2===0)i.push($r(a));else try{i.push(Je(["{{",qr([ze,await ur(a,e,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0})]),ze,"}}"]))}catch{i.push("{{",$r(a),"}}")}return i}var ph=e=>(t,r,n)=>ur(_t(n.node),t,{parser:e},Da),BO=[{test(e){let t=e.node.fullName;return t.startsWith("(")&&t.endsWith(")")||t.startsWith("on-")},print:ph("__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:ph("__ng_binding")},{test:e=>e.node.fullName.startsWith("*"),print:ph("__ng_directive")},{test:e=>/^i18n(?:-.+)?$/u.test(e.node.fullName),print:IO},{test:kO,print:NO}].map(({test:e,print:t})=>({test:(r,n)=>n.parser==="angular"&&e(r),print:t}));function IO(e,t,{node:r}){let n=_t(r);return mu(iT(vT(r,n.trim())),!n.includes("@@"))}var _O=BO,LO=({node:e},t)=>!t.parentParser&&e.fullName==="class"&&!e.value.includes("{{"),$O=(e,t,r)=>_t(r.node).trim().split(/\s+/u).join(" "),MO=["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"],OO=new Set(MO),jO=({node:e},t)=>OO.has(e.fullName)&&!t.parentParser&&!e.value.includes("{{"),RO=(e,t,r)=>ur(_t(r.node),e,{parser:"babel",__isHtmlInlineEventHandler:!0},()=>!1);function UO(e){let t=[];for(let r of e.split(";")){if(r=or.trim(r),!r)continue;let[n,...i]=or.split(r);t.push({name:n,value:i})}return t}var zO=UO,VO=({node:e},t)=>e.fullName==="allow"&&!t.parentParser&&e.parent.fullName==="iframe"&&!e.value.includes("{{");function qO(e,t,r){let{node:n}=r,i=zO(_t(n));return i.length===0?[""]:mu(i.map(({name:s,value:a},o)=>[[s,...a].join(" "),o===i.length-1?Jo(";"):[";",ze]]))}function j1(e){return e===" "||e===` +`||e==="\f"||e==="\r"||e===" "}var HO=/^[ \t\n\r\u000c]+/,WO=/^[, \t\n\r\u000c]+/,JO=/^[^ \t\n\r\u000c]+/,XO=/[,]+$/,R1=/^\d+$/,KO=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/;function GO(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(WO),o>=t){if(c.length===0)throw new Error("Must contain one or more image candidate strings.");return c}u=o,r=l(JO),n=[],r.slice(-1)===","?(r=r.replace(XO,""),h()):p()}function p(){for(l(HO),i="",s="in descriptor";;){if(a=e.charAt(o),s==="in descriptor")if(j1(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"&&!j1(a))if(a===""){h();return}else s="in descriptor",o-=1;o+=1}}function h(){let d=!1,f,y,x,g,m={},D,E,A,F,k;for(g=0;ge.node.fullName==="srcset"&&(e.parent.fullName==="img"||e.parent.fullName==="source"),FT={width:"w",height:"h",density:"x"},ZO=Object.keys(FT);function ej(e,t,r){let n=_t(r.node),i=QO(n),s=ZO.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=FT[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 mu(ga([",",ze],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(Jo(D," "),x+o)}return y})))}var tj=({node:e},t)=>e.fullName==="style"&&!t.parentParser&&!e.value.includes("{{"),rj=async(e,t,r)=>mu(await e(_t(r.node),{parser:"css",__isHTMLStyleAttribute:!0})),hh=new WeakMap;function nj(e,t){let{root:r}=e;return hh.has(r)||hh.set(r,r.children.some(n=>AT(n,t)&&["ts","typescript"].includes(n.attrMap.lang))),hh.get(r)}var xa=nj;function ij(e,t,r){let n=_t(r.node);return ur(`type T<${n}> = any`,e,{parser:"babel-ts",__isEmbeddedTypescriptGenericParameters:!0},Da)}function sj(e,t,r,n){let i=_t(r.node),s=xa(r,n)?"babel-ts":"babel";return ur(`function _(${i}) {}`,e,{parser:s,__isVueBindings:!0})}async function aj(e,t,r,n){let i=_t(r.node),{left:s,operator:a,right:o}=oj(i),u=xa(r,n);return[Je(await ur(`function _(${s}) {}`,e,{parser:u?"babel-ts":"babel",__isVueForBindingLeft:!0}))," ",a," ",await ur(o,e,{parser:u?"__ts_expression":"__js_expression"})]}function oj(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=xt(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 uj=[{test:e=>e.node.fullName==="v-for",print:aj},{test:(e,t)=>e.node.fullName==="generic"&&AT(e.parent,t),print:ij},{test:({node:e},t)=>bO(e)||wO(e,t),print:sj},{test(e){let t=e.node.fullName;return t.startsWith("@")||t.startsWith("v-on:")},print:lj},{test(e){let t=e.node.fullName;return t.startsWith(":")||t.startsWith(".")||t.startsWith("v-bind:")},print:cj},{test:e=>e.node.fullName.startsWith("v-"),print:bT}].map(({test:e,print:t})=>({test:(r,n)=>n.parser==="vue"&&e(r,n),print:t}));async function lj(e,t,r,n){var a;try{return await bT(e,t,r,n)}catch(o){if(((a=o.cause)==null?void 0:a.code)!=="BABEL_PARSER_SYNTAX_ERROR")throw o}let i=_t(r.node),s=xa(r,n)?"__vue_ts_event_binding":"__vue_event_binding";return ur(i,e,{parser:s},Da)}function cj(e,t,r,n){let i=_t(r.node),s=xa(r,n)?"__vue_ts_expression":"__vue_expression";return ur(i,e,{parser:s},Da)}function bT(e,t,r,n){let i=_t(r.node),s=xa(r,n)?"__ts_expression":"__js_expression";return ur(i,e,{parser:s},Da)}var pj=uj,hj=[{test:YO,print:ej},{test:tj,print:rj},{test:jO,print:RO},{test:LO,print:$O},{test:VO,print:qO},...pj,..._O].map(({test:e,print:t})=>({test:e,print:fj(t)}));function dj(e,t){var i;let{node:r}=e,{value:n}=r;if(n)return TT(r,t)?[r.rawName,"=",n]:(i=hj.find(({test:s})=>s(e,t)))==null?void 0:i.print}function fj(e){return async(t,r,n,i)=>{let s=await e(t,r,n,i);if(s)return s=nT(s,a=>typeof a=="string"?xt(0,a,'"',"""):a),[n.node.rawName,'="',Je(s),'"']}}var mj=dj,Du=e=>e.sourceSpan.start.offset,Gc=e=>e.sourceSpan.end.offset;function jd(e,t){return[e.isSelfClosing?"":yj(e,t),Do(e,t)]}function yj(e,t){return e.lastChild&&Xo(e.lastChild)?"":[gj(e,t),Ty(e,t)]}function Do(e,t){return(e.next?Vi(e.next):xu(e.parent))?"":[Eu(e,t),zi(e,t)]}function gj(e,t){return xu(e)?Eu(e.lastChild,t):""}function zi(e,t){return Xo(e)?Ty(e.parent,t):Qc(e)?Sy(e.next,t):""}function Ty(e,t){if(wT(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 wT(e,t){return!e.isSelfClosing&&!e.endSourceSpan&&(Xc(e)||hT(e.parent,t))}function Vi(e){return e.prev&&e.prev.kind!=="docType"&&e.kind!=="angularControlFlowBlock"&&!Zt(e.prev)&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function xu(e){var t;return((t=e.lastChild)==null?void 0:t.isTrailingSpaceSensitive)&&!e.lastChild.hasTrailingSpaces&&!Zt(vy(e.lastChild))&&!ta(e)}function Xo(e){return!e.next&&!e.hasTrailingSpaces&&e.isTrailingSpaceSensitive&&Zt(vy(e))}function Qc(e){return e.next&&!Zt(e.next)&&Zt(e)&&e.isTrailingSpaceSensitive&&!e.hasTrailingSpaces}function Dj(e){let t=e.trim().match(/^prettier-ignore-attribute(?:\s+(.+))?$/su);return t?t[1]?t[1].split(/\s+/u):!0:!1}function Yc(e){return!e.prev&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function Ej(e,t,r){var c;let{node:n}=e;if(!xy(n.attrs))return n.isSelfClosing?" ":"";let i=((c=n.prev)==null?void 0:c.kind)==="comment"&&Dj(n.prev.value),s=typeof i=="boolean"?()=>i:Array.isArray(i)?p=>i.includes(p.rawName):()=>!1,a=e.map(({node:p})=>s(p)?$r(t.originalText.slice(Du(p),Gc(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&&!Ea(n,t)?Me:ze,l=[qr([o?" ":ze,ga(u,a)])];return n.firstChild&&Yc(n.firstChild)||n.isSelfClosing&&xu(n.parent)||o?l.push(n.isSelfClosing?" ":""):l.push(t.bracketSameLine?n.isSelfClosing?" ":"":n.isSelfClosing?ze:pt),l}function xj(e){return e.firstChild&&Yc(e.firstChild)?"":Fy(e)}function Rd(e,t,r){let{node:n}=e;return[Eo(n,t),Ej(e,t,r),n.isSelfClosing?"":xj(n)]}function Eo(e,t){return e.prev&&Qc(e.prev)?"":[qi(e,t),Sy(e,t)]}function qi(e,t){return Yc(e)?Fy(e.parent):Vi(e)?Eu(e.prev,t):""}var U1="<${e.rawName}`;default:return`<${e.rawName}`}}function Fy(e){switch(e.kind){case"ieConditionalComment":return"]>";case"element":if(e.condition)return">";default:return">"}}function Cj(e,t){if(!e.endSourceSpan)return"";let r=e.startSourceSpan.end.offset;e.firstChild&&Yc(e.firstChild)&&(r-=Fy(e).length);let n=e.endSourceSpan.start.offset;return e.lastChild&&Xo(e.lastChild)?n+=Ty(e,t).length:xu(e)&&(n-=Eu(e.lastChild,t).length),t.originalText.slice(r,n)}var PT=Cj,vj=new Set(["if","else if","for","switch","case"]);function Aj(e,t){let{node:r}=e;switch(r.kind){case"element":if(fn(r,t)||r.kind==="interpolation")return;if(!r.isSelfClosing&&Ay(r,t)){let n=O1(r,t);return n?async(i,s)=>{let a=PT(r,t),o=/^\s*$/u.test(a),u="";return o||(u=await i(pT(a),{parser:n,__embeddedInHtml:!0}),o=u===""),[qi(r,t),Je(Rd(e,t,s)),o?"":Me,u,o?"":Me,jd(r,t),zi(r,t)]}:void 0}break;case"text":if(fn(r.parent,t)){let n=O1(r.parent,t);if(n)return async i=>{let s=n==="markdown"?or.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[fu,qi(r,t),await i(s,a),zi(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=xa(e,t)?"__vue_ts_expression":"__vue_expression":i.parser="__js_expression",[qr([ze,await n(r.value,i)]),r.parent.next&&Vi(r.parent.next)?" ":ze]};break;case"attribute":return mj(e,t);case"angularControlFlowBlockParameters":return vj.has(e.parent.name)?OM:void 0;case"angularLetDeclarationInitializer":return n=>ur(r.value,n,{parser:"__ng_binding",__isInHtmlAttribute:!1})}}var Tj=Aj,Oa=null;function xo(e){if(Oa!==null&&typeof Oa.property){let t=Oa;return Oa=xo.prototype=null,t}return Oa=xo.prototype=e??Object.create(null),new xo}var Sj=10;for(let e=0;e<=Sj;e++)xo();function Fj(e){return xo(e)}function bj(e,t="type"){Fj(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 wj=bj,Lt=[["children"],[]],Pj={root:Lt[0],element:["attrs","children"],ieConditionalComment:Lt[0],ieConditionalStartComment:Lt[1],ieConditionalEndComment:Lt[1],interpolation:Lt[0],text:Lt[0],docType:Lt[1],comment:Lt[1],attribute:Lt[1],cdata:Lt[1],angularControlFlowBlock:["children","parameters"],angularControlFlowBlockParameters:Lt[0],angularControlFlowBlockParameter:Lt[1],angularLetDeclaration:["init"],angularLetDeclarationInitializer:Lt[1],angularIcuExpression:["cases"],angularIcuCase:["expression"]},kj=wj(Pj,"kind"),Nj=kj,Bj="format",Ij=/^\s*/u,_j=/^\s*/u,Lj=e=>_j.test(e),$j=e=>Ij.test(e),Mj=e=>` -${e}`,Pj=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 ST(e){let t=Gc(e);return e.kind==="element"&&!e.endSourceSpan&&xy(e.children)?Math.max(t,ST(ma(0,e.children,-1))):t}function ja(e,t,r){let n=e.node;if(Xc(n)){let i=ST(n);return[qi(n,t),$r(or.trimEnd(t.originalText.slice(Du(n)+(n.prev&&Qc(n.prev)?Sy(n).length:0),i-(n.next&&Vi(n.next)?Eu(n,t).length:0)))),zi(n,t)]}return r()}function Zu(e,t){return Zt(e)&&Zt(t)?e.isTrailingSpaceSensitive?e.hasTrailingSpaces?ch(t)?Oe:ze:"":ch(t)?Oe:ct:Qc(e)&&(Xc(t)||t.firstChild||t.isSelfClosing||t.kind==="element"&&t.attrs.length>0)||e.kind==="element"&&e.isSelfClosing&&Vi(t)?"":!t.isLeadingSpaceSensitive||ch(t)||Vi(t)&&e.lastChild&&Xo(e.lastChild)&&e.lastChild.lastChild&&Xo(e.lastChild.lastChild)?Oe:t.hasLeadingSpaces?ze:ct}function by(e,t,r){let{node:n}=e;if(lT(n))return[fu,...e.map(()=>{let s=e.node,a=s.prev?Zu(s.prev,s):"";return[a?[a,Yu(s.prev)?Oe:""]:"",ja(e,t,r)]},"children")];let i=n.children.map(()=>Symbol(""));return e.map(({node:s,index:a})=>{if(Zt(s)){if(s.prev&&Zt(s.prev)){let d=Zu(s.prev,s);if(d)return Yu(s.prev)?[Oe,Oe,ja(e,t,r)]:[d,ja(e,t,r)]}return ja(e,t,r)}let o=[],u=[],l=[],c=[],p=s.prev?Zu(s.prev,s):"",h=s.next?Zu(s,s.next):"";return p&&(Yu(s.prev)?o.push(Oe,Oe):p===Oe?o.push(Oe):Zt(s.prev)?u.push(p):u.push(Jo("",ct,{groupId:i[a-1]}))),h&&(Yu(s)?Zt(s.next)&&c.push(Oe,Oe):h===Oe?Zt(s.next)&&c.push(Oe):l.push(h)),[...o,We([...u,We([ja(e,t,r),...l],{id:i[a]})]),...c]},"children")}function kj(e,t,r){let{node:n}=e,i=[];if(Ij(e)&&i.push("} "),i.push("@",n.name),n.parameters&&i.push(" (",We(r("parameters")),")"),!Bj(n)){i.push(" {");let s=FT(n);n.children.length>0?(n.firstChild.hasLeadingSpaces=!0,n.lastChild.hasTrailingSpaces=!0,i.push(qr([Oe,by(e,t,r)])),s&&i.push(Oe,"}")):s&&i.push("}")}return We(i,{shouldBreak:!0})}function FT(e){var t,r;return!(((t=e.next)==null?void 0:t.kind)==="angularControlFlowBlock"&&((r=Pj.get(e.name))!=null&&r.has(e.next.name)))}var Nj=e=>(e==null?void 0:e.kind)==="angularControlFlowBlock"&&(e.name==="case"||e.name==="default");function Bj(e){return Nj(e)&&e.endSourceSpan&&e.endSourceSpan.start.offset===e.endSourceSpan.end.offset}function Ij(e){let{previous:t}=e;return(t==null?void 0:t.kind)==="angularControlFlowBlock"&&!Xc(t)&&!FT(t)}function _j(e,t,r){return[qr([ct,ga([";",ze],e.map(r,"children"))]),ct]}function Lj(e,t,r){let{node:n}=e;return[Eo(n,t),We([n.switchValue.trim(),", ",n.type,n.cases.length>0?[",",qr([ze,ga(ze,e.map(r,"cases"))])]:"",ct]),Do(n,t)]}function $j(e,t,r){let{node:n}=e;return[n.value," {",We([qr([ct,e.map(({node:i,isLast:s})=>{let a=[r()];return i.kind==="text"&&(i.hasLeadingSpaces&&a.unshift(ze),i.hasTrailingSpaces&&!s&&a.push(ze)),a},"expression")]),ct]),"}"]}function Oj(e,t,r){let{node:n}=e;if(oT(n,t))return[qi(n,t),We(Rd(e,t,r)),$r(TT(n,t)),...jd(n,t),zi(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=>We([We(Rd(e,t,r),{id:s}),c,jd(n,t)]),o=c=>i?cO(c,{groupId:s}):(fn(n,t)||Kc(n,t))&&n.parent.kind==="root"&&t.parser==="vue"&&!t.vueIndentScriptAndStyle?c:qr(c),u=()=>i?Jo(ct,"",{groupId:s}):n.firstChild.hasLeadingSpaces&&n.firstChild.isLeadingSpaceSensitive?ze:n.firstChild.kind==="text"&&n.isWhitespaceSensitive&&n.isIndentationSensitive?lO(ct):ct,l=()=>(n.next?Vi(n.next):xu(n.parent))?n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?" ":"":i?Jo(ct,"",{groupId:s}):n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?ze:(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)?"":ct;return n.children.length===0?a(n.hasDanglingSpaces&&n.isDanglingSpaceSensitive?ze:""):a([iM(n)?fu:"",o([u(),by(e,t,r)]),l()])}var Qr=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 Zc(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 U1(e){return Zc(e)[1]==="ng-container"}function z1(e){return Zc(e)[1]==="ng-content"}function Sl(e){return e===null?null:Zc(e)[0]}function Co(e,t){return e?`:${e}:${t}`:t}var V1={name:"custom-elements"},q1={name:"no-errors-schema"},ps=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}({}),Mj=/-+([a-z0-9])/g;function jj(e){return e.replace(Mj,(...t)=>t[1].toUpperCase())}var Fl;function H1(){return Fl||(Fl={},Ra(ps.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),Ra(ps.STYLE,["*|style"]),Ra(ps.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"]),Ra(ps.RESOURCE_URL,["base|href","embed|src","frame|src","iframe|src","link|href","object|codebase","object|data","script|src","script|href","script|xlink:href"]),Ra(ps.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"])),Fl}function Ra(e,t){for(let r of t)Fl[r.toLowerCase()]=e}var Rj=class{},Uj="boolean",zj="number",Vj="string",qj="object",Hj=["[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:|"],bT=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"})),Wj=Array.from(bT).reduce((e,[t,r])=>(e.set(t,r),e),new Map),Jj=class extends Rj{constructor(){super(),this._schema=new Map,this._eventSchema=new Map,Hj.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),Uj);break;case"#":t.set(l.substring(1),zj);break;case"%":t.set(l.substring(1),qj);break;default:t.set(l,Vj)}})})}hasProperty(e,t,r){if(r.some(n=>n.name===q1.name))return!0;if(e.indexOf("-")>-1){if(U1(e)||z1(e))return!1;if(r.some(n=>n.name===V1.name))return!0}return(this._schema.get(e.toLowerCase())||this._schema.get("unknown")).has(t)}hasElement(e,t){return t.some(r=>r.name===q1.name)||e.indexOf("-")>-1&&(U1(e)||z1(e)||t.some(r=>r.name===V1.name))?!0:this._schema.has(e.toLowerCase())}securityContext(e,t,r){r&&(t=this.getMappedPropName(t)),e=e.toLowerCase(),t=t.toLowerCase();let n=H1()[e+"|"+t];return n||(n=H1()["*|"+t],n||ps.NONE)}getMappedPropName(e){return bT.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=>Wj.get(r)??r)}allKnownEventsOfElement(e){return Array.from(this._eventSchema.get(e.toLowerCase())??[])}normalizeAnimationStyleProperty(e){return jj(e)}normalizeAnimationStyleValue(e,t,r){let n="",i=r.toString().trim(),s=null;if(Xj(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 Xj(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 le=class{constructor({closedByChildren:e,implicitNamespacePrefix:t,contentType:r=Qr.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}},W1,Ua;function Ud(e){return Ua||(W1=new le({canSelfClose:!0}),Ua=Object.assign(Object.create(null),{base:new le({isVoid:!0}),meta:new le({isVoid:!0}),area:new le({isVoid:!0}),embed:new le({isVoid:!0}),link:new le({isVoid:!0}),img:new le({isVoid:!0}),input:new le({isVoid:!0}),param:new le({isVoid:!0}),hr:new le({isVoid:!0}),br:new le({isVoid:!0}),source:new le({isVoid:!0}),track:new le({isVoid:!0}),wbr:new le({isVoid:!0}),p:new le({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 le({closedByChildren:["tbody","tfoot"]}),tbody:new le({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new le({closedByChildren:["tbody"],closedByParent:!0}),tr:new le({closedByChildren:["tr"],closedByParent:!0}),td:new le({closedByChildren:["td","th"],closedByParent:!0}),th:new le({closedByChildren:["td","th"],closedByParent:!0}),col:new le({isVoid:!0}),svg:new le({implicitNamespacePrefix:"svg"}),foreignObject:new le({implicitNamespacePrefix:"svg",preventNamespaceInheritance:!0}),math:new le({implicitNamespacePrefix:"math"}),li:new le({closedByChildren:["li"],closedByParent:!0}),dt:new le({closedByChildren:["dt","dd"]}),dd:new le({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new le({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new le({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new le({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new le({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new le({closedByChildren:["optgroup"],closedByParent:!0}),option:new le({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new le({ignoreFirstLf:!0}),listing:new le({ignoreFirstLf:!0}),style:new le({contentType:Qr.RAW_TEXT}),script:new le({contentType:Qr.RAW_TEXT}),title:new le({contentType:{default:Qr.ESCAPABLE_RAW_TEXT,svg:Qr.PARSABLE_DATA}}),textarea:new le({contentType:Qr.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),new Jj().allKnownElementNames().forEach(t=>{!Ua[t]&&Sl(t)===null&&(Ua[t]=new le({canSelfClose:!1}))})),Ua[e]??W1}function oc(e){return e>=9&&e<=32||e==160}function ep(e){return 48<=e&&e<=57}function Ko(e){return e>=97&&e<=122||e>=65&&e<=90}function Kj(e){return e>=97&&e<=102||e>=65&&e<=70||ep(e)}function uc(e){return e===10||e===13}function J1(e){return 48<=e&&e<=55}function dh(e){return e===39||e===34||e===96}var zd=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]==` +${e}`,Oj=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 kT(e){let t=Gc(e);return e.kind==="element"&&!e.endSourceSpan&&xy(e.children)?Math.max(t,kT(ma(0,e.children,-1))):t}function ja(e,t,r){let n=e.node;if(Xc(n)){let i=kT(n);return[qi(n,t),$r(or.trimEnd(t.originalText.slice(Du(n)+(n.prev&&Qc(n.prev)?Sy(n).length:0),i-(n.next&&Vi(n.next)?Eu(n,t).length:0)))),zi(n,t)]}return r()}function Zu(e,t){return Zt(e)&&Zt(t)?e.isTrailingSpaceSensitive?e.hasTrailingSpaces?ch(t)?Me:ze:"":ch(t)?Me:pt:Qc(e)&&(Xc(t)||t.firstChild||t.isSelfClosing||t.kind==="element"&&t.attrs.length>0)||e.kind==="element"&&e.isSelfClosing&&Vi(t)?"":!t.isLeadingSpaceSensitive||ch(t)||Vi(t)&&e.lastChild&&Xo(e.lastChild)&&e.lastChild.lastChild&&Xo(e.lastChild.lastChild)?Me:t.hasLeadingSpaces?ze:pt}function by(e,t,r){let{node:n}=e;if(fT(n))return[fu,...e.map(()=>{let s=e.node,a=s.prev?Zu(s.prev,s):"";return[a?[a,Yu(s.prev)?Me:""]:"",ja(e,t,r)]},"children")];let i=n.children.map(()=>Symbol(""));return e.map(({node:s,index:a})=>{if(Zt(s)){if(s.prev&&Zt(s.prev)){let d=Zu(s.prev,s);if(d)return Yu(s.prev)?[Me,Me,ja(e,t,r)]:[d,ja(e,t,r)]}return ja(e,t,r)}let o=[],u=[],l=[],c=[],p=s.prev?Zu(s.prev,s):"",h=s.next?Zu(s,s.next):"";return p&&(Yu(s.prev)?o.push(Me,Me):p===Me?o.push(Me):Zt(s.prev)?u.push(p):u.push(Jo("",pt,{groupId:i[a-1]}))),h&&(Yu(s)?Zt(s.next)&&c.push(Me,Me):h===Me?Zt(s.next)&&c.push(Me):l.push(h)),[...o,Je([...u,Je([ja(e,t,r),...l],{id:i[a]})]),...c]},"children")}function jj(e,t,r){let{node:n}=e,i=[];if(zj(e)&&i.push("} "),i.push("@",n.name),n.parameters&&i.push(" (",Je(r("parameters")),")"),!Uj(n)){i.push(" {");let s=NT(n);n.children.length>0?(n.firstChild.hasLeadingSpaces=!0,n.lastChild.hasTrailingSpaces=!0,i.push(qr([Me,by(e,t,r)])),s&&i.push(Me,"}")):s&&i.push("}")}return Je(i,{shouldBreak:!0})}function NT(e){var t,r;return!(((t=e.next)==null?void 0:t.kind)==="angularControlFlowBlock"&&((r=Oj.get(e.name))!=null&&r.has(e.next.name)))}var Rj=e=>(e==null?void 0:e.kind)==="angularControlFlowBlock"&&(e.name==="case"||e.name==="default");function Uj(e){return Rj(e)&&e.endSourceSpan&&e.endSourceSpan.start.offset===e.endSourceSpan.end.offset}function zj(e){let{previous:t}=e;return(t==null?void 0:t.kind)==="angularControlFlowBlock"&&!Xc(t)&&!NT(t)}function Vj(e,t,r){return[qr([pt,ga([";",ze],e.map(r,"children"))]),pt]}function qj(e,t,r){let{node:n}=e;return[Eo(n,t),Je([n.switchValue.trim(),", ",n.type,n.cases.length>0?[",",qr([ze,ga(ze,e.map(r,"cases"))])]:"",pt]),Do(n,t)]}function Hj(e,t,r){let{node:n}=e;return[n.value," {",Je([qr([pt,e.map(({node:i,isLast:s})=>{let a=[r()];return i.kind==="text"&&(i.hasLeadingSpaces&&a.unshift(ze),i.hasTrailingSpaces&&!s&&a.push(ze)),a},"expression")]),pt]),"}"]}function Wj(e,t,r){let{node:n}=e;if(hT(n,t))return[qi(n,t),Je(Rd(e,t,r)),$r(PT(n,t)),...jd(n,t),zi(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=>Je([Je(Rd(e,t,r),{id:s}),c,jd(n,t)]),o=c=>i?EM(c,{groupId:s}):(fn(n,t)||Kc(n,t))&&n.parent.kind==="root"&&t.parser==="vue"&&!t.vueIndentScriptAndStyle?c:qr(c),u=()=>i?Jo(pt,"",{groupId:s}):n.firstChild.hasLeadingSpaces&&n.firstChild.isLeadingSpaceSensitive?ze:n.firstChild.kind==="text"&&n.isWhitespaceSensitive&&n.isIndentationSensitive?DM(pt):pt,l=()=>(n.next?Vi(n.next):xu(n.parent))?n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?" ":"":i?Jo(pt,"",{groupId:s}):n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?ze:(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?ze:""):a([dO(n)?fu:"",o([u(),by(e,t,r)]),l()])}var Qr=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 Zc(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 z1(e){return Zc(e)[1]==="ng-container"}function V1(e){return Zc(e)[1]==="ng-content"}function Sl(e){return e===null?null:Zc(e)[0]}function Co(e,t){return e?`:${e}:${t}`:t}var q1={name:"custom-elements"},H1={name:"no-errors-schema"},ps=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}({}),Jj=/-+([a-z0-9])/g;function Xj(e){return e.replace(Jj,(...t)=>t[1].toUpperCase())}var Fl;function W1(){return Fl||(Fl={},Ra(ps.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),Ra(ps.STYLE,["*|style"]),Ra(ps.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"]),Ra(ps.RESOURCE_URL,["base|href","embed|src","frame|src","iframe|src","link|href","object|codebase","object|data","script|src","script|href","script|xlink:href"]),Ra(ps.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"])),Fl}function Ra(e,t){for(let r of t)Fl[r.toLowerCase()]=e}var Kj=class{},Gj="boolean",Qj="number",Yj="string",Zj="object",eR=["[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:|"],BT=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"})),tR=Array.from(BT).reduce((e,[t,r])=>(e.set(t,r),e),new Map),rR=class extends Kj{constructor(){super(),this._schema=new Map,this._eventSchema=new Map,eR.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),Gj);break;case"#":t.set(l.substring(1),Qj);break;case"%":t.set(l.substring(1),Zj);break;default:t.set(l,Yj)}})})}hasProperty(e,t,r){if(r.some(n=>n.name===H1.name))return!0;if(e.indexOf("-")>-1){if(z1(e)||V1(e))return!1;if(r.some(n=>n.name===q1.name))return!0}return(this._schema.get(e.toLowerCase())||this._schema.get("unknown")).has(t)}hasElement(e,t){return t.some(r=>r.name===H1.name)||e.indexOf("-")>-1&&(z1(e)||V1(e)||t.some(r=>r.name===q1.name))?!0:this._schema.has(e.toLowerCase())}securityContext(e,t,r){r&&(t=this.getMappedPropName(t)),e=e.toLowerCase(),t=t.toLowerCase();let n=W1()[e+"|"+t];return n||(n=W1()["*|"+t],n||ps.NONE)}getMappedPropName(e){return BT.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=>tR.get(r)??r)}allKnownEventsOfElement(e){return Array.from(this._eventSchema.get(e.toLowerCase())??[])}normalizeAnimationStyleProperty(e){return Xj(e)}normalizeAnimationStyleValue(e,t,r){let n="",i=r.toString().trim(),s=null;if(nR(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 nR(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 le=class{constructor({closedByChildren:e,implicitNamespacePrefix:t,contentType:r=Qr.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}},J1,Ua;function Ud(e){return Ua||(J1=new le({canSelfClose:!0}),Ua=Object.assign(Object.create(null),{base:new le({isVoid:!0}),meta:new le({isVoid:!0}),area:new le({isVoid:!0}),embed:new le({isVoid:!0}),link:new le({isVoid:!0}),img:new le({isVoid:!0}),input:new le({isVoid:!0}),param:new le({isVoid:!0}),hr:new le({isVoid:!0}),br:new le({isVoid:!0}),source:new le({isVoid:!0}),track:new le({isVoid:!0}),wbr:new le({isVoid:!0}),p:new le({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 le({closedByChildren:["tbody","tfoot"]}),tbody:new le({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new le({closedByChildren:["tbody"],closedByParent:!0}),tr:new le({closedByChildren:["tr"],closedByParent:!0}),td:new le({closedByChildren:["td","th"],closedByParent:!0}),th:new le({closedByChildren:["td","th"],closedByParent:!0}),col:new le({isVoid:!0}),svg:new le({implicitNamespacePrefix:"svg"}),foreignObject:new le({implicitNamespacePrefix:"svg",preventNamespaceInheritance:!0}),math:new le({implicitNamespacePrefix:"math"}),li:new le({closedByChildren:["li"],closedByParent:!0}),dt:new le({closedByChildren:["dt","dd"]}),dd:new le({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new le({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new le({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new le({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new le({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new le({closedByChildren:["optgroup"],closedByParent:!0}),option:new le({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new le({ignoreFirstLf:!0}),listing:new le({ignoreFirstLf:!0}),style:new le({contentType:Qr.RAW_TEXT}),script:new le({contentType:Qr.RAW_TEXT}),title:new le({contentType:{default:Qr.ESCAPABLE_RAW_TEXT,svg:Qr.PARSABLE_DATA}}),textarea:new le({contentType:Qr.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),new rR().allKnownElementNames().forEach(t=>{!Ua[t]&&Sl(t)===null&&(Ua[t]=new le({canSelfClose:!1}))})),Ua[e]??J1}function oc(e){return e>=9&&e<=32||e==160}function ep(e){return 48<=e&&e<=57}function Ko(e){return e>=97&&e<=122||e>=65&&e<=90}function iR(e){return e>=97&&e<=102||e>=65&&e<=70||ep(e)}function uc(e){return e===10||e===13}function X1(e){return 48<=e&&e<=55}function dh(e){return e===39||e===34||e===96}var zd=class IT{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 IT(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}`}},ns=class{constructor(e,t){this.sourceSpan=e,this.i18n=t}},Gj=class extends ns{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)}},Qj=class extends ns{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)}},Yj=class extends ns{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)}},Zj=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)}},eR=class extends ns{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}},Di=class extends ns{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)}},tR=class{constructor(e,t){this.value=e,this.sourceSpan=t,this.kind="comment"}visit(e,t){return e.visitComment(this,t)}},rR=class{constructor(e,t){this.value=e,this.sourceSpan=t,this.kind="docType"}visit(e,t){return e.visitDocType(this,t)}},us=class extends ns{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)}},Nn=class extends ns{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)}},nR=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)}},K1=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)}},G1=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 kT(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 iR=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(kT(n,s,e))}return t(i),Array.prototype.concat.apply([],r)}},Go={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:"‌"},sR="";Go.ngsp=sR;var B=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}({}),aR=class{constructor(e,t,r){this.tokens=e,this.errors=t,this.nonNormalizedIcuExpressions=r}};function oR(e,t,r,n={}){let i=new pR(new PT(e,t),r,n);return i.tokenize(),new aR(DR(i.tokens),i.errors,i.nonNormalizedIcuExpressions)}var uR=/\r\n?/g;function Ei(e){return`Unexpected character "${e===0?"EOF":String.fromCharCode(e)}"`}function Q1(e){return`Unknown entity "${e}" - use the "&#;" or "&#x;" syntax`}function lR(e,t){return`Unable to parse entity "${t}" - ${e} character reference entities must end with ";"`}var Vd=function(e){return e.HEX="hexadecimal",e.DEC="decimal",e}(Vd||{}),cR=["@if","@else","@for","@switch","@case","@default","@empty","@defer","@placeholder","@loading","@error"],za={start:"{{",end:"}}"},pR=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 ER(e,n):new NT(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(uR,` -`)}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(B.TEXT,B.INTERPOLATION,()=>this._isTextEnd(),()=>this._isTagStart())}catch(t){this.handleError(t)}}this._beginToken(B.EOF),this._endToken([])}_getBlockName(){let e=!1,t=this._cursor.clone();return this._attemptCharCodeUntilFn(r=>oc(r)?!e:gR(r)?(e=!0,!1):!0),this._cursor.getChars(t).trim()}_consumeBlockStart(e){this._requireCharCode(64),this._beginToken(B.BLOCK_OPEN_START,e);let t=this._endToken([this._getBlockName()]);if(this._cursor.peek()===40)if(this._cursor.advance(),this._consumeBlockParameters(),this._attemptCharCodeUntilFn(Te),this._attemptCharCode(41))this._attemptCharCodeUntilFn(Te);else{t.type=B.INCOMPLETE_BLOCK_OPEN;return}this._attemptCharCode(123)?(this._beginToken(B.BLOCK_OPEN_END),this._endToken([])):this._isBlockStart()&&(t.parts[0]==="case"||t.parts[0]==="default")?(this._beginToken(B.BLOCK_OPEN_END),this._endToken([]),this._beginToken(B.BLOCK_CLOSE),this._endToken([])):t.type=B.INCOMPLETE_BLOCK_OPEN}_consumeBlockEnd(e){this._beginToken(B.BLOCK_CLOSE,e),this._endToken([])}_consumeBlockParameters(){for(this._attemptCharCodeUntilFn(Z1);this._cursor.peek()!==41&&this._cursor.peek()!==0;){this._beginToken(B.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&&dh(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(Z1)}}_consumeLetDeclaration(e){if(this._requireStr("@let"),this._beginToken(B.LET_START,e),oc(this._cursor.peek()))this._attemptCharCodeUntilFn(Te);else{let r=this._endToken([this._cursor.getChars(e)]);r.type=B.INCOMPLETE_LET;return}let t=this._endToken([this._getLetDeclarationName()]);if(this._attemptCharCodeUntilFn(Te),!this._attemptCharCode(61)){t.type=B.INCOMPLETE_LET;return}this._attemptCharCodeUntilFn(r=>Te(r)&&!uc(r)),this._consumeLetDeclarationValue(),this._cursor.peek()===59?(this._beginToken(B.LET_END),this._endToken([]),this._cursor.advance()):(t.type=B.INCOMPLETE_LET,t.sourceSpan=this._cursor.getSpan(e))}_getLetDeclarationName(){let e=this._cursor.clone(),t=!1;return this._attemptCharCodeUntilFn(r=>Ko(r)||r===36||r===95||t&&ep(r)?(t=!0,!1):!0),this._cursor.getChars(e).trim()}_consumeLetDeclarationValue(){let e=this._cursor.clone();for(this._beginToken(B.LET_VALUE,e);this._cursor.peek()!==0;){let t=this._cursor.peek();if(t===59)break;dh(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(mR(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 hs(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 hs(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 hs(t,e);return this._currentTokenStart=null,this._currentTokenType=null,r}handleError(e){if(e instanceof wy&&(e=this._createError(e.msg,this._cursor.getSpan(e.cursor))),e instanceof hs)this.errors.push(e);else throw e}_attemptCharCode(e){return this._cursor.peek()===e?(this._cursor.advance(),!0):!1}_attemptCharCodeCaseInsensitive(e){return yR(this._cursor.peek(),e)?(this._cursor.advance(),!0):!1}_requireCharCode(e){let t=this._cursor.clone();if(!this._attemptCharCode(e))throw this._createError(Ei(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(B.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(dR),this._cursor.peek()!=59){this._cursor.advance();let s=r?Vd.HEX:Vd.DEC;throw this._createError(lR(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(Q1(this._cursor.getChars(t)),this._cursor.getSpan())}}else{let r=this._cursor.clone();if(this._attemptCharCodeUntilFn(fR),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=Go.hasOwnProperty(n)&&Go[n];if(!i)throw this._createError(Q1(n),this._cursor.getSpan(t));this._endToken([i,`&${n};`])}}}_consumeRawText(e,t){this._beginToken(e?B.ESCAPABLE_RAW_TEXT:B.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(B.ESCAPABLE_RAW_TEXT),this._beginToken(B.ESCAPABLE_RAW_TEXT)):r.push(this._readChar())}this._endToken([this._processCarriageReturns(r.join(""))])}_consumeComment(e){this._beginToken(B.COMMENT_START,e),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("-->")),this._beginToken(B.COMMENT_END),this._requireStr("-->"),this._endToken([])}_consumeBogusComment(e){this._beginToken(B.COMMENT_START,e),this._endToken([]),this._consumeRawText(!1,()=>this._cursor.peek()===62),this._beginToken(B.COMMENT_END),this._cursor.advance(),this._endToken([])}_consumeCdata(e){this._beginToken(B.CDATA_START,e),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("]]>")),this._beginToken(B.CDATA_END),this._requireStr("]]>"),this._endToken([])}_consumeDocType(e){this._beginToken(B.DOC_TYPE_START,e),this._endToken([]),this._consumeRawText(!1,()=>this._cursor.peek()===62),this._beginToken(B.DOC_TYPE_END),this._cursor.advance(),this._endToken([])}_consumePrefixAndName(e){let t=this._cursor.clone(),r="";for(;this._cursor.peek()!==58&&!hR(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&&el(this._cursor.peek()))i=this._consumeComponentOpenStart(e),[n,r,t]=i.parts,r&&(n+=`:${r}`),t&&(n+=`:${t}`),this._attemptCharCodeUntilFn(Te);else{if(!Ko(this._cursor.peek()))throw this._createError(Ei(this._cursor.peek()),this._cursor.getSpan(e));i=this._consumeTagOpenStart(e),r=i.parts[0],t=n=i.parts[1],this._attemptCharCodeUntilFn(Te)}for(;!tD(this._cursor.peek());)if(this._selectorlessEnabled&&this._cursor.peek()===64){let o=this._cursor.clone(),u=o.clone();u.advance(),el(u.peek())&&this._consumeDirective(o,u)}else{let o=this._consumeAttribute();s.push(o)}i.type===B.COMPONENT_OPEN_START?this._consumeComponentOpenEnd():this._consumeTagOpenEnd()}catch(o){if(o instanceof hs){i?i.type=i.type===B.COMPONENT_OPEN_START?B.INCOMPLETE_COMPONENT_OPEN:B.INCOMPLETE_TAG_OPEN:(this._beginToken(B.TEXT,e),this._endToken(["<"]));return}throw o}if(this._canSelfClose&&this.tokens[this.tokens.length-1].type===B.TAG_OPEN_END_VOID)return;let a=this._getTagContentType(t,r,this._fullNameStack.length>0,s);this._handleFullNameStackForTagOpen(r,t),a===Qr.RAW_TEXT?this._consumeRawTextWithTagClose(r,i,n,!1):a===Qr.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(Te),!this._attemptStrCaseInsensitive(e&&t.type!==B.COMPONENT_OPEN_START?`${e}:${r}`:r))?!1:(this._attemptCharCodeUntilFn(Te),this._attemptCharCode(62))),this._beginToken(t.type===B.COMPONENT_OPEN_START?B.COMPONENT_CLOSE:B.TAG_CLOSE),this._requireCharCodeUntilFn(i=>i===62,3),this._cursor.advance(),this._endToken(t.parts),this._handleFullNameStackForTagClose(e,r)}_consumeTagOpenStart(e){this._beginToken(B.TAG_OPEN_START,e);let t=this._consumePrefixAndName(xi);return this._endToken(t)}_consumeComponentOpenStart(e){this._beginToken(B.COMPONENT_OPEN_START,e);let t=this._consumeComponentName();return this._endToken(t)}_consumeComponentName(){let e=this._cursor.clone();for(;eD(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(xi)),[t,r,n]}_consumeAttribute(){let[e,t]=this._consumeAttributeName(),r;return this._attemptCharCodeUntilFn(Te),this._attemptCharCode(61)&&(this._attemptCharCodeUntilFn(Te),r=this._consumeAttributeValue()),this._attemptCharCodeUntilFn(Te),{prefix:e,name:t,value:r}}_consumeAttributeName(){let e=this._cursor.peek();if(e===39||e===34)throw this._createError(Ei(e),this._cursor.getSpan());this._beginToken(B.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 xi(i)}}else if(e===91){let n=0;t=i=>(i===91?n++:i===93&&n--,n<=0?xi(i):uc(i))}else t=xi;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(B.ATTR_VALUE_TEXT,B.ATTR_VALUE_INTERPOLATION,r,r),this._consumeQuote(t)}else{let t=()=>xi(this._cursor.peek());e=this._consumeWithInterpolation(B.ATTR_VALUE_TEXT,B.ATTR_VALUE_INTERPOLATION,t,t)}return e}_consumeQuote(e){this._beginToken(B.ATTR_QUOTE),this._requireCharCode(e),this._endToken([String.fromCodePoint(e)])}_consumeTagOpenEnd(){let e=this._attemptCharCode(47)?B.TAG_OPEN_END_VOID:B.TAG_OPEN_END;this._beginToken(e),this._requireCharCode(62),this._endToken([])}_consumeComponentOpenEnd(){let e=this._attemptCharCode(47)?B.COMPONENT_OPEN_END_VOID:B.COMPONENT_OPEN_END;this._beginToken(e),this._requireCharCode(62),this._endToken([])}_consumeTagClose(e){if(this._selectorlessEnabled){let t=e.clone();for(;t.peek()!==62&&!el(t.peek());)t.advance();if(el(t.peek())){this._beginToken(B.COMPONENT_CLOSE,e);let r=this._consumeComponentName();this._attemptCharCodeUntilFn(Te),this._requireCharCode(62),this._endToken(r);return}}if(this._beginToken(B.TAG_CLOSE,e),this._attemptCharCodeUntilFn(Te),this._allowHtmComponentClosingTags&&this._attemptCharCode(47))this._attemptCharCodeUntilFn(Te),this._requireCharCode(62),this._endToken([]);else{let[t,r]=this._consumePrefixAndName(xi);this._attemptCharCodeUntilFn(Te),this._requireCharCode(62),this._endToken([t,r]),this._handleFullNameStackForTagClose(t,r)}}_consumeExpansionFormStart(){this._beginToken(B.EXPANSION_FORM_START),this._requireCharCode(123),this._endToken([]),this._expansionCaseStack.push(B.EXPANSION_FORM_START),this._beginToken(B.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(Te),this._beginToken(B.RAW_TEXT);let r=this._readUntil(44);this._endToken([r]),this._requireCharCode(44),this._attemptCharCodeUntilFn(Te)}_consumeExpansionCaseStart(){this._beginToken(B.EXPANSION_CASE_VALUE);let e=this._readUntil(123).trim();this._endToken([e]),this._attemptCharCodeUntilFn(Te),this._beginToken(B.EXPANSION_CASE_EXP_START),this._requireCharCode(123),this._endToken([]),this._attemptCharCodeUntilFn(Te),this._expansionCaseStack.push(B.EXPANSION_CASE_EXP_START)}_consumeExpansionCaseEnd(){this._beginToken(B.EXPANSION_CASE_EXP_END),this._requireCharCode(125),this._endToken([]),this._attemptCharCodeUntilFn(Te),this._expansionCaseStack.pop()}_consumeExpansionFormEnd(){this._beginToken(B.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(za.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(za.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(za.end)){n.push(this._getProcessedChars(i,o)),n.push(za.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&&dh(u)&&(s=u)}n.push(this._getProcessedChars(i,this._cursor)),this._endToken(n)}_consumeDirective(e,t){for(this._requireCharCode(64),this._cursor.advance();eD(this._cursor.peek());)this._cursor.advance();this._beginToken(B.DIRECTIVE_NAME,e);let r=this._cursor.getChars(t);if(this._endToken([r]),this._attemptCharCodeUntilFn(Te),this._cursor.peek()===40){for(this._openDirectiveCount++,this._beginToken(B.DIRECTIVE_OPEN),this._cursor.advance(),this._endToken([]),this._attemptCharCodeUntilFn(Te);!tD(this._cursor.peek())&&this._cursor.peek()!==41;)this._consumeAttribute();if(this._attemptCharCodeUntilFn(Te),this._openDirectiveCount--,this._cursor.peek()!==41){if(this._cursor.peek()===62||this._cursor.peek()===47)return;throw this._createError(Ei(this._cursor.peek()),this._cursor.getSpan(e))}this._beginToken(B.DIRECTIVE_CLOSE),this._cursor.advance(),this._endToken([]),this._attemptCharCodeUntilFn(Te)}}_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]===B.EXPANSION_CASE_EXP_START}_isInExpansionForm(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===B.EXPANSION_FORM_START}isExpansionFormStart(){if(this._cursor.peek()!==123)return!1;let e=this._cursor.clone(),t=this._attemptStr(za.start);return this._cursor=e,!t}_handleFullNameStackForTagOpen(e,t){let r=Co(e,t);(this._fullNameStack.length===0||this._fullNameStack[this._fullNameStack.length-1]===r)&&this._fullNameStack.push(r)}_handleFullNameStackForTagClose(e,t){let r=Co(e,t);this._fullNameStack.length!==0&&this._fullNameStack[this._fullNameStack.length-1]===r&&this._fullNameStack.pop()}};function Te(e){return!oc(e)||e===0}function xi(e){return oc(e)||e===62||e===60||e===47||e===39||e===34||e===61||e===0}function hR(e){return(e<97||12257)}function dR(e){return e===59||e===0||!Kj(e)}function fR(e){return e===59||e===0||!Ko(e)}function mR(e){return e!==125}function yR(e,t){return Y1(e)===Y1(t)}function Y1(e){return e>=97&&e<=122?e-97+65:e}function gR(e){return Ko(e)||ep(e)||e===95}function Z1(e){return e!==59&&Te(e)}function el(e){return e===95||e>=65&&e<=90}function eD(e){return Ko(e)||ep(e)||e===95}function tD(e){return e===47||e===62||e===60||e===0}function DR(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 ue(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 wy('Unexpected character "EOF"',this);let r=this.charAt(t.offset);r===10?(t.line++,t.column=0):uc(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 zd(t.file,t.state.offset,t.state.line,t.state.column)}},ER=class Hd extends NT{constructor(t,r){t instanceof Hd?(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 Hd(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(J1(t())){let r="",n=0,i=this.clone();for(;J1(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 uc(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 wy("Invalid hexadecimal escape sequence",t);return i}},wy=class extends Error{constructor(e,t){super(e),this.msg=e,this.cursor=t,Object.setPrototypeOf(this,new.target.prototype)}},Xe=class BT extends hs{static create(t,r,n){return new BT(t,r,n)}constructor(t,r,n){super(r,n),this.elementName=t}},xR=class{constructor(e,t){this.rootNodes=e,this.errors=t}},CR=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=oR(e,t,i?(d,f,y,E)=>{let g=u(d,f,y,E);return g!==void 0?g:o(d)}:o,r),c=r&&r.canSelfClose||!1,p=r&&r.allowHtmComponentClosingTags||!1,h=new vR(l.tokens,a,c,p,n);return h.build(),new xR(h.rootNodes,[...l.errors,...h.errors])}},vR=class IT{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!==B.EOF;)this._peek.type===B.TAG_OPEN_START||this._peek.type===B.INCOMPLETE_TAG_OPEN?this._consumeElementStartTag(this._advance()):this._peek.type===B.TAG_CLOSE?(this._closeVoidElement(),this._consumeElementEndTag(this._advance())):this._peek.type===B.CDATA_START?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===B.COMMENT_START?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===B.TEXT||this._peek.type===B.RAW_TEXT||this._peek.type===B.ESCAPABLE_RAW_TEXT?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===B.EXPANSION_FORM_START?this._consumeExpansion(this._advance()):this._peek.type===B.BLOCK_OPEN_START?(this._closeVoidElement(),this._consumeBlockOpen(this._advance())):this._peek.type===B.BLOCK_CLOSE?(this._closeVoidElement(),this._consumeBlockClose(this._advance())):this._peek.type===B.INCOMPLETE_BLOCK_OPEN?(this._closeVoidElement(),this._consumeIncompleteBlock(this._advance())):this._peek.type===B.LET_START?(this._closeVoidElement(),this._consumeLet(this._advance())):this._peek.type===B.DOC_TYPE_START?this._consumeDocType(this._advance()):this._peek.type===B.INCOMPLETE_LET?(this._closeVoidElement(),this._consumeIncompleteLet(this._advance())):this._peek.type===B.COMPONENT_OPEN_START||this._peek.type===B.INCOMPLETE_COMPONENT_OPEN?this._consumeComponentStartTag(this._advance()):this._peek.type===B.COMPONENT_CLOSE?this._consumeComponentEndTag(this._advance()):this._advance();for(let t of this._containerStack)t instanceof us&&this.errors.push(Xe.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 ue(t.sourceSpan.start,i.sourceSpan.end,t.sourceSpan.fullStart),o=new ue(r.sourceSpan.start,i.sourceSpan.end,r.sourceSpan.fullStart);return new Zj(t.parts[0],s.rootNodes,a,t.sourceSpan,o)}_collectExpansionExpTokens(t){let r=[],n=[B.EXPANSION_CASE_EXP_START];for(;;){if((this._peek.type===B.EXPANSION_FORM_START||this._peek.type===B.EXPANSION_CASE_EXP_START)&&n.push(this._peek.type),this._peek.type===B.EXPANSION_CASE_EXP_END)if(rD(n,B.EXPANSION_CASE_EXP_START)){if(n.pop(),n.length===0)return r}else return this.errors.push(Xe.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===B.EXPANSION_FORM_END)if(rD(n,B.EXPANSION_FORM_START))n.pop();else return this.errors.push(Xe.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===B.EOF)return this.errors.push(Xe.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}},_T=class{constructor(e,t){this.content=e,this.url=t}},ue=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)}},K1=function(e){return e[e.WARNING=0]="WARNING",e[e.ERROR=1]="ERROR",e}({}),hs=class extends Error{constructor(e,t,r=K1.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}[${K1[this.level]} ->]${e.after}")`:this.msg}toString(){let e=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${e}`}},ns=class{constructor(e,t){this.sourceSpan=e,this.i18n=t}},sR=class extends ns{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)}},aR=class extends ns{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)}},oR=class extends ns{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)}},uR=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)}},lR=class extends ns{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}},Ei=class extends ns{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)}},cR=class{constructor(e,t){this.value=e,this.sourceSpan=t,this.kind="comment"}visit(e,t){return e.visitComment(this,t)}},pR=class{constructor(e,t){this.value=e,this.sourceSpan=t,this.kind="docType"}visit(e,t){return e.visitDocType(this,t)}},us=class extends ns{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)}},Nn=class extends ns{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)}},hR=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)}},G1=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)}},Q1=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 LT(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 dR=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(LT(n,s,e))}return t(i),Array.prototype.concat.apply([],r)}},Go={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:"‌"},fR="";Go.ngsp=fR;var I=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}({}),mR=class{constructor(e,t,r){this.tokens=e,this.errors=t,this.nonNormalizedIcuExpressions=r}};function yR(e,t,r,n={}){let i=new xR(new _T(e,t),r,n);return i.tokenize(),new mR(bR(i.tokens),i.errors,i.nonNormalizedIcuExpressions)}var gR=/\r\n?/g;function xi(e){return`Unexpected character "${e===0?"EOF":String.fromCharCode(e)}"`}function Y1(e){return`Unknown entity "${e}" - use the "&#;" or "&#x;" syntax`}function DR(e,t){return`Unable to parse entity "${t}" - ${e} character reference entities must end with ";"`}var Vd=function(e){return e.HEX="hexadecimal",e.DEC="decimal",e}(Vd||{}),ER=["@if","@else","@for","@switch","@case","@default","@empty","@defer","@placeholder","@loading","@error"],za={start:"{{",end:"}}"},xR=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 wR(e,n):new $T(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(gR,` +`)}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(I.TEXT,I.INTERPOLATION,()=>this._isTextEnd(),()=>this._isTagStart())}catch(t){this.handleError(t)}}this._beginToken(I.EOF),this._endToken([])}_getBlockName(){let e=!1,t=this._cursor.clone();return this._attemptCharCodeUntilFn(r=>oc(r)?!e:FR(r)?(e=!0,!1):!0),this._cursor.getChars(t).trim()}_consumeBlockStart(e){this._requireCharCode(64),this._beginToken(I.BLOCK_OPEN_START,e);let t=this._endToken([this._getBlockName()]);if(this._cursor.peek()===40)if(this._cursor.advance(),this._consumeBlockParameters(),this._attemptCharCodeUntilFn(Te),this._attemptCharCode(41))this._attemptCharCodeUntilFn(Te);else{t.type=I.INCOMPLETE_BLOCK_OPEN;return}this._attemptCharCode(123)?(this._beginToken(I.BLOCK_OPEN_END),this._endToken([])):this._isBlockStart()&&(t.parts[0]==="case"||t.parts[0]==="default")?(this._beginToken(I.BLOCK_OPEN_END),this._endToken([]),this._beginToken(I.BLOCK_CLOSE),this._endToken([])):t.type=I.INCOMPLETE_BLOCK_OPEN}_consumeBlockEnd(e){this._beginToken(I.BLOCK_CLOSE,e),this._endToken([])}_consumeBlockParameters(){for(this._attemptCharCodeUntilFn(eD);this._cursor.peek()!==41&&this._cursor.peek()!==0;){this._beginToken(I.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&&dh(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(I.LET_START,e),oc(this._cursor.peek()))this._attemptCharCodeUntilFn(Te);else{let r=this._endToken([this._cursor.getChars(e)]);r.type=I.INCOMPLETE_LET;return}let t=this._endToken([this._getLetDeclarationName()]);if(this._attemptCharCodeUntilFn(Te),!this._attemptCharCode(61)){t.type=I.INCOMPLETE_LET;return}this._attemptCharCodeUntilFn(r=>Te(r)&&!uc(r)),this._consumeLetDeclarationValue(),this._cursor.peek()===59?(this._beginToken(I.LET_END),this._endToken([]),this._cursor.advance()):(t.type=I.INCOMPLETE_LET,t.sourceSpan=this._cursor.getSpan(e))}_getLetDeclarationName(){let e=this._cursor.clone(),t=!1;return this._attemptCharCodeUntilFn(r=>Ko(r)||r===36||r===95||t&&ep(r)?(t=!0,!1):!0),this._cursor.getChars(e).trim()}_consumeLetDeclarationValue(){let e=this._cursor.clone();for(this._beginToken(I.LET_VALUE,e);this._cursor.peek()!==0;){let t=this._cursor.peek();if(t===59)break;dh(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(TR(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 hs(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 hs(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 hs(t,e);return this._currentTokenStart=null,this._currentTokenType=null,r}handleError(e){if(e instanceof wy&&(e=this._createError(e.msg,this._cursor.getSpan(e.cursor))),e instanceof hs)this.errors.push(e);else throw e}_attemptCharCode(e){return this._cursor.peek()===e?(this._cursor.advance(),!0):!1}_attemptCharCodeCaseInsensitive(e){return SR(this._cursor.peek(),e)?(this._cursor.advance(),!0):!1}_requireCharCode(e){let t=this._cursor.clone();if(!this._attemptCharCode(e))throw this._createError(xi(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(I.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(vR),this._cursor.peek()!=59){this._cursor.advance();let s=r?Vd.HEX:Vd.DEC;throw this._createError(DR(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(Y1(this._cursor.getChars(t)),this._cursor.getSpan())}}else{let r=this._cursor.clone();if(this._attemptCharCodeUntilFn(AR),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=Go.hasOwnProperty(n)&&Go[n];if(!i)throw this._createError(Y1(n),this._cursor.getSpan(t));this._endToken([i,`&${n};`])}}}_consumeRawText(e,t){this._beginToken(e?I.ESCAPABLE_RAW_TEXT:I.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(I.ESCAPABLE_RAW_TEXT),this._beginToken(I.ESCAPABLE_RAW_TEXT)):r.push(this._readChar())}this._endToken([this._processCarriageReturns(r.join(""))])}_consumeComment(e){this._beginToken(I.COMMENT_START,e),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("-->")),this._beginToken(I.COMMENT_END),this._requireStr("-->"),this._endToken([])}_consumeBogusComment(e){this._beginToken(I.COMMENT_START,e),this._endToken([]),this._consumeRawText(!1,()=>this._cursor.peek()===62),this._beginToken(I.COMMENT_END),this._cursor.advance(),this._endToken([])}_consumeCdata(e){this._beginToken(I.CDATA_START,e),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("]]>")),this._beginToken(I.CDATA_END),this._requireStr("]]>"),this._endToken([])}_consumeDocType(e){this._beginToken(I.DOC_TYPE_START,e),this._endToken([]),this._consumeRawText(!1,()=>this._cursor.peek()===62),this._beginToken(I.DOC_TYPE_END),this._cursor.advance(),this._endToken([])}_consumePrefixAndName(e){let t=this._cursor.clone(),r="";for(;this._cursor.peek()!==58&&!CR(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&&el(this._cursor.peek()))i=this._consumeComponentOpenStart(e),[n,r,t]=i.parts,r&&(n+=`:${r}`),t&&(n+=`:${t}`),this._attemptCharCodeUntilFn(Te);else{if(!Ko(this._cursor.peek()))throw this._createError(xi(this._cursor.peek()),this._cursor.getSpan(e));i=this._consumeTagOpenStart(e),r=i.parts[0],t=n=i.parts[1],this._attemptCharCodeUntilFn(Te)}for(;!rD(this._cursor.peek());)if(this._selectorlessEnabled&&this._cursor.peek()===64){let o=this._cursor.clone(),u=o.clone();u.advance(),el(u.peek())&&this._consumeDirective(o,u)}else{let o=this._consumeAttribute();s.push(o)}i.type===I.COMPONENT_OPEN_START?this._consumeComponentOpenEnd():this._consumeTagOpenEnd()}catch(o){if(o instanceof hs){i?i.type=i.type===I.COMPONENT_OPEN_START?I.INCOMPLETE_COMPONENT_OPEN:I.INCOMPLETE_TAG_OPEN:(this._beginToken(I.TEXT,e),this._endToken(["<"]));return}throw o}if(this._canSelfClose&&this.tokens[this.tokens.length-1].type===I.TAG_OPEN_END_VOID)return;let a=this._getTagContentType(t,r,this._fullNameStack.length>0,s);this._handleFullNameStackForTagOpen(r,t),a===Qr.RAW_TEXT?this._consumeRawTextWithTagClose(r,i,n,!1):a===Qr.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(Te),!this._attemptStrCaseInsensitive(e&&t.type!==I.COMPONENT_OPEN_START?`${e}:${r}`:r))?!1:(this._attemptCharCodeUntilFn(Te),this._attemptCharCode(62))),this._beginToken(t.type===I.COMPONENT_OPEN_START?I.COMPONENT_CLOSE:I.TAG_CLOSE),this._requireCharCodeUntilFn(i=>i===62,3),this._cursor.advance(),this._endToken(t.parts),this._handleFullNameStackForTagClose(e,r)}_consumeTagOpenStart(e){this._beginToken(I.TAG_OPEN_START,e);let t=this._consumePrefixAndName(Ci);return this._endToken(t)}_consumeComponentOpenStart(e){this._beginToken(I.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(Ci)),[t,r,n]}_consumeAttribute(){let[e,t]=this._consumeAttributeName(),r;return this._attemptCharCodeUntilFn(Te),this._attemptCharCode(61)&&(this._attemptCharCodeUntilFn(Te),r=this._consumeAttributeValue()),this._attemptCharCodeUntilFn(Te),{prefix:e,name:t,value:r}}_consumeAttributeName(){let e=this._cursor.peek();if(e===39||e===34)throw this._createError(xi(e),this._cursor.getSpan());this._beginToken(I.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 Ci(i)}}else if(e===91){let n=0;t=i=>(i===91?n++:i===93&&n--,n<=0?Ci(i):uc(i))}else t=Ci;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(I.ATTR_VALUE_TEXT,I.ATTR_VALUE_INTERPOLATION,r,r),this._consumeQuote(t)}else{let t=()=>Ci(this._cursor.peek());e=this._consumeWithInterpolation(I.ATTR_VALUE_TEXT,I.ATTR_VALUE_INTERPOLATION,t,t)}return e}_consumeQuote(e){this._beginToken(I.ATTR_QUOTE),this._requireCharCode(e),this._endToken([String.fromCodePoint(e)])}_consumeTagOpenEnd(){let e=this._attemptCharCode(47)?I.TAG_OPEN_END_VOID:I.TAG_OPEN_END;this._beginToken(e),this._requireCharCode(62),this._endToken([])}_consumeComponentOpenEnd(){let e=this._attemptCharCode(47)?I.COMPONENT_OPEN_END_VOID:I.COMPONENT_OPEN_END;this._beginToken(e),this._requireCharCode(62),this._endToken([])}_consumeTagClose(e){if(this._selectorlessEnabled){let t=e.clone();for(;t.peek()!==62&&!el(t.peek());)t.advance();if(el(t.peek())){this._beginToken(I.COMPONENT_CLOSE,e);let r=this._consumeComponentName();this._attemptCharCodeUntilFn(Te),this._requireCharCode(62),this._endToken(r);return}}if(this._beginToken(I.TAG_CLOSE,e),this._attemptCharCodeUntilFn(Te),this._allowHtmComponentClosingTags&&this._attemptCharCode(47))this._attemptCharCodeUntilFn(Te),this._requireCharCode(62),this._endToken([]);else{let[t,r]=this._consumePrefixAndName(Ci);this._attemptCharCodeUntilFn(Te),this._requireCharCode(62),this._endToken([t,r]),this._handleFullNameStackForTagClose(t,r)}}_consumeExpansionFormStart(){this._beginToken(I.EXPANSION_FORM_START),this._requireCharCode(123),this._endToken([]),this._expansionCaseStack.push(I.EXPANSION_FORM_START),this._beginToken(I.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(Te),this._beginToken(I.RAW_TEXT);let r=this._readUntil(44);this._endToken([r]),this._requireCharCode(44),this._attemptCharCodeUntilFn(Te)}_consumeExpansionCaseStart(){this._beginToken(I.EXPANSION_CASE_VALUE);let e=this._readUntil(123).trim();this._endToken([e]),this._attemptCharCodeUntilFn(Te),this._beginToken(I.EXPANSION_CASE_EXP_START),this._requireCharCode(123),this._endToken([]),this._attemptCharCodeUntilFn(Te),this._expansionCaseStack.push(I.EXPANSION_CASE_EXP_START)}_consumeExpansionCaseEnd(){this._beginToken(I.EXPANSION_CASE_EXP_END),this._requireCharCode(125),this._endToken([]),this._attemptCharCodeUntilFn(Te),this._expansionCaseStack.pop()}_consumeExpansionFormEnd(){this._beginToken(I.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(za.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(za.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(za.end)){n.push(this._getProcessedChars(i,o)),n.push(za.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&&dh(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(I.DIRECTIVE_NAME,e);let r=this._cursor.getChars(t);if(this._endToken([r]),this._attemptCharCodeUntilFn(Te),this._cursor.peek()===40){for(this._openDirectiveCount++,this._beginToken(I.DIRECTIVE_OPEN),this._cursor.advance(),this._endToken([]),this._attemptCharCodeUntilFn(Te);!rD(this._cursor.peek())&&this._cursor.peek()!==41;)this._consumeAttribute();if(this._attemptCharCodeUntilFn(Te),this._openDirectiveCount--,this._cursor.peek()!==41){if(this._cursor.peek()===62||this._cursor.peek()===47)return;throw this._createError(xi(this._cursor.peek()),this._cursor.getSpan(e))}this._beginToken(I.DIRECTIVE_CLOSE),this._cursor.advance(),this._endToken([]),this._attemptCharCodeUntilFn(Te)}}_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]===I.EXPANSION_CASE_EXP_START}_isInExpansionForm(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===I.EXPANSION_FORM_START}isExpansionFormStart(){if(this._cursor.peek()!==123)return!1;let e=this._cursor.clone(),t=this._attemptStr(za.start);return this._cursor=e,!t}_handleFullNameStackForTagOpen(e,t){let r=Co(e,t);(this._fullNameStack.length===0||this._fullNameStack[this._fullNameStack.length-1]===r)&&this._fullNameStack.push(r)}_handleFullNameStackForTagClose(e,t){let r=Co(e,t);this._fullNameStack.length!==0&&this._fullNameStack[this._fullNameStack.length-1]===r&&this._fullNameStack.pop()}};function Te(e){return!oc(e)||e===0}function Ci(e){return oc(e)||e===62||e===60||e===47||e===39||e===34||e===61||e===0}function CR(e){return(e<97||12257)}function vR(e){return e===59||e===0||!iR(e)}function AR(e){return e===59||e===0||!Ko(e)}function TR(e){return e!==125}function SR(e,t){return Z1(e)===Z1(t)}function Z1(e){return e>=97&&e<=122?e-97+65:e}function FR(e){return Ko(e)||ep(e)||e===95}function eD(e){return e!==59&&Te(e)}function el(e){return e===95||e>=65&&e<=90}function tD(e){return Ko(e)||ep(e)||e===95}function rD(e){return e===47||e===62||e===60||e===0}function bR(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 ue(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 wy('Unexpected character "EOF"',this);let r=this.charAt(t.offset);r===10?(t.line++,t.column=0):uc(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 zd(t.file,t.state.offset,t.state.line,t.state.column)}},wR=class Hd extends $T{constructor(t,r){t instanceof Hd?(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 Hd(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(X1(t())){let r="",n=0,i=this.clone();for(;X1(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 uc(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 wy("Invalid hexadecimal escape sequence",t);return i}},wy=class extends Error{constructor(e,t){super(e),this.msg=e,this.cursor=t,Object.setPrototypeOf(this,new.target.prototype)}},Ke=class MT extends hs{static create(t,r,n){return new MT(t,r,n)}constructor(t,r,n){super(r,n),this.elementName=t}},PR=class{constructor(e,t){this.rootNodes=e,this.errors=t}},kR=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=yR(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 NR(l.tokens,a,c,p,n);return h.build(),new PR(h.rootNodes,[...l.errors,...h.errors])}},NR=class OT{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!==I.EOF;)this._peek.type===I.TAG_OPEN_START||this._peek.type===I.INCOMPLETE_TAG_OPEN?this._consumeElementStartTag(this._advance()):this._peek.type===I.TAG_CLOSE?(this._closeVoidElement(),this._consumeElementEndTag(this._advance())):this._peek.type===I.CDATA_START?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===I.COMMENT_START?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===I.TEXT||this._peek.type===I.RAW_TEXT||this._peek.type===I.ESCAPABLE_RAW_TEXT?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===I.EXPANSION_FORM_START?this._consumeExpansion(this._advance()):this._peek.type===I.BLOCK_OPEN_START?(this._closeVoidElement(),this._consumeBlockOpen(this._advance())):this._peek.type===I.BLOCK_CLOSE?(this._closeVoidElement(),this._consumeBlockClose(this._advance())):this._peek.type===I.INCOMPLETE_BLOCK_OPEN?(this._closeVoidElement(),this._consumeIncompleteBlock(this._advance())):this._peek.type===I.LET_START?(this._closeVoidElement(),this._consumeLet(this._advance())):this._peek.type===I.DOC_TYPE_START?this._consumeDocType(this._advance()):this._peek.type===I.INCOMPLETE_LET?(this._closeVoidElement(),this._consumeIncompleteLet(this._advance())):this._peek.type===I.COMPONENT_OPEN_START||this._peek.type===I.INCOMPLETE_COMPONENT_OPEN?this._consumeComponentStartTag(this._advance()):this._peek.type===I.COMPONENT_CLOSE?this._consumeComponentEndTag(this._advance()):this._advance();for(let t of this._containerStack)t instanceof us&&this.errors.push(Ke.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 ue(t.sourceSpan.start,i.sourceSpan.end,t.sourceSpan.fullStart),o=new ue(r.sourceSpan.start,i.sourceSpan.end,r.sourceSpan.fullStart);return new uR(t.parts[0],s.rootNodes,a,t.sourceSpan,o)}_collectExpansionExpTokens(t){let r=[],n=[I.EXPANSION_CASE_EXP_START];for(;;){if((this._peek.type===I.EXPANSION_FORM_START||this._peek.type===I.EXPANSION_CASE_EXP_START)&&n.push(this._peek.type),this._peek.type===I.EXPANSION_CASE_EXP_END)if(nD(n,I.EXPANSION_CASE_EXP_START)){if(n.pop(),n.length===0)return r}else return this.errors.push(Ke.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===I.EXPANSION_FORM_END)if(nD(n,I.EXPANSION_FORM_START))n.pop();else return this.errors.push(Ke.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===I.EOF)return this.errors.push(Ke.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===B.INTERPOLATION||this._peek.type===B.TEXT||this._peek.type===B.ENCODED_ENTITY;)t=this._advance(),r.push(t),t.type===B.INTERPOLATION?i+=t.parts.join("").replace(/&([^;]+);/g,nD):t.type===B.ENCODED_ENTITY?i+=t.parts[0]:i+=t.parts.join("");if(i.length>0){let a=t.sourceSpan;this._addToParent(new Gj(i,new ue(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===B.TAG_OPEN_END_VOID){this._advance(),o=!0;let y=this._getTagDefinition(s);this.canSelfClose||y!=null&&y.canSelfClose||Sl(s)!==null||y!=null&&y.isVoid||this.errors.push(Xe.create(s,t.sourceSpan,`Only void, custom and foreign elements can be self closed "${t.parts[1]}"`))}else this._peek.type===B.TAG_OPEN_END&&(this._advance(),o=!1);let u=this._peek.sourceSpan.fullStart,l=new ue(t.sourceSpan.start,u,t.sourceSpan.fullStart),c=new ue(t.sourceSpan.start,u,t.sourceSpan.fullStart),p=new ue(t.sourceSpan.start.moveBy(1),t.sourceSpan.end),h=new Di(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,Di,l):t.type===B.INCOMPLETE_TAG_OPEN&&(this._popContainer(s,Di,null),this.errors.push(Xe.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===B.COMPONENT_OPEN_END_VOID;this._advance();let c=this._peek.sourceSpan.fullStart,p=new ue(t.sourceSpan.start,c,t.sourceSpan.fullStart),h=new ue(t.sourceSpan.start,c,t.sourceSpan.fullStart),d=new Nn(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,Nn,p):t.type===B.INCOMPLETE_COMPONENT_OPEN&&(this._popContainer(u,Nn,null),this.errors.push(Xe.create(u,p,`Opening tag "${u}" not terminated.`)))}_consumeAttributesAndDirectives(t,r){for(;this._peek.type===B.ATTR_NAME||this._peek.type===B.DIRECTIVE_NAME;)this._peek.type===B.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,Nn,t.sourceSpan)){let n=this._containerStack[this._containerStack.length-1],i;n instanceof Nn&&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(Xe.create(r,t.sourceSpan,s))}}_getTagDefinition(t){return typeof t=="string"?this.tagDefinitionResolver(t):t instanceof Di?this.tagDefinitionResolver(t.name):t instanceof Nn&&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(Xe.create(n,t.sourceSpan,`Void elements do not have end tags "${t.parts[1]}"`));else if(!this._popContainer(n,Di,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(Xe.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 Nn?o.fullName:o.name;if(Sl(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 us||!(!((s=this._getTagDefinition(o))===null||s===void 0)&&s.closedByParent))&&(i=!0)}return!1}_consumeAttr(t){let r=Co(t.parts[0],t.parts[1]),n=t.sourceSpan.end,i;this._peek.type===B.ATTR_QUOTE&&(i=this._advance());let s="",a=[],o,u;if(this._peek.type===B.ATTR_VALUE_TEXT)for(o=this._peek.sourceSpan,u=this._peek.sourceSpan.end;this._peek.type===B.ATTR_VALUE_TEXT||this._peek.type===B.ATTR_VALUE_INTERPOLATION||this._peek.type===B.ENCODED_ENTITY;){let c=this._advance();a.push(c),c.type===B.ATTR_VALUE_INTERPOLATION?s+=c.parts.join("").replace(/&([^;]+);/g,nD):c.type===B.ENCODED_ENTITY?s+=c.parts[0]:s+=c.parts.join(""),u=n=c.sourceSpan.end}this._peek.type===B.ATTR_QUOTE&&(u=n=this._advance().sourceSpan.end);let l=o&&u&&new ue((i==null?void 0:i.sourceSpan.start)??o.start,u,(i==null?void 0:i.sourceSpan.fullStart)??o.fullStart);return new eR(r,s,new ue(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===B.DIRECTIVE_OPEN){for(n=this._peek.sourceSpan.end,this._advance();this._peek.type===B.ATTR_NAME;)r.push(this._consumeAttr(this._advance()));this._peek.type===B.DIRECTIVE_CLOSE?(i=this._peek.sourceSpan,this._advance()):this.errors.push(Xe.create(null,t.sourceSpan,"Unterminated directive definition"))}let s=new ue(t.sourceSpan.start,n,t.sourceSpan.fullStart),a=new ue(s.start,i===null?t.sourceSpan.end:i.end,s.fullStart);return new nR(t.parts[0],r,a,s,i)}_consumeBlockOpen(t){let r=[];for(;this._peek.type===B.BLOCK_PARAMETER;){let o=this._advance();r.push(new K1(o.parts[0],o.sourceSpan))}this._peek.type===B.BLOCK_OPEN_END&&this._advance();let n=this._peek.sourceSpan.fullStart,i=new ue(t.sourceSpan.start,n,t.sourceSpan.fullStart),s=new ue(t.sourceSpan.start,n,t.sourceSpan.fullStart),a=new us(t.parts[0],r,[],i,t.sourceSpan,s);this._pushContainer(a,!1)}_consumeBlockClose(t){this._popContainer(null,us,t.sourceSpan)||this.errors.push(Xe.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===B.BLOCK_PARAMETER;){let o=this._advance();r.push(new K1(o.parts[0],o.sourceSpan))}let n=this._peek.sourceSpan.fullStart,i=new ue(t.sourceSpan.start,n,t.sourceSpan.fullStart),s=new ue(t.sourceSpan.start,n,t.sourceSpan.fullStart),a=new us(t.parts[0],r,[],i,t.sourceSpan,s);this._pushContainer(a,!1),this._popContainer(null,us,null),this.errors.push(Xe.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!==B.LET_VALUE){this.errors.push(Xe.create(t.parts[0],t.sourceSpan,`Invalid @let declaration "${r}". Declaration must have a value.`));return}else n=this._advance();if(this._peek.type!==B.LET_END){this.errors.push(Xe.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 ue(t.sourceSpan.start,s,t.sourceSpan.fullStart),o=t.sourceSpan.toString().lastIndexOf(r),u=new ue(t.sourceSpan.start.moveBy(o),t.sourceSpan.end),l=new G1(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 ue(t.sourceSpan.start.moveBy(i),t.sourceSpan.end),a=new ue(t.sourceSpan.start,t.sourceSpan.start.moveBy(0)),o=new G1(r,"",t.sourceSpan,s,a);this._addToParent(o)}this.errors.push(Xe.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 Di||r instanceof Nn)return r}return null}_addToParent(t){let r=this._getContainer();r===null?this.rootNodes.push(t):r.children.push(t)}_getElementFullName(t,r){return Co(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:Co(n,i||"ng-component")}_getPrefix(t,r){var n;let i,s;if(t.type===B.COMPONENT_OPEN_START||t.type===B.INCOMPLETE_COMPONENT_OPEN||t.type===B.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 Di?r.name:r.tagName;if(a!==null){let o=Zc(a)[1],u=this._getTagDefinition(o);u!==null&&!u.preventNamespaceInheritance&&(i=Sl(a))}}return i}};function rD(e,t){return e.length>0&&e[e.length-1]===t}function nD(e,t){return Go[t]!==void 0?Go[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 AR=class extends CR{constructor(){super(Ud)}parse(e,t,r,n=!1,i){return super.parse(e,t,r,n,i)}},fh=null,TR=()=>(fh||(fh=new AR),fh);function Wd(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 TR().parse(e,"angular-html-parser",{tokenizeExpansionForms:a,canSelfClose:r,allowHtmComponentClosingTags:n,tokenizeBlocks:a,tokenizeLet:o,selectorlessEnabled:u},i,s)}var SR=[bR,wR,kR,BR,IR,$R,_R,LR,OR,NR];function FR(e,t){for(let r of SR)r(e,t);return e}function bR(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 wR(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 NR(e){let t=r=>{var n,i;return r.kind==="element"&&r.attrs.length===0&&r.children.length===1&&r.firstChild.kind==="text"&&!or.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 ue(s.sourceSpan.start,a.sourceSpan.end),s.isTrailingSpaceSensitive=a.isTrailingSpaceSensitive,s.hasTrailingSpaces=a.hasTrailingSpaces,r.removeChild(i),n--,r.removeChild(a)}})}function BR(e,t){if(t.parser==="html")return;let r=/\{\{(.+?)\}\}/su;e.walk(n=>{if(ZO(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 ue(s,a)});continue}a=s.moveBy(l.length+4),n.insertChildBefore(i,{kind:"interpolation",sourceSpan:new ue(s,a),children:l.length===0?[]:[{kind:"text",value:l,sourceSpan:new ue(s.moveBy(2),a.moveBy(-2))}]})}n.removeChild(i)}})}function IR(e,t){e.walk(r=>{let n=r.$children;if(!n)return;if(n.length===0||n.length===1&&n[0].kind==="text"&&or.trim(n[0].value).length===0){r.hasDanglingSpaces=n.length>0,r.$children=[];return}let i=eM(r,t),s=uT(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 LR(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 $R(e,t){e.walk(r=>{r.cssDisplay=yM(r,t)})}function OR(e,t){e.walk(r=>{let{children:n}=r;if(n){if(n.length===0){r.isDanglingSpaceSensitive=nM(r,t);return}for(let i of n)i.isLeadingSpaceSensitive=tM(i,t),i.isTrailingSpaceSensitive=rM(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."}},sD="HTML",zR={bracketSameLine:iD.bracketSameLine,htmlWhitespaceSensitivity:{category:sD,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:iD.singleAttributePerLine,vueIndentScriptAndStyle:{category:sD,type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}},LT=zR,Py={};UA(Py,{angular:()=>yU,html:()=>dU,lwc:()=>DU,mjml:()=>mU,vue:()=>gU});function VR(e,t){let r=new SyntaxError(e+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(r,t)}var qR=VR,HR={canSelfClose:!0,normalizeTagName:!1,normalizeAttributeName:!1,allowHtmComponentClosingTags:!1,isTagNameCaseSensitive:!1,shouldParseFrontMatter:!0};function $T(e){return{...HR,...e}}function OT(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)?Qr.RAW_TEXT:void 0:void 0,tokenizeAngularBlocks:s,tokenizeAngularLetDeclaration:a}}var mh=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"])]]),WR=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"]),tl={attrs:!0,children:!0,cases:!0,expression:!0},aD=new Set(["parent"]),ds,Jd,Xd,JR=class Qa{constructor(t={}){K$(this,ds),B1(this,"kind"),B1(this,"parent");for(let r of new Set([...aD,...Object.keys(t)]))this.setProperty(r,t[r]);if(Jc(t))for(let r of Object.getOwnPropertySymbols(t))this.setProperty(r,t[r])}setProperty(t,r){if(this[t]!==r){if(t in tl&&(r=r.map(n=>this.createChild(n))),!aD.has(t)){this[t]=r;return}Object.defineProperty(this,t,{value:r,enumerable:!1,configurable:!0})}}map(t){let r;for(let n in tl){let i=this[n];if(i){let s=KR(i,a=>a.map(t));r!==i&&(r||(r=new Qa({parent:this.parent})),r.setProperty(n,s))}}if(r)for(let n in this)n in tl||(r[n]=this[n]);return t(r||this)}walk(t){for(let r in tl){let n=this[r];if(n)for(let i=0;i[t.fullName,t.value]))}};ds=new WeakSet,Jd=function(){return this.kind==="angularIcuCase"?"expression":this.kind==="angularIcuExpression"?"cases":"children"},Xd=function(){var e;return((e=this.parent)==null?void 0:e.$children)??[]};var XR=JR;function KR(e,t){let r=e.map(t);return r.some((n,i)=>n!==e[i])?r:e}var GR=[{regex:/^(?\[if(?[^\]]*)\]>)(?.*?)[^\]]*)\]>{try{return[!0,r(s,o).children]}catch{return[!1,[{kind:"text",value:s,sourceSpan:new ue(o,u)}]]}})();return{kind:"ieConditionalComment",complete:l,children:c,condition:Et(0,i.trim(),/\s+/gu," "),sourceSpan:e.sourceSpan,startSourceSpan:new ue(e.sourceSpan.start,o),endSourceSpan:new ue(u,e.sourceSpan.end)}}function ZR(e,t){let{condition:r}=t.groups;return{kind:"ieConditionalStartComment",condition:Et(0,r.trim(),/\s+/gu," "),sourceSpan:e.sourceSpan}}function eU(e){return{kind:"ieConditionalEndComment",sourceSpan:e.sourceSpan}}var tU=class extends iR{visitExpansionCase(e,t){t.parseOptions.name==="angular"&&this.visitChildren(t,r=>{r(e.expression)})}visit(e,{parseOptions:t}){aU(e),oU(e,t),lU(e,t),uU(e)}};function rU(e,t,r,n){kT(new tU,e.children,{parseOptions:r}),t&&e.children.unshift(t);let i=new XR(e);return i.walk(s=>{if(s.kind==="comment"){let a=QR(s,n);a&&s.parent.replaceChild(s,a)}nU(s),iU(s),sU(s)}),i}function nU(e){if(e.kind==="block"){if(e.name=Et(0,e.name.toLowerCase(),/\s+/gu," ").trim(),e.kind="angularControlFlowBlock",!xy(e.parameters)){delete e.parameters;return}for(let t of e.parameters)t.kind="angularControlFlowBlockParameter";e.parameters={kind:"angularControlFlowBlockParameters",children:e.parameters,sourceSpan:new ue(e.parameters[0].sourceSpan.start,ma(0,e.parameters,-1).sourceSpan.end)}}}function iU(e){e.kind==="letDeclaration"&&(e.kind="angularLetDeclaration",e.id=e.name,e.init={kind:"angularLetDeclarationInitializer",sourceSpan:new ue(e.valueSpan.start,e.valueSpan.end),value:e.value},delete e.name,delete e.value)}function sU(e){e.kind==="expansion"&&(e.kind="angularIcuExpression"),e.kind==="expansionCase"&&(e.kind="angularIcuCase")}function oD(e,t){let r=e.toLowerCase();return t(r)?r:e}function uD(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 aU(e){switch(e.kind){case"element":uD(e);for(let t of e.attrs)uD(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 oU(e,t){if(e.kind==="element"){let r=Ud(t.isTagNameCaseSensitive?e.name:e.name.toLowerCase());!e.namespace||e.namespace===r.implicitNamespacePrefix||yu(e)?e.tagDefinition=r:e.tagDefinition=Ud("")}}function uU(e){e.sourceSpan&&e.endSourceSpan&&(e.sourceSpan=new ue(e.sourceSpan.start,e.endSourceSpan.end))}function lU(e,t){if(e.kind==="element"&&(t.normalizeTagName&&(!e.namespace||e.namespace===e.tagDefinition.implicitNamespacePrefix||yu(e))&&(e.name=oD(e.name,r=>WR.has(r))),t.normalizeAttributeName))for(let r of e.attrs)r.namespace||(r.name=oD(r.name,n=>mh.has(e.name)&&(mh.get("*").has(n)||mh.get(e.name).has(n))))}function MT(e,t){let{rootNodes:r,errors:n}=Wd(e,OT(t));return n.length>0&&Kd(n[0]),{parseOptions:t,rootNodes:r}}function cU(e,t){let r=OT(t),{rootNodes:n,errors:i}=Wd(e,r);if(n.some(u=>u.kind==="docType"&&u.value==="html"||u.kind==="element"&&u.name.toLowerCase()==="html"))return MT(e,ky);let s,a=()=>s??(s=Wd(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(pU(l)){let{endSourceSpan:c,startSourceSpan:p}=l,h=a().errors.find(d=>d.span.start.offset>p.start.offset&&d.span.start.offset0&&Kd(i[0]),{parseOptions:t,rootNodes:n}}function pU(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 Kd(e){let{msg:t,span:{start:r,end:n}}=e;throw qR(t,{loc:{start:{line:r.line+1,column:r.col+1},end:{line:n.line+1,column:n.col+1}},cause:e})}function hU(e,t,r,n,i,s){let{offset:a}=n,o=Et(0,t.slice(0,a),/[^\n]/gu," ")+r,u=jT(o,e,{...i,shouldParseFrontMatter:!1},s);u.sourceSpan=new ue(n,ma(0,u.children,-1).sourceSpan.end);let l=u.children[0];return l.length===a?u.children.shift():(l.sourceSpan=new ue(l.sourceSpan.start.moveBy(a),l.sourceSpan.end),l.value=l.value.slice(a)),u}function jT(e,t,r,n={}){let{frontMatter:i,content:s}=r.shouldParseFrontMatter?WO(e):{content:e},a=new PT(e,n.filepath),o=new zd(a,0,0,0),u=o.moveBy(e.length),{parseOptions:l,rootNodes:c}=t(s,r),p={kind:"root",sourceSpan:new ue(o,u),children:c},h;if(i){let[d,f]=[i.start,i.end].map(y=>new zd(a,y.index,y.line-1,y.column));h={...i,kind:"frontMatter",sourceSpan:new ue(d,f)}}return rU(p,h,l,(d,f)=>hU(t,e,d,f,l,n))}var ky=$T({name:"html",normalizeTagName:!0,normalizeAttributeName:!0,allowHtmComponentClosingTags:!0});function Cu(e){let t=$T(e),r=t.name==="vue"?cU:MT;return{parse:(n,i)=>jT(n,r,t,i),hasPragma:Fj,hasIgnorePragma:bj,astFormat:"html",locStart:Du,locEnd:Gc}}var dU=Cu(ky),fU=new Set(["mj-style","mj-raw"]),mU=Cu({...ky,name:"mjml",shouldParseAsRawText:e=>fU.has(e)}),yU=Cu({name:"angular",tokenizeAngularBlocks:!0,tokenizeAngularLetDeclaration:!0}),gU=Cu({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))}}),DU=Cu({name:"lwc",canSelfClose:!1}),RT={html:UR};const EU=Object.freeze(Object.defineProperty({__proto__:null,default:zA,languages:_T,options:LT,parsers:Py,printers:RT},Symbol.toStringTag,{value:"Module"}));function xU(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 sR(i,new ue(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===I.TAG_OPEN_END_VOID){this._advance(),o=!0;let y=this._getTagDefinition(s);this.canSelfClose||y!=null&&y.canSelfClose||Sl(s)!==null||y!=null&&y.isVoid||this.errors.push(Ke.create(s,t.sourceSpan,`Only void, custom and foreign elements can be self closed "${t.parts[1]}"`))}else this._peek.type===I.TAG_OPEN_END&&(this._advance(),o=!1);let u=this._peek.sourceSpan.fullStart,l=new ue(t.sourceSpan.start,u,t.sourceSpan.fullStart),c=new ue(t.sourceSpan.start,u,t.sourceSpan.fullStart),p=new ue(t.sourceSpan.start.moveBy(1),t.sourceSpan.end),h=new Ei(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,Ei,l):t.type===I.INCOMPLETE_TAG_OPEN&&(this._popContainer(s,Ei,null),this.errors.push(Ke.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===I.COMPONENT_OPEN_END_VOID;this._advance();let c=this._peek.sourceSpan.fullStart,p=new ue(t.sourceSpan.start,c,t.sourceSpan.fullStart),h=new ue(t.sourceSpan.start,c,t.sourceSpan.fullStart),d=new Nn(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,Nn,p):t.type===I.INCOMPLETE_COMPONENT_OPEN&&(this._popContainer(u,Nn,null),this.errors.push(Ke.create(u,p,`Opening tag "${u}" not terminated.`)))}_consumeAttributesAndDirectives(t,r){for(;this._peek.type===I.ATTR_NAME||this._peek.type===I.DIRECTIVE_NAME;)this._peek.type===I.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,Nn,t.sourceSpan)){let n=this._containerStack[this._containerStack.length-1],i;n instanceof Nn&&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(Ke.create(r,t.sourceSpan,s))}}_getTagDefinition(t){return typeof t=="string"?this.tagDefinitionResolver(t):t instanceof Ei?this.tagDefinitionResolver(t.name):t instanceof Nn&&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(Ke.create(n,t.sourceSpan,`Void elements do not have end tags "${t.parts[1]}"`));else if(!this._popContainer(n,Ei,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(Ke.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 Nn?o.fullName:o.name;if(Sl(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 us||!(!((s=this._getTagDefinition(o))===null||s===void 0)&&s.closedByParent))&&(i=!0)}return!1}_consumeAttr(t){let r=Co(t.parts[0],t.parts[1]),n=t.sourceSpan.end,i;this._peek.type===I.ATTR_QUOTE&&(i=this._advance());let s="",a=[],o,u;if(this._peek.type===I.ATTR_VALUE_TEXT)for(o=this._peek.sourceSpan,u=this._peek.sourceSpan.end;this._peek.type===I.ATTR_VALUE_TEXT||this._peek.type===I.ATTR_VALUE_INTERPOLATION||this._peek.type===I.ENCODED_ENTITY;){let c=this._advance();a.push(c),c.type===I.ATTR_VALUE_INTERPOLATION?s+=c.parts.join("").replace(/&([^;]+);/g,iD):c.type===I.ENCODED_ENTITY?s+=c.parts[0]:s+=c.parts.join(""),u=n=c.sourceSpan.end}this._peek.type===I.ATTR_QUOTE&&(u=n=this._advance().sourceSpan.end);let l=o&&u&&new ue((i==null?void 0:i.sourceSpan.start)??o.start,u,(i==null?void 0:i.sourceSpan.fullStart)??o.fullStart);return new lR(r,s,new ue(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===I.DIRECTIVE_OPEN){for(n=this._peek.sourceSpan.end,this._advance();this._peek.type===I.ATTR_NAME;)r.push(this._consumeAttr(this._advance()));this._peek.type===I.DIRECTIVE_CLOSE?(i=this._peek.sourceSpan,this._advance()):this.errors.push(Ke.create(null,t.sourceSpan,"Unterminated directive definition"))}let s=new ue(t.sourceSpan.start,n,t.sourceSpan.fullStart),a=new ue(s.start,i===null?t.sourceSpan.end:i.end,s.fullStart);return new hR(t.parts[0],r,a,s,i)}_consumeBlockOpen(t){let r=[];for(;this._peek.type===I.BLOCK_PARAMETER;){let o=this._advance();r.push(new G1(o.parts[0],o.sourceSpan))}this._peek.type===I.BLOCK_OPEN_END&&this._advance();let n=this._peek.sourceSpan.fullStart,i=new ue(t.sourceSpan.start,n,t.sourceSpan.fullStart),s=new ue(t.sourceSpan.start,n,t.sourceSpan.fullStart),a=new us(t.parts[0],r,[],i,t.sourceSpan,s);this._pushContainer(a,!1)}_consumeBlockClose(t){this._popContainer(null,us,t.sourceSpan)||this.errors.push(Ke.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===I.BLOCK_PARAMETER;){let o=this._advance();r.push(new G1(o.parts[0],o.sourceSpan))}let n=this._peek.sourceSpan.fullStart,i=new ue(t.sourceSpan.start,n,t.sourceSpan.fullStart),s=new ue(t.sourceSpan.start,n,t.sourceSpan.fullStart),a=new us(t.parts[0],r,[],i,t.sourceSpan,s);this._pushContainer(a,!1),this._popContainer(null,us,null),this.errors.push(Ke.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!==I.LET_VALUE){this.errors.push(Ke.create(t.parts[0],t.sourceSpan,`Invalid @let declaration "${r}". Declaration must have a value.`));return}else n=this._advance();if(this._peek.type!==I.LET_END){this.errors.push(Ke.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 ue(t.sourceSpan.start,s,t.sourceSpan.fullStart),o=t.sourceSpan.toString().lastIndexOf(r),u=new ue(t.sourceSpan.start.moveBy(o),t.sourceSpan.end),l=new Q1(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 ue(t.sourceSpan.start.moveBy(i),t.sourceSpan.end),a=new ue(t.sourceSpan.start,t.sourceSpan.start.moveBy(0)),o=new Q1(r,"",t.sourceSpan,s,a);this._addToParent(o)}this.errors.push(Ke.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 Ei||r instanceof Nn)return r}return null}_addToParent(t){let r=this._getContainer();r===null?this.rootNodes.push(t):r.children.push(t)}_getElementFullName(t,r){return Co(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:Co(n,i||"ng-component")}_getPrefix(t,r){var n;let i,s;if(t.type===I.COMPONENT_OPEN_START||t.type===I.INCOMPLETE_COMPONENT_OPEN||t.type===I.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 Ei?r.name:r.tagName;if(a!==null){let o=Zc(a)[1],u=this._getTagDefinition(o);u!==null&&!u.preventNamespaceInheritance&&(i=Sl(a))}}return i}};function nD(e,t){return e.length>0&&e[e.length-1]===t}function iD(e,t){return Go[t]!==void 0?Go[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 BR=class extends kR{constructor(){super(Ud)}parse(e,t,r,n=!1,i){return super.parse(e,t,r,n,i)}},fh=null,IR=()=>(fh||(fh=new BR),fh);function Wd(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 IR().parse(e,"angular-html-parser",{tokenizeExpansionForms:a,canSelfClose:r,allowHtmComponentClosingTags:n,tokenizeBlocks:a,tokenizeLet:o,selectorlessEnabled:u},i,s)}var _R=[$R,MR,jR,UR,zR,HR,VR,qR,WR,RR];function LR(e,t){for(let r of _R)r(e,t);return e}function $R(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 MR(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 RR(e){let t=r=>{var n,i;return r.kind==="element"&&r.attrs.length===0&&r.children.length===1&&r.firstChild.kind==="text"&&!or.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 ue(s.sourceSpan.start,a.sourceSpan.end),s.isTrailingSpaceSensitive=a.isTrailingSpaceSensitive,s.hasTrailingSpaces=a.hasTrailingSpaces,r.removeChild(i),n--,r.removeChild(a)}})}function UR(e,t){if(t.parser==="html")return;let r=/\{\{(.+?)\}\}/su;e.walk(n=>{if(uO(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 ue(s,a)});continue}a=s.moveBy(l.length+4),n.insertChildBefore(i,{kind:"interpolation",sourceSpan:new ue(s,a),children:l.length===0?[]:[{kind:"text",value:l,sourceSpan:new ue(s.moveBy(2),a.moveBy(-2))}]})}n.removeChild(i)}})}function zR(e,t){e.walk(r=>{let n=r.$children;if(!n)return;if(n.length===0||n.length===1&&n[0].kind==="text"&&or.trim(n[0].value).length===0){r.hasDanglingSpaces=n.length>0,r.$children=[];return}let i=lO(r,t),s=dT(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 qR(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 HR(e,t){e.walk(r=>{r.cssDisplay=SO(r,t)})}function WR(e,t){e.walk(r=>{let{children:n}=r;if(n){if(n.length===0){r.isDanglingSpaceSensitive=hO(r,t);return}for(let i of n)i.isLeadingSpaceSensitive=cO(i,t),i.isTrailingSpaceSensitive=pO(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",QR={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."}},RT=QR,Py={};WA(Py,{angular:()=>SU,html:()=>vU,lwc:()=>bU,mjml:()=>TU,vue:()=>FU});function YR(e,t){let r=new SyntaxError(e+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(r,t)}var ZR=YR,eU={canSelfClose:!0,normalizeTagName:!1,normalizeAttributeName:!1,allowHtmComponentClosingTags:!1,isTagNameCaseSensitive:!1,shouldParseFrontMatter:!0};function UT(e){return{...eU,...e}}function zT(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)?Qr.RAW_TEXT:void 0:void 0,tokenizeAngularBlocks:s,tokenizeAngularLetDeclaration:a}}var mh=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"])]]),tU=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"]),tl={attrs:!0,children:!0,cases:!0,expression:!0},oD=new Set(["parent"]),ds,Jd,Xd,rU=class Qa{constructor(t={}){iM(this,ds),I1(this,"kind"),I1(this,"parent");for(let r of new Set([...oD,...Object.keys(t)]))this.setProperty(r,t[r]);if(Jc(t))for(let r of Object.getOwnPropertySymbols(t))this.setProperty(r,t[r])}setProperty(t,r){if(this[t]!==r){if(t in tl&&(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 tl){let i=this[n];if(i){let s=iU(i,a=>a.map(t));r!==i&&(r||(r=new Qa({parent:this.parent})),r.setProperty(n,s))}}if(r)for(let n in this)n in tl||(r[n]=this[n]);return t(r||this)}walk(t){for(let r in tl){let n=this[r];if(n)for(let i=0;i[t.fullName,t.value]))}};ds=new WeakSet,Jd=function(){return this.kind==="angularIcuCase"?"expression":this.kind==="angularIcuExpression"?"cases":"children"},Xd=function(){var e;return((e=this.parent)==null?void 0:e.$children)??[]};var nU=rU;function iU(e,t){let r=e.map(t);return r.some((n,i)=>n!==e[i])?r:e}var sU=[{regex:/^(?\[if(?[^\]]*)\]>)(?.*?)[^\]]*)\]>{try{return[!0,r(s,o).children]}catch{return[!1,[{kind:"text",value:s,sourceSpan:new ue(o,u)}]]}})();return{kind:"ieConditionalComment",complete:l,children:c,condition:xt(0,i.trim(),/\s+/gu," "),sourceSpan:e.sourceSpan,startSourceSpan:new ue(e.sourceSpan.start,o),endSourceSpan:new ue(u,e.sourceSpan.end)}}function uU(e,t){let{condition:r}=t.groups;return{kind:"ieConditionalStartComment",condition:xt(0,r.trim(),/\s+/gu," "),sourceSpan:e.sourceSpan}}function lU(e){return{kind:"ieConditionalEndComment",sourceSpan:e.sourceSpan}}var cU=class extends dR{visitExpansionCase(e,t){t.parseOptions.name==="angular"&&this.visitChildren(t,r=>{r(e.expression)})}visit(e,{parseOptions:t}){mU(e),yU(e,t),DU(e,t),gU(e)}};function pU(e,t,r,n){LT(new cU,e.children,{parseOptions:r}),t&&e.children.unshift(t);let i=new nU(e);return i.walk(s=>{if(s.kind==="comment"){let a=aU(s,n);a&&s.parent.replaceChild(s,a)}hU(s),dU(s),fU(s)}),i}function hU(e){if(e.kind==="block"){if(e.name=xt(0,e.name.toLowerCase(),/\s+/gu," ").trim(),e.kind="angularControlFlowBlock",!xy(e.parameters)){delete e.parameters;return}for(let t of e.parameters)t.kind="angularControlFlowBlockParameter";e.parameters={kind:"angularControlFlowBlockParameters",children:e.parameters,sourceSpan:new ue(e.parameters[0].sourceSpan.start,ma(0,e.parameters,-1).sourceSpan.end)}}}function dU(e){e.kind==="letDeclaration"&&(e.kind="angularLetDeclaration",e.id=e.name,e.init={kind:"angularLetDeclarationInitializer",sourceSpan:new ue(e.valueSpan.start,e.valueSpan.end),value:e.value},delete e.name,delete e.value)}function fU(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 mU(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 yU(e,t){if(e.kind==="element"){let r=Ud(t.isTagNameCaseSensitive?e.name:e.name.toLowerCase());!e.namespace||e.namespace===r.implicitNamespacePrefix||yu(e)?e.tagDefinition=r:e.tagDefinition=Ud("")}}function gU(e){e.sourceSpan&&e.endSourceSpan&&(e.sourceSpan=new ue(e.sourceSpan.start,e.endSourceSpan.end))}function DU(e,t){if(e.kind==="element"&&(t.normalizeTagName&&(!e.namespace||e.namespace===e.tagDefinition.implicitNamespacePrefix||yu(e))&&(e.name=uD(e.name,r=>tU.has(r))),t.normalizeAttributeName))for(let r of e.attrs)r.namespace||(r.name=uD(r.name,n=>mh.has(e.name)&&(mh.get("*").has(n)||mh.get(e.name).has(n))))}function VT(e,t){let{rootNodes:r,errors:n}=Wd(e,zT(t));return n.length>0&&Kd(n[0]),{parseOptions:t,rootNodes:r}}function EU(e,t){let r=zT(t),{rootNodes:n,errors:i}=Wd(e,r);if(n.some(u=>u.kind==="docType"&&u.value==="html"||u.kind==="element"&&u.name.toLowerCase()==="html"))return VT(e,ky);let s,a=()=>s??(s=Wd(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(xU(l)){let{endSourceSpan:c,startSourceSpan:p}=l,h=a().errors.find(d=>d.span.start.offset>p.start.offset&&d.span.start.offset0&&Kd(i[0]),{parseOptions:t,rootNodes:n}}function xU(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 Kd(e){let{msg:t,span:{start:r,end:n}}=e;throw ZR(t,{loc:{start:{line:r.line+1,column:r.col+1},end:{line:n.line+1,column:n.col+1}},cause:e})}function CU(e,t,r,n,i,s){let{offset:a}=n,o=xt(0,t.slice(0,a),/[^\n]/gu," ")+r,u=qT(o,e,{...i,shouldParseFrontMatter:!1},s);u.sourceSpan=new ue(n,ma(0,u.children,-1).sourceSpan.end);let l=u.children[0];return l.length===a?u.children.shift():(l.sourceSpan=new ue(l.sourceSpan.start.moveBy(a),l.sourceSpan.end),l.value=l.value.slice(a)),u}function qT(e,t,r,n={}){let{frontMatter:i,content:s}=r.shouldParseFrontMatter?tO(e):{content:e},a=new _T(e,n.filepath),o=new zd(a,0,0,0),u=o.moveBy(e.length),{parseOptions:l,rootNodes:c}=t(s,r),p={kind:"root",sourceSpan:new ue(o,u),children:c},h;if(i){let[d,f]=[i.start,i.end].map(y=>new zd(a,y.index,y.line-1,y.column));h={...i,kind:"frontMatter",sourceSpan:new ue(d,f)}}return pU(p,h,l,(d,f)=>CU(t,e,d,f,l,n))}var ky=UT({name:"html",normalizeTagName:!0,normalizeAttributeName:!0,allowHtmComponentClosingTags:!0});function Cu(e){let t=UT(e),r=t.name==="vue"?EU:VT;return{parse:(n,i)=>qT(n,r,t,i),hasPragma:Lj,hasIgnorePragma:$j,astFormat:"html",locStart:Du,locEnd:Gc}}var vU=Cu(ky),AU=new Set(["mj-style","mj-raw"]),TU=Cu({...ky,name:"mjml",shouldParseAsRawText:e=>AU.has(e)}),SU=Cu({name:"angular",tokenizeAngularBlocks:!0,tokenizeAngularLetDeclaration:!0}),FU=Cu({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))}}),bU=Cu({name:"lwc",canSelfClose:!1}),HT={html:GR};const wU=Object.freeze(Object.defineProperty({__proto__:null,default:JA,languages:jT,options:RT,parsers:Py,printers:HT},Symbol.toStringTag,{value:"Module"}));function PU(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],E=d[2],g=d[3],m=d[4],D=this.diff_main(f,E,o,u),x=this.diff_main(y,g,o,u);return D.concat([new t.Diff(i,m)],x)}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 E=this.diff_main(f,y,!1,o),g=E.length-1;g>=0;g--)c.splice(p,0,E[g]);p=p+E.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);b++){for(var k=-b+m;k<=b-D;k+=2){var F=p+k,M;k==-b||k!=b&&d[F-1]u)D+=2;else if(P>l)m+=2;else if(g){var j=p+E-k;if(j>=0&&j=Y)return this.diff_bisectSplit_(s,a,M,P,o)}}}for(var N=-b+x;N<=b-A;N+=2){var j=p+N,Y;N==-b||N!=b&&f[j-1]u)A+=2;else if(Q>l)x+=2;else if(!g){var F=p+E-N;if(F>=0&&F=Y)return this.diff_bisectSplit_(s,a,M,P,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,E=-1,g=o.length;Eu?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?[M,P,j,Y,F]: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,E,g;s.length>a.length?(f=d[0],y=d[1],E=d[2],g=d[3]):(E=d[0],g=d[1],f=d[2],y=d[3]);var m=d[4];return[f,y,E,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>=E.length/2)&&(s.splice(c,0,new t.Diff(i,E.substring(0,g))),s[c-1][1]=y.substring(0,y.length-g),s[c+1][1]=E.substring(g),c++):(m>=y.length/2||m>=E.length/2)&&(s.splice(c,0,new t.Diff(i,y.substring(0,m))),s[c-1][0]=n,s[c-1][1]=E.substring(0,E.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 x=m.charAt(m.length-1),A=D.charAt(0),b=x.match(t.nonAlphaNumericRegex_),k=A.match(t.nonAlphaNumericRegex_),F=b&&x.match(t.whitespaceRegex_),M=k&&A.match(t.whitespaceRegex_),P=F&&x.match(t.linebreakRegex_),j=M&&A.match(t.linebreakRegex_),Y=P&&m.match(t.blanklineEndRegex_),N=j&&D.match(t.blanklineStartRegex_);return Y||N?5:P||j?4:b&&!F&&M?3:F||M?2:b||k?1:0}for(var o=1;o=E&&(E=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(M,P){var j=M/a.length,Y=Math.abs(o-P);return l.Match_Distance?j+Y/l.Match_Distance:Y?1:j}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;b--){var k=u[s.charAt(b-1)];if(m===0?A[b]=(A[b+1]<<1|1)&k:A[b]=(A[b+1]<<1|1)&k|((g[b+1]|g[b])<<1|1)|g[b+1],A[b]&d){var F=c(m,b-1);if(F<=p)if(p=F,h=b-1,h>o)D=Math.max(1,2*o-h);else break}}if(c(m+1,o)>p)break;g=A}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,E=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=E,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 E=this.diff_main(h,y,!1);if(h.length>this.Match_MaxBits&&this.diff_levenshtein(E)/h.length>this.Patch_DeleteThreshold)l[c]=!1;else{this.diff_cleanupSemanticLossless(E);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 E=this.diff_text1(u.diffs).substring(0,this.Patch_Margin);E!==""&&(h.length1+=E.length,h.length2+=E.length,h.diffs.length!==0&&h.diffs[h.diffs.length-1][0]===i?h.diffs[h.diffs.length-1][1]+=E:h.diffs.push(new t.Diff(i,E))),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],x=d[2],g=d[3],m=d[4],D=this.diff_main(f,x,o,u),E=this.diff_main(y,g,o,u);return D.concat([new t.Diff(i,m)],E)}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);F++){for(var k=-F+m;k<=F-D;k+=2){var b=p+k,O;k==-F||k!=F&&d[b-1]u)D+=2;else if(P>l)m+=2;else if(g){var j=p+x-k;if(j>=0&&j=Y)return this.diff_bisectSplit_(s,a,O,P,o)}}}for(var N=-F+E;N<=F-A;N+=2){var j=p+N,Y;N==-F||N!=F&&f[j-1]u)A+=2;else if(Q>l)E+=2;else if(!g){var b=p+x-N;if(b>=0&&b=Y)return this.diff_bisectSplit_(s,a,O,P,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?[O,P,j,Y,b]: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 E=m.charAt(m.length-1),A=D.charAt(0),F=E.match(t.nonAlphaNumericRegex_),k=A.match(t.nonAlphaNumericRegex_),b=F&&E.match(t.whitespaceRegex_),O=k&&A.match(t.whitespaceRegex_),P=b&&E.match(t.linebreakRegex_),j=O&&A.match(t.linebreakRegex_),Y=P&&m.match(t.blanklineEndRegex_),N=j&&D.match(t.blanklineStartRegex_);return Y||N?5:P||j?4:F&&!b&&O?3:b||O?2:F||k?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(O,P){var j=O/a.length,Y=Math.abs(o-P);return l.Match_Distance?j+Y/l.Match_Distance:Y?1:j}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;F--){var k=u[s.charAt(F-1)];if(m===0?A[F]=(A[F+1]<<1|1)&k:A[F]=(A[F+1]<<1|1)&k|((g[F+1]|g[F])<<1|1)|g[F+1],A[F]&d){var b=c(m,F-1);if(b<=p)if(p=b,h=F-1,h>o)D=Math.max(1,2*o-h);else break}}if(c(m+1,o)>p)break;g=A}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;otypeof window>"u"?16:parseFloat(getComputedStyle(document.documentElement).fontSize),wU=(e,t=zT())=>e/t,PU=(e,t=zT())=>e*t,kU=(e,t=16)=>e/t,NU=(e,t=16)=>e*t,BU=(e,t=typeof window<"u"?window.innerWidth:1920)=>e/t*100,IU=(e,t=typeof window<"u"?window.innerWidth:1920)=>e/100*t,_U=(e,t=typeof window<"u"?window.innerHeight:1080)=>e/t*100,LU=(e,t=typeof window<"u"?window.innerHeight:1080)=>e/100*t,$U=(e,t)=>e/t*100,OU=(e,t)=>e/100*t,MU=e=>e/96,jU=e=>e*96,RU=e=>e/(96/2.54),UU=e=>e*(96/2.54);function zU(){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=xU(e),s(h));let d="";h==="json"?d=await CU(e):d=await TU(e),n(d)}catch(h){n("Error formatting: "+h.message)}},p=()=>{navigator.clipboard.writeText(r),l(!0),setTimeout(()=>l(!1),2e3)};return S.jsxs("div",{className:"flex flex-col h-full gap-4",children:[S.jsxs("div",{className:"flex items-center justifying-between gap-4 py-2",children:[S.jsx("h2",{className:"text-2xl font-bold",children:"Code Formatter"}),S.jsxs("div",{className:"flex items-center gap-2 ml-auto",children:[S.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:[S.jsx("input",{type:"checkbox",checked:a,onChange:h=>o(h.target.checked),className:"w-4 h-4 cursor-pointer"}),S.jsx(Mw,{className:"w-4 h-4"}),"Auto-detect"]}),S.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:[S.jsx("option",{value:"json",children:"JSON"}),S.jsx("option",{value:"xml",children:"XML"})]}),S.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:[S.jsx(LE,{className:"w-4 h-4"}),"Format"]})]})]}),S.jsxs("div",{className:"grid grid-cols-2 gap-4 flex-1 min-h-0",children:[S.jsxs("div",{className:"flex flex-col gap-2 h-full",children:[S.jsx("label",{className:"text-sm font-medium text-muted-foreground",children:"Input"}),S.jsx("div",{className:"flex-1 border border-input rounded-md overflow-hidden bg-card",children:S.jsx(Hs,{height:"100%",defaultLanguage:i,language:i,theme:"vs-dark",value:e,onChange:h=>t(h||""),options:{minimap:{enabled:!1},fontSize:14}})})]}),S.jsxs("div",{className:"flex flex-col gap-2 h-full",children:[S.jsxs("div",{className:"flex items-center justify-between",children:[S.jsx("label",{className:"text-sm font-medium text-muted-foreground",children:"Output"}),S.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?S.jsx(IE,{className:"w-3 h-3"}):S.jsx(_E,{className:"w-3 h-3"}),u?"Copied":"Copy"]})]}),S.jsx("div",{className:"flex-1 border border-input rounded-md overflow-hidden bg-card",children:S.jsx(Hs,{height:"100%",defaultLanguage:i,language:i,theme:"vs-dark",value:r,options:{readOnly:!0,minimap:{enabled:!1},fontSize:14}})})]})]})]})}function VU(){const[e,t]=I.useState(""),[r,n]=I.useState(""),[i,s]=I.useState([]),a=()=>{const o=bU(e,r);s(o)};return S.jsxs("div",{className:"flex flex-col h-full gap-4",children:[S.jsxs("div",{className:"flex items-center justify-between py-2",children:[S.jsx("h2",{className:"text-2xl font-bold",children:"Diff Viewer"}),S.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:[S.jsx(Iw,{className:"w-4 h-4"}),"Compare"]})]}),S.jsxs("div",{className:"grid grid-cols-2 gap-4 h-[40%]",children:[S.jsxs("div",{className:"flex flex-col gap-2",children:[S.jsx("label",{className:"text-sm font-medium text-muted-foreground",children:"Original Text"}),S.jsx("div",{className:"flex-1 border border-input rounded-md overflow-hidden bg-card",children:S.jsx(Hs,{height:"100%",defaultLanguage:"text",theme:"vs-dark",value:e,onChange:o=>t(o||""),options:{minimap:{enabled:!1},fontSize:14}})})]}),S.jsxs("div",{className:"flex flex-col gap-2",children:[S.jsx("label",{className:"text-sm font-medium text-muted-foreground",children:"Modified Text"}),S.jsx("div",{className:"flex-1 border border-input rounded-md overflow-hidden bg-card",children:S.jsx(Hs,{height:"100%",defaultLanguage:"text",theme:"vs-dark",value:r,onChange:o=>n(o||""),options:{minimap:{enabled:!1},fontSize:14}})})]})]}),S.jsxs("div",{className:"flex flex-col gap-2 flex-1 min-h-0",children:[S.jsx("label",{className:"text-sm font-medium text-muted-foreground",children:"Diff Result"}),S.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"),S.jsx("span",{className:p,children:c},u)}),i.length===0&&S.jsx("span",{className:"text-muted-foreground italic",children:"No diffs computed yet..."})]})]})]})}function qU(){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=vU(e):d=AU(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 S.jsxs("div",{className:"flex flex-col h-full gap-4",children:[S.jsxs("div",{className:"flex items-center justifying-between gap-4 py-2",children:[S.jsx("h2",{className:"text-2xl font-bold",children:"JSON Parser & Stringifier"}),S.jsxs("div",{className:"flex items-center gap-2 ml-auto",children:[S.jsxs("div",{className:"flex gap-2 px-3 py-2 bg-card border border-input rounded-md",children:[S.jsxs("label",{className:"flex items-center gap-2 cursor-pointer text-sm",children:[S.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)"]}),S.jsxs("label",{className:"flex items-center gap-2 cursor-pointer text-sm",children:[S.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)"]})]}),S.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:[S.jsx(LE,{className:"w-4 h-4"}),"Execute"]}),S.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:[S.jsx(Lw,{className:"w-4 h-4"}),"Clear"]})]})]}),u&&S.jsx("div",{className:"p-3 rounded-md bg-destructive/10 border border-destructive text-destructive text-sm",children:u}),S.jsxs("div",{className:"grid grid-cols-2 gap-4 flex-1 min-h-0",children:[S.jsxs("div",{className:"flex flex-col gap-2 h-full",children:[S.jsx("label",{className:"text-sm font-medium text-muted-foreground",children:i==="parse"?"Input (Minified JSON)":"Input (Formatted JSON)"}),S.jsx("div",{className:"flex-1 border border-input rounded-md overflow-hidden bg-card",children:S.jsx(Hs,{height:"100%",defaultLanguage:"json",language:"json",theme:"vs-dark",value:e,onChange:d=>{t(d||""),l("")},options:{minimap:{enabled:!1},fontSize:14}})})]}),S.jsxs("div",{className:"flex flex-col gap-2 h-full",children:[S.jsxs("div",{className:"flex items-center justify-between",children:[S.jsx("label",{className:"text-sm font-medium text-muted-foreground",children:i==="parse"?"Output (Prettified JSON)":"Output (Minified JSON)"}),S.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?S.jsx(IE,{className:"w-3 h-3"}):S.jsx(_E,{className:"w-3 h-3"}),a?"Copied":"Copy"]})]}),S.jsx("div",{className:"flex-1 border border-input rounded-md overflow-hidden bg-card",children:S.jsx(Hs,{height:"100%",defaultLanguage:"json",language:"json",theme:"vs-dark",value:r,options:{readOnly:!0,minimap:{enabled:!1},fontSize:14}})})]})]})]})}function HU(){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"),[E,g]=I.useState("1"),[m,D]=I.useState("0.8333"),[x,A]=I.useState("1.4815"),[b,k]=I.useState("1.6"),[F,M]=I.useState("0.1667"),[P,j]=I.useState("0.4233"),Y=r?e:i,N=K=>isNaN(K)?"":parseFloat(K.toFixed(4)).toString(),Q=I.useCallback((K,se)=>{se!=="px"&&d(K.toString()),se!=="rem"&&y(N(wU(K,e))),se!=="em"&&g(N(kU(K,Y))),se!=="vw"&&D(N(BU(K,a))),se!=="vh"&&A(N(_U(K,u))),se!=="percent"&&k(N($U(K,c))),se!=="in"&&M(N(MU(K))),se!=="cm"&&j(N(RU(K)))},[e,Y,a,u,c]);I.useEffect(()=>{const K=parseFloat(h);isNaN(K)||Q(K,"px")},[e,Y,a,u,c]);const H=K=>{const se=K.target.value;d(se);const me=parseFloat(se);isNaN(me)||Q(me,"px")},ne=K=>{const se=K.target.value;y(se);const me=parseFloat(se);isNaN(me)||Q(PU(me,e),"rem")},ge=K=>{const se=K.target.value;g(se);const me=parseFloat(se);isNaN(me)||Q(NU(me,Y),"em")},$=K=>{const se=K.target.value;D(se);const me=parseFloat(se);isNaN(me)||Q(IU(me,a),"vw")},Z=K=>{const se=K.target.value;A(se);const me=parseFloat(se);isNaN(me)||Q(LU(me,u),"vh")},J=K=>{const se=K.target.value;k(se);const me=parseFloat(se);isNaN(me)||Q(OU(me,c),"percent")},te=K=>{const se=K.target.value;M(se);const me=parseFloat(se);isNaN(me)||Q(jU(me),"in")},ae=K=>{const se=K.target.value;j(se);const me=parseFloat(se);isNaN(me)||Q(UU(me),"cm")};return S.jsxs("div",{className:"space-y-6 pb-20",children:[S.jsx("div",{className:"flex items-center justify-between",children:S.jsxs("div",{children:[S.jsx("h2",{className:"text-3xl font-bold tracking-tight",children:"Unit Converter"}),S.jsx("p",{className:"text-muted-foreground mt-2",children:"Convert between screen and physical units. Changing one updates all others in real-time."})]})}),S.jsxs("div",{className:"bg-card border border-border rounded-lg p-6 shadow-sm",children:[S.jsxs("div",{className:"flex items-center gap-2 mb-6",children:[S.jsx($w,{className:"w-5 h-5 text-primary"}),S.jsx("h3",{className:"font-semibold text-lg",children:"Configuration"})]}),S.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-5 gap-6",children:[S.jsxs("div",{className:"space-y-2",children:[S.jsx("label",{className:"text-sm font-medium text-muted-foreground whitespace-nowrap",children:"Root Font Size (px)"}),S.jsx("input",{type:"number",value:e,onChange:K=>t(Number(K.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"})]}),S.jsxs("div",{className:"space-y-2",children:[S.jsx("label",{className:"text-sm font-medium text-muted-foreground whitespace-nowrap",children:"Viewport Width (px)"}),S.jsx("input",{type:"number",value:a,onChange:K=>o(Number(K.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"})]}),S.jsxs("div",{className:"space-y-2",children:[S.jsx("label",{className:"text-sm font-medium text-muted-foreground whitespace-nowrap",children:"Viewport Height (px)"}),S.jsx("input",{type:"number",value:u,onChange:K=>l(Number(K.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"})]}),S.jsxs("div",{className:"space-y-2",children:[S.jsx("label",{className:"text-sm font-medium text-muted-foreground whitespace-nowrap",children:"Parent Container (px)"}),S.jsx("input",{type:"number",value:c,onChange:K=>p(Number(K.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"})]}),S.jsxs("div",{className:"space-y-3",children:[S.jsxs("div",{className:"flex items-center gap-2 h-9",children:[S.jsx("input",{type:"checkbox",id:"parentSameAsRoot",checked:r,onChange:K=>n(K.target.checked),className:"w-4 h-4 rounded border-gray-300 text-primary focus:ring-primary"}),S.jsx("label",{htmlFor:"parentSameAsRoot",className:"text-sm font-medium text-muted-foreground whitespace-nowrap",children:"Parent = Root"})]}),!r&&S.jsxs("div",{className:"space-y-2",children:[S.jsx("label",{className:"text-sm font-medium text-muted-foreground whitespace-nowrap",children:"Parent Font Size (px)"}),S.jsx("input",{type:"number",value:i,onChange:K=>s(Number(K.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"})]})]})]})]}),S.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:[S.jsxs("div",{className:"bg-card border border-border rounded-lg p-6 shadow-sm hover:border-primary/50 transition-colors overflow-hidden",children:[S.jsx("h3",{className:"font-semibold text-lg mb-4",children:"Pixels (px)"}),S.jsxs("div",{className:"flex items-end gap-2",children:[S.jsx("input",{type:"text",inputMode:"decimal",value:h,onChange:H,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"}),S.jsx("span",{className:"pb-3 text-muted-foreground font-bold whitespace-nowrap",children:"px"})]})]}),S.jsxs("div",{className:"bg-card border border-border rounded-lg p-6 shadow-sm hover:border-primary/50 transition-colors overflow-hidden",children:[S.jsx("h3",{className:"font-semibold text-lg mb-4",children:"Root EM (rem)"}),S.jsxs("div",{className:"flex items-end gap-2",children:[S.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"}),S.jsx("span",{className:"pb-3 text-muted-foreground font-bold whitespace-nowrap",children:"rem"})]}),S.jsxs("p",{className:"text-xs text-muted-foreground mt-2 truncate",children:["Based on ",e,"px root size"]})]}),S.jsxs("div",{className:"bg-card border border-border rounded-lg p-6 shadow-sm hover:border-primary/50 transition-colors overflow-hidden",children:[S.jsx("h3",{className:"font-semibold text-lg mb-4",children:"Element EM (em)"}),S.jsxs("div",{className:"flex items-end gap-2",children:[S.jsx("input",{type:"text",inputMode:"decimal",value:E,onChange:ge,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"}),S.jsx("span",{className:"pb-3 text-muted-foreground font-bold whitespace-nowrap",children:"em"})]}),S.jsxs("p",{className:"text-xs text-muted-foreground mt-2 truncate",children:["Relative to parent (",Y,"px)"]})]}),S.jsxs("div",{className:"bg-card border border-border rounded-lg p-6 shadow-sm hover:border-primary/50 transition-colors overflow-hidden",children:[S.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[S.jsx(_w,{className:"w-4 h-4 text-muted-foreground"}),S.jsx("h3",{className:"font-semibold text-lg",children:"Viewport Width (vw)"})]}),S.jsxs("div",{className:"flex items-end gap-2",children:[S.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"}),S.jsx("span",{className:"pb-3 text-muted-foreground font-bold whitespace-nowrap",children:"vw"})]}),S.jsxs("p",{className:"text-xs text-muted-foreground mt-2 truncate",children:["Based on ",a,"px width"]})]}),S.jsxs("div",{className:"bg-card border border-border rounded-lg p-6 shadow-sm hover:border-primary/50 transition-colors overflow-hidden",children:[S.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[S.jsx(Ow,{className:"w-4 h-4 text-muted-foreground"}),S.jsx("h3",{className:"font-semibold text-lg",children:"Viewport Height (vh)"})]}),S.jsxs("div",{className:"flex items-end gap-2",children:[S.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"}),S.jsx("span",{className:"pb-3 text-muted-foreground font-bold whitespace-nowrap",children:"vh"})]}),S.jsxs("p",{className:"text-xs text-muted-foreground mt-2 truncate",children:["Based on ",u,"px height"]})]}),S.jsxs("div",{className:"bg-card border border-border rounded-lg p-6 shadow-sm hover:border-primary/50 transition-colors overflow-hidden",children:[S.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[S.jsx($E,{className:"w-4 h-4 text-muted-foreground"}),S.jsx("h3",{className:"font-semibold text-lg",children:"Percentage (%)"})]}),S.jsxs("div",{className:"flex items-end gap-2",children:[S.jsx("input",{type:"text",inputMode:"decimal",value:b,onChange:J,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"}),S.jsx("span",{className:"pb-3 text-muted-foreground font-bold whitespace-nowrap",children:"%"})]}),S.jsxs("p",{className:"text-xs text-muted-foreground mt-2 truncate",children:["Relative to container (",c,"px)"]})]}),S.jsxs("div",{className:"bg-card border border-border rounded-lg p-6 shadow-sm hover:border-primary/50 transition-colors overflow-hidden",children:[S.jsx("h3",{className:"font-semibold text-lg mb-4",children:"Inches (in)"}),S.jsxs("div",{className:"flex items-end gap-2",children:[S.jsx("input",{type:"text",inputMode:"decimal",value:F,onChange:te,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"}),S.jsx("span",{className:"pb-3 text-muted-foreground font-bold whitespace-nowrap",children:"in"})]}),S.jsx("p",{className:"text-xs text-muted-foreground mt-2",children:"1in = 96px"})]}),S.jsxs("div",{className:"bg-card border border-border rounded-lg p-6 shadow-sm hover:border-primary/50 transition-colors overflow-hidden",children:[S.jsx("h3",{className:"font-semibold text-lg mb-4",children:"Centimeters (cm)"}),S.jsxs("div",{className:"flex items-end gap-2",children:[S.jsx("input",{type:"text",inputMode:"decimal",value:P,onChange:ae,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"}),S.jsx("span",{className:"pb-3 text-muted-foreground font-bold whitespace-nowrap",children:"cm"})]}),S.jsx("p",{className:"text-xs text-muted-foreground mt-2",children:"1in = 2.54cm"})]})]})]})}function WU(){return S.jsx(vw,{children:S.jsx(mw,{children:S.jsxs(Ai,{path:"/",element:S.jsx(jw,{}),children:[S.jsx(Ai,{index:!0,element:S.jsx(hw,{to:"/formatter",replace:!0})}),S.jsx(Ai,{path:"formatter",element:S.jsx(zU,{})}),S.jsx(Ai,{path:"diff",element:S.jsx(VU,{})}),S.jsx(Ai,{path:"parser",element:S.jsx(qU,{})}),S.jsx(Ai,{path:"unit-conversion",element:S.jsx(HU,{})})]})})})}yh.createRoot(document.getElementById("root")).render(S.jsx(Rn.StrictMode,{children:S.jsx(WU,{})})); +`}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})(WT);var LU=WT.exports;function $U(e,t){const r=new LU.diff_match_patch,n=r.diff_main(e,t);return r.diff_cleanupSemantic(n),n}const JT=()=>typeof window>"u"?16:parseFloat(getComputedStyle(document.documentElement).fontSize),MU=(e,t=JT())=>e/t,OU=(e,t=JT())=>e*t,jU=(e,t=16)=>e/t,RU=(e,t=16)=>e*t,UU=(e,t=typeof window<"u"?window.innerWidth:1920)=>e/t*100,zU=(e,t=typeof window<"u"?window.innerWidth:1920)=>e/100*t,VU=(e,t=typeof window<"u"?window.innerHeight:1080)=>e/t*100,qU=(e,t=typeof window<"u"?window.innerHeight:1080)=>e/100*t,HU=(e,t)=>e/t*100,WU=(e,t)=>e/100*t,JU=e=>e/96,XU=e=>e*96,KU=e=>e/(96/2.54),GU=e=>e*(96/2.54),QU=e=>new Promise((t,r)=>{const n=new FileReader;n.onload=()=>t(n.result),n.onerror=r,n.readAsDataURL(e)}),YU=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};function ez(){const[e,t]=B.useState(""),[r,n]=B.useState(""),[i,s]=B.useState("json"),[a,o]=B.useState(!0),[u,l]=B.useState(!1),c=async()=>{try{let h=i;a&&e.trim()&&(h=PU(e),s(h));let d="";h==="json"?d=await kU(e):d=await IU(e),n(d)}catch(h){n("Error formatting: "+h.message)}},p=()=>{navigator.clipboard.writeText(r),l(!0),setTimeout(()=>l(!1),2e3)};return T.jsxs("div",{className:"flex flex-col h-full gap-4",children:[T.jsxs("div",{className:"flex items-center justifying-between gap-4 py-2",children:[T.jsx("h2",{className:"text-2xl font-bold",children:"Code Formatter"}),T.jsxs("div",{className:"flex items-center gap-2 ml-auto",children:[T.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:[T.jsx("input",{type:"checkbox",checked:a,onChange:h=>o(h.target.checked),className:"w-4 h-4 cursor-pointer"}),T.jsx(Jw,{className:"w-4 h-4"}),"Auto-detect"]}),T.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:[T.jsx("option",{value:"json",children:"JSON"}),T.jsx("option",{value:"xml",children:"XML"})]}),T.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:[T.jsx(RE,{className:"w-4 h-4"}),"Format"]})]})]}),T.jsxs("div",{className:"grid grid-cols-2 gap-4 flex-1 min-h-0",children:[T.jsxs("div",{className:"flex flex-col gap-2 h-full",children:[T.jsx("label",{className:"text-sm font-medium text-muted-foreground",children:"Input"}),T.jsx("div",{className:"flex-1 border border-input rounded-md overflow-hidden bg-card",children:T.jsx(Hs,{height:"100%",defaultLanguage:i,language:i,theme:"vs-dark",value:e,onChange:h=>t(h||""),options:{minimap:{enabled:!1},fontSize:14}})})]}),T.jsxs("div",{className:"flex flex-col gap-2 h-full",children:[T.jsxs("div",{className:"flex items-center justify-between",children:[T.jsx("label",{className:"text-sm font-medium text-muted-foreground",children:"Output"}),T.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?T.jsx(ME,{className:"w-3 h-3"}):T.jsx(OE,{className:"w-3 h-3"}),u?"Copied":"Copy"]})]}),T.jsx("div",{className:"flex-1 border border-input rounded-md overflow-hidden bg-card",children:T.jsx(Hs,{height:"100%",defaultLanguage:i,language:i,theme:"vs-dark",value:r,options:{readOnly:!0,minimap:{enabled:!1},fontSize:14}})})]})]})]})}function tz(){const[e,t]=B.useState(""),[r,n]=B.useState(""),[i,s]=B.useState([]),a=()=>{const o=$U(e,r);s(o)};return T.jsxs("div",{className:"flex flex-col h-full gap-4",children:[T.jsxs("div",{className:"flex items-center justify-between py-2",children:[T.jsx("h2",{className:"text-2xl font-bold",children:"Diff Viewer"}),T.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:[T.jsx(Rw,{className:"w-4 h-4"}),"Compare"]})]}),T.jsxs("div",{className:"grid grid-cols-2 gap-4 h-[40%]",children:[T.jsxs("div",{className:"flex flex-col gap-2",children:[T.jsx("label",{className:"text-sm font-medium text-muted-foreground",children:"Original Text"}),T.jsx("div",{className:"flex-1 border border-input rounded-md overflow-hidden bg-card",children:T.jsx(Hs,{height:"100%",defaultLanguage:"text",theme:"vs-dark",value:e,onChange:o=>t(o||""),options:{minimap:{enabled:!1},fontSize:14}})})]}),T.jsxs("div",{className:"flex flex-col gap-2",children:[T.jsx("label",{className:"text-sm font-medium text-muted-foreground",children:"Modified Text"}),T.jsx("div",{className:"flex-1 border border-input rounded-md overflow-hidden bg-card",children:T.jsx(Hs,{height:"100%",defaultLanguage:"text",theme:"vs-dark",value:r,onChange:o=>n(o||""),options:{minimap:{enabled:!1},fontSize:14}})})]})]}),T.jsxs("div",{className:"flex flex-col gap-2 flex-1 min-h-0",children:[T.jsx("label",{className:"text-sm font-medium text-muted-foreground",children:"Diff Result"}),T.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"),T.jsx("span",{className:p,children:c},u)}),i.length===0&&T.jsx("span",{className:"text-muted-foreground italic",children:"No diffs computed yet..."})]})]})]})}function rz(){const[e,t]=B.useState(""),[r,n]=B.useState(""),[i,s]=B.useState("parse"),[a,o]=B.useState(!1),[u,l]=B.useState(""),c=()=>{l("");try{let d="";i==="parse"?d=NU(e):d=BU(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 T.jsxs("div",{className:"flex flex-col h-full gap-4",children:[T.jsxs("div",{className:"flex items-center justifying-between gap-4 py-2",children:[T.jsx("h2",{className:"text-2xl font-bold",children:"JSON Parser & Stringifier"}),T.jsxs("div",{className:"flex items-center gap-2 ml-auto",children:[T.jsxs("div",{className:"flex gap-2 px-3 py-2 bg-card border border-input rounded-md",children:[T.jsxs("label",{className:"flex items-center gap-2 cursor-pointer text-sm",children:[T.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)"]}),T.jsxs("label",{className:"flex items-center gap-2 cursor-pointer text-sm",children:[T.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)"]})]}),T.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:[T.jsx(RE,{className:"w-4 h-4"}),"Execute"]}),T.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:[T.jsx(zw,{className:"w-4 h-4"}),"Clear"]})]})]}),u&&T.jsx("div",{className:"p-3 rounded-md bg-destructive/10 border border-destructive text-destructive text-sm",children:u}),T.jsxs("div",{className:"grid grid-cols-2 gap-4 flex-1 min-h-0",children:[T.jsxs("div",{className:"flex flex-col gap-2 h-full",children:[T.jsx("label",{className:"text-sm font-medium text-muted-foreground",children:i==="parse"?"Input (Minified JSON)":"Input (Formatted JSON)"}),T.jsx("div",{className:"flex-1 border border-input rounded-md overflow-hidden bg-card",children:T.jsx(Hs,{height:"100%",defaultLanguage:"json",language:"json",theme:"vs-dark",value:e,onChange:d=>{t(d||""),l("")},options:{minimap:{enabled:!1},fontSize:14}})})]}),T.jsxs("div",{className:"flex flex-col gap-2 h-full",children:[T.jsxs("div",{className:"flex items-center justify-between",children:[T.jsx("label",{className:"text-sm font-medium text-muted-foreground",children:i==="parse"?"Output (Prettified JSON)":"Output (Minified JSON)"}),T.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?T.jsx(ME,{className:"w-3 h-3"}):T.jsx(OE,{className:"w-3 h-3"}),a?"Copied":"Copy"]})]}),T.jsx("div",{className:"flex-1 border border-input rounded-md overflow-hidden bg-card",children:T.jsx(Hs,{height:"100%",defaultLanguage:"json",language:"json",theme:"vs-dark",value:r,options:{readOnly:!0,minimap:{enabled:!1},fontSize:14}})})]})]})]})}function nz(){const[e,t]=B.useState(16),[r,n]=B.useState(!0),[i,s]=B.useState(16),[a,o]=B.useState(window.innerWidth),[u,l]=B.useState(window.innerHeight),[c,p]=B.useState(1e3),[h,d]=B.useState("16"),[f,y]=B.useState("1"),[x,g]=B.useState("1"),[m,D]=B.useState("0.8333"),[E,A]=B.useState("1.4815"),[F,k]=B.useState("1.6"),[b,O]=B.useState("0.1667"),[P,j]=B.useState("0.4233"),Y=r?e:i,N=K=>isNaN(K)?"":parseFloat(K.toFixed(4)).toString(),Q=B.useCallback((K,se)=>{se!=="px"&&d(K.toString()),se!=="rem"&&y(N(MU(K,e))),se!=="em"&&g(N(jU(K,Y))),se!=="vw"&&D(N(UU(K,a))),se!=="vh"&&A(N(VU(K,u))),se!=="percent"&&k(N(HU(K,c))),se!=="in"&&O(N(JU(K))),se!=="cm"&&j(N(KU(K)))},[e,Y,a,u,c]);B.useEffect(()=>{const K=parseFloat(h);isNaN(K)||Q(K,"px")},[e,Y,a,u,c]);const H=K=>{const se=K.target.value;d(se);const me=parseFloat(se);isNaN(me)||Q(me,"px")},ne=K=>{const se=K.target.value;y(se);const me=parseFloat(se);isNaN(me)||Q(OU(me,e),"rem")},ge=K=>{const se=K.target.value;g(se);const me=parseFloat(se);isNaN(me)||Q(RU(me,Y),"em")},$=K=>{const se=K.target.value;D(se);const me=parseFloat(se);isNaN(me)||Q(zU(me,a),"vw")},Z=K=>{const se=K.target.value;A(se);const me=parseFloat(se);isNaN(me)||Q(qU(me,u),"vh")},J=K=>{const se=K.target.value;k(se);const me=parseFloat(se);isNaN(me)||Q(WU(me,c),"percent")},te=K=>{const se=K.target.value;O(se);const me=parseFloat(se);isNaN(me)||Q(XU(me),"in")},ae=K=>{const se=K.target.value;j(se);const me=parseFloat(se);isNaN(me)||Q(GU(me),"cm")};return T.jsxs("div",{className:"space-y-6 pb-20",children:[T.jsx("div",{className:"flex items-center justify-between",children:T.jsxs("div",{children:[T.jsx("h2",{className:"text-3xl font-bold tracking-tight",children:"Unit Converter"}),T.jsx("p",{className:"text-muted-foreground mt-2",children:"Convert between screen and physical units. Changing one updates all others in real-time."})]})}),T.jsxs("div",{className:"bg-card border border-border rounded-lg p-6 shadow-sm",children:[T.jsxs("div",{className:"flex items-center gap-2 mb-6",children:[T.jsx(Vw,{className:"w-5 h-5 text-primary"}),T.jsx("h3",{className:"font-semibold text-lg",children:"Configuration"})]}),T.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-5 gap-6",children:[T.jsxs("div",{className:"space-y-2",children:[T.jsx("label",{className:"text-sm font-medium text-muted-foreground whitespace-nowrap",children:"Root Font Size (px)"}),T.jsx("input",{type:"number",value:e,onChange:K=>t(Number(K.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"})]}),T.jsxs("div",{className:"space-y-2",children:[T.jsx("label",{className:"text-sm font-medium text-muted-foreground whitespace-nowrap",children:"Viewport Width (px)"}),T.jsx("input",{type:"number",value:a,onChange:K=>o(Number(K.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"})]}),T.jsxs("div",{className:"space-y-2",children:[T.jsx("label",{className:"text-sm font-medium text-muted-foreground whitespace-nowrap",children:"Viewport Height (px)"}),T.jsx("input",{type:"number",value:u,onChange:K=>l(Number(K.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"})]}),T.jsxs("div",{className:"space-y-2",children:[T.jsx("label",{className:"text-sm font-medium text-muted-foreground whitespace-nowrap",children:"Parent Container (px)"}),T.jsx("input",{type:"number",value:c,onChange:K=>p(Number(K.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"})]}),T.jsxs("div",{className:"space-y-3",children:[T.jsxs("div",{className:"flex items-center gap-2 h-9",children:[T.jsx("input",{type:"checkbox",id:"parentSameAsRoot",checked:r,onChange:K=>n(K.target.checked),className:"w-4 h-4 rounded border-gray-300 text-primary focus:ring-primary"}),T.jsx("label",{htmlFor:"parentSameAsRoot",className:"text-sm font-medium text-muted-foreground whitespace-nowrap",children:"Parent = Root"})]}),!r&&T.jsxs("div",{className:"space-y-2",children:[T.jsx("label",{className:"text-sm font-medium text-muted-foreground whitespace-nowrap",children:"Parent Font Size (px)"}),T.jsx("input",{type:"number",value:i,onChange:K=>s(Number(K.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"})]})]})]})]}),T.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:[T.jsxs("div",{className:"bg-card border border-border rounded-lg p-6 shadow-sm hover:border-primary/50 transition-colors overflow-hidden",children:[T.jsx("h3",{className:"font-semibold text-lg mb-4",children:"Pixels (px)"}),T.jsxs("div",{className:"flex items-end gap-2",children:[T.jsx("input",{type:"text",inputMode:"decimal",value:h,onChange:H,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"}),T.jsx("span",{className:"pb-3 text-muted-foreground font-bold whitespace-nowrap",children:"px"})]})]}),T.jsxs("div",{className:"bg-card border border-border rounded-lg p-6 shadow-sm hover:border-primary/50 transition-colors overflow-hidden",children:[T.jsx("h3",{className:"font-semibold text-lg mb-4",children:"Root EM (rem)"}),T.jsxs("div",{className:"flex items-end gap-2",children:[T.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"}),T.jsx("span",{className:"pb-3 text-muted-foreground font-bold whitespace-nowrap",children:"rem"})]}),T.jsxs("p",{className:"text-xs text-muted-foreground mt-2 truncate",children:["Based on ",e,"px root size"]})]}),T.jsxs("div",{className:"bg-card border border-border rounded-lg p-6 shadow-sm hover:border-primary/50 transition-colors overflow-hidden",children:[T.jsx("h3",{className:"font-semibold text-lg mb-4",children:"Element EM (em)"}),T.jsxs("div",{className:"flex items-end gap-2",children:[T.jsx("input",{type:"text",inputMode:"decimal",value:x,onChange:ge,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"}),T.jsx("span",{className:"pb-3 text-muted-foreground font-bold whitespace-nowrap",children:"em"})]}),T.jsxs("p",{className:"text-xs text-muted-foreground mt-2 truncate",children:["Relative to parent (",Y,"px)"]})]}),T.jsxs("div",{className:"bg-card border border-border rounded-lg p-6 shadow-sm hover:border-primary/50 transition-colors overflow-hidden",children:[T.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[T.jsx(Uw,{className:"w-4 h-4 text-muted-foreground"}),T.jsx("h3",{className:"font-semibold text-lg",children:"Viewport Width (vw)"})]}),T.jsxs("div",{className:"flex items-end gap-2",children:[T.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"}),T.jsx("span",{className:"pb-3 text-muted-foreground font-bold whitespace-nowrap",children:"vw"})]}),T.jsxs("p",{className:"text-xs text-muted-foreground mt-2 truncate",children:["Based on ",a,"px width"]})]}),T.jsxs("div",{className:"bg-card border border-border rounded-lg p-6 shadow-sm hover:border-primary/50 transition-colors overflow-hidden",children:[T.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[T.jsx(qw,{className:"w-4 h-4 text-muted-foreground"}),T.jsx("h3",{className:"font-semibold text-lg",children:"Viewport Height (vh)"})]}),T.jsxs("div",{className:"flex items-end gap-2",children:[T.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"}),T.jsx("span",{className:"pb-3 text-muted-foreground font-bold whitespace-nowrap",children:"vh"})]}),T.jsxs("p",{className:"text-xs text-muted-foreground mt-2 truncate",children:["Based on ",u,"px height"]})]}),T.jsxs("div",{className:"bg-card border border-border rounded-lg p-6 shadow-sm hover:border-primary/50 transition-colors overflow-hidden",children:[T.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[T.jsx(UE,{className:"w-4 h-4 text-muted-foreground"}),T.jsx("h3",{className:"font-semibold text-lg",children:"Percentage (%)"})]}),T.jsxs("div",{className:"flex items-end gap-2",children:[T.jsx("input",{type:"text",inputMode:"decimal",value:F,onChange:J,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"}),T.jsx("span",{className:"pb-3 text-muted-foreground font-bold whitespace-nowrap",children:"%"})]}),T.jsxs("p",{className:"text-xs text-muted-foreground mt-2 truncate",children:["Relative to container (",c,"px)"]})]}),T.jsxs("div",{className:"bg-card border border-border rounded-lg p-6 shadow-sm hover:border-primary/50 transition-colors overflow-hidden",children:[T.jsx("h3",{className:"font-semibold text-lg mb-4",children:"Inches (in)"}),T.jsxs("div",{className:"flex items-end gap-2",children:[T.jsx("input",{type:"text",inputMode:"decimal",value:b,onChange:te,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"}),T.jsx("span",{className:"pb-3 text-muted-foreground font-bold whitespace-nowrap",children:"in"})]}),T.jsx("p",{className:"text-xs text-muted-foreground mt-2",children:"1in = 96px"})]}),T.jsxs("div",{className:"bg-card border border-border rounded-lg p-6 shadow-sm hover:border-primary/50 transition-colors overflow-hidden",children:[T.jsx("h3",{className:"font-semibold text-lg mb-4",children:"Centimeters (cm)"}),T.jsxs("div",{className:"flex items-end gap-2",children:[T.jsx("input",{type:"text",inputMode:"decimal",value:P,onChange:ae,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"}),T.jsx("span",{className:"pb-3 text-muted-foreground font-bold whitespace-nowrap",children:"cm"})]}),T.jsx("p",{className:"text-xs text-muted-foreground mt-2",children:"1in = 2.54cm"})]})]})]})}function iz(){const[e,t]=B.useState(""),[r,n]=B.useState(""),[i,s]=B.useState(""),[a,o]=B.useState("image/png"),[u,l]=B.useState(""),[c,p]=B.useState(0),h=async m=>{var E;const D=(E=m.target.files)==null?void 0:E[0];if(D){l(D.name),p(D.size),o(D.type);try{const A=await QU(D);t(A);const F=YU(A);n(F),s(pD(F))}catch(A){console.error("Failed to process image",A)}}},d=m=>{const D=m.target.value;n(D),s(pD(D)),t(cD(D,a)),p(hD(D))},f=m=>{const D=m.target.value;s(D);const E=ZU(D);n(E),t(cD(E,a)),p(hD(E))},y=m=>{navigator.clipboard.writeText(m)},x=()=>{t(""),n(""),s(""),l(""),p(0)},g=m=>{if(m===0)return"0 Bytes";const D=1024,E=["Bytes","KB","MB"],A=Math.floor(Math.log(m)/Math.log(D));return parseFloat((m/Math.pow(D,A)).toFixed(2))+" "+E[A]};return T.jsxs("div",{className:"space-y-6 pb-20",children:[T.jsxs("div",{children:[T.jsx("h2",{className:"text-3xl font-bold tracking-tight",children:"Image Converter"}),T.jsx("p",{className:"text-muted-foreground",children:"Convert images to Base64/ByteCode and vice-versa."})]}),T.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[T.jsx("div",{className:"space-y-6",children:T.jsxs("div",{className:"bg-card border border-border rounded-lg p-6 overflow-hidden",children:[T.jsxs("div",{className:"flex items-center justify-between mb-4",children:[T.jsxs("h3",{className:"text-lg font-semibold flex items-center gap-2",children:[T.jsx(jE,{className:"w-5 h-5 text-primary"}),"Image Preview"]}),e&&T.jsx("button",{onClick:x,className:"p-2 text-destructive hover:bg-destructive/10 rounded-md transition-colors",title:"Clear",children:T.jsx(Hw,{className:"w-5 h-5"})})]}),e?T.jsxs("div",{className:"space-y-4",children:[T.jsx("div",{className:"relative group rounded-lg overflow-hidden border border-border bg-muted/30",children:T.jsx("img",{src:e,alt:"Preview",className:"max-w-full h-auto mx-auto max-h-[400px] object-contain"})}),T.jsxs("div",{className:"flex flex-wrap gap-4 text-sm text-muted-foreground",children:[T.jsxs("div",{className:"px-3 py-1 bg-muted rounded-full",children:[T.jsx("span",{className:"font-medium text-foreground",children:"Name:"})," ",u]}),T.jsxs("div",{className:"px-3 py-1 bg-muted rounded-full",children:[T.jsx("span",{className:"font-medium text-foreground",children:"Type:"})," ",a]}),T.jsxs("div",{className:"px-3 py-1 bg-muted rounded-full",children:[T.jsx("span",{className:"font-medium text-foreground",children:"Size:"})," ",g(c)]})]})]}):T.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:[T.jsxs("div",{className:"flex flex-col items-center justify-center pt-5 pb-6",children:[T.jsx(Ww,{className:"w-12 h-12 text-muted-foreground mb-3"}),T.jsxs("p",{className:"mb-2 text-sm text-foreground",children:[T.jsx("span",{className:"font-semibold",children:"Click to upload"})," or drag and drop"]}),T.jsx("p",{className:"text-xs text-muted-foreground",children:"PNG, JPG, SVG or WEBP (Max 5MB)"})]}),T.jsx("input",{type:"file",className:"hidden",accept:"image/*",onChange:h})]})]})}),T.jsxs("div",{className:"space-y-6",children:[T.jsxs("div",{className:"bg-card border border-border rounded-lg p-6 overflow-hidden",children:[T.jsxs("div",{className:"flex items-center justify-between mb-4",children:[T.jsxs("h3",{className:"text-lg font-semibold flex items-center gap-2",children:[T.jsx(Ow,{className:"w-5 h-5 text-primary"}),"Base64 String"]}),T.jsx("button",{onClick:()=>y(r),className:"p-2 hover:bg-muted rounded-md transition-colors",title:"Copy to clipboard",disabled:!r,children:T.jsx(Q0,{className:"w-5 h-5"})})]}),T.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"})]}),T.jsxs("div",{className:"bg-card border border-border rounded-lg p-6 overflow-hidden",children:[T.jsxs("div",{className:"flex items-center justify-between mb-4",children:[T.jsxs("h3",{className:"text-lg font-semibold flex items-center gap-2",children:[T.jsx(Lw,{className:"w-5 h-5 text-primary"}),"ByteCode (Decimal)"]}),T.jsx("button",{onClick:()=>y(i),className:"p-2 hover:bg-muted rounded-md transition-colors",title:"Copy to clipboard",disabled:!i,children:T.jsx(Q0,{className:"w-5 h-5"})})]}),T.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"})]})]})]})]})}function sz(){return T.jsx(bw,{children:T.jsx(xw,{children:T.jsxs(Bn,{path:"/",element:T.jsx(Xw,{}),children:[T.jsx(Bn,{index:!0,element:T.jsx(gw,{to:"/formatter",replace:!0})}),T.jsx(Bn,{path:"formatter",element:T.jsx(ez,{})}),T.jsx(Bn,{path:"diff",element:T.jsx(tz,{})}),T.jsx(Bn,{path:"parser",element:T.jsx(rz,{})}),T.jsx(Bn,{path:"unit-conversion",element:T.jsx(nz,{})}),T.jsx(Bn,{path:"image-converter",element:T.jsx(iz,{})})]})})})}yh.createRoot(document.getElementById("root")).render(T.jsx(Un.StrictMode,{children:T.jsx(sz,{})})); diff --git a/apps/web/dist/assets/index-e39a9b41.css b/apps/web/dist/assets/index-e39a9b41.css new file mode 100644 index 0000000..336eb94 --- /dev/null +++ b/apps/web/dist/assets/index-e39a9b41.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-auto{margin-left:auto}.mt-2{margin-top:.5rem}.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-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}.max-w-7xl{max-width:80rem}.max-w-full{max-width:100%}.flex-1{flex:1 1 0%}.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-end{align-items:flex-end}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.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}.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}.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-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-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-red-900\/30{background-color:#7f1d1d4d}.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}.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}.italic{font-style:italic}.tracking-tight{letter-spacing:-.025em}.text-destructive{color:hsl(var(--destructive))}.text-foreground{color:hsl(var(--foreground))}.text-green-300{--tw-text-opacity: 1;color:rgb(134 239 172 / 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-red-300{--tw-text-opacity: 1;color:rgb(252 165 165 / var(--tw-text-opacity, 1))}.line-through{text-decoration-line:line-through}.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))}.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}.hover\:border-primary\/50:hover{border-color:hsl(var(--primary) / .5)}.hover\:bg-accent:hover{background-color:hsl(var(--accent))}.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\/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\: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\/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}@media (min-width: 768px){.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (min-width: 1024px){.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/index.html b/apps/web/dist/index.html index 2030b62..9464dcb 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 9abd140..045199c 100644 --- a/apps/web/src/App.tsx +++ b/apps/web/src/App.tsx @@ -4,6 +4,7 @@ import FormatterPage from './pages/FormatterPage'; import DiffPage from './pages/DiffPage'; import JSONParserPage from './pages/JSONParserPage'; import UnitConversionPage from './pages/UnitConversionPage'; +import ImageConverterPage from './pages/ImageConverterPage'; function App() { return ( @@ -15,6 +16,7 @@ function App() { } /> } /> } /> + } /> diff --git a/apps/web/src/components/Layout.tsx b/apps/web/src/components/Layout.tsx index 070044e..7ef9b34 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 } from 'lucide-react'; +import { FileJson, ArrowLeftRight, Code2, Braces, Ruler, Image } from 'lucide-react'; export default function Layout() { const location = useLocation(); @@ -9,6 +9,7 @@ export default function Layout() { { path: '/parser', label: 'JSON Parser', icon: Braces }, { path: '/diff', label: 'Diff Viewer', icon: ArrowLeftRight }, { path: '/unit-conversion', label: 'Unit Converter', icon: Ruler }, + { path: '/image-converter', label: 'Image Converter', icon: Image }, ]; return ( diff --git a/apps/web/src/pages/ImageConverterPage.tsx b/apps/web/src/pages/ImageConverterPage.tsx new file mode 100644 index 0000000..d78c7b0 --- /dev/null +++ b/apps/web/src/pages/ImageConverterPage.tsx @@ -0,0 +1,196 @@ +import React, { useState } from 'react'; +import { Image as ImageIcon, Copy, Upload, Trash2, FileCode, Binary } from 'lucide-react'; +import { + fileToDataUrl, + dataUrlToBase64, + base64ToByteCode, + byteCodeToBase64, + base64ToDataUrl, + getBase64Size +} from '@dev-assistant/core'; + +export default function ImageConverterPage() { + const [previewUrl, setPreviewUrl] = useState(''); + const [base64Value, setBase64Value] = useState(''); + const [byteCodeValue, setByteCodeValue] = useState(''); + const [mimeType, setMimeType] = useState('image/png'); + const [fileName, setFileName] = useState(''); + const [fileSize, setFileSize] = useState(0); + + const handleFileChange = async (e: React.ChangeEvent) => { + const file = e.target.files?.[0]; + if (!file) return; + + setFileName(file.name); + setFileSize(file.size); + setMimeType(file.type); + + try { + const dataUrl = await fileToDataUrl(file); + setPreviewUrl(dataUrl); + const base64 = dataUrlToBase64(dataUrl); + setBase64Value(base64); + setByteCodeValue(base64ToByteCode(base64)); + } catch (error) { + console.error('Failed to process image', error); + } + }; + + const handleBase64Change = (e: React.ChangeEvent) => { + const val = e.target.value; + setBase64Value(val); + setByteCodeValue(base64ToByteCode(val)); + setPreviewUrl(base64ToDataUrl(val, mimeType)); + setFileSize(getBase64Size(val)); + }; + + const handleByteCodeChange = (e: React.ChangeEvent) => { + const val = e.target.value; + setByteCodeValue(val); + const base64 = byteCodeToBase64(val); + setBase64Value(base64); + setPreviewUrl(base64ToDataUrl(base64, mimeType)); + setFileSize(getBase64Size(base64)); + }; + + const copyToClipboard = (text: string) => { + navigator.clipboard.writeText(text); + }; + + const clear = () => { + setPreviewUrl(''); + setBase64Value(''); + setByteCodeValue(''); + setFileName(''); + setFileSize(0); + }; + + const formatSize = (bytes: number) => { + if (bytes === 0) return '0 Bytes'; + const k = 1024; + const sizes = ['Bytes', 'KB', 'MB']; + const i = Math.floor(Math.log(bytes) / Math.log(k)); + return parseFloat((bytes / Math.pow(k, i)).toFixed(2)) + ' ' + sizes[i]; + }; + + return ( +
+
+

Image Converter

+

+ Convert images to Base64/ByteCode and vice-versa. +

+
+ +
+ {/* Upload & Preview Section */} +
+
+
+

+ + Image Preview +

+ {previewUrl && ( + + )} +
+ + {!previewUrl ? ( + + ) : ( +
+
+ Preview +
+
+
+ Name: {fileName} +
+
+ Type: {mimeType} +
+
+ Size: {formatSize(fileSize)} +
+
+
+ )} +
+
+ + {/* Conversion Section */} +
+ {/* Base64 Output */} +
+
+

+ + Base64 String +

+ +
+